GeezerVison is showing github.com — init.sh fast-path: boot-marker check first + trigger-style Phase 1 (approved 2026-10-05, never landed) · Issue #8806 · developing-today/code
init.sh fast-path: boot-marker check first + trigger-style Phase 1 (approved 2026-10-05, never landed) #8806DescriptionDrew's ask
2026-10-05 — Drew approved both proposed fixes for the ~65s "already initialized" boot path: "yes all of it"
- (A) Move the boot-marker check to the top of init.sh — the fast path drops from ~65s to ~3s.
- (B) Make the cron's Phase 1 trigger-style: compare /proc boot_id against the marker in milliseconds; run init.sh only on mismatch.
The analysis behind the approval (~/memory/2026-10-05.md): the expensive work — du -sh over nix-persist plus 4 HTTPS round trips to cache.nixos.org — runs BEFORE the marker check.
Why this is still live
The 2026-10-05 day-file marks the approval "NOT YET DONE, interrupted by flush. PENDING", and nothing later records it landing. Follow-on measurements agree: code#5717's 2026-11-04 data still shows init.sh costing 68–97s per run, ~60s of it the same nix-persist du timing out. (#5717 was a different, telemetry-cost item and is closed — its closure does not record the fast-path landing.) The 60-day design audit (register X18) calls this the clearest approved-but-dropped item in the window.
Scope
Implement (A) and (B) as approved. No redesign — the design was settled on 2026-10-05.
Acceptance check
- The already-initialized path completes in ~3s (marker check first, no
du, no network round trips before it).
- Phase 1 does the millisecond boot_id compare and invokes init.sh only on a real mismatch; a genuine boot change still triggers the full init.
- Before/after timings recorded on this issue.
Refs: 60-day design register, pm-stack/design-register-2026-11-11.md §X18 · tracking epic #8805 Activitydeveloping-today commented on Nov 12, 2026 dezren39 commented on Nov 17, 2026 🤖 Agent note · done (already_done)
- Agent: queue worker (repo-worker-code), lane any-h
- Session / ID: task 18729
- Found via: queue claim
- Outcome: ALREADY DONE — both halves of Drew's 2026-10-05 approval are in the live scripts; the issue's premise (based on Init job duration: ~60s of every ~75s run is a telemetry du of nix-persist that times out and returns 'unknown' #5717's 2026-11-04 measurements) predates the landing. Closing with before/after evidence.
- (A) Marker check first, no du, no network before it: ~/tools/init.sh reads /proc/sys/kernel/random/boot_id at the top (line 24) under a header stating the fast path applies "when the marker matches the current boot AND all restores are in place" (line 5). The expensive nix-persist du the approval targeted is gone entirely: line 205 records "nix-persist size: NOT measured here anymore (Drew ruling 2026-11-05)" — the ~60s du that dominated the old 68–97s runs no longer exists in the script.
- (B) Trigger-style Phase 1: ~/tools/init-ensure.sh's warm check (lines 144-145) compares the current boot_id against the marker first and, per its header, the "warm path is a few stats (<0.5s) and never invokes init.sh" — init.sh runs only on a real mismatch.
- Acceptance measurement (2026-11-17, this session): the already-initialized path — bash ~/tools/init-ensure.sh on the warm marker — completed in 0.196s, exit 0, against the issue's ~3s target and the 68–97s "before" figures from Init job duration: ~60s of every ~75s run is a telemetry du of nix-persist that times out and returns 'unknown' #5717. A genuine boot change still triggers the full init (the compare is against /proc/sys/kernel/random/boot_id, which changes every boot).
- State: issue closed with this evidence; no script changes in this task. (Surface note: init.sh/init-ensure.sh live in ~/tools on the sandbox, not in this repo — the repo carries the tracking issue only, which is why no PR accompanies this close.)
dezren39 commented on Nov 17, 2026 agent-note:v1
state: already_done
task: 20213 (queue repo-health-code-pilot, worker repo-worker-code, lane code-h)
Re-triaged fresh: issue CLOSED. Prior triage task 18729 verified both approved halves are live — ~/tools/init.sh checks the boot_id marker at the top (line 24) with the nix-persist du removed (line 205), and ~/tools/init-ensure.sh compares boot_id first so the warm path never invokes init.sh. No further work; completing as already_done, no follow-on.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|