Skip to content
joinery / docs

Repo documentation: wrong claims, duplication and drift

Closed

docs/audits/2026-09-25-docs.md ยท read at 33d1140

Open
0
Fixed
52
Won't fix
5

๐Ÿ”Ž Repo documentation: wrong claims, duplication and drift

Context

A read of every tracked markdown file outside CHANGELOG.mds and the generated adapters: the root README.md and AGENTS.md, docs/ (concepts, guides, FEATURES.md, decisions, reviews), every project README.md/AGENTS.md including nested ones, infrastructure/scripts/src/*/README.md and .agents/skills/. Each claim was checked against the code it describes: nx.json, root and project package.json, .husky/*, .github/workflows/*, boundaries.ts, coreIsolation.ts and the scripts source. Confirmed means the claim was checked against the file or git history at commit (git show, git log -S, grep). Likely means it was reasoned from the code and not checked. Line numbers are as of commit. The working tree had an uncommitted, emptied .husky/pre-push at the time; every hook finding below is against the committed version.

Bugs

A bug here is a doc that states something the code does not do.

IDWhereWhat goes wrongFixStatus
B1README.md:155-158, docs/guides/change-lifecycle.md:36-43Confirmed. Pre-push is described as running "in a temporary checkout of the pushed commit" (README) and "against only the commits being pushed" (guide). It runs pnpm lint/test/typecheck in the working tree, so uncommitted changes are checked. Only the TODO scan is range-based. The guide's step list also omits pnpm auditDescribe it as it is: TODO scan over the pushed range, then audit, lint, test and typecheck in the working treefixed
B2README.md:180-186, AGENTS.md:129-130, infrastructure/scripts/src/drift/README.md:12-14,73,75Confirmed. Three docs say a hook runs pnpm docs:drift ("after each commit", "nudges on docs drift", ".husky/pre-push is the only caller"). 03e9923 removed it from pre-push, and no hook or workflow calls it nowDocument it as a manual command. Drop the pre-push ref-loop deferred row in drift/README.md. Keep the pnpm audit sentence, but attribute it to pre-pushfixed
B3docs/concepts/versioning.md:12-15, docs/guides/change-lifecycle.md:29-31Confirmed. Both docs say the subject must be sentence case (feat: Add the thing passes). The preset rejects sentence case, so the guide's own example commit would fail. versioning.md also says the two rules "live only in commitlint.config.mjs", which has no overridesInvert both statements and the examples to match AGENTS.md:124-127. Say the rules come from @commitlint/config-conventionalfixed
B4docs/guides/first-hour.md:36,44Confirmed. Says "all eight projects" (there are nine). Gives the issue:pick branch as <type>/<issue number>-<slug>, missing the <project> segment that the push regex requiresSay nine, and use <type>/<project>/<issue number>-<slug>fixed
B5AGENTS.md:146-154, docs/decisions/0015-nuxt-prepare-wiring.md:83-89,143-145Confirmed. "What's left in nx.json is lint and typecheck" is false: nx.json:67 test.dependsOn includes nuxt-prepare, re-added by f51a6b3 (#144). That trips 0015's own reversal checkRewrite the AGENTS.md paragraph. Write a short decision recording #144, and mark 0015 superseded pointing at itfixed
B6docs/reviews/README.md:29, docs/decisions/README.md:108, .agents/skills/decision-report/SKILL.md:55, decisions 0002, 0011, 0013, 0014, 0018, 0020Confirmed. All of these cite a check-docs target as a CI gate. It was removed in 3414e2c (#141) and exists in no nx.json, package.json or workflow. The skill is live guidance, so agents are told a check exists that doesn'tRewrite the skill and the two READMEs to describe present state. Record the removal in a new decision and point the dated reports at it. Give 0020's check-docs steps a new hostfixed
B7docs/decisions/0005-nx-generators-and-ai-agent-setup.md:137-139Confirmed. Says the check-invariants.sh assertions "now also run in CI". No workflow or hook runs themCorrect it together with B6's decisionfixed
B8.gitignore:32-34, AGENTS.md:11, docs/concepts/agent-setup.md:24-25, infrastructure/scripts/src/agents-sync/README.md:3,21Confirmed. The docs call the generated CLAUDE.md files and .claude/skills/ "ignored". Git still tracks 9 CLAUDE.md and 11 .claude/skills/ files from 7a51200. They are stale, and missing the four newest skills. Because the paths are ignored, re-syncing never shows in git statusgit rm --cached the tracked generated files so the docs become truefixed
B9infrastructure/scripts/src/map/domain/capabilities.ts:89 documentedBy โ†’ docs/FEATURES.md skills tableConfirmed. "Explained in" goes to the first README that happens to mention the skill name. Results: new-package โ†’ drift/README.md, nuxt-module-route โ†’ 0013-linter-coverage.md, writing-tests โ†’ huella-legal/README.md, decision-report โ†’ developer-portal/README.mdGive skills a fixed explainer (the AGENTS.md skills table), or rank the README of the project the skill targets. Add a spec, then run pnpm docs:mapfixed
B10apps/developer-portal/README.md:290-294Confirmed. Says the invariants run "on every collect and in CIโ€ฆ fails the build". ci.yml never runs collect, and the same section later calls the findings non-blockingSay they surface on the Overview after collect, or wire them into CIfixed
B11apps/developer-portal/README.md:10,46,54,208Line 54: "vendored" graph under public/embed/graph/, but that path is gitignored and written by collect. Line 208: "Technical Docs" is the app's old name. Lines 10 and 46: pnpm dev developer-portal only works from the workspace rootSay "collected", rename to the current name, and add "from the root"fixed
B12packages/configs/README.md:6,69Confirmed. Says apps/huella-legal has no vitest.config.ts, but it has one (createNodeConfig()). Says "nothing extends base.json directly", but packages/configs/tsconfig.json doesOnly configs lacks a Vitest config. Say "no consumer extends it"fixed
B13packages/content/README.md:87, packages/content/src/nuxt/README.md:69,77-78The registry snippet imports ./adapters/providers/WordpressProvider, but the file lives under wordpress/. The nuxt tree shows server/request.ts, but it is server/utils/request.ts plus an unlisted parsing.ts. The claim that request.ts is "the only file that knows both h3 and the core" is falseFix both paths, add parsing.ts, and drop the "only file" claimfixed
B14packages/i18n/src/nuxt/README.md:5,89,120-124Line 5: "(and, later, its credentials)", but tolgee already takes options.token. Line 89: the request path shown is the internal vendor's, but the app runs tolgee. Lines 120-124: don't mention that an unknown vendor name throws UndefinedVendorError at build time (module.ts:16)Say "and its credentials". Label the path per vendor. Add the build-time errorfixed
B15apps/huella-legal/README.md:60, apps/huella-legal/AGENTS.md:5Says "Nothing here has a default in nuxt.config.ts", which contradicts lines 54-55. version and environment do have defaultsSay "No URL or credential has a default"fixed
B16docs/concepts/boundaries.md:32-37,54Confirmed. Says "there's exactly one app", but developer-portal is the second. The deferred row "A second app โ†’ type:feature/type:domain stop being reserved" has fired, yet both tags are still emptyRewrite the reasoning for two apps and explain why the tags are still unusedfixed
B17docs/reviews/SCORECARDS.md:218Confirmed. Says "only scripts has test:coverage today". Eight projects define itCorrect it, then run pnpm review:version. Never hand-edit METHOD.md rowsfixed
B18docs/decisions/0005-nx-generators-and-ai-agent-setup.md:102, docs/decisions/0011-docs-system-enforcement.md:1-5,175-178Confirmed. 0005 rejects Nx Cloud, but it has been adopted (nx.json nxCloudId, NX_CLOUD_ACCESS_TOKEN in ci.yml, 4631088). 0011 is to-implement, but change 7 shipped with 0014 and changes 1 and 3 were rolled back with check-docsRecord the Nx Cloud adoption in a new decision. Mark that part of 0005 superseded, and 0011 superseded in part (with B6)fixed
B19docs/decisions/0017-commit-scope-gh-project.md:25,42-43Confirmed. Calls technical-docs "an app", but it is a Project board. Its check says no (scope) appears in the log, but feat(nx-cloud) and every chore(release) doSay "board", and exempt nx release commits from the checkwont-fix โ€” technical-docs is the developer portal's legacy name, so "an app" is right; the scoped subjects come from nx connect and nx release, not the convention
B20docs/decisions/0006-blackboard-coordination.md:2,11, docs/decisions/0007-parallel-dev-envs.md:2Both carry issue: 38, while 0006 says "No issue raised this"Correct the issue: valueswont-fix โ€” intentional, issue: 38 is the branch both were written on
B21infrastructure/scripts/AGENTS.md:5, infrastructure/scripts/README.md:134,143-144AGENTS says "This is a service, not a library", but it is CLI tooling (the wording is copied from translations). README 134 says map/ is "the one that runs in CI", but review-version runs there too. The deferred rows at 143-144 contradict the adapters/+domain/ layout the same README makes mandatorySay "CLI tooling". Name both CI scripts. Delete or rewrite the two rowsfixed
B22infrastructure/translations/README.md:38-39Says "Adding a locale means adding a file โ€” there is nothing to register". The app must also declare the locale, and a file alone is unreachableLink docs/guides/adding-a-locale.mdfixed
B23README.md:99,106, docs/guides/change-lifecycle.md:4-5,57-62, AGENTS.md:130Confirmed. Several small errors. "The only one of those three" sits above four commands. "Both CI workflows install with --ignore-scripts", but three do, and check-invariants.sh repeats it. The guide says the commit-msg rewrite "appears in neither" README section, but README.md:145 covers it. CI's docs:map --check and review:version --check are missing from the guide's ยง5 and from AGENTS.mdFix each line in placefixed
B24README.md:146, docs/guides/change-lifecycle.md:29Confirmed. Both show the commit-msg rewrite producing feat: [50] โ€ฆ. The hook writes [#50] (.husky/commit-msg TAGGED_LINE)Use [#50] in both examplesfixed
B25.husky/pre-push Dependency audit, if [ -n "$LOCAL_SHA" ]Confirmed. The guard runs after while read has hit EOF, and a failed read empties its variables (printf 'a b c d\n' | sh -c 'while read -r A B C D; do :; done; echo "[$B]"' prints []). pnpm audit never runs on any pushRecord whether any ref had a non-zero LOCAL_SHA inside the loop, and test that flag insteadfixed
B26docs/decisions/0023-review-as-judgement.md:1-4Confirmed. The frontmatter has no issue:, which docs/decisions/README.md requires. Nothing reported it because decisionProblems had no caller after check-docs was deleted (B6)Set issue: 161, the issue it was committed underfixed
B27docs/reviews/METHOD.md:56 Deliberately deferredConfirmed. Lists "blocking the bump at commit time" as deferred, but .husky/pre-commit has run pnpm review:version --check since 4670b5aDelete the rowfixed

Duplication

IDCopiesConsolidate intoStatus
D1Branch, commit, hook and PR flow: README.md ๐ŸŒฟ Git conventions, AGENTS.md โŒจ๏ธ Commands, docs/guides/change-lifecycle.md. The copies caused B1, B2 and B3The guide holds the flow, the README keeps a short rule list, and AGENTS.md keeps only the trapsfixed
D2Hook installation, four stories: pnpm quick-start (README.md:94), git config core.hooksPath .husky (docs/guides/first-hour.md:10), "until core.hooksPath is pointed" (AGENTS.md:133), "only after pnpm quick-start" (map/domain/render.ts โ†’ FEATURES.md:49)pnpm quick-start everywhere, with core.hooksPath named only as what it doesfixed
D3Versioning mechanics: README.md:235-259, docs/concepts/versioning.md ยงchain, AGENTS.md. B3 is the inverted copyMechanics in the README, only the why in the concept docfixed
D4Boundary table: a partial third copy in docs/concepts/boundaries.md:27-30, next to README.md and boundaries.tsReplace it with a link to the README tablefixed
D5The ownership quote and its justification: docs/README.md, docs/guides/README.md, docs/concepts/README.mddocs/README.md, linked from the other twofixed
D6Secret provisioning, four near-identical blocks: COPILOT_GITHUB_TOKEN, PROJECTS_TOKEN, NX_CLOUD_ACCESS_TOKEN and RELEASE_TOKEN, in README.md:190-233,250-259A new docs/guides/repo-secrets.md table (secret, used by, scopes, symptom when missing), with a one-line link from the READMEfixed
D7Core-isolation ban list: packages/i18n/README.md:47 + AGENTS.md:8, packages/content/README.md:47 + AGENTS.md:8, packages/configs/src/eslint/lib/README.md:14. None matches coreIsolation.ts (@nuxt/*, @nuxtjs/*, nitropack, h3, #nuxt/*)packages/configs/README.md, linked from the restfixed
D8Inbound-span / HttpInstrumentation explanation: packages/observability/README.md:60-67, packages/observability/AGENTS.md:15-18, apps/huella-legal/README.md:132-138, apps/huella-legal/AGENTS.md:29-31packages/observability/README.mdfixed
D9"Don't read process.env in nuxt.config": apps/huella-legal/README.md:60-64, apps/huella-legal/AGENTS.md:5-11, packages/content/src/nuxt/README.md:51-56, packages/i18n/src/nuxt/README.md:46-50packages/i18n/src/nuxt/README.md (content already links to it)fixed
D10Nitro escapeKey: packages/content/README.md:208-222, packages/content/src/nuxt/README.md:122-129, packages/i18n/README.md:173-177, packages/i18n/src/nuxt/README.md:103-106One copy per package, in its nuxt READMEfixed
D11infrastructure/translations/AGENTS.md restates most of its README (bind mount, tests, tag). infrastructure/scripts/AGENTS.md restates its README's layout, process.exit and .ts extension rulesCut each AGENTS.md to the invariants its README doesn't statefixed
D12README.md:129 repeats README.md:122 (pnpm dev developer-portal). apps/developer-portal/README.md Development section repeats README.md:129-130Keep one row, and link from the portalfixed
D13Restated across decisions: "tag table written twice" (0002, 0005, 0006, AGENTS.md), the MADR rejection (decisions/README.md:107, 0011, 0020), "re-score once on a bump" (SCORECARDS.md:9-11,217, METHOD.md:44-47, reviews/README.md:47-49,57)AGENTS.md for boundaries, decisions/README.md for MADR, METHOD.md for re-scoring. Link to them rather than restatingwont-fix โ€” the SCORECARDS.md copy went with the v7 rewrite, and the rest sit in filed decision reports, which docs/decisions/README.md keeps as records

Quality

IDWhereIssueFixStatus
Q1AGENTS.md:83-85 vs README.md:5, nx.json nxCloudIdConfirmed. The "never write a real URL or instance ID" rule is broken by the Netlify badge's site UUID and by the Nx Cloud workspace idAdd an explicit exception for public status badges and the Nx Cloud idfixed
Q2packages/observability/README.md:10,21, apps/huella-legal/.env.example:13,18, packages/i18n/README.md:129, apps/developer-portal/README.md:176Confirmed for .env.example. Vendor endpoints are written out (*.grafana.net, app.tolgee.io, api.github.com). .env.example should carry names onlyUse placeholders (<otlp-gateway-url>, tms.example.com, "the repo host's REST API") and empty the .env.example valuesfixed
Q3README.md:110, packages/configs/README.md:50, packages/content/README.md:265, packages/content/AGENTS.md:29"The app" is ambiguous now that there are two appsName huella-legal, or say "a Nuxt app" / "the consuming app"fixed
Q4apps/developer-portal/It is the only project with no AGENTS.mdAdd one: a README pointer plus the invariants worth losing a build overfixed
Q5docs/guides/change-lifecycle.md"End to end" skips pnpm issue:ship (push, PR, auto-merge, wait on checks)Add it as a step between push and PRfixed
Q6README.md:119-135 Commands tableLists package:check but not issue:*, docs:drift, review:version or releaseTrim to the everyday commands and link FEATURES.md for the restfixed
Q7docs/guides/README.md Deliberately deferredThe "Add an index table here" row is moot, because the file already has oneDelete the rowfixed
Q8packages/observability/README.md:85, apps/developer-portal/README.md:15,107,225,331, packages/configs/README.md ๐Ÿ“Heading drift from house-docs. Observability uses "๐Ÿงญ Not here yet". The portal has three different ๐Ÿงญ H2s, and its ๐Ÿš€ Development is the 10th section. configs uses ๐Ÿ“ for something other than Boundaries. Content, i18n and observability have no command tableAlign with house-docs and the sibling READMEsfixed โ€” headings aligned; no command table added to content, i18n or observability, whose only targets are the standard ones the root README lists
Q9apps/developer-portal/README.md:30-38 StructureMissing server/utils/ (store.ts) and server/api/snapshot/Add the rowsfixed
Q10packages/i18n/src/nuxt/README.md:60Says config.ts holds "the API path and the config shape", but it also holds the cache windows. Its content twin says soAlign the wordingfixed
Q11apps/developer-portal/README.md:137,243-244, packages/content/README.md:205Measured numbers (725 KB/75 KB, 14s/15s, 181/211 routes) and a literal contentKey hash that no spec pins will drift silentlyMove the measurements to decision 0014, and write the key as a shape (wordpress_posts_<hash>_<hash>)fixed
Q12docs/decisions/README.md:4,50The example slug 0013-ui-headless.md looks real (the real 0013 is linter-coverage). "What 0009 got wrong" makes no sense without 0011Use an obviously fake slug, and point the line at 0011fixed
Q13docs/decisions/0007-parallel-dev-envs.md:39-44Uses a Pros/Cons table and never picks A or B, so to-implement has no outcomeState the adopted option, and make the loser a TEMPLATE "Option / Why not" rowwont-fix โ€” the A/B choice is still undecided, which is what to-implement says
Q14docs/decisions/0022-fluentui-tooling-patterns.md:115, docs/reviews/2026-09-04-c1025f3.md:119,158-161, docs/reviews/2026-09-05-abcb17d.md:79GitHub ignores #Lโ€ฆ anchors on rendered .md, and one link puts :91-94 in the path itselfUse heading anchors or ?plain=1#Lโ€ฆfixed
Q15docs/decisions/TEMPLATE.md, .agents/skills/decision-report/SKILL.mdResults run long (0014 is 273 lines, 0010's Result is 118 lines, 0019's Consequences about 90), and process narration sits in the record (0005:24-41,84-94, 0011:66, 0015:91-98)Add a Result length cap (~60 lines) and a "no process narration" rule. Leave the filed reports alonefixed
Q16docs/decisions/0009-comment-discipline.md:106-107Cites the old "To implement" label. 84a9ef0 may have done the scripts half of the sweepUpdate the wording, re-measure, then set the statuswont-fix โ€” the sweep is owed work and to-implement already says so
Q17.claude/worktrees/72-issue-tracking-boards/, infrastructure/scripts/src/ports/A leftover worktree holds stale copies of every doc (including a removed docs/spikes/), which pollutes doc searches. ports/ is an empty directorygit worktree remove it, and delete ports/fixed

Order

  1. Decisions first: B5, B6, B18. One short report each (#144's test edge, the check-docs removal, Nx Cloud adoption), via decision-report, and three superseded markers. Every other decision-side finding (B7, B19, B20, Q13, Q16) cites them.
  2. D1 before B1โ€“B3. Once the flow lives only in change-lifecycle.md, B1, B2 and B3 are one edit each instead of three, and Q5 lands in the same edit. D2 and D3 go in that same pass.
  3. B9 next. It is code plus a spec, and pnpm docs:map re-renders FEATURES.md. D2's render.ts wording is re-rendered in the same run.
  4. B8 and Q17 are index and filesystem housekeeping with no prose. Doing them early stops stale copies from showing up in every grep for the rest of the work.
  5. Remaining Bugs, then D4โ€“D13, then Quality. D7 settles which ban list is correct before B13 and B14 touch the same READMEs. B17 is the only one that needs pnpm review:version afterwards.
  6. Finish with pnpm agents:sync (AGENTS.md and skill edits), pnpm docs:map --check and pnpm review:version --check.