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: quota-recorder units have no restore block — lost on every sandbox recycle · Issue #6148 · developing-today/code

init: quota-recorder units have no restore block — lost on every sandbox recycle #6148

New issue
Copy link
New issue
Copy link
Closed
Closed
init: quota-recorder units have no restore block — lost on every sandbox recycle#6148
Copy link
Assignees
dezren39
Labels
area/infraInfrastructure, deployment, and operationseffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)status:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Found during the 2026-11-05 investigation of init FAILURES=1 (separate defect, fixed in dezren39/hatch 64317acbc: the sysstat installer's apt step stalling on the blackholing mirror.cogentco.com URI).

Gap: ~/tools/init.sh restores eight systemd unit families after a sandbox recycle (airthings, fleet units, charge-inputs, resource-sampler, sysstat, hatch-autocommit, sandbox-state-backup, sandbox-home-backup) — but quota-recorder is not among them, and nothing else in the boot machinery installs its units either. The unit sources live in ~/tools/quota-recorder/ (quota-recorder.service, quota-recorder.timer; the service runs ~/tools/quota-recorder.py) with no installer script and no init hook.

Observed: on boot 139684af (2026-11-05 ~01:26 CST recycle) the quota-recorder units were missing from /etc/systemd/system; the boot-init cron job noticed and hand-reinstalled them (verified: recorder tick landed in Supabase 07:40:32Z). Until a restore block exists, every recycle silently drops the 1-minute quota snapshots until some job or human notices — the recorder's absence produces no init failure signal at all.

Proposed fix: add a restore block to ~/tools/init.sh in the established pattern (check systemctl is-active quota-recorder.timer; if inactive, install the two unit files from ~/tools/quota-recorder/, daemon-reload, enable --now the timer; count a genuine install failure, defer nothing — there is no apt/network dependency). Optionally give ~/tools/quota-recorder/ a small install.sh mirroring the other families so the block stays one line.

Independence: this gap did NOT contribute to the FAILURES=1 count on any boot (init never checks quota-recorder); it is a silent-coverage gap, not a failure-count defect.

Acceptance criteria

  • A restore block for quota-recorder exists in ~/tools/init.sh in the established pattern: if quota-recorder.timer is inactive, install the unit files from ~/tools/quota-recorder/, daemon-reload, and enable --now the timer.
  • A genuine install failure in that block counts toward init's failure total (no silent deferral; there is no apt/network dependency).
  • Verified on a sandbox recycle (or a simulated missing-units boot): the timer is active after init and a recorder tick lands in Supabase without any hand reinstall.
  • Optionally, ~/tools/quota-recorder/install.sh mirrors the other families so the init block stays one line.

Activity

Next
  1. developing-today commented on Nov 5, 2026

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

    CODE-1777

  2. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    area/infraInfrastructure, deployment, and operations
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 5, 2026
  3. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    Intake review

    • Related: dezren39/hatch 64317acbc (the separate sysstat FAILURES=1 defect, already fixed); the boot-init cron job that hand-reinstalled the units on boot 139684af.
    • Still live: verified at intake — the body names the eight restored families and quota-recorder is not among them; no init hook or installer installs its units.
    • Notes: the gap is silent by construction — absence produces no failure signal, so the 1-minute quota snapshots just stop until noticed. The proposed fix follows the established restore-block pattern and has no apt/network dependency.
    • Risks: low; the block must count a genuine install failure (per the body's spec) rather than deferring silently, or the silence just moves.
    • Suggested approach: add the restore block (plus the optional install.sh mirror), then verify on the next recycle or a simulated missing-units boot that the timer is active and a tick lands.
  4. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  5. github-actions
    assigned
    dezren39
    on Nov 5, 2026
  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  7. 2 remaining items

  8. dezren39
    added
    queue/queuedHas a queued queue task
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  9. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-s
    • Session / ID: task 10549
    • Task: Fix init: quota-recorder units have no restore block — lost on every sandbox recycle #6148: add a quota-recorder restore block to ~/tools/init.sh (plus a small installer in ~/tools/quota-recorder/ mirroring the other families). Direct lane; fresh check: issue init: quota-recorder units have no restore block — lost on every sandbox recycle #6148 OPEN, no hard-stop labels, no existing PR/worktree. The timer is active on this boot only because it was hand-reinstalled — the gap is real.
    • Next: create the installer, add the init block in the established pattern (genuine failures count toward FAILURES), verify with a simulated missing-units boot.
    • Links: issue init: quota-recorder units have no restore block — lost on every sandbox recycle #6148
  10. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (task 10549, lane code-s)

    Fixed in dezren39/hatch 3efce1255 (pushed to main, this repo's established direct-commit flow — same as the sibling init fix 64317acbc):

    • tools/quota-recorder/install.sh (new): idempotent installer mirroring the other families — copies quota-recorder.service + quota-recorder.timer into /etc/systemd/system, daemon-reload, enable --now quota-recorder.timer, exits 1 if the timer does not come up active.
    • tools/init.sh: new restore block in the established pattern — if quota-recorder.timer is inactive, run the installer under timeout 120; a genuine failure increments FAILURES (no deferral; there is no apt/network dependency).

    Verification (simulated missing-units boot, the alternative the acceptance criteria name):

    • Removed both unit files + enablement, daemon-reload → timer inactive.
    • Ran the init block verbatim → units reinstalled, timer active + enabled, FAILURES=0.
    • Triggered a recorder tick: recorded muse-subscription tick -> quota-records-2026-11.jsonl (supabase: all records landed) at 2026-11-05T17:22:09Z, service finished cleanly — no hand reinstall involved.

    Closing this issue on that evidence; the next real recycle is covered by the same block.

  11. dezren39
    closed this as completedon Nov 5, 2026
  12. developing-today
    added
    status:done
    on Nov 5, 2026
  13. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

area/infraInfrastructure, deployment, and operationseffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)status:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    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.