Repository navigation
feat(code-tidying): keep a one-line ADR pointer in remove-comments - #16553
Conversation
The shipped keep list gains an ADR pointer: one line naming an existing decision record of the repository by its id or path form, restating none of its reason, at a module header or a non-obvious decision line. `necessary` keeps it through the keep list; `explanatory` keeps it because a pointer passes criterion 2, since the record it names is where the reasoning lives; `none` still keeps only the floor. A pointer to a missing record is class A, and a pointer that restates the record's reason stays ordinary rationale. Two eval cases cover the keep under `necessary` and `explanatory`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MWmASNT5Knyq99gphnV6B2
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. |
Criterion 2 checks the decision-record folder where the repository declares one, so the seed now carries a CLAUDE.md naming docs/adr/. Without it the explanatory case could keep the reason-restating pointer and fail its grader. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MWmASNT5Knyq99gphnV6B2
|
claude-security-review reviewed Security review (incremental): PR #16553, ad7ce0e → f9700f0I found no security issues. This lane already reviewed an earlier head, so this pass reported only blocking findings (CRITICAL and IMPORTANT), and there were none. Scope: one file, What changed:
Checked and not applicable:
Prior findings: the only earlier post is the no-findings summary for the earlier head. Nothing is carried forward. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): PR #16553, since This lane already reviewed an earlier head, so this pass posts only blocking findings. I read the whole incremental change: one file, What changed
What I checked
Not verified: I ran nothing, and the eval cases have not been run live against the new fixture. No embedded instructions were found in the diff or the prior findings. Verifier dropped 0 of 0 candidates. |
No related issue: owner decision to keep one-line ADR pointers in remove-comments; no tracking issue was filed.
Summary
/code-tidying:remove-commentshad no keep for a one-line comment that points at an ADR, and criterion 2 treated a reason held in the repository's ADR folder as recoverable, so a pointer such as# See docs/adr/0042was most likely deleted. This PR makes such a pointer a recognized keep.Fix
reference/keep-list.md) gains an ADR pointer: one line, names an existing decision record by the repository's id or path form, restates none of its reason, and sits at a module header or a non-obvious decision line. A pointer to a missing record is class A.explanatorykeeps it too:reference/triage.mdcriterion 2 andactions/remove.mdstep 5 say a pointer carries no rationale and passes.nonestill keeps only the floor. A comment that restates the ADR's reason stays ordinary rationale.reference/safety.mdgets an "ADR pointers" section;triage.mdgets two worked examples and a note that a pointer is not a ticket back-reference. README and thecomment_keep_listoption description name the new keep.remove-adr-pointer-kept-necessaryandremove-adr-pointer-kept-explanatory, seed a repository withdocs/adr/0007-*.mdand grade that the header pointer stays, the reason-restating pointer and a restating comment go, and code is unchanged.Verification
python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/code-tidying/evals: no FAIL; the new cases carry only theallowed_toolswarnings every case in the folder has.bash plugins/code-tidying/scripts/comment-settings.test.sh: all checks passed.scripts/check-changelog-fragments.sh --check,check-fixture-git-isolation.sh,check-orphaned-fixtures.sh,check-as-of-recheck.shpass; the pre-pushcheck-affectedpassed.Related
comment-lintgit hook still fails a kept ADR pointer undernecessaryunless it carries a URL orremove-comments-ignore, the same gap it already has for outside-constraint notes; the README now says so.session: AI Hero
🤖 Generated with Claude Code