Repository navigation
P5 O15 M2b: resume after a wake by design, main's log on disk, and the remote transcript kept across a link loss - #567
Merged
Merged
Conversation
… 8 held for the owner's ruling, registry-feed's merge shape Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ts code and addresses A connect that failed on several addresses is Node's aggregate, whose message is empty, so HubLink logged "the hub connection failed: ;" (P5 Decision Log 262). errorWords (src/shared/host/error-words.ts, §H) gives the message, then the code and each inner error's code, address and port; the hub link's failed ending keeps it. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the profile lock's holder alone captureMainLog wraps the console at the root's load and holds the newest 1,000 lines with the times they were said; install, the first statement of the start startWithProfileLock runs, makes and tightens logs/ (0700) and main.log (0600), writes the held lines with their own times and every later one as it comes, rotating at 8 MiB to main.log.1. It never throws: a directory or file it cannot make or trust turns the file log off with one stderr line. A second launch never installs; the first instance logs its hand-off. The three tests that load the real root mock the module; the smoke asserts the file's first line is this launch's build line with its pid. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…h journal read that starts over, with its rows and time The session stream writes, through the log it already takes, `ring evicted <app> launch <launch>: events through seq <n> are the journal's now` once per launch, and `session.events <app> after <seq or start>: from the journal, <rows> rows read in <ms> ms` at the end of a journal read that does not continue the page before it, so 2c's record can say where a replay came from (§H). Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…r not the app is open The export bridge asks any client that renders, and mawsd's render service is one with no app (P5 acceptance 10). The probe's pass3 snapshot is edited by hand to match; the recorded p4 fixtures keep what that run was served. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…minos's frame line sminosFrameOwners reads the `, owned by <name>[, <name>…]` label after the sender's alias in both frame kinds, and reads a quoted alias as the JSON string literal the desk track's sminos will write; chatFrameSender looks for the arrow after such a literal. derive keeps the owners of a labelled envelope by messageUuid and puts them on its peer.message's row (PeerMessage.sender.owners, null where the frame attested none); PeerMessageRow draws them after the sender by the sidebar's rule, through ownerIdsOf and ownersLabel's new `unknown`, a name the store doesn't hold as written (§J). No event gains a field. The three peer snapshots gain `owners: null`. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ench holds the link to Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…h, and the e2e seam injects one src/main/net/wake.ts (§D): powerMonitor's suspend, resume and unlock-screen, and a 1 s tick that reports one 10 s or more late as a clock wake, at most once a minute; every notice writes `[wake] slept <ms> ms (<source>)`. installWakeSeam (§I) sets globalThis.__maws_wake under MAWS_E2E=1 in an unpackaged build only. Nothing uses either yet. WAKE_DROP_MS is held to twice the endpoint's shortest ping period in the link's timing test, the one suite outside the endpoint that may read its constants. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…after a wake or an address change src/main/net/reach.ts (§E): a window of 60 s; while someone waits on a target, a probe at once and one every 100 ms, each given 3 s, one prober per host and port; the first connect answers every waiter of its key and destroys the rest. A probe past its 3 s is destroyed by the next tick, so at most thirty are in flight whatever order the timers fire in. NO_REACH's window never opens. Nothing uses it yet. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the agents harness's G3 events/agents-peer-owners is agents-peer with a sminos frame line opening each inbound envelope's body, derived by deriveAgentsPeerOwnersFixture: the idle message's frame names its sender's owners (an email and a member id), the mid-turn one's names none. The harness's peer row view reads the `data-owners` span, and G3's new step loads the fixture and expects the names as written on the first (the harness is signed out) and no span on the second, in both themes. The fixture's suite pins it to agents-peer but for the two frames; its row snapshot differs from agents-peer's by the first sender's owners alone (Decision Log 15 (b)). Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ient only with no client that renders A comment only (Decision Log 14 (g)): the bridge's gate is `answersRenders`, the app or mawsd's render service. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…light is a cap, so a wall-clock correction moves neither The tick judged a probe's age by Date.now, so a backward correction kept thirty hanging probes and started a thirty-first. Each probe now has its own deadline, and a tick that finds thirty in flight starts nothing; it is owed and starts as one of them ends, so the cadence of one every 100 ms holds when the oldest probe's deadline and a tick share a millisecond. A case sets the clock back with thirty hanging. The seam's test asserts each refusal before it calls the removal. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the lane timings, the cached record, the acts' written count, the subscription lines carriers: dialDirect and openRelaySocket take an AbortSignal that terminates the socket in flight. timing: WINDOW_OPEN_MS, WINDOW_HANDSHAKE_MS, LANE_BACKOFF_MS, LANE_ATTEMPTS; TokenBucket.holds(n). endpoint-records: cached(ref, signedIn), memory then file, never a fetch. acts: onCurrent answers the act messages and bytes it wrote. subs: the `subscription <id> <what>: subbed …` and `first … after subbed` lines (§H). Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… floor, row 12's return and the relay socket's rules (§F)
A wake or probe('network') opens the window: a drop (a wake of WAKE_DROP_MS or more) aborts every attempt and closes
the relay socket; with no channel in the window the direct and relay lanes seek under reach, each with its own
backoff and count; the floor at WINDOW_FLOOR_MS aborts nothing, and a lane's first answer past it returns the link
to the lanes. With no window open the link is today's, except that a `timeout` loss closes the relay socket.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…and handed to the machines; wakeAll
app.ts creates the wake source, the reach and the wake seam beside the org session and closes them at shutdown
('wake and reach'); the machines hand the reach to every link and the wake source's wakes to RemoteSource.wakeAll,
its unlocks to probeAll('unlock'). The relay-only leg gives the direct lane no target. Startup tests mock
powerMonitor.off; the records and link fakes gain cached and wake.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ase's line names an open window Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…b's receipt (§H, §F's J) subscriptions: each `subbed` queued writes `endpoint: channel <key> sub <id> <what>: subbed <mode> at <position>, asked from <cursor>, after <ms> ms`, the time running from `Subscriptions.receive` to `Subscription.subbed`, in the <what> and position forms the app's `subscription … subbed …` line writes (Decision Log 18 (i)). No wire change. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
test/support/wake-probe.mjs, Node's modules alone: watch starts a bare TCP connect every 100 ms per target, each given 3 s and overlapping, with each try's start and end on the wall clock and its duration on the monotonic one, and the GET cross-check every 2 s; read takes, for each target, the counted try that started first among those that succeeded, never one begun before --after, with its times to each --at and the median in the 30 s from it; extract prints §K's evidence lines and nothing else, in the forms the processes write them (mawsd's [endpoint] prefix, host.log's "warn: [engine-host] "). Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t success, a link made in a window, row 10 at a refusal, close or hold, today's catch-up line, the release's window word - An attempt in flight across an entry (row 12's other lane's) is the new entry's first: its failure backs off 100 ms, not NaN. - attemptOn checks every new attempt against LANE_ATTEMPTS, so adoptions and losses count too (row 4). - A link created while the window is open enters the lanes, as an opening does less reach.openWindow. - Inside a window a refusal, a close or a hold aborts today's attempt and a recheck in flight as well (row 10); with none open they keep today's handling (Decision Log 18 (c) amended). - Today's catch-up redials write `attempt (today's): catch-up, dial <n>`, on both carriers. - The release writes `bench release: today's attempt (the window open | no window)` (Decision Log 18 (d)). - The 9.9 s case now completes past the floor's time; a release during an open window is held to today's attempt. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…waits, so a loss in the lanes brings row 4's floor at once `resume` spends a lane that has made LANE_ATTEMPTS attempts (a success's included) instead of waiting on its targets; with the other lane spent the floor fires there, `spend`'s check. The floor's timer is armed before the lanes start, so that floor's line counts from the seek. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…res B past its resume window Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…withdrawn (37 (c)) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…indow; B's own lines and each stream's J in the record (test-only) Per carrier the inject now comes no sooner than INJECT_AFTER_STALL_MS (158 s) after the stall: B's endpoint closes the stalled channel by its own silence check and writes no line there, so the close is counted (the ping period running at the stall, which may have heard A, then three silent ones: 4 x PING_MS's 7 s), then RESUME_MS (120 s) and a 10 s margin. The order per carrier: the stall, B's writes, the page-row reads, the wait, quietWait, linkBeforeWake, the inject, the restore. PING_MS and RESUME_MS are pinned in test/support/remote-wake.ts and held to their declarations in src/endpoint/ by the unit test (eslint bars importing the endpoint's internals). The record gains bLines (B's idle collections on mawsd.log and host.log, the endpoint's sub answers and the journal reads, from the stall, ms from the restore) and streams (each stream's J, its journal read's ms and the remainder), both context, never conditions. One line per carrier prints the stall, the wait, the settle, the idle collections before the restore and each stream's J/journal/remainder. The verdict is unchanged; a plain miss's message carries each stream's J. The case's timeout follows from its waits: about 27.7 minutes. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t, B's lines, the timeout) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…st the resume window (A's pane re-reads; B's cold path held) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…pt through the offline placeholder; the armed gap re-reads staged The tab of another machine's lane B session holds its transcript key while mounted (lane-b/transcript-hold.ts), joining only what a pane attached with the roster saying the machine is up, so at up the pane rejoins the attachment and no whole-launch read lands on B inside its stream openings. The session source arms at the machine's loss and disarms at the stream's first batch after the return: a remote.gap while armed (missing, snapshot, a relaunch) starts the key over staged with its bar carried into the read; any later gap only draws its bar. A held key not whole at the return (failed, or a hydration still out that fails) is read again once the stream is back, never before. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…launch read on B between the restore and its subbed readWake names, in both modes, any session.events <app> after start read whose span on B begins before B answered that session's sub (A's subbed where B's line is missing) and ends after the restore; the failure folds into the verdict as the other structural lines do. Test-only. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ck holds its re-read until remote.session says it is A history read tells the gaps of rows too large for the channel whenever it answers (src/main/lane-b/remote.ts), not only inside the stream's subbed. The session source now holds an armed gap's re-read until main's remote.session, said since the loss, puts the stream past paused and opening (its subbed, or its end, as the hold's own rule), so a re-read still due never starts before that stream's subbed; the held gap's bar is placed by the re-read's snapshot as before. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…med gap held until the stream is back, the wake case's read-before-subbed failure Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the stream's first word after the loss is live or gap reviewer-high's P1: B restarted during the loss without restoring the launch, so the stream came back idle with no gap and no batch, and the held key, live from before the loss, kept missing what B wrote meanwhile. The session source now takes the stream's first word after the loss: live (the paused subscription resumed by replay) keeps the rows; gap goes through the armed gap; any other (idle, ended) starts one staged re-read at that word, joined with any gap held. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…view's P1, db624f9) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ad against its earlier self; the second subbed behind a stream window) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ssion; the held transcript decides on it
The re-review's two P2s came from inferring the return from the published stream state, which a link change says
again. remote.session gains an additive answer {n, mode}: n rises at each subbed (whichever subscription answered) and at
each end the machine sends while the link is up (unavailable, ended); an end the link makes itself (its refusal, its
close) or one made while it is down counts nothing, and the adapter keeps the count per session across its records. The
session source and the tab's hold both arm at main's own word of the loss (a remote.session with the link down after up)
with the answer it carries, and the next answer decides: replay keeps the rows; missing, snapshot, unavailable and ended
read the key again, staged, with any gap held meanwhile; nothing is read before it. The roster inference is removed.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…erer no longer infers it (the review's second round, 080ce0d) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…o15-wake Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… follows (`none`) A held key whose stream had no subscription out at the link's return (idle, on a probe up to 30 minutes off or waiting on a checkout feed that may not open again; ended) waited for an answer that might never come: a failed or still-hydrating key was not read again, and gaps heard while armed stayed undrawn. At the link's return (`down`, then `up`) main now says the stream's answer itself, mode `none`, when `#sub` is null; a stream paused through the loss keeps the machine's answer. The renderer takes `none` as any answer but `replay`: one staged re-read carrying the held gaps; the answer after it (the kick's or the probe's `unavailable`) arrives unarmed and reads nothing more. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ollows (none); what stays open Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…cription follows (`none`)" This reverts commit 76ccfaf. The architect took the none round out (Decision Log 40 (i)): its re-review reproduced an overlap with a session's opening, and the hole stays open. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… out, the hole left open with its trap and the repair's direction Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…answer count and the local source's listener pinned The panel's review of eb001d0..411b76c: - Finding 1 (P2): the transcript store publishes `hydrating` before it counts a pane's attachment, so a hold mounted with its pane acquired at the next notification. When that was main's word of the loss (said before the roster's), check() moved the link to `down` and returned before arming; a hydration failing in the outage left a failed key the `replay` return never read again. The acquiring call now goes on to the arming. The hold's tests lose the link in main's order (the session's word, then the roster). - Finding 2: an adapter-level test that a record made again for a new link object continues the session's answer count (fails with `nextAnswer` stubbed out). - Finding 3: the local source's listener test asserts `remote.session`, the listener this work adds, against a remote source's one. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ed set on F (the wake case passes; the render group read case by case; the mawsd finding) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…up, list B and cross-build open Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…oids, the pageouts rule, the render group at the PR Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the architect, Decision Log 42 (h)) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review Summary: ✅ CompletedThis 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. |
SSFSKIM
added a commit
that referenced
this pull request
Nov 11, 2026
…d holds on the mini; three tracker rows The resume after a wake, as measured on the mini (direct 200 ms, relay 457 ms of 1,000); the fix in the app and its review rounds; the three reads at a link's return left open (board 565); the relay's head-of-line wait on hosted Macs; e2e:daemon-idle-render with no verdict at the landing; mawsd's idle footprint step since 2026-11-08. 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 O15 milestone M2b: resume after a wake by design, main's log on disk, and what the readiness read found.
docs/doperpowers/plans/2026-11-10-p5-o15-recomposition.md(M2b; Decision Logs 17 to 42; Outcomes & Retrospective).docs/doperpowers/plans/2026-11-10-p5-o15-m2b-report.md.What it does
answer {n, mode}onremote.session, an additive IPC member;wire-manifest.jsonis unchanged).replayanswer keeps the rows without a read. Any other answer reads once, staged, never before that stream'ssubbed.subbed.Validation Evidence
Every gate ran through
scripts/ci-gate.shon the code head f8f1d41. Later commits change only the spec and the report.test/support/latency-engine-stub.test.ts:136:expected 2984.82 to be >= 2985, a paced-timer flake in a file this branch does not touchunit:darwin,e2e:default,e2e:connectors-oauth,e2e:discover)--peer 63443a3bd(update, daemon)and(downgrade, daemon)); 4 skipped by the peer's versione2e:daemon-idle-renderrerun aloneThe measured set (42948213134):
subbed(bound 1,000 ms)B logged no whole-launch read in either carrier.
e2e:remote-latency, acceptance 3: valid, no budget miss.Within their bounds and valid:
e2e:daemon-idle: 97,715 KiB and 0.13 s, against 99,145 KiB and 1.12 s.e2e:daemon-idle-session-host: 4,353 KiB, against 5,120.e2e:daemon-idle-enrolled: +3,856 KiB, against 8,192.e2e:local-latency-daemon: p50 25.1 ms and p95 38.1 ms, against OX7's 26.45 and 42.56.e2e:daemon-idle-renderhas no verdict at this PR. It is read case by case (Decision Log 42):The rerun's voids were macOS's idle-time maintenance on the mini. The architect runs this group again and records the verdict when the final build is named.
Reviews:
reviewer-highreview.reviewer-highrounds: one P1 and three P2s, fixed or taken out.reviewer-mediumreview of that fix wave was clean.Unresolved Review Findings
test/support/wake-probe.test.ts~211–235). Left as is: it has not flaked on any class 1a run, and widening it would weaken the only check of the 100 ms cadence.src/main/org/startup tests). It was left for M1's merge, which edits those same lines.Jis timed, soJcan read low against a cold launch. Left as is: the bound holds onsubbedafter the restore, which this does not shorten.Residue
upbefore that stream'ssubbed.mawsd's footprint step. It reads 1.0 to 1.5 MiB above the 11-08 series, which leaves acceptance 14's single-session margin at 1.4 to 1.8 MiB (Decision Log 42 (e)). The architect records it.subbedwaits behind the channel's stream window (Decision Log 41 (c)). Whether the wait is the relay carrying the window or A handling it is not determined.ListedRowignores ⌘-click and middle-click (master); the live-vs-replay disagreement for frames JSON cannot carry (Decision Log 30, an M5 row); the real dial's uncancelled lookups (Decision Log 32 (c)).latency-engine-stub.test.ts:136(a paced-timer bound);weekly.test.ts;document-perf.test.ts:122.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)