You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements design §4.7 and the client half of §4.4. Traces to spec items 4 and 9. Depends on S3 (#14368). Coordinates with #13907 (the fleet-bridge notes family): the notes kind/reply_to support lands in that family/helper surface, not in a parallel client.
Scope
fleet agent enroll --name <name> --kind <kind> --groups <g,...> --bootstrap <token>: performs the S3 exchange, stores the returned credentials through fleet-secrets by vault name only (bridge.<agent>-fleet-token, bridge.<agent>-token; values never in argv, files, output or logs), records the names in the agent profile, then runs the existing enrollment unchanged (leg probes, profile save, bridge hello under the new credential).
Wake hookup is part of enrollment for Muse seats: write the signal-poll hook definition for the agent's notes identity, following the setup of record in hatch-personal scripts/messages-hook/ (token-free detector; the woken agent fetches with its own token).
On a seat with no prior fleet secrets wiring, enroll --bootstrap with a valid token ends enrolled: profile saved, hello recorded under the agent's own credential, legs probed.
A used/expired/wrong-name bootstrap token fails enrollment with a clear error and stores nothing.
After enrollment, the agent's notes inbox opens with its own token and its wake hook exists and polls the right identity path.
An agent can reply to an instruction note via reply_to without the reply flow exposing the original sender to it.
No credential value appears in the profile file, command output, or logs (asserted in tests).
Design of record: doc/2026-11-24_design_message-bridge-buildout.md (PR #14364). Spec numbers below refer to §1 of that doc; design detail is in the section cited per issue.
Filed by Felix's design lane, 2026-11-24. Not enqueued in this pass, per the filing-comment rule: Felix dispatches lanes from the slice index (design doc §7, also posted on #13907).
One hardening observation from Felix's review of the S3 diff, for this slice's enroll work: a per-agent credential's hello is name-checked, but the groups in the hello body are caller-supplied — so a credentialed agent can re-register its own name into arbitrary groups after exchange bound its mint-time groups. It cannot touch other agents, so it is minor, but group membership drives group:<name> addressing. When S4 wires enroll --bootstrap, either pin hello groups for credentialed callers to the exchange-bound groups, or record on #14368's follow-up why self-assigned groups are acceptable.
Claimed by worker felix (Felix's lane) for slice S4 implementation, 2026-11-24. Branch: felix/14370-enroll-bootstrap. S3 (PR #14407) is merged; building on its exchange contract.
Verification record for PR #14416 (worker felix), all remote on GitHub-hosted runners via the fleet-command workflow, at branch head b14681f:
Worker suite — run 45415137051, nix build --impure .#messageBridge (checkPhase = node --test test/*.test.mjs): 80 tests, 79 pass, 0 fail (1 pre-existing skip). New tests cover the §4.4 rules end to end: an instruction lands in the inbox sender-free (from: null), a plain note keeps its sender, a reply via reply_to reaches the hidden original sender and never carries the sender in the payload, and a reply naming a note outside the replier's inbox is refused. The group-pinning test for Felix's credentialed-hello note also passes ("a credentialed hello cannot move its agent into new groups"); the pinning decision is recorded on Bridge build-out S3 — per-agent fleet credentials + bootstrap enroll tokens (worker) #14368.
fleet-bridge — run 45420395652: 22 passed, 0 failed. The exchange test asserts both credentials land in the vault under bridge.<agent>-fleet-token / bridge.<agent>-token and that no credential value (or the bootstrap token) appears in the verb's output; the refusal test asserts a 404 exchange stores nothing and its error never carries the token. The notes test asserts kind/reply_to payloads and Bearer auth with the identity's own token on send/inbox/ack.
fleet-agent — run 45427254962: 97 passed, 0 failed, 1 filtered out. The filtered test is pre-existing and unrelated (a_background_cargo_build_holds_its_target_lease_until_exit hangs in the executor environment; filed as fleet-agent test a_background_cargo_build_holds_its_target_lease_until_exit hangs in the fleet-command executor #14446). The bootstrap test asserts exchange-before-probe ordering, mint-bound groups adopted, the profile carrying credential names and no values, and the wake-hook detector + definition written for the notes identity; refusal tests assert a refused exchange enrols nothing and --bootstrap refuses --dry-run/non-binary seats.
fleet-config + fleet-secrets — run 45427239742: 51 + 46 passed, 0 failed, including the BwsStore write-path tests (house argv shape, replace-on-rotate, errors never carry the value, project id from env then config).
Acceptance check: bootstrap enrolment ends enrolled with hello under the agent's own credential and legs probed (ordering + profile asserted in the fleet-agent suite); a used/expired/wrong-name bootstrap token fails clearly and stores nothing (fleet-bridge + fleet-agent refusal tests); post-enrolment the notes inbox opens with the agent's own token and the wake hook polls the right identity (fleet-bridge notes tests + hook assertions); replies to instructions never expose the original sender (worker suite); no credential value appears in the profile, verb output, or logs (asserted in tests; fixtures are obviously fake). New dependencies: none.
Notes for follow-up: #13907 keeps notes get/watch (send/inbox/ack landed here, recorded on that issue). Verification is test-suite level; a live-seat smoke of enroll --bootstrap against the deployed worker was not performed. PR #14416 is left unmerged for Felix's review and carries "Closes #14370".
Activity
developing-today commentedon Nov 24, 2026
CODE-5300
developing-today-fleet commentedon Nov 24, 2026
S3 dependency landed: PR #14407 merged (per-agent credentials + bootstrap enroll tokens, worker suite 78/78).
One hardening observation from Felix's review of the S3 diff, for this slice's enroll work: a per-agent credential's
hellois name-checked, but the groups in the hello body are caller-supplied — so a credentialed agent can re-register its own name into arbitrary groups after exchange bound its mint-time groups. It cannot touch other agents, so it is minor, but group membership drivesgroup:<name>addressing. When S4 wiresenroll --bootstrap, either pin hello groups for credentialed callers to the exchange-bound groups, or record on #14368's follow-up why self-assigned groups are acceptable.developing-today-fleet commentedon Nov 24, 2026
Claimed by worker felix (Felix's lane) for slice S4 implementation, 2026-11-24. Branch: felix/14370-enroll-bootstrap. S3 (PR #14407) is merged; building on its exchange contract.
fleet-bridge: generic-typestate header helper for bearer calls (#14370)
developing-today-fleet commentedon Nov 24, 2026
Verification record for PR #14416 (worker felix), all remote on GitHub-hosted runners via the fleet-command workflow, at branch head b14681f:
nix build --impure .#messageBridge(checkPhase =node --test test/*.test.mjs): 80 tests, 79 pass, 0 fail (1 pre-existing skip). New tests cover the §4.4 rules end to end: an instruction lands in the inbox sender-free (from: null), a plain note keeps its sender, a reply viareply_toreaches the hidden original sender and never carries the sender in the payload, and a reply naming a note outside the replier's inbox is refused. The group-pinning test for Felix's credentialed-hello note also passes ("a credentialed hello cannot move its agent into new groups"); the pinning decision is recorded on Bridge build-out S3 — per-agent fleet credentials + bootstrap enroll tokens (worker) #14368.bridge.<agent>-fleet-token/bridge.<agent>-tokenand that no credential value (or the bootstrap token) appears in the verb's output; the refusal test asserts a 404 exchange stores nothing and its error never carries the token. The notes test asserts kind/reply_to payloads and Bearer auth with the identity's own token on send/inbox/ack.a_background_cargo_build_holds_its_target_lease_until_exithangs in the executor environment; filed as fleet-agent test a_background_cargo_build_holds_its_target_lease_until_exit hangs in the fleet-command executor #14446). The bootstrap test asserts exchange-before-probe ordering, mint-bound groups adopted, the profile carrying credential names and no values, and the wake-hook detector + definition written for the notes identity; refusal tests assert a refused exchange enrols nothing and--bootstraprefuses--dry-run/non-binary seats.Acceptance check: bootstrap enrolment ends enrolled with hello under the agent's own credential and legs probed (ordering + profile asserted in the fleet-agent suite); a used/expired/wrong-name bootstrap token fails clearly and stores nothing (fleet-bridge + fleet-agent refusal tests); post-enrolment the notes inbox opens with the agent's own token and the wake hook polls the right identity (fleet-bridge notes tests + hook assertions); replies to instructions never expose the original sender (worker suite); no credential value appears in the profile, verb output, or logs (asserted in tests; fixtures are obviously fake). New dependencies: none.
Notes for follow-up: #13907 keeps
notes get/watch(send/inbox/ack landed here, recorded on that issue). Verification is test-suite level; a live-seat smoke ofenroll --bootstrapagainst the deployed worker was not performed. PR #14416 is left unmerged for Felix's review and carries "Closes #14370".message-bridge: notes send — broaden branch precedes reply branch (me…
message-bridge: wire noteOrigin through storeFor so DO note replies r…
Merge pull request #14416 from developing-today/felix/14370-enroll-bo…