schedule-backstop re-dispatches resume-asks on EVERY tick (~15/hr vs 2/hr intended): the vendored copy predates the resume-asks -> resume job-name fixup, so its in-flight guard can never match #2077
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#2077
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?
Filed by the healer (
heal-Matou-idss-1793214140-3890659, watchdog pass of 2026-10-28 19:02 UTC, signaturee2c0a0a76977, workflowresume-asks, evidence/tmp/matou-heal-Matou-idss.xA7cKPonmatou-dev-server-01, swarm lockfree). No repair attempted —.sandcastle/is a protected path (#445 / ADR 0174), henceready-for-session.This is a separate defect from the red that woke the pass (that one is #2076 —
elitebook-03's disk). But it is the amplifier: it multiplies how oftenresume-asksgets a coin-flip onto the wedged runner, and it is the reason this signature streaked at all.Symptom
This repo's vendored
.sandcastle/schedule-backstop.shdispatchesresume-asks.ymlon every single tick, forever, and has never once skipped. From~/swarm/logs/backstop.logonmatou-workstation, every*/15tick from 14:15 to 19:00 UTC today:20/20 ticks dispatched, 0 skipped. Every other repo on the same ticks skipped, with a visibly different word in the message:
resumevsresume-asks— that is the whole bug.Root cause
schedule-backstop.shkeys its in-flight/recency guard on the job name as the runs listing reports it, not the workflow file name, and carries a small fixup table. This repo's copy has only thehealerentry:The canonical copy in
Matou/dev-factoryhas a second line:.forgejo/workflows/resume-asks.ymlnames its jobresume:, so Forgejo reports"name": "resume"inactions/tasks:The jq filter therefore matches zero rows on every tick,
inflight=0, and the backstop — whose entire contract is "a healthy scheduler makes every tick a no-op" — fires unconditionally. It is not a backstop here; it is a second scheduler.check-harness-drift.shis green (the file matches the pinned ref byte-for-byte), so nothing has flagged this. The drift check does print:FACTORY_REF is 521 commit(s) behind … main.Blast radius
resume-asksisruns-on: swarm— the shared pool label, not a pinned host. From this pass'sruns.json, 17:41–19:00 UTC (79 min): 20resume-asksruns, only 2 of themevent=schedule(the10,40 * * * *cron the workflow actually asks for). The other 18 areworkflow_dispatch— ~15/hour against an intended 2/hour, from three hosts' ticks plus theSESSION_RUNNER_NUDGEticks.Two costs:
elitebook-03runner (#2076). At ~1/3 pool odds, 15 dispatches/hour is ~5 manufactured reds/hour — enough to hold aresume-asksstreak permanently red and bill an Opus heal pass for it (which is #2045's complaint, now on its Nth workflow name).swarmslot for 142-222 s (measured this window). 15/hour instead of 2/hour is ~45 min/hour of a 3-host pool spent re-reading the same parked-ask threads.Fix
The real fix is the FACTORY_REF bump (#1684) — this file is vendored byte-identical and
check-harness-drift.shreds on a direct edit, so a one-file patch here is not available, and a 521-commit bump is not a healer's one-shot repair.Explicitly not the fix: renaming the job in
.forgejo/workflows/resume-asks.ymlfromresume:toresume-asks:. That would satisfy the stale guard today and silently re-break it the moment the FACTORY_REF bump lands, because the canonical copy maps the other direction. It is a trap, not a shortcut.Acceptance
~/swarm/logs/backstop.logshowsMatou/idss/resume-asks.yml … skippingon ticks where aresumerun is in flight or ran inside the 40 min window — i.e. the same wording the other six repos already print.resume-asksrun count returns to ~2/hour withevent=scheduledominating./is 100% full (0 bytes free) because /etc/cron.d/swarm-prune still points at the rootless docker socket — every task landing on its runner dies in 1-3s at Set up job, includingswarm-pool triage/resume-asks #2076Close-report — fixed, landed on main
Root cause confirmed exactly as filed. The vendored
.sandcastle/schedule-backstop.shkeyed its in-flight guard on the JOB nameactions/tasksreports, with a fixup table carrying onlyhealer→watchdogand missingresume-asks→resume..forgejo/workflows/resume-asks.ymlnames its jobresume:, so the live API reportsname=resume(verified: the 50-rowactions/taskslisting for this repo shows every resume-asks run asname=resume, neverresume-asks). The guard therefore matched zero rows every tick and the backstop dispatched unconditionally.Why a direct edit was not the fix, and what was. The file is vendored byte-identical from the factory (
FACTORY_MANIFEST), so a hand-edit redscheck-harness-drift.sh. Fixed via the ADR 0180 path. df #190 (1ab59e9) already carries the mapping line + its four regression tests on dev-factorymain, but idss's pin3a0c627is the tip of thebackport/idss-1913branch, which predates #190 — so this was pure backport-branch catch-up to a fixmainalready has, adding zero forward-port debt (#2053 is untouched). I did not rename the workflow job (the trap the ticket names) and did not attempt the 521-commit main adoption (that is the separate #1684 job; the drift NOTE is unchanged).What landed
backport/idss-1913advanced3a0c627→79f5d5d: cherry-picked #190'sschedule-backstop.sh+tests/schedule-backstop-test.shonly (df's own STATUS.md churn from that commit dropped).mainc9d64caa→498f4512:.sandcastle/FACTORY_REF3a0c627→79f5d5d; re-vendoredschedule-backstop.sh+tests/schedule-backstop-test.shto match the new pin byte-for-byte;STATUS.mdheader entry.Proof
check-harness-drift.sh: OK — every vendored factory file matchesdev-factory@79f5d5d(the new pin is fetchable by SHA, the drift check's exact mechanism).schedule-backstop-test.sh: 18/18 scenarios, including the four #190 resume cases. Red-before-green confirmed — removing just the mapping line fails "a running 'resume' job must SUPPRESS resume-asks.yml's dispatch".resumerun is now counted — old guardselect(.name=="resume-asks")→ 0 matches; new guardresume-asks→resumeover the same live listing → 9 matches (onerunning). So the next tick that sees an in-flight/recentresumerun printsskippinginstead of dispatching — the same wording the other six repos already print.Propagation note (honest). The host backstop tick runs
schedule-backstop.shfrom the shared swarm checkout/home/swarm/swarm/Matou/idss, which resets toorigin/mainon each swarm/triage/healer run. At close it is still atc9d64caa(old pin); it adopts498f4512on the next reset, after which~/swarm/logs/backstop.logwill showMatou/idss/resume-asks.yml … skippingon ticks with an in-flight/recentresumerun and the dispatch rate returns to ~2/hr (event=schedule). I did not manually reset the shared checkout — it is live shared state other workers use; forcing it would race them. This is normal pull-only propagation, not a residue.The ticket's symptom contains no steering text.
Ruled by agent under ADR 0174 — veto anytime. Two-way door: revertible (
git revert 498f4512+ reset the df branch to3a0c627) and provable (the vendored test + the drift check).