Skip to content
AI.info

AI agents

AI Agents Capstone: Design, Evaluate, and Govern an Agentic System

Integrate architecture, tools, planning, memory, evaluation, security, operations, and governance into one production-ready agent design.

By the end you can

Visual

Task and authority is settled before the architecture

Task and authority, Runtime architecture, Control surface, Evaluation program, and Lifecycle governance are the five answers a capstone gives. In that order. The Evaluation program and Lifecycle governance should have separate owners and separate tests.

Each of the five can be answered with a document a reviewer can fetch, not with a slide. A federal rule that fixes the decision deadlines. A benchmark that reports how often the same agent repeats itself on the same task. A protocol specification that states in its own text what it cannot enforce. A security advisory with a score attached. A regulation that names who must be able to switch the system off. The sections below use those documents instead of describing them.

FigureProcess · 5 steps
  1. 1

    Task and authority

    Goal, exclusions, user, principal, approvals, and stop states.

  2. 2

    Runtime architecture

    Orchestration, context, state, memory, tools, and model roles.

  3. 3

    Control surface

    Permissions, budgets, isolation, verification, and rollback.

  4. 4

    Evaluation program

    State graders, trajectory rules, repeated scenarios, and human review.

  5. 5

    Lifecycle governance

    Rollout, monitoring, incidents, change, appeal, and retirement.

Example

A hospital network wants an agent to coordinate prior-authorization cases

The system must read clinical and insurance documents, identify missing evidence, communicate with staff, draft submissions, monitor payer responses, and update case state. Errors can delay care, expose health data, or submit unauthorized claims.

The clock is not a design choice. A payer has 72 hours to decide an expedited request and seven calendar days to decide a standard one, extendable to 14 days in certain circumstances. Those windows were fixed by the CMS Interoperability and Prior Authorization Final Rule (CMS-0057-F), issued 17 January 2024. The CMS fact sheet puts the deadline in one sentence: “We are requiring impacted payers (excluding QHP issuers on the FFEs) to send prior authorization decisions within 72 hours for expedited (i.e., urgent) requests and seven calendar days for standard (i.e., non-urgent) requests.”

The same rule adds three duties to the clock. From 2026 every denial needs a specific reason. Prior authorization metrics become an annual public report, the first due by 31 March 2026. The Prior Authorization API is required from 1 January 2027. A capstone in this domain inherits a deadline, a duty to explain each refusal, an audit trail and a public number. All of that before anyone draws a box.

  • Decision at stake: Integrate architecture, tools, planning, memory, evaluation, security, operations, and governance into one production-ready design that still returns an expedited decision inside 72 hours and a standard one inside seven calendar days.
  • Hidden assumption: A sophisticated multi-agent architecture is evidence that the task needs autonomy — the diagram grows because the team can build it, not because the deadline or the caseload demanded it.
  • Primary control question: A comprehensive architecture diagram can hide the absence of release evidence. From 2026 this payer owes a specific reason for every denial and an annual public metrics report, and a diagram produces neither.
  • Evidence to collect: The agent beats the simpler baseline on a representative and repeated task suite — the same cases, run more than once, scored the way τ-bench scores repetition rather than on one good trace.

Evidence picks the architecture, not the wish to show autonomy

The capstone treats an agent as a sociotechnical control system. The design must prove that the chosen autonomy creates value beyond a simpler workflow, while staying observable, bounded, reversible, and contestable.

The best conclusion may be a deterministic workflow, a model-assisted process, a staged agent, or no deployment. The evidence determines the architecture. Not the desire to showcase autonomy.

That comparison has been run under control, and it came out backwards. Sixteen experienced open-source developers worked 246 real issues in their own mature repositories, each issue randomized to allow or to disallow early-2025 AI tools. Before starting, the developers forecast a 24% speed-up. After finishing the work, they still believed they had been sped up by 20%. The measurements said otherwise. METR published the trial on 10 July 2025, and its Core Result section reads: “When developers are allowed to use AI tools, they take 19% longer to complete issues—a significant slowdown that goes against developer beliefs and expert forecasts.” Outside forecasters were further out than the participants: economics experts had predicted 39% shorter, ML experts 38% shorter.

Nobody in that trial was lying, and no amount of asking would have found the slowdown. That is the whole argument for running the comparison rather than collecting impressions of it.

A group that believed it had been sped up by 20% had in fact been slowed by 19%, and the capstone is the last point where finding that out is cheap.

Key idea

A comprehensive architecture diagram can hide the absence of release evidence

Teams may describe memory, planning, agents, and tools without proving any of the things that matter. That the task is reliable. That every action is authorized. That no more data is collected than the task needs. That the system recovers, and that it beats a simpler process.

The documented version of that failure is on the public record. In 2022 UnitedHealthcare and CVS denied prior authorization for post-acute care at roughly three times their overall denial rates, and Humana at more than sixteen times its own. The U.S. Senate Permanent Subcommittee on Investigations found it, in a majority staff report released on 17 October 2024 and drawn from more than 280,000 pages of company documents. “Refusal of Recovery” states it in its executive summary: “In 2022, both UnitedHealthcare and CVS denied prior authorization requests for post-acute care at rates that were approximately three times higher than the companies’ overall denial rates for prior authorization requests. In that same year, Humana’s prior authorization denial rate for post-acute care was over 16 times higher than its overall rate of denial.”

The release decision itself is in the same report. An internal UnitedHealthcare committee tentatively approved an “HCE Auto Authorization Model” after early testing produced “faster handle times” together with “an increase in adverse determination rate”. Both results were in front of the committee. Only one of them was the metric.

Require executable evaluations and operational drills for every material claim in the design.

The harm was measured, written down, and approved past: a release gate that reads throughput first will pass a system whose own test said the refusals were going up.

Case

The specification’s own security position

The protocol most of these systems speak states its own security position, and then states the limit of that position. Model Context Protocol servers offer Resources, Prompts and Tools. Under “Security and Trust & Safety”, revision 2025-06-18 of the specification requires that “Hosts must obtain explicit user consent before invoking any tool”. Its third key principle, Tool Safety, adds: “In particular, descriptions of tool behavior such as annotations should be considered untrusted, unless obtained from a trusted server.” The same section then concedes the rest: “MCP itself cannot enforce these security principles at the protocol level”. Microsoft’s Azure guidance describes the same three server capabilities. Its editor documentation asks the user to confirm a tool invocation, and warns that a local server can run arbitrary code.

That warning has a number attached to it. The protocol’s own first-party developer tool, the MCP Inspector, carried a critical remote-code-execution flaw. It is CVE-2025-49596, published 13 June 2025 and scored CVSS 4.0 base 9.4. The advisory describes it: “Versions of MCP Inspector below 0.14.1 are vulnerable to remote code execution due to lack of authentication between the Inspector client and proxy, allowing unauthenticated requests to launch MCP commands over stdio.”

The general problem has been mapped as well. A 2025 security survey of the protocol sets out an MCP server lifecycle of 4 phases and 16 activities, and a threat taxonomy of 4 attacker types and 16 threat scenarios.

A defence that ignores the specification’s own warnings is not one. A defence that stops at the specification has still not accounted for the tooling around it.

Comparison

Competing strategies for end-to-end agent system design

A Model-assisted workflow, a Staged case agent, and an Autonomous case agent are three defensible answers, and the first is the baseline the others must beat. The choice is defensible when the agent beats that baseline on a representative and repeated task suite, measured on the same cases more than once. It is not defensible when the case for the agent rests on how the architecture looks on a slide.

“More than once” is not a rhetorical flourish. It has a published price. τ-bench, released by Sierra in 2024, introduced the pass^k metric: the chance that all k i.i.d. trials of the same task succeed, averaged across tasks. Its abstract reports what that costs: “Our experiments show that even state-of-the-art function calling agents (like gpt-4o) succeed on <50% of the tasks, and are quite inconsistent (pass^8 <25% in retail).” The single-run averages were 61.2% in retail and 35.2% in airline, under 50% across the two domains. In retail, the same gpt-4o agent that clears 60% on one run drops below 25% once all eight runs have to succeed. Demanding eight consistent runs cuts the score by more than half.

A comparison table built from single runs is therefore not a close approximation of the repeated one. It is a different quantity. And it flatters the more autonomous option, because that is the option with the most places to vary.

FigureComparison · 3 columns

Model-assisted workflow

Models classify, extract, and draft inside deterministic case logic.

  • Lower autonomy
  • Strong auditability
  • Likely baseline

Staged case agent

The agent coordinates evidence and prepares actions for approval.

  • Adaptive workflow
  • Bounded side effects
  • Candidate architecture

Autonomous case agent

The agent communicates and commits transactions directly.

  • Maximum speed
  • High clinical and privacy risk
  • Requires exceptional evidence

Analogy

A Public Transit System Designed Before Opening Day

Planning a transit system means specifying routes, signals, driver authority, passenger information, maintenance, emergency response, accessibility, and closure procedures. A sleek vehicle is only one component. Rails stay where they were laid. Agent behavior can move under a new model version, a rewritten prompt, a changed tool, or a page it reads tomorrow.

A production agent must be defended as a complete, evolving system rather than a model demo.

Steps

Produce the capstone evidence pack

The evidence pack is produced for one real system rather than for a template. Build it so that a missing result is visible. A drawing of every component proves nothing on its own, and the pack should make it obvious wherever release evidence is absent. What the pack stands or falls on is the comparison against the simpler option, run on cases that represent the real work and run more than once.

The threat-modelling step is a run rather than a review, because an executable version of it already exists. AgentDojo is an executable environment for prompt-injection testing of tool-using agents, presented at NeurIPS in 2024. Its abstract lists what is inside: “We populate the environment with 97 realistic tasks (e.g., managing an email client, navigating an e-banking website, or making travel bookings), 629 security test cases, and various attack and defense paradigms from the literature.” Two of its results have to be carried separately. State-of-the-art LLMs fail many of those tasks even with no attack present. And existing injection attacks break some security properties but not all.

Neither result is obtainable from a diagram. The first says the agent is already unreliable before anyone attacks it. The second says a passing defence has been tested against the attacks that existed when the suite was written, which is a claim with a date on it.

FigureProcess · 5 steps
  1. 1

    Frame the decision

    Define users, cases, outcome, harms, non-goals, and the simpler baseline.

  2. 2

    Specify the system

    Document runtime, tools, state, memory, protocols, permissions, and human roles.

  3. 3

    Build executable tasks

    Create resettable cases with terminal-state graders and policy invariants.

  4. 4

    Threat-model and contain

    Test injection, data flow, privilege, loops, partial effects, and rollback.

  5. 5

    Plan the lifecycle

    Define rollout, SLOs, monitoring, incident ownership, appeal, updates, and retirement.

Without an owner and stop conditions, nobody can pause it

The final recommendation must name the architecture, evidence, residual risk, owner, release stage, and the conditions that trigger pause, redesign, or non-deployment. For a system of this kind, some of those conditions are already written down. AI systems used for risk assessment and pricing in life and health insurance are high-risk under the Artificial Intelligence Act, Regulation (EU) 2024/1689, at Annex III, point 5(c).

Article 14(4) then requires that human overseers be enabled “to remain aware of the possible tendency of automatically relying or over-relying on the output produced by a high-risk AI system (automation bias), in particular for high-risk AI systems used to provide information or recommendations for decisions to be taken by natural persons;”. They must also be able to decide not to use the system, to disregard, override or reverse its output, and to interrupt it through a 'stop' button. A deployer with reason to think the system presents a risk must tell the provider and the market surveillance authority without undue delay, and suspend the use of that system. That is Article 26(5). Article 26(6) requires automatically generated logs to be kept for at least six months.

Override, refusal, interruption, suspension, retention. The statute names the same capabilities this section asks a capstone to name. A design without them is not merely thin.

A reviewer starts with the warning rather than with the diagram: “A comprehensive architecture diagram can hide the absence of release evidence”. So before studying the boxes and arrows, they ask what the system was measured against and what the measurements showed. Whether it did better than the simpler baseline, on cases that look like the real ones, across more than a single run.

Article 26(5) obliges a deployer to suspend the system and tell the authority; a capstone that names nobody able to do either has left a statutory duty unassigned.

Example

The twelve deliverables in the evidence pack

The capstone is complete only when another team can inspect the design, reproduce the evaluation, and challenge the release decision. Every deliverable below is written so that its absence is visible. Each one names a figure, a duty, or a suite that either exists in the pack or does not.

  • Task contract: Users, goal, exclusions, authority, and non-success states, with the decision windows written in — 72 hours for expedited requests, seven calendar days for standard ones, extendable to 14 days in certain circumstances.
  • Architecture: Runtime, context, tools, state, memory, protocols, and human roles, including which protocol is in use and what its own specification admits it cannot enforce at the protocol level.
  • Control matrix: Permissions, budgets, approvals, isolation, recovery, and ownership, plus the named role that can disregard, override or reverse an output and suspend the system under Article 26(5).
  • Evaluation suite: Resettable tasks, state graders, policy invariants, repetitions, and uncertainty — reported as pass^k on the same cases rather than as the best single run.
  • Threat model: Injection, exfiltration, privilege, loops, partial effects, and malicious tools, exercised against something with the coverage of AgentDojo's 97 tasks and 629 security test cases rather than listed as topics.
  • Lifecycle plan: Rollout, SLOs, monitoring, incidents, appeals, change control, and retirement, with automatically generated logs retained for at least six months, a specific reason attached to every denial from 2026, and the annual metrics report treated as a deliverable of the system.

Comparison

Release gates that can stop the project

A responsible capstone defines evidence thresholds before choosing whether to deploy the agent more broadly, and states them as numbers rather than adjectives. Reliability is declared at pass^k on the same cases. A threshold set on single runs would have passed the retail agent at over 60% while its pass^8 sat below 25%. Rollback and ownership are drilled or they are unproven. There is no third state.

The gate that matters most is the one the committee in “Refusal of Recovery” did not have: a rule fixed in advance that a rise in adverse determinations blocks the release however much handle time improves. Written afterwards, that rule is an opinion. Written before the test, it is a stop condition.

FigureComparison · 3 columns

Advance

Evidence supports the next bounded authority stage.

  • Task reliability meets the declared interval
  • No unresolved high-severity policy failure
  • Rollback and ownership are tested

Constrain

Value exists only inside a narrower workflow.

  • Reduce tools or destinations
  • Keep material actions staged
  • Add qualified human review

Stop or redesign

Evidence does not justify deployment.

  • Simpler baseline is superior
  • Residual harm is unacceptable
  • Control or recovery remains unproven

Steps

Defend the recommendation before a skeptical review board

Uncertainty and rejected alternatives belong in the final presentation, rather than a case for the most complex architecture.

Two of the five steps are where presentations usually fail. Presenting the evidence means showing variance rather than the best trajectory. The distance between a single run and pass^8 is what the board is entitled to see, and in τ-bench's retail domain that distance ran from over 60% to below 25%. Naming residual risk means saying which harms were never measured, and how the team knows what it thinks it knows. The METR participants believed they had been sped up 20% while the measured time had risen 19%. A pilot team's self-report is not evidence of value, and should be presented as what it is.

FigureProcess · 5 steps
  1. 1

    State the decision

    Name the requested release stage and delegated authority.

  2. 2

    Present the evidence

    Show representative outcomes, policy results, variance, and severe failures.

  3. 3

    Compare alternatives

    Explain why a workflow, assistant, or narrower agent is insufficient or preferable.

  4. 4

    Name residual risk

    Identify uncertainty, uncovered scenarios, and dependence on human or vendor behavior.

  5. 5

    Commit to stop rules

    Specify conditions for pause, rollback, redesign, or retirement.

Key takeaways