Skip to content

P5 O10 M11: acceptance on staging and the cut-over VM (item 2 open on production until #161) - #356

Merged
SSFSKIM merged 24 commits into
masterfrom
p5-o10-m11
Oct 29, 2026
Merged

SSFSKIM merged 24 commits into
masterfrom
p5-o10-m11

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

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.ts and endpoint-production.ts;
  • the staging-run.sh endpoint and endpoint-vm steps;
  • the VM drivers vm/scene.sh, vm/production.sh, vm/inotify.sh and vm/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.

  • Item 2 (resume without loss) is shown on staging for lane A.
  • On production, both carriers subscribed, but no lane A row followed the snapshot. sminos finds a session's transcript only under $HOME/.claude/projects (sminos.py:7869). Production's lane A runs under a scratch CLAUDE_CONFIG_DIR, the credential-hygiene recipe. So sminos's plane ends each subscription discontinuity with "cut not on disk" (sminos_plane.py:86–94, :1779).
  • The owner ruled that sminos is fixed first: doperpowers gate: hosted Macs, admission wave 5 (settings, connectors, connectors-direct, delivery) #161, extended to transcripts, so that sminos reads a session's records and transcript from its own config dir. Item 2 then reruns on production as attempt 5, with no write into the owner's ~/.claude/projects.
  • Whether M11 lands with item 2 open on production is yours to decide.

Production defects M11's attempts found:

Validation Evidence

  • Staging, tag 973954 at ebc6504. Log ~/.local/state/desk-hub-staging/endpoint-20261029T052405Z.log.
    • PASS: items 2, 3, 4, 8 and 9.
    • Item 5: PASS except one NOT SHOWN, the forced byte-identical resend, which test/endpoint/rl10/conversation.json covers.
    • Item 2: every event arrived once over each carrier, checked by the endpoint's cursor, sminos's numbering and the transcript (551 events and 271 rows in tag 06f0e6). The RL1 cut was replayed in 2.4 s and the direct channel never dropped. A real staging deploy and a forced cut were replayed in 2–5 s. mawsd restart was resumed by snapshot under a new epoch.
    • Item 3 was re-run at 1e36048: PASS.
  • Production VM dc-acceptance-7f80, item 7 attempt 4, tag ae56fb, 2026-10-29 17:24–17:45Z, at 1938dc8. The owner ran it from their terminal. The device o10-p-ae56fb (fingerprint kqjys-gmtxp) was paired and then removed.
    • Item 3: every check run passed (sequence, replayed, stale, one effect per reseal, query for the sender, not-received only after the tombstone, expired, tag, closed removed).
    • Item 4: the read-only checks passed. The spawn cases are never run on production, and the local spawn was declined by the owner's guard, as designed.
    • Item 5: every clause passed but the forced resend: RL10 local-only with no hub.json, listed through the endpoint alone, listing and 6 events verified under the machine's certificate, words delivered once, revocation at version 10.
    • Item 2: FAIL, cause above.
    • The log leaked 0 lines.
    • Cleanup: the head lists none of the run's members, devices or machines. Kept residue in project 992428e5 is recorded with the run.
  • Item 2's cause, confirmed.
    • The VM's daemon.log shows "bridge snapshot … build: none, cut not on disk" for each open, 17:27:38–17:28:22Z.
    • The VM's mawsd.log shows "sminos ended a lane A subscription (discontinuity)".
    • A rehearsal as a scratch user (o10acc): without the transcript where sminos reads, the subscription ends discontinuity; with it, 5 live rows follow a 21-row snapshot.
  • B1 step 11 inotify, during item 2: 26 of 64104 watches (o14-b1-evidence.md).
  • Harness tests at a5b18f6: vitest run over 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.
  • Final gate: scripts/ci-gate.sh <worktree> --gates static,unit,probes,e2e:desk-web,e2e:desk-web-hub --runner macos --class1a pool --lane hosted at the head a5b18f6 (tree e404a87ab; ci-gate ran that exact sha as ci/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. No flaky: line, so the flaky count is 0.
  • Review: reviewer-high ran 11 rounds on the harness, each finding fixed or dispositioned. Round 11 on the certificates fix was correct, with no material findings.

Unresolved Review Findings

  • [P1, dismissed] apps/desk-hub/deploy/vm/production.sh lane_a_up, the sminos project show $W resolver check. Review round 10 says it is not strictly read-only: sminos's main() runs an idempotent migrate(), and hub_here writes hint files for an ancestor .smns.
    • Dismissed: the run already calls the same CLI as the owner (list --project for the alias), and lane A's hooks run sminos record from 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.
    • The coordinator accepted the dismissal. Round 11 restated it as unchanged.

Residue

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)

…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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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-10-29T18:17:22.106373Z a5b18f6 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 f3d16fb into master Oct 29, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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 });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

SSFSKIM added a commit that referenced this pull request Oct 29, 2026
… 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)
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