Repository navigation
feat(dev): adr-lint checks the engine index and mentions of missing ADRs - #112
Merged
Merged
Conversation
The engine's architecture page indexes the engine ADRs. adr-lint now fails when an engine ADR has no row there, or when the page links an ADR that does not exist. An index is required only when its folders hold an ADR. adr-lint also reads every Markdown page, except CHANGELOG.md, scratch, fixtures, build output and the greenfield templates. A page that names an ADR path or an "ADR NNNN" number no folder holds fails, so a deleted ADR cannot stay referenced in prose. The number check cannot tell folders apart; the module docstring says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes two gaps in
make adr-lint(from #111):audit/engine/docs/architecture/README.mdindexes the engine ADRs. An engine ADR with no rowthere fails, and so does a row that links an ADR that does not exist. An index is required only when its folders
hold an ADR.
CHANGELOG.md, scratch, fixtures, build outputand the greenfield templates. A page that names an ADR path (
adrs/0004-slug.md,decisions/...) or an"ADR NNNN" number that no ADR folder holds fails, so a deleted ADR cannot stay referenced in prose. Limit: the
number check cannot tell folders apart, so "ADR 0001" passes while any folder has a 0001.
Nothing in the repository is flagged today. The policy page, the style guide and the dev-tooling reference say what
the lint now checks.
Checks
make check,make security,make docs-lint(baseline 647),make commit-lint RANGE=origin/dev..HEAD: pass.dev/tests/test_adr_lint.py.🤖 Generated with Claude Code