Title: aggregator: Phase 3 of #2576 — extractor and mapper boundaries on the shared primitives · Issue #2579 · developing-today/code · GitHub
Open Graph Title: aggregator: Phase 3 of #2576 — extractor and mapper boundaries on the shared primitives · Issue #2579 · developing-today/code
X Title: aggregator: Phase 3 of #2576 — extractor and mapper boundaries on the shared primitives · Issue #2579 · developing-today/code
Description: 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 unti...
Open Graph Description: 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 valid...
X Description: 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 valid...
Opengraph URL: https://github.com/developing-today/code/issues/2579
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"aggregator: Phase 3 of #2576 — extractor and mapper boundaries on the shared primitives","articleBody":"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.\n\n## Scope\n\nPut the extractor and mapper boundaries on the shared primitives from Phase 1 of #2576:\n\n- `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 (#2571, #2568, #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 (#2551).\n- `saas-extract.ts`: the export document is type/range-checked — negative `used`/`limit`/`billedUsd` refused, a non-string `measuredAt` cannot pass the freshness gate (#2508). Supabase addon pricing: an unpriced selected addon is unparseable, never measured $0; negative amounts refused (#2492).\n- Quota extractors validate their date anchors as real calendar dates (#2470 Claude/Meta reset dates, #2383 ClinePass measured-date anchor) — an impossible date marks the entry unparseable and retains the previous read, never discards or fabricates.\n- `sources/github-billing.ts`: items validated per element — one impossible date or negative amount drops that item, not the month (#2493).\n- `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 (#2543, #2531); the fleet-feed registry check in #2539's path validates its containers the same way.\n- `cloudflare-export`: bucket enumeration fails closed — a 500/malformed response produces an error document, never `status: ok` with `r2Buckets: []`; pagination goes past 100 buckets (#2574).\n\n## Named scope rule (from the design)\n\nFor 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.\n\n## Acceptance criteria\n\n- 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.\n- An impossible date in any extractor marks only its own entry unparseable; sibling pools' reads are unaffected.\n- Probe-matrix tests cover each converted boundary with its issue's repro shape.\n- Verification runs in CI per fleet policy (no builds on the sandbox).\n\n🤖 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.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-30T05:33:29Z","url":"https://github.com/developing-today/code/issues/2579"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:da3b98c8-4952-bbc2-d565-27e8ad3b0056 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C940:3B6B85:9DF1B7:CCA201:6B063440 |
| html-safe-nonce | adea8b9d6ae4baaffd78cc8b92b3eb435240b6f101eb9b63bee1072b547a454a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTQwOjNCNkI4NTo5REYxQjc6Q0NBMjAxOjZCMDYzNDQwIiwidmlzaXRvcl9pZCI6IjEyNjkyNTg4MzAyODI2MzQzMDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2a8c42b2e82370df418699b6751f33459bc4e2b1f26e873ea4e923245f974c65 |
| hovercard-subject-tag | issue:6113826916 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/2579/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e28e6a8af82a4e13c320b8e67e73e4c33e8b14eb1fed6d10eec676e996157ba7/developing-today/code/issues/2579 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e28e6a8af82a4e13c320b8e67e73e4c33e8b14eb1fed6d10eec676e996157ba7/developing-today/code/issues/2579 |
| og:image:alt | 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 valid... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width