You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refs #4825 (pre-activation verification slice; the issue stays open for production rollup ingestion + a production caller).
What
COST-ANOMALY.md "Still needed" named two verification legs before activation: verify the source-to-rollup reconciliation, and verify warning presentation against the live application architecture without sending pushes. This PR pins both as tests and records the result in COST-ANOMALY.md.
New file pm-stack/aggregator/test/cost-anomaly-presentation-4825.test.ts (3 tests):
Reconciliation — the producer is fed ONLY through the real certified source modules (certifiedClosedChildren / certifiedBusiestRoot / certifiedSourceTotal from pm-stack: certified rollup-side sources for the cost-anomaly producer (#4825) #16411, certifiedMonthlyCharges / certifiedServiceActivity from feat(pm-stack): certified charges-side sources for the #4825 cost-anomaly producer #16395), with censuses derived from the rollup store's own records. The five constructed anomalies post to a real AlertsStore (bun:sqlite), and each warning's printed values reconcile exactly to the store/census inputs (95 and 79 epic tokens, 0 closures, busiest root 51 of 79, 5% → 21% unattributed of the certified 100 total, matched PAYG USD 8 = 5 + 3), with drill-down links (/projects ×4, /quota ×1). All five are severity warning, source cost-anomaly, delivered_at/escalated_at null, and the critical-only delivery batch stays empty — no pushes.
Presentation — the posted incidents render through renderAlerts (the /alerts page: the current architecture's warning surface — render-attention.ts states incident alerts live on /alerts; the Needs-you queue carries label-census items and Today banners are health-strip signals) with titles, evidence bodies, and the warning badge present.
Suppression reconciliation — certified real closures (3 in week 2) and certified real activity (2 Modal sessions in October) silence exactly their own classes; the other three still fire.
Verification
Pending: fleet-command run on the exact head, cd pm-stack/aggregator && bun install --no-progress && bun test test/cost-anomaly-presentation-4825.test.ts test/cost-anomaly-producer-4825.test.ts test/cost-anomaly-wiring-4825.test.ts plus bunx tsc --noEmit. Run link will be posted here before merge.
Merge danger
Low: one new test file plus a documentation paragraph. No production code, no activation, no caller wired.
Verification (lane 0252-I): fleet-command run 46129156885 — completed/success; job log re-read via gh run view --log confirms Target HEAD: 34ffd4c7247651d3eda16beb9bc12cb937d6b4f9 (exact PR head) and 18 pass / 0 fail across the four cost-anomaly suites (presentation, producer, wiring, detector), with bunx tsc --noEmit in the same && chain. Fresh mergeability: CLEAN / MERGEABLE. Merging under standing authority.
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
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.
Refs #4825 (pre-activation verification slice; the issue stays open for production rollup ingestion + a production caller).
What
COST-ANOMALY.md "Still needed" named two verification legs before activation: verify the source-to-rollup reconciliation, and verify warning presentation against the live application architecture without sending pushes. This PR pins both as tests and records the result in COST-ANOMALY.md.
New file
pm-stack/aggregator/test/cost-anomaly-presentation-4825.test.ts(3 tests):certifiedClosedChildren/certifiedBusiestRoot/certifiedSourceTotalfrom pm-stack: certified rollup-side sources for the cost-anomaly producer (#4825) #16411,certifiedMonthlyCharges/certifiedServiceActivityfrom feat(pm-stack): certified charges-side sources for the #4825 cost-anomaly producer #16395), with censuses derived from the rollup store's own records. The five constructed anomalies post to a real AlertsStore (bun:sqlite), and each warning's printed values reconcile exactly to the store/census inputs (95 and 79 epic tokens, 0 closures, busiest root 51 of 79, 5% → 21% unattributed of the certified 100 total, matched PAYG USD 8 = 5 + 3), with drill-down links (/projects ×4, /quota ×1). All five are severitywarning, sourcecost-anomaly, delivered_at/escalated_at null, and the critical-only delivery batch stays empty — no pushes.renderAlerts(the /alerts page: the current architecture's warning surface — render-attention.ts states incident alerts live on /alerts; the Needs-you queue carries label-census items and Today banners are health-strip signals) with titles, evidence bodies, and the warning badge present.Verification
Pending: fleet-command run on the exact head,
cd pm-stack/aggregator && bun install --no-progress && bun test test/cost-anomaly-presentation-4825.test.ts test/cost-anomaly-producer-4825.test.ts test/cost-anomaly-wiring-4825.test.tsplusbunx tsc --noEmit. Run link will be posted here before merge.Merge danger
Low: one new test file plus a documentation paragraph. No production code, no activation, no caller wired.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-28T09:09:05Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.