Repository navigation
[HOLD until B4 step 3] P5 O14 M5b: the phase-1 routes leave the hub - #261
Merged
Merged
Conversation
DX2's /machine/stream and /machine/frames and the org key's POST /api/org/keys and
DELETE /api/org/keys/<id> answer the Worker's own 404 (with X-Desk-Build), behind
Access like every route. A browser's DX6 rpc frame is answered refused {reason:
'retired'} to its own socket: nothing is recorded, nothing is sent to a machine, and the
socket stays open for the frozen views' reads. GET /api/org/keys stays (410 after the
purge); enrollment is untouched, so a v1 and a v2 token both redeem.
What went with them: the Machine object's DX2 stream, the Registry's org-directory push
and M5a's v2 mark, the org-key add/remove paths, the Project's DX6 paths and the rpcs
table, and the local stand-in's v1 code helpers. The phase-1 suites are deleted, the
remaining suites are ported to RL1 (test/support/rl1.ts) or to a v1 credential's own
request, and test/phase-1-retired.test.ts proves the acceptance.
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
probe --rpc is the case O14's B4 step 3 runs after M5b's deploy. It sends an rpc frame on a project socket opened with the owner's token and passes only on refused retired carrying its nonce. The frame carries a nonce and nothing else, so it writes nothing on any build (a build before M5b answers it rpc-state bad-shape before any record). That lets it run in the deployment's own org with DESK_ACCESS_TOKEN alone. The probe's normal run no longer needs DX2: A2 confirms the machine by its own request, A3 and A4 aim at /machine/enrollment, A1 opens the machine's own project, and E3 (the archive told at a DX2 hello) is dropped. The README gives the --rpc recipe and names the proof commands that still drive DX2. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Conflicts: the Worker's imports and machine routes (M4's history routes kept; DX2's routes stay gone, and the RL1 socket's identity stays inside its branch) and the Registry's imports. M4's history-attestations suite seeded phase-1 history over DX2 with MachineClient. It now seeds it through phaseOneFrames, which hands a project the frames as DX2's Machine object did, under a v1 credential confirmed by its own request. The suite's premise needs the phase-1 names unlisted, which rules out RL1 here. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…h the routes (P5 O14 M5b) deployment probe --retired asserts B4 step 3's owner-token half: POST and DELETE /api/org/keys answer the Worker's 404 under the deployed build, GET answers 410 retired or the list; the VM's service-token half is a README recipe. session-plane.spec.ts and test/local/machine.ts drove DX2 and DX6 only and go; local-hub.spec.ts keeps the served app and gains the Machines dialog's removal of an enrolled machine, ported from session-plane. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…2's key seeding off the removed routes (P5 O14 M5b) deploy/vm-dx2-retired.mjs asserts B4 step 3's machine-token half (404 not-found under the expected build, nonzero otherwise), run with HUB and BUILD as separate arguments. test/endpoint/history.test.ts seeds phase 1 through the suite hub's phase-one seam; admin-verbs seeds its wrapped copies through seedWrappedKey; the gate's source readers drop the deleted spawners for test/endpoint/local-hub.ts. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…e web's ids together (P5 O14 M5b) The README's BUILD line kept the first word of X-Desk-Build; a production build is 'hub@<sha> web@<branch>.<sha>' (deploy.ts buildName). It now strips only the field name and the surrounding whitespace, and the VM script's and probe --retired's tests cover the combined name, the former running the README's line itself. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 28, 2026
…ed (Desk Web's DX2 staging spec retires in #261, sminos's opt-in DX2 tests deferred); two tracker rows Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…an stays for O13 M7's phone run (P5 O14 M5b) apps/desk-web/e2e-staging/desk-web.spec.ts drove the paused desk-web over DX2 and org keys, both of which M5b removes. After the cutover the phone's staging check is O13 M7's `staging-run.sh phone <n>`, against the real endpoint. - Removed: the spec, its recording guards (e2e-staging/recording.ts, unrecorded.ts), playwright.staging.config.ts, test/staging-recording.test.ts and its fixture. Nothing else imports them, on master or on any origin/p5-o13-* branch. - staging-run.sh drops the `desk-web` step. Its scan becomes `secret_scan`, a helper the phone run can call. - staging-scripts.test.ts tests `secret_scan` on its own and pins that the desk-web step is gone. - The deploy README is updated to match. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…sion Log 86) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…and B4 step 3 take DL 86's two checks Follows P5 Decision Log 86, which is on this branch through the merge with master. - M5b's Touches and Decisions name the staging check's retirement. O13 M7's phone run supersedes it. - sminos's opt-in DX2 tests are deferred to after B4 (board #153). - B1 step 7 watches the first production `json_extract`. - B4 step 3 checks `node` on the VM's PATH before the merge. - One dated Decision Log entry records the retirement. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…n_extract's first production run Review of 9289e00 found that "the deploy's probe" named no real probe. production-deploy.sh only polls /machine/enroll for the build header, and `deployment probe` has no history case. The two commands the step already runs are the first to exercise the inventory query on production D1, so the step now names them as its probe. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
This was referenced Oct 28, 2026
Merged
Merged
…O8 M3, O9 lane A, O3-D, O10's endpoint acceptance) Conflicts: - apps/desk-hub/test/session-plane.test.ts and apps/desk-web/e2e-hub/session-plane.spec.ts stay deleted. Master's changes to them were the widened DX4 step-end relayed over DX2 (aafc86c; the type itself is pinned in test/protocol/session.test.ts, which stays), the grid live-count arm per project (a161480, a case driven by a DX2 machine's presence), and G2's DX6 retry polls (604ff57, 5c7c58e): each exercises a route M5b removes. - apps/desk-web/tsconfig.node.json: master's include list (O13 M7's staging phone run), without e2e-staging. - apps/desk-hub/deploy/staging-run.sh: master's phone, endpoint and endpoint-vm steps and its own secret_scan and deployment(); the desk-web step stays out (P5 Decision Log 86), so throwaway is a step of its own again. - apps/desk-hub/deploy/README.md: master's step list, the desk-web bullet replaced by its retirement note. - apps/desk-hub/test/org-enrollment.test.ts: master's imports for its key-held suite, without MachineClient. - the O14 document: master's B1 step 6 and 7 and B4 step 3, M5b's two Decision Log entries kept before master's. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…n in the run's list (P5 O14 M5b) Master's staging runner has its own secret_scan (O13 M7's phone run, O10 M11's endpoint run), a block whose callers put the owner's token first in the list, where M5b's had added the token itself. The test extracts the block and lists the token as the callers do; a token not listed is not counted. The desk-web step's refusal now meets a usage line that goes on past throwaway. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…ir org-key helper (P5 O14 M5b) Master's O13 suites landed after M5b was written, and two of their cases drive what M5b removes: cards.spec.ts's side by side (desk-hub's fake machine over DX2, its permission answered as a DX6 rpc, the key set up through POST /api/org/keys by holdOrgKey) and cards-landing.spec.ts's seam (a DX session played in by the fake machine reading moved to MAWS). M5b merges at B4 with every machine moved, so neither has a machine left to stand for; the channel half of side by side is the lane A cases' own, and the seam's unit suites stay (project-client.test.ts, capabilities.test.ts, Composer.test.tsx, RequestCard.test.tsx). e2e-hub/org.ts had no other caller. desk-web's CLAUDE.md no longer lists e2e-staging. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…ases in Touches Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…ase 1 at O14 M5b (the architect, 786) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
SSFSKIM
marked this pull request as ready for review
October 30, 2026 22:15
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. |
SSFSKIM
added a commit
that referenced
this pull request
Oct 30, 2026
…-load; the window's fields take WIRE_MINOR 9 beside #374's resume 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.
HOLD: merged only at B4 step 3, on the owner's word. P5 O14 M5b removes the phase-1 routes from the hub (
docs/doperpowers/plans/2026-10-27-p5-o14-cutover.md, M5b; Interfaces §E). If this reached master before B4, the next production deploy would cut off every machine still on DX2. This PR is kept as a draft to prevent that.GET /machine/streamandPOST /machine/frames, plusPOST /api/org/keysandDELETE /api/org/keys/<id>, now answer 404 from the Worker, behind Access, with the build header and no body that names what was there.rpcframe on a project socket is answeredrefused {reason: 'retired'}to the sender alone: nothing is recorded and nothing is forwarded. The socket stays open for the frozen views, and therpcstable is dropped.GET /api/org/keys(410 after the purge), the enrollment routes (a v1 and a v2 token redeem alike) and every v2 route.deployment probe --rpcandprobe --retiredare the owner-token probes of B4 step 3. The VM's service-token half of that step is a README recipe.e2e-hub/session-plane.spec.tsandtest/local/machine.ts.local-hub.spec.tsis ported.staging-run.sh phone <n>supersedes it.apps/desk-web/e2e-staging/,playwright.staging.config.ts,test/staging-recording.test.tsand its fixture. Nothing on master or any O13 branch imports them.staging-run.shdrops itsdesk-webstep. Its secret scan stays assecret_scan, for the phone run.Validation Evidence
Review, reviewer-high (the spec's rung), three rounds:
awkread only part of a build's name. Fixed in 49a8fd7, which reads the whole name, the hub's id and the web's id together.Gate at 165792d, run 40642960029: RED.
gate-plan.test.mjsnamed a file this PR deletes, and M4'stest/endpoint/history.test.tsseeded its records through DX2. Fixed by updating.github/scripts/gate-affected.mjsand porting the test to the Miniflare seam.Gate at 43240fd (merged with master), class 1a on the pool, run 40647525757: GREEN.
Gate at 49a8fd7 (
scripts/ci-gate.sh <wt> --gates static,unit,probes,e2e:desk-web --class1a pool), run 40649374983: GREEN. static, unit 1-4, probes and e2e:desk-web passed.Gate at 49a8fd7 (
--gates e2e:desk-web-hub --runner macos --lane hosted), run 40649375412: GREEN.e7bcfdb changes only the spec (
docs/doperpowers/plans/2026-10-27-p5-o14-cutover.md). Run 40650908736 gated it static only: GREEN.Retirement commit 2952267, master merged at 23fc939 (P5 Decision Log 86), spec fold 9289e00: at 9289e00 class 1a GREEN, run 40652069403 (labelled
p5-o14-m5b-retire). Reviewer-medium round 1 found one P2: B1 step 7 named a deploy probe that does not exist. The fix is 6cfce39, spec only. Round 2: correct. 6cfce39 static GREEN, run 40653608142. Focused test locally:vitest run test/deploy/staging-scripts.test.ts, 13 passed.Before this merges at B4 step 3, it must be merged with master again and its merge gate re-run: class 1a, e2e:desk-web, and the hosted e2e:desk-web-hub. B4 step 3 first checks
nodeon the VM's PATH.Refresh, 2026-10-30, to master 418d36a. The head is 0c2dd73. Master was merged in, 1,235 commits after 10-28, and seven conflicts were resolved. Two of O13's e2e-hub cases that came after M5b used DX2 or DX6 (
cards.spec.ts"side by side",cards-landing.spec.ts"seam"). Both were removed, along withe2e-hub/org.ts, which nothing else calls; the seam keeps its unit coverage. The staging-scripts test was adapted to master'ssecret_scan. The consumer audit on master found no live consumer of what this PR removes. Only frozen desk-web's key dialog and DX6 client remain, which the spec covers, plus sminos's legacy uplink, which is meant to be stranded. Every machine is on RL10. reviewer-high on 418d36a..0c2dd73: correct, no findings. Gate--gates static,unit,probes,e2e:desk-web,e2e:desk-web-hub --class1a pool --lane hosted, run 41131086892: GREEN. The gated tree is the head's (023780ad). The run's first attempt, 41129726916, lost only unit 2/4, to a known timing flake that this change doesn't touch.fe6704f, docs only: O13's Decision Log records that acceptance 4's and 5's e2e proofs retire with phase 1 here (the architect, 786). Static run 41132627842: GREEN.
Residue
sminos/tests/test_session_plane.pyunderDESK_HUB, andbench_rig.pywith--hub local --maws. They move with the rest of sminos's phase-1 path. That is doperpowers board desk-hub: MW1's reads and capabilities.controls — types, the fake machine's mw1 producer, the spec as built #153, deferred (P5 Decision Log 86). They do not block this PR.push. It goes in a follow-up after B4.Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)