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 — aggregator: Phase 2 of #2576 — feed and snapshot boundaries on the shared primitives · Issue #2578 · developing-today/code

aggregator: Phase 2 of #2576 — feed and snapshot boundaries on the shared primitives #2578

New issue
Copy link
New issue
Copy link
Closed
Closed
aggregator: Phase 2 of #2576 — feed and snapshot boundaries on the shared primitives#2578
Copy link
Assignees
dezren39
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Phase 2 of design #2576 (aggregator ingest, fail-closed). Design doc: files/designs/code-aggregator-ingest-contract.md in the keep-the-four-repos-healthy goal workspace. Gated on Phase 1 (the validate.ts primitives) — status/blocked until it lands.

Scope

Put the feed and snapshot boundaries on the shared primitives from Phase 1 of #2576:

  • isFleetFeed (src/feed.ts) deep-validates pool, window, and attention elements — a malformed pool element is dropped and counted, never crashes /quota (aggregator(feed): isFleetFeed checks only that quota.pools is an array — burn/choices, pool entries and windows unvalidated, one malformed pool crashes /quota #2429); attention entries without a string sessionId are handled per the contract (aggregator(feed): isFleetFeed never checks attention entries — one null entry crashes /attention + /today, entries without a string sessionId silently collapse into one #2427).
  • isAaSection (src/aa.ts) checks thresholds and sources (aggregator(aa): isAaSection never checks thresholds or sources — a section missing them passes the gate and crashes the /aa render instead of degrading #2415); isDnsSection (src/dns.ts) checks totalAnnualListUsd and entry priceUsd (aggregator(dns): isDnsSection never checks totalAnnualListUsd or entry priceUsd — a feed section that passes validation crashes /dns and the usage view on .toFixed #2412); isOrchestrationSection (src/feed.ts) checks tier/goal array elements (aggregator(orchestration): section gate never checks tier/goal array elements — a [null] tier item or goal task passes validation and crashes buildAttention/todayFromSection #2417); registry taskRefs elements validated before merge/persist (aggregator(registry): malformed taskRefs elements pass every gate and crash /sessions at render — an array of bad refs merges, persists, then refUrl throws #2485).
  • isSnapshotRecord checks limit and resetsAt (aggregator(snapshots): isSnapshotRecord never checks limit/resetsAt — a numeric resetsAt crashes the service history chart, a non-numeric limit NaNs it #2483); SnapshotStore refuses records it cannot read back (aggregator: SnapshotStore accepts records it can never read back — non-finite estimate pairs and non-ISO timestamps pass validation, append reports success, and dedupe never sees them #1540); freshestDate and the DNS register compare only real calendar dates (aggregator(snapshot-records): shape-only dates win freshestDate — a 2026-13-01 'Last checked' silently drops a pool's snapshot history, 2026-02-30 is stored as a phantom March date #2264, aggregator(dns): parseDnsRegister accepts impossible renewal dates — 2026-02-30 and 2026-13-01 enter the register, count toward the annual total, and string-sort into wrong positions #2199 as it touches this boundary); section generatedAt stamps validated, future stamps not treated as maximally fresh (aggregator(health): dns/aa section stamps are never validated — a garbage dns generatedAt renders ageMs NaN/null, a future aa generatedAt renders age 0 (maximally fresh) for as long as the skew lasts #2242).

Named scope rule (from the design)

For each of #2412 #2415 #2417 #2427 #2429 #2485 #1540 #2264 #2483 #2242: if still open when this phase starts, this phase closes it with evidence; if already closed per-site, verify its guard uses validate.ts (convert if it hand-rolled) — never re-fix a landed fix.

Acceptance criteria

  • Every guard named above is expressed via validate.ts primitives; no new private finite/date guards are introduced in the touched files.
  • A feed document with one malformed pool/session/billing element renders the valid remainder and counts the drop; no ingest path in scope throws across the boundary.
  • Snapshot append refuses an unreadable or out-of-range record and reports the refusal.
  • Probe-matrix tests cover each converted boundary with its issue's repro shape.
  • Verification runs in CI per fleet policy (no builds on the sandbox).

🤖 Design-architect pass 18 — agent note: phase of design #2576; the decisions are recorded there and in the design doc. Do not re-derive them in triage; flag genuine blockers on #2576 instead.

Activity

Next
  1. dezren39
    added
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    status/blockedQueue or user escalation state
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    effort/mMedium: expected under 1 day of work
    app/aggregatorPackage/app: aggregator (pm-stack in this repo)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    source/design-architectFiled by the repo design architect job
    on Oct 30, 2026
  2. dezren39
    added a parent issue on Oct 30, 2026
    • design(aggregator): ingest, fail-closed — one validation contract for every document the PM stack consumes #2576
  3. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 agent-note:v1 — design-architect pass 18 (2026-10-30): Phase 2 of design #2576, gated on Phase 1 (#2577) — status/blocked + queue/queued reflect that gate; when #2577 lands, triage confirms scope against current main (checking each named issue: still open → this phase closes it; already closed per-site → verify/convert its guard), settles what it can, and enqueues the implementation follow-up. Do not implement in the triage task.

  4. github-actions
    assigned
    dezren39
    on Oct 30, 2026
  5. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — triage verdict (queue task 3830)

    • Agent: queue worker (repo-worker-code), lane D shift
    • Session / ID: queue task 3830 (triage)
    • Found via: queue claim
    • Task: triage Phase 2 of design design(aggregator): ingest, fail-closed — one validation contract for every document the PM stack consumes #2576 against current main, note the Phase 1 gate state, and enqueue the implementation follow-up
    • Expectation: triage complete — verdict below; implementation is a separate queued packet (below)

    Gate state: NOT CLEARED. Phase 1 (#2577) is still OPEN (labels at 2026-10-30T22:25Z: status/needs-triage, queue/queued — its own triage has not run, let alone landed), and current main's pm-stack/aggregator/src/ listing contains no validate.ts. This issue correctly keeps status/blocked until #2577 lands. The implementation packet states the gate as its first acceptance item: a claiming worker revalidates and parks if the gate is still unmet.

    Scope confirmed against current main (2026-10-30T22:25Z), no rescope needed:

    • src/feed.ts:244-257 — isFleetFeed is still top-level only (version, parseable generatedAt, quota object + pools array exists, attention array exists): no pool/window/attention element validation. aggregator(feed): isFleetFeed checks only that quota.pools is an array — burn/choices, pool entries and windows unvalidated, one malformed pool crashes /quota #2429 and aggregator(feed): isFleetFeed never checks attention entries — one null entry crashes /attention + /today, entries without a string sessionId silently collapse into one #2427 gaps are live as scoped.
    • src/snapshots.ts:295 — isSnapshotRecord never checks limit/resetsAt (aggregator(snapshots): isSnapshotRecord never checks limit/resetsAt — a numeric resetsAt crashes the service history chart, a non-numeric limit NaNs it #2483 live), and its estimate-pair branch checks typeof low/high === "number" only, so non-finite pairs pass — the aggregator: SnapshotStore accepts records it can never read back — non-finite estimate pairs and non-ISO timestamps pass validation, append reports success, and dedupe never sees them #1540 readback gap is live as scoped.
    • Named scope rule check: all 10 named issues are still OPEN — aggregator(dns): isDnsSection never checks totalAnnualListUsd or entry priceUsd — a feed section that passes validation crashes /dns and the usage view on .toFixed #2412 aggregator(aa): isAaSection never checks thresholds or sources — a section missing them passes the gate and crashes the /aa render instead of degrading #2415 aggregator(orchestration): section gate never checks tier/goal array elements — a [null] tier item or goal task passes validation and crashes buildAttention/todayFromSection #2417 aggregator(feed): isFleetFeed never checks attention entries — one null entry crashes /attention + /today, entries without a string sessionId silently collapse into one #2427 aggregator(feed): isFleetFeed checks only that quota.pools is an array — burn/choices, pool entries and windows unvalidated, one malformed pool crashes /quota #2429 aggregator(registry): malformed taskRefs elements pass every gate and crash /sessions at render — an array of bad refs merges, persists, then refUrl throws #2485 aggregator: SnapshotStore accepts records it can never read back — non-finite estimate pairs and non-ISO timestamps pass validation, append reports success, and dedupe never sees them #1540 aggregator(snapshot-records): shape-only dates win freshestDate — a 2026-13-01 'Last checked' silently drops a pool's snapshot history, 2026-02-30 is stored as a phantom March date #2264 aggregator(snapshots): isSnapshotRecord never checks limit/resetsAt — a numeric resetsAt crashes the service history chart, a non-numeric limit NaNs it #2483 aggregator(health): dns/aa section stamps are never validated — a garbage dns generatedAt renders ageMs NaN/null, a future aa generatedAt renders age 0 (maximally fresh) for as long as the skew lasts #2242 — so at implementation start each is closed by this phase with evidence; none currently needs the already-closed per-site verify/convert branch. (aggregator(dns): parseDnsRegister accepts impossible renewal dates — 2026-02-30 and 2026-13-01 enter the register, count toward the annual total, and string-sort into wrong positions #2199 remains noted in the issue body as touching the freshness boundary.)
    • The phase is independently landable once Phase 1 lands: boundaries, repro shapes, and acceptance criteria in the issue body are all still accurate against main. Nothing was silently shrunk; no split needed.

    Follow-up enqueued: implementation packet repo-health:v1:fix:developing-today/code:issue:2578 (kind small_fix, priority 30) with this issue's acceptance criteria intact and the gate as acceptance item 1. Labels left truthful: queue/queued (the follow-up), status/blocked (the gate).

  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Oct 30, 2026
  7. 79 remaining items

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

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane A
    • Session / ID: queue task 4006, repo-queue-worker-shift 2026-10-31 08:24 CDT
    • Found via: queue claim (resume)
    • Task: Both Codex P2 findings on PR aggregator(feed): deep quota validation — gate burn/choices, drop malformed pools/windows at loadFeed (#2429, slice 2a of #2578) #3070 FIXED in 880b038: (1) quota drop counts now surface on the view itself (QuotaView.dropped, projected by /api/quota.json) and in the live source's quota provenance string; (2) retained choices are reconciled to surviving pools with usable windows, mirroring computeChoices(). Threads replied + resolved; re-review requested. Laptop: feed.test.ts 17/17 pass; full aggregator suite 695 pass with only the 7 pre-existing main failures (page-manifest/overview set). Parked 30m on the Codex re-review of the new head.
    • Expectation: resume — Codex clean on 880b038 → merge PR aggregator(feed): deep quota validation — gate burn/choices, drop malformed pools/windows at loadFeed (#2429, slice 2a of #2578) #3070 (aggregator(feed): isFleetFeed checks only that quota.pools is an array — burn/choices, pool entries and windows unvalidated, one malformed pool crashes /quota #2429 auto-closes) → then the slice-2 remainder recorded on the PR/issue: (a2) attention aggregator(feed): isFleetFeed never checks attention entries — one null entry crashes /attention + /today, entries without a string sessionId silently collapse into one #2427, (b) aa/dns/orchestration sections, (c) registry taskRefs aggregator(registry): malformed taskRefs elements pass every gate and crash /sessions at render — an array of bad refs merges, persists, then refUrl throws #2485, (d) aggregator(health): dns/aa section stamps are never validated — a garbage dns generatedAt renders ageMs NaN/null, a future aa generatedAt renders age 0 (maximally fresh) for as long as the skew lasts #2242 stamps.
    • Links: PR aggregator(feed): deep quota validation — gate burn/choices, drop malformed pools/windows at loadFeed (#2429, slice 2a of #2578) #3070 @880b03880; worktree laptop ~/git/fleet/4006-2578-slice2
  10. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 31, 2026
  11. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up (resume)

    • Agent: queue worker (repo-worker-code), lane A
    • Session / ID: queue task 4006, repo-queue-worker-shift 2026-10-31 09:04 CDT
    • Found via: queue claim (resume from implementation_complete checkpoint)
    • Task: PR aggregator(feed): deep quota validation — gate burn/choices, drop malformed pools/windows at loadFeed (#2429, slice 2a of #2578) #3070 @880b03880 re-verified fresh: Codex re-review COMPLETE on this exact head — no findings, none unresolved; 0 unresolved review threads (both earlier P2s were fixed in this head and their threads replied + resolved). Laptop suite stands from the fixing lane: feed tests 17/17, aggregator suite 695 pass / only the 7 pre-existing main failures. Merging; aggregator(feed): isFleetFeed checks only that quota.pools is an array — burn/choices, pool entries and windows unvalidated, one malformed pool crashes /quota #2429 auto-closes per the PR linkage, aggregator: Phase 2 of #2576 — feed and snapshot boundaries on the shared primitives #2578 closes, then complete fixed_merged.
    • Links: PR aggregator(feed): deep quota validation — gate burn/choices, drop malformed pools/windows at loadFeed (#2429, slice 2a of #2578) #3070
  12. dezren39
    added a commit that references this issue on Oct 31, 2026

    Merge pull request #3070 from developing-today/queue/4006-2578-phase2…

    97cc7f2
  13. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane A
    • Session / ID: queue task 4006, repo-queue-worker-shift 2026-10-31 09:04 CDT
    • Found via: queue claim (resume)
    • Task: PR aggregator(feed): deep quota validation — gate burn/choices, drop malformed pools/windows at loadFeed (#2429, slice 2a of #2578) #3070 merged (merge commit 97cc7f2). Fresh verification before merge: Codex re-review complete on head 880b038 — no findings, none unresolved; 0 unresolved threads; merge state CLEAN. Laptop verification from the fixing lane stands: feed tests 17/17, aggregator suite 695 pass / only the 7 pre-existing main failures (no PR CI covers pm-stack/**, ci: no pull_request workflow covers pm-stack/** — projector/aggregator changes merge with zero PR CI #2936). aggregator(feed): isFleetFeed checks only that quota.pools is an array — burn/choices, pool entries and windows unvalidated, one malformed pool crashes /quota #2429 auto-closed by the merge; closing aggregator: Phase 2 of #2576 — feed and snapshot boundaries on the shared primitives #2578 with this note (the PR linked aggregator(feed): isFleetFeed checks only that quota.pools is an array — burn/choices, pool entries and windows unvalidated, one malformed pool crashes /quota #2429, not this issue). Slice-2 remainder stays tracked per the task checkpoint: aggregator(feed): isFleetFeed never checks attention entries — one null entry crashes /attention + /today, entries without a string sessionId silently collapse into one #2427, aa/dns/orchestration boundaries, registry aggregator(registry): malformed taskRefs elements pass every gate and crash /sessions at render — an array of bad refs merges, persists, then refUrl throws #2485, aggregator(health): dns/aa section stamps are never validated — a garbage dns generatedAt renders ageMs NaN/null, a future aa generatedAt renders age 0 (maximally fresh) for as long as the skew lasts #2242 stamps (the last now in flight as PR fix(aggregator): validate dns/aa section stamps in health feedSections (#2242) #3091).
    • Links: PR aggregator(feed): deep quota validation — gate burn/choices, drop malformed pools/windows at loadFeed (#2429, slice 2a of #2578) #3070 (merged, 97cc7f2)
  14. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 31, 2026
  15. dezren39
    closed this as completedon Oct 31, 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

app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobtask/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.