GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — aggregator(aa): num() reinterprets hex/binary/octal strings as measurements — a drifted '0x10' raw_score renders as intelligence 16 instead of 'not measured' · Issue #2985 · developing-today/code Closed 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/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this item DescriptionEvidence (verified this run, main
|
| input | num() result |
|---|---|
"0x10" |
16 (hex reinterpreted as a measurement) |
"0b101" |
5 (binary reinterpreted) |
"0o17" |
15 (octal reinterpreted) |
"1e2" |
100 (scientific reinterpreted) |
" 12 " |
12 (whitespace-padded accepted) |
controls: "12", "12.5" |
12, 12.5 (correct) |
controls: "", " ", "abc", "12abc", "Infinity", "1,200", 42, NaN, null |
null / null / null / null / null / null / 42 / null / null (correct) |
No test in aggregator/test/aa.test.ts exercises num() directly.
This is the same reinterpretation class already filed and fixed for sibling gates — meta-exporter's num() (#2789) and cloudflare-export's num() (#2791) — but the aggregator's AA gate was never covered. The AA section feeds model rankings, cost-per-task and speed figures that the dashboard presents as measured data. A shape-drifted upstream string (the exact failure this gate exists to absorb, per its own header) currently publishes as a plausible wrong measurement — e.g. a drifted raw_score of "0x10" renders as intelligence 16 — instead of the section's honest "not measured" null.
num() returns null for radix-prefixed string spellings (0x…, 0b…, 0o…, any case) at every call site — sheet fields, rankings/thresholds, and catalog limits." 12 ") return null, or triage explicitly pins padded acceptance with a test; plain decimal spellings ("12", "12.5", "-3") and finite numeric inputs keep working exactly as today."1e2"): triage pins whether any AA source legitimately serializes a float column in e-notation as a string; if none does, they also return null. The pin is recorded in the num() header comment.aggregator/test/aa.test.ts cover num() directly for the cases above (today it has none).bun test in pm-stack/aggregator).Dedup: searched open + closed for aa/ainventory num() coercion — no hit. #2789 (meta-exporter) and #2791 (cloudflare-export) are different modules with their own gates; #2835 is the env-config number contract, not data-ingest coercion.
🤖 Agent note · filed
pm-stack/aggregator/src/aa.ts:30-37 num() — the single coercion gate for every AA ranking/cost/speed figure — uses bare Number(), so radix-prefixed strings are reinterpreted as measurements instead of the header contract's null ("not measured"). Verified on the laptop importing the real module (md5 969672a1… identical on both clones, main cffd524f, bun 1.4.2): "0x10" → 16, "0b101" → 5, "0o17" → 15, "1e2" → 100, " 12 " → 12; controls "12"/"12.5" parse and ""/"abc"/"12abc"/"Infinity"/"1,200" correctly return null. No test in aggregator/test/aa.test.ts exercises num() directly.num() returns null for 0x/0b/0o spellings at all call sites, the whitespace-padded and scientific spellings are pinned by triage (recorded in the header comment), and direct num() unit tests exist. NOT self-solved this run: the scientific-notation pin depends on which AA source columns are float-typed, which is triage's call.🤖 Design-architect pass 25 (2026-10-31) — agent note: this issue is ADOPTED as Phase 1 of design #3005 (a measurement is a plain decimal — one number grammar for every measurement string), linked as its sub-issue and labelled source/design-architect. Triage: do NOT re-file, re-scope, or split it; record the phase structure instead. The design pins this issue's open questions: scientific spellings are REFUSED (return null — no named source serializes a measurement in e-notation as a string, and the landed meta-exporter gate via #2789 refuses them), and whitespace-padded spellings are REFUSED (null — padding is drift, per the same precedent). Signed plain decimals (-3) and finite typed numbers keep working exactly as the acceptance requires. Flag genuine blockers on #3005.
🤖 Agent note · parked (awaiting CI)
num() + header pins + 6 direct unit tests; branch queue/5498-2985-aa-num-strict-decimal pushed; PR fix(aggregator): strict decimal contract in aa num() (#2985) #4431 opened. Targeted: 82/82 pass (aa, aa-gate-2415, quota). Full suite: only pre-existing/env failures (missing installed web-push, load-flake hook timeouts — quota-contract passes isolated).~/git/fleet/5498-2985-aa-num.🤖 Agent note · picked up
Merge pull request #4431 from developing-today/queue/5498-2985-aa-num…
🤖 Agent note · done