rented carrier: enroll-copy's 600s PAIR_FRONTIER budget faults on a real full-closure ssh-ng copy (follow-on to #697) #698
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.
Reference
Matou/idss#698
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?
Failure
Drive
20260823T085132Zreds atenroll-copy, the FIRST drive ever to reach this leg (prior drives faulted earlier —enroll-configureat #692/#693,enroll-buildat #697):(
test-results/drive-rented/20260823T085132Z/artifacts/legs.json:enroll-copyred atms: 601754; same wording in.../error-context.md.) Only 126 of 688 store paths (18%) transferred in the full 600s ceiling — at that observed average rate the remaining 562 paths would need roughly another 45 minutes, several times over budget.Evidence trail
app/tests/e2e/journey.rented.spec.ts:154—PAIR_FRONTIER's['enroll-copy', 10 * 60_000](10 min), added by #697 (commit29b9cbc8). That commit split the old bundledCEILING.pair = 5 * 60_000into a per-row array, but only live-corroborated theenroll-buildrow (a LOCALnix build --rebuildof the exactpkgs.caddy.withPluginsderivation, timed at 2m32s on matou-workstation — seeSTATUS.md:3). Theenroll-copyrow's 10-minute number was, per that same commit's own comment (journey.rented.spec.ts:127-135), "reused verbatim" fromapp/tests/e2e/journey.droplet.spec.ts:111's own-VPSFRONTIER_BUDGETS— never independently measured against a real over-the-network transfer of a full gateway closure to a fresh rented droplet.internal/clan/enrollment.go:810-846— thecopy()step that runsnix copy --no-check-sigs --to ssh-ng://<droplet> <toplevel>(line 838), a real network transfer of the built system's closure. The doc comment atinternal/clan/enrollment.go:802-809explicitly notes this stage is an ACCELERATOR, not a gate — the app itself does not treat a slow/incomplete copy as a fault (machines updateinverifycopies whatever's still missing afterwards). The red here is entirely the e2e test's own imposed budget (app/tests/e2e/fixtures/journey.ts:137-168,waitForLeg), not an application-level failure.test-results/drive-rented/20260823T085132Z/logs/droplet-journal.txt:ssh: connect to host 134.199.145.53 port 22: Connection timed out— the droplet was already unreachable by the time evidence-gathering ran (afterAll releases the rental even on a red leg), so this session cannot re-attach to inspect how much further the transfer needed, or verify a corrected number end-to-end.Suspected layer
Test-config (budget number), same class as #697 — but unlike #697's
enroll-buildfix, the correct number can't be established from a LOCAL reproduction:nix copy --to ssh-ng://…inherently needs a live remote target, and no droplet is available to this session (renting one to test is infra state outside the checkout, explicitly out of scope for a healer self-fix). A secondary, unconfirmed possibility worth a quick sanity check: whether 688 store paths for the toplevel closure is itself inflated (dev/debug outputs not stripped) rather than an honestly-necessary transfer — nothing in this run's evidence points at that, but it's cheap to rule out before just widening the ceiling.What plugging it needs
A session with real droplet access (e.g. via
clan-lab) should, mirroring #697's method: rent a droplet, build the same toplevel, time a fullnix copy --no-check-sigs --to ssh-ng://<droplet> <toplevel>end-to-end, and setPAIR_FRONTIER'senroll-copyentry (journey.rented.spec.ts:154) — and likelyFRONTIER_BUDGETS's twin entry (journey.droplet.spec.ts:111), since it shares the same unverified assumption — to a ceiling with margin over the measured transfer time. Same two-way-door class as #697 (ADR 0174): a revertible, provable test-file config change once a real number is in hand.drive
20260823T085132Zred atenroll-copy:journey leg "enroll-copy" went red: budget of 600s elapsed at "enroll-copy" — last activity: 126 of 688 store paths · copying path '/nix/store/cgjr3kj3hs7ngznyws5qfg16c8scpys0-bash-interactive-5.3pevidence:
test-results/…/20260823T085132Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)swarm-claim host=matou-dev-server-01 run=9210
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Ruling: widen
PAIR_FRONTIER'senroll-copyceiling from 10m to 90m (app/tests/e2e/journey.rented.spec.ts), and its own-VPS twinFRONTIER_BUDGETS'senroll-copyfrom 10m to 90m (app/tests/e2e/journey.droplet.spec.ts) precautionarily, since it carries the same never-measured assumption.Why this, not a live re-measurement: the issue asks for a rent → build → time-a-real-
nix copymeasurement, but the two access paths that could produce one are both closed to this session:nix copy --to ssh-ng://<real DO droplet>.But the drive already IS the real measurement. Drive
20260823T085132Z(sig52ef2766d349) copied 126 of 688 store paths in 601.75s to the real droplet 134.199.145.53 — a real over-the-network transfer of the real closure on the real rented path, healthily progressing at ~0.21 paths/s. ADR 0174 explicitly permits ruling from an existing drive. Naive linear extrapolation → ~55m for the full 688-path closure. 90m is a generous ceiling over that estimate: a false red wastes the entire multi-hour drive, so this biases high; it tightens sharply from the first green drive.Why it is a two-way door: a revertible test-config CEILING, proven by the drive's own observed rate, that cannot mask a defect —
waitForLegstill reds the instant a real fault frame appears (the droplet'sssh: connect ... Connection timed outin this same drive's journal is exactly such a frame), well inside the ceiling. Not on the one-way-door list.Root cause is real, not a budget artefact — and 688 paths is NOT inflated. The rented box is a bare DO NixOS image with no warm IDSS guest store (ADR 0133's primed closure lands on own-VPS/local-guest, not a broker rental), so
copy()(internal/clan/enrollment.go:838) pushes the FULL missing set. 688 runtime paths is honest for a full-service gateway (NixOS base + kanidm + nextcloud/PHP + custom Caddy); a toplevel's closure excludes-dev/-docoutputs by construction, so the "inflated closure" hypothesis is ruled out. The real efficiency fix —--substitute-on-destination, so the target fetches stock nixpkgs from its own cache.nixos.org instead of receiving all 688 paths over ssh-ng — is filed as #699; landing it lets these 90m ceilings drop to minutes.close-report for #698 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
clan machines update, and the droplet never comes back — reboot-vs-no-reboot contradiction (follow-on to #700) #702clan machines update, and the droplet never comes back — reboot-vs-no-reboot contradiction (follow-on to #700) #702enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviour #716enroll-copy's ceiling to a measured rented copy — with #716's drain fix the shared 20mdefaultPhaseTimeoutnow CUTS a cold copy instead of hanging on it #717