Skip to content

feat(openshell): run brokered inference on sandboxed nodes - #168458

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/openshell-brokered-worker-inference
Oct 17, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/openshell-brokered-worker-inference

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Run native worker inference behind OpenShell's credential broker without requiring OCE or Kubernetes, with optional canonical agent files shared across its sessions.

User Impact

Opt-in openclaw openshell worker create/run/configure commands provision a dedicated broker-attached sandbox through OpenShell, enroll its ordinary OpenClaw node, and configure the existing paired-device worker-inference profile. Docker and Podman use the same OpenShell gateway/CLI contract; neither engine is managed directly by this plugin. Existing sandbox-only behavior stays unchanged.

Optional worker.agentWorkspace: { agentId, remoteRoot } now binds one configured agent to an existing private directory on the paired node through File Transfer. Both Gateway and worker sessions use that canonical document owner; ordinary coding tools still use each session's task workspace. Setup never seeds or synchronizes documents, copies private Gateway state, widens node-command approvals, or overrides an existing File Transfer policy. Prepare the directory/files and review the existing grants before applying the binding.

Scope and important limits: one configured model, a qualified operator-supplied Node/OpenClaw image, and a foreground node host. OpenShell v0.1.3+ provider profiles, executable/endpoint policy, egress enforcement, and real provider credentials remain operator-owned. worker run owns a dedicated sandbox and stops the entire sandbox on exit/cancellation; cleanup failures explicitly report that the remote node may remain active. configure --required --apply affects all Gateway sessions and blocks turns when its worker is unavailable. No production deployment, release or production configuration was changed by this task. Assistant-run qualification used no real provider credentials; Sally’s separately reported live test below used her real OpenAI integration.

Historical standalone Docker E2E passed on October 10, including broker authorization, revocation, and confirmed remote cancellation. It uses a synthetic OpenAI-compatible HTTPS upstream, not a paid model account. Separately, Sally's October 15 report records Podman/OpenShell 0.1.4 and real OpenAI fresh-install feature validation at 9131246f6309; its exercised plugin source matches this head. This is contributor-reported proof, not a new assistant-run test, and explicitly does not establish installed stable-to-candidate preservation.

Compatibility and operator actions

No breaking change was found in the existing sandbox-only mirror/remote flow when worker is absent: its schema fields/defaults, backend and SSH/mirror paths are preserved; CLI registration launches nothing. This PR adds no core/SDK API, database migration, dependency, or worker-protocol change. The new worker mode is not a drop-in plugin upgrade for older Gateway/node builds.

  • Released OpenClaw v2026.10.1 lacks the native-inference stack and cloudWorkers.requiredProfile; its strict OpenShell plugin schema also rejects the new worker block. Installing this plugin alone does not backport core capabilities. Use matching qualified Gateway/node builds and their supported Node version; generic plugin host/API metadata is not worker-mode qualification.
  • For downgrade, finish/stop turns, reconcile pending browser inputs and reclaim native placements on the compatible build first; then remove required/native profiles and plugins.entries.openshell.config.worker. Older Gateways do not interpret settings.inference as a local-inference requirement. The October 17 cell below proves installed v2026.10.4 core/plugin preservation with boundary-fixtured optional worker configuration; live remote binding after upgrade and cross-version data downgrade remain unqualified.
  • OpenShell v0.1.3+ applies to the new mode only. Upgrading an older OpenShell deployment has its own breaking migration away from managed inference routes and requires recreating pre-upgrade sandboxes per upstream. This PR does not automatically upgrade OpenShell or migrate those records.
  • The workload needs Linux/OpenShell kernel enforcement (including Landlock), a qualified non-root Node/OpenClaw image with Git and POSIX process tools, and an imported provider profile authorizing the actual Node binary and HTTPS endpoint. Native Windows worker inference is unsupported; Docker/Podman selection alone does not establish host capability.
  • Initial support is one model using openai-completions, openai-responses, or anthropic-messages, with broker environment placeholders and correct CA trust—not every provider/auth adapter. The runner is foreground and stops the entire dedicated sandbox on exit. --required --apply affects all Gateway sessions; unavailable workers block turns. Rotation requires a new node process, and model/state changes are not silently overwritten.

The October 17 installed-upgrade cell establishes v2026.10.4 core/plugin preservation separately from the fresh-install cells. Live post-upgrade agentWorkspace binding and every provider/platform combination remain outside that proof; gaps are not inferred failures. Setup and rollback guidance records these boundaries; the source-bound historical Docker evidence below remains unchanged.

Why This Change Was Made

Use existing owners instead of adding another provider or inference protocol:

  • OpenShell creates/retains the sandbox with named existing providers and --no-auto-providers, then owns attachment readiness through sandbox provider attach --wait.
  • The remote bootstrap refuses missing/raw model credentials, accepts only OpenShell's injected opaque placeholder, and writes canonical node model config containing an environment reference—not a key. It maps OpenShell's CA file to Node's supported trust setting without disabling certificate verification.
  • Pairing uses connect --target-file with a private stdin handoff; reconnect uses node run. The Gateway profile derives the exact device ID from read-only node identity --json inside the selected sandbox, optionally checks an expected ID, preserves unrelated config, and refuses conflicting bindings.
  • Core remains the owner of live pairing, admission, device availability, worker-local inference selection, recorded placement snapshots, and rejection of Gateway fallback. No core/SDK runtime changes, new credentials store, or OCE API dependency.

Current OpenShell calls the real provider endpoint, not the retired workspace inference route. API/CLI contracts were inspected at released NVIDIA/OpenShell v0.1.3 (e1f3c82caa3ed3b65de22889ae7ef32a774878ef). Placeholder-format checks and provider readiness are not cryptographic custody attestation or upstream model probes; the deployment trust contract remains explicit.

The original default-off worker option adds 15 plugin config fields; the optional agent-workspace binding adds 3 more (18 total over the pinned main base). Canonical config-baseline outputs were regenerated; this growth is intentional, not an unrelated baseline waiver.

Evidence

October 17 rebase and v2026.10.4 installed-upgrade receipt

Installed core-and-plugin preservation passed. Optional worker configuration passed with the external OpenShell identity query fixtured; this is not a live OpenShell/agentWorkspace upgrade qualification. Earlier failed/interrupted .10.3 attempts below remain historical, not substituted evidence. No merge or auto-merge was performed.

Exact candidate: 72d2d262be1691e33030872433988304144fcd7a, tree 0fd48734bb75170abb97beb47bf598fe5655a6bd, rebased from 3359c7d0fe3042e3c02a191d71d901f46cae6f3a onto main 23f8eb5c0e33ed7e4c9cd84a3fbb193cc40548ee. One commit, Sally credit/publication marker preserved. Only the generated baseline hash conflicted; canonical regeneration retained +18 plugin fields. All production/test blobs and 15/16 nongenerated PR files are unchanged; the remaining documentation blob incorporates main’s canonical ClawHub locator spelling. Later main 0f2545d81d31b77020fa3aa4c7344d672dcc75fc composed without conflicts.

Fresh checks: 123/123 tests in eight files (45.51s wrapper wall), extension production/test types, typed lint on ten files, formatting, config baseline and whitespace passed. Canonical full build/package/integrity verification passed in 295.61s; the plugin was built separately through the prepublish plugin artifact owner. Exact-head CI 39038587398 succeeded; final readback: 43 successful and 53 skipped check runs, no pending/failed checks, all three applicable commit-status gates successful, GitHub MERGEABLE / CLEAN, OPEN/non-draft. No formal change-request review or requested reviewer is recorded.

Executed preservation cell

  • Baseline: published [email protected], commit 383c124cc32ffee3f8e56f549b88da94d269a4af, serving build 2026.10.4-release-383c124cc32f-2026-10-15T17-18-22.749Z; separately installed released @openclaw/[email protected] through its normal npm plugin owner, with registry integrity/identity assertions. The released plugin has no worker API.
  • Candidate: genuine unchanged-version .10.4 core package from this head; installed and serving build 2026.10.4-72d2d262be16-2026-10-17T13-55-54.191Z. No version relabeling, custom bundled plugin distribution, altered admission policy, or fabricated update result.
  • Real entry points: released openclaw update --tag <candidate-core.tgz> --yes --json, followed by independent openclaw update status --json; candidate openclaw plugins install npm-pack:<candidate-plugin.tgz> --force, managed-service restart, runtime plugin inspection and Gateway plugins.list. Placeholder paths in this public receipt replace private artifact locations.
  • Result: updater exit 0, 411.936s, durable run 0b65be8c-3037-4b11-9b3f-8ba1db61135f independently read back finished/succeeded. Candidate plugin install exit 0, 25.382s; all 8 archive payload files matched installed bytes and the serving Gateway activated OpenShell. Core and plugin restarts changed the service PID; readiness returned HTTP 200 and the exact serving build matched. Full cell 701s, exit 0, within the unchanged 1125s envelope. PASS was emitted only after service/process cleanup settled.
  • Existing data: complete pre-setup config objects were semantically identical after core update and after plugin replacement, including all sandbox-only OpenShell fields, policy path, unrelated settings, both agent workspaces and model intent. Four document files (AGENTS.md and notes/upgrade.md for each of two agents) stayed byte-identical. Both agents’ durable session IDs and entire returned transcript messages matched across core activation, plugin restart and optional setup. Incognito history disappeared as required and its marker was absent from retained state/backups.
  • Core migrations actually exercised: global SQLite 20→27, both agent databases 24→30. Full schema/metadata observations were captured; existing transcript preservation was asserted independently. These are intervening core-owned migrations, not migrations introduced by this plugin PR. No blanket schema/config exclusions or expected user-data changes were used.
  • Optional setup: actual installed openclaw openshell worker configure upgrade-proof --worker-profile upgrade-proof --apply exited 0 in 22.974s. It added only the intended optional device/inference profile; no required profile, model/auth edits or credential-fingerprint changes. One exact external OpenShell node-identity request was allowed by the fixture; no transport calls occurred during baseline setup, either upgrade boundary or restart. Documents/transcripts/config remained correct after the subsequent candidate restart.

Scope limit: the optional setup uses a synthetic identity, not a paired node. This cell does not exercise worker.agentWorkspace, File Transfer remote reads/writes, OpenShell sandbox creation, broker egress or inference after upgrade. Sally’s separately reported live fresh-install feature proof remains distinct. If the requested “optional setup” means live remote agent-workspace binding on the upgraded installation, that portion remains unqualified; this receipt must not be treated as closing it. No stored-data incompatibility was observed in this installed-preservation cell, but it is not universal platform/provider/downgrade proof.

Redacted artifact, environment and cleanup identities
  • Core SHA-256: 62e320d0a09178d323c1690fa371c78c211f84743d25da217ef4097596fce720.
  • Separate plugin SHA-256: 2c29a341576e17006068a951ff39f58a5b2d246026f0e2186faefebe856b1eed; manifest SHA-256 3db6497ff7cd70d1c5ee3a2ac8400179c8aeb66f7f4e552b70d4052140dbbe4b. Candidate-bound plugin registry manifest: 8f5ee77b0b8a4681e1122ba681645da4ef97c580d274657bbecdf12560e5135f.
  • Task fixture SHA-256: 2c950523a9689c6c61aa8fb6616ea726e58ef444e8fc6f2e50606a3651a14634; stock-runner adapter: 04734847a815d1f48d6871a0d3138de7b755417d22479ad13657627156bb901b. Source capsule verified all 57,143 blob identities before adding the two task-only fixtures. No product source/test files were changed for this proof.
  • Provider: direct AWS Crabbox, c7a.2xlarge; observed 8 CPUs / 16,371,781,632 bytes RAM. Lease cbx_6fb4d73d9fd1, proof run run_0fcc468d0db66586150e98ca1e549758. Docker default AppArmor/seccomp/cgroup namespace; canonical bare-image runner and disposable non-root account, isolated HOME/prefix/state/workspaces and native runtime volume. The service manager is the repository’s standard lifecycle fixture; updater, package/plugin owners, Gateway and storage are real.
  • Public-network/no-Tailscale/no-hydration/no-instance-role isolation verified; IMDSv2 IAM credential endpoint returned 404. Only CI environment forwarding plus Crabbox-owned metadata. No model requests, provider credentials, host private state or hosting Gateway mutations. TLS verification remained enabled.
  • Four document SHA-256s (main AGENTS/notes, second AGENTS/notes): ba2d1f28565b11992b1bea8157c1bcec2b81ec2a785011ee3b096ba287516cf7, 3305282efd2c5c290e90f2fb5802e1b9f6bf6fbfb76d31b7d89f5e2da79bcb4c, ee849cf80c2839064a6de6f0d6d9cb95e3ff039d3fef24e519f6b261116ca73f, 306dc87d5a55d33cbb6f73ee40326ea76d3de9ce0b5e48e90cc65622ced0bfd8.
  • Downloaded raw archive SHA-256 matched the remote archive: f00fdf63be9d67d57878393de312f6f3bd7613912ffd332e0fe66eef0c2e56c7. Raw config/logs are not published; credential values, private endpoints, paths and connection details are omitted from this receipt.
  • Cleanup independently verified: zero containers/volumes, blocking lease stop succeeded; final inspection released, hasHost=false, ready=false, cleanupStatus=complete, provisioningResourceMayExist=false.

Requested rebase and merge-blocker report — October 16

Published 3359c7d0fe3042e3c02a191d71d901f46cae6f3a, tree 643df03ee23f6c2792a285cfebd7a668deaa6faa, on pinned main 288e65080aaaba1b4e760368779bd8a0d20cf22c. Started from Sally's live remote head 581829c7eae40a9ea829de1579bfcf68fce07a8e, not the older local branch. The existing one-commit shape, co-author trailer and publication marker were retained. No merge, auto-merge, readiness transition or separate landing-worktree mutation.

  • Conflicts: docs/.generated/config-baseline.counts.json and docs/.generated/config-baseline.sha256. Regenerated canonically from the new base and feature schema; the intentional plugin delta remains +18 paths.
  • All 16 nongenerated PR files are byte-identical to the supplied remote head. Complete range-diff/source inspection found only regenerated metadata changes; existing substantive review remains applicable to the unchanged authored code. Later main e11881224c11bdea2e07c1bfa15fd70e3da2a2ba composed without conflicts.
  • Fresh checks: 123/123 tests across eight existing-sandbox and worker files, 47.13s wrapper wall; extension production/test types; targeted typed lint on 10 plugin production/test files, zero warnings/errors; canonical baseline, formatting and whitespace all passed. Main's pinned pnpm 12.11.1 frozen install was reconciled in this private idle worktree without changing dependency source files.
  • No new full build, cloud allocation or upgrade experiment was run for this mechanical rebase. Historical runtime, installed-update and data-preservation receipts below retain their original source identities and limitations.

Final exact-head checks: CI run 38957973590 completed successfully for 3359c7d0fe3042e3c02a191d71d901f46cae6f3a. Complete check readback: 46 successful, 65 skipped, zero pending/failed/cancelled/timed-out. GitHub reports MERGEABLE / CLEAN, OPEN/non-draft, one commit, no formal reviews/requested reviewers/review decision. The required openclaw/ci-gate is green; this does not substitute for maintainer judgment on the advisory qualification item below.

Remaining qualification distinction: no PR-specific incompatible database record, schema change, session format or protocol change has been identified. The refreshed ClawSweeper review targets this exact head and again lists no actionable findings, but retains its requested v2026.10.4-to-candidate core-and-plugin upgrade/preservation/optional-setup proof. That is a review/qualification gap for maintainer disposition, not a demonstrated data-migration defect. The recovered installed v2026.10.3 → 10f275f9aa8d core update succeeded with managed restart/readiness/exact build verification, but full preservation, separate candidate-plugin replacement and optional setup were not completed; the interrupted third attempt has no recoverable terminal proof. Those limitations are not silently promoted to a new-head pass.

Requested final rebase and blocker check — October 15 (16:58 request)

Rebased the existing single commit from 10f275f9aa8dd0947205acc52a7f930fe37cece0 onto pinned main 7285b93504a9453c4fbd03ff2281f8da33e9a40d. Published head 9131246f6309a2d9aae682f86c55b0e3b340a91b, tree 27e5f60f6489e6b34b58cb7d0110e41eee73094a. GitHub readback: one commit, OPEN, non-draft, mergeable. No merge/auto-merge/readiness transition.

  • Only docs/.generated/config-baseline.sha256 conflicted. Both configuration baseline outputs were regenerated canonically; the intended +18 plugin paths remain unchanged.
  • Production and documentation blobs are unchanged. Main's existing index.test.ts migration from polling to the authoritative plugin-retirement promise was retained automatically. The complete base-relative range comparison contains no new feature behavior or permission change. The single squashed commit, trimmed tests, Sally co-author and publication marker remain intact.
  • Fresh proof: 123/123 tests across eight sandbox/default/mirror/worker files, 65.63s wrapper wall; extension production/test types, canonical baseline, formatting and whitespace passed. Typed lint of the affected registration test passed with zero warnings/errors. The idle private checkout was reconciled with main's pinned pnpm 12.10.1 frozen install; no dependency source files were changed.
  • No fresh full build, VM or migration experiment was started for this mechanical refresh. Previous build, live broker and upgrade receipts remain bound to their actual earlier heads. No new implementation finding was identified in the resolved delta.

Merge-gate distinction: the effective rules returned by GitHub require openclaw/ci-gate; the new head's checks and automatic review are running. The current rules require zero general approving reviews and code-owner review where applicable; none of these 18 paths matches the current CODEOWNERS entries. GitHub reports no formal latest reviews, requested reviewers or review decision. This does not waive any enforced check or later owner/security requirement.

The older ClawSweeper comment 6098113740 still says “blocked before merge” for upgrade/preservation qualification, but was last updated October 13 for c89bc66069cd and lists no findings. Treat it as an unresolved qualification/review hold for maintainer disposition—not an identified old-record incompatibility or proof that a database migration is broken. It is distinct from the live required CI gate.

Recovered historical upgrade evidence (not new-head proof): the separately isolated v2026.10.3 installed updater did successfully activate 10f275f9aa8d, with managed restart, exact serving build, readiness and durable finished/succeeded status (run ae1791af-6bbf-4c2e-bfd4-c0d63ac87254, 383.139s). Attempt 2 receipt. The task fixture then falsely matched “lease” inside “releases”; full preservation comparisons, candidate-plugin replacement and optional setup were not reached. Attempt 3's controller ended 143 without recoverable terminal proof; its lease expired and live recovery inspection confirmed no host or remaining provisioning resource. Neither attempt is a complete preservation pass. Existing sandbox-only fields/defaults remain preserved by source review; older-host/native-placement prerequisites and post-opt-in downgrade cleanup remain documented.

Rebase and merge-readiness audit — October 15

Rebase published; compatibility qualification is not yet complete. Head 10f275f9aa8dd0947205acc52a7f930fe37cece0, tree 27246c3751887649c030dc868480de0a819b10d3, one squashed commit on main 17bea1c022a9bc90a464c7f8c2a01d784d246cb7. GitHub reports mergeable, OPEN and non-draft. No merge or auto-merge was requested or performed.

Only the canonical configuration baseline outputs conflicted; regenerated them rather than selecting hashes. All 16 nongenerated PR files are byte-identical to prior published head 8b2556a8d1a73f5fcb4c8b0c4b1599c8b84ea834. The +18 plugin fields, trimmed tests, Sally credit and publication marker remain intact. Later main e106d1fa54ec11e55cbd23d17334a99e7492c2b7 composed without conflict.

Source review: fresh independent full-delta review at 508e3c10fb1fd2ae108e27aabd8aa7c04575a0f0 (the same nongenerated PR blobs) found no P0–P2 findings. Existing sandbox-only defaults and mirror/remote owners remain unchanged by this PR. New SDK consumers match current contracts; File Transfer remains the canonical document/policy owner with no local fallback. Latest stable is now v2026.10.3, build source 59cb44796b0f1f0daa0e37af8b1495abb45d9bc1; it still lacks the new native-inference/required-profile semantics. Plugin-only installation on that old host is not qualified, and rollback after opt-in still requires the documented cleanup. This is a bounded source verdict, not a guarantee across versions or deployments.

Fresh final-head checks: 123/123 tests in eight existing-sandbox and worker files, 42.68s wrapper wall; extension production/test types, canonical baseline and whitespace checks passed. On the preceding 508e3c10fb1f refresh, the same 123 tests passed in 64.65s, targeted typed lint passed on 10 plugin files with zero warnings/errors, and formatting passed. Full canonical build plus package-integrity validation completed in 1530.04s on that precise earlier tree 65519cbcb42ef3102799d4a59d6c9093b090ad77; it is not relabeled as a final-head full build.

Genuine installed upgrade attempt — did not pass:

  • Disposable rootless Podman, Node 24.21.0/npm 12.2.0, private prefix/HOME/state/workspaces, synthetic data only. Host networking was used solely to reach the enforced managed egress proxy; TLS verification remained enabled. No hosting Gateway, production state, provider credentials or model calls were involved.
  • Installed registry-integrity-verified OpenClaw 2026.10.3 and the released @openclaw/[email protected] via their normal package/plugin owners. Authored sandbox-only remote settings and unrelated config through the released CLI; created a durable session/transcript through the released Gateway and four synthetic workspace files. Captured a stopped-state backup before updating.
  • Built the exact candidate core package with the canonical packer and separately packaged the candidate plugin through the prepublish plugin-artifact owner; the default core package correctly excludes OpenShell. No custom bundled distribution or fake version was substituted. Core SHA-256 9a7f74575b81e35a1f87eb74f5624fde97cee3b2115afc9fd2cc56ce22dcabec; plugin SHA-256 406c03d31215646e9526d86d08baf82dbf65cd4f1d237430743f2162bba03acd.
  • Ran the installed released updater, openclaw update --tag /proof/packages/openclaw-candidate.tgz --yes --no-restart --json. An interrupted first attempt settled failed with a stale managed-proxy authorization; its durable outcome was reconciled before retry. The retry used fresh authority and took 437.15s, exiting 1.
  • Candidate package installation, snapshot, Doctor, Doctor lint, config, database-schema, runtime and plugin-availability admission passed. The candidate Gateway startup probe did not pass: it stalled at startupz despite the child logging readiness; the candidate was not activated. The old released core remained installed. The non-default-state/no-service fixture also cannot qualify managed-service recovery. This is an observed qualification failure, not a demonstrated OpenShell data-model defect.
  • A cold restart of the retained released installation verified exact full configuration, all four document bytes, the original session ID and exact transcript messages preserved. This proves preservation after the refused update—not successful candidate data migration. The candidate plugin was not force-installed after core admission failed.

Probe-route control: on the unchanged released installation, the existing readiness helper and authenticated Gateway probe succeeded, while the released public ensureGlobalUndiciEnvProxyDispatcher() plus fetch failed for both /startupz and /readyz with UND_ERR_SOCKET under the same enforced proxy environment. Original config/data checks still passed afterward. This demonstrates an independent local HTTP/proxy-path failure in this venue; it does not retroactively make the candidate update pass. The inherited canary diagnostic replaces the last transport failure with a generic startup-stall message, so the exact failed canary request was not retained. No proxy, TLS or admission gate was bypassed. A qualified runner/probe route is still needed for the successful update cell.

Readiness: no source-review blocker found, but the requested successful installed-release-to-candidate upgrade/preservation cell remains unproven. New-head CI was attached and running at publication; prior-head green CI is not reused as current-head success. Historical broker/authority evidence below remains source-bound, and full external Podman, real-provider and downgrade qualification remain unclaimed.

Conflict-only refresh — October 13, 15:43 UTC

Rebased the existing single commit from c89bc66069cd79a14743f1459c8315f0be13c826 onto main a55dafd57b8155ea31bb7fe97fd163acd7e3d48f. New head: 8b2556a8d1a73f5fcb4c8b0c4b1599c8b84ea834; tree: babcc40fe9cf5a0a13c32246634e6be7c5e4e2bd. The branch still contains one commit, retaining Sally's co-author trailer, publication marker and the previously trimmed tests.

  • Conflicts were limited to docs/.generated/config-baseline.counts.json and docs/.generated/config-baseline.sha256. Regenerated both through the canonical generator; the intentional plugin-schema delta remains +18 fields.
  • All implementation and test blobs are unchanged from the prior head. Four PR-path blobs changed: those two generated files and two documentation files that automatically retained main's terminology edits. The base-relative range diff changes only generated metadata. No new behavior or permission changes.
  • Fresh focused proof: 21/21 tests in four OpenShell files, 56.59s wrapper wall; extension production and test typechecks passed (27.06s combined); targeted typed lint passed for 10 plugin files with zero warnings/errors; changed-file formatting, canonical baseline verification and whitespace checks passed. The private worktree dependency install was normally reconciled to main's pinned fs-safe 0.26.3 with the frozen lockfile; no dependency source files changed.
  • Mechanical replay review compared the complete old/new patches and changed blobs. Existing substantive reviews remain source-bound; no new implementation required re-review. A read-only merge against later main 0538c07d971655f1e7cbe66279112f608595ecd6 completed without conflicts, so the tested base was retained.
  • The full integration/build suite was not rerun for this metadata-only resolution. Earlier integration, real-broker and build evidence below remains historical; the prior build-timeout and external Podman/real-provider/stable-upgrade gaps remain disclosed. Hosted CI is separate from these focused passes. No merge or readiness transition.

Requested rebase and squash — October 13

Rebased onto main cf66264e598fd98718cff54a9fa378fbeb80d35a and squashed the eight PR commits into one: c89bc66069cd, tree 9f7c83f558a56d8e70259072d0396ad37cbdcfb2. Sally's co-author credit and the publication marker are preserved. GitHub readback confirms one commit, no merge conflict, OPEN and non-draft; no merge or readiness transition was performed.

Only the generated configuration-baseline hash conflicted. Both canonical baseline outputs were regenerated, preserving the new base plus this PR's intentional 18 plugin fields. All 16 nongenerated PR files—including implementation, documentation and trimmed tests—are byte-identical to the prior published head 225ec22581c3. Prior independent reviews remain attached to their actual source; this mechanical replay introduces no additional implementation change.

  • Final-base focused proof: 21/21 tests across OpenShell registration, config, worker CLI and bootstrap passed; 49.38s wrapper wall. Extension production/test typechecks, canonical config-baseline check and whitespace checks passed.
  • Earlier in this refresh, on main 7f4197068b3d: root-test type shards passed (combined production/test/root type run 258.57s); typed lint passed for all touched plugin production/tests and the E2E, with zero warnings/errors; changed-file formatting passed. These receipts are not relabeled as final-base broad CI.
  • Initial build/type attempts exposed stale task-local dependencies after the base update (including fs-safe 0.26.0 instead of pinned 0.26.2). A normal frozen-lockfile install in the private, idle worktree fixed that environment without changing tracked files. The focused tests and applicable typechecks were rerun afterward.
  • Integration rerun remains incomplete: the isolated Podman E2E reached the normal full-build prerequisite, but the 600-second execution budget expired during the second tsdown invocation, before any integration case ran. Its task container and descendant processes are gone; retained artifact ownership was recovered through the build owner's documented procedure. This is neither a failing workspace assertion nor a fresh integration pass. The earlier source-bound successful integration and live-broker evidence below remain historical.

Broad CI is left to the newly published head. Full external Podman broker, real-provider and stable-upgrade qualification remain unclaimed.

Requested test trimming — October 12

225ec22581c3 is test-only: 43 net lines removed relative to 7661c1e7cc77 (11 added, 54 removed across four test files). The workspace E2E shrank 690 → 656 lines. Compared with the original PR base 3eff8f0e249b, total added test lines are now 1,264, rather than 1,307; this is not a claim that the whole PR is net-negative. Production code, schemas, permissions, and behavior are unchanged.

  • Removed redundant snapshot-validity reads and duplicated sender-side node-config assertions. The actual bootstrap recipient retains the model environment-reference and worker settings checks, and now also owns the credentialEnv omission assertion.
  • CLI checks use the command and -- boundaries instead of absolute global-prefix offsets; prompt tests retain node/root/tool identifiers without fixing connective prose.
  • Removed the overlapping sibling outside-root pair, incidental model-request totals, and the extra post-revocation configure invocation. The retained private-state pair exercises outside-root read/write denial; the inside-root ungranted write remains distinct. Nonempty-map preservation, including wildcard/display-name policies, remains covered by the actual configure-action tests.
  • Retained: private pairing handoff, broker readiness and credential checks, real bootstrap behavior, generated grants, cross-session canonical documents, positive file effects, five denied/revoked operations with zero node/preflight frames and unchanged bytes, same-session applied revocation, offline refusal, and required-profile-removal/restart retention. No security oracle was replaced with a mocked permission result.

Fresh validation: 13/13 focused tests across the three changed plugin-test files passed (33.40s wrapper wall). The retained E2E passed 1/1, 83.291s test / 144.47s wrapper wall in the same isolated rootless Podman fixture route (Node 24.21.0, pnpm 12.9.0). These are measured costs, not a speedup claim: wrapper time includes preparation and varies with cache/load. The E2E remains opt-in; discovery alone is not proof it ran.

Extension-test and root-test types, formatting, plugin boundaries, and applicable ratchets passed. Targeted typed lint passed (three plugin-test files 17.8s, E2E 14.6s), and script lint passed (34.7s), all with zero warnings/errors. Fresh independent P0–P2 autoreview of the complete trim delta was scoped-clean. check:changed remains non-green only at the previously documented dead-export scan: 60 untouched finding files, verified unchanged from the prior head (158.60s overall); no exclusion or baseline weakening was added.

Tested commit/tree: 225ec22581c330281c563c6b7c65a96e5bdbebdf / 893785797f2aba00e15896010c2be97896c6cb9f. Retained runtime test, blob 58c63b7eac6e4fda7b66885fa8f5f4423f3675ac. The fixed external OpenShell/model fixtures and existing qualification limitations are unchanged; this does not add live broker, full Podman, real-provider, or stable-upgrade proof. No merge or readiness transition.

Current retained authority receipts
OPEN_SHELL_AUTHORITY_PROOF {"case":"configure-empty-map","policy":"seeded-by-cli"}
OPEN_SHELL_AUTHORITY_PROOF {"case":"allowed-document-read","outcome":"allowed","nodeFrames":2,"preflightFrames":1,"targetBytes":"verified","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"allowed-document-write","outcome":"allowed","nodeFrames":2,"preflightFrames":1,"targetBytes":"verified","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"allowed-memory-read","outcome":"allowed","nodeFrames":2,"preflightFrames":1,"targetBytes":"verified","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"allowed-memory-write","outcome":"allowed","nodeFrames":2,"preflightFrames":1,"targetBytes":"verified","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"forbidden-private-read","outcome":"POLICY_DENIED","nodeFrames":0,"preflightFrames":0,"targetBytes":"unchanged","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"forbidden-private-write","outcome":"POLICY_DENIED","nodeFrames":0,"preflightFrames":0,"targetBytes":"unchanged","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"ungranted-workspace-write","outcome":"POLICY_DENIED","nodeFrames":0,"preflightFrames":0,"targetBytes":"unchanged","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"other-session-read","outcome":"allowed","nodeFrames":2,"preflightFrames":1,"targetBytes":"verified","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"revoke-memory-grant","runtime":"applied","sameGateway":true,"sameCaller":true}
OPEN_SHELL_AUTHORITY_PROOF {"case":"revoked-memory-read","outcome":"POLICY_DENIED","nodeFrames":0,"preflightFrames":0,"targetBytes":"unchanged","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"revoked-memory-write","outcome":"POLICY_DENIED","nodeFrames":0,"preflightFrames":0,"targetBytes":"unchanged","localFallback":false}

Earlier source-bound proof below remains historical, including the broader sibling/reconfigure scenarios intentionally trimmed from the ongoing regression.

Workspace grant authority qualification — October 12

Passed the requested allowed / forbidden / revoked-access qualification. This is a test-only update: 7661c1e7cc77, tested tree 716f7460fd1245c04afad5d5386b4b0ce4087f88, integration test blob 2b96f44658cb62bf9145ca645fd91398eec124d0. Production behavior is unchanged from 8973cf66304b; no policy bypass or other production defect was found in these cases.

  • The actual configure CLI starts from an empty node-policy map and persists its default scoped grants. Native session A reads and edits AGENTS.md and a workspace memory document. Session B sees the canonical edit. This is not a hand-built substitute policy.
  • While paired/connected and with the same node-command permissions, session A attempts sibling and synthetic private-state reads/writes, plus a write to an ungranted file inside the workspace. Each returns POLICY_DENIED, with zero target-path node frames, including zero preflight frames, and unchanged target bytes.
  • An operator issues config.patch with an exact-path deny for the previously readable/writable memory document. Successful runtime application is awaited; config.get confirms matching applied/resolved revisions. Gateway PID and operator connection remain unchanged. A fresh native turn in the same agent session and task workspace repeats that read/write: both return POLICY_DENIED, dispatch no target-path/preflight frame, and preserve the previously edited bytes. Other canonical document reads continue to work. This proves new-operation revocation, not erasure of previously read conversation content or cancellation of a syscall already executing.
  • Re-running configure preserves the existing restrictive map, including its revocation. The original offline rejection and required-profile-removal/restart retention checks still pass. Gateway-local decoy bytes remain unchanged.

Why this establishes denial before node filesystem I/O: the existing wire fixture records every request before handler dispatch. Positive controls observe two real frames each (one preflight, one operation) and actual file effects. Denied attempts observe none—not merely zero writes after a filesystem-reading preflight. The production File Transfer policy gate precedes preflight and dispatch. The test separately reads canaries to verify their bytes; these claims concern the denied File Transfer requests, not all shell/OS access.

Execution: isolated rootless Podman, Node 24.21.0, pnpm 12.9.0; real Gateway/native worker processes and production File Transfer owners behind the paired-node wire fixture. OpenShell transport/identity and model HTTP remain fixed external fixtures. No paid inference, real provider key, OCE, or production configuration was used. This is not new live external OpenShell/Podman broker qualification.

# Inside the isolated fixture container with a writable /sandbox/proof:
OPENCLAW_TEST_OPENSHELL_ROOT=/sandbox/proof node scripts/run-vitest.mjs run   --config test/vitest/vitest.e2e.config.ts   test/e2e/qa-lab/runtime/openshell-agent-workspace.e2e.test.ts --maxWorkers=1

Passing run: 1/1 test, 89.695s test time / 142.42s wrapper wall, exit 0. The release-E2E tier is intentional: this combines persisted CLI setup, native execution, live config application, and retained session authority in one reused fixture rather than booting a process fleet per case. The first attempt exposed a fixture comparison of JSON-escaped versus decoded multiline text; it was corrected. A separate host/container artifact-lock collision was resolved by serializing the owners, without clearing an active lock or bypassing admission.

Root test types and typed E2E lint passed (0 errors, lint 15.3s); script lint passed (0 errors, 36.2s); changed-file format, boundary/ratchet, package, and coercion checks passed. check:changed still stops at the same 60 untouched dead-export files, verified unchanged from the prior head (116.77s overall); this is not an aggregate-green claim. Fresh independent P0–P2 autoreview of the final test delta was scoped-clean. Task container cleanup was confirmed.

Redacted terminal receipts from the passing run
OPEN_SHELL_AUTHORITY_PROOF {"case":"configure-empty-map","policy":"seeded-by-cli"}
OPEN_SHELL_AUTHORITY_PROOF {"case":"allowed-document-read","outcome":"allowed","nodeFrames":2,"preflightFrames":1,"targetBytes":"verified","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"allowed-document-write","outcome":"allowed","nodeFrames":2,"preflightFrames":1,"targetBytes":"verified","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"allowed-memory-read","outcome":"allowed","nodeFrames":2,"preflightFrames":1,"targetBytes":"verified","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"allowed-memory-write","outcome":"allowed","nodeFrames":2,"preflightFrames":1,"targetBytes":"verified","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"forbidden-sibling-read","outcome":"POLICY_DENIED","nodeFrames":0,"preflightFrames":0,"targetBytes":"unchanged","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"forbidden-sibling-write","outcome":"POLICY_DENIED","nodeFrames":0,"preflightFrames":0,"targetBytes":"unchanged","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"forbidden-private-read","outcome":"POLICY_DENIED","nodeFrames":0,"preflightFrames":0,"targetBytes":"unchanged","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"forbidden-private-write","outcome":"POLICY_DENIED","nodeFrames":0,"preflightFrames":0,"targetBytes":"unchanged","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"ungranted-workspace-write","outcome":"POLICY_DENIED","nodeFrames":0,"preflightFrames":0,"targetBytes":"unchanged","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"other-session-read","outcome":"allowed","nodeFrames":2,"preflightFrames":1,"targetBytes":"verified","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"revoke-memory-grant","runtime":"applied","sameGateway":true,"sameCaller":true}
OPEN_SHELL_AUTHORITY_PROOF {"case":"revoked-memory-read","outcome":"POLICY_DENIED","nodeFrames":0,"preflightFrames":0,"targetBytes":"unchanged","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"revoked-memory-write","outcome":"POLICY_DENIED","nodeFrames":0,"preflightFrames":0,"targetBytes":"unchanged","localFallback":false}
OPEN_SHELL_AUTHORITY_PROOF {"case":"configure-existing-map","policy":"revocation-preserved"}

Still separate: stable-to-candidate data/upgrade compatibility and full external OpenShell/Podman/real-provider qualification remain unclaimed. No merge or readiness transition was performed.

Canonical agent workspace — October 12

Implemented in 8973cf66304b, on prior head 7a688dfc37167b1e0ccc8a6fadbb81e2eb2bd91e. The plugin composes File Transfer's existing workspace service and file tools; there is no new core/SDK runtime, bidirectional synchronization, or OCE dependency. Setup, editing semantics, and retirement are documented.

  • Real composed runtime proof passed: one focused release-E2E case, 79.939s test / 131.97s wrapper wall, in an isolated rootless Podman container with Node 24.21.0 and pnpm 12.9.0. The actual configure CLI persisted the mapping and required profile. The paired-node wire fixture used the real File Transfer and native supervisor owners, with real Gateway and native worker processes. Two independently created sessions had distinct task directories and runtime-local inference; A fetched and wrote canonical AGENTS.md, B fetched the edit and received it in its actual model bootstrap request. Gateway document RPC read the same content; the local decoy remained unchanged. Offline access failed rather than reading the decoy. Removing only requiredProfile and restarting retained the mapping and remote content.
  • Qualification boundary: the external OpenShell exec/identity transport and model HTTP endpoint are fixed fixtures; the sandbox validation script runs unchanged. Running this composition under Podman is not new live OpenShell/Podman broker qualification. The October 10 real broker proof below remains historical. The fixture explicitly selects direct tool presentation and a non-reasoning model with thinking off; restart waits for the operator connection's actual hello signal.
  • Focused suites: 21 tests across four files passed across the scoped runs: config/defaults, prompt routing and current-config changes, real node bootstrap checks, and the actual configure action. The final affected CLI rerun passed 5/5 in 9.52s wrapper wall. Cases cover missing/private/symlinked roots, preserved remote edits, conflicting/shared Gateway workspaces (including resolved environment aliases), plugin/command denials, and unchanged existing policies. The initial feature regression failed on the old schema before implementation.
  • Review: an independent P0–P2 review found that synthesizing an exact-ID policy could shadow an existing display-name restriction. Its CLI regression failed before repair and passed afterward. Setup now preserves every nonempty node-policy map, including display-name selectors, and seeds a policy only when the map is empty. Fresh re-review was scoped-clean. The final runtime proof includes fixture corrections for connection readiness, model/tool presentation and failure diagnostics; final lint corrections are mechanical.
  • Build and static gates: full build exited 0 (234.00s); the final runtime was rebuilt by the E2E preparation owner (236.4s) after the policy repair. Extension production/test and root-test types, formatting, metadata, canonical config baseline, plugin boundary, doctor contract and other pre-export-scan guards passed. Targeted OpenShell and E2E typed lint passed (0 warnings/errors; 18.5s and 13.6s), as did script lint (1363 files; 37.4s), database-store, media-helper, runtime-sidecar and import-cycle guards, docs configuration examples, and whitespace checks. The last lint corrections were mechanically equivalent braces, explicit undefined returns, and omitted default type arguments.
  • Not aggregate-green: check:changed stopped at existing dead-export findings in 60 untouched files, all verified byte-identical to the prior head/pinned base; no guard exclusion was added. The full build also reported the existing Control UI chat-boot request advisory (36 versus 35) without a nonzero build exit. No UI source changed.

Stable-to-candidate upgrade/data compatibility remains unqualified, as noted by the existing review; this addition does not claim to clear that pre-merge gap. No merge, deployment, real provider credentials or production configuration change was requested or performed.

Rebase and compatibility audit — October 11 (22:48 request)

Rebased the four original commits from dceb3d219afed4bc863fde568fb0103c90e97446 onto pinned main 3eff8f0e249b64dffe1f029b13df014da3b8e55d, retaining their authorship, Sally co-author trailers, and the empty publication-marker commit. Final head: 7a688dfc37167b1e0ccc8a6fadbb81e2eb2bd91e; tree: 8ffa8ec73cf2fc399e5a65d636b9d2e121eb43ae.

  • Only docs/.generated/config-baseline.sha256 had a content conflict; regenerated both canonical baseline outputs. Counts: core 2499, channel 4031, plugin 4542 (the same intentional +15 plugin fields over main). Original feature code/tests are byte-identical to the pre-rebase head; the additional commit documents compatibility, rollback, and upstream OpenShell migration requirements.
  • Fresh worker plus existing sandbox/default/mirror/remote regressions: 120/120 passed, eight files, 51.36s wrapper wall. Extension production/test types, canonical config baseline, formatting, plugin boundaries, metadata guards, and doctor contract guards passed.
  • check:changed is not wholly green: dead-export findings in 60 untouched files, all byte-identical to pinned main. The full docs anchor audit found one unrelated existing release-page anchor error (releases/2026.10.1.md → /providers/openai/runtimes#agents-api-mvp); both endpoint files are unchanged from main. No exclusions or unrelated repairs were introduced.
  • Targeted OpenShell typed lint passed (0 warnings/errors; 94.76s including rebuilt SDK declarations). Database-first legacy-store, media-helper, runtime-sidecar and import-cycle guards passed; 0 runtime cycles. Docs config examples, final doc formatting, and git diff --check passed. The broader extension-lint failure from the prior rebase (unchanged Crabbox file: 717 lines versus 700) was not rerun; its source/rule inputs are identical. These results do not claim aggregate-green validation or green hosted CI.

An independent read-only audit of the complete rebased diff and released v2026.10.1/v2026.9.9 API sources found no new missing public SDK dependency or existing-sandbox regression; the older-host feature limitation above is explicit. Its recommended documentation clarification is included. No live AWS rerun was needed for the generated-only conflict and documentation changes. The October 10 Docker proof remains historical, not proof of this new main base or green hosted CI.

Historical standalone qualification — October 10 (passed)

Live-tested runtime tree: c1d17e880e773c421b94487980061492f104a10e, committed as fa9106345391525c01679f8873397bd90204c29f. The package was built from 8bf2d7c51d62fb2089c0f36d6447c560e4eb8f9f plus that exact reviewed patch. Pre-rebase head 6003d3d131598de28d887f401d88220ab5b73a57 adds only the image-tool prerequisites documentation; runtime source is identical. No protocol, dependency, or core/SDK change.

Environment: configured direct AWS Crabbox, small c7a.2xlarge VM; Ubuntu 26.04.1, Linux 7.0.0-1014-aws, Docker 29.8.2, host Node 24.19.0, workload Node 26.8.2, released OpenShell v0.1.3 (e1f3c82caa3ed3b65de22889ae7ef32a774878ef). No OCE/Kubernetes, IAM instance profile, secret hydration, or production keys. The complete released unprivileged enforcement probe passed before building: Landlock ABI 8, zero capabilities, no-new-privileges, runtime-default AppArmor/seccomp, and successful allow/deny primitives.

Passing security E2E run — 77.190s remote command, exit 0. The preceding basic E2E also passed in 70.113s. These are actual installed commands and real OpenShell/Node/Gateway processes, not mocked OpenShell calls.

  • Packaged and installed the candidate, then exercised shipped worker create, worker run, and worker configure --worker-profile ... --required --apply from neutral working directories. Pairing succeeded; configuration read back the selected sandbox node identity; the recorded required placement was active with inference: worker.
  • The synthetic TLS upstream received two authenticated model requests through the real broker. The native write tool produced the expected worker file and the completed assistant marker appeared in canonical Gateway history; the turn completed ok. A separate approved-executable control request also authenticated correctly.
  • The sandbox launch environment contained only the opaque broker placeholder and its canonical model config retained the environment reference. The real synthetic upstream key was absent from Gateway configuration/environment inputs. This is not a claim to have dumped the inference child’s private credential pipe.
  • A copied executable at an unapproved path and an unlisted endpoint both failed with EACCES, not timeout or certificate failure; zero forbidden requests reached upstream. An approved executable/endpoint control succeeded with certificate verification enabled.
  • Missing provider readiness prevented node launch. An explicitly mismatched device ID was refused without changing Gateway configuration.
  • After acknowledged sandbox provider detach --wait, a new native turn using the retained placeholder reached terminal error with no additional upstream request and zero Gateway chat-inference fallback requests. The fallback canary deliberately distinguishes auxiliary embedding requests; native worker placement does not move every auxiliary model service.
  • Immediately before cancellation the sandbox was Ready. SIGINT of the foreground worker command was followed by an authoritative Stopped readback. Sandbox/provider inventories were then empty, the task Gateway container was removed, no task containers/listeners remained, and AWS lease cbx_9e897aba8c50 was independently verified released with hasHost:false. Both earlier Testbox leases were already completed.

Candidate tarball SHA-256: a4d48b2cf7cf3d5bf74bdf7d90ca0848c9751a0bf9c3231393f872bdc98115b9. Canonical packaging/install phase: 465.075s; candidate image phase: 78.380s. Image qualification completes package lifecycle work before switching to the non-root runtime user and supplies Git plus POSIX process tooling. Only the exact pinned Gateway endpoint uses TLS passthrough; model-provider TLS inspection and credential substitution remain enabled.

Defect found and repaired by live testing

The original configure --profile collided with OpenClaw’s global configuration-profile option and was consumed before the plugin. The actual installed command failed its required-option check. It now uses --worker-profile consistently in code, tests, and documentation, without a competing root-parser exception or a legacy alias for the unreleased broken interface.

  • Updated regression first failed on the old implementation; 25/25 focused tests then passed, 8.10s Vitest / 9.48s wrapper wall.
  • Production and test extension types, touched-file typed lint, docs configuration examples and link checks passed; 47.15s combined wall, 0 broken links. The final documentation-only prerequisite clarification also passed formatting/config-example checks.
  • Fresh independent Codex GPT-6.1 Sol P0–P2 review: scoped-clean, no actionable findings in the repair delta. The original broader implementation review remains prior evidence, not a substitute for this live proof.

Earlier evidence and remaining limits

  • Original implementation proof at 7fd04290b18b6ea956c7e87f8d6aefa9d3a229f0 / tree 9502f76503c728fa93ad1e7fb9e34e935077568d used base e3415ea8c5543462464b02fb422551aeb32c491d, containing the merged worker-inference stack. It included 25 focused tests, 28 existing placement/native-model owner tests, SDK/plugin boundary and metadata checks, and a successful build (238.89s).
  • Original implementation disclosed these baseline findings: 456 environment names against budget 455; the export scan’s unchanged owners (tools/solid-lint/index.mjs default, POST_ACTIVATION_INSPECTIONS_STEP, two session-channel fixture helpers); and the initial build’s non-fatal Control UI startup-JS size warning. No guard exclusions or baseline weakening were added.
  • The first Testbox host had no Landlock (ENOSYS; both Docker and rootless Podman probes failed). The supported AWS VM resolved that host-specific prerequisite without relaxing enforcement. Earlier Testbox lifecycle record is not a passing integration test.
  • Not claimed: full Podman E2E parity, paid/real-provider model behavior, or latest-stable upgrade/data compatibility. The synthetic upstream proves the brokered request/authorization chain, not model quality. Operator-specific gateways/images still need qualification.

Local evidence is not a claim of green hosted CI or merge readiness. No merge or auto-merge was requested; Sally’s existing ready-for-review state is preserved.

Worked on by

Work sessions


View the OpenClaw team session

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime extensions: openshell size: L labels Oct 10, 2026
@clawsweeper clawsweeper Bot added 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. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds OpenShell commands for brokered worker inference and optional shared canonical agent files.

Example: Run openai/gpt-4.1-mini inside the native-worker OpenShell sandbox.

  • Before: The plugin manages sandboxed tools but provides no brokered worker provisioning commands.
  • After: Worker create, run, and configure commands enroll a node and select the existing worker-inference profile without placing provider keys on the Gateway.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Useful plugin-scoped implementation with shipped-entry-point evidence, explicit authority controls, installed upgrade preservation, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): Installed worker commands were exercised through real OpenShell, node, Gateway, and broker processes; Sally separately reported real OpenAI and canonical-file validation on matching production blobs. Broker denial and detach controls plus the production-owner file harness establish forbidden and revoked operations stop before external effects. The exact-head v2026.10.4 installed-upgrade receipt preserves existing config, documents, sessions, and transcripts and completes the previous preservation request. Its synthetic identity setup does not claim live remote binding after upgrade; no existing released worker binding or new storage format requires that additional scenario.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Operators need brokered native inference in OpenShell sandboxes without deploying OCE or Kubernetes, with optional canonical agent documents shared across sessions.
Reason: Maintainer authorship establishes direction, and the implementation supplies an opt-in adapter over existing owners with demonstrated user-visible behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR adds a useful optional integration, with no actionable introduced defects found and a green current-head CI gate.

Priority: P2
Reviewed head: 72d2d262be1691e33030872433988304144fcd7a

Before merge

None.

Findings

None.

Agent review details

How this fits together

The OpenShell plugin translates operator configuration into sandbox and node setup, while existing Gateway, File Transfer, and OpenShell owners enforce placement, file access, and brokered provider requests.

flowchart LR
  CLI[Worker CLI] --> OpenShell[OpenShell sandbox lifecycle]
  OpenShell --> Node[Paired OpenClaw node]
  CLI --> Gateway[Gateway placement owner]
  Gateway --> Node
  Gateway --> Files[File Transfer owner]
  Files --> Node
  Node --> Broker[OpenShell credential broker]
  Broker --> Provider[Model provider]
Loading

Technical review

Best possible solution:

Land the optional plugin integration with its documented deployment prerequisites and existing authority owners preserved.

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

This is a feature addition; the supplied live reports exercise its shipped commands and resulting inference and file behavior.

Is this the best way to solve the issue?

The implementation fits the existing plugin boundary and reuses placement, pairing, configuration mutation, File Transfer, and broker owners without introducing a parallel inference protocol.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Introduced scope and existing behavior: The pinned introduction adds plugin-local setup and composes existing contracts; current main still lacks these commands. Existing sandbox defaults and backend lifecycle remain intact. (extensions/openshell/index.ts:16, 72d2d262be16)
  • Installed upgrade preservation: The fully retrieved PR body, captured as sourceBodySha256 b07f35983ad34a1d0697b76b0b1db79d7b20c2a4d4c1d113f78563b1178170e7, records successful installed v2026.10.4 core and separate plugin replacement with complete configuration, document, session, and transcript preservation. Optional profile setup used a fixtured external identity query; live post-upgrade remote binding was explicitly excluded. This satisfies the prior preservation request for existing released state without claiming that excluded scenario. (72d2d262be16)
  • Live feature qualification: Sally's live report at feat(openshell): run brokered inference on sandboxed nodes #168458 (comment) covers Podman/OpenShell 0.1.4, real OpenAI inference, canonical document operations, separate session task workspaces, offline refusal, and reconnect recovery. GitHub blob identities for config, registration, worker CLI, launch, and workspace composition match the reviewed head. (extensions/openshell/src/worker-cli.ts:70, 9131246f6309)
  • Authority and revocation evidence: Published receipts cover approved broker requests, denied executable and endpoint controls with no forbidden upstream request, and acknowledged provider detach preventing another request. The inspected workspace scenario exercises actual configure-generated grants, allowed file effects, forbidden private paths, and same-session applied revocation with zero target-path node or preflight frames. Existing nonempty policy maps remain authoritative. (extensions/openshell/src/worker-workspace.ts:123, 72d2d262be16)
  • Current merge and validation state: REST readback confirms the reviewed head is open, non-draft, mergeable and clean; openclaw/ci-gate and the dependency and security commit-status gates succeed, with no failed or pending checks in the paginated readback. (72d2d262be16)
  • Determining dependency contract: The patch executes the OpenShell CLI and relies on its attachment readiness, native endpoints, and credential substitution, establishing the dependency-policy signal. Released v0.1.3 documentation confirms those contracts and the separate older-deployment migration requirements; its repository instructions were read. (docs/how-it-works/inference.mdx, e1f3c82caa3e)

Likely related people:

  • Sally O'Malley: Raw commit 8799a97 adds extensions/openshell/src/cli.ts:29 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8799a97efcf2; files: extensions/openshell/src/cli.ts)

PR surface

Source +907, Tests +1264, Docs +342, Generated 0. Total +2513 across 18 files. Added test files: 3.

View PR surface stats
Area Files Added Removed Net
Source 7 916 9 +907
Tests 5 1264 0 +1264
Docs 4 343 1 +342
Config 0 0 0 0
Generated 2 3 3 0
Other 0 0 0 0
Total 18 2526 13 +2513

Review metrics

Metric Value Why it matters
Optional configuration surface 18 added plugin configuration paths The worker and optional agent-workspace settings are absent by default and leave existing sandbox configuration unchanged.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: Useful opt-in worker provisioning for advanced operators, with no demonstrated urgent regression in existing workflows.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-11T21:16:50.060Z sha dceb3d2 :: blocked before merge. :: none
  • reviewed 2026-10-11T23:05:28.337Z sha 7a688df :: blocked before merge. :: none
  • reviewed 2026-10-12T00:56:12.681Z sha 8973cf6 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-12T02:10:19.117Z sha 7661c1e :: blocked before merge. :: none
  • reviewed 2026-10-12T02:17:04.828Z sha 7661c1e :: blocked before merge. :: none
  • reviewed 2026-10-12T16:54:13.725Z sha 225ec22 :: blocked before merge. :: none
  • reviewed 2026-10-13T01:36:05.762Z sha c89bc66 :: blocked before merge. :: none
  • reviewed 2026-10-16T19:58:03.575Z sha 3359c7d :: blocked before merge. :: none

Reviewed October 17, 2026, 10:26 AM ET / 14:26 UTC (Revision 14).

@sallyom
sallyom marked this pull request as ready for review October 10, 2026 14:20
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 10, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/openshell-brokered-worker-inference branch 2 times, most recently from dceb3d2 to 7a688df Compare October 11, 2026 22:58
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 12, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/openshell-brokered-worker-inference branch from 225ec22 to c89bc66 Compare October 13, 2026 01:28
@clawsweeper clawsweeper Bot removed the status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. label Oct 13, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/openshell-brokered-worker-inference branch 3 times, most recently from 10f275f to 9131246 Compare October 15, 2026 17:06
@sallyom

sallyom commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

AWS Podman/OpenShell live feature validation — October 15

Tested PR head 9131246f6309a2d9aae682f86c55b0e3b340a91b on RHEL 10.1, kernel 6.12 with Landlock enabled, Podman 5.6, and OpenShell 0.1.4. Gateway and worker used matching PR builds, isolated OpenClaw state, synthetic agent documents, and real OpenAI inference through OpenShell’s credential broker.

Passed

  • Worker creation, enrollment, required-profile configuration, and real openai/gpt-4.1-mini inference inside the sandbox.
  • Node configuration contained an environment reference; the sandbox received an opaque broker placeholder.
  • Canonical document reads and writes through Gateway file APIs and chat file_fetch/file_write. The Gateway-local decoy remained unchanged.
  • Two sessions observed the same updated canonical document while executing in distinct task workspaces.
  • Gateway restart preserved the required profile and canonical binding.
  • With the worker stopped, an agent without a document binding failed worker placement rather than falling back to Gateway inference.
  • Bound-file access failed while the node was offline, including after temporarily removing requiredProfile.
  • Restarting the sandbox and reconnecting the same node restored file access and native execution without re-enrollment or rebinding.

Observations and limits

  • One model-generated write used unsupported content; the tool rejected it without modifying the file. A corrected contentBase64 call succeeded.
  • Agents shared one sandbox user and node-scoped file grants; separate task workspaces did not provide mutual filesystem isolation.
  • Desktop streaming was advertised without a running VNC server, producing a disconnected panel. Chat and file operations continued.
  • This was fresh-install feature qualification. OpenShell was upgraded from 0.0.113 using backed-up state and a fresh test database. It does not establish existing-state preservation or an installed stable-to-candidate OpenClaw upgrade.

@sallyom
sallyom force-pushed the openclaw/openshell-brokered-worker-inference branch from 9131246 to 581829c Compare October 15, 2026 22:32
@sallyom

sallyom commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Merge-ready at 581829c7eae40a9ea829de1579bfcf68fce07a8e. Exact-head CI is green, including openclaw/ci-gate; 55 focused OpenShell tests passed after the latest rebase, with nine additional workspace/projection checks passing before the patch-identical rebase. The AWS Podman/OpenShell live evidence above covers brokered inference, canonical files, required-profile offline failure, and restart/recovery.

No accepted implementation blockers remain. Production changes stay within the optional OpenShell plugin; existing sandbox-only defaults are unchanged, with no database migration or shared worker/File Transfer contract changes. The automated cross-agent prompt concern was rejected after tracing exact workspace projection and Gateway-prepared prompts and checking the existing boundary tests.

The older ClawSweeper stable-upgrade proof request remains an explicit evidence gap, not a demonstrated regression or merge blocker: no changed existing-state contract was identified.

@roboclaw-bot
roboclaw-bot force-pushed the openclaw/openshell-brokered-worker-inference branch from 581829c to 3359c7d Compare October 16, 2026 19:51
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Oct 16, 2026
Provision dedicated broker-attached native workers through OpenShell and bind
optional canonical agent files through the existing File Transfer owner.
Preserve explicit policy restrictions, private pairing, and required-worker
failure behavior with focused CLI/bootstrap and runtime authority coverage.

Co-authored-by: sallyom <[email protected]>
OpenClaw-Publication: 5588eb80-4e62-4b2c-9142-7a6d4aff5d77
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/openshell-brokered-worker-inference branch from 3359c7d to 72d2d26 Compare October 17, 2026 13:55
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 17, 2026
@roboclaw-bot
roboclaw-bot merged commit 38f411f into main Oct 17, 2026
116 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/openshell-brokered-worker-inference branch October 17, 2026 14:41
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
…168458)

Provision dedicated broker-attached native workers through OpenShell and bind
optional canonical agent files through the existing File Transfer owner.
Preserve explicit policy restrictions, private pairing, and required-worker
failure behavior with focused CLI/bootstrap and runtime authority coverage.


OpenClaw-Publication: 5588eb80-4e62-4b2c-9142-7a6d4aff5d77

Co-authored-by: sallyom <[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 extensions: openshell gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XL 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.

2 participants