René's URL Explorer Experiment


Title: 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 · Issue #1541 · developing-today/code · GitHub

Open Graph Title: 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 · Issue #1541 · developing-today/code

X Title: 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 · Issue #1541 · developing-today/code

Description: 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 Summary entryState in pm-stack/aggregator/src/quota-...

Open Graph Description: 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 Summary entr...

X Description: 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 ...

Opengraph URL: https://github.com/developing-today/code/issues/1541

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"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","articleBody":"# 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\n\n## Summary\n\n`entryState` in pm-stack/aggregator/src/quota-current.ts:56-61 decides whether\na gatherer entry may replace a pool's windows:\n\n```ts\nconst t = Date.parse(entry.measuredAt);\nreturn Number.isFinite(t) && nowMs - t \u003c= QUOTA_CURRENT_FRESH_MS ? \"ok\" : \"stale\";\n```\n\nThe check bounds only the past. A `measuredAt` in the future gives a negative\nage, which is always `\u003c= QUOTA_CURRENT_FRESH_MS` (20 min) — so a read stamped\nan hour, a day, or a month ahead is classified `\"ok\"`, replaces the pool's\nwindows in `overlayQuotaCurrent`, recomputes the pool state and the routing\nchoices (`computeChoices`), and keeps doing so on every render until 20\nminutes after its future date arrives. The newest-entry sort in the overlay\n(`Date.parse(b.measuredAt) - Date.parse(a.measuredAt)`, quota-current.ts:139-141)\nalso makes a future-dated entry win over every genuinely fresh entry for the\nsame service.\n\n## Evidence (verified on main 3b559045, Bun 1.4.2, real quota-current.ts sha256 c528e1e3 on the laptop)\n\nProbe drove the real `overlayQuotaCurrent` with a fixed `now`\n(2026-10-27T07:00:00Z), one pool (weekly window at 68%), and one ok entry\ncarrying a 42% window:\n\n| measuredAt | result |\n|---|---|\n| 5m ago (control) | state healthy, windows replaced (42), freshness ok |\n| 19m ago (control) | healthy, windows replaced, freshness ok |\n| 21m ago (control) | state **stale**, windows kept (68) |\n| **1h in the future** | healthy, windows **replaced (42)**, freshness **ok** |\n| **30d in the future** | healthy, windows **replaced (42)**, freshness **ok** |\n\n`parseQuotaCurrent` (quota-current.ts:41-52) validates only that\n`measuredAt` is a string, so nothing upstream of `entryState` catches this\neither. The existing tests (test/quota-current.test.ts) construct entries\nonly with past offsets (`iso(msAgo)`), so the future case is uncovered.\n\n## Why it matters\n\nThe module's own contract (header, quota-current.ts:7-19) is the dashboard's\ndata-honesty rule for the quota plane: a read past the freshness bound\n\"surfaces as the pool's state (error/stale, with the reason) — never as\nzeros, and the pool's older windows are never silently presented as\ncurrent\". A future stamp defeats that rule in the other direction: one\nclock-skewed or mis-stamped gatherer write (the gatherer runs on a 15-minute\ntick on another host) silently presents its numbers as the freshest truth\nfor as long as the skew lasts — a month in the verified case — and the\nchoices computed from those windows steer real session routing.\n\n## Acceptance criteria\n\n- An entry whose `measuredAt` is more than a small clock-skew tolerance in\n  the future (tolerance pinned in triage; it should be minutes, not the\n  unbounded current behaviour) is NOT classified fresh-ok: it surfaces as\n  stale (or error) with the pool's older windows not replaced.\n- The fresh-ok precedence sort cannot let a future-dated entry outrank a\n  genuinely fresh entry for the same service.\n- Regression tests in test/quota-current.test.ts for measuredAt at\n  +1h and a far-future date, alongside the existing past-offset controls.\n- No change to the freshness bound or semantics for past-dated reads.\n\n## Notes\n\n- Deliberately not self-solved by the creator lane: the skew tolerance is a\n  small policy choice for triage (the gatherer and aggregator run on\n  different hosts, so zero tolerance could flap on real skew).\n- Sibling validator, different defect: #1540 (snapshot store records) —\n  same app, unrelated module and mechanism.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-28T00:52:41Z","url":"https://github.com/developing-today/code/issues/1541"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d69ecc79-6734-fe2e-8abc-95ba0dfb3452
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9B84:34F10E:806F0C:AB7078:6B062FB8
html-safe-nonce8ab3f074578bd0eff7f4c242cc8c1e56f91ac55907bae5b1d2f388dcb0b1f58d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qjg0OjM0RjEwRTo4MDZGMEM6QUI3MDc4OjZCMDYyRkI4IiwidmlzaXRvcl9pZCI6Ijg2ODgwODQ1NDc5NDgzOTIzNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac781bd864b02cb21d1a5af6a47157e6fd44b056f75d973e2a73dce550a8e02114
hovercard-subject-tagissue:6070435327
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/1541/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f5d88e540dafc1ddc521150826fe129c9b9151722ca8808be55baceb7e9aefca/developing-today/code/issues/1541
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f5d88e540dafc1ddc521150826fe129c9b9151722ca8808be55baceb7e9aefca/developing-today/code/issues/1541
og:image:altaggregator: 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 Summary entr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release494ea0bb1e0feef734a83e2628697647755e8864
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/1541#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F1541
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F1541
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/1541
Reloadhttps://github.com/developing-today/code/issues/1541
Reloadhttps://github.com/developing-today/code/issues/1541
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests151 (151)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/1541
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/1541
#1733https://github.com/developing-today/code/pull/1733
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 weekshttps://github.com/developing-today/code/issues/1541#top
#1733https://github.com/developing-today/code/pull/1733
https://github.com/dezren39
app/aggregatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Faggregator%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#issue-6070435327
3b55904https://github.com/developing-today/code/commit/3b559045d84027bf69c5e33c3ead6e88bee9c233
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 #1540https://github.com/developing-today/code/issues/1540
Nexthttps://github.com/developing-today/code/issues/1541?timeline_page=1
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#issuecomment-6457695287
developing.todayhttps://kaneo.security.cab
CODE-595https://kaneo.security.cab/dashboard/workspace/6oQgIkST0YGrCcxrnhbHPOUCfgdD3cqE/project/pfcq432h349r20up18gttfv4/task/jq2sy4pvowf1o5ca0icidw8c
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
app/aggregatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Faggregator%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#event-34427584144
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#issuecomment-6457702658
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#event-34428011142
dezren39https://github.com/dezren39
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#event-34468864649
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#issuecomment-6475199700
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 #1541https://github.com/developing-today/code/issues/1541
aggregator: future-dated quota-current entries beyond 60s skew classify stale (#1541) #1733https://github.com/developing-today/code/pull/1733
d76bd3chttps://github.com/developing-today/code/commit/d76bd3c6bfa36f24fad08b80b09a8663d0d37847
aggregator: actions.test.ts fails on main — applied snooze never lands in the Snoozed strip ('Snoozed by you (1)' missing) #1682https://github.com/developing-today/code/issues/1682
aggregator: future-dated quota-current entries beyond 60s skew classify stale (#1541) #1733https://github.com/developing-today/code/pull/1733
aggregator: future-dated quota-current entries beyond 60s skew classify stale (#1541) #1733https://github.com/developing-today/code/pull/1733
dezren39https://github.com/dezren39
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#event-34500908508
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#issuecomment-6475688940
aggregator: future-dated quota-current entries beyond 60s skew classify stale (#1541) #1733https://github.com/developing-today/code/pull/1733
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 #1541https://github.com/developing-today/code/issues/1541
aggregator: future-dated quota-current entries beyond 60s skew classify stale (#1541) #1733https://github.com/developing-today/code/pull/1733
d76bd3chttps://github.com/developing-today/code/commit/d76bd3c6bfa36f24fad08b80b09a8663d0d37847
dezren39https://github.com/dezren39
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
status:in-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Ain-review%22
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#event-34500945955
dezren39https://github.com/dezren39
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#event-34501045839
aggregator: future-dated quota-current entries beyond 60s skew classi…https://github.com/developing-today/code/commit/7b87168c08513760c89c2057fadfdf2228501444
7b87168https://github.com/developing-today/code/commit/7b87168c08513760c89c2057fadfdf2228501444
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1733https://github.com/developing-today/code/pull/1733
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#event-34501046262
developing-todayhttps://github.com/apps/developing-today
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#event-34501054665
dezren39https://github.com/dezren39
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#event-34501094183
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 28, 2026https://github.com/developing-today/code/issues/1541#issuecomment-6475759781
aggregator: future-dated quota-current entries beyond 60s skew classify stale (#1541) #1733https://github.com/developing-today/code/pull/1733
7b87168https://github.com/developing-today/code/commit/7b87168c08513760c89c2057fadfdf2228501444
aggregator: future-dated quota-current entries beyond 60s skew classify stale (#1541) #1733https://github.com/developing-today/code/pull/1733
aggregator: actions.test.ts fails on main — applied snooze never lands in the Snoozed strip ('Snoozed by you (1)' missing) #1682https://github.com/developing-today/code/issues/1682
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/1541
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/1541
dezren39https://github.com/dezren39
app/aggregatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Faggregator%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.