Forward Deployed Product Manager

6. Evaluation, Safety & Production Readiness

Prove quality, safety, governance, observability and production readiness.


6.1Eval design & reading (link to this section)

Define what "working" means, build an evaluation set from customer data and interpret results.

Eval design & reading

Define "working" before you try to measure it.

The Core Idea

Building an evaluation set means gathering real customer data as test cases and defining what a correct or acceptable answer looks like for each — before you can honestly say a system is "working."

Building From Real Data

Test cases pulled from the customer's actual usage patterns catch failure modes a synthetic or generic test set never surfaces — the messy, specific edge cases real users produce.

Reading Results by Category and Severity

A high aggregate score can hide a small number of severe failures. Read results broken down by category and severity, not just an overall percentage — a 95% pass rate is meaningless if the failing 5% are the highest-stakes cases.

Where This Shows Up in the Field

An evaluation set showing 95% overall pass rate can still mean the system isn't ready — if the failing cases are concentrated in exactly the scenario the customer cares most about.

6.2Evaluation methodology (link to this section)

Offline vs online evaluation, golden datasets, human evaluation, automated graders, regression testing and acceptance thresholds.

Evaluation methodology

Offline testing and live production behavior are not the same signal.

The Core Idea

Offline evaluation runs against a fixed test set before deployment. Online evaluation monitors real production behavior after launch. They answer different questions and neither replaces the other.

Offline vs. Online

Offline catches known failure modes before anyone is affected. Online catches the failure modes you didn't anticipate — the ones real, unpredictable usage surfaces that a fixed test set never could.

Offline eval

  • Runs before deployment
  • Against a fixed test set
  • Catches known failure modes

Online eval

  • Monitors live production
  • Real, unpredictable usage
  • Catches what you didn't anticipate

(Side-by-side split)

Setting Acceptance Thresholds

A threshold should be set deliberately based on the use case's risk tolerance — a customer-facing legal summary needs a much higher bar than an internal draft-generation tool. The same threshold across every feature ignores that risk isn't uniform.

Where This Shows Up in the Field

Two features at the same company legitimately warranting different acceptance thresholds is normal, not inconsistent — the deciding factor is what happens when each one is wrong.

6.3Prompt injection & adversarial testing (link to this section)

Jailbreaks, indirect injection, data exfiltration and tool abuse. Read and interpret red-team results.

Prompt injection & adversarial testing

Someone will try to break this. Know what that looks like.

The Core Idea

Prompt injection attempts to override a system's instructions through crafted input — either directly from the user, or indirectly hidden inside content the model retrieves and processes.

Direct vs. Indirect Injection

Direct injection is an explicit override attempt typed by the user. Indirect injection is harder to catch — malicious instructions hidden inside a retrieved document, email, or webpage the model processes as part of its normal workflow.

Reading Red-Team Severity

You don't need to run the red-team exercise yourself, but you need to read results by severity: a jailbreak producing mildly off-brand text is a different risk tier than one that exfiltrates another customer's data.

Where This Shows Up in the Field

A RAG system that retrieves and processes external content (Section 5) is exposed to indirect injection risk by design — the retrieval pipeline itself is a potential attack surface, not just the chat input box.

6.4Guardrails, fallback & human-in-the-loop (link to this section)

Decide what happens when the system fails. Review queues, escalation paths and graceful degradation.

Guardrails, fallback & human-in-the-loop

Deciding what happens when the system fails, before it fails.

The Core Idea

Most demo effort goes into the happy path. Most production-critical design effort goes into what happens when the happy path doesn't hold — because at scale, it eventually won't.

Designed Responses to Failure

Guardrails catch outputs before they reach the user. Fallback paths activate when the primary approach fails. Review queues route uncertain cases to a human. Escalation paths handle high-stakes situations. Graceful degradation prevents a hard crash.

What happens when the happy path breaks?

Bad outputGuardrail catches it
Primary approachfailsFallback path activates
Case isuncertainReview queue (human)
High-stakessituationEscalation path

(Decision tree)

Where This Shows Up in the Field

A single test run rarely exercises failure paths — they only get proven out under real, sustained production load, which is exactly why they need to be designed deliberately rather than assumed to work.

6.5Token economics & model economics (link to this section)

Tokens, context windows, caching, inference cost and understanding why an AI deployment suddenly costs 3× more.

Token economics & model economics

Why a deployment can suddenly cost three times more overnight.

The Core Idea

Inference cost scales with tokens processed. A change that seems small — like increasing retrieved context per query — can multiply cost across production volume in ways that aren't obvious from a single test call.

What Actually Drives Cost

Input tokens (including retrieved context from RAG), output tokens, and per-token pricing all multiply against request volume. A per-request increase that looks negligible in one test call compounds dramatically at scale.

The 3x Cost Surprise, Explained

CauseWhy it's easy to miss
Retrieval returning more context than neededInvisible in a single manual test
A model upgrade with higher per-token pricingFramed as a quality improvement, cost overlooked
No caching for repeated contextRedundant cost paid on every request
Usage volume growing faster than anticipatedCost scales with volume no one tracked closely

Where This Shows Up in the Field

A deployment's cost tripling after a seemingly minor retrieval setting change is a scale problem, not a billing error — the fix is auditing what changed in context size per request, not assuming something broke.

6.6Model selection & versioning (link to this section)

Select models for production and manage upgrades, deprecation, regressions and migration.

Model selection & versioning

Models change underneath you. Plan for it.

The Core Idea

Production model selection isn't a one-time decision. Providers deprecate old versions, release upgrades that can shift behavior subtly, and change pricing — managing this over time is an ongoing responsibility, not a launch-day task.

Why "It Worked Before" Isn't Enough

A model upgrade can silently change output style or reliability on your specific use case, even when the provider frames it as a strict improvement overall. General improvement claims don't guarantee improvement on your specific task shape (Section 4's model selection lesson).

The Discipline

Track model cards for changes, re-run your own evaluation set against any new version before switching production traffic, and have a migration plan rather than being forced into an emergency one when a version gets deprecated.

Where This Shows Up in the Field

A provider announcing a new model as a strict improvement is not a green light to switch immediately — re-testing against your own eval set first is what catches a use-case-specific regression before customers do.

6.7Governance & auditability (link to this section)

Approval gates, audit trails, policy enforcement, access control and production approval. Ship: eval + governance specification.

Governance & auditability

Proving the system behaved correctly, after the fact.

The Core Idea

Enterprise deployment requires approval gates before production release, audit trails showing what the system did and why, and clear access control — correct behavior in the moment isn't enough for enterprise trust.

Approval Gates & Access Control

Who approves a production change, and who can view sensitive outputs or alter configuration, need to be explicit — not assumed defaults that no one actually decided on.

Audit Trails as Proof, Not Paperwork

Being able to reconstruct and prove what the system did after the fact is what compliance, incident review, and customer trust actually depend on — not just correct behavior at the time.

Where This Shows Up in the Field

When a customer's compliance team asks "can you prove the system didn't do X on this date," the audit trail is the entire answer — there's no substitute for it after the fact.

Ship: Eval + Governance Specification

Combine the evaluation approach from earlier in this section with a governance specification: who approves production changes, what gets logged, how long logs are retained, and who can access them.

6.8Observability (link to this section)

Logs, traces, latency, errors, cost, retrieval quality, model behaviour and workflow health.

Observability

You can't fix what you can't see.

The Core Idea

Production observability covers logs, traces, latency, errors, cost, and retrieval quality — visible in near real-time, not reconstructed after a customer complaint.

Logs vs. Traces

A log confirms something happened. A trace shows the full path of a request through the system — retrieval, prompting, tool call, model response — pinpointing exactly where in a multi-step pipeline something went wrong.

Logs

  • Confirm something happened
  • Isolated per event
  • Good for a single failure

Traces

  • Show the full request path
  • Retrieval → prompt → tool → response
  • Pinpoint exactly where it broke

(Side-by-side split)

Where This Shows Up in the Field

Debugging a multi-step RAG or agent pipeline (Section 5) with only isolated error logs means guessing which stage failed — a full trace answers that question directly.

6.9Incident response (link to this section)

Diagnose production failures, determine severity, rollback/fallback, communicate with stakeholders and conduct an RCA. Ship: incident RCA.

Incident response

The production failure will happen. How you respond is the actual test.

The Core Idea

Responding to a production failure means diagnosing the cause, determining real severity, executing rollback to restore service, communicating clearly throughout, and conducting a root cause analysis afterward.

Severity Before Panic

Real severity — not assumed, panic-level severity — determines the right response speed. Treating every incident as maximally urgent burns trust and attention that a genuinely critical incident later needs.

What Makes an RCA Actually Useful

A good RCA is specific: what happened, when detected, the immediate fix, the true root cause, and concrete preventive changes. "We'll be more careful" prevents nothing — a specific root cause and a specific fix does.

Where This Shows Up in the Field

This closes the loop with Section 5's RAG diagnosis and Section 9's live diagnosis under pressure — the same methodical instinct, now applied to writing up what happened after the fact so it doesn't happen the same way twice.

Ship: Incident RCA

Document what happened, when it was detected, the immediate fix, the true root cause, and specific preventive changes — blameless and specific, not a vague commitment to be more careful.

Practise this chapter in the workspace

Reading is the map. Every section above also runs as a hands-on workspace session with tools, exercises and a recap quiz.

Start Learning for Free