Repository navigation
Description
Context
Part of #3103. A provider adapter alone does not safely expose paid execution to hosted agents. Reuse the rules owned by #1645 and docs/decisions/governed-writable-workers.md. Credential relay ownership is documented at startInferenceRelay, packages/ui-sdk/src/server/inference-relay.ts:71-82; AgentBackend registration at BackendRegistryOptions, packages/ui-server/src/agent/backend.ts:43-57 remains distinct from compute providers.
Scope
Connect external command jobs to authenticated host/session/turn identity, existing approval/data-routing policy, Activity, abort and shutdown. Keep runtime secrets outside worker-readable environments and filesystem authority; a same-UID environment variable is not a demonstrated boundary. Add atomic budget/concurrency admission, cost reservation/reconciliation and recovery/cleanup hooks usable by multiple callers. Keep generic operator configuration and truthful readiness diagnostics in reusable packages.
Out of scope
No new model backend, automatic brain-root upload, claim that VM isolation equals existing worker governance, private hosting configuration or provider-managed remote agent session.
Acceptance criteria
- Hosted Claude and Pi tool paths invoke the governed operation with trusted caller/job identity; forged provider/caller/profile fields cannot widen authority.
- Data-to-provider policy and approvals are checked before export/allocation; raw owner credentials never reach ordinary model workers.
- Concurrent requests cannot oversubscribe the configured budget/concurrency reservation; unknown accounting refuses new work.
- Abort, disconnect, host restart and unknown vendor outcomes produce truthful Activity and bounded reconciliation rather than false success or orphaned unlimited compute.
- Missing host isolation/capabilities are reported or refused as required; enabling the feature does not weaken existing local worker governance.
- Offline integration tests cover both hosted backends, credential denial and adverse lifecycle paths without changing earlier provider history.
Verification
Use the repository's keyless test harness with fake vendor transport and disposable state. Exercise the real implementation, capture a failing-first or mutation receipt for each material boundary, and run the focused tests through the repository test script, typecheck and lint. Live provider proof is a separately authorized operator exercise; no credentials or vendor calls in CI.
Contract impact
Additive public API/CLI/MCP behavior requires contract documentation and a changeset; exact names are settled by the contract task.
Blocked by #3105
Blocked by #3107
2026-10-29 readiness review at main 83252add0357908a00fa4181b8e7b731938c69e7: the scoped implementation brief is complete for the output of its declared prerequisite tasks. Retain every canonical dependency and blocked; add agent-ready only to describe the dependency-gated brief. This is not currently pickable and does not approve provisional terminology/API choices. #3104 must first deliver its contract proposal and record any required maintainer rulings; implement only the accepted resulting contract, reassessing readiness if that output changes this scope. No vendor call, credentials, package change, allocation or release commitment is authorized by this triage. Priority p2 is consistent throughout the open dependency chain.
Activity
schlessera commentedon Nov 2, 2026
Claim
claim-3108-640679: layer 5 of the #3103 integration lane. Branchfeat/3108-hosted-computebuilds onfeat/3107-compute-cli-mcp(52126ebc7); none of the layers below it is merged yet. Maintainer rulings of 2026-11-02 for this layer:options.environmentis allowed.computeorigin.These will be recorded in
docs/decisions/external-compute.mdwith the implementation.fix(core): refuse external compute admission inside a hosted or maint…
CONTRACT: feat(core): expose external compute through brain compute a…
CONTRACT: fix(core): settle hosted jobs with their reservation and bi…
CONTRACT: fix(ui-server): close hosted compute's cancellation, creden…
CONTRACT: fix(ui-server): send compute Activity runs over HTTP only t…
test(ui-server): drive hosted compute through each backend's real too…
fix(ui-server): keep published compute-host declarations free of the …
fix(ui-server): update the turn-surface and Activity read expectation…
fix(ui-server): leave an unconfigured host's boot unchanged by hosted…
fix(ui-server): stay silent at boot when hosted compute is not config…
docs(decisions): re-anchor the hosted compute config citation
CONTRACT: feat(ui-server): admit and observe hosted external compute …
schlessera commentedon Nov 3, 2026
Delivered to the integration lane. #3343 was squash-merged into
epic/3103-external-computeas4e659951b9f07e9b1194eeb7eaaaf29d8b4a1d9f, whose parent is4604eccd5. Its tree is identical to the tested headb7a33c2bb. Confirmation run 41525577185 passed every selected job,proofincluded; that was also the first execution of the extended runtime provider-history tests for both backends. The 8 independent-review findings and 3 CI-found defects were fixed with failing-first receipts:Follow-ups: #3347, #3348, #3349, #3350. This issue stays open, with milestone 0.45.0, until the epic branch merges to main.
Merge main into epic/3103-external-compute
schlessera commentedon Nov 3, 2026
Delivered on main through epic #3103's integration branch.
epic/3103-external-computeafter its own hosted ready-candidate proof)418b037ae4a0f9988713125c6d54db9221341ed1(parents: main29799ebcd, epicd2c7fe7b5; merge tree identical to the tested epic head)d2c7fe7b5/ base29799ebcd, every selected job passed (theverifyjob was re-run once after abun installsetup timeout)