Skip to content

core: manage external compute lifecycles independently of vendors #3105

Closed

Description

@schlessera

Context

Part of #3103. Consumers need one lifecycle implementation rather than duplicating vendor cleanup and failure handling. Implement the accepted contract from #3104; existing registry convention starts at resolveEmbeddingProvider, packages/core/src/lib/registry.ts:98-115.

Scope

Implement typed provider registration/resolution and instance IDs, capability checks, lifecycle receipts, command handles, cancellation, bounded leases, source/artifact manifests and durable job state outside disposable brain.db. Provide restart reconciliation for pending/unknown allocations. Keep host-owned admission and caller identity explicit; preserve vendor-independent error/cost/retention metadata.

Out of scope

No Boat-specific HTTP code, global fleet scheduler, new daemon requirement, implicit content sync or interactive remote agents.

Acceptance criteria

  • Two provider implementations pass one shared conformance suite, and two instances of one implementation remain separately configured and authorized.
  • Unsupported capabilities refuse before effects; unconfigured providers leave local operation usable.
  • Cancellation, deadline expiry, restart, lost creation response and failed cleanup retain enough state for reconciliation without duplicate effects.
  • Artifact/source identity and terminal exit status survive the lifecycle; partial/missing results and uncertain cost are explicit.
  • Fake-clock/racing-process tests prove finite lifecycle behavior and state ownership; no authoritative state is stored only in rebuildable brain.db.

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 #3104

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

  1. added
    type: featA new capability or a change in user-visible behaviour.
    area: corepackages/core: the brain CLI, indexer, hybrid search, config, taxonomy, skills.
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.
    on Oct 28, 2026
  2. added
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    on Oct 28, 2026
  3. self-assigned this
    on Nov 2, 2026
  4. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Claim claim-3105-631978: layer 2 of the #3103 integration lane. Branch feat/3105-compute-lifecycle implements the contract in docs/decisions/external-compute.md (#3294). Work starts from #3294's head f54fd5a3c; that head's selected hosted proof is still pending. No PR opens until #3294 has merged into epic/3103-external-compute and this branch has been rebased onto that tip. blocked and Blocked by #3104 stay until #3104 is reconciled.

  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. #3299 was squash-merged into epic/3103-external-compute as 8de5ecb407dcddfc82caff16a9351b9fa7434abc, whose parent is e9b33bea9. Its tree is identical to the tested head 9a4f9c375. Confirmation run 41483430273 passed proof and every selected job on that head. The 10 independent-review findings were fixed with failing-first tests before merge. 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-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: corepackages/core: the brain CLI, indexer, hybrid search, config, taxonomy, skills.blockedWaiting on another issue or an upstream dependency. Say which in the body.contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: featA new capability or a change in user-visible behaviour.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions