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.

Real output from T-707's demo, with the two reasons shortened to plain words; the old ID list is now derived from the record.

01 · Acceptance criteria

Nine acceptance criteria: the definition of done

  1. AC-1 Define the record: the task it waits for, the kind of wait, and why.
  2. AC-2 Keep the old ID list in step with it, never stopping the board from loading.
  3. AC-3 Let people type a record the natural way with the usual edit command.
  4. AC-4 Carry it through spreadsheet import and export.
  5. AC-5 Update every link when a task is renumbered.
  6. AC-6 The tool that suggests fixes adds to a record, never overwrites it; a merge of parallel edits flags a clash.
  7. AC-7 Give the epic's nine tasks real records, once AC-5 and AC-6 are in place.
  8. AC-8 Test every rule both ways, on copies of the board.
  9. 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.
AC-3 in plain words: how the edit command reads a record that a person types. Verbatim except for one shortened path, rewritten after the alignment review; its last paragraph, on shell quoting, proved wrong in Run.

02 · The stages

Agents did the work in four stages; I decided at three points

  1. 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

  2. Run
    The Run loop Build, then review; review and fix repeat at most twice; then test. A review still failing, or a failing test, stops the run and goes to the engineer. Builddeveloper Reviewreviewer Fixwhoever built it at most twice Testtester passes: on to Finalize

    Caught: the reviewer proved one of the contract's claims wrong; the fix came with a test that failed first.

    Engineer: started Finalize

  3. Finalize

    A last review, and a replay of the task's demo: every command passed.

    Engineer: approved the result, started the close

  4. 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

  1. Init

    40 min excluding the wait at the gate

    • 4 agents

    alignment review

  2. Gate

    4 h 18 min waiting for Alex's decision

    Engineer

  3. Run

    8 h 15 min

    • developer ×4
    • reviewer ×3
    • architect ×2
    • tester ×1
    • technical writer ×1
  4. Gate

    5 h 56 min waiting for Alex to start Finalize

    Engineer starts Finalize

  5. Finalize

    14 min demo replay: 5 of 5 runnable steps passed

    • tester ×1
  6. Gate

    4 min the engineer's sign-off: Alex starts Close

    Engineer

  7. Close

    30 min to the merge

    merge queue: 9 check runs

  8. 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.

Takeaway: the agents' stages were less than half of the time; most of the rest, the task waited for the engineer, and it moved on only when he decided.
What T-707 cost
StageAt Claude API list pricesClaude Team subscription + Dream Team cost optimization
Init, with the alignment review$32about $5
  • Claude Team subscription: a flat price; this task's share of one seat's week
  • Dream Team records every step's tokens and time
  • and gives each step the model it needs; big builds run in parts
We keep optimizing the process to do more work for the same money.
Run$116
Finalize$4
Close$11
Totalat least $163
Claude API list prices: what this work costs bought by the token. Method and models: in the small print.

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
From the runlog and the session transcripts; 18–19 September 2026, UTC
TimeWhoWhat happened
18 Sep 13:20–13:424 agentsAlignment 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:00AlexAt 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:37AlexChose the before/after demo the orchestrator proposed
18:46–01:07developerAC-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:17architectThe design documents, to match my decision at the gate (AC-9)
01:16–01:38reviewer“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:45developerThe fix, with test_apostrophe_in_why_round_trips_byte_for_byte, failing first, then passing
01:45–02:32testerThe 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:50reviewerDesign 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:00technical writerThe change documented; Run ends
08:56–09:09tester, orchestratorThe 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:12AlexApproved 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:44merge queueCommit 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
Required by GitHub before the merge
gateRuns 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-selfcheckThe task board is consistent with itself
check-duplicate-idsNo two tasks, brainstorms, research items or decisions share an ID
conflict-unionThe 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
Measured: tokens and dollars at Claude API list prices, and our Claude subscription for the whole task
Stage and roleModelNew inputRead from cacheWritten to cacheOutputDollars
Init: orchestratorOpus 512815,621,814375,39871,549$11.95
Init: alignment review, 4 agentsOpus 531422,460,442726,213157,787$19.72
Run: orchestratorOpus 5, Sonnet 5 from 01:1810814,863,6091,040,54281,200$10.91
Run: developer, 4 runsOpus 552666,586,2885,821,19150,200$70.93
Run: reviewer, 3 runsOpus 518218,354,956984,51012,105$15.63
Run: architect, 2 runsOpus 5869,027,111517,3446,388$7.91
Run: testerSonnet 519627,525,5031,412,8701,190$9.05
Run: technical writerSonnet 5626,868,330267,4574,760$2.09
Finalize: orchestratorOpus 5222,822,55620,33011,760$1.83
Finalize: testerSonnet 5384,672,053335,00868$1.77
Close: orchestratorOpus 5, Sonnet 5 after the merge15018,828,202526,55349,978$11.29
Total at Claude API list prices1,812207,630,86412,027,416446,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
  1. 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:
    1. build order: a task needs a mechanism another task builds;
    2. needs output: a task needs a file or result another task produces;
    3. would collide: two tasks change the same files, with no order between them;
    4. ordering between one task's own criteria;
    5. work that must land in a single commit, one saved change to the code;
    6. a need that no task provides;
    7. an agreement (an interface, file or value) that no one defined before the code was written.
    Only the first two fit “this task must follow that one”. The dependency record covers the first three; the fourth and fifth are out of scope by design; T-705 reports the sixth; the seventh fits a link only in part.
  2. 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.
  3. 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.py and tools/telemetry_task_cost.py; the model for each step: .claude/commands/dt-task-run.md L23 and T-707's runlog L20.
  4. 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) and claude-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.json and 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