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: snapshot + freshness boundaries on validate.ts (#2578 Phase 2, slice 1) by dezren39 · Pull Request #3035 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Oct 31, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Slice 1 of Phase 2 of #2576 for #2578 — the snapshot + freshness boundaries, expressed with the Phase 1 validate.ts primitives (gate re-verified: #2577 closed, validate.ts on main at blob e51bc393).

Landed in this slice

  • isSnapshotRecord (snapshots.ts): ts gated by isIsoDate (real calendar dates; Date.parse rolled 2026-02-30 into March), ids via isNonEmptyString, values via isFiniteNumber; new limit/resetsAt checks — non-finite/negative limit or impossible resetsAt refuses the record (aggregator(snapshots): isSnapshotRecord never checks limit/resetsAt — a numeric resetsAt crashes the service history chart, a non-numeric limit NaNs it #2483).
  • SnapshotStore.append: readback refusal — a record whose JSON round-trip fails isSnapshotRecord is never appended (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 (snapshot-records.ts and saas-extract.ts): only real calendar dates compete, so an impossible date in prose cannot win freshness (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).
  • isFleetFeed: generatedAt must satisfy isTimestampNotFuture — a far-future stamp is invalid, not 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); the orchestration section gate now uses the strict date instead of Date.parse.
  • Probe tests for each converted boundary (snapshot-writers + feed suites).

Verification (laptop; aggregator has no PR-triggered CI)

  • Targeted suites (snapshot-writers, feed, store-corrupt, snapshot-retention): 43 pass / 0 fail.
  • Full aggregator suite: 676 pass / 7 fail — the 7 failures are the pre-existing page-manifest/render set, reproduced on clean main (overview/render) and recorded in the fleet snapshot; untouched by this diff.

Remaining Phase 2 scope (task 4006 stays parked on this PR)
Feed deep element validation (pools/windows/attention drop+count), isAaSection/isDnsSection/isOrchestrationSection element checks, registry taskRefs element validation (#2485), and closing the named issues with evidence as each boundary lands.

Queue task 4006 · relates to #2578, #2576


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dezren39
aggregator: snapshot + freshness boundaries on validate.ts primitives (…
250d61b
…#2578 Phase 2, slice 1)

isSnapshotRecord: strict real-date ts, limit/resetsAt checks (#2483), primitives for ids/values; SnapshotStore.append refuses records that fail JSON readback (#1540); freshestDate (snapshot-records + saas-extract) compares only real calendar dates (#2264); isFleetFeed rejects future generatedAt stamps (#2242) and the orchestration gate uses the strict date. Probe tests added. Feed deep element validation (pools/windows/attention), aa/dns element checks, and registry taskRefs remain for the next slice.
@dezren39
dezren39 requested a review from a team as a code owner October 31, 2026 11:32
@coderabbitai

coderabbitai Bot commented Oct 31, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f5d88587-988e-44f2-b044-16953dda5c7e
Commits

Reviewing files that changed from the base of the PR and between a9df301 and 250d61b.

Files selected for processing: 6
  • pm-stack/aggregator/src/feed.ts
  • pm-stack/aggregator/src/saas-extract.ts
  • pm-stack/aggregator/src/snapshot-records.ts
  • pm-stack/aggregator/src/snapshots.ts
  • pm-stack/aggregator/test/feed.test.ts
  • pm-stack/aggregator/test/snapshot-writers.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T11:34:30.569906Z 250d61b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Oct 31, 2026
aggregator: Phase 2 of #2576 — feed and snapshot boundaries on the shared primitives #2578
Closed
@dezren39

dezren39 commented Oct 31, 2026

Copy link
Copy Markdown
Member Author

@codex review — Phase 2 slice 1 for #2578 (queue task 4006): snapshot/freshness boundaries on validate.ts primitives. Please review head 250d61b.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 250d61bbcf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit 5411129 into main Oct 31, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/4006-2578-phase2-feed-snapshot branch October 31, 2026 11:56
This was referenced Oct 31, 2026
aggregator(snapshots): isSnapshotRecord never checks limit/resetsAt — a numeric resetsAt crashes the service history chart, a non-numeric limit NaNs it #2483
Closed
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
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
Closed
aggregator(registry): non-array taskRefs passes isSessionRecord and crashes mergeRecords' spread — a string one silently splits into single-character refs #2408
Closed
design(aggregator): ingest, fail-closed — one validation contract for every document the PM stack consumes #2576
Closed
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.