Skip to content

Write the decision record another team can run with

Write an architecture decision record or handoff note for a Claude system that lets another team build, run and change it, and judge documentation for what that team would still have to guess.

Scenario

A consultancy hands a retailer its Claude returns assistant with a 40-page design document. Three months later the retailer's team wants to raise the auto-approval limit for refunds from 50 to 80 EUR.

The document says "auto-approve below 50 EUR". It doesn't say why 50, what was tested, or what else depends on it. The team changes it, and fraud losses double before anyone connects the two.

The document described the system. It didn't let anyone change it safely.

Explanation

Implementation documentation answers two questions for a team that wasn't in the room: why is it like this, and how do we run and change it without breaking it.

Why: one architecture decision record (ADR) per significant decision. Short, dated and never rewritten (a later ADR supersedes it):

  • Context: the problem, the constraints and the requirement that forced a choice.
  • Options considered: each with the evidence used to compare them, such as eval results on the client's data, cost at volume and latency.
  • Decision: what was chosen.
  • Consequences: what it costs, what it rules out, what now depends on it.
  • Revisit when: the conditions that would make it wrong (volume above X, accuracy below Y, a model retired).

How: the handoff note. What the receiving team needs to operate and change the system:

  • Owners and escalation: who owns each component, data source and prompt, and who to call.
  • Models: the exact model ID in use. A pinned ID stays the same model, but models are deprecated and retired with notice, so name where to watch for that and how to re-test a replacement.
  • Prompts and settings as versioned artifacts, with the evaluation set, its pass threshold, and the rule that changes ship only after the full evaluation passes.
  • Thresholds with their reason: every number (limits, confidence cut-offs, retrieval depth) with where it came from and what it protects.
  • Running it: dashboards, alerts and their thresholds, and what to do for each common failure. For example, the Python SDK already retries 429 and 5xx errors (overload included) twice by default, so the runbook says when to wait, when to fall back and when to escalate.
  • Data: what flows where, what is stored and for how long.

The guess test. Read each line as the new team would. Every number without a reason, step without an owner, or "should" without a test is something they will have to guess, and guessing is how the refund limit went wrong.

Worked example

Before (from the design document):

Auto-approve refunds below 50 EUR. Uses the latest Claude model. Prompts are in the repo. Monitor for issues.

After (an ADR plus a handoff note excerpt):

ADR-007: Auto-approval limit for refunds (12 May, accepted)
Context: 70% of refund requests are under 50 EUR. Agents spend 40% of their time on them. Fraud team requires losses under 0.3% of refund value.
Options: no auto-approval; limit 50 EUR; limit 100 EUR. In a 6-week replay of 18,000 requests, losses were 0.2% at 50 EUR and 0.7% at 100 EUR.
Decision: 50 EUR, enforced in the refund service, not in the prompt.
Consequences: agents still handle 30% of requests. Raising the limit needs fraud-team sign-off.
Revisit when: fraud-model changes, or monthly losses exceed 0.3%.

Handoff: model ID pinned in config/model.ts; owner: platform team; check the deprecations page monthly. Prompt changes: run evals/returns (pass: 94% on 600 cases) before merging.

Now the next team knows what 50 protects, who must agree to change it, and how to prove a change is safe.