Repository navigation
feat(pm-stack): census data producers for cost-anomaly certified seams (#18137) - #18138
Merged
developing-today-fleet[bot] merged 3 commits intoDec 1, 2026
Merged
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
developing-today-fleet
Bot
deleted the
lane-2137e-census-producers-18137
branch
December 1, 2026 04:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #18137. Follow-on slice of #4825, per the design/decision record on #4825 (comment 7299197952, lane 2037-G): each census producer as a bounded adapter over its named completeness source. Lane 2137-E (alpha DRIVE 2026-11-30). Authored via the Git-API contents route (no checkout); every base file verified against main at 95bd3b0 before writing.
What lands
pm-stack/aggregator/src/cost-anomaly-census-producers.ts(new, pure/deterministic, no I/O):providerID ?? "unknown", tokens = the ingestion five-field scalar total (spend-ingestion.tsconvention). Completeness source: the usage export's coverage block (caller-supplied spans).okonly when the caller asserts its GitHub reads were complete (pagination exhausted).oksource status, a corrupt record (non-finite/negative tokens, unparseable timestamp), or a truncated closure read downgrades the emitted coverage to non-ok, so the certified seams incost-anomaly-rollup-sources.tsreturnpartial/null and anomalies suppress, never fabricate.Tests
test/cost-anomaly-census-producers-4825.test.ts: 8 tests — regrouping/per-pool split, population totals, in-window closure counting, and the three downgrade paths, each asserted through the real certified seams (certifiedBusiestRoot/certifiedSourceTotal/certifiedClosedChildren).Docs:
COST-ANOMALY.mdrecords the census producers as landed; #4825 stays open for wiring the producers into the production caller + operator opt-in.Verification
Targeted
bun teston the exact authored files (staged byte-identical copies with their real in-repo dependencies): 8 pass / 0 fail. CI is not a gate; the merge decision is the full-diff read against #18137's acceptance criteria, recorded on the issue before merge.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.