GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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) #8806

New issue
Copy link
New issue
Copy link
Closed
Closed
init.sh fast-path: boot-marker check first + trigger-style Phase 1 (approved 2026-10-05, never landed)#8806
Copy link
Assignees
dezren39
Labels
designDesign record / living design doc tracking homeepic/design-registerEpic: design-register - all issues of this effort carry itepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/follow-upFollow-up spun out of earlier workmode/onlineFully doable remotely: design, config, code, cloudpriority/normalOrdinary priority (the default)source/humanFiled directly by a humanstatus:done
Milestone
Design register 2026-11

Description

@dezren39
dezren39
opened on Nov 12, 2026
Issue body actions

Drew'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

Activity

  1. dezren39
    added
    kind/featureNew feature or capability request
    task/triageQueue packet kind: verify, reproduce, and route this item
    source/humanFiled directly by a human
    priority/normalOrdinary priority (the default)
    meta/follow-upFollow-up spun out of earlier work
    mode/onlineFully doable remotely: design, config, code, cloud
    on Nov 12, 2026
  2. developing-today commented on Nov 12, 2026

    @developing-today
    developing-todayBot
    on Nov 12, 2026 – with developing.today
    Contributor
    More actions

    CODE-2637

  3. dezren39
    added
    designDesign record / living design doc tracking home
    on Nov 12, 2026
  4. dezren39
    added this to the Design register 2026-11 milestone on Nov 12, 2026
  5. dezren39
    added
    epic/design-registerEpic: design-register - all issues of this effort carry it
    epic/fleet-orchestrationReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  6. github-actions
    assigned
    dezren39
    on Nov 12, 2026
  7. dezren39
    added a parent issue on Nov 12, 2026
    • epic: design register — every design tracked, boarded, and monitored #8986
  8. dezren39
    removed
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 17, 2026
  9. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 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.)
  10. dezren39
    closed this as completedon Nov 17, 2026
  11. developing-today
    added
    status:done
    on Nov 17, 2026
  12. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

designDesign record / living design doc tracking homeepic/design-registerEpic: design-register - all issues of this effort carry itepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/follow-upFollow-up spun out of earlier workmode/onlineFully doable remotely: design, config, code, cloudpriority/normalOrdinary priority (the default)source/humanFiled directly by a humanstatus:done

Type

No type

Projects

No projects

    Milestone

    • Design register 2026-11No due date

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.