Skip to content

meta-exporter: the #6333 re-home regressed three closed fail-closed fixes — decimal-only parsing (#2789), timestamp range checks (#2460), and integer minor units (#2510) are all gone #6894

Closed

Description

@dezren39

meta-exporter: the #6333 re-home regressed three closed fail-closed fixes — decimal-only parsing (#2789), timestamp range checks (#2460), and integer minor units (#2510) are all gone

Evidence (verified this run, main 4cd2927643)

pm-stack/meta-exporter/meta-quota-export.mjs was recreated by the re-home commit b4cf60a2db (PR #6333, 2026-11-05, 626 lines) from a pre-fix version. The three fixes that had landed and closed their issues are absent from current main, and their regression tests are absent from meta-quota-export.test.mjs (current suite: 13/13 pass on the laptop, none covering these cases):

Probe (laptop @4cd2927643, probe ~/git/fleet/probe-meta-rehome/probe.mjs, importing the real module; valid captured-shape control payload, one field mutated per case):

input result on current main expected (closed-issue contract)
control (decimal strings) OK — 5h 10%, weekly 20% OK (unchanged)
window_weighted_used = "" OK — 5h usedPct exported as 0 unparseable (#2789)
window_weighted_used = "0x10" OK — usedPct 16 (hex reinterpreted) unparseable (#2789)
window_weighted_used = "1e2" OK — usedPct 100 (scientific reinterpreted) unparseable (#2789)
as_of = "" OK — consoleAsOf 1970-01-01T00:00:00.000Z null or unparseable, never epoch (#2789)
window_resets_at = ms-scale (1793080000000) OK — resetAt +058790-06-11T17:46:40.000Z unparseable (#2460)
window_resets_at = 999999999999999999 bare RangeError: Invalid time value (not an ExportError; in main() this is misclassified as fetch-failed, exit 7) unparseable, exit 6 (#2460)
parseBillingBanner({remaining_minor_units: 1050.5, currency: "USD"}) OK — exports $10.505 unparseable (#2510)
billing control 1050 OK — $10.50 OK (unchanged)

Why it matters

The exporter's design contract is "a failed tick can never be mistaken for a reading" and its parsers are documented "Throws on any shape drift — fail-closed, never partial zeros." All three regressions silently break that: a drifted empty used-value becomes a measured 0% window the quota gatherer ingests as fact, an ms-scale reset becomes a year-58790 reading in a status: "ok" document, and fractional cents become fractional dollars. The fixes already exist in git history (934b902621 for #2789; the #2460/#2510 fixes likewise) — this is a restore-and-reconcile job, not new design: the re-home's newer features (readiness probe, bounded restart, #6343 entry-point guard) must be kept.

Acceptance criteria

Dedup

Activity

  1. developing-today commented on Nov 7, 2026

    @developing-today
    Contributor
  2. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    meta/regressionA regression introduced by an earlier change
    on Nov 7, 2026
  3. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    agent: new-issue-creator-code-a
    state: filed
    issue: 6894
    Found via: filed this run — verified regression probe on laptop @4cd2927643 (probe ~/git/fleet/probe-meta-rehome/probe.mjs, real module): the #6333 re-home commit b4cf60a recreated meta-quota-export.mjs without the closed #2789/#2460/#2510 fail-closed fixes; empty/hex/scientific strings export as measurements, ms-scale reset exports year 58790, huge reset throws a bare RangeError, fractional minor units export $10.505. Existing suite 13/13 passes with none of the regression tests present.

  4. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 8, 2026
  6. 26 remaining items

  7. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: picked-up
    queue: repo-health-code-pilot
    task: 11292 (small_fix, worker repo-worker-code, lane code-a)
    issue: #6894 OPEN, verified fresh 2026-11-11 — no held / user/owned / do-not-merge / do-not-auto-edit labels, no status/needs-triage, no open competing PR found
    execution_lane: direct (assignment row 6749, #8187 — Muse lane works this task itself)
    next: create laptop worktree, reproduce the three regressed fail-closed behaviours, restore fixes from git history, run meta-exporter suite

  8. added
    queue/claimedQueue 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 11, 2026
  9. added a commit that references this issue on Nov 11, 2026
  10. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: done
    queue: repo-health-code-pilot
    task: 11292 (small_fix, worker repo-worker-code, lane code-a)
    issue: #6894 CLOSED — fixed and merged
    outcome: fixed_merged via PR #8698 (#8698), merged 2026-11-11T14:13:03Z, merge sha 07c2b18
    what: restored the three fail-closed fixes the #6333 re-home reverted, from git history — decimal-only num() (#2789, 934b902), epoch range checks for reset/as_of (#2460, b98e773), integer minor-units in parseBillingBanner (#2510, 0f98063) — plus their regression tests and the QUOTA_INACTIVE_SHORT fixture
    evidence: probe reproduced all regressions pre-fix (used='' -> 0%, '0x10' -> 16, '1e2' -> 100, as_of='' -> 1970, ms-scale reset -> year 57745, huge reset -> bare RangeError, billing 1050.5 -> $10.505) and all throw ExportError unparseable post-fix; node --test pm-stack/meta-exporter/meta-quota-export.test.mjs 20/20 pass on the branch and again on merged main 07c2b18; Codex review on PR #8698 completed with no findings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working (prefixed form of the classic bug label)meta/regressionA regression introduced by an earlier changepriority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobstatus: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