AI Team Playbook / Rule 1 of 12
Write the constitution first
Before anyone starts, the lead writes down the technology stack, the rules that never change, and the things the system deliberately does not do.
September 16, 2026 · About 2 minutes
Why
An agent starts every session with no memory. The first thing it needs is the shape of the ground: what the stack is, what must never change, and what is missing on purpose. Without that, it proposes rewrites, and it helpfully adds things nobody asked for.
The single most useful line in the whole document is the rationale next to each stack choice. This one, from a document-processing product, has stopped more than one rewrite:
Extraction engine: hosted document-intelligence API for the MVP, custom models later. Rationale: high accuracy on day one with no training data; corrections collected in production feed the custom models. This is a bridge, not a destination.
The second most useful part is the list of deliberate limits. “English-language documents only. Other languages are flagged, not processed. Decided in ADR-0003.” One line like that prevents a week of work.
How
The file has five sections and should stay on one page. If a rule needs a paragraph, it is a decision and belongs in an ADR instead.
- Purpose. One paragraph. What the system is for and who uses it.
- Stack. A table, one row per layer, with the choice, the version and one sentence of rationale.
- Non-negotiables. Numbered rules the agent must never break and the reviewer must always check.
- Conventions. Only what differs from the language defaults.
- Deliberate limits. What the system does not do.
The kit ships with seven non-negotiables. Keep them unless you have a written reason not to.
- No secrets in the repository.
- Every change to a boundary between components updates the contract and the tests on both sides. Rule 7.
- Every schema change ships with its migration in the same pull request.
- Tests run on every pull request, and a red check blocks the merge.
- One task, one branch, one pull request, under 400 changed lines. Rule 6.
- The agent does not push, deploy or run destructive commands. Rule 3.
- Anything with a screen has an approved walkable demo before code. Rule 5.
Record each decision that changes the constitution as an ADR: the context, the decision in one sentence, the options rejected and why, and the trigger for revisiting. Keep the rejected options. They stop the same debate in six months, and they stop an agent proposing one of them as an improvement.