{
  "version": 1,
  "title": "Hyper-Agile Quality Field Guide",
  "groups": [
    {
      "id": "plan",
      "name": "Plan the change",
      "description": "Define the promise before choosing a check."
    },
    {
      "id": "verify",
      "name": "Verify the change",
      "description": "Connect a test result to the version and behavior it actually covered."
    },
    {
      "id": "eval",
      "name": "Evaluate AI behavior",
      "description": "Separate what the user got, what the model did, and how the grader decided."
    },
    {
      "id": "rollout",
      "name": "Read production signals",
      "description": "Make a rollout decision without hiding risk in averages."
    }
  ],
  "terms": [
    {
      "id": "product-intent",
      "term": "Product intent",
      "group": "plan",
      "aliases": "user value business outcome",
      "definition": "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": "“What promise are we making, and who would notice if we broke it?”",
      "avoid": "A technical implementation is not a user promise. “Add a retry key” tells us how, not what the customer gets.",
      "href": "/companion/checkout"
    },
    {
      "id": "acceptance-criteria",
      "term": "Acceptance criteria",
      "group": "plan",
      "aliases": "requirement expected behavior pass fail",
      "definition": "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": "“What would count as a pass, and how would we observe it?”",
      "avoid": "A vague phrase like “checkout works” cannot distinguish clean recovery from a duplicate charge.",
      "href": "/companion/checkout"
    },
    {
      "id": "validation-depth",
      "term": "Risk-based validation depth",
      "group": "plan",
      "aliases": "risk reach impact reversibility",
      "definition": "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": "“What would make this change deserve more validation?”",
      "avoid": "More tests are not automatically more depth. Cover the consequences that matter, not just more paths.",
      "href": "/companion/plan"
    },
    {
      "id": "guardrail",
      "term": "Guardrail",
      "group": "plan",
      "aliases": "policy boundary enforcement deterministic rule",
      "definition": "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": "“Is this rule enforced in code, or are we only asking the model to follow it?”",
      "avoid": "An instruction to behave is not the same as enforced behavior. Test the guardrail with a known violation.",
      "href": "/labs/trust-calendar"
    },
    {
      "id": "release-owner",
      "term": "Release decision owner",
      "group": "plan",
      "aliases": "ownership accountability human approval",
      "definition": "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": "“Who makes the call, and who collects the missing evidence?”",
      "avoid": "Running a check does not confer authority to ship, pause, or roll back.",
      "href": "/companion/checkout"
    },
    {
      "id": "requirement-preference",
      "term": "Requirement vs. preference",
      "group": "plan",
      "aliases": "hard constraint soft desired",
      "definition": "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": "“Would the user accept a result that missed this condition?”",
      "avoid": "If your eval never scores the preference, say that a passing result met the requirements, not that it was the best answer.",
      "href": "/labs/trust-calendar"
    },
    {
      "id": "evidence",
      "term": "Validation evidence",
      "group": "verify",
      "aliases": "artifact proof observation version",
      "definition": "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": "“Which candidate, case, and observation support this claim?”",
      "avoid": "A green badge without the tested revision or covered behavior tells you little about this release.",
      "href": "/tools/release-confidence"
    },
    {
      "id": "baseline",
      "term": "Baseline",
      "group": "verify",
      "aliases": "comparison reference known good previous run",
      "definition": "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": "“Are these runs comparable, or did the workload or environment change?”",
      "avoid": "The previous run is not automatically a usable baseline. Say “not compared” when evidence or comparability is missing.",
      "href": "/tools/release-confidence"
    },
    {
      "id": "threshold-regression",
      "term": "Threshold vs. regression",
      "group": "verify",
      "aliases": "gate latency performance slower absolute delta",
      "definition": "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": "“Did it breach our limit, get worse, both, or neither?”",
      "avoid": "Meeting a threshold does not tell you that performance stayed the same.",
      "href": "/tools/release-confidence"
    },
    {
      "id": "percentile",
      "term": "p95 and p99",
      "group": "verify",
      "aliases": "percentile tail latency performance p95 p99",
      "definition": "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": "“Which requests and time window produced this percentile? How many were measured?”",
      "avoid": "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.",
      "href": "/tools/release-confidence"
    },
    {
      "id": "mutation-test",
      "term": "Mutation testing",
      "group": "verify",
      "aliases": "negative control fault injected assertion test",
      "definition": "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": "“What plausible fault did we introduce, and did the right check catch it?”",
      "avoid": "A mutation score covers the faults you chose to try. It does not prove that your tests catch every real defect.",
      "href": "/labs/trust-calendar#L08"
    },
    {
      "id": "inconclusive",
      "term": "Inconclusive",
      "group": "verify",
      "aliases": "unknown missing evidence not evaluated blocked",
      "definition": "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": "“What evidence is missing, and who can collect it?”",
      "avoid": "Missing evidence is neither a pass nor proof that the feature failed.",
      "href": "/companion/checkout"
    },
    {
      "id": "eval",
      "term": "Eval",
      "group": "eval",
      "aliases": "evaluation grader rubric task acceptance",
      "definition": "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": "“What behavior are we grading, and what observation earns a pass?”",
      "avoid": "An eval can use rules, people, or model graders. A different output is not necessarily wrong.",
      "href": "/tools/eval-pack-builder"
    },
    {
      "id": "trace",
      "term": "Trace",
      "group": "eval",
      "aliases": "trajectory tool calls model interpretation",
      "definition": "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": "“What did the model return, and what did the app actually use?”",
      "avoid": "A trace is not privileged access to hidden reasoning and does not prove that a conclusion is correct.",
      "href": "/labs/trust-calendar"
    },
    {
      "id": "golden-dataset",
      "term": "Golden dataset",
      "group": "eval",
      "aliases": "benchmark test cases expected reference rubric holdout",
      "definition": "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": "“Which realistic behaviors are represented, and which cases stay out of tuning?”",
      "avoid": "Examples shown to the model or used to tune the judge are not independent holdout evidence.",
      "href": "/tools/eval-pack-builder"
    },
    {
      "id": "judge-calibration",
      "term": "Judge calibration",
      "group": "eval",
      "aliases": "llm as judge human labels agreement threshold",
      "definition": "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": "“What mistake would be costly, and how often does the judge make it on held-out cases?”",
      "avoid": "Agreement is not proof of correctness. Use deterministic checks for objective requirements where possible.",
      "href": "/tools/judge-calibration"
    },
    {
      "id": "precision-recall",
      "term": "Precision vs. recall",
      "group": "eval",
      "aliases": "true positive false positive false negative f1 accuracy",
      "definition": "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": "“Which costs more here: sending someone an unnecessary alert, or missing an item?”",
      "avoid": "Always define the positive class. Accuracy can hide misses when the cases you need to find are rare.",
      "href": "/tools/toolkit"
    },
    {
      "id": "f1",
      "term": "F1 score",
      "group": "eval",
      "aliases": "precision recall f-score harmonic mean",
      "definition": "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": "“Do we need a single balance score, or should we keep the cost of misses and false alarms separate?”",
      "avoid": "F1 does not include true negatives. It does not tell you whether false alarms or missed cases are acceptable in production.",
      "href": "/tools/toolkit"
    },
    {
      "id": "accuracy",
      "term": "Accuracy",
      "group": "eval",
      "aliases": "classification percent correct imbalance",
      "definition": "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": "“What could a trivial baseline score, and which important group might this average hide?”",
      "avoid": "High accuracy without case mix or a clear positive class can hide weak performance.",
      "href": "/tools/toolkit"
    },
    {
      "id": "temperature",
      "term": "Temperature and seed",
      "group": "eval",
      "aliases": "sampling randomness token variability model settings",
      "definition": "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": "“What changed between runs, and do we score correctness separately from variety?”",
      "avoid": "Lower temperature is not a correctness guarantee; runtime changes can affect repeatability even when a seed is fixed.",
      "href": "/labs/trust-calendar#L02"
    },
    {
      "id": "pass-at-k",
      "term": "pass@k vs. pass^k",
      "group": "eval",
      "aliases": "pass at k pass to the k retries consistency repeated reliability",
      "definition": "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": "“Can the system retry and verify a result, or does every attempt have to work?”",
      "avoid": "A single group demonstrates the distinction, not the probabilities. Do not assume repeated attempts are independent.",
      "href": "/tools/toolkit"
    },
    {
      "id": "confidence-interval",
      "term": "Confidence interval",
      "group": "eval",
      "aliases": "wilson uncertainty sample size binomial",
      "definition": "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": "“What was sampled, and do these observations support the assumption behind the interval?”",
      "avoid": "A 95% frequentist interval is not a 95% probability that the true value lies inside this specific computed range.",
      "href": "/tools/toolkit"
    },
    {
      "id": "canary",
      "term": "Canary release",
      "group": "rollout",
      "aliases": "progressive exposure staged deployment ramp",
      "definition": "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": "“Which cohort is exposed now, and what evidence is needed to widen?”",
      "avoid": "A healthy first checkpoint is not a promise that the next cohort or traffic level will behave the same way.",
      "href": "/tools/rollout-lab"
    },
    {
      "id": "cohort",
      "term": "Cohort and pooled rate",
      "group": "rollout",
      "aliases": "segment aggregation customer group denominator android",
      "definition": "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": "“Which group could be struggling while the pooled result looks healthy?”",
      "avoid": "The pooled result can be mathematically correct and still hide a problem in a smaller group.",
      "href": "/tools/rollout-lab"
    },
    {
      "id": "percentage-point",
      "term": "Percentage-point change",
      "group": "rollout",
      "aliases": "percentage points basis points pp absolute relative",
      "definition": "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": "“Are we subtracting rates, or reporting a relative increase from the baseline?”",
      "avoid": "State both original rates and their denominators. A percentage-point difference alone does not show sample quality.",
      "href": "/tools/rollout-lab"
    },
    {
      "id": "sample-minimum",
      "term": "Sample minimum",
      "group": "rollout",
      "aliases": "denominator traffic limit low confidence missing evidence",
      "definition": "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": "“Is the sample big enough to widen? Does an early warning still require escalation?”",
      "avoid": "Below the minimum does not mean safe. A severe signal still deserves investigation; independently required checks can trigger a stop.",
      "href": "/companion/challenge"
    },
    {
      "id": "hold-rollback",
      "term": "Hold vs. rollback",
      "group": "rollout",
      "aliases": "stop widen pause escalation decision",
      "definition": "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": "“Which evidence triggered this decision, and who is authorized to act?”",
      "avoid": "A simulation or advisory report never executes a rollback or replaces the owner’s judgment.",
      "href": "/companion/challenge"
    },
    {
      "id": "production-learning",
      "term": "Production learning",
      "group": "rollout",
      "aliases": "quality loop follow-up regression closed loop",
      "definition": "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": "“What should catch this earlier next time, and how will we know it works?”",
      "avoid": "Do not write the threshold breach down as the root cause. Preserve the distinction between observation and explanation.",
      "href": "/companion/checkout"
    }
  ],
  "cases": [
    {
      "id": "green-but-slower",
      "title": "Still below the threshold",
      "prompt": "Checkout p95 went from 160 ms to 240 ms under comparable load. The release limit is 250 ms. What can you say?",
      "options": [
        "It did not regress because it passed the limit.",
        "It got slower, but it did not breach the limit.",
        "It breached the limit because it got slower."
      ],
      "answer": 1,
      "why": "These are separate questions. The measured p95 is 80 ms slower than the comparable baseline. 240 ms is still below the 250 ms threshold.",
      "term": "threshold-regression"
    },
    {
      "id": "right-slot",
      "title": "A valid slot, a wrong interpretation",
      "prompt": "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?",
      "options": [
        "Both pass because the user saw a valid slot.",
        "Both fail because the model misunderstood.",
        "The app outcome passes and the model interpretation fails."
      ],
      "answer": 2,
      "why": "The app met the displayed scheduling requirement. The model’s interpretation still failed the separate check. One verdict does not override the other.",
      "term": "trace"
    },
    {
      "id": "some-caught",
      "title": "Which number answers the question?",
      "prompt": "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?”",
      "options": [
        "Recall: 8/10.",
        "Precision: 8/12.",
        "Accuracy: 8/12."
      ],
      "answer": 0,
      "why": "Recall divides by all actual positives. Precision answers a different question: how many of our flags were right?",
      "term": "precision-recall"
    },
    {
      "id": "stop-or-widen",
      "title": "Zero failures in a small canary",
      "prompt": "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?",
      "options": [
        "Widen now because we observed no errors.",
        "Hold exposure and collect enough evidence.",
        "Roll back because the sample is too small."
      ],
      "answer": 1,
      "why": "Zero observed failures is not enough to clear the requirement. Missing eligible evidence means hold, not that a failure was proven.",
      "term": "sample-minimum"
    }
  ],
  "sources": [
    {
      "name": "Anthropic: Demystifying Evals for AI Agents",
      "url": "https://www.anthropic.com/research/demystifying-evals-for-ai-agents"
    },
    {
      "name": "Google SRE Workbook: Canarying Releases",
      "url": "https://sre.google/workbook/canarying-releases/"
    },
    {
      "name": "NIST: Confidence intervals for a proportion",
      "url": "https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm"
    },
    {
      "name": "Ollama: Model parameter reference",
      "url": "https://docs.ollama.com/modelfile#valid-parameters-and-values"
    }
  ]
}
