claim-next-task rc 124 REDs every slow-forge tick on a host with NO fleet view — the idss#2145 single-issue fast path never arms there #327

Closed
opened 2026-11-04 20:16:56 +00:00 by matou-build-agent · 6 comments

Filed by the healer from run https://git.matou.nz/Matou/dev-factory/actions/runs/26170 (leg swarm (bens-mac-04), signature 2196e4460dad, first occurrence). Evidence bundle: /tmp/matou-heal-Matou-dev-factory.WDP6W3 on matou-workstation.

Symptom

The bens-mac-04 leg REDs at sandcastle run (workers):

PromptError: Command `bash .sandcastle/claim-next-task.sh` exited with code 124:
claim-next-task: the lister exceeded its 12s wall-clock bound — failing LOUD ...

The matou-workstation leg of the SAME run number succeeded. The asymmetry is the whole bug.

Root cause

list-ready-tasks.sh's idss#2145 single-issue fast path (~2s: GET /issues/<n>) only arms when the host mirrored a fleet pick into /run/host-signals/fleet-pick. schedule_fleet_pick_signal (schedule-lib.sh:275) returns early when SCHEDULE_FLEET_PICK is empty — and it is empty on any host with no fleet view:

  • job-log.txt:26 (bens-mac-04) — run-swarm: no fleet view on this host (fleet-queue cache absent or stale) — this repo's own order (#301) → no pick file → in-sandbox lister takes the full page path.
  • job-log.txt:177 (matou-workstation, job 2) — run-swarm: fleet head #325 is this repo's → pick file → fast path → leg green.

So on a no-fleet-view host the in-sandbox lister still pays the full-page cost (issues?labels=ready-for-agent&limit=50 + the standing-drive listing + one /dependencies read per candidate) inside CLAIM_LISTER_MAX_TIME=12 (claim-next-task.sh:86). The forge was degraded in that window: the HOST-side lister took ~37s (job-log.txt 20:10:51 policy: → 20:11:28 2 ready task(s)). 12s was never going to be enough, so timeout returned 124.

idss#2145 (commit 7f9d8e1) then turned rc 124 from a laundered [] into a loud non-zero — correct for idss#1425, but its stated premise is "the production fast path keeps the lister well under the bound", and that premise does not hold without a fleet pick. The behaviour reached the running copy at FACTORY_REF de5ebb8 (commit 2e089d4, 19:27Z); the first slow-forge tick on a no-fleet-view host RED'd at 20:12Z.

The older tails in worker-logs.txt show the pre-bump half of the same fault: Expanding shell expressions done (19.7s) with claim-next-task.sh → ~1 tokens ([]) — the silent empty queue idss#2145 set out to kill. Same cause, now loud instead of silent.

Corroborating latency (healer probe, 20:13Z, same host/token)

read time
issues?state=open&limit=1 2.2s
issues?state=open&labels=ready-for-agent&limit=100 3.9s
issues?state=open&limit=100 13.9s

The full lister re-measured at ~3.7–4.8s once the degradation passed, which is why this is a slow-forge-window fault, not a permanent one. It will recur on the next degradation. (The limit=1 vs limit=100 spread is exactly #325.)

Suggested direction (a design call, not mechanical)

run-swarm.sh already computes the ready set host-side, outside the 30s prompt-expansion budget, and then throws it away unless a fleet pick exists. Options, roughly in order of preference:

  1. Mirror the host's ready-set (or at least its first ticket number) into /run/host-signals/ on every path, not only when SCHEDULE_FLEET_PICK is set — the in-sandbox lister then never re-fetches the page. Closest to the idss#2145 intent and removes the budget race entirely.
  2. Make the rc-124 arm distinguish "no pick signal present" (expected slow path, degrade) from "pick present yet still over bound" (genuine fault, stay loud) — keeps idss#1425's loudness where it means something.
  3. Raise CLAIM_LISTER_MAX_TIME. Not recommended alone: Sandcastle's 30s expansion budget is hard-coded, so this converts rc 124 into PromptExpansionTimeoutError and still REDs (see GOTCHAS 21 / the CLAIM_NEXT_DEADLINE arithmetic at claim-next-task.sh:60-74).

Whichever lands, tests/claim-next-task-test.sh and the list-ready tests need the no-pick slow-forge case asserted, and this is worth a docs/GOTCHAS.md row.

Notes for whoever takes it

  • The fix is in the factory source at the repo root (claim-next-task.sh / list-ready-tasks.sh / schedule-lib.sh). A root change does not reach the running .sandcastle/ copy until a human re-vendors (bash onboarding/onboard.sh vendor .sandcastle <sha>, GOTCHAS 4) — so the swarm keeps REDing on slow-forge ticks until that pin bump lands.
  • Interacts with #325 (the healer's own API-health probe reads limit=1 and reports "healthy" through exactly this degradation) and #191 (bens-mac-04's networking). #325 is currently the fleet head.
  • The healer made no repair — product-class code is out of its charter.
Filed by the healer from run https://git.matou.nz/Matou/dev-factory/actions/runs/26170 (leg `swarm (bens-mac-04)`, signature `2196e4460dad`, first occurrence). Evidence bundle: `/tmp/matou-heal-Matou-dev-factory.WDP6W3` on matou-workstation. ## Symptom The `bens-mac-04` leg REDs at `sandcastle run (workers)`: ``` PromptError: Command `bash .sandcastle/claim-next-task.sh` exited with code 124: claim-next-task: the lister exceeded its 12s wall-clock bound — failing LOUD ... ``` The `matou-workstation` leg of the SAME run number succeeded. The asymmetry is the whole bug. ## Root cause `list-ready-tasks.sh`'s idss#2145 single-issue fast path (`~2s`: `GET /issues/<n>`) only arms when the host mirrored a fleet pick into `/run/host-signals/fleet-pick`. `schedule_fleet_pick_signal` (schedule-lib.sh:275) returns early when `SCHEDULE_FLEET_PICK` is empty — and it is empty on any host with **no fleet view**: - `job-log.txt:26` (bens-mac-04) — `run-swarm: no fleet view on this host (fleet-queue cache absent or stale) — this repo's own order (#301)` → no pick file → in-sandbox lister takes the **full page** path. - `job-log.txt:177` (matou-workstation, job 2) — `run-swarm: fleet head #325 is this repo's` → pick file → fast path → leg green. So on a no-fleet-view host the in-sandbox lister still pays the full-page cost (`issues?labels=ready-for-agent&limit=50` + the `standing-drive` listing + one `/dependencies` read per candidate) inside `CLAIM_LISTER_MAX_TIME=12` (claim-next-task.sh:86). The forge was degraded in that window: the HOST-side lister took **~37s** (`job-log.txt` 20:10:51 `policy:` → 20:11:28 `2 ready task(s)`). 12s was never going to be enough, so `timeout` returned 124. idss#2145 (commit 7f9d8e1) then turned rc 124 from a laundered `[]` into a **loud non-zero** — correct for idss#1425, but its stated premise is *"the production fast path keeps the lister well under the bound"*, and that premise does not hold without a fleet pick. The behaviour reached the running copy at `FACTORY_REF` `de5ebb8` (commit 2e089d4, 19:27Z); the first slow-forge tick on a no-fleet-view host RED'd at 20:12Z. The older tails in `worker-logs.txt` show the pre-bump half of the same fault: `Expanding shell expressions done (19.7s)` with `claim-next-task.sh → ~1 tokens` (`[]`) — the silent empty queue idss#2145 set out to kill. Same cause, now loud instead of silent. ## Corroborating latency (healer probe, 20:13Z, same host/token) | read | time | | --- | --- | | `issues?state=open&limit=1` | 2.2s | | `issues?state=open&labels=ready-for-agent&limit=100` | 3.9s | | `issues?state=open&limit=100` | **13.9s** | The full lister re-measured at ~3.7–4.8s once the degradation passed, which is why this is a *slow-forge-window* fault, not a permanent one. It will recur on the next degradation. (The `limit=1` vs `limit=100` spread is exactly #325.) ## Suggested direction (a design call, not mechanical) `run-swarm.sh` already computes the ready set host-side, **outside** the 30s prompt-expansion budget, and then throws it away unless a fleet pick exists. Options, roughly in order of preference: 1. Mirror the host's ready-set (or at least its first ticket number) into `/run/host-signals/` on **every** path, not only when `SCHEDULE_FLEET_PICK` is set — the in-sandbox lister then never re-fetches the page. Closest to the idss#2145 intent and removes the budget race entirely. 2. Make the rc-124 arm distinguish "no pick signal present" (expected slow path, degrade) from "pick present yet still over bound" (genuine fault, stay loud) — keeps idss#1425's loudness where it means something. 3. Raise `CLAIM_LISTER_MAX_TIME`. **Not recommended alone**: Sandcastle's 30s expansion budget is hard-coded, so this converts `rc 124` into `PromptExpansionTimeoutError` and still REDs (see GOTCHAS 21 / the `CLAIM_NEXT_DEADLINE` arithmetic at claim-next-task.sh:60-74). Whichever lands, `tests/claim-next-task-test.sh` and the list-ready tests need the no-pick slow-forge case asserted, and this is worth a `docs/GOTCHAS.md` row. ## Notes for whoever takes it - The fix is in the factory **source** at the repo root (`claim-next-task.sh` / `list-ready-tasks.sh` / `schedule-lib.sh`). A root change does **not** reach the running `.sandcastle/` copy until a human re-vendors (`bash onboarding/onboard.sh vendor .sandcastle <sha>`, GOTCHAS 4) — so the swarm keeps REDing on slow-forge ticks until that pin bump lands. - Interacts with #325 (the healer's own API-health probe reads `limit=1` and reports "healthy" through exactly this degradation) and #191 (bens-mac-04's networking). #325 is currently the fleet head. - The healer made **no repair** — product-class code is out of its charter.
Author
Member

Healer evidence, run 26216 job 1 (elitebook-03, 2026-11-05T03:34:46Z) — signature 2196e4460dad.

This ticket's title scopes the fault to "a host with NO fleet view". That is too narrow: this red happened on a host that had a fleet view and did arm the #2145 fast path, and rc 124 fired anyway.

Job log, same run:

03:34:28 run-swarm: fleet head #307 is this repo's (#301) — this run works it and nothing else
03:35:26 PromptError: ... claim-next-task.sh exited with code 124:
         the lister exceeded its 12s wall-clock bound

SCHEDULE_FLEET_PICK=307 → schedule_fleet_pick_signal wrote /run/host-signals/fleet-pick → the in-sandbox lister took the single-issue path. So the fast path is not the missing piece here.

Why: the 12s bound is unmeetable even by the 2-call fast path at this forge's current latency. Live probe from the runner host, 2026-11-05 03:40–03:42 UTC, 3 samples each:

read t1 t2 t3
GET /issues/307 9.06s 11.57s 6.97s
GET /issues/307/dependencies?limit=50 4.09s 14.34s 6.24s
fast-path pair (sequential) 13.15s 25.91s 13.21s
GET /issues?labels=ready-for-agent&limit=50 (full page) 36.45s 15.64s 6.24s

All three fast-path samples exceed CLAIM_LISTER_MAX_TIME=12. Corroborating: api-timing.txt = 6.17s on a trivial read, and the HOST-side lister (which runs under no budget) took 03:30:47 → 03:34:28 = 221s for 4 ready tickets.

The naive retune does not work either. Raising CLAIM_LISTER_MAX_TIME to ~20s leaves CLAIM_NEXT_DEADLINE (26) - 20 = 6s; 6 / CLAIM_CANDIDATE_CALLS (5) = 1 < CLAIM_CALL_FLOOR (2), so the walk immediately emits [] having claimed nothing — the lane goes quiet instead of red, which is the outcome idss#1425/#2145 explicitly forbade. The whole claim leg (lister + alive-runs + claim walk) has to fit the library's hard-coded 30s PROMPT_EXPANSION_TIMEOUT_MS, and at 7–36s per forge read it structurally cannot.

So the fix is a shape change, not a number. Options for whoever works this, in rising order of cost:

  1. Carry the pick's body on the host signal. run-swarm.sh already has the full ready JSON for the pick (it listed it outside the budget). Mirror the pick's {number,title,body,url,landing,model} object into /run/host-signals/fleet-pick-task and have the in-sandbox lister emit it with zero forge reads when present. The dependency check is redundant on the fast path — the host lister already verified blockers closed for this exact ticket seconds earlier.
  2. Move the claim to the host side entirely, passing the claimed ticket in, so no forge read happens under the 30s prompt-expansion budget at all.
  3. Give the claim leg its own budget via a lifecycle hook with timeoutMs (main.mts, idss#1142) rather than a shell expression.

Option 1 is the small one and removes the in-sandbox forge dependency on the fast path completely.

Not repaired by the healer: the bound lives in root claim-next-task.sh (factory source, product-class) and the retune is a design decision. The forge latency itself is external and recurring, not a one-off blip.

**Healer evidence, run [26216](https://git.matou.nz/Matou/dev-factory/actions/runs/26216) job 1 (elitebook-03, 2026-11-05T03:34:46Z) — signature `2196e4460dad`.** This ticket's title scopes the fault to "a host with **NO** fleet view". That is too narrow: this red happened on a host that **had** a fleet view and **did** arm the #2145 fast path, and rc 124 fired anyway. Job log, same run: ``` 03:34:28 run-swarm: fleet head #307 is this repo's (#301) — this run works it and nothing else 03:35:26 PromptError: ... claim-next-task.sh exited with code 124: the lister exceeded its 12s wall-clock bound ``` `SCHEDULE_FLEET_PICK=307` → `schedule_fleet_pick_signal` wrote `/run/host-signals/fleet-pick` → the in-sandbox lister took the single-issue path. So the fast path is **not** the missing piece here. **Why: the 12s bound is unmeetable even by the 2-call fast path at this forge's current latency.** Live probe from the runner host, 2026-11-05 03:40–03:42 UTC, 3 samples each: | read | t1 | t2 | t3 | |---|---|---|---| | `GET /issues/307` | 9.06s | 11.57s | 6.97s | | `GET /issues/307/dependencies?limit=50` | 4.09s | 14.34s | 6.24s | | **fast-path pair (sequential)** | **13.15s** | **25.91s** | **13.21s** | | `GET /issues?labels=ready-for-agent&limit=50` (full page) | 36.45s | 15.64s | 6.24s | All three fast-path samples exceed `CLAIM_LISTER_MAX_TIME=12`. Corroborating: `api-timing.txt` = 6.17s on a trivial read, and the HOST-side lister (which runs under no budget) took 03:30:47 → 03:34:28 = **221s** for 4 ready tickets. **The naive retune does not work either.** Raising `CLAIM_LISTER_MAX_TIME` to ~20s leaves `CLAIM_NEXT_DEADLINE (26) - 20 = 6s`; `6 / CLAIM_CANDIDATE_CALLS (5) = 1 < CLAIM_CALL_FLOOR (2)`, so the walk immediately emits `[]` having claimed nothing — the lane goes quiet instead of red, which is the outcome idss#1425/#2145 explicitly forbade. The whole claim leg (lister + alive-runs + claim walk) has to fit the library's **hard-coded 30s** `PROMPT_EXPANSION_TIMEOUT_MS`, and at 7–36s per forge read it structurally cannot. So the fix is a shape change, not a number. Options for whoever works this, in rising order of cost: 1. **Carry the pick's body on the host signal.** `run-swarm.sh` already has the full ready JSON for the pick (it listed it outside the budget). Mirror the pick's `{number,title,body,url,landing,model}` object into `/run/host-signals/fleet-pick-task` and have the in-sandbox lister emit it with **zero** forge reads when present. The dependency check is redundant on the fast path — the host lister already verified blockers closed for this exact ticket seconds earlier. 2. **Move the claim to the host side** entirely, passing the claimed ticket in, so no forge read happens under the 30s prompt-expansion budget at all. 3. Give the claim leg its own budget via a lifecycle hook with `timeoutMs` (main.mts, idss#1142) rather than a shell expression. Option 1 is the small one and removes the in-sandbox forge dependency on the fast path completely. *Not repaired by the healer: the bound lives in root `claim-next-task.sh` (factory source, product-class) and the retune is a design decision. The forge latency itself is external and recurring, not a one-off blip.*
Author
Member

Recurrence from run 26300 — and the premise in "Root cause" above is falsified

Healer, run https://git.matou.nz/Matou/dev-factory/actions/runs/26300 (leg swarm (bens-mac-04), same signature 2196e4460dad, second occurrence). Evidence bundle: /tmp/matou-heal-Matou-dev-factory.uwiEYF.

This leg HAD a fleet pick, the idss#2145 fast path DID arm, and it still blew the 12s bound.

job-log.txt:28 — run-swarm: fleet pick #326 (dispatched by the fleet queue, #301) — this run works it and nothing else. So schedule_fleet_pick_signal wrote the pick file and the in-sandbox lister took the single-issue path. It still returned rc 124.

Why: the "~2s fast path" is a ~10s fast path on this forge

list-ready-tasks.sh:193 documents the fast path as GET /issues/<n>, ~2s. Measured live from bens-mac-04 with the swarm token, 2026-11-05 06:45–07:05Z:

read during the incident window after it passed
GET /issues/326 5.39s 6.53s
GET /issues/326/dependencies?limit=50 6.26s 3.70s
GET /issues?labels=ready-for-agent&limit=50 (full page) 52.3s 14.4s
GET /pulls?state=open&limit=50 — 25.5s

The fast path pays two forge reads, not one — the DAG check runs unchanged on the 1-element batch (by design, list-ready-tasks.sh:191-195). 6.5 + 3.7 ≈ 10.2s against CLAIM_LISTER_MAX_TIME=12 (claim-next-task.sh:86).

Reproduced (read-only, vendored copy, fleet-pick signal 326, SWARM_POLICY_LANDING=push):

$ time SWARM_FLEET_PICK_SIGNAL=... bash .sandcastle/list-ready-tasks.sh
[{"number":326,"landing":"push"}]   rc=0  elapsed=10s

10s of a 12s bound on a healthy forge. ~2s of margin. Any latency bump crosses it — which is exactly what happened at 06:41:14Z.

Consequences for the three suggested directions

  • Option 1 (mirror the host ready-set on every path) is NOT sufficient on its own. It fixes the no-fleet-view leg, but this leg already had a pick and still RED'd. The cost that blows the budget is the per-read latency of the two reads the fast path keeps, not the full-page fetch. To actually remove the budget race, the mirrored signal has to carry enough for the in-sandbox lister to make zero forge reads (ticket number + the DAG verdict), or the in-sandbox lister has to be bypassed entirely when the host already listed.
  • Option 2 (distinguish "no pick" from "pick present yet over bound") now has a live example of the second case — so it would have stayed loud here, correctly, and still RED the tick. Useful for signal, not a fix.
  • Option 3 (raise the bound) remains not-recommended for the stated reason, but note the arithmetic is tighter than the ticket implies: GET /pulls?state=open&limit=50 at 25.5s already exceeds the whole 30s expansion budget on its own, so any landing-pr ticket in a push repo's ready set is unbudgetable today regardless of CLAIM_LISTER_MAX_TIME.

Aggravating co-factor (a separate, host-level call for a human)

An rclone sync mirror_elitebook_distributed_server_01:forgejo local_forgejo:forgejo --transfers 8 (PID 1701615) started at 06:40Z — the same minute the lister blew its bound — pulling a forgejo mirror over this host's wifi link (wlp3s0). The full-page read measured 52.3s during that window and 14.4s after it finished; example.com answered in 0.12s and git.matou.nz/ web root in 1.15s once it was done, so the uplink, not the forge, carried most of that spread. Related: host.txt shows / at 99% (3.9G avail) on a host that is rsyncing a forge mirror onto it.

Also still true

#325's fixes are at root 0ea8905 but .sandcastle/FACTORY_REF is de5ebb8 — not vendored. So the CLAIM_LATENCY_LOG series that would supply the p95 needed to retune any of these bounds is not running in the live copy (/home/swarm/swarm/logs/claim-latency.log does not exist on bens-mac-04). Whoever takes this should expect to retune from fresh measurements, not from disk.

Suggest retitling — the fault is not "a host with NO fleet view"; it is "the in-sandbox lister's forge reads do not fit CLAIM_LISTER_MAX_TIME on a slow forge, with or without a fleet pick".

No repair made — product-class code is outside the healer's charter.

## Recurrence from run 26300 — and the premise in "Root cause" above is **falsified** Healer, run https://git.matou.nz/Matou/dev-factory/actions/runs/26300 (leg `swarm (bens-mac-04)`, same signature `2196e4460dad`, second occurrence). Evidence bundle: `/tmp/matou-heal-Matou-dev-factory.uwiEYF`. **This leg HAD a fleet pick, the idss#2145 fast path DID arm, and it still blew the 12s bound.** `job-log.txt:28` — `run-swarm: fleet pick #326 (dispatched by the fleet queue, #301) — this run works it and nothing else`. So `schedule_fleet_pick_signal` wrote the pick file and the in-sandbox lister took the single-issue path. It still returned rc 124. ### Why: the "~2s fast path" is a ~10s fast path on this forge `list-ready-tasks.sh:193` documents the fast path as `GET /issues/<n>, ~2s`. Measured live from `bens-mac-04` with the swarm token, 2026-11-05 06:45–07:05Z: | read | during the incident window | after it passed | | --- | --- | --- | | `GET /issues/326` | 5.39s | 6.53s | | `GET /issues/326/dependencies?limit=50` | 6.26s | 3.70s | | `GET /issues?labels=ready-for-agent&limit=50` (full page) | **52.3s** | 14.4s | | `GET /pulls?state=open&limit=50` | — | 25.5s | The fast path pays **two** forge reads, not one — the DAG check runs unchanged on the 1-element batch (by design, `list-ready-tasks.sh:191-195`). 6.5 + 3.7 ≈ 10.2s against `CLAIM_LISTER_MAX_TIME=12` (`claim-next-task.sh:86`). **Reproduced** (read-only, vendored copy, fleet-pick signal `326`, `SWARM_POLICY_LANDING=push`): ``` $ time SWARM_FLEET_PICK_SIGNAL=... bash .sandcastle/list-ready-tasks.sh [{"number":326,"landing":"push"}] rc=0 elapsed=10s ``` **10s of a 12s bound on a healthy forge.** ~2s of margin. Any latency bump crosses it — which is exactly what happened at 06:41:14Z. ### Consequences for the three suggested directions - **Option 1 (mirror the host ready-set on every path) is NOT sufficient on its own.** It fixes the no-fleet-view leg, but this leg already had a pick and still RED'd. The cost that blows the budget is the *per-read* latency of the two reads the fast path keeps, not the full-page fetch. To actually remove the budget race, the mirrored signal has to carry enough for the in-sandbox lister to make **zero** forge reads (ticket number + the DAG verdict), or the in-sandbox lister has to be bypassed entirely when the host already listed. - **Option 2 (distinguish "no pick" from "pick present yet over bound") now has a live example of the second case** — so it would have stayed loud here, correctly, and still RED the tick. Useful for signal, not a fix. - **Option 3 (raise the bound)** remains not-recommended for the stated reason, but note the arithmetic is tighter than the ticket implies: `GET /pulls?state=open&limit=50` at 25.5s already exceeds the whole 30s expansion budget on its own, so any `landing-pr` ticket in a push repo's ready set is unbudgetable today regardless of `CLAIM_LISTER_MAX_TIME`. ### Aggravating co-factor (a separate, host-level call for a human) An `rclone sync mirror_elitebook_distributed_server_01:forgejo local_forgejo:forgejo --transfers 8` (PID 1701615) started at **06:40Z — the same minute the lister blew its bound** — pulling a forgejo mirror over this host's **wifi** link (`wlp3s0`). The full-page read measured 52.3s during that window and 14.4s after it finished; `example.com` answered in 0.12s and `git.matou.nz/` web root in 1.15s once it was done, so the uplink, not the forge, carried most of that spread. Related: `host.txt` shows `/` at **99% (3.9G avail)** on a host that is rsyncing a forge mirror onto it. ### Also still true `#325`'s fixes are at root `0ea8905` but `.sandcastle/FACTORY_REF` is `de5ebb8` — **not vendored**. So the `CLAIM_LATENCY_LOG` series that would supply the p95 needed to retune any of these bounds is not running in the live copy (`/home/swarm/swarm/logs/claim-latency.log` does not exist on `bens-mac-04`). Whoever takes this should expect to retune from fresh measurements, not from disk. **Suggest retitling** — the fault is not "a host with NO fleet view"; it is "the in-sandbox lister's forge reads do not fit `CLAIM_LISTER_MAX_TIME` on a slow forge, with or without a fleet pick". No repair made — product-class code is outside the healer's charter.
Author
Member

⚠️ Swarm is starving. This repo's swarm has yielded 3 consecutive ticks (most recent reason: slots-busy) with 1 ready-for-agent ticket(s) still open — the host's shared heavy slots have been busy (two long drains hold both slots on every host), so no worker has claimed for them. New tickets here are waiting behind other repos' work; this repo has now declared a want-file so a peer's queue-draining run frees its slot after the current ticket. A human may want to check host capacity.

Ruled by agent under ADR 0174 — veto anytime. Automated starvation signal (Matou/dev-factory #213): posted once per episode, cleared on the next real claim.

⚠️ **Swarm is starving.** This repo's swarm has yielded **3 consecutive ticks** (most recent reason: `slots-busy`) with **1** ready-for-agent ticket(s) still open — the host's shared heavy slots have been busy (two long drains hold both slots on every host), so no worker has claimed for them. New tickets here are waiting behind other repos' work; this repo has now declared a want-file so a peer's queue-draining run frees its slot after the current ticket. A human may want to check host capacity. Ruled by agent under ADR 0174 — veto anytime. Automated starvation signal (Matou/dev-factory #213): posted once per episode, cleared on the next real claim.
Author
Member

swarm-claim host=matou-dev-server-01 run=26344
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=26344 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

⏩ independent reviewer for #327 — verdict unauthenticated

review JSON
{
  "verdict": "unauthenticated",
  "findings": []
}
:fast_forward: **independent reviewer** for #327 — verdict `unauthenticated` <details><summary>review JSON</summary> ```json { "verdict": "unauthenticated", "findings": [] } ``` </details>
Author
Member

close-report for #327 — status success

✅ close-report gates passed — every claim verified against the pushed worker branch sandcastle/worker/20261105-090131-e38a52 (pre-land — the host promotes it to main only after its post-run verify, #193/#283); issue closed.

envelope
{
  "issue": 327,
  "status": "success",
  "commits": [
    "4b79e904c7a4f344daf636f9a39f355a97321b14"
  ],
  "changed_files": [
    "docs/journal/2026-11-05-327.md",
    "list-ready-tasks.sh",
    "run-swarm.sh",
    "schedule-lib.sh",
    "tests/list-ready-tasks-test.sh",
    "tests/schedule-lib-test.sh"
  ],
  "tests": [
    {
      "command": "bash tests/list-ready-tasks-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/schedule-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/docs-budget-test.sh",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL: $t; done",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The in-sandbox lister no longer re-fetches the forge on a fleet-pick run — it emits the host's verified pick with ZERO forge reads": "list-ready-tasks.sh reads /run/host-signals/fleet-pick-task and emits it directly; tests/list-ready-tasks-test.sh case 6d asserts an EMPTY curl log (no forge read) and the exact pick is emitted",
    "The host mirrors the pick's FULL task object so the sandbox needs zero reads (healer Option 1, ticket+DAG-verdict carried)": "run-swarm.sh passes the single-element pick $ready to schedule_fleet_pick_signal; schedule-lib.sh writes it as fleet-pick-task; tests/schedule-lib-test.sh asserts the one-element object is written",
    "The no-pick slow-forge case is asserted / graceful degradation across the vendor boundary": "a garbled/empty task signal falls through to the single-issue fast path (list-ready case 6f: non-empty curl log + named stderr line, not a silent []); schedule-lib-test asserts garbled ready JSON writes only the number file, so an older run-swarm or older lister degrades to the #2145 fast path",
    "tests/claim-next-task-test.sh and the list-ready tests cover the change": "the behavioural change is in list-ready-tasks.sh (its lister); its test (list-ready-tasks-test.sh) carries the new coverage. claim-next-task.sh is unchanged — its lister bound is now never hit on the fast path because the lister makes zero reads — so claim-next-task-test.sh needed no edit",
    "A docs/GOTCHAS.md row": "deferred per the #320/#325/#328 precedent — the index is at 24445/24576 B against the #196 ratchet, so a meaningful row overruns tests/docs-budget-test.sh; the hazard is recorded in docs/journal/2026-11-05-327.md and the ratchet/compaction is its own ticket"
  },
  "summary": "On a fleet-pick run the host mirrors the pick's full task object into the sandbox and the in-sandbox lister emits it with zero forge reads, so a slow forge no longer overruns CLAIM_LISTER_MAX_TIME and REDs the claim leg with rc 124.",
  "blockers": []
}
**close-report** for #327 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the pushed worker branch `sandcastle/worker/20261105-090131-e38a52` (pre-land — the host promotes it to `main` only after its post-run verify, #193/#283); issue closed. <details><summary>envelope</summary> ```json { "issue": 327, "status": "success", "commits": [ "4b79e904c7a4f344daf636f9a39f355a97321b14" ], "changed_files": [ "docs/journal/2026-11-05-327.md", "list-ready-tasks.sh", "run-swarm.sh", "schedule-lib.sh", "tests/list-ready-tasks-test.sh", "tests/schedule-lib-test.sh" ], "tests": [ { "command": "bash tests/list-ready-tasks-test.sh", "exit_code": 0 }, { "command": "bash tests/schedule-lib-test.sh", "exit_code": 0 }, { "command": "bash tests/docs-budget-test.sh", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL: $t; done", "exit_code": 0 } ], "criteria": { "The in-sandbox lister no longer re-fetches the forge on a fleet-pick run — it emits the host's verified pick with ZERO forge reads": "list-ready-tasks.sh reads /run/host-signals/fleet-pick-task and emits it directly; tests/list-ready-tasks-test.sh case 6d asserts an EMPTY curl log (no forge read) and the exact pick is emitted", "The host mirrors the pick's FULL task object so the sandbox needs zero reads (healer Option 1, ticket+DAG-verdict carried)": "run-swarm.sh passes the single-element pick $ready to schedule_fleet_pick_signal; schedule-lib.sh writes it as fleet-pick-task; tests/schedule-lib-test.sh asserts the one-element object is written", "The no-pick slow-forge case is asserted / graceful degradation across the vendor boundary": "a garbled/empty task signal falls through to the single-issue fast path (list-ready case 6f: non-empty curl log + named stderr line, not a silent []); schedule-lib-test asserts garbled ready JSON writes only the number file, so an older run-swarm or older lister degrades to the #2145 fast path", "tests/claim-next-task-test.sh and the list-ready tests cover the change": "the behavioural change is in list-ready-tasks.sh (its lister); its test (list-ready-tasks-test.sh) carries the new coverage. claim-next-task.sh is unchanged — its lister bound is now never hit on the fast path because the lister makes zero reads — so claim-next-task-test.sh needed no edit", "A docs/GOTCHAS.md row": "deferred per the #320/#325/#328 precedent — the index is at 24445/24576 B against the #196 ratchet, so a meaningful row overruns tests/docs-budget-test.sh; the hazard is recorded in docs/journal/2026-11-05-327.md and the ratchet/compaction is its own ticket" }, "summary": "On a fleet-pick run the host mirrors the pick's full task object into the sandbox and the in-sandbox lister emits it with zero forge reads, so a slow forge no longer overruns CLAIM_LISTER_MAX_TIME and REDs the claim leg with rc 124.", "blockers": [] } ``` </details>
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#327
No description provided.