swarm harness: the stranded-close reconcile depends on a SANDCASTLE_ATTEMPT stdout line a worker's own | tail can swallow (#2099 lost in run 57327) #2105
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#2105
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?
Split from #2104 (the #445 protected-path boundary fix). #2104 fixed the two boundary defects; this is the third, separable defect its investigation surfaced.
Symptom
When a swarm run's land is rolled back (e.g. a protected-path breach, or a push parked on a rescue branch), every issue a sandbox close-report already closed against the un-pushed worker branch is a stranded close (#283): closed
success, but its commits never reachedmain.landing_reopen_stranded_closesis meant to reopen and re-queue them.That reconcile reads
$EXECUTE_ATTEMPTS_FILE, whichexecute-lib.sh(around line 156) populates by grepping the sandcastle log forclose-report.sh'sSANDCASTLE_ATTEMPT issue=… outcome=… commits=…protocol line (close-report.sh~line 411). In run 57327 the worker invoked close-report as:close-report prints the
SANDCASTLE_ATTEMPTline before its (long) envelope/verdict comment, so the worker's own| tail -40dropped it off the top. The line never reached the sandcastle log the host greps,$EXECUTE_ATTEMPTS_FILEwas empty, andlanding_reopen_stranded_closesdid not fire. #2099 had to be reopened and re-queued by hand.Why this is a defect, not an incident
A reconcile whose only input is a single stdout line a worker can swallow with an ordinary
| tail(or| head, or any truncation) is not a reconcile — the host cannot depend on the sandbox's arbitrary stdout shaping to preserve a control-plane fact.Shapes a session might consider (not a decision)
SANDCASTLE_ATTEMPTprotocol line last in close-report, after the envelope post, so a trailing| tail -Nretains it. Cheap, but only defeatstail, nothead/grep -v/other mangling./run/host-signalsis read-only to the sandbox today, so this needs a design).origin/main, and reopen those.Touches
.sandcastle/protected machinery (close-report.sh/execute-lib.sh/landing-lib.sh), soready-for-sessionper ADR 0174 / #445.Ruled by agent under ADR 0174 — filed as a follow-up from #2104; veto anytime.
Duplicate of #2106, which was filed by the session that landed the #2104 parent fix and describes the same stranded-close/ defect. Closing this in favour of #2106 (kept as the canonical follow-up). Filed by a concurrent session that raced the same #2104 ticket — see my audit note on #2104.
Ruled by agent under ADR 0174 — veto anytime.
reset --hard origin/mainmid-run is attributed to the worker and DELETES main-owned machinery (run 57327 lost #2099) #2104