Fleet dispatcher slice 4: the dispatcher live, one host then fleet-wide (ADR 0009) #357

Open
opened 2026-11-18 20:09:57 +00:00 by matou-build-agent · 16 comments

Slice 4 of the fleet dispatcher (ADR 0009 (docs/adr/0009-one-dispatcher-allocates-picks-to-slots.md), #353). Blocked on slice 3 (ack + stand-down).

Dispatcher live (ruling 6's second and third stages, each a Ben go — a one-way door, so STOP and route to a human for the go at each):

  1. live on one host's slots (the other hosts stay on their ticks);
  2. fleet-wide.

An assignment is an offer: the dispatched leg still takes the host capacity flock and stands down if it cannot (decision 3 — slot truth stays on the host). Reversible at any point by stopping the dispatcher; the slice-3 fallback returns the fleet to the ADR 0007 host ticks within one heartbeat window.

Acceptance: N hosts idle + N tickets ready → N runs within one pass, one per host, no duplicate dispatch; stopping the dispatcher resumes the host ticks within one heartbeat window.

Ruled by ADR 0009 / #353.

Slice 4 of the fleet dispatcher (ADR 0009 (`docs/adr/0009-one-dispatcher-allocates-picks-to-slots.md`), #353). **Blocked on slice 3 (ack + stand-down).** **Dispatcher live** (ruling 6's second and third stages, each a Ben go — a one-way door, so STOP and route to a human for the go at each): 1. live on **one host's** slots (the other hosts stay on their ticks); 2. **fleet-wide**. An assignment is an offer: the dispatched leg still takes the host capacity flock and stands down if it cannot (decision 3 — slot truth stays on the host). Reversible at any point by stopping the dispatcher; the slice-3 fallback returns the fleet to the ADR 0007 host ticks within one heartbeat window. Acceptance: N hosts idle + N tickets ready → N runs within one pass, one per host, no duplicate dispatch; stopping the dispatcher resumes the host ticks within one heartbeat window. Ruled by ADR 0009 / #353.
Author
Member

This was generated by AI during triage.

Ruling: ready-for-human (category already enhancement).

Slice 4 takes the dispatcher live — stage (b) live on one host's slots, then stage (c) live fleet-wide. The implementing code (flip the shadow dispatcher to actually dispatch, behind the ruling-C seam) is ordinary session work, but the activation of each stage is not a call I may make: ADR 0009 ruling 6 and this ticket's own body both reserve each live stage as "a Ben go", ruled by Ben in session on 2026-11-18.

## Why human: the human residue is Ben's go for each of the two live-cutover stages (one host, then fleet-wide). Under ADR 0174 I rule two-way doors myself, but I do not override a decision the deciding human has explicitly reserved for himself in a standing ADR — the residue here is the authorization, not a technical one-way door (the ADR notes the live dispatcher is reversible within one heartbeat window via the slice-3 fallback). Everything else — the code, the start-a-run seam, the per-host-flock offer semantics, the fallback — is specified and ready; the ticket STOPs at each go. Native dependency on #356 already recorded.

> *This was generated by AI during triage.* **Ruling:** `ready-for-human` (category already `enhancement`). Slice 4 takes the dispatcher **live** — stage (b) live on one host's slots, then stage (c) live fleet-wide. The implementing code (flip the shadow dispatcher to actually dispatch, behind the ruling-C seam) is ordinary session work, but the **activation** of each stage is not a call I may make: ADR 0009 ruling 6 and this ticket's own body both reserve each live stage as "a Ben go", ruled by Ben in session on 2026-11-18. **## Why human:** the human residue is Ben's go for each of the two live-cutover stages (one host, then fleet-wide). Under ADR 0174 I rule two-way doors myself, but I do not override a decision the deciding human has explicitly reserved for himself in a standing ADR — the residue here is the *authorization*, not a technical one-way door (the ADR notes the live dispatcher is reversible within one heartbeat window via the slice-3 fallback). Everything else — the code, the `start-a-run` seam, the per-host-flock offer semantics, the fallback — is specified and ready; the ticket STOPs at each go. Native dependency on #356 already recorded.
Owner

Go for stage 1 — Ben, in session. Once slice 3 (#356) has landed, the dispatcher may go live on one host's slots; the other hosts stay on their own ticks.

Stage 2 (fleet-wide) is not authorised. After stage 1 is live and its acceptance is shown on this ticket, STOP and route back to ready-for-human for that go. This go does not carry over.

Ben did not name the host for stage 1; the building session picks it and says which and why here before switching it on.

Relabelled ready-for-human → ready-for-session so the session lane can take it when #356 closes (the dependency still holds it until then).

**Go for stage 1 — Ben, in session.** Once slice 3 (#356) has landed, the dispatcher may go **live on one host's slots**; the other hosts stay on their own ticks. **Stage 2 (fleet-wide) is not authorised.** After stage 1 is live and its acceptance is shown on this ticket, STOP and route back to `ready-for-human` for that go. This go does not carry over. Ben did not name the host for stage 1; the building session picks it and says which and why here before switching it on. Relabelled `ready-for-human` → `ready-for-session` so the session lane can take it when #356 closes (the dependency still holds it until then).
Owner

Host for stage 1: matou-workstation — Ben, in session, 2026-11-19. This replaces "the building session picks it" in the go above. The dispatcher goes live on matou-workstation's slots only; elitebook-03 and bens-mac-04 stay on their own ticks.

Two things to state on this ticket before switching it on, since this is also the dispatcher's own host (ruling B):

  • its free disk at the time, and that ~/swarm/host-registry.conf there still declares no min-free-gb (#340's closing note) — report it, do not set it; the floor is Ben's call;
  • that the shadow dispatcher from #355 is actually running there and receiving slot reports.

The stop after stage 1 is unchanged: fleet-wide needs its own go.

**Host for stage 1: `matou-workstation` — Ben, in session, 2026-11-19.** This replaces "the building session picks it" in the go above. The dispatcher goes live on `matou-workstation`'s slots only; `elitebook-03` and `bens-mac-04` stay on their own ticks. Two things to state on this ticket before switching it on, since this is also the dispatcher's own host (ruling B): - its free disk at the time, and that `~/swarm/host-registry.conf` there still declares no `min-free-gb` (#340's closing note) — report it, do not set it; the floor is Ben's call; - that the shadow dispatcher from #355 is actually running there and receiving slot reports. The stop after stage 1 is unchanged: fleet-wide needs its own go.
Author
Member

Ruled by agent under ADR 0174 — veto anytime. Standing session, 2026-11-19. This advances #357 in two parts: a two-way-door code landing (done), and the stage-1 activation, which this attempt could not perform — reported honestly below (ADR 0174 rule 8). Left ready-for-session for the session lane to re-attempt from the right host.

What landed on main (two-way door, reversible, proven) — 049582c

The slice-4 implementing code: per-host live-dispatch scoping, so the dispatcher can be live on one host's slots (decision 6b) then fleet-wide (6c) as reversible config flips.

  • FLEET_DISPATCH_LIVE_HOSTS (default empty) scopes, when the dispatcher is live, which hosts it dispatches to for real and acks acting (stands their tick down). Empty = fleet-wide (6c); a host list = live on those hosts only (6b). fleet_dispatch_host_mode decides the start-a-run mode per placed pick, and the receiver's ack is now per host (parsed off the report body), so one host stands down while the others keep ticking.
  • Why an allowlist and not the runbook's old "point only one host's URL" (report-scoping): under a live dispatcher, scoping by who reports hides the still-ticking hosts' running work from landing detection (slice 5), which then files false priority working-no-run tickets for elitebook-03/bens-mac-04's own runs. The allowlist keeps every host reporting (full fleet view, detection correct) and scopes only the dispatch. Default-off + shadow = zero behaviour change until a human activates.
  • Proof (TDD, red before green, same commit): fleet-dispatch-lib-test (44, +11), -receiver-test (17, +6, per-host ack), -ack-contract-test (6, +2, both-ends stage-6b stand-down), -dispatch-test (23, +7, scoped-live dispatches only the in-scope host, fleet-wide dispatches all). Full offline suite green. Runbook docs/deploy/fleet-dispatcher.md, STATUS #353 row, journal docs/journal/2026-11-19-357-live-scoping.md updated in the same commit.

What this attempt could NOT do — the stage-1 activation (the blocker)

Ben's go (2026-11-19) names matou-workstation as the host to go live on, and asks the building session — before switching it on — to state its free disk, that its host-registry.conf declares no min-free-gb (report, do not set), and that the #355 shadow dispatcher is actually running there and receiving reports.

This session ran on bens-mac-04, not matou-workstation. bens-mac-04 holds no SSH door to matou-workstation (swarm@matou-workstation.netbird.selfhosted → Permission denied (publickey)) and itself declares no FLEET_DISPATCHER_URL. So I could not:

  • read matou-workstation's disk / registry min-free-gb (its facts, not bens-mac-04's);
  • verify the #355 dispatcher is running there or receiving slot reports;
  • flip it live on matou-workstation's slots.

The activation is intrinsically a matou-workstation operation (the dispatcher's own host, ruling B). It also needs the new FLEET_DISPATCH_LIVE_HOSTS code to reach the running copy — a FACTORY_REF bump + self-pin, pull-only (ADR 0001).

Next session (run it on matou-workstation)

  1. Confirm the #355 shadow dispatcher service is running there and its inbox/reports spool is being fed (decision 6's first go — each pool host's FLEET_DISPATCHER_URL pointing at the receiver — appears not yet done: bens-mac-04 sets none; verify the others).
  2. Report on this ticket: matou-workstation's free disk, and that its registry declares no min-free-gb (#340 closed at 60%; the floor is Ben's call).
  3. Ensure the dispatcher's running copy carries 049582c (pin bump), then set FLEET_DISPATCH_MODE=live + FLEET_DISPATCH_LIVE_HOSTS=matou-workstation; show the acceptance (matou-workstation's free slots fill from the dispatcher; elitebook-03/bens-mac-04 keep their ticks; no duplicate dispatch).
  4. Then STOP and route to ready-for-human for the fleet-wide (6c) go — it does not carry over.

Advances #357. Leaving ready-for-session.

**Ruled by agent under ADR 0174 — veto anytime.** Standing session, 2026-11-19. This advances #357 in two parts: a two-way-door code landing (done), and the stage-1 **activation**, which this attempt **could not perform** — reported honestly below (ADR 0174 rule 8). Left `ready-for-session` for the session lane to re-attempt from the right host. ## What landed on `main` (two-way door, reversible, proven) — `049582c` The slice-4 implementing code: **per-host live-dispatch scoping**, so the dispatcher can be live on one host's slots (decision 6b) then fleet-wide (6c) as reversible config flips. - `FLEET_DISPATCH_LIVE_HOSTS` (default empty) scopes, when the dispatcher is `live`, which hosts it dispatches to for real and acks `acting` (stands their tick down). Empty = fleet-wide (6c); a host list = live on those hosts only (6b). `fleet_dispatch_host_mode` decides the start-a-run mode **per placed pick**, and the receiver's ack is now **per host** (parsed off the report body), so one host stands down while the others keep ticking. - **Why an allowlist and not the runbook's old "point only one host's URL" (report-scoping):** under a *live* dispatcher, scoping by who *reports* hides the still-ticking hosts' running work from landing detection (slice 5), which then files **false `priority` `working-no-run` tickets** for `elitebook-03`/`bens-mac-04`'s own runs. The allowlist keeps **every host reporting** (full fleet view, detection correct) and scopes only the *dispatch*. Default-off + `shadow` = zero behaviour change until a human activates. - Proof (TDD, red before green, same commit): `fleet-dispatch-lib-test` (44, +11), `-receiver-test` (17, +6, per-host ack), `-ack-contract-test` (6, +2, both-ends stage-6b stand-down), `-dispatch-test` (23, +7, scoped-live dispatches only the in-scope host, fleet-wide dispatches all). Full offline suite green. Runbook `docs/deploy/fleet-dispatcher.md`, STATUS #353 row, journal `docs/journal/2026-11-19-357-live-scoping.md` updated in the same commit. ## What this attempt could NOT do — the stage-1 activation (the blocker) Ben's go (2026-11-19) names **`matou-workstation`** as the host to go live on, and asks the building session — before switching it on — to state its free disk, that its `host-registry.conf` declares no `min-free-gb` (report, do not set), and that the #355 shadow dispatcher is actually running there and receiving reports. **This session ran on `bens-mac-04`, not `matou-workstation`.** `bens-mac-04` holds **no SSH door to `matou-workstation`** (`swarm@matou-workstation.netbird.selfhosted` → `Permission denied (publickey)`) and itself declares no `FLEET_DISPATCHER_URL`. So I could **not**: - read matou-workstation's disk / registry `min-free-gb` (its facts, not bens-mac-04's); - verify the #355 dispatcher is running there or receiving slot reports; - flip it live on matou-workstation's slots. The activation is intrinsically a **matou-workstation** operation (the dispatcher's own host, ruling B). It also needs the new `FLEET_DISPATCH_LIVE_HOSTS` code to reach the running copy — a `FACTORY_REF` bump + self-pin, pull-only (ADR 0001). ## Next session (run it on `matou-workstation`) 1. Confirm the #355 shadow dispatcher service is running there and its inbox/reports spool is being fed (decision 6's **first go** — each pool host's `FLEET_DISPATCHER_URL` pointing at the receiver — appears **not yet done**: bens-mac-04 sets none; verify the others). 2. Report on this ticket: matou-workstation's free disk, and that its registry declares no `min-free-gb` (#340 closed at 60%; the floor is Ben's call). 3. Ensure the dispatcher's running copy carries `049582c` (pin bump), then set `FLEET_DISPATCH_MODE=live` + `FLEET_DISPATCH_LIVE_HOSTS=matou-workstation`; show the acceptance (matou-workstation's free slots fill from the dispatcher; elitebook-03/bens-mac-04 keep their ticks; no duplicate dispatch). 4. Then STOP and route to `ready-for-human` for the fleet-wide (6c) go — it does not carry over. Advances #357. Leaving `ready-for-session`.
Author
Member

Ruled by agent under ADR 0174 — veto anytime. Standing session on elitebook-03, 2026-11-19. This attempt could not perform the stage-1 activation and routes it to a human honestly (ADR 0174 rule 8). No code change this run (slice-4 code already landed 049582c; nothing two-way-door remained that advances the activation).

Why human

The stage-1 go is given (Ben named matou-workstation, comment 74347), but the activation cannot be done by this session for three reasons, each a human/one-way residue:

  1. Host placement — the activation must run ON matou-workstation (ruling B, the dispatcher's own host); the session lane has now misrouted it twice. The prior attempt ran on bens-mac-04 (comment 74384); this one drained on elitebook-03. Neither holds an inbound SSH door into matou-workstation: from here ssh swarm@matou-workstation.netbird.selfhosted → Permission denied (publickey) (the box is a Connected mesh peer, 100.98.216.186, P2P — reachable, but not SSH-authorised from the pool). So no other-host session can gather the three facts Ben asked for (free disk, host-registry.conf min-free-gb, shadow dispatcher running + receiving reports), nor flip the switch. This needs a matou-workstation-pinned session or a human on that box — the standing lane cannot reliably place it there.

  2. The slice-4 code is not in matou-workstation's running .sandcastle copy. FLEET_DISPATCH_LIVE_HOSTS (the allowlist that makes 6b correct) landed 049582c, but the self-consumer's FACTORY_REF is de5ebb8 (re-vendored 2026-11-04), well before the dispatcher slices (2026-11-18/19). Activating with the allowlist needs a self-pin bump — a human pin bump (bash onboarding/onboard.sh vendor .sandcastle <sha>, CLAUDE.md / GOTCHAS 4; also owed for #351). Without it, 6b can only be done by report-scoping, which breaks landing detection under a live dispatcher (false working-no-run priority tickets for the still-ticking hosts — the exact trap slice 4 was built to avoid).

  3. Decision 6's FIRST go is still owed: point each pool host's FLEET_DISPATCHER_URL at the dispatcher's receiver (Ben go + cross-host config on hosts this session cannot reach). This is the prerequisite to a correct 6b allowlist activation — all hosts must report so the dispatcher keeps its full fleet view (docs/deploy/fleet-dispatcher.md, "Two staged gos").

The remaining steps (for the human / a matou-workstation session), in order

  1. Point each pool host's FLEET_DISPATCHER_URL at the dispatcher's receiver (decision 6 first go).
  2. Self-pin bump: re-vendor the factory's own .sandcastle to a main ref that includes 049582c (onboarding/onboard.sh vendor .sandcastle <sha>), so the running copy carries FLEET_DISPATCH_LIVE_HOSTS.
  3. On matou-workstation, state on this ticket: its free disk; that ~/swarm/host-registry.conf there still declares no min-free-gb (report, do not set — Ben's call, #340); and that the #355 shadow dispatcher is running and receiving slot reports.
  4. Flip it live, scoped: FLEET_DISPATCH_MODE=live + FLEET_DISPATCH_LIVE_HOSTS=matou-workstation (reversible by shrinking the allowlist or FLEET_DISPATCH_MODE=shadow).
  5. Show stage-1 acceptance here, then STOP — the fleet-wide (6c) go is a separate Ben go (comments 74017/74302), unchanged.

Relabelling ready-for-session → ready-for-human: the gate is human, not a transient misroute, and this is the second session attempt to miss the right host (ADR 0174 rule 8's two-attempt escalation). Runbook: docs/deploy/fleet-dispatcher.md. Scope of this ticket is unchanged; the fleet-wide stage stays Ben's.

**Ruled by agent under ADR 0174 — veto anytime.** Standing session on `elitebook-03`, 2026-11-19. This attempt **could not perform the stage-1 activation** and routes it to a human honestly (ADR 0174 rule 8). No code change this run (slice-4 code already landed `049582c`; nothing two-way-door remained that advances the *activation*). ## Why human The stage-1 go is given (Ben named `matou-workstation`, comment 74347), but the activation cannot be done by this session for three reasons, each a human/one-way residue: 1. **Host placement — the activation must run ON `matou-workstation` (ruling B, the dispatcher's own host); the session lane has now misrouted it twice.** The prior attempt ran on `bens-mac-04` (comment 74384); this one drained on `elitebook-03`. Neither holds an inbound SSH door into `matou-workstation`: from here `ssh swarm@matou-workstation.netbird.selfhosted` → `Permission denied (publickey)` (the box is a Connected mesh peer, `100.98.216.186`, P2P — reachable, but not SSH-authorised from the pool). So no other-host session can gather the three facts Ben asked for (free disk, `host-registry.conf` `min-free-gb`, shadow dispatcher running + receiving reports), nor flip the switch. This needs a **`matou-workstation`-pinned session** or a human on that box — the standing lane cannot reliably place it there. 2. **The slice-4 code is not in `matou-workstation`'s running `.sandcastle` copy.** `FLEET_DISPATCH_LIVE_HOSTS` (the allowlist that makes 6b correct) landed `049582c`, but the self-consumer's `FACTORY_REF` is `de5ebb8` (re-vendored 2026-11-04), well before the dispatcher slices (2026-11-18/19). Activating with the allowlist needs a **self-pin bump** — a human pin bump (`bash onboarding/onboard.sh vendor .sandcastle <sha>`, CLAUDE.md / GOTCHAS 4; also owed for #351). Without it, 6b can only be done by report-scoping, which breaks landing detection under a live dispatcher (false `working-no-run` `priority` tickets for the still-ticking hosts — the exact trap slice 4 was built to avoid). 3. **Decision 6's FIRST go is still owed:** point **each** pool host's `FLEET_DISPATCHER_URL` at the dispatcher's receiver (Ben go + cross-host config on hosts this session cannot reach). This is the prerequisite to a correct 6b allowlist activation — all hosts must report so the dispatcher keeps its full fleet view (`docs/deploy/fleet-dispatcher.md`, "Two staged gos"). ## The remaining steps (for the human / a matou-workstation session), in order 1. Point each pool host's `FLEET_DISPATCHER_URL` at the dispatcher's receiver (decision 6 first go). 2. Self-pin bump: re-vendor the factory's own `.sandcastle` to a `main` ref that includes `049582c` (`onboarding/onboard.sh vendor .sandcastle <sha>`), so the running copy carries `FLEET_DISPATCH_LIVE_HOSTS`. 3. On `matou-workstation`, state on this ticket: its free disk; that `~/swarm/host-registry.conf` there still declares no `min-free-gb` (report, do not set — Ben's call, #340); and that the #355 shadow dispatcher is running and receiving slot reports. 4. Flip it live, scoped: `FLEET_DISPATCH_MODE=live` + `FLEET_DISPATCH_LIVE_HOSTS=matou-workstation` (reversible by shrinking the allowlist or `FLEET_DISPATCH_MODE=shadow`). 5. Show stage-1 acceptance here, then STOP — the fleet-wide (6c) go is a separate Ben go (comments 74017/74302), unchanged. Relabelling `ready-for-session` → `ready-for-human`: the gate is human, not a transient misroute, and this is the second session attempt to miss the right host (ADR 0174 rule 8's two-attempt escalation). Runbook: `docs/deploy/fleet-dispatcher.md`. Scope of this ticket is unchanged; the fleet-wide stage stays Ben's.
Owner

Claimed by an interactive session on Ben's laptop, at his instruction (2026-11-19): it has ssh to all three pool hosts, so it works the five remaining steps from the comment above in order — slot-report wiring, self-pin bump, the three facts from matou-workstation, the scoped live flip, the acceptance — then stops for the fleet-wide go.

Claimed by an interactive session on Ben's laptop, at his instruction (2026-11-19): it has ssh to all three pool hosts, so it works the five remaining steps from the comment above in order — slot-report wiring, self-pin bump, the three facts from `matou-workstation`, the scoped live flip, the acceptance — then stops for the fleet-wide go.
Author
Member

This was generated by AI during triage.

Re-triage: restoring ready-for-human (category stays enhancement).

This ticket surfaced as untriaged because it is carrying no state label: Ben claimed it at 14:54 (agent-working, interactive session on his laptop), that agent-working was removed at 15:02, and the self-pin landed at 15:08 — leaving only enhancement. Restoring the correct state.

Where it stands (two-way-door code done; activation mid-flight, human-reserved):

  • Slice-4 code landed 049582c (FLEET_DISPATCH_LIVE_HOSTS per-host scoping, per-host ack) — reversible, TDD-proven. Blocker #356 (slice 3) is closed; the native dependency is satisfied.
  • Step 2 of the five remaining activation steps is done: self-pin 8ed0e00 bumped .sandcastle/FACTORY_REF de5ebb8 → 75ecff9, so the running copy now carries the dispatcher code (FLEET_DISPATCH_LIVE_HOSTS reaches matou-workstation).
  • Still owed before stage-1 is live (Ben's claimed laptop session, which has SSH to all three pool hosts, is working these in order): slot-report wiring (each pool host's FLEET_DISPATCHER_URL → the receiver, decision 6 first go); the three matou-workstation facts (free disk; host-registry.conf still declares no min-free-gb — report, don't set, #340; #355 shadow dispatcher running + receiving reports); the scoped live flip (FLEET_DISPATCH_MODE=live + FLEET_DISPATCH_LIVE_HOSTS=matou-workstation); then show stage-1 acceptance here.

Why human

Two human/one-way residues, neither rulable under ADR 0174:

  1. Ben's hands, on the right host. The activation is intrinsically a matou-workstation operation (the dispatcher's own host, ruling B) and touches protected surfaces the swarm must never claim — the vendored .sandcastle/ self-copy (self-pin), host credentials, and a live door. The automated session lane proved twice (rule 8; comments at 14:22 and 14:49) it cannot place this on matou-workstation — no SSH door into it from the pool (Permission denied (publickey)). Ben answered by claiming it personally with a laptop session that reaches all three hosts; that is his hands, not a queue pick.
  2. The terminal go is an explicit one-way door. Stage-2 (fleet-wide, decision 6c) is a fleet-wide live-dispatch widening Ben reserved for himself: "Stage 2 (fleet-wide) is not authorised … This go does not carry over" (comment 14:17). After stage-1 acceptance the ticket STOPs and stays ready-for-human for that separate go.

So it correctly parks in the human lane, not the swarm (ready-for-agent) or the standing-session (ready-for-session) queue that misrouted. Reversible at any point by stopping the dispatcher (slice-3 fallback resumes the ADR 0007 host ticks within one heartbeat window).

> *This was generated by AI during triage.* **Re-triage: restoring `ready-for-human` (category stays `enhancement`).** This ticket surfaced as untriaged because it is carrying no state label: Ben claimed it at 14:54 (`agent-working`, interactive session on his laptop), that `agent-working` was removed at 15:02, and the self-pin landed at 15:08 — leaving only `enhancement`. Restoring the correct state. **Where it stands (two-way-door code done; activation mid-flight, human-reserved):** - Slice-4 code landed `049582c` (`FLEET_DISPATCH_LIVE_HOSTS` per-host scoping, per-host ack) — reversible, TDD-proven. Blocker #356 (slice 3) is **closed**; the native dependency is satisfied. - **Step 2 of the five remaining activation steps is done:** self-pin `8ed0e00` bumped `.sandcastle/FACTORY_REF` `de5ebb8 → 75ecff9`, so the running copy now carries the dispatcher code (`FLEET_DISPATCH_LIVE_HOSTS` reaches `matou-workstation`). - **Still owed before stage-1 is live** (Ben's claimed laptop session, which has SSH to all three pool hosts, is working these in order): slot-report wiring (each pool host's `FLEET_DISPATCHER_URL` → the receiver, decision 6 first go); the three `matou-workstation` facts (free disk; `host-registry.conf` still declares no `min-free-gb` — report, don't set, #340; #355 shadow dispatcher running + receiving reports); the scoped live flip (`FLEET_DISPATCH_MODE=live` + `FLEET_DISPATCH_LIVE_HOSTS=matou-workstation`); then show stage-1 acceptance here. ## Why human Two human/one-way residues, neither rulable under ADR 0174: 1. **Ben's hands, on the right host.** The activation is intrinsically a `matou-workstation` operation (the dispatcher's own host, ruling B) and touches protected surfaces the swarm must never claim — the vendored `.sandcastle/` self-copy (self-pin), host credentials, and a live door. The automated session lane proved **twice** (rule 8; comments at 14:22 and 14:49) it cannot place this on `matou-workstation` — no SSH door into it from the pool (`Permission denied (publickey)`). Ben answered by claiming it personally with a laptop session that reaches all three hosts; that is his hands, not a queue pick. 2. **The terminal go is an explicit one-way door.** Stage-2 (fleet-wide, decision 6c) is a fleet-wide live-dispatch widening Ben reserved for himself: "**Stage 2 (fleet-wide) is not authorised … This go does not carry over**" (comment 14:17). After stage-1 acceptance the ticket STOPs and stays `ready-for-human` for that separate go. So it correctly parks in the human lane, not the swarm (`ready-for-agent`) or the standing-session (`ready-for-session`) queue that misrouted. Reversible at any point by stopping the dispatcher (slice-3 fallback resumes the ADR 0007 host ticks within one heartbeat window).
Owner

Stage-1 activation: progress from the interactive session (2026-11-19). Not live yet — one merge is owed.

Done

  • Self-pin de5ebb8 → 75ecff9 (8ed0e00 on main); full offline suite green.
  • Dispatcher deployed on matou-workstation in shadow. User service factory-dispatcher.service, own checkout ~/fleet-dispatcher/dev-factory, bound to the mesh address 100.98.216.186:8790, bearer in ~/.config/dev-factory/dispatcher.env. It was not running before: no unit, no process.
  • FLEET_DISPATCHER_URL + FLEET_DISPATCHER_TOKEN set in host-env.sh on all three pool hosts (backup host-env.sh.before-dispatcher-2026-11-19 beside each). An authenticated POST from each host returns 200; no firewall change was needed.
  • End to end proven by hand: one slot report built and sent from each host was ingested, and the dispatcher logged bens-mac-04 0 free, 2 busy, elitebook-03 2 free, matou-workstation 1 free, 1 busy.

The three facts asked for

  • matou-workstation disk: 232G, 140G used, 92G free (61%).
  • Its ~/swarm/host-registry.conf declares no min-free-gb (neither does either other host). Not set — Ben's call.
  • The #355 shadow dispatcher was not running; it is now (above).

What still blocks the flip

No host sends slot reports on its own. A host's tick runs the vendored copy of the first checkout in its registry — Matou/idss on all three hosts — and idss pins d468efc, before the slot report. With no periodic reports the dispatcher marks every host unknown after 240 s and offers nothing, so flipping to live now would do nothing; and the old tick copy would not stand down. Matou/idss PR #2205 bumps idss to 8ed0e00. Ben merges it (pull-only). Merging changes no dispatch behaviour while the dispatcher is in shadow.

Landing detection is OFF and stays off for stage 1

The first shadow detection pass reported 25 anomalies, 18 of them false stranded-close reports (a rebase-landed close keeps its pre-rebase sha), and each detection pass blocked allocation for about three minutes. Live, that is 25 priority tickets at the front of the fleet queue. Filed as #363; the unit carries FLEET_DISPATCH_DETECT=off. Stage 1 therefore proves allocation only.

Next (this session, once #2205 is merged)

  1. Fast-forward each host's idss swarm checkout so its tick runs the new copy; confirm all three hosts show fresh in the dispatcher log.
  2. Set FLEET_DISPATCH_MODE=live + FLEET_DISPATCH_LIVE_HOSTS=matou-workstation, restart.
  3. Show the acceptance here, then stop for the fleet-wide go.
**Stage-1 activation: progress from the interactive session (2026-11-19). Not live yet — one merge is owed.** ## Done - **Self-pin** `de5ebb8` → `75ecff9` (`8ed0e00` on `main`); full offline suite green. - **Dispatcher deployed on `matou-workstation` in shadow.** User service `factory-dispatcher.service`, own checkout `~/fleet-dispatcher/dev-factory`, bound to the mesh address `100.98.216.186:8790`, bearer in `~/.config/dev-factory/dispatcher.env`. It was not running before: no unit, no process. - **`FLEET_DISPATCHER_URL` + `FLEET_DISPATCHER_TOKEN` set in `host-env.sh` on all three pool hosts** (backup `host-env.sh.before-dispatcher-2026-11-19` beside each). An authenticated POST from each host returns 200; no firewall change was needed. - **End to end proven by hand:** one slot report built and sent from each host was ingested, and the dispatcher logged `bens-mac-04 0 free, 2 busy`, `elitebook-03 2 free`, `matou-workstation 1 free, 1 busy`. ## The three facts asked for - `matou-workstation` disk: 232G, 140G used, **92G free (61%)**. - Its `~/swarm/host-registry.conf` declares **no `min-free-gb`** (neither does either other host). Not set — Ben's call. - The #355 shadow dispatcher **was not running**; it is now (above). ## What still blocks the flip **No host sends slot reports on its own.** A host's tick runs the vendored copy of the first checkout in its registry — `Matou/idss` on all three hosts — and idss pins `d468efc`, before the slot report. With no periodic reports the dispatcher marks every host `unknown` after 240 s and offers nothing, so flipping to live now would do nothing; and the old tick copy would not stand down. **Matou/idss PR #2205** bumps idss to `8ed0e00`. Ben merges it (pull-only). Merging changes no dispatch behaviour while the dispatcher is in shadow. ## Landing detection is OFF and stays off for stage 1 The first shadow detection pass reported 25 anomalies, 18 of them false `stranded-close` reports (a rebase-landed close keeps its pre-rebase sha), and each detection pass blocked allocation for about three minutes. Live, that is 25 `priority` tickets at the front of the fleet queue. Filed as **#363**; the unit carries `FLEET_DISPATCH_DETECT=off`. Stage 1 therefore proves allocation only. ## Next (this session, once #2205 is merged) 1. Fast-forward each host's idss swarm checkout so its tick runs the new copy; confirm all three hosts show fresh in the dispatcher log. 2. Set `FLEET_DISPATCH_MODE=live` + `FLEET_DISPATCH_LIVE_HOSTS=matou-workstation`, restart. 3. Show the acceptance here, then stop for the fleet-wide go.
Owner

Not flipped. The dispatcher is still in shadow — a defect in the live path blocks stage 1 (#365).

Since the last comment: idss PR #2205 merged at Ben's instruction (bff1092d, CI green), each host's idss swarm checkout fast-forwarded, and all three hosts now report by themselves on every tick — the dispatcher shows bens-mac-04, elitebook-03 and matou-workstation fresh, with correct free/busy counts and the queued tickets with their reasons. Each host records the shadow acknowledgement (ok, not acting), so every tick carries on as before.

Before flipping I read the live path. In live mode the dispatcher fires a workflow_dispatch for every placed pick on every pass (~17 s) with no memory of the previous one, and it neither reads nor posts the #351 marker. One ready ticket and one free slot would start a new run every pass until the first leg claims. Details and a proposed direction in #365; this ticket now depends on it.

State left behind:

  • factory-dispatcher.service on matou-workstation: running, shadow, detection off (#363). Safe to leave: it dispatches nothing and files nothing.
  • All three hosts report to it. To stop that, remove the two FLEET_DISPATCHER_ lines from ~/swarm/host-env.sh.
  • The fix reaches the dispatcher by a self-pin bump and git -C ~/fleet-dispatcher/dev-factory pull --ff-only + systemctl --user restart factory-dispatcher.

Stage-1 flip, once #365 is on the running copy: in the unit set FLEET_DISPATCH_MODE=live and FLEET_DISPATCH_LIVE_HOSTS=matou-workstation, daemon-reload, restart. Releasing the claim; ready-for-human because the flip has to be done from a session with a door to matou-workstation.

**Not flipped. The dispatcher is still in shadow — a defect in the live path blocks stage 1 (#365).** Since the last comment: idss PR #2205 merged at Ben's instruction (`bff1092d`, CI green), each host's idss swarm checkout fast-forwarded, and **all three hosts now report by themselves on every tick** — the dispatcher shows `bens-mac-04`, `elitebook-03` and `matou-workstation` fresh, with correct free/busy counts and the queued tickets with their reasons. Each host records the shadow acknowledgement (`ok`, not `acting`), so every tick carries on as before. Before flipping I read the live path. In live mode the dispatcher fires a `workflow_dispatch` for every placed pick on **every pass (~17 s)** with no memory of the previous one, and it neither reads nor posts the #351 marker. One ready ticket and one free slot would start a new run every pass until the first leg claims. Details and a proposed direction in #365; this ticket now depends on it. State left behind: - `factory-dispatcher.service` on `matou-workstation`: **running, shadow, detection off** (#363). Safe to leave: it dispatches nothing and files nothing. - All three hosts report to it. To stop that, remove the two `FLEET_DISPATCHER_` lines from `~/swarm/host-env.sh`. - The fix reaches the dispatcher by a self-pin bump and `git -C ~/fleet-dispatcher/dev-factory pull --ff-only` + `systemctl --user restart factory-dispatcher`. Stage-1 flip, once #365 is on the running copy: in the unit set `FLEET_DISPATCH_MODE=live` and `FLEET_DISPATCH_LIVE_HOSTS=matou-workstation`, `daemon-reload`, restart. Releasing the claim; `ready-for-human` because the flip has to be done from a session with a door to `matou-workstation`.
Owner

Interactive session (Ben's laptop) claiming this for the stage-1 flip: #365 landed (9fd804b), self-pin bumped (600cfb6), dispatcher checkout on matou-workstation fast-forwarded and a shadow pass checked on the new code. Flipping FLEET_DISPATCH_MODE=live + FLEET_DISPATCH_LIVE_HOSTS=matou-workstation now, detection still off.

Interactive session (Ben's laptop) claiming this for the stage-1 flip: #365 landed (`9fd804b`), self-pin bumped (`600cfb6`), dispatcher checkout on `matou-workstation` fast-forwarded and a shadow pass checked on the new code. Flipping `FLEET_DISPATCH_MODE=live` + `FLEET_DISPATCH_LIVE_HOSTS=matou-workstation` now, detection still off.
Owner

Stage 1 was flipped at 18:20:59Z and reverted to shadow at 18:36:44Z. The dispatcher did its part — one dispatch of Matou/policy-generators#113 to matou-workstation, then a SKIP on every later pass, the host's tick standing down, the other hosts ticking — but no leg on matou-workstation claimed the ticket. The marker expired after 600 s and bens-mac-04's tick took it. The host's own tick shows the same never-claimed dispatches before the flip (idss#2186 at 18:06/18:12/18:18), so the fault is on the delivery of targeted legs to that host, not in the allocator. Filed as #370; this ticket now depends on it. Acceptance not met; releasing the claim. Fleet-wide remains Ben's separate go.

Stage 1 was flipped at 18:20:59Z and **reverted to shadow at 18:36:44Z**. The dispatcher did its part — one dispatch of `Matou/policy-generators#113` to `matou-workstation`, then a SKIP on every later pass, the host's tick standing down, the other hosts ticking — but no leg on `matou-workstation` claimed the ticket. The marker expired after 600 s and `bens-mac-04`'s tick took it. The host's own tick shows the same never-claimed dispatches before the flip (idss#2186 at 18:06/18:12/18:18), so the fault is on the delivery of targeted legs to that host, not in the allocator. Filed as #370; this ticket now depends on it. Acceptance not met; releasing the claim. Fleet-wide remains Ben's separate go.
Author
Member

This was generated by AI during triage.

Re-triage: restoring ready-for-human (category stays enhancement).

This surfaced as untriaged again only because the claim/release churn left it with no state label — the interactive-session claim for the stage-1 flip (comment 2026-11-19 18:20) stripped it. The substantive state is unchanged from the 2026-11-19 15:16 re-triage, now advanced: #365 landed (9fd804b), the self-pin was bumped (600cfb6), the dispatcher checkout on matou-workstation was fast-forwarded and a shadow pass checked, and Ben's laptop session is flipping FLEET_DISPATCH_MODE=live + FLEET_DISPATCH_LIVE_HOSTS=matou-workstation now.

Why human

Unchanged one-way residue, not rulable under ADR 0174:

  1. Ben's hands, on the right host. The stage-1 activation is intrinsically a matou-workstation operation (the dispatcher's own host, ruling B) and touches surfaces the swarm must never claim — the vendored .sandcastle/ self-copy, host credentials, and a live door. The automated session lane proved twice it cannot place work on matou-workstation (no SSH door from the pool); Ben answered by claiming it personally.
  2. The terminal go is an explicit one-way door. Stage 2 (fleet-wide, decision 6c) is a fleet-wide live-dispatch widening Ben reserved for himself ("Stage 2 (fleet-wide) is not authorised … This go does not carry over"). After stage-1 acceptance the ticket STOPs and stays ready-for-human for that separate go.

So it parks in the human lane, not ready-for-agent or ready-for-session. Reversible at any point by stopping the dispatcher (the slice-3 fallback resumes the ADR 0007 host ticks within one heartbeat window).

> *This was generated by AI during triage.* **Re-triage: restoring `ready-for-human` (category stays `enhancement`).** This surfaced as untriaged again only because the claim/release churn left it with no state label — the interactive-session claim for the stage-1 flip (comment 2026-11-19 18:20) stripped it. The substantive state is unchanged from the 2026-11-19 15:16 re-triage, now advanced: #365 landed (`9fd804b`), the self-pin was bumped (`600cfb6`), the dispatcher checkout on `matou-workstation` was fast-forwarded and a shadow pass checked, and Ben's laptop session is flipping `FLEET_DISPATCH_MODE=live` + `FLEET_DISPATCH_LIVE_HOSTS=matou-workstation` now. ## Why human Unchanged one-way residue, not rulable under ADR 0174: 1. **Ben's hands, on the right host.** The stage-1 activation is intrinsically a `matou-workstation` operation (the dispatcher's own host, ruling B) and touches surfaces the swarm must never claim — the vendored `.sandcastle/` self-copy, host credentials, and a live door. The automated session lane proved twice it cannot place work on `matou-workstation` (no SSH door from the pool); Ben answered by claiming it personally. 2. **The terminal go is an explicit one-way door.** Stage 2 (fleet-wide, decision 6c) is a fleet-wide live-dispatch widening Ben reserved for himself ("Stage 2 (fleet-wide) is not authorised … This go does not carry over"). After stage-1 acceptance the ticket STOPs and stays `ready-for-human` for that separate go. So it parks in the human lane, not `ready-for-agent` or `ready-for-session`. Reversible at any point by stopping the dispatcher (the slice-3 fallback resumes the ADR 0007 host ticks within one heartbeat window).
Owner

Interactive session (Ben's laptop) claiming this again for the stage-1 re-flip at Ben's instruction: this repo's CI is off matou-workstation (3701e98, #370) and that host's newest swarm legs are now picked up in 2–112 s. Flipping matou-workstation live, detection off.

Interactive session (Ben's laptop) claiming this again for the stage-1 re-flip at Ben's instruction: this repo's CI is off `matou-workstation` (`3701e98`, #370) and that host's newest swarm legs are now picked up in 2–112 s. Flipping `matou-workstation` live, detection off.
Author
Member

This was generated by AI during triage.

Re-triage: restoring ready-for-human (category stays enhancement).

This surfaced as untriaged again only because the claim/release churn stripped its state label — the interactive-session claim at 2026-11-19 21:18 (Ben's laptop, re-flipping stage 1) left it carrying only enhancement. The substantive state is unchanged from the four prior re-triages (15:16, 18:39, …): ready-for-human.

Where it stands: stage-1 (live on matou-workstation's slots) is being re-flipped by Ben's laptop session now that this repo's CI moved off matou-workstation (3701e98, #370) and its newest swarm legs are picked up in 2–112 s — the delivery fault that reverted the 18:20 flip to shadow (#370). Slice-4 code is landed (049582c), #365 landed (9fd804b), the self-pin is current (600cfb6), detection stays off (#363). Blockers #356/#365 are closed; I've recorded the native dependency on #370 (open), which Ben twice noted this ticket now depends on.

Why human

Unchanged one-way residue, not rulable under ADR 0174:

  1. Ben's hands, on the right host. The stage-1 activation is intrinsically a matou-workstation operation (the dispatcher's own host, ruling B) and touches surfaces the swarm must never claim — the vendored .sandcastle/ self-copy, host credentials, and a live door. The automated lane proved twice it cannot place work on matou-workstation (no SSH door from the pool); Ben works it personally from a laptop session with doors to all three hosts.
  2. The terminal go is an explicit one-way door. Stage 2 (fleet-wide, decision 6c) is a fleet-wide live-dispatch widening Ben reserved for himself ("Stage 2 (fleet-wide) is not authorised … This go does not carry over"). After stage-1 acceptance the ticket STOPs and stays ready-for-human for that separate go.

So it parks in the human lane, not ready-for-agent or ready-for-session. Reversible at any point by stopping the dispatcher (the slice-3 fallback resumes the ADR 0007 host ticks within one heartbeat window).

> *This was generated by AI during triage.* **Re-triage: restoring `ready-for-human` (category stays `enhancement`).** This surfaced as untriaged again only because the claim/release churn stripped its state label — the interactive-session claim at 2026-11-19 21:18 (Ben's laptop, re-flipping stage 1) left it carrying only `enhancement`. The substantive state is unchanged from the four prior re-triages (15:16, 18:39, …): `ready-for-human`. **Where it stands:** stage-1 (live on `matou-workstation`'s slots) is being re-flipped by Ben's laptop session now that this repo's CI moved off `matou-workstation` (`3701e98`, #370) and its newest swarm legs are picked up in 2–112 s — the delivery fault that reverted the 18:20 flip to shadow (#370). Slice-4 code is landed (`049582c`), #365 landed (`9fd804b`), the self-pin is current (`600cfb6`), detection stays off (#363). Blockers #356/#365 are closed; I've recorded the native dependency on #370 (open), which Ben twice noted this ticket now depends on. ## Why human Unchanged one-way residue, not rulable under ADR 0174: 1. **Ben's hands, on the right host.** The stage-1 activation is intrinsically a `matou-workstation` operation (the dispatcher's own host, ruling B) and touches surfaces the swarm must never claim — the vendored `.sandcastle/` self-copy, host credentials, and a live door. The automated lane proved twice it cannot place work on `matou-workstation` (no SSH door from the pool); Ben works it personally from a laptop session with doors to all three hosts. 2. **The terminal go is an explicit one-way door.** Stage 2 (fleet-wide, decision 6c) is a fleet-wide live-dispatch widening Ben reserved for himself ("Stage 2 (fleet-wide) is not authorised … This go does not carry over"). After stage-1 acceptance the ticket STOPs and stays `ready-for-human` for that separate go. So it parks in the human lane, not `ready-for-agent` or `ready-for-session`. Reversible at any point by stopping the dispatcher (the slice-3 fallback resumes the ADR 0007 host ticks within one heartbeat window).
Owner

Ben gave the fleet-wide go in the laptop session (2026-11-19, ~22:35Z): "go fleet wide and monitor it for confirmation of working". Context: stage 1 on matou-workstation ran live from 21:18:53Z with no fault but made no dispatch — free slots are allocated in host-name order, so with one ready ticket at a time the pick is placed on a shadow host (logged only) and never offered to the live host. Setting FLEET_DISPATCH_LIVE_HOSTS= (empty) with FLEET_DISPATCH_MODE=live now; landing detection stays off.

Ben gave the fleet-wide go in the laptop session (2026-11-19, ~22:35Z): "go fleet wide and monitor it for confirmation of working". Context: stage 1 on `matou-workstation` ran live from 21:18:53Z with no fault but made no dispatch — free slots are allocated in host-name order, so with one ready ticket at a time the pick is placed on a shadow host (logged only) and never offered to the live host. Setting `FLEET_DISPATCH_LIVE_HOSTS=` (empty) with `FLEET_DISPATCH_MODE=live` now; landing detection stays off.
Owner

Fleet-wide confirmation (interactive session, Ben's go). Live fleet-wide since 2026-11-19T22:44:53Z. Two fresh tickets, each dispatched once and claimed on its target host: policy-generators#70 → bens-mac-04 (dispatched 00:37:42Z, claimed 00:38:36Z, run 803); policy-generators#71 → elitebook-03 (dispatched 01:01:52Z, claimed 01:02:43Z, run 809). Later passes skipped on the live marker; no dispatcher errors; all three host ticks stand down on the ack. The four earlier #64 dispatches were false samples (#375).

Not yet observed, so I am leaving this open for Ben: the literal acceptance (N idle hosts + N ready tickets → N runs in one pass; stopping the dispatcher resumes host ticks within one heartbeat window) — the queue never held more than one startable ticket. No sample on matou-workstation since the fleet-wide flip. Owed: re-vendor the dispatcher past 9fd804b for #363 and #375. Record: docs/journal/2026-11-19-357-fleet-wide.md.

**Fleet-wide confirmation (interactive session, Ben's go).** Live fleet-wide since 2026-11-19T22:44:53Z. Two fresh tickets, each dispatched once and claimed on its target host: policy-generators#70 → `bens-mac-04` (dispatched 00:37:42Z, claimed 00:38:36Z, run 803); policy-generators#71 → `elitebook-03` (dispatched 01:01:52Z, claimed 01:02:43Z, run 809). Later passes skipped on the live marker; no dispatcher errors; all three host ticks stand down on the ack. The four earlier #64 dispatches were false samples (#375). Not yet observed, so I am leaving this open for Ben: the literal acceptance (N idle hosts + N ready tickets → N runs in one pass; stopping the dispatcher resumes host ticks within one heartbeat window) — the queue never held more than one startable ticket. No sample on `matou-workstation` since the fleet-wide flip. Owed: re-vendor the dispatcher past `9fd804b` for #363 and #375. Record: `docs/journal/2026-11-19-357-fleet-wide.md`.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/dev-factory#357
No description provided.