Repository navigation
process-yield test: load the spine with a read that wakes no engine host (the design-system seed flake) - #415
Merged
Merged
Conversation
…e host (attention.list), and the test asserts no host started; a discovery read (session.list) woke the parked host, whose first start seeds the built-in design systems, and the library's first sync brought them into the index (dropping the fixture's row) on the host's clock, sometimes between the readings around the refusal (the 4 sightings' flake); the whole-index comparison is unchanged and now carries the daemon log Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 31, 2026
…for landing 1 O7 M2 (#410), CI-opt's #412 (LAUNCHD_E2E, the sweep before gate-peer.sh stop) and #416 (e2e:remote on the hosted Macs), #411, #414, #415. Conflicts reconciled side by side: the render and remote namespaces in names, grades, schema and its test, and the link surface's client rules; the router's host binding keeps daemonRenders under master's routeLaneB; the default-spec count is 103 (render-host and remote); gate.yml's comment keeps both groups' notes. #410's host-supervisor forward and StandIn.clients hunks merged to master's text (no duplicate). The wire minor and the generated snapshots follow in their own commits. 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.
Fixes the flake in
src/mawsd/process-yield.test.ts› "from the refusal to [spine] released: …" (the checkpoint changed no row and no schema of the index; 4 sightings across three branches on 2026-10-30/31, each green on rerun; latest class 1a run 41225432077).What was written, and when
src/engine-host/design-systems/seed.ts), before its startup admission gate opens (seed-gate.ts, bounded at 8 s).session.list, a discovery read: since the discovery wake (M6 fix round 1, item 7) it starts the parked engine host. The seed reachesindex.sqliteonly through the spine's library sync (src/services/library/sync.ts): the heldartifacts.changedevents drained at the host's first streaming, then the connection's reconcile fromlibrary.snapshot, which also drops the O2 fixture's own library row ("Launch plan"), since the host's store never held it.session.listanswers once the discovery pass is heard, without waiting for that sync, and mawsd parks the host at the same moment. The sync then ends in one of three ways: reconciled, with its snapshot failedhost_unavailable(about a third of loaded local runs), or, when the park fails reads the sync still has queued, with a successor host woken for them that reconciles and reads every text a second later.yes) both show the reconciled set arriving: the built-ins added, the fixture row dropped, the FTS shadow tables changed to match.spine.yield→release('yield')→settle→stopRootrun within microtasks when the root is idle (it was idle in every instrumented run). The library'sstop()drops any answer that arrives later: in 7 of 20 instrumented runs, the reconcile was still in flight at the refusal and never landed.The fix
The spine is loaded by
attention.list, a machine read that wakes no engine host, so nothing the host seeds can reach the index around the readings. After the release, the test asserts that the daemon log holds nospawned a supervisor, so a future load that wakes a host fails loudly instead of flaking. The whole-index comparison is unchanged, and its message now carries the daemon log.Two earlier versions on this branch waited for the library's first sync to end instead: first for the fixture row gone or the snapshot failure logged, then also for no host running or every text read. The independent review (reviewer-medium) showed that each could accept early when a park fails queued reads and wakes a successor; I forced one such path locally and confirmed it. That end can't be observed from outside without coupling the test to the sync's internals, so the branch was squashed to the load change, which the reviewer then judged correct.
Verification
yes: this head passed 100/100 (and 100/100 on its first base). The pre-fix test failed 1 in 160 under the same load, with the CI signature.spine-root.ts, just beforeindex.close()) fails this test 3/3.scripts/ci-gate.sh --gates static,unit,unit:darwin,probes --class1a pool --runner macos --peer none, run 41233634236, green. The run's tree is56421ad7497933de2a8257f14ad8b1162853b3f6, equal to the head's, and the test ran in unit 1/4.Notes for the architect
settlingby design and keeps applying host answers during that wait, so D53(a)'s "only its stores' close" holds for an idle root. This was not observed here.session.liston a cold daemon, the library can therefore stay unreconciled (seeded systems missing, stale rows listed) until the next host connection.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)