Guide

How to write a task contract a cheap model cannot misread

The tier line and the four sections of a contract. A cheap worker does what the text says, so the text must leave it nothing to guess.

29 Nov 2026 · 3 min read
Poster: a hand signs a contract with four tabs, and a robot with a magnifier reads it. The word CONTRACT in huge type; the subtitle How to write a task contract a cheap model cannot misread.Poster: a hand signs a contract with four tabs, and a robot with a magnifier reads it. The word CONTRACT in huge type; the subtitle How to write a task contract a cheap model cannot misread.

What a contract is and why a cheap worker needs one

This is one mini-guide from my dev workflow System. The System shows the roles, tiers and merge gate. This guide covers the one text that starts every worker: the contract.

A contract is the whole task as far as the worker is concerned. It says what to build, what to leave alone and how to know the work is done. The worker gets one spec file with the contract in it. The chat where we talked the task through is not in that file, so anything the text leaves out is missing for the worker.

I use a cheap model for workers, because a narrow task with a clear text is cheap to do well.

Anthropic describes the same failure in its own multi-agent system. Their first briefs to subagents were short, such as "research the semiconductor shortage". They were vague enough that subagents misread the task or ran the same searches as each other. Their fix was to give each subagent an objective, an output format, guidance on tools and sources, and clear task boundaries (How we built our multi-agent research system).

The tier line and the four sections

Every worker contract starts with its tier on the first line: T1, T2 or T3. The tier says which path the task takes, so it decides who works on the task and whether a reviewer checks it. A T0 task has no worker: the coordinator does it alone, so it gets no contract. The four sections come after the tier, in this order. Each one answers a question the worker could otherwise guess at.

PartWhat goes in itTest before you send it
TierOne line: T1, T2 or T3. The tier follows what the change touches, not how big it is. T0 has no worker and no contract.Can you name the paths the change touches?
GoalThe end state first, then the reason. One or two sentences.Can a reader say in one sentence what is different after the change?
RequirementsA numbered list of what must be true. Include every surface that repeats the same fact: copy, legal text, changelog, feature list.Can you tick off each item by looking at the result?
Must not changeThe fence: files, behaviour and text that stay as they are.Would the worker know what it may not touch without asking?
CheckOne command. It either passes or fails.Can someone run the exact line and read pass or fail?

Goal and Requirements say what to build. Must not change and Check say what to leave alone and how to prove the work. If a part is missing, the worker may decide it alone.

A made-up example

This contract is invented for a small docs site. It is not a task from my work, and the command in it is made up too.

Tier: T2

Goal
Readers can see when a page was last updated,
so they can judge whether it is still current.

Requirements
1. The footer of each page shows "Last updated: YYYY-MM-DD".
   The date is the updated field in the front matter.
2. If a page has no updated field, the footer shows
   no date line and no error.
3. The same change is made in the English and
   the Russian page templates.

Must not change
- The front matter format and its other fields.
- The text of the pages and the menu.
- The footer layout and its links. Only the date line is new.

Check
npm run check:docs

Read it once more and check each part against the table. Requirement 2 covers the case a worker could otherwise invent: a page without an updated field. The Must not change list keeps the footer layout as it is, so the worker only adds the date line.

Common mistakes

Each of these makes the worker guess. Check your contract for them before you send it.

MistakeWhat goes wrongFix
A vague goal, such as "make the footer better"The worker has to guess what better means, so it may change things nobody asked for.Name the end state and the reason in one or two sentences.
No fenceNothing says what must stay, so any nearby change may look allowed.List the files, behaviour and text that stay as they are.
A check that is not one commandThe worker may not know when it is done, and the reviewer has no exact line to repeat.One command that either passes or fails.
Two deliverables in one contractOne pull request holds two changes, so the review is harder and one half can hold up the other.One contract, one branch, one pull request. Write the second deliverable as its own contract.

A useful test for any line: if you cannot tick it off, the worker may not be able to either.

A checklist you can copy

Copy the list below and tick every line before you send a contract.

Where these rules come from

The rules above come from how I run my own workflow. Our roles live in a private repository, so I describe them here in words instead of linking them. They say:

  • A worker contract is a Tier line, then Goal, Requirements, Must not change and Check.
  • A check is one command that passes or fails.
  • The worker builds what the contract asks and nothing else. If the expected behaviour is missing or conflicting, it asks before it builds. Other problems it notices go into its report as follow-ups.
  • One deliverable is one task, one branch and one pull request.

The outside evidence is smaller than my practice. The Anthropic article above is about its own research system, not mine. The Claude Code docs say each subagent runs "in its own context window with a custom system prompt", and that routing tasks to cheaper models like Haiku helps control costs (Create custom subagents). This guide does not show that such a contract prevents rework. That is my practice, not a measured result.