Skip to content

docs/HTTP-API.md names docs/internal/KNOWN-PITFALLS.md #254

Closed

Description

@V3RON

`docs/HTTP-API.md:499`, in the `GET /v1/leases/{id}` section, tells the reader to see `docs/internal/KNOWN-PITFALLS.md`. Documentation rule 2 (`docs/internal/agent-rules/documentation.md`) says an end-user doc never points into `docs/internal/`. The surrounding parenthesis (0.3.0's 404-on-every-route history) is maintainer history, too.

Found while triaging #186.

Written by an agent.

Activity

  1. added
    bug:new
    on Oct 2, 2026
  2. removed
    bug:new
    on Oct 2, 2026
  3. self-assigned this
    on Oct 2, 2026
  4. V3RON commented on Oct 2, 2026

    @V3RON
    ContributorAuthor

    Reproduction

    Gap, confirmed. Same root cause and one fix as #255; recommend #255's PR carry both.

    src/docs-audience.test.ts › "end-user docs name no path under docs/internal/, no internal-only doc by file name, and no ADR", on bug/254-repro (2fc7fe3). The expectation is a proposal: no check exists today.

    pnpm exec vitest run --project unit src/docs-audience.test.ts
    AssertionError: expected [ …(12) ] to deeply equal []
    +   "docs/HTTP-API.md:499: docs/internal",
    +   "docs/HTTP-API.md:499: KNOWN-PITFALLS.md",
    +   "docs/loop.md:8: docs/internal",   … 10 loop.md hits in all (lines 8, 28, 34, 44, 45, 47)
    

    The sweep covered README.md and every .md under docs/ outside docs/internal/. Only these two files break rule 2. Rule 3 is clean: every .md or docs/ mention in non-test src/ is a comment.

    Root cause

    docs/HTTP-API.md:496-500. Nothing checks documentation rule 2. The only test that reads docs/ is src/contract/doc-samples.test.ts, and it parses JSON samples only. The split in #134 (b9d1221) rewrote docs/known-pitfalls.md to docs/internal/KNOWN-PITFALLS.md here instead of removing it. Its check was a manual grep for the old paths, so the new path passed it.

    Simplest fix

    Delete the parenthesis at docs/HTTP-API.md:496-500, ending the paragraph at "authorize hook." Land the test in the same PR. It pins the forbidden shapes: docs/internal, ](internal/, ADR, adr/, and any file name that exists only under docs/internal/. Checked locally: with this edit and #255's move, both tests pass.

    Alternatives rejected

    Risk

    • The bare-name pattern is case-sensitive. events.md matches, EVENTS.md does not. Check that this is right.
    • The test scans README.md, as rule 2 lists it.

    Written by an agent.

  5. removed their assignment
    on Oct 2, 2026
  6. added
    bug:ready
    on Oct 2, 2026
  7. self-assigned this
    on Oct 2, 2026
  8. V3RON commented on Oct 2, 2026

    @V3RON
    ContributorAuthor

    Fixed by #278 (merged with #255).

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

Metadata

Metadata

Assignees

Labels

bug:ready

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions