Composition outcomes
See whether letting an agent choose a task's workflow pays off, compared with a hand-pinned or default workflow for the same task type.
Auto tasks hand the agent a judgment call: how much process does this work need? Composition outcomes shows whether that call pays off. It compares tasks whose workflow the agent chose against tasks of the same type that ran a hand-pinned or default workflow. You can see whether success rate, turnaround time and rework differ, and by how much.
Where to find it
The web app has no page for this report yet. Use the CLI.
ch quality composition
Pass a workspace name, slug, slug path or full ID as the first argument to report on another workspace. Without one, the command uses the workspace the CLI points at. See Using the ch CLI for how ch resolves a workspace reference. Add --json to get the raw data instead of the table.
Any member of the workspace can run this report. It needs no extra role or plan.
Choosing a window
The CLI takes --window today, --window yesterday, --window week, or --window month. The default is month, the last 30 days. Composed tasks are rare. A shorter window often holds too few of them to say much.
For a custom range, use --since instead. It takes a relative duration (3d, 12h, 45m) or a full RFC 3339 timestamp, the same as ch costs --since. You cannot use --since and --window together. --since cannot reach back more than 90 days.
By default the report covers the workspace you asked for and every workspace nested beneath it. Add --strict to cover only that one workspace.
What each number means
Every row compares tasks of one type (story, bug, and so on) that finished during the window, broken out by where their workflow came from. A finished task shows up after a short delay, because CodeHerder records outcomes in the background every few minutes. A row can change after the task finishes, when a late fact arrives, such as a delayed commit report or a workflow change. If you reopen a task out of its final stage, it leaves the report until it finishes again.
| Source | What it means |
|---|---|
auto_composed |
The task was filed as auto, and the agent chose its own workflow. It stays auto_composed if an admin later clears its pinned workflow. |
human_pin |
A workspace admin set a workflow override on this task by hand. |
static |
The task ran its type’s normal, unmodified workflow — nobody chose or pinned anything. |
For each type/source pair, the table shows:
| Column | What it tells you |
|---|---|
| TASKS | How many tasks of that type and source reached a terminal state during the window. |
| SUCCESS | The share of those tasks that finished at a success terminal — normally done, or a custom workflow’s own declared success point. A cancelled or archived task counts as not successful here. |
| MEDIAN TIME | The median time from when the task was created to when it reached its terminal state. Time spent waiting in the backlog counts. |
| LOOPBACKS | The mean number of times a task in this cell was sent back to an earlier stage for rework. |
| VERIF-FAIL | The mean number of verification failures per task in this cell. |
| MEDIAN COST | The median model spend for a task in this cell. |
MEDIAN TIME and MEDIAN COST are medians. LOOPBACKS and VERIF-FAIL are means. The mix is deliberate, so do not read every figure as an average.
Reading the table
A figure with no sample behind it prints —, never 0. That way you never mistake “nothing happened” for a measured zero. A cell built from fewer than 5 tasks is marked (n<5). Treat it as too thin to draw a conclusion from. If the window has no terminal tasks at all, the table area prints (no data).
Sample output, with made-up numbers:
ch quality composition — window Jul 24 00:00 → Aug 23 00:00
TYPE SOURCE TASKS SUCCESS MEDIAN TIME LOOPBACKS VERIF-FAIL MEDIAN COST
story auto_composed 22 91% 1h48m0s 0.3 0.1 $1.85
story human_pin 3 (n<5) 67% 2h30m0s 0.3 0.0 $2.40
story static 64 78% 3h12m0s 0.6 0.3 $2.10
bug auto_composed 9 100% 52m0s 0.1 0.0 $0.90
bug static 31 87% 1h20m0s 0.4 0.1 $1.15
seal failures: none — the sweeper is draining every candidate it sees
Observational, not a randomised trial: auto is opt-in and chosen for particular tasks, so a gap
between sources is confounded by that selection. Cells marked (n<5) are too small to read as a verdict.
The seal failures line
Every report prints a line about “seal failures”. Sealing is how CodeHerder records a finished task’s outcome. Most tasks seal on the first try. When one fails, CodeHerder waits and tries again.
none is the healthy reading, and the CLI prints it as seal failures: none — the sweeper is draining every candidate it sees. Otherwise the line starts with seal failures: N task(s) currently backed off. A table follows with the worst 10 tasks and these columns: TASK, WORKSPACE, REASON, ATTEMPTS, LAST ERROR, LAST ATTEMPT and NEXT ATTEMPT.
Two things to know:
- A listed task is not in the table above yet. It joins the table when a retry succeeds.
- The line ignores the window. It shows the current backlog for every workspace the report covers.
CodeHerder retries with growing waits. The first wait is 30 minutes. No wait is longer than a day. NEXT ATTEMPT shows when the next try happens. You usually have nothing to do.
Read this before you act on it
A gap between sources is not proof that one approach is better. Auto composition is opt-in. Someone chose to file each of those tasks as auto, so CodeHerder did not assign the tasks in each row at random. Say auto_composed shows a higher success rate than static for the same type. People may simply file auto tasks for work that was already going to go smoothly. The agent’s choice may not have caused the gain. Treat the numbers as a starting point for a question, not a verdict. Be most careful with any row marked (n<5).
What --json adds
--json prints the full response, which holds more than the table shows:
- Mean escalations and mean advance rejections per cell, and median files changed per cell.
- A
totalscell rolled up across everything. - A rollup by source alone, across all types.
- A rollup by the exact ordered list of stages a composition chose.
- The seal-failure count and the same worst 10 tasks, as structured data.
Reach for --json if you want to script against this data or build your own comparison outside the table.
Related guides
- Auto tasks — the agent chooses the workflow — file the tasks this report measures, and set guardrails on what the agent may choose
- Review debt — the other side of the review picture: latency, rework and cost
- Monitoring your agents — first-pass rate and the rest of fleet health
- Understanding costs — what the cost figures on this page mean
- Customising a task’s workflow — how a hand-pinned workflow (
human_pin) gets set - Stage signals — the sibling quality report: whether each stage’s own gate is calling it right, attempt by attempt
- Cost and rework per completed task — cost and first-pass rate for the tasks that finished, broken out by this same
sourcefield
Last updated