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(feed): isBurnSegment accepts negative tokens, non-date from/to and inverted ranges — garbage burn rows survive sanitizeQuotaView and render as measured history · Issue #3428 · developing-today/code

aggregator(feed): isBurnSegment accepts negative tokens, non-date from/to and inverted ranges — garbage burn rows survive sanitizeQuotaView and render as measured history #3428

New issue
Copy link
New issue
Copy link
Closed
Closed
aggregator(feed): isBurnSegment accepts negative tokens, non-date from/to and inverted ranges — garbage burn rows survive sanitizeQuotaView and render as measured history#3428
Copy link
Assignees
dezren39
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours 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 Nov 1, 2026
Issue body actions

Problem

isBurnSegment — the element guard for the quota view's burn history, used by sanitizeQuotaView in pm-stack/aggregator/src/feed.ts:322-331 — checks only types:

typeof v.provider === "string" &&
typeof v.pool === "string" &&
typeof v.from === "string" &&
typeof v.to === "string" &&
isFiniteNumber(v.tokens)

So a segment with a negative token count, a non-date from/to, an impossible calendar date, or an inverted range (from after to) passes the gate, is counted as well-formed, and renders in the "Burn between resets" table (src/render.ts:1994-1999) as measured history: fmtDate returns a garbage string verbatim when it does not parse, and negative tokens print with toLocaleString() as a negative burn.

Evidence (verified this run, main 574c04a)

Laptop probe ~/git/fleet/probe-2026-11-01-laneA-feedquota/ (copies of the real src/ tree, feed.ts md5 e564f17aea918d5281fd37d433a01017, identical to main; bun 1.4.2, real isBurnSegment). Control: a well-formed segment passes. Also passing (isBurnSegment=true):

  • tokens: -12345
  • from: "banana"
  • to: "2026-02-30T01:00:00Z" (a day that never existed; Date.parse rolls it to Mar 2)
  • from: "2026-10-02T00:00:00Z", to: "2026-10-01T01:00:00Z" (inverted range)

The shared strict primitives already exist in the same package — isIsoDate and isNonNegative in src/validate.ts, whose header states the ingest contract: shape, element types, value ranges, and real calendar dates, validated once at the boundary. The sibling guards in the same file follow it (isSnapshotRecord at src/snapshots.ts:313-316 refuses a negative limit and an impossible resetsAt); the burn guard does not.

Why it matters

Burn segments are the historical record the quota page presents as measured throughput between resets. A corrupt collector write that lands here is not dropped-and-counted like every other malformed element in sanitizeQuotaView — it is presented as fact (negative burn, a reset interval that runs backwards, a February 30th boundary), and because sanitizeQuotaView only counts what its guards refuse, the corruption is invisible in the dropped counts that are supposed to surface exactly this kind of loss.

Acceptance criteria

  • isBurnSegment refuses: a from or to that is not a real ISO calendar date (isIsoDate); a negative tokens (isNonNegative); an inverted range (from > to).
  • Malformed segments drop individually in sanitizeQuotaView with droppedBurn counting them (existing aggregator(feed): isFleetFeed checks only that quota.pools is an array — burn/choices, pool entries and windows unvalidated, one malformed pool crashes /quota #2429 behaviour for shape failures).
  • Regression tests in test/feed.test.ts next to the existing "malformed burn segments drop individually" test: negative tokens, garbage/impossible from/to, and an inverted range all drop and count; the well-formed segment fixture is unchanged.

Dedup

Distinct from the quota-window gate gap filed alongside this one (different guard, different consumers — pool state/guidance vs the burn-history table; cross-linked there), #3365 (snapshot rollup guard), #2470 (quota-extract resetsAt emission), and #3364 (coverage census guard). Searched open + closed for isBurnSegment before filing.

Activity

Next
  1. developing-today commented on Nov 1, 2026

    @developing-today
    developing-todayBot
    on Nov 1, 2026 – with developing.today
    Contributor
    More actions

    CODE-1310

  2. dezren39
    added
    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
    priority/lowNice to have; do when convenient
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    app/aggregatorPackage/app: aggregator (pm-stack in this repo)
    effort/sSmall: expected under 2 hours of work
    on Nov 1, 2026
  3. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator (new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a, run 2026-11-01 02:35 CST
    • Found via: filed this run
    • Task: Triage the isBurnSegment date/range gap in the feed quota gate and route the fix per the issue's acceptance criteria
    • Expectation: effort/s — done looks like the malformed segments in the evidence dropping in sanitizeQuotaView with droppedBurn counts, plus regression tests
    • Links: sibling gate gap aggregator(feed): isQuotaWindow accepts any string as resetsAt and any finite used/limit/percent — an impossible reset date is clocked as Mar 2 in guidance, a -50% window reads healthy and a 15000% window walls a pool #3427 (isQuotaWindow); laptop probe ~/git/fleet/probe-2026-11-01-laneA-feedquota/ (real feed.ts at main 574c04a)
  4. github-actions
    assigned
    dezren39
    on Nov 1, 2026
  5. dezren39
    added
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  6. 8 remaining items

  7. dezren39
    removed
    work/assignedQueue worker lifecycle state
    on Nov 2, 2026
  8. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane F shift
    • Session / ID: task 6081
    • Found via: queue claim
    • Task: isBurnSegment value validation for issue aggregator(feed): isBurnSegment accepts negative tokens, non-date from/to and inverted ranges — garbage burn rows survive sanitizeQuotaView and render as measured history #3428 — implemented and opened as PR fix(aggregator): validate burn segment values in isBurnSegment (#3428) #4179.
    • Expectation: effort/s; done = PR fix(aggregator): validate burn segment values in isBurnSegment (#3428) #4179 merged and issue aggregator(feed): isBurnSegment accepts negative tokens, non-date from/to and inverted ranges — garbage burn rows survive sanitizeQuotaView and render as measured history #3428 closed.
    • Links: PR fix(aggregator): validate burn segment values in isBurnSegment (#3428) #4179 (branch queue/6081-3428-burn-segment, head a7126b0)
    • State: PR fix(aggregator): validate burn segment values in isBurnSegment (#3428) #4179 is MERGEABLE; bun test test/feed.test.ts passes 38/38 including the new value-malformation regression test. Parked 20 minutes for one reason only: the Codex review of PR fix(aggregator): validate burn segment values in isBurnSegment (#3428) #4179 has not landed yet, and an undispositioned Codex finding blocks merge under the fleet gate. Resume: read PR fix(aggregator): validate burn segment values in isBurnSegment (#3428) #4179's Codex findings, disposition each (fix or reply), merge, close issue aggregator(feed): isBurnSegment accepts negative tokens, non-date from/to and inverted ranges — garbage burn rows survive sanitizeQuotaView and render as measured history #3428, complete task 6081.
  9. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/queuedHas a queued queue task
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 2, 2026
  10. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane E
    • Session / ID: task 6081
    • Found via: queue claim
    • Task: Shepherding canonical PR fix(aggregator): validate burn segment values in isBurnSegment (#3428) #4179 for issue aggregator(feed): isBurnSegment accepts negative tokens, non-date from/to and inverted ranges — garbage burn rows survive sanitizeQuotaView and render as measured history #3428 to merge: Codex review has now landed and is clean at head a7126b0 (no findings), and I independently re-ran bun test test/feed.test.ts on the laptop at that head — 38 pass, 0 fail. The PR's CI test check remains QUEUED in the documented GitHub Actions backlog (infra queue, not a failure).
    • Expectation: s — PR fix(aggregator): validate burn segment values in isBurnSegment (#3428) #4179 merged, issue aggregator(feed): isBurnSegment accepts negative tokens, non-date from/to and inverted ranges — garbage burn rows survive sanitizeQuotaView and render as measured history #3428 closed, task 6081 completed.
    • Links: PR fix(aggregator): validate burn segment values in isBurnSegment (#3428) #4179
  11. dezren39
    added a commit that references this issue on Nov 2, 2026

    Merge pull request #4179 from developing-today/queue/6081-3428-burn-s…

    4aa156b
  12. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane E
    • Session / ID: task 6081
    • Found via: queue claim
    • Task: Done — PR fix(aggregator): validate burn segment values in isBurnSegment (#3428) #4179 merged (merge commit 4aa156b) implementing the isBurnSegment value validation for issue aggregator(feed): isBurnSegment accepts negative tokens, non-date from/to and inverted ranges — garbage burn rows survive sanitizeQuotaView and render as measured history #3428. Verification: Codex review clean at head a7126b0 with no findings; independent laptop re-run of bun test test/feed.test.ts at that head — 38 pass, 0 fail. The PR's CI test check was still QUEUED in the documented GitHub Actions backlog at merge time (infra queue, not a failure); merging proceeded under the standing merge authority with the fix verified locally.
    • Expectation: Issue aggregator(feed): isBurnSegment accepts negative tokens, non-date from/to and inverted ranges — garbage burn rows survive sanitizeQuotaView and render as measured history #3428 closed by this note; no follow-up needed.
    • Links: PR fix(aggregator): validate burn segment values in isBurnSegment (#3428) #4179
  13. dezren39
    closed this as completedon Nov 2, 2026
  14. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 2, 2026
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)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours 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.