vendor: the factory self-pin is 29 commits behind — none of the three landed claim-tick timeout guards are actually running (swarm run 6419 RED) #132

Closed
opened 2026-09-06 00:01:21 +00:00 by matou-build-agent · 1 comment

Filed by the swarm healer for incident signature 0fd2fa26ccd7 (swarm run https://git.matou.nz/Matou/dev-factory/actions/runs/6419, 2026-09-05 23:57Z).

Fault

stage=sandcastle run (workers)  exit=1
PromptExpansionTimeoutError: Shell expression `bash .sandcastle/claim-next-task.sh` timed out after 30006ms

Root cause

This is exactly the fault #120, idss#1195 and #128 were landed to make impossible — and not one of those fixes is running. .sandcastle/FACTORY_REF is 2445159 (2026-08-29), 29 commits behind origin/main. GOTCHAS 4 in one line.

What the vendored copy actually contains:

guard root .sandcastle/ (running)
CLAIM_LISTER_MAX_TIME (12s timeout on the lister → rc 124 → [] rc 0) present absent — bare ready="$(bash "$lister")", unbounded
CLAIM_NEXT_DEADLINE (26s whole-tick ceiling) present absent — only #77's CLAIM_NEXT_BUDGET=22, which bounds the claim walk, not the lister
list-ready-tasks.sh backgrounded /pulls + standing-drive legs (setup → max(legs)) present (#128) absent — serial legs

So the running claim tick has no wall-clock bound between the lister's first Forgejo read and the 30s prompt-expansion ceiling. A latency bump is a RED, not a graceful empty queue.

The trigger

Forgejo was slow at incident time: api-timing.txt = api_seconds=8 per call (healer re-measured 2026-09-06: ~1.2 s, and the vendored lister completes in 5.0 s). At ~8 s/call the serial vendored lister runs well past 30 s; at 1.2 s it does not. Bursty, and #130 (fleet-tui polling every repo's issues 3x/30s, ~2/3 of git.matou.nz's API load) is the obvious candidate driver.

Host was healthy: 77G disk free, 12.6G mem available, no rebase in progress, swarm lock free, runner journal clean.

What a human needs to do

bash onboarding/onboard.sh vendor .sandcastle cca3e27   # or current origin/main

in its own vendor: self-pin -> <sha> commit. The healer cannot do this: FACTORY_REF is a protected path, a re-vendor of 29 commits re-renders the five prompt skeletons into live worker text, and the pre-push drift gate (git-hooks/pre-push gate 1) DRIFT_BLOCKs any targeted hotfix to a vendored file — correctly. This is a human decision, not a hotfix.

Until the pin moves, every claim tick that meets a Forgejo latency spike reds the swarm run again with this same signature.

Suggested follow-up (separate ticket if wanted)

The self-pin drifting 29 commits / 7 days behind is itself the hazard here — the drift check only emits an advisory NOTE for "behind", never a failure (by design, GOTCHAS 3). Worth deciding whether a self-copy that is N commits behind deserves a louder signal than a consumer's, since the factory's own swarm is the first thing that breaks.

Filed by the swarm healer for incident signature `0fd2fa26ccd7` (swarm run https://git.matou.nz/Matou/dev-factory/actions/runs/6419, 2026-09-05 23:57Z). ## Fault ``` stage=sandcastle run (workers) exit=1 PromptExpansionTimeoutError: Shell expression `bash .sandcastle/claim-next-task.sh` timed out after 30006ms ``` ## Root cause This is exactly the fault #120, idss#1195 and #128 were landed to make impossible — and **not one of those fixes is running.** `.sandcastle/FACTORY_REF` is `2445159` (2026-08-29), **29 commits behind `origin/main`**. GOTCHAS 4 in one line. What the vendored copy actually contains: | guard | root | `.sandcastle/` (running) | |---|---|---| | `CLAIM_LISTER_MAX_TIME` (12s `timeout` on the lister → rc 124 → `[]` rc 0) | present | **absent** — bare `ready="$(bash "$lister")"`, unbounded | | `CLAIM_NEXT_DEADLINE` (26s whole-tick ceiling) | present | **absent** — only #77's `CLAIM_NEXT_BUDGET=22`, which bounds the claim *walk*, not the lister | | `list-ready-tasks.sh` backgrounded `/pulls` + standing-drive legs (setup → `max(legs)`) | present (#128) | **absent** — serial legs | So the running claim tick has no wall-clock bound between the lister's first Forgejo read and the 30s prompt-expansion ceiling. A latency bump is a RED, not a graceful empty queue. ## The trigger Forgejo was slow at incident time: `api-timing.txt` = **`api_seconds=8`** per call (healer re-measured 2026-09-06: **~1.2 s**, and the vendored lister completes in **5.0 s**). At ~8 s/call the serial vendored lister runs well past 30 s; at 1.2 s it does not. Bursty, and #130 (fleet-tui polling every repo's issues 3x/30s, ~2/3 of git.matou.nz's API load) is the obvious candidate driver. Host was healthy: 77G disk free, 12.6G mem available, no rebase in progress, swarm lock free, runner journal clean. ## What a human needs to do ``` bash onboarding/onboard.sh vendor .sandcastle cca3e27 # or current origin/main ``` in its own `vendor: self-pin -> <sha>` commit. The healer cannot do this: `FACTORY_REF` is a protected path, a re-vendor of 29 commits re-renders the five prompt skeletons into live worker text, and the pre-push drift gate (`git-hooks/pre-push` gate 1) `DRIFT_BLOCK`s any targeted hotfix to a vendored file — correctly. This is a human decision, not a hotfix. Until the pin moves, every claim tick that meets a Forgejo latency spike reds the swarm run again with this same signature. ## Suggested follow-up (separate ticket if wanted) The self-pin drifting 29 commits / 7 days behind is itself the hazard here — the drift check only emits an advisory NOTE for "behind", never a failure (by design, GOTCHAS 3). Worth deciding whether a *self*-copy that is N commits behind deserves a louder signal than a consumer's, since the factory's own swarm is the first thing that breaks.
Owner

Closed 2026-10-21 (Ben's stale sweep): superseded by the #280 re-vendor — .sandcastle/FACTORY_REF = a4be7db on main since 2026-10-17, so the landed claim-tick timeout guards are now the running copy.

Closed 2026-10-21 (Ben's stale sweep): superseded by the #280 re-vendor — `.sandcastle/FACTORY_REF` = `a4be7db` on main since 2026-10-17, so the landed claim-tick timeout guards are now the running copy.
ben 2026-10-21 14:16:06 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

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