The work loop
Non-trivial work moves through one loop: idea, brainstorm verdict, plan, board, orchestrated build, ship-check, wrap-up. Every hand-off between stages is a file on disk or a script that refuses, so no stage depends on what a previous chat remembered.
- What it is
- The operating procedure that ties the other parts together: /bs decides whether to do something, mow plans and runs it with parallel agents, the taskman board remembers it, and /wrap-up closes each chat against evidence.
- What it isn't
- Not a project-management methodology for people, and not mandatory for everything. A one-file bug fix skips mow entirely. It still gets an independent review and a wrap-up.
- Why it exists
- A planning chat ends with a dozen todos, and both obvious options are bad: keep building in a context window that is already full, or open fresh chats and lose every decision that was made. The loop moves decisions out of chat and into files that a cold agent can read.
How it works
The operator invokes skills; agents run the CLI. Each stage writes something the next stage reads, and four hand-offs pass through a script that exits non-zero when its input is not fit: the board import, preflight, close-out and the wrap-up gate.
| Stage | Invoked as | Writes | Refuses when |
|---|---|---|---|
| Brainstorm | /bs <idea> | docs/brainstorms/<stem>.md and a registry row | The session would end as chat only; a dropped session leaves an honest open row |
| Plan | /mow plan, in the chat where the decisions are live | docs/plans/<stem>/plan.md, dispatch/ briefs, board rows via mow-plan-import | Any brief is thin: no owned files, no SHALL plus scenario, no real "Do NOT" |
| Ready | /mow ready <stem> | Each grill answer, patched into plan.md and every affected brief before the next question | The grill is marked done but nothing was written back |
| Go | /mow go <stem>, from any chat | Code, per-lane verification records, tracker.json, one commit per wave | Preflight fails: ungrilled plan, thin brief, two same-wave lanes owning one file, an unmet wait on another stem |
| Close-out | End of go, automatic | action-report.md with a ship-check verdict line | No verdict, a verdict stale against plan.md, a skeletal report, running lanes left in the tracker (exit 3) |
| Wrap-up | /wrap-up, end of every working chat | Board sync, leftover tasks, a checkpoint, a session report | A changed file no task claims, or a task left in_progress without a citation (exit 1) |
There are two ways in. The common one starts in a chat that has finished thinking: /bs or plan mode, then /mow plan while the context is hot. The other starts from rows already on the board, from earlier wrap-ups or manual task add: taskman plan to-dispatch --feature <id> writes a dispatch folder, and the briefs get filled in before anyone runs go, because board rows are often thinner than a brief needs to be.
Open questions become board rows
A question sharp enough to state but not yet answered becomes a task tagged kind:decision, with the question as its title, and the build work behind it is linked --blocked-by. The build task drops out of recommend next until the question closes. Closing it takes four writes in order: the answer on the task, a decision-log entry with the why, the status move, and the locked answer in plan.md. A question that is real but not for this run is moved to disabled, never done, because done would claim an answer nobody gave.
Fuzzier questions, ones that cannot yet be phrased precisely, stay in the plan's ## Not yet specified section and graduate to the board when a grill answer sharpens them.
AI engineering practices it demonstrates
- Durable state over context. Plans, briefs, verdicts and board rows live on disk, so
/mow goruns correctly from a fresh chat that never saw the planning conversation. - Gates as exit codes. The checks that matter most are scripts: preflight before fan-out, close-out before a run can be called shipped, the evidence gate before a chat can close. A gate that only lives in prose is skipped the first time a run is under pressure.
- Spec first, sized to the work. A plan with three or more lanes, or any UI lane, writes its
## Specof requirements before its lane map. Preflight then checks that every requirement is cited by some lane and every lane cites a requirement or declares itself a support lane. - Human approval at the cheapest point. The operator is asked questions during the grill, one at a time with a recommended answer, before any agent writes code. Questions the planning chat can answer from cited evidence are not asked at all.
- Evidence over recall at session end. Wrap-up diffs the files changed since the session's start commit against what the board says happened. The agent clears the gap by citing what it did, not by remembering.
- Ceremony scaled to risk. mow is for multi-todo or cross-file work. Small work gets the parts that are cheap and catch real failures: independent review and wrap-up.
Capabilities
| Capability | Detail |
|---|---|
| Lineage by stem | A pursued brainstorm reuses its stem as docs/plans/<stem>/, so the idea, the plan, the briefs and the action report are one grep apart. When a plan ships, a script stamps its brainstorm row. |
| Parallel runs | Several stems can run at once in separate chats if their owned file sets are disjoint. Ordering between stems is a declared Lands after: wait that preflight enforces. |
| Next action | taskman recommend next ranks up to three unblocked tasks with the scoring shown. |
| Resumption | A checkpoint written automatically by wrap-up when leftovers exist; /pick-up-where-i-left-off reads it. |
| Recovery ramps | /recover names the ramp for a stuck loop, such as the third failed fix round on one finding or plan drift mid-run. |
Benefits
- Decisions survive the chat that made them. A lane started days later reads the same locked answers the planner had.
- The operator spends attention on the grill and the gates, where a wrong answer is cheap to fix, instead of watching agents type.
- "Done" has a mechanical meaning: a ship-check verdict bound to the plan's hash, an action report, and a clean wrap-up gate.
- Rejected and parked ideas stay findable, so the same idea is not re-argued from scratch a month later.
Limits
The loop is heavy. A medium change costs a brainstorm, a plan, a grill, preflight, per-wave reviews, ship-check and wrap-up, and the five skills the loop runs through (plus mow's tracker contract) hold 2,738 lines of procedure. Against a single developer with one chat on a small change, it is slower, and the skill tells you to skip it there.
- The written loop has drifted from the code.
docs/workflow/work-loop.mdstill draws the board as Postgres, and the bridge spec is a July draft that names Postgres too. The board has since moved to an event log in text files. - One manual step remains. When the board has moved since a dispatch folder was written, someone has to remember to run
to-dispatchbeforego. - The board trap is real. A decision task given a brief path as its source is closed by the end-of-run sweep as if it had been answered. It happened on the first run that used the convention.
- Runtime parity is uneven. Worktree isolation for parallel lanes is a Claude Code primitive. On Cursor the lanes share one tree and the same-wave file rule is the only protection.
- The grill's best question is not enforced. "Does any store hold this input, and can one ever?" is asked during the grill, which can be skipped. No preflight check covers it.
Roadmap
| Item | Why it matters | Status |
|---|---|---|
| Commit run bookkeeping in the turn it is written | Registry flips, tracker files and board rows left uncommitted get swept into a peer's unrelated commit | backlog |
| Make "should this exist" a preflight check | The grill can be skipped; a plan section that preflight reads cannot | open decision |
Operator-recorded approval before go | Today an agent can mark a plan ready; a one-way approval record would make the human sign-off explicit | open decision |
| Single-lane loop and full wrap-up on VS Code Copilot | Brings the loop to a second host, with a newcomer guide and a scripted one-hour dry run | planned |
| A time budget line in briefs | Waits until at least three shipped runs carry lane timestamps to size it from | parked |
Sources
docs/workflow/work-loop.md: the loop, both entry points, decision tasks, the minimal ritual.human-playbook.md, sections 6 to 8: board shape, the two script gates, the session lifecycle.skills/bs/SKILL.md,skills/mow/SKILL.md,skills/ship-check/SKILL.md,skills/wrap-up/SKILL.md.taskman/taskman/mow/preflight.py,closeout.py,taskman/taskman/wrapup.py: the gates.- Counts: rows in
docs/brainstorms/INDEX.mdanddocs/plans/INDEX.md, files indocs/session-reports/, read 2026-10-08. - Task board: open items for bookkeeping commits, the should-this-exist check, operator approval, the Copilot port and brief budgets.