Browse the documentation
CAP-08: Seat orchestration
- ID:
CAP-08 - Title: Seat orchestration
- Lead:
bloom - Touches:
seed - Horizon:
next - Milestone:
M3 - CLI phase:
P3 - Status:
proposed - Claim:
planned - Depends on:
CAP-07
Why
Bloom’s team loop (src/teams.mjs) coordinates a head planner and specialist stages sequentially, while docs/backend/agent-runtime.md tracks team seats in database members rows. Multi-seat runs need declarative seat definitions keyed by role IDs rather than hardcoded character names or per-agent instruction files, pre-run validation so broken team documents fail before any model call, and bounded parallel fan-out that merges results deterministically in plan order.
What it does
- Preserves deterministic coordinator and verifier roles: the head (
chair) plans seat assignments, specialists execute in plan order, areviseverdict stops downstream assembly, and the deterministic verifier checks file integrity and invariants without calling any model. - Stores seats strictly as structured data in
src/seats.mjsalongside persistedmembersrows insrc/team-store.mjs: stored rows, events, tool IDs, and model prompts carry closed role IDs only (chair,framing,risk,coherence,sequencing), never per-agent instruction files and never display names; display labels come from the design canon and are read only by renderers (pending owner rulingD12). - Validates the declarative team document before a run starts (
CAP-08.1inseed, wired inCAP-08.2): passes parsedagentsandtoolsdocuments throughseed’scheckRegistryDocumentsplus tool-ID grammar checks (parseToolId/checkRegistry) and stops before any model call if any reference or ID is invalid. - Adds bounded parallel fan-out (
CAP-08.3): independent steps marked for parallel execution run under a strict concurrency cap, a per-step timeout, and a per-seat tool subset strictly contained within the objective’sallowedTools, merging outputs deterministically in plan order.
Contract touchpoints
docs/architecture.md: coordinator, specialist, and deterministic verifier roles, admission checks, and review hold behavior.docs/backend/agent-runtime.md:memberstable persistence, direct vs planned execution paths, and deterministic verifier step semantics.seed/docs/contracts/tool-id.md(CAP-08.1):checkRegistryDocuments, tool-ID grammar checks, andallowedToolsconstraints.seed/docs/contracts/run-model.md: objectiveallowedToolsand deterministic ordering rules.
Tool IDs and events
Tool IDs
| Tool ID | Effect | Third-party egress | Owner gate | Summary |
|---|
None. This capability introduces no tool IDs.
Events
| Event | Producer | Payload fields | Notes |
|---|---|---|---|
team.call |
bloom (src/teams.mjs) |
actor, roleId, calls, limit, phase, stepIndex |
Records seat role ID and step order for planned and fan-out calls |
team.message |
bloom (src/teams.mjs) |
author, roleId, text, epoch, assignments, verdict |
Carries ordered assignments, review verdicts, and deterministic verifier output |
team.usage |
bloom (src/teams.mjs) |
actor, roleId, calls, limit, model, usage, costUSD |
Records per-seat usage independently through src/provider.mjs |
Acceptance tests
invalid-team-document-stops-before-model-call: malformedagentsortoolsdocument, unknown tool inallowedTools, or invalid tool ID stops viacheckRegistryDocumentsbefore invoking the provider.revise-verdict-blocks-assembly: a specialist review returningrevisehalts assembly and downstream assignments.deterministic-verifier-makes-zero-model-calls: verifier seat validates hashes and invariants deterministically with zero calls toprovider.generate.seats-data-uses-role-ids-only-no-instruction-files:src/seats.mjs,membersrows, emitted events, tool IDs, and model prompts carry onlychair,framing,risk,coherence, andsequencingrole IDs with no display names or instruction markdown files, while display labels come from the design canon and are read only by renderers (pendingD12).bounded-fanout-respects-concurrency-timeout-and-tool-subset: parallel fan-out enforces max concurrency, cancels/times out slow steps at per-step limit, and rejects tools outside the seat’s subset of objectiveallowedTools.fanout-merges-results-in-plan-order: regardless of completion arrival order, merged messages and artifacts match original plan step order.
Slices
CAP-08.1(seed, milestoneM3, statusproposed): Declarative team document validation checks.CAP-08.2(bloom, milestoneM3, statusproposed): Declarative seats data, role IDs, and deterministic verifier handoff.CAP-08.3(bloom, milestoneM3, statusproposed): Bounded parallel fan-out with timeout, tool subset, and plan-order merge.
Non-goals
- Storing per-seat prompt or instruction markdown files in the repository (
AGENTS.mdprohibits agent instruction directories). - Allowing any seat to expand
allowedToolsbeyond the objective’s admitted set. - Defining the plan review state machine or owner plan-gate records (
CAP-07inaestivation).
Family rules and conflicts
- Stored seat rows (
src/seats.mjsandmembersrows), events, tool IDs, and model prompts carry only the five closed role IDs (chair,framing,risk,coherence,sequencing); display labels come from the design canon and are read only by renderers (pendingD12). - Pre-run validation delegates to
seed’scheckRegistryDocumentsandparseToolIdrather than duplicating registry validation in Bloom. - Sequencing note:
CAP-08(M3) depends onCAP-07(M3), which depends onCAP-06.1(owner-gate decision record atM3, withCAP-07.3plan-digest binding folded intoCAP-06.1underD14), keeping all ofCAP-08insideM3.
Open owner decisions
D12(pending owner ruling): seats ruling confirming thatsrc/seats.mjsandmembersrows store closed role IDs (chair,framing,risk,coherence,sequencing) while display labels live in the design canon and are read only by renderers, howsrc/seats.mjsaligns with or supersedes startermembersrows indocs/backend/agent-runtime.md, plus default concurrency cap and step timeout values.D14(pending owner confirmation unless overridden):CAP-06.1ships atM3withCAP-07.3folded in soCAP-07depends onCAP-06.1atM3.
Evidence
- None yet (
claim: planned).
Changes
2026-11-23: Clarified role-ID storage vs renderer-only design-canon display labels (D12), updatedCAP-07sequencing note toCAP-06.1atM3(D14), and addedM3slice milestones.2026-11-23: Initial capability specification created in Phase 0 timeline scaffold.