Extract the engine host — per-surface lifecycle policy behind a transport seam #178
Notifications
Due Date
No due date set.
Blocks
Depends on
Reference: AlexKucera/museion#178
Reference in new issue
Block a user
What to build
From the 2026-11-09 architecture review (mentor line, step 2 of 3).
The engine lifecycle policy — spawn, handshake, respawn-on-crash, teardown, and the per-surface residency rules (resident chat engine; on-demand pass engines spawned per run, torn down at the verdict, per ADR-0014) — moves out of the session model into an engine-host module sitting over the ACP client through a narrow transport seam. A scripted in-process transport becomes the second adapter at that seam, so engine-behaviour tests (streaming, crash, cancel, restart, per-surface spawn) run without child processes. Exactly one real-process end-to-end smoke per LLM Surface survives as the wire-contract guard — the rest of the zsh fake-server rigs retire from logic tests, attacking the documented real-process flake family.
The session model keeps session + turn coordination and remains the only observable the panes see; roster persistence and the ACP wire client already exist as their own types and stay put.
Acceptance criteria
Blocked by
[Generated by AI]