Skip to content

fix: stop worker provisioning effects after host authority closes - #159178

Open
roboclaw-bot wants to merge 10 commits into
openclaw:mainfrom
roboclaw-bot:fix/pr135838-provider-authority-20260926
Open

roboclaw-bot wants to merge 10 commits into
openclaw:mainfrom
roboclaw-bot:fix/pr135838-provider-authority-20260926

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #135838

What Problem This Solves

Fixes an issue where users could see worker provisioning continue after its host operation closed, leaving allocated resources without settled cleanup or rejecting valid enrollment from the same operation.

User Impact

Worker provisioning stops admitting new effects after host shutdown or invocation closure, while cleanup keeps its independent authority. Expiring prepared workers retain successful or uncertain capture custody until independent teardown. A checkpoint returned after source closure is kept for cleanup, not made reusable; teardown cannot start a new project capture without live source authority.

Existing external providers keep the source-compatible default WorkerProvider type and optional provisioning arguments. WorkerProvider<1> opts into required invocation guards; bundled providers use that contract. No legacy cutoff, removal date, configuration, protocol or database-schema change. Legacy implementations that ignore the supplied callback remain a documented limitation. This is the provider slice, not completion of the entire linked workstream.

Why This Change Was Made

Carry the existing live owner assertion through provider preparation, allocation and effect boundaries rather than treating a physical cancellation signal as authority. Extend the existing cleanup catch across dispatched allocation, preserve settled cleanup receipts without a second stop, and keep same-operation enrollment valid. The same captured source assertion now gates final reusable-image publication. If publication is refused, only the surviving exact capture selector becomes cleanup debt; ambiguous persistence, admitted publication and successor selectors retain their existing recovery behavior. Independent teardown still collects cleanup debt, but does not recapture an expired project. No new state owner or schema is introduced.

Contributor credit: @sallyom and @vincentkoc.

Work sessions

Evidence

Rebased and pushed October 3: 57cd0bcdb90a9a2eea6396cad3f3e2e3bfb2225c onto pinned main aa298d3a515ca85dc0970aacda0403d67ec2a097. Native Git retained all ten original authors, message bytes and co-author trailers, including the intentional empty third commit. Remote Git and live PR readback confirmed the exact head after the old-head-leased push.

Focused rebased-head validation — run 37139953970, attempt 1 passed:

Scope on this exact head Observed result
Provider, custody, enrollment, retry and recovery regressions 265/265 passed across 12 files, all three plans and the complete aggregate. All four recovery-precedence rows reached and passed their late error-identity, SQLite and recovery assertions.
Types Core production, plugin production and plugin test types passed.
Formatting All 58 changed paths passed canonical formatting.
Hooks and native history Canonical clean-result pre-commit invocation passed; no per-replayed-commit hook claim. Ten raw commits, original authors/messages, both trailers and empty C3 independently verified.
Regression discriminator Removing only the two retry dispatch guards produced the two intended failures. Native and outer completion, worker/resource/IPC cleanup and native close/exit facts were checked; all five observation/mutation paths were restored before ordinary GREEN.

Verified candidate artifact 11280497334; source bundle SHA-256 16647d7424a511cf1d2839c369cd2934f896b53ce6f82739f62369672be60974 (65,551 bytes). Native evidence artifact 11280347436. Parent verified original ZIP digests, all 431 member paths/CRCs/content hashes, raw history and native result records.

Canonical exact-head build — passed: run 37143216974, attempt 1 imported that identical source bundle and ran one pnpm build, native exit 0 / tee exit 0, in 19m07s (job 22m23s). No build retry or redispatch occurred; a Gateway restart interrupted collection only.

Build artifact 11281567787, original outer ZIP SHA-256 3ae633dbe764e7a77e9dfffdaf0034aa96b77340371caedd1dfc853842b49302; build evidence 11281887121. Inner compiled archive SHA-256 078857fc0f005d999dc0ca76a707b10cf2d0f2ee86f60db8798fb8edaf9e16d5. Parent independently checked all 19,655 inner members, 17 output roots and 305 dependency-link descriptors, source/recipe/build identity and native receipts. This retains root dist plus 16 package output roots—not staging dist-runtime, a complete workspace snapshot, or native-provider runtime qualification.

Named nonfatal UI observation: the canonical build's report-only UI performance pass reported startup JavaScript 373,669 B gzip versus a 373,454 B limit (+215 B). Startup CSS was 50,708 B: above the 46,080 B advisory target, below the 51,200 B hard ceiling. Build exit 0 is genuine; UI-budget clearance and baseline attribution are not claimed. No limit, baseline or assertion was weakened.

Rebase integration repairs: current-main retry backoff retains the existing invocation-authority callback at both inspection and setup dispatch. Tests now use current fixture exports and real credential-bound pairing admission. The receipt observer checks every actual error/context/verdict rather than imposing an exactly-once count on a pure query; strict native-command, scrub, claim and recovery assertions remain intact.

Published scope: production +849/-640 (net +209) across 21 files; tests/test support +3053/-108 across 33 files; docs +41/-4 across four files. Production growth covers required invocation-contract types, dispatch custody, independent cleanup and final store admission; this publication adds no code beyond the verified candidate. The test-only SDK facade is counted with test support.

Two earlier October attempts remain honest failed history: 37135938835 stopped at formatting; 37137751813 passed formatting/hook/RED but stopped at the stale receipt-query count before three late recovery checks. The final successful run above executed those checks. Neither prior failure is relabeled passing.

Review and remaining merge gates

Independent source and execution-admission reviews found no remaining actionable source/admission findings on the verified tree. These are not SDK/security owner acceptance or merge approval. Fresh ClawSweeper Revision 28 reviewed this exact head and complete updated evidence body on October 3. It found no actionable correctness/security finding, but remains needs-human / blocked on native V1 final-effect proof, external V0 upgrade qualification, explicit SDK/security rollout acceptance and changed-test cost evidence. That is not merge approval.

Fresh public CI — failed: run 37145533564, attempt 1 completed with 98 successful jobs, 21 skipped jobs and four failed jobs (three test jobs plus the downstream aggregate gate). It tested merge 81c3d9095b7aaa7e3543e83008713bf367c0f40b, with parents main 6b230c82fc52161e644b9e94c17dd30ccc680b72 and this exact PR head.

Failed assertion Current evidence, not a waiver
Voice-call fixture resource count: expected 7, received 5 Static owner/history inspection identifies a cumulative Worker-birth versus live-resource mismatch exposed by main's schema-heartbeat wiring (#164236). Native per-ID lifecycle and paired baseline execution are not yet qualified.
Node-worker launch permission guidance replaced by “Shared-state read and cleanup failed” Required denial outcome failed. The nested read/cleanup cause was not retained in the public assertion; sealed-worker helper coverage is an investigation lead, not established cause or PR attribution.
Paired-node lifecycle remains draining instead of failed Physical stop and claim-release assertions passed; final drain settlement did not. The actual settlement-stage/publication error is not yet established.
Skill-library worker authoring returns error instead of ok Static inspection identifies a direct-tool-only synthetic provider expectation after main enabled worker Tool Search presentation (#164296). Original provider error/catalog evidence still needs qualification.

No failing assertion was weakened and no CI retry was used to claim success. Attribution is being checked against existing exact-main CI evidence before adding new diagnostic runs. These failures are not collectively labeled inherited or flaky. Dependency/security status contexts succeeded, but do not replace SDK/security owner acceptance. The PR remains open, mergeable but blocked.

Still open unless separately cleared: real-provider V1 allowed/closed final checkpoint and SQLite publication, borrower behavior and independent cleanup; published-updater compatibility with an unchanged external V0 provider on this head; current-head per-file test/CI cost and budget justification; SDK/security owner acceptance of staged V1/V0 policy; and current required CI/review findings. No native/V0/cost or policy gate is waived by 265 focused passes or a successful build. No merge, release, or Team-server update is authorized.

Historical September evidence for previous head 5d116aa — not proof for the October head

The following preserves the earlier report. Its “current-head,” “same-head,” and “this exact PR head” references refer to 5d116aa, not 57cd0bc. Old compiled archives, cancelled V0 runs, failed native attempts and per-file timing gaps have not been promoted to new-head proof.

Rebased and pushed at 5d116aa3f1e0d85f9408d95cce0640926a8d8c60, onto pinned main e433bfda89c486f98dfb03586dacd1e23b6f820b. The hosted Git rebase preserved all ten original authors/messages, including the intentional empty third commit. The remote branch and PR head were read back after the guarded push.

Native rebased-source validation — run 36419276854, attempt 1 passed:

Current rebased-head scope Observed result
Selected provider, custody, enrollment and owner-revocation regressions 168 passed across 9 files: native groups of 24 and 144, with no failing case.
Core and plugin production types Both canonical checks passed.
Plugin test types Passed.
Formatting All 56 changed paths passed canonical formatting.
Hook/history checks Native rebase used canonical hooks; the clean result separately passed the canonical pre-commit hook. No per-replayed-commit pre-commit claim is made. Original author/message bytes and the empty commit were independently checked.

Verified-commit artifact 10969602907; bundle SHA-256 3a666074a08dacd858b18d4a29fddb0fb254bc09b8f45b2ef8de5bba5559be68. Detailed native evidence is artifact 10969178178. Original ZIP digests, paths/modes/CRC and extracted bytes were checked against the live run/artifact bindings.

Full PR CI — failed: run 36422091212, attempt 1 completed with 153 successful jobs, seven failing test jobs plus the failed aggregate gate, and 20 skipped jobs. Build, lint, production/test types and security-fast passed. The failing tests cover progress-widget liveness, planner timeout, chat completion, catalog-startup timeout, QA scenario references, heartbeat delivery and model membership. The run tested merge 4da5d150209b6a90c67ec7b5c5fe2ecf9572a5ba (main parent b95394a915305f50c10e026276b81b91b92cb040, PR head 5d116aa3f1e0d85f9408d95cce0640926a8d8c60). Root-cause/base attribution is incomplete; these failures are not waived as inherited or flaky.

Same-head build — passed and independently verified: run 36422541325, attempt 1 ran canonical pnpm build on this exact PR head, with native and tee exit status 0 (719.56 s wall). Artifact 10970698003, SHA-256 b397aa288ed68f13d440cd45d55c67cdde8419e9949d612fa34bb6b6369b2909, retains root dist plus all 16 source-declared package outputs and 307 authenticated dependency-link entries. Parent verification checked live run/job/artifact bindings, original ZIP size/digest/safe paths/CRC, extracted bytes, all 14,298 inner members, source-owner/recipe bytes and exact-head build metadata. This immutable build is reusable; it is compiled proof, not native-provider behavior proof.

Real-provider proof — not established: latest completed run 36487609549, attempt 1 progressed past the repaired SDK artifact observer: Crabbox registered with liveAuthorityVersion 1, its compiled entry loaded natively, and a compiled consumer/common-chunk edge was observed. It still failed before allocation at the unchanged whole-startup assertion no forced source-transform provider accepted: 1 !== 0. The recorded forced invocation instead targeted extensions/openai/provider-policy-api.ts through the declared importer src/plugin-sdk/facade-loader.ts, outside the observed nested entry invocation and with no execution frame. Absolute counters changed [2,2,0,0,0] to [3,2,0,1,0]. That is physical artifact/caller attribution, not runtime authority inferred from a manifest, and not a completed native security scenario.

Diagnostic limits: the forced-event summary is complete, but producerDiagnostic.complete=false and diagnosticComplete=false: a later cache hit reused the same Crabbox loader with two acquisition observations. Parent verified those acquisition facts are identical except sequence; the observer currently treats them as ambiguous. One native graph exists, but nativeFunctionIdentityVerified=false; the catalog/original-function oracle was not completed. nativeScenarioPassed=false, passed=false, proofMissing=true; warmups/forks/captures all zero. No allowed/closed publication or borrower scenario ran. Correcting the observer must retain all absolute counts and account for the selected provider graph across every host generation—not whitelist OpenAI, suppress a count, force SDK policy, or weaken native effect/cleanup assertions.

Artifact 10998929949, original ZIP SHA-256 bc0d3fb97e320f57a388aa870810ea53c79b431799a6a40e0027b15e37eca29c, was independently verified against live run/controller/product bindings, exact size, safe paths/modes, CRCs and all eight payloads. Same-VM physical inventories returned to baseline without forced termination or cleanup errors; temporary build metadata was restored to original absence. Harness cleanup passed, but composite cleanup remains failed because native proof failed. Post-run source verification was not reached after the failing recipe. Physical absence is not proof of the required scenario.

Earlier source-SDK observer rejection 36482319566, artifact 10997014769 (ZIP SHA-256 79fd59cccaf5ffdf9fe2bbf1c5c55bf0cc86dc97fc2b65dacf4b12ca6037fa0d), observer failure 36443177372, artifact 10980005141, and initial preflight failure 36428786558, artifact 10972333530, remain retained history. Unit/SQLite tests model native effects and do not replace native-checkpoint/final-SQLite proof.

Current-head published-updater × unchanged V0 — not qualified: run 36448418656, attempt 1 was cancelled under its 40-minute outer bound. Package production consumed 1,269 seconds; the actual single 2026.9.6 × legacy-worker-provider cell received 327 seconds and stopped during phase 20/29, the update. Reaching that phase is not a substitute for missing structured receipts: original updater exit 0, immediate installed-H payload equality, later V0 lifecycle/native-state equality, final restart and joined cleanup remain unverified. Runner orphan termination is not native cleanup proof. The real current-head npm package is retained: artifact 10982713197, TGZ SHA-256 8ac91a095be42297dbb8d9f78b41ba8a866ecfbe6978134394d0c0839eaab9db; parent verified live metadata, original ZIP, all 13,835 tar members and exact-H build identity without executing payload. Package integrity and npm-12 acceptance passed; those prerequisites do not qualify the upgrade. This package is distinct from compiled-workspace artifact 10970698003.

The artifact-reusing V0 attempt 2 was incorrectly cancelled by our watchdog during checkout. It mistook GitHub's copied successful-prerequisite records, with new job IDs/attempt numbers but identical original execution facts, for new producer execution. No rebuild occurred; 0/29 scenario phases ran, no fresh artifacts were produced, and the downstream summary failed following cancellation. This is a control-script failure, not a product assertion failure. Attempt-1 cleanup uncertainty remains unchanged; another attempt requires a corrected, reviewed monitor and a fresh bounded grant.

Per-file test-cost evidence remains incomplete: the exact-H inventory has 23 directly changed test files (6 new, 5 materially changed, 12 type/fixture/inventory adaptations), plus 7 support/routing files. Retained evidence covers 6/23 only with assertion-duration observations and 0/23 with standalone command wall or attributable per-file CI seconds. The 312.75-second measurement covers the entire nine-file command, not each file; original public CI ran a merge composition, not pristine H. A controller-only cost-suite integration is being prepared, not presented as measured proof.

Before merge: complete that V1 allowed/closed/independent-cleanup proof, candidate-head published-updater compatibility with an unchanged external V0 provider, current-head per-file test/CI cost evidence and above-budget justification, and SDK/security owner acceptance of the staged V1/V0 policy. The current ClawSweeper review and red CI remain open blockers. No owner acceptance, merge, release or Team-server update is claimed.

The selected publication rule remains keep custody, gate reuse: captured live source authority gates reusable-image admission; refused publication retains exact cleanup custody without replacing successors or undoing already-admitted publication. Independent teardown cannot recapture an expired project.

Earlier proof and CI attribution — not relabeled as rebased-head results
  • Pre-rebase c99210225290: run 36372446168 passed full pnpm lint (18 oxlint shards, zero warnings/errors), all 23 authority cases, plugin test types and 56-path formatting. Standalone authority wall: 84.34 s; full lint: 1362.01 s.
  • The same C10’s corrected build/retention run 36378746934 passed. Original artifact 10952712296, SHA-256 ec6dd67fdcd6285309695be28eef003ac0d77d6e0d3c2f60eed8893d718d8ba3, was verified with root dist, all 16 package outputs and 307 authenticated dependency links. It is historical compiled proof, not the rebased binary.
  • Direct parent e0a53eaa04e4: run 36368052660 passed 58 authority/store, 508 provider sibling and 21 core custody cases, production types and 18 additional boundaries. The narrower current-head run above is not described as a rerun of all 587 cases.
  • The teardown reproduction RED and identical-fixture GREEN used explicit source overlays before the repair was committed.
  • Prior merge-CI failures included base-owned static-evidence/checkout/planning fixtures and an inherited Vitest preload. #160024 contains the verified merged preload and helper-fixture repairs. The 95-versus-96 planner mismatch is source-attributed inventory-sensitive fixture drift; a paired native base replay was not performed. A prior pinned-Bun SIGSEGV remains unattributed—not labeled flaky, OOM, or fixed. These attributions do not waive current checks.
  • The published 2026.9.6 updater run passed 29 legacy-provider phases on ancestor fd0b54a58f93. It remains historical V0 compatibility evidence, not current-head or V1 revocation-race proof. Recorded updater/Doctor warnings, output limits, report-only build-budget overages and synthetic SDK-emission differences remain follow-ups.

View the OpenClaw team session

@clawsweeper

clawsweeper Bot commented Sep 26, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime extensions: qa-lab extensions: crabbox size: XL labels Sep 26, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 26, 2026 21:08
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

The branch carries live host authority through worker provisioning and snapshot publication, preserves independent cleanup, and introduces a source-compatible versioned provider contract.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The source and regression work are useful, but unresolved authority and upgrade qualification prevent merge readiness.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Merge readiness

⛔ Blocked before merge - 7 items remain

This remains useful work absent from current main. No concrete introduced correctness defect was found, but the updated evidence explicitly leaves authority proof, upgrade qualification, and rollout acceptance unresolved.

Priority: P1
Reviewed head: 57cd0bcdb90a9a2eea6396cad3f3e2e3bfb2225c
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should the versioned provider contract ship with legacy providers still supported when they ignore supplied invocation assertions?
  • Recommendation: Accept staged compatibility after qualification: Retain legacy support and require the scoped V1 final-effect and V0 upgrade evidence before approving this rollout.
  • Why: The branch preserves compatibility but cannot enforce closure inside legacy providers; accepting that staged limitation requires SDK/security owner intent.

Before merge

  • Add real behavior proof - Authority-chain proof required: Crabbox provisioning and capture need observed allowed and closed V1 invocations through native checkpoint dispatch, final SQLite publication, borrower selection, and independent cleanup with cancellation still live. The matching complete body explicitly leaves that scenario unfinished; tests and the exact-head build are supplemental. Redacted terminal traces or logs suffice; remove private addresses, keys, phone numbers, and endpoints. Updating the body should trigger re-review, or a maintainer can request @clawsweeper re-review. The version-3 stored format is unchanged, so no data-model migration is indicated. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk - Native allowed and closed V1 invocations remain unqualified at checkpoint dispatch, final reusable-image admission, borrower selection, and independent cleanup while cancellation stays live.
  • Resolve merge risk - Historical successful external V0 upgrade evidence has not been qualified against the reviewed contract and intervening lifecycle changes; existing provider upgrade behavior remains uncertain.
  • Resolve merge risk - The staged SDK policy deliberately retains providers that can ignore invocation assertions; explicit owner acceptance of that remaining limitation is not recorded.
  • Resolve merge risk - Standalone costs, attributable CI seconds, and necessary budget justification remain missing for new or materially changed behavioral test files.
  • Complete next step - Obtain SDK/security owner acceptance of the staged legacy/V1 contract and supply the scoped authority, upgrade, and changed-test cost evidence.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Agent review details

How this fits together

The Gateway asks worker providers to allocate and prepare remote environments. Crabbox runs the provider commands and records reusable snapshots in plugin-owned SQLite state; independent teardown settles allocated resources.

flowchart TD
  A[Gateway worker request] --> B[Live host authority]
  B --> C[Provider preparation and allocation]
  C --> D[Crabbox commands]
  D --> E[Snapshot publication admission]
  B --> E
  E --> F[Reusable worker snapshot]
  D --> G[Independent cleanup]
  E --> G
Loading

Technical review

Best possible solution:

Keep one provisioning authority owner and independent cleanup custody, with verified legacy upgrades and an explicitly accepted staged provider contract.

Do we have a high-confidence way to reproduce the issue?

Unclear for a complete current-main runtime reproduction: source shows unfenced reusable-image publication, but this read-only review did not execute the native provider scenario.

Is this the best way to solve the issue?

Yes in principle: extending the existing authority and cleanup owners is focused and maintainable, but rollout and upgrade evidence must establish that the proposed boundary works.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against db6cdb813b16.

Merge-risk options

Maintainer options:

  1. Qualify the staged provider boundary (recommended)
    Complete allowed/closed native final-effect proof, qualify reusable historical V0 upgrade evidence against the changed contract, and record owner acceptance.
  2. Pause the contract rollout
    Keep the branch open until owners resolve legacy-provider enforcement and upgrade expectations.

Security

None.

Evidence

What I checked:

  • Pinned introduction and merge ownership: Reviewed the merge-base aa298d3 to head 57cd0bc changes. Raw test-merge records confirm main parent 6b230c8 followed by that exact head; unrelated base drift was not attributed to this PR. (81c3d9095b7a)
  • Final publication authority: Capture retains the returned checkpoint identity, passes captured source authority into final store admission, and reconciles refused publication through the exact capture selector. Cleanup remains independent rather than inheriting revoked provisioning authority. (extensions/crabbox/src/crabbox-worker-warm-image-capture.ts:309, 57cd0bcdb90a)
  • Current main still lacks the central repair: At fetched main db6cdb8, reusable checkpoint publication still calls the store update without the captured source-authority argument. Its public provider type also remains unversioned. Main therefore does not establish that this branch is redundant. (extensions/crabbox/src/crabbox-worker-warm-image-capture.ts, db6cdb813b16)
  • Versioned compatibility boundary: The public default retains legacy optional provisioning arguments, while WorkerProvider<1> requires host assertions. The SDK contract test preserves two-argument legacy calls and rejects missing V1 guards. This adds no configuration knob or stored record format. (src/plugins/capability-provider.types.ts:440, 57cd0bcdb90a)
  • Meaningful supplemental regression coverage: Allocation tests close logical authority while cancellation remains live and assert no subsequent provisioning dispatch plus independent stop. Store admission tests exercise real SQLite transaction and commit admission, reopen the database, and distinguish rejection before commit from already-admitted settlement. Provider command responses remain substituted, so these tests do not establish native checkpoint behavior. (extensions/crabbox/src/crabbox-worker-warm-image-authority.test.ts:118, 57cd0bcdb90a)
  • Complete captured body inspected: Retrieved body SHA-256 d27a55622670069bec747f61393262cda0f83397471b581678078b030eda26c5 matches the supplied snapshot. Inspected the previously omitted evidence: the October head reports 265 focused passes and a successful build, but explicitly leaves native V1 final effects, external V0 upgrade qualification, rollout acceptance, and changed-test costs open. Historical native attempts stopped before allocation; successful September V0 evidence is credited without relabeling it as October qualification. (57cd0bcdb90a)

PR surface

Source +210, Tests +2944, Docs +37. Total +3191 across 58 files.

View PR surface stats
Area Files Added Removed Net
Source 22 850 640 +210
Tests 32 3052 108 +2944
Docs 4 41 4 +37
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 58 3943 752 +3191

Review metrics

Metric Value Why it matters
Provider contract 1 opt-in authority version; legacy default retained The versioned contract improves bundled-provider enforcement while preserving a documented external-provider limitation.
Production versus test growth production +849/-640; tests/support +3053/-108 The body justifies production growth through authority and cleanup ownership; the larger regression surface still needs measured costs.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: The repair addresses worker provisioning continuing after host authority closes and potentially leaving allocated resources unsettled.
  • merge-risk: 🚨 compatibility: A public versioned provider contract and bundled lifecycle changes require qualification of existing external-provider upgrades.
  • merge-risk: 🚨 security-boundary: The changed authority reaches native commands and durable reusable-image publication, whose closed-invocation final effects remain unqualified.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add native allowed/closed final-effect evidence, including refusal before dispatch/publication and independent cleanup.
  • Qualify historical V0 upgrade evidence against the reviewed contract and obtain explicit staged-rollout acceptance.
  • Record standalone costs and attributable CI seconds for new or materially changed behavioral tests, with required budget justification.

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.

History

Review history (28 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-28T12:36:21.390Z sha 5d116aa :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-28T12:44:36.099Z sha 5d116aa :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-28T13:06:45.813Z sha 5d116aa :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-28T14:55:50.766Z sha 5d116aa :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-28T15:42:18.861Z sha 5d116aa :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-28T21:13:50.057Z sha 5d116aa :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-28T22:04:38.489Z sha 5d116aa :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-03T18:55:01.736Z sha 57cd0bc :: needs real behavior proof before merge. :: none

Reviewed October 3, 2026, 3:38 PM ET / 19:38 UTC (Revision 29).

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

The outstanding existing-provider upgrade acceptance for head 89a63e58397f1172169ff907a8d1512e03824728 now has executed evidence, not a proposed harness. Original Update Migration run 36298044617, attempt 1 passed its actual published-2026.9.6 × unchanged external V0 provider cell: 29/29 phases, 526 seconds, one attempt. The released updater exited 0, native preexisting custody matched across replacement, retained-worker inspection advanced 0 → 1 without reallocation, fresh provisioning/repeated Stop passed, and all three worker groups joined with terminal rows after restart.

The PR Evidence section now contains the immutable product/harness/package bindings, complete redacted worker receipts and canonical post-cleanup summaries, and explicit limits. Scenario source. This uses controlled local allocation and manual restart, not live cloud/SSH, attached turns or V1 revocation races. Generic post-core telemetry is unavailable and generic update JSON is truncated; complete worker-specific driver/lifecycle receipts are retained.

Please reassess the outstanding P1 compatibility risk against this evidence. The separate required CI gate remains failed; the earlier Talk first-mutator attribution and required SDK compatibility-review status are not waived. No merge/automerge requested.

@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot roboclaw-bot reopened this Sep 27, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 27, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 27, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 27, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 27, 2026
@roboclaw-bot
roboclaw-bot force-pushed the fix/pr135838-provider-authority-20260926 branch from d247932 to fd0b54a Compare September 27, 2026 17:09
@roboclaw-bot
roboclaw-bot force-pushed the fix/pr135838-provider-authority-20260926 branch from c992102 to 5d116aa Compare September 28, 2026 12:28
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. and removed merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Sep 28, 2026
roboclaw-bot and others added 10 commits October 3, 2026 17:30
Carry existing live host authority through bundled provider effects while preserving independent cleanup and compatible legacy calls.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Carry existing live host authority through bundled provider effects while preserving independent cleanup and compatible legacy calls.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
No source changes. Refresh the pull_request synchronize event after the landed main-branch inventory repair; the one-shot lifecycle refresh retained a stale executed merge.

The source tree remains identical to 89a63e5. Preserve its normal-hook validation and published-updater artifact as proof of that exact parent; do not relabel or repack them for this metadata commit. New integration CI must verify its actual composed checkout.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Keep the two intentional V1 compile-error fixtures explicit in the exact type-suppression inventory without weakening its scanner.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Preserve every Gateway worker test while placing the invocation regression in the sorted routing inventory.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Preserve physical settlement and cleanup after invocation closure on the rebased provider series.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Preserve native worker admission coverage through the existing private SQLite test facade; make capture skip returns explicit without changing behavior.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Keep returned checkpoint custody independent while requiring live source authority at reusable publication admission.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Require captured logical source authority for project capture admission after cleanup collection; preserve late-image and ambiguous capture custody.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Rename only the local capture profile key and its references; preserve all production code and assertions.

Co-authored-by: sallyom <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the fix/pr135838-provider-authority-20260926 branch from 5d116aa to 57cd0bc Compare October 3, 2026 18:45
roboclaw-bot added a commit that referenced this pull request Nov 2, 2026
…191006)

* fix(workers): retain provisioning authority through node enrollment

Admit the authenticated first node binding within its original provisioning operation while retaining setup, epoch, lease, receipt, caller, phase, and teardown fences. Exercise real pairing publication through the public provider callback.

Related: #188796, #159178.

Co-authored-by: galiniliev <[email protected]>

* fix(workers): allow cloud dispatch to finish after node enrollment

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 73febb96-be07-4bf9-81c1-22b0277c583c

---------

Co-authored-by: galiniliev <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
…penclaw#191006)

* fix(workers): retain provisioning authority through node enrollment

Admit the authenticated first node binding within its original provisioning operation while retaining setup, epoch, lease, receipt, caller, phase, and teardown fences. Exercise real pairing publication through the public provider callback.

Related: openclaw#188796, openclaw#159178.

Co-authored-by: galiniliev <[email protected]>

* fix(workers): allow cloud dispatch to finish after node enrollment

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 73febb96-be07-4bf9-81c1-22b0277c583c

---------

Co-authored-by: galiniliev <[email protected]>

This branch has not been deployed

No deployments
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 extensions: crabbox extensions: qa-lab gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants