Repository navigation
The release that lets agents build unattended: accepted proposals become tasks, a build workflow
builds, verifies and reviews them, open questions are built on and answered in checklists instead of
stopping the work, and every step is traceable from the request to the commit.
- The build workflow,
/discipline:build-loop. Each round it processes answered assumptions,
plans the tasks that can start (discipline build plan), builds each with a builder agent
(discipline:builder) confined to the task's paths, verifies it withdiscipline tasks built --strict(one repair attempt), lists the builders' assumptions, runs the review loop over what was
built, and commits when agents commit. It stops when nothing is ready, a task still fails
verification, or at the usage or task limit. Withbuild.concurrencyabove 1, tasks whose paths don't
overlap are built in parallel git worktrees and brought back one at a time as patches. discipline build plan · prepare · integrate · commit · cleanup: the workflow's bookkeeping, also
usable by hand.commitruns the gate first and writesTask:andProposal:trailers; it refuses
while another task's unverified changes are in the tree, and with--reviewedwhile a task's units
await review.prepare --resumeconfines a repair to the task again. A worktree starts from the
repository as it is, uncommitted records included.- The builder's guard. The plugin's hook lets
discipline:builderedit only the task'sownsand
docs/(from.claude/build/task.json), and denies commits, branch changes and the loops' state
commands. Its shell commands are otherwise not checked, sotasks built --strictchecks the tree
afterwards: it refuses changes outside the task's paths,docs/and the branch work files, and
review state for the task's own units;build integraterefuses a worktree task when the repository
itself changed meanwhile. - Build-time verification.
discipline tasks builtnow checks a task before marking it built: its
acceptance tests exist and changed, code didn't change without a test (--no-tests "<reason>"
waives it, recorded in the task), with--strictnothing changed outside what it owns, and the
project's gate passes (it runsgatefrom.claude/review/project.json). A failure leaves the task
buildingand says why. The task template gains a Tests section. - Tasks: the build steps of accepted proposals, one file each (
docs/tasks/<proposal>/<NN>-<slug>.md,
withtitle,proposal,status,owns,depends-on,exclusive,spec,acceptance,
tracker,from). Accepting a proposal is the approval to build all of it.
discipline tasks new · list · plan · start · built · set:plannames what can start, in queue
order (proposals oldest first): its proposal is accepted (or the task builds an answer), every task
it depends on is done, no blocking assumption holds it, no other task or branch owns its paths, and
no review run is working on its units (the review loop now claims its units while it runs). - Done means reviewed. A built task is done once every lens of every unit it changed has a review
in the ledger since it was built (a baseline doesn't count; a requeue makes it due again). - Assumptions: build the recommendation, raise the question, answer it in a checklist. Where the
spec is silent, the builder, or the review loop's fixer, builds the option it recommends and the
question goes intodocs/assumptions/<proposal>.md, a Markdown checklist with the built option
ticked. People answer by ticking whenever it suits them: the question to confirm, another option to
change it (the agent's tick on the built one may stay), or "Other:" with words, a link to a longer
answer, or "discuss in chat".discipline assumptions [list] · add (--json for several) · settle.
Only blocking questions get nothing built and hold back their task, at a very high bar: the wrong
answer would change the direction of the product or of a large piece of work, or destroy what can't
be recovered. - One path from answer to work, for both loops.
/discipline:answers(alsodiscipline doc answers) processes answers: a decision, the spec updated, andsettle, which hands a change to the
task the question held back or creates a task approved by the answer. The build loop runs it before
each round;/loop 30m /discipline:answersruns it on a schedule. Unattended runs process only
committed ticks, so git names who answered and a half-finished edit is never acted on. - Traceability. Commits carry
Task:andProposal:trailers. Decisions record where they came
from (from:a proposal, a task or an assumption;decisions new --from, filled in bysettle), and
the gate fails on afrom:that names something that doesn't exist.discipline trace <proposal | task | assumption | file>
walks from a file or a request to the decisions, tasks, commits, review outcomes and answers
(Markdown, or--json). The commit settings live in.claude/review/project.jsoncommits
(by,granularity: per task, or per proposal on a branch squash-merged;since). - The review loop: builds the recommendation of non-blocking questions and lists them; fixes a
defect nobody refuted, including one no verifier could judge; asks a silent verifier once more and
reports one that stays silent as a flake (verifierFlakes); records a question whose build was put
off asopen, so the next run builds it; claims its units while it runs. - Who commits. Bootstrap offers three commit policies under one fixed rule, never commit code that
fails the gate: the user commits; agents commit as the user and the user pushes (recommended); agents
commit and push. Plus the granularity, per task or per proposal. - The gate fails on inconsistent task files (unreadable, unknown status, missing proposal or
dependency, a cycle, building tasks owning the same paths) and on a decision whosefrom:names
nothing; it warns about blocked tasks, open and answered assumptions, spec markers that point
nowhere, and commits sincecommits.sincewithout trailers. - Session start shows the queue and the assumptions waiting: to discuss, answered, open.
discipline decisions searchfinds tasks too. discipline decisions confirm <file> --people …records that people agreed to a decision an agent
recorded alone;--supersedes <file>on a new decision replaces one./discipline:workinggains "Tasks and the queue" (the build loop, commits with trailers, a team
tracker: no field owned by both sides).