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 — quota-recorder: alert on spool staleness / last-ack age (residual of #5703 step 4) · Issue #8022 · developing-today/code

quota-recorder: alert on spool staleness / last-ack age (residual of #5703 step 4) #8022

New issue
Copy link
New issue
Copy link
Closed
Closed
quota-recorder: alert on spool staleness / last-ack age (residual of #5703 step 4)#8022
Copy link
Labels
area/infraInfrastructure, deployment, and operationsdesign/quota-planeDesign: quota-plane - all issues of this effort carry iteffort/sSmall: expected under 2 hours of workepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/infrastructureInfrastructure / host-portability workpriority/normalOrdinary priority (the default)status/blockedQueue or user escalation statestatus/triagedTriaged and routed (see agent note)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

Gap

#5703's design step 4 — "instead of 'reinstall the units,' the boot check verifies spool freshness + last ack; a stale ack surfaces like today's missing-timer finding" — is only half implemented.

  • init: quota-recorder units have no restore block — lost on every sandbox recycle #6148 (closed 2026-11-05) added the init restore block (~/hatch/tools/init.sh, ~L401-433): if quota-recorder.timer is not is-active, reinstall the units from ~/tools/quota-recorder/, daemon-reload, enable --now. That catches a missing or stopped timer.
  • Nothing checks whether ticks are actually landing. The file-first spool (~/workspace/goals/stewardship-commission-recurring-review-and-dispatch/hidden_files/visibility/quota-records-YYYY-MM.jsonl) can stop growing, or accumulate turso-error receipts / a non-zero pending, while the timer stays active. The DB then goes quiet with no signal — the same silent-gap class init: quota-recorder units have no restore block — lost on every sandbox recycle #6148 fixed for the units, one layer up.

What to add

  1. A freshness check (init prelude, or a tiny timer next to the recorder): age of the last record ts and of the last ack's through in the current month file; trailing turso-error count and pending in the last receipt.
  2. Surface the result where the other boot findings already surface (~/logs/init-status, and a genuine staleness counts in init's failure total), so it is comparable to today's "missing timer" finding. Optionally feed the /quota view too — feat(quota-plane): quota-plane status view on /quota — gatherer health + per-provider freshness #1175 owns read-side freshness there.
  3. Thresholds must respect the recorder's fail-soft contract: a recording gap is the alarm; a transient flush error that a later tick self-heals is not.

Context

Residual of #5703, closed as superseded by the already-landed file-first spool → Turso path (#5690 / PR #6655). Deployment mechanism for the units is #5770. Read-side freshness: #1175. Laptop/sandbox copy drift and the broken laptop FLEET path: #6830.

Acceptance criteria

  • A stale spool (no new record, or unacked beyond threshold, timer still active) produces a visible finding, not silence.
  • A healthy recorder (ticks landing, acks through) produces no finding.
  • Verified once with a simulated gap: timer active, spool file untouched for the threshold window.

Activity

  1. dezren39
    added
    priority/normalOrdinary priority (the default)
    area/infraInfrastructure, deployment, and operations
    on Nov 9, 2026
  2. developing-today commented on Nov 9, 2026

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

    CODE-2368

  3. dezren39
    added
    effort/sSmall: expected under 2 hours of work
    kind/infrastructureInfrastructure / host-portability work
    design/quota-planeDesign: quota-plane - all issues of this effort carry it
    epic/fleet-orchestrationReprioritization program epic (2026-11-12)
    on Nov 9, 2026
  4. github-actions
    assigned
    dezren39
    on Nov 12, 2026
  5. dezren39
    added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/triagedTriaged and routed (see agent note)
    on Nov 17, 2026
  6. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged

    • Agent: queue worker (repo-worker-code), lane any-k
    • Session / ID: task 18567
    • Found via: queue claim
    • Task: Inline triage of issue quota-recorder: alert on spool staleness / last-ack age (residual of #5703 step 4) #8022 (it arrived with no task/ label and no triage note). Verdict: live and unimplemented — small-fix, priority/normal, effort/s (both already set); routed as follow-on task 20059.
    • Expectation: task 20059 adds the freshness check and verifies it with a simulated gap; this triage completes now.
    • Links: task 18567 · follow-on task 20059 · issue quota-recorder: alert on spool staleness / last-ack age (residual of #5703 step 4) #8022 · issue Quota recorder: record on sandbox, ship via fleet proxy, ingest at a laptop broker (retire the recycle-vanishing sandbox units) #5703 · issue init: quota-recorder units have no restore block — lost on every sandbox recycle #6148 · issue feat(quota-plane): quota-plane status view on /quota — gatherer health + per-provider freshness #1175

    Triage evidence (fresh, 2026-11-17)

    • Issue quota-recorder: alert on spool staleness / last-ack age (residual of #5703 step 4) #8022 is OPEN with no held / user/owned / do-not-merge / do-not-auto-edit labels.
    • The check does not exist: grepping the sandbox init tooling (~/tools/init.sh, ~/tools/init-ensure.sh) finds no spool-freshness, last-ack, or quota-records check — only a stale-init-lock detector, which is a different thing. init: quota-recorder units have no restore block — lost on every sandbox recycle #6148's restore block covers a missing/stopped timer, one layer below this gap.
    • The recorder itself is healthy right now: the current month spool (quota-records-2026-11.jsonl) shows a turso-ack with ts/through 2026-11-17T03:35:19Z — ticks are landing. The missing piece is the alarm for when they stop.
    • First concrete step for task 20059: implement the check in the init prelude (per init: quota-recorder units have no restore block — lost on every sandbox recycle #6148's landed form) or a tiny timer next to the recorder, computing last-record age, last-ack through age, trailing turso-error count, and last-receipt pending; surface in ~/logs/init-status with genuine staleness in init's failure total. Thresholds must respect the fail-soft contract: a gap alarms, a self-healed transient flush error does not.
    • Acceptance: the issue's own three criteria, including the simulated-gap verification (timer active, spool untouched past threshold).
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    agent-note:v1
    lane: code-j (openchamber-scheduled-lane), worker repo-worker-code, queue task 20059
    state: blocked (packet_defect)

    Picked up the implementation task. Fresh read on the laptop before any edit found the packet premise does not hold here:

    • Spool: ~/workspace/goals/stewardship-commission-recurring-review-and-dispatch/hidden_files/visibility/quota-records-2026-11.jsonl on this laptop has 2 lines, mtime 2026-11-06 23:59 UTC, last record ts 2026-11-07T05:59:54+00:00, zero turso-ack lines, one turso-error.
    • The packet states the last turso-ack is through 2026-11-17T03:35:19Z; that is not in this copy.
    • quota-recorder.timer is inactive on this laptop.
    • The check lives in ~/hatch/tools/init.sh (the ~/tools symlink points to hatch-personal/laptop/tools), in the separate hatch repo, not in developing-today/code.

    Either the recorder runs on a different host (the sandbox) and this laptop copy is stale, or the recorder has been silently down since 2026-11-07. Both change the venue and the verification plan, so I am not implementing against an unverified premise. Blocking as packet_defect; the owner needs to confirm which host is canonical for the spool and whether the timer is meant to run here.

    Venue and thresholds are still open: init prelude (hatch repo) vs. tiny timer, to be recorded here once the host question is settled.

  8. dezren39
    added
    status/blockedQueue or user escalation state
    on Nov 17, 2026
  9. dezren39
    removed their assignment
    on Nov 20, 2026
  10. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Claim — Lane AAG (archer), 2026-11-23. Taking the implementation (follow-on task 20059's work) and resolving lane code-j's packet_defect block first-hand:

    Canonical host is the sandbox. Fresh evidence, 2026-11-23 ~17:00Z:

    • Sandbox spool ~/workspace/goals/stewardship-commission-recurring-review-and-dispatch/hidden_files/visibility/quota-records-2026-11.jsonl: 14,757 lines, last turso-ack ts/through minutes old — ticks are landing here.
    • quota-recorder.timer is active on the sandbox (system unit, *:0/5).
    • The laptop copy code-j read is the stale mirror (last record 2026-11-07, timer inactive there) — the venue conclusion flips, the gap itself is real.
    • The check does not exist: no spool-freshness / last-ack logic in tools/init.sh (only the init: quota-recorder units have no restore block — lost on every sandbox recycle #6148 timer-restore block, ~L417-433). Premise TRUE.

    Plan: add a spool-freshness check next to the recorder in dezren39/hatch tools/quota-recorder/ (last-record age, last-ack through age, trailing turso-error/pending as detail), called from the tools/init.sh prelude right after the #6148 restore block; genuine staleness logs a finding and counts in init's FAILURES total, surfaced in ~/logs/init-status. Threshold respects the fail-soft contract (a gap alarms; a self-healed transient flush error does not). Verified healthy against the live spool and stale against a simulated-gap fixture.

  11. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Done — Lane AAG (archer), 2026-11-23. Landed via dezren39/hatch PR #24, merged fa1e5cf5b943bc23480c95a65b6c21f0e01e2c61, and synced to the live ~/tools tree on the sandbox (the canonical host, per the venue resolution on my claim c.7107945969).

    What landed:

    • tools/quota-recorder/spool-freshness.py — reads the current + previous month spool files (exactly the set the recorder's flush covers each tick) and prints one ok/STALE line. Alarm conditions: newest record older than 20 min (4 missed 5-min ticks), or the oldest unacked record older than 20 min (per file: ts later than that file's last ack through). Trailing turso-error count and the last receipt's pending are computed and reported as detail — never alarm conditions on their own, so a transient flush error a later tick self-heals does not alarm (an ack covers everything up to its through).
    • tools/init.sh — immediately after the init: quota-recorder units have no restore block — lost on every sandbox recycle #6148 timer-restore block, when the timer is active, the prelude runs the checker: a STALE verdict logs a finding to ~/logs/init.log and counts toward init's FAILURES total exactly like a missing timer, and the verdict lands in ~/logs/init-status as quota_spool=. A checker error is logged but never counted (a tooling bug must not masquerade as a recorder outage).

    Verification (all three acceptance criteria):

    • Healthy recorder → no finding: the deployed checker against the live spool prints ok ages: record=278s unacked=none trailing_errors=0, exit 0; the extracted init block run live leaves FAILURES at 0.
    • Simulated gap → visible finding: a fixture spool untouched for 2h with the timer active yields STALE: newest record is 7200s old … recording gap, exit 1, and through the init block FAILURES increments with the finding line logged. A stalled-ack fixture (fresh records, oldest unacked 1500s, 2 trailing turso-errors, pending=2) also yields STALE.
    • Fail-soft holds: the same stalled-ack fixture at 900s unacked reads ok despite the trailing errors; a healed-transient fixture (error receipt followed by a covering ack) reads ok.

    The status/blocked + queue/blocked labels are stale as of this landing — the packet_defect block was a venue error (laptop mirror mistaken for the canonical spool), resolved on the claim. Closing as completed.

  12. dezren39
    closed this as completedon Nov 23, 2026
  13. developing-today
    added
    status:done
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/infraInfrastructure, deployment, and operationsdesign/quota-planeDesign: quota-plane - all issues of this effort carry iteffort/sSmall: expected under 2 hours of workepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/infrastructureInfrastructure / host-portability workpriority/normalOrdinary priority (the default)status/blockedQueue or user escalation statestatus/triagedTriaged and routed (see agent note)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    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.