Repository navigation
Conversation
… of Interfaces §A over one Unix socket, the output ring, stdin by offset, the writer fence, the roster entry, signals, the linger and the no-child exit Std only, no cgo. host/ is the process (the socket and its auth window, a reader and a sender per connection, the child with piped stdio as its own process group's leader, one stdin writer over a bounded queue, the exit and the linger), ring/ the sequence and its cap, proto/ the wire form, roster/ the entry's temp-and-rename write. go test covers the ring's cap, gap and ack, the offsets' duplicate, gap and busy, the fence's CAS, the roster's atomic write, signal relay, the linger, the no-child exit, a lagging connection and the host's own SIGTERM. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nd linux-arm64, built with Go 1.25.3; pnpm build:session-host and scripts/check-session-host.sh Built by scripts/build-session-host.sh from the private go1.25.3 toolchain (CGO_ENABLED=0, -trimpath -buildvcs=false -ldflags='-s -w', every build variable pinned): darwin-arm64 2575922 bytes 788ed41c, linux-x64 2617528 bytes 9933054d, linux-arm64 2556088 bytes a3b06116. The same bytes from another checkout path and a cold build cache; check-session-host.sh rebuilds into a temp directory and compares (3 of 3 match). The Linux builds are static ELF; the darwin build links libSystem and libresolv alone and carries the linker's ad-hoc signature. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nary tests protocol.ts mirrors the host's constants and carries the client messages, the host messages' tolerant schemas, the stream decoder (control lines and length-prefixed records) and the stdin record's encoder; files.ts resolves the binary per shape (a packaged app's Resources/session-host, mawsd's release bin/, a checkout's prebuild) and names a launch's files, the socket's tmpdir fallback included. binary.test.ts drives the committed binary with /bin/cat and stock tools as the child, wherever a prebuild matches the platform; its otool case is macOS's, which puts it in unit:darwin. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…sd pack's bin/) and the static job's rebuild check electron-builder.yml carries the darwin prebuild as peer-auth's is carried; mawsd-pack.mjs copies the pack platform's prebuild to bin/ (0755), a Linux pack refusing without one (M4 proves it on the VM). gate.yml's static job sets up Go from native/session-host/go.version (actions/setup-go@v7, no cache) and runs scripts/check-session-host.sh as a gate-bg check with its own wait step; gate-plan.test.mjs's refused-start walk lists that step. The .github hunk is CI-opt's to review. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ost as built; the frontier past unjournaled records; the writer's reconnect; the hosts' logs) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…, the roster's write failures fail the start or are told, blank lines bounded in the ring, exit terminal for the output; the test token built at run time
A signal or exit waits for a fork under way and admits no new one, so its child is known and signalled. The first roster write failing fails New, the commit's failing fails the spawn (spawnFailed), and one after the spawn is logged and sent to the writer as problem {kind: 'roster', message} (additive), the next state change writing the whole entry again; a running session is never ended over it. Each ring record is charged RecordOverhead (48) besides its bytes against RING_CAP, hello's ring.bytes still the payload. At ExitDrain the host closes its read ends and waits for its readers before it publishes exit. host_test.go's token is built at run time so the secret scan reads no credential. Each fix has a test that failed first.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…25.3 darwin-arm64 2576066 bytes 92493db3, linux-x64 2617528 bytes fe3b2188, linux-arm64 2556088 bytes da4bae6a; scripts/check-session-host.sh: 3 of 3 match their source. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…blem's roster form; the binary tests for blank lines and a descendant holding the pipe HostStreamDecoder allocates a record's buffer once at its header and copies each chunk into it (one copy per byte however the record is chunked; the old decoder joined every chunk to what it held). HostMessageSchema's problem takes an optional length and message, and RING_RECORD_OVERHEAD mirrors the ring's charge. binary.test.ts: a flood of 50,000 blank lines holds 100 records under a cap of 100 overheads; nothing follows exit while a subshell holds stdout past the drain; the replay case sized by the charge. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s admission under a signal, the roster's failures, the ring's per-record charge, exit terminal for the output, the decoder) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ecks have started, and starts the session host's check in a step of its own actions/setup-go@v7 (go.version, no cache) moves after the start step, so typecheck, lint, build and the gate scripts' tests start first and the setup is off their critical path; a second start step, under the checkout guard as setup-go is, starts session-host alone, so a setup that fails reds only the session host's check, never the four others' waits. gate-plan.test.mjs's refused-start walk lists both steps. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the MCP registration; --await-initialize behind the byte scan; Q6's bound; dialog and elicitation re-raised when not redelivered) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ises Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… M2b; the session host started before the row is reserved) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ce, and TransportItem an hseq; host_lost and host_gap problems; EngineTransport's optional holder and journaled Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…checkpoint read; JournalWriter.resume; pruning removes a launch's map files Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…fore the launch, its records handed on with their sequences, writes settled by the host's answers, the frontier acked, the release after the exit, a reconnect while the host lives (D45) and host_lost Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ks read as the task list (non-ambient unless marked, D48); WorkState.adoptedWith seeds an adopted process from its records Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ules over real stdio, bundled with esbuild, its executable wrapper with the options baked in (writeStubEngine), and its directives (a parented sleep, the stdin count, the environment printed) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…emon.status's sessionHosts at WIRE_MINOR 13; mawsd status's session hosts line; the live ledger's holderId; MAWS_HOLDER_SOCKET and --await-initialize behind the byte scan (D48), stripped from engine.binaryInfo; an adopted row's Stop with background_tasks reads its tasks Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nder a session host: started before the row (D51), host_unavailable when it cannot start (D8), SMNS_MEMBER the host's pid; the session journals hosted records with the host map and acks them, marks the owed interrupt, notes a gap and ends on host_lost; the end-to-end test over the real binary and the stub engine Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
The engine host serves OX10's gate at <profile>/supervisor/gate.sock (holder/gate.ts); each table row owns a reap (holder/reap.ts: idle -> arming -> armed -> signalled -> term_ignored) that signals only once the row is verified empty (idle row, no unknown work, no crons, no descendants on a fresh ps under the engine, holder/descendants.ts) and its observer's fence is armed, or no observer was ever seen on the process. An idle reap is its own path (end_session, one SIGTERM, REAP_TERM_MS; never stdin closed, never SIGKILL); a budget reap keeps the ladder. Status gains work.descendants and reap; the supervisor status gains release.gate and holder; mawsd status prints the gate's counts. MAWS_HOLDER_SOCKET is set on every launch. The conformance fixture spikes/protocol-probe/fixtures/p5/p5-o16-gate.jsonl is recorded from the real gate. WIRE_MINOR 13. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the session's host map pinned over a scripted hosted transport (line before row, retraction on a failed append, the gap's lost range and notice) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…r (M5's task review) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…acceptance) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s map after the ring is acked, not at turn.ended (the post-turn re-read's two answers arrived after the snapshot: records 95 and 96 on the Linux pool) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…oss before the survivors (the first record past the head, or caughtUp's gap when none survived), recovers a spawned reply lost with its connection from the host's state after the attach, and drops an aborted record not yet written to a connection Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ithout its mark on disk) and belongs to the newest interrupt; a timed-out one's own late answer clears it, an older one's never clears a newer one's Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…clock-read health, budget admission, the fixture's armed-turn-proceed - replay-fixtures: the gate fixture is not a journal; excluded from the seeded list, as O3-F's transcripts are. - D52: the descendant veto binds each registration to one process by pid and start time (ps lstart under C/UTC, as procStartOf reads it): a stdio server to a direct child of claude matching its argv, the bridge to the process first found at its hello's pid; only a bound process's subtree is infrastructure. A server's argv is resolved as the kernel runs it, through the launch plan's PATH: a #! script as its interpreter line, the path, then the args (env X as X); argv0 compared by basename, the rest exactly. - The gate reads an observer's health against the clock, so the step's final read after a slow ps sees the silence. - Reap.due returns whether it took the request; the budget marks releasing only then, and an ignored budget reap clears it. - The fixture gains armed-renewing-turn-proceed and armed-veto-turn-proceed. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… is refused detaches its attached transport Closed admission (a stop-all, the exit order or a handover's freeze) between the attach and the reserve refused the row; the adopter closed the journal but left the host connection open. It now detaches the transport there, as an abandoned adoption does: the connection closed, nothing released or signalled, the host left for the next start. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…a host left running with its engine and no row The architect's ruling, over keeping a failed adoption's hold (which would read as a live session, so the host would never idle-exit or park, D59(6)'s retry at the next start would not come, and a relaunch would be refused for as long as the left engine lived). The start records each host it left running with its engine (a failed adoption, D59(6); a host a newer one of its session beat, D59(10)) in the process table as unattached, before its hold ends: its host's pid and start time and its stop (stopHeldHost). It is no row and no hold, so nothing reads it as live. A launch of its session stops it first, so no second engine runs the session; a reservation refuses while one stands; a forget stops it, then forgets and tells session.forgotten; a stop-all stops and counts it, an exit that detaches leaves it. Liveness is read at each consult; a gone one is dropped. ProcessKey is exported from holder/stop-held.ts. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…port and the reap Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ocess table and the launcher, the unattached record included Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…on host and its rebuilt prebuilds Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…supervisor and transport Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…er and mawsd Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ames that say what each carries Group B's holder/stop-held.ts `ProcessKey` (a pid with `ps`'s start time, procStart, checked against the live process) is now `ProcStartKey`; group D's shared/host/completion-routes.ts `ProcessKey` (a string of a pid with the start its lock declares, a welcome's and a status's `startedAt`, or a utility host's spawn mark) is now `StartedAtKey`, with `startedAtKey` and `pidOfStartedAtKey`. They stay two: a welcome or a status carries no procStart, and main cannot read `ps` for a host it reaches through a relay or on another machine, while the roster carries no startedAt. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…in the gate, on Linux in static and on macOS in unit:darwin (CI-opt's hunk) CI-opt's hunk for native/session-host's `go test`, with two changes it accepted: unit:darwin's setup-go and go test steps take the artifact upload's admitted-only guard (steps.test's outcome success or failure), so the refused-start walk in gate-plan.test.mjs finds no step that can run on a Mac after a refused start; and static starts session-host-go before check-session-host.sh, so the walk still names that run by check-session-host.sh. Test 47's expected list gains the session-host-go wait step. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…'s supervisor to the spine's attention is tested Group E's concern 2 (scalpel-2#1): the seam's loaded root reads the daemon's handover under way through its hosts (SpineHostsAdapter over the link, spine-seam.test.ts), and startSpine's attention service keeps a session's broker items while the engine host leaves ready in a draining handover, clearing them when it leaves with none (spine-root.test.ts, over FakeSpineHost, which gains `handover`, `handoverState` and `leave`). Each test is red with its half of the wiring removed. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s's incarnation, so a process that reuses the pid of one taken back into its handover is announced as its own Group D's residue: takeBack's `drainMet` compared pids, so a successor reusing the pid of a process already met draining and met draining too read as that process: its take-back was not logged, nor its failed ask. The mark is now a StartedAtKey (the welcome's or the status's pid and startedAt); the log lines still name the pid. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…no lock naming the host, is the host's own start from ps Group D's concern 1: mawsd's `lockStartedAt` fell back to now when the lock did not name the engine host's pid, so each relayed welcome of one process read as a new incarnation to a client that keys completions and the handover mark by pid and start. It falls back to the process's `ps` start (procStartOf), the same at every welcome and another for a reused pid, and to now only when ps knows no such process. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…fixed, scalpel-1#2 dismissed, the unattached record, the stop request, the two identity keys, no second panel); Interfaces §D's quit-after-quiet-close sentence revised for the stop request Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… marks alone The handover marks (`holder.detached`, by process incarnation) were one set for every owner, and each detached welcome deleted every mark but its own incarnation's; in mawsd a pty host's welcome could erase the engine host's completed handover before its close was classified, turning a clean handover into a crash. Each mark now carries its owner (only the engine host's status carries `holder`), and a welcome drops the stale marks of its own owner only. Pinned with two owners: a pty host welcomed between the engine host's handover and its close leaves the close planned. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…not done keeps its record and its guard Two outcomes join stopHeldHost's: `incomplete`, a host that lives past the grace with no child known (a committed spawn it still waits for in native awaitSpawn), which returned `stopped` and let stopUnattached drop the record, so a launch could start a second engine before the old host's fork finished; and `unverified`, a process alive whose start time cannot be read (a ps timed out), which was read as gone, dropped unsignalled. A process is gone only when verified so (kill(pid, 0) refused, or its start read and another's), and an unverifiable pid is never signalled. An unresolved stop keeps the unattached record (asked again at the next consult) and a hold's stop is asked again by the next stop-all; a stop-all counts it in neither; a launch and a forget are refused `already_live`, saying the old host is still starting or could not be verified. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… before any adoption runs A host left to a newer host of its session (D59(10)) was recorded unattached only once adoptAll had ended every adoption; meanwhile it was in no row, hold or record, and a stop-all during another adoption's preparation or re-initialize stopped the winner and missed it. The start's records move to holder/adopt.ts: recordStart, in the synchronous listening step, holds the adopted hosts and unattaches the losing ones; recordFailed, after the adoptions, unattaches the failed adoptions. A record is kept once per host (unattach is idempotent by holder id). Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ost and its engine are verified gone A host gone past its grace whose engine survives with an unreadable start answered `unverified`, then the next consult pruned the record by its host alone, and a second launch ran beside the surviving engine. The record now names its engine as the roster does (`UnattachedHost.child`, stop-held.ts `heldChild`), and a consult drops it only when the host and the engine are both verified gone (stop-held.ts `processState`: ESRCH, or a start read and another's). Until then the guard holds and each consult asks the stop again, never signalling the unverified pid. recordStart and recordFailed take the held hosts' stop and engine together (adopt.ts `HeldHosts`). Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…uilds rebuilt The measured daemon-idle-session-host case read 4,673 KiB against SESSION_HOST_BOUND_KIB 4,096 (run 41393148480). On this MacBook (10 cores), the host idle over a stub child reads 4,177 KiB at the default GOMAXPROCS and 3,568 KiB at two, and two saves about 500 to 640 KiB after traffic too: every P beyond the few a relay of I/O-blocked goroutines uses costs footprint (its mcache's partly used spans and the threads it wakes), and more on a machine with more cores. GOGC, a soft memory limit, FreeOSMemory and smaller read buffers each measured no better or worse, and are not taken. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…BOUND_KIB 5120): the real host's goroutines cost the Go runtime memory D3's prototype never ran; CI's reading less the two-P saving, a quarter's margin Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tCatEchoesInSequenceAndOffsetsAreExact's race closed
The protocol does not order a stdin record's `applied` against cat's echo of it: `applied` says the bytes reached the
pipe, and cat can echo before the writer goroutine sends it. The test client's expect discarded every message it was
not waiting for, so expect("applied") could eat the `out` that the next expect("out") then waited 5 s for (class 1a run
41394198343's static job, host_test.go:243; reproduced locally at host_test.go:228 and :243, 5 in 3,000 runs at
GOMAXPROCS=4). expect now returns a held match first and holds what it passes over, in arrival order; a `never` type
is still refused when it comes before the match. Test-only: the binary and its prebuilds are unchanged.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…sion host's bound 5120 and its two Ps); Outcomes & Retrospective drafted Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
WIRE retaken: WIRE_MINOR 21 (master 20). The comment keeps master's entries
through (20), O7 M5a's host.artifactOp among them; O16's entries move from
(20) to (21). WIRE_CAPABILITIES is master's list plus host.holder. The wire
manifest is master's, regenerated at 21 with pnpm wire:manifest (adds
host.handover, daemon.restartEngineHost, daemon.engineHandover and O16's
additive fields; nothing removed against either parent). address-paths.json
regenerated with MAWS_ADDRESS_PATHS_WRITE=1: master's 312 rows, with
remote.openCopy's paths.
Conflicts, both sides kept in each:
- src/engine-host/ops.ts: master's admit/run split with host.artifactOp; O16
M3c's settle tracking moves into the shared run, so host.op and
host.artifactOp runs alike keep their results before the host exits.
registerOps returns { settled } and registers host.artifactOp.
- src/engine-host/ops.test.ts: O16's in-flight-runs block and M5a's
host.artifactOp and tagged-input blocks, side by side.
- src/engine-host/index.ts: O16's Gate import beside M5a's keepArtifactWrites.
- src/engine-host/ipc.ts, ipc.test.ts: HOST_DEADLINE_SHAPES holds
host.artifactOp (bounded) and host.handover (bounded).
- src/shared/ipc/names/host.ts: mainOnlyCommands holds both.
- src/shared/ipc/schema.test.ts: the host namespace's order and owners hold
host.handover and host.artifactOp; MAIN_ONLY_COMMANDS both.
- src/shared/ipc/wire.ts, wire-manifest.json: as above.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…549a), Outcomes at the PR, the execution report Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t; settled() waits for a host.artifactOp run until its result is kept (red with artifact runs untracked) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
SSFSKIM
added a commit
that referenced
this pull request
Nov 2, 2026
… D67's session-host bound 5120 KiB, the final measured series, the rulings, the holder-capable crossing unproven); eleven tracker rows, the lingering idle exit row closed, the discover family tallied; the wave 2 ledger gains O16's names Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 2, 2026
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
P5 O16, the holder. Every live lane B launch on the detached and daemon shapes now runs under a Go session host (
native/session-host/). That host keeps the output ring, the input offsets, the writer fence and a roster of its own. So when the engine host is upgraded, restarted withmawsd restart --engine-host, or replaced after a crash, its successor adopts the running sessions instead of ending them. A planned update waits until no tool call is in flight, then hands over: freeze, drain, detach, exit. On a server role the idle release is the verified-empty rule armed through OX10's gate, which replaces the wall-clock rule.WIRE_MINORis 21.docs/doperpowers/plans/2026-10-31-p5-o16-holder.md. Its Decision Log runs D48 to D67, and its Outcomes & Retrospective section summarizes the result.docs/doperpowers/plans/2026-10-31-p5-o16-report.md.docs/doperpowers/plans/2026-10-27-p5-org.md, child O16.For CI-opt to review: the
.github/workflows/gate.ymlhunks.e2e:daemon-idle-session-hosttoMEASURED_E2E.static(Linux) andunit:darwin(macOS). This last one is CI-opt's hunk, with two changes CI-opt accepted: an admitted-only guard on theunit:darwinsteps, and the start lines swapped so the step keeps its name.hostis 3.91 s.Wire.
daemon.engineHandoveris main's own, carried on its profile's machine.sock. It sits on the client side of the link surface (CLIENT_RULES.names), so a remote app over RL2 cannot subscribe to it.link-surface.tsis shared with O17: whichever lands later keeps both sets of names.Validation Evidence
Head: the last commit of this PR. Measured tree: e9c1d0a (tree ace549a53). After it, only docs and src/engine-host/ops.test.ts change.
mawsd restart --engine-hostor kill -9 mid-turn ends nothing: the turn completes, no input is applied twice, a pending permission shows once, and a background child lives on (acceptance 13, engine-host case)e2e:supervisorande2e:supervisor-daemoncases (c′), (o), (f) and (g), on the stub engine run as a real process under a real session host. Three clean hosted runs at M3c: 41336958420, 41336973777, 41337007582.systemctl --user restart mawsdand then a newer pack's installdc-o16-accept-4a0c, run 3:PASS holder: … the original turn's success once, permission … once, the shell's own completion once; shell pid 10690 alive across 2 restarts, reconnect host_restart x1, KillMode=process at all 7 reads, … session pid unchanged. The VM is deleted and confirmed gone withdevcloud vm ls.scripts/check-session-host.sh:session-host: 3 of 3 prebuilds match their source.go test ./...andgo test -race ./hostpass, andgo vetis clean. CI now runs the tests on both OSes.e2e:local-latency-daemon41384750201 on ba1a3c4: p50 25.4 ms and p95 37.7 ms against 26.45 and 42.56; round trip 1.3 / 1.8 ms. Rerun on the final tree: pending.e2e:daemon-idleon ba1a3c4, 3 valid of 4 (41385116469, 41386513501, 41391287822; 41388515474 voided for load): median 94 771 KiB against 99 145, so 4 374 KiB under. Against O5 M9's 93 715 that is +1 056 KiB, about 1.0 MiB of the 2 390 KiB render-idle margin for O16 and O7 M6 together.e2e:daemon-idle-baseline41394182677: floor 60 321 KiB. Rerun on the final tree until 3 valid runs: pending.src/mawsd/front-streams.test.tspins that a follow opened during adoption answersreplayfrom its cursor with no id resent, and that a stream kept across the replacement keeps receiving. Red before D65's fix: VM run 3 had resent 21 ids.--gates all --class1a pool --runner macos41404958399 on e9c1d0a (tree ace549a53): 56 success, 2 skipped, 0 flaky; cross-build pairs 3.21 against 3.20. Class 1a on the PR head 1f799e8 (the settle test, plus static over the docs): run 41410004127 passed, 9 success and 5 skipped, on tree 2b2873b09, which equals the head's.Measured runs still pending on the final tree, in CI-opt's window:
e2e:daemon-idle-session-hostx2 against 5 120,e2e:daemon-idleuntil 3 are valid, ande2e:local-latency-daemonx1. The last is rerun because GOMAXPROCS(2) changes scheduling, and it is kept only if lld passes (D67). O16 lands only with a green session-host run.Not proven at landing: the
e2e:cross-buildcrossing between two builds that both listhost.holder. ci-gate refuses an explicit peer outside master's ancestry, so cross-build ran only against the merge-base peer, which lackshost.holder; that is the older-host branch.host.holder: O17 M7, or whicheverWIRE_MINORbump lands next. That landing runse2e:cross-buildwith O16's merge as the peer.Unresolved Review Findings
These are findings already reasoned about and deliberately left for this review. Each names where it is and why it was left.
src/shared/host/host-supervisor.ts, the held stop-all at the exit settle; D64(7)).host_unavailable, and the retry reaches the successor once it serves.host_unavailable, and the sessions stay with whichever host adopts them.src/shared/host/stream-catchup.ts(O3-D's module):src/engine-host/holder/transport.ts, D66(1)). A session host SIGKILLed mid-spawn leaves nothing to wait on, so the start sweep handles it. An engine that ignores the host's SIGTERM outlives the host's 5 s grace, because the hold rests on the host's death bounding the engine's.heardStatus, which only routes and logs. Completion routes, the handover mark and the drain's take-back are keyed by incarnation.src/shared/host/detached-transport.test.ts). The fake link streams no events, so thedrainHearsfallback covers it.test/support/daemon-idle.ts). The mini's path has no space. CI-opt suggestsps -o comm=. The spec's unconditional SQLite import prints an ExperimentalWarning for that group.cmd.Wait()and thereapedflag. Go's ownos.Process.Signalleaves the same window.Residue
Work left behind that deserves its own ticket:
e2e:cross-buildhere ran only the older-host branch (3.21 against 3.20, which lackshost.holder). The next landing that pairs 3.22 against 3.21 covers the capable pair: O17 M7, or whicheverWIRE_MINORbump lands next. Its tracking row should record the run.host.op's late outcome. A claim the old engine host left unfinished answersexpired(orphanAtOpen). Reading the act's real outcome back, as O7's services ledger plans to, is not built for the engine host's ledger.handover-reinit-failednotice row and its auto-resume are pinned at unit level only. No handover scene could force a failed re-initialize cheaply.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)