Skip to content

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
devondragon merged 4 commits into
mainfrom
devon/rv-175-178
Nov 24, 2026
Merged

devondragon merged 4 commits into
mainfrom
devon/rv-175-178

Conversation

@devondragon

@devondragon devondragon commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

What changed

RV-178: standalone skills review the PR head again after a push. /ccmagic:auto-ticket has re-reviewed after a late push since 3.15.0 (Step 4e and 4f), but work-ticket, pr-feedback, and finish-ticket run on their own reviewed once and never compared heads, so Reeve parked runs as review-not-clean (RD-97, RD-71, RD-28, AIE-351). The rule is now in skills/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 reads gh pr view --json headRefOid, reruns /ccmagic:review-ticket on the new head (a delta report when an earlier review exists), and confirms the report's head: equals the PR head, within max_review_fix_passes reruns.

  • 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.
  • In autonomous mode, a review that cannot be brought to the PR head is 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, ## Change naming the file in backticks, ## Out of scope (one line at least), and ## Acceptance criteria. ccm-followup-check adds the rules goal-missing, scope-missing, scope-empty, and change-file-missing, and the output fields old_shape and warnings. A description with no Goal: line and no ## Out of scope section is the pre-3.31.0 shape. It fails unless --carried-over is passed, in which case it passes with an old-shape warning. 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).
  • New tests:
    • followup_change_old_shape
    • added cases in followup_change_shape_passes and followup_change_problems (file token, goal position, empty scope)
    • new wording checks in skills_auto_ticket_follow_up_shapes
    • skills_standalone_review_covers_pr_head
  • tests/every-ticket-since-baseline.diff regenerated, and review-head.md added to ADDED_SKILL_FILES_SINCE_BASELINE.

Left open

  • The skill text was not exercised in a live run.
  • The change-file-missing check is a heuristic. It accepts any backticked token with a slash, a short extension, or a known extensionless name, so a symbol like a.b counts as a file.
  • finish-ticket/SKILL.md was already over the 500-line guideline and grew slightly. work-ticket/SKILL.md stays at 498 lines.

…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.
@devondragon
devondragon merged commit 340271b into main Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant