Repository navigation
feat(auto-ticket): scope follow-up criteria and keep the PR description true (3.32.0) - #127
Merged
Merged
Conversation
…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.
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.
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 testsuite 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 scopeexcludes 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 rulecriteria-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-overit 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, listgit log --first-parent --no-merges {described_head}..HEAD, and edit only lines a commit made false or changes it does not mention, withgh pr edit --body-file -.Closeslines, the ticket link, and the## OpenSpecsection are never changed. A failed read or edit is never a park.skills/auto-ticket/SKILL.md: Step 2 keepsdescribed_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 anygh prcommand, 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 holdsghgrants. 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 countgh pr edit.Release
Version 3.32.0 in
plugin.jsonandmarketplace.json, a CHANGELOG entry, the README, and a regeneratedtests/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).followup_change_whole_suite,skills_criterion_out_of_scope,skills_pr_description_refresh, plus more checks inskills_auto_ticket_follow_up_shapes.