run-swarm: a transient Forgejo 5xx while listing ready tasks reds a run and mis-keys the death to preflight (GOTCHAS #7 family, uncovered path) #52
Open
opened 2026-08-24 03:18:04 +00:00 by matou-build-agent
·
8 comments
No Branch/Tag specified
main
sandcastle/rescue-20261120-212246
sandcastle/rescue-20261120-202650
sandcastle/rescue-20261120-202316
sandcastle/worker/20261120192753-1909682
sandcastle/rescue-20261120-191443
sandcastle/rescue-20261120-195103
sandcastle/rescue-20261120-201254
sandcastle/rescue-20261120-201438
sandcastle/rescue-20261120-144756
sandcastle/rescue-20261120-184843
sandcastle/rescue-20261120-190817
sandcastle/rescue-20261120-045815
sandcastle/rescue-20261120-143144
sandcastle/rescue-20261120-144025
sandcastle/worker/20261120032838-3834852
sandcastle/worker/20261120034547-1076409
sandcastle/rescue-20261120-031041
sandcastle/rescue-20261120-035031
sandcastle/rescue-20261120-041046
sandcastle/rescue-20261120-041556
sandcastle/rescue-20261120-042712
sandcastle/rescue-20261120-044145
sandcastle/rescue-20261120-044401
sandcastle/worker/20261120020735-3225234
sandcastle/rescue-20261120-025017
sandcastle/worker/20261120012937-3577764
sandcastle/rescue-20261120-024432
sandcastle/rescue-20261120-012510
sandcastle/rescue-20261120-020027
sandcastle/rescue-20261120-022005
sandcastle/rescue-20261120-023040
sandcastle/rescue-20261120-023059
sandcastle/rescue-20261120-023617
sandcastle/rescue-20261120-023726
sandcastle/rescue-20261120-024624
sandcastle/rescue-20261120-030108
sandcastle/rescue-20261120-011059
sandcastle/rescue-20261119-235227
sandcastle/rescue-20261119-220002
sandcastle/rescue-20261119-234418
sandcastle/worker/20261119210537-2901903
sandcastle/rescue-20261119-215319
sandcastle/worker/20261119210832-2140478
sandcastle/rescue-20261119-205729
sandcastle/worker/20261119195637-2051281
sandcastle/rescue-20261119-203604
sandcastle/rescue-20261119-212545
sandcastle/rescue-20261119-213258
sandcastle/rescue-20261119-214233
sandcastle/rescue-20261119-215039
sandcastle/rescue-20261119-200052
sandcastle/rescue-20261119-202558
sandcastle/rescue-20261119-202859
sandcastle/rescue-20261119-204522
sandcastle/rescue-20261119-202901
sandcastle/worker/20261119192821-2242548
sandcastle/rescue-20261119-201432
sandcastle/worker/20261119185826-1049892
sandcastle/rescue-20261119-192442
sandcastle/rescue-20261119-194543
sandcastle/rescue-20261119-195715
sandcastle/rescue-20261119-195042
sandcastle/rescue-20261119-194153
sandcastle/rescue-20261119-193223
sandcastle/rescue-20261119-181821
sandcastle/rescue-20261119-182031
sandcastle/rescue-20261119-191400
sandcastle/rescue-20261119-184524
sandcastle/rescue-20261119-185251
sandcastle/rescue-20261119-190111
sandcastle/rescue-20261119-171507
sandcastle/rescue-20261119-172406
sandcastle/rescue-20261119-180227
sandcastle/rescue-20261119-181611
sandcastle/rescue-20261119-183926
sandcastle/rescue-20261119-165410
sandcastle/rescue-20261119-181300
sandcastle/worker/20261119152654-1251003
sandcastle/rescue-20261119-175608
sandcastle/rescue-20261119-153212
sandcastle/rescue-20261119-155612
sandcastle/rescue-20261119-161612
sandcastle/rescue-20261119-162645
sandcastle/rescue-20261119-151259
sandcastle/worker/20261119-091545-699963
sandcastle/rescue-20261119-152400
sandcastle/rescue-20261119-150650
sandcastle/rescue-20261119-151018
sandcastle/rescue-20261119-145753
sandcastle/rescue-20261119-144640
sandcastle/worker/20261119-141805-b375a7
sandcastle/rescue-20261119-143616
sandcastle/rescue-20261119-142315
sandcastle/rescue-20261119-143536
sandcastle/rescue-20261119-144907
sandcastle/rescue-20261119-150929
sandcastle/rescue-20261119-140252
sandcastle/rescue-20261119-132837
sandcastle/rescue-20261119-140917
sandcastle/rescue-20261118-232015
sandcastle/rescue-20261118-224358
sandcastle/rescue-20261118-231012
sandcastle/rescue-20261118-221954
sandcastle/rescue-20261118-223235
sandcastle/rescue-20261118-215029
sandcastle/rescue-20261118-220457
sandcastle/rescue-20261118-213647
sandcastle/rescue-20261118-213651
sandcastle/rescue-20261118-203142
sandcastle/rescue-20261118-201242
sandcastle/rescue-20261118-160449
sandcastle/worker/20261118-151037-fa1423
sandcastle/rescue-20261118-141033
sandcastle/rescue-20261118-153435
sandcastle/rescue-20261118-155226
sandcastle/rescue-20261118-140135
sandcastle/rescue-20261118-072336
sandcastle/rescue-20261118-071306
sandcastle/rescue-20261118-065902
sandcastle/rescue-20261118-070925
sandcastle/rescue-20261118-064628
sandcastle/rescue-20261118-060611
sandcastle/rescue-20261118-063652
sandcastle/rescue-20261118-065117
sandcastle/rescue-20261118-065556
sandcastle/rescue-20261118-055026
sandcastle/worker/20261118-000033-5f0b74
sandcastle/rescue-20261118-054929
sandcastle/rescue-20261118-053613
sandcastle/worker/20261118-050837-870db6
sandcastle/rescue-20261118-051315
sandcastle/rescue-20261118-052156
sandcastle/rescue-20261118-053056
sandcastle/rescue-20261118-042651
sandcastle/rescue-20261118-050517
sandcastle/rescue-20261118-052017
sandcastle/rescue-20261118-052046
sandcastle/rescue-20261118-053617
sandcastle/rescue-20261118-040341
sandcastle/rescue-20261118-035452
sandcastle/rescue-20261117-180034
sandcastle/worker/20261117-173516-cca624
backport/idss-2068-2111-2114
sandcastle/rescue-20261117-123242
sandcastle/rescue-20261117-124231
backport/idss-2057
sandcastle/rescue-20261116-154411
sandcastle/rescue-20261117-175037
sandcastle/rescue-20261116-153352
sandcastle/rescue-20261107-062749
session-runner-land-mode-recheck-2181
sandcastle/rescue-20261107-061316
fp/idss-2180
sandcastle/rescue-20261107-060212
forward-port/provision-disk-guard
sandcastle/rescue-20261107-060021
sandcastle/rescue-20261107-054649
sandcastle/worker/20261107-043349-cf0d7e
backport/idss-2177
sandcastle/rescue-20261116-175301
sandcastle/rescue-20261116-175950
backport/idss-2176
sandcastle/rescue-20261106-135208
sandcastle/rescue-20261107-045600
sandcastle/rescue-20261107-051315
sandcastle/rescue-20261107-053423
sandcastle/worker/20261106-111451-8c1ff0
sandcastle/rescue-20261106-023514
sandcastle/rescue-20261106-113455
sandcastle/rescue-20261106-115043
sandcastle/rescue-20261106-121303
sandcastle/rescue-20261106-134211
sandcastle/worker/20261106-013937-c15abc
fix/336-job-locality-runner-uuid
sandcastle/rescue-20261106-000320
sandcastle/rescue-20261105-113317
sandcastle/rescue-20261105-235352
sandcastle/rescue-20261106-020541
sandcastle/rescue-20261106-022516
sandcastle/rescue-20261106-024735
sandcastle/rescue-20261106-024744
sandcastle/rescue-20261106-024751
sandcastle/worker/20261105-104416-4319e1
sandcastle/rescue-20261105-111401
sandcastle/worker/20261105-054650-133b83
sandcastle/rescue-20261105-104304
sandcastle/rescue-20261105-110432
sandcastle/rescue-20261105-110637
sandcastle/rescue-20261105-112240
sandcastle/rescue-20261105-102818
sandcastle/worker/20261105-090131-e38a52
sandcastle/rescue-20261105-101105
sandcastle/rescue-20261105-094209
sandcastle/rescue-20261105-095705
sandcastle/rescue-20261105-091351
sandcastle/rescue-20261105-092126
sandcastle/rescue-20261105-093755
sandcastle/rescue-20261105-095339
sandcastle/rescue-20261105-101509
sandcastle/worker/20261105-033507-997386
sandcastle/worker/20261105-072852-43a339
sandcastle/rescue-20261105-085215
sandcastle/rescue-20261105-090546
sandcastle/rescue-20261105-090731
sandcastle/rescue-20261105-091600
sandcastle/worker/20261105-073544-9e3e7b
sandcastle/rescue-20261105-085541
sandcastle/worker/20261105-030149-b06fe6
sandcastle/rescue-20261105-075223
sandcastle/rescue-20261105-080157
sandcastle/rescue-20261105-081231
sandcastle/rescue-20261105-081252
sandcastle/rescue-20261105-081916
sandcastle/rescue-20261105-082029
sandcastle/rescue-20261105-082600
sandcastle/rescue-20261105-082859
sandcastle/rescue-20261105-083557
sandcastle/rescue-20261105-084327
sandcastle/rescue-20261105-090802
sandcastle/rescue-20261105-092213
sandcastle/worker/20261105-004228-d59980
sandcastle/worker/20261104-200255-c897e8
sandcastle/rescue-20261105-021604
sandcastle/rescue-20261105-062428
sandcastle/rescue-20261105-064420
sandcastle/worker/20261104-185608-12e745
sandcastle/rescue-20261105-011719
sandcastle/rescue-20261104-221030
sandcastle/rescue-20261105-003304
sandcastle/rescue-20261105-005511
sandcastle/rescue-20261105-013351
sandcastle/rescue-20261105-015246
sandcastle/worker/20261104-204335-4df59d
sandcastle/worker/20261104-144451-39719f
sandcastle/rescue-20261104-210849
sandcastle/rescue-20261104-211127
sandcastle/rescue-20261104-212722
sandcastle/worker/20261104-194113-a58f71
sandcastle/rescue-20261104-193329
sandcastle/rescue-20261104-200835
sandcastle/rescue-20261104-201057
sandcastle/rescue-20261104-202237
sandcastle/rescue-20261104-204239
sandcastle/rescue-20261104-185105
sandcastle/rescue-20261104-185510
sandcastle/rescue-20261104-192703
sandcastle/rescue-20261104-184907
sandcastle/rescue-20261104-183301
sandcastle/rescue-20261104-183354
backport/idss-2161
backport/idss-2155
fp/idss-2147
backport/idss-2145
backport/idss-2134
backport/idss-2119
sandcastle/worker/20261030-141035-c3d689
sandcastle/worker/20261030-125730-11b08b
sandcastle/worker/20261030-172321-20db0e
backport/idss-2114
backport/idss-2112
forward-port/idss-2111
forward-port/idss-2068
backport/idss-2111
backport/idss-2110
backport/idss-2106
backport/idss-2068
backport/idss-2104
sandcastle/rescue-20261030-110900
sandcastle/worker/20261029-055633-763b74
sandcastle/worker/20261029-000831-e4c652
sandcastle/worker/20261028-162655-0e8071
sandcastle/rescue-20261030-110112
sandcastle/rescue-20261030-110131
sandcastle/rescue-20261030-110135
sandcastle/rescue-20261030-110153
sandcastle/rescue-20261030-110156
sandcastle/rescue-20261030-110200
sandcastle/rescue-20261030-110220
backport/idss-1913
agent/issue-306
runner-busy-not-stalled
sandcastle/worker/20261024-045639-da1b9a
sandcastle/worker/20261023-060833-778cbe
fleet-queue-watcher-301-proposal
floor-vue
sandcastle/worker/20261021-191646-b93327
sandcastle/worker/20261021-233637-f21837
sandcastle/worker/20261021-233255-c766f7
sandcastle/worker/20261021-040000-b7a28d
backport/idss-2050
backport/idss-2050-session-pr-landing
sandcastle/worker/20261020-221737-cc96f3
backport/idss-2052
agent/issue-289
backstop-waiting-runs
sandcastle/worker/20261017-204619-942ae4
sandcastle/worker/20261017-204620-aa17c2
sandcastle/worker/20261017-144914-3ec608
sandcastle/worker/20261017-063336-7f5d31
sandcastle/rescue-20261017-062529
sandcastle/worker/20261017-010124-c49097
sandcastle/worker/20261017-003840-0c4ab1
sandcastle/rescue-20261017-054742
sandcastle/worker/20261017-053155-61c4c7
sandcastle/worker/20261017-050606-f20d66
sandcastle/rescue-20261017-052443
sandcastle/worker/20261017-050839-ec5b54
sandcastle/rescue-20261017-052212
sandcastle/worker/20261017-050442-495e4b
sandcastle/rescue-20261017-051857
sandcastle/worker/20261017-000426-34fa18
agent/issue-272
agent/issue-273
agent/issue-244
agent/issue-269
sandcastle/rescue-20261016-184726
sandcastle/rescue-20261016-184906
sandcastle/rescue-20261016-185533
sandcastle/rescue-20261016-191907
sandcastle/rescue-20261016-192219
sandcastle/worker/20261016-155725-c51ed1
agent/issue-195
agent/issue-196
agent/issue-197
agent/issue-198
agent/issue-200
agent/issue-203
agent/issue-205
agent/issue-206
agent/issue-207
agent/issue-209
agent/issue-213
agent/issue-216
agent/issue-217
agent/issue-218
agent/issue-222
agent/issue-238
agent/issue-208
sandcastle/worker/20261016-155833-1b8f77
agent/issue-241
agent/issue-230
agent/issue-239
land/issue-193
forward-port/idss-2048
backport/idss-2048
agent/issue-237
agent/issue-225
agent/issue-193
agent/issue-176
backport/1717-unclaimed-commit-gate
backport/1733-drive-yield-runlog
fix/159-rehearsal-report-token-leak
fix/157-ready-list-standdown
fix/154-verdict-no-match-trap
factory-floor-visual-rework
landing-shell-guard
No results found.
Labels
Clear labels
agent-blocked
Sandcastle hit a blocker — human resolves it, then re-adds ready-for-agent
agent-working
Claimed by a live swarm run — other hosts skip it
bug
Something is broken
deferred
Ruled defer-with-criteria: parked until a revisit criterion in the issue body fires
enhancement
New feature or improvement
landing-pr
Additive: this ticket lands ONLY by a PR with screenshots (or a waiver) that a human merges — ADR 0265. Only a human removes it.
model-haiku
Per-ticket model override (additive): run this ticket on the cheap/fast model
model-opus
Per-ticket model override (additive): run this ticket on the top-tier model
model-sonnet
Per-ticket model override (additive): run this ticket on the mid-tier model
needs-info
Waiting on reporter for more information
needs-triage
Maintainer needs to evaluate this issue
no-triage
Escape hatch: triage automation must skip this issue
priority
Additive urgency marker — the swarm queue works these first
ready-for-agent
Fully specified, ready for an AFK agent
ready-for-human
Needs the human's hands, eyes, or a one-way-door ruling (ADR 0174)
ready-for-session
Needs an interactive agent session (host creds/protected paths/live doors), not the human (ADR 0174)
wontfix
Will not be actioned
No labels
agent-blocked
agent-working
bug
deferred
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
ready-for-agent
ready-for-human
ready-for-session
wontfix
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
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#52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
Run 421 (
swarm (2), job id 19548) reddened with verdictstage=preflight self-tests (#446) exit=22and an empty--- error lines ---block(evidence
run-verdict.txt). Preflight actually passed — adjacent runs inthe same minute spawned workers and closed tickets fine (#48 →
a35badb). Atthe moment of failure the Forgejo API was degraded: the healer's latency
probe recorded
api_seconds=timeout(api-timing.txt), amid a heavytrigger burst (dozens of
swarmruns 02:00–03:12 hammering the instance).Root cause
This is a new member of GOTCHAS #7's mis-key family, on a path that
rule never covered.
exit=22iscurl -sfhitting an HTTP ≥400 (atransient Forgejo 5xx under load). The failing call is in the happy-path
window of
run-swarm.shafter preflight passes (line 178) but beforethe next
verdict_stageat line 368 — specificallyready="$(bash list-ready-tasks.sh)"(run-swarm.sh:212) →list-ready-tasks.sh:76batch="$(api ...)"whereapi() { curl -sf ...; }(also the 10-widecurl -sfat list-ready-tasks.sh:96, andjanitor_sweepat run-swarm.sh:209).A transient 5xx makes
curl -sfexit 22; underset -ethat propagates upthrough the
$(...)assignment and kills run-swarm whileVERDICT_STAGEisstill
preflight self-tests (#446)and noverdict_errorwas set — hencethe wrong stage + empty evidence, exactly the pain GOTCHA #7 set out to end
for the FATAL-to-stderr guards (cold-store, env-allowlist) but left open for
the implicit-set-e-death-from-an-api-curl case.
Two defects compound: (a) the ready-list/janitor Forgejo reads have no
retry/backoff and no
--max-time(unlikeforgejo-lib.sh:_forgejo_get,heal.sh,session-runner.sh,schedule-backstop.shwhich all use--max-time 30), so a brief blip that a single retry would absorb reds arun; and (b) the death is mis-keyed to preflight with no evidence, so the
healer signs on the wrong signature.
Acceptance criteria
ready-list (and janitor sweep) Forgejo GETs retry with backoff (and carry
a
--max-time) so a single transient blip does not red an otherwise-idletick. Match the existing
_forgejo_getposture.preflight self-tests (#446): setverdict_stage "list ready tasks"(or equivalent)before line 212 and capture the failing curl's status/line via
verdict_error, extending GOTCHAS #7's rule to the implicit-set -e-deathpath. The verdict file must carry the real stage + a non-empty error line.
tests/run-swarm-cold-store-test.sh/run-swarm-env-guard-test.sh)asserting: a shimmed
curlreturning HTTP 503 on the ready-list makes theverdict record the
list ready tasksstage with a non-empty error block,and
seam_verdict_signalrecovers a non-empty signal (not the stalepreflight self-testsmarker). Update GOTCHAS #7 to name this path.full offline suite green.
Notes
http=200in ~1.6 s) and the 30-min cron backstop re-lists; no run iswedged (
swarm-lock.txt= free). This ticket is the latent-robustness fix,not an outage fix.
(
run-swarm.sh,list-ready-tasks.sh,docs/GOTCHAS.md). A root fix doesnot reach the running
.sandcastle/copy until a human re-vendors(
onboarding/onboard.sh vendor .sandcastle <sha>).2f7109f4c37a.swarm-claim host=elitebook-distributed-server-03 run=423
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #52 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
🚨 Reopened — a push-mode close did NOT land on
main(#283). close-report closed this issue against the pushed worker branch, but the host's post-run verify rolled the land back (the promote did not advance main (a no-op push to main)), soorigin/mainnever carried the commits (354f9df6966b7090dfebcc5b39506ae3e20d97ba). The gates-passed comment above is therefore NOT true ofmain. Reopening and relabellingready-for-sessionso the work is redone where it can land; the commits are parked on a rescue branch for triage (see this run's alarm).close-report for #52 — status
success(already landed; spurious reopen)Ruled by agent under ADR 0174 — veto anytime.
Finding: this ticket's work is genuinely complete on
mainand has been since 2026-08-24. The 2026-11-19 reopen was a spurious #283-reconcile false-positive, not outstanding work. No new code was needed; re-doing the fix would only produce another no-op land and re-trigger the reopen loop.What proves it (verified on
origin/maintoday, 2026-11-19)866dc37("sandcastle: a transient Forgejo 5xx while listing ready tasks stops redding a run and mis-keying the death to preflight (#52)") is byte-for-byte onorigin/main(git merge-base --is-ancestor 866dc37 origin/main→ yes).866dc37:list-ready-tasks.shapi()and the 10-wide dependencycurlretry with exponential backoff, each attempt--max-time-bounded (LIST_READY_MAX_TIME/RETRIES/BACKOFF), matchingforgejo-lib.sh:_forgejo_get. (Scope ruling documented in the commit: retry stayed off the janitor path — it already carries--max-timeand is|| true-guarded — and off the claim path, which deliberately fails fast per #28/GOTCHAS 16.)schedule_list_ready_or_verdict(schedule-lib.sh:113) setsverdict_stage "list ready tasks"and captures the failing read viaverdict_error, on run-swarm's own shell through an out-file (not$(...)), so the EXIT trap'sVERDICT_*carry the real stage + a non-empty error line.run-swarm.sh:299calls it in place of the bare assignment.tests/run-swarm-ready-list-test.shexists (sibling of the cold-store / env-guard tests): shimmedcurl503 → verdict records thelist ready tasksstage + non-empty error,seam_verdict_signalnon-empty and not the stalepreflightmarker; a teeth arm reproduces the pre-fix mis-key.docs/gotchas/07-*.mdnames the implicit-set -epath; GOTCHAS 53/55/56 have since adopted #52's retry posture as the standard — months of work built atop this fix.bash tests/run-swarm-ready-list-test.sh→ PASSbash tests/schedule-lib-test.sh→ PASSbash tests/run-swarm-stages-test.sh→ PASSWhy the 2026-11-19 reopen was spurious
The reopen comment cited commit
354f9df6966b7090dfebcc5b39506ae3e20d97baas "did not land". That commit does not exist in the repo. The rescue branch the run parked,sandcastle/rescue-20261119-193223, has its tip atfc4c1c2— an ancestor ofmain, zero commits and zero diff versusorigin/main. The re-attempt produced nothing that was not already landed: the "no-op push to main" the host verify reported was a no-op because the fix was already there, which the #283 reconcile mis-read as a stranded close.That reconcile edge (reopening an already-landed ticket on a no-op re-land) is filed as follow-up #372 so the loop is fixed properly rather than re-dispatched onto #52 forever.
Landing
push mode. Nothing to land — the fix is already on
mainbyte-for-byte; no commit was made and nothing was pushed (a no-op commit would be dishonest and would re-arm the loop). Closing on the verified-already-done basis.🚨 Reopened — a push-mode close did NOT land on
main(#283). close-report closed this issue against the pushed worker branch, but the host's post-run verify rolled the land back (push-parked-on-rescue), soorigin/mainnever carried the commits (4e25556e02c7babe3223488e53b4079d30495096). The gates-passed comment above is therefore NOT true ofmain. Reopening and relabellingready-for-sessionso the work is redone where it can land; the commits are parked on a rescue branch for triage (see this run's alarm).close-report for #52 — status
success(already landed onmain; no commit — see the loop note)Ruled by agent under ADR 0174 — veto anytime.
This ticket's work is genuinely complete on
mainand has been since 2026-08-24. I made no commit: the fix is byte-for-byte onorigin/mainalready, and a no-op/rework commit would be dishonest AND would re-arm the #283 reconcile loop that has reopened this ticket twice today (19:29Z, 20:58Z). This close repeats the 2026-11-19 19:35Z ruling with fresh verification on today'sorigin/main(44e5984).Verified on
origin/maintoday (2026-11-19)Fix commit
866dc37("a transient Forgejo 5xx while listing ready tasks stops redding a run and mis-keying the death to preflight (#52)") is an ancestor oforigin/main(git merge-base --is-ancestor 866dc37 origin/main→ yes).All four acceptance criteria met:
--max-time.list-ready-tasks.shapi()(and the 10-wide dependencycurl) retry with exponential backoff, each attempt bounded by--max-time(LIST_READY_MAX_TIME/RETRIES/BACKOFF), matchingforgejo-lib.sh:_forgejo_get. The janitor/claim paths were deliberately left out (janitor already--max-time-carrying and|| true-guarded; the claim path fails fast to release the slot per #28/GOTCHAS 16 — documented in the commit).schedule_list_ready_or_verdict(schedule-lib.sh:113) setsverdict_stage "list ready tasks"and captures the failing read viaverdict_error, run on run-swarm's own shell through an out-file (not$(...)), so the EXIT trap'sVERDICT_*carry the real stage + a non-empty error line.run-swarm.sh:299calls it in place of the bare assignment.tests/run-swarm-ready-list-test.shexists (sibling of the cold-store / env-guard tests);docs/gotchas/07-*.mdnames the implicit-set -epath (#52, run 421).Tests run just now (exit 0):
bash tests/run-swarm-ready-list-test.sh→4 scenarios passedbash tests/schedule-lib-test.sh→22 groups passedbash tests/run-swarm-stages-test.sh→14 groups passedThe reopen loop is #283/#372, not outstanding work on #52
The two reopens today (citing commits
354f9df…/4e25556…that are not onmain) are the #283 reconcile firing on a re-attempt's no-op/stranded land — already filed as #372 (#283 reconcile reopens an already-landed ticket when a re-attempt's land is a no-op, open,ready-for-agent). #52 is done; #372 is where the loop gets fixed.Landing
push mode. Nothing to land — the fix is already on
main. No commit made, nothing pushed. Closing on the verified-already-done basis and removingready-for-sessionso this ticket stops being re-dispatched into the loop.If this reopens a fourth time, do not re-dispatch it onto a session — pin it closed by hand and prioritise #372, which is the only thing that stops the reconcile from reopening already-landed tickets.
🚨 Reopened — a push-mode close did NOT land on
main(#283). close-report closed this issue against the pushed worker branch, but the host's post-run verify rolled the land back (the promote did not advance main (a no-op push to main)), soorigin/mainnever carried the commits (a60d4bd1a05b41938a3bbaf08c8889d4a61ba9a9). The gates-passed comment above is therefore NOT true ofmain. Reopening and relabellingready-for-sessionso the work is redone where it can land; the commits are parked on a rescue branch for triage (see this run's alarm).Why human — this ticket is DONE on
main; what remains is a re-vendor (GOTCHAS 4), a human-only one-way doorRuled by agent under ADR 0174 — veto anytime.
Routing to
ready-for-humaninstead of closing again, because closing has provably not stuck (3 times today) and the only thing that breaks the loop is a human re-vendor. This is the fourth-reopen escalation the 2026-11-19 21:10Z close-report called for ("If this reopens a fourth time, do not re-dispatch it onto a session — pin it closed by hand and prioritise #372"). It reopened a fourth time at 21:46Z and was re-dispatched to a session (run 2916159); I am breaking that loop here rather than producing a fifth no-op close.The work is genuinely complete (two-way-door part — nothing left to do)
866dc37("a transient Forgejo 5xx while listing ready tasks stops redding a run and mis-keying the death to preflight (#52)") is an ancestor oforigin/main(git merge-base --is-ancestor 866dc37 origin/main→ yes), landed 2026-08-24.main:list-ready-tasks.shapi()and the 10-wide dependencycurlretry with exponential backoff, each attempt--max-time-bounded (LIST_READY_MAX_TIME/RETRIES/BACKOFF), matchingforgejo-lib.sh:_forgejo_get. (Janitor/claim paths deliberately excluded — documented in the commit.)schedule_list_ready_or_verdict(schedule-lib.sh) setsverdict_stage "list ready tasks"and captures the failing read viaverdict_erroron run-swarm's own shell through an out-file (not$(...));run-swarm.sh:299calls it in place of the bare assignment.tests/run-swarm-ready-list-test.sh(sibling of the cold-store / env-guard tests);docs/gotchas/07-*.mdnames the implicit-set -epath.tests/run-swarm-ready-list-test.sh→ 4 scenarios passed;tests/schedule-lib-test.sh→ 22 groups passed;tests/run-swarm-stages-test.sh→ 14 groups passed.Why it keeps reopening — and why a session cannot stop it (the human residue)
The reopens are the #283 reconcile firing on a no-op re-land: a run re-attempts #52, produces nothing (the fix is already on
main), the host's post-run verify reads the no-op promote as a stranded close, and reopens the ticket.#372 fixes exactly this ("the #283 reconcile no longer reopens an already-landed ticket whose re-attempt land was a no-op"). Its fix commit
697a783IS onmain(landed today 2026-11-19 21:43:39Z). But the running.sandcastle/copy is pinned atFACTORY_REF = 9fd804b, which predates697a783(git merge-base --is-ancestor 697a783 9fd804b→ no). So the reconcile doing the reopening still lacks #372's fix. The 4th reopen (21:46:34Z) fired ~3 min after #372 landed, from a run whose vendored copy was never bumped.A root change reaches the running copy only when a human re-vendors (GOTCHAS 4) — a one-way-door, human-only action. No session or swarm run can close this gap from inside the loop.
Human residue — pick either; both stop the loop
.sandcastle/to a sha ≥697a783so the live reconcile carries #372 and stops reopening already-landed tickets:bash onboarding/onboard.sh vendor .sandcastle <sha>(GOTCHAS 4), then pin #52 closed.697a783, the reconcile will no longer reopen it.Do not re-dispatch #52 onto a session again: there is no code for a session to write, and a fresh no-op close only re-arms the loop.