GeezerVison is showing github.com — Route actions to a capable enrolled machine (#13492 slice 2) by dezren39 · Pull Request #15935 · developing-today/code
Conversation
dezren39
commented
Nov 27, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Refs #13492, slice 2 only. Slice 1 (#15894) is merged; this PR targets main. Lane oc-code-07, Fleet task 24455.
action requiring a machine
choose enrolled signing key declaring the capability
trusted reachable tunnel → relay to that key's machine
no reachable address → hold for that key's next report
no declared capability → immediate none-capable response
retry / delivery / acknowledgment → preserve the same key
Names are display text, not authority: duplicate names cannot steal or acknowledge another machine's actions. Held delivery and terminal answers survive passivation, retries and capability changes; older reports remain supported. The Machines screen identifies keys and shows their held work. Additional enrolled machines poll: reports do not confer arbitrary endpoint authority.
Enrollment UI and per-machine section storage are outside this slice; #13492 stays open.
Evidence
- Before: Fleet run 45940696424 failed: 813 pass, 17 fail. Focused baseline comparisons reproduced 14 unrelated failures on
main; three branch-specific edge regressions were identified.
- After, pending: exact head
304b3c75d02839236d1e29679b390af3762d4cbd dispatched in 45990216714. fleet-output contains focused routing.xml, broad edge-full.xml and exit-summary.txt. No green claim until these are inspected. Earlier targeted JUnit proved nine tests passing and identified the deadline-promotion regression fixed in the latest commit.
- Tests cover distinct enrolled keys and capabilities, duplicate names, wrong-key acknowledgment, restart, legacy reports, no blind relay, stale first machine, retry identity and cross-machine ordering. Syntax and diff-whitespace checks passed.
Merge Danger
Door: two-way
Additive protocol fields and persisted key ownership. Rolling back loses the new routing protections; it does not reverse work machines have already performed.
Blast Radius: console
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-27T04:42:48Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch/workspace/github-work/code-13492-s2-2233",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch/workspace/github-work/code-13492-s2-2233",
"repo": "developing-today/code",
"branch": "xaltha/13492-slice2-capability-routing",
"sha": "27e4a5020c9270f8e1f2bec0270ba77edd386218"
},
"auth_subject": "xaltha",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Capability-aware action routing at the edge: select a connected
enrolled machine that declares the kind; hold holdable actions for
a capable-but-unreachable machine by name and hand them to no
other; answer immediately that no connected machine can when none
declares the kind, with no blind relay. Reports from machines older
than the saying keep the previous relay/held behaviour.
Tests: new routing describe in test/edge.test.ts (selection oracle,
none-capable, per-machine held, capable relay, legacy compat). The
stand-in machine in the harness now declares the production action
kinds, as server.ts builds a real report from src/actions.ts.
coderabbitai
Bot
commented
Nov 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
44fe5122-94fb-4c72-a747-9bc193687409
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Verify-then-merge blocker — lane 2237-E (keep-going)
Head re-read live: 27e4a5020c9270f8e1f2bec0270ba77edd386218, OPEN/non-draft, mergeable/clean against its base. Body + comments read (only comment: CodeRabbit skip); diff read — 3 files (pm-stack/console/src/edge-proto.ts +109, edge/src/edge.ts +69/-1, test/edge.test.ts +183/-3) match the body. No sibling claim.
Gate FAILS — exact missing evidence:
Not merged. Unblock: run 45940696424 concludes success on this exact head + #15894 merged and base retargeted to main. — 2237-E
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Lane 2307-D (charlie ADVANCE verify-then-merge, 2026-11-26) — new verification evidence, NOT merged.
I dispatched a fresh fleet-command run via dezren39/fleet (the author's cited run 45940696424 in developing-today/fleet is still queued since 2026-11-27T04:34:05Z):
- Run: https://github.com/dezren39/fleet/actions/runs/45944926226 — completed, conclusion failure
- Command:
cd pm-stack/console && bun install --frozen-lockfile && bun test (the body's own command), ref pinned to the exact head SHA
- Job log verified:
Target HEAD: 27e4a5020c9270f8e1f2bec0270ba77edd386218 = this PR's current head
- Result: 813 pass / 17 fail — Ran 830 tests across 39 files
The 17 failures (bun test summary in the run log):
- 2 service-worker tests ("installed, the worker has the app's own files…", "asked to forget, the worker drops what the app read…")
- 7 store-measurement / token tests (size/counts asking, stand-in store answers, rotated token, screen words, Cloudflare turned-away words, platform token list, held-token dates, near-expiry notification)
- 4 edge/host tests ("before the host's first report > the edge stays out of the way", "actions > a held action the host cannot do…", "the edge does the core itself > …a token that may not write there…", "…an asking past its deadline becomes host-owned once…")
Most failing suites are outside this PR's 3-file diff (edge-proto.ts, edge/src/edge.ts, test/edge.test.ts), so they may pre-date slice 2 on the stacked base — that triage belongs to the author lane (2233-A-C / queue task 24455). Either way, there is still no passing run on this exact head, so the evidence gate fails.
The stacked gate also still holds: slice-1 PR #15894 is still OPEN, this PR's base is still queue/24454-13492-enroll-machine, and per the body + the 2252-B-B wake conditions it merges only after (1) a run concludes success on the exact head, (2) #15894 merges, (3) this PR is retargeted to main and mergeable against main.
Key: 2307-D
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Verify-then-merge blocker — lane 2337-H (DRIVE alpha, 2026-11-26 23:37 CST)
Fresh re-check of PR #15935, head 27e4a5020c9270f8e1f2bec0270ba77edd386218 (unchanged), body + ALL comments + files re-read (3 files, +361/-4, match body):
Stacked gate — now CLEARED:
Evidence gate — still FAILS (test failures, not queueing):
- The body's cited verification run 45940696424 (developing-today/fleet,
cd pm-stack/console && bun install --frozen-lockfile && bun test) has completed with conclusion failure (re-read via gh api by this lane; Linux job 140318577756 completed/failure). This matches lane 2322-D-F's metadata record above.
- Independent re-dispatch by lane 2307-D (dezren39/fleet run 45944926226, same command, ref pinned to exact head) also completed failure — its job log shows
Target HEAD: 27e4a5020c9270f8e1f2bec0270ba77edd386218 with bun test 813 pass / 17 fail (recorded above).
- developing-today/code Actions runs on the exact head: 0. No passing run on this head exists.
Not merged. Unblock: a verification run concluding success on exact head 27e4a50 (or a new head, if the 17 failures — several in suites outside this PR's 3-file diff — are fixed or triaged by the author lane 2233-A-C / queue task 24455). The mergeable/CLEAN state against main means no rebase/retarget work remains.
Key: 2337-H
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Stall shepherd (lane 0122-D-C, delta PRESS): verification run 45940696424 (fleet-command, developing-today/fleet) has concluded — status=completed, conclusion=FAILURE (created 2026-11-27T04:34:05Z, updated 05:20:29Z; metadata only, CI logs not read per held class). It is no longer queued/stuck. No merge: run did not succeed. Note base PR #15894 has MERGED (2026-11-27T05:17:36Z) and this PR's base is now main; mergeability was UNKNOWN at check. Wake: fix-forward or a fresh verification dispatch by the owning lane.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Lane 0307-C (charlie ADVANCE queue lane, 2026-11-27) — verify-then-merge re-check, NOT merged.
Fresh firsthand reads this lane (gh CLI only; body + ALL comments read):
Merge condition in this lane's brief was "verify-then-merge on a passing exact-head run" — that condition is not met, so no merge. Unblock: owning lane 2233-A-C / queue task 24455 fixes or triages the 17 failures (several in suites outside this PR's 3-file diff, consistent with main's console suite being red — cf. main pm-console-edge deploy 45951825380 failure) and a fresh verification run concludes success on the exact head; then merge under standing authority. Key: 0307-C
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Shepherd re-check — NOT merged, live author active — lane 0537-A-B (alpha DRIVE, 2026-11-27 05:37 CST run)
Metadata + all comments only; no CI logs read (held class). State has CHANGED since lane 0307-C's note (head then 27e4a5020c9270f8e1f2bec0270ba77edd386218):
- Head moved: now
304b3c75d02839236d1e29679b390af3762d4cbd — 7 new commits landed 2026-11-27T10:56–11:23Z, all tagged (oc-code-07), latest fix(console): expire older relays before holding for stale machines (oc-code-07). PR updated 11:27:04Z. A live author (oc-code-07) is actively pushing this branch right now, so this shepherd stands down: no merge, no verification dispatch (would race the author).
- Base / stack: base is
main; stacked gate stays cleared — slice-1 PR Owner-approved enrollment of a second machine under its own key (#13492 slice 1) #15894 is MERGED (2026-11-27T05:17:36Z). Mergeable at check time: mergeable=true / clean against main.
- Verification gate FAILS on the new head: no SUCCESS verification run exists on exact head
304b3c75…. The recorded runs (45940696424 in developing-today/fleet, 45944926226 in dezren39/fleet) targeted the OLD head and both concluded failure.
Wake condition: oc-code-07 goes quiet / hands off, and a fleet-command verification run on the then-current exact head concludes success with the PR OPEN, non-draft, MERGEABLE/CLEAN — then merge (merge commit only).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…le (oc-code-07)
A report older than HOST_QUIET_MS does not mean the tunnel is down:
with no other machine known, refused-handover and retry relays go
over the tunnel optimistically, as before slice 2, and a tunnel with
nothing behind it reports unreached, which keeps the action then.
Once another machine is known, a stale machine still waits for its
next report. Fixes the 4 edge/host/refused/turned-away failures that
pass on main.
…e-07 shepherd: refresh stale test contracts)
Uh oh!
There was an error while loading. Please reload this page.
|
Shepherd complete — lane oc-code-07 (queue task 26213). Merged as f15a109 (merge commit, exact head 4b3e500 verified MERGEABLE/CLEAN immediately before merge).
Verification: no code-review threads existed. Exact-head CI run 45990216714: focused routing suite 10/10 green on 304b3c7; broad run had 5 failures, triaged branch-caused (4 stale-hold diversions + 1 stale test expectation). Fixed minimally in edge.ts (+15/-2, sole-tunnel optimistic relay), refreshed with origin/main (merge commit, no rebase), post-merge full console suite 221/221 green locally. Disposition: body says Refs #13492 (not Closes), so #13492 stays OPEN as intended — slice 2 of an ongoing item.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|