GeezerVison is showing github.com — fix(aggregator): clinepass percent gate takes plain decimals only; state the #3005 measurement grammar (#3006) by developing-today[bot] · Pull Request #7881 · developing-today/code
Conversation
developing-today
Bot
commented
Nov 9, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
What this is
The closing inventory audit for design #3005 ("a measurement is a plain decimal"), issue #3006, queue task 4350. Gate verified fresh at claim: #2985, #2997, #3000, #2791, #2743 all CLOSED — the audit was unblocked.
Full inventory evidence with per-file dispositions is posted on #3006. This PR carries the audit's two in-repo deliverables:
Changes
pm-stack/aggregator/src/clinepass-adapter.ts — the one missed field-form boundary the audit found: percentUsedOf accepted any Number()-parseable string for a provider percent measurement ("0x10" → 16, "1e2" → 100, " 51 " → 51). It now takes the plain-decimal field form (aa.ts's PLAIN_DECIMAL shape; sign stays because this gate's domain admits negatives, clamped downstream). Drift now reads as not-a-reading, never a reinterpreted percent.
pm-stack/aggregator/test/clinepass-adapter.test.ts — probe-matrix test: hex, scientific, and padded percent strings are refused; "51.5" still reads. Targeted run on the laptop: bun test test/clinepass-adapter.test.ts — 18 pass, 0 fail.
pm-stack/aggregator/README.md — the recorded Design: a measurement is a plain decimal — one number grammar for every measurement string #3005 measurement grammar stated in a new "Measurement grammar (Design: a measurement is a plain decimal — one number grammar for every measurement string #3005)" section next to the design(aggregator): ingest, fail-closed — one validation contract for every document the PM stack consumes #2576 ingest contract: field form, prose form, the pins (scientific refused, padding refused, grouping stripped-not-validated, typed numbers untouched), per-app copies + shared probe matrix, and the embodiment list.
Audit findings beyond this PR
- 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 embodiment drifted (filed, not fixed here): the feat(meta-exporter): re-home exporter + helium-cdp wedge readiness probe (#5487) #6333 re-home (b4cf60a) restored
meta-quota-export.mjs with the 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 bare num() — the plain-decimal gate, empty-reset tolerance, and as_of guard were lost, and its probe tests are gone. Restoration filed as meta-exporter: restore the #2789 plain-decimal gate lost in the #6333 re-home (#3005 grammar drift) #7880 per the audit acceptance ("drift filed as a named follow-up").
- Everything else dispositioned on Phase 3 (audit) of #3005 — closing inventory audit for the measurement grammar + contract statement #3006: Phases 1–3 embodiments verified in place (aa.ts, saas-extract grouped counts, cloudflare/supabase gates); the remaining
Number( / \d+ hits are dates, identifiers, ports/limits and other Design: env numbers are arguments — one strict parse for boot-time configuration #2835 arguments, already-typed values with finite checks, display math, or anchored prose patterns whose failure shape for a grouped spelling is absence, never truncation.
Notes
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ate the #3005 measurement grammar in the README (#3006)
Closing inventory audit for design #3005 (issue #3006, task 4350): the whole pm-stack measurement surface was grepped for bare Number( coercions and bare count extractions and every hit dispositioned on #3006. One missed field-form boundary found and fixed here: clinepass-adapter percentUsedOf accepted any Number()-parseable string (0x10 -> 16, 1e2 -> 100, padded) for a provider percent measurement; it now takes the plain-decimal field form, with probe-matrix tests. The README gains the recorded measurement grammar next to the #2576 ingest contract. The #2789 meta-exporter embodiment was found drifted (gate lost in the #6333 re-home); restoration is filed as #7880 per the audit acceptance, not fixed here.
This was referenced Nov 9, 2026
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
c99d0b01-3946-4195-91fb-d2f3c4d9054c
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
dezren39
Awaiting requested review from dezren39
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|