Repository navigation
Question sheet C6.2: the MAWS app answers a session on another Mac (Part of #900) - #927
Merged
Merged
Conversation
…on on another machine Written against this branch at acdac82 and the composite at 7c5cbcb (docs/doperpowers/specs/2026-11-28-question-sheet-c6-remote-design.md, child C6.2). Four milestones: the attention feed's listed bodies with silence and a terminal session's row; main's sheet adapter and the link's gate; the window's store, side sheet, row and waiting card; the remote e2e group's acceptance. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ings, by class Lifecycle of another machine's sheets in the app, which the document had left to chance: a session with no summary still finds its sheet (the machine lists only sheets with something on them); the window's store is guarded in M2, before main says a remote change into it; a machine that stops serving the sheet has its sheets dropped, in main and in the window, with a table of every transition; a held item keeps the startup silence it arrived under. The acceptance rig, where a case could pass for the wrong reason: the two-build group's peer-as-B case skips for the named peer, so M1 adds its own; the terminal fixture needs a transcript in B's index; B's restart is two steps with the fake sminos reconnected; a cut link loses a done, never an acknowledgement, so B3 is four named facts; MAWS-run delivery stays open with C5; every case checks its fixture on B first and no skip is evidence. Also: a closing too large to send says no kind of closing; a put with no channel is one act held, not none; nothing runs on the executor's machine. The composite re-pinned to b132c1b (it took the order of sessions and C6.1's landing). Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…of the document stops here A session the machine says gone (summary null) drops what the window holds of it and outdates its reads, so a revoked sheet is not left on screen; a transport failure still keeps what is shown. Whether a machine serves the sheet is followed by its roster entry's listing at every word, not by its generation, which a channel change inside the link's grace does not move. Case 2's cold session is seeded before the app starts (main keeps a drained sheet's last summary across a window reload). Case 3 claims its outcome and leaves the replay-or-query distinction to the link's table in M2. Declined: binding a transcript's row to the engine session it was drawn from. After a /clear a row reads the sheet its app session names now, as a row of this Mac's session does; the sentence that claimed otherwise is corrected and the limit goes to the tracker in M3. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…on feed's silent ids and rows
The device now lists `rl2.sheet`. Remote lane B's attention part reads the
feed's bodies by their own shape: today's array, or the listed `{items, silent}`
and `{appSessionId, items, silent}`. It keeps the wire groups and their silent
ids and derives in one place what it says: each sheet item goes under the row the
org's listings give its session (a terminal session's row is its engine session
id), or is held back until the rows change. The notifier meets an unmet item the
machine holds silent quietly (`metQuietly`), meets held items without telling or
counting them, and keys another machine's sheet call by its engine session. The
window's attention store keeps a mirrored session's list as the mirror's items
followed by the feed's. The two-build group gains a case with an older peer as
machine B.
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ttention.snapshot The app's device now lists `rl2.sheet`, so the endpoint's attention feed reads the machine's `attention.snapshot` where it read `attention.list`; the stand-in spine of test/lane-b/remote.test.ts answered the second alone, and its three feed cases waited out their first snapshot. It answers both, as the attention service does. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… open lane holds, removals first The task review's three findings: - A change that moves only the held items, or their silence, is now told the notifier (`held`), which meets a silent one there; before, it was met only at its placing, and a later channel in today's shape could restate it unmet. - `holds` is a lane a tab holds open, not one a send alone keeps; the rows are placed again at each open and close of a lane, its reopening included. - A placement says every row's removals before any row's additions, so an item is never under two rows at once, also where a row gives one item and takes another. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…, notify once per question Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… is told once, across restarts The owner's ruling on Z8, "Notify once per question". The app keeps, per machine and across its restarts, the sheet questions it has accounted for (src/main/attention/remote-questions.ts, `<userData>/attention/remote-questions.json`, at most 1000 per machine, oldest out first). `metQuietly` meets an unmet sheet item quietly while restoring, when its question is in the machine's set, or at this build's first contact with the machine when the machine holds it silent; any other is told once. Every sheet question met joins the set; a body in the listed shape prunes what it no longer holds open; today's shape, a link down or a channel without the name prunes nothing; a machine that leaves the roster drops its record. Another item keeps the machine's silence. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…urning question, and a never-listed peer as today; Z9 and §Q1 cite Z8's rule Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…gain, a never-listed peer as before, a row told once The re-review's three findings: - An item already met that reappears open joins the machine's set again, untold, so a question told, pruned and taken back raises no second notice after the app starts again. - Only a body in the listed shape makes a machine's record; for a machine with none the notifier neither reads nor writes the set, and its sheet items are met as before C6.2 (restored, or told). - A placement still says a row's removals first, but the notifier hears each row once, after its final list, so a fresh question of a row that also gave one up is told only after the window was told it. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… two fix rounds Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Main's adapter for a session's question sheet on another machine (src/main/lane-b/remote-sheet.ts), a part of remote lane B: the window's five commands, invoked at that machine, answered through its endpoint, and the machine's `sheet` feed said to the window as that machine's `sheet.changed`. Every request is gated on the channel it leaves on: calls go `oneChannel` after the listing names `rl2.sheet`, the put's act carries `requires`, and the feed's `sub` is gated in the link's own table, which resends a kept subscription on each channel by itself. A put answers in the sheet's own terms at its outcome or at the pending bound; a body over the bound crosses as the refusal `too-large`; `sheet.list` answers from the feed. The window's sheet store takes nothing from another machine's `sheet.changed` until M3 keeps sheets per machine. `SHEET_ENDPOINT_ONLY` leaves the offer table; `REMOTE_NEEDS` names the five with `rl2.sheet`. test/lane-b/sheet-wire.test.ts holds the readers to what the real endpoint sends (C6.1's world, which gains a device's capabilities and the machine's events), the attention feed's readers among them, now exported. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…n alone Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…2's review Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…one, each read's channel, one clock A put held to be sent again now says its reason alone, as every refusal does, since the window draws it under its own "Not sent.": a `refused` outcome by `refusalReason` whatever its `why`, `not-sent` as the machine never having received it. The channel-loss case runs for the view, the lookup and the body, each of which goes `oneChannel` on its own path. The act table shows a put held with no channel transmitted on its first channel that lists `rl2.sheet`. The sheet part measures its deadline by lane B's clock, the one its pending bound reads. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…he service to hold its seeded record The sheet service finds a record seeded after its start at its next poll, so the feed's snapshot could be taken before it held one (unit 4/4 of run 46379140038). The case now waits for the service's list to name it. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…'s C6.2 and C6.3 corrections) Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…s absorbed entries leave the last section Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
The store keeps this Mac's sheets as they were and another machine's beside them, keyed by their address on it (Z12): listed when the roster shows the machine serving the sheet, said by main from its feed, read as pages of a view and one lookup (Z14), dropped when the machine stops serving or leaves. A session of another machine finds its sheet by its summary, its terminal row or its record's engine session (Z13). The side sheet opens for it where its machine serves the sheet (Z16), with that machine's host (Z15) and the view's stubs; the transcript's row reads its closings by lookup and draws a closing answered too large as the composite's sentence; the waiting card reads the asker by the same key. One sentence of copy (Z17). Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…re runs The chunks of a lookup go one at a time; a Send's call is made after the memory holds it; a row's test marks its machine serving. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… app's client Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…a refused lookup The roster's entry with no listing (a reconnect's grace) keeps a machine's sheets and asks nothing; only a listing without rl2.sheet, or the roster dropping the machine, forgets them. A row mounted while a read's lookup is out is looked up once that read lands. A lookup the machine refuses draws no sheet, as a refused view does, and a read outdated between chunks asks no further chunk. The tab's count follows the session facts its key turns on. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…listing after an omitted one relists An accepted refusal of a view or a lookup raises the key's read fence as a session's null does, so a read asked before it never lands after. An up entry that omits its listing keeps the machine's sheets and marks it to be listed again at the next entry that lists rl2.sheet, at any generation. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…thing left for its writer Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…n place, B's sminos home The acceptance in e2e:remote for a terminal session and a session MAWS runs on B: cases 1 to 3 for each kind in a scene per kind, 4 and 7 for the terminal session, 5 and 6 in scenes of their own. profile-daemon.ts exposes B's sminos home and restarts B in place (its engine host left running); the scene's sminos follows a restart and restates what it listed. SideJournal gains a sheet call. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
The first run showed B's first snapshot reaching A before the case's listeners: A now starts with its way to B cut, and the way is restored once they listen. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…e machine it names The raw bridge hands an event over as main sent it, its ids bare and its machine beside it; the cases' record of rows and notices now keeps each under its address. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… channel Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…nt, which numbers them A reconnect within the link's grace keeps its generation, so the channel B's endpoint relays is what shows the answer crossed a new one. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…t too Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…s own listing, case 6 in front before first contact The review's round 1: the scene checks each session's fixture on B before A is launched, and after a restart waits until B's listings.json names each restated session again under its owners; case 6 takes the front while A's way to B is cut; case 1 reads the card's three question ids, case 7 the stub drawn ahead of the card. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…listed again in A, before counting no cards and no Send Sminos-Session: question-sheet-composite-owner#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-composite-owner#23738737 (MAWS on macbook)
…branch review A question id is never reused in its session, so absence proves nothing and pruning on it told questions twice (a snapshot before the daemon's sheet scan; a queued answer taken back after the app restarted). The bound, 1000 per machine, and its one cost are named. Sminos-Session: question-sheet-composite-owner#23738737 (MAWS on macbook)
Z8's set prunes nothing on absence: a snapshot answered before the daemon's first scan, and a take-back after the app started again, tell nothing; a question the cap let go is accounted again, untold. The window tries a watched remote read or lookup that failed in transport again on a backoff, and asks a failed lookup again at a remount. Sminos-Session: question-sheet-composite-owner#23738737 (MAWS on macbook)
…es a failed remote read again The notifier's set of questions accounted for no longer prunes on absence: a snapshot answered before the daemon's first scan, or an answer queued and then taken back after the app started again, told a question a second time. The cap alone bounds the set (REMOTE_QUESTIONS_MAX); RemoteQuestions.retain is gone. The window's sheet store keeps a remote key's lookups in flight apart from the ids a landed lookup answered, so an id whose lookup failed in transport is asked again at a remount. A watched remote view or lookup that fails in transport is read again on a backoff (SHEET_RETRY_MS, 2 s doubling to 60 s) while the key is watched and its machine serves; a read that lands, a refusal, a session null, forgetSheets or the last unwatch stops it. Sminos-Session: question-sheet-composite-owner#23738737 (MAWS on macbook)
…racker Sminos-Session: question-sheet-composite-owner#23738737 (MAWS on macbook)
…chine; ask no id the lookup rejects A watched remote read is tried again only for host_unavailable, timeout or an invoke that threw (main's refusalError); invalid_input, or internal with no refusal, is final for that read and keeps what is shown. The ids a lookup asks are filtered by the lookup schema's own question-id rule (SheetLookupIdsSchema.element), so a transcript's q0 is never asked and no longer fails the chunk that holds the valid ids. Sminos-Session: question-sheet-composite-owner#23738737 (MAWS on macbook)
…tive Sminos-Session: question-sheet-composite-owner#23738737 (MAWS on macbook)
…on-sheet-c6-2 for the landing The notifier's header, its suite, WaitingCard's header and the tracker keep both sides; link-surface's client events list both sheet.changed (its C6.2 note) and taskBoard.changed. B3's board-item skip and C6.2's metQuietly meet in onRemote as each was built. Sminos-Session: question-sheet-composite-owner#23738737 (MAWS on macbook)
…efore B3's block Sminos-Session: question-sheet-composite-owner#23738737 (MAWS on macbook)
…red in the tracker Sminos-Session: question-sheet-composite-owner#23738737 (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. |
Owner
Author
SSFSKIM
added a commit
that referenced
this pull request
Dec 1, 2026
…ion, cap-only account, join scope, fresh pages C6 composite (2026-11-28): - Section 2: the machine's warm state (spine loaded, door located) is the floor's one exception, and only in time; an eager probe at every load was weighed and lost (C6.3's branch review; the composite writer's ruling). Before: the floor sentence stated no exception. - Section 3: the app's notify-once account is bounded by its cap alone (1000 per machine, oldest out) and dropped with its machine; nothing a machine sends prunes it (C6.2's branch review, accepted by the composite writer). Before: "A question leaves it only when a body in the listed shape no longer holds it open". - Section 6: a stopped MAWS-run session joins a listing on its sheet's account only while a question waits and only where it qualifies for a hub listing (ruled at C6.3 M4); a queued line is settled as not applied only from a `fresh` page (C6.3's branch review). Both new sentences. - C6.2 landed at ba65187 (#927); C6.3's status after its branch review. Parent composite (2026-11-23): - X2: a refusal sminos sends up its log link carries nothing a sheet holds, since the endpoint relays `rejected` to the hub unread (C6.3's list for the writer, item 4). - Tracking map: C6.2 landed. Sminos-Session: question-sheet-composite-owner#23738737 (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.
Part of #900.
The question sheet's C6.2 lets a person at the MAWS app answer the question sheet of a session running on another Mac, both a terminal session and a MAWS-run one.
rl2.sheet) is shown as it is today and is asked nothing.The execution document is
docs/doperpowers/plans/2026-11-30-question-sheet-c6-2-app-remote.md(approved at0910876d6). It is a child ofdocs/doperpowers/specs/2026-11-28-question-sheet-c6-remote-design.md, pinned atae6bd217a. See its Progress, the "As built" notes of each milestone, the "As run" table, and Outcomes & Retrospective. The run's report is beside it (…c6-2-app-remote.report.md).rl2.sheet.rl2.sheetand reads the silent ids that come with it.src/main/lane-b/remote-sheet.ts, carries the view, lookup, body, put and list commands, and the machine'ssheetfeed. Each is gated on the channel it leaves on. The link's own table gates the feed's subscription, so a later channel is gated too.There is no wire change, and nothing under
src/endpoint/changes except the removal ofSHEET_ENDPOINT_ONLY.Validation Evidence
e2e:remote, cases 1 to 7). All ten sheet cases ran and passed, none skipped, on both the hosted Mac and the mini copy: run 46475972357 onb0c0c50f2. Each case first checks its fixture on B. Case 6 is the restart case; it brings A's window to the front before A's first contact with B.73dd6adb0): green in run 46550400291, on the hosted Mac and the mini copy.rl2.sheetagainst an endpoint that predates it (e2e:cross-build, peerad9b85fb6, wire minor 66). The case "(the sheet's capability, the peer as that machine)" ran rather than skipped, and held its link for 20 s at one generation.ef4c412a2.73dd6adb0.d7f410d6b: green, run 46556496586.23610e4c6adds only documents on top ofd7f410d6b: the plan, the report and the tracker.--gates all --class1a linux --peer ad9b85fb6on the landing merge73dd6adb0, run 46550400291: 47 e2e jobs green, including remote, lane-a, transcript, cross-build, sheet-page and desk-web. The reds:notifier.test.ts. Fixed ind7f410d6b, and class 1a re-gated green (46556496586).assistant-ink.test.tsx"Test timed out in 5000ms". That is the hosted runner's slowness, the outage rule's environment red.Not this change's:
e2e:c12fails deterministically ate2e/c12-sweep.spec.ts:93, on a strict-mode violation: board 815's hidden "why" span (637a82f) duplicates the row's text. It is red on masterbdc3e2e5ctoo (run 46572660772). Logged in the tracker.e2e:presentationsfails in setup, before any test runs: the LibreOffice cask's SHA-256 mismatch, in 46550400291 and again in 46571675707. CI-opt's fix, ci-kit Remote layer Decision Log 29: a re-enrollment in place ends the machine's DX2 at its redemption #251, is in review.e2e:browser-cuamini copy fails atbrowser-cua.spec.ts:309. That is the guest-only takeover flake already in the tracker; the hosted job is green.Unresolved Review Findings
These came out of task reviews and were recorded rather than fixed:
src/renderer/src/stores/sheet.tsgrew from about 200 to about 600 lines. M3's review suggested pulling the remote page and lookup reader out into its own module. It was kept in place to hold §Q4's exports and fences together through the fix rounds.e2e/remote.spec.tsgrew by about 600 lines. M4's review suggested that the sheet fixture builders could move toe2e/support. Z19 placed the cases beside the scene's openers.remote-sheet.tsputResultOf. A machine message that began "Not sent:" would read twice. No current producer writes that prefix.gone()forgets only a lane B listing, ine2e/support/remote-scene.ts. No case withdraws a terminal session. Logged in the tracker.ExperimentalWarningin cross-build,MaxListenersExceededWarningin unit, andbridge(...).on is not a functionwarnings inTranscriptSlot.test.tsx. None was traced to this branch.Residue
Each item is also a row in
docs/tech-debt-tracker.md.e2e:c12is red on master.c12-sweep.spec.ts:93finds the worktree row's text twice since board 815's greyed buttons added a hidden span carrying the same reason. The case should read the visible line, or the button's description by its role.sheet.listis not retried after a failure. A watched read and lookup are retried on a backoff, but the machine's list asked at a new generation is not. Summaries, and a mounted no-summary sheet's re-read, can lag until the feed's next change.emitted()helper is vacuous. It filtersemitFrom's calls by the machine argument, so it is always empty, and one older case's check through it checks nothing.src/main/org/weekly.test.ts, the promotion case ofcua-broker.test.ts, andindex/source.test.ts. Each failed once and passed on rerun.Sminos-Session: question-sheet-composite-owner#23738737 (MAWS on macbook)