Requirements, Proof of Concept and Pilot to Production
Decide what proof you need before you build, then earn each increase in users, data and autonomy.
Write requirements that include behavior, limits and evidence. A proof of concept answers whether it can work. A pilot asks whether it helps real users safely. Production needs ownership, support, monitoring and rollback. Agree pass, fail and stop rules in advance and judge them with enough cases.
What you will learn: a requirements template, scoping a proof of concept, success criteria and sample size, pilot design, production readiness, staged rollout, stop rules and handover.
Prerequisites: Agent Testing: Unit to End-to-End and Business Case, Build vs Buy and Vendor Evaluation.
The example runs in November 2026 with Python 3.13 and only the standard library. It applies a standard statistical interval to invented counts. It is teaching material; ask a qualified statistician for high-stakes decisions.
Four stages, four questions
The section overview names the gates Discover, Prove, Pilot, Produce and Scale. This page starts at Prove, and its limited production stage corresponds to Produce.
Requirements template
| Section | Write down |
|---|---|
| Problem | Who, how often, current cost and baseline |
| Users and context | Skills, devices, languages, accessibility needs |
| Scope | Included tasks, excluded tasks and what happens to them |
| Behavior | Example inputs with acceptable and unacceptable results |
| Autonomy | Automatic actions, approvals and prohibited actions |
| Data and tools | Sources, permissions, owners and retention |
| Quality bars | Targets by task type, severity levels and zero-tolerance cases |
| Non-functional | Latency, availability, cost ceiling, audit |
| Failure | Fallback, handoff and recovery |
| Ownership | Product, operations, risk acceptance and support |
| Decision rules | Evidence to continue, change or stop |
Examples matter more than adjectives. "Accurate" is not testable; "the total matches the ledger to the cent, or the case is routed to a person" is.
Scope a proof of concept
- Pick the riskiest assumption, not the easiest demonstration.
- Use real, permitted examples including difficult ones.
- Stub or sandbox actions with effects.
- Fix a short time box and budget.
- Compare with a simpler approach.
- End with a written result, including what did not work.
Code from this stage is usually disposable. Say so at the start, so a prototype does not slide into production unnoticed.
Good success criteria
| Type | Example |
|---|---|
| Quality | At least 90 percent correct on the agreed case mix |
| Safety | No unauthorized action in any case |
| User value | Median handling time falls against the baseline, including review |
| Cost | Cost per verified outcome below an agreed ceiling |
| Operability | Failures detected and recovered in a rehearsal |
| Acceptance | Users can explain limits and choose to keep using it |
How many cases are enough?
A high rate from a small sample is uncertain. An interval shows the range of true rates compatible with the result, under assumptions that cases are independent and representative.
Judging a pilot result
The program computes a 95 percent Wilson score interval and applies a target of 90 percent. Any serious error stops the process regardless of the average.
"""Is a pilot result strong enough? Use an interval, not only the average."""
from math import sqrt
def wilson(successes, n, z=1.96):
p = successes / n
center = p + z * z / (2 * n)
spread = z * sqrt(p * (1 - p) / n + z * z / (4 * n * n))
return (center - spread) / (1 + z * z / n), (center + spread) / (1 + z * z / n)
def decide(successes, n, target, serious_errors):
low, high = wilson(successes, n)
if serious_errors:
return low, high, "stop: investigate serious error"
if low >= target:
return low, high, "pass"
if high < target:
return low, high, "fail"
return low, high, "not yet proven: collect more cases"
print("target 0.90")
print("cases correct rate 95% interval decision")
for successes, n, serious in [(47, 50, 0), (188, 200, 0), (470, 500, 0),
(40, 50, 0), (495, 500, 1)]:
low, high, verdict = decide(successes, n, 0.90, serious)
print(f"{n:5} {successes:7} {successes / n:.2f} "
f"{low:.3f} to {high:.3f} {verdict}")
Output:
target 0.90
cases correct rate 95% interval decision
50 47 0.94 0.838 to 0.979 not yet proven: collect more cases
200 188 0.94 0.898 to 0.965 not yet proven: collect more cases
500 470 0.94 0.916 to 0.958 pass
50 40 0.80 0.670 to 0.888 fail
500 495 0.99 0.977 to 0.996 stop: investigate serious error
Forty-seven of fifty looks comfortably above target, yet the lower bound is near 84 percent. The same observed rate passes only with several hundred cases. The last row has 99 percent correct and still stops, because severity is judged separately. Repeatedly testing until a pass appears weakens the method, so fix the sample plan in advance. Zero observed serious errors also does not prove the rate is zero.
Design the pilot
| Decision | Guidance |
|---|---|
| Participants | Include typical and skeptical users, not only enthusiasts |
| Cases | Cover normal variation and known hard types |
| Mode | Start with suggestions or shadow runs before actions |
| Comparison | Baseline or control group |
| Review | Who checks outputs, and how disagreements are settled |
| Support | How users report problems and get help |
| Duration | Beyond novelty and across relevant business cycles |
| Stop switch | Tested before the first user |
Shadow mode runs the agent beside the current process without letting it act. It shows disagreement safely, but users cannot react to it, so it does not replace a pilot.
Production readiness review
| Area | Evidence |
|---|---|
| Ownership | Named product and on-call owners |
| Evaluation | Regression set in the release pipeline |
| Security | Threat model, least privilege and tests |
| Data | Approved sources, retention and deletion |
| Observability | Traces, outcome metrics and alerts |
| Reliability | Timeouts, limits, fallbacks and recovery rehearsal |
| Release | Versioning, staged rollout and rollback |
| People | Training, handoff capacity and user guidance |
| Obligations | Required reviews and records completed |
See releases and rollback, recovery, threat modeling and release gates.
Roll out in steps
- Internal or low-risk users with full review.
- A small share of real traffic.
- More users with unchanged autonomy.
- Wider autonomy for one task type at a time.
- New domains with their own evaluation.
Change one dimension at a time where possible: users, data, tasks or autonomy. Then a problem is easier to locate.
Stop and step-back rules
| Trigger | Response |
|---|---|
| Unauthorized action or data exposure | Disable the capability and start incident handling |
| Quality below floor for an agreed window | Return to approval mode |
| Cost above ceiling | Apply limits and review routing |
| Review queue beyond capacity | Pause expansion |
| Model or dependency change | Re-run evaluation before wider use |
Name who may trigger each response without further approval.
Why pilots stall
| Cause | Early remedy |
|---|---|
| No operational owner | Name one before starting |
| Data access promised, not granted | Confirm in the proof stage |
| Demo cases only | Sample real work |
| Security review at the end | Involve from the design |
| Value never measured | Record the baseline |
| No budget to operate | Include running cost in the first proposal |
Pilot failures and return on investment examines these patterns further.
Handover to operations
Provide an architecture description, dependency list, runbooks, alert meanings, evaluation instructions, known limitations, escalation contacts and the history of decisions. Let the operating team run a failure drill while builders are still available. A system only its creators can repair is not yet in production, whatever its user count.
The decision record
| Field | Content |
|---|---|
| Stage and date | What was decided |
| Versions | Model, prompts, tools and data tested |
| Evidence | Results with counts and intervals |
| Open risks | With owners and dates |
| Conditions | Limits on users, tasks and autonomy |
| Next review | Date and triggers |
An example plan
For an invented document triage agent: two weeks to test extraction on permitted real samples; four weeks of shadow runs measuring disagreement; six weeks with one team approving every suggestion; then limited automatic routing for the two document types that met their targets, while others remain assisted. The dates are placeholders. Evidence, not the calendar, moves the project forward.
Plan the evidence before the build
| Claim to prove | Evidence | Collected by |
|---|---|---|
| Results are correct enough | Graded cases by task type with intervals | Evaluation owner |
| It cannot exceed its authority | Permission tests and adversarial cases | Security |
| Users do better with it | Comparison with baseline and interviews | Product owner |
| It is affordable | Traced cost per verified outcome | Engineering and finance |
| Failures are manageable | Drill results and recovery times | Operations |
| Duties are met | Completed reviews and records | Legal, privacy and risk |
If nobody can say how a claim will be proven, either design the test now or remove the claim from the case.
Case sets for each stage
Keep separate sets. Development cases are used freely while building. A held-out set is used for stage decisions and refreshed when it has been seen too often. A challenge set holds rare, severe and adversarial examples that must pass regardless of averages. Add every significant production failure as a new case after removing or protecting personal data. Record which versions were tested against which set so that results can be reproduced. Datasets and simulation explains how to build them.
Earning more autonomy
| Level | Behavior | Evidence to move up |
|---|---|---|
| Shadow | Produces results nobody acts on | Agreement and error analysis |
| Suggest | Person decides and acts | Acceptance after real checking; low severe error |
| Approve | Agent acts after confirmation | Stable results, few edits, tested recovery |
| Bounded auto | Acts within limits; sampled review | Per task type thresholds over enough cases |
Promotion applies to a specific task type, version and limit. A new model or tool can justify moving back a level until re-tested. Autonomy levels gives the wider framework.
Running the decision review
Send the evidence in advance and keep the meeting about the decision. The product owner states the question and the thresholds agreed earlier. Evaluation presents results with counts and intervals, including failures. Security, privacy and operations state open findings. Users or their representatives describe the experience. Then the accountable owner chooses one of four outcomes.
| Outcome | Meaning |
|---|---|
| Proceed | Move to the next stage with stated limits |
| Proceed with conditions | Named fixes with owners and dates; some limits until closed |
| Extend | More evidence needed, with a defined sample and date |
| Stop or redirect | End, or return to discovery with what was learned |
An extension should be exceptional and specific. Repeated open-ended extensions usually mean that the criteria or the ownership were never settled.
The first weeks in production
- Increase review sampling and look at traces daily.
- Staff the handoff queue for higher than expected demand.
- Hold a short daily check on quality, safety, cost and user reports.
- Freeze unrelated changes so causes stay clear.
- Confirm that alerts reach a person who can act.
- Set a date to return to normal sampling based on results.
New traffic often differs from pilot traffic. Compare the mix of task types and users with what was tested, and evaluate any large new category before treating it as covered.
Plan the end as well
Every production agent needs a retirement path: who decides, how users are told, how in-progress tasks finish, how access and credentials are removed, what records are kept and how data and indexes are deleted. Review annually whether the agent still earns its cost and risk. An abandoned agent with live permissions is a security problem, which is why the inventory matters long after launch.
Keeping people informed
| When | Tell users and stakeholders |
|---|---|
| Pilot start | Purpose, limits, what is recorded, how to report and how to stop |
| During | Known problems, changes made and any new restriction |
| Decision | Result, reasons and what happens to their work |
| Rollout | Who gets access when, training and support |
| Rollback | What is paused, the fallback and when the next update comes |
A pilot that ends silently leaves participants guessing and makes the next volunteer harder to find. Thank them and show what their feedback changed.
Regulated and high-impact uses
Where an agent affects access to money, work, health, housing, education or legal rights, extra duties may apply before any real user is involved, including assessments, notices, human review and records. Involve the relevant specialists during the proof stage, because requirements can change the design. This page cannot tell you what applies to your case. See risk tiers for an orientation.
Retirement deserves its own test. Disable the agent in a rehearsal and confirm that work reaches the fallback, scheduled jobs stop and no other system silently depends on it.
Common mistakes
| Mistake | Consequence | Instead |
|---|---|---|
| Vague success criteria | Endless pilot | Written thresholds |
| Judging small samples by average | False pass | Intervals and enough cases |
| Prototype promoted as is | Fragile system | Readiness review |
| Expanding several things at once | Unclear causes | One step at a time |
| No rollback authority | Slow response | Pre-assigned rights |
| Ignoring review capacity | Backlog and rubber stamps | Plan staffing |
Checklist
- Requirements include examples, limits and evidence.
- The riskiest assumption was tested first.
- Sample plan and thresholds were fixed beforehand.
- Serious errors are judged separately.
- Readiness evidence exists for each area.
- Rollback has been rehearsed.
- Operations accept ownership in writing.
Frequently asked questions
How long should a pilot run?
Long enough to gather the planned cases and cover normal variation. Set the sample and decision date before starting.
What if results are close to the target?
Treat them as unproven. Collect the planned additional evidence, narrow the scope or keep human review; do not move the target afterward.
Can a proof of concept use production data?
Only with approval and suitable protection. Prefer minimized, masked or synthetic data, while checking that it still represents real difficulty.
Who decides to go live?
The accountable business owner with operations, security and risk input, recorded with conditions and a review date.
References
- NIST engineering statistics handbook: confidence intervals for a proportion
- NIST AI Risk Management Framework
Where to go next
Adoption, Operating Model and Center of Excellence
Help teams change how they work.
Chaos, Recovery Testing and Release Gates
Test releases thoroughly.
Deploying Agents to Production
Design for operation.