# Product-usage account scoring: corrected run of round 1

Every decision here was made after the 40-company results of round 1 were read. It is committed before any code for it was
written or run. The frozen round stays as it is: `DESIGN-r1.md`, `protocol-r1.json`, `predictions-r1.json`, `faults-r1.json`,
`faults-blind-r1.json`, `results/summary.json` and `results/runs/` do not change, and their misses stay reported.

## Why

Reading the code and the results turned up three calculation faults in what the page reports, and the limit that forced the cut to
40 companies no longer binds. None of the faults touches a check, a threshold, a fault or the rule for "caught".

## What changes

**Change 2: a call after the reading window earns nothing.** The method says expansion is read within 13 weeks of entry, but the
code credited a call at any later week. Now a call later than 13 weeks after entry adds nothing.

**Change 3: credit counts expansions the call changed.** The code credited each call with its assumed chance of adding an
expansion, whoever received it. That is right when calls are independent of the account's own draw, and wrong for the one fault
that clears the holdout flag as a deal opens, which calls only accounts that would have expanded anyway. An expansion now counts
as caused when it happens with the call and would not have happened without it. The rule applies to every scenario, so every
net-value figure and every "truth in this run" figure moves a little. Truth also now compares the same two groups the read
compares, which changes only the fault that redraws the arms.

**Change 4: back to the design's 100 companies.** Seeds 1 to 100, as `DESIGN-r1.md` says, undoing Change 1. Seeds 41 to 100 have
never been run. The 40-company results remain beside them.

**Change 5: dbt tests have no catch week.** The tests run once, on the finished warehouse, and the code stamped the fault's onset
as the week they fired. Weeks to catch and wrong account-weeks before the catch now read only from checks evaluated week by week.
A fault caught only by dbt tests shows both cells blank.

## New reporting, no new run

The page splits every catch count by where the fault sits, in `layers-r1b.json`: inside the warehouse (raw data or a model the sync
reads) or after it (the sync and the CRM). The declared faults take the layer `faults-r1.json` already gives them. The layer of
each blind fault is assigned here from the author's words, after its result was read.

## What does not change

The generator, the worlds, the faults, the checks and their thresholds, the 80% and 5% rule, the seven-largest rule for the chart,
the worked example, the prices, and the sizing.

## How it runs

`tools/corrected.py` holds the corrected outcome and read. `tools/pipeline.py`, `tools/summarize.py` and `tools/run_study.py` stay
as they ran, so the frozen round still replays. `tools/run_r1b.py` writes `results/r1b/runs/`, and `tools/summarize_r1b.py` writes
`results/r1b/summary.json`. The page reads the corrected run and shows the frozen figures beside it.

## Predictions and the one pass bar

In `predictions-r1b.json`, written before this run, scored as held or missed and published either way. R1 is the pass bar: if the
corrected code changes any check's result on seeds 1 to 40, then it is not the same run, and I stop and report instead of publishing it.

## A limit this change does not fix

Fault size was never swept. The declared partial faults touch at least 4% of records against a 1% tolerance, so catches after the
warehouse sit at a ceiling. That needs a new round with its own declaration: fault size below and around each tolerance.
