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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#2119
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
Two more stranded closes on 2026-10-31, after #2104 / #2106 / #2112 landed:
main?d1de7bfdsandcastle/worker/20261030-204811-23d7d801b44d6dsandcastle/worker/20261031-022408-03ae8bBoth close-reports say
successand "pre-land — the host promotes it tomainonly after its post-run verify, #193/#283". Neither was promoted;mainstayed atc9a71e0f(#2099). No comment on either issue records a failed post-run verify, and the #283 stranded-close reconcile did not reopen them.Knock-on: #2102's native dependency on #2100 counted the (closed) issue as satisfied, so #2102 was built without #2100 underneath — the two worker commits are siblings off
c9a71e0f.Earlier in the same arc, #2097 and #2099 stranded the same way (#2104, run 57327) and had to be reopened by hand.
Evidence the code was fine
Stacked by hand on current
mainin PR #2118: clean cherry-picks; app unit suite 2335/2335, vue-tsc clean, helper Go tests pass, prove-script test passes. So the post-run verify (if it ran) should have passed — the promote step was dropped, or the verify failed silently.Wanted
origin/mainafter the promote window.main.close-report — landed on
main(push mode)What landed: idss
7bd8a9bc(STATUS.md + re-vendorFACTORY_REF40d60ac→4dc855d), vendoring dev-factorybackport/idss-21194dc855d(off the pin40d60ac).landing-lib.sh+tests/landing-lib-test.shupdated;FACTORY_MANIFESTno churn; drift-gate OK.Why the two branches were not promoted (Wanted #1)
Confirmed in
landing-lib.sh— not a sink-read gap this time. In push mode the host promotes withgit push origin HEAD:main(landing_push_main_with_rescue). When the worker's commit never reached the runner HEAD (the mirror dropped it), that push is a silent no-op — git returns 0 (Everything up-to-date) — solanding_stagereturns 0,mainstays put, and the run proceeds down the success path. The twolanding_reopen_stranded_closescalls inrun-swarm.share both wired to the failure exits (verify-breach, land-parked) only, so neither ran — exactly the observed signature:closed success,mainatc9a71e0f, no failed-verify comment, reconcile silent. A real rollback would have commented; it did not, because there was no rollback — the promote just advanced nothing.The reconcile now reopens on the success path (Wanted #2)
landing_stagere-runslanding_reopen_stranded_closeson its own success path, gated on a newLANDING_PROMOTE_CLEANsignal thatlanding_push_main_with_rescuesets only on a first-try fast-forward/no-op push (SHA-preserving) and clears on the rebase ladder. The gate is essential: a rebase landing rewrites the worker SHAs ontomain, where a by-SHA reachability check would false-reopen genuinely-landed work. It reads the exportedEXECUTE_ATTEMPTS_FILEthe failure-path reconciles already use and refetchesorigin/mainfirst (a sibling host may have promoted the commit). Logic lives in the lib;run-swarm.shstays at 199 code lines under its stage-extraction cap.A dependency no longer counts a stranded close as satisfied (Wanted #3)
Fixed at the source rather than in the lister: a no-op-promote strand is now reopened in its own run, so the blocker is OPEN — and the lister's existing closed-blocker check already refuses an open blocker as satisfied — before any dependent run lists it. So #2102-built-without-#2100 cannot recur. This is deliberately not a lister-side
git merge-basereachability probe: such a probe would permanently starve any dependent of a blocker whose commit was rebased/squashed ontomain(SHA divergence), a worse failure than the bug. Reopening-at-source enforces the same invariant for every consumer, not justlist-ready-tasks.sh.Proof
Red-before-green in
landing-lib-test.sh(+6, 121→127): the flag is set on a first-try push and cleared on a rebase landing; a no-op promote with an unreachable claimed commit reopens the stranded close on the success path (PATCH /issues/7); a commit that is onmainis left closed (no false green); pr mode never sets the flag so never runs the success-path reconcile. Also green:run-swarm-stages(budget),run-swarm-landing,ticket-landing,list-ready-tasks,check-harness-drift(OK @4dc855d).#2100/#2102 themselves are recovered by the human's hand-stacked PR #2118 — I did not reopen them here, to avoid racing that recovery.
Ruled by agent under ADR 0174 — veto anytime. Revertible:
git revert 7bd8a9bc+ resetbackport/idss-2119. Provable: the vendored red-before-green suite.