Skip to content

v0.6.0

Latest

Choose a tag to compare

@wfaler wfaler released this 02 Dec 06:07
· 5 commits to main since this release

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 with discipline 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. With build.concurrency above 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. commit runs the gate first and writes Task: and Proposal: trailers; it refuses
    while another task's unverified changes are in the tree, and with --reviewed while a task's units
    await review. prepare --resume confines 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:builder edit only the task's owns and
    docs/ (from .claude/build/task.json), and denies commits, branch changes and the loops' state
    commands. Its shell commands are otherwise not checked, so tasks built --strict checks 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 integrate refuses a worktree task when the repository
    itself changed meanwhile.
  • Build-time verification. discipline tasks built now 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 --strict nothing changed outside what it owns, and the
    project's gate passes (it runs gate from .claude/review/project.json). A failure leaves the task
    building and 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,
    with title, 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: plan names 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 into docs/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 (also discipline doc answers) processes answers: a decision, the spec updated, and settle, 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:answers runs 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: and Proposal: trailers. Decisions record where they came
    from (from: a proposal, a task or an assumption; decisions new --from, filled in by settle), and
    the gate fails on a from: 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.json commits
    (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 as open, 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 whose from: names
    nothing; it warns about blocked tasks, open and answered assumptions, spec markers that point
    nowhere, and commits since commits.since without trailers.
  • Session start shows the queue and the assumptions waiting: to discuss, answered, open.
    discipline decisions search finds 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:working gains "Tasks and the queue" (the build loop, commits with trailers, a team
    tracker: no field owned by both sides).