Skip to content

fix(release): retain accepted ClawHub recovery attempts on timeout - #196929

Merged
RomneyDa merged 2 commits into
mainfrom
openclaw/retro-publisher
Nov 11, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
openclaw/retro-publisher

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

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

  • Native CLI regression reproduced on the base: the recovery request was accepted, polling timed out, and result.json was absent. It passes with this change, retaining complete: false and the pending successor.
  • Parent regression proves an interrupted public read preserves the accepted successor while leaving the excluded sibling untouched.
  • Both affected suites: 155 passed, final combined wall time 4.78s (Vitest 3.38s). Synthetic transports only; no publication, release dispatch, or live-state changes.
  • Script and tooling-test TypeScript checks passed.
  • Scoped production/test lint, formatting, and git diff --check passed.
  • Local autoreview: OpenClaw engine / openai/gpt-6.1-sol, P0–P2, complete local candidate against 5e8ed5f5b437e3a8438a036eb42c4d98009d0d86; scoped-clean, no actionable findings. Its assessment was diff-only and did not execute tests.
  • Separate independent P0–P3 review inspected affected functions, callers, validators, and artifact retention: no actionable findings; independently reran both new regressions. Narrative review, not helper-isolated review.
  • Simplification: existing recovery/result owners only; production delta +38 net lines. The +114 regression-test lines cover the native CLI and authenticated parent boundaries; the dedicated allocation records that necessary growth without changing the shared baseline.
  • Published head bb20de2e49f9f9832585e37c0d6b4e5885d10321 has the same tree as the locally tested/reviewed commit.
  • Exact-head CI completed: 47 passing checks, 44 intentionally skipped, none pending or failing. Build artifacts, changed-node checks, production/test types, and openclaw/ci-gate succeeded.
  • Hosted ClawSweeper review completed on that head: no findings, ready for maintainer review. Its live-transport proof limitation is acknowledged; actual recovery/publication was intentionally not dispatched.

Live ClawHub publication and filesystem power-loss durability are not claimed.

RomneyDa and others added 2 commits November 11, 2026 00:23
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
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The CLI exits unsuccessfully without result.json.
  • After: The CLI still fails, but result.json retains accepted-successor with publicationStatus pending and complete false.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported repair with useful boundary regressions; supplied execution evidence remains synthetic and was not independently rerun.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate: supplied coverage exercises the real CLI and parent recovery owner with synthetic transports, while live ClawHub publication is explicitly unclaimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators lose the accepted successor identity when recovery observation fails.
Reason: Retaining accepted custody makes interrupted recovery inspectable without introducing another store, authorization owner, option, or publication path; maintainer authorship establishes direction.

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
Reviewed head: bb20de2e49f9f9832585e37c0d6b4e5885d10321

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied regressions use synthetic transports; no real-transport accepted-recovery timeout and retained-artifact trace is supplied.
Agent review details

How this fits together

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

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 53aed90 adds scripts/clawhub-postpublish.mjs:745 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 53aed90ae4c7; files: scripts/clawhub-postpublish.mjs)

PR surface

Tests +114, Docs +7, Other +40. Total +161 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 114 0 +114
Docs 1 7 0 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 3 55 15 +40
Total 6 176 15 +161

Preflight source

Source 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

Metric Value Why it matters
Production versus regression growth Production +53/-15; tests +114/-0 Growth adds one progress contract within the existing owner and covers the distinct CLI and parent artifact persistence boundaries.

Labels

Label changes:

  • add P2: Interrupted release recovery loses accepted-attempt diagnostics, with impact limited to release operators rather than ordinary agent workflows.
  • 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: Interrupted release recovery loses accepted-attempt diagnostics, with impact limited to release operators rather than ordinary agent workflows.
  • 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 execution lanes are retired.

Reviewed November 10, 2026, 7:29 PM ET / November 11, 2026, 00:29 UTC.

@RomneyDa
RomneyDa merged commit 65367f9 into main Nov 11, 2026
126 checks passed
@RomneyDa
RomneyDa deleted the openclaw/retro-publisher branch November 11, 2026 01:41
RomneyDa added a commit that referenced this pull request Nov 11, 2026
…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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
…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]>
RomneyDa added a commit that referenced this pull request Nov 12, 2026
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]>
RomneyDa added a commit that referenced this pull request Nov 12, 2026
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S 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