# Resolutions that stay resolved when an AI agent answers support contacts: design

Written and committed before any code or run. The frozen protocol, `agentres/protocol.json`, is written after the code
passes its unit tests and a pilot on the support metrics round's three pilot seeds, and before the main run; it pins the
hash of this file and of every code file the results depend on. Anything decided after seeing results is labelled
"Change N to the protocol, made after the results" on the page. No model is called anywhere in this round: the agent is
simulated, and the final state of every contact it answers is drawn from shares I declare below. Its quality is an
assumption, not a measurement.

## What this round adds, and the overlap test

The main page of this study says a self-service task succeeds only when it finishes without an analyst's help, is not
reopened within the window and holds up in a blind audit, with refused, reopened and unresolved tasks kept in the
denominator. The support metrics and service levels pages measure the support queue's own numbers. None of them puts an
AI agent in front of the queue. Support teams that add one usually report a containment rate (conversations the agent
did not hand to a person) or a deflection rate (conversations that did not become a ticket). This round asks how far
those rates sit from the share of contacts the agent truly resolved, which measurement a team can build from its own
records that lands closer, and what the gap does to a staffing plan.

Overlap test. The nearest two studies in the series are (1) the main page of this study: same counting rule (success
needs no reopen within the window and a blind audit, and failures stay in the denominator), applied there to data
self-service; and (2) the coding-agent incidents study: it asks how often AI coding agents make unfinished work look
done, on real incidents, which is the same theme of "closed" against "solved" but a different question and different
data. The first holds: this round applies the main page's rule to the support year of the support metrics page, so it is
a new round of the self-service measurement study, on its own page linked from the support metrics page, not a new
study.

## Data: the same simulated year, plus a declared agent

The tickets are the support metrics round's simulated year exactly as `supportmetrics/model.py` produces it, with its
main parameters and all four injected events on. Nothing in that model is changed. The agent acts on whole customer
issues (the simulator's true issues) and changes which of their tickets reach the human queue and when.

Launch. The agent goes live at the start of week 40 and answers from then to the end of the simulated 65 weeks.

Offered share. Each new issue whose first contact is in week 40 or later is answered first by the agent with
probability 0.5, whatever its channel. Draws come from the issue's own stream, seeded by the year's seed and the issue id,
so an issue keeps its draws in every scenario.

Final states, declared before the run. Every agent conversation ends in exactly one of four states:

1. Resolved: the agent answers, closes the conversation as resolved and the customer does not come back within 30 days.
2. Escalated to a person: the agent hands the conversation to the human queue the same day.
3. Abandoned: the customer leaves without an answer and without a hand-off.
4. Reopened later through another channel: the agent closes the conversation as resolved, but the customer writes in
   again to the human team, 1 to 30 days later (uniform whole days).

Shares by contact driver (resolved, escalated, abandoned, reopened later):

| driver | resolved | escalated | abandoned | reopened later |
|---|---|---|---|---|
| billing | 0.45 | 0.30 | 0.12 | 0.13 |
| sign-in and access | 0.40 | 0.35 | 0.12 | 0.13 |
| product errors | 0.15 | 0.55 | 0.15 | 0.15 |
| how-to questions | 0.60 | 0.12 | 0.13 | 0.15 |
| account changes | 0.50 | 0.25 | 0.12 | 0.13 |

Weighted by the base driver shares, that is about 45% resolved, 28% escalated, 13% abandoned and 14% reopened later.

Wrong but silent. Of resolved conversations, a share of 0.08 gave a wrong or incomplete answer that the customer did not
come back about. They stay in state 1; only the audit can see them.

What happens to the issue's human tickets:

- Resolved: none reach the human queue.
- Escalated: the issue's tickets reach the human queue exactly as simulated, and the hand-off ticket carries the
  conversation's id, so it is always linked to the conversation.
- Abandoned: with probability 0.6 the customer comes back to the human team 1 to 14 days later (uniform whole days); the
  issue's tickets then arrive shifted by that many days. Otherwise none reach the human queue and the need goes unmet.
- Reopened later: the issue's tickets arrive shifted by the return delay.
- A return (states 3 and 4) is linked to the agent conversation with probability 0.3: the customer usually starts a new
  thread, so only some returns are matched to the conversation.

## Definitions (fixed here, before any outcome is computed)

The cohort: agent conversations that start in weeks 40 to 52, read on day 398 (35 days after week 52 ends, as on the
support metrics page), when every 30-day window has closed. Each rate has the cohort's conversations as its denominator,
so escalated, abandoned and reopened conversations stay in it.

1. Containment: conversations not handed to a person.
2. Deflection: conversations not handed to a person and with no human ticket linked to them within 7 days.
3. Stayed resolved, the main page's rule: conversations closed as resolved (states 1 and 4 look alike at close) with no
   linked human ticket within 30 days.
4. Audited: rule 3 times one minus the audited wrong share. The audit grades a blind sample of 60 conversations a month
   counted by rule 3, three months a quarter (weeks 40 to 43, 44 to 47 and 48 to 52), drawn from the year's own audit
   stream. Graders see the conversation, not the channel or the outcome. An answer is wrong if it was wrong but silent or
   the customer came back (state 4); graders judge right with probability 0.95 either way. The quarter's 180 grades give
   the wrong share with a Wilson 95% interval, and the audited reading's interval is rule 3 times one minus each bound.
5. The truth, available only here: conversations in state 1 that were not wrong but silent.

Staffing, with the support metrics page's translation: agents for weeks 53 to 65 = the mean weekly handling minutes of
every human ticket opened in those weeks, plus 15 minutes for each one ever reopened, over 60, over 26.25 productive hours.

- The need without the agent: the same year with no agent.
- The need with the agent: the year with the agent, as its tickets reach the human queue.
- A plan from each rate: the need without the agent times one minus the offered share times the rate, where the offered
  share is conversations over new issues in weeks 40 to 52. This is how a team budgets an agent from a vendor's rate.

## Scenarios

- Main: seeds 1 to 200 with the parameters above. The main year is seed 1, fixed here.
- Sensitivity, 40 seeds each (seeds 1 to 40), one input at a time with the others at their main values:
  - return linking: 0, 0.3, 0.6 or 1.0;
  - wrong but silent: 0.04, 0.08 or 0.16;
  - abandoned customers who come back: 0.3, 0.6 or 0.9;
  - resolve shift: 10 points moved from reopened later to resolved, none, or 10 points moved the other way, for every
    driver;
  - offered share: 0.25, 0.5 or 0.75;
  - grader accuracy: 0.9, 0.95 or 1.0.
- Worked example, by a rule fixed here: in seed 1, the first agent conversation by issue id started in week 41 that was
  reopened later through another channel and whose return was not linked.

## Predictions (fixed here, before any outcome is computed)

"Median year" means the median over the 200 main years of the year's own figure. Several are true by construction in
expectation, because the final-state shares are declared; for those the run shows only the noise around them. Each is
reported as held, missed or untestable, with its band.

- P1. Containment exceeds the truth by 25 to 35 points in the median year. True by construction in expectation (about
  30 points from the declared shares): a safe bet.
- P2. Deflection sits below containment and at least 20 points above the truth in the median year. Close to a safe bet.
- P3. The main page's rule, before the audit, still overstates the truth by 8 to 18 points in the median year, because
  most returns are not linked. True by construction in expectation (about 13 points).
- P4. The audited reading lands within 5 points of the truth in the median year.
- P5. The audited reading's 95% interval contains the truth in at least 160 of 200 years.
- P6. With every return linked, the rule before the audit sits 0 to 5 points above the truth in the median of 40 years
  (the silent wrong answers remain), and containment does not move at all with return linking. The second part is true
  by construction: containment does not read links.
- P7. A staffing plan cut by containment is short of the need with the agent by 1.0 to 3.5 agents in the median year.
- P8. A staffing plan cut by the audited reading is not short: it sits 0 to 2.5 agents above the need with the agent in
  the median year, because customers who give up also stop costing agent time.

## Runs and intervals

- Pilot: seeds 9001 to 9003, run after the unit tests and before the protocol is frozen, to check that the code runs and
  the declared shares come out as stated. It prints the conversation count and the share of each final state, and
  nothing else.
- Main run: seeds 1 to 200, once, after the protocol is frozen. Sensitivity: as above, once.
- Shares of years are reported with Wilson 95% intervals; spreads over years as the 5th to 95th percentile.

A defect found after the main run is fixed in a declared re-run, and both results are reported.

## Limits known before running

Everything is synthetic, and the agent's quality is not measured at all: the final-state shares, the silent wrong
share, the return and linking rates and the grader accuracy are my assumptions, and the gaps between rates follow from
them. What the run adds is the noise around those expectations, how each team-side measure behaves with the linking and
windows a help desk has, and what each rate does to a staffing plan. The agent costs no human time here; escalated
issues cost the same human time as without the agent; returns arrive as the original issue's tickets, shifted. The
readings are a self-test of one author's assumptions, not a measurement of any agent or support team. Nothing here
claims support-operations or AI-agent employment, and no help-desk or agent product is named or imitated.
