Skip to content

test(pm-stack): #4825 pre-activation verification — reconciliation + warning presentation - #16533

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
lane/0252i-4825-presentation
Nov 28, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
lane/0252i-4825-presentation

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

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):

  1. 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.
  2. 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.
  3. 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.

{
  "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-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

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: c74735c2-6c7e-4042-9d4a-8ede9ddd7f8f

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:

  • Trigger review
  • 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

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

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.

@developing-today-fleet
developing-today-fleet Bot merged commit 2aac60d into main Nov 28, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the lane/0252i-4825-presentation branch November 28, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants