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(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge 'resets in' offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March · Issue #2383 · developing-today/code

aggregator(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge 'resets in' offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March #2383

New issue
Copy link
New issue
Copy link
Closed
#5513
Closed
aggregator(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge 'resets in' offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March#2383
#5513
Copy link
Assignees
dezren39
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditionstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

aggregator(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge "resets in" offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March

Summary

extractClinePass in pm-stack/aggregator/src/quota-extract.ts anchors both relative resets to the read's "Measured" timestamp: base = Date.parse(dateTimeCDT(measured[1], measured[2])) and rel(d, h) = new Date(base + (Number(d) * 24 + Number(h)) * 3_600_000).toISOString(). Nothing validates the anchor or the offsets:

  • The Measured capture is shape-only ((\d{4}-\d{2}-\d{2}) ~(\d{2}:\d{2})). A month-13 date or a 99:99 time makes Date.parse return NaN; new Date(NaN).toISOString() then throws RangeError inside rel, extractQuotaPools' per-pool try/catch maps the throw to raw = null, and the pool's entire read — including the already-matched 5-hour/weekly/monthly percentages — is silently discarded for the shell "No current read" note.
  • A Feb-30 measured date does not throw: Date.parse rolls it over to March 2, so both resets are computed from a phantom anchor that never existed (see probe: resets land on 2026-03-08 / 2026-03-14).
  • The "resets in" offsets are unbounded (\d+): 99999999999d overflows the Date range, rel throws, and the whole read is discarded the same way; 200000d (~548 years) is accepted verbatim and emitted as a resetsAt in the year 2574.

Evidence (verified this run, main 5a34fa7)

Laptop probe driving the real extractQuotaPools (probe: ~/git/fleet/probe-2026-10-29-clinepass-rel/probe.ts on the laptop, Bun 1.4.2; the laptop copy of quota-extract.ts/derive.ts is byte-identical to main 5a34fa7 by sha256), minimal ClinePass section, now = 2026-10-29T12:00:00Z:

input ClinePass pool result
control: Measured 2026-10-25 ~04:48, resets 5d 23h / 11d 15h windows 10/26/69%, resetsAt 2026-10-31T08:48Z / 2026-11-06T00:48Z ✅
Measured 2026-13-25 ~04:48 windows [], "No current read" shell ❌
Measured 2026-02-30 ~04:48 windows kept, but resetsAt 2026-03-08 / 2026-03-14 — anchored to phantom Mar 2 ❌
Measured 2026-10-25 ~99:99 windows [], shell ❌
weekly resets in 99999999999d 23h windows [], shell ❌
weekly resets in 200000d 23h weekly resetsAt 2574-05-26 accepted verbatim ❌

File:line (main 5a34fa7):

  • pm-stack/aggregator/src/quota-extract.ts:182-195 — extractClinePass: shape-only Measured capture (:184), unvalidated Date.parse(dateTimeCDT(...)) base (:189), unbounded rel arithmetic + toISOString() (:190).
  • pm-stack/aggregator/src/quota-extract.ts:349-358 — extractQuotaPools per-pool try/catch maps any extractor throw to the shell pool, silently and totally.

Why it matters

The quota view is a human-written document, and ClinePass is a dashboard-only source with no API fallback — when its read vanishes, the hub shows "No current read" with no log line and no way to tell a typo'd measured date from a genuinely missing read, and the stewardship rotation loses the pool's percentages for that cycle. The Feb-30 case is worse than a drop: it invents reset dates a week-plus away from the real ones. This is the same fail-soft contract the module header promises ("renders with its identity and a 'no current read' note instead of vanishing or inventing numbers") — the percentages were successfully read, so discarding them over a bad reset anchor is the failure; the reset, not the read, is what is invalid.

Acceptance criteria

  • Triage pins the rule for extractClinePass (expected: validate the Measured capture as a real calendar date/time — e.g. the isCalendarDate discipline already used in derive.ts — and treat an invalid anchor or an out-of-range relative offset as resetsAt: null for the affected windows, keeping the matched percentage windows; a plausible bound for the offsets, e.g. ≤ 366d / ≤ 8784h, is triage's to pin).
  • Regression tests in pm-stack/aggregator/test/quota.test.ts (the ClinePass test home): month-13 and 99:99 measured stamps and a 99999999999d offset keep the 10/26/69% windows with resetsAt: null; a Feb-30 measured stamp never anchors resets in March; the existing control case (2026-10-25 ~04:48 → 2026-10-31 / 2026-11-06) is unchanged.
  • No change to extractQuotaPools' per-pool try/catch semantics for genuinely unmatched sections (shell note still renders when no read matches at all).

Filed by new-issue-creator-code-a (lane A), run 2026-10-29 12:05 CDT. Dedup: #2196 is monthDayTime (Codex / OpenCode Go / Command Code reset months) — a different helper and different call sites; its fix does not touch extractClinePass's base/rel code. #2197 is dateTimeCDT's UTC-5-vs-CST offset — the string builder, not this validation gap. #2206/#2264/#2194 are the shape-only-date pattern in saas-extract / snapshot-records / charges-collect, different modules and consumers, filed separately by the same convention.

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

  2. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    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 12:05 CDT
    • Found via: filed this run
    • Task: Filed aggregator(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge 'resets in' offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March #2383 — extractClinePass's unvalidated Measured anchor / unbounded "resets in" offsets silently discard the ClinePass pool's whole read (or anchor resets to a phantom Feb-30→March date); triage to pin the invalid-anchor rule and route the fix.
    • Expectation: effort xs; done = triage packet worked, fix keeps matched percentage windows with resetsAt null on invalid anchors/offsets, regression tests in quota.test.ts.
    • Links: probe (laptop) ~/git/fleet/probe-2026-10-29-clinepass-rel/probe.ts
  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 Nov 1, 2026
  6. 49 remaining items

  7. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 4, 2026
  8. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    Lane M claimed task 7930 for #2383; execution-lane assignment returned opencode, so this task is handed off to the laptop claimant (opencode-claimant), which launches the bound session. Attempts 15/16 — near cap. Prior checkpoint note stands: canonical PR #4147 (OPEN, Drew-authored) is preserved — no competing PR.

  9. developing-today
    removed
    status:in-review
    on Nov 5, 2026
  10. dezren39
    closed this as completedin #5513on Nov 5, 2026
  11. developing-today
    added
    status:done
    on Nov 5, 2026
  12. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  13. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-c
    • Session / ID: task 7930
    • Found via: queue claim
    • Task: Fix issue aggregator(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge 'resets in' offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March #2383 — completed as already_done. Verified fresh: issue aggregator(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge 'resets in' offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March #2383 is CLOSED (stateReason COMPLETED), closed by dezren39 at 2026-11-05T01:53:30Z per the issue timeline (no closing commit). Canonical PR fix(aggregator): validate ClinePass reset anchors #4147 remains OPEN and Drew-authored — left untouched, no competing work created.
    • Expectation: task 7930 terminal (done / already_done); in-flight labels removed.
    • Links: issue aggregator(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge 'resets in' offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March #2383, PR fix(aggregator): validate ClinePass reset anchors #4147
  14. developing-today commented on Nov 8, 2026

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

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-b
    • Session / ID: task 13379
    • Found via: queue claim
    • Task: Handed off task 13379 for issue aggregator(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge 'resets in' offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March #2383 to the opencode claimant per runbook §1b (assigned_lane=opencode). Verified issue aggregator(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge 'resets in' offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March #2383 open, no hard-stop labels at fresh REST check. Shepherd target is PR fix(aggregator): validate ClinePass reset anchors #4147 for issue aggregator(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge 'resets in' offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March #2383 (batch issue Unowned PR batch from branch disposition (2026-11-07) #7297). Attempts 1/4.
    • Expectation: Claimant launches the bound opencode session; task 13379 parked 1200s in the meantime.
    • Links: issue aggregator(quota-extract): ClinePass extractor's measured-date anchor is never validated — an impossible measured date or a huge 'resets in' offset silently discards the pool's whole read, and a Feb-30 anchor rolls into March #2383
  15. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 8, 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/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditionstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

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.