Repository navigation
feat: RV-175 RV-178 follow-up goal and scope, and a review of the PR head after late pushes (3.31.0) - #126
Merged
Conversation
…ope section, and a named file ccm-followup-check now requires a Goal: line after the opener, a ## Out of scope section, and a file in backticks under ## Change. A draft in the shape before 3.31.0 passes with --carried-over and an old-shape warning, so earlier runs' unfiled items are still filed.
…followed the review work-ticket, pr-feedback, and finish-ticket run on their own now read the PR head with gh pr view --json headRefOid after a push that followed the review, rerun review-ticket on the new head, and confirm the report's head: equals it before they finish, merge, or hand off. The rule is in skills/work-ticket/review-head.md; orchestrated runs leave it to auto-ticket Step 4e and 4f.
…ck and file tokens - review-head.md: reach the PR head with checkout, fetch, and merge --ff-only FETCH_HEAD instead of a bare pull, which fails on a branch with no upstream; report a failed fetch apart from a divergence. - Require status: clean on the head-matching review; fixable-findings gets a fix loop bounded by max_review_fix_passes, or is a stop in finish-ticket. pr-feedback's done says the same. - A review of uncommitted changes covers the first push; finish-ticket reads the posted review only from the run's own login and falls back to the commit the report names. - finish-ticket: an orchestrated conflict-merge push returns needs-human instead of merging an unreviewed head; Review head line sits under Reviews; conflict handling and the error table move to support files so SKILL.md is under 500 lines. - ccm-followup-check: a file is a path, a known extension, a dot name, or a known extensionless name, with an optional :line suffix; dotted symbols are not.
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.
What changed
RV-178: standalone skills review the PR head again after a push.
/ccmagic:auto-tickethas re-reviewed after a late push since 3.15.0 (Step 4e and 4f), butwork-ticket,pr-feedback, andfinish-ticketrun on their own reviewed once and never compared heads, so Reeve parked runs asreview-not-clean(RD-97, RD-71, RD-28, AIE-351). The rule is now inskills/work-ticket/review-head.md. After any push to the PR branch that followed the review (a fix of a finding, PR feedback, a base merge), the skill readsgh pr view --json headRefOid, reruns/ccmagic:review-ticketon the new head (a delta report when an earlier review exists), and confirms the report'shead:equals the PR head, withinmax_review_fix_passesreruns.work-ticket: runs the check after it opens the PR and after each later push, before In Review. Step 5's three review points now say a fix made after the review gets a second review.pr-feedback: runs it as autonomous step 5 on a top-level pass that pushed, before its handshake. The interactive next steps list it.finish-ticket: runs it in Step 3d before Step 5b, the merge, or the hand-off, and again after a conflict-merge push in Step 6. The sanity check gets a "Review head" line.needs-human. Interactively, the skill names both commits and offers the rerun. Orchestrated runs skip the check.RV-175: change follow-ups carry a goal, scope, and a named file. The no-decision shape is now:
Goal: <one sentence>on the line after the "Raised by ..." opener,## Changenaming the file in backticks,## Out of scope(one line at least), and## Acceptance criteria.ccm-followup-checkadds the rulesgoal-missing,scope-missing,scope-empty, andchange-file-missing, and the output fieldsold_shapeandwarnings. A description with noGoal:line and no## Out of scopesection is the pre-3.31.0 shape. It fails unless--carried-overis passed, in which case it passes with anold-shapewarning. Step 6 passes the flag only for an earlier run's draft that it reuses as kept, so carried-over items still file and their keys still dedupe. The decision shape is unchanged.The version is 3.31.0, with a CHANGELOG entry.
Testing
bash tests/run.sh: 543 passed, 0 failed. The openspec CLI is not installed locally, so its fixture tests skipped; CI installs it.shellcheck -x bin/ccm-* hooks/*.sh tests/run.sh tests/relay-smoke.sh tests/stubs/gh evals/run.sh: clean (local shellcheck, not the 0.9.0 image).followup_change_old_shapefollowup_change_shape_passesandfollowup_change_problems(file token, goal position, empty scope)skills_auto_ticket_follow_up_shapesskills_standalone_review_covers_pr_headtests/every-ticket-since-baseline.diffregenerated, andreview-head.mdadded toADDED_SKILL_FILES_SINCE_BASELINE.Left open
change-file-missingcheck is a heuristic. It accepts any backticked token with a slash, a short extension, or a known extensionless name, so a symbol likea.bcounts as a file.finish-ticket/SKILL.mdwas already over the 500-line guideline and grew slightly.work-ticket/SKILL.mdstays at 498 lines.