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
{{ message }}
Repository navigation
docs/loop.md is an agent doc in the end-user docs directory #255
`docs/loop.md` ("Implementation loop", described as historical instructions for implementing a stage) sits in `docs/` and points into `docs/internal/agent-rules/` and `docs/internal/ARCHITECTURE.md` (lines 8, 34, 44, 47). Documentation rules 1 and 2 (`docs/internal/agent-rules/documentation.md`) put maintainer/agent docs under `docs/internal/` and forbid end-user docs from pointing there. It survived the split in #134.
Gap, confirmed. Same root cause and one fix as #254. Recommend this issue's PR carry both: its branch holds the full guard, and #254 closes when it merges.
src/docs-audience.test.ts on bug/255-repro (a4a5993). The expectation is a proposal: no check exists today. Two tests fail:
pnpm exec vitest run --project unit src/docs-audience.test.ts
× end-user docs > name no path under docs/internal/, no internal-only doc by file name, and no ADR
+ "docs/HTTP-API.md:499: docs/internal", (#254)
+ "docs/loop.md:8: docs/internal", … 10 loop.md hits (lines 8, 28, 34, 44, 45, 47)
× the files directly in docs/ > are exactly the end-user docs AGENTS.md and documentation rule 2 list
"listedInAgents": [ … "docs/HTTP-API.md",
+ "docs/loop.md",
"listedInRule2": [ … "docs/HTTP-API.md",
+ "docs/loop.md",
The issue named lines 8, 34, 44 and 47. Lines 28 and 45 also cite internal docs by bare name (ARCHITECTURE.md, safety.md).
Root cause
docs/loop.md. Nothing checks documentation rule 1 or 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) listed the six end-user docs but did not move loop.md.
Nothing reads docs/loop.md. git grep finds no mention of loop.md in skills, AGENTS.md, .github/ or src/. The file has only backticked paths, no relative links, so a move breaks nothing.
Simplest fix
git mv docs/loop.md docs/internal/LOOP.md (rule 5 casing), and add it to AGENTS.md's maintainer list. Delete the #254 parenthesis at docs/HTTP-API.md:496-500. Land the test. Checked locally: all four tests pass.
Alternatives rejected
Delete loop.md: no reader, and docs/stages/ is gone. Dropping history is the maintainer's call.
The membership test parses AGENTS.md between "End-user docs live directly under" and "Maintainer/agent docs live under", and rule 2 between 2. ** and 3. **. A reworded heading fails the guard test, by design.
Activity
V3RON commentedon Oct 2, 2026
Reproduction
Gap, confirmed. Same root cause and one fix as #254. Recommend this issue's PR carry both: its branch holds the full guard, and #254 closes when it merges.
src/docs-audience.test.tsonbug/255-repro(a4a5993). The expectation is a proposal: no check exists today. Two tests fail:The issue named lines 8, 34, 44 and 47. Lines 28 and 45 also cite internal docs by bare name (
ARCHITECTURE.md,safety.md).Root cause
docs/loop.md. Nothing checks documentation rule 1 or 2. The only test that readsdocs/issrc/contract/doc-samples.test.ts, and it parses JSON samples only. The split in #134 (b9d1221) listed the six end-user docs but did not moveloop.md.Nothing reads
docs/loop.md.git grepfinds no mention ofloop.mdin skills,AGENTS.md,.github/orsrc/. The file has only backticked paths, no relative links, so a move breaks nothing.Simplest fix
git mv docs/loop.md docs/internal/LOOP.md(rule 5 casing), and add it toAGENTS.md's maintainer list. Delete the #254 parenthesis atdocs/HTTP-API.md:496-500. Land the test. Checked locally: all four tests pass.Alternatives rejected
loop.md: no reader, anddocs/stages/is gone. Dropping history is the maintainer's call.loop.md, so neither PR goes green alone.Risk
AGENTS.mdbetween "End-user docs live directly under" and "Maintainer/agent docs live under", and rule 2 between2. **and3. **. A reworded heading fails the guard test, by design.Written by an agent.
test: reproduce #255 — docs/ holds a doc neither end-user list names
fix(docs): move loop.md under docs/internal/ and drop HTTP-API.md's i…