Repository navigation
fix(review): stop showing non-actions as remaining merge work - #1348
Conversation
Record canonical next-step intent separately from automation routing. Explicit none omits only the derived next-step checkbox and count; required human actions and independent blockers remain visible regardless of workCandidate. Preserve conservative fallback for absent, malformed, or ambiguous legacy report intent without migrating historical records. Keep ratings, automation markers, and issue guidance unchanged, and document the paired renderer and producer/report proof.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 1:41 AM ET / 05:41 UTC. ClawSweeper reviewWhat this changesThe PR adds an explicit next-step assessment to review decisions so non-action routing text no longer creates a remaining merge-checklist item. Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR remains necessary because current main still derives merge work from routing prose. The introduced typed-intent path is coherent, preserves conservative handling for legacy reports, and has focused coverage without a discrete correctness defect found. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper converts review decisions into durable reports and public pull-request checklists. This change carries a typed next-step assessment through parsing and report storage into the checklist renderer. flowchart LR
A[Review decision] --> B[Decision parser]
B --> C[Durable report]
C --> D[Next-step reader]
D --> E[Checklist renderer]
E --> F[Merge readiness comment]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Use typed producer-owned intent for new reports while retaining the conservative prose fallback for historical reports that lack valid metadata. Do we have a high-confidence way to reproduce the issue? Yes. The submitted paired replay gives a concrete current-head path: render the same serialized report through baseline and candidate renderers and compare checklist and readiness counts. Is this the best way to solve the issue? Yes. Carrying explicit intent through the decision and report boundary is narrower and safer than adding phrase-specific exclusions to the existing prose heuristic. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 43553c96ab2f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Fixes an issue where maintainers see a remaining-work checkbox on an otherwise clean ClawSweeper review when its routing explanation says “No concrete repair remains after this review.” The trigger was the review on PR1341: the visible review reported no actionable defect but displayed one remaining item.
Why This Change Was Made
The renderer was treating routing prose as action intent. This change records a producer-owned
nextStepassessment, validates and persists it in the canonical report, and consumes it only for the derived Before merge next-step item.workCandidate: noneremains an automation-routing state, not permission to hide human-owned blockers.Explicit non-action removes that item; explicit required actions survive negation, contrast, and missing trigger keywords. Findings, security, proof, merge risks, decisions, and rating remediation remain independent. Contributor-changelog normalization preserves mixed or ambiguous required actions. No phrase denylist is added to the general action detector.
User Impact
New reviews with explicit non-action no longer show the bogus checkbox or inflate the remaining-item count. Genuine required actions stay visible. Issues retain their existing next-action guidance. Scores and repair/automerge markers are unchanged.
Historical reports are not migrated: absent, malformed, or ambiguous intent keeps the conservative legacy fallback. The original review’s raw structured record was not recovered; this is not a claim that it already contained the new field, and this PR does not rewrite that old comment.
OpenClaw Bay Impact
None. The observer projection does not consume this checklist. No observer routes, controls, workflow mutations, or live repair/merge eligibility change.
Documentation Impact
Updated the active implementation contract in
docs/pr-review-comments.md. Added the historical, reproducible recipedocs/proof/review-next-step-intent/README.mdwith its owner, pinned baseline, source references, commands, and explicit proof limits. No changelog edit is included.Evidence
57de5d52eed4202200b28e10da0a76e21bff5ea8.pnpm run build:nodeand 200 focused parser, renderer/count, risk, labels, prompt-policy, history, and no-op tests passed.Real Behavior Proof
Claim and exercised surface: an explicit recorded non-action must not manufacture a PR checkbox/count, while required actions and independent blockers remain visible. The replay calls the compiled production renderers with identical serialized report bytes, then separately runs the real decision parser, report writer, intent reader, and renderer.
Environment and command: Node 24+, pinned pnpm dependencies, local Node execution; no container image or lease is claimed for this replay. Baseline source is
39592f04448bdc34d37b9e7f8d5c5d7c828b73f2, built fromgit archivewith the same installed compiler. Candidate is the commit above. Follow the checked-in README to build the baseline, then run:node docs/proof/review-next-step-intent/replay.mjs --baseline-dist "$BASELINE_DIR/dist" --baseline-sha 39592f04448bdc34d37b9e7f8d5c5d7c828b73f2Observed result: all ten paired cases and the producer/report round-trip passed on the candidate head. The reported sentence produced one checkbox/count on the baseline and zero on the candidate. All three 5/6 score rows and the automation markers matched in every paired case. Controls retain required contrast/negation, keyword-free human action, independent findings/security, and conservative legacy/malformed behavior. The local receipt records exact source/build/fixture hashes and Git state.
Before / after: these images show the actual replay’s rendered Markdown in an isolated browser. Both are inspected, synthetic-only local fixtures, not screenshots of a live GitHub comment.
Limits: no live model review, publication, queue, apply, repair, or merge path is exercised by the local replay. The historical raw record is unavailable. Other independent blockers have focused regression coverage rather than exhaustive replay. No unrelated PR or OpenClaw product branch is modified.