Anatomy of one task
One real task, from plan to merge. Our tasks kept stalling halfway on work another task hadn't built yet, so T-707 gave our task board a dependency record: each link now has a kind and a reason.
The method it shows: Task The Dream Team Life Cycle
Before the row on the board
depends_on: ['T-703', 'T-701']
After the same row, as the task's demo printed it, the reasons shortened
"depends_on": ["T-701", "T-703"], "dependencies": { "relations": [ { "on": "T-703", "kind": "build-order", "why": "never refuse before the open tasks' records are filled in" }, { "on": "T-701", "kind": "build-order", "why": "its two checks turn on with this task's switch" } ] }
Before, the board knew only that T-704 waits for T-703 and T-701. Now it also knows why, and what kind of wait each one is.
Results · T-707, 18–19 September 2026
Its own epic — a larger goal with its own promised outcomes — from plan to close: Anatomy of one epic
How the brainstorm planned its nine tasks: How a brainstorm turned a problem into nine tasks
01 · Acceptance criteria
Nine acceptance criteria: the definition of done
- AC-1 Define the record: the task it waits for, the kind of wait, and why.
- AC-2 Keep the old ID list in step with it, never stopping the board from loading.
- AC-3 Let people type a record the natural way with the usual edit command.
- AC-4 Carry it through spreadsheet import and export.
- AC-5 Update every link when a task is renumbered.
- AC-6 The tool that suggests fixes adds to a record, never overwrites it; a merge of parallel edits flags a clash.
- AC-7 Give the epic's nine tasks real records, once AC-5 and AC-6 are in place.
- AC-8 Test every rule both ways, on copies of the board.
- AC-9 Update the design documents to match AC-2.
Read AC-3 as the agents received it
- **AC-3** — `dependencies` joins `SETTABLE_FIELDS`; `update-field <id> dependencies '<yaml-or-json>'` parses the value with **ruamel's YAML 1.2 safe loader** (`ruamel.yaml.YAML(typ="safe")`), **never `yaml.safe_load`** (see the boxed rationale below), guards `isinstance(parsed, dict)`, validates as `DependencyRecord`, stores it and **overwrites** `depends_on` with the sorted projection; a blank or invalid value raises `ValidationError` regardless of severity; `update-field <id> depends_on ...` raises `ValidationError` when the row already carries a record, with a message naming both `update-field <id> dependencies '<record>'` and the `{none: true, reason: "..."}` reset and stating that a record cannot return to undeclared, and keeps today's behaviour when the row has no record. **Regression test (mandatory, `.claude/rules/dt-tests.md` §11 — assert the observable effect, not that the parser accepts input):** the *bare* form `{relations: [{on: T-187, kind: artifact, why: "..."}]}` parses to the key `"on"` (not `True`) and round-trips to a valid `DependencyRecord`; a second case proves a `why` of exactly `no` survives as the string `"no"` (not `False`).
> **Root cause, established at task-init by direct measurement — this is not a documentation problem.** PyYAML implements **YAML 1.1**; `save_tasks` stores through **ruamel (YAML 1.2)**. Parsing with `yaml.safe_load` would therefore read the record under one YAML version and write it under another, on a single write path. Measured in this venv (PyYAML 6.0.3 / ruamel 0.19.1), five divergences in this record's own shape:
>
> | Input | `yaml.safe_load` (1.1) | ruamel `typ="safe"` (1.2) |
> |---|---|---|
> | `{on: T-187}` | `{True: 'T-187'}` ✗ | `{'on': 'T-187'}` ✓ |
> | `{why: no}` | `{'why': False}` ✗ | `{'why': 'no'}` ✓ |
> | `{why: yes}` | `{'why': True}` ✗ | `{'why': 'yes'}` ✓ |
> | `{why: off}` | `{'why': False}` ✗ | `{'why': 'off'}` ✓ |
> | `{name: on}` | `{'name': True}` ✗ | `{'name': 'on'}` ✓ |
>
> The alignment panel found only the first row. Rows 2–5 land on `why` and `name` — **string** fields, where the user sees `Input should be a valid string` on a field they typed correctly. Under `extra="forbid"` the first row is worse still: a *double* error (`Extra inputs are not permitted: True` **and** `Field required: on`) naming neither cause nor remedy. The failure is undiagnosable from its own message, which is why this is fixed in the card rather than left for the worker.
>
> **Why ruamel and not "mandate the JSON form".** Switching the loader fixes the root cause instead of documenting around it: the natural authoring form becomes correct, and the entire YAML-1.1 scalar-resolution class disappears rather than one key. Verified: ruamel's safe loader also accepts plain JSON (a strict YAML 1.2 subset), so **no authoring form is lost** — both `{relations: [{on: T-187, ...}]}` and `'{"relations": [{"on": "T-187", ...}]}'` parse identically. It costs nothing: `ruamel.yaml>=0.19.1` is already a runtime dependency (`pyproject.toml:30`), already in the `registry-selfcheck` slim install (`.github/workflows/ci.yaml:356`), and already imported by `shared/models/task_schema.py:49`. **Decisively: under this fix the APPROVED LLD's own worked example at `docs/…/BS-117/lld.md:218` is correct exactly as written** — whereas mandating JSON would have required amending an approved v1.1 contract in order to document a trap.
>
> **Scope boundary.** Do **not** change the existing `run_where` branch's `yaml.safe_load` at `tools/task_ops/core.py:688-731` — it is out of this task's charter and its key/value vocabulary has no YAML 1.1 collisions. Leave a one-line comment at the new `dependencies` branch recording *why* the two branches deliberately use different loaders, so a later reader does not "harmonize" them in the wrong direction.
>
> **Generated records should still emit JSON** (`json.dumps`) wherever a *tool* builds the string — AC-4's CSV cell and AC-6's remedy — because JSON quoting is safe under shell single-quoting and needs no flow-style escaping for `why` prose containing `:` or `,`. That is an emitter-side convention; both forms remain valid input.
02 · The stages
Agents did the work in four stages; I decided at three points
-
Init
The alignment review: four agents read the task's contract before any code, and the contract was fixed.
Caught: in the design I had approved, a link typed the natural way would have been misread.
Engineer: approved the fixed contract
-
Run
Caught: the reviewer proved one of the contract's claims wrong; the fix came with a test that failed first.
Engineer: started Finalize
-
Finalize
A last review, and a replay of the task's demo: every command passed.
Engineer: approved the result, started the close
-
Close
GitHub checked the change again, automatically, on top of the latest code, then merged it.
Engineer: my decisions. In Run, review and fix repeat on their own, at most twice; a review still failing, or a failing test, stops the run for the engineer. How control works: The Life Cycle.
03 · What it took
Where the time and the money went
An example · the record
One real task, measured end to end
T-707 · a Dream Team feature, built by Dream Team · the engineer: Alex Rapoport, our founder · 18–19 September 2026 · UTC
The task's goal: give every task dependency a kind and a reason so our task board says why one task waits for another
-
Init
40 min excluding the wait at the gate
- 4 agents
alignment review
-
Gate
4 h 18 min waiting for Alex's decision
Engineer
-
28 min between stages
-
Run
8 h 15 min
- developer ×4
- reviewer ×3
- architect ×2
- tester ×1
- technical writer ×1
-
Gate
5 h 56 min waiting for Alex to start Finalize
Engineer starts Finalize
-
Finalize
14 min demo replay: 5 of 5 runnable steps passed
- tester ×1
-
Gate
4 min the engineer's sign-off: Alex starts Close
Engineer
-
Close
30 min to the merge
merge queue: 9 check runs
-
09:44:21Z merged
stages 9 h 39 min + waiting for the engineer 10 h 18 min + other time between stages 28 min = 20 h 25 min
How the parts add up
Waiting for the engineer: 4 h 18 min at Init's gate, 5 h 56 min from the end of Run until Alex started Finalize, and 4 min before his sign-off, starting Close; he starts every stage. Other time between stages: 28 min before Run, which includes 3 more minutes waiting for Alex and adding the demo he chose.
The record, in seconds: 2,425 + 15,465 + 1,653 + 29,723 + 21,336 + 816 + 268 + 1,807 = 73,493. Minutes are rounded so the parts add up.
| Stage | At Claude API list prices | Claude Team subscription + Dream Team cost optimization |
|---|---|---|
| Init, with the alignment review | $32 | about $5
|
| Run | $116 | |
| Finalize | $4 | |
| Close | $11 | |
| Total | at least $163 |
One task is an example, not a benchmark. T-707 built something new and had no unexpected failure; we haven't yet measured whether fewer tasks stall. This is Dream Team building itself: there is no outside case to show yet.
Talk to us about a pilot The pilot: Your Dream Team in 8 weeks
The small print
What every link in a dependency record carries
A schema is the fixed shape every record must have; each dependency record is validated against it.
on- The task it waits for, by ID, such as
T-703 kind- One of three kinds:
- build order: runs after the other task
- needs output (
artifact): uses something the other task produces - would collide (
conflict): must not run at the same time
why- The reason, in words: never blank, 200 characters at most
Three states. A task has no record yet, or an explicit “no dependency” (none: true) with a reason, or one or more links. It can't go back to no record. T-707's own record is the second kind: “first task of the epic; it creates the record every other card declares against” (a card is a task contract).
Derived, not typed. The old ID list is rebuilt from the links, sorted and without the collide links, so every tool that reads it works unchanged.
Rejected: an unknown kind, a blank or over-long reason, a malformed task ID, the same task and kind twice, a link to the task itself, an unknown field.
Warn now, refuse later. Each load of the board warns once with the number of open tasks that have no record. T-704, not done as of 4 October 2026, is planned to make the board refuse new tasks without one. T-703 has already filled in records for 72 open tasks (one new row was left out).
The epic's nine records: 17 build order · 1 needs output · 2 would collideThe feature: 6 production files + 9 test files, +4,216 / −27 lines
The run, step by step: T-707's record, shortened
| Time | Who | What happened |
|---|---|---|
| 18 Sep 13:20–13:42 | 4 agents | Alignment review, before any code: 3 “concerns”, 1 “ready”; 2 blockers, a risk in the order of work, 3 gaps in scope. One blocker: a YAML 1.1 loader reads a bare “on” as true. Separately, one row whose record and ID list disagreed would have stopped the whole board from loading. |
| 13:42–18:00 | Alex | At the gate: approved correcting the ID list on load, with a logged warning, and kept the task whole, so the protections for renumbering and merging (AC-5, AC-6) land before the nine live records |
| 18:30–18:37 | Alex | Chose the before/after demo the orchestrator proposed |
| 18:46–01:07 | developer | AC-1 to AC-8 with their new tests, in three parts: 35 min, 3 h 42 min, 2 h 4 min |
| 19 Sep 01:08–01:17 | architect | The design documents, to match my decision at the gate (AC-9) |
| 01:16–01:38 | reviewer | “0 CRITICAL/0 HIGH. 1 MEDIUM (M-1: epic_registry remedy docstring claims JSON-in-single-quotes is shell-safe; false for a why containing an apostrophe - reproduced live, not a security issue since the string is emitted not executed, but the safety claim is wrong). 5 LOW … all accepted, no action” |
| 01:38–01:45 | developer | The fix, with test_apostrophe_in_why_round_trips_byte_for_byte, failing first, then passing |
| 01:45–02:32 | tester | The 378 tests selected for this change: 375 passed, 3 skipped as before. The full regression: 15,680 passed, 0 failed (38 min 01 s). All nine criteria checked against the code |
| 02:33–02:50 | reviewer | Design review: sent the documents back once (they still said exit code 1, the shipped code returns 2); approved in round 2 of at most 2 |
| 02:50–03:00 | technical writer | The change documented; Run ends |
| 08:56–09:09 | tester, orchestrator | The last review; the demo replay: all 5 steps that run commands passed. Step 5, a write the tool must refuse, only explains; its 27 tests, on copies of the board, ran as step 6 |
| 09:12 | Alex | Approved the result by starting the close, on the run report, the review findings and the demo replay, not the line-by-line diff |
| 09:32–09:44 | merge queue | Commit 953d683f, tested on top of the latest main: all 9 check runs passed, the 5 required among them; merged 09:44:21 |
The run's verdict: “Complete-with-follow-ups”, none blocking. Among them: a board check catches a record and its ID list drifting apart, but its message doesn't say so; a board-wide rule (“always error”) was deferred, and a later task has reshaped it; the task's own board row still shows its criteria as worded before Init.
The five required checks, in plain words
gate | Runs first and decides which other checks the change needs |
|---|---|
test-ubuntu (3.11) | Code style, type checks and the test suite, on Linux with Python 3.11 |
registry-selfcheck | The task board is consistent with itself |
check-duplicate-ids | No two tasks, brainstorms, research items or decisions share an ID |
conflict-union | The task board and the decision log still hold together with the change on top of the latest main |
The other 4 checks that ran aren't required; one tests what differs on Windows: line endings, text encoding and file paths. From Dream Team's config/required-checks.yaml, config/github-ruleset.json L41–79 and .github/workflows/ci.yaml.
Tokens, dollars and models, per stage and role
| Stage and role | Model | New input | Read from cache | Written to cache | Output | Dollars |
|---|---|---|---|---|---|---|
| Init: orchestrator | Opus 5 | 128 | 15,621,814 | 375,398 | 71,549 | $11.95 |
| Init: alignment review, 4 agents | Opus 5 | 314 | 22,460,442 | 726,213 | 157,787 | $19.72 |
| Run: orchestrator | Opus 5, Sonnet 5 from 01:18 | 108 | 14,863,609 | 1,040,542 | 81,200 | $10.91 |
| Run: developer, 4 runs | Opus 5 | 526 | 66,586,288 | 5,821,191 | 50,200 | $70.93 |
| Run: reviewer, 3 runs | Opus 5 | 182 | 18,354,956 | 984,510 | 12,105 | $15.63 |
| Run: architect, 2 runs | Opus 5 | 86 | 9,027,111 | 517,344 | 6,388 | $7.91 |
| Run: tester | Sonnet 5 | 196 | 27,525,503 | 1,412,870 | 1,190 | $9.05 |
| Run: technical writer | Sonnet 5 | 62 | 6,868,330 | 267,457 | 4,760 | $2.09 |
| Finalize: orchestrator | Opus 5 | 22 | 2,822,556 | 20,330 | 11,760 | $1.83 |
| Finalize: tester | Sonnet 5 | 38 | 4,672,053 | 335,008 | 68 | $1.77 |
| Close: orchestrator | Opus 5, Sonnet 5 after the merge | 150 | 18,828,202 | 526,553 | 49,978 | $11.29 |
| Total at Claude API list prices | 1,812 | 207,630,864 | 12,027,416 | 446,985 | $163.09 | |
| On our Claude Team subscription, for the whole task | $4.75 | |||||
Most tokens are agents re-reading their conversation so far from a cache, at a lower rate: about 94% of the measured $163 was that context, and output about 6%, or about 11% adding the workers' output the record misses. The run split the developer's work into three parts to keep each agent's context bounded. The developer ran on Opus because the task set its model; the routing line in the runlog: “step_implement=@dev-backend/coding, overridden to opus by task-level Model (Step 5 only) … step_test=@tester/coding=sonnet”. Opus 5 is Anthropic's more capable and pricier model; Sonnet 5 a cheaper one. Rows are rounded to the cent, so they add up to $163.08.
Notes on the numbers, and the sources
- Before T-707, on 17 September 2026, 240 of the 580 tasks opened on our board since June recorded no dependency, and some of them stated an ordering only in text the board doesn't read. The brainstorm behind the epic found seven kinds of ordering constraint:
- build order: a task needs a mechanism another task builds;
- needs output: a task needs a file or result another task produces;
- would collide: two tasks change the same files, with no order between them;
- ordering between one task's own criteria;
- work that must land in a single commit, one saved change to the code;
- a need that no task provides;
- an agreement (an interface, file or value) that no one defined before the code was written.
- The $163 is a lower bound, priced from the token counts in T-707's record at Dream Team's rate table v2.3 (read 4 October 2026; last refreshed against Anthropic's pricing page on 29 September). The alignment review left no token rows; its cost, $19.72, was recovered from the session transcript. The record leaves out some orchestrator calls and undercounts the agents' output; every write to the cache is priced at the five-minute rate. Not reconciled with any invoice. Neither price includes people's time, the brainstorm that planned the work, or building Dream Team itself.
- The subscription's $5: T-707 ran on one seat of our Team plan; a seat costs $125 a month, so about $28.85 a week. T-707 was 16.5% of that seat's recorded work that week, $4.75: its share of everything the seat did in Claude Code, the tool our agents run in, from 14 to 21 September, each call weighted by its list price. Both sides of the share come from the seat's session transcripts, not from the $163. An upper bound: any use of the seat outside those transcripts would lower it. Per-step tokens and time: Dream Team's
tools/pipeline_timing.pyandtools/telemetry_task_cost.py; the model for each step:.claude/commands/dt-task-run.mdL23 and T-707's runlog L20. - The task took 16 agent runs in 4 sessions, one per stage. My part was six messages: the four commands that started the stages and two answers before Run.
- Task
- T-707, 18–19 September 2026; merged as commit 953d683f at 09:44:21 UTC through GitHub's merge queue
- Models, as served
claude-opus-5(Opus 5) andclaude-sonnet-5(Sonnet 5)- Record files
- The task contract (
tcb.md),runlog.md,rollup.json,timing_tokens.csv,squash-trace.json,approval-findings.json,showcase/playback.jsonand the decision record; the four session transcripts; the brainstorm's vision and plan - Excerpts
- Verbatim from the task's record, kept in our private code repository; the “after” block is reflowed to fit