Skip to content

P5 O7 M10: the live bench's fixes and the sitting's three defects (remote ranking, owner spawn without Touch ID, thinking timer) - #478

Merged
SSFSKIM merged 28 commits into
masterfrom
p5-o7-m10
Nov 5, 2026
Merged

SSFSKIM merged 28 commits into
masterfrom
p5-o7-m10

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

P5 O7 M10's code: the live bench is fit for a live run, and the three defects M10's sitting of 2026-11-05 found are fixed. The spec is docs/doperpowers/plans/2026-10-28-p5-o7-remote-lane-b.md (M10's Decisions, Interfaces and Decision Log, and Outcomes "M10's code" and "M10's sitting"); the report is docs/doperpowers/plans/2026-10-31-p5-o7-report.md. There are no wire or RL2 changes. mawsd endpoint sync is a new verb in the endpoint module's CLI.

What changes

The bench (test-support, test/support/remote-bench*.ts, e2e/remote-latency-live.spec.ts):

  • The key read. It reads mawsd keys --json's flat keyId. The fakes are rendered by the endpoint's own keysAnswer and statusAnswer, re-exported from presence.ts.
  • mawsd endpoint sync [--json]. It runs a read of the org state that begins after the call, then promoteIfListed, and answers as status. Exit 0 means listed, 4 hub-confirmed, 1 none, judged after the read. The CLI waits up to 90 s for it.
  • One status client per run. The agent's watch holds one machine.sock link for the run and answers up, status, keys and sync. On the mini, a run's only MAWS process is now its enroll.
  • The mini's hosts. Its teardown waits for the scratch mawsd's absence after mini-ops' stop, then ends the hosts as the VM path does.
  • The precheck. If this Mac's load1 or the mini's (sysctl -n vm.loadavg) is at or over 5, or the mini's is unread, the run refuses to start. The refusal is written to the run's JSON and the test is skipped with the reason.

The sitting's defects:

  • A. A remote session ranks by its latest activity. That is the newest of the received record's updatedAt, the listing's issued and the turns seen on its stream. An unread remote record ranks among the unread by that time; before, it ranked last (+Infinity). Local and digested sessions rank as before.
  • B. No Touch ID for a session.spawn on a machine the member owns, trust acceptance included (the owner's ruling at the sitting; the architect's ruling on trust). Main's signer judges it on the frozen action it then signs, against the held org head. The renderer has no lever over it. Everything else still prompts: non-owned spawns, approvals, owner and share changes, machine admin, a non-owner's shell, sminos.spawn, session.launch and org-state signing.
  • C. A terminal session's thinking row ticks. Lane A rows carry clock: 'wall', and a closed textless row leaves at close (W1).

Validation Evidence

  • The final full gate. --gates all on a0cc151 (the branch with master bf2dce3 merged): run 41981616511, all 55 jobs green. No flaky line appears in the run's logs (49 Playwright summaries). The mini had no hold.
  • The final head. b35f94b adds docs only after a0cc151. --gates static,unit on it: run 41989347023, green.
  • A's e2e is red on the old ranking. e2e:remote ran on a probe with A's ranking reverted and the new e2e kept (acc90f6, never merged): run 41980345401 failed at "its first turn over and its tab closed, the row still within the visible rows", on the first try and its retry. On the fix (92a712d): run 41980345499, green.
  • Red first, single focused files:
    • test/support/remote-bench.test.ts: 56 cases. 21 failed against the previous runner, and the regenerated fakes alone failed 4 with "posted no key to compare within 60 s".
    • remote-bench-agent.test.ts: 25.
    • test/endpoint/enroll.test.ts (node-timing): 9, including the sync cases and the held-read unenroll.
    • src/mawsd/cli.test.ts: 47.
    • src/main/device/step-up-owned-spawn.test.ts: 20. Before the fix, 2 failed (the skip cases); each guard was shown load-bearing by removing it.
    • sidebar/derive.test.ts: 58.
    • stores/sessions.test.ts: 25.
    • resume/model.test.ts: 20.
    • lane-a/view/streaming-thinking.test.tsx: 4 (4 of 4 red before).
  • Earlier static runs. Green on 2646fe2 (41969224303), 35ffa67 (41969472908), 7e1fd4d (41970939499) and a07adc1 (41971463848). Static and unit were green on the merged A, B and C (41979836501).

Review

  • reviewer-medium on the bench half (5f2bc89..7692b28): incorrect, with one Important finding. A sync whose read was held while the machine unenrolled answered exit 4. It was fixed red first in a07adc1 and verified.
  • reviewer-high on A and B (security lens on B): correct, no material findings.
  • reviewer-medium on C: correct, no material findings.

Unresolved Review Findings

  • A's e2e waits a fixed 12 s past the linger (e2e/remote.spec.ts, M8's case, around :1933). It assumes main has processed the tab's close under hosted load, instead of observing that the remote stream has been let go. It was green on hosted Macs. It is left as a tracker line because the scene exposes no let-go signal to wait on.

Confusions

  • C: which session the screenshot was (settled from code, as the architect asked). The composer's "Do anything" means no user row is loaded for that key (Editor.tsx:79, controller.ts:223), and both lanes share the key (transcript/source/ipc.ts:820).
    • A MAWS-run session replays the owner's prompt as a user row (--replay-user-messages; derive.ts:503-504), and the loaded window holds the newest turn whole (history-window.ts).
    • A lane B session could look the same only if every loaded turn had been opened by the engine or a peer (derive.ts:495-500).
    • The label named no effort. A MAWS-run session's label names one from get_settings (Composer.tsx:141, effective-effort.ts); a terminal-held session has none.
    • So it was a terminal-held seat on sminos-hub, which C's fix covers. The caveat: no fixture shows get_settings' effort for opus-5-5.

Tracker lines (for the architect to record at landing)

  • The e2e's fixed wait. e2e/remote.spec.ts M8's case waits a fixed 12 s past the linger rather than observing main's let-go of the remote stream. Exit: wait on a let-go signal the scene exposes.
  • A read remote session ranks behind unread local ones (parity with local). Live, a remote session whose turn ended on screen would still be cut behind unread local rows. Exit: an owner's call on whether a fresh read session should outrank stale unread ones, local and remote alike.
  • A busy remote record ranks by recency, not as working. The record hides its listing's busy. Exit: the record's status carries working, as a local digest does.
  • The Overview cards and the New chat project picker still read a remote record's frozen updatedAt (latestTurn, projectsByRecency). Exit: they read the same seen activity.
  • The precheck doesn't read the VM's load (the decision names the mini). Exit: a devcloud VM's /proc/loadavg read, if the VM's load should gate a run.

Residue

  • A textless thinking block's final duration. W1 draws no row for a closed textless thinking block, which is nearly every opus-5-5 block, so "Thought for {t}" never shows once it closes (lane A and lane B alike). The architect registers this as a UX ticket for the owner's UX wave.
  • The live re-check. After this lands, the owner re-checks A and C live for a minute (one more swap), and O7 closes on that as an addendum to Outcomes. The live bench stays carried until a sitting runs it after its precheck.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)

…flat answer

Attempt 1's key step could never pass: `#keyId()` parsed `{key: {keyId}}`, while `keysAnswer`
answers flat (`{enrollment, name, org, ref, delegated, keyId, heldKeys}`). The reader takes the
top-level `keyId` (`keyIdOf`), and the bench's fakes for `keys` and `endpoint status` are rendered
by the endpoint's own `keysAnswer` and `statusAnswer`, re-exported from presence.ts (the module's
entry for its pure renderers), so they can't drift again. Red first: the fakes alone failed four
cases with "posted no key to compare within 60 s", the sitting's failure.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
After an enroll the endpoint reads the org state once, then every 10 minutes (SYNC_EVERY_MS), and its
hub link opens only once it is org-listed, so the owner's y was seen up to 10 minutes later. The new
verb reads the org state by a read that begins after the call (`Endpoint.syncAfter`, the existing
`#syncAfter`: a read in flight may predate the listing), then `promoteIfListed`, and answers as
`endpoint status`: exit 0 listed, 4 hub-confirmed, 1 not enrolled. `mawsd endpoint sync` waits up to
90 s (a read in flight and its own, each page bounded by the hub client's 30 s). Red first in
test/endpoint/enroll.test.ts (node-timing, the local hub) and src/mawsd/cli.test.ts.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… `endpoint sync`, the mini's hosts ended

- The bench agent gains `watch`: one machine.sock link for the run, reached when asked until the scratch
  daemon answers, then `status`, `keys` and `sync` answered on it (`daemon.endpoint`, `--json`) as id'd
  lines; a lost link is reached again at the next ask. The runner starts it at the stage's start and reads
  every state through it: the daemon answering, the rerun's check, the key and the listing. On the mini that
  replaces a fresh ssh and a fresh MAWS runtime per poll (attempt 2's 25 machine.sock clients in five
  minutes); the only mawsd process a run starts there is its enroll. The watch has serve's deadline before a
  quiet window and is ended before the daemon's stop and the reap (its own command line names the profile).
- After the key, the listing is waited for by asking `endpoint sync` (the org state read now, a listing
  promoted), so the owner's y is seen within a poll, not at the endpoint's 10-minute read.
- The mini's teardown no longer stops at printing mini-ops' stop: it waits for the scratch mawsd's absence
  (`scratchDaemonLine`, a pgrep) up to 10 minutes, then ends the hosts as the VM path does (`stop-hosts`, the
  reap, the check), so a detached scratch engine host no longer outlives it.

Red first: 21 runner cases fail against the previous runner, 3 agent cases without `BenchWatch`.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…n a failure

Before the local case, the live spec reads this Mac's load1 and, on the mini, the mini's own through the
run (`BenchRun.load1`: `sysctl -n vm.loadavg` over its transport, read-only, with its deadline and quiet
window), and refuses to start when either is at or over Rule B's 5 (IDLE_RUN.maxLoad), or the mini's is
unread. A refusal writes `remote-latency-live.json` with its reason and both loads, annotates the run and
skips the test with the reason: a recorded outcome, not a failure. Attempt 2 measured on a runner at 97.7.
The VM's load is not read (the decision names the mini). Red first in remote-bench.test.ts.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Progress notes the code half built on p5-o7-m10; Interfaces carry `mawsd endpoint sync` as built
(a read after the call, exit 0/4/1, 90 s), the agent's `watch` protocol and the precheck; the
Decision Log records the five code decisions, one a revision of the sync verb's `syncNow()`.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…on 'never')

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… and TS2339)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…review)

reviewer-medium: a sync whose read was held while the machine unenrolled answered exit 4 with
`enrollment: none`. The three final states now map explicitly: 0 org-listed, 4 hub-confirmed, 1 none.
Red first: a held org-state read, `unenroll` beside it, then the sync's answer (test/endpoint/enroll.test.ts).

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…) section

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…thout Touch ID, C thinking timer) as M10 Decisions

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…p-up key and no prompt

The owner's ruling "Not on my machines". step-up.ts judges it inside `sign`, on the canonical copy it seals: a
`session.spawn` with no session, context or digest, on a machine whose owners in the session's held head (read at each
signature) include the member the head lists this device and step-up key under. Anything else, or any doubt, asks as
before. The org sessions hand the step-up a getter on the view they hold; no request field, IPC flag or argument
reaches the decision. The signature is unchanged, so the machines and attest.ts's SPAWN_ACTIONS proof don't change.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…luded (the architect's ruling)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…and reads its final duration

The lane A overlay stamps a streamed block with this window's clock when it is first drawn, but the live
thinking label timed it on the transcript store's clock (the disk rows' times, none of which arrive while a
reply streams) and froze it whenever the digest said no live process (`foreign` while the bridge is still
starting): the start was later than anything the store had heard, so the label stayed "Thinking · 0s". A
model whose thinking streams no text (claude-opus-5-5) always shows that timer.

A lane A thinking row now carries `clock: 'wall'` and its label ticks from its start on the wall clock,
whatever the store says. The overlay marks a block closed when a later block of its message starts or the
engine writes its row, and a closed thinking row reads "Thought for {t}" (start to close), or "Thought" when
the pane first saw it already closed. Store-derived rows keep the event clock and the liveness rule.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…local

A lane B record on another machine has no digest (no lane B module emits
session.digest), so the sidebar ranked it by record.updatedAt as this Mac
last received it. Main holds that record only while a tab does: after the
tab's 10 s linger the stream and checkout feed close and no later bump
arrives, while the record hid its listing's fresher `issued`. Under
priority an unread one keyed by a missing turn end and ranked last among
the unread. Past the spawned-here lead it fell below the cap.

Its activity is now the newest of the record as received, the listing's
issue and the turns its stream delivered here (`seenActivity`; the
sessions store keeps `turnsSeen` from other machines' event batches). A
record with turn times of its own (a digest) is untouched. The sidebar's
order, a row's age, the hover card, the palette and Resume…'s order read it.

Red first: sidebar derive (nine older idle locals, no pins), the sessions
store's turns, connectShell's subscription, Resume's order. M8's e2e case
takes nine idle older sessions in place of nine pinned, and the spawned row
stays within the visible rows after its first turn and the tab's linger.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… lane B's does (W1)

A terminal session's thinking block with no text (opus-5-5's omitted thinking) no longer reads "Thought for
{t}" between its close and its disk row landing, which derives no row and took it away. One with text still
reads its final duration. The overlay test's named block carries text, so it still shows a named block
waiting for its row.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t close

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
The nine older idle local sessions are marked unread (session.update), and
the spawned session's first turn ends with its tab in the background (a New
chat in the same pane), so A marks it unread (lane-b/read-marks.ts: a turn
ended off screen; session.setVisible isn't offered over RL2). Its tab closes
by a middle click, which doesn't bring it on screen. Past the linger the row
must be visible, unread, first, with Show more still there.

With no digest the old unread key was -time(undefined), +Infinity: last
among the ten unread, below the cut. The new key is its latest activity.
No wall-clock bound.

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)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tion

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T07:56:18.132333Z b35f94b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 6f9dd7a into master Nov 5, 2026
SSFSKIM added a commit that referenced this pull request Nov 5, 2026
…he stale-unread order put to the owner

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@SSFSKIM
SSFSKIM deleted the p5-o7-m10 branch November 5, 2026 08:04
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
The PROVENANCE note and the fake machine's dx4/README name the merge in
place of the branch commit. The vectors are unchanged (blob a414fd5), and
sminos_jobs.py at the merge is the pinned e5b89d9b... .

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant