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
No Branch/Tag specified
main
sandcastle/rescue-20261120-212246
sandcastle/rescue-20261120-202650
sandcastle/rescue-20261120-202316
sandcastle/worker/20261120192753-1909682
sandcastle/rescue-20261120-191443
sandcastle/rescue-20261120-195103
sandcastle/rescue-20261120-201254
sandcastle/rescue-20261120-201438
sandcastle/rescue-20261120-144756
sandcastle/rescue-20261120-184843
sandcastle/rescue-20261120-190817
sandcastle/rescue-20261120-045815
sandcastle/rescue-20261120-143144
sandcastle/rescue-20261120-144025
sandcastle/worker/20261120032838-3834852
sandcastle/worker/20261120034547-1076409
sandcastle/rescue-20261120-031041
sandcastle/rescue-20261120-035031
sandcastle/rescue-20261120-041046
sandcastle/rescue-20261120-041556
sandcastle/rescue-20261120-042712
sandcastle/rescue-20261120-044145
sandcastle/rescue-20261120-044401
sandcastle/worker/20261120020735-3225234
sandcastle/rescue-20261120-025017
sandcastle/worker/20261120012937-3577764
sandcastle/rescue-20261120-024432
sandcastle/rescue-20261120-012510
sandcastle/rescue-20261120-020027
sandcastle/rescue-20261120-022005
sandcastle/rescue-20261120-023040
sandcastle/rescue-20261120-023059
sandcastle/rescue-20261120-023617
sandcastle/rescue-20261120-023726
sandcastle/rescue-20261120-024624
sandcastle/rescue-20261120-030108
sandcastle/rescue-20261120-011059
sandcastle/rescue-20261119-235227
sandcastle/rescue-20261119-220002
sandcastle/rescue-20261119-234418
sandcastle/worker/20261119210537-2901903
sandcastle/rescue-20261119-215319
sandcastle/worker/20261119210832-2140478
sandcastle/rescue-20261119-205729
sandcastle/worker/20261119195637-2051281
sandcastle/rescue-20261119-203604
sandcastle/rescue-20261119-212545
sandcastle/rescue-20261119-213258
sandcastle/rescue-20261119-214233
sandcastle/rescue-20261119-215039
sandcastle/rescue-20261119-200052
sandcastle/rescue-20261119-202558
sandcastle/rescue-20261119-202859
sandcastle/rescue-20261119-204522
sandcastle/rescue-20261119-202901
sandcastle/worker/20261119192821-2242548
sandcastle/rescue-20261119-201432
sandcastle/worker/20261119185826-1049892
sandcastle/rescue-20261119-192442
sandcastle/rescue-20261119-194543
sandcastle/rescue-20261119-195715
sandcastle/rescue-20261119-195042
sandcastle/rescue-20261119-194153
sandcastle/rescue-20261119-193223
sandcastle/rescue-20261119-181821
sandcastle/rescue-20261119-182031
sandcastle/rescue-20261119-191400
sandcastle/rescue-20261119-184524
sandcastle/rescue-20261119-185251
sandcastle/rescue-20261119-190111
sandcastle/rescue-20261119-171507
sandcastle/rescue-20261119-172406
sandcastle/rescue-20261119-180227
sandcastle/rescue-20261119-181611
sandcastle/rescue-20261119-183926
sandcastle/rescue-20261119-165410
sandcastle/rescue-20261119-181300
sandcastle/worker/20261119152654-1251003
sandcastle/rescue-20261119-175608
sandcastle/rescue-20261119-153212
sandcastle/rescue-20261119-155612
sandcastle/rescue-20261119-161612
sandcastle/rescue-20261119-162645
sandcastle/rescue-20261119-151259
sandcastle/worker/20261119-091545-699963
sandcastle/rescue-20261119-152400
sandcastle/rescue-20261119-150650
sandcastle/rescue-20261119-151018
sandcastle/rescue-20261119-145753
sandcastle/rescue-20261119-144640
sandcastle/worker/20261119-141805-b375a7
sandcastle/rescue-20261119-143616
sandcastle/rescue-20261119-142315
sandcastle/rescue-20261119-143536
sandcastle/rescue-20261119-144907
sandcastle/rescue-20261119-150929
sandcastle/rescue-20261119-140252
sandcastle/rescue-20261119-132837
sandcastle/rescue-20261119-140917
sandcastle/rescue-20261118-232015
sandcastle/rescue-20261118-224358
sandcastle/rescue-20261118-231012
sandcastle/rescue-20261118-221954
sandcastle/rescue-20261118-223235
sandcastle/rescue-20261118-215029
sandcastle/rescue-20261118-220457
sandcastle/rescue-20261118-213647
sandcastle/rescue-20261118-213651
sandcastle/rescue-20261118-203142
sandcastle/rescue-20261118-201242
sandcastle/rescue-20261118-160449
sandcastle/worker/20261118-151037-fa1423
sandcastle/rescue-20261118-141033
sandcastle/rescue-20261118-153435
sandcastle/rescue-20261118-155226
sandcastle/rescue-20261118-140135
sandcastle/rescue-20261118-072336
sandcastle/rescue-20261118-071306
sandcastle/rescue-20261118-065902
sandcastle/rescue-20261118-070925
sandcastle/rescue-20261118-064628
sandcastle/rescue-20261118-060611
sandcastle/rescue-20261118-063652
sandcastle/rescue-20261118-065117
sandcastle/rescue-20261118-065556
sandcastle/rescue-20261118-055026
sandcastle/worker/20261118-000033-5f0b74
sandcastle/rescue-20261118-054929
sandcastle/rescue-20261118-053613
sandcastle/worker/20261118-050837-870db6
sandcastle/rescue-20261118-051315
sandcastle/rescue-20261118-052156
sandcastle/rescue-20261118-053056
sandcastle/rescue-20261118-042651
sandcastle/rescue-20261118-050517
sandcastle/rescue-20261118-052017
sandcastle/rescue-20261118-052046
sandcastle/rescue-20261118-053617
sandcastle/rescue-20261118-040341
sandcastle/rescue-20261118-035452
sandcastle/rescue-20261117-180034
sandcastle/worker/20261117-173516-cca624
backport/idss-2068-2111-2114
sandcastle/rescue-20261117-123242
sandcastle/rescue-20261117-124231
backport/idss-2057
sandcastle/rescue-20261116-154411
sandcastle/rescue-20261117-175037
sandcastle/rescue-20261116-153352
sandcastle/rescue-20261107-062749
session-runner-land-mode-recheck-2181
sandcastle/rescue-20261107-061316
fp/idss-2180
sandcastle/rescue-20261107-060212
forward-port/provision-disk-guard
sandcastle/rescue-20261107-060021
sandcastle/rescue-20261107-054649
sandcastle/worker/20261107-043349-cf0d7e
backport/idss-2177
sandcastle/rescue-20261116-175301
sandcastle/rescue-20261116-175950
backport/idss-2176
sandcastle/rescue-20261106-135208
sandcastle/rescue-20261107-045600
sandcastle/rescue-20261107-051315
sandcastle/rescue-20261107-053423
sandcastle/worker/20261106-111451-8c1ff0
sandcastle/rescue-20261106-023514
sandcastle/rescue-20261106-113455
sandcastle/rescue-20261106-115043
sandcastle/rescue-20261106-121303
sandcastle/rescue-20261106-134211
sandcastle/worker/20261106-013937-c15abc
fix/336-job-locality-runner-uuid
sandcastle/rescue-20261106-000320
sandcastle/rescue-20261105-113317
sandcastle/rescue-20261105-235352
sandcastle/rescue-20261106-020541
sandcastle/rescue-20261106-022516
sandcastle/rescue-20261106-024735
sandcastle/rescue-20261106-024744
sandcastle/rescue-20261106-024751
sandcastle/worker/20261105-104416-4319e1
sandcastle/rescue-20261105-111401
sandcastle/worker/20261105-054650-133b83
sandcastle/rescue-20261105-104304
sandcastle/rescue-20261105-110432
sandcastle/rescue-20261105-110637
sandcastle/rescue-20261105-112240
sandcastle/rescue-20261105-102818
sandcastle/worker/20261105-090131-e38a52
sandcastle/rescue-20261105-101105
sandcastle/rescue-20261105-094209
sandcastle/rescue-20261105-095705
sandcastle/rescue-20261105-091351
sandcastle/rescue-20261105-092126
sandcastle/rescue-20261105-093755
sandcastle/rescue-20261105-095339
sandcastle/rescue-20261105-101509
sandcastle/worker/20261105-033507-997386
sandcastle/worker/20261105-072852-43a339
sandcastle/rescue-20261105-085215
sandcastle/rescue-20261105-090546
sandcastle/rescue-20261105-090731
sandcastle/rescue-20261105-091600
sandcastle/worker/20261105-073544-9e3e7b
sandcastle/rescue-20261105-085541
sandcastle/worker/20261105-030149-b06fe6
sandcastle/rescue-20261105-075223
sandcastle/rescue-20261105-080157
sandcastle/rescue-20261105-081231
sandcastle/rescue-20261105-081252
sandcastle/rescue-20261105-081916
sandcastle/rescue-20261105-082029
sandcastle/rescue-20261105-082600
sandcastle/rescue-20261105-082859
sandcastle/rescue-20261105-083557
sandcastle/rescue-20261105-084327
sandcastle/rescue-20261105-090802
sandcastle/rescue-20261105-092213
sandcastle/worker/20261105-004228-d59980
sandcastle/worker/20261104-200255-c897e8
sandcastle/rescue-20261105-021604
sandcastle/rescue-20261105-062428
sandcastle/rescue-20261105-064420
sandcastle/worker/20261104-185608-12e745
sandcastle/rescue-20261105-011719
sandcastle/rescue-20261104-221030
sandcastle/rescue-20261105-003304
sandcastle/rescue-20261105-005511
sandcastle/rescue-20261105-013351
sandcastle/rescue-20261105-015246
sandcastle/worker/20261104-204335-4df59d
sandcastle/worker/20261104-144451-39719f
sandcastle/rescue-20261104-210849
sandcastle/rescue-20261104-211127
sandcastle/rescue-20261104-212722
sandcastle/worker/20261104-194113-a58f71
sandcastle/rescue-20261104-193329
sandcastle/rescue-20261104-200835
sandcastle/rescue-20261104-201057
sandcastle/rescue-20261104-202237
sandcastle/rescue-20261104-204239
sandcastle/rescue-20261104-185105
sandcastle/rescue-20261104-185510
sandcastle/rescue-20261104-192703
sandcastle/rescue-20261104-184907
sandcastle/rescue-20261104-183301
sandcastle/rescue-20261104-183354
backport/idss-2161
backport/idss-2155
fp/idss-2147
backport/idss-2145
backport/idss-2134
backport/idss-2119
sandcastle/worker/20261030-141035-c3d689
sandcastle/worker/20261030-125730-11b08b
sandcastle/worker/20261030-172321-20db0e
backport/idss-2114
backport/idss-2112
forward-port/idss-2111
forward-port/idss-2068
backport/idss-2111
backport/idss-2110
backport/idss-2106
backport/idss-2068
backport/idss-2104
sandcastle/rescue-20261030-110900
sandcastle/worker/20261029-055633-763b74
sandcastle/worker/20261029-000831-e4c652
sandcastle/worker/20261028-162655-0e8071
sandcastle/rescue-20261030-110112
sandcastle/rescue-20261030-110131
sandcastle/rescue-20261030-110135
sandcastle/rescue-20261030-110153
sandcastle/rescue-20261030-110156
sandcastle/rescue-20261030-110200
sandcastle/rescue-20261030-110220
backport/idss-1913
agent/issue-306
runner-busy-not-stalled
sandcastle/worker/20261024-045639-da1b9a
sandcastle/worker/20261023-060833-778cbe
fleet-queue-watcher-301-proposal
floor-vue
sandcastle/worker/20261021-191646-b93327
sandcastle/worker/20261021-233637-f21837
sandcastle/worker/20261021-233255-c766f7
sandcastle/worker/20261021-040000-b7a28d
backport/idss-2050
backport/idss-2050-session-pr-landing
sandcastle/worker/20261020-221737-cc96f3
backport/idss-2052
agent/issue-289
backstop-waiting-runs
sandcastle/worker/20261017-204619-942ae4
sandcastle/worker/20261017-204620-aa17c2
sandcastle/worker/20261017-144914-3ec608
sandcastle/worker/20261017-063336-7f5d31
sandcastle/rescue-20261017-062529
sandcastle/worker/20261017-010124-c49097
sandcastle/worker/20261017-003840-0c4ab1
sandcastle/rescue-20261017-054742
sandcastle/worker/20261017-053155-61c4c7
sandcastle/worker/20261017-050606-f20d66
sandcastle/rescue-20261017-052443
sandcastle/worker/20261017-050839-ec5b54
sandcastle/rescue-20261017-052212
sandcastle/worker/20261017-050442-495e4b
sandcastle/rescue-20261017-051857
sandcastle/worker/20261017-000426-34fa18
agent/issue-272
agent/issue-273
agent/issue-244
agent/issue-269
sandcastle/rescue-20261016-184726
sandcastle/rescue-20261016-184906
sandcastle/rescue-20261016-185533
sandcastle/rescue-20261016-191907
sandcastle/rescue-20261016-192219
sandcastle/worker/20261016-155725-c51ed1
agent/issue-195
agent/issue-196
agent/issue-197
agent/issue-198
agent/issue-200
agent/issue-203
agent/issue-205
agent/issue-206
agent/issue-207
agent/issue-209
agent/issue-213
agent/issue-216
agent/issue-217
agent/issue-218
agent/issue-222
agent/issue-238
agent/issue-208
sandcastle/worker/20261016-155833-1b8f77
agent/issue-241
agent/issue-230
agent/issue-239
land/issue-193
forward-port/idss-2048
backport/idss-2048
agent/issue-237
agent/issue-225
agent/issue-193
agent/issue-176
backport/1717-unclaimed-commit-gate
backport/1733-drive-yield-runlog
fix/159-rehearsal-report-token-leak
fix/157-ready-list-standdown
fix/154-verdict-no-match-trap
factory-floor-visual-rework
landing-shell-guard
No results found.
Labels
Clear labels
agent-blocked
Sandcastle hit a blocker — human resolves it, then re-adds ready-for-agent
agent-working
Claimed by a live swarm run — other hosts skip it
bug
Something is broken
deferred
Ruled defer-with-criteria: parked until a revisit criterion in the issue body fires
enhancement
New feature or improvement
landing-pr
Additive: this ticket lands ONLY by a PR with screenshots (or a waiver) that a human merges — ADR 0265. Only a human removes it.
model-haiku
Per-ticket model override (additive): run this ticket on the cheap/fast model
model-opus
Per-ticket model override (additive): run this ticket on the top-tier model
model-sonnet
Per-ticket model override (additive): run this ticket on the mid-tier model
needs-info
Waiting on reporter for more information
needs-triage
Maintainer needs to evaluate this issue
no-triage
Escape hatch: triage automation must skip this issue
priority
Additive urgency marker — the swarm queue works these first
ready-for-agent
Fully specified, ready for an AFK agent
ready-for-human
Needs the human's hands, eyes, or a one-way-door ruling (ADR 0174)
ready-for-session
Needs an interactive agent session (host creds/protected paths/live doors), not the human (ADR 0174)
wontfix
Will not be actioned
No labels
agent-blocked
agent-working
bug
deferred
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
ready-for-agent
ready-for-human
ready-for-session
wontfix
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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.
Depends on
Reference
Matou/dev-factory#357
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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):
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.
Ruling:
ready-for-human(category alreadyenhancement).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-runseam, the per-host-flock offer semantics, the fallback — is specified and ready; the ticket STOPs at each go. Native dependency on #356 already recorded.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-humanfor 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-sessionso the session lane can take it when #356 closes (the dependency still holds it until then).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 onmatou-workstation's slots only;elitebook-03andbens-mac-04stay 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):
~/swarm/host-registry.confthere still declares nomin-free-gb(#340's closing note) — report it, do not set it; the floor is Ben's call;The stop after stage 1 is unchanged: fleet-wide needs its own go.
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-sessionfor the session lane to re-attempt from the right host.What landed on
main(two-way door, reversible, proven) —049582cThe 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 islive, which hosts it dispatches to for real and acksacting(stands their tick down). Empty = fleet-wide (6c); a host list = live on those hosts only (6b).fleet_dispatch_host_modedecides 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.priorityworking-no-runtickets forelitebook-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.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. Runbookdocs/deploy/fleet-dispatcher.md, STATUS #353 row, journaldocs/journal/2026-11-19-357-live-scoping.mdupdated in the same commit.What this attempt could NOT do — the stage-1 activation (the blocker)
Ben's go (2026-11-19) names
matou-workstationas the host to go live on, and asks the building session — before switching it on — to state its free disk, that itshost-registry.confdeclares nomin-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, notmatou-workstation.bens-mac-04holds no SSH door tomatou-workstation(swarm@matou-workstation.netbird.selfhosted→Permission denied (publickey)) and itself declares noFLEET_DISPATCHER_URL. So I could not:min-free-gb(its facts, not bens-mac-04's);The activation is intrinsically a matou-workstation operation (the dispatcher's own host, ruling B). It also needs the new
FLEET_DISPATCH_LIVE_HOSTScode to reach the running copy — aFACTORY_REFbump + self-pin, pull-only (ADR 0001).Next session (run it on
matou-workstation)FLEET_DISPATCHER_URLpointing at the receiver — appears not yet done: bens-mac-04 sets none; verify the others).min-free-gb(#340 closed at 60%; the floor is Ben's call).049582c(pin bump), then setFLEET_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).ready-for-humanfor 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 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 landed049582c; 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: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 onbens-mac-04(comment 74384); this one drained onelitebook-03. Neither holds an inbound SSH door intomatou-workstation: from heressh 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.confmin-free-gb, shadow dispatcher running + receiving reports), nor flip the switch. This needs amatou-workstation-pinned session or a human on that box — the standing lane cannot reliably place it there.The slice-4 code is not in
matou-workstation's running.sandcastlecopy.FLEET_DISPATCH_LIVE_HOSTS(the allowlist that makes 6b correct) landed049582c, but the self-consumer'sFACTORY_REFisde5ebb8(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 (falseworking-no-runprioritytickets for the still-ticking hosts — the exact trap slice 4 was built to avoid).Decision 6's FIRST go is still owed: point each pool host's
FLEET_DISPATCHER_URLat 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
FLEET_DISPATCHER_URLat the dispatcher's receiver (decision 6 first go)..sandcastleto amainref that includes049582c(onboarding/onboard.sh vendor .sandcastle <sha>), so the running copy carriesFLEET_DISPATCH_LIVE_HOSTS.matou-workstation, state on this ticket: its free disk; that~/swarm/host-registry.confthere still declares nomin-free-gb(report, do not set — Ben's call, #340); and that the #355 shadow dispatcher is running and receiving slot reports.FLEET_DISPATCH_MODE=live+FLEET_DISPATCH_LIVE_HOSTS=matou-workstation(reversible by shrinking the allowlist orFLEET_DISPATCH_MODE=shadow).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.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.Re-triage: restoring
ready-for-human(category staysenhancement).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), thatagent-workingwas removed at 15:02, and the self-pin landed at 15:08 — leaving onlyenhancement. Restoring the correct state.Where it stands (two-way-door code done; activation mid-flight, human-reserved):
049582c(FLEET_DISPATCH_LIVE_HOSTSper-host scoping, per-host ack) — reversible, TDD-proven. Blocker #356 (slice 3) is closed; the native dependency is satisfied.8ed0e00bumped.sandcastle/FACTORY_REFde5ebb8 → 75ecff9, so the running copy now carries the dispatcher code (FLEET_DISPATCH_LIVE_HOSTSreachesmatou-workstation).FLEET_DISPATCHER_URL→ the receiver, decision 6 first go); the threematou-workstationfacts (free disk;host-registry.confstill declares nomin-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:
matou-workstationoperation (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 onmatou-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.ready-for-humanfor 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).Stage-1 activation: progress from the interactive session (2026-11-19). Not live yet — one merge is owed.
Done
de5ebb8→75ecff9(8ed0e00onmain); full offline suite green.matou-workstationin shadow. User servicefactory-dispatcher.service, own checkout~/fleet-dispatcher/dev-factory, bound to the mesh address100.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_TOKENset inhost-env.shon all three pool hosts (backuphost-env.sh.before-dispatcher-2026-11-19beside each). An authenticated POST from each host returns 200; no firewall change was needed.bens-mac-04 0 free, 2 busy,elitebook-03 2 free,matou-workstation 1 free, 1 busy.The three facts asked for
matou-workstationdisk: 232G, 140G used, 92G free (61%).~/swarm/host-registry.confdeclares nomin-free-gb(neither does either other host). Not set — Ben's call.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/idsson all three hosts — and idss pinsd468efc, before the slot report. With no periodic reports the dispatcher marks every hostunknownafter 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 to8ed0e00. 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-closereports (a rebase-landed close keeps its pre-rebase sha), and each detection pass blocked allocation for about three minutes. Live, that is 25prioritytickets at the front of the fleet queue. Filed as #363; the unit carriesFLEET_DISPATCH_DETECT=off. Stage 1 therefore proves allocation only.Next (this session, once #2205 is merged)
FLEET_DISPATCH_MODE=live+FLEET_DISPATCH_LIVE_HOSTS=matou-workstation, restart.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 showsbens-mac-04,elitebook-03andmatou-workstationfresh, with correct free/busy counts and the queued tickets with their reasons. Each host records the shadow acknowledgement (ok, notacting), so every tick carries on as before.Before flipping I read the live path. In live mode the dispatcher fires a
workflow_dispatchfor 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.serviceonmatou-workstation: running, shadow, detection off (#363). Safe to leave: it dispatches nothing and files nothing.FLEET_DISPATCHER_lines from~/swarm/host-env.sh.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=liveandFLEET_DISPATCH_LIVE_HOSTS=matou-workstation,daemon-reload, restart. Releasing the claim;ready-for-humanbecause the flip has to be done from a session with a door tomatou-workstation.Interactive session (Ben's laptop) claiming this for the stage-1 flip: #365 landed (
9fd804b), self-pin bumped (600cfb6), dispatcher checkout onmatou-workstationfast-forwarded and a shadow pass checked on the new code. FlippingFLEET_DISPATCH_MODE=live+FLEET_DISPATCH_LIVE_HOSTS=matou-workstationnow, detection still off.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#113tomatou-workstation, then a SKIP on every later pass, the host's tick standing down, the other hosts ticking — but no leg onmatou-workstationclaimed the ticket. The marker expired after 600 s andbens-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.Re-triage: restoring
ready-for-human(category staysenhancement).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 onmatou-workstationwas fast-forwarded and a shadow pass checked, and Ben's laptop session is flippingFLEET_DISPATCH_MODE=live+FLEET_DISPATCH_LIVE_HOSTS=matou-workstationnow.Why human
Unchanged one-way residue, not rulable under ADR 0174:
matou-workstationoperation (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 onmatou-workstation(no SSH door from the pool); Ben answered by claiming it personally.ready-for-humanfor that separate go.So it parks in the human lane, not
ready-for-agentorready-for-session. Reversible at any point by stopping the dispatcher (the slice-3 fallback resumes the ADR 0007 host ticks within one heartbeat window).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. Flippingmatou-workstationlive, detection off.Re-triage: restoring
ready-for-human(category staysenhancement).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 offmatou-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:
matou-workstationoperation (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 onmatou-workstation(no SSH door from the pool); Ben works it personally from a laptop session with doors to all three hosts.ready-for-humanfor that separate go.So it parks in the human lane, not
ready-for-agentorready-for-session. Reversible at any point by stopping the dispatcher (the slice-3 fallback resumes the ADR 0007 host ticks within one heartbeat window).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-workstationran 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. SettingFLEET_DISPATCH_LIVE_HOSTS=(empty) withFLEET_DISPATCH_MODE=livenow; landing detection stays off.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-workstationsince the fleet-wide flip. Owed: re-vendor the dispatcher past9fd804bfor #363 and #375. Record:docs/journal/2026-11-19-357-fleet-wide.md.