Skip to content

feat(auto-ticket): scope follow-up criteria and keep the PR description true (3.32.0) - #127

Merged
devondragon merged 6 commits into
mainfrom
devon/ccm-followup-scope
Nov 25, 2026
Merged

devondragon merged 6 commits into
mainfrom
devon/ccm-followup-scope

Conversation

@devondragon

Copy link
Copy Markdown
Owner

Summary

Two fixes from reeve-dashboard PR #161 and #165 (2026-11-24), released as 3.32.0.

Fix 1: a follow-up's acceptance criteria check only its own change

RD-145 and RD-146 each asked for 20 clean runs of the full npm test suite while the other ticket's flaky test was still in it, so RD-145's session fixed the other ticket's file (703e37e) and RD-146 hit a merge conflict.

  • skills/auto-ticket/SKILL.md (Follow-up descriptions): a criterion never requires something ## Out of scope excludes or a whole-suite result other known failures can block; a flaky test's criterion names the test and its file; follow-ups filed in one run are checked against each other.
  • bin/ccm-followup-check: new rule criteria-whole-suite. A change follow-up criterion that says "full ... suite", "whole suite", "entire suite", "all tests", or "every test" and names no file in backticks fails. With --carried-over it is a warning only.
  • skills/work-ticket/SKILL.md (Step 6, and the autonomous Step 6 bullet): when a criterion would need an out-of-scope change, do not make it; meet the criterion as far as the ticket's change can, name the other failures in the PR body, and report a follow-up. Not a park.
  • skills/review-ticket/SKILL.md: such a criterion is not missing, and the review never asks for the excluded change. Without this, the review's missing-AC check would send the excluded change back as a fix or park the run.

Fix 2: the PR description stays true after a later push

PR #165's description still said the stepper-review failures "are left for a follow-up" after 703e37e fixed them.

  • skills/pr/refresh-description.md (new): read the description, list git log --first-parent --no-merges {described_head}..HEAD, and edit only lines a commit made false or changes it does not mention, with gh pr edit --body-file -. Closes lines, the ticket link, and the ## OpenSpec section are never changed. A failed read or edit is never a park.
  • skills/auto-ticket/SKILL.md: Step 2 keeps described_head. New Step 4g runs the check once after the feedback loop, before finish, when the head moved. It also gets a summary line and an error-table row.
  • skills/auto-ticket/autonomous-contract.md §4 step 5: a park runs the check before the parked note.
  • skills/pr/SKILL.md: on a branch with an open PR, run the check instead of creating a second PR.

Where the refresh lives, and why. The rules sit beside /ccmagic:pr, the skill that writes the description. The orchestrator runs them, because the steps that push cannot: a work-step fix pass may not run any gh pr command, and the push step (haiku) never reads the description. The orchestrator also sees every push in the run, already posts its own PR comments, and holds gh grants. A description edit is not a code change, so it does not cross the "orchestrator never edits code" rule, and the stop hook does not count gh pr edit.

Release

Version 3.32.0 in plugin.json and marketplace.json, a CHANGELOG entry, the README, and a regenerated tests/every-ticket-since-baseline.diff. Not tagged.

Testing

  • bash tests/run.sh: 546 passed, 0 failed.
  • 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 Docker image).
  • New tests: followup_change_whole_suite, skills_criterion_out_of_scope, skills_pr_description_refresh, plus more checks in skills_auto_ticket_follow_up_shapes.

…hange

A change follow-up's criteria check only what its ## Change changes: never
something ## Out of scope excludes or a whole-suite result other known
failures can block (RD-145 and RD-146 each needed the other's fix).
ccm-followup-check fails a whole-suite criterion that names no file in
backticks (criteria-whole-suite), and only warns with --carried-over.
work-ticket meets such a criterion as far as the ticket's own change can
and reports the rest instead of making the excluded change or parking;
review-ticket does not ask for the excluded change.
The orchestrator keeps described_head, the PR head the description was
written for. Step 4g, once after the feedback loop and before finish, and
route-and-stop before the parked note, list the commits since and edit
only the description lines a commit made false or the changes it does not
mention, with gh pr edit --body-file. A failed read or edit is never a
park; the summary says the description may be stale. The rules live in
skills/pr/refresh-description.md beside the PR skill that writes the
description, and /ccmagic:pr follows them on a branch with an open PR.
…on check

- review-ticket: a PR body that does not name other failures is a
  non-blocking note, since a fix pass cannot edit the PR body; the work
  step reports them as an "other failures: " follow-up and Step 4g adds
  the line.
- refresh-description.md: read the base from the PR, list commits up to
  the PR head from gh, count a merge only for files the PR changes, read
  the body again before the edit, report a read failure without a SHA,
  and give a stdin glab form.
- auto-ticket: described_head only for a PR created in this run; wait for
  CI again after a description edit; drop Steps 0 and 0b from the list.
- ccm-followup-check: a whole-suite criterion needs a test file in
  backticks and a pass word; plurals, "all unit tests", and continuation
  lines are matched.
@devondragon
devondragon merged commit db4b160 into main Nov 25, 2026
2 checks passed
@devondragon
devondragon deleted the devon/ccm-followup-scope branch November 25, 2026 16:03
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