Appendix B. Self-check answers and explanations
Chapter 1
1-1. If the next action is determined along a path predefined by code, it is a workflow; if the model determines it on its own during execution, it is an agent. For example, a consultation system where code handles inquiry classification and permission checks, and the model selects tools as it processes only those classified inquiries that require root-cause investigation, is a structure that blends both approaches. In design documents, record "who determines the next action" for each step.
1-2. Sectioning runs independent subtasks concurrently to gain speed and focus per call, while voting runs the same task multiple times to obtain more reliable results through multiple perspectives and attempts. Voting increases costs proportionally to the number of calls, and if the same evidence is used, errors may be correlated, meaning it might not become as accurate as expected. Use it only for steps where judgment is ambiguous and the cost of a single error is high.
1-3. A goal, an output format, instructions on tools and sources to use, and clear task boundaries. If the goal is missing, workers investigate the wrong scope; if boundaries are missing, multiple workers redundantly investigate the same areas; if the output format is missing, the orchestrator struggles to merge results; and if source instructions are missing, low-quality sources are used. Any answer that explains by citing at least one of these symptoms is correct.
1-4. A maximum number of iterations, and a stopping condition when the score no longer improves or the margin of improvement falls below a lower bound. Both conditions must reside in the code running the loop, not in the model. It is also good practice to include a procedure that hands off the final result and evaluation log to a human when execution ends without convergence.
1-5. A handoff passes control to the selected specialist agent, and that agent handles the remaining execution of the turn to produce the final answer. In agent-as-tool, the manager agent retains control, calls specialist agents like tools to receive only results, and the manager produces the final answer. If results need to be received and built upon, use agent-as-tool; if a specialist must interact directly with the user, use handoff.
1-6. If the gains of multi-agent systems are largely the result of using more tokens, one must evaluate whether success has increased as much as total cost has increased. Therefore, the comparison metric is the cost per successful task. Even if the cost doubles, it can be justified if the success rate rises significantly; even if the cost is the same, if the success rate remains unchanged, it is a loss.
1-7. Sample answer. The simplest structure is a fixed workflow that summarizes each announcement with a single LLM call and uses code to group and dispatch them by department tag. Signals that this has become insufficient include the department classification error rate exceeding a preset threshold (e.g., 5%), or a meaningful increase in summary requests that require synthesizing across multiple announcements. When that occurs, separate department classification into a dedicated routing step, and send only the cross-reading requests to an agent that uses tools. The key criterion is whether the signal was specified with a numerical figure.
Chapter 2
2-1. Human developers read documentation once and remember it, but agents (unless using lazy loading such as tool search) must read tool definitions and results into the context every time; therefore, having more tools and larger results increases context cost. Furthermore, wrapping endpoints as-is multiplies similar tools, causing selection errors and placing the burden of composing multiple calls on the model. Therefore, a small number of tools organized around workflow units is preferable.
2-2. Always returning detailed results wastes tokens, while always returning concise results may omit identifiers needed for subsequent calls. Allowing the agent to choose appropriately according to the situation via a detail-level parameter mitigates both problems. Configure it to select a detailed response only when IDs or granular fields are required for the next call.
2-3. The fact that results have been truncated, the overall scale (e.g., 20 out of 1,240 items), and methods to narrow the scope (filters, next-page cursor). Without this information, the agent may believe the partial results received are the entirety and draw a conclusion, or mistakenly judge that the needed item does not exist.
2-4. Protocol version, client capabilities, and client identity. This information is carried in the _meta of each request. The version (io.modelcontextprotocol/protocolVersion) and capabilities (io.modelcontextprotocol/clientCapabilities) are required, while client info is recommended but self-reported and therefore not used for security decisions.
2-5. Without annotations, following the specification's default values, it is treated as not read-only (readOnlyHint default false), potentially destructive (destructiveHint default true), non-idempotent (idempotentHint default false), and capable of interacting with the external world (openWorldHint default true). Because the default values are conservative, unannotated tools are classified into the category that requires the greatest caution. Even if annotations are present, they are not trusted if they originate from an untrusted server.
2-6. Audit trail: In downstream system logs, calls are recorded as having been made by the original owner of the token rather than the MCP server, and the server cannot distinguish which client made the call, complicating incident investigations. Rate limiting: Calls that use the token directly can bypass controls that the server or downstream APIs impose relying on the token's audience and constraints.
2-7. Sample answer. The name includes a service prefix and an action, such as loan_extend. Parameters accept loan_number (e.g., a string in the format LN-2026-00123) and a new due date new_due_date (an ISO date, within 14 days of the current due date) so that the outcome remains identical even if the same request is received twice. Business errors return reasons and facts, such as "Books with waiting reservations cannot be extended. The scheduled return date is 2026-10-27." Human confirmation is required when attempting to exceed the maximum extension count or when overdue fees are incurred. Any answer that explains how each item reduces misuse is correct.
Chapter 3
3-1. Because a model must divide its attention across the relationships among all tokens in the context, as the number of tokens increases, the attention available for each piece of information becomes thinner. This is the Attention Budget, and the resulting phenomenon where the ability to accurately recall information degrades is context rot. A large window merely allows putting more in; it does not mean the model can use what has been put in equally well, so continuous management is required.
3-2. This is because raw tool results remaining deep in the conversation have already been used and are rarely revisited, so the flow and decisions remain even if they are deleted. However, because the prompt cache may be invalidated from the point of deletion, rather than deleting small amounts frequently, delete a sufficient amount at once to make the cost of invalidation worthwhile. Results that continue to be referenced repeatedly should be excluded from deletion.
3-3. The work state (progress files, checkpoints) is the basis. Conversation logs are summarized and truncated, so they are not accurate, and long-term memory is merely reference material. If the work state and the Business Ledger diverge, the ledger is the standard of fact, so one must correct the work state to match the ledger and then determine the next task to do.
3-4. It is a failure where a subsequent session looks at the progress and hastily declares the work finished, or arbitrarily modifies the feature list and deletes tests to make it appear as though they passed. JSON was less likely than Markdown to be improperly modified or overwritten by the model, and restricting the modifiable fields to pass/fail status alone prevents reducing the scope or lowering the criteria.
3-5. If it dies immediately before recording the result, one cannot tell whether it executed merely by looking at the record. If the intent is recorded first, the resumption code can find items that have "an intent but no result" and query the external system using an idempotency key to see whether it was processed before running it again. If it was processed, it only records the result; if not, it executes using the same key, preventing duplication.
3-6. First, one can determine whether information is outdated and perform expiration and re-verification. Second, when colliding with new information, one can distinguish which side is more trustworthy based on the authority and freshness of the source. Having the source also makes it easy to trace incorrectly stored memories to correct or delete them.
3-7. Sample answer. ① Goals and completion criteria: What must be submitted, by when, and in what format. ② Completed items and verification results: What is finished and how it was verified. ③ Remaining tasks and priorities: The order of things to do next. ④ Facts and assumptions: Distinguishing between facts that have sources and verification timestamps versus assumptions that have not yet been verified. ⑤ Prerequisites for the next action: External changes to verify before resumption, required approvals, and locations of deliverables and external task identifiers. The key point is whether verified deliverables were recorded instead of self-assessments such as "almost done."
Chapter 4
4-1. A transcript is a record of what the agent said, tool calls, and intermediate results during a run. The outcome is the state of the environment after the run ends—namely, whether there is actually one reservation for that date in the reservation system. The transcript shows what was attempted, but it does not prove whether it persisted in the environment. Even if "I have made a reservation" is present, if there is no reservation in the outcome, it is Failed, so agents that modify state are scored by outcomes.
4-2. Cases where it should be imposed: Tasks with mandatory or prohibited rules where compliance cannot be determined merely by looking at the outcome, such as "Must confirm with user before payment". Cases where it should not be imposed: Tasks where there are multiple correct query sequences that lead to the same answer. Requiring exact path matching in this case treats even more efficient, correct solutions as Failed.
4-3. pass@3 = 1 − (1 − 0.9)³ = 1 − 0.001 = 0.999, approximately 99.9%. pass^3 = 0.9³ = 0.729, approximately 72.9%. This means that while success is almost guaranteed at least once out of three attempts, the probability of succeeding in all three attempts is around 73%. If retries or candidate selection are possible, the former value is closer to the operational experience; if it must be gotten right on the first try every time, the latter value is closer. In reality, failures across runs of the same task are often correlated, so it may differ from the value under the independence assumption.
4-4. ① Divide evaluation dimensions, write observable criteria and deduction examples for each dimension, and allow selecting "cannot judge" if there is no basis. ② Create a sample directly scored by experts and measure Agreement with the grader's determinations. ③ Review discrepant cases, revise the rubric, and measure again. Periodically sample afterward as well to verify that Agreement is maintained.
4-5. A trace spans from the beginning to the end of a single workflow, and spans are units of work with a start and end that constitute it, forming parent-child relationships. A single agent run creates spans such as an agent run span, an LLM generation span, a function tool call span, a guardrail span, and a handoff span (based on default spans in the OpenAI Agents SDK).
4-6. Failures usually begin with a faulty judgment in an earlier step and manifest in a later step. If one only fixes the visible symptom, the root cause remains and recurs in a different form, and changing the wrong component can lead to misjudging the effect. One must identify the step of the initial faulty judgment to determine what to modify among tool definitions, prompts, or the environment.
4-7. Sample answer. Must-pass: 0 prohibited actions, regression set pass rate at or above the designated threshold. Comparative metrics: Outcome-based success rate and pass^3 are equal to or higher than the existing version, and no task type has regressed across business task types. Operational constraints: Cost per successful task is 1.2 times or less than the existing version, and first-response latency is within contractual standards. Suspended judgment: If the difference between the two versions is smaller than the fluctuation range of repeated runs, or if the sample size is smaller than the standard, increase the number of runs and measure again. The key point is whether the must-pass conditions were separated from averages.
Chapter 5
5-1. First, cases where expensive tools are called multiple times or large results are read within a single turn; this is prevented by per-run token and cost limits. Second, stagnation from repeating the same search or query; this is prevented by detecting repeated identical arguments and detecting a lack of progress. It is also correct to cite cases where subagents continuously multiply, answering with an upper limit on the number of subtasks or re-delegation depth.
5-2. If each layer retries independently, the number of attempts multiplies exponentially, turning a single failure into dozens of calls and worsening overload. Retries should be performed at only one layer, only for transient errors, spaced with exponential backoff and jitter, capped with an upper limit on attempts, and adhering to the server's retry-after. Other layers propagate recovery instructions instead of retrying.
5-3. For calls with side effects such as payments, reservations, or dispatches, the request may have been processed while only the response was lost. If this is treated as Failed and sent again, the same side effect occurs twice. First, query whether it was processed using an idempotency key or request identifier, and only resend with the same key if it was not processed.
5-4. If there are too many approval requests, approval fatigue causes the approver to click without reading, resulting in genuinely dangerous requests being approved as a mere formality. Targets for approval are selected along two axes: reversibility (is it difficult to reverse?) and blast radius (does it affect customers, external entities, or finances?), while reversible actions with low impact are automated within limits.
5-5. A PreToolUse hook that blocks with exit code 2 halts the call before permission rules are evaluated, so even if an allow rule exists, the call is blocked and the standard error content of the hook is delivered as the reason for blocking. Conversely, even if the hook returns allow, it cannot bypass deny or ask rules. Permission rules themselves are evaluated in the order of deny → ask → allow, and the first matching rule determines the outcome. However, an installed mod's tool.check can override this decision in environments without managed settings or Team/Enterprise logins.
5-6. The sandbox wraps shell commands and their child processes. What it does not wrap are built-in file and web tools such as Read, Edit, and WebFetch, as well as other processes launched by Claude Code, such as hooks and local MCP servers. Built-in tools are controlled by permission rules, and for hooks and local MCP servers that run with the user's full permissions, only trusted ones should be used and isolated separately if necessary. It is also correct to cite shell commands directly entered with ! in most sessions, excluded commands, and retries outside the sandbox.
5-7. Sample answer. The limit is set as a daily cost per user (e.g., tokens worth KRW 3,000), and the estimated cost to be used by an ongoing run is reserved before starting. When reaching 80%, notify the user of the remaining limit, and switch expensive features (long research, multi-agent) to smaller models or narrower paths. When reaching 100%, do not start new runs; save partial results and halt ongoing runs, and provide instructions on the reset time for the next day and how to request a limit increase. The key point is whether what the system does at these two points is enforced by code.