Skip to content

docs(product): design record — remove initial_prompt, channel-first-turn delivery - #273

Merged
mattwilkinsonn merged 3 commits into
mainfrom
seal-first-turn-design
Aug 12, 2026
Merged

docs(product): design record — remove initial_prompt, channel-first-turn delivery#273
mattwilkinsonn merged 3 commits into
mainfrom
seal-first-turn-design

Conversation

@seal-agent

Copy link
Copy Markdown
Contributor

Freezes the design for removing initial_prompt from the whole Compass start contract (proto -> server -> runner -> agent SDK -> UI -> e2e harness). Matt has ruled the field out of existence: an agent session always starts idle, and its first turn arrives through a channel — never a prompt field the Runner silently drops today ((*agentHost).Start reads only the container name; every prompt riding the field is dropped and the agent idles forever).

This record is the contract that unblocks SEA-1792 H8 / PR #256 — the dogfood e2e TestLegTwoRealTurn is red precisely because its first turn rides the dropped field.

What it decides (DL-186..189, appended to the product ledger by T7)

  • DL-186initial_prompt removed from the whole contract (three fields, numbers + names reserved), consumers cut over atomically with no fallback; first turn arrives over the SEA-1569 deliver path.
  • DL-187@compass reserved alias frozen as the system-sender mechanism for any system-level message; case-1 root-manager boot scoped out to follow-up SEA-1820.
  • DL-188 — fresh-start barrier-lift: on a fresh start the Runner sends AgentControl{replay_complete} as the first control op after Bind (symmetric with the resume path, no agent change).
  • DL-189 — the case-2 brief carrier is a per-pair manager↔peer DM channel (ChannelKindDM), auto-provisioned on the spawn edge — not the coordination broadcast, so siblings never receive briefs they don't need.

Staging

  • PR-A (additive, lands first) — Runner deliver-lane build (DeliverControl dispatch arm, representable() admits Deliver/Steer, fresh-start barrier-lift) + spawn-edge DM auto-provision. Greens nothing yet; independently revertable.
  • PR-B (lands after PR-A) — the atomic initial_prompt removal + e2e harness re-model; greens leg-2.

Honest state

The server + agent halves of the deliver seam exist; the Runner middle leg is UNBUILT at three source-verified points (dispatch has no DeliverControl arm; gateway representable() rejects Deliver/Steer; no fresh-start replay_complete sender + the agent replay barrier strands a pre-replayComplete deliver). The record does not claim case-2 is verified end-to-end today — PR-A builds the leg.

Open for Matt at this gate

  • [FORK] StartAgentDialog disposition — removing the prompt empties the dialog, but DL-185 (SEA-1932, Active) explicitly keeps it. Delete vs bare-confirm is Matt's call (recommendation: delete). One conditional status-flip on DL-185's "Kept" clause.
  • [Minor] settle-primitive naming (AwaitTurnSettled).

Every cited file:line grounded against main@origin. No code, codegen, or proto changed — design record only.

Spec-impact: none. Refs SEA-1681, SEA-1820.

Co-authored-by: Matt Wilkinson matt@sealedsecurity.com

@linear-code

linear-code Bot commented Aug 10, 2026

Copy link
Copy Markdown

SEA-1681

SEA-1820

seal-agent and others added 3 commits August 10, 2026 16:04
…urn delivery

Freezes the design for removing `initial_prompt` from the whole Compass start contract (proto -> server -> runner -> agent SDK -> UI -> e2e harness). Matt has ruled the field out of existence: an agent session **always starts idle**, and its first turn arrives through a channel — never a prompt field the Runner silently drops today (`(*agentHost).Start` reads only the container name; every prompt riding the field is dropped and the agent idles forever).

This record is the contract that unblocks SEA-1792 H8 / PR #256 — the dogfood e2e `TestLegTwoRealTurn` is red precisely because its first turn rides the dropped field.

### What it decides (DL-186..189, appended to the product ledger by T7)

- **DL-186** — `initial_prompt` removed from the whole contract (three fields, numbers + names reserved), consumers cut over atomically with no fallback; first turn arrives over the SEA-1569 deliver path.
- **DL-187** — `@compass` reserved alias frozen as the system-sender mechanism for **any** system-level message; case-1 root-manager boot scoped out to follow-up **SEA-1820**.
- **DL-188** — fresh-start barrier-lift: on a fresh start the Runner sends `AgentControl{replay_complete}` as the first control op after Bind (symmetric with the resume path, no agent change).
- **DL-189** — the case-2 brief carrier is a **per-pair manager↔peer DM channel** (`ChannelKindDM`), auto-provisioned on the spawn edge — not the coordination broadcast, so siblings never receive briefs they don't need.

### Staging

- **PR-A** (additive, lands first) — Runner deliver-lane build (`DeliverControl` dispatch arm, `representable()` admits Deliver/Steer, fresh-start barrier-lift) + spawn-edge DM auto-provision. Greens nothing yet; independently revertable.
- **PR-B** (lands after PR-A) — the atomic `initial_prompt` removal + e2e harness re-model; greens leg-2.

### Honest state

The server + agent halves of the deliver seam exist; the **Runner middle leg is UNBUILT** at three source-verified points (dispatch has no `DeliverControl` arm; gateway `representable()` rejects Deliver/Steer; no fresh-start `replay_complete` sender + the agent replay barrier strands a pre-`replayComplete` deliver). The record does not claim case-2 is verified end-to-end today — PR-A builds the leg.

### Open for Matt at this gate

- **[FORK]** `StartAgentDialog` disposition — removing the prompt empties the dialog, but DL-185 (SEA-1932, Active) explicitly *keeps* it. Delete vs bare-confirm is Matt's call (recommendation: delete). One conditional status-flip on DL-185's "Kept" clause.
- **[Minor]** settle-primitive naming (`AwaitTurnSettled`).

Every cited file:line grounded against `main@origin`. No code, codegen, or proto changed — design record only.

Spec-impact: none. Refs SEA-1681, SEA-1820.

Co-authored-by: Matt Wilkinson <matt@sealedsecurity.com>
Review round 1 (sole review-of-record) found 0 high / 2 medium / 3 low,
all citation line-number accuracy — no design-judgment findings. The record's
file:line were pinned to a superseded base (f8ab68c); the record's actual
parent and the ws-first-turn worktree it names as its citation source is
main@origin, where SEA-1575 (2ebdf09) restructured dispatch.go and host.go.

Re-pinned every drifted citation, ground-verified against main@origin:
- dispatch.go execute switch :243 -> :359; default error :320-323 -> :446-449
- host.go Start/container read :264-265 and the wrong :227-228/:227 -> :284-285
- host.go READY status-answer :346,480 -> :405,785
- consumer.go deliverOp :277-281 -> :288-291 (plain miscite, not drift)
- runner.pb.go DeliverControl :599,634 -> :618,655 (was pointing at the wrong variant)
- mapping.ts agent_end READY :145-146 -> :115-116

Semantics were correct throughout; this is a locational fix only. The
Per-site table header already labels citations as ws-first-turn (= main@origin),
so the numbers now match the stated base. Additive commit atop the pushed head
so the PR shows the interdiff.

Refs SEA-1681, SEA-1820

Co-authored-by: Matt Wilkinson <matt@sealedsecurity.com>
At the design-PR gate Matt ruled OQ-1 (the one genuine fork left in the record):
StartAgentDialog is DELETED in T5, not reduced to a bare confirm dialog. Removing
initial_prompt empties the dialog (its only input was the prompt textarea); the
board start affordance invokes the spawn action directly with
{agentAccountId, workstreamId} (spawn is already guarded by the DL-164/168
live-session predicate and idempotent under its request id).

Ground check at ruling time: StartAgentDialog.tsx + .test.tsx still present on
main@origin and no open PR removes them, so the deletion is this design's own,
landed by T5 in PR-B after #267/SEA-1932 merges (so DL-185's "Kept" clause exists
to be amended). This resolves the record's last open fork; the status-flip is now
"one (Matt-ruled)". Settle-primitive naming (AwaitTurnSettled) was already
driver-resolved in-record.

Refs SEA-1681, SEA-1820

Co-authored-by: Matt Wilkinson <matt@sealedsecurity.com>
@seal-agent
seal-agent force-pushed the seal-first-turn-design branch from ece968c to 0243e19 Compare August 10, 2026 20:07
@mattwilkinsonn
mattwilkinsonn merged commit 4857a56 into main Aug 12, 2026
1 check passed
@mattwilkinsonn
mattwilkinsonn deleted the seal-first-turn-design branch August 12, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants