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(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

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

New issue
Copy link
New issue
Copy link
Closed
#3091
Closed
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
#3091
Copy link
Assignees
dezren39
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

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: 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:

  • 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).
  • Orchestration stamp: orchestrationSectionProblem (feed.ts:131) requires a finite parse, and diagnoseOrchestrationSection (feed.ts:180-186) rejects >60s future stamps as invalid.
  • dns stamp: DnsSection.generatedAt (model.ts:644-646) has no validator on the read path — isFleetFeed never inspects the dns section.
  • 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.

feedSections' helper (health.ts:186-189) computes the age blindly:

const ts = generatedAt ?? feed.generatedAt;
return { present, generatedAt: ts, ageMs: Math.max(0, now - Date.parse(ts)), ... };

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.

Probe (Bun, real buildHealth, fixtures mode)

Feed with a valid top-level stamp, dns.generatedAt = "not-a-date", aa.generatedAt = now + 30 days:

orchestration: present=false generatedAt="2026-10-29T10:47:56.678Z" ageMs=0 isNaN=false json=0   (control: absent → feed stamp)
dns: present=true generatedAt="not-a-date" ageMs=NaN isNaN=true json=null
aa:  present=true generatedAt="2026-11-28T10:47:56.678Z" ageMs=0 isNaN=false json=0

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

Why it matters

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

Acceptance criteria

  • 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.
  • 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).
  • 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.

Notes

  • Dedup: searched open + closed for health/feedSections/section-stamp terms — no match. aggregator: a garbage or future-dated generatedAt is 'live' forever — the orchestration diagnosis and fleet-feed gate never check that the timestamp parses #1564 (closed) covered the orchestration diagnosis + top-level feed gate only; 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/aggregator(saas-extract): shape-only dates win freshestDate — a 2026-13-01 'Last checked' masks a real read (measuredAt goes stale/null), 2026-02-30 becomes a renewal date #2206 are the dns/saas content date parsers, not the health view's section stamps.
  • 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.

Filed by new-issue-creator-code-a (agent-note follows).

Activity

Next
  1. developing-today commented on Oct 29, 2026

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

    CODE-1110

  2. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/lowNice to have; do when convenient
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    app/aggregatorPackage/app: aggregator (pm-stack in this repo)
    effort/xsTrivial: expected under 30 minutes of work
    on Oct 29, 2026
  3. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (new-issue-creator-code-a)
    • Session / ID: new-issue-creator-code-a run 2026-10-29 05:35 CDT
    • Found via: filed this run
    • Task: Triage the unvalidated dns/aa section stamps in the aggregator health view (health.ts:186-189 feedSections): pin where the finite + future-skew validation lives (feedSections vs section gates), then route the fix.
    • Expectation: effort/xs — done looks like: a garbage dns/aa generatedAt no longer renders present + ageMs NaN/null, a >60s-future stamp is not ageMs 0 fresh, valid stamps unchanged, health regression tests cover garbage + future for both sections.
    • Links: probe /tmp/probe-laneA-health/probe.ts (sandbox Bun, real buildHealth, main 24901e7); precedents aggregator: a garbage or future-dated generatedAt is 'live' forever — the orchestration diagnosis and fleet-feed gate never check that the timestamp parses #1564 (orchestration + top-level stamps, closed), aggregator: a future-dated gatherer read is 'fresh' forever until its date passes — quota-current freshness has no upper bound, so one skewed measuredAt pins a pool's windows for weeks #1541 (quota-current future skew, closed)
  4. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 31, 2026
  6. 9 remaining items

  7. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Oct 31, 2026
  8. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane A
    • Session / ID: queue task 4321, repo-queue-worker-shift 2026-10-31 09:04 CDT
    • Found via: queue claim (fresh small_fix, pinned by triage task 3400)
    • Task: Implementing the pinned fix: feedSections in health.ts rejects unparseable generatedAt (present:false, 'invalid generatedAt' note) and stamps >60s in the future (GENERATED_AT_FUTURE_SKEW_MS), and isDnsSection/isAaSection require Number.isFinite(Date.parse(generatedAt)). Regression tests in test/health.test.ts for garbage + future stamps on dns and aa.
    • Links: issue 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
  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 4321, repo-queue-worker-shift 2026-10-31 09:04 CDT
    • Found via: queue claim (fresh small_fix)
    • Task: Implemented the pinned 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 fix and opened PR fix(aggregator): validate dns/aa section stamps in health feedSections (#2242) #3091 @df2ea248b: feedSections from() rejects unparseable stamps (present:false, 'invalid generatedAt (...)' note, no ageMs) and stamps >60s in the future (present:false, descriptive note); isDnsSection/isAaSection require Number.isFinite(Date.parse(generatedAt)). Laptop verification: health.test.ts 18/18 pass incl. 2 new regression tests (garbage + future for dns and aa, inside-skew live case); full aggregator suite 692 pass / 7 fail — identical fail set to clean main baseline (690/7, pre-existing page-manifest/attention failures verified on the primary clone). No PR CI covers pm-stack/** (ci: no pull_request workflow covers pm-stack/** — projector/aggregator changes merge with zero PR CI #2936), so the merge gate is Codex review, requested on the PR.
    • Expectation: resume — Codex clean on df2ea24 → merge PR fix(aggregator): validate dns/aa section stamps in health feedSections (#2242) #3091 → close 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 → complete fixed_merged.
    • Links: PR fix(aggregator): validate dns/aa section stamps in health feedSections (#2242) #3091; worktree laptop ~/git/fleet/4321
  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 31, 2026
  11. dezren39
    added a commit that references this issue on Oct 31, 2026

    Merge pull request #3091 from developing-today/queue/4321-2242-feedse…

    201e0c3
  12. dezren39
    closed this as completedin #3091on Oct 31, 2026
  13. 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 31, 2026
  14. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: done
    task: 4321 (lane E resume)
    pr: #3091 MERGED @ 201e0c3
    note: Codex review on df2ea24 completed clean ("Didn't find any major issues", no threads). No PR CI covers pm-stack/** (per #2936); verification was the laptop suite from the opening lane (health 18/18, full-suite fail set identical to clean main). Diff = exactly the 4 packet files (health.ts, dns.ts, aa.ts, test/health.test.ts). Issue auto-closed by the merge; stale queue/status/work labels removed.

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)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator 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.