rented carrier: pair leg's 300s ceiling is unvalidated against a from-source Caddy-with-plugins compile at enroll-build #697
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#697
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
20260823T075823Z, legpair(sigcdebd4257a3d) went red:budget of 300s elapsed at "enroll-build" — last activity: 575 of 574 store paths · building '/nix/store/k12ncn0wqxb1dl4nkg7az3g2bhkyglq5-caddy-src-with-plugins-02ac37d17914ee8d80a076a14dabc53e-2.11.4.drv'...(test-results/drive-rented/20260823T075823Z/artifacts/legs.json).Evidence:
CEILING.pair = 5 * 60_000(app/tests/e2e/journey.rented.spec.ts:106) is the budgetwaitForLegenforces across the ENTIREconnect…pairspan ofRENTED_ORDER(app/tests/e2e/journey.rented.spec.ts:74-91), includingenroll-configure/enroll-build/enroll-copy/enroll-activate.renderCaddy(internal/clan/frontdoor.go:294-306) builds the gateway's Caddy viapkgs.caddy.withPlugins { plugins = [ "github.com/caddy-dns/acmedns@v0.7.0" (+ caddy-l4 when mail) ]; hash = … }— a custom vendored-plugin derivation nixpkgs/cache.nixos.org never carries, so it compiles from source (a real Go build) on every fresh droplet.nix/guest/configuration.nix:92,nix/gateway-image/configuration.nix:89,internal/clan/vmguest.go:55all set onlynix.settings.experimental-features— confirming this Caddy build has nowhere to be fetched from and must compile fresh every drive.measuredPercent's "575 of 574" isn't itself a bug —internal/founding/calibration.go:82-86documents totals can be legitimately overrun when nix re-plans mid-run — but it does show the closure was essentially fully counted and stuck specifically on the last, heaviest derivation (the Caddy compile).enroll-buildon this leg: STATUS.md's#693entry records the immediately prior drive at this same signature (cdebd4257a3d) faulting earlier, atenroll-configure's eval conflict, fixed one drive ago (#692/#693, commitsaf942243/5a53b04c). SoCEILING.pair's 300s was set/inherited before this leg'senroll-buildhad ever actually run to completion — it has never been validated against the real cost.Suspected layer: e2e budget calibration (
journey.rented.spec.tsCEILING table) fronting a real infra gap — no binary cache for the custom Caddy+plugins derivation, so it always builds from source.What plugging it needs: a human call between (a) widening
CEILING.pair(or splittingenroll-build/enroll-copy/enroll-activateinto their own sub-budgets) to a number backed by an actually-measured Caddy-with-plugins build time on comparable hardware, or (b) standing up a build cache / pre-seeding this derivation so it stops rebuilding from source every drive (following the cert-store seed/harvest precedent — ADR 0175, GOTCHAS #32/#33). I have no droplet access from this healer checkout to time the real build, so I can't certify either the right ceiling number or which fix path is correct.drive
20260823T075823Zred atpair:journey leg "pair" went red: budget of 300s elapsed at "enroll-build" — last activity: 575 of 574 store paths · building '/nix/store/k12ncn0wqxb1dl4nkg7az3g2bhkyglq5-caddy-src-with-plugins-02ac37d1evidence:
test-results/…/20260823T075823Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)Ruled by agent under ADR 0174 — veto anytime.
Ruling: widen/split the
pairleg's ceiling myself rather than routing toready-for-humanas filed. This is a two-way door — a test-file config change (app/tests/e2e/journey.rented.spec.ts), revertible by a follow-up commit, and provable by the nextpair-leg drive plus the live corroboration below. It touches no credential, no security-posture widening, no member-facing trust surface, no data destruction, and no non-routine spend — none of ADR 0174's one-way-door list.What the filer couldn't do, this session could: the filing ticket said "I have no droplet access from this healer checkout to time the real build." This session-runner checkout holds host-level standing on matou-workstation, including a working local
nixtoolchain — the same hostenrollment.go'sbuild()step runsnix buildon for a live drive (the closure is built locally, then copied to the rented droplet —enroll-copyis the separate leg for that push). So I didn't need a lab droplet to get a real measurement; I timed the EXACT derivationfrontdoor.gopins, forcing a genuinely uncached rebuild:--rebuildforces the actual builder to run even though a prior valid output already sat in the local store (confirmed vianix path-info/the Nix DB — an earlier, differently-pinned build from 2026-08-10 was already warm and would otherwise have masked a from-source timing). Result: 2m32s wall-clock, on this host's 4-core/8GB hardware, for the full Go compile-from-source (go test/compileworkers observed live viaps, vendor tree under/build/caddy-src-with-plugins-...).Why I didn't stop at "widen the number": re-reading
journey.rented.spec.ts'sCEILING.pair, it wasn't just under-measured — it was bundling NINE journey rows (connect, point, seed, supply, enroll-configure, enroll-build, enroll-copy, enroll-activate, pair) under one 300s budget via a singlewaitForLegcall. The sibling own-VPS carrier (journey.droplet.spec.ts) already solved exactly this problem for the exact same underlying cost (renderCaddyis carrier-agnostic — both carriers build the identical custom Caddy-with-plugins closure): itsFRONTIER_BUDGETS(DDR 0154, #407) gives each row its own ceiling, tuned from a real prior incident (enroll-configure20m,enroll-build15m,enroll-copy10m,enroll-activate20m). That's stronger evidence than a single fresh timing alone, since it's already been carrying live droplet drives. I reused those numbers verbatim (reordered forRENTED_ORDER's supply-before-configure shape, since the rented box is already NixOS) rather than inventing a new bundled number — my 2m32s local measurement corroboratesenroll-build's 15m as comfortably generous, not tight.Landed:
29b9cbc8—CEILING.pairretired; replaced withPAIR_FRONTIER, a per-row budget array. Each row now waits under its own ceiling and reds by name (waitForLeg) instead of one bundled leg.pointis recorded as leg keypoint-rowinlegs.jsonto avoid colliding with the pre-existing dig-basedpointleg (leg 7, a real DNS probe, unrelated to the row-wait).tsc --noEmitandeslintclean on the changed file;legs.test.ts(13 tests) green.STATUS.mdcarries the new lead.What's still open, honestly: this has NOT been proven by a live rehearsal drive reaching
pairgreen — no rehearsal fired in this session (session-runner sessions can't themselves fire the standing rehearsal, #577/ADR 0184 lock). The nextpair-leg drive is the real tightening evidence; if it reds again at a different row than before, that's new signal, not a regression of this fix. The infra-gap alternative the ticket also named (standing up a build cache / pre-seeding the derivation, cert-store seed/harvest precedent) is NOT pursued here — it's a bigger, separate two-way door (new persistent infra) better filed as its own follow-up if per-row budgets prove insufficient or the from-source cost keeps biting other legs.