Session resume and multi-surface ownership
Reading of harness/docs/decisions/session-restart-refuse-second-writer.md. If this page and that file disagree, the source file wins.
Session resume and multi-surface ownership
Section titled “Session resume and multi-surface ownership”Decision
Section titled “Decision”Product session meaning restores from the session plane: openWork, sealed Expectation results, authored fields. The resume image is the CRDT and the PEW record. Chrome derives from the work forest (SessionRoot.findRunningTurn(), approvalQueue / needsHuman, ../runtime/approval.md).
There is no parkedTool / hasOpenTurn() / hasRunning() chrome field. Process-local host logs are never resume input. Do not replay a second image (event log / fold) for “phase” or transcript truth. That replay is dual books. Derive chrome from openWork shape.
Many peers attach on the plane dial. Replication does not implement dial-time writer leases (?role=writer / busy lease codes). Do not reintroduce steal/lease-steal on the dial.
Clients attach as CRDT peers. They steer via session RPC (turn, compact, kv/set, kv/clear, connect/adopt, connect/drop) and PEW/Proposals (cancel / Question). They write durable approval fields on open Work. They do not CRDT-mint PEW/Expectation bodies.
When a session is claimed, the one daemon process owns the claim. That claim is PEW claim ownership. It is not a replication upgrade gate.
The CLI resumes from a ledger session id and rehydrates the plane (--resume [sessionId]). There is no product --fork steal path on the plane dial.
Storage lives under the harness install root (~/.harness/… per convention): plane ydocs, session pairing, leftover metadata.
Forced by
Section titled “Forced by”Once obligation and sealed results live on the Expectation tree, replaying a second image (event log / fold) for “phase” or transcript truth is dual books.
Dial-time exclusive writer was rejected for the current product. Multi-surface CRDT peers are the normal attach story. Exclusive execution is PEW claim, not a WebSocket upgrade role. Reintroducing steal/lease-steal on the dial would recreate dual-resume interleave without solving who executes work. The claim owner executes the work.