Skip to content

fix(pr): publish reviewed corrections with pending GitHub gates - #168289

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/correction-publication-github-handoff
Oct 10, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/correction-publication-github-handoff

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Reproduced the original refusal in three regression cases before the repair.
  • Correction preparation: 45 passed; publication/sync/resume: 19 passed; native correction merge/recovery: 23 passed. These exercise real Git/Bash owners with deterministic external GitHub fixtures, not live GitHub proof. Negative cases retain the incoming NEEDS WORK review and reject stale/missing bindings, changed review authority, missing/failed required gates, missing ClawSweeper review, and unqualified pending recovery.
  • Sibling native preparation/hosted/pending merge tests: 44 passed. Canonical wrapper inventory: 1 passed, 16 filtered out.
  • Independent P0–P2 autoreview completed. Its test-table coverage finding was corrected; the previously unreachable pending-recovery case now executes and passes. The hosted-alias fixture was also corrected to load the real publication owner and supply the complete native receipt.
  • Changed-file checks passed formatting, ratchets, all four root-test typecheck shards, dependency and boundary guards. Final tooling types, scripts lint (1,339 files), changed-test lint, Bash syntax, and git diff --check passed.
  • Inherited check failure: the complete changed-file command fails its dead-export scan on PUBLIC_SESSION_ENTRY_SCRIPT in src/gateway/control-ui-public-session-render.ts and isClaudeLikeLiveAgent in src/gateway/live-agent-probes.ts. Both identical failures reproduced in an untouched checkout of baseline 6d3f75a1baa71ea5f51db7150ba1eb2d6f067be1. 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

roboclaw-bot and others added 2 commits October 10, 2026 06:40
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
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 10, 2026 06:41
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M labels Oct 10, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Allows 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.

  • Before: Publication refuses the github_pending gate disposition.
  • After: Publication succeeds with a head-bound pending disposition, without recording successful checks.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused implementation with meaningful owner-boundary coverage and no identified defect; validation remains fixture-based.
Proof confidence 🦐 gold shrimp (3/6) The ordinary live-proof gate exempts this collaborator-authored PR; supplied production-owner fixtures cover allowed publication, forbidden bindings, and changed review authority before publication or merge effects, with GitHub responses remaining synthetic.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Maintainers selecting the default GitHub-pending mode cannot publish independently reviewed corrections.
Reason: The collaborator-authored PR explicitly sponsors this bounded policy extension and retains the original correction safeguards.

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
Reviewed head: 0420592ca74e44e42c15dae41e9b8c9307843fa2

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied validation uses synthetic GitHub fixtures and does not demonstrate live hosted publication or auto-merge enforcement.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Correction publication gate policy changes intended behavior with a stated reason (78d5bed: Correction admission intentionally required completed candidate gates, apart from the separately authorized protected Crabbox route.)
  • Publication receipt and sync binding keeps the original intent (4373f42: Advance publication authority only through the verified writer receipt while keeping every other review artifact fixed.)
  • Correction baseline refresh instructions changes intended behavior with a stated reason (da63d5f: Refreshed candidates require fresh exact-candidate review and qualification; the PR updates that qualification to include its explicitly pending mode.)
  • Pending recovery admission keeps the original intent (78d5bed: Correction recovery previously inherited the publication gate's rejection of github_pending; the new explicit recovery check preserves that restriction for unqualified routes.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 07087cb adds scripts/pr-lib/merge.sh:241 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 07087cbe4674; files: scripts/pr-lib/merge.sh)
  • Vincent Koc: Raw commit 4373f42 adds scripts/pr-lib/prepare-core.sh:445 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4373f42f5fb8; files: scripts/pr-lib/prepare-core.sh)

PR surface

Tests +121, Docs 0, Other +17. Total +138 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 196 75 +121
Docs 1 2 2 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 23 6 +17
Total 8 221 83 +138

Labels

Label changes:

  • add P2: Improves a bounded maintainer publication workflow without changing product runtime behavior.
  • add merge-risk: 🚨 automation: Changes publication and recovery admission; the collaborator-authored direction explicitly accepts pending checks while preserving enforced merge gates.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Improves a bounded maintainer publication workflow without changing product runtime behavior.
  • merge-risk: 🚨 automation: Changes publication and recovery admission; the collaborator-authored direction explicitly accepts pending checks while preserving enforced merge gates.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

Reviewed October 10, 2026, 2:47 AM ET / 06:47 UTC.

@roboclaw-bot
roboclaw-bot merged commit f55b31f into main Oct 10, 2026
181 of 182 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/correction-publication-github-handoff branch October 10, 2026 06:49
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant