Swarm harness: a non-STATUS.md merge conflict strands the workdir + orphan sandcastle/worker branches (dev-factory) #1901
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#1901
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?
Follow-up split from #1899 (STATUS.md
merge=union, landedead4f1a5). That fix removes the STATUS.md collision — the one recurring cause of the run-32926 SyncError — but two residuals it names are dev-factory concerns, out of this repo's two-way reach:1. A genuine merge conflict on a NON-STATUS.md path still strands the workdir
@ai-hero/sandcastleruns a plaingit merge "<worker-branch>"(execAsync,dist/chunk-VOG34SRF.js) and, on any conflict it can't auto-resolve, raisesSyncErrorand preserves the temporary branch, leaving the host workdir mid-merge (MERGE_HEADlive) — nogit merge --abort, no orphan sweep. With STATUS.md nowmerge=unionthis can no longer fire on the milestone log, but any real code conflict between two concurrent workers still leaves the same stranded state. This is library behaviour with no between-iteration host hook — the same out-of-reach residual #1717 already recorded. Options from #1899:SyncError, re-fetch, rebase the worker branch onto the newmain, re-attempt once, escalate only if a non-STATUS.md path conflicts.Both live in
Matou/dev-factory(the vendored@ai-hero/sandcastle/ harness), so they land upstream + re-vendor here (oneFACTORY_REFbump), not as an idss-local edit.2. Orphaned
sandcastle/worker/*branches are never sweptA stranded merge leaves a
sandcastle/worker/*branch forever. Whatever merge strategy is chosen should also sweep them (guarded so a branch holding un-pushed work is reported, not deleted). Known live orphans from run 32926, onelitebook-distributed-server-03's swarm workdir (~/swarm/Matou/idss), all with their work already safe on PRs #1898/#1897:sandcastle/worker/20260826-041808-6b0e8fsandcastle/worker/20260908-021709-1678bdsandcastle/worker/20260925-190818-d08c0b(matou-workstation's swarm workdir carries no such orphans as of 2026-09-25.)
Acceptance
main).sandcastle/worker/*branches are swept or reported (never a blind delete of un-pushed work).Filed by the #1899 session under ADR 0174 (work only that ticket; file follow-ups).
Triage:
bug+ready-for-humanVerified this is not an app report (no
<!-- origin: app-report -->marker via.sandcastle/body-marker-lib.sh; body opens "Follow-up split from #1899"). It is an internal follow-up filed by the #1899 session, well-specified, with concrete acceptance.Category —
bug: two defects in existing harness behaviour — a genuine (non-STATUS.md) merge conflict between concurrent workers strands the host workdir mid-merge (MERGE_HEADlive, no--abort), and orphanedsandcastle/worker/*branches are never swept. Same class as #1739 / #1717.Why human
This is the Ben's-eyes / watched-landing residue, not an ADR 0174 two-way door:
main, or (4) re-serialise only the merge with a host-side flock — live inMatou/dev-factory(@ai-hero/sandcastle/ the vendored harness). They reach this repo only via aFACTORY_REFbump + re-vendor, so a swarm worker (idss-only, readsready-for-agent) cannot execute them. Notready-for-agent.FACTORY_REFneeds human eyes on the swarm as it lands: a regression in the merge-to-main path wedges every unattended host's swarm, and the revert mechanism itself (the swarm landing commits tomain) is exactly what would be broken. That failure mode ("unattended hosts wedge in the field") is not provable by an existing test, so it is not a cleanly agent-revertible two-way door — it needs a watched landing.Suggested shape for the watched session
Matou/dev-factorybehind a reproduction test — drive the run-32926 collision through a scratch repo (as #1899'sscripts/tests/status-md-union-merge-test.shdoes for the STATUS.md leg) and assert: a non-STATUS.md conflict fails loud but the workdir is restored (or the merge retries onto the advancedmain); no work lost. The (3)-vs-(4) choice is a two-way design call the session can rule under ADR 0174.FACTORY_REF,onboard.sh vendor, reconcile any per-repo.sandcastledeltas, and watch a swarm tick land green before walking away.elitebook-distributed-server-03's swarm workdir (~/swarm/Matou/idss) —20260826-041808-6b0e8f,20260908-021709-1678bd,20260925-190818-d08c0b— are safe (their work is on PRs #1898/#1897, per STATUS.md). Sweep guarded: report a branch holding un-pushed work, never blind-delete.Acceptance (from the issue)
main).sandcastle/worker/*branches are swept or reported (never a blind delete of un-pushed work).