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

DecisionQuestionProduces
What the model seesWhich 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 rememberWhere 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 doWhich actions can the system take, with which permissions, limits, and approvals?Tool contracts and loop limits
How a change is provenWhich 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 inspectedWhat does each run record so that a failure can be explained and replayed?A trace schema and a change log
What it costs to runWhich model handles which request, and what is the budget and latency target for each?A model routing table

Topics

Stages

TopicEntryExit
AD-01 Engineer the contextA 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 memoryA 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 loopA 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 harnessA 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

Keep human

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.