The numbers look wrong

Traces a suspect figure to its raw inputs, checks whether missing values turned into zero or units drifted, fixes only confirmed bugs, and verifies independently.

Broken or slowBugs, speed and dataRecipeDepends on the task

As one prompt15 linesRX08

StarMarkdown
The numbers look wrong. Trace a suspect number to its source, check missing-as-zero and unit/rounding bugs, fix only proven causes, and verify independently.

Run these steps one at a time. Wait for my yes after each step. Stay strictly read-only during Steps 1, 2, 3, and 5 — do not edit code, data, or config until I approve Step 4.

Step 1 (source trace — read-only): Trace the suspect metric(s) to raw inputs, transformation logic, filters, and assumptions, and recompute at least one real example independently. Bring back: raw inputs, formula (file:line), and independent recomputation. Stop if displayed numbers are stored verbatim with no calculation.

Step 2 (missing vs zero — read-only): Check where missing, unavailable, stale, or not-applicable values turn into 0 in storage, calculations, or display. Bring back: each affected field (file:line), how absence is stored, how math treats it, and what users see. Stop if no optional numeric fields are involved.

Step 3 (rounding and units — read-only): Trace currency, percentages, and rates across storage, API, and UI for floating-point drift, premature rounding, or scale mismatches (0.05 vs 5.0, cents vs dollars). Bring back: each value's numeric type and unit at every hop (file:line). Stop if no money, rates, or conversions are involved.

Step 4 (fix confirmed causes): After I approve, fix only the causes confirmed in Steps 1–3 and add a test covering each one.

Step 5 (independent check): Verify the fixed calculation directly against raw source records or an independent check outside your new unit tests, show the output, and note anything still uncovered.

Start your report in plain English: what you found, what it means, and whether I need to do anything. Put files, lines and commands underneath.
The numbers look wrongAs one prompt

Steps

  1. 1Where did this number come from?trace the metric to raw inputs and recompute one example (read-only)
  2. 2Missing vs zero vs stalecheck whether unknown or missing values are counted as zero (read-only)
  3. 3Rounding and unit mix-upscheck cents vs. dollars, percentages, and float rounding (read-only)
  4. 4Fix confirmed causes onlywait for approval, then fix only proven bugs
  5. 5Check it independentlyrecompute again against raw source records to confirm the fix
Use it when
A balance, metric, chart, or total on screen disagrees with what you expect.