Repository navigation
fix(release): retain accepted ClawHub recovery attempts on timeout - #196929
Conversation
Persist validated successor custody before publication polling in the recovery CLI and parent evidence. Keep incomplete outcomes visible without changing sealed authority or replay semantics. Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: c30232a9-73fe-4da5-bea5-3edf2e44391c
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR saves accepted ClawHub recovery attempt identities before polling so interrupted recovery retains incomplete result evidence. Example: Recovery of @openclaw/[email protected] accepts successor accepted-successor, then polling times out.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs a current-main evidence-loss bug with a focused change; no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherRelease recovery consumes an authenticated original package roster, requests recovery through ClawHub, and records outcomes in CLI results or parent postpublish evidence retained by GitHub Actions. flowchart TD
A[Original sealed roster] --> B[Existing recovery owner]
C[Current parent authority] --> B
B --> D[ClawHub recovery API]
D --> E[Validated successor]
E --> F[Existing result artifacts]
E --> G[Publication polling]
G --> F
F --> H[Actions evidence upload]
Technical reviewBest possible solution: Keep progress recording in the existing recovery owner and persist validated successor custody through both existing artifact consumers before polling. Do we have a high-confidence way to reproduce the issue? The base source conclusively shows that polling failure occurs before successor recording and CLI output creation; the author reports a red-on-base regression, but this read-only review executed no target code. Is this the best way to solve the issue? The patch is the smallest complete fix identified: report validated acceptance before polling and persist it through both existing consumers, preserving failure semantics and authorization ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9c37f5420455. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +114, Docs +7, Other +40. Total +161 across 6 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
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 November 10, 2026, 7:29 PM ET / November 11, 2026, 00:29 UTC. |
…196929) Release adaptation: Persist accepted successor custody in the existing standalone recovery result. Exclude main-only parent-recovery coordinator plumbing absent on this release baseline. Canonical selected-contract closure through 65367f9; no missing prerequisites. Independent revision2 review: 0 P0/P1; exact changed blobs verified. (cherry picked from commit 65367f9) Co-authored-by: RomneyDa <[email protected]>
…penclaw#196929) * fix(release): retain accepted ClawHub recovery attempts on timeout Persist validated successor custody before publication polling in the recovery CLI and parent evidence. Keep incomplete outcomes visible without changing sealed authority or replay semantics. Co-authored-by: RomneyDa <[email protected]> * fix(release): retain accepted ClawHub recovery attempts on timeout OpenClaw-Publication: c30232a9-73fe-4da5-bea5-3edf2e44391c --------- Co-authored-by: RomneyDa <[email protected]>
Backport the Vincent-approved narrow #196927 fix to release/2026.11.5. Required-completion cells retain their owner instead of reserving a slot for a suspended continuation, so an observer can collect the original native process result with all 64 suspension slots occupied. Keep the existing suspension cap, active-resume reservation, cancellation, execution limits, and native process retention contracts unchanged. Add the native-process regression, its database-worker classification, recovery guidance, and exact 59-line regression allocation without raising the shared test budget. Release adaptation: omit the source worker-containment expectation cleanup. This branch still produces the older shared recovery hint and pretty JSON that its existing tests require; importing newer expectations would be wrong. Preserve branch-local plugin reload behavior; no unrelated companions are imported. #196924/#196929 applicability remains with the release owner. Proof: native saturation regression fails at required observer collection on base 7ca4c3c, then passes with this fix. Nine owner, agent-loop, Node/QuickJS, required-wait, native process-delivery, and prefix suites pass (172 tests). Unchanged worker runtime/containment and classifier-registry suites pass (81 tests). Core and affected-test TypeScript, type-aware lint, formatting, docs MDX/link checks, staged test-line ratchet, and diff checks pass. Companion audit limitation: the helper refuses the shallow repository because baseline and e0dd020 have no auditable merge base. Direct bounded source/owner/caller comparisons verified the required-completion contracts; no remote/history mutation or future-main import was used. Independent review and release qualification remain with the parent release owner. (cherry picked from commit e0dd020) Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Backport only the native CLI custody repair from #196929. Persist validated successor identity before waiting, retain incomplete outcomes on timeout or observation failure, and update terminal status without changing sealed authorization or parent postpublish behavior. Cover the real CLI with six transport cases and document the retained evidence. (cherry picked from commit 65367f9) Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> (cherry picked from commit 1c8fbee512e1bb00fc7872e30fa8312b90552719)
Related: #196596
What Problem This Solves
ClawHub recovery could accept a successor publication attempt, then lose its identity from the result artifact when publication polling timed out or failed. Parent-requested recovery retained only the original attempt, leaving operators without the accepted successor's custody evidence.
User Impact
Release operators can inspect the accepted successor and its last observed status after interrupted recovery. Incomplete observation remains a failure, not permission to submit replacement publication. The original sealed manifest, live authorization checks, and idempotent recovery requests are unchanged.
Why This Change Was Made
The existing recovery owner now reports progress immediately after validating a recovery response and before polling. Both existing consumers persist that progress: the native CLI result artifact and the parent's postpublish evidence. Terminal observations update the same record; successful output retains its existing shape.
This is a focused remaining gap after #196596 and #196501, not a claim that full publication fanout fits the shared GitHub quota. Total installation-request budgeting remains unproven. No concurrency cap, replacement authorization owner, or new recovery store is introduced.
Evidence
result.jsonwas absent. It passes with this change, retainingcomplete: falseand the pending successor.git diff --checkpassed.openai/gpt-6.1-sol, P0–P2, complete local candidate against5e8ed5f5b437e3a8438a036eb42c4d98009d0d86; scoped-clean, no actionable findings. Its assessment was diff-only and did not execute tests.bb20de2e49f9f9832585e37c0d6b4e5885d10321has the same tree as the locally tested/reviewed commit.openclaw/ci-gatesucceeded.Live ClawHub publication and filesystem power-loss durability are not claimed.