Skip to content

fix(docs): correct unknown names in ADRs in force #7754

Backlog

Description

@devops-cli-service

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_class on docs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.md and calls hand_written_documents on a root that holds that file.
  • THEN document_class returns record, and hand_written_documents lists no path under docs/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 runs uv run devops ci test tests/invariants/test_adr_records.py.
  • THEN each finding has one dated Status History line, 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: accepted that no record supersedes: 0005-0010, 0013, 0015, 0017, 0018, 0021-0026, 0028, 0029, 0031-0035, 0037-0040, 0042-0044. The four proposed records (0027, 0030, 0036, 0041) and the ten superseded records (0001-0004, 0011, 0012, 0014, 0016, 0019, 0020) are not in force. Each text is a file under docs/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 docs runs the docs rules, and devops ci --check --only docs runs only that row. The row runs check_documented_paths, check_documented_env_vars, check_documented_settings and check_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]*.md is the record class in CONST_DOCS_INVENTORY, and the three name checks read hand_written_documents only. The inventory comment gives the reason: a record is history and is never rewritten to match later code. tests/docs/test_docs_inventory.py asserts that the path is record and 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 History section: YYYY-MM-DD: Fact out of date: <what> (#N). Do not edit the body, the status or the date. docs/adr/README.md allows only a status key change, one dated Status History line or a broken-link target fix, and the body-hash test 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 History line per finding. docs/adr/README.md:44-60 allows 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:50 says an agent never edits the body of an accepted record, and the body-hash test 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.
  • 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:line lines from the census at cd6fb76 for the reviewer. The dated Status History lines 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 record class keeps docs/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.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/bug
    scope/docs
    source/agent
    status/new
    value/medium
    effort/low
    on Nov 29, 2026
  2. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    ContributorAuthor
  3. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/docssource/agentstatus/newtype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions