Skip to content

core: define the external compute contract and terminology #3104

Closed

Description

@schlessera

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

  1. added
    type: spike
    area: core
    area: docs
    agent-ready
    on Oct 28, 2026
  2. added
    priority: p2
    on Oct 28, 2026
  3. self-assigned this
    on Nov 2, 2026
  4. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Claim claim-3104-630731: picking this up as the first layer of the #3103 integration lane. Branch spike/3104-external-compute-contract targets epic/3103-external-compute (cut from main a62db8f27a22fd2df744308e9b1ee12bc50f3da2); 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.

  5. added this to the 0.45.0 milestone on Nov 2, 2026
  6. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Delivered to the integration lane. #3294 was squash-merged into epic/3103-external-compute as e9b33bea903ec7b8f21f85a933c33f64f7afe1d8, whose parent is a62db8f27. Its tree is identical to the tested head f54fd5a3c, and all 19 selected checks passed on that head, proof included. The decision record docs/decisions/external-compute.md contains the maintainer's rulings of 2026-11-02. This issue stays open, with milestone 0.45.0, until the epic branch merges to main.

  7. schlessera commented on Nov 3, 2026

    @schlessera
    OwnerAuthor

    Delivered on main through epic #3103's integration branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: corearea: docspriority: p2type: spike

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions