Repository navigation
Description
Outcome
A brain can use multiple external execution providers through one supported contract. Boat ships as the first built-in provider, available by explicit configuration; installing the package never allocates paid resources or enables cloud execution automatically.
Why now
Hosted and local agents need disposable execution and overflow capacity without vendor-specific lifecycle code in each workflow. The maintainer requested generic multi-provider support and Boat as the initial shipped provider on 2026-10-28.
Shared context
The terminology is settled by the 2026-11-02 ruling (Rulings, docs/decisions/external-compute.md:64): external compute is the capability, compute provider an implementation, provider instance one configured implementation, sandbox an allocated environment, and job one requested unit of work. Compute providers remain distinct from model providers and AgentBackend implementations. The original design alternatives are historical, not an outstanding parent prerequisite.
Read ROADMAP.md:63 (binding decisions), docs/extending/README.md:8 (built-in name/by-value implementation convention), resolveEmbeddingProvider, packages/core/src/lib/registry.ts:98-115 (existing registries), BackendRegistryOptions, packages/ui-server/src/agent/backend.ts:43-57 (agent backend registry boundary), and docs/decisions/governed-writable-workers.md. Source baseline inspected: 1d63f9c; recheck anchors before implementation.
Constraints and non-goals
- Generic support and provider implementations live in brain-kit. Instance secrets and deployment settings remain outside the public project.
- Support several configured providers and multiple instances of one provider. Follow existing extension conventions rather than adding a plugin loader or mandatory daemon. Record a plausible second implementation, such as an SSH/self-hosted sandbox provider, without requiring it to ship in this epic.
- External compute supplements local execution. No automatic upload of brain content, owner credentials or unrelated projects; honor data-to-provider restrictions, approvals and taint policy.
- First delivery supports command jobs. Interactive remote agents are an explicitly separate capability; a remote shell is not proof of governed agent-worker equivalence.
- No hosting-provider migration, storage abstraction, model-provider replacement, hardcoded deployment data or mandatory paid account.
Breakdown
The initial contract/terminology design, generic lifecycle/conformance core, Boat adapter, CLI/MCP/skill surface and governed hosted-job integration (#3104–#3108) are delivered by #3404, merge 418b037ae4a0f9988713125c6d54db9221341ed1, an ancestor of inspected main. The existing landing receipt retains the candidate proof and 0.45.0 attribution. This triage checked ancestry and source; it did not rerun that proof or make a vendor call.
Remaining native follow-ups: #3347 (owner-only hosted abandonment), #3348 (retirement cancels hosted jobs), #3349 (external-compute budget coverage), and #3350 (Activity rollup classification). All four remain open, p2 and agent-ready. Their own criteria govern implementation; the parent stays open until they resolve and the full outcome is accepted. Existing egress/credential governance in #1645 is reused, not reimplemented.
Definition of done
- Boat and an independent offline test provider pass the same contract without vendor switches in consumers.
- Unconfigured installations remain keyless and local; provider selection, unavailability and unsupported capabilities are explicit.
- Authorized jobs preserve source identity, bounded lifetime/cost, cancellation, results and restart recovery. Unknown allocation results cannot trigger blind duplicate provisioning.
- CLI, MCP and agent guidance expose the same operations and preserve existing governance and provider-history contracts.
- Published documentation explains enabling providers, credentials, capability limits, retention and disabling the feature. No live account or deployment is implied by package tests.
2026-10-29 triage at main 83252add0357908a00fa4181b8e7b731938c69e7: verified all five native children and the recorded generic/multiple-provider ruling. Refreshed the registry anchors; final terminology and contract choices remain the deliverable of #3104, rather than a parent-level blocker to starting that spike. The epic retains its outcome and definition of done, priority p2 and no agent-ready. No new seam implementation, provider allocation or release commitment is claimed.
Triage 2026-11-05 at main 35217d283b849b5ef81700d5d4c2ec7486405d12: folded the delivered terminology/runtime and current native follow-ups into the active brief. Preserved p2, no new release commitment and no epic readiness; historical receipts retain their own source and proof limits.
Activity
schlessera commentedon Oct 28, 2026
Decision (maintainer, 2026-10-28): Add generic support for external compute/sandboxes in brain-kit, with multiple providers and Boat as the initial shipped provider. A shipped provider is available for explicit configuration; it does not mean paid cloud execution is enabled automatically. Compute integrations remain distinct from model/agent backends. Final capability/API names are still open: External compute, Remote execution, Cloud compute and Cloud sandboxes are candidates.
Planning session: created this epic and five native sub-issues for contract/terminology, generic lifecycle, Boat, CLI/MCP/skill guidance and governed hosted invocation. Public bodies were checked with the repository leakage gate. The first actionable slice is the keyless contract/design spike; implementation children retain dependency blockers. The durable ownership/seam decision and project-track mapping are included in that task. No release milestone or live deployment is claimed.
docs(decisions): define the external compute contract and terminology (…
Merge main into epic/3103-external-compute
Merge main into epic/3103-external-compute
Merge main into epic/3103-external-compute
Merge main into epic/3103-external-compute
schlessera commentedon Nov 3, 2026
Epic state — 2026-11-03
All five children are merged into
epic/3103-external-compute: #3104 (#3294), #3105 (#3299), #3106 (#3304), #3107 (#3322), #3108 (#3343). Lane PR #3404 to main is open as a draft. The children stay open until it lands.Once #3404 merges and the children close, check the definition of done against main before closing this epic.
Merge pull request #3404 from schlessera/epic/3103-external-compute
schlessera commentedon Nov 3, 2026
State (2026-11-03): the external compute delivery landed on main in one merge, #3404 (merge commit
418b037ae4a0f9988713125c6d54db9221341ed1), proven by CI run 41725494220 on the exact head and base.Done (0.45.0): #3104 design record and rulings, #3105 provider contract and job lifecycle, #3106 the
@schlessera/brain-compute-boatprovider, #3107 CLI, MCP and agent guidance, #3108 hosted admission and observation.Still open, so the epic stays open: the hosted follow-ups #3347 (abandon a job stuck as uncertain), #3348 (test that retiring a conversation cancels its jobs), #3349 (whether budget coverage names external compute) and #3350 (keep compute runs out of scheduled-job Activity rollups). The definition of done is met for the delivered scope; the epic closes when those four are resolved.
The merge also raised the strict typecheck heap budget to 6144 MiB (maintainer ruling, recorded in
docs/decisions/ci-utility.md), because main's compiler had reached the 4096 MiB cap.test(backends): re-record the SDK options and pi roster characterizat…
Merge epic/3234-chat-deletion (main) into PR #3456 after the epic landed