The SPEC lifecycle
Everything buildable enters as a SPEC: one feature, one fix, one refactor, or a plan handed over by another tool — turned into a small, deliverable specification before any code is written.
The rule: no coding without a SPEC
- Nothing gets coded without a SPEC. A loose plan — even a good one from another agent — is
converted into a
SPEC_NNNN_<SLUG>.mdfirst (atlas spec new <SLUG>creates it with the next number and its backlog line). DRAFT_*.mdis the optional shaping stage, for an item still being decided. A DRAFT either graduates to a SPEC or is discarded — it is never a destination.- The backlog indexes the open SPECs/DRAFTs — one line each, nothing else.
- A closed SPEC moves to
_archived/, with its findings file (atlas spec close <name>).
What a SPEC is — and is not
A SPEC is the what plus its route: the goal, its acceptance criteria, its repos, its
boundaries, and a Plan — the ordered steps that deliver it. The fixed shape (template in
06-bootstrap.md): created · optional started · optional closed ·
repos · optional mode · What · Acceptance · Out of scope · Plan. Nothing else.
started: is written the day the SPEC enters STATUS → Active (its branch created) and closed:
the day it moves to _archived/; each is written once and never rewritten, like created:, so a
stamp is not state — the living state stays in STATUS. The transitions are mechanical and the
CLI performs them: atlas spec start <name> stamps started:, takes the SPEC out of the
backlog and creates its Active block; atlas spec close <name> stamps closed:, archives the
SPEC with its findings and lists it under Recently closed, refusing while one of its repos has
uncommitted work on its spec/NNNN-* branch or commits on that branch not yet in the base
branch. The stamps, the backlog line, the Active block and _archived/ are what those
commands write; they are never edited by hand.
A SPEC run in delegated mode (05-discipline.md) must be complete enough to execute without questions: its Acceptance covers the cases the workbench will meet, including the edge cases, so the workbench stops only on a real blocker.
Never in a SPEC:
- state — status, progress, where-we-are → STATUS.md → Active;
- checkboxes — that's progress, not plan;
- the how — the technique of each step; decided live, its record is the code;
- code — no fenced blocks, diffs or signatures; reference a path instead;
- findings — blockers, misconceptions, wrongly-posed parts → its findings file;
- archaeology — no "previously", "changed from", attempts or dead ends
(05-discipline.md);
- session notes.
A SPEC that grows any of these is contaminated — strip it (atlas spec lint finds the
fenced blocks, checkboxes, state headings and archaeology; judgment finds the rest). That is
what lets any agent open a
SPEC and read only what we are doing and in what order.
Findings — beside the SPEC, never in it
SPEC_NNNN_FINDINGS.md, the SPEC's companion (same number), keeps what you learn while
resolving it — something that blocks it, a misconception that can't be resolved within it,
something wrongly posed in the SPEC itself — so it isn't lost and doesn't turn the SPEC into a
log. Create it on the first finding.
It is a record, not a checklist: findings never hold a SPEC open. A finding worth pursuing becomes its own DRAFT or SPEC; the file is archived with its SPEC.
Status values
READY → IN PROGRESS → IN REVIEW → CLOSED → _archived/
| Status | Meaning |
|---|---|
| READY | Shaped and buildable; not started. |
| IN PROGRESS | Being implemented, on its branch (05-discipline.md). |
| IN REVIEW | Implementation finished; a reviewer other than the implementer verifies the work in the code, not in the agent's report. |
| CLOSED | The independent review verified the work in the code, a commit exists, and the human said close. The SPEC moves to _archived/. |
The lifecycle ends at the code. Push, PR, merge, release or deploy are not the framework's business — they depend on the project and nothing in the Atlas can verify them. A SPEC closed too early goes back to the root as IN REVIEW.
Picking up a SPEC, and leaving it
A fresh agent resumes in two reads: its block in STATUS.md → Active (Done / Next /
Blocked — where we left off), then the SPEC (what we are doing). Continue from Next —
and if the block has a Paused line, resume the stash first
(05-discipline.md). Whatever opens the Atlas, atlas orient prints that
first read: the method's orientation, the coding rules in force, atlas status and STATUS.
Before stopping or handing off, rewrite that Active block to the current state — never append
to it. That is the checkpoint: atlas sync does its mechanics — the sources' state, the lint,
a missing stamp, a closed SPEC still in Active — and the Done / Next / Blocked lines are the
agent's or the human's to write (in Claude Code, /atlas-sync does both).
atlas spec pause|resume|review <name> keep the block through a pause and into review.
The how is decided live
The Plan gives the route; the how of each step is settled at execution time. In paired mode the agent proposes an approach, the human approves, then it executes — plan mode, where the tool has one, makes this a natural gate and the cheapest review there is, catching a wrong approach before any code exists. In delegated mode the workbench decides it from the SPEC and the rules, and the principal reviews the result (05-discipline.md).
Nothing about the how is written down. The general way of working already lives in the
coding-rules source, when the Atlas declares one; what remains is step-specific and its record is the code. No PLAN_*.md, no
TASKS_*.md, no design notes per step. A how-decision with standing value graduates to
AGENTS.md (project-specific) or, through CODING_RULES_CANDIDATES.md, the coding-rules
source (universal).
The deviations registry
CODING_RULES_DEVIATIONS.md, owned by the coding-rules plugin, runs independently of
the SPEC flow. It records explicit, deliberate divergences from a coding rule that applies to
this Atlas — a rule you'd be expected to
follow but deliberately (or for now) don't, with the reason. A divergence may also spawn a SPEC
to resolve it.
It is not a list of out-of-domain rules that simply don't apply — you don't enumerate what the project isn't. (A memory-server project doesn't record "I'm not a web app.")