The Telemetry-to-Eval Flywheel, Part 2: Architectural Isolation, Prioritization, and Boundary Mapping
A Systems Product Blueprint for AI Product Managers, Engineering Leads, and Evaluation Architects
Part of the Telemetry-to-Eval Flywheel Series:
- Part 1: Signal Discovery, Feasibility, and Enterprise Data Contracts
- Part 2: Architectural Isolation, Prioritization, and Boundary Mapping (Current Post)
- Part 3: Tiered CI/CD Portfolios, Anti-Gaming, and the Minimum Viable Loop
An evaluation suite is an executable specification of system boundaries. When an autonomous agent or RAG pipeline fails in production, committing an automated test before isolating the architectural root cause produces test bloat, brittle CI pipelines, and developer paralysis.
In Part 1 of this series, we established how to instrument production AI workflows, clear the Observability Feasibility Gate, protect customer data with Telemetry Data Contracts, and treat user friction as a hypothesis generator. Once an operational investigation confirms that a behavioral signal represents a genuine task execution defect, product teams must decide how to handle the failure without breaking adjacent workflows. Unstructured teams fall into Prompt Whack-a-Mole: an engineer patches the system prompt in a staging sandbox, runs three manual sanity checks, and ships, only for that prompt edit to degrade classification accuracy on a separate customer cohort two days later. Disciplined teams treat confirmed failures as architectural events by moving deterministic logic out of the prompt first, applying an explicit investment threshold, and mapping the full failure boundary before committing a regression test into version control.
Why Must Architectural Isolation Precede Evaluation Coverage?
When an investigation confirms an operational failure, teams often rush to add prompt instructions or an LLM-as-a-judge test. Before writing an evaluation assertion, the product manager must run the Failure Diagnosis Matrix to separate deterministic software responsibilities from probabilistic model interfaces:
| Observed Failure Mode | Root Mechanism | Correct Engineering Response | Remaining Model Interface to Evaluate |
|---|---|---|---|
| Wrong Arithmetic or Date Math | Probabilistic token prediction attempting mathematical calculation. | Deterministic Code: Strip arithmetic from LLM; execute calculations in code. | Evaluate entity extraction accuracy (dates, amounts) and prompt routing. |
| Contractual or Policy Inversion | Model confusing regulatory clauses or jurisdictional boundaries. | Deterministic State Rules: Encode policy gates as state machines outside the prompt. | Evaluate contract parameter extraction and rule triggering conditions. |
| Entity Extraction Drift | Missing fields, malformed formatting, schema parsing errors. | Typed Schema Contracts: Implement Pydantic/Zod schemas with retry bounds. | Evaluate schema extraction precision across noisy or degraded documents. |
| Missing Domain Evidence | RAG retrieval returning irrelevant chunks or superseded documents. | Retrieval Engineering: Fix chunking, indexing, and hierarchical metadata filtering. | Evaluate retrieval recall@K, context precision, and reranker alignment. |
| Plausible Hallucination | Model generating unsupported claims in open text synthesis. | Groundedness Guardrails: Enforce verifiable citation entailment (every factual claim must map to an exact retrieved snippet). | Evaluate citation recall, factual entailment, and calibrated refusal floors (knowing when to say "I do not know"). |
| Subjective Tone Dislike | User preferring bullet points over prose, or informal phrasing. | UX Preference Setting: Expose user-configurable formatting toggles. | Do not evaluate as product quality; treat as user preference fit. |
| Latency Budget Breach | Model reasoning trace or vector retrieval taking too long. | Performance Engineering: Model quantization, prompt caching, speculative decoding, or smaller specialized models. | Evaluate TTFT (time-to-first-token) and total latency against SLA ceilings. |
The Refined Architectural Rule: If a failure is caused by missing deterministic state logic, typed validation, or mathematical computation, add that deterministic control first. Do not use an LLM judge to compensate for an absent software control. Once the deterministic boundary is in place, evaluate the remaining model-mediated interfaces: entity extraction, intent routing, tool parameter formatting, evidence selection, and user-facing explanation.
The PM's Sprint Triage Tool: Handling an AI Bug in 60 Seconds
When a stakeholder or engineer brings an AI bug to standup or sprint planning, product managers often face pressure to patch the prompt immediately. Use this triage table to route the defect to the right engineering layer in 60 seconds:
| When You Observe This Failure | What You Tell the Team in the Meeting | Where It Goes on the Board | What You Actually Test |
|---|---|---|---|
| Wrong math, dates, or totals | "Stop asking the model to calculate in the prompt. Have the LLM extract the raw numbers, and let code compute the total." | Backend Ticket: Move math to Python or SQL. | Test entity extraction precision (did it grab the right numbers?), not math ability. |
| Broke a legal, compliance, or pricing rule | "Don't try to teach the model company policy in prose. Encode the rule as an immutable state check outside the model." | Platform / Rules Ticket: Add deterministic state machine gate. | Test whether the model triggers the correct state transition. |
| Malformed JSON or missing fields | "Don't write an LLM judge to grade formatting. Enforce a strict schema with automated retries." | API Schema Ticket: Pydantic / Zod schema validation. | Test schema deserialization under noisy or corrupted inputs. |
| User disliked the style, length, or tone | "This is a user formatting preference. We handle formatting preferences with UI toggles. Do not tune prompts for individual styling preferences." | Frontend UX Ticket: Add user toggles (e.g., concise vs. detailed). | Zero automated evals. Log in user feedback backlog. |
| Hallucinated a fact or made up a rule (Tier 3+) | "This is a customer trust breach. We need ground-truth verification, synthetic boundary tests, and an automated regression test." | Evaluation Backlog: Promote to permanent Tier 2 regression suite. | Test citation entailment, factual grounding, and boundary variations. |
The Evaluation Prioritization Rubric: Beyond Pseudo-Mathematical Formulas
Every permanent test added to an enterprise evaluation portfolio imposes an ongoing Portfolio Maintenance Tax. While many teams treat evaluation suites as costless append-only logs, production test suites accumulate carrying costs across three operational planes:
- Compute & Release Latency: Running LLM-as-a-judge evaluators over 2,500 non-deterministic regression fixtures at \$0.03 to \$0.08 per evaluation turn stretches CI pipelines from 4 minutes to 45 minutes, slowing PR merge velocity.
- Adjudication & Triaging Overhead: Stochastic model variance introduces a steady background rate of false-positive failures. Every intermittent test failure demands hours from senior engineers and subject matter experts (such as retaining external legal counsel or clinical informatics leads at \$450/hour to re-adjudicate disputed reasoning traces).
- Model Atrophy & False Refusals: Over-indexing on hyper-specific negative test cases trains the system into defensive conservatism. Models become verbose, unhelpful, and prone to false refusals when encountering benign variations of past incident prompts.
When teams attempt to prioritize candidates with pseudo-mathematical formulas like $\text{Severity} \times \text{Frequency} \times \text{Reproducibility} - \text{Cost}$, they introduce false precision: teams cannot discount a severe regulatory penalty (Severity 4) because of low observed frequency, especially when high-consequence hallucinations emit zero behavioral telemetry. Product leaders filter candidate incidents through a four-gate Evaluation Prioritization Rubric instead:
graph TD
A[Confirmed Production Failure] --> B{Solvable by deterministic code?}
B -->|Yes| C[Add Deterministic Guard First<br/>Evaluate remaining extraction/routing interface]
B -->|No| D{Meets Prioritization Rubric?<br/>• High Severity Tier 3+?<br/>• State is Reconstructable?<br/>• Structural Generalizability?<br/>• Specifiable Expected Behavior?}
D -->|Yes| E[Promote to Durable Eval<br/>Committed into Tiered Portfolio]
D -->|No| F[Log in Decision Journal<br/>Monitored as one-off edge case]
classDef default fill:#161b22,stroke:#30363d,color:#e6edf3;
classDef highlight fill:#1f6feb22,stroke:#38bdf8,color:#38bdf8;
class C,E highlight;
The Four Promotion Gates
- Severity & Non-Negotiable Risk: Did the defect cause direct financial loss, regulatory breach, security exposure, or customer trust erosion? High-severity risks earn permanent coverage even if their observed frequency is near zero.
- Reconstructability (Beyond Simple Reproducibility): In stochastic LLM systems, a defect may not reproduce on every run. What matters is reconstructability: can the team reconstruct the system state (model checkpoint, prompt template, retrieval chunks, tool execution payloads, and policy version) to isolate and evaluate the causal failure mode?
- Generalizability: Does this defect represent a structural vulnerability across a broad class of customer inputs, or is it an idiosyncratic, one-off anomaly?
- Behavioral Specifiability: Can domain experts define an unambiguous, machine-verifiable invariant (such as a schema contract, statutory cutoff, or calibrated refusal)? If experts cannot agree on what correct behavior looks like, writing an automated eval encodes one reviewer's personal bias. Where disagreement persists, route cases to longitudinal human review.
Severity Tier Definitions (Making Qualitative Gates Auditable)
The following calibrated severity tiers give Gate 1 ("High Severity") empirical grounding that internal risk officers and external regulators can audit directly:
| Severity Tier | Definition | Example | Eval Mandate |
|---|---|---|---|
| Tier 1: Cosmetic | Output quality degrades noticeably, but no customer action or downstream decision is affected. | Wrong bullet point count; verbose where terse was preferred. | No permanent eval. Log in Decision Journal. |
| Tier 2: Functional Degradation | A customer workflow is disrupted, requiring manual correction or re-work, but no harm is externalized. | Extraction drops a field; the user catches it manually. | Schema contract test if the failure class generalizes. |
| Tier 3: Customer Trust Breach | An error reaches a customer-facing output without correction, causing measurable dissatisfaction, churn risk, or support escalation. | Plausible but factually wrong figures appear in a sent report. | Durable invariant + grounding eval required. |
| Tier 4: Financial or Legal Exposure | Output directly causes or enables unauthorized financial disbursement, regulatory non-compliance, or actionable legal liability. | Agent authorizes a refund exceeding a statutory limit; incorrect drug interaction listed. | Hard invariant with zero-regression tolerance. Architectural fix required as precondition. |
| Tier 5: Systemic or Reputational Catastrophe | Failure class affects a broad customer cohort, regulators, or public safety. | Cross-tenant data leak; systemic policy inversion affecting a regulated industry. | Emergency architectural isolation + external incident response. Eval encoding follows post-remediation. |
"High Severity" in Gate 1 refers specifically to Tier 3 or above. A reviewer, regulator, or customer can audit whether a team classified a defect accurately by checking this table.
From One Incident to a Failure Boundary: Targeted Amplification
When an incident clears the Prioritization Rubric, adding only the literal prompt that failed into the test suite is insufficient. An engineer can adjust prompt instructions to pass that exact phrasing while leaving the surrounding semantic region vulnerable to minor variations. The goal is to map the failure boundary across three perturbation vectors:
| Perturbation Vector | Operational Test Design | Failure Boundary Mapping Target |
|---|---|---|
| 1. Parametric Threshold Test | Discrete parameter variations ($t = 13, 14, 15, 16$) | Proves the model decision flips cleanly at the exact statutory cutoff ($t=14$). |
| 2. Syntactic Noise Test | Injects smartphone typos, colloquialisms, and slang | Ensures robustness against formatting churn without triggering false refusals. |
| 3. Context Distraction Test | Injects irrelevant or conflicting RAG retrieved chunks | Verifies the model does not hallucinate facts when operating under retrieval noise. |
A discrete policy, such as a 14-day cancellation cutoff, requires 4 test cases ($t \in {13, 14, 15, 16}$) to verify that state transitions flip deterministically at the exact deadline. In contrast, extracting data from messy enterprise documents (OCR noise, rotated scans, swapped table headers) involves more variables, requiring teams to combine realistic formatting noise with distracting retrieved context to pinpoint the exact threshold where valid customer input turns into an unhandled defect.
Measuring Boundary Quality: The Boundary Test Hit Rate
When engineers generate synthetic edge cases, product managers track the Boundary Test Hit Rate to verify that the test suite probes actual failure boundaries and exposes real defects:
$$ \begin{aligned} \text{Hit Rate} = &\ \frac{\text{Identified Boundary Edge Failures}}{\text{Total Synthetic Test Variants Tested}} \end{aligned} $$
- Hit Rate $\approx 0\%$ (Too Timid): If none of your 20 test variations cause the system to hesitate, refuse, or change state, your tests are surface-level synonyms that fail to probe the model's boundaries.
- Hit Rate $\approx 100\%$ (Too Fragile): If every minor phrasing tweak triggers a failure or false refusal, the model's instructions are brittle and over-constrained.
- Healthy Target (\$15\%–35\%$ Hit Rate): A well-calibrated test suite pinpoints the line where acceptable customer inputs transition into unhandled edge cases or policy violations.
The Product Manager’s Eval Spec Sheet (The Decision Card)
To turn technical testing into an executive governance instrument, AI teams codify every promoted regression test into a standardized Eval Spec Sheet:
| Specification Field | Operational Incident Details |
|---|---|
| Incident Identifier | INC-2026-09-8492 (Billing Agent Exposure) |
| Severity & Risk Tier | Tier 4 (Financial Exposure): Agent auto-authorized full refund on non-refundable contract. |
| Discovery Vector | Moderate Clipboard Edit ($L_{\text{edit}} = 0.42$) + Downstream Human Tier-2 Escalation. |
| Failure Diagnosis | Model attempted mathematical date calculation and conflated consumer statutes with B2B terms. |
| Architectural Fix | Date arithmetic stripped from LLM; moved to deterministic billing engine. |
| Durable Eval Mandate | Verify that LLM extraction outputs correct cancellation timestamp and citations. |
The Non-Negotiable Product Invariants
- Schema Integrity: Output must deserialize cleanly into the
RefundExtractionContractschema (validating decision status, extracted dates, and statutory citation). - State Machine Boundedness: The
decision_statusenum must resolve strictly to[approved, rejected, escalate]. Ambiguous narrative outputs trigger an instant test failure. - Hard Exposure Ceilings: Numerical refund limits are enforced deterministically by the calculation engine outside the model:
- $\text{Day } 13 \implies \text{Authorized Refund} \le \$345.50$
- $\text{Day } 14 \implies \text{Authorized Refund} \le \$320.00$
- $\text{Day } 15 \implies \text{Authorized Refund} \equiv \$0.00$
- Mandatory Provenance Citation: The output payload must explicitly cite
"Section 4.2 (Early Termination Clause)". Reaching the correct dollar figure without citing the governing clause is an invariant failure.
The Failure Boundary Test Matrix
| Test Case | Scenario / Perturbation | Input Conditions | Expected Decision State | Hard Capital Ceiling |
|---|---|---|---|---|
| TC-01 (Base) | Standard enterprise cancellation | Day 13, Standard Annual Seat | approved |
$\le \$345.50$ |
| TC-02 (Boundary) | Exact cutoff boundary | Day 14, Standard Annual Seat | approved |
$\le \$320.00$ |
| TC-03 (Cutoff) | Post-boundary hard stop | Day 15, Standard Annual Seat | rejected |
$\equiv \$0.00$ |
| TC-04 (Noise) | Smartphone typos & colloquialisms | Day 14, "cancell plz refund" | approved |
$\le \$320.00$ |
| TC-05 (Custom) | Bespoke enterprise terms | Day 14, Custom Enterprise Tier | escalate |
$\equiv \$0.00$ (Hold for Human) |
The Adversarial Stress-Test: Five Critical Inquiries
1. What is the strongest argument against this approach?
- Words Don't Have Hard Edges (The Fuzzy Language Dilemma): Discrete boundary testing works cleanly when testing Day 13 versus Day 14 cutoffs. Many real AI failures (tone, subtle bias, pronoun confusion across 50-page contracts, or executive summaries) occur in open-ended semantic territory without sharp numerical edges. Running 20 synthetic prompts can make teams feel confident while adjacent real-world phrasing remains vulnerable.
- The Countermeasures:
- Break Fuzzy Tasks into Concrete Checks: Decompose open-ended writing into deterministic assertions: (a) Citation recall, (b) Entity preservation (verifying names, dates, and amounts remain unaltered), and (c) Negative constraint filters (prohibiting forbidden assertions).
- Treat Boundary Suites as Floor Rules: Use boundary tests to enforce minimum non-negotiable safety floors alongside production sampling.
- Employ Dual-Model Consensus Panels: For qualities like tone or clarity, use dual-model consensus judges (such as Claude 3.7 Sonnet + GPT-4o) evaluated against explicit rubric scoring anchors.
2. Under what circumstances would this fail?
Even disciplined boundary mapping breaks down under three enterprise conditions:
- Circumstance A: Ephemeral Environmental Drift (Dynamic Tools & Live Search)
- The Failure: An agent tool execution failed because an external API updated its schema, or a live web search returned altered snippets. State cannot be reconstructed because the outside world moved.
- The Countermeasure: Mandatory Trace Mocking & Vector Freezing. Whenever a production trace is flagged for evaluation promotion, the telemetry ingestion pipeline must automatically snapshot and freeze the exact tool responses and retrieved vector chunks into an immutable, deterministic mock fixture.
- Circumstance B: Unresolvable Expert Disagreement
- The Failure: Credentialed domain specialists (such as two senior attorneys or clinical department heads) cannot agree on what constitutes correct behavior or a calibrated refusal.
- The Countermeasure: The "Consensus Floor or Escalate" Rule. If accredited SMEs cannot achieve $\ge 80\%$ agreement, the workflow must not be autonomously automated. The system invariant becomes: "If ambiguous condition $X$ occurs, the model must trigger a structured escalation state (
decision_status: escalate) for human triage."
- Circumstance C: Low-Volume Enterprise Workflows (<50 sessions/week)
- The Failure: In bespoke enterprise tools with low traffic, behavioral friction clustering lacks statistical significance to surface reliable failure boundaries.
- The Countermeasure: Shift discovery weight upstream to Pre-Deployment Failure Mode and Effects Analysis (FMEA) and credentialed expert red-teaming panels before waiting on production telemetry.
3. What would a skeptical customer, client, or colleague object to?
- Objection 1: "Why are you writing complex evaluation suites when you could simply lock down the product UI or keep a human in the loop permanently?"
- The Resolution: Human review queues do not scale linearly, and fatigued reviewers suffer from alert fatigue, routinely approving plausible hallucinations without checking the source text after reviewing dozens of fluent outputs. UI confirmation modals also shift liability onto the end user without protecting customer trust. Automated boundary invariants catch defects before they reach the user interface.
- Objection 2: "Won't generating 20–40 boundary tests for every bug ticket explode our CI build times and token costs?"
- The Resolution: The Prioritization Rubric prevents test bloat by restricting boundary expansion strictly to Tier 3+ defects. Tiers 1 and 2 are logged in a Decision Journal or covered by lightweight schema checks, and boundary suites run on nightly regression schedules to avoid blocking individual git commits.
4. Which alternative deserves more consideration?
- Aggressive Capability Pruning & Deterministic Routing (Agent Downgrading): When a probabilistic model struggles with high-liability edge cases, remove the capability from the model entirely.
- If an agent repeatedly hallucinates statutory tax cutoffs, downgrade the agent: have the LLM extract the raw inputs (company location, revenue, tax year), pass them to a verified Python calculation script, and return the deterministic output.
- The Operating Principle: Solve deterministic problems by subtracting complexity from the model and executing deterministic code.
5. What am I assuming that may not be true?
- Assumption 1: System state is reconstructable.
- The Reality: Many production setups fail to dynamically version prompt templates, pin model sub-versions, or capture temperature and random seeds.
- The Safeguard: The Immutable Trace Schema. Every model call must log
(prompt_template_hash, model_version_id, temperature, seed, retrieved_chunk_ids)at the boundary. Traces lacking this metadata cannot enter the evaluation flywheel.
- Assumption 2: Synthetic perturbations preserve the true failure mechanism.
- The Reality: Automated perturbation scripts often generate superficial synonyms that exercise trivial variations while missing the core reasoning defect.
- The Safeguard: Perturbations must test structural and semantic variations alongside lexical changes by altering clause order, inverting active and passive voice, and injecting contradictory distractors verified by human spot-checks.
- Assumption 3: Prioritization rubrics remain objective under delivery pressure.
- The Reality: Under impending release deadlines, product teams face pressure to downgrade a Tier 3 Trust Breach to a Tier 2 Functional Degradation to bypass mandatory eval creation.
- The Safeguard: Separation of Auditing Powers. In high-liability environments, severity tier classifications must be signed off by a QA Lead, Risk Officer, or credentialed SME so delivery pressure cannot compromise the test suite.
Next in the Series
With the failure isolated architecturally, prioritized against maintenance taxes, and mapped into parameterized boundary invariants, the engineering team commits these assets into an operational release pipeline.
In Part 3: Tiered CI/CD Portfolios, Anti-Gaming, and the Minimum Viable Loop, we detail:
- Structuring the 6-Tier Evaluation Portfolio across commit, release, and audit cadences.
- Managing the credentialed expert bandwidth bottleneck.
- Detecting and counteracting telemetry gaming and Goodhart distortions.
- Running the 9-Step PM Decision Loop and executing the 3-move Minimum Viable Flywheel.
One-Line Synthesis
Durable evaluation suites operate as architectural specifications: they isolate deterministic logic into verified software gates, filter operational incidents through audited risk tiers, and map failure boundaries into immutable CI/CD invariants.
Frequently Asked Questions
Why must architectural isolation precede evaluation coverage?
If a defect stems from arithmetic, date math, or deterministic state logic, adding an LLM judge merely covers an architectural flaw with stochastic evaluation. Engineering squads must strip deterministic logic from the model first, then evaluate remaining model-mediated interfaces like extraction precision, intent routing, and contextual explanations.
Why is reconstructability preferable to reproducibility for LLM evals?
Probabilistic systems depend on non-deterministic sampling, dynamic retrieval corpora, and transient external tools. A severe defect may not reproduce identically on every run. Reconstructability measures whether the team can capture enough system state (model checkpoint, prompt template, retrieved chunks, tool payloads, and policy version) to isolate and control the risk.
What are the four promotion gates of the Evaluation Prioritization Rubric?
To earn permanent coverage, a candidate failure must pass: (1) Severity Tier 3 or higher, (2) State Reconstructability, (3) Structural Generalizability across user inputs, and (4) Behavioral Specifiability by domain experts.
What is the purpose of an Eval Spec Sheet?
An Eval Spec Sheet (Decision Card) operationalizes a verified incident into machine-verifiable product invariants, explicit state transitions, hard exposure ceilings, and a concrete multi-case failure boundary test matrix.
Subscribe to the Architecture of Proof Dispatch
Rigorous, decision-forcing systems engineering and AI governance monographs for technical leaders. Delivered periodically, zero spam.