elitebook-03 crash-loops on every dispatch: .sandcastle/worktrees mount missing on fresh clones #466
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#466
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
elitebook-03, freshly onboarded for the pool cutover (
44fe333), crash-looped on every single dispatch since going live at ~03:36Z:pnpm run sandcastledied in <1s withError: Mount hostPath does not exist: .sandcastle/worktrees, thrown by @ai-hero/sandcastle before any worker container spawned. run-swarm.sh retried every 20-60s against the same ready set (#464/#465) for ~7 minutes straight — zero real work done on that host since cutover.Cause
main.mtsmounts.sandcastle/worktreesat its own host path (#239) as a MANDATORY Docker bind mount. The directory is gitignored (it holds live git worktrees), so a fresh clone never has it on disk.run-swarm.shalreadymkdir -ps the other three host-side scaffolding dirs (secrets/,pnpm-store/,nix-store/) before each run, but never createdworktrees/. The long-lived matou-workstation checkout got away with skipping this only because a worktree had already been created there once, long before this cutover — the bug was latent until a genuinely fresh host joined the pool.No claim comment was ever posted for #464/#465 from elitebook (verified via the issues API) — the crash happens before
claim-next-task.shruns inside the container, so this was a throughput/capacity defect, not a double-pickup risk.Fix
56b92b6—mkdir -p "$here/worktrees"alongside the existing scaffolding, and manually created the directory live on elitebook to stop the immediate crash loop mid-watch. Confirmed elitebook picked up dispatches cleanly afterward during the Task 11 cutover watch.Found during
Task 11 (cutover watch) of the multihost-swarm plan,
.superpowers/sdd/2026-08-11-multihost-swarm/.Fixed and live-remediated during the Task 11 cutover watch — see commit
56b92b6.Category: bug
Recommendation:
ready-for-agentVerification: confirmed. The fix this issue describes is already landed at HEAD —
56b92b6(sandcastle: run-swarm.sh mkdir's the worktrees mount before every run) addsmkdir -p "$here/worktrees"to.sandcastle/run-swarm.shalongside the existingsecrets//pnpm-store//nix-store/scaffolding, exactly as described in this issue's Fix section..sandcastle/worktrees/is gitignored (.gitignore:7,.sandcastle/.gitignore:3), matching the described cause. No redundant work needed on the code fix itself, and nothing in.out-of-scope/resembles this (it's not a rejected request).What's left: this repo treats operational hazards like this one as a durable artifact class (
docs/GOTCHAS.md, ADR 0160:docs/adr/0160-gotchas-is-an-artifact-class.md), which requires "an entry in the same commit as the fix or ticket that closes the hazard."56b92b6landed the fix but did not add aGOTCHAS.mdentry, so that half of the convention is still outstanding — that's the concrete remaining work, not a design or judgement call, so this goes toready-for-agentrather thanready-for-human.Agent Brief
Category: bug
Summary: Add the missing
docs/GOTCHAS.mdentry for the.sandcastle/worktreesmandatory-mount hazard, and close this issue in the same commit.Current behavior:
The hazard this issue documents (a mandatory Docker bind-mount hostPath that is gitignored, so a fresh host checkout never has it on disk and crash-loops on every dispatch before any worker spawns) has a landed code fix but no corresponding
docs/GOTCHAS.mdentry, even thoughdocs/GOTCHAS.md's own header and ADR 0160 require one "in the same commit as the fix or ticket that closes the hazard."Desired behavior:
docs/GOTCHAS.mdgains one new numbered entry, appended after the current last entry, following the existing Symptom → Cause → Rule structure and severity marker (⭐ = cost real time, ⭐⭐ = took something down or would have — this took a whole host's throughput to zero for ~7 minutes, so weigh accordingly). The entry should be self-contained the way existing entries are: nameable mount/scaffolding concepts, not file paths or line numbers that will drift. This issue (#466) is closed in the same commit that adds the entry, per the project's established pattern for hazard postmortems.Key interfaces:
docs/GOTCHAS.md— one new entry at the end of the numbered list, matching the format of entry 17 (${VAR:?}inside$(...)underset -u), which is the most structurally similar (a scaffolding/guard omission class, single-commit fix, host-scoped blast radius).56b92b6); do not re-touch.sandcastle/run-swarm.shfor this hazard.Acceptance criteria:
docs/GOTCHAS.mdhas a new numbered entry describing this hazard (Symptom → Cause → Rule, severity-marked)56b92b6) and the originating issue (#466)Out of scope:
STATUS.md— this is a documentation-only follow-up to an already-landed fix, not a new phase/gate/feature changeNoted — you closed this directly with the fix confirmation while triage was in flight, which supersedes the
ready-for-agentrouting above. Leaving the labels as-is per this repo's convention of keeping state labels on closed issues as a record (matches #453/#454/#455/#461/#462).The one open thread from my brief — a
docs/GOTCHAS.mdentry for this hazard per ADR 0160 — is now optional/your call rather than active agent work, since you've already closed the ticket. Reopen or file fresh if you want that follow-up actioned.