Repository navigation
Description
Split from #4910.
Problem: The content census found 11 findings in ADRs in force. The docs check rules do not read an ADR, because an ADR is a historical record and a person decides whether its text or the code is wrong. This part is deferred so the three rules and the corrections to the living documents can merge in one pull request. The rest of the item stays workable and the three rules do not depend on this part. Acceptance criteria: - A person reviews each of the 11 findings and records the decision on the ADR or the code. - Each corrected ADR keeps its status and its decision date. - The census re-run reports 0 findings in ADRs in force. - The docs check rules keep ADRs out of their scope, or a documented exclusion names the ADR paths.
Proposed design
Problem statement
The content census reports 11 unknown-name findings in the ADRs in force. An ADR is a historical record: its accepted body never changes, so a finding gets one dated Status History line and never a body edit. The docs name checks already keep docs/adr/[0-9]*.md out of scope as the record class, so no new exclusion is needed. The work is the person's review of the 11 findings and the dated lines that record each decision.
Acceptance criteria
Requirement: ADRs stay out of the docs name checks
The docs name checks SHALL read only the hand-written and prompt classes, and SHALL read no file under docs/adr/.
Scenario: The ADR path is a record
- WHEN the test calls
document_classondocs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.mdand callshand_written_documentson a root that holds that file. - THEN
document_classreturnsrecord, andhand_written_documentslists no path underdocs/adr/.
Requirement: The docs row passes
uv run devops ci --check --only docs MUST exit 0 and MUST report no unknown-name finding under docs/adr/.
Scenario: The docs row over the repository
- WHEN I run
uv run devops ci --check --only docs. - THEN the run exits 0 and its output holds no
docs/adr/path.
Requirement: Pending a person after the merge
A person MUST record each of the 11 census findings as one dated Status History line in the ADR that holds it, and MUST NOT change the body, the status or the date of that ADR.
Scenario: Each finding gets one dated line
- WHEN a person reviews the 11 findings that the pull request body copies from the census at
cd6fb76, and runsuv run devops ci test tests/invariants/test_adr_records.py. - THEN each finding has one dated
Status Historyline, each ADR keeps its status and its date, and the command exits 0.
Existing Tool Considered
No open tool covers the need. The closest open tool is lycheeverse/lychee (https://github.com/lycheeverse/lychee), which checks Markdown link targets only. It reads no inline code span. It resolves no DEVOPS_CLI_* name, no dotted Settings key and no devops flag against the live code (openspec/changes/archive/2026-11-29-4904-docs-check-code-span-paths/proposal.md:37). The project already built the three name rules in src/devops_cli/docs/path_collector.py (#4904, #4910), and this item adds no code. The cost is one person's review and one dated Status History line per finding, with no build, keep or fix cost.
Key questions
- Which 11 findings did the content census report in ADRs in force, and where is that list?: The repository holds no list. The content census is a one-off audit at commit
cd6fb76; it read 23 ADRs and recorded its findings in tracker feat(docs): track current content and brain-fed reference docs #4880 and feat(docs): docs check refuses unknown settings, variables and flags #4910, not in the repository. The 11 findings are the census list at that commit, not a fresh scan of the 30 ADRs in force today. [sources: https://github.com/feat(docs): track current content and brain-fed reference docs #4880, https://github.com/feat(docs): docs check refuses unknown settings, variables and flags #4910, openspec/changes/archive/2026-11-28-4894-fix-census-stale-docs/proposal.md:4, src/devops_cli/config/constants.py:3995] - Which ADRs are in force, and where is the text of each?: The 30 ADRs with
status: acceptedthat no record supersedes: 0005-0010, 0013, 0015, 0017, 0018, 0021-0026, 0028, 0029, 0031-0035, 0037-0040, 0042-0044. The fourproposedrecords (0027, 0030, 0036, 0041) and the tensupersededrecords (0001-0004, 0011, 0012, 0014, 0016, 0019, 0020) are not in force. Each text is a file underdocs/adr/. [sources: docs/adr/README.md:34, docs/adr/README.md:23, src/devops_cli/config/constants.py:3995] - Which check runs the docs rules, and how does a person run it?:
devops ci docsruns the docs rules, anddevops ci --check --only docsruns only that row. The row runscheck_documented_paths,check_documented_env_vars,check_documented_settingsandcheck_documented_flags. [sources: docs/commands/ci.md:19, docs/CLI_REFERENCE.md:225, src/devops_cli/docs/generator.py:1743] - How do the docs checks keep the ADRs in force out of their scope?:
docs/adr/[0-9]*.mdis therecordclass inCONST_DOCS_INVENTORY, and the three name checks readhand_written_documentsonly. The inventory comment gives the reason: a record is history and is never rewritten to match later code.tests/docs/test_docs_inventory.pyasserts that the path isrecordand that the listing leaves it out. No configuration entry and no expiry are needed. [sources: src/devops_cli/config/constants.py:490, src/devops_cli/config/constants.py:523, src/devops_cli/docs/path_collector.py:308, tests/docs/test_docs_inventory.py:99, tests/docs/test_docs_inventory.py:119] - How does a person record each finding on an ADR in force?: Add one dated line to the end of the
Status Historysection:YYYY-MM-DD: Fact out of date: <what> (#N).Do not edit the body, the status or the date.docs/adr/README.mdallows only a status key change, one datedStatus Historyline or a broken-link target fix, and thebody-hashtest fails on a body edit. (best practice) [sources: docs/adr/README.md:44, docs/adr/README.md:54, docs/adr/0025-generated-documents-stay-in-git-and-the-project-brain-cites-them.md:69]- Chosen: One dated
Status Historyline per finding.docs/adr/README.md:44-60allows this change, and ADR 0025 section 3 says a finding in an ADR in force asks for a new ADR or a note at its top. - Rejected: Edit the ADR body in place.
docs/adr/README.md:50says an agent never edits the body of an accepted record, and thebody-hashtest fails. - Rejected: Write a new ADR for each finding. A stale name is not a new decision. ADR 0025 section 3 allows a note at the top, and a new record spends the alternatives budget for no decision.
- Chosen: One dated
- Should the pull request body hold the 11 findings?: Yes. The docs check never reads an ADR, so no check output holds the findings. The pull request body copies the 11
path:linelines from the census atcd6fb76for the reviewer. The datedStatus Historylines are the durable record in each ADR. (best practice) [sources: src/devops_cli/config/constants.py:523, docs/adr/README.md:54, https://github.com/feat(docs): docs check refuses unknown settings, variables and flags #4910]- Chosen: Copy the census list into the pull request body. The
recordclass keepsdocs/adr/out of the check, so the findings appear in no check output. - Rejected: Read the findings from the check output only. The check reads no ADR, so its output holds no ADR finding.
- Rejected: Re-run the three rules over the current 30 ADRs. The census read 23 ADRs at
cd6fb76; the 30 in force today include later records, so a fresh scan does not reproduce the 11 findings.
- Chosen: Copy the census list into the pull request body. The
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 29, 2026
Both reference the same content census on ADRs in force, but #4918 generates an index file while this candidate corrects content in the ADRs themselves.devops-cli-service commentedon Nov 29, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.