Repository navigation
fix(pr): publish reviewed corrections with pending GitHub gates - #168289
Conversation
Keep the pending disposition bound to the exact reviewed candidate and verified hosted receipt. Preserve native merge and recovery qualification without fabricating successful proof. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 3761c860-e947-4f73-8541-b6c4e062f369
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesAllows independently reviewed corrections to publish with exact-candidate pending GitHub gates while preserving merge and recovery checks. Example: A maintainer prepares correction PR 4242 using OPENCLAW_PR_GATES_REMOTE=github.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a collaborator-authored, focused extension of correction publication policy, and current main still rejects this workflow; no concrete introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe native PR tooling consumes review artifacts, candidate commits, gate dispositions, and publication receipts to authorize branch publication and subsequent GitHub merge requests. flowchart LR
A[Incoming review] --> B[Corrected candidate review]
B --> C[Native gate qualification]
C --> D[Publication owner]
D --> E[Verified hosted receipt]
E --> F[Merge admission]
F --> G[GitHub enforced checks]
Technical reviewBest possible solution: Extend the existing pending-gate owner to reviewed corrections while retaining exact-head review, verified publication receipts, and qualified recovery. Do we have a high-confidence way to reproduce the issue? Current-main source and the replaced regression expectation establish the intentional pending-correction refusal; no target code was executed during this review. Is this the best way to solve the issue? The patch extends the existing gate and publication owners with a small change and preserves the separate recovery qualification instead of adding a parallel workflow. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against adbdcd9348ab. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +121, Docs 0, Other +17. Total +138 across 8 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 10, 2026, 2:47 AM ET / 06:47 UTC. |
|
Merged via squash.
|
…claw#168289) * fix(pr): publish reviewed corrections with pending GitHub gates Keep the pending disposition bound to the exact reviewed candidate and verified hosted receipt. Preserve native merge and recovery qualification without fabricating successful proof. Co-authored-by: steipete <[email protected]> * fix(pr): publish reviewed corrections with pending GitHub gates Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 3761c860-e947-4f73-8541-b6c4e062f369 --------- Co-authored-by: steipete <[email protected]>
What Problem This Solves
Fixes: native preparation refuses to publish an independently reviewed correction when the maintainer selects the default GitHub-pending gate mode.
User Impact
No runtime or end-user change. Maintainers can publish reviewed corrections and hand required checks to GitHub without misrepresenting pending checks as successful local proof. This intentionally extends the correction policy introduced in #149068; it does not waive signing, exact-head review, CI, security, or enforced reviews.
Why This Change Was Made
The existing gate owner now binds a pending disposition through
HOSTED_GATES_TARGET_HEAD_SHA, rather than requiring a success-only stamp. Verified publication receipts remain the only way to map the reviewed local candidate to a different hosted commit with the same tree. Sync preserves that binding too.Ordinary pending-gate merge still requires exact-head auto-merge, completed ClawSweeper review, the enforced
openclaw/ci-gate, and no known failed required checks. Pending correction replacement recovery remains restricted to the existing explicitly qualified routes. The separately authorized Crabbox path is unchanged. No wrapper trust exception or local self-admission is added.Evidence
git diff --checkpassed.PUBLIC_SESSION_ENTRY_SCRIPTinsrc/gateway/control-ui-public-session-render.tsandisClaudeLikeLiveAgentinsrc/gateway/live-agent-probes.ts. Both identical failures reproduced in an untouched checkout of baseline6d3f75a1baa71ea5f51db7150ba1eb2d6f067be1. Neither owner nor Knip configuration is changed here. No scan was suppressed or relabeled passing.Single-worker test cost: the standalone merge file took 51.20 s Vitest wall time (55.81 s including the repository runner); its test bodies took 50.097 s. In the batched runs, preparation/publication bodies took 28.155 s / 25.709 s; separate per-file wall times were not captured. These fixtures need real process-lock, Git publication, and retained-outcome boundaries; a helper mock would not prove them. The sibling command took 31.58 s Vitest wall time. Exact-head CI run 38031815967 passed. Its changed Node jobs took 217 s / 193 s and the changed-boundary job 106 s, including setup and additional tests; these are job times, not isolated per-file timings. Both enforced CI/security gate contexts passed, and the completed exact-head ClawSweeper review reported no findings. Native landing verified commit
f55b31f50edbb9b7c2fb2c87504c9b3095bb9160.Contributor credit: @steipete requested and authorized this separately reviewed workflow repair. The implementation commit preserves the exact human co-author trailer.
Worked on by
Work sessions
View the OpenClaw team session