12 · The .add/ bundle — ABF-1 format¶
← 11 Adoption · Contents · Next: 13 Files and commits →
The one idea: the files are the state, git is the history¶
Everything ADD knows about a project lives in .add/ as plain markdown with YAML frontmatter. Nothing is compiled, generated or cached: the agent writes every file by hand and keeps each one short and true. Git is the history and the seal. If you can edit a text file and run git log, you can read — and drive — the whole method.
The canonical definition ships with the skill, in references/format.md; this chapter is its readable companion.
.add/
PROJECT.md goal · invariants · test_cmd — read first, every session
specs/<lens>.md domain · system · experience · quality · method
milestones/<slug>.md
tasks/<slug>.md
personas/<name>.md optional expert lenses
Slugs are kebab-case and stable, because commits refer to them: freeze(<slug>), refreeze(<slug>), verify(<slug>).
PROJECT.md¶
---
type: Project
title: <name>
goal: <one line — what this project is for>
invariants: # bind every change, Quick included; [] when none yet
- <a property no change may break>
test_cmd: <the full suite command>
stage: prototype | mvp | production
---
## CARD
goal: <the goal, in plain words>
state: <where things stand — one line, updated at the end of each session>
next: <the next piece of work>
Task¶
One file per task, the unit the loop runs on.
---
type: Task
title: <title>
status: direction | build | done | dropped
milestone: <slug> # omit when standalone
kind: feature | fix | refactor | explore | docs | test | data | infra | ui | security | release | integration
sensitivity: none | security | data | architecture
scope: [src/auth/session.py, tests/auth/test_session_expiry.py]
gives:
- S1 POST /sessions -> 201 {id, expires_at}
needs: [tasks/session-store.md#gives] # surfaces from other tasks this one builds on
---
## CARD
goal: expired sessions are refused
why: support saw week-old sessions still acting after password resets
## RULES
- M1 a session within its lifetime is accepted (from: request)
- R:EXPIRED a session past `expires_at` is refused with 401 "session expired" (from: docs/auth.md)
## ASSUMPTIONS
- A1 [when] the boundary second is not specified → `expires_at` itself is already expired → one second of access
- A2 [who] n/a · sessions are per-user; no cross-user surface
## PLAN
strategy: compare against a clock port, not the wall clock
check: pytest tests/auth/test_session_expiry.py
regression: pytest
## CHECKS
- C1 covers: M1 · acceptance · tests/auth/test_session_expiry.py::test_live_session_accepted
- C2 covers: R:EXPIRED, A1 · acceptance · tests/auth/test_session_expiry.py::test_expired_at_boundary_refused
## LOG
- refreeze: C2 aimed at the wrong clock; now uses the injected clock
## EVIDENCE
freeze: 3f2a91c · head: 8be0d44
seal: git diff 3f2a91c 8be0d44 -- .add/tasks/session-expiry.md tests/auth/test_session_expiry.py → empty
check: `pytest tests/auth/test_session_expiry.py` → exit 0 · 2 passed
regression: `pytest` → exit 0 · 318 passed
residue: security — refusal leaks no session id; concurrency — n/a; architecture — clock port only
refute: expires_at = now + 1ms → accepted; now - 1ms → refused · held
verdict: PASS
| section | job | written |
|---|---|---|
## CARD |
the goal and why, in two lines | Direction |
## RULES |
M<n> Musts and R:<CODE> Rejects, each citing its source |
Direction |
## ASSUMPTIONS |
A<n> [<dim>] — every silence filled, with its cost if wrong |
Direction |
## PLAN |
strategy, the check: and regression: commands |
Direction |
## CHECKS |
C<n> covers: <ids> · <mode> · <test id> |
Direction |
## LOG |
why the contract changed | only in a refreeze(<slug>) commit |
## EVIDENCE |
seal, runs, residue, refute, verdict | once, at Verify |
Rules for the lifecycle:
status:movesdirection → buildin the freeze commit andbuild → donein the verify commit. AHARD-STOPleaves it atbuild. Adroppedtask carriesdropped: <reason>in its CARD.## EDGESis optional:E<n> Given <state> · When <action> · Then <result>— readable examples. A written edge needs a check that covers it.- An explore task (
kind: explore) carries## QUESTIONS,## BUDGETand## FINDINGSinstead of RULES and CHECKS — see 19 · Explore. gives:lists the surfaces other code depends on;needs:cites another task's surfaces. When a sealedgives:changes, every task thatneeds:it is re-verified.
Milestone¶
---
type: Milestone
title: <title>
status: active | done
---
## CARD
goal: <the outcome that makes this worth doing>
why: <one line>
## SCOPE
In: <what this milestone covers>
Out: <what it deliberately does not>
## EXIT
- [ ] <a criterion that proves the goal> — evidence: <task slug | sha>
## TASKS
- session-store — sessions persist across restarts
- session-expiry — expired sessions are refused (after: session-store)
Tick an EXIT box only with its evidence on the line. status: done when every box is ticked.
Spec — one per lens¶
---
type: Spec
lens: domain | system | experience | quality | method
---
## Now
<what is true today, a few lines>
## Decisions that bind
- D1 <a decision future tasks must follow> (evidence: <sha | task>)
## Deltas
- 2026-09-28 open · <lesson> (evidence: <sha | task>)
A delta is open, then folded into a decision or rejected. See 14 · The foundation.
Persona¶
---
type: Persona
title: <the lens, in a phrase>
flow: design, verify, advisor # the beats it serves
task-kinds: feature, security
use-when: <when to load it>
not-when: <when not to>
---
<what this expert checks, prefers and refuses — distilled, not copied>
See 10 · Personas.
Non-code work¶
The loop is the same. A check is anything that can fail and be run or read: a lint, link or spelling script, a schema validator, a rendered-output diff, or a pass/fail rubric scored against the artifact. Name the mode on the CHECKS line — script · validator · rubric — so a reviewer knows how it was judged. BEYOND-CODE walks a month-end close this way.
Coming from 3.x¶
A 3.x bundle reads as-is. Its extra frontmatter and generated files are history: leave them, do not maintain them. New work uses the shapes above. Details: 20 · What changed in 4.0.