You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`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.
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
Restate the 0.3.0 history without the path: it is maintainer history, and the 403 rule above it already stands alone.
Activity
V3RON commentedon Oct 2, 2026
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", onbug/254-repro(2fc7fe3). The expectation is a proposal: no check exists today.The sweep covered
README.mdand every.mdunderdocs/outsidedocs/internal/. Only these two files break rule 2. Rule 3 is clean: every.mdordocs/mention in non-testsrc/is a comment.Root cause
docs/HTTP-API.md:496-500. Nothing checks documentation rule 2. The only test that readsdocs/issrc/contract/doc-samples.test.ts, and it parses JSON samples only. The split in #134 (b9d1221) rewrotedocs/known-pitfalls.mdtodocs/internal/KNOWN-PITFALLS.mdhere 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 underdocs/internal/. Checked locally: with this edit and #255's move, both tests pass.Alternatives rejected
Risk
events.mdmatches,EVENTS.mddoes not. Check that this is right.README.md, as rule 2 lists it.Written by an agent.
fix(docs): move loop.md under docs/internal/ and drop HTTP-API.md's i…
fix(docs): move loop.md to docs/internal/ and drop HTTP-API.md's inte…
V3RON commentedon Oct 2, 2026
Fixed by #278 (merged with #255).