# AI Monitoring & Drift Plan

Plans how an AI system is watched once it is live, so that a change in its inputs, its model or its surroundings is noticed by a signal rather than by a complaint.

## Deliverable

One Markdown document, `ai-monitoring-plan.md`, in the structure set out under **Output** below. It carries the metric and sampling that **Evaluation Set & Metric Design** fixed into production, it watches for the failures that **Failure Mode & Guardrail Analysis** listed, and it says when the evaluation must be run again.

## Required inputs

- **The system** — what it does, its inputs and outputs, and everything it depends on: the model and its provider, prompts, retrieved sources, tools and the data behind them.
- **The evaluation plan** — the metric, the sampling and the baseline result it recorded.
- **The guardrail specification** — the failure modes, their signals, their fallbacks and the escalation path.
- **The owners** — named people or teams who will receive alerts and act on them.

If the system description, the evaluation plan or the owners are absent, stop and report it. If the guardrail specification is absent, continue, record the failure signals as `unknown`, and list **Failure Mode & Guardrail Analysis** as the skill that supplies them.

## Optional inputs

- What the system already logs, and how long it is kept
- Channels through which users report bad outputs
- The provider's policy on changing or retiring models, and how it announces changes
- Traffic patterns: daily, seasonal, campaign-driven
- Earlier incidents with this system or similar ones
- Privacy and retention limits on what may be recorded

Absent optional inputs do not stop the plan. Each becomes a line saying what could not be checked and who holds the material that would check it.

## Execution

**1 — List what can change underneath the system.** The distribution of its inputs; the model or provider version; the prompts, instructions and context it is given; the sources it retrieves from; the tools it calls and the data behind them; the behaviour of its users; and the real-world facts its answers describe.

**2 — Name the signal for each.** For every item in step 1: what would show that it changed, where that signal comes from, and whether it is collected today. A change with no signal is recorded as `unobservable` and appears in section 8.

**3 — Define how quality is watched.** Take the metric from the evaluation plan. State how live outputs are sampled for checking, who judges them, by what rubric and how disagreements are resolved. Live quality is never inferred from volume or from the absence of complaints.

**4 — Define how the guardrails are watched.** How often each one fires, how often a firing is overturned by a person, and what a rising or falling rate would indicate.

**5 — Define drift for each signal.** The comparison to make — against the baseline the evaluation recorded, or against an earlier period — and the threshold that counts as drift. The threshold comes from the owners. Where none was supplied, record `unknown` and state that no alert may be switched on for that signal until one is.

**6 — Set the privacy limits.** What may be logged, for how long, who may read it, and what must be removed or masked. Where no limit was supplied, record `unknown`.

**7 — Define the response.** For each alert: who is told, the first action, when to fall back using the guardrail specification's fallback, and when the evaluation must be re-run before the system carries on.

**8 — Fix the review rhythm and the re-evaluation triggers.** When the owners review the signals, and which events force a re-run of the evaluation: a model or provider change, a prompt change, a new source, a new tool, a change of audience.

**9 — List the gaps.** Every signal that cannot be collected today, what it would take to collect it and who owns that work.

## Output

`ai-monitoring-plan.md`, in this order:

- **1. System and owners** — what is watched and who answers for it
- **2. What can change** — each item and the signal that would show it, or `unobservable`
- **3. Quality watch** — metric, live sampling, who judges and by what rubric
- **4. Guardrail watch** — firing rate, overturn rate and what movement means
- **5. Drift definitions** — per signal: the comparison, the threshold or `unknown`, and whether alerting is allowed
- **6. Privacy and retention** — what is logged, for how long, for whom
- **7. Responses** — per alert: who, the first action, the fallback, when to re-evaluate
- **8. Gaps** — signals that cannot be collected and what they would take
- **9. Review rhythm and re-evaluation triggers** — when signals are reviewed and what forces a re-run
- **10. What could not be checked** — missing inputs and who holds them

## Validation

The plan is ready when all of these hold:

- Every dependency of the system appears in section 2 with a signal or `unobservable`
- Every signal in section 5 has a comparison and a threshold from an owner, or `unknown`
- No alert is enabled for a signal whose threshold is `unknown`
- Every alert in section 7 has a named recipient and a first action
- Section 3 names who judges live outputs and by what rubric
- No threshold, rate, volume or period appears that no input supplied

Fail the run if the plan sets a threshold on an owner's behalf, or if a dependency of the system is missing from section 2.

## Failure handling

- **No evaluation plan supplied** — stop. Report that quality cannot be watched against a baseline nobody recorded, and name **Evaluation Set & Metric Design** as the skill that produces one.
- **No owners named** — produce sections 1 to 6, record the owners as `unknown`, and make naming them the first line of section 10: an alert nobody receives is not a control.
- **Nothing is logged today** — list every signal as `unobservable`, put the logging that would make each observable in section 8, and state that the system cannot currently be said to be monitored.
- **The provider announces no changes** — record that model changes are `unobservable` from the provider's side, and make a periodic re-run of the evaluation the only detector.
- **Partial material** — plan what the material supports, mark the rest `NOT PLANNED — pending <material>`, and deliver.
