The Life Cycle of a Claude App: Six Phases, a Model That Retires, and a Release Gate for Every Change
Follow a returns helper through plan, build, test, release, operate and maintain: watch the model's status from active to retired, and put a release gate with eval cases in front of every prompt change.
What you will learn
- Name the six phases of a Claude app's life cycle and why it loops back from maintain to plan
- Explain how waterfall, agile and DevOps run that loop
- Read a model's status from active to retired and plan a migration before the retirement date
- Write a release gate that promotes a prompt change only when every eval case passes
Before you start
- The Claude Messages API: your first call
- Basic Python
Shipping a Claude app isn't the end of the work. It's one step in a loop. The app gets planned, built, tested, released, operated and maintained, and then the loop starts again.
We follow one small app, a returns helper, through three moments of its life:
- It has been live for months. Someone has to watch the usage, the errors and the cost. That's operating.
- Someone tidies the system prompt. It looks harmless, but it's a change to release, and it needs a gate.
- The model the app uses gets a retirement date and a named replacement. The app has to move. That's maintaining.
Shipping is the middle of the story.
Six phases, one loop
For a Claude app, each phase has a concrete meaning:
- Plan: requirements and the choice of model.
- Build: code, prompts and tools.
- Test: evals before release.
- Release: deploy with a pinned model.
- Operate: watch errors, usage and cost.
- Maintain: fix, update and migrate models.
The Claude Certified Developer guide groups these into four words: develop, implement, operate and maintain. Same loop, coarser labels. If the plan phase is where you are, from requirement to design for a Claude app shows how a business need becomes requirements and a design.
Three ways to run the loop
Teams run that loop in different ways. These are general IT frameworks, not Claude features:
| Framework | How it runs the phases |
|---|---|
| Waterfall | Once, in order. A phase ends before the next one starts. |
| Agile | Short loops. Each one plans, builds, tests and releases a small piece that works. |
| DevOps | Adds automation. Code is tested and released by automated checks, and what happens in operation feeds the next change. |
Prompts, tools and models change often, so short loops with automated checks fit a Claude app well.
A model has a life cycle too
The model your app calls goes through its own states, as described on the Claude docs page Model deprecations:
- Active: fully supported.
- Legacy: no more updates.
- Deprecated: still works, but a replacement is named and a retirement date is set.
- Retired: requests to it fail.
For publicly released models, Anthropic gives at least 60 days of notice before retirement. So migrate early: test the replacement with your evals before the retirement date. To find where an old model is still used, the Console's Usage page can export a CSV broken down by API key and model. Amazon Bedrock and Google's Vertex AI set their own schedules for the Claude models they host, so check the platform you're on.
model_watch.py: is our model still supported?
A tiny check for the maintain phase. The status table is the project's own copy, written for the demo; in real life you read the live Model deprecations page.
"""Check a model against its life cycle status."""
# our own copy of the status table:
# read it from the Claude docs, Model deprecations
NEW = "claude-sonnet-5-5"
REGISTRY = {
"claude-sonnet-4-5-20250929": ("deprecated", NEW),
"claude-sonnet-4-20250514": ("retired", NEW),
NEW: ("active", None),
}
def check(model):
state, replacement = REGISTRY[model]
if state == "active":
return f"{model} active"
if state == "deprecated":
return (f"{model} deprecated "
f"-> move to {replacement}")
return (f"{model} retired, requests fail "
f"-> use {replacement}")
- Each entry holds a state and, where there is one, the replacement.
- Deprecated means the model still works, and the message says where to move.
- Retired means requests fail, and the message names the replacement.
A prompt edit is a release too
Now the gate. A prompt change goes through eval cases, and then through a gate that asks one question: did they all pass?
release_gate.py
"""A release gate: ship only if every case passes."""
from stand_in import MODEL
CASES = [
("How long can I return it?", "30 days"),
("Can I return it opened?", "working order"),
("Who pays return shipping?", "free"),
]
def run_cases(client, system):
passed = 0
for i, (q, must_have) in enumerate(CASES, 1):
ask = {"role": "user", "content": q}
r = client.messages.create(
model=MODEL,
max_tokens=200,
system=system,
messages=[ask],
)
ok = must_have in r.content[0].text
print(f" case {i} {'pass' if ok else 'FAIL'}")
passed += ok
return passed
def gate(client, name, system):
passed = run_cases(client, system)
if passed == len(CASES):
print(f" gate: promote {name}")
return True
print(f" gate: blocked {name}, "
f"{passed} of {len(CASES)} passed")
return False
- Each case is a question and a phrase the reply must hold.
- Every case runs against the candidate prompt, the new version we want to ship.
- The change is promoted only if every case passes. Otherwise it's blocked and nothing is released.
run_all.py builds prompt v2 with three lines (deadline, opened, shipping) and v3 as a tidy-up that keeps only the first two:
"""Run the model watch and the release gate."""
import model_watch, release_gate, stand_in
print("model watch")
for model in model_watch.REGISTRY:
print(" ", model_watch.check(model))
client = stand_in.make_client()
V2 = "\n".join([
"deadline: Returns are accepted within 30 days of delivery.",
"opened: Opened items can be returned if they are in working order.",
"shipping: Return shipping is free for faulty items.",
])
V3 = "\n".join(V2.splitlines()[:2]) # a tidy-up that dropped the shipping line
print("release gate, prompt v2")
release_gate.gate(client, "v2", V2)
print("release gate, prompt v3")
release_gate.gate(client, "v3", V3)
Watch and gate: what the run printed
The project runs against a stand-in (the real Anthropic SDK on an httpx mock transport) that answers from the matching line of the system prompt. The cases and replies are scripted for the demo.
model watch
claude-sonnet-4-5-20250929 deprecated -> move to claude-sonnet-5-5
claude-sonnet-4-20250514 retired, requests fail -> use claude-sonnet-5-5
claude-sonnet-5-5 active
release gate, prompt v2
case 1 pass
case 2 pass
case 3 pass
gate: promote v2
release gate, prompt v3
case 1 pass
case 2 pass
case 3 FAIL
gate: blocked v3, 2 of 3 passed
The deprecated model gets a "move to" message, the retired one a "requests fail" message, and the active one needs nothing. Prompt v2 passes everything and is promoted. Prompt v3 looked harmless, but it lost the shipping answer, so it's blocked.
A three-case gate is the smallest version of the idea. To grow it into a golden set with graders and CI gates, see regression testing an LLM bot in CI. For the model side of maintenance, moving off a retiring model with a replay and a staged rollout, see pinning Claude model IDs and upgrading safely.
Common mistakes
- Treating release as the end. Operating and maintaining come next, and they last longest.
- Assuming a retired model keeps answering. Requests to a retired model fail. Migrate before the date.
- Shipping a prompt edit with no test. A prompt edit is a release. It goes through the gate like code.
- Waiting for the retirement date to test the replacement. The notice period is for running your evals on the new model.
Quick recap
| Idea | What to remember |
|---|---|
| Phases | Plan, build, test, release, operate, maintain, then back to plan |
| Frameworks | Waterfall runs once; agile and DevOps run short, automated loops that suit a Claude app |
| Model status | Active, legacy, deprecated, retired; at least 60 days of notice for public models |
| Release gate | Every case must pass before a prompt, tool or model change ships |
Try it yourself
Add a fourth case to CASES, such as a question about exchanges, and a matching line to prompt v2. Run the gate again and confirm v2 still promotes and v3 is still blocked. Then add your own app's model ID to REGISTRY with the state the live Model deprecations page shows for it.
Related course on Udemy
Claude Certified Developer - Foundations (CCDV-F) Exam Prep
Build and ship Claude apps: the API, agents, tools and MCP, prompts, evals, security and model choice.View on Udemy ↗: Claude Certified Developer - Foundations (CCDV-F) Exam Prep (paid course, opens in a new tab)Related posts
The Claude Messages API: Your First Call, Field by Field
One request in, one Message out. The four fields of a Messages API call (model, max_tokens, system, messages), how to read content blocks, stop_reason and usage, and why every turn resends the history.
Claude Tool Use: How tool_use and tool_result Work in the Messages API
Follow one order question through Claude's tool round trip: define a tool, read the tool_use block, run your own function and send a matching tool_result back, including parallel calls and is_error.
Claude Client SDKs Wrap One REST API: Raw HTTP, Python, TypeScript and Async Calls Compared
Every Claude client SDK wraps the same REST request: a POST to /v1/messages with a JSON body. See it built by hand, through the Python and TypeScript SDKs, as typed errors, and as async calls that wait together.
Anthropic SDK Timeouts, Retries and Error Classes: Configure the Client Once, Then Give 429, 529, 400 and Timeouts Their Own Move
Configure the Anthropic SDK client (timeout, max_retries, with_options, async, pagination), see which errors it retries by itself, then repair a retry wrapper so a 429, a 529, a 400 and a timeout each get the move the docs support.