rehearsal: the reporter's dependency POST 404s against live Forgejo — the blocked-invariant silently fails, hot-loop risk (#373 follow-up) #381
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.
Blocks
Reference
Matou/idss#381
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?
Found by live probe while wiring #380's dependency by hand (2026-08-09). The reporter landed by #373 wires each red's issue as a blocker of the drive issue with:
Against the live Forgejo that body shape is a 404:
The working shape names the target issue's repo in the IssueMeta body (proven — it wired #380 blocked-by #379):
Why this is a hot-loop bug, not a cosmetic one
#378's lifecycle (Ben's ruling): after a red, every filed/matched issue must be wired as a native dependency of the drive issue — "this issue must never sit ready and undepended after a red." With the 404 swallowed by
|| true, issues get filed but NO blocker lands, so #378 staysready-for-agentand unblocked → the next executor pick re-drives immediately → hot loop, burning droplets against the same red. Theready-for-humanswap doesn't save it: that path only fires when nothing could be filed, and filing succeeds.Why the test didn't catch it
.sandcastle/tests/rehearsal-report-test.shshims curl, so any body shape passes. Test 5 asserts the POST happens, not its shape.What to do
owner/repoto the dependency POST body (derive fromFORGEJO_APIor hardcode alongside it in.env).ready-for-humanswap (the invariant's designed escape hatch) instead of|| true.Evidence: #380 now shows #379 as a live-wired dependency created with the working shape.
Fixed in
74889fa(on origin/main).The bug: the #373 reporter wired each red as a native blocker of the drive issue with a bare
{"index": n}body, which live Forgejo 404s (IsErrRepoNotExist). With the 404 swallowed by|| true, no blocker landed → #378 stayedready-for-agentand undepended → hot loop.The fix (
.sandcastle/rehearsal-report.sh):owner/repo, derived fromFORGEJO_API's.../repos/<owner>/<repo>tail — the working IssueMeta shape.api()'s-fwould swallow it):2xx=created,409=already a blocker (tolerated, the blocker IS landed), anything else = the blocker did NOT land → fall to the reporter'sready-for-humanswap (the invariant's escape hatch) instead of|| true. Sharedflip_drive_to_human()now backs both the nothing-filed and wiring-failed paths..sandcastle/tests/rehearsal-report-test.sh: the curl shim emulates-w '%{http_code}'(with aDEP_CODEoverride) and asserts the dependency body names owner+repo. New cases pin the wire shape (7), the wiring-failure→ready-for-human invariant (8), and 409-tolerated-stays-blocked (9). 9 cases, all green (was 6).