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 — feat(usage-hub): snapshot retention — 13-month raw, monthly rollups, backup check · Issue #1117 · developing-today/code

feat(usage-hub): snapshot retention — 13-month raw, monthly rollups, backup check #1117

New issue
Copy link
New issue
Copy link
Closed
Closed
feat(usage-hub): snapshot retention — 13-month raw, monthly rollups, backup check#1117
Copy link
Assignees
dezren39
Labels
meta/follow-upFollow-up spun out of earlier workstatus:done

Description

@dezren39
dezren39
opened on Oct 27, 2026
Issue body actions

Part of epic #1047. Design: hub-v2-v3-design-2026-10-26.md §6. Promised in the original design §4, never filed.

Implement snapshot-store retention: raw snapshots kept 13 months, then compacted into monthly rollups kept indefinitely (tiny data; deletion is the risk, not storage). Include: a dry-run compaction report (counts before/after, per service) reviewed before the first real run; verification that the laptop snapshot store sits inside the PM stack backup; rollups must preserve reset markers' effect (a monthly rollup records min/max/last per metric, not just the mean).
Acceptance: compaction runs idempotently in tests; first real run report attached here; store remains readable by Source.usage() throughout.

Activity

Next
  1. dezren39
    added
    meta/follow-upFollow-up spun out of earlier work
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    developing-todayBot
    on Oct 27, 2026 – with developing.today
    Contributor
    More actions

    CODE-255

  3. github-actions
    assigned
    dezren39
    on Oct 27, 2026
  4. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    queue/queuedHas a queued queue task
    on Oct 29, 2026
  5. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (triage verdict: CONFIRMED — routed to follow-up task 3009)

    • Agent: queue worker (repo-worker-code), Lane C shift
    • Session / ID: queue task 2400 (triage)
    • Found via: queue claim
    • Task: Triage feat(usage-hub): snapshot retention — 13-month raw, monthly rollups, backup check #1117 against current main and route it.
    • Verdict — CONFIRMED, genuinely unimplemented: On main 39e8410 (2026-10-29): code search for "rollup" in this repo returns only unrelated bundler entries (pkgs/id), and "retention" only pkgs/id event-store/design hits — nothing in pm-stack. pm-stack/aggregator/src/snapshots.ts exports SnapshotStore/snapshotFileFor (monthly usage-YYYY-MM.jsonl) with no compaction or retention path. Laptop probe today: the store at ~/.local/state/pm-aggregator/snapshots/ holds exactly one file (usage-2026-10.jsonl, 551 lines, ~113KB, started 2026-10-26) — so nothing is at risk and nothing ages out until ~2027-11; this is build-it-while-it's-cheap future-proofing, exactly as the design intended. Backup coverage of that path could NOT be established from the backup timers visible on the laptop, so verification is an explicit step in the follow-up packet rather than an assumption.
    • Route: follow-up task 3009 enqueued to repo-health-code-pilot (dedupe key repo-health:v1:fix:developing-today/code:issue:1117), scoped to: compaction in the snapshots area (raw >13 months → monthly rollups with min/max/last per service+metric, resetsAt preserved, reader-compatible), idempotency + rollup-correctness tests on a synthetic multi-month store, a dry-run report attached here before any real run (first real run expected to be a no-op), and the backup-coverage verification recorded here.
    • Links: epic epic(usage-hub): SaaS/cloud services completion — v2 live collectors, daily console reads, v3 reconciliation #1047 · pm-stack/aggregator/src/snapshots.ts · pm-stack/aggregator/test/usage.test.ts
  6. dezren39
    added
    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 Oct 29, 2026
  7. 37 remaining items

  8. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 30, 2026
  9. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 Agent note · agent-note:v1 · picked up (resume)

    Queue task 3009 claimed by Lane C shift, 2026-10-30T00:56Z. Resuming from checkpoint awaiting_ci: PR #2379 is OPEN at 08d3c75a, checks green, Codex findings dispositioned (all threads resolved per prior shifts).

    Fresh gate recheck this shift: the merge-queue stall (#2403) root cause was found and fixed at ~00:26Z (branch-protection push restrictions excluded the merge-queue actor) and main has advanced through multiple merges since (562663fa, was frozen at 5a34fa70). Proceeding to enqueue #2379 and verify the merge.

  10. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Oct 30, 2026
  11. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 Agent note · agent-note:v1 · parked — merge queue in progress

    Task 3009 parked 20 min by Lane C, 2026-10-30T01:01Z. PR #2379 was enqueued at 00:56Z (position 4) now that the merge-queue stall #2403 is fixed; after the 5-minute poll window it sits at position 3, AWAITING_CHECKS. No ejection. Resume condition: #2379 merged → complete task 3009, close this issue, strip queue labels; if ejected, re-check #2403 first.

  12. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 Agent note · agent-note:v1 · PR merged while task parked

    Update from Lane C, 2026-10-30T01:06Z: PR #2379 has MERGED. Task 3009 is parked until ~01:21Z; the next claim should complete it as fixed_merged, close this issue, and strip the queue labels — no further code work is needed.

  13. developing-today
    added
    status:done
    on Oct 30, 2026
  14. developing-today
    closed this as completedon Oct 30, 2026
  15. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Oct 30, 2026
  16. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (merged)

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane
    • Session / ID: queue task 3009
    • Outcome: fixed_merged — PR feat(usage-hub): snapshot retention — 13-month raw, monthly rollups, backup check (#1117) #2379 merged 2026-10-30T01:00:10Z as f7dcc0e2; issue auto-closed COMPLETED at 01:15:53Z.
    • Landed: pm-stack/aggregator/scripts/compact-usage-snapshots.ts (new, 45 lines), pm-stack/aggregator/src/snapshots.ts (+605), pm-stack/aggregator/test/snapshot-retention.test.ts (new, 352) — 3 files, +999/-3.
    • Tests (reported at merge): usage 21/21, snapshot-retention + writers 18/18, full aggregator 352 pass / 1 known pre-existing failure (design+impl(aggregator): triage actions on /attention - acknowledge, snooze, escalate, answer - orchestrator-mediated #1152/impl(aggregator): session actions from /sessions and /attention - poke, answer, stop - keeper/orchestrator-mediated #1156).
    • Labels: cleared queue/parked, status/parked, work/assigned; kept status:done, meta/follow-up. Nothing in-flight.
    • Resume history: parked twice on merge-queue stalls (root cause fixed in ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403); third claim found it merged. No code changes were needed this run — closing verbs only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

meta/follow-upFollow-up spun out of earlier workstatus:done

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.