Skip to content

docs(#6380 slice 3): API documentation for public interfaces - id crates, mcpx MCP surface, fleet CLI + pm-stack HTTP #11190

Closed

Description

@dezren39

Parent

Sub-issue of #6380 (architecture and design decisions overhaul), slice 3 of 5. Scoped by triage task 20011 (2026-11-17) against the slice-1 index in planning/architecture/README.md. Slice ordering (triage task 11173): slice 1 landed (PR #6995), slice 2 (ADRs) is routed as task 20002, this is slice 3, slice 5 reviews everything last.

Scoping decision (task 20011)

"Public interfaces" for this repo, in the order this slice documents them:

  1. pkgs/id crate public APIs — the workspace of importable crates from the crate split; their public Rust surface is consumed by other crates and apps. Document via rustdoc coverage on the public items of the user-facing crates (starting with id-core and the top-level id crate), plus a short "public API" section in pkgs/id/ARCHITECTURE.md naming which crates are public surface and which are internal.
  2. mcpx MCP tool surface — the tools mcpx exposes to MCP clients are a public contract. pkgs/mcpx/docs/ already carries a compendium; this slice adds/updates the API-level reference for the exposed tool surface and links it from the architecture index's package-docs section.
  3. fleet multicall CLI + pm-stack aggregator HTTP routes — the operator-facing surfaces (fleet queue|dispatch|... verbs and the aggregator's /queue, /today, /api/queue.json routes). Document the verb/route list with one-line contracts in the owning docs home (fleet design record home / pm-stack docs), linked from the index.

Out of scope for this slice: every other pkgs/ package's internals (they are not public interface until a package doc says so), and any API change itself — this is documentation of the surfaces as they are; gaps found get filed as their own issues, not fixed here.

Acceptance

  • Each of the three surfaces above has an API-level doc in its owning home, linked from planning/architecture/README.md (links verified to resolve).
  • pkgs/id/ARCHITECTURE.md names the public vs internal crates.
  • Any surface found to have no stable contract worth documenting is recorded on this issue with the evidence, instead of a doc being invented for it.

Activity

  1. added
    kind/docsDocumentation improvement or addition
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    on Nov 17, 2026
  2. developing-today commented on Nov 17, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    state: parked
    task: 20722 (repo-health-code-pilot, lane oc-code-03)
    issue: #11190 — #6380 slice 3: API documentation for public interfaces

    Fresh check 2026-11-18: #11190 OPEN, parent #6380 OPEN, no open blockers. The slice documents public interfaces across the codebase, a multi-package change that this unattended lane does not start.

    Resume brief: pick the public crates in scope, write their API docs in a worktree, and verify with the doc build. Parked; no packet filed here.

  4. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: parked
    task: 20722 (repo-health-code-pilot, lane oc-code-06)

    Scheduled lane picked up task 20722 and revalidated fresh: #11190 and parent #6380 are OPEN; #11190 is assigned to Drew (dezren39). The latest prior agent note explicitly says this unattended multi-surface docs lane does not start the work; no PR is open. No files or branch changed.

    Parked for 30 minutes naming the existing Drew assignment/prior ownership direction. Resume only when reassigned/unassigned or a fresh owner handoff authorizes a worker to proceed. Resume brief: handle the scoped documentation surfaces in packet order (pkgs/id public rustdoc + public/internal architecture, mcpx tool API reference, fleet CLI and pm-stack routes), link each doc from planning/architecture/README.md, and verify all relative links.

  5. added
    work/assignedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 18, 2026
  6. added a commit that references this issue on Nov 18, 2026
  7. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Agent note — task 20722 done (lane oc-code-06): slice 3 landed in PR #11809 (merge d3d274d1)

    Delivered:

    • pkgs/id/ARCHITECTURE.md: public-vs-internal crate section (root id and id-core are public surface; the rest internal; id-currency-registry and id-render have no dependents).
    • rustdoc on the four public items that lacked it (AuthId, Decision, CurrencyOp, backup download constants).
    • pkgs/mcpx/docs/tool-reference.md (registered in manifest and SUMMARY), pkgs/fleet/docs/verbs.md, pm-stack/docs/routes.md, all linked from planning/architecture/README.md.

    Gaps found and recorded here, not fixed (documentation only; no API change in this slice):

    1. fleet registry subcommands arrays are stale: the queue domain lists about 16 verbs, the code dispatches 31. Generated docs from the registry would be wrong.
    2. doc/ interfaces and HTTP API pages say 81 ops; live Ops() count is 93.
    3. server.go comment says "these ten" hand-written tools; there are 12.
    4. compare/matrix-mcpx.md row 19 (isError lost via mcpx_call) is unverified; the generic path keeps it. Needs a targeted check before correcting.
    5. pkgs/id/ARCHITECTURE.md core-module headings predate the crate split (cli.rs, store.rs, tags.rs moved into crates).

    Filed as gaps on this issue rather than new issues, so no separate triage packet was needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

effort/mMedium: expected under 1 day of workkind/docsDocumentation improvement or additionpriority/normalOrdinary priority (the default)status:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions