Repository navigation
refactor: split apply guards and review planning into focused modules - #1020
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 5:31 AM ET / 09:31 UTC. ClawSweeper reviewWhat this changesThe branch extracts ClawSweeper apply-guard and review-planning logic into focused modules, replaces partial checkouts with full depth-one checkouts for selected workflows, and validates synthetic terminal receipts against their item, command kind, and head marker. Merge readinessThis PR remains necessary: it cleanly separates two oversized automation coordinators, removes checkout modes that can trigger lazy promisor fetches during terminal work, and binds synthetic autofix receipts to the exact command context. No discrete correctness defect was found in the current head; retain it for final current-head check completion and maintainer review. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper selects GitHub issues and pull requests for review, then applies guarded maintenance actions and records durable terminal acknowledgements. This PR changes the internal planning and safety-gate decomposition plus the GitHub Actions checkout and receipt-validation paths that publish completion state. flowchart LR
A[Open GitHub items] --> B[Review planner]
B --> C[Codex review jobs]
C --> D[Apply safety guards]
D --> E[Terminal acknowledgement]
F[GitHub Actions checkout] --> E
E --> G[Durable lifecycle receipt]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the focused module decomposition and full checkout behavior, then land only after the current-head workflow checks confirm the checkout change remains safe across CI, CodeQL, and terminal finalization. Do we have a high-confidence way to reproduce the issue? Yes for the receipt path: the PR body shows the compiled CLI operating on the exact live synthetic marker and producing a verified receipt. The historical checkout failure is source-addressable through removal of the partial-clone filter, although this read-only review did not execute a GitHub-hosted finalization run. Is this the best way to solve the issue? Yes. The extraction preserves the public coordinator factories while isolating cohesive concerns, and removing AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2d1a40bfa643. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
|
@clawsweeper re-review |
1 similar comment
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
…openclaw#1020) * refactor: split apply guards and review planning into focused modules * fix: avoid lazy checkout failures during terminal finalization * fix: finalize synthetic autofix receipts and avoid fragile partial checkouts --------- Co-authored-by: Peter Steinberger <[email protected]>
Summary
gpt-5.6-solwithxhighreasoning; do not enable OpenClaw automerge.repair-loop-label-sweepcommand identities against their exact item, command intent, and PR head so automated autofix completions receive their durable terminal receipt instead of being retried forever.Size reduction
The apply guard implementation now has separate activity, policy, proof, and capacity modules. Review planning now has separate inventory, hot-intake, dashboard, and selection modules. All extracted implementation files remain under 500 lines.
Verification
Live terminal-publication failure and executable fix proof
The actual stuck finalization run for
openclaw/openclaw#117443failed duringactions/checkout, before any acknowledgement could execute:The production workflow now performs a regular
fetch-depth: 1checkout without ablob:nonepromisor clone. Its executable workflow test parses the actual YAML and asserts that the terminal-finalization checkout retains depth one while omitting the partial-clone filter:Real offline review still passes on the exact proposed branch:
The previously stuck
openclaw/openclaw#117443uses the real synthetic markerrepair-loop-label-sweep:autofix:117443. Running the actual compiled terminal-status CLI against the exact live bot comment now emits a durable, provenance-bound completion receipt:{"revision":"ff05bfde8a6165da07f31f98cb1cbffa3c1c68dc","checkout":{"depth":1,"promisor":false,"succeeded":true},"terminalFinalization":{"target":"openclaw/openclaw#117443","commandCommentId":5151931725,"completionCommentId":5151931725,"receipt":"verified"}}This proof clones the exact proposed head at depth one with no promisor remote, builds the actual repair bundle in that fresh checkout, runs the real terminal-status CLI against the exact live #117443 bot comment, and confirms the resulting GitHub Actions outputs contain
terminal_status_verified=truewith both durable receipt IDs.The focused production workflow, comment-router, terminal-receipt, and checkout suite passes:
Safety invariants