GeezerVison is showing github.com — Machines: enrol a second machine under its own key, send each action to one that can do it · Issue #13492 · developing-today/code
Machines: enrol a second machine under its own key, send each action to one that can do it #13492DescriptionToday. A machine says what it is called and what it can do in each report, and More, Machines shows it (#13471). But only one machine can report: the edge holds one key, learned by asking the machine through the tunnel, and relays every action it does not do itself to that one address.
What done looks like.
- A second machine is enrolled from the app: it shows a code, the owner approves it on the Machines screen (as a phone is linked today), and the edge then takes reports under its key. A machine can be removed there too.
- The edge keeps each machine's sections apart and says which machine each came from. Where two report the same section, the screen says whose it is showing.
- An action that needs a machine goes to one that says it can do it. A machine with no address the edge can reach (no tunnel) takes its actions with the answer to its next report, as held actions are taken today.
- What is held is held for a machine that can do it, and Machines shows it under that machine.
- When no connected machine says it can do a kind, the edge answers at once that none can, and does not relay blind.
- The protocol change is in
pm-stack/console/src/edge-proto.ts; reports from a machine older than the change still work.
Design record: doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/.
Generated by Claude Code Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 24, 2026 Triage verdict (oc-code-02, 2026-11-24): not resolved. Open issue with no implementing PR found for its scope (search of PRs by number finds only unrelated blob-gate work). Routing the second-machine enrolment and action routing as a scoped follow-on; issue stays open. Tracking: #14158. dezren39 commented on Nov 24, 2026 Triage verdict (code-i, 2026-11-24)
Fresh GitHub state: open, no implementing PR found for the second-machine enrolment or action routing. The issue is a large feature, not a small fix, so it is not closable on triage.
Decision (FDR-0013, no owner gate): route two scoped implement packets. (1) Edge enrolment of a second machine under its own key, with per-machine section separation and remove. (2) Action routing to a connected machine that declares the kind, held actions per machine, and an immediate none-can answer. Protocol change lands in pm-stack/console/src/edge-proto.ts and must keep reports from older machines working. Design record: doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/.
Tracking: #14158. developing-today-fleet commented on Nov 27, 2026 Slice 1 is implemented in #15894 (edge multi-machine enrollment, ready for review).
What landed
- Owner-approved enrollment of a second machine under its own key: the owner mints a single-use 15-minute code (POST /console/api/machines/enroll-code), the machine enrolls its public key with it (POST /console/edge/enroll), and each machine's reports verify against its own key with a per-machine replay line.
- GET /console/api/machines lists every enrolled machine with its own last-seen, quiet flag, version, declared actions/sections and settings revision; a never-reported enrollment shows with seen null. Legacy tunnel-learned reports are unchanged.
- Removal (DELETE /console/api/machines/): the key stops verifying (410 gone), the entry leaves the list, and the tunnel never re-learns it without a fresh owner code.
- Proof: new pm-stack/console/test/machines-multi.test.ts (mint, enroll, both sync and appear, removal revokes, first machine unaffected). Suites at the slice commit: machines-multi 1/1, edge 213/214 (sole failure pre-existing on origin/main: /console/health returns workerChecks but that test expectation was not updated), work+direct 97/97, plan+push+console 87/87. tsc shows only the pre-existing origin/main error (edge/src/worker.ts:137 literal from Questions, what needs you, and sessions: readable and answerable with no machine #13491); nothing in the changed files.
Deliberately not in this slice (next work)
- Slice 2 (action routing): held actions are still broadcast to every syncing machine; scoping delivery by declared capability, per-machine held state, and the immediate none-can answer stay open.
- Machines screen UI: the screen does not yet mint codes or offer removal; wiring these endpoints to app.js is its own slice.
- Section copies stay shared last-writer-wins; per-machine attribution is the Machines entry, not per-machine section storage.
dezren39 commented on Nov 27, 2026 Pickup, slice 2 only — lane 2233-A-C (xaltha, work-loop alpha run 2026-11-26 22:33 CST), queue task 24455.
Slice 1 is in PR #15894 (branch queue/24454-13492-enroll-machine); I'm stacking slice 2 on that branch: capability-aware action routing in pm-stack/console — an action goes to one reachable enrolled machine that declares the capability, held actions stay attached to their capable machine when it has no reachable address, and when no connected machine declares the kind the edge answers immediately instead of relaying blind. Protocol change stays additive so older machines' reports keep working. The earlier xaltha/13492-slice2-routing branch rests on a superseded slice-1 implementation and won't be reused. Branch: xaltha/13492-slice2-capability-routing. dezren39 commented on Nov 27, 2026 Slice 2 progress — lane 2233-A-C, queue task 24455: PR #15935 opened, stacked on slice 1's PR #15894 branch.
The routing work from the stranded xaltha/13492-slice2-routing branch (which rested on a superseded slice-1) is ported onto #15894's base: both commits cherry-picked cleanly, the competing slice-1 commit was not carried over. Contents: capability selection in src/edge-proto.ts (connected+capable routes; capable-but-unreachable holds for that machine; no capable machine answers immediately, no blind relay; additive protocol, legacy reports still work), wiring in edge/src/edge.ts, tests in test/edge.test.ts.
Verification is pending: fleet-command run 45940696424 (bun test in pm-stack/console) is still queued behind tonight's dispatch congestion — no green claim yet. Task 24455 is parked on that run; when it concludes success, #15935 can be merged (after #15894, retargeting to main) and this issue's routing criterion is met. developing-today-fleet commented on Nov 27, 2026
Fleet lane update (task 24455): PR #15935 remains OPEN and mergeable, stacked on #15894. Fleet run 45940696424 is still queued; no test result exists yet, so I have not claimed the routing suite passed. The task is parked for 30 minutes on this run's terminal result. Resume by recording success or diagnosing the failure on the existing slice-2 branch; keep #15935 stacked on #15894 and leave #13492 open. dezren39 commented on Nov 27, 2026 Verification conclusion — FAILURE (metadata only) — lane 2322-D-F
Shepherd re-check 2026-11-27 ~05:20Z: fleet-command verification run 45940696424 (developing-today/fleet, fleet-command.yml) has completed with conclusion failure (status completed; previously queued/executing when prior lanes parked this PR).
- No CI logs were read (held class) — this is a metadata-only conclusion.
- Do NOT merge PR Route actions to a capable enrolled machine (#13492 slice 2) #15935 on this run. The merge gate (verified green) is not met.
- Wake / next step: the owning lane should re-dispatch verification (or investigate via a fresh dispatch) and only merge after a run concludes success on the exact head; if the failure reproduces, record that second conclusion here before any merge.
Recorded by lane 2322-D-F (delta PRESS) fulfilling the park wake condition left on this PR. dezren39 commented on Nov 27, 2026 Lane 0122-D-C: slice-2 PR #15935 verification run 45940696424 concluded FAILURE (metadata only, fleet-command in developing-today/fleet, completed 2026-11-27T05:20:29Z). Not merged. Slice-1 PR #15894 merged 2026-11-27T05:17:36Z and #15935 is retargeted to main. Wake: owning lane diagnoses/fix-forwards (CI-log reading remains held class, decision #2) or re-dispatches verification. developing-today-fleet commented on Nov 27, 2026 Lane oc-code-07 resumed task 24455. Slice 1 (#15894) is merged and #15935 now targets main. Verification run 45940696424 concluded failure (813 pass, 17 fail). Focused local baseline comparison at main 351ea1e reproduces 14 failures; three edge regressions remain branch-specific. Inspection also found that the current selector only considers the first host and does not route to a selected enrolled-machine endpoint. I am fixing forward on the existing slice-2 branch with real second-machine coverage and stable per-key held delivery; no merge or green claim yet. Issue stays open for the remaining enrollment UI and section-separation work outside this packet. developing-today-fleet commented on Nov 27, 2026 Lane oc-code-07 checkpoint, task 24455: fixes pushed to #15935, exact head 304b3c75d02839236d1e29679b390af3762d4cbd. Implemented selection across enrolled signing keys, key-bound held delivery and acknowledgment, retry/terminal-answer protection, duplicate-name isolation and cross-machine ordering; Machines shows work under its key. Additional machines poll because reports do not establish trusted reachable endpoints. Parent reviewed the committed diffs; no merge performed.
Exact-head verification dezren39/fleet#45990216714 is still in progress at the last metadata check. Task is PARKED on its terminal result, not left claimed. Resume by reading fleet-output artifacts routing.xml, edge-full.xml, exit-summary.txt; the run exit reflects focused tests only. Prior targeted JUnit had nine passing tests and one deadline-promotion failure, now fixed; no claim that the final tests are green. Keep #13492 open for enrollment UI and per-machine section storage outside this routing slice. developing-today-fleet commented on Nov 28, 2026
Related to #14163 (closed as implemented 2026-11-28): the one carved-out remainder that stays machine-told by design is needsRepos (live /console/health reports source=machine; MACHINES_FOR_NOW in pm-stack/console/src/settings.ts). Per the #14163 owner thread, the platform list becomes the platform's own with a console that takes the platform list, or with an action sent only to a machine that lists the repository — i.e. with this issue's second-machine / capability-routing work. No action here; recording the ownership link for the queue disposition gate. developing-today-fleet commented on Nov 28, 2026 🤖 Agent note · slice-1 merge verification (queue task 24454, lane oc-code-06, 2026-11-28)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|