Repository navigation
Description
Context
Part of #3103. No common external execution contract exists. Existing patterns are packages/core/src/lib/registry.ts:1 and docs/extending/README.md:8; ROADMAP.md:63 constrains new seams. The maintainer explicitly requested multiple compute providers and Boat as the initial built-in.
Scope
Produce a bounded ADR and contract proposal covering provider instances, capability discovery, authentication references, source/artifact transfer, lifecycle states, command jobs, cancellation, leases, cost estimates versus actuals, error/refusal shapes and recovery after ambiguous effects. Compare External compute, Remote execution and Cloud sandboxes; recommend public terminology and API/CLI names. Distinguish the new provider category from model providers, AgentRunner and AgentBackend. Identify the plausible second production implementation and test it against the proposed surface. Define which operations remain host-owned and how existing local execution remains the default. Record the requested ownership/built-in direction as a durable decision; keep unresolved API choices visibly provisional. Add this epic to scripts/sync-project.ts's track mapping under an existing suitable track or a separately justified new one.
Out of scope
No vendor calls, credentials, paid allocation, final GUI design or second production provider.
Acceptance criteria
- The ADR names package ownership, the supported initial command-job slice and deferred interactive-agent capabilities.
- Two differently configured Boat instances and an independent SSH/self-hosted use case can be represented without provider-specific consumer code.
- Explicit disabled/unconfigured, unavailable, refused, uncertain and terminal states are defined; missing cost is never zero.
- Authenticated caller/job identity, data export policy, finite leases and local-default placement are specified independently of skills.
- Public terminology and a concrete contract example are recorded; decisions still needing a maintainer ruling are enumerated before implementation readiness.
- Existing extension/contract docs and project mapping remain consistent; no private instance references are introduced.
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
Design only until a public contract is adopted. The proposal must state additive/breaking impacts; any implementation in this task requires its own contract documentation and changeset.
Activity
schlessera commentedon Nov 2, 2026
Claim
claim-3104-630731: picking this up as the first layer of the #3103 integration lane. Branchspike/3104-external-compute-contracttargetsepic/3103-external-compute(cut from maina62db8f27a22fd2df744308e9b1ee12bc50f3da2); the epic branch merges to main in one go once every child lands. Collision check on the cited files: closure-only overlaps with unrelated draft PRs, no path collisions.docs(decisions): define the external compute contract and terminology (…
schlessera commentedon Nov 2, 2026
Delivered to the integration lane. #3294 was squash-merged into
epic/3103-external-computease9b33bea903ec7b8f21f85a933c33f64f7afe1d8, whose parent isa62db8f27. Its tree is identical to the tested headf54fd5a3c, and all 19 selected checks passed on that head,proofincluded. The decision recorddocs/decisions/external-compute.mdcontains the maintainer's rulings of 2026-11-02. This issue stays open, with milestone 0.45.0, until the epic branch merges to main.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)