# Self-service measurement

A measurement plan for data self-service. A task counts as a success only when it finishes without
an analyst's help, is not reopened within seven days and holds up in a blind audit of answers. Four
invented cohorts show how a falling ticket count can hide worse service, and the page prices each
one in US$ per 100 tasks, the way support teams price a ticket avoided.

Open [index.html](index.html) directly in a browser. No server, installation, account or network
connection is needed to view it. The example selector uses local JavaScript; the full example
table, the measure, the audit, the comparison, the costs and the rollout stay readable without it
and in print.

## What is real and what is assumed

The four example cohorts are invented, 100 mature eligible tasks each, so that no company's request
data is shared. The request categories, the seven-day window, the audit sample, the team waves and
the two-quarter rollout are planning assumptions. Nothing here has been deployed or measured.

Cost assumptions, all in US$:

- An assisted request takes about one hour of an analyst's time end to end, at US$75 an hour, so a
  ticket costs about US$75.
- An unfinished task (reopened, refused or unresolved) is priced at US$40, US$75 or US$150, because
  the person still needs the answer; the middle case prices it like a ticket.
- An engineer-week costs about US$4,000 loaded, and the rollout takes about seven.
- The audit takes about 30 grader-hours a month: 90 answers, two graders, about 10 minutes each.
- Values compare each example with the baseline example per 100 eligible tasks; the monthly table
  assumes 300, 1,000 or 3,000 eligible tasks a month at the middle price.

`check.py` recomputes every money figure and every table count on the page from these inputs and
the counting function.

The included [quality scorecard](related/quality-scorecard/index.html) is an earlier version of a
separate study on public trip data with injected faults, copied with its own reproduction files and
notice. It illustrates a
dataset's quality state; it is not evidence about self-service demand or value.

## Follow-up pages

- [Support metrics that stay honest](support-metrics.html) ([README](README-support-metrics.md))
- [Human review in AI product interfaces](review-interfaces.html) ([README](README-review-interfaces.md))
- [Service levels when a channel opens](service-levels.html) ([README](README-service-levels.md))
- [AI agent resolutions that stay resolved](agent-resolutions.html) ([README](README-agent-resolutions.md))
- [Real classifiers on public banking queries](text-classifier.html) ([README](README-text-classifier.md))

## The counting rule

A business task has one ID across the tool, intake and follow-up ticket. Classify eligibility
before the outcome. Capture all eligible starts, including those later refused access. Unsupported
tasks remain in a separate counted demand list.

Successful self-service requires completion evidence without an analyst's help and no reopen inside
the observation window. Apparent unassisted completions include reopens; subtract those reopens
once. Final states must partition the mature eligible cohort: successful self-service, assisted
completion, reopened, refused and unresolved. Unconfirmed or abandoned tasks are unresolved.
Immature tasks are disclosed separately until the cohort matures. Later reopens enter a delayed
outcome list and are reported through restated cohorts and window-sensitivity checks.

Beside the main rate the readout shows where the other tasks went: assisted, reopened, refused and
unresolved, over the same denominator. That breakdown tells a shift to analysts from a shift to
failure, but it adds up to 100% with the main rate, so it is not an independent check. The one
independent check is an audited wrong-answer rate: each month a blind sample of 60 successful
self-service tasks and 30 assisted completions, drawn by a hash of the task ID with a seed published
before the cohort starts, is graded by two graders who cannot see the channel. With 60 graded
tasks, 3 wrong answers give a 95% interval of 1.7% to 13.7%; with 30 assisted answers, 1 wrong
gives 0.6% to 16.7%. So expansion holds only when an interval for the difference shows self-service
wrong more often than assisted by more than a margin set in advance, with assisted answers pooled
over a quarter. A ticket count is volume, never a success measure.

## The comparison

Before-and-after comparisons alone do not establish causality. The pilot randomises requesting
teams into two waves; wave B gets the product one cohort month after wave A. The waves are compared
on the month only wave A has it, by intention to treat, with a permutation test over the actual
assignment, which assigns half of each baseline-volume group to each wave. With 8 teams in two groups
of four there are 36 possible assignments, so the smallest two-sided p-value is 2 in 36 (about
0.06) and no result can pass 5%. With 10 teams in groups of four and six it is 2 in 120 (about
0.02), so a pilot with fewer than 10 teams reports the comparison as descriptive. When the tool cannot be switched on
by team, categories are staggered in a random order instead, which is the weaker design.

## Check locally

Pinned verification prerequisites: Python 3.12.3 and Node.js 24.16.0. The page has no package
dependencies, build step or paid API. With those runtimes installed, run from this directory:

```sh
python3 -B check.py
```

The check runs ten numerical regressions on the counting rule, enumerates all 1,287 final-state
partitions through eight tasks, runs ten tests on the audit interval and permutation floor (and
recomputes both in Python against the page text), recomputes every money figure from the stated
cost inputs and every count in the example tables from the counting function, and checks local HTML link closure. Tickets are not an input to the success
formula, so fewer tickets cannot raise it; the tests show that refusals, reopens and assisted
completions cannot count as success either. The related scorecard's full analytical reproduction
is separate and documented in its own README; this command verifies its copy.

For optional local HTTP preview:

```sh
python3 -m http.server 8000 --bind 127.0.0.1
```

Open the local address in your browser. Direct-file viewing is sufficient for this page.
Printing includes all examples, not only the selected scenario. The diagram has a text alternative.

## Design system

The page uses release 2.1.0 of the portfolio's design system (tokens, page kit, number formatter and three OFL fonts with their licences).

## Provenance and limits

First-party documentation on saved questions and semantic definitions informed the proposed product
shapes; it makes no claim about any vendor's effect. No tracking, forms or live queries run in the
page; the only stored value is the theme choice. Runtime versions are recorded in
[build-info.json](build-info.json). Local verification does not establish production impact.

Some files are packed in self-service-measurement-data-1.zip; unzip it here to restore the full export, which the manifest lists file by file.
