Repository navigation
feat(review-loop): closing wave — exit residue gets fixed, not logged - #71
Conversation
…; cap parks fix-then-park The tech-debt LOG's exit intake becomes ONE CLOSING WAVE: the same wave machinery with no verifying engine round after it, which places it outside the 4-wave cap by construction (the cap bounds the wave->re-review loop). Coverage for the closing delta is the fixer's test evidence, reviewer grading, and CI — the 'approve with nits' landing pattern. The wave is all-or-nothing: full grading pass -> push and merge on that head (the ESCALATE pin now names the reviewed head advanced by the graded closing push); any item failing its one re-wave -> a new sanctioned reset to wave-base (unpublished history only, beside the unauthorized-writer reset) and the engine-reviewed head merges with residue LOGged exactly as before. At the round cap with live blockers, the needs-human park now runs the closing wave FIRST over all outstanding findings, blockers included — fixed-but-unverified beats known-broken when the human reads the PR next, and the resumed review's fresh rounds are the missing verification. The park note is written as a QA request (rounds spent, what the final round found, fixed-but-unverified, final QA needed); no merge, no separate QA ticket. The seam-clustered ready-for-architect path skips the closing wave: the seam IS the observation that fixes don't hold there, and churn on code awaiting a re-cut muddies the architect's read. LOG's remaining intakes: stated-reason departures (churn > worth) and closing-wave fallback residue. Scale runs keep their LOG route unchanged — they have no waves and never merge.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a06b3aa935
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| `git reset --hard <wave-base>`, remove newly-untracked paths introduced | ||
| after the wave boundary (never blanket `git clean`), and verify HEAD | ||
| equals `<wave-base>` with a clean worktree/index. Merge the |
There was a problem hiding this comment.
Reset to the initial closing-wave base
When a closing-wave fix is rejected, the required re-wave is another wave boundary, so the unchanged mechanics record a new <wave-base> after the rejected commit. If the correction is also rejected or empty, this reset therefore preserves the first rejected commit, and the following instruction merges it as though the engine-reviewed head had been restored. Preserve a separate pre-closing SHA across all attempts and reset to that SHA instead.
Useful? React with 👍 / 👎.
| still unrouted ride ONE CLOSING WAVE: the same wave machinery with no | ||
| verifying engine round after it — which is why it stands outside the | ||
| wave cap (the cap bounds the wave→re-review loop; a wave that spawns | ||
| no re-review is not in it). The engine never sees the closing delta, | ||
| so its whole coverage is the fixer's test evidence, your grading, and |
There was a problem hiding this comment.
Add pressure-eval evidence for the closing-wave behavior
This changes auto-merge behavior to land a fixer-produced delta that the review engine explicitly never sees, but the commit changes only protocol documentation and adds no before/after pressure-eval evidence for success, failed-rewave rollback, or cap-park scenarios; the existing QA test remains substring-based and cannot validate worker behavior. Run the required behavioral evaluation and report the before/after results before enabling this path. CLAUDE.mdL34-L39
Useful? React with 👍 / 👎.
| Push what grading accepts, then set the ticket to needs-human with a | ||
| note written as a QA request — rounds spent, what the final round | ||
| found, that everything was fixed but never engine-verified, final QA | ||
| needed. Never merge on this path (PARKED tier). A closing wave that | ||
| fails grading here needs no fallback: unaccepted commits and the | ||
| ledger stay local per the push gate, and the park proceeds. |
There was a problem hiding this comment.
Report failed pre-park waves instead of accepted fixes
If any pre-park closing-wave item remains rejected or empty, the push gate forbids the entire unpushed range because pending-rejected commits are blockers and every fixed item must pass; therefore no accepted subset can be pushed. These instructions nevertheless say to push what grading accepts and tell the human that everything was fixed, while the PR branch remains unchanged and the failed commits exist only locally. Define an atomic failure/reset disposition or make the park note accurately identify what was not pushed and remains unresolved.
Useful? React with 👍 / 👎.
| no re-review is not in it). The engine never sees the closing delta, | ||
| so its whole coverage is the fixer's test evidence, your grading, and | ||
| CI — and the wave is all-or-nothing: every item graded and accepted → | ||
| push and merge on that head; any item still failing after its one | ||
| re-wave → fall back (wave-board.md: reset the unpushed wave to its | ||
| wave-base), merge the engine-reviewed head exactly as if no closing |
There was a problem hiding this comment.
Wait for closing-head checks to register before merging
On repositories whose CI is created asynchronously after a push, the closing wave can push and immediately reach ESCALATE before any check suite exists for the new SHA; the protocol then treats the empty check list as a repository with no checks and merges the unverified delta. Checked gh pr checks --help: it only “Show[s] CI status,” documents exit 8 for checks already pending, and provides no barrier for checks that have not registered yet. Add a bounded registration wait or arm auto-merge for the newly pushed closing head instead of permitting the no-check merge path immediately.
Useful? React with 👍 / 👎.
…grading carve-out pointers Codex P2: the cap-park QA note claimed 'everything was fixed' unconditionally, but a partially-failed closing wave can leave findings unfixed — and a rejected commit poisoning the unpushed range keeps even accepted sibling fixes local. The note is now a recipe of actual outcomes (what landed engine-unverified, what stayed unfixed or gate-held), and the push instruction defers to the push gate instead of implying a partial push. Comprehension-probe friction: the grading bullets' unconditional needs-human park now points at the closing wave's own fallback, and the closing-wave section explicitly grants each item's one re-wave (the EMPTY bullet's 'if under the wave cap' has no truth value for a wave that stands outside the cap).
What
The qa-loops Reviewer protocol's exit no longer logs residual non-blockers to the tech-debt tracker — it fixes them with a closing wave, and a round-cap park now fixes everything it knows about before parking.
Files
skills/qa-loops/SKILL.md— TRIAGE LOG intake, RE-REVIEW exit + cap-park paths, FIX WAVES cap line, ESCALATE merge pin, Role write-power enumerationreferences/wave-board.md— new "The closing wave" section: cap exemption, fallback reset procedurereferences/operation-manual.md— tech-debt sink + wave-cap descriptionsDesign
Grilled and approved in-session (direct track): provenance level (grading+CI, no closing sweep), atomic fallback, park-note-as-QA-request over a separate ticket, seam-path exemption. Follows the wave-everything precedent (8d9e6b8) of rationale-in-commit-message.