Skip to content

mcpx docs: story.md's AGENTS.md claims are stale again (109 vs 120 lines) and no test guards them #365

Closed

Description

@dezren39

Re-homed from dezren39/darwin-nix#264

This issue is the surviving half of dezren39/darwin-nix#264. That issue was filed against the vendored mcpx copy in dezren39/nix, whose pkgs/mcpx/docs/story.md quoted a 62-line AGENTS.md that was already 109 lines. The vendored copy was deleted in dezren39/darwin-nix#469 (PR dezren39/darwin-nix#469, merge 42b94f39); this repo's pkgs/mcpx is now the only copy, so the remaining work lives here. Per the mcpx-extraction plan (step 3: move the open mcpx issues), nix#264 is being closed with a pointer to this issue rather than duplicated.

What this copy already does right

pkgs/mcpx/docs/story.md in this repo already adopted the fix nix#264 proposed as option 1: the quote is explicitly abridged ("Abridged — the full file is 109 lines and adds profiles, per-tool types, catalog --budget and the globalThis bindings, which this walk does not need and #264 is about"), instead of quoting a stale file in full.

What is still rotten here (verified 2026-10-19 on main 3ee0623)

  1. The line count is stale again. docs/story.md:21 says "the full file is 109 lines" and docs/story.md:2890 says "109 lines today". pkgs/mcpx/AGENTS.md is now 120 lines: it grew 109 → 120 in d107815 ("feat(mcpx): give servers the secrets they need, held in memory"), after the story text was written at the migration commit a03494f (where AGENTS.md was 109 lines). This is exactly the silent-rot failure mode nix#264 and docs/release-runbook.md describe.
  2. The abridged quote no longer matches verbatim. Spot-check of the quoted block (story.md ~:25-95) against current AGENTS.md: 46 of 48 non-empty quoted lines appear verbatim; two do not — the step-3 line "mcpx types <namespace> — load signatures for that namespace only" and the "Import the generated client, which mcpx writes next to the script" line (the current file's guidance is the globalThis no-imports form).
  3. No guard exists. docs/parity.md is held current by TestParityDocumentIsCurrent (internal/cli/parity.go); nothing in the test suite references docs/story.md or checks its AGENTS.md claims, so the count and quote will keep drifting silently.

Acceptance criteria

  • story.md's AGENTS.md line-count claims (currently :21 and :2890) match wc -l pkgs/mcpx/AGENTS.md, or the counts are removed in favour of wording that cannot go stale.
  • The abridged quote in story.md matches the current AGENTS.md text it presents as quoted (or is clearly marked as paraphrase where it intentionally differs).
  • A test in the mcpx suite (mirroring TestParityDocumentIsCurrent) fails when story.md's quoted AGENTS.md block or its stated line count diverges from pkgs/mcpx/AGENTS.md.

Single-repo now: mcpx source lives only in this repo (dezren39/nix builds it from a pinned input of this repo). Deduped: issue searches for "story" / "story.md" in this repo return no matching issue.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions