Pillar 02
AI Development
AI development is the engineering of the system around a model. It decides what enters the context window, how the system retrieves and remembers information, which tools it may call and under what limits, and how each change is tested and each run recorded, so that a person can inspect the result and reproduce it.
Decisions this pillar covers
| Decision | Question | Produces |
|---|---|---|
| What the model sees | Which instructions, documents, tool definitions, and history belong in the window at each step, and what stays out until needed? | A context map and token budget |
| What it can look up and remember | Where does each answer live, how is it found, and what may the system write back for later runs? | A retrieval design doc with owners and retention rules |
| What it may do | Which actions can the system take, with which permissions, limits, and approvals? | Tool contracts and loop limits |
| How a change is proven | Which cases must pass before a prompt, tool, or model change is allowed to merge? | An eval suite with a CI gate |
| How a run is inspected | What does each run record so that a failure can be explained and replayed? | A trace schema and a change log |
| What it costs to run | Which model handles which request, and what is the budget and latency target for each? | A model routing table |
Topics
- AD-01 Engineer the context — Context map and token budget
- AD-02 Design retrieval and memory — Retrieval design doc
- AD-03 Design tools and the agent loop — Tool contracts
- AD-04 Build the eval harness — Eval suite with a CI gate
- AD-05 Version prompts and models — Change log and regression plan (in-progress)
- AD-06 Trace and observe agents — Trace schema (in-progress)
- AD-07 Set guardrails and refusals — Policy and test set (planned)
- AD-08 Engineer cost and latency — Model routing table (planned)
Stages
| Topic | Entry | Exit |
|---|---|---|
| AD-01 Engineer the context | A defined task with a spec, and traces of at least a handful of real or realistic runs with token counts. | A context map and token budget stored next to the code, plus one eval run showing the budgeted version does the task at least as well as the version before it. |
| AD-02 Design retrieval and memory | A context map that marks which sources are retrieved on demand, and a set of real questions the system must answer. | A retrieval design doc with an owner per source, a retention rule per memory type, and a retrieval eval that passes an agreed threshold. |
| AD-03 Design tools and the agent loop | A spec that names the actions the system may take and must never take, and a context map with a token ceiling for tool definitions and results. | A contract for every tool, loop limits written down, and a test run showing the model picks the right tool with valid arguments on the agreed cases. |
| AD-04 Build the eval harness | A spec with a definition of correct and labelled cases, plus traces from a working prototype. | A suite that runs in CI on every change to prompts, tools, retrieval, or model version, with written thresholds, a frozen holdout, and a named person who can override the gate. |
Automate
- Counting tokens per source and drafting the context map
- Refreshing indexes and running retrieval checks after each change
- Drafting tool contracts from API documentation and testing tool choice
- Running the eval suite on every change and reporting which cases moved
- Collecting traces and flagging runs that break a limit
Keep human
- Deciding which facts a run may never lose and which source is the truth
- Granting tool permissions and choosing which writes need approval
- Reading traces, naming failures, and labelling the holdout
- Setting thresholds and approving any override of the gate
FAQ
How is AI development different from writing prompts?
A prompt is one input among several. AI development also covers tool definitions, retrieval, memory, permissions, loop limits, evals, and traces. Those structural parts tend to survive a model change better than prompt wording does, which is why this pillar spends most of its time on them.
In what order should a team work through this pillar?
Start with the context map, because it shows what the model is working from. Then design retrieval and memory, then tools and the loop. Build the eval harness alongside all three, so that each design choice is tested against the same cases. Versioning, tracing, guardrails, and cost follow once there is something to measure.
Do I need an agent to use these topics?
No. A single model call with retrieval still needs a context budget, a retrieval design, and evals. The tool and loop topic matters once the system takes actions, and it starts by asking whether a fixed workflow would do.