Repository navigation
P5 O10 M11: acceptance on staging and the cut-over VM (item 2 open on production until #161) - #356
Conversation
…local proof deployment endpoint-acceptance (deploy/endpoint-acceptance.ts): a real mawsd enrolled by the staging admin's code (OrgAdmin.enrollListed) and listed, a second member, a lane A session under the machine's sminos, and items 2-5, 8 and 9 driven over the hub's multiplex and the direct listener (endpoint-items.ts), one PASS/FAIL/NOT SHOWN line per item (endpoint-verdicts.ts), then everything undone and read back. The machine is the devcloud acceptance VM's scratch scene (vm/scene.sh, setup.sh, teardown.sh, check.sh; steps only through devcloud vm ssh with 0600 script files unlinked at once, endpoint-machine.ts), or in test/endpoint/acceptance-local.test.ts the built mawsd against desk-hub's Worker in Miniflare. Production (item 7) is a mode guarded by --production --confirm-production <host> (endpoint-production.ts); vm/production.sh is a draft. Local proof: PASS 3, 8, 9; NOT SHOWN 2, 4, 5 for what only the VM has; nothing left, no secret printed. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…stered and documented endpoint runs deployment endpoint-acceptance under staging-ssfskim with the admin device's keys, the token on its stdin alone, its hub-deploy item this script's own deploy step, the secrets it handled searched for in its log, production's X-Desk-Build compared before and after. endpoint-vm setup <base> | teardown sets up or removes the VM scene, with no token read. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…s allowlist and lane A, tuple cuts, interruptible steps and requests, exact device cleanup, stricter item clauses Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…M11) — a step ends only with its whole group gone, every run end cancels and names what still runs, the VM scripts' verbs stoppable by down, item 2's watcher and progress made robust Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… the run names and checks its lane A session, a seat is the run's only in its namespace, spawn probes and unproven spawns declined, the machine pinned, this run's own events alone proved and kept, the direct URL by mode Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…channels answer the endpoint's ping, item 2's hub deploy runs outside pnpm's script context, item 8's step-up probe waits for the checkout's presence Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…in a project of the run's off production, since sminos lists no checkout for a machine project Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…read-only spawn its own clause, never on production; the own-event proof and residue count the run's two sessions' writers alone Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…th no turn yet has no transcript, so none of its rows holds a marker Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…y runs in a subshell, so vm/teardown.sh's closing exit no longer swallows its status Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…n runs items 2-5 alone, item 3's relays act on the action's frame with the run's pongs held, every session the run starts is recorded and recovered for its residue Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… the run by its content, and shown kept before the clause passes (P5 O10 M11) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…relays act on the action's own sealed frame, captured at the device's write, and pongs are never held past it Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…ing on the VM, the owner's waits 45 min (P5 O10 M11) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… — a listener bound by its sockets counts where the status flag is stale (#320), the lane A log baseline is 0 for a project the hub does not know yet, the stub's check runs as the owner Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… sminos (P5 O10 M11, item 7 attempt 2) — sminos reads engine session records from $HOME/.claude/sessions alone, so each record the run's engines write in the scratch config dir is linked there and the links removed at down; the session is a stray in the machine project (no .smns), checked against identity.json; its alias found by its own id in the machine project's listing, retried for 30 s Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…P5 O10 M11) — sminos's own resolver must put the checkout in the machine project as a stray before any engine starts (an ancestor .smns refused); the engine records' links under the run's own name o10-m11-lane-a.<record>, removed only where the target is exactly the record; links made never forced or nested; the owner's sessions directory made 0700 only when absent Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…tificates the hub serves (P5 O10 M11, item 7 attempt 3) — the run reads the org state's certificates with its chain, its devices' org views hold them as a real client's does, and item 5 judges the machine's listing and events against the head and them; production's machine is delegated, so a device holding the state alone met it as unknown-machine Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…n, delegated certificates, the notifier's single messages) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…n, item 2 outstanding on production until sminos reads a session's own config dir (#161) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a5b18f6014
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| return 'a stepped-up spawn refused `read-only`'; | ||
| }); | ||
| } finally { | ||
| await scene.machine.policy({ readOnly: false }); |
There was a problem hiding this comment.
Restore the original read-only policy after the probe
If the endpoint starts with read_only: true, this finally block turns read-only mode off rather than restoring the saved value. In the production run, the real machine then remains writable throughout items 5 and 2 and the owner's removal wait; the original policy is restored only during final cleanup. The end-of-item comparison reports the mismatch but does not correct it. Restore before.read_only here so the probe does not leave an initially read-only production endpoint accepting writes.
Useful? React with 👍 / 👎.
| if (r !== 'restart' || d !== 'restart') throw new Error(`the channels closed ${r} and ${d}`); | ||
| await until(async () => { | ||
| const s = await scene.machine.status(); | ||
| return s.hub.connected && s.listener.bound && s.rl10.connected; |
There was a problem hiding this comment.
Apply the listener-readiness fallback after a restart
When running against a release affected by #320, the initial scene setup deliberately accepts a listening endpoint whose status reports listener.bound: false, using the socket fallback in endpoint-acceptance.ts::endpointReady. This restart check instead requires that flag to become true, so the same supported endpoint inevitably times out after restarting even when its listener and RL10 connection have recovered. Apply the socket-based readiness fallback here too, otherwise item 2 reports a false failure and never tests the post-restart subscriptions on those releases.
Useful? React with 👍 / 👎.
… on staging and the cut-over VM; acceptance 7's item 2 on production waits for doperpowers #161; two tracker rows Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Summary
This is P5 O10 M11, acceptance on staging and on the cut-over acceptance VM. It adds the endpoint acceptance harness under
apps/desk-hub/deploy/:endpoint-acceptance.ts,endpoint-items.ts,endpoint-machine.ts,endpoint-remote.ts,endpoint-verdicts.tsandendpoint-production.ts;staging-run.sh endpointandendpoint-vmsteps;vm/scene.sh,vm/production.sh,vm/inotify.shandvm/teardown.sh.It also records M11 in the O10 spec: Progress, Decision Log, Surprises, and Outcomes & Retrospective.
For the architect: item 2 is open on production. O10 acceptance 7 (live on the VM) is met for items 3, 4 and 5 and not for item 2.
$HOME/.claude/projects(sminos.py:7869). Production's lane A runs under a scratchCLAUDE_CONFIG_DIR, the credential-hygiene recipe. So sminos's plane ends each subscriptiondiscontinuitywith "cut not on disk" (sminos_plane.py:86–94, :1779).~/.claude/projects.Production defects M11's attempts found:
$HOME/.claudealone. The records are worked around by run-owned links; the transcripts are left to gate: hosted Macs, admission wave 5 (settings, connectors, connectors-direct, delivery) #161.hub.json. Fixed in sminos 1.27.13 (doperpowers O3-D's front, shape B 2: a failed stream restarts its catch-up at a status of its own launch #444).Validation Evidence
~/.local/state/desk-hub-staging/endpoint-20261029T052405Z.log.test/endpoint/rl10/conversation.jsoncovers.mawsd restartwas resumed by snapshot under a new epoch.sequence,replayed,stale, one effect per reseal, query for the sender,not-receivedonly after the tombstone,expired,tag, closedremoved).o10acc): without the transcript where sminos reads, the subscription endsdiscontinuity; with it, 5 live rows follow a 21-row snapshot.vitest runover test/deploy endpoint-acceptance, endpoint-delegated, endpoint-machine, endpoint-verdicts, production-scene and staging-scripts gives 6 files, 120 tests passed.pnpm typecheck(desk-hub, three programs) exits 0.scripts/ci-gate.sh <worktree> --gates static,unit,probes,e2e:desk-web,e2e:desk-web-hub --runner macos --class1a pool --lane hostedat the head a5b18f6 (tree e404a87ab; ci-gate ran that exact sha asci/m11-final-a5b18f60, so the gated tree is the head's):run 40927281979 success. static, unit 1/4 to 4/4, probes, e2e:desk-web and e2e:desk-web-hub all passed. Noflaky:line, so the flaky count is 0.Unresolved Review Findings
apps/desk-hub/deploy/vm/production.shlane_a_up, thesminos project show $Wresolver check. Review round 10 says it is not strictly read-only: sminos'smain()runs an idempotentmigrate(), andhub_herewrites hint files for an ancestor.smns.list --projectfor the alias), and lane A's hooks runsminos recordfrom it. So this adds no class of write the approved run doesn't already make, and the hint files appear only in the refused case.Residue
CLAUDE_CONFIG_DIR. It gates item 2's production rerun (attempt 5: one owner pairing and one remove-device, no other write). Once it lands,vm/production.sh's record links can go too. The coordinator is building it.daemon/identity.json(doperpowers O3-D's front, shape B 2: a failed stream restarts its catch-up at a status of its own launch #444, sminos 1.27.13).test/endpoint/rl10/conversation.json, done. Refreshed to blob 4d91747bb with endpoint notify: a lane A question raised after its project opened reaches the hub (P5 O10, RL10) #345's case 12 STAGE entries (doperpowers P5 O5 fix: a forwarded request's end restarts the park clock before the zero count #443).Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)