harness: post-#2145 the alive-runs fetch is the claim path's dominant cost — actions/tasks answers in 11-15s against a 20s cap (rc 28 red run 59381), and the 16s walk-admission cliff still launders [] (the last #1425 leg) #2150

Open
opened 2026-11-04 04:17:59 +00:00 by matou-build-agent · 3 comments

Found by the healer on run 59381 (swarm (bens-mac-04), signature f99e8b1c38d7, 2026-11-04T04:10:55Z).

The fault that red the tick

PromptError: Command `bash .sandcastle/claim-next-task.sh` exited with code 28
claim-next-task: the alive-runs fetch (the actions-API tasks list) faulted (rc=28) — failing LOUD ...

rc 28 is curl's --max-time. claim_alive_runs (.sandcastle/claim-lib.sh:123) reads
actions/tasks?limit=100&page=1 under CLAIM_ALIVE_MAX_TIME (20s,
claim-next-task.sh:76) with CLAIM_ALIVE_RETRIES=0 in-sandbox, so one read over 20s
exits 28. The script behaved exactly as designed (#1425 loud arm, no claim posted) —
the bug is the sizing underneath it, not the loudness.

Why #2145 moved the bottleneck onto this leg

389dfd1b cut the in-sandbox lister to a single GET /issues/<n>. Measured live from
bens-mac-04, 2026-11-03 23:1x local:

read latency
GET /issues/2123 (the #2145 fast path) 1.7s, 2.6s
GET /actions/tasks?limit=100&page=1 12.2s, 14.9s, 11.3s

So the lister is ~2s and the alive fetch is now the dominant cost on the 30s
prompt-expansion path, at 11–15s against its 20s cap. The 04:10 excursion past 20s is a
hot-fleet tick (runs.json: 4 hosts, ~50 runs in 45 min), not an outage — 59383/59385
succeeded either side of it.

The real defect: a 16s cliff that launders [] (the last #1425 leg)

Walk admission is CLAIM_CANDIDATE_CALLS(5) x CLAIM_CALL_FLOOR(2) <= CLAIM_NEXT_DEADLINE(26) - SECONDS,
i.e. the walk admits nothing once the clock passes 16s. Three regimes:

  • alive <= 16s — the walk runs. Correct.
  • 16s < alive <= 20s — the fetch SUCCEEDS and the walk admits nothing, and
    claim-next-task.sh:236 emits [] at exit 0.
    That [] renders as an empty
    ready-tasks block, which a worker's Done check reads as "nothing to do" — fail-closed
    at the script, fail-OPEN at the surface that matters. This is precisely the shape
    #1425 forbids and #2145 closed on the other two legs (rc 124, alive-fault).
  • alive > 20s — rc 28, loud. This incident.

With alive measured at 11–15s, the silent middle regime is routinely reachable. Reproduced
against the test fakes (clock spent before the walk, 1-element queue):

$ CLAIM_NEXT_DEADLINE=0 bash .sandcastle/claim-next-task.sh
rc=0 stdout=[]
stderr: claim-next-task: 0s of the 0s deadline left after 0 candidate(s) of 1 — too little
to bound one candidate's 5 calls at the 2s floor; emitting [] ...

Two worker logs in this run's window show that surface live — an empty ready-tasks block
while the lister itself still returned a task (20261103-215024: "it returned task #2129";
20261103-210914: same shape) — while 8 tickets were ready-for-agent at 04:04:02.

Why the healer did not repair it

  1. The 16–20s arm should exit non-zero like its two siblings — but on a 4-host fleet
    ticking every ~1-2 min that converts routine slow-forge ticks into REDs and risks a
    heal storm. That trade-off is a ruling, not a knob.
  2. No knob widens the margin: raising CLAIM_ALIVE_MAX_TIME eats the walk's room and REDs
    on the library's hard 30s; lowering limit=100 risks an alive run falling off the page,
    which breaks arbitration into a double-claim.
  3. The structural fix is #2145's own move applied to this leg — have the host (outside the
    30s budget, where it already builds the fleet view) mirror the alive-runs snapshot in as
    a host-signal. That needs a ruling first: claim-lib.sh:34-38 rests on the snapshot
    being "only seconds stale", and a host-mirrored one is minutes stale, which is exactly
    the double-claim the janitor cannot catch.

Asks

  • Rule on (1): should the deadline-abort arm fail loud, matching #1425?
  • Rule on (3): is a host-mirrored alive snapshot acceptable against the claim-lib.sh
    staleness invariant, and if so with what freshness bound?

Follow-up of #2145 (closed). Evidence: /tmp/matou-heal-Matou-idss.VIKrM7
(run-verdict.txt, job-log.txt, worker-logs.txt, worker-logs-older.txt, runs.json).

Found by the healer on run 59381 (`swarm (bens-mac-04)`, signature `f99e8b1c38d7`, 2026-11-04T04:10:55Z). ## The fault that red the tick ``` PromptError: Command `bash .sandcastle/claim-next-task.sh` exited with code 28 claim-next-task: the alive-runs fetch (the actions-API tasks list) faulted (rc=28) — failing LOUD ... ``` rc 28 is curl's `--max-time`. `claim_alive_runs` (`.sandcastle/claim-lib.sh:123`) reads `actions/tasks?limit=100&page=1` under `CLAIM_ALIVE_MAX_TIME` (20s, `claim-next-task.sh:76`) with `CLAIM_ALIVE_RETRIES=0` in-sandbox, so one read over 20s exits 28. The script behaved **exactly as designed** (#1425 loud arm, no claim posted) — the bug is the sizing underneath it, not the loudness. ## Why #2145 moved the bottleneck onto this leg 389dfd1b cut the in-sandbox lister to a single `GET /issues/<n>`. Measured live from bens-mac-04, 2026-11-03 23:1x local: | read | latency | |---|---| | `GET /issues/2123` (the #2145 fast path) | 1.7s, 2.6s | | `GET /actions/tasks?limit=100&page=1` | **12.2s, 14.9s, 11.3s** | So the lister is ~2s and the alive fetch is now the dominant cost on the 30s prompt-expansion path, at 11–15s against its 20s cap. The 04:10 excursion past 20s is a hot-fleet tick (runs.json: 4 hosts, ~50 runs in 45 min), not an outage — 59383/59385 succeeded either side of it. ## The real defect: a 16s cliff that launders `[]` (the last #1425 leg) Walk admission is `CLAIM_CANDIDATE_CALLS(5) x CLAIM_CALL_FLOOR(2) <= CLAIM_NEXT_DEADLINE(26) - SECONDS`, i.e. the walk admits nothing once the clock passes **16s**. Three regimes: - alive <= 16s — the walk runs. Correct. - **16s < alive <= 20s — the fetch SUCCEEDS and the walk admits nothing, and `claim-next-task.sh:236` emits `[]` at exit 0.** That `[]` renders as an empty ready-tasks block, which a worker's Done check reads as "nothing to do" — fail-closed at the script, fail-OPEN at the surface that matters. This is precisely the shape #1425 forbids and #2145 closed on the *other two* legs (rc 124, alive-fault). - alive > 20s — rc 28, loud. This incident. With alive measured at 11–15s, the silent middle regime is routinely reachable. Reproduced against the test fakes (clock spent before the walk, 1-element queue): ``` $ CLAIM_NEXT_DEADLINE=0 bash .sandcastle/claim-next-task.sh rc=0 stdout=[] stderr: claim-next-task: 0s of the 0s deadline left after 0 candidate(s) of 1 — too little to bound one candidate's 5 calls at the 2s floor; emitting [] ... ``` Two worker logs in this run's window show that surface live — an empty ready-tasks block while the lister itself still returned a task (`20261103-215024`: "it returned task #2129"; `20261103-210914`: same shape) — while 8 tickets were `ready-for-agent` at 04:04:02. ## Why the healer did not repair it 1. The 16–20s arm should exit non-zero like its two siblings — but on a 4-host fleet ticking every ~1-2 min that converts routine slow-forge ticks into REDs and risks a heal storm. That trade-off is a ruling, not a knob. 2. No knob widens the margin: raising `CLAIM_ALIVE_MAX_TIME` eats the walk's room and REDs on the library's hard 30s; lowering `limit=100` risks an alive run falling off the page, which breaks arbitration into a double-claim. 3. The structural fix is #2145's own move applied to this leg — have the host (outside the 30s budget, where it already builds the fleet view) mirror the alive-runs snapshot in as a host-signal. **That needs a ruling first**: `claim-lib.sh:34-38` rests on the snapshot being "only seconds stale", and a host-mirrored one is minutes stale, which is exactly the double-claim the janitor cannot catch. ## Asks - Rule on (1): should the deadline-abort arm fail loud, matching #1425? - Rule on (3): is a host-mirrored alive snapshot acceptable against the `claim-lib.sh` staleness invariant, and if so with what freshness bound? Follow-up of #2145 (closed). Evidence: `/tmp/matou-heal-Matou-idss.VIKrM7` (`run-verdict.txt`, `job-log.txt`, `worker-logs.txt`, `worker-logs-older.txt`, `runs.json`).
Author
Member

Healer, run 59175 (swarm (elitebook-03), signature 2196e4460dad, 2026-11-04T04:25:57Z) — the other leg went over too, and this ticket's ~2s premise for it no longer holds.

This tick REDed on the lister leg, not the alive leg:

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 (non-zero, no [])

Same loud arm 389dfd1b added, working as designed. But this ticket (and #2149) both rest on GET /issues/<n> being ~1.7–2.6s, so the lister was taken to be ~2s and the whole budget argument hangs off that. Re-probed from elitebook-03, same token, 2026-11-04 04:30–04:37 UTC — ~15 min after this ticket's table was measured:

read latency
GET /issues/2129 (the #2145 fast path) 7.1 / 12.3 / 9.7 / 13.0 s (3.3 KB body)
GET /issues/2123 11.9 s
GET /issues/2129/dependencies?limit=50 3.4 / 5.0 / 4.9 s
GET /issues?...labels=ready-for-agent&limit=50 (pre-#2145 page) 11.5 s
GET /actions/tasks?limit=1 9.4 s
GET /actions/tasks?limit=5 14.3 s
GET /actions/tasks?limit=100 http=000 at -m 60, twice
GET /actions/runs?limit=1 http=000 at -m 45
/api/v1/version, forge root (controls) 2.7 s / 1.3–2.6 s

Ran the fast-path lister end-to-end host-side with SWARM_FLEET_PICK_SIGNAL naming #2129: rc=0 in 15s. The fast path fires correctly and still cannot fit CLAIM_LISTER_MAX_TIME=12, because its own two sequential reads (/issues/<n> + /issues/<n>/dependencies) are 10–18s at this latency. So both legs of the claim path are now over their caps, and the swarm can claim nothing on any tick.

Two things this adds to the asks above:

  1. The ~2s lister figure is a snapshot, not a floor. /issues/<n> ranged 1.7s → 13.0s inside 20 minutes for a 3.3 KB payload, so sizing any in-sandbox leg against a measured p95 is a treadmill — which argues for the host-mirror shape (3) on both legs, not just alive-runs.
  2. actions/tasks now costs ~1s per returned row (limit=1 → 9.4s, limit=5 → 14.3s, limit=100 → no answer in 60s). That is a per-row server-side cost, so option (b) "drop limit to 20–30" buys ~20s, not a fit — and it still carries the double-claim risk (b) already names.

No repair attempted: list-ready-tasks.sh, claim-next-task.sh and claim-lib.sh are all factory-vendored (FACTORY_MANIFEST 13, 14, 40), CLAIM_LISTER_MAX_TIME and CLAIM_NEXT_DEADLINE appear nowhere in .forgejo/, run-swarm.sh, main.mts or env-allowlist-lib.sh, and the ruling this needs is the one already asked for above.

Separately worth a human eye: the underlying degradation is forge-side and getting worse, and it is not this host — elitebook-03 carries only forgejo-runner-swarm.service (load 2.93/8 cores, 45 G free, mem fine, host.txt). The /actions/* per-row cost points at the action_task/action_run tables; cf. the 27-run concurrency pileup in GOTCHAS #406 and #2073 (bulk transfer degraded server-side).

Evidence: /tmp/matou-heal-Matou-idss.S1Tia3 (run-verdict.txt, job-log.txt, worker-logs.txt, api-timing.txt — api_http=000, api_curl_exit=28, host.txt). Run: https://git.matou.nz/Matou/idss/actions/runs/59175

Healer, run 59175 (`swarm (elitebook-03)`, signature `2196e4460dad`, 2026-11-04T04:25:57Z) — **the other leg went over too, and this ticket's ~2s premise for it no longer holds.** This tick REDed on the **lister** leg, not the alive leg: ``` 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 (non-zero, no []) ``` Same loud arm 389dfd1b added, working as designed. But this ticket (and #2149) both rest on `GET /issues/<n>` being ~1.7–2.6s, so the lister was taken to be ~2s and the whole budget argument hangs off that. Re-probed from elitebook-03, same token, **2026-11-04 04:30–04:37 UTC** — ~15 min after this ticket's table was measured: | read | latency | |---|---| | `GET /issues/2129` (the #2145 fast path) | **7.1 / 12.3 / 9.7 / 13.0 s** (3.3 KB body) | | `GET /issues/2123` | 11.9 s | | `GET /issues/2129/dependencies?limit=50` | 3.4 / 5.0 / 4.9 s | | `GET /issues?...labels=ready-for-agent&limit=50` (pre-#2145 page) | 11.5 s | | `GET /actions/tasks?limit=1` | 9.4 s | | `GET /actions/tasks?limit=5` | 14.3 s | | `GET /actions/tasks?limit=100` | **http=000 at `-m 60`, twice** | | `GET /actions/runs?limit=1` | http=000 at `-m 45` | | `/api/v1/version`, forge root (controls) | 2.7 s / 1.3–2.6 s | Ran the fast-path lister end-to-end host-side with `SWARM_FLEET_PICK_SIGNAL` naming #2129: **rc=0 in 15s**. The fast path fires correctly and still cannot fit `CLAIM_LISTER_MAX_TIME=12`, because its own two sequential reads (`/issues/<n>` + `/issues/<n>/dependencies`) are 10–18s at this latency. So **both** legs of the claim path are now over their caps, and the swarm can claim nothing on any tick. Two things this adds to the asks above: 1. The ~2s lister figure is a snapshot, not a floor. `/issues/<n>` ranged 1.7s → 13.0s inside 20 minutes for a 3.3 KB payload, so sizing *any* in-sandbox leg against a measured p95 is a treadmill — which argues for the host-mirror shape (3) on **both** legs, not just alive-runs. 2. `actions/tasks` now costs ~1s per returned row (limit=1 → 9.4s, limit=5 → 14.3s, limit=100 → no answer in 60s). That is a per-row server-side cost, so option (b) "drop `limit` to 20–30" buys ~20s, not a fit — and it still carries the double-claim risk (b) already names. No repair attempted: `list-ready-tasks.sh`, `claim-next-task.sh` and `claim-lib.sh` are all factory-vendored (`FACTORY_MANIFEST` 13, 14, 40), `CLAIM_LISTER_MAX_TIME` and `CLAIM_NEXT_DEADLINE` appear nowhere in `.forgejo/`, `run-swarm.sh`, `main.mts` or `env-allowlist-lib.sh`, and the ruling this needs is the one already asked for above. Separately worth a human eye: the underlying degradation is **forge-side and getting worse**, and it is not this host — elitebook-03 carries only `forgejo-runner-swarm.service` (load 2.93/8 cores, 45 G free, mem fine, `host.txt`). The `/actions/*` per-row cost points at the `action_task`/`action_run` tables; cf. the 27-run concurrency pileup in GOTCHAS #406 and #2073 (bulk transfer degraded server-side). Evidence: `/tmp/matou-heal-Matou-idss.S1Tia3` (`run-verdict.txt`, `job-log.txt`, `worker-logs.txt`, `api-timing.txt` — `api_http=000`, `api_curl_exit=28`, `host.txt`). Run: https://git.matou.nz/Matou/idss/actions/runs/59175
Author
Member

Recurrence #3, and a measured fix that dissolves both asks

Healer, run 59423 (swarm (matou-workstation), same signature f99e8b1c38d7,
2026-11-04T05:43:49Z) — the identical rc 28 on the alive-runs leg. Third on this
signature after #2149 (run 59171) and this ticket (run 59381), ~90 min apart.

The endpoint has got dearer again. 5 live samples from matou-dev-server-01,
2026-11-04 05:47 UTC, against $FORGEJO_API/actions/tasks?limit=100&page=1:

sample 1 2 3 4 5
latency 16.2s 18.7s 13.9s 17.9s 23.7s

So the 20s cap no longer straddles the tail — it straddles the median. This is
not a hot-fleet excursion any more; roughly half of all ticks now RED.

The cost is per-ROW, and the page is 95% dead rows

Same host, same minute:

read rows latency
?limit=10&page=1 10 1.8s, 2.7s
?limit=20&page=1 20 4.5s, 9.1s
?limit=30&page=1 30 14.1s, 16.3s
?limit=100&page=1 50 (the forge caps the page at 50) 13.4s, 16.7s
?status=running&status=waiting&limit=100&page=1 5 2.6s, 3.6s

The forge honours a server-side status filter on this endpoint, and repeated
status= is a UNION, not a last-wins (probed: status=running&status=success
returns both; status=waiting alone is valid and returned 0 rows; an unknown value
is an HTTP 400, which curl -sf surfaces as a loud rc 22, never a silent empty).

running/waiting are exactly what claim_alive_runs' jq already selects, so
this only moves the filter to the side of the wire that can do it cheaply. Proven
output-identical against the live forge at 05:52 UTC:

old url (unfiltered, 15.6s) -> [59423,59205]
new url (filtered,    1.8s) -> [59423,59205]

and the fixed function run 3x in-sandbox-shaped (CLAIM_API_MAX_TIME=20,
CLAIM_ALIVE_RETRIES=0): rc 0 in 4.3s / 1.8s / 1.8s.

This answers ask (3) by removing it

  • Ask (3) (host-mirrored alive snapshot) is no longer needed. It was only on the
    table because the fresh read could not fit the budget. At 2–4s it fits with ~6x
    headroom, so claim-lib.sh:34-38's "only seconds stale" invariant stays intact and
    the double-claim risk is never taken on.
  • Ask (1) (loud 16–20s deadline-abort arm) stops being urgent. With alive at
    2–4s the clock rarely reaches the 16s admission cliff at all, so the silent middle
    regime becomes genuinely rare rather than routine. The arm is still asymmetric with
    its two siblings and still worth your ruling — but it is no longer load-bearing.
  • The limit worry in "Why the healer did not repair it" (2) inverts. Note the
    forge caps the page at 50 regardless of limit=100. Today those 50 slots are spent
    on mostly-finished runs, so a live run can already be pushed off page 1 — the
    exact arbitration break that paragraph feared. Filtered, all 50 slots are live rows.
    The filter makes the page strictly safer, not riskier.

The patch (verified, not landed)

.sandcastle/claim-lib.sh:123 — one line:

-    rc=0; raw="$(_claim_api "$FORGEJO_API/actions/tasks?limit=100&page=1")" || rc=$?
+    rc=0; raw="$(_claim_api "$FORGEJO_API/actions/tasks?status=running&status=waiting&limit=100&page=1")" || rc=$?

Keep the jq status test as the fail-safe for a forge that ignores the parameter (it
then returns the old full page — slow, but correct). Needs with it:

  • tests/claim-lib-test.sh T2: the paged-URL assertion, plus a ratchet that the
    status= narrowing is on the URL — if it comes off, the read goes straight back
    over the cap and the swarm REDs on forge latency alone.
  • tests/actions-endpoint-test.sh header prose: "tasks answered in under a second"
    (2026-08-22) is stale; page=1 is still necessary and no longer sufficient.
  • claim-next-task.sh's CLAIM_ALIVE_MAX_TIME comment, which still justifies 20s
    against the 8.5–12.2s samples of 2026-09-03.

Written and green in the heal clone: claim-lib-test.sh pass=85 fail=0,
actions-endpoint-test.sh pass=5 fail=0, plus claim-next-task-test.sh 45,
schedule-backstop-test.sh 22, scheduler-canary-test.sh 14, heal-lib-test.sh 26.

Why the healer did not land it

All four files are FACTORY_MANIFEST paths, so under ADR 0180 the fix belongs in
Matou/dev-factory with a FACTORY_REF bump here — the same route #2145 itself took.
Verified, not assumed: check-harness-drift.sh against the edited clone reports
check-harness-drift: FAILED — vendored factory copies drifted, which pre-push gate 1
turns into a DRIFT_BLOCK. A healer push to main would be refused, and if forced
through would be reverted by the next re-vendor. Beside #2147.

Left ready-for-human deliberately — the asks above are yours to close, and I will
not flip a human gate. If you accept the filter, this is a knob-free, output-identical
one-liner an agent can land via dev-factory without either ruling.

Evidence: /tmp/matou-heal-Matou-idss.fHOSgl (run-verdict.txt, job-log.txt,
worker-logs.txt, runs.json, api-timing.txt).

## Recurrence #3, and a measured fix that dissolves both asks Healer, run **59423** (`swarm (matou-workstation)`, same signature `f99e8b1c38d7`, 2026-11-04T05:43:49Z) — the identical rc 28 on the alive-runs leg. Third on this signature after #2149 (run 59171) and this ticket (run 59381), ~90 min apart. **The endpoint has got dearer again.** 5 live samples from matou-dev-server-01, 2026-11-04 05:47 UTC, against `$FORGEJO_API/actions/tasks?limit=100&page=1`: | sample | 1 | 2 | 3 | 4 | 5 | |---|---|---|---|---|---| | latency | 16.2s | 18.7s | 13.9s | 17.9s | **23.7s** | So the 20s cap no longer straddles the tail — it straddles the **median**. This is not a hot-fleet excursion any more; roughly half of all ticks now RED. ## The cost is per-ROW, and the page is 95% dead rows Same host, same minute: | read | rows | latency | |---|---|---| | `?limit=10&page=1` | 10 | 1.8s, 2.7s | | `?limit=20&page=1` | 20 | 4.5s, 9.1s | | `?limit=30&page=1` | 30 | 14.1s, 16.3s | | `?limit=100&page=1` | **50** (the forge caps the page at 50) | 13.4s, 16.7s | | **`?status=running&status=waiting&limit=100&page=1`** | **5** | **2.6s, 3.6s** | The forge honours a **server-side `status` filter** on this endpoint, and repeated `status=` is a UNION, not a last-wins (probed: `status=running&status=success` returns both; `status=waiting` alone is valid and returned 0 rows; an unknown value is an HTTP **400**, which `curl -sf` surfaces as a loud rc 22, never a silent empty). `running`/`waiting` are **exactly** what `claim_alive_runs`' jq already selects, so this only moves the filter to the side of the wire that can do it cheaply. Proven output-identical against the live forge at 05:52 UTC: ``` old url (unfiltered, 15.6s) -> [59423,59205] new url (filtered, 1.8s) -> [59423,59205] ``` and the fixed function run 3x in-sandbox-shaped (`CLAIM_API_MAX_TIME=20`, `CLAIM_ALIVE_RETRIES=0`): rc 0 in **4.3s / 1.8s / 1.8s**. ## This answers ask (3) by removing it - **Ask (3) (host-mirrored alive snapshot) is no longer needed.** It was only on the table because the fresh read could not fit the budget. At 2–4s it fits with ~6x headroom, so `claim-lib.sh:34-38`'s "only seconds stale" invariant stays intact and the double-claim risk is never taken on. - **Ask (1) (loud 16–20s deadline-abort arm) stops being urgent.** With alive at 2–4s the clock rarely reaches the 16s admission cliff at all, so the silent middle regime becomes genuinely rare rather than routine. The arm is still asymmetric with its two siblings and still worth your ruling — but it is no longer load-bearing. - **The `limit` worry in "Why the healer did not repair it" (2) inverts.** Note the forge caps the page at 50 regardless of `limit=100`. Today those 50 slots are spent on mostly-finished runs, so a live run *can* already be pushed off page 1 — the exact arbitration break that paragraph feared. Filtered, all 50 slots are live rows. The filter makes the page **strictly safer**, not riskier. ## The patch (verified, not landed) `.sandcastle/claim-lib.sh:123` — one line: ```diff - rc=0; raw="$(_claim_api "$FORGEJO_API/actions/tasks?limit=100&page=1")" || rc=$? + rc=0; raw="$(_claim_api "$FORGEJO_API/actions/tasks?status=running&status=waiting&limit=100&page=1")" || rc=$? ``` Keep the jq status test as the fail-safe for a forge that ignores the parameter (it then returns the old full page — slow, but correct). Needs with it: - `tests/claim-lib-test.sh` T2: the paged-URL assertion, plus a **ratchet** that the `status=` narrowing is on the URL — if it comes off, the read goes straight back over the cap and the swarm REDs on forge latency alone. - `tests/actions-endpoint-test.sh` header prose: "`tasks` answered in under a second" (2026-08-22) is stale; `page=1` is still necessary and no longer sufficient. - `claim-next-task.sh`'s `CLAIM_ALIVE_MAX_TIME` comment, which still justifies 20s against the 8.5–12.2s samples of 2026-09-03. Written and green in the heal clone: `claim-lib-test.sh` pass=85 fail=0, `actions-endpoint-test.sh` pass=5 fail=0, plus `claim-next-task-test.sh` 45, `schedule-backstop-test.sh` 22, `scheduler-canary-test.sh` 14, `heal-lib-test.sh` 26. ## Why the healer did not land it All four files are **FACTORY_MANIFEST paths**, so under ADR 0180 the fix belongs in `Matou/dev-factory` with a FACTORY_REF bump here — the same route #2145 itself took. Verified, not assumed: `check-harness-drift.sh` against the edited clone reports `check-harness-drift: FAILED — vendored factory copies drifted`, which pre-push gate 1 turns into a DRIFT_BLOCK. A healer push to `main` would be refused, and if forced through would be reverted by the next re-vendor. Beside #2147. Left `ready-for-human` deliberately — the asks above are yours to close, and I will not flip a human gate. If you accept the filter, this is a knob-free, output-identical one-liner an agent can land via dev-factory without either ruling. Evidence: `/tmp/matou-heal-Matou-idss.fHOSgl` (`run-verdict.txt`, `job-log.txt`, `worker-logs.txt`, `runs.json`, `api-timing.txt`).
Author
Member

Cross-ref from the healer (run 59463): this ticket reasons from "the lister is ~2s", which holds only while the #2145 fleet-pick fast path fires. On a tick with no fleet view no pick signal is written, the lister falls back to the full page, and that path measures 19.6s / 28.3s against CLAIM_LISTER_MAX_TIME=12 — a certain rc 124. Filed as #2151 with the measurements; the walk-admission cliff this ticket describes is unchanged by it.

Cross-ref from the healer (run 59463): this ticket reasons from "the lister is ~2s", which holds only while the #2145 fleet-pick fast path fires. On a tick with **no fleet view** no pick signal is written, the lister falls back to the full page, and that path measures **19.6s / 28.3s** against `CLAIM_LISTER_MAX_TIME=12` — a certain rc 124. Filed as #2151 with the measurements; the walk-admission cliff this ticket describes is unchanged by it.
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/idss#2150
No description provided.