rented founding: the first seed dies on ENOENT — the mirror is never created for an empty box #2183
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#2183
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?
Severity: blocks every fresh rented founding at the seed row.
What happens
Reproduced twice on 2026-11-09 (communities 75aceea1… and 6c126096…, app 2026.11.3363, rented DigitalOcean syd1). Retry fails identically.
Root cause
RemoteConfigRepo.Mutate= ensureStore → pull → apply(mirrorDir) → push.pullrunstar -c --exclude=./.git -C <box> .and hands the bytes tountarInto(mirrorDir, …). A freshlygit inited box holds nothing but.git, so the archive is the bare root entry./.extractTardeliberately skips that entry and creates directories only as parents of real entries — so nothing ever createsmirrorDir.SeedCommunity's apply then doesos.WriteFile(mirror/flake.nix)and dies on ENOENT.Any box tree with at least one file would have created the mirror as a side effect, which is why only the first seed of a fresh rental fails. The re-rent test (
seedcommunity_rerent_test.go) starts fromt.TempDir(), an existing mirror, so it could not see this.Fix
internal/clan/mirror.gountarInto:os.MkdirAll(dir, 0o755)after clearing and beforeextractTar. Idempotent. Test:TestUntarInto_CreatesTheMirrorForAnEmptyBoxinmirror_test.go(archive with only./, mirror path that does not exist, then a write into it must succeed). Wholeinternal/clansuite green.Secondary
The failure surfaced as a raw Go error chain under a Retry that can never succeed. The seed leg should name a missing mirror as its own fault (ADR 0100/0125), the way the nix-missing case is routed to the prepare-this-machine block.
Fix: lands as
session/rented-seed-mirroron main with GOTCHAS #412. Then the operator app must be rebuilt at that revision (the feed pin is exact, GOTCHAS #410 / #1769).Fix landed on
mainasf780f625(branchsession/rented-seed-mirror, GOTCHAS #412, STATUS line).internal/is in the fleet-software set, so the release rail should cut 2026.11.3425 atf780f625on its next tick. The operator app is being hand-built at the same revision (pnpm package, payload reused from the installed 3363) so the helper's stamp matches the feed's newest release (#1769 exact pin). Will close once a fresh rented founding on tech.tuia.co gets past the seed and supply rows on that build.Triage:
bug+ready-for-humanCategory —
bug: a true positive that blocks every fresh rented founding at the seed row (reproduced twice 2026-11-09).Why not
ready-for-agent: there is no agent/code work left. The fix already landed onmainasf780f625(internal/clan/mirror.gountarIntonowMkdirAlls the mirror beforeextractTar;TestUntarInto_CreatesTheMirrorForAnEmptyBoxguards it). The secondary "name the missing mirror as its own fault" ask (ADR 0100/0125 routing) is the only code residue; if you want that split out as its own agent ticket, say so and it can be filed — it does not block closing this one.Why not an auto-close rail (
deploy-pending/snapshot-pending): the fix lives ininternal/, whichscripts/lib/rehearsal-deploy-pending-lib.shexplicitly excludes from both the broker publish set and the gateway-snapshot bake set — "internal/: those are carried by the drive itself … a ticket fixed there is proven by the next drive, not by a snapshot." So no rail closes this; it is proven by a live founding.Why human
The residue is a live rented founding verification that only Ben can run:
f780f625(hand-built, per the issue comment — no headless agent can click the founding walk),tech.tuia.co, andClose once a fresh rented founding on that build gets past the seed and supply rows, exactly as the issue comment states. (Note #2184 — the address/verify-before-IP bug seen on the same walk — is triaged separately and may surface before the seed row on the next attempt.)
The rail cut 2026.11.3425 at
f780f625(feedtestingnow names it, roles agent/control-panel/control-plane/idss-idp). Operator app hand-built at the same revision on Ben's laptop:idss_2026.11.3425_amd64.deb(sha25650ec4dca…), helper stampedRelease=f780f625 ReleaseVersion=2026.11.3425, payload reused from the installed 3363 (private-path carriage is still 3363's; the rented path fetches from the feed, so that is fine for this walk).Packaging on a fresh Ubuntu 24.04 laptop needed two workarounds, worth a GOTCHAS entry if anyone else hand-builds:
pnpm package→ fpm →tar -I app-builder→ app-builder shells out to7zafromSZA_PATH. electron-builder pointsSZA_PATHat7zip-bin's bundled7za(p7zip 16.02, 2016). That binary dies ~8 s into the 5 GB stream withBreak signaled/ exit 255, and fpm only reportstar failed (exit code 2)with no stderr. Cause not pinned down (no OOM in the kernel log, works by hand outside fpm).7zapath so a streaminga -si -so -txzcall execs systemxz -T0 -3 -c; restore the binary after. Everything else (verify-payload, helper stamp, electron-builder) ran unchanged.Also: the disk was at 99 % before the first attempt (same
tar failedsymptom); freed ~10 GB first.Closing once the founding on tech.tuia.co passes seed + supply on this build.
Verified on a real box: app 2026.11.3425 (
f780f625) relaunched 2026-11-10 11:01, Resume on tu-ia — seed passed (flake seeded11:01:46 throughlogo landed11:06:33) and supply passed (fleet software seeded onto the rented server11:14:33, feed pin matched). The founding then faulted one stage later at enroll-configure on an unrelated cause, filed as #2185. Closing this one.