chore(agents): clarify post-acceptance PR handoff - #7015
Conversation
📝 WalkthroughWalkthroughThe engine implementer skill now documents post-acceptance PR handoff rules. It separates immutable acceptance evidence from mutable branch-head status and defines when to update or reset review evidence. ChangesPost-acceptance PR handoff
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.claude/skills/engine-implementer/SKILL.md:
- Around line 134-136: Before emitting the immutable Final Report snapshot in
the Post-acceptance PR handoff, verify that the actual branch ref backing the PR
still points to CANDIDATE_SHA, in addition to the existing
IMPLEMENTATION_WORKTREE HEAD check. Record the equality only when both
references match the accepted candidate, preserving the existing snapshot and
receipt evidence behavior.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 8b167c9e-db05-468f-b34b-79f1cb042b71
📒 Files selected for processing (1)
.claude/skills/engine-implementer/SKILL.md
| ### Post-acceptance PR handoff (non-gating) | ||
|
|
||
| Final acceptance emits an immutable Final Report snapshot: `Pipeline-reviewed head == Current branch head == accepted CANDIDATE_SHA`, `Pipeline status: current`, and `Current-head review: none`. Do not alter or replace that snapshot, the accepted candidate SHA, or any canonical receipt evidence after acceptance. |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Verify the PR head before recording the accepted snapshot.
Line 132 verifies only IMPLEMENTATION_WORKTREE HEAD == CANDIDATE_SHA. It does not verify the branch ref that backs the PR. If that ref moved, line 136 can record Current branch head == accepted CANDIDATE_SHA while the PR contains another commit. Compare the actual PR branch head with CANDIDATE_SHA before emitting this equality.
Proposed wording
-Final acceptance emits an immutable Final Report snapshot:
+After verifying that the PR branch head equals the accepted CANDIDATE_SHA, final acceptance emits an immutable Final Report snapshot:📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| ### Post-acceptance PR handoff (non-gating) | |
| Final acceptance emits an immutable Final Report snapshot: `Pipeline-reviewed head == Current branch head == accepted CANDIDATE_SHA`, `Pipeline status: current`, and `Current-head review: none`. Do not alter or replace that snapshot, the accepted candidate SHA, or any canonical receipt evidence after acceptance. | |
| ### Post-acceptance PR handoff (non-gating) | |
| After verifying that the PR branch head equals the accepted CANDIDATE_SHA, final acceptance emits an immutable Final Report snapshot: `Pipeline-reviewed head == Current branch head == accepted CANDIDATE_SHA`, `Pipeline status: current`, and `Current-head review: none`. Do not alter or replace that snapshot, the accepted candidate SHA, or any canonical receipt evidence after acceptance. |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.claude/skills/engine-implementer/SKILL.md around lines 134 - 136, Before
emitting the immutable Final Report snapshot in the Post-acceptance PR handoff,
verify that the actual branch ref backing the PR still points to CANDIDATE_SHA,
in addition to the existing IMPLEMENTATION_WORKTREE HEAD check. Record the
equality only when both references match the accepted candidate, preserving the
existing snapshot and receipt evidence behavior.
Summary by CodeRabbit