CertSafari
    Anthropic Claude Certified Architect – Professional (CCAR-P)· Lessons

    Domain 6 · Lesson 35/38

    AI solution lifecycle phases: discovery to retirement

    Support lifecycle phases

    19 min read
    2.8% of exam
    11 sources
    Published 19 Oct 2026
    Docs as of 14 Oct 2026

    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.

    What each lifecycle phase produces for the next one
    PhaseCore questionHands to the next phase
    DiscoveryWhat problem, for whom, and what counts as success?Success criteria, acceptance tests and an evaluation set
    DesignWhich architecture and build surface meet those criteria?A design whose behaviour the tests can check
    HandoffCan engineering build and change it safely?Tests that define done, plus the design
    MonitoringIs it working for real users at acceptable cost?Measured results set against the criteria
    IterationShip it, fix it, or stop it?A new version, or a decision to retire
    RetirementHow 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.

    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?

    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?

    Sources23

    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.

    Build surfaces compared by who runs the loop and the infrastructure
    SurfaceWhat you getWho operates the loop and runtimePick it when
    Client SDK (Claude API / Messages API)Direct access to the Claude API; you write the tool loop yourselfYou write and run all of itYou want custom agent loops and fine-grained control
    Agent SDKA library that runs the Claude Code binary, with built-in tools, permissions, sessions and hooksYou, in a process you operateYour agent needs built-in file, command and search tools without hand-writing a tool loop
    Managed AgentsA hosted agent harness that runs the agent loop, in an Anthropic-managed cloud sandbox or a self-hosted sandboxAnthropic hosts the harness; the sandbox can be Anthropic-managedLong-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?

    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?

    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?

    Sources45

    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?

    Sources61

    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.

    A session's cumulative usage, read after it goes idlejson
    {
      "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.

    Events that tell you a session needs attention
    What to watchWhere to see it
    Sessions that go idle, for example to wait for approvalThe session.status_idled webhook
    Sessions that reach a budget or terminateThe session.budget_reached and session.status_terminated webhooks
    Scheduled runs that fail to start a sessionThe deployment_run.failed and deployment.paused webhooks
    Behavior beyond what the agent was grantedAn 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,

    Sources78

    6.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?

    Sources13

    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.

    Model lifecycle states and their replacements (as published)
    API model nameStateDeprecatedRetirement dateRecommended replacement
    claude-sonnet-4-5-20250929DeprecatedSeptember 30, 2026November 30, 2026claude-sonnet-5-5
    claude-opus-4-1-20250805RetiredJune 5, 2026August 5, 2026claude-opus-4-8
    claude-sonnet-4-20250514RetiredApril 14, 2026June 15, 2026claude-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.

    Sources910138

    Sources

    (11)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 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. 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. 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. 4.
      “such as built-in tools, permissions, sessions, and hooks.”
      ↩︎ 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. 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. 6.
      “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. 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. 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. 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

    Also cited

    Ready to test yourself?

    Practise the 12 questions on this subdomain.

    Spotted a mistake, or was something unclear? Tell us.