Size enroll-copy's ceiling to a measured rented copy — with #716's drain fix the shared 20m defaultPhaseTimeout now CUTS a cold copy instead of hanging on it #717
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#717
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 out of #716 (GOTCHAS #70), which fixed the reason a fired ceiling could not be reported.
What changed. Before #716,
ExecCLI.Runnever returned whennix copy's ceiling fired — the orphanedsshgrandchild held the output pipe, socmd.Waitblocked forever and the stage went silent to the drive's outer budget.cmd.WaitDelaynow bounds that drain, so the shared 20mdefaultPhaseTimeoutonenroll-copy'snix copyis enforceable for the first time.What that exposes. A cold rented copy is longer than 20 minutes. Drive
20260823T213536Z's own copy was still running at ~28 minutes, at 717 of 726 store paths. So from now on the copy gets SIGKILLed at 20m andcopy()takes its soft-continue path.That is cheap by design —
copy()is an accelerator,machines updatecopies whatever is still missing, and the leg gets back ~68 minutes of budget instead of burning it in silence — but it is a guess where #68 wants a measurement, and it quietly moves the tail of the closure intoenroll-activate's own 45m ceiling.The ask (the #713/#68 pattern): rent a droplet from the drive's own gateway snapshot at the broker's own preset, drive the byte-for-byte
sshNGStoreinvocationcopy()runs, and MEASURE the honest coldnix copy --substitute-on-destinationend to end. Then either sizeenroll-copy's ceiling to it (asvmActivatePhaseTimeoutwas sized for activate), or record that 20m + soft-continue is the right shape and why.Do not widen on a guess — #62 holds; #68 names the three checks that make "the ceiling is smaller than the work" a finding rather than a masking.
enroll-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 #716Close report — measured, and the ceiling stays at 20m
Ruled by agent under ADR 0174 — veto anytime. Two-way doors only: revertible source and test-config changes proven by live measurement plus red-before-green Go tests, on two throwaway
clan-lab-tagged droplets destroyed after the runs. No personal credential, no security-posture widening, no member-facing trust accept, no data destroyed beyond my own lab boxes, no non-routine spend (twos-2vcpu-4gbdroplets for ~35 minutes total).The measurement
Rented twice from the drive's own gateway snapshot (
idss-gateway-4abdd8e39619, snapshot242422012— the image drive20260823T213536Zitself used) at the broker's own preset (s-2vcpu-4gb, syd1), driving the byte-for-bytesshNGStoreinvocationcopy()runs against a 717-path / 1.75 GB toplevel — the same closure and the same shape as the drive's:path-info --store ssh-ng)594650612594651095The ceiling is 29–48× the honest work. #716's premise — "a cold rented copy is longer than 20 minutes" — is falsified. The reason is #699's
--substitute-on-destinationdoing exactly what its comment claims: the rented image's store is a pristine 616 paths (measured on B before the copy), so a community toplevel is a cold copy, but 626 of its 717 paths are signed stock nixpkgs the droplet fetches fromcache.nixos.orgon its own bandwidth, and only the 83 unsigned community-specific paths ever cross the wire from the drive host.GOTCHAS #68's three checks — all three say "not dark, and not slow either"
/v2/actions: droplet594650612and594651095each have exactly one action, their owncreate. Nothing power-cycled, resized or moved either.sshexec every 3s, 193/193 probes green across both runs, start to finish.nix path-info -r= 717).The ruling: do not widen. 20m + soft-continue is the right shape
This is #713's pattern reaching the opposite verdict, and #62's bar is why. A copy that reaches 20 minutes has not been slow — it has stalled — and
copy()'s soft continue is already the right answer to a stall: the copy is an accelerator,machines updatecopies whatever is still missing under its own measured 45m, and the leg gets its budget back instead of burning it. Widening here would buy a stall more silence, not the work more room.On the ticket's worry that a cut copy "quietly moves the tail of the closure into
enroll-activate's 45m ceiling": the measurement bounds that too. The worst case a cut copy can hand over is the whole 717-path closure, which is #713's run A — the target fetching and building the missing set itself, measured at 19m55s inside a 45m ceiling.What landed (commit
04ed31ae)The ceiling is unchanged, and now guarded from both sides:
internal/clan/copy_ceiling_test.go(new).TestEnroll_CopyKeepsTheSharedCeilingAgainstTheMeasuredRentedCopyreds if the rented 45mvmActivatePhaseTimeoutever leaks onto the copy — verified by pointingcopy()atactivateCeiling()(red at 44m59s) and reverting.TestEnroll_CopyStoreProbeIsFinitewas red before the next item.internal/clan/store_count.go— the one honest gap the measurement exposed.missingOnTarget's remotenix path-info --store ssh-ng://…is the copy stage's first act, over the exact channel that stalls, and it ran under the caller's context alone with no ceiling at all: a target that went quiet before the copy started took the whole stage silently to the drive's outer leg budget — the shape GOTCHAS #70 named for the copy itself. Now bounded bystoreProbeTimeout= 5m over a measured 2s. A timed-out probe costs nothing: an unanswered remote read leaves every path counted as missing, which over-counts toward pushing, never toward "the target is already warm".app/tests/e2e/journey.rented.spec.ts—enroll-copyleg budget 90m → 30m. This is the tightening #698's own comment invited ("it tightens sharply from the first green drive, and #699's--substitute-on-destinationfix would let it drop to minutes"); both have now happened, and its factual claim that copy runs "with no--substitute-on-destination" was stale. The stage is bounded at 5m + 20m by its two ceilings and its failure path is a soft continue, so an honest stage cannot reach 25m — the row can only fire if a ceiling did not (the #716/#718 family), and reaching that verdict in 30m instead of 90m gives back an hour of a multi-hour drive.internal/clan/rented_activate_live_test.go—IDSS_RENTED_ACTIVATE_COPY_ONLY=1: build + copy, every line wall-clock stamped, then stop, with the phase ceiling lifted so a measurement is never bounded by the thing being measured. This is how both runs above were driven, and how the next one should be.docs/GOTCHAS.md#72,copy()'s own doc comment,STATUS.mdheader + milestone log.gofmt,go vet ./...and the fullgo test ./...clean.Spun out, not done here
Both runs' push tail ends
…-etc→…-sops-install-secrets-0.0.1→ toplevel, andsops-install-secrets-0.0.1is the exact path drive20260823T213536Zfroze on, 9 paths from the end — as #712's froze 9 from the end of its own 723, on kilobyte-sized text paths, after essentially all the bytes had landed. That narrows #712's two open hypotheses (substitution-time exhaustion, syd1 network fault) away from the half that finishes in 11 seconds; posted to #712 against its revisit criterion rather than acted on here.Also noticed and not touched: droplet
594171376(clan-lab-rehearsal-1d5d33df, Ubuntu, created 2026-08-21) is 2 days past its ownclan-lab-expires-tag. Filed as a follow-up rather than destroyed — it is not this ticket's box and destroying someone else's lab state is not mine to rule.Closing: measured, ruled, guarded, and the evidence is above.