Skip to content

feat(code-tidying): hand deleted decision rationale to record-decision - #14971

Merged
kyle-sexton merged 3 commits into
mainfrom
feat/remove-comments-adr-handoff
Nov 10, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
feat/remove-comments-adr-handoff

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: implements owner decision Q85 from the domain-language interview, round 8.

Summary

When /code-tidying:remove-comments deletes a comment that records why the repository made one of its own decisions, the reason can now survive as an ADR instead of only a staged commit-message block.

Fix

  • SKILL.md "What necessary keeps above the floor": deleted our-code rationale that names the alternative it was chosen over is an ADR candidate. In an interactive run with the architecture plugin, it is handed to /architecture:record-decision via the Skill tool (decision, alternative, comment text); that skill owns the admission test. Unattended runs, report mode and runs without the plugin list it instead. A comment naming no alternative stays a reshape flag only. The reshape flag and the staged narrative still apply.
  • actions/remove.md step 7: a new "ADR candidates" report list, with whether each was recorded, declined or not invoked.
  • The rejected-approach gotcha and ## Next mention the ADR route.

Verification

  • scripts/check-changed-skills.sh origin/main: remove-comments PASS, 0 errors.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01UJUn7MP8mf6tssdESwUFjG

kyle-sexton and others added 2 commits November 9, 2026 22:57
When remove-comments deletes a comment that gives the reason for one of
the repository's own decisions and names the alternative it beat, an
interactive run invokes /architecture:record-decision, which owns the
admission test; other runs list it under ADR candidates in the report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UJUn7MP8mf6tssdESwUFjG
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 10, 2026 04:07
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T04:07:04.686498Z
We couldn’t complete this review. Comment @codex review to try again.
f58f8b8 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 6c4064f6d56f764267b8a5ec7926001d0263e54b: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no security issues found

This review covered only the changes since f58f8b85. I read every hunk of all 3 files in the incremental list:

  • .changes/code-tidying/feat-remove-comments-adr-handoff-5f1e2a8b.md
  • plugins/code-tidying/skills/remove-comments/SKILL.md
  • plugins/code-tidying/skills/remove-comments/actions/remove.md

None of them matches a trusted-path glob.

What changed: the push fixes the two code-review threads the owner settled.

  • Who calls record-decision: the orchestrating skill now does, in step 4 of "The comment-reviewer agent", once for each ADR candidate. The comment-reviewer agent only lists candidates.
  • Where the rule lives: the ADR-candidate rule moved into its own "ADR candidates (necessary and none)" paragraph. actions/remove.md step 7 and the changeset fragment now point to it.

Checks:

  • Instruction surface: the push removes no rule. The deleted sentence comes back word for word in the new paragraph, now naming the none posture too. It still holds the same limits: only interactive runs with the architecture plugin hand a candidate on; unattended runs, report mode and runs without the plugin only list it; record-decision keeps its own admission test. Nothing in this push gives the comment-reviewer agent's tools or scope anything new: it only lists candidates.
  • Handoff path: the orchestrator passes record-decision the repository's own comment text, which this skill already reads. No credentialed lane, token, secret, external write or new trust boundary is involved.
  • Manifests, workflows and trust controls: none are touched, so there are no manifest lines to report.
  • PR context and threads: the PR description and the settled threads contain no instructions aimed at this lane.
  • Prior findings: this lane had posted no findings. Because blocking only: yes, this review reported only CRITICAL and IMPORTANT findings, and there were none.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on f58f8b85aef5a4ab67813e55141f4d80e33b03db; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 6c4064f6d56f764267b8a5ec7926001d0263e54b: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #14971, incremental (f58f8b8 → 6c4064f)

I read every hunk of the 3 files in the incremental scope: the changelog fragment, remove-comments/SKILL.md and actions/remove.md. For context I also read SKILL.md lines 87–241 at head. This lane already reviewed an earlier head (blocking only: yes), so this review reports blocking findings only.

No blocking findings.

My two earlier findings are fixed in this push:

  1. The handoff couldn't run on the default path. It now can. "The comment-reviewer agent" step 4 (SKILL.md#L106-L108) has the orchestrator hand each listed candidate to /architecture:record-decision. The new "ADR candidates" paragraph says "the orchestrator, never comment-reviewer". actions/remove.md step 7 tells the agent to list candidates only. When there is no subagent tool, the skill runs inline as the orchestrator, so the invocation is reachable there too.
  2. The posture scope was ambiguous. It is now one paragraph that names both necessary and none (SKILL.md#L158-L165). It matches the Gotchas bullet ("outside explanatory") and the updated changelog fragment.

Checks that found nothing to flag:

  • The [ADR candidates](#postures) link points to the existing ## Postures heading, which contains the new paragraph.
  • actions/remove.md now cites SKILL.md "ADR candidates", which matches the new paragraph's bold label.
  • The fragment still has bump: minor, and no plugin manifest changed, so there are no manifest lines.
  • The PR names no closing issue (it cites owner decision Q85), so I checked no acceptance criteria.
  • The PR's check-changed-skills.sh PASS is the author's claim. I did not run it.

I found no embedded instructions in the PR context, settled-threads or prior-findings files.

…-decision

The comment-reviewer agent has no Skill tool and may not ask, so the
record-decision handoff could never run on the default dispatched path.
The agent now only lists candidates; the orchestrating skill invokes
record-decision in its step 4. The ADR-candidate rule moves out of the
`necessary` list into one paragraph covering `necessary` and `none`, so
the gotcha and the changelog agree on its scope.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UJUn7MP8mf6tssdESwUFjG
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit deefc9a Nov 10, 2026
53 checks passed
@kyle-sexton
kyle-sexton deleted the feat/remove-comments-adr-handoff branch November 10, 2026 04:58
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant