Shipping quality AI applications with Braintrust

Hands-on workshop

v0.1.0

Confidential

Agenda

Section Part Focus Time
Background The production gap, common mistakes, what you will learn ~10 min
Workshop 0. Setup Environment, agent intro, architecture walkthrough ~10 min
1. Build the Agent Scaffold → tools → 5-stage agent workflow ~20 min
2. Observe Add Braintrust tracing ~10 min
3. Evaluate Dataset, scorers, offline evals ~15 min
4. Deploy & Manage Managed prompts, tools, online scoring ~25 min
5. Remediate Edge case → fix → regression test ~15 min
Wrap up Summary, key takeaways, next steps, Q&A ~15 min
Confidential

Who this workshop is for

ENGINEER
AI / product engineers
Building LLM-powered features and shipping them to production
APPLIED AI
Applied AI teams
Moving prototypes to production with repeatable quality
PLATFORM
Platform / infra teams
Supporting LLM applications at scale across the org
LEADERSHIP
Technical product leaders
Responsible for AI reliability and production quality
Especially useful if you already have a prototype and need to make it trustworthy.
Confidential

Background

Why AI teams struggle to get to production

Confidential

The GenAI production gap

95% of GenAI pilots fail to scale beyond proof-of-concept — MIT/NANDA 2025
80% of AI projects fail to deliver business value — RAND Corporation
89% of scaling failures trace to five gaps — top three: integration complexity, output quality at volume, and monitoring & observability — Digital Applied 2026
The bottleneck is the operational skill set: evaluation, observability, and systematic improvement.

xkcd.com/2451 (CC BY-NC 2.5)

Confidential

Common mistakes teams make when shipping AI

Demo-driven shipping
Launching after 3-5 impressive demos without systematic testing
Monolithic prompts
One giant prompt handling classification, policy, and response
Logs as observability
Treating raw logs as sufficient insight into model behavior
Fix without coverage
Patching failures without adding eval cases to prevent regression
Blind LLM judging
Running LLM judges on everything without a cost strategy
Key takeaway: Most production issues trace back to workflow gaps.
Confidential

The hard part is not the prototype

Getting a demo to work
Knowing whether it is reliable
Knowing what changed when quality drops
Improving it systematically
Straightforward Hard Harder The actual job
The feedback loop we build today is what lets an AI feature survive production.
Confidential

What changes between a demo and a production AI system?

Demo / prototype Production AI system
One prompt that seems to work Explicit workflow with clear responsibilities
Judged on a few hand-picked examples Measured on representative datasets
Failures are anecdotal Failures are captured and replayed
Prompt changes are ad hoc Changes are managed and evaluated
Little visibility into behavior Traces show the full execution path
Fixes are one-off patches Fixes become regression tests

This workshop is about crossing that gap deliberately.

Confidential

What you will learn

Build a tool-using agent and refactor it into a staged AI workflow
Instrument it with Braintrust tracing for full execution visibility
Create an eval dataset with representative cases and scorers
Move prompts and tools into Braintrust managed objects
Inspect failed traces and isolate which stage broke
Turn edge cases into regression tests that build assurance over time
You will leave with a repeatable workflow for building assurance into your AI systems — observe each stage, measure what matters, improve systematically.
Confidential

Why Braintrust?

Braintrust is the infrastructure that makes AI measurable and improvable.
It sits between your application and your models - where data, observability, and evals come together so you can ship with confidence.

Data
Turning traces and outputs into structured evaluation datasets
Observability
Understanding model behavior in production
Evals
Defining what "good" means and measuring against it
Iteration
Comparing prompts, models, and versions to improve quality
Quality gates
Automated checks that prevent regressions from reaching production
Workflow acceleration
AI-powered tools that speed up the entire development cycle
Teams at Notion, Stripe, Zapier, Vercel, and Ramp use Braintrust to ship quality AI products at scale.
Confidential

The Braintrust flywheel

Trace → see what happened in production

Dataset → capture cases (seed + real-world edge cases)

Eval → measure quality systematically

Improve → fix prompts, logic, tools

Test → confirm the fix, check for regressions

Key takeaway: This is a continuous loop that compounds with every cycle.
Confidential

Part 0: Setup

Environment, agent intro, and architecture

Confidential

Getting started

Environment: macOS, Linux, or WSL on Windows

Accounts & API keys:

Tooling: mise + make (recommended), or Node.js v22 + pnpm v10.28.2

Workshop repo: Scan or clone:

git clone https://github.com/giranm/shipping-quality-ai-applications-workshop.git

Confidential

Helpr: Support triage agent

Helpr is a fictional support triage agent built for this workshop.
It is designed to teach production AI patterns - not as a production-ready application.

Given a support ticket, it produces:

Field Example
category billing
severity high
should_escalate true
escalation_reason Finance workflow blocked for enterprise customer
recommended_action Check plan migration and export permissions
customer_reply "Thanks for reporting this. I can see..."
confidence 0.86
Confidential

The 5-stage agent workflow

Confidential

The 5-stage agent workflow

Confidential

The 5-stage agent workflow

Confidential

The 5-stage agent workflow

Confidential

Checkpoint map

# git checkout workshop/... Focus
00 00-starter Scaffold & environment setup
01 01-basic-agent Single LLM call + structured output
02 02-add-local-tools Deterministic tools
03 03-specialist-stages 5-stage agent workflow
04 04-add-tracing Braintrust observability
05 05-add-dataset-and-evals Offline evaluation + scorers
06 06-managed-prompts-and-parameters Braintrust prompt management
07 07-managed-tools Braintrust tool management
08 08-online-scoring Live quality signals
09a 09a-prod-failure Replay production failure
09b 09b-remediation Fix + regression test
10 10-final Polish & review

Each checkpoint is a runnable state of the app. Fall behind? Check out the next branch.

Confidential

Part 1: Build the agent

Checkpoints 00 → 03

Confidential

Checkpoint 00: Scaffold → 01 basic agent

Goal: Get a plausible result from a single LLM call

  • One prompt, one model call, structured output via Zod schema
  • No tools, no stages, no tracing
  • This is where many teams stop
Key takeaway: A working demo is not evidence of reliability.
Confidential

Pseudocode: Basic agent

async function runSupportTriage(input: TicketInput): Promise<TriageResult> {
  const response = await client.responses.parse({
    model,
    instructions: buildTriageSpecialistSystemPrompt(),
    input: [{ role: "user", content: formatTicketMessage(input) }],
    text: { format: zodTextFormat(triageResultSchema, "triage_result") },
  });

  return response.output_parsed;
}

One function. One model call. Structured output from day one.

Confidential

Try it: Submit a ticket

Run pre-built tickets:

make demo

Or submit your own interactively:

make ticket

Type your ticket description, then press Enter through the follow-up prompts - customer tier, product area, and account ID are auto-inferred from your text and default automatically.

Example output:

Field Value
Category billing
Severity high
Escalate yes
Confidence 92%

Plus: escalation reason, recommended actions, and a draft customer reply.

Confidential

Checkpoint 02: Add local tools

Goal: Augment the model with deterministic context

Three local tools:

Tool Purpose
searchHelpCenter(query) Relevant article snippets
lookupRecentAccountEvents(id) Recent account changes
createEscalation(reason) Deterministic side effect
Key takeaway:
As soon as the app can call tools, the number of ways it can fail increases.
Confidential

Pseudocode: With tools

async function runSupportTriage(input: TicketInput): Promise<TriageResult> {
  const evidence = {
    help_center_results: searchHelpCenter(input.ticket),
    recent_account_events: lookupRecentAccountEvents(input.account_id),
  };

  const response = await client.responses.parse({
    model,
    instructions: buildTriageSpecialistSystemPrompt(),
    input: [{ role: "user", content: formatTicketWithEvidence(input, evidence) }],
    text: { format: zodTextFormat(triageResultSchema, "triage_result") },
  });

  if (response.output_parsed.should_escalate) {
    createEscalation(response.output_parsed.escalation_reason);
  }

  return response.output_parsed;
}
Confidential

Checkpoint 03: Specialist stages

Goal: Replace the monolith with explicit handoffs

Stage Type Responsibility
collect-context deterministic Gather help articles + account events
triage-specialist LLM + tools First classification + severity judgment
policy-reviewer LLM Approve or override the draft
reply-writer LLM Draft the customer-facing reply
finalize-result deterministic Merge decisions + escalate if needed
Key takeaway: Explicit stages are more debuggable than opaque monoliths.
Confidential

Pseudocode: Staged workflow

async function runSupportTriage(input: TicketInput): Promise<TriageResult> {
  const evidence    = await collectContext(input);
  const triage      = await runTriageSpecialist({ input, evidence, model });
  const reviewed    = await runPolicyReviewer({ input, evidence, draft: triage, model });
  const reply       = await runReplyWriter({ input, reviewedDecision: reviewed, model });

  return finalizeResult({ reviewedDecision: reviewed, reply });
}

Five lines. Each stage has a single responsibility.

When something goes wrong, you know exactly which stage to investigate.

Confidential

Code along: Build the agent

Checkpoints 00 through 03

git checkout workshop/00-starter            # start here
git checkout workshop/03-specialist-stages  # catch up here
make setup
RUNTIME_MODE=local make demo
Confidential

Part 2: Observe

Checkpoint 04: Braintrust tracing

Confidential

Checkpoint 04: Add Braintrust tracing

Goal: Make every stage, tool call, and model call visible

✓ Full execution path for every request
✓ Nested stage spans with inputs, outputs, metadata
✓ Model call details: latency, tokens, cost
✓ Tool call details: what was called, what it returned
✓ Tags for filtering: entrypoint, runtime_mode, stage names
Key takeaway: The final answer is not enough.
Production debugging requires the full execution path.
Confidential

Pseudocode: Tracing

const run = await tracedWorkflow("support-triage", input, async (rootSpan) => {
  const evidence = await withChildSpan(rootSpan, "collect-context",
    () => collectContext(input));

  const triage = await withChildSpan(rootSpan, "triage-specialist",
    () => runTriageSpecialist({ input, evidence, model }));

  const reviewed = await withChildSpan(rootSpan, "policy-reviewer",
    () => runPolicyReviewer({ input, evidence, draft: triage, model }));

  const reply = await withChildSpan(rootSpan, "reply-writer",
    () => runReplyWriter({ input, reviewedDecision: reviewed, model }));

  return withChildSpan(rootSpan, "finalize-result",
    () => finalizeResult({ reviewedDecision: reviewed, reply }));
});

Same workflow. Each stage now wrapped in a traced span.

Confidential

How to read a trace

root span ─── overall input, final result, cost, latency
├── collect-context ──── deterministic retrieval
├── triage-specialist ── first model judgment
├── policy-reviewer ──── approval or override
├── reply-writer ─────── customer-facing response
└── finalize-result ──── merge + escalation

Interpretation guide

What you see What it means
collect-context is weak Retrieval / tooling problem
Specialist weak, reviewer fixes it Reviewer is adding value
Reviewer rewrites everything Specialist prompt is weak
Reply drifts from reviewed decision Reply stage prompt is weak
finalize-result is wrong Business logic bug
Confidential

Code along: Add tracing

Checkpoint 04

git checkout workshop/04-add-tracing    # catch up here
RUNTIME_MODE=local make demo

Then open Braintrust → Logs → click the trace → expand each stage.

Confidential

Part 3: Evaluate

Checkpoint 05: Dataset & offline evals

Confidential

What does "good enough to ship" mean?

For our Helpr support triage app, quality means:

✓ Correct category on common support cases
✓ No low-severity outcome for enterprise-blocking incidents
✓ Escalation decisions align with policy
✓ Customer reply stays faithful to the final reviewed decision
✓ Structured output is always valid
✓ Changes improve target cases without breaking unrelated ones
Evals are how you turn these expectations into something you can test repeatedly.
Confidential

Checkpoint 05: Dataset & offline evals

Goal: Stop evaluating by intuition - measure quality systematically

Seed dataset covers easy, medium, and hard cases: straightforward routing, ambiguous severity, hidden urgency behind calm wording, and conflicting tool signals.

Two types of scorers:

  • Deterministic (code-based) - exact match on category, severity, escalation; schema validation; confidence range checks. Fast, cheap, run on every case.
  • LLM-as-a-Judge - evaluates customer reply quality against a rubric (tone, accuracy, faithfulness to the reviewed decision). Catches nuance that code cannot.
make seed-dataset && RUNTIME_MODE=local make eval
Key takeaway:
The point of evals is to know whether the system is safe to change.
Confidential

Part 4: Deploy & manage

Checkpoints 06 → 08

Confidential

Why AI teams need a shared platform?

Tracing and evals can start locally. But once multiple people are involved, the workflow needs a shared platform.

✓ Shared prompt management — everyone edits the same source of truth
✓ Runtime configurability — change model or parameters without redeploying
✓ Reproducibility — every change is versioned and auditable
✓ Safer iteration — eval before you ship, not after
✓ Auditability — know who changed what and when
This is the point where an individual workflow becomes an organizational capability.
Confidential

Checkpoint 06 & 07: Managed prompts, parameters & tools

At this point, the technical workflow works. Now we make it manageable by a team.
Move runtime control into Braintrust without losing reproducibility

What moves Where it goes
Prompt text (3 stages) Managed prompts: helpr-triage-specialist, helpr-policy-reviewer, helpr-reply-writer
Model selection Parameter: helpr-runtime-config
Retrieval tools Managed tools on triage prompt
Escalation tool Managed tool, app-controlled execution

Two runtime modes

local - prompts in code, tools in code
managed - prompts from Braintrust, tools from Braintrust, model from parameter

make setup-braintrust
RUNTIME_MODE=managed make demo
Confidential

Checkpoint 08: Online scoring

Goal: Live traces carry quality signals, not just execution details

Offline evals Online scoring
Known cases with expected outputs Live traffic, no expected output
Run on demand Automated on every trace
Dataset rows Production spans

What we publish:

  • Deterministic scorers - schema validity, required fields, confidence range
  • LLM-as-a-Judge scorers - triage quality, reply tone
  • Automation rules - helpr-root-quality-online, helpr-reply-quality-online, helpr-stage-structure-online

After this: every trace carries structured quality signals automatically.

Workshop vs production: Here we run LLM-as-judge on every trace for visibility.
In production, you would sample 5–10% of traces for LLM-based scoring to manage costs; deterministic scorers can still run 100%.
Confidential

Part 5: Remediate

Checkpoints 09a & 09b

Confidential

Checkpoint 09a: The production failure

Production ticket

"Not urgent, but our CFO cannot export invoices before tomorrow's board reporting."

  • What the model sees: calm wording, no explicit urgency
  • What the business needs: high severity, immediate escalation

This is the gap between prototype quality and production quality.

Code checkpoint:

RUNTIME_MODE=managed FAILURE_MATCH="board reporting" make replay-failure

Then open the trace and diagnose which stage failed.

Confidential

Pseudocode: Remediation loop

// 1. Replay and observe
await replayFailure(failure);            // Inspect trace: which stage failed?

// 2. Baseline the broken case
await runEval({ scenario: "calm_wording_high_impact" });

// 3. Fix the root cause (usually policy-reviewer prompt)
await tightenReviewerPrompt();

// 4. Confirm the targeted fix
await runEval({ scenario: "calm_wording_high_impact" });

// 5. Check for regressions across all cases
await runEval({ scenario: "all" });

In practice:

RUNTIME_MODE=managed EVAL_SCENARIO=calm_wording_high_impact make eval   # baseline
# ... edit prompt in Braintrust UI ...
RUNTIME_MODE=managed EVAL_SCENARIO=calm_wording_high_impact make eval   # confirm fix
RUNTIME_MODE=managed make eval                                          # full regression
Confidential

Code along: Failure replay & remediation

Checkpoints 09a and 09b

git checkout workshop/09a-prod-failure        # replay failures
git checkout workshop/09b-remediation         # apply fix + eval
RUNTIME_MODE=managed make replay-failure
RUNTIME_MODE=managed EVAL_SCENARIO=calm_wording_high_impact make eval
Confidential

Final remarks

Confidential

What you built today

Part What you did Checkpoint
Build Went from empty scaffold to a 5-stage agent workflow with structured output, tools, and specialist stages 00 → 03
Observe Added Braintrust tracing so every LLM call, tool invocation, and stage is recorded 04
Evaluate Created a seed dataset and ran offline evals with automated scorers 05
Deploy Moved prompts, parameters, and tools into Braintrust managed mode; added online scoring 06 → 08
Remediate Replayed a production failure, diagnosed it with traces, fixed the prompt, and proved the fix with a regression eval 09a → 09b

You now have the full feedback loop:
build → observe → evaluate → deploy → remediate → repeat

Confidential

Key takeaways

01
Prototype ≠ production
A working demo is not evidence of reliability
02
Explicit stages
Separate responsibilities make failures debuggable
03
Observability is not optional
Traces show what happened. Evals measure what matters.
04
Failures are eval seeds
Do not wait for a perfect dataset before starting
05
The feedback loop compounds
Observe → Measure → Improve → Test → Repeat
Confidential

How to apply this with your team

1 Pick one existing AI workflow The one closest to production
2 Add end-to-end tracing See what is actually happening
3 Collect 10-20 real edge cases Or risky edge cases
4 Build a small eval set With deterministic scorers first
5 Route every edge case back Into the dataset
Start with one loop. Do not wait for a perfect platform rollout.
Confidential

Call to action

Take the feedback loop back to your team.
Start tracing, evaluating, and improving your AI applications today.

Learning resources

Next steps

  • Reach out to your Braintrust account team for onboarding support and enterprise features
  • Join the Braintrust Discord for Q&A and best practices
Confidential

Thank you

Questions?

Confidential

Appendix

Confidential

Troubleshooting & FAQ

Environment issues

  • mise trust && mise install && make setup - resets everything
  • Node 22 + pnpm 10.28.2 are the only hard requirements if not using mise

API keys

Catching up

  • Every checkpoint is a git checkout workshop/<checkpoint> away
  • Each branch is a fully runnable state - no need to complete previous steps

Common eval pitfalls

  • Eval dataset too small → noisy scores, false confidence
  • Only testing happy paths → misses the edge cases that matter
  • Skipping online scoring → blind to production quality drift
Confidential

Useful commands reference

Command What it does
make setup Install all dependencies
make demo Run the agent with a sample ticket
make setup-braintrust Push prompts, tools, parameters to Braintrust
RUNTIME_MODE=managed make demo Run in managed mode (prompts from Braintrust)
make eval Run full eval suite
EVAL_SCENARIO=X make eval Run a specific eval scenario
make replay-failure Replay a production failure case
make seed-dataset Seed the eval dataset
Confidential

Speaker notes: Welcome everyone. Over the next ~110 minutes we are going to build a support triage agent from scratch, then instrument it with tracing, evals, managed prompts, and an edge-case remediation loop. By the end you will have a working reference app and a repeatable mental model for shipping AI features with assurance.

Speaker notes: This is the running order. We will alternate between slides and live coding. Each part builds on the previous one. The total is around 110 minutes with natural break points between parts.

Speaker notes: Quick self-orientation. Most people in the room will fall into one of these categories. The techniques apply whether you are building agents, RAG systems, or any LLM-powered workflow.

Speaker notes: Before we get hands-on, let's look at the landscape. Why do so many AI projects stall between prototype and production, and what does that mean for how we build?

Speaker notes: These are not small-sample anecdotes. MIT surveyed 350+ employees and analysed 300 public deployments. The Digital Applied survey of 650 enterprise tech leaders found that the teams who successfully scale invest more in evaluation infrastructure and monitoring than in model selection. This workshop teaches that operational skill set.

Speaker notes: This is deliberately opinionated. These are patterns we see repeatedly across teams. The workshop is designed to address each of these directly.

Speaker notes: Frame the workshop. Most teams stop at the prototype. A working demo is not evidence of reliability. This workshop covers everything after that first demo moment - tracing, evaluation, managed deployment, and edge-case remediation.

Speaker notes: This table is the conceptual backbone of the workshop. Every row maps to a specific section we will build together.

Speaker notes: These are the concrete skills. The tools matter, but the mental model is what you take with you: observe, measure, improve, test.

Speaker notes: Make the Braintrust value prop explicit. This is not a generic observability tool - it is a complete quality platform that covers the full lifecycle from tracing to evaluation to managed deployment.

Speaker notes: This is the core mental model. Every production failure becomes a dataset row. Every prompt change gets evaluated. The flywheel compounds -- the more you use it, the more coverage you have.

Speaker notes: Before we start building, let's make sure everyone is set up and walk through the agent we will be building and its architecture.

Speaker notes: Let's get set up first. Scan the QR code or clone the repo now. The README has full instructions. mise trust && mise install && make setup gets you from zero to running. If you prefer not to use mise, Node 22 and pnpm are the only hard requirements. Get this running while we cover the intro.

Speaker notes: Helpr is purely educational -- it exists to give us a realistic enough domain to demonstrate production AI patterns without requiring specialised knowledge. Support triage is relatable: everyone has filed a ticket. The structured output covers classification, escalation logic, customer-facing text, and a confidence score -- just enough complexity to exercise tracing, evals, managed prompts, and remediation. Emphasise that nobody should ship this as-is; the value is the workflow, not the app.

Speaker notes: We start with a deterministic entry point. The ticket comes in and collect-context gathers evidence -- help centre articles, recent account events. No LLM involved yet, just data assembly.

Speaker notes: Now the LLM stages. Triage-specialist classifies and routes. Policy-reviewer catches over-reaction and under-reaction. Reply-writer drafts the customer response. Three separate prompts, each with a single responsibility -- much easier to debug than a monolith.

Speaker notes: The deterministic exit. Finalize-result assembles the structured output. The escalation decision is a code check, not an LLM guess. If escalation is needed, it is a deterministic side effect. Deterministic bookends keep the business contract stable.

Speaker notes: Finally, Braintrust wraps the whole thing. Traces give full execution visibility. Prompts and Tools are managed centrally so you can update without redeploying. Evals and online scorers measure quality continuously. This is the complete production-ready architecture.

Speaker notes: Each checkpoint is a git branch under workshop/. If you fall behind at any point, checkout the next branch and catch up immediately. Phase 09 has two sub-checkpoints: 09a replays the failure, 09b applies the fix and runs regression evals. The terminal commands will be on screen when we reach each phase.

Speaker notes: Let's start by building the agent itself. We will go from an empty scaffold to a full 5-stage agent workflow.

Speaker notes: We start with a system prompt and structured output. The result will look reasonable. That is exactly the trap -- it looks good on one example, but we have no idea if it is reliable across the range of real tickets.

Speaker notes: This is the entire agent at checkpoint 01. Notice the Zod schema -- we get typed structured output immediately. Simple, but we have no visibility into why it made its decisions.

Speaker notes: Let the room try this now. make demo runs four pre-built tickets end-to-end. make ticket is interactive - type a ticket, press Enter to accept the inferred defaults for customer tier, product area, and account. The output is a fully structured TriageResult with category, severity, escalation, confidence, reasoning, recommended actions, and a draft reply.

Speaker notes: Tools are deterministic and use local sample data so the workshop stays stable. But even with deterministic tools, the model can ignore them, misinterpret the results, or fail to act on critical signals like a billing_admin_role_removed event.

Speaker notes: We gather context before the model call and pass it in. Escalation is a deterministic side effect. Still a monolith -- one big prompt making all decisions at once.

Speaker notes: This is the architectural shift. Instead of one prompt making every decision, we have five stages with clear responsibilities. The policy-reviewer is the safety net. Separating decision from reply lets you improve wording and policy independently.

Speaker notes: This is the shape that stays for the rest of the workshop. The workflow is explicit. Each stage can be traced, tested, and improved independently.

Speaker notes: Everyone should be coding now. Walk through the key changes live. If anyone falls behind, checkout 03-specialist-stages to catch up before we add tracing.

Speaker notes: The agent works. Now we need to see inside it. Without observability, debugging is guesswork.

Speaker notes: We wrap each stage in a traced span. The root span carries ticket metadata. Stage spans carry prompt mode and reviewer action. After this checkpoint, run a ticket and open Braintrust to see the trace.

Speaker notes: The structure of the code mirrors the structure of the trace tree in Braintrust. tracedWorkflow creates the root span. withChildSpan creates nested spans for each stage.

Speaker notes: This is the diagnostic framework. When something goes wrong, the trace tells you which stage to fix. Bookmark this slide -- you will use it during the failure replay later.

Speaker notes: After running make demo, open Braintrust and find the trace. Expand each stage. Notice the model call details, the tool calls, and the metadata. This is what observability looks like for an AI system.

Speaker notes: We can see inside the agent now. Next we need to measure its quality systematically.

Speaker notes: Define success before introducing measurement. This slide makes the eval section feel inevitable rather than optional.

Speaker notes: The seed dataset has representative test cases. Deterministic scorers are cheap and fast - run them on everything. LLM-as-a-judge scorers catch nuance but cost more - use them strategically. After running the eval, open Braintrust Experiments to see the score breakdown per case.

Speaker notes: The agent works, we can see it, we can measure it. Now we move runtime control into Braintrust so prompts, tools, and quality signals can be managed without redeploying code.

Speaker notes: This is the transition from "I can build and test locally" to "my team can operate this in production." Managed mode is the mechanism.

Speaker notes: The app structure stays the same. What changes is where the prompts and tools come from. In managed mode, Braintrust becomes the platform. Non-engineers can edit prompts in the UI. The parameter object controls the runtime model.

Speaker notes: Online scoring bridges offline evals and production monitoring. Not every offline scorer belongs online, but the ones that do make your logs operationally legible. Run make demo in managed mode and check the trace -- scores now appear next to spans. Important callout: we score every trace here for learning purposes. In production you would sample 5-10% for LLM-based scorers to keep costs manageable. Deterministic scorers are cheap and can run on every trace.

Speaker notes: This is the part that matters most. Everything we built so far enables what comes next: turning a production failure into a systematic fix.

Speaker notes: Read the ticket carefully. "Not urgent" -- the user is being polite. But the CFO cannot do their job before a board meeting. The model has to infer business impact from context, not surface wording. Use the trace reading guide to identify which stage underreacted.

Speaker notes: Replay, baseline, fix, confirm, regress. The failure becomes a future regression test. The eval set grows from production experience, not just imagination. This is the operational muscle.

Speaker notes: This is the most important hands-on section. Take time to inspect the trace. Identify whether the specialist underweighted the impact or the reviewer failed to catch it. Then tighten the prompt and rerun the eval.

Speaker notes: We have now approached the end of our session and would like to wrap up.

Speaker notes: These five points are the workshop in summary. The tools are important, but the mental model is what you take with you. If you remember one thing: edge cases are not bugs to fix and forget -- they are the seed data for building lasting assurance.

Speaker notes: This is the adoption recipe. It is deliberately simple - one workflow, one eval set, one feedback loop. The goal is to get the first cycle running, not to build the perfect system.

Speaker notes: Encourage attendees to take what they learned back to their teams. The workshop repo is a working reference - they can clone it and adapt the patterns to their own use cases. The account team can help with enterprise setup, SSO, and advanced features like online scoring at scale.

Speaker notes: Open the floor for questions. The repo is their reference implementation. The README has everything needed to run any checkpoint independently.