The 2026 AI Architect's Checklist: 15 Questions Before You Ship an AI Feature
November 10, 2026 · 8 min read
AI, Agentic AI, Software Architecture, LLM, Design Patterns
Most AI features don't fail because the model is weak. They fail because nobody decided what happens around it: what the model is allowed to touch, what it costs when a thousand people use it at once, how you know a new prompt is better than the old one, and how you turn it off at 2 a.m.
Those are architecture questions, and they're the same kind of questions you'd ask about any dependency that is slow, expensive and sometimes wrong. This post is the checklist I'd walk through before shipping an AI feature. It's deliberately short. Each item links to a post with runnable C# and Python if you want the detail.
First: the mental model
Every AI feature sits somewhere on this line:
| Shape | What it is | Use it when |
|---|---|---|
| One call | One prompt in, one answer out | The task is a single transformation: summarize, classify, extract |
| Workflow | Several calls in a fixed order your code controls | You know the steps ahead of time |
| Agent | The model picks the next step and the tools, in a loop | You genuinely can't know the path ahead of time |
Anthropic's Building effective agents puts it best: start with the simplest thing that works. Each step to the right costs more calls, more latency and more ways to fail. It's "monolith first", for AI.
The checklist
Decide the shape
1. Does it need a model at all? If the answer is a number, a lookup or a rule, compute it. Models are for language, judgment and messy input. A tax calculation or a date range should never go through one.
2. What's the simplest shape? One call, then a workflow, then an agent. Make anyone proposing the next step up explain why the current one can't do the job. The six workflow and agent patterns, with code, are in AI workflows and agents.
3. Is there a spec? Inputs, the output schema, what "done" means, what happens on failure, and who reviews the result. If you can't write this down, the model can't hit it either. Spec-driven development applies to AI features as much as to the agents that write your code.
Pick the model
4. Which model, and how do you know? Pick by task, not by brand. Small, fast models handle classification and extraction. Larger ones earn their price on reasoning and long, multi-step work. Shortlist two or three, run them against your own test inputs, compare quality, latency and cost, then pin the exact version and write down why. Re-run that comparison before you switch. A model that tops a public leaderboard can still lose on your data.
5. Where does the data go? What leaves the device, which region it's processed in, whether the provider can retain or train on it, and whether your audience (children, health, finance) changes which providers and settings you're allowed to use. Answer this before you write code, not after legal asks.
Build what's around the model
6. What goes into the context? The context window is a budget. Decide what's always there (instructions), what's fetched on demand (retrieval), what's a tool the model can call instead, and what gets summarized or dropped. Keep the stable part at the front so prompt caching can reuse it. AI: reliable output covers context engineering and RAG with code.
7. Are the tools safe? Few tools, typed inputs, error messages the model can act on, and least privilege. Anything with a side effect (sending, paying, deleting) should be idempotent and gated. An agent will happily retry a tool call that charges a card. The MCP guide covers the protocol.
8. What does the harness enforce? The harness is everything around the model: the loop, the tools, permissions, memory, limits and logging. At minimum it needs a step cap, a token budget, an explicit "is it actually done?" check that isn't just the model saying so, timeouts, and a trace of every step. I built a tiny coding agent to see how little a working harness needs, and the answer is: not much code, but every limit matters.
Make it behave
9. Where are the guardrails? Validate input before the model sees it, use the provider's safety settings, then validate and repair the output against your schema. For anything that matters, a deterministic check in plain code beats asking a second model.
10. Where does a human approve? Publishing, spending, deleting and sending to real people get an approval step. The model proposes, a person decides. Design the approval queue so a double-click can't approve twice.
11. What happens when it fails? Retry only errors that are actually transient. Decide on purpose whether there's a fallback model or a graceful "not available right now". If quotas are involved, reserve the quota before the call and refund it if the call fails, so users aren't charged for your outage. Long agent runs need checkpoints so a crash resumes instead of starting over. All of these are in AI in production.
12. What does it cost at scale, and how do you stop it? A per-user quota, a global daily cap, a kill switch you can flip in config without a deploy, a hard budget at the provider, and the cost of every call logged. Agent loops make many calls per request and resend a growing history each time, which is how a demo that costs pennies becomes a bill that doesn't. Loop engineering has the arithmetic.
Prove it and ship it
13. How do you know a change is better? An eval set: real inputs with graders, run before every prompt, model or parameter change. Every bug you find in production becomes a new case. For agents, check the path it took as well as the final answer.
14. Can you see what happened? For every call: model and version, prompt version, tokens, latency, cost and outcome. Without this, "the AI got worse" is a feeling instead of a graph.
15. Can you roll it back in a minute? Put prompt versions behind a flag, roll out to a small group first, and make reverting a config change rather than a redeploy. Prompts are code. Treat them like code.
The pattern behind the checklist
Read the list again and count how many items are about the model itself. Two, maybe three. The rest is timeouts, idempotency, quotas, approvals, observability and rollback: the same systems discipline every distributed system needs. A model is just a dependency that is slow, costly and occasionally wrong in a confident voice.
That's the good news for anyone with a backend background. Most of what makes an AI feature production-ready is knowledge you already have. The architecture patterns map shows how each AI pattern maps onto an older one.
Check yourself: questions and answers
When would you choose a workflow over an agent?
Whenever the steps are known ahead of time. A workflow is cheaper, faster, easier to test and fails in predictable places. I'd only move to an agent when the path depends on what the model discovers along the way.
How do you pick a model for a feature?
By task and by evidence. Shortlist two or three by tier, run them against your own test inputs, compare quality, latency and cost, pin the version and record the decision. Public benchmarks are a starting point, not the answer.
What's an agent harness?
Everything around the model that turns it into a system: the loop, tools, permissions, context management, memory, limits, hooks and tracing. Claude Code and Codex are harnesses for coding; an agent SDK or a durable workflow engine is a harness for your own product.
How do you stop an agent from running up a bill?
A step cap and a token budget per run, a per-user quota, a global daily cap, a kill switch in config, a hard budget at the provider, and logged cost per call so I notice before the invoice does.
How do you test something non-deterministic?
With evals: a fixed set of inputs and graders, run on every change and compared with the previous version. Code-based graders for anything checkable, a model or a human for judgment calls, and real failures added as regression cases.
What's the biggest risk with giving a model tools?
Side effects driven by untrusted input. A document or web page can carry instructions (prompt injection). So: least privilege, typed tools, idempotent side effects, and a human approval step for anything destructive or expensive.
Further reading
- Anthropic, Building effective agents and Effective context engineering for AI agents
- Model Context Protocol
- On this blog, with runnable code: AI: reliable output, AI workflows and agents, AI in production
Thoughts on this?
Tell me on X: @bobbyencoded · Share this post on X
Want more like this? Subscribe to The Decode, a weekly email on the AI and developer news worth your time.