Repository navigation
feat(codex): host cloud inference on enrolled workers - #186646
Merged
Merged
Conversation
Co-authored-by: galiniliev <[email protected]>
Keep native account verification while skipping only local credentials. Reject competing profile and supervision ownership, and prepare the keyless full worker-app-server composition fixture. Its network-none runtime build remains blocked on the separately owned offline native-archive runner prerequisite. Co-authored-by: galiniliev <[email protected]>
Copy only integrity-verified worker-native package archives into the isolated source snapshot. Preserve network isolation, private-state exclusions, and fail closed on unavailable or symlinked inputs. Co-authored-by: galiniliev <[email protected]>
Forward the existing managed HOME to plugin leases and keep native state inside its retained metadata owner. Prove the full keyless Gateway/node command, resume, cancellation and cleanup flow without changing watchdog or retention policy. Co-authored-by: galiniliev <[email protected]>
Revert 6f7dcaa. P5 #186614 owns the four-file runner repair; P8 uses that exact patch only as its recorded verification prerequisite. All other blobs remain identical to the accepted worker candidate. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: c7cbd0b4-f05a-42a7-b78d-f6c6193eac34
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Merge pinned main bb4be6d to resolve the two generated configuration conflicts. Regenerate through the configuration owner; all 70 non-generated P8 authored blobs remain unchanged. Revalidate the integrated keyless Gateway and worker-native execution, resume, cancellation and cleanup flow plus focused bootstrap, checkpoint and auth contracts. The external runner prerequisite is verification-only and is not included. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 86540a82-4200-41f1-a8bf-ec58875eeca6
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Use admitted configuration during harness registration, retain borrowed isolated clients during capability probes, and keep immediate native stdin writes synchronous. Restore the catalog-disabled command inventory and align the native privacy proof with retained HOME and separately owned ephemeral CODEX_HOME. Focused regressions and both real isolated Gateway/node routes pass; external runner tooling remains verification-only. Co-authored-by: galiniliev <[email protected]>
Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 6a79670b-ebc2-4fdf-9bab-9b681b964973
Co-authored-by: galiniliev <[email protected]>
Co-authored-by: galiniliev <[email protected]>
Co-authored-by: galiniliev <[email protected]>
Co-authored-by: galiniliev <[email protected]>
Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 790291d3-a7e8-44d8-ab82-ab34bf293e4e
Co-authored-by: galiniliev <[email protected]>
Co-authored-by: galiniliev <[email protected]>
Preserve exact native continuation through persisted thread observations, share lifecycle scenarios and provider fixtures, and keep lease construction module-private. Co-authored-by: galiniliev <[email protected]>
Integrate 87016c0 while preserving worker-owned lifetime and upstream native authority. Regenerate configuration artifacts and retain both troubleshooting sections. Co-authored-by: galiniliev <[email protected]>
Initialize credential-independent physical-client runtime ownership before attempt startup can supply Gateway context. Preserve thread custody and reject worker-origin host refresh requests. Co-authored-by: galiniliev <[email protected]>
Merge pinned main 2ab9447 for the generated configuration conflict. Regenerate the combined schema through its owner while preserving all 80 non-generated P8-authored blobs, worker credential custody and prior review bindings. Co-authored-by: galiniliev <[email protected]>
Merge pinned P5 main while preserving first-party worker credential custody and ordinary native-command authentication. Keep remote-exec refusal and host-profile rejection with the existing handoff owner, and reuse its profile selector rather than duplicate policy. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 950fc610-9ad9-4868-8ce8-aa1223134615
Co-authored-by: galiniliev <[email protected]>
Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 3425b6ed-8dde-43b4-8263-7bdd31afde83
Merge pinned main d67aa60 after actual generated-baseline conflicts. Regenerate from the combined source; preserve all 81 non-generated P8 authored blobs and accepted enrollment/refusal repairs. Co-authored-by: galiniliev <[email protected]>
Worked on by: - @galiniliev Co-authored-by: galiniliev <[email protected]> OpenClaw-Publication: 16ac1be4-c3bc-449f-a942-62fbfbd0949f
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #154388
What Problem This Solves
Cloud placements need to run Codex inference with the worker’s authentication and workspace rather than launching the model process on the Gateway.
User Impact
Opt-in Full node placements can run the exact enrolled app-server, execute native tools there, and continue conversations while the existing workspace remains available. Defaults are unchanged; unsupported carriers fail closed rather than falling back locally.
Operators provision one private worker-only bundle at the configured state directory’s
worker-provisioning/codex:config.tomland its single Node.mjsauth helper. Configuration/helper bytes determine the command identity—no separate environment selectors or manually supplied versions. Use private permissions, allow the exact versioned command through the existing node policy, publish while stopped, then restart/reprovision workers after changes. This replaces the three inputs proposed earlier in this unshipped PR; it adds no configuration field or budget exception.Worker initialization, inference and later refresh callbacks keep credential ownership on the worker rather than borrowing Gateway profiles. Local GitHub credentials are not forwarded. Selected Platform/subscription account constraints remain enforced; competing profile or supervision ownership is rejected. Dedicated ephemeral non-container nodes retain their own managed-identity transport and platform trust. Shared/container workers do not inherit them. Hosted native GitHub handoff stays disabled; host-owned tools retain managed GitHub execution.
Limits: worker validation remains Linux/keyless on the ordinary first-party route with synthetic upstream responses. Separate ordinary-session checks cover the landed native-command contract, not custom-provider-on-worker eligibility or worker secondary-account/keyring provisioning. Neither establishes commercial entitlement/live-model reasoning, cloud bootstrap/platform-identity attestation or Windows/macOS private-config qualification. No retained-disk, worker-loss recovery, replacement-workspace guarantee or immediate pruning deadline is added.
Why This Change Was Made
Private enrollment, production client selection, duplex transport and cleanup use existing placement, invocation and workspace owners. Resource readiness gates effects, not initial tool declaration. The bounded byte framer has real native consumers; caller-owned cleanup distinguishes transport closure from observed native exit.
One Codex provisioning owner validates the private bundle, parses its helper and derives the same identity for enrollment and registration. Lease staging preserves byte-equality checks; runtime verifies both enrolled content and the captured admitted command, so replacing content and its version cannot reuse an old admission. No alternate environment-input path remains.
The existing retained HOME also owns native metadata under
.openclaw-worker. Watchdog custody may outlive teardown; no competing retention owner is introduced. The intentional plugin configuration surface grows by one entry for explicit inference locality (4910 → 4911 against pinned main d67aa60; the earlier baseline was4889 →4890).Evidence
Published head:
bbef51062b83ec73373ce276ada250022af1fb1c; complete tree1a041dc8a80ddbffcaaa256e8c4b1673c71378ec, identical across all paths to qualified source commit6a5ddacc1be3913893dea77d87ae2c4a0d4fb1ae. The publisher added only an empty, Galin-credited attribution/receipt commit. Source6a5ddacc is a history-preserving merge of published43bbd67690619156d3d717ff60c214d8224672adand canonical maind67aa608643f6583a6c6102c522043794aafe064, observed once and pinned for the actual GitHub conflict. Exact-head CI and Darwin passed. At the 2026-10-30 08:10:58 UTC complete readback, GitHub reported mergeable=true and mergeState=clean. This is verified CI evidence, not a merge receipt; protected landing remains with the parent.Generated-only resolution: the preview and merge conflicted only in the configuration baseline count/digest. The canonical generator wrote and checked the union: core2579/channel4001/plugin4911. Incoming Particle contributes21 plugin entries; P8 retains its previously approved one-entry worker opt-in (pinned target4910 →4911). All 81 non-generated authored blobs and modes remain identical to43bb; every other path equals the pinned target. The full PR remains83 files,+4724/−309. Accepted enrollment
ea332936d1e03b63f017730102b4de814e2a3219and refusal consumerba72ebbc8c16a263df8b78c1eb9ab8475d77edb0are unchanged. No new production behavior, native pin, dependency version, public API, permission/schema contract or budget exception was authored.New-composition qualification: 41/41 cases across four files/three configurations passed in94.70s: incoming NFC-aware local Codex discovery plus resume/cancellation/source-authority controls, existing Codex registration/managed exclusions, worker opt-in parser and config renderer. Canonical generator/check, scoped incoming-owner types/lint, matched-code formatting and diff passed. Canonical budget: 6,291,927 /6,330,931, slack39,004; scalar/allocations exactly inherited from the pinned target. The first budget invocation printed the same passing result but its receipt-only shell suffix had a malformed exit argument; the unchanged canonical command was then run directly to collect a valid exit0. No source/budget/test change or product-failure repair is attributed to that wrapper error.
Review/proof reuse: this is not a fresh independent-review or native-runtime claim. The accepted full P5-compat two-pass normalP0–P2 review plus subsequent normalP0–P2 enrollment and refusal reviews retain their actual source scopes. All10 complete P5 review contexts and the eight enrollment/eight refusal owner contexts are unchanged;52 prior artifact hashes and both accepted draft hashes were reverified. Incoming full owner/caller inspection found only local CLI search normalization near Codex; auth/startup/worker/runner/diagnostic contracts did not change. The separate Particle provider does not widen worker eligibility. The minimal resolution adds no competing owner or compatibility layer. Prior Node/Bun composition, F1 and both causal CI repairs remain source-bound evidence below, not reruns or current-head clearance; broad scans and the historical native upgrade experiment were not replayed.
Refusal-notice consumer migration: merged
82ba1ed1074f05b92285258771988efe69a417f5/ #187883 intentionally replaced arbitrary cause-bearing notices with existing classified guidance or neutral copy while retaining private diagnostics. The human clarification explicitly keeps unknown failures neutral because raw input does not establish a safe next action. The E2E’s old concatenatedREFUSAL_NOTICEwas a stale consumer expectation, not a reason to restore arbitrary raw output or change provider refusal/retry semantics.The migrated test retains the exact selected model, exactly one provider request/no fallback, exact terminal refusal, one displayed notice and exclusion of the provider’s raw explanation. It independently checks that normal-history messages contain neither the private cause nor
details.error, then reads the actual canonical receipt after Gateway process settlement and before fixture deletion through existing owners. That receipt must retain the exact safe terminal diagnostic, one notice, display=true and excludeFromContext=true. The separate session-row presentation contract is unchanged.Both acceptance runs used the maintained rootless, network-none runner and existing immutable image
5db2b4385f40ad14dbbb818648bbca9168eacd2f6b8eef20cb3b87e2f68ce312, with verified Node26.12.1, native pnpm12.15.0 and pinned Bun1.4.4-canary.1+191755ec1. The runner rebuilt source-bound QA artifacts: original snapshotead39c72d30734a4624013b84b25f9e7f3f8677fbf5dae788de1ea919afc2178; migrated snapshot92f5912824ebcdf51f38fd1414d67b48727543c6820047f1c15f4b70cc0c315a. Both containers had runner-confirmed and independently checked absence. No image pull/build, shared install, host credential/config/service change or security exception occurred.Investigated local setup failure, preserved: the earlier9669 replay failed before provider receipt. A source-bound ea3329 diagnostic attempt reproduced that zero-request failure; its first console capture was suppressed by the E2E default silent mode. Supported verbose capture then showed five3–6ms
UND_ERR_SOCKETprovider-transport failures, default retry/backoff, andagent.waittimeout while the run remained active. The fixture inherited HTTP/S proxy variables and the production routing helper selected the environment proxy for loopback. The exact proxy-side socket-reset cause is not established. No host proxy/route was disabled: the acceptance runs created a new wholly synthetic stack inside the existing admitted network-none boundary. That stack reached the original CI assertion and then proved the intended contract. Failed host attempts and the original untraced uncertainty remain retained; no timeout increase, retry-for-green, weaker provider oracle or production-network fix is claimed.Accepted enrollment repair retained: ea3329 gates private Codex input loading/delivery on the prepared node runtime’s existing enabled-plugin inventory. Non-Codex enrollment no longer requires the Codex artifact or receives its private bundle; selected Codex validation and custody remain strict. Its original bootstrap red (1 failed/4 passed,68.18s), credential-exclusion red (1 failed/37 passed,65.59s),49 affected passes/four files (98.02s Vitest/102.17s wrapper), static gates and normal P0–P2 review were accepted and remain unchanged. F1, ordinary host OAuth/native-command behavior, native composition and broad removal-scan evidence below retain their original scopes; they were not replayed for this test-only migration.
Accepted refusal-repair normal review and simplification: independent autoreview/Codex on the complete ea3329→ba72eb one-file delta with full recorder, diagnostic-reader and lifecycle owners: one pass, P0–P2, scoped-clean, exit0, no actionable findings; final source verification passed. The reviewer did not execute project code or independently verify CI. The migration reuses the existing reader/shutdown callback and adds no production seam, competing renderer or fallback. The committed patch matches the reviewed/tested bytes.
Retained terminal9669 CI snapshot (not re-polled in this lane): CI41014736714, attempt1:119 jobs,92 successful/3 failed/24 skipped. The failures were non-Codex bootstrap123929060590, stale refusal consumer123929060494, and aggregate gate123934790333. PostgreSQL conformance and Darwin41014736701 passed. Complete inventory:20 terminal exact-head runs/179 jobs;181 check runs (118 success,3 failure,59 skipped,1 neutral), plus latest dependency/security success and CI-gate failure statuses. Six Security High jobs and security-fast passed; the separate CodeQL check was neutral. Reconciler41016794510 completed while preserving CI failure. No submitted PR reviews existed; the hosted comment remained explicitly stale. These are prior-head9669 facts, not clearance for this conflict-resolution candidate.
The full failed leaf logs were retained (453,514 and238,432bytes). They checked out merge
89c843ed52f48846c0f8251557ee6ec4f50280f7, parents CI base92f70afd34ea9f88bd62200212935bd675d5821aand9669; relevant failing owners/tests matched9669. Earlier read-only acquisition of that exact missing object did not integrate or chase main. The local repair continuation performed no fetch, CI rerun, hosted-review request or GitHub mutation.Published baseline (before the local CI repair):
9669ad527c8b6103c18d33b6b518cb552f36b92f; treef206488e76d1342d010048a39f7063e85b1fe802, identical across all paths to accepted, tested source commit3295943aaa2b53b6e8601a74ec2e1feae21f826d. The managed publisher added only an empty attribution/receipt commit. Its CI has now failed as recorded above; no green or landing claim is made. History-preserving merge of accepted dd98ce5 and newly landed P5 main c49e073, observed once and pinned. Actual conflicts affected the generated configuration digest and shared connection/runtime auth owners. The generator wrote and checked the combined schema; no age-only refresh or manually selected hash was used.Accepted pre-repair compatibility resolution: ordinary native-command selection still passes through its existing auth-handoff owner, including host-profile and remote-exec refusal. P8's first-party worker shortcut therefore cannot make custom native-command providers eligible on a worker. Account/ambient-key cache selection excludes both native-command and worker-owned auth. The shared producer uses one profile selector and calculates its typed auth requirement once, instead of duplicating selection and refusal policy. Ordinary native command, native headers and explicit native gateway OAuth remain supported; no blanket native-OAuth ban or identity binding was added. The native secondary account is not implicitly the Team requester.
At the accepted compatibility snapshot, F1's early config-only physical-client runtime and both F1 source files were unchanged. Of the original82 authored paths,76 blobs/modes remained identical to dd98; the six changed paths are the generated hash, auto-merged harness and test registration, the two reconciled auth owners and the compatibility regression. No new auth mode, public API, native pin, production test hook, authored dependency version or budget exception was introduced.
Both contained runtime invocations rebuilt from source snapshot e736874801aad2220db2fd0e61db30a91791bbd73c8f2ded1759d596aa733a38, exited0 and had container absence independently confirmed. Worker proof retains same native-thread ID/resumed action plus independent persistent one→two turns/unchanged first-turn ID, worker credential/cwd/HOME custody, native execution, exact cancellation/revocation, pending-write move refusal and actual helper/native extinction before node teardown. Ordinary native proof exercises the real token command, native headers, private native secondary-account persistence, a new native process and refresh, catalog credentials, host decoy exclusion and visible terminal output. Its Secret Service uses a fresh task-private bus/home inside isolation—no host bus, host keyring, real account or commercial provider.
Prerequisites: the archive/Bun runner helpers are now canonical in c49 and were used unmodified; no verification overlays were applied. The Node invocation used the existing immutable P5 native-auth-proof image4eeb1f2d90165ec9f1b0a9be373e5da43971102e27f031ad2046e89055d2b025; Bun worker proof retained existing5db2b4385f40ad14dbbb818648bbca9168eacd2f6b8eef20cb3b87e2f68ce312. The maintained runner preserved network-none, non-root execution and bounded mounts, and verified native Node26.12.1/pnpm12.15.0 plus the selected pinned Bun bytes/revision. No image build/pull, host installation, shared dependency reconciliation, security exception or timeout/assertion/routing relaxation was used.
Failures addressed, not hidden: the initial union failed structural lint at715 lines versus700. Consolidating profile selection and the repeated auth requirement reduced it to703; putting explicit native host-profile refusal back in the existing handoff owner removed the remaining duplication and passed. No line packing, suppression or ceiling increase was used. A subsequent typecheck caught the shared requirement widening to string; the producer now declares its existing auth-requirement union without a cast. All final static checks passed. Runtime tests did not fail in this compatibility phase; earlier failures below remain preserved. The final type annotation is erased at execution; both actual runtime compositions and review used the final source bytes.
Prior full-range compatibility review: independent autoreview of the actual complete local P8 candidate against c49, with ten complete overlapping-owner sources, completed two passes, P0–P2, scoped-clean, exit0, no actionable findings. It did not execute project code or independently rerun tests. Simplification retains the existing owners rather than adding another auth manager or duplicating native policy. Earlier review receipts retain their original scopes and dispositions in the history below.
Delivery/gate status: publication request16ac1be4-c3bc-449f-a942-62fbfbd0949f remains settled at exact headbbef5106 and tree1a041dc; no new source publication occurred. Previous43bb/request3425b6ed was conflicted and lacked test-CI attachment. One maintained exact-head watcher observed this head at150-second intervals from07:48:31 to08:09:22UTC and returned GREEN, exit0. The complete paginated readback finished08:10:58UTC: 20 terminal exact-head runs (14 success,6 skipped),179 jobs (120 success,59 skipped),181 check runs (121 success,59 skipped,1 neutral), zero failed or pending. Skips/neutral outcomes are reported separately, not counted as successful executions.
CI41021658563, attempt1, passed with 119 jobs:95 successful/24 skipped; Darwin41021658504 passed its one job. Security-fast and all six Security High jobs passed; latest dependency-review, security-sensitive-review and ci-gate statuses are success. Their reconciler41024192066 is a separate successful workflow_run on its controller source, with an explicit review job bound to PR186646/headbbef/CI41021658563/attempt1—not another model-runtime test run on this head.
The retained completed preflight log and Git commit API bind actual CI checkout
def965db05773531a5f81560deb6dcad35ff1d88to parentsd67aa608643f6583a6c6102c522043794aafe064andbbef51062b83ec73373ce276ada250022af1fb1c; its complete tree is exactly1a041dc8a80ddbffcaaa256e8c4b1673c71378ec. No submitted PR reviews or inline comments were present; the two existing hosted comments remain historical/stale, with no new substantive finding. Accepted local review scopes/dispositions above are unchanged. Effective rules retain code-owner review and the ci-gate; the protected landing step still owns review/authority enforcement.This observation lane performed no source changes, builds, main fetch/integration, CI rerun/re-push-for-green, hosted re-review request, merge, release or deployment. Only the authorized guarded evidence-body update follows the green result. Prior9669 failures, local setup/native uncertainties and all historical limits remain explicitly prior-source evidence. Parent owns fresh final inspection and protected green-only landing; this is not original-task completion.
Historical proof, failures, reviews and prerequisite provenance
These are source-bound earlier observations, not reruns or current-head gate declarations. Counts across overlapping runs are not additive unique coverage. Original local drafts, raw receipts and failure investigations remain preserved in the work session.
Accepted integrations and F1 credential ownership
Consolidation and compiler-boundary repair
Published-head CI and static/removal limitations
Historical native compatibility and other failure receipts
Actual released0.160.0→candidate0.164.0 proof passed in126.132s on the earlierb0966db1 composition through genuine plugin-code transition and same-state Doctor. Stored fingerprints and the exact predecessor log identify existing runtime-identity rotation: the same OpenClaw session/history continues, original rollout/tool-item bytes remain identical after continuation, and the new rollout contains continued conversation. Same physical native UUID, every hidden native-state item, full updater/package installation and byte-identical config were not claimed. The public native catalog reader's managed-predecessor refusal remains recorded.
A later unchanged one-off failed before candidate consumption: released-native execution and visible reply succeeded, but the post-shutdown binding namespace was empty. Exact released-writer investigation found a successful-but-unbound path when capability support is unknown, short-lived cleared-placeholder expiry, and a separate coverage-error clear path. Which branch occurred remains unconfirmed because the decision trace was not retained. No namespace mismatch or unconditional Gateway-stop clear was established. This is an investigated local failure, not a proven migration regression or repaired flake; no retry-for-green, seeding, delay, weaker oracle or retention change was used.
Other retained failures/non-outcomes include offline archive/HOME setup; source-acknowledgment, origin/profile, alias/auth and transcript-page-limit errors; restart/container-inspection failures; unclassified pairing and released-baseline missing-binding failures. Original exact-native-UUID expectations were corrected against the existing rotation contract, not by changing production policy. Deletion/aborted-manifest, CODEX_HOME, queued-result, pending-move and helper-only-exit assumptions were corrected against existing owners. A closed-port readiness probe received the host egress proxy's502 under Node/Bun; independent closed-listener proof matched and the unchanged case passed network-none. No proxy or test workaround was added. Passing later runs do not retroactively explain unresolved failures.
Source, prerequisite and scope provenance
No commercial entitlement/live-model reasoning, real cloud bootstrap, private Windows/macOS worker-config qualification, worker secondary-account/keyring provisioning, retained-disk/worker-loss/replacement-workspace guarantee or immediate pruning deadline is established. Native secondary accounts are not implicitly the Team requester. The first-party worker slice and P5's ordinary native-command contract remain distinct; no blanket native-OAuth ban is introduced.
Contributor credit
Adapted from the selected worker/native-runtime portions of Galin Iliev (@galiniliev)'s commits
fa6b7bc1fb5db71d8a1ef2e0883c01971608ee4eandd0cce88f317a4a29996a85686304246ea2701428, at his request.Work sessions
Worked on by