# Support metrics that stay honest

A third page, [support-metrics.html](support-metrics.html), asks how far a support team's own numbers move with the
counting definition: resolution at first solve or after a reopen window, satisfaction among responders or weighted for
non-response, contacts per ticket or per linked issue and per active account, and contact reasons as a classifier labels
them or corrected for its known confusion. It also asks which ways of reading the weekly numbers tell a real contact spike
from a change in counting. One synthetic support year, repeated over 200 seeds, carries four injected events: a real
product bug, a holiday dip, a chat channel that splits tickets and a classifier relabel. Everything is simulated from
declared assumptions; no model is called.

The design ([DESIGN-support-metrics.md](DESIGN-support-metrics.md)) and the frozen protocol
([supportmetrics/protocol.json](supportmetrics/protocol.json)) were committed before the main run. The results rebuild
from the seeds with no key and no network:

```sh
python3 -B -m supportmetrics.analysis --verify   # rebuilds every result and data file; contents must match exactly
python3 -B tests/test_support_metrics.py         # model, definitions, reading rule, replay and pinned results
python3 -B -m supportmetrics.check_page          # every number on the page, recounted from the stored tickets and records
python3 -B -m supportmetrics.protocol_check      # every pinned file still hashes to the frozen protocol
python3 -B -m supportmetrics.render              # rewrites the page from the results
```

`supportmetrics/data/main-year-tickets.csv.gz` holds every ticket of the main simulated year (seed 1), including the
fields a help desk never sees (the true issue, reason and final satisfaction), and
`supportmetrics/data/main-year-weekly.csv` its weekly series. `supportmetrics/results/` holds the summary, each year's
record, the events-off control and the sweeps. `python3 -B -m supportmetrics.analysis` rewrites them all; it runs the
seeds in parallel processes (`SUPPORTMETRICS_PROCS`, default up to 8).

The main page of this study, [index.html](index.html), and its checks are described in [README.md](README.md).
