pool-label flows: a sick host still WINS runs-on: swarm jobs by polling (the half of #305/#191 #315 does not cover) #316

Open
opened 2026-10-29 06:03:26 +00:00 by matou-build-agent · 4 comments

Split out of #315 (the fleet-queue-tick half of #305), which closes only the fleet-dispatch path. Stated there as an explicit scope boundary so #305's class is not quietly implied closed.

The remaining gap

#315 made the fleet-queue tick stop dispatching to a sick host: fleet_queue_slot_free gates on a declared min-free-gb disk floor, and the host stands down after N consecutive dispatches expire unclaimed (a decaying retry). That covers every flow that reaches a host through fleet_queue_dispatch (inputs.host).

It does not cover the single-job scheduled flows that are runs-on: swarm — triage.yml (5,35) and resume-asks.yml (10,40). Those carry the pool label, so a sick host wins them by polling Forgejo's queue, with no dispatch involved. On elitebook-03 out of disk (#305) each still dies at workflow prepared (mkdir .../.cache/act/<task>: no space left on device) before step one — so new issues stay untriaged and parked ready-for-human threads never get re-armed (the only route back onto the frontier).

Why it is harder than #315

Backing a host off the fleet queue is a host-side decision in the tick. Stopping a host from winning a polled pool job is not — the Forgejo runner polls and claims on its own. Candidate shapes to design/rule:

  • a host-local pre-flight guard the runs-on: swarm jobs run as step one that yields (exit 0, green) when the same min-free-gb floor / forge-reachability probe fails — same signal #315 declares, but applied at the start of the job rather than at dispatch time. The job must end GREEN (a red re-reds the flow), and the generated swarm.yml/triage.yml/resume-asks.yml inline guards live behind the protected .forgejo/ path, so this needs a ready-for-session machinery change, not a sandbox edit;
  • OR a host-health kill-switch the sampler trips (touch the registry killswitch when the floor probe fails), so a sick host drains itself from the pool until it recovers.

Same family as #191 (bens-mac-04 could not resolve git.matou.nz — every polled job red at stage one). A single "this host is sick, stop polling" rail would cover both. Worth designing with #191 and #315 open in the other tabs.

Reuse #315's seam: the min-free-gb registry key → HOST_CAPACITY_MIN_FREE_GB → fleet_queue_disk_ok / _fleet_queue_free_gb are already host-generic and offline-tested.

Split out of #315 (the fleet-queue-tick half of #305), which closes only the fleet-*dispatch* path. Stated there as an explicit scope boundary so #305's class is not quietly implied closed. ## The remaining gap #315 made the fleet-queue tick stop *dispatching* to a sick host: `fleet_queue_slot_free` gates on a declared `min-free-gb` disk floor, and the host stands down after N consecutive dispatches expire unclaimed (a decaying retry). That covers every flow that reaches a host through `fleet_queue_dispatch` (`inputs.host`). It does **not** cover the single-job scheduled flows that are `runs-on: swarm` — `triage.yml` (`5,35`) and `resume-asks.yml` (`10,40`). Those carry the **pool** label, so a sick host wins them by *polling* Forgejo's queue, with no dispatch involved. On `elitebook-03` out of disk (#305) each still dies at `workflow prepared` (`mkdir .../.cache/act/<task>: no space left on device`) before step one — so new issues stay untriaged and parked `ready-for-human` threads never get re-armed (the only route back onto the frontier). ## Why it is harder than #315 Backing a host off the fleet *queue* is a host-side decision in the tick. Stopping a host from *winning a polled pool job* is not — the Forgejo runner polls and claims on its own. Candidate shapes to design/rule: - a host-local pre-flight guard the `runs-on: swarm` jobs run as step one that yields (exit 0, green) when the same `min-free-gb` floor / forge-reachability probe fails — same signal #315 declares, but applied at the *start of the job* rather than at dispatch time. The job must end GREEN (a red re-reds the flow), and the generated `swarm.yml`/`triage.yml`/`resume-asks.yml` inline guards live behind the protected `.forgejo/` path, so this needs a `ready-for-session` machinery change, not a sandbox edit; - OR a host-health kill-switch the sampler trips (touch the registry `killswitch` when the floor probe fails), so a sick host drains itself from the pool until it recovers. Same family as #191 (`bens-mac-04` could not resolve `git.matou.nz` — every polled job red at stage one). A single "this host is sick, stop *polling*" rail would cover both. Worth designing with #191 and #315 open in the other tabs. Reuse #315's seam: the `min-free-gb` registry key → `HOST_CAPACITY_MIN_FREE_GB` → `fleet_queue_disk_ok` / `_fleet_queue_free_gb` are already host-generic and offline-tested.
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: enhancement + ready-for-session (not ready-for-agent). The gap is real and the work is well-specified, but its most plausible landing surface is the generated runs-on: swarm inline guards and the .forgejo/ workflows — a protected path the swarm queue never reads by construction (triage-labels.md: every .forgejo/ edit is ready-for-session work). So an interactive session claims this; a headless swarm worker must not.

Why it is a two-way door: a host-health guard on the polled pool jobs is additive and revertible — remove the step-one guard (or flip the label) and the flow returns to today's behaviour, no data touched, no door widened. It is not personal credentials, a security-posture widening, a member-facing trust accept, data destruction, or non-routine spend.

What proves it: #315's seam is already host-generic and offline-tested — fleet_queue_free_gb / the FLEET_QUEUE_MIN_FREE_GB floor in fleet-queue-lib.sh, with df shimmed behind a full/empty-disk fixture in tests/fleet-queue-lib-test.sh. A new guard reuses that seam and gets its own offline test the same way (shimmed df, no docker, no network). Verified during triage: the two named flows (triage.yml 5,35, resume-asks.yml 10,40) are both runs-on: swarm and reach a host by polling the pool — their inline guards gate only on the host-capacity slots and the drive reservation, not on a disk floor or forge-reachability, so the claimed gap exists exactly as described. The existing killswitch registry key (onboarding/host-state-lib.sh, default <home>/host.off) already guards the cron-installed lines (backstop, fleet-queue-tick, session-runner) but deliberately does not stop the Forgejo runner from polling pool jobs — confirming candidate 2 is unbuilt.


Session Brief

Category: enhancement
Summary: Stop a sick host (out of disk #305, or forge-unreachable #191) from winning runs-on: swarm polled pool jobs — the half of #305/#191 that #315's dispatch-side fix does not cover.

Why a session, not a swarm worker: the landing surface is the generated inline guards in .forgejo/workflows/triage.yml and resume-asks.yml (live text behind the protected .forgejo/ path) and/or the host sampler/registry machinery. These are ready-for-session by triage-labels.md; the swarm queue reads only ready-for-agent.

Current behavior:
#315 made the fleet-queue tick stand a sick host down from dispatch (fleet_queue_slot_free gates on FLEET_QUEUE_MIN_FREE_GB; the host decays off after N unclaimed dispatches). That covers every flow reaching a host via fleet_queue_dispatch (inputs.host). It does not cover the single-job scheduled flows that are runs-on: swarm — triage.yml and resume-asks.yml — which carry the pool label and are won by the Forgejo runner polling the queue, no dispatch involved. On elitebook-03 out of disk (#305) each dies at workflow prepared (mkdir .../.cache/act/<task>: no space left on device) before step one, so new issues stay untriaged and parked ready-for-human threads never get re-armed.

Desired behavior:
A sick host stops winning the polled pool jobs while sick, and resumes automatically when it recovers. The flows must end green when a host stands itself down (a red re-reds the flow). Same family as #191 (bens-mac-04 could not resolve git.matou.nz): a single "this host is sick, stop polling" rail should cover both the disk and the reachability failure.

Key design decision for the session to rule (two-way door — pick one or combine, post the ruling):

  • Candidate A — step-one yield guard. The runs-on: swarm jobs run a host-local pre-flight as step one that yields exit 0 (green) when the same min-free-gb floor / forge-reachability probe fails. Caveat to weigh: the #305 symptom is mkdir act cache failing at workflow prepared, before step one executes — so a step-one guard cleanly covers the forge-unreachable (#191) case but may not prevent the pure out-of-disk red. Confirm whether the runner reaches step one with zero free space.
  • Candidate B — sampler-tripped drain. The always-on host sampler trips a drain when the floor/reachability probe fails, so the Forgejo runner stops polling/winning pool jobs until the host recovers. Note the existing killswitch guards cron lines only, not the runner's polling — so this needs a mechanism that actually stops the runner claiming (e.g. draining the swarm label / pausing the runner service), which is the harder, more complete shape for the #305 case.

Key interfaces:

  • Reuse #315's seam — fleet_queue_free_gb and the FLEET_QUEUE_MIN_FREE_GB floor (registry min-free-gb → FLEET_QUEUE_MIN_FREE_GB via host-state-lib.sh). Already host-generic and offline-tested; do not introduce a second disk probe.
  • The host killswitch registry key (default <home>/host.off) and the sampler (host-sampler-tick.sh) if Candidate B is chosen.
  • Any new inline guard must mirror the existing never-camp / best-effort posture of the other inline guards in those workflows.

Acceptance criteria:

  • When the host is under the min-free-gb floor (or the forge is unreachable), neither triage.yml nor resume-asks.yml consumes the pool job in a way that reds the flow — the host either does not win it or yields green.
  • When the host recovers, both flows resume with no human action.
  • A healthy host's behaviour is byte-for-byte unchanged (the floor is 0/unchecked by default).
  • An offline test proves the stand-down and the recovery with df shimmed behind a full/empty-disk fixture — no docker, no network — in the same commit as the change.
  • The chosen approach (A/B/combined) is posted to this issue as an ADR 0174 ruling before landing.
  • A .forgejo/ / generated-guard change re-proves the cutover-proof fixtures (or updates them with the wording change explained), per CLAUDE.md's blast-radius rule.

Out of scope:

  • The dispatch-side path (fleet_queue_dispatch, inputs.host) — closed by #315.
  • ci.yml (push/PR-triggered; a red there is acceptable signal, not a starvation path).
  • Changing the min-free-gb floor value itself.

Related: #305 (root blocker), #315 (dispatch half), #191 (forge-unreachable sibling).

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** `enhancement` + `ready-for-session` (not `ready-for-agent`). The gap is real and the work is well-specified, but its most plausible landing surface is the generated `runs-on: swarm` inline guards and the `.forgejo/` workflows — a protected path the swarm queue never reads by construction (`triage-labels.md`: every `.forgejo/` edit is `ready-for-session` work). So an interactive session claims this; a headless swarm worker must not. **Why it is a two-way door:** a host-health guard on the polled pool jobs is additive and revertible — remove the step-one guard (or flip the label) and the flow returns to today's behaviour, no data touched, no door widened. It is not personal credentials, a security-posture widening, a member-facing trust accept, data destruction, or non-routine spend. **What proves it:** #315's seam is already host-generic and offline-tested — `fleet_queue_free_gb` / the `FLEET_QUEUE_MIN_FREE_GB` floor in `fleet-queue-lib.sh`, with `df` shimmed behind a full/empty-disk fixture in `tests/fleet-queue-lib-test.sh`. A new guard reuses that seam and gets its own offline test the same way (shimmed `df`, no docker, no network). Verified during triage: the two named flows (`triage.yml` `5,35`, `resume-asks.yml` `10,40`) are both `runs-on: swarm` and reach a host by polling the pool — their inline guards gate only on the host-capacity slots and the drive reservation, **not** on a disk floor or forge-reachability, so the claimed gap exists exactly as described. The existing `killswitch` registry key (`onboarding/host-state-lib.sh`, default `<home>/host.off`) already guards the *cron-installed* lines (backstop, fleet-queue-tick, session-runner) but deliberately does **not** stop the Forgejo runner from polling pool jobs — confirming candidate 2 is unbuilt. --- ## Session Brief **Category:** enhancement **Summary:** Stop a sick host (out of disk #305, or forge-unreachable #191) from *winning* `runs-on: swarm` polled pool jobs — the half of #305/#191 that #315's dispatch-side fix does not cover. **Why a session, not a swarm worker:** the landing surface is the generated inline guards in `.forgejo/workflows/triage.yml` and `resume-asks.yml` (live text behind the protected `.forgejo/` path) and/or the host sampler/registry machinery. These are `ready-for-session` by `triage-labels.md`; the swarm queue reads only `ready-for-agent`. **Current behavior:** `#315` made the fleet-queue *tick* stand a sick host down from *dispatch* (`fleet_queue_slot_free` gates on `FLEET_QUEUE_MIN_FREE_GB`; the host decays off after N unclaimed dispatches). That covers every flow reaching a host via `fleet_queue_dispatch` (`inputs.host`). It does **not** cover the single-job scheduled flows that are `runs-on: swarm` — `triage.yml` and `resume-asks.yml` — which carry the **pool** label and are won by the Forgejo runner *polling* the queue, no dispatch involved. On `elitebook-03` out of disk (#305) each dies at `workflow prepared` (`mkdir .../.cache/act/<task>: no space left on device`) before step one, so new issues stay untriaged and parked `ready-for-human` threads never get re-armed. **Desired behavior:** A sick host stops winning the polled pool jobs while sick, and resumes automatically when it recovers. The flows must end **green** when a host stands itself down (a red re-reds the flow). Same family as #191 (`bens-mac-04` could not resolve `git.matou.nz`): a single "this host is sick, stop *polling*" rail should cover both the disk and the reachability failure. **Key design decision for the session to rule (two-way door — pick one or combine, post the ruling):** - **Candidate A — step-one yield guard.** The `runs-on: swarm` jobs run a host-local pre-flight as step one that yields `exit 0` (green) when the same `min-free-gb` floor / forge-reachability probe fails. *Caveat to weigh:* the #305 symptom is `mkdir act cache` failing at `workflow prepared`, **before** step one executes — so a step-one guard cleanly covers the forge-unreachable (#191) case but may not prevent the pure out-of-disk red. Confirm whether the runner reaches step one with zero free space. - **Candidate B — sampler-tripped drain.** The always-on host sampler trips a drain when the floor/reachability probe fails, so the Forgejo runner stops *polling/winning* pool jobs until the host recovers. Note the existing `killswitch` guards cron lines only, **not** the runner's polling — so this needs a mechanism that actually stops the runner claiming (e.g. draining the `swarm` label / pausing the runner service), which is the harder, more complete shape for the #305 case. **Key interfaces:** - Reuse #315's seam — `fleet_queue_free_gb` and the `FLEET_QUEUE_MIN_FREE_GB` floor (registry `min-free-gb` → `FLEET_QUEUE_MIN_FREE_GB` via `host-state-lib.sh`). Already host-generic and offline-tested; do not introduce a second disk probe. - The host `killswitch` registry key (default `<home>/host.off`) and the sampler (`host-sampler-tick.sh`) if Candidate B is chosen. - Any new inline guard must mirror the existing never-camp / best-effort posture of the other inline guards in those workflows. **Acceptance criteria:** - [ ] When the host is under the `min-free-gb` floor (or the forge is unreachable), neither `triage.yml` nor `resume-asks.yml` consumes the pool job in a way that reds the flow — the host either does not win it or yields green. - [ ] When the host recovers, both flows resume with no human action. - [ ] A healthy host's behaviour is byte-for-byte unchanged (the floor is `0`/unchecked by default). - [ ] An offline test proves the stand-down and the recovery with `df` shimmed behind a full/empty-disk fixture — no docker, no network — in the same commit as the change. - [ ] The chosen approach (A/B/combined) is posted to this issue as an ADR 0174 ruling before landing. - [ ] A `.forgejo/` / generated-guard change re-proves the cutover-proof fixtures (or updates them with the wording change explained), per CLAUDE.md's blast-radius rule. **Out of scope:** - The dispatch-side path (`fleet_queue_dispatch`, `inputs.host`) — closed by #315. - `ci.yml` (push/PR-triggered; a red there is acceptable signal, not a starvation path). - Changing the `min-free-gb` floor value itself. _Related: #305 (root blocker), #315 (dispatch half), #191 (forge-unreachable sibling)._
Author
Member

Ruled by agent under ADR 0174 — veto anytime. (interactive session on matou-workstation, landing: push)

Ruling — land the two-way half (candidate B's health signal), route the runner-control to a human

Working this under the session brief's two candidate shapes, both were ruled:

Candidate A (step-one yield guard) cannot cover the headline #305 case. The brief flagged the caveat and it holds: an out-of-disk host dies at workflow prepared (mkdir .../.cache/act/<task>: no space left on device) before step one executes — so a step-one guard never runs for the #305 symptom. A would cover the forge-unreachable case (#191, where the job does reach step one) by converting its red to a green yield, but even there it only stops the red noise: the sick host still wins the tick and yields, so the frontier does not advance — only a healthy host winning instead does that. So A is not the fix.

Candidate B (stop the host winning the polled job) is the only complete shape, and its lever is irreducible — and host-specific. triage.yml/resume-asks.yml are runs-on: swarm: the Forgejo runner polls and claims them itself. Confirmed during this session (and in onboard-host retire's own words): the killswitch registry key guards only the cron-installed lines (backstop, fleet-queue-tick, session-runner) and deliberately does not stop the runner daemon from polling — "the runner is still registered and will keep taking pool jobs." So the only way a sick host stops winning a polled job is to pause its Forgejo runner service. That is a host-posture action: the service scope (systemctl system vs --user) and whether the cron user may control it are host-specific — the harness must not default a per-host value (CLAUDE.md) — and stopping the runner kills in-flight jobs and can strand a host off the pool if recovery misfires. Under ADR 0174 rule 2 that is a one-way-door-adjacent decision: I land the two-way part and route the runner-control to a human.

Landed (two-way, offline-tested, no protected-path edit)

The always-on sampler (host_state_render_sampler, onboarding/host-state-lib.sh) now records host health as the last field of every per-minute sample:

  • sick when the filesystem holding the runner's act cache ($HOME/.cache/act — the same target as #315's FLEET_QUEUE_ACT_CACHE, not /) is under the registry's min-free-gb floor; ok above it; - when the floor is off (the default — a host that declares no floor is byte-for-byte unchanged in behaviour, acceptance criterion 3).
  • FAILS OPEN: a df that cannot answer reads ok, never sick — a probe blip must not paint a healthy host sick. Reuses #315's floor and probe shape (single knob, single floor — the brief's "do not introduce a second disk probe").
  • The sampler is the one tick that still runs on a box too full to serve a job, so the sickness is now a FACT on the always-on record instead of an inferred ABSENCE of a triage/resume log (the #191/#305 pain). The health field is appended last, so every existing field position is unchanged for readers that predate it (verified fleet-tui/probe.py passes the sample lines through raw).

Proof (acceptance criterion 4 — offline, df shimmed, no docker/network): onboarding/tests/host-state-lib-test.sh — 6 new checks: the floor+act-cache are baked; sick under the floor; ok above it; fail-open to ok when df exits non-zero; a sick sample still exits 0 (never reds the tick); and - when no floor is declared. Suite 195 passed, 0 failed. Full offline loop green (tests/*.sh onboarding/tests/*.sh), incl. the onboard-lib cutover (276/0) and docs-budget (4/0). GOTCHAS #316 added (body + index row); STATUS.md #305 blocker + a docs/journal/ entry updated in the same commit.

Commit: see main (sandcastle: #316 — the sampler records host health …).

Why human

The remaining gap — a sick host not winning the polled pool jobs, so a healthy host serves triage/resume-asks and the frontier keeps moving — needs the host's Forgejo runner paused while sick and resumed on recovery. That is the one-way-door-adjacent residue:

  1. Declare a per-host runner-control in each pool host's host-registry.conf — e.g. a runner-pause / runner-resume command (systemctl --user stop forgejo-runner / … start …, or the equivalent for that box's service scope). The harness must not default this (the scope and rights are host-specific).
  2. Confirm the cron user can run it — user-service vs sudo/polkit — and accept that pausing the runner kills in-flight jobs on that host and that a misfiring resume can strand it off the pool.
  3. For elitebook-03 specifically this rides on #305's existing host work (free the disk, then declare the floor + the runner-control); the reachability sibling is #191.

The sampler now gives the signal that rail would consume (health=sick); wiring the sampler to run a declared runner-pause/resume on N consecutive sick samples (hysteresis + auto-rejoin) is the ruled-but-unbuilt next step, held for the human's posture decision above.

Relabelling ready-for-session → ready-for-human with this note. The two-way signal is on main; the drain is yours to turn on.

**Ruled by agent under ADR 0174 — veto anytime.** (interactive session on `matou-workstation`, landing: push) ## Ruling — land the two-way half (candidate B's health signal), route the runner-control to a human Working this under the session brief's two candidate shapes, both were ruled: **Candidate A (step-one yield guard) cannot cover the headline #305 case.** The brief flagged the caveat and it holds: an out-of-disk host dies at `workflow prepared` (`mkdir .../.cache/act/<task>: no space left on device`) **before step one executes** — so a step-one guard never runs for the #305 symptom. A would cover the forge-unreachable case (#191, where the job does reach step one) by converting its red to a green yield, but even there it only stops the red noise: the sick host still *wins* the tick and yields, so the frontier does not advance — only a healthy host *winning instead* does that. So A is not the fix. **Candidate B (stop the host winning the polled job) is the only complete shape, and its lever is irreducible — and host-specific.** `triage.yml`/`resume-asks.yml` are `runs-on: swarm`: the Forgejo runner *polls* and claims them itself. Confirmed during this session (and in `onboard-host retire`'s own words): the `killswitch` registry key guards only the **cron-installed** lines (backstop, `fleet-queue-tick`, session-runner) and deliberately does **not** stop the runner daemon from polling — *"the runner is still registered and will keep taking pool jobs."* So the only way a sick host stops *winning* a polled job is to pause its Forgejo runner service. That is a **host-posture action**: the service scope (`systemctl` system vs `--user`) and whether the cron user may control it are **host-specific** — the harness must not default a per-host value (CLAUDE.md) — and stopping the runner kills in-flight jobs and can strand a host off the pool if recovery misfires. Under ADR 0174 rule 2 that is a one-way-door-adjacent decision: **I land the two-way part and route the runner-control to a human.** ## Landed (two-way, offline-tested, no protected-path edit) The always-on sampler (`host_state_render_sampler`, `onboarding/host-state-lib.sh`) now records host **health** as the last field of every per-minute sample: - `sick` when the filesystem holding the runner's act cache (`$HOME/.cache/act` — the same target as #315's `FLEET_QUEUE_ACT_CACHE`, **not** `/`) is under the registry's `min-free-gb` floor; `ok` above it; `-` when the floor is off (the default — a host that declares no floor is **byte-for-byte unchanged in behaviour**, acceptance criterion 3). - **FAILS OPEN**: a `df` that cannot answer reads `ok`, never `sick` — a probe blip must not paint a healthy host sick. Reuses #315's floor and probe shape (single knob, single floor — the brief's "do not introduce a second disk probe"). - The sampler is the **one tick that still runs on a box too full to serve a job**, so the sickness is now a FACT on the always-on record instead of an inferred ABSENCE of a triage/resume log (the #191/#305 pain). The health field is appended **last**, so every existing field position is unchanged for readers that predate it (verified `fleet-tui/probe.py` passes the sample lines through raw). **Proof (acceptance criterion 4 — offline, `df` shimmed, no docker/network):** `onboarding/tests/host-state-lib-test.sh` — 6 new checks: the floor+act-cache are baked; `sick` under the floor; `ok` above it; **fail-open to `ok`** when `df` exits non-zero; a sick sample still exits 0 (never reds the tick); and `-` when no floor is declared. Suite `195 passed, 0 failed`. Full offline loop green (`tests/*.sh onboarding/tests/*.sh`), incl. the `onboard-lib` cutover (276/0) and `docs-budget` (4/0). GOTCHAS #316 added (body + index row); `STATUS.md` #305 blocker + a `docs/journal/` entry updated in the same commit. Commit: see `main` (`sandcastle: #316 — the sampler records host health …`). ## Why human The remaining gap — a sick host **not winning** the polled pool jobs, so a healthy host serves `triage`/`resume-asks` and the frontier keeps moving — needs the host's Forgejo runner **paused** while sick and resumed on recovery. That is the one-way-door-adjacent residue: 1. **Declare a per-host runner-control** in each pool host's `host-registry.conf` — e.g. a `runner-pause` / `runner-resume` command (`systemctl --user stop forgejo-runner` / `… start …`, or the equivalent for that box's service scope). The harness must not default this (the scope and rights are host-specific). 2. **Confirm the cron user can run it** — user-service vs sudo/polkit — and accept that pausing the runner kills in-flight jobs on that host and that a misfiring resume can strand it off the pool. 3. For `elitebook-03` specifically this rides on **#305**'s existing host work (free the disk, then declare the floor + the runner-control); the reachability sibling is **#191**. The sampler now gives the signal that rail would consume (`health=sick`); wiring the sampler to run a declared runner-pause/resume on N consecutive sick samples (hysteresis + auto-rejoin) is the ruled-but-unbuilt next step, held for the human's posture decision above. Relabelling `ready-for-session` → `ready-for-human` with this note. The two-way signal is on `main`; the drain is yours to turn on.
Author
Member

Watchdog healer, 2026-11-05 21:11Z (signature 0ff1caf1b642): this scope boundary just got fresh proof on bens-mac-04, and it is wider than the ticket states. Filed as #335.

bens-mac-04 went disk-full on its runner's act-cache filesystem and reds every task it wins at workflow prepared (mkdir /home/swarm/.cache/act/<hash>: no space left on device). It won — and killed — triage (runs 26455, 26459) and resume (run 26460) by polling the pool label, exactly this ticket's half. But it also killed its own swarm matrix leg (runs 26454, 26457), and every one of those five runs was event: schedule — so #315's dispatch-side min-free-gb gate could not intervene at all. The open scope is therefore not just pool-label polling: it is every schedule-triggered leg, including swarm.yml's generated per-host matrix leg.

Also worth noting for whoever picks this up: the host's leg was green at 20:58:27Z and red from 21:03 — the zero-headroom flapping #305 warns about, so a passing sibling leg is not a health signal.

Watchdog healer, 2026-11-05 21:11Z (signature `0ff1caf1b642`): this scope boundary just got fresh proof on **bens-mac-04**, and it is wider than the ticket states. Filed as #335. bens-mac-04 went disk-full on its runner's act-cache filesystem and reds every task it wins at `workflow prepared` (`mkdir /home/swarm/.cache/act/<hash>: no space left on device`). It won — and killed — `triage` (runs 26455, 26459) and `resume` (run 26460) by polling the pool label, exactly this ticket's half. But it also killed its own `swarm` matrix leg (runs 26454, 26457), and **every one of those five runs was `event: schedule`** — so #315's dispatch-side `min-free-gb` gate could not intervene at all. The open scope is therefore not just pool-label polling: it is every schedule-triggered leg, including `swarm.yml`'s generated per-host matrix leg. Also worth noting for whoever picks this up: the host's leg was green at 20:58:27Z and red from 21:03 — the zero-headroom flapping #305 warns about, so a passing sibling leg is not a health signal.
Author
Member

Live proof on Matou/dev-factory, 2026-11-07: 9 of 9 polled triage/resume legs red, 6 of 6 green when the healthy host won

Watchdog healer heal-Matou-dev-factory-1794060092-1471067. Full evidence in
#305's new comment; the short version is that this gap is currently costing
Matou/dev-factory its entire triage and re-arm frontier, twice an hour:

  • triage 281978 and resume 281992 (and 281740/281776/281829/281838/281887/
    281928/281941) were all won by the out-of-disk /home/swarm pool host and
    died at workflow prepared with
    mkdir /home/swarm/.cache/act/746fa66050527d2e: no space left on device —
    before step one, so no harness code ran and no run-verdict.txt exists.
  • Every dev-factory task matou-workstation won in the same window
    (281853/281874/281901/281919/281957/282007) was green.

So the outcome is decided entirely by which pool member wins the poll. This is
the scope boundary this ticket was split out to hold, and it is not theoretical
any more.

Two incidental findings for whoever designs the rail

1. matou-workstation declares no min-free-gb. Its
~/swarm/host-registry.conf has no min-free-gb key, so #315's floor defaults
to 0 — off. The box is itself at 98% / 6.1 G free (#340, which measured
6.6 G on 2026-11-06; the margin is still shrinking). It is the last host serving
this repo, so when it crosses zero it will start winning and killing the same
polled jobs with #315's dispatch-side rail inert. Declaring a floor there is a
one-line registry change that at least covers the dispatch half.

2. Whichever shape wins, note that the healer cannot currently see this fault
correctly.
The running self-copy is pinned at FACTORY_REF=de5ebb8, which
predates f8a4df7 (#336/#337) and c0855fb (#339). So the pre-#336
job_ran_here is live, and it keyed pool-locality on repo-scoped signals — a
fresh workdir-lock mtime and the runner journal naming the repo, both of which
fire here because this host did run green dev-factory legs in the same
window. This incident's bundle therefore asserts verbatim:

... local evidence (workdir lock / runner journal) shows THIS repo's job ran
on this host — the fault was in the job BEFORE Sandcastle span, outside the
verdict seam, NOT a leg on another pool host

which is exactly backwards — precisely the #336 false-locality class. The fix is
already on main; it just needs the vendor pin bumped (GOTCHAS 4), a human step.
Until then every heal of this fault on this repo opens with an inverted premise.

## Live proof on `Matou/dev-factory`, 2026-11-07: 9 of 9 polled `triage`/`resume` legs red, 6 of 6 green when the healthy host won Watchdog healer `heal-Matou-dev-factory-1794060092-1471067`. Full evidence in #305's new comment; the short version is that this gap is currently costing `Matou/dev-factory` its entire triage and re-arm frontier, twice an hour: - `triage` 281978 and `resume` 281992 (and 281740/281776/281829/281838/281887/ 281928/281941) were all won by the out-of-disk `/home/swarm` pool host and died at `workflow prepared` with `mkdir /home/swarm/.cache/act/746fa66050527d2e: no space left on device` — before step one, so no harness code ran and no `run-verdict.txt` exists. - Every `dev-factory` task `matou-workstation` won in the same window (281853/281874/281901/281919/281957/282007) was green. So the outcome is decided entirely by which pool member wins the poll. This is the scope boundary this ticket was split out to hold, and it is not theoretical any more. ### Two incidental findings for whoever designs the rail **1. `matou-workstation` declares no `min-free-gb`.** Its `~/swarm/host-registry.conf` has no `min-free-gb` key, so #315's floor defaults to 0 — off. The box is itself at **98% / 6.1 G free** (#340, which measured 6.6 G on 2026-11-06; the margin is still shrinking). It is the last host serving this repo, so when it crosses zero it will start winning *and* killing the same polled jobs with #315's dispatch-side rail inert. Declaring a floor there is a one-line registry change that at least covers the dispatch half. **2. Whichever shape wins, note that the healer cannot currently see this fault correctly.** The running self-copy is pinned at `FACTORY_REF=de5ebb8`, which predates `f8a4df7` (#336/#337) and `c0855fb` (#339). So the pre-#336 `job_ran_here` is live, and it keyed pool-locality on repo-scoped signals — a fresh workdir-lock mtime and the runner journal naming the repo, both of which fire here because this host *did* run green `dev-factory` legs in the same window. This incident's bundle therefore asserts verbatim: > ... local evidence (workdir lock / runner journal) shows THIS repo's job ran > on this host — the fault was in the job BEFORE Sandcastle span, outside the > verdict seam, **NOT a leg on another pool host** which is exactly backwards — precisely the #336 false-locality class. The fix is already on `main`; it just needs the vendor pin bumped (GOTCHAS 4), a human step. Until then every heal of this fault on this repo opens with an inverted premise.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

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