Skip to content

feat(workers): keep runtime image reserves ready without browser presence - #188686

Merged
roboclaw-bot merged 55 commits into
mainfrom
openclaw/p3a-standing-reserves
Oct 31, 2026
Merged

roboclaw-bot merged 55 commits into
mainfrom
openclaw/p3a-standing-reserves

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

Related: #188679, merged as b7563b304095b4d4f329f2a82ada08d9ec8da4c3, and landed repository authority #188656. GitHub retargeted this PR to main. This history-preserving refresh integrates exact main f461e03db24051da076db81de9796696cb44d872; it does not land this PR.

Landing remains coordinator-owned: current-head CI and the normal landing gates must pass. Earlier-head checks are not approval of this new head; no CI rerun was requested.

What Problem This Solves

Runtime-image integrations need ready capacity without a connected browser, without unavailable policy blocking cleanup or restart destroying and replacing existing ready workers.

User Impact

The configured default profile keeps runtime-only workers ready and refills after claims. Restart preserves compatible reserve identities while demand is reconstructed. Disabling capacity drains unused workers without interrupting attached sessions or extending finite deadlines. Ready workers incur running-machine charges until deletion is confirmed.

Why This Change Was Made

Standing demand reuses the existing pool and environment inventory. Image preparation contains runtime artifacts, not repository contents or credentials. Repository claim/startup and credential authority are supplied by the landed prerequisites. Browser-driven repository demand and empty-workspace activation retain their existing paths.

Demand observation cannot disable expiry or physical cleanup. Pending reconstruction preserves inventory but grants no provider I/O. Actual activation—not a restored reserve’s creation timestamp—supplies independent refill demand, and allocation rechecks current authority and capacity after awaited preflight. Explicit repository builds remain request-owned.

The standing slice adds no pool, schema, retained-disk feature, configuration option or live cloud change. Its unchanged delta remains 190 production lines and 891 regression/support lines, with matching allocations of 387 + 351 + 153.

Evidence

Current main conflict refresh

Source commit 04f043eb9fa7bbe61a812415c4508bc5ce6fa9ec, tree b312a37f4f569d29b25399eb34526d3da1d3a277. Published head 0bcd6b6a24020795f6386bf43cec467251a5d75d is tree-identical, with this tested source as its sole parent and Galin credit preserved. Source merge parents are prior published standing head 33c19772f2b1066e733d50707b68a314c74411bf and pinned main f461e03db24051da076db81de9796696cb44d872.

  • The sole textual conflict was the warm-images documentation paragraph: the incoming side matched the already integrated image prerequisite; the existing standing explanation was retained unchanged. All 14 standing-delta base and head blobs remain byte-identical. A complete-tree comparison confirms the candidate is exactly pinned main plus those 14 standing files, with no additional base-relative edits.
  • 10 actual required-repository RPC/automation sibling cases passed across two files on this source: 66.92 seconds Vitest / 70.05 seconds wrapper. The allowed path and policy/source/Stop/caller revocation controls remain intact.
  • Native lint (11 files), formatting, gateway-server/gateway-other type checks, core boundary checks, mock-export/assertion/test-line ratchets and whitespace checks passed. Test lines: 6,329,440 / 6,358,902, slack 29,462; the standing allocation is unchanged. The inherited state-logging root-count advisory is not a failed gate.
  • Input comparison identified new main cancellation propagation through session workspace commit and SQLite admission, so the actual RPC/sibling pair was rerun. Standing lifecycle, pool ownership and transport consumers remain unchanged. The landed runtime verifier’s bounded installation receipt is ignored by the existing runtime-preparation caller except for its established timing/warning logging; this was traced through the production callers rather than assuming all incoming inputs were equivalent.
  • Existing independently frozen fs-safe 0.27.0 dependencies were reused: root manifest, lockfile, workspace manifest and workspace package manifests are byte-identical. Verification used secretless Node 24.22.1 containers, networking disabled, read-only dependencies and private generated outputs. No parent mutable outputs, shared install changes, full production package build, live cloud or live credentials were used.
  • Normal attributed hooks were retained. The independent autoreview P0–P2 scoped-clean standing repair review at d706576e against 6b709d0663e502317127220b3d65c913e77644b6 remains bound to the unchanged scope. The mechanical conflict resolution and complete feature preservation were inspected directly; no duplicate hosted review was requested.

Retained behavior proof — original source identities

  • 34 tests across four files passed at source 9ffdd062086b38d635528910c70cae046596cf04, published 33c19772f2b1066e733d50707b68a314c74411bf, tree 298ed662a00cf5852958609c0125a551ca18f833: 127.25 seconds, comprising 24 standing lifecycle/production-adapter transport cases (80.40 seconds Vitest) and ten actual RPC/automation sibling cases (42.64 seconds). This remains prior-head evidence, not a rerun of all 34 cases on the refresh.
  • Those standing cases prove enabled fresh/recovered allocation reaches the production Crabbox adapter and controlled subprocess transport; withdrawn/replaced integration or profile and zero capacity prevent allocation. Restart preserves original IDs without destroy/replacement calls while expiry and requested cleanup proceed. Finite deadlines and attached workers remain protected. Actual repository RPC proof retains credential-free image allocation, managed verification, authenticated Git/checkpoint effects and policy/source/Stop/caller revocation controls.
  • 89 tests across 13 pool suites passed at published 152be64ad1218dacab978cea3d0448045656d5bc / source 2e562e6ca5234884d0b572cad19475ed32663e25, tree 1df9ad396928409baf5edba2605cade954e6f02a: 186.05 seconds Vitest / 188.72 seconds wrapper. Not rerun or relabeled solely for this refresh. The restart regression was red against 6b709d0, where original workers were replaced.
  • Parent RPC repair 92fa442b removed fixture-only repository credential access during image preparation while preserving real startup admission. The earlier failed allowed-RPC reproduction on 0367beeb and corrected ten-case proof on ee4ec182 retain their original source identities.
  • Stable v2026.10.9 v1 payload/settings/ownership/finite-expiry preservation is prior model/data evidence. Separately, the prerequisite owner completed the installed stable upgrade on b062896364982a2838139025c0497d6e5bfb7712 (agent schema25→39, state schema20→36, configuration, 14 plugins and retained checkpoint, with teardown). That is prerequisite-owned evidence, not a new installed-binary run on this standing merge or active-worker reconnection proof.

Remaining qualification

Current-head CI and root-owned landing gates remain. Node/artifact/provider inputs are controlled synthetic fixtures; real adapter/subprocess, lifecycle and state owners execute locally. No live-provider, browser/model-turn, active-worker reconnection or new installed-release upgrade success is claimed. Landed prerequisite evidence is in #188679 and #188656.

Source implementation by @galiniliev, selectively extracted and adapted from 63fda88754e4b57b6893095c0dffc88a3ba1381f and the required request-owned-build correction. The original source branch remains unchanged.

Worked on by

Work sessions

roboclaw-bot and others added 7 commits October 30, 2026 19:44
…overy

Extract the optional repository integration prerequisite and carry current
caller authority through native App issuance, preparation, checkout and
authenticated redispatch. Keep cleanup with dispatch and preserve native
behavior when no integration is selected.

Co-authored-by: galiniliev <[email protected]>
Consume source credential capabilities in the host access owner before handing the ordinary prepared binding to node transport.

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

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 4abaa98c-2f3b-4712-af02-5afb8839a3bd
Keep image preparation separate from repository contents and empty workspaces. Select runtime-only intents for image-capacity integrations, claim under live authority, and perform repository startup with the current request's credential reader. Settle rejected unallocated image requests without breaking stored provisioning replay.

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

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: eb6f32e5-03b0-429d-809d-1189bd23b87c
…ence

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 130a2b63-442c-4c80-aa7b-39bc5c4b872b
@clawsweeper

clawsweeper Bot commented Oct 30, 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 agents Agent runtime and tooling size: XL labels Oct 30, 2026
@roboclaw-bot
roboclaw-bot changed the base branch from main to openclaw/p3a-runtime-image-reserves October 30, 2026 20:34
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed agents Agent runtime and tooling size: XL labels Oct 30, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 30, 2026 20:34
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR keeps runtime-image worker reserves ready without browser presence using the existing prepared pool.

Example: The development profile has readyWorkers=2, preparedPool.maxTotal=4, and an integration selecting image capacity.

  • Before: Without browser presence or activation demand, the pool does not maintain two runtime-image workers.
  • After: Standing policy admits two runtime-only workers and replenishes capacity after claims.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The repair improves cleanup and authority coverage, but a concrete restart defect remains and synthetic provider callbacks do not establish final transport behavior.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Runtime-image integrations cannot keep ready worker capacity available independently of connected browsers.
Reason: Maintainer authorship supplies direction approval, and the feature uses existing capacity limits and lifecycle ownership without adding a configuration option.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep this useful, maintainer-authored PR open: the earlier cleanup finding is repaired, but restart can unnecessarily destroy existing standing reserves.

Priority: P2
Reviewed head: 6b709d0663e502317127220b3d65c913e77644b6

Before merge

  • Add real behavior proof - Authority-chain proof required: the new suite reaches real service, pool, lifecycle, and SQLite owners, but provider allocation/destruction and enrollment remain synthetic callbacks; show the production provider adapter reaching a controlled transport for enabled allocation and rejecting withdrawn or replaced integration/profile authority before I/O for fresh and recovered intents, with redacted terminal output or logs. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Preserve existing standing reserves during restart reconstruction (P2) - After restart, standing is empty until this awaited intent preparation completes. schedule() concurrently starts inventory maintenance, whose demand snapshot is therefore undefined; isSupersededPresenceReserve() then classifies every persisted standing reserve with Number.MAX_SAFE_INTEGER expiry as superseded, and retain() durably requests destruction. With unchanged policy and two ready workers, restarting the Gateway destroys those workers and provisions replacements, losing warm capacity and adding allocation churn. Distinguish pending reconstruction from revoked demand without blocking expiry or explicitly requested cleanup, and strengthen the restart test to assert that the original environment IDs survive with no destroy/replacement calls. Late finding: this ordering was already visible at the previously reviewed head 37f2b530c09db6b831e7d395e83f1f1b97835f97 and was missed in that review.
  • Resolve security review attention item - The stack retains an explicit prerequisite hold concerning managed OAuth/PAT repository authority.
  • Resolve merge risk - The stack owner must resolve the recorded managed OAuth/PAT authority concern in feat(workers): preserve repository authority during dispatch and recovery #188656 before clearing this PR's explicit landing hold.

Findings

  • [P2] Preserve existing standing reserves during restart reconstruction — src/gateway/worker-environments/prepared-pool-presence.ts:231-235

Tests

  • Missing end-to-end proof: Provide production-provider transport evidence for enabled standing allocation and rejection after integration/profile withdrawal or replacement, including recovered intents.
Agent review details

How this fits together

The Gateway prepared pool combines configured capacity policy with environment inventory, then asks the existing provider lifecycle to prepare, allocate, retain, or destroy unused workers.

flowchart TD
A[Integration and profile policy] --> B[Prepared demand owner]
B --> C[Prepared pool maintenance]
D[Environment inventory] --> C
C --> E[Provider lifecycle]
E --> F[Provider allocation and cleanup]
E --> D
Loading

Technical review

Best possible solution:

Keep the existing pool owner and distinguish pending standing-demand reconstruction from withdrawn demand so restart preserves compatible reserves while expiry and requested cleanup remain independent.

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

Restart with two persisted standing image reserves and unchanged enabled policy: concurrent inventory maintenance can observe no reconstructed demand while prepareIntent awaits, classify both unbounded reserves as superseded, and request their destruction; this was traced in source without executing target code.

Is this the best way to solve the issue?

Reusing the prepared pool is appropriate, and the cleanup repair addresses the prior finding, but reconstruction must preserve valid inventory rather than satisfy the target by replacing it.

Full review comments:

  • [P2] Preserve existing standing reserves during restart reconstruction — src/gateway/worker-environments/prepared-pool-presence.ts:231-235
    After restart, standing is empty until this awaited intent preparation completes. schedule() concurrently starts inventory maintenance, whose demand snapshot is therefore undefined; isSupersededPresenceReserve() then classifies every persisted standing reserve with Number.MAX_SAFE_INTEGER expiry as superseded, and retain() durably requests destruction. With unchanged policy and two ready workers, restarting the Gateway destroys those workers and provisions replacements, losing warm capacity and adding allocation churn. Distinguish pending reconstruction from revoked demand without blocking expiry or explicitly requested cleanup, and strengthen the restart test to assert that the original environment IDs survive with no destroy/replacement calls. Late finding: this ordering was already visible at the previously reviewed head 37f2b530c09db6b831e7d395e83f1f1b97835f97 and was missed in that review.
    Confidence: 0.96
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Keep the stack paused (recommended)
    The stack owner resolves the prerequisite's recorded authority concern before releasing the landing hold.

Provenance checked

  • Browser-driven repository demand changes intended behavior with a stated reason (db01f6d: Prepare repository-specific capacity only while eligible browser authority exists, while keeping cleanup independent of repository admission.)
  • Pool maintenance phases keeps the original intent (fdbe95f: Separate maintenance phases while retaining cleanup-first ordering and the existing pool owner.)
  • Runtime-only identity and finite deadlines changes intended behavior with a stated reason (5f5e3d7: Reuse bounded runtime capacity for empty workspaces without mixing project identities or extending activation demand indefinitely.)

Testing

Proof path: in-process harness.

Security

Needs attention: The stack retains an explicit prerequisite hold concerning managed OAuth/PAT repository authority.

Evidence

What I checked:

Likely related people:

  • Galin Iliev: Raw commit db01f6d adds src/gateway/worker-environments/prepared-pool-presence.ts:19 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: db01f6d520b8; files: src/gateway/worker-environments/prepared-pool-presence.ts)
  • Peter Steinberger: Raw commit fdbe95f adds src/gateway/worker-environments/prepared-pool-admission.ts:47 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fdbe95f5d1d6; files: src/gateway/worker-environments/prepared-pool-admission.ts)

PR surface

Source +161, Tests +505, Docs 0, Other +4. Total +670 across 11 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 4 227 66 +161
Tests 4 507 2 +505
Docs 1 3 3 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 4 0 +4
Total 11 741 71 +670

Review metrics

Metric Value Why it matters
Production versus regression growth Production net +161 lines; tests net +504 lines The change reuses existing lifecycle owners, and the tests cover distinct cleanup, replacement, revocation, recovery, and deadline contracts; the restart assertions need to preserve worker identity.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This optional capacity feature has a bounded restart defect that discards warm capacity and causes avoidable replacement allocations.
  • merge-risk: 🚨 security-boundary: Standing policy authorizes unattended provider allocation, including recovered intents, and the stack retains a separate prerequisite authority hold.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-30T20:53:13.269Z sha 37f2b53 :: needs real behavior proof before merge. :: [P2] Keep integration lookup failures outside inventory cleanup

Reviewed October 30, 2026, 6:40 PM ET / 22:40 UTC (Revision 2).

roboclaw-bot and others added 5 commits October 30, 2026 21:09
Keep the repository policy assertion in shared read identities and prepared workspace synchronization through checkpoint awaits and each worker command. Prove allowed, forbidden, and late-revoked cold and prepared flows with local Node execution, Git, and checkpoint transfer.

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

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: ca19bb5b-7413-420d-9ba1-46578e011f37
Keep Gateway database-worker discovery and its canonical registry in the same sorted order.

Co-authored-by: galiniliev <[email protected]>
Merge fc3490a without rewriting history, retaining repositoryBranchPrefix from #188648. Regenerate the canonical config artifacts for both approved fields instead of accepting either independently generated baseline.

Adapt the repository dispatch consumer to the current codexGoalAdmission contract introduced by main. The first combined-source typecheck caught the retired workerGoalAdmission field.

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

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: ab1916b4-e0cf-4992-a62f-13d94e27e2db
roboclaw-bot and others added 21 commits October 31, 2026 02:46
Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 72a91f97-2870-4d52-87e3-5f276658e867
Preserve the reviewed image delta and repository-capacity fixture correction while adopting the parent-owned required-profile and sessions.create authority changes.

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

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: cb7ac3cb-df17-4874-98ec-23f5eec0838c
Remove the RPC fixture-only repository identity call from credential-free image intent creation. Keep actual repository startup and all denial controls, assert one managed verification on success, and shrink the matching test allocation.

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

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 21adb907-ae6f-446c-8e58-29fa48af700a
Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 869588f1-1142-4887-9785-353e5050fa2f
Align startup rollback proof with required finalizer joins from #188920. Keep native repository connection and Enterprise identity resolution in the handshake fixture, mocking only remote enrichment. Preserve existing handshake and revocation assertions.

Co-authored-by: galiniliev <[email protected]>
Integrate main through #188922 (0a9f3a6) to repair the observed cron detail and settings Escape CI failures. No conflicts or repository-authority owner changes. This pinned integration does not include the later schema39 migration.

Co-authored-by: galiniliev <[email protected]>
Integrate exact main 510e168 without rewriting history. Retain the canonical upstream gateway logger for the sole conflict. The upstream agent schema39 migration requires fresh installed-upgrade qualification; prior c6/schema38 evidence remains historical.

Co-authored-by: galiniliev <[email protected]>
Integrate exact local authority candidate b435854 without rewriting history. All 17 image-delta files, including the RPC fixture repair, remain byte-identical. Publication and fresh input-qualified proof remain held for the parent release.

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

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 5bbb8a2f-4466-4f58-9406-3c8b39e44b5f
Integrate exact b062896. The candidate tree is unchanged from the prepared b435-based image integration and independently frozen schema39 focused proof.

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

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 2098e121-027c-4257-bfed-57016863f99b
Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 5537df35-0ca3-4b29-a1b1-8f2ce9b02a23
Integrate exact main a4b07c6 after prerequisite squash. The five textual conflicts had parent-identical incoming contents; retain all 17 reviewed image delta files byte-for-byte, including actual RPC admission controls.

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

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 0ec84c8a-6397-489f-8d47-3fed1f9c9414
Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 184bf98b-756a-4986-9bbb-ef9a7cf5a640
Base automatically changed from openclaw/p3a-runtime-image-reserves to main October 31, 2026 06:20
roboclaw-bot and others added 2 commits October 31, 2026 06:31
Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: c21eb49f-3ad5-4ec6-be3a-da37e8a22288
@roboclaw-bot
roboclaw-bot merged commit 70b51bc into main Oct 31, 2026
150 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/p3a-standing-reserves branch October 31, 2026 06:51
@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 Nov 1, 2026
…ence (openclaw#188686)

* feat(workers): preserve repository authority through dispatch and recovery

Extract the optional repository integration prerequisite and carry current
caller authority through native App issuance, preparation, checkout and
authenticated redispatch. Keep cleanup with dispatch and preserve native
behavior when no integration is selected.

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

* fix(workers): keep repository admission out of node transport

Consume source credential capabilities in the host access owner before handing the ordinary prepared binding to node transport.

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

* feat(workers): preserve repository authority during dispatch and recovery

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 4abaa98c-2f3b-4712-af02-5afb8839a3bd

* test: preserve integration exports in dispatch fixture

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

* feat(workers): start repository sessions from runtime image reserves

Keep image preparation separate from repository contents and empty workspaces. Select runtime-only intents for image-capacity integrations, claim under live authority, and perform repository startup with the current request's credential reader. Settle rejected unallocated image requests without breaking stored provisioning replay.

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

* feat(workers): start repository sessions from runtime image reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: eb6f32e5-03b0-429d-809d-1189bd23b87c

* feat(workers): keep runtime image reserves ready without browser presence

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 130a2b63-442c-4c80-aa7b-39bc5c4b872b

* fix(workers): stop checkout when repository access is revoked

Keep the repository policy assertion in shared read identities and prepared workspace synchronization through checkpoint awaits and each worker command. Prove allowed, forbidden, and late-revoked cold and prepared flows with local Node execution, Git, and checkpoint transfer.

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

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: ca19bb5b-7413-420d-9ba1-46578e011f37

* test: restore canonical image reserve test ordering

Keep Gateway database-worker discovery and its canonical registry in the same sorted order.

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

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: ab1916b4-e0cf-4992-a62f-13d94e27e2db

* fix(workers): keep reserve cleanup independent of policy admission

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

* test(workers): prove image claims through real repository effects

Exercise native App issuance, authenticated Git checkout, checkpoint restore, revoked and reassigned callers, and fresh recovery authority without cloud spend. Preserve existing prepared-node proof via a shared unprepared-node fixture.

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

* Publish openclaw/p3a-runtime-image-reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 16ac53c7-b38a-4982-8945-8f24c047ff8e

* Publish openclaw/p3a-standing-reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 36d2aa5d-b360-4bb3-b442-ca44063ff2b2

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: f39063e4-d5ac-484a-996c-378d1aed25ae

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 405b9b26-cce1-43e7-9acb-93166b710d9c

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: c1d161ad-84f6-4784-bd5c-c779e8588775

* test(workers): cover managed identity image claims and recovery

Exercise PAT and OAuth image checkout with the original host admission reader, denied callers and caller retirement. Share native profile setup with source-capacity proof, whose fixture remains explicit about repository preparation.

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

* Publish openclaw/p3a-runtime-image-reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: c3df37e2-07fc-4a9b-95a6-acb3a077f3cb

* fix(workers): retain standing reserves during demand reconstruction

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

* Publish openclaw/p3a-standing-reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 59e2edfb-d822-4d6e-93de-a5edbb076479

* fix(workers): retain repository admission after session creation

Forward the native caller-bound reader through required placement without borrowing a chat scope. Keep automatic repository setup aligned with required-worker setup policy and repair the exact-head CI fixtures.

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

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 72a91f97-2870-4d52-87e3-5f276658e867

* Publish openclaw/p3a-runtime-image-reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: cb7ac3cb-df17-4874-98ec-23f5eec0838c

* test(workers): exercise repository admission after image allocation

Remove the RPC fixture-only repository identity call from credential-free image intent creation. Keep actual repository startup and all denial controls, assert one managed verification on success, and shrink the matching test allocation.

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

* Publish openclaw/p3a-runtime-image-reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 21adb907-ae6f-446c-8e58-29fa48af700a

* Publish openclaw/p3a-standing-reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 869588f1-1142-4887-9785-353e5050fa2f

* fix(gateway): preserve native shutdown and identity fixture contracts

Align startup rollback proof with required finalizer joins from openclaw#188920. Keep native repository connection and Enterprise identity resolution in the handshake fixture, mocking only remote enrichment. Preserve existing handshake and revocation assertions.

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

* Publish openclaw/p3a-repository-authority

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 5bbb8a2f-4466-4f58-9406-3c8b39e44b5f

* Publish openclaw/p3a-runtime-image-reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 2098e121-027c-4257-bfed-57016863f99b

* Publish openclaw/p3a-standing-reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 5537df35-0ca3-4b29-a1b1-8f2ce9b02a23

* Publish openclaw/p3a-runtime-image-reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 0ec84c8a-6397-489f-8d47-3fed1f9c9414

* Publish openclaw/p3a-standing-reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: 184bf98b-756a-4986-9bbb-ef9a7cf5a640

* Publish openclaw/p3a-standing-reserves

Worked on by:
- @galiniliev

Co-authored-by: galiniliev <[email protected]>
OpenClaw-Publication: c21eb49f-3ad5-4ec6-be3a-da37e8a22288

---------

Co-authored-by: galiniliev <[email protected]>
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 gateway Gateway runtime merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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.

1 participant