Title: 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 · Issue #2242 · developing-today/code · GitHub
Open Graph Title: 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 · Issue #2242 · developing-today/code
X Title: 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 · Issue #2242 · developing-today/code
Description: aggregator(health): dns/aa section stamps are never validated — garbage dns generatedAt renders ageMs NaN, future aa generatedAt renders age 0 Evidence (verified this run, main 24901e7b) The /health view is the stack's honesty surface: f...
Open Graph Description: aggregator(health): dns/aa section stamps are never validated — garbage dns generatedAt renders ageMs NaN, future aa generatedAt renders age 0 Evidence (verified this run, main 24901e7b) The /healt...
X Description: aggregator(health): dns/aa section stamps are never validated — garbage dns generatedAt renders ageMs NaN, future aa generatedAt renders age 0 Evidence (verified this run, main 24901e7b) The /healt...
Opengraph URL: https://github.com/developing-today/code/issues/2242
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"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","articleBody":"# aggregator(health): dns/aa section stamps are never validated — garbage dns `generatedAt` renders ageMs NaN, future aa `generatedAt` renders age 0\n\n## Evidence (verified this run, main `24901e7b`)\n\nThe `/health` view is the stack's honesty surface: `feedSections` in `pm-stack/aggregator/src/health.ts:184-207` reports each feed section's `generatedAt` and `ageMs`. Three sections carry their own stamps — `orchestration`, `dns`, `aa` (the rest inherit the feed's top-level stamp). Only the orchestration stamp is ever validated:\n\n- Top-level feed stamp: `isFleetFeed` (`feed.ts:213-222`) requires `Number.isFinite(Date.parse(generatedAt))`, and `buildHealth` itself flags a top-level stamp >60s in the future as \"never fresh\" (`health.ts:234-235`, `:254-262`, `GENERATED_AT_FUTURE_SKEW_MS`).\n- Orchestration stamp: `orchestrationSectionProblem` (`feed.ts:131`) requires a finite parse, and `diagnoseOrchestrationSection` (`feed.ts:180-186`) rejects >60s future stamps as invalid.\n- dns stamp: `DnsSection.generatedAt` (`model.ts:644-646`) has **no validator on the read path** — `isFleetFeed` never inspects the dns section.\n- aa stamp: `isAaSection` (`aa.ts:1070-1084`) checks only `typeof generatedAt === \"string\"` — no parse, no finiteness, no future bound. `isFleetFeed` doesn't inspect the aa section either.\n\n`feedSections`' helper (`health.ts:186-189`) computes the age blindly:\n\n```ts\nconst ts = generatedAt ?? feed.generatedAt;\nreturn { present, generatedAt: ts, ageMs: Math.max(0, now - Date.parse(ts)), ... };\n```\n\n`Date.parse` of a garbage stamp is `NaN`, and `Math.max(0, NaN)` is `NaN`. A future stamp gives a negative age, clamped to `0` — maximally fresh — and stays `0` until the stamped date passes.\n\n### Probe (Bun, real `buildHealth`, fixtures mode)\n\nFeed with a valid top-level stamp, `dns.generatedAt = \"not-a-date\"`, `aa.generatedAt = now + 30 days`:\n\n```\norchestration: present=false generatedAt=\"2026-10-29T10:47:56.678Z\" ageMs=0 isNaN=false json=0 (control: absent → feed stamp)\ndns: present=true generatedAt=\"not-a-date\" ageMs=NaN isNaN=true json=null\naa: present=true generatedAt=\"2026-11-28T10:47:56.678Z\" ageMs=0 isNaN=false json=0\n```\n\nSo the health JSON says the dns section is present with `ageMs: null` and no invalid/stale signal, and the aa section looks just-collected (`ageMs: 0`) for the next 30 days.\n\n## Why it matters\n\nThe health page exists so a stale or broken section is *diagnosable* instead of silently \"absent\" or silently fresh (#1139/#1140, and #1564 established the finite + 60s-future-skew convention for the orchestration section and the top-level stamp). The dns and aa sections escaped that pass: a collector bug or clock skew that corrupts either stamp is invisible on the one surface meant to catch it — garbage reads as \"present, age unknown\", and a future stamp reads as \"freshest possible\" for as long as the skew lasts.\n\n## Acceptance criteria\n\n- [ ] `feedSections` (or the section gates feeding it) applies the house convention to the dns and aa stamps: an unparseable stamp does not produce `ageMs: NaN` — the section is reported with a legible invalid/absent-style signal instead of `present` + `ageMs: null`.\n- [ ] A section stamp more than `GENERATED_AT_FUTURE_SKEW_MS` (60s) in the future is not reported as `ageMs: 0` fresh; it gets the same treatment the top-level stamp gets (\"never fresh\" / invalid).\n- [ ] Valid stamps render exactly as today; a regression test (health tests) covers garbage and future dns/aa stamps alongside the existing top-level/orchestration cases.\n\n## Notes\n\n- Dedup: searched open + closed for health/feedSections/section-stamp terms — no match. #1564 (closed) covered the orchestration diagnosis + top-level feed gate only; #2199/#2206 are the dns/saas *content* date parsers, not the health view's section stamps.\n- Not self-solved by the filing lane: whether the fix lives in `feedSections`, in `isFleetFeed`/`isAaSection`, or in a dns section gate is triage's pin.\n\nFiled by `new-issue-creator-code-a` (agent-note follows).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-29T10:48:31Z","url":"https://github.com/developing-today/code/issues/2242"}
| 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:558f8cbe-e441-280d-79b3-aa4132346ee6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB96:2D919D:D119A0:10E3EB5:6B064166 |
| html-safe-nonce | 6fafb65e8478af0e13265f2364bee4fc5b08586ecd4d4a5a1d90d2a7acf7a7ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjk2OjJEOTE5RDpEMTE5QTA6MTBFM0VCNTo2QjA2NDE2NiIsInZpc2l0b3JfaWQiOiIzMDkyMTY0NDU5NjI0ODA4ODA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f54e7279278e71b288de5d514b302e6fd90f4b7ea84adf4857e65fa0744417b3 |
| hovercard-subject-tag | issue:6098038293 |
| 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/2242/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e9ad767b48bc5e2aa188b766ea4e7c03950c28bc670b3703078ceca30fa3e61/developing-today/code/issues/2242 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e9ad767b48bc5e2aa188b766ea4e7c03950c28bc670b3703078ceca30fa3e61/developing-today/code/issues/2242 |
| og:image:alt | aggregator(health): dns/aa section stamps are never validated — garbage dns generatedAt renders ageMs NaN, future aa generatedAt renders age 0 Evidence (verified this run, main 24901e7b) The /healt... |
| 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 | 1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652 |
| 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 | ac613d3698d3d8565651455086e1f74da07bf277 |
| ui-target | full |
| 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