# Hyper-Agile Quality Field Guide

Companion to Hyper-Agile Testing. Examples are fictional unless stated otherwise.

Web version: https://hyperagiletesting.com/companion/field-guide

## Plan the change

Define the promise before choosing a check.

### Product intent

What needs to be true for the user or business after the change.

- **Example:** After a connection drop, retrying checkout should return the original confirmation without creating another order or charge.
- **Ask in a review:** “What promise are we making, and who would notice if we broke it?”
- **Watch for:** A technical implementation is not a user promise. “Add a retry key” tells us how, not what the customer gets.
- **Practice:** https://hyperagiletesting.com/companion/checkout

### Acceptance criteria

Observable conditions a change must meet to satisfy the intended behavior.

- **Example:** Two concurrent submissions of the same checkout attempt produce at most one order and one payment capture.
- **Ask in a review:** “What would count as a pass, and how would we observe it?”
- **Watch for:** A vague phrase like “checkout works” cannot distinguish clean recovery from a duplicate charge.
- **Practice:** https://hyperagiletesting.com/companion/checkout

### Risk-based validation depth

The amount and type of validation chosen for a change based on what could go wrong, who is exposed, and how easily you can recover.

- **Example:** A copy edit and a payment retry change deserve different checks, even if both changed a single file.
- **Ask in a review:** “What would make this change deserve more validation?”
- **Watch for:** More tests are not automatically more depth. Cover the consequences that matter, not just more paths.
- **Practice:** https://hyperagiletesting.com/companion/plan

### Guardrail

A control that restricts what a system may do, or blocks or corrects a result that violates a rule.

- **Example:** The practice calendar can enforce the requested finish deadline even when the model put the time in the wrong field.
- **Ask in a review:** “Is this rule enforced in code, or are we only asking the model to follow it?”
- **Watch for:** An instruction to behave is not the same as enforced behavior. Test the guardrail with a known violation.
- **Practice:** https://hyperagiletesting.com/labs/trust-calendar

### Release decision owner

The role responsible for deciding what happens next and explaining which uncertainty the team is accepting.

- **Example:** The checkout release lead owns the rollout decision; the on-call engineer collects and investigates the Android signal.
- **Ask in a review:** “Who makes the call, and who collects the missing evidence?”
- **Watch for:** Running a check does not confer authority to ship, pause, or roll back.
- **Practice:** https://hyperagiletesting.com/companion/checkout

### Requirement vs. preference

A requirement must be met. A preference ranks otherwise acceptable options.

- **Example:** A calendar slot must end by 3 p.m.; being close to noon only makes a valid slot more appealing.
- **Ask in a review:** “Would the user accept a result that missed this condition?”
- **Watch for:** If your eval never scores the preference, say that a passing result met the requirements, not that it was the best answer.
- **Practice:** https://hyperagiletesting.com/labs/trust-calendar

## Verify the change

Connect a test result to the version and behavior it actually covered.

### Validation evidence

A recorded observation that supports a specific claim about a known change, test, or release.

- **Example:** A report for checkout v27 shows the same order ID on retry and one payment capture for that test attempt.
- **Ask in a review:** “Which candidate, case, and observation support this claim?”
- **Watch for:** A green badge without the tested revision or covered behavior tells you little about this release.
- **Practice:** https://hyperagiletesting.com/tools/release-confidence

### Baseline

A reference you compare against under conditions similar enough for the comparison you want to make.

- **Example:** Compare checkout p95 before and after a change using a similar route mix, load, environment, and measurement window.
- **Ask in a review:** “Are these runs comparable, or did the workload or environment change?”
- **Watch for:** The previous run is not automatically a usable baseline. Say “not compared” when evidence or comparability is missing.
- **Practice:** https://hyperagiletesting.com/tools/release-confidence

### Threshold vs. regression

A threshold is a limit. A regression is a measurable worsening compared with an appropriate reference.

- **Example:** Checkout p95 rose from 160 ms to 240 ms under comparable load. It is still below a 250 ms limit, but it got slower.
- **Ask in a review:** “Did it breach our limit, get worse, both, or neither?”
- **Watch for:** Meeting a threshold does not tell you that performance stayed the same.
- **Practice:** https://hyperagiletesting.com/tools/release-confidence

### p95 and p99

The 95th and 99th percentiles show how high latency is near the slow end of the measured requests.

- **Example:** A p95 of 240 ms means roughly 95% of measured requests took 240 ms or less, given the estimator and sample.
- **Ask in a review:** “Which requests and time window produced this percentile? How many were measured?”
- **Watch for:** p99 is not a maximum and can be unstable with few observations. Do not average p95 values from different groups to estimate the pooled p95.
- **Practice:** https://hyperagiletesting.com/tools/release-confidence

### Mutation testing

Deliberately change the system or a fixture to see whether a check catches a known fault.

- **Example:** Change a trial so the calendar proposes a slot one minute after the deadline. A useful deadline check fails it.
- **Ask in a review:** “What plausible fault did we introduce, and did the right check catch it?”
- **Watch for:** A mutation score covers the faults you chose to try. It does not prove that your tests catch every real defect.
- **Practice:** https://hyperagiletesting.com/labs/trust-calendar#L08

### Inconclusive

The available evidence does not justify a pass or a fail for the claim being evaluated.

- **Example:** The Android resume case was skipped. The other checkout checks passed, but this behavior remains unverified.
- **Ask in a review:** “What evidence is missing, and who can collect it?”
- **Watch for:** Missing evidence is neither a pass nor proof that the feature failed.
- **Practice:** https://hyperagiletesting.com/companion/checkout

## Evaluate AI behavior

Separate what the user got, what the model did, and how the grader decided.

### Eval

A repeatable way to judge an AI system’s behavior on a task against criteria defined in advance.

- **Example:** A calendar eval separately checks the model’s deadline field and whether the proposed times satisfy the deadline.
- **Ask in a review:** “What behavior are we grading, and what observation earns a pass?”
- **Watch for:** An eval can use rules, people, or model graders. A different output is not necessarily wrong.
- **Practice:** https://hyperagiletesting.com/tools/eval-pack-builder

### Trace

A record of observable steps and outputs from a run, such as tool calls, returned values, and app decisions.

- **Example:** The trace shows 3 p.m. in the model’s earliest-start field and in the app’s latest-finish field.
- **Ask in a review:** “What did the model return, and what did the app actually use?”
- **Watch for:** A trace is not privileged access to hidden reasoning and does not prove that a conclusion is correct.
- **Practice:** https://hyperagiletesting.com/labs/trust-calendar

### Golden dataset

A reviewed collection of tasks and expected outcomes or grading criteria used to evaluate changes consistently.

- **Example:** Store an unambiguous deadline case, a missing-evidence case, and a case that should reject an invented constraint.
- **Ask in a review:** “Which realistic behaviors are represented, and which cases stay out of tuning?”
- **Watch for:** Examples shown to the model or used to tune the judge are not independent holdout evidence.
- **Practice:** https://hyperagiletesting.com/tools/eval-pack-builder

### Judge calibration

Checking a grading model against human-reviewed examples, then checking the resulting rubric and thresholds on separate cases.

- **Example:** Compare whether the judge correctly rejects responses with unsupported citations, not just its average agreement with reviewers.
- **Ask in a review:** “What mistake would be costly, and how often does the judge make it on held-out cases?”
- **Watch for:** Agreement is not proof of correctness. Use deterministic checks for objective requirements where possible.
- **Practice:** https://hyperagiletesting.com/tools/judge-calibration

### Precision vs. recall

Precision asks how many flagged items truly needed flagging. Recall asks how many items that needed flagging were actually caught.

- **Example:** Of 12 flagged emails, 8 need review: precision is 8/12. If 10 emails in total need review, recall is 8/10.
- **Ask in a review:** “Which costs more here: sending someone an unnecessary alert, or missing an item?”
- **Watch for:** Always define the positive class. Accuracy can hide misses when the cases you need to find are rare.
- **Practice:** https://hyperagiletesting.com/tools/toolkit

### F1 score

The harmonic mean of precision and recall, giving a single score that is low when either of them is low.

- **Example:** At precision 8/12 and recall 8/10, F1 is about 73%. The same classifier can still miss items that matter.
- **Ask in a review:** “Do we need a single balance score, or should we keep the cost of misses and false alarms separate?”
- **Watch for:** F1 does not include true negatives. It does not tell you whether false alarms or missed cases are acceptable in production.
- **Practice:** https://hyperagiletesting.com/tools/toolkit

### Accuracy

The fraction of all evaluated cases correctly classified.

- **Example:** If only 10 of 100 emails need review, a system that flags none gets 90% accuracy and 0% recall on the cases that matter.
- **Ask in a review:** “What could a trivial baseline score, and which important group might this average hide?”
- **Watch for:** High accuracy without case mix or a clear positive class can hide weak performance.
- **Practice:** https://hyperagiletesting.com/tools/toolkit

### Temperature and seed

Temperature changes how strongly the model favors more likely tokens. A seed initializes the random choices when the runtime uses sampling.

- **Example:** When comparing temperatures, keep the model, request, and input data fixed and reuse the same set of seeds.
- **Ask in a review:** “What changed between runs, and do we score correctness separately from variety?”
- **Watch for:** Lower temperature is not a correctness guarantee; runtime changes can affect repeatability even when a seed is fixed.
- **Practice:** https://hyperagiletesting.com/labs/trust-calendar#L02

### pass@k vs. pass^k

pass@k asks about at least one success in k attempts. pass^k asks about every one of the k attempts succeeding.

- **Example:** In one five-trial group with four passes and one failure, at least one succeeded but not all five succeeded.
- **Ask in a review:** “Can the system retry and verify a result, or does every attempt have to work?”
- **Watch for:** A single group demonstrates the distinction, not the probabilities. Do not assume repeated attempts are independent.
- **Practice:** https://hyperagiletesting.com/tools/toolkit

### Confidence interval

A range from a statistical procedure designed to cover the true quantity at a chosen rate in repeated sampling, under its assumptions.

- **Example:** Four out of five and forty out of fifty both give 80%, but the larger comparable sample supports a narrower Wilson interval.
- **Ask in a review:** “What was sampled, and do these observations support the assumption behind the interval?”
- **Watch for:** A 95% frequentist interval is not a 95% probability that the true value lies inside this specific computed range.
- **Practice:** https://hyperagiletesting.com/tools/toolkit

## Read production signals

Make a rollout decision without hiding risk in averages.

### Canary release

Expose a candidate to a small share of eligible traffic first. Evaluate the signal before exposing more users.

- **Example:** Advance the fictional checkout candidate after the 5% checkpoint, then stop widening when the Android group breaches policy at 25%.
- **Ask in a review:** “Which cohort is exposed now, and what evidence is needed to widen?”
- **Watch for:** A healthy first checkpoint is not a promise that the next cohort or traffic level will behave the same way.
- **Practice:** https://hyperagiletesting.com/tools/rollout-lab

### Cohort and pooled rate

A cohort is a defined group of observations. A pooled rate divides combined events by combined opportunities.

- **Example:** Web was 12/4,000 and Android 12/400. Pooled, that is 24/4,400 or 0.55%; Android alone was 3.00%.
- **Ask in a review:** “Which group could be struggling while the pooled result looks healthy?”
- **Watch for:** The pooled result can be mathematically correct and still hide a problem in a smaller group.
- **Practice:** https://hyperagiletesting.com/tools/rollout-lab

### Percentage-point change

The difference between two rates written as percentages.

- **Example:** An increase from 0.25% to 3.00% is 2.75 percentage points, not a 2.75% relative increase.
- **Ask in a review:** “Are we subtracting rates, or reporting a relative increase from the baseline?”
- **Watch for:** State both original rates and their denominators. A percentage-point difference alone does not show sample quality.
- **Practice:** https://hyperagiletesting.com/tools/rollout-lab

### Sample minimum

A policy requirement for the minimum number of observations before a particular comparison or decision can clear.

- **Example:** The quiet canary needs 200 Android candidate requests. Zero failures in 31 requests does not meet that requirement.
- **Ask in a review:** “Is the sample big enough to widen? Does an early warning still require escalation?”
- **Watch for:** Below the minimum does not mean safe. A severe signal still deserves investigation; independently required checks can trigger a stop.
- **Practice:** https://hyperagiletesting.com/companion/challenge

### Hold vs. rollback

Hold means do not increase exposure while evidence is gathered or reviewed. Rollback means reverse or remove the candidate from exposure under the approved process.

- **Example:** Too few observations can mean hold. A failed mandatory checkout check can justify a rollback recommendation under the sample policy.
- **Ask in a review:** “Which evidence triggered this decision, and who is authorized to act?”
- **Watch for:** A simulation or advisory report never executes a rollback or replaces the owner’s judgment.
- **Practice:** https://hyperagiletesting.com/companion/challenge

### Production learning

Turn a production observation into a change to a requirement, test, monitoring rule, or operating practice.

- **Example:** Investigate the Android signal, then add a lost-response-and-resume regression case if it addresses the validated failure or the known evidence gap.
- **Ask in a review:** “What should catch this earlier next time, and how will we know it works?”
- **Watch for:** Do not write the threshold breach down as the root cause. Preserve the distinction between observation and explanation.
- **Practice:** https://hyperagiletesting.com/companion/checkout

## Quick decisions

Try each decision before reading the answer key.

### Still below the threshold

Checkout p95 went from 160 ms to 240 ms under comparable load. The release limit is 250 ms. What can you say?

1. It did not regress because it passed the limit.
2. It got slower, but it did not breach the limit.
3. It breached the limit because it got slower.

### A valid slot, a wrong interpretation

The calendar offered a free slot that ends before 3 p.m. The trace shows the model put 3 p.m. in the start-time field. How would you score it?

1. Both pass because the user saw a valid slot.
2. Both fail because the model misunderstood.
3. The app outcome passes and the model interpretation fails.

### Which number answers the question?

Your tool flagged 12 emails. Eight of those really needed review. Ten emails in total needed review. Which measure answers “How many of the emails we needed to find did we catch?”

1. Recall: 8/10.
2. Precision: 8/12.
3. Accuracy: 8/12.

### Zero failures in a small canary

Android reported 0 failures in 31 candidate requests. The written policy requires 200 candidate requests per group to clear a rate comparison. All other checks pass. What is the policy call?

1. Widen now because we observed no errors.
2. Hold exposure and collect enough evidence.
3. Roll back because the sample is too small.

## Answer key

- **Still below the threshold**: It got slower, but it did not breach the limit. These are separate questions. The measured p95 is 80 ms slower than the comparable baseline. 240 ms is still below the 250 ms threshold.
- **A valid slot, a wrong interpretation**: The app outcome passes and the model interpretation fails. The app met the displayed scheduling requirement. The model’s interpretation still failed the separate check. One verdict does not override the other.
- **Which number answers the question?**: Recall: 8/10. Recall divides by all actual positives. Precision answers a different question: how many of our flags were right?
- **Zero failures in a small canary**: Hold exposure and collect enough evidence. Zero observed failures is not enough to clear the requirement. Missing eligible evidence means hold, not that a failure was proven.

## References

- [Anthropic: Demystifying Evals for AI Agents](https://www.anthropic.com/research/demystifying-evals-for-ai-agents)
- [Google SRE Workbook: Canarying Releases](https://sre.google/workbook/canarying-releases/)
- [NIST: Confidence intervals for a proportion](https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm)
- [Ollama: Model parameter reference](https://docs.ollama.com/modelfile#valid-parameters-and-values)
