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 3 of #2576 — extractor and mapper boundaries on the shared primitives · Issue #2579 · developing-today/code

aggregator: Phase 3 of #2576 — extractor and mapper boundaries on the shared primitives #2579

New issue
Copy link
New issue
Copy link
Closed
#5513
Closed
aggregator: Phase 3 of #2576 — extractor and mapper boundaries on the shared primitives#2579
#5513
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/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

Phase 3 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. Independent of Phase 2.

Scope

Put the extractor and mapper boundaries on the shared primitives from Phase 1 of #2576:

  • quota-gather-map.ts: entryFromResult, entryFromFileExport, entryFromTurso range-check percents against their limit and reject negative/non-finite counts instead of publishing them as live data (aggregator(quota-gather-map): entryFromResult and entryFromFileExport never range-check percent — a window at -20% or 1e9% publishes as live ok data and appends as pct history against limit:100 #2571, aggregator(snapshot-records): recordsFromProviderUsage never range-checks used_percent — a Codex window at -20% or 1e9% is appended as measured pct history against its own limit:100 #2568, aggregator(quota-gather-map): entryFromTurso never range-checks usage — negative counts publish as live ok data and append negative snapshot records #2553); the file-export adapter's window check returns the retained unparseable outcome for a null window element or non-string window name instead of throwing (aggregator(token-adapter): file-export adapter's fail-closed window check throws on a null window element and accepts a non-string window name, instead of returning the retained unparseable outcome #2551).
  • saas-extract.ts: the export document is type/range-checked — negative used/limit/billedUsd refused, a non-string measuredAt cannot pass the freshness gate (aggregator(saas-extract): applySupabaseExport never range/type-checks the export doc — negative used/limit/billedUsd are stamped as live measured data, and an array measuredAt passes the freshness gate and corrupts the card #2508). Supabase addon pricing: an unpriced selected addon is unparseable, never measured $0; negative amounts refused (supabase-export: billedFromAddons silently zeroes unpriced selected addons (and accepts negative amounts) — a paid addon reports as measured $0 #2492).
  • Quota extractors validate their date anchors as real calendar dates (aggregator(quota-extract): Claude and Meta reset dates are never validated — an impossible date is emitted verbatim as resetsAt, and a Feb-30 Meta reset silently discards the pool's whole read #2470 Claude/Meta reset dates, aggregator(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge 'resets in' offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March #2383 ClinePass measured-date anchor) — an impossible date marks the entry unparseable and retains the previous read, never discards or fabricates.
  • sources/github-billing.ts: items validated per element — one impossible date or negative amount drops that item, not the month (aggregator(github-billing): billing items never validated — an impossible date discards the whole month's collection, negative amounts are stored as usage #2493).
  • sources/opencode.ts / sources/jules.ts: wire containers validated (data arrays, keeper state); bad elements dropped and counted — no throw discarding the source, no fabricated undefined-id rows (aggregator(opencode): mapServerSessions never validates the v2 wire containers — a non-array data on any endpoint, or one null session entry, throws out of the mapper and drops every session from that server; an id-less entry fabricates an undefined-sessionId row #2543, aggregator(jules): mapJulesItems never validates the keeper state — one null or mistyped item discards every Jules session for the run, a string items fabricates phantom sessions #2531); the fleet-feed registry check in aggregator(feed): isFleetFeed never checks registry — a non-array container crashes registry()/coverage(), and coverage()'s unfiltered .filter throws on a [null] entry that registry() handles fine #2539's path validates its containers the same way.
  • cloudflare-export: bucket enumeration fails closed — a 500/malformed response produces an error document, never status: ok with r2Buckets: []; pagination goes past 100 buckets (cloudflare-export: R2 bucket enumeration fails open — a 500/malformed buckets response publishes r2Buckets: [] in a status:ok document, and pagination past 100 buckets is silently dropped #2574).

Named scope rule (from the design)

For each of #2383 #2470 #2492 #2508 #2551 #2553 #2568 #2571 #2493 #2531 #2539 #2543 #2574: 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 function named above validates via validate.ts primitives; malformed input yields the contract outcome for its boundary (retain / drop-and-count / refuse), never a throw, a fabricated row, or live out-of-range data.
  • An impossible date in any extractor marks only its own entry unparseable; sibling pools' reads are unaffected.
  • 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 3 of design #2576, gated on Phase 1 (#2577), independent of Phase 2 (#2578) — status/blocked + queue/queued reflect the 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
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Oct 30, 2026
  6. 85 remaining items

  7. 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 Nov 4, 2026
  8. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: parked
    task: 6900
    lane: bf419306-c4ef-470f-a553-beabf93239de (openchamber scheduled lane)
    worker: repo-worker-code
    issue: #2579
    kind: small_fix
    state_checked: 2026-11-04T14:22Z — #2579 OPEN; no held, user/owned, do-not-merge, do-not-auto-edit labels; no PR exists for this branch.
    branch: queue/6900-2579-implement-2579-aggregator-phas
    worktree: /home/user/git/fleet/6900-task (laptop)
    head: 1594f0e (merge of origin/main eb3e71c into the task branch)
    verified: bun test test/phase3-boundaries.test.ts → 16 pass / 0 fail on the merged branch.
    remaining: (1) audit which named boundaries already landed on main — src/sources/github-billing.ts already imports isIsoDate/isNonNegative from validate.ts; jules.ts no longer exists under sources/; Cloudflare exporter is pm-stack/cloudflare-export/ (separate mjs boundary, task 5387/#4902 merged). (2) close or convert the remaining named issues with evidence per #2576's named-scope rule. (3) open the PR only once the full named scope is covered.
    park_reason: openchamber scheduled lane run budget (~30 min) elapsed before the remaining boundary audit; no CI wait in progress.
    resume: claim 6900, git -C ~/git/fleet/6900-task pull --ff-only, audit the remaining boundaries, run the aggregator suite, then open the PR.

  9. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: opencode claimant (opencode-claimant)
    • Session / ID: queue task 6900; bound session ses_e5e59054ba4ffezo4tdOZAn7UO
    • Found via: queue task handoff on the opencode execution lane
    • Task: Implement aggregator: Phase 3 of #2576 — extractor and mapper boundaries on the shared primitives #2579: aggregator Phase 3 extractor and mapper validation
    • Expectation: the bound worker session works task 6900 to a terminal queue state and must not claim another task. It revalidates the issue/PR before acting.
    • Links: aggregator: Phase 3 of #2576 — extractor and mapper boundaries on the shared primitives #2579
  10. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 4, 2026
  11. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane 8ac61616-3815-4e7b-b33d-840a3829154a
    • Session / ID: task 6900
    • Found via: atomic claim from repo-health-code-pilot
    • Task: resume the Phase 3 validation work from its saved checkpoint and worktree. Prior progress reports SHA 96c43b5e86b6e05340231ba31287e4931ad8db35, passing tests, and PR creation rate limits; this shift will revalidate every issue, branch, PR, and the cloudflare-export: R2 bucket enumeration fails open — a 500/malformed buckets response publishes r2Buckets: [] in a status:ok document, and pagination past 100 buckets is silently dropped #2574 artifact before editing.
    • Next: verify current GitHub state and salvage existing work without creating a duplicate.
    • Links: aggregator: Phase 3 of #2576 — extractor and mapper boundaries on the shared primitives #2579 · queue task 6900
  12. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
  13. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (PR opened)

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane 8ac61616-3815-4e7b-b33d-840a3829154a
    • Session / ID: task 6900
    • Outcome: Updated canonical PR fix(aggregator): validate Phase 3 extractor and mapper boundaries #5513 on queue/6900-2579-implement-2579-aggregator-phas to head ab2c1e12da9c14a83331c0c77309665860c0c850, including the saved ClinePass/Turso and OpenCode/snapshot fixes plus a merge of current main. PR is OPEN; aggregator: Phase 3 of #2576 — extractor and mapper boundaries on the shared primitives #2579 remains OPEN pending merge. No competing PR was created.
    • Verification: focused Phase 3, OpenCode, snapshot-writer, token-adapter, and quota-mapper tests: 119 passed / 0 failed. git diff --check passed. The contract-corpus CI job passed.
    • CI caveat: manual run 41857404172 failed the full aggregator suite: 1,603 passed / 8 failed (six stale repo-name fixture expectations and two missing PM_AGG_SOURCE/PM_AGG_DEV settings); the same failures were reproduced on primary main. CI typecheck was skipped after the test failure; local bunx tsc --noEmit hits the same pre-existing GhKind error at src/item-history.ts:58 on main and branch. The aggregator workflow is manual-only, so no PR-triggered check ran. Codex review reported no findings; CodeRabbit was rate-limited/skipped.
    • Links: fix(aggregator): validate Phase 3 extractor and mapper boundaries #5513 · https://github.com/developing-today/code/actions/runs/41857404172
  14. dezren39
    closed this as completedin #5513on 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

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/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.