Agent has access to live lookup tool that returns current reference data (policy, rules, calendar, threshold), but defaults to stale training-time knowledge instead of calling/trusting the tool; downstream decisions use outdated values
Agent's verbalized or scored confidence does not correlate with its actual answer correctness, so confidence cannot be used to gate downstream decisions.
Agent relies solely on an LLM-judge to assess its own output when a deterministic, executable check (schema validation, test suite, linter, tool-call format check) was available and would have caught the error at near-zero cost.
When an agent's external API call (validation, lookup, confirmation) times out or fails, the agent completes a plausible result claiming success instead of treating failure as a blocking condition; downstream systems trust the fabricated success status
In a long conversation, agent establishes constraints, decisions, or flags early (banned phrase, disqualified candidate, SLA exception, allergy, privilege determination), but as session grows, that information falls out of effective context window; agent later violates the constraint or re-makes the excluded decision
Agent's output space has no low-friction "insufficient information, cannot answer" option, so it produces a best-guess answer even when grounding is inadequate.
Agent skips a beneficial critique/revise pass on a high-stakes output, going straight to a single-shot answer where a reflection round would demonstrably have caught an error.
A single generation call falls into repeated phrases, loops, or degenerate text (distinct from repeating tool-call actions across turns) because no repetition/frequency penalty or diversity control is applied to open-ended output.
Agent double-checks its own output by re-querying the same upstream source; finds no discrepancy because the problem was in the original source, not in the agent's processing; reports "verification passed" despite using incorrect upstream data
Agents generate plausible-sounding but false content, apply outdated knowledge, lose track of constraints over long conversations, deviate from reasoning requirements, and skip verification of outputs — accuracy failures are silent because the output is well-formed and the agent is confident, so errors propagate downstream before being caught. Accuracy issues span the entire agent pipeline: context management (losing track of instructions), reasoning quality (planning incompletely), output generation (hallucination), and verification (skipping or biasing the check).
Accuracy failures are categorically invisible at generation time — a hallucinated fact reads like a true fact, a skipped verification step produces no error message, an instruction drift shows up only in subtle behavior change over many turns. Detection requires comparison to ground truth or external audit, not observation of the output itself.
The reliable fix is multi-layered: (1) context architecture that maintains instruction durability and state tracking; (2) evidence-gating on high-stakes claims (require retrieval before generation); (3) confidence calibration and abstention affordances (let agents refuse when confidence is low); (4) multi-layered verification (format + business logic + human review); (5) comprehensive test methodology (not just happy paths).
Accuracy failures concentrate wherever the real world is more complex than the training distribution (seasonal shifts, new entity types, adversarial inputs), where rules change faster than models can be retrained (regulatory thresholds, policy updates), or where agents must chain multiple reasoning steps correctly (multi-step planning, long-horizon reasoning).
Agent generates content that flows directly to end users or drives autonomous decisions without intermediate human review
High-stakes domains (healthcare, finance, legal, compliance) where accuracy errors have safety, regulatory, or reputational impact
Agent must maintain correctness over long conversations, requiring instruction durability and state tracking
Vulnerable populations or underrepresented groups where accuracy degradation for specific segments goes undetected
Architecture Principles for Accuracy
The core insight across all 66 patterns: accuracy requires architecture, not just model capability. A capable model can generate false content (hallucination), lose track of constraints (context drift), apply outdated knowledge (staleness), or be deployed without verification. The mitigations fall into three architectural categories:
Context and state durability: Keep instructions durable (separate external store, periodic re-injection), maintain state outside context window (database, external ledger), enforce session boundaries (no cross-session leakage).
Evidence-gated generation: Require retrieval or explicit evidence before generation; mark claims with sources; abstain when evidence is insufficient; evidence-gating eliminates fabrication more reliably than prompting.
Verification and testing: Make verification multi-layered (format + business logic + human sample), independent (not self-verification), and comprehensive (not just happy paths). Verify the verifier itself. Test on production distribution, not convenience samples.
Related Categories
Operations (GitHub) — cost efficiency, tool reliability, and state tracking, upstream of accuracy
Security (GitHub) — preventing adversarial attacks and prompt injection, which undermine accuracy guardrails
Learning (GitHub) — safe learning from feedback, which can degrade accuracy if feedback is biased
Governance (GitHub) — approval workflows and oversight, which gate high-stakes decisions accuracy must support