Repository navigation
feat(code-tidying): pass an ADR pointer in the comment lint and keep ADR-named code uncertain - #18185
Conversation
…ADR-named code uncertain The comment lint now passes, under the necessary posture, a one-line comment holding only an ADR id or one relative path into docs/adr, when that record exists; a missing record or added reason text still fails. audit-dead-code adjudicates a candidate a decision record names as uncertain. The rename-references glossary sweep matches identifier parts as the glossary contract counts a term, and its Next lists conditional successors. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RAoAtTH8RQe4ZKtmQdB7Rh
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 62a2bcaa53
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Lane run report
Run 45048135188, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
claude-security-review reviewed Security review: PR #18185 (head b7b004b)I found no security issues. This lane already reviewed an earlier head ( Files read: all 16 changed files, every hunk, in The ADR-pointer pass and the
Skill and doc text (
Other checks:
critical-findings: 0 |
…apshot The comment lint read the record from the working tree while the source came from the index, so an untracked record passed a staged pointer and a staged record deleted from the work tree failed it. comment-lint.sh now lists the record folder from the index, the work tree under --worktree, or the pushed tips, and passes that set to comment-lint.py as --records. The record folder is no longer fixed: the team-file setting comment_adr_dir (default docs/adr) names it, and a value outside the repository is invalid, so the default applies. rename-references names the ubiquitous-language skill's "Counting a term" contract by skill, not by repository path. comment-lint.test.sh declares its read of plugin.json in its test-scope line. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RAoAtTH8RQe4ZKtmQdB7Rh
|
claude-review reviewed Code review: PR #18185 at
|
The record's Lesson 5 row names the prune action (Q1526 supersedes Q204) and the #18185 row drops "(open)" now that it merged. The repo-sweep catalog's glossary step sends removals to prune. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RAoAtTH8RQe4ZKtmQdB7Rh
Closes #18189
Summary
necessaryposture, when the record it names exists. Today the keep list keeps that pointer but the lint has no shape for it, so it fails CI undercomment_lint: block./code-tidying:audit-dead-codetreats a candidate that a decision record names asuncertain, citing the record, neverdead./docs-hygiene:rename-referencesmatches a glossary-driven rename's term inside identifiers (addLearnerforlearner) by the "Counting a term" contract of/domain-driven-design:ubiquitous-language, gated on that skill being available. Ordinary renames keep\b.## Nextsection ofrename-referenceslists conditional successors.Fix
plugins/code-tidying/git-hooks/comment-lint.py: new_adr_pointerpass. A one-line comment whose whole content is an id (ADR-0042,ADR 42,adr0042) or one relative path, optionally afterSee, passes only when the record exists in the decision-record folder. For an id, that means a file whose leading number matches. For a path, it must resolve inside the folder, from the repository root or from the file's own directory, and either name an existing file or the stem of one (docs/adr/0042matches0042-*.md). A missing record, a pointer followed by reason text, or a pointer inside a longer comment all fail.comment_adr_dir(defaultdocs/adr), resolved byscripts/comment-settings.shlikecomment_lintandcomment_lint_allowand documented in the schema and README. A value outside the repository is invalid there, andcomment-lint.pyfalls back to the default for one that escapes, so the default applies. The architecture plugin has no folder key (plugins/architecture/reference/config.md), and its discovery ladder (reference/adr-discovery.md) is prose a model runs, not something a script can walk.comment-lint.shlists the folder from the index, from the work tree with--worktree, or from the pushed tips, and passes that set as--records.keep-list.md: the ADR pointer bullet says what the lint passes, like the exit-code list bullet does.audit-dead-code/context/adjudication.md: adds a "Named by a decision record" evidence row and one line under Verdict rules.rename-references: the SKILL.md "Glossary-driven renames" section adds the identifier-part pass and names the contract by skill, not by path.context/triage.mdsays such a hit is never Certain (declarations and call sites go to the refactor-tool list, other hits to Ambiguous).context/patterns.mdpoints at the section.## Nextbullets:/docs-naming:audit-file-namesfor a whole-tree casing check, and/toolchain:checkwhen the sweep edited code or config. An "IDE or refactoring tool" bullet is left out because.claude/rules/skill-bodies-state-current-rules.mdrequires every bullet to name a/plugin:skill.docs/skill-cheat-sheet.mdis regenerated from it.comment-lint.test.shdeclares its read ofplugins/code-tidying/.claude-plugin/plugin.jsonin its test-scope line.Verification
python3 -I plugins/code-tidying/git-hooks/test_comment_lint.py: 99 tests, exit 0, including 11AdrPointercases (existing id, existing path with and without extension, a path relative to the source file, a block comment, missing record, a path outside the folder, pointer plus reason, pointer inside a longer comment, posturenone, no repository, a configured folder, and a folder outside the repository falling back).bash plugins/code-tidying/git-hooks/comment-lint.test.sh: 62 passed, exit 0. End-to-end cases:--worktree;comment_adr_dir: docs/decisionspassesADR-0007againstdocs/decisions/0007-x.md.bash plugins/code-tidying/scripts/comment-settings.test.sh: all checks passed, exit 0. The new cases check that the team file is read and the personal override ignored, and that/etc,../outsideanddocs/../..are invalid.scripts/run-ruff.sh checkon both Python files: exit 0.shellcheckoncomment-lint.shandcomment-settings.sh: exit 0.scripts/check-next-graph.py: exit 0.code-tidying-remote-comment-linthook passed on both commits.Related
record-decisiontoadr. This PR changes no line that namesrecord-decision.session: AI Hero
🤖 Generated with Claude Code
https://claude.ai/code/session_01RAoAtTH8RQe4ZKtmQdB7Rh