# Resolutions that stay resolved when an AI agent answers

A fifth page, [agent-resolutions.html](agent-resolutions.html), adds a simulated AI agent to the support metrics round's
year ([support-metrics.html](support-metrics.html)) from week 40 and reads its conversations five ways: containment,
deflection, the main page's 30-day stayed-resolved rule, that rule corrected by a graded audit, and the true resolved
share, which only a simulation knows. It then turns each reading into a staffing plan for the following quarter. No model
is called: each conversation's final state (resolved, escalated to a person, abandoned, reopened later through another
channel) is a seeded draw from shares declared before the run, and those shares are assumptions, not measurements of any
agent.

The design ([DESIGN-agent-resolutions.md](DESIGN-agent-resolutions.md)), with its definitions and eight predictions, and
the frozen protocol ([agentres/protocol.json](agentres/protocol.json)) were committed before the main run. The results
rebuild from the seeds with no key and no network:

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

`agentres/data/main-year-conversations.csv.gz` holds every agent conversation of the main simulated year (seed 1), with
its final state, whether the answer was silently wrong, the return delay and whether the return was linked.
`agentres/results/` holds the summary with each prediction's verdict, each year's record and the sweeps.
`python3 -B -m agentres.analysis` rewrites them all; it runs the years in parallel processes (`AGENTRES_PROCS`, default
up to 8). The full rebuild runs 200 years plus the sweeps, so it can also be run in resumable chunks (`--chunk` and
`--assemble`, described in the module).

The service levels page is described in [README-service-levels.md](README-service-levels.md), the support metrics page
in [README-support-metrics.md](README-support-metrics.md), and the main page of this study in [README.md](README.md).
