What you will be able to do
- Name the phases an AI solution passes through and the artifact each phase hands to the next
- Place success criteria and an evaluation set in discovery, and keep later-phase work such as runbooks and cost tuning out of it
- Choose between the Client SDK, the Agent SDK and Managed Agents at design time based on who operates the agent loop and its infrastructure
- Use monitored signals and regression evals to decide whether to ship, fix or stop a live solution
- Plan for retirement of your own solution and of the model it runs on
Key concept
Lifecycle ownership — An AI solution moves through discovery, design, handoff, monitoring, iteration and retirement, and each phase passes the next a concrete artifact. The architect owns the outcome across all of them: from whether the solution should exist, through how it behaves after launch, to the decision to retire it.
1.Six phases, each handing an artifact forward
An AI solution is never finished when its code runs. It goes through six phases, discovery, design, handoff, monitoring, iteration and retirement, and the useful way to think about each one is what it passes on. If a phase cannot name what it hands to the next, the next phase has to guess, and those guesses come back later as rework.
| Phase | Core question | Hands to the next phase |
|---|---|---|
| Discovery | What problem, for whom, and what counts as success? | Success criteria, acceptance tests and an evaluation set |
| Design | Which architecture and build surface meet those criteria? | A design whose behaviour the tests can check |
| Handoff | Can engineering build and change it safely? | Tests that define done, plus the design |
| Monitoring | Is it working for real users at acceptable cost? | Measured results set against the criteria |
| Iteration | Ship it, fix it, or stop it? | A new version, or a decision to retire |
| Retirement | How do we wind down our work or the model it runs on? | Migration to a replacement, with records kept |
The phases form a loop rather than a line. Iteration sends you back through design and handoff for each new version. Monitoring keeps running for as long as the solution is live. Retirement can be triggered from outside the loop too, when the model your solution depends on reaches its retirement date. Shipping also brings its own vocabulary of migrations, versioning, rate limits and feature flags, and nobody raises those for you. Each one belongs to a specific phase, so plan for it there.
Checkpoint 1 of 10· Match them up
Each lifecycle phase hands a concrete artifact to the next one. Match each phase to the artifact it produces.
Tap a term, then the definition that fits it.
Discovery comes first because it defines what success means and how to measure it. Design, monitoring and iteration all depend on those criteria: design is checked against them, monitoring measures against them, and iteration acts on the measured gap. Retirement winds the work down by migrating to a replacement and keeping records.
“Building a successful LLM-based application starts with clearly defining your success criteria and then designing evaluations to measure performance against them.”Source: platform.claude.com
Sources1
2.Discovery hands design a definition of success
Discovery decides what success means before anyone writes a prompt. The questions about users, needs, experience and constraints are covered in The discovery brief: users, needs, experience, constraints. In the lifecycle, the point is what discovery produces: a use case, success criteria that are specific and measurable, and an evaluation set that design and every later phase will be checked against.
The criteria have to be stated as numbers. "The model should classify sentiments well" gives design nothing to aim at. "F1 of at least 0.85 on a held-out set of 10,000 posts, 95% of responses under 200ms" gives it a target and a test. The evaluation set should mirror the real-world task distribution, including edge cases such as empty input or very long input. Otherwise the numbers measured during design say nothing about production.
An eval suite written in discovery also settles disagreements early. Two engineers reading the same spec can come away with different ideas of how the system should handle an edge case. A concrete test case removes that ambiguity before it turns into two incompatible implementations.
Checkpoint 2 of 10· Check yourself
In the first week of an engagement, a client wants visible progress on a new ticket-triage assistant. Which deliverable belongs in the discovery phase?
Discovery defines success before anything is built: a use case, numeric success criteria and an evaluation set that mirrors real inputs. Choosing the model and prompt is design work, caching tunes the cost of a design that already exists, and runbooks are handoff work. All three depend on the requirements that discovery produces.
“Building a successful LLM-based application starts with clearly defining your success criteria and then designing evaluations to measure performance against them.”Source: platform.claude.com
Checkpoint 3 of 10· Exam question
Before any prompts are written, a consulting team meets with a client to scope a document-classification assistant. Which activity most correctly belongs in the discovery phase of the engagement?
Correct answer: A — Defining the use case, measurable success criteria, and an evaluation set for later validation
- A. Correct - discovery establishes what problem is being solved and how success will be measured before any design work starts.
- B. Locking a model and prompt is a design-phase activity, and doing it before requirements are defined skips discovery entirely.
- C. Cost optimization through caching and batching is a monitoring/iteration concern that comes after the solution exists.
- D. A deployment runbook is a handoff-phase artifact, produced only after the solution has been designed and tested.
3.Design picks the build surface the constraints allow
Design turns the success criteria into an architecture. One of its earliest decisions is which Claude surface to build on, and discovery has usually decided it already through a constraint such as "we will not run agent infrastructure" or "we need full control over every step". The deciding question is who operates the agent loop and the runtime it executes in.
| Surface | What you get | Who operates the loop and runtime | Pick it when |
|---|---|---|---|
| Client SDK (Claude API / Messages API) | Direct access to the Claude API; you write the tool loop yourself | You write and run all of it | You want custom agent loops and fine-grained control |
| Agent SDK | A library that runs the Claude Code binary, with built-in tools, permissions, sessions and hooks | You, in a process you operate | Your agent needs built-in file, command and search tools without hand-writing a tool loop |
| Managed Agents | A hosted agent harness that runs the agent loop, in an Anthropic-managed cloud sandbox or a self-hosted sandbox | Anthropic hosts the harness; the sandbox can be Anthropic-managed | Long-running, asynchronous work where the customer will not run agent infrastructure |
The middle row is where teams most often go wrong. If an internal coding agent has to read repository files, run shell commands and edit code, and the team does not want to write its own tool-execution loop, the Agent SDK fits. Its built-in tools read, write and edit files, run commands and search the web, and its sessions keep context across exchanges. The Client SDK would mean writing exactly the loop the team wants to avoid: check each response's stop reason, run the tool, send the result back. The Agent SDK still runs on your servers, though, so if "no infrastructure" is a hard constraint, it points to Managed Agents.
Checkpoint 4 of 10· Check yourself
A bank's platform team doesn't want to build or run an agent loop for a long-running, asynchronous reconciliation agent. Compliance also requires that the inputs and outputs of tool runs stay on the bank's own infrastructure. Which design fits both constraints?
Managed Agents hosts the agent harness, so the team doesn't build or run a loop. Its sandbox can be self-hosted, which keeps tool inputs and outputs on the bank's own infrastructure. The Agent SDK and the Client SDK both leave the loop to the team, and an Anthropic-managed sandbox would run the tools outside the bank.
“With a self-hosted sandbox, the copies of tool inputs and outputs on your own infrastructure are yours to retain or delete.”Source: platform.claude.com
Checkpoint 5 of 10· Exam question
A solutions team is scoping a new internal tool that must run long, asynchronous multi-step investigations across several backend systems, and the customer explicitly wants to avoid operating any agent-loop or sandbox infrastructure themselves. During the discovery phase, which approach should the team recommend?
Correct answer: B — Adopt Claude Managed Agents, since Anthropic operates the sandbox and session infrastructure needed for long-running asynchronous work
- A. Plausible for teams wanting full control, but requires the customer to build and operate orchestration infrastructure, which conflicts with the stated goal.
- B. Correct - Managed Agents runs the agent loop and sandbox on Anthropic-managed infrastructure, matching the requirement to avoid operating that infrastructure.
- C. The Agent SDK is a library that runs inside the customer's own process, so the customer would still be operating the runtime infrastructure.
- D. The Files API and prompt caching manage documents and context costs; neither provides the orchestration loop the tool needs.
Checkpoint 6 of 10· Exam question
A development team is designing an internal agent that must autonomously read repository files, run shell commands, and edit code without the team writing their own tool-execution loop. Which design choice fits this requirement?
Correct answer: B — Build on the Claude Agent SDK, which provides the built-in tools, agent loop, and context management out of the box
- A. The Client SDK gives direct API access, but the team would still need to implement the tool loop themselves, which the requirement explicitly avoids.
- B. Correct - the Agent SDK ships with built-in tools, the agent loop, and context management so the team does not implement tool execution from scratch.
- C. Calling the Messages API once per file without a tool loop cannot autonomously read files, run commands, or edit code as required.
- D. The Usage and Cost Admin API reports token usage and spend; it has no role in executing tools or orchestrating an agent.
4.Handoff gives engineering the tests, not just the design
At handoff, the artifact engineering depends on most is the set of tests that define done. Writing them is covered in Acceptance tests defined before code. What matters at handoff is that each test is concrete enough for a stranger to judge pass or fail. "A patient with a basic smartphone can find the current wait time in under 30 seconds without creating an account" can be handed over. "The system is easy to use" cannot.
The tests keep working after launch. Each later change gets checked against them, so they are what lets a team keep changing a live system with confidence. A design handed over without them leaves engineering to define done for itself, and each engineer's definition will differ.
Handoff is also the last point before real users depend on the system, which makes it the place for a short readiness gate:
- Understanding: can the team explain what the code does, not just what it should do?
- Testing: do the acceptance tests still pass, including edge cases such as missing data or a zero value?
- Access: who does this build not serve well?
- Responsibility: could the output be misread or misused, and is the AI's role disclosed?
- Feedback loop: how will anyone know it is working after it ships?
The last question connects handoff to monitoring. If nobody can answer it, monitoring has nothing to measure.
Checkpoint 7 of 10· Check yourself
Engineering is taking over a clinic's appointment-reminder assistant next week. Which of these is ready to be handed over as a test that defines done?
A handoff test has to be concrete enough that someone with no context can judge pass or fail. This one is, and it covers an edge case (missing data). The vague statements cannot be checked. Leaving engineering to define done means each engineer ends up with a different definition.
“Each must be concrete enough that a stranger could tell you whether the finished product passes or fails.”Source: academy.claude.com
5.Monitoring turns live behaviour into decision inputs
Monitoring exists to give iteration evidence. That means measuring the success criteria from discovery against real use, along with cost and failures that a test set cannot predict. Instrumentation and dashboards at scale are the subject of monitoring with logging and observability tools. In the lifecycle, the question is which signals feed the ship, fix or stop decision.
On Managed Agents, cost and effort per session show up as a cumulative usage object on the session. Read it once the session goes idle: by then the totals are final, and list_cost puts consumption at public list rates in cents.
{
"id": "sesn_01...",
"status": "idle",
"usage": {
"input_tokens": 5000,
"output_tokens": 3200,
"cache_read_input_tokens": 20000,
"cache_creation": {
"ephemeral_5m_input_tokens": 2000,
"ephemeral_1h_input_tokens": 0
},
"list_cost": {
"amount": "187",
"currency": "USD"
},
"active_seconds": 342.5,Watching a number and cutting the session off yourself is the wrong way to enforce a limit. A session budget is a hard cap: the platform pauses each thread before its next model request once list cost reaches it. Every budget hit is still worth recording, because a solution that keeps hitting its cap is sending a signal that iteration has to deal with.
| What to watch | Where to see it |
|---|---|
| Sessions that go idle, for example to wait for approval | The session.status_idled webhook |
| Sessions that reach a budget or terminate | The session.budget_reached and session.status_terminated webhooks |
| Scheduled runs that fail to start a session | The deployment_run.failed and deployment.paused webhooks |
| Behavior beyond what the agent was granted | An optional offline review job that reads each session's events |
Webhook deliveries can be missed, so list sessions on a schedule as well and don't rely on push alone. A transcript review also has a limit to plan around: it finds problems only after the calls have run. Monitoring tells you what already happened. Preventing harm is the job of the limits set at design time.
Checkpoint 8 of 10· Fill the gap
Your monitoring job pulls each Managed Agents session's cumulative usage so iteration gets per-session cost figures it can trust. Which status should the fetched session show before you record these totals?
{
"id": "sesn_01...",
"status": " ? ",
"usage": {
"input_tokens": 5000,
"output_tokens": 3200,
"cache_read_input_tokens": 20000,
"cache_creation": {
"ephemeral_5m_input_tokens": 2000,
"ephemeral_1h_input_tokens": 0
},
"list_cost": {
"amount": "187",
"currency": "USD"
},
"active_seconds": 342.5,The usage object is cumulative, so you read it once the session goes idle. At that point the totals, including list_cost in cents at public list rates, are final and can go into the ship, fix or stop decision. If you read it while the session is still running, you get a figure that is still climbing.
Source: platform.claude.com6.Iteration: ship it, fix it, or stop it
Every pass through iteration ends in one of three calls. Ship it means the version meets its criteria and holds them in production, so it continues. Fix it means a specific, measured gap exists and a reworked version can close it. Stop it means the solution is not delivering value that justifies keeping it, so it goes to retirement. The rule underneath all three is to prototype freely and ship selectively: cheap code creates value only when paired with honest evaluation.
Two kinds of evals make the call evidence-based. Capability evals start with a low pass rate and give a team something to climb toward. Regression evals should pass nearly 100% of the time, and any drop means something broke. A version that improves on capability evals but slips on regression evals is a fix it, however good the demo looks. A version that holds regression and moves capability toward the discovery criteria is a ship it.
Iteration repeats for as long as the solution is live, and each round should carry less risk than the last. Pinning sessions to an explicit version and moving traffic gradually is covered in Promote, canary and roll back by version. In lifecycle terms, a rollback is a fast fix it: the previous version comes back while the new one is reworked.
Without evals, iteration turns reactive. The team waits for complaints, reproduces the problem by hand, fixes it and hopes nothing else regressed. It cannot tell a real regression from noise, so every decision to ship, fix or stop is a guess. A useful exercise before each release: deploy, share the change with a few real users, make one iteration based on what they report, and add tests that verify the change.
Checkpoint 9 of 10· Check yourself
After its latest iteration, a support agent's capability evals rose from 40% to 72%, and the stakeholder demo went very well. Over the same run, its regression evals fell from 99% to 93%. What call should the architect make for this version?
Regression evals should pass nearly 100% of the time, so any decline means something broke. A version that gains on capability but slips on regression is a fix-it, however good the demo looks. Stop-it is for a solution that no longer delivers value worth keeping, not for a specific measured gap that a rework can close.
“They protect against backsliding, as a decline in score signals that something is broken and needs to be improved.”Source: www.anthropic.com
7.Retirement: your work, and the model beneath it
Retirement comes in two forms. Retiring your own work is a stop it decision coming out of iteration, and the willingness to deprecate your own work is an undervalued skill. The other form is set by the model calendar. Each Claude model has a lifecycle state, and once a model is retired, every request to it returns an error, whether or not your solution is ready.
| API model name | State | Deprecated | Retirement date | Recommended replacement |
|---|---|---|---|---|
| claude-sonnet-4-5-20250929 | Deprecated | September 30, 2026 | November 30, 2026 | claude-sonnet-5-5 |
| claude-opus-4-1-20250805 | Retired | June 5, 2026 | August 5, 2026 | claude-opus-4-8 |
| claude-sonnet-4-20250514 | Retired | April 14, 2026 | June 15, 2026 | claude-sonnet-5-5 |
A deprecation notice forces an iteration cycle with a deadline. Developers using Sonnet 4.5 were notified on September 30, 2026 that it retires on November 30, 2026. A team on claude-sonnet-4-5-20250929 has to move to claude-sonnet-5-5 inside that window: run the migration through the regression suite, adjust prompts, then ship. How fast that goes depends mostly on evals. Teams without them face weeks of testing when a new model arrives, while teams with them can find the model's strengths, tune prompts and upgrade in days.
Retiring a Managed Agents solution means deciding what to keep before deleting anything. Session history stays until the session is deleted, and files a session produced are deleted along with it. Copy events to your own logs with the events API before deleting the session. Download any output files you need first. Delete uploaded files, memory stores and vaults separately, because removing a session does not remove them.
Checkpoint 10 of 10· Match them up
A client is shutting down a Managed Agents solution, and its sessions are about to be deleted. Match each kind of data to how deleting a session affects it and what you need to do about it.
Tap a term, then the definition that fits it.
Deleting a session removes its event history and the files it produced, so you have to export anything you want to keep before you delete it. Uploaded files, memory stores and vaults are not removed with the session. They stay until you delete them yourself, so retirement is not finished until you have cleaned them up too.
“Files a session produces: Deleted with the session. Download the files you want to keep first.”Source: platform.claude.com
Sources
(11)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“Shipping has its own technical vocabulary (migrations, versioning, rate limits, feature flags) that AI will not surface unless you ask.”
↩︎ Six phases, each handing an artifact forward“Make the call: ship it, fix it, or stop it”
↩︎ Six phases, each handing an artifact forward“Tests make post-launch iteration safe.”
↩︎ Handoff gives engineering the tests, not just the design“Prototype freely, ship selectively. Cheap code creates value only when paired with honest evaluation.”
↩︎ Iteration: ship it, fix it, or stop it“share it with three real users, and make one iteration based on what you learn, with tests that verify the change.”
↩︎ Iteration: ship it, fix it, or stop it“the underrated skill of deprecating your own work”
↩︎ Retirement: your work, and the model beneath it“Diligence in the builder model is full ownership”
↩︎ Key concept - 2.
“Building a successful LLM-based application starts with clearly defining your success criteria and then designing evaluations to measure performance against them.”
↩︎ Discovery hands design a definition of success“Design evals that mirror your real-world task distribution.”
↩︎ Discovery hands design a definition of success“Building a successful LLM-based application starts with clearly defining your success criteria and then designing evaluations to measure performance against them.”
↩︎ Exam trap 1“Building a successful LLM-based application starts with clearly defining your success criteria and then designing evaluations to measure performance against them.”
↩︎ Checkpoint - 3.
“Two engineers reading the same initial spec could come away with different interpretations on how the AI should handle edge cases.”
↩︎ Discovery hands design a definition of success“a decline in score signals that something is broken and needs to be improved.”
↩︎ Iteration: ship it, fix it, or stop it“When more powerful models come out, teams without evals face weeks of testing”
↩︎ Retirement: your work, and the model beneath it“a decline in score signals that something is broken and needs to be improved.”
↩︎ Exam trap 3“to become a regression suite that is run continuously to catch any drift.”
↩︎ Prediction“They protect against backsliding, as a decline in score signals that something is broken and needs to be improved.”
↩︎ Checkpoint - 4.https://code.claude.com/docs/en/agent-sdk/overviewOfficial docs
“such as built-in tools, permissions, sessions, and hooks.”
↩︎ Design picks the build surface the constraints allow“You write the tool loop yourself”
↩︎ Design picks the build surface the constraints allow“A hosted agent harness that runs the agent loop, with sessions in an Anthropic-managed cloud sandbox or a self-hosted sandbox on your own infrastructure.”
↩︎ Exam trap 2 - 5.
“Instead of building your own agent loop, tool execution, and runtime, you get a fully managed environment”
↩︎ Design picks the build surface the constraints allow“Pre-built, configurable agent harness that runs in managed infrastructure. Best for long-running tasks and asynchronous work.”
↩︎ Prediction - 6.https://academy.claude.com/courses/ai-fluency-for-builders/delegation-the-builder-s-toolkitOfficial docs
“Each must be concrete enough that a stranger could tell you whether the finished product passes or fails.”
↩︎ Handoff gives engineering the tests, not just the design - 7.
“Fetch the session after it goes idle to read the latest totals.”
↩︎ Monitoring turns live behaviour into decision inputs“To enforce a spend limit, set a session budget rather than polling usage and stopping the session yourself.”
↩︎ Monitoring turns live behaviour into decision inputs - 8.
“A review finds problems only after the calls ran.”
↩︎ Monitoring turns live behaviour into decision inputs“copy them to your own logs with the events API before you delete it.”
↩︎ Retirement: your work, and the model beneath it“With a self-hosted sandbox, the copies of tool inputs and outputs on your own infrastructure are yours to retain or delete.”
↩︎ Checkpoint“Files a session produces: Deleted with the session. Download the files you want to keep first.”
↩︎ Checkpoint - 9.
“On September 30, 2026, Anthropic notified developers using Claude Sonnet 4.5 of its upcoming retirement on the Claude API.”
↩︎ Retirement: your work, and the model beneath it - 10.
“All requests to this model will now return an error.”
↩︎ Retirement: your work, and the model beneath it
Also cited
“Requests to a retired model fail.”
↩︎ Exam trap 4