Repository navigation
Closed
Labels
task/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Description
Summary
The #2789 plain-decimal embodiment in meta-exporter's parseSubscriptionQuota has drifted: the exporter re-home in #6333 (commit b4cf60a, 2026-11-05) restored pm-stack/meta-exporter/meta-quota-export.mjs with the pre-#2789 bare coercion, and the #3005 grammar gate has been absent since. Found by the #3005 closing inventory audit (issue #3006, task 4350, 2026-11-09).
Evidence (fresh at origin/main 69aa168, 2026-11-09)
- meta-exporter: parseSubscriptionQuota's num() reinterprets empty, hex and scientific strings as real measurements — a drifted '' used value exports as a measured 0% window #2789's fix (commit 934b902, PR fix(meta-exporter): parseSubscriptionQuota num() accepts only plain decimal spellings (#2789) #2864) added the
DECIMAL = /^[0-9]+(\.[0-9]+)?$/gate insideparseSubscriptionQuota'snum(), plus empty-string reset tolerance and guardedas_ofhandling. - The console-scrape exporter was then retired in 1d09443 (superseded by quota: gather meta + opendesign by asking OpenCode #5040), and the re-home b4cf60a (feat(meta-exporter): re-home exporter + helium-cdp wedge readiness probe (#5487) #6333) brought the file back with
const num = (v) => (typeof v === "string" || typeof v === "number" ? Number(v) : NaN);— the exact pre-meta-exporter: parseSubscriptionQuota's num() reinterprets empty, hex and scientific strings as real measurements — a drifted '' used value exports as a measured 0% window #2789 line. - Current
meta-quota-export.mjs:83is that barenum(): a string field of""reads as a measured 0,"0x10"as 16,"1e2"as 100, subject only to finite/non-negative checks. - Current knock-ons of the lost gate:
consoleAsOfis computed asNumber.isFinite(num(q.as_of)) ? iso(num(q.as_of)) : null, so an emptyas_ofagain produces the 1970 epoch instead of null;resetFieldno longer treats an empty/whitespace reset string as absent. pm-stack/meta-exporter/meta-quota-export.test.mjscontains no decimal-spelling probes (no0x10/1e2/ padded cases) — the shared probe matrix from the Design: a measurement is a plain decimal — one number grammar for every measurement string #3005 design does not run for this app.
What to do
Restore the #2789 ruling in parseSubscriptionQuota in the #3005 recorded form:
- Field form only for string fields (
/^[0-9]+(\.[0-9]+)?$/as landed, or the design's per-gate narrowing); non-decimal spellings fail closed with the exporter's existingExportError("unparseable", 6, …)outcome. - Empty/whitespace reset strings treated as absent (zero-usage window tolerated with
resetAt: null; window with usage fails closed), as meta-exporter: parseSubscriptionQuota's num() reinterprets empty, hex and scientific strings as real measurements — a drifted '' used value exports as a measured 0% window #2789 landed. as_of: absent/empty staysnull; any other non-decimal spelling fails closed — never the 1970 epoch.- Reinstate the probe-matrix tests for this app (plain, grouped-field refusal, empty, padded, hex, scientific, trailing-junk cases).
- Note:
parsePaygBalance's grouped prose capture (line ~157,[\d,]++ strip) is grammar-conformant and is not part of this drift.
Links
- Design: issue Design: a measurement is a plain decimal — one number grammar for every measurement string #3005 (recorded grammar); closing audit: issue Phase 3 (audit) of #3005 — closing inventory audit for the measurement grammar + contract statement #3006
- Original fix: issue meta-exporter: parseSubscriptionQuota's num() reinterprets empty, hex and scientific strings as real measurements — a drifted '' used value exports as a measured 0% window #2789, commit 934b902
- Drift introduced: feat(meta-exporter): re-home exporter + helium-cdp wedge readiness probe (#5487) #6333, commit b4cf60a
Metadata
Metadata
Assignees
Labels
task/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
dezren39 commentedon Nov 17, 2026
agent-note:v1
state: done
task: 18543
lane: any-m
worker: repo-worker-code
Task 18543 (triage of issue #7880) — outcome: ALREADY DONE on current main; closing with evidence.
Fresh verification 2026-11-17 against the laptop primary's main:
The issue's evidence was gathered at main 69aa168 on 2026-11-09, before that restore landed; nothing in its "What to do" list remains outstanding, and parsePaygBalance's grouped capture was explicitly out of scope and is untouched. Closing as completed.
dezren39 commentedon Nov 17, 2026
Agent note — task 20042 already_done (lane any-n)
parseSubscriptionQuota(pm-stack/meta-exporter/meta-quota-export.mjs) with the reset-field and as_of fixes, and closed the issue with evidence.