Chapter 5. Evaluation and operations
Learning objectives
- Define measurable success criteria, and create an evaluation set containing real-world distributions and edge cases.
- Select an appropriate scoring method for each criterion, and calibrate LLM scorers against human scoring.
- Pin model versions, and design regression evaluations and phased rollout procedures prior to replacement.
- Retain logs and trace information necessary for failure investigation while minimizing personal information.
- Start from operational questions to define metrics, baseline ranges, alerts, and responsible actions.
Introduction
On the day a provider announced a faster and cheaper new model, company executives instructed a transition for the following week. The development team ran ten representative questions through it and concluded that the answers were "similarly good." Two weeks after the switch, complaints poured into customer service. On rare, complex inquiries, the new model frequently omitted a key condition, and a parameter tuned to the previous model's configuration was being silently ignored by the new model. This was something ten questions could never reveal.
LLM features continue to change even after going into production. Models behave probabilistically, providers release new models and retire old ones, and user inputs change over time. This chapter covers how to make judgments with numbers rather than a feeling that "things seem to be working well." It proceeds in the order of success criteria and evaluation sets, scoring methods and scorer calibration, interpreting results, version pinning and replacement procedures, logs and tracing, personal information, operational metrics, and feature-level cost management.
Key concepts
Operations is instrument flying
A pilot flying through clouds looks at the instrument panel, not out the window. This is because the senses are easily deceived, while instruments honestly display designated values. The same applies to LLM features. Judgments made by reading a few answers are swayed by selection bias and miss rare failures. There are two kinds of operational instrument panels: offline evaluations run prior to changes, and metrics continuously monitored during operations. Both must stem from the same success criteria so that they can be compared with each other.
Start by defining success criteria
Anthropic documentation cites being specific, measurable, achievable, and relevant to the objective as requirements for good success criteria. Instead of "performance should be good," narrow the scope, such as "inquiry classification accuracy," and measure it with quantitative metrics or a well-defined scale. Most features require looking at multiple dimensions together.
| Dimension | Example |
|---|---|
| Task fidelity | Ratio of summaries containing all required facts |
| Consistency | Ratio of providing semantically identical answers to similar questions |
| Tone and format | Compliance rate with honorifics and length rules |
| Safety and personal information | Ratio of responses exposing personal information |
| Latency and cost | p95 latency, cost per task |
Record a passing threshold in advance for each criterion. If you set the threshold after seeing the results, you end up fitting the numbers to your desired conclusion.
Create an evaluation set
An evaluation set is a regression test for an operational feature. It is a bundle of fixed inputs, expected results (or scoring criteria), and scoring methods.
- Reflect real-world distributions. Draw samples from operational logs to align the ratios of task types, lengths, and languages. Process personal information first using methods discussed later.
- Include edge cases. Anthropic documentation cites irrelevant or nonexistent inputs, excessively long inputs, harmful inputs, and ambiguous inputs as examples. Add to these the high-risk segments of your business (high-value transactions, consultations with crisis signals).
- Weight by failure cost. Increase sample sizes and aggregate separately for segments that are rare but carry high damage.
- Separate development and validation sets. Isolate inputs viewed continuously while modifying prompts from inputs used only for final decisions to avoid overfitting to the evaluation set.
- Manage versions. Keep inputs, expected results, and scoring code together in a repository and record every change.
Anthropic documentation recommends that a large number of automatically scored items is better than a small number of items scored painstakingly by humans. There must be scale for small regressions to become visible.
Choose scoring methods
Select scoring methods starting with the fastest, most reliable, and most scalable options. The summary from Anthropic documentation is as follows:
| Method | Advantages | Limitations | Suitable criteria |
|---|---|---|---|
| Code scoring | Fastest, highest reliability, scalable to large volumes | Weak at judgments difficult to express as rules | Format compliance, ground-truth classification match, required value inclusion |
| Human scoring | Most flexible, highest quality | Slow and expensive | Samples for scorer calibration, defining new criteria |
| LLM scoring | Fast and flexible, capable of complex judgments | Reliability must be verified first | Tone, empathy, context utilization, subtle personal information exposure |
The same documentation also provides examples of metrics by criterion: exact match with ground truth (classification), sentence embedding similarity (consistency of answers to similar questions), ROUGE-L (capturing key information in summaries for sets with reference summaries), LLM 1–5 scale (tone), and LLM binary judgment (presence of personal information). Pairing one method to one criterion makes it immediately apparent which dimension deteriorated.
Calibrate LLM scorers
LLM scorers are convenient, but because they are models themselves, they have errors and biases. Calibrate them before use.
- Write scoring rubrics specifically. State judgment conditions, such as "Fail if there is no action schedule in the first sentence."
- Restrict the output. Require only predetermined values, such as "Pass/Fail" or a 1–5 scale. Descriptive evaluations are difficult to compare at scale.
- Require reasoning before the score. Anthropic documentation explains that using a scoring model with thinking capabilities turned on improves scoring performance on complex judgments.
- Score with a different model from the generation model. Example code in Anthropic documentation also notes this as a recommended practice.
- Compare against a human-scored sample. Have humans score 50 to 100 cases and measure agreement rates. If the set is skewed toward pass or fail, also examine chance-corrected metrics (e.g., Cohen's kappa) or per-grade precision and recall. If it falls short of standards, revise the rubric.
- Check for known biases. Check whether the scorer tends to award more generous scores to longer answers, or prefers the answer presented first when comparing two answers, by altering the order.
- Pin versions of the scoring model and rubric. When the scorer changes, the meaning of the score changes as well.
Interpret results: Variation and segments
When reading evaluation results, three things are commonly overlooked:
- Variation. Even for identical inputs, results may vary across runs (Chapter 1). In a set of 100 inputs, 1 item represents 1 percentage point. A difference of 1–2 percentage points could be chance, so first measure the spread of variance by running the same set multiple times.
- Paired comparisons. Rather than comparing the averages of two configurations separately, compare results head-to-head for identical inputs and count the cases where the new configuration won and lost. Reading the lost cases reveals the causes.
- Segments. Even if the overall average improves, critical segments may deteriorate. Aggregate separately by task type, length, and high-risk status, and establish distinct passing thresholds for high-risk segments.
Pin model versions
Pin production apps to specific model versions. OpenAI documentation recommends pinning production applications to specific model snapshots to keep behavior consistent. According to the Anthropic model list, starting from the 4.6 generation, all Claude model IDs, including date-less IDs, are pinned snapshots, and aliases for models prior to that are convenience names pointing to dated IDs. Because retirement dates ("not earlier than this date") are published for each model, pinning is not an eternal guarantee, but a mechanism to buy time to plan replacements.
Pinning only the model ID cannot explain changes in results. Manage configurations as reproducible configuration bundles.
| Item | Example |
|---|---|
| Model | Model ID, provider, region settings |
| Prompt | Versions of system instructions and examples |
| Schema and tools | Output schema version, tool definition version |
| Parameters | Reasoning effort, output limit, routing rules |
| Execution environment | API version, SDK version, application version |
Regression evaluation prior to model replacement
Replacement is judged not by whether it "looks better," but by whether it exceeds predetermined criteria.
- Write criteria first. Overall passing threshold, high-risk segment passing threshold, latency and cost ceilings, abort conditions, and responsible persons.
- Compare the existing configuration and the candidate using the same evaluation set. Use the validation set, and read the lost cases through paired comparisons.
- Readjust parameters. Do not simply copy over the previous configuration. Re-evaluate reasoning effort using the evaluation set, and identify and remove settings that the new model and API version reject or ignore (sampling parameters, prefill, forced tool choice). From API version 2026-10-21 onward, merely sending
temperatureresults in a 400 error. Opus 5.5, Sonnet 5.5, Fable 5.1, and Mythos 5.1 reject forced tool calls with a 400 error. Recount token numbers with the new model as well. - Conduct shadow runs. Route a portion of production traffic to the candidate as well, but do not show the results to users and only compare them. Do not execute tools with mutating actions.
- Roll out in phases. Migrate a portion of traffic first and monitor metrics. Revert immediately if abort conditions are met.
- Keep records. Save comparison results, decisions, and configuration bundles to serve as baseline standards for the next replacement. Integrating evaluation runs into deployment pipelines as gates that block deployment upon falling short of passing thresholds ensures the same procedure is upheld when modifying prompts.
Logs and tracing
To investigate failures, it must be possible to find specific requests again. The Claude API provides a unique request-id header in all responses, includes request_id in error bodies, and allows reading it as _request_id on the response object in the Python and TypeScript SDKs. This ID is required when contacting the provider for support.
If a single user request leads to multiple model calls and tool executions, call-level logs alone will not reveal the overall flow. Attach a trace ID to each task unit, and record model calls and tool executions as respective child spans. Using distributed tracing standards like OpenTelemetry and semantic conventions for generative AI makes it easy to align formats across tools.
| Field | Use |
|---|---|
| Trace ID, span ID, attempt number | Reconstructing task-level flows, checking retry counts |
| Provider request ID | Provider support inquiries |
| Configuration bundle version | Comparing before and after replacement, tracking regression causes |
| Token usage (including cache), latency | Cost and performance analysis |
| Stop reason, error type and code | Detecting truncation, refusals, and rate limit issues |
| Validation results (by stage) | Detecting format and business rule failures |
Raw prompts and responses are not retained by default. If necessary, define short retention periods, access controls, and masking together.
Handle personal information
Personal information replicates across multiple places, starting from user inputs to provider transmissions, logs, evaluation sets, batch files, and caches. Masking a single name is insufficient; the entire lifecycle must be managed.
Legal principles. Article 3 of the Personal Information Protection Act (PIPA) (enforced September 11, 2026) stipulates collecting only the minimum personal information necessary within the scope of processing purposes, minimizing privacy infringement, and processing anonymously if the purpose can be achieved through anonymization, or pseudonymously if not. Article 2 defines pseudonymization as processing that renders personal information unidentifiable to a specific individual without additional information by deleting or replacing parts of the personal information. Sensitive information, such as health information, may be processed only when an exception applies, such as separate consent, under Article 23. Article 26 requires that outsourcing the processing of personal information must be done in writing and that the outsourced tasks and trustees must be disclosed, while Article 28-8 requires meeting one of the statutory requirements to provide, outsource processing of, or store personal information overseas. Separate consent is a representative method, and for processing entrustment or storage necessary for contract execution, disclosing the transfer details in the privacy policy or notifying users is also an option (Paragraph 1, Item 3). Article 29 mandates safety measures such as internal management plans and access log retention. Confirm actual application together with personal information officers and legal counsel.
Provider-side retention. Policies vary by provider and contract, so verify them via documentation.
| Provider | Key points stated in documentation |
|---|---|
| OpenAI | API data is not used for training by default. Abuse monitoring logs are retained for up to 30 days by default (with exceptions such as legal requirements). Responses API state is retained for 30 days by default (disabled with store: false). Zero Data Retention (ZDR) requires prior approval, and state-storing features such as files, batches, and evaluations are not eligible for ZDR. Korea supports regional storage only (not regional processing) |
| Anthropic | Retained data is not used for training without explicit permission. Under ZDR agreements, state-storing features like the Files API, batches, and code execution are not eligible, and using them places that data outside ZDR. Structured output schemas are cached for up to 24 hours after last use, so do not include sensitive information in schemas, including descriptions and enum values |
User identifiers. When sending user identifiers for abuse detection, use opaque values. Anthropic instructs not to put names, emails, or phone numbers in metadata.user_id and to use UUIDs or hashes instead, while OpenAI recommends a safety_identifier hashing usernames or emails. When a policy violation occurs, this allows tracking down to the specific user rather than the entire organization.
Define operational metrics
If metrics stop at collection, they become logbooks opened only after an incident has ended. Starting from operational questions, bind metrics, baseline ranges, alerts, and responsible actions into single rows.
| Operational question | Metric (including denominator) | Example alert | First action |
|---|---|---|---|
| Why did costs increase? | Input/output tokens per task, cache read ratio | Cache read ratio drops significantly compared to baseline | Check recent deployments for changes in prompt prefixes or reasoning effort |
| Are responses being truncated? | Ratio of responses by stop reason | Rise in ratio reaching output limit | Inspect output limits and response formats |
| Is formatting breaking? | Step-by-step validation failure rate | Schema failure occurs | Check change history for schemas and model configurations |
| Are limits being hit? | 429 rate and distribution by cause, remaining quota | 1 or more spend limit errors | Call the immediate person in charge |
| Are users waiting? | p95 of TTFT and total duration | Exceeds target | Deconstruct latency by segment (Chapter 3) |
| Is work getting done? | Automated processing rate, human correction rate, number of misexecuted actions | Rise in correction rate | Review sample of lost cases, augment evaluation set |
Place technical metrics (error rate, latency) alongside business metrics (automated processing rate, human correction rate). Even if responses are all 200 and fast, if a human has to correct them every time, the feature is a failure.
Separate costs and limits by feature
When multiple features share a single account, a runaway spike in one feature can halt other features, and invoices alone will not reveal the cause. Use provider isolation units. Anthropic allows setting spend limits and rate limits per workspace lower than the organization limit (cannot be configured on the default workspace, and organization limits always apply). The anthropic-workspace-id header in responses allows checking which workspace was billed. OpenAI places rate limits at the organization and project levels. Adding feature and customer tags from logs to this makes it possible to calculate costs by feature and by client.
Check default settings of tracing tools first
What is retained when no configuration is applied differs across tools. As of documentation on November 1, 2026, the defaults of two tools are completely opposite.
| Tool | Default state | What to decide first |
|---|---|---|
| OpenAI Agents SDK | Tracing enabled, inputs/outputs included | Whether to disable raw text collection |
| Claude Code | Telemetry disabled, no default protocol | Variables to enable and protocol |
The OpenAI Agents SDK records runs, model turns, agents, generations, tool calls, guardrails, handoffs, and audio as spans. Because RunConfig.trace_include_sensitive_data is True by default, inputs and outputs are captured directly in generation and function spans. This conflicts with the logging principle of not retaining raw text by default, so decide this value prior to deployment. When disabling tracing entirely, use OPENAI_AGENTS_DISABLE_TRACING=1 or set_tracing_disabled(True); when disabling for a single run, use RunConfig.tracing_disabled. Organizations subject to ZDR policies cannot use this tracing, so they must maintain their own separate tracing paths.
Claude Code begins collection only when CLAUDE_CODE_ENABLE_TELEMETRY=1 is provided. With no default protocol either, you must explicitly specify OTEL_EXPORTER_OTLP_PROTOCOL (grpc, http/json, http/protobuf) or signal-specific protocol variables. Default export intervals are 60,000 ms for metrics and 5,000 ms for logs and traces. If only metrics appear empty immediately after enabling, wait at least one minute.
For example, when a team that built a shopping mall consultation agent with the Agents SDK deployed it with default values, customer shipping addresses and order inquiry results accumulated on the tracing screen. The team changed trace_include_sensitive_data to False and retained only tool names, latencies, and validation results in spans.
Align cost metrics with pricing structures
Measuring cost per task solely by total token count leads to misreading costs after changing models or attaching tools. As of Anthropic documentation on November 1, 2026, three points must be reflected in metric design:
- Cache read pricing varies across models. Cache reads are 10% of base input pricing, but are 2.5% for Fable 5.1 and Mythos 5.1, and 5% for Opus 5.5 and Sonnet 5.5. Even with identical cache read ratios, unit costs differ among replacement candidates.
- Changing reasoning effort breaks the cache. Because the finalized reasoning effort value is included in the prompt, changes in this value between requests invalidate cache breakpoints. If routing rules cause reasoning effort to fluctuate, consolidate values across flows sharing the cache.
- Tool costs are counted separately. Web search costs $10 per 1,000 searches, plus token costs for search-generated content. Web fetching (the latest
web_fetch_20260318) carries no extra charges beyond tokens. Claude only fetches URLs already present in the conversation. Files API operations are free, but file contents used in Messages requests are billed as input tokens.
Verify this with a small calculation. A single task reads 30,000 tokens from the cache out of 40,000 input tokens and performs two web searches. Excluding output and cache writes, converting to base input pricing yields the equivalent of 13,000 tokens for models with 10% cache reads, and 11,500 tokens for Sonnet 5.5. For 1,000 tasks, a search fee of $20 is added separately from token costs. Search counts and web search tool versions (web_search_20250305, 20260209 with dynamic filtering, 20260318 with response_inclusion) must be logged separately for these differences to show up in metrics.
Filter open-model candidates by license first
When including open models for self-hosting among replacement candidates, check licenses before running evaluations. No matter how good the scores are, if the license does not permit your use case, the time spent on evaluation is wasted. The fact that weights were made public is separate from permission to use them commercially.
| Model | License | Conditions to check |
|---|---|---|
| Gemma 4 | Apache 2.0 | OSI-approved license |
| Mistral Large 4 | Mistral Ecosystem Open-Weight License (Modified MIT) | Model-as-a-Service businesses require a separate commercial license |
| Kanana-2 (1.3B, 3B, 30B-A3B, including embeddings) | Kanana License | Separate commercial license required if MAU exceeded 10 million in the preceding month |
| EXAONE 4.0 32B, 4.5 33B | EXAONE AI Model License Agreement 1.2 - NC | Permitted for research and educational purposes only; developing competing models prohibited |
Even within the same family, verify licenses separately for each version. Gemma 4 adopted Apache 2.0 for the first time among Gemma generations. Although EXAONE 4.5 33B was released as a vision-language model with a 262,144-token context (Technical Report 2026-04-09), its license remains 1.2 - NC. Write verified conditions on the first line of replacement criteria alongside passing thresholds, and record license names and versions in configuration bundles. Determine applicability together with legal counsel.
A learning app with 9 million monthly active users built a homework assistant with Kanana-2 30B-A3B. While it did not trigger the condition at the time, if users increased in the new school semester and preceding-month MAU exceeded 10 million, it would have to obtain a separate commercial license from Kakao. The team added MAU to operational metrics and set an alert to trigger at 9.5 million to buy time for legal review.
Going deeper
How to avoid being tied to evaluation tools
Evaluation data and scoring criteria are company assets, but keeping them only inside a specific platform ties them to that platform's lifespan. There is a real-world example. According to OpenAI documentation, the OpenAI Evals platform will become read-only for existing users starting October 31, 2026, and is scheduled to be shut down on November 30. OpenAI is also discontinuing support for reusable prompt objects in the dashboard and recommends storing production prompts in application code.
The lesson applies regardless of the provider. Version-control evaluation inputs, expected outputs, scoring code and rubrics, prompts, and configuration bundles in your repository, and ensure that the evaluation runner can execute simply by swapping provider adapters. Use managed evaluation tools for execution and visualization, but keep the originals in the repository. Only then can you seamlessly preserve records comparing before and after a change against the same criteria when the day comes to replace a model.
The cycle of returning feedback to the evaluation set
Failures discovered in production must become items in the next evaluation set so that the same failures do not recur.
- Collect signals. Record explicit feedback (thumbs-up/thumbs-down, reports) and implicit signals (regenerating answers, an agent heavily revising a draft, closing the window immediately).
- Categorize. Group failure cases by cause (factual errors, formatting, tone, tool misuse).
- Turn into test items. After processing personal information, attach expected outputs, add them to the evaluation set, and increment the version.
- Run regularly. Running evaluations periodically even without changing configurations allows you to detect shifts in input distributions or unexpected changes in behavior early.
At work
Sunlit Welfare Foundation: The average rose, but misses increased
The social welfare corporation 'Sunlit Welfare Foundation' operated a feature that summarized counseling journals written by counselors and flagged crisis indicators (mentions of self-harm, suspected abuse, urgent livelihood crises). To reduce costs, they considered replacing the model with a cheaper one, and Team Lead Yeom, in charge of information systems, oversaw the regression evaluation.
The evaluation set consisted of 320 cases extracted from journals over the preceding six months. It underwent pseudonymization, and 70 journals containing crisis indicators were deliberately overrepresented. Summary quality was scored from 1 to 5 points by an LLM grader, while crisis indicator flagging was compared against ground-truth answers labeled by social workers using code. The grader used a model different from the candidate and was deployed only after confirming an agreement rate of 0.86 against 60 cases scored by two social workers.
The results were mixed. While the average summary quality score rose from 4.1 to 4.3 points, the recall for crisis indicators dropped from 96% to 88%. Reading through the missed cases via paired comparison revealed that the new model frequently missed roundabout phrasing (“요즘 다 내려놓고 싶다” [“I want to let go of everything these days”]). The predetermined passing threshold for the high-risk segment was 95%.
Team Lead Yeom put the full replacement on hold and proposed a two-pronged approach: leave crisis indicator determination on the existing model and migrate only summary generation to the new model. In addition, the missed phrasing patterns would be added to the evaluation set to evaluate future candidates. Both the opinion to switch based solely on average scores and the opinion to judge based solely on grader scores were rejected. Through this partial transition, costs were reduced by 35% while crisis indicator recall was maintained.
Gentle Laundry: Front door passcodes written in pickup notes
The laundry pickup app 'Gentle Laundry' summarized pickup notes left by customers to forward to drivers and classified request types. A security audit uncovered an issue. Customers were writing front door passcodes and contact details in their notes, and the raw text remained in application logs for 90 days and indefinitely in evaluation set CSV files. The evaluation set was also being shared with an external quality inspection contractor.
Manager Ha, in charge of personal information, and Development Lead Ki first drew a data flow diagram. Notes were being replicated from the app → order DB → model API → logs, evaluation sets, and weekly batch files. The measures were as follows:
- Mask at the entrance. Before sending notes to the model, number strings resembling phone numbers and passcodes were replaced with placeholders, and summary outputs were inspected to verify that the placeholders remained intact. In the driver app, the raw text from the order DB was shown only to authorized drivers.
- Retain only metadata in logs instead of raw text. This included trace IDs, provider request IDs, model IDs, token counts, classification results, and validation results.
- Recreate the evaluation set using pseudonymized samples and set retention periods. Existing CSV files and shared copies were retrieved and deleted, and a check was added to CI that fails if personal information patterns exist in the evaluation set.
- Check provider-side settings and contracts. Conversation state storage was disabled, consignment details in the privacy policy were updated, and whether this constituted an overseas transfer was reviewed with legal counsel.
The proposal to include "Do not output personal information" in the system prompt was rejected because it failed to resolve the issue of inputs being replicated into logs and evaluation sets. The proposal to disable logging entirely was not adopted because it would make troubleshooting outages impossible. In a re-audit one month later, the production DB was the only remaining replica containing raw personal information.
Common mistakes
- Using an alias that points to the latest model automatically makes things better. Behavior can change without verification. Run production on pinned versions, and handle replacements through evaluation.
- Pinning a version allows you to use the same model forever. Models have retirement schedules. Pinning is a mechanism to buy time to plan replacements.
- A few representative questions are sufficient. You will miss regressions in rare high-risk cases and edge cases. You need a fixed set that reflects the distribution.
- You can proceed with a replacement if the average score rises. Critical segments can deteriorate. Set separate passing thresholds for each segment.
- You can trust an LLM grader as-is. You must calibrate it against human-scored samples and manage biases and versions.
- Retaining all raw text for a long time helps with debugging. Personal information risks increase. Retain primarily metadata, and store raw text only to the necessary extent and for the necessary duration.
- There are no personal information issues since the provider does not use data for training. Retention, abuse monitoring, consignment, overseas transfers, and internal logs and evaluation sets are separate matters.
Summary at a glance
- Success criteria: Specific, measurable, achievable, relevant. Determine passing thresholds before viewing results.
- Evaluation set: Actual distribution + edge cases + high-risk segment weighting, separation of development and validation sets, version-controlled in the repository.
- Scoring: Choose in the order of code → LLM → human, while calibrating LLM graders against human samples.
- Interpretation: Measure variance, paired comparisons, segment-by-segment aggregation.
- Version: Snapshot pinning + configuration bundles. Starting from the Anthropic 4.6 generation, all IDs are fixed snapshots.
- Replacement: Criteria first → comparison on the same set → parameter retuning → shadow execution → phased rollout → documentation.
- Logs: Trace ID, provider request ID, configuration version, usage, stop reason. Do not retain raw text by default.
- Personal information: Minimal collection and pseudonymization, verifying provider retention policies, reviewing consignment and overseas transfers, opaque user identifiers.
- Metrics: Question → metric (denominator) → baseline range → alert → designated action. Include business metrics alongside.
Check the official docs
- Anthropic — Define success criteria and build evaluations: Read about success criteria, evaluation design principles, scoring methods, and LLM scoring tips.
- Anthropic — Models overview: Check model IDs and snapshots, retirement dates, and the Models API.
- Anthropic — API and data retention: Check zero data retention (ZDR) scope and applicability by feature.
- OpenAI — Data controls in the OpenAI platform: Read about training usage, retention periods, ZDR, and data storage regions.
- National Law Information Center — Personal Information Protection Act (PIPA): Read Articles 2, 3, 23, 26, 28-8, and 29.
- Anthropic — Claude Code Monitoring: Check environment variables that enable telemetry, OTLP protocol specification, and default export intervals for metrics, logs, and traces.
- OpenAI — Agents SDK Tracing: Check tracing defaults and how to disable it,
trace_include_sensitive_data, and constraints for ZDR organizations. - Anthropic — Web search tool: Check search pricing and differences across tool versions.
- Kakao — Kanana License: Read the separate commercial license terms applicable when exceeding 10 million monthly active users.
Self-check
5-1. State the four conditions of good success criteria, and rewrite the criterion "Answer quality must be good" into two or more measurable criteria that meet those conditions.
5-2. Describe in order the calibration procedure that must be followed before deploying an LLM judge to operational evaluation.
5-3. Based on Anthropic documentation, describe the respective characteristics of model IDs from Generation 4.6 onward and model aliases prior to it, and explain why a replacement plan is needed even when pinning a version.
5-4. State the definition of pseudonymization under the Personal Information Protection Act (PIPA), and explain how this concept can be applied when creating an evaluation set for an LLM feature.
5-5. A replacement candidate model increased the average score of the evaluation set, but lowered the score in high-risk segments. Describe the procedure for making a decision and what options are available.
5-6. Select one operating LLM feature, define five operational questions, and design a table covering the metric (including denominator), normal range, alert condition, person in charge, and initial action for each question.
Hands-on tasks
Exercise
Building an evaluation harness (60 minutes)
- Create 40 evaluation inputs using one feature built in the previous chapter. Divide them into 25 for development and 15 for validation, and include at least 8 high-risk cases.
- Define the scoring method for each criterion. Score formatting and answer match with code, and tone with an LLM judge.
- Score the 15 validation items manually and measure the agreement rate with the LLM judge. If it falls short of the threshold, revise the rubric.
- Run the validation set 3 times each under the current configuration and the candidate configuration (a different model or different reasoning effort).
Done when: The overall and high-risk segment pass rates, run-to-run variation, and judge agreement rate for both configurations are presented in a single table, and a decision on whether to transition is written in one paragraph based on predetermined criteria.
Exercise
Data flow diagram and log policy (45 minutes)
- Write a numbered list of all locations where user input is replicated in one LLM feature in operation or under design (databases, provider APIs, logs, tracing tools, evaluation sets, batch files, caches).
- Organize into a table the personal information items, retention period, access permissions, and deletion method for each location.
- Finalize the list of fields for a single log line. Retain identifiers and metrics necessary for tracing, and exclude raw text.
- Cross-check against the retention policy documentation of the provider used and write down items that require verification (state storage, zero-retention coverage, storage region).
Done when: Locations where raw personal information remains are identified in a list, and actions to reduce or eliminate it along with the person in charge are established for each location.