The Dream Team Life Cycle

One task, from init to close

Each agent gets its part of the contract — for the developer, the whole contract, once — and you start every stage.

You are the engineer in control; the contract is the brief every agent works from, not a legal one.

What you decide at init

On this page
  1. Init
    1. The contract
    2. The alignment review
    3. Readiness
    4. Your reply
  2. Run
  3. Finalize
  4. Close
  5. The records

Detail · one task, Task F · schematic

Task F

Search · Backend developer

    • the task contract
    • the alignment review
    • one packet you decide on

    you start the run

  1. The run loop Build, then review; review and fix repeat at most twice; then test; when it passes, on to finalize.

    Still failing after two rounds, or a failing test: it stops for you.

    you start finalize

    • a last review
    • the local gate
    • the demo replayed

    you start the close

    • the merge, after its checks
    • a check on the merged code
    • the record kept

OpenThe epic's tasksThe epicClosing the epicThe whole Life Cycle

One task, opened: init, run, finalize and close, and where you decide.

In Dream Team's task start · the recommendation

"Ready to lock — no changes
needed"
"Ready to lock — with
proposed changes below"
"Needs enrichment — <what's
missing>"
"Needs brainstorming — <why
scope or approach is
unclear>"

The packet, everything you need to decide laid out in one place, carries exactly one of these four, word for word.

Init

Init turns the contract into one decision, and nothing is built before your reply

Init completes the contract and has the agents its files call for review it, the alignment review; then it lays one packet before you. It writes planning files, not code.

The contract holds what the task is, what done means, and which files each agent owns

The contract is born with the task, its criteria copied word for word, and completed at init.

Schematic

Task F

The task contract

At initevery agent reads all of it, alone

  1. Which agent does which step — the plan of who runs each step, at the top
  2. Scope — what the task is for
  3. Acceptance criteria — the conditions of done, copied word for word
  4. Context — its wave (the tasks that can start with it), who does it, which model
  5. File scope — the files each agent owns, and what is out
  6. Dependencies — what it waits for, each with a reason
  7. Alignment review — what the agents found before any code
  8. Demo plan — the demo you chose, fixed at init
  9. Skills to load — the know-how the developers, the reviewer and the tester load
  10. Instructions — step by step, how to build it
  11. Notes — anything else

Not in it: urgency and priority. They sit on the task's row on the board, shown when you decide:

Task FSearchBackend developer
Urgency
U2
Priority
P1
Rank
Q1
Maturity
PLANNED
One task contract, which every agent reads whole at init. On the task's board row, the rank, Q1 to Q4, is the quadrant, one of four, that urgency and priority give.

The agents the files call for review it apart, and meet only in your packet

The agents are picked by the files the task touches: the reviewer always, the architect when the change is structural, the tester and the developers by file type; none sees another's findings.

Each answers ready, concerns or blocked, with a confidence. The orchestrator, the main agent that runs the others, adds a three-line synthesis, and you get one packet: everything you need to decide, laid before you.

Key to the figure below

  • an agent
  • READYan agent's word
  • CONCERNSwaits for you

Schematic

  • Reviewerreads the contractCONCERNSReads the contract; its verdict, with its confidence: concerns.
  • Architectreads the contractREADYReads the contract; its verdict, with its confidence: ready.
  • Testerreads the contractREADYReads the contract; its verdict, with its confidence: ready.
  • Developerreads the contractCONCERNSReads the contract; its verdict, with its confidence: concerns.

The packet

The orchestrator lays it before you, in one place:

  • the findings, each agent's verdict with its confidence;
  • the nine-part readiness table and the completeness checklist;
  • one recommendation;
  • the collision check;
  • up to three demo candidates, one recommended;
  • the numbered changes.
The agents work apart; you see them together.

The readiness table reads nine parts, from where each stands to what is proposed, and why

Readiness is how ready the task is to start, read in nine parts before any code.

Set by you, on the task's row

  1. 1

    Urgency

    How soon it is needed, from 1, fire, to 4, someday.

  2. 2

    Priority

    How much it matters, from 1, showstopper, to 4, low.

Worked out

  1. 3

    Rank

    The quadrant, one of four, that urgency and priority give: Q1 to Q4.

Checked at init

  1. 4

    Maturity

    How complete the task's definition is, from idea to planned and on.

  2. 5

    Dependencies

    Each task it waits for, with its status, and any that do not exist.

Readiness, in nine parts. A ring of nine parts around the word readiness, each with an icon and its number, in four groups set apart by wider gaps. Set by you: 1 urgency, a stopwatch; 2 priority, two chevrons. Worked out: 3 rank, a quadrant, with an arrow from 2 into 3. Checked at init: 4 maturity, a sprout; 5 dependencies, box to box. Judged by the agents: 6 quality, a ruler; 7 ROI, scales; 8 risk, a warning triangle; 9 effort, a size square.

Judged by the agents and the orchestrator

  1. 6

    Quality

    How strong the acceptance criteria are, out of 5.

  2. 7

    ROI

    Return on investment, what the work is worth: low, medium or high.

  3. 8

    Risk

    Low, medium or high: how reversible, how far it reaches.

    No proposed value
  4. 9

    Effort

    A size estimate: who does the work, and how big.

    No proposed value
  1. Where it stands
  2. What is proposed
  3. Why
Nine parts, read before any code. No part carries a score here; they are numbered by group, not in the packet's order.

You answer in words, and “yes” is not an answer

Your reply, in words, is the one decision on the task's content at init: proceed, proceed with another demo, reject part, skip the demo, enrich or stop. Then you start the run.

On this page

Run

Run: the orchestrator hands each agent its part, and a failure stops it for you

Each agent starts fresh with what its step needs, though it may read more: a short session, a separate view of the same job.

Run

The orchestrator hands out every step, writes no code and keeps the runlog; an agent it cannot start is logged, and it does not do that agent's work.

Only it starts agents: no other agent's tool list holds the tool that does, in code.

Run's steps: who does each, what it is handed, what holds it
StepWhoWhat it is handedWhat holds it
Dispatchthe orchestratorit reads the contract's plan of which agent does which stepit does not put this choice to you: the agents' instruction
Design and its reviewwhen the task calls for onethe architect, then the reviewerscope, criteria and file scope; the reviewer gets the design and the criteriareview and redesign at most twice: the agents' instruction
Buildthe developerthe whole contract, once, and the files it ownstold to edit only the files it owns: the agents' instruction
Code reviewthe reviewerthe diff: the lines the change adds and removesno Edit or Write tool: its tool list, in codeit keeps a shell for reading and tests, so editing nothing is its instruction
Fixthe developerthe reviewer's notes and the diff since the last passback to review, at most twicethen it stops and waits for you: the run command's instruction
Testthe testerwhat changedit writes the tests and can edit files (its tool list); it is told never to touch the product's code: its instructiona failure stops the run and waits for you: the run command's instruction
Documentationthe technical writerwrites the history and changelog notes; the orchestrator adds the run's narrative to the runlogthe run command's instruction; a design-only task skips this step
  • checked in code
  • the agents' instruction
  • it stops and waits for you

you start finalize

Run, step by step: who does it, what it is handed, and what holds it.

On this page

Finalize

Finalize: a last review, the local gate and the demo, and every follow-up ruled

It starts only after a passing test. One tester gives a last review of what the change touched; the local gate, automatic checks run on the code in the task's own workspace, must then pass. The demo you chose, a scripted run that shows the change working, is replayed by default.

The closure notes say what was delivered, the files and the decisions. Each follow-up, work left for later, is filed as a task, marked not filed with a reason, or left for you. The task waits as pending, for your approval.

On this page

Close

Close: the merge, a check on the merged code, and the record kept

By the orchestrator's instruction, the close runs only after your approval. On GitHub it merges through a pull request once its checks pass.

Where a merge queue, a line of changes waiting to merge, is active, the merge goes through it; the queue checks each change again with those queued ahead of it.

A task on an epic's long branch, which stays open until the epic's last task lands it, merges straight into that branch.

A check refuses a follow-up still left for you. On GitHub, a check on the merged commit then comes before done; an optional mode only warns. Then the record is compiled and the workspace removed.

On this page

The records

A task leaves its record in six groups of files

Each stage writes its record, so a task can be read from its folder.

  • 1

    The contract

    The brief given to the agents that do the work: born with the task, completed at init.

  • 2

    The runlog

    The task's step-by-step record; the orchestrator writes every row.

  • 3

    The stage records

    Each agent's findings; the dispatch card; the result card.

  • 4

    Time and tokens

    The time and tokens it used, kept even if the start is abandoned.

  • 5

    The demo you approved

    Sealed at init with a fingerprint of its steps; replayed at finalize.

  • 6

    The reports and the audit

    The task's narrative, the finalize report, the close receipt, the merge's audit.

What you can open after a task. Six groups of files, each written by a step of the task. The dispatch card says who runs the task, which agents it sends and on which branch; the result card, the files changed, the tests and the key decisions. The file names are in the small print.

Worked example: Anatomy of one task, one real task from plan to merge.

Next: Closing the epic

The small print

The files behind each stage

Dream Team at commit 6b947dfb1:

  • the start, run, finalize and close commands, .claude/commands/dt-task-init.md, dt-task-run.md, dt-task-finalize.md, dt-task-close.md;
  • the pipeline definition, config/workflows.yaml;
  • the role charter, docs/system/ROLE_CHARTER.md;
  • the agents, .claude/agents/;
  • the task schema, shared/models/task_schema.py.
The file names, by group
  • The contract: one Markdown file, the brief given to the agents that do the work; its file name is internal and is not shown on this page.
  • The runlog: runlog.md — the step-by-step record; the orchestrator, not the agents it dispatches, writes the rows, and a resumed run reads it to skip the steps already done.
  • The stage records:
    • approval-findings.json — the alignment review: which agents it convened, and each one's verdict and findings;
    • dispatch-findings.json — the dispatch card: who runs the task, which agents, which branch;
    • result-findings.json — the result card: files changed, tests, key decisions.
  • Time and tokens:
    • rollup.json — the time-and-tokens summary, drawn from the step timings and the session transcripts; written as soon as each alignment-review round ends, so a start abandoned after that still leaves it in the task's folder;
    • timing_tokens.csv — the tokens each step actually used, by kind (fresh input, cache read, cache write, output), each with its source.
  • The demo, in showcase/:
    • consent.json — your decision on the demo, the scenario you chose, its fingerprint and when it was recorded;
    • resolved-commands.json — each demo step's command and the check that judges it, to read before anything runs;
    • playback.json — the replay, step by step: each command, its exit code, an excerpt of its output and whether its check passed; written on a pass and on a fail;
    • transcript.html — the same replay as a page you can read, each step marked pass, fail or not run.
  • The reports:
    • report-star-narrative.jsonl — the task's narrative, opened at the start and added to as the task runs;
    • finalize-report-….html — as configured today, the status dashboard focused on this task; named with the day's date, so a run on a later day keeps the earlier day's report;
    • reports/close-receipt-….html — the close receipt: the pull request, the merged commit, the required checks' results, the files and lines changed, and the tasks it unblocked;
    • squash-trace.json — the merge's audit, recorded before the merge: the task's commits, which the merge folds into one, and the message built from its runlog; the merged commit is added after.
The agents at init

At most three agents are convened, four when the architect is called.

The run's short forms

A design-only task stops after its design and its review; a documentation-only task is reviewed and documented.

The local gate

Five checks, in order: format, lint, a check that the files shipped into a customer's project match their source, type check, the selected tests; a failure stops finalize before the closure notes.

The lock and the resume

The task's status is written on its own branch, and pushing that branch is the lock: the main branch keeps the task ready until the close. Before it creates its branch, and again just before it pushes, the start looks for a remote branch with the task's id and stops if it finds one. The name comes from the title, so two starts collide. It is the start command's check, and a short race remains. A resumed run reads the runlog and skips the steps already done. The contract and the runlog should let a stranger resume the task.

The readiness table

In the packet itself the nine parts come in this order: quality, ROI, urgency, priority, rank, maturity, risk, dependencies, effort.

How we checked

No measured number on this page: counts, durations and costs are in the worked examples. Every excerpt is word for word, cut only with “…”. A figure tagged “Schematic” is invented.