backstop: guard on runs?status=waiting too — a queued run has no task row (#289, GOTCHAS 78) #290
No reviewers
Labels
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
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/dev-factory!290
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "backstop-waiting-runs"
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?
Fixes the dispatch flood in #289 (GOTCHAS 78).
What:
schedule-backstop.shadds a second, fail-closed read ofruns?status=waiting&limit=50&page=1and skips the dispatch when a run of the same workflow file (.workflow_id) is queued. The existingactions/tasksguard (#238) stays — it covers running and recently-started jobs — but a task row exists only once a runner has picked the job, so a queued run never appears there. That is why on 2026-10-15, with one pool runner silently stalled, the guard dispatched on every tick (101 / 15 in the 04Z hour vs the normal 24 / 92) and Forgejo's single oldest-first queue lagged 1h45m for every repo.Why keyed on the workflow file, not the job name: a run queues as a whole; an unpicked per-host leg says the pool cannot take more right now, and adding a run only queues another leg. The GOTCHAS 62 per-host discrimination still applies to the tasks view (a running other-host leg does not silence this host).
Ratchet: the new read carries
status=waitingandpage=and goes through the timedapi(), sotests/actions-endpoint-test.shpasses unchanged; its exemption comment now names the backstop as the second reader of that view.Tests: four new scenarios in
tests/schedule-backstop-test.sh(22 total), watched red first on the queued-run case. Full offline suite (tests/*.sh+onboarding/tests/*.sh) green,docs-budget-testgreen.Docs: GOTCHAS 78 body + index row, journal
2026-10-20-289.md, STATUS hosts row notes the matou-workstation stall.Rollout note: consumers get this at their next
FACTORY_REFbump + re-vendor, and the host tick (backstop-tick.sh) calls each repo's vendored copy under~/swarm/Matou/<repo>/.sandcastle/, so those checkouts must pull it. The ignition (a runner that stops fetching without dying) is out of scope here.🤖 Generated with Claude Code