Skip to content

Book › Part 7: Reference › The specs docs for

The specs

Know when to read a spec.

A spec says exactly what a part does, why it was decided that way, and what is left out. The book teaches you to build, a guide shows how to use a feature, and a spec is for relying on it, changing it, or finding out why it behaves as it does. If a guide and a spec disagree, the spec and the code are right.

There is one spec for each part: agents, the runner, models, tools, skills, identity, approvals, configuration, streaming, attachments, the run log, jobs, submitted jobs, background jobs and observers; MCP tools and tool discovery have their own, and the units says what a run, an attempt and an execution are. The index lists them.

Where things belong. A change goes in the spec of the thing it changes, and not in the spec of whatever work happened to touch it. Each fact is written once, in the spec that owns it, and the others link to it. The table of who owns what is the rule.

You ask... Read
Why does a failed job not retry? What happens when a worker dies? Submitted jobs
What exactly is stored, and what never is? Persistence
What is in a span, and which attribute names are used? Observers and OpenTelemetry
How does the runner retry, limit and launch agents? The agent runner
Who is a run for, and what does featherweight do and not do with that? Identity
Which environment variables are there, and which settings can I pass in code? Configuration

Why the book does not restate them: a fact written twice is soon written two ways.


← The guides · Part 7: Reference · The glossary →