Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Processes: presets, gates and sign-offs

A project’s workflow is its process: the statuses work moves through, which moves are allowed, and what each status asks of an item before the item may enter it. kanbanr knows how to check things. The project decides which checks apply where. None of it is hard-coded: TOGAF, PDCA, a design-control flow or your organisation’s own process is a file.

In Claude Code you never read this table to know what to do next: Claude asks the board what the next stage needs and turns each gap into a draft or a question — see Working with Claude.

Choosing a process

Start with agile unless your team already has a process of its own; TOGAF, Scrum and the others stay available for projects that need their stages (see the report).

kanbanr config workflow --preset list          # what each preset is
kanbanr config workflow --preset togaf         # apply one (statuses, transitions and gates)
kanbanr config workflow --export > ours.yaml   # this project's workflow, as a file
kanbanr config workflow --from-file ours.yaml  # load your own
kanbanr project init shop --workflow pdca      # choose at creation
PresetStagesGates
defaultPlanned → In Progress → Completed, plus Deferred and Ongoingthe built-in rule, plus the method
scheduledPlanned → Scheduled → Completedthe built-in rule, plus the method
togafVision → Business Arch → System Design → Implementation → Migration → Operationsthe definition grows phase by phase; Migration finishes an item for the sprint views; chores skip Business Arch and System Design
pdcaPlan → Do → Check → Actagreement to start, evidence to check, a review sign-off to act
design-controlPlanning → Inputs → Design → Review → Verification → Validation → Releasedsign-offs before verification and before release; chores skip Inputs and Review
scrumBacklog → Ready → In Progress → Review → Testing → Done → ReleasedDefinition of Ready and of Done; work starts in the sprint; sprints, releases and points on; chores skip Review
agilePlan → Design → Develop → Test → Review → Releasedagreement before build, evidence before review; sprints and releases on; chores skip Design

Every built-in process also carries the method: a design before build, and the docs it changes kept current.

design-control is modelled on the design-and-development controls of ISO 9001 clause 8.3. That is not a claim of compliance: only a certification body can make that.

A preset is copied into the project when you choose it. From then on the project’s own config.yaml is what counts, and editing it never changes the preset. New projects get default. Existing boards keep whatever workflow they have.

The built-in rule. A workflow that declares no gates of its own still has one (a gate addressed to a role, such as the method’s, adds to it rather than replacing it): moving an item into a status that means work has started needs an approved definition. That is a status the board displays, that is not where items start, and that is neither an end state nor a no-op. start makes the branch at the first such status. And finishing an item’s last task completes it only when each of its requirements has a green test — what kanbanr finish asks — otherwise the item stays, and the task write says which requirements are unproven.

Gates

A gate is the entry criteria of one status:

gates:
  System Design:
    purpose: How and where it will be built, and the quality it must reach.
    requires: [{zachman: [how, where]}, approved]
    warns: [quality]
  Implementation:
    purpose: Build it, with a test named for every requirement.
    requires: [tests_named, approved]
    on_enter: [branch]
  Operations:
    requires: [tests_green]
    signoffs: [release]
FieldMeaning
purposeWhat the stage is for. kanbanr check, the monitor and CLAUDE.md show it, so the definition is written one stage at a time.
requiresChecks that must pass to enter.
warnsChecks that are reported, never enforced.
signoffsNamed sign-offs that must be recorded against the current definition.
enforceblock (the default) refuses the move; warn allows it and reports what is missing.
kindsApply only to items of these kinds; an item with no kind is a feature.
on_enterbranch: kanbanr start makes the item’s branch here, where the project is a git repository.
affects_docsDocs every item entering this stage must list in affects_docs; the move adds them, without reopening the approval (Coverage rules).
donetrue: reaching this stage finishes an item for the sprint burndown, the sprint’s done total and what a closing sprint carries over. Without it only the end statuses count. The scrum preset marks Done, its Definition of Done, so a sprint burns down as items are done rather than all at once when a release ships them.

The checks

The vocabulary is closed on purpose: a gate can only ask for what kanbanr can judge from the board.

CheckPasses when
definitionthe item has a definition at all
statementthe one-sentence statement is written
goalsit links at least one charter goal
zachmanall six dimensions are answered; {zachman: [what, why]} asks for only those
requirementsit has at least one requirement
earsevery requirement is in EARS form
tests_namedevery requirement names a test
tests_greenevery requirement has a green test
qualityquality requirements carry an ISO 25010 tag and a measured scenario that names its test
approvedthe definition is agreed: approved, or ratified after the fact
bypassa recorded override has been answered
goals_knownevery linked goal exists in the charter
smallnot estimated above three days
estimatedestimated in the project’s unit: story points or days (kanbanr config cadence --unit points)
in_sprintplanned into the active sprint, one that has started (asked only when sprints are on)
in_releaseplanned into a release (projects with releases switched on)
spec_sectionsthe spec has each named section, with content; plain spec_sections asks for Design
docs_updatedevery board doc the item declares in affects_docs, and every board doc linked under the Design’s Affects docs (except lines marked unchanged), has changed since it entered its current stage
diagrams_validevery Mermaid diagram in the spec and in each doc it names in affects_docs passes the diagram lint
docs_coverthe item is covered by every project coverage rule it falls under; {docs_cover: [id]} asks for only those rules

An unknown check, an unknown status or an unknown Zachman column is refused when the workflow is saved. A gate that could never match is a guardrail that silently isn’t there.

diagrams_valid is judged when the item moves, never from a cached result, so fixing the diagram unblocks the very next move. To keep a broken diagram from moving anywhere, ask for it on every gate:

gates:
  Scheduled:   {requires: [approved, diagrams_valid]}
  In Progress: {requires: [approved, diagrams_valid]}
  Completed:   {requires: [tests_green, diagrams_valid]}

A refused move names each diagram: FEAT-012 spec, diagram #1, line 14: … (semicolon_in_text). warns: [diagrams_valid] reports the same without refusing.

When a gate isn’t met

  • A blocking gate refuses the move and lists everything missing. On a project with no charter nothing is refused: the move goes through with one warning saying what the gate would have needed and that kanbanr charter set turns the gates on. A move the gate would have passed says nothing.
  • docs_cover names each rule the item fails and the view doc to add it to: [zachman] FEAT-012 is not referenced from architecture/zachman.md — add a link to it there. Add the link in that doc, then move again. A move that passes still prints any rule it now fails as a coverage: warning (Coverage rules).
  • --override "<reason>" gets past a blocking gate, and the reason is kept in the item’s history. It also records the item as started without agreement, so it shows on the Review page until someone ratifies it. --unapproved is the older name. An override a gate did not need is not recorded: if the gap closed while you were asked, the move goes through plain and gate: says so.
  • An override Claude makes (inside a Claude Code session, or by a delegated agent) records where it was made, and waits on the Review page for you to ratify it even when the item was approved before. Until you do, kanbanr check shows it as override not ratified and the item does not ship: Promote to main and the cut carry it, saying why. Your own overrides, from your terminal or the monitor, are your decision already and wait for nothing. Ratifying records each override on its own, even at a definition you already ratified.
  • Finishing the last task moves the item to its end status only if that status’s gate is met — and, on a workflow with no gates, only if every requirement has a green test. Otherwise it stays, and kanbanr task state says why. A batch is judged after its last operation, so one that ticks the last task and then adds another never completes the item. On a project with releases, an item planned into a release that has not been cut stays where it is, however its last task or sign-off arrives; the cut moves it to its end status. Moving it yourself needs an --override reason.

A lighter path for a kind

A process can give a work kind its own path: the stages an item of that kind passes through, what its first move asks, and the parts of the method that don’t apply to it. The built-in togaf, scrum, agile and design-control processes give chore one, so a small maintenance item isn’t forced through stages whose questions don’t fit it. default, scheduled and pdca are short already and have none.

paths:
  chore:                                   # an item's kind, matched without regard to case
    stages: [Vision, Implementation, Migration, Operations]
    requires: [statement, goals, requirements, ears]
    method_off: [design, design-review]    # parts of the method that don't apply to this kind
  • stages are statuses of the workflow, in its own order, at least two, none a no-op status or listed twice, the first the default state. An item of the kind moves to the next or previous stage on its path, to a no-op disposition, or back to the start, and is refused any other stage. The board’s columns don’t change.
  • requires are conditions asked, as well as the entered stage’s gate, of the first move off the starting stage. That is where a chore records why it exists and how it is verified.
  • method_off names method parts (design, design-review, docs, docs-folded, links) not asked of this kind. A path can drop a method part, never an approval or sign-off that the stage it enters asks for: those stay yours.

A kind with no path walks every stage with every gate, as before. A workflow whose path names an unknown stage, a no-op stage, a stage twice, stages out of order or a first stage other than the default state is refused when it is saved or checked. kanbanr process show lists each kind’s path, kanbanr process diff names a path that differs, and the monitor’s Workflow page shows them with the skipped stages struck through. A process file with a paths key needs this version of kanbanr: an older one doesn’t know the key, so check the file with kanbanr process check there.

Stage roles

Every process, whatever its stages are called, has four kinds of stage. A gate says which ones its status holds:

RoleWhat the stage is for
designthe item’s design is written and agreed: how and where, before build
buildcode is written on the item’s branch
integratethe item’s work joins its line of integration and the docs fold in
releasethe work ships, and the item is finished
gates:
  Implementation:
    requires: [tests_named, approved]
    roles: [build]          # the branch is made here
  "@build":                 # a gate addressed to a role, whichever status holds it
    signoffs: [design-review]
  • One holder per role. Each role belongs to one status; a status can hold several (the default process’s Completed integrates and releases). Saving a workflow that gives one role to two statuses is refused, and so is a release role on a status that isn’t an end.
  • Role-addressed gates. A gate keyed "@build" joins the gate of whichever status holds the build role. A rule written once then works in every process: kanbanr’s method and its git automation find their stage this way.
  • Every built-in process declares its roles. kanbanr process checks lists them, and the working agreement names each stage’s role.
  • Boards without roles get build where the branch is made and release at the first end status, marked “(inferred)”. Design and integrate are never guessed. Nothing behaves differently.
  • Older kanbanr versions: a workflow whose gates only name roles, or that addresses a gate to a role, is stamped schema 4, so an older kanbanr refuses the board rather than misread it.

The method, on by default

Every built-in process asks for the same two disciplines, at whichever stages hold the roles:

PartWhereWhat it asks
designthe build stagespec_sections: [Design]: the spec has its build-ready Design (below)
design-reviewthe build stagethe design-review sign-off: a person reviewed that design
docsthe integrate stagedocs_updated: each doc in affects_docs changed (Living architecture docs)
docs-foldedthe integrate stagethe docs-folded sign-off: the design was folded into those docs
linkseverywherekanbanr doctor reports references to things the board does not have

It is written as two role-addressed gates, "@build" and "@integrate", so you see it in your exported workflow and in the working agreement, and it adds to each stage’s own rules.

kanbanr config method                       # each part, on or off, and where it is in force
kanbanr config method --off                 # all of it off
kanbanr config method --off docs docs-folded   # just those parts
kanbanr config method --on design           # one part back

Turning a part off takes its gates out and records the choice: applying a built-in process, or kanbanr process update, keeps it off, and drift does not report it as an edit. Saved processes of your own are never added to; they are only shaped by the choice.

Projects from before the method keep their workflow as it is. kanbanr doctor asks once — “this project predates the method” — until you choose either way. A project that recorded a built-in process sees it reported as changed (kanbanr process diff), and kanbanr process update brings the method in.

Upgrading: every machine that shares a board should run a kanbanr that knows these gates (docs_updated and role-addressed gates); an older one refuses the board rather than misread it.

Sign-offs

Some conditions are invisible in board data: a design review was held, a release was approved. A sign-off records one:

kanbanr signoff FEAT-042 design-review --note "held 30 Sep" --doc reviews/checkout.md
  • What it records: who gave it, when, in which status, and the definition it covered.

  • When it lapses: changing the definition lapses it, just as it lapses an approval. A review of a different design is not a review of this one. Given on a definition that only grew since its approval, it also counts as the review of what was added. Earlier sign-offs are kept.

  • How it is asked for: a gate asks for it by name (signoffs: [design-review]). The Review page offers a Sign off button for each one the next stage is waiting on.

  • Where it can be given: the review queue offers a sign-off only for the stage the item reaches next, and only once that stage’s other requirements are met. A workflow that lets an item skip ahead doesn’t get the later stage’s sign-off offered early. A finished item is listed only when its approval lapsed or text was added since, and then only to approve again.

  • Who gives it: a sign-off is a person’s agreement. Claude asks for it and never gives it.

  • Taking it back: a sign-off given in error is withdrawn with a reason:

    kanbanr signoff FEAT-042 design-review --withdraw --reason "given before the review was held"
    

    The earlier sign-off stays on the record and stops counting, so the stage is gated again until someone signs off afresh. The item’s page in the monitor has a Withdraw button for each sign-off when the monitor can write.

Growing a definition stage by stage

Under a phased process, an item doesn’t need its whole definition at once. kanbanr check says what the next stage needs:

✗ FEAT-001 Checkout
    [MISSING: Who]
    …
    → to move to Business Arch (Who it is for, what it must do, and why), still needed:
        no goal link — nothing says what this is for
        [MISSING: Who]
        no requirements — nothing states what must be true for this to be done

doctor follows the same rule on a workflow with gates: it reports what the next stage asks, not what a later stage will. When the definition only grows, the approval stands: it is extended, and the additions are reviewed at the next decision the stage asks for, such as design-review. Changing or removing approved text lapses it and it is given again. Each approval records the status it was given in.

The design stage: a build-ready design in the spec

At a design stage, the item’s spec carries the technical design at implementation level, in a ## Design section. It covers:

  • components, modules and files;
  • public interfaces with signatures and responsibilities;
  • data model and formats, algorithms and control flow;
  • concurrency and failure handling;
  • configuration and defaults, and dependencies;
  • security and performance budgets;
  • a test plan that maps each requirement to its tests;
  • compatibility, ADR links and open questions.

The definition’s how and where lines summarise it. Every built-in process asks for both through the method. In a process of your own, write it as:

gates:
  Implementation:
    requires:
      - tests_named
      - approved
      - spec_sections: [Design]   # the spec has a non-empty "Design" heading, at any level
    signoffs: [design-review]

Write the section so a cheaper model can build from it. It ends with an implementation task list: each task names its files, signatures, behaviour, tests (with the requirement each serves) and the tasks it depends on, and leaves no decision open. The tasks go into the item’s todo-list, so a low-cost subagent can take them one at a time.

spec_sections passes when every named heading is in the spec with content under it. Content in a nested subsection counts, and a heading inside a code fence does not.

A worked example: PDCA

kanbanr config workflow --preset pdca
kanbanr feature add --title "Cut checkout errors" --milestone MS-001    # lands in Plan
kanbanr check FEAT-001                  # Do asks: statement, goals, requirements, tests named, approval
kanbanr feature define FEAT-001 --file cut-errors.yaml
kanbanr approve FEAT-001                # the user agrees to the plan
kanbanr start FEAT-001                  # Do: branch made here
# … make the change; tests go green …
kanbanr move FEAT-001 Check             # Check asks: tests green
kanbanr signoff FEAT-001 review         # the user records the review
kanbanr finish FEAT-001                 # Act: the end status, gated by the review sign-off

Sprints and releases

Sprints, releases and burn-rate reports are off unless a project switches them on. The scrum and agile presets do this, and any other project can too:

kanbanr config cadence --sprints on --releases on --unit points --sprint-length 14
kanbanr sprint add --start 2026-10-05 --goal "Shoppers can pay" --capacity 20
# or start today: kanbanr sprint add --start today --goal "…"   # or a date
kanbanr sprint plan SP-001 FEAT-001 FEAT-002    # warns when it goes over capacity
kanbanr sprint unplan FEAT-001                  # back to no sprint
kanbanr sprint start SP-001
kanbanr sprint list                             # every sprint and its state
kanbanr sprint show                             # goal, days left, committed vs done, burndown
kanbanr sprint close SP-001 --carry-to SP-002   # unfinished work moves on, and is recorded
kanbanr retro --sprint SP-001

kanbanr release add v0.1.0 --target 2026-10-18
kanbanr release plan v0.1.0 FEAT-001 FEAT-002
kanbanr release list                            # every release, its state and its stage
kanbanr release promote v0.1.0 --plan           # what the next stage would do and needs; changes nothing
kanbanr release promote v0.1.0                  # candidate: makes the branch release/v0.1.0
kanbanr release promote v0.1.0 staging          # a named stage; a middle one changes only the board
kanbanr release promote v0.1.0 test --reason "the payment check failed on staging"   # back a stage
kanbanr release promote v0.1.0 production       # the cut: ship, notes, fast-forward main, tag
kanbanr release stages                          # what each stage requires and does
kanbanr feature add --title "…" --milestone MS-001 --found-in v0.1.0   # feedback on a release

Work waits for a started sprint. On a project with sprints, the first move off the starting stage into a working stage (Business Arch in togaf, Design in agile, In Progress in default) asks for in_sprint: the item must be planned into a sprint whose first day is today or earlier. Processes that already ask for it, such as scrum, are left as they are. A sprint dated later reads as planned, not active, until its first day. kanbanr sprint start on one starts it today, moves its dates and keeps its length, and says so. kanbanr doctor names a sprint that an older version started early.

The burndown and velocity are derived from the moves items record; nothing is stored for them. An item counts as finished from the day it first reaches a stage marked done — Done, in scrum — or an end status.

On the board, a project that uses sprints opens on the running one — its goal, dates, days left, committed against done, and the burndown against the ideal line:

The Releases page shows each release’s scope, how much of it is finished, its target, and its notes once cut; the Gantt adds the sprints as a lane and the releases as milestones:

Release stages

A release moves through the environments it is deployed to before production. A project that turns releases on gets candidate → main → tag, with the gates described under Stages that act written into its config, where candidate waits for items_merged; a project that has said it has CI (kanbanr config cadence --has-ci on) also needs a passed ci result at tag. A board with releases on from before 0.6 that names no stages keeps candidate → test → staging → production, where test and staging do nothing. A project names its own with kanbanr config cadence --release-stages candidate,qa,uat,live. Each stage must appear once, and the stage that tags is the cut, by default the last.

A stage that has no condition, no earlier-stage requirement and no action, and comes before the cut, only records that the release passed it. kanbanr says so in the same response when you configure one, and marks it does nothing in kanbanr release stages and on the Releases page. The change is still accepted. Changing the stages of a project whose gates are still the three recommended ones drops those gates and takes the defaults for the new stages. Every move is recorded on the release with who made it and when.

  • The first stage makes the branch release/<VERSION> from the integration branch, without checking it out.

  • A middle stage is a board change only.

  • Back a stage — staging to test after a failed check — needs --reason, which is recorded. Nothing moves back from production.

  • The cut is the stage holding the tag action, the last stage by default. It ships the finished items, writes the notes (the notes file at the tagged commit when one is configured, otherwise a generated list), tags the code repository with the version and fast-forwards the main branch to the release, so main’s tip is exactly the tagged commit. Before anything changes it checks that the working tree has no uncommitted changes, that the release branch exists, that the tag does not, and that main has no commits the release lacks; any failure refuses with its reason and changes nothing. If main has moved on, merge main into the release branch and promote again. If the board step fails after the tag and the fast-forward, both are undone. kanbanr release cut <VERSION> --tag is the same as promoting to the last stage; a plain release cut changes only the board.

    With stages after the cut (see Stages after the tag), the cut tags and ships nothing, and the last stage ships.

A release that has no branch yet gets release/<VERSION> made first whichever stage it is promoted to, so a process with a single stage (both first and the cut) works, and so does a promotion that skips the first stage.

A release with nothing planned into it is never promoted, to any stage: it would ship nothing. It is refused with “v0.3.0 has no items: plan some in with kanbanr release plan v0.3.0 <CODE>…”, and the Releases page offers it no button. A patch is the exception: it carries its parent’s fixes, so it is promoted with nothing of its own planned.

Stages that act

That is what a stage does when it has no gate. A stage can instead say what must hold before a release enters it (requires) and what entering it does (on_enter), as an item’s status has a gate. The rules sit beside the stage names, under cadence.release_gates, keyed by stage name:

cadence:
  release_stages: [candidate, main, tag]   # names only; the stage holding `tag` is the cut
  release_gates:
    candidate: { on_enter: [branch, prepare] }
    main:      { purpose: "main holds the release; push it and let CI run",
                 requires: [items_finished], on_enter: [move_main] }
    tag:       { requires: [main_at_release, pushed], on_enter: [tag] }
actiondoes
branchmakes release/<V> from the line of integration, nothing checked out
prepareone commit on release/<V>: the version files, the dated changelog heading and its copies, the notes draft and its listings (see below); entering the stage again redoes it when the configuration changed since, which the Releases page offers as Promote to candidate again
move_mainfast-forwards main to the release tip; refused if main has commits the release lacks (a patch of an older release leaves main where it is)
tagtags the release tip <V> (“Release ”); the stage holding it is the cut, and any stage after it only confirms
conditionholds whenfix shown
items_finishedthe cut would carry nothing overfinish the item, or plan it into another release
preparedthe release tip carries the version, a changelog section with something in it, and the notespromote to the stage that prepares
main_at_releasemain is at the release tippromote to the stage with move_main
pushedthe release tip is on main’s remote-tracking branch (origin/main)push main (git push origin main), then wait for CI
gate_passedevery gate named in commit_gates has a passed result recorded for the release tiplook at your CI, then record its verdict (see below)
tag_passedthe newest result of the tag gate for the tag commit, recorded since the tag was made, is passed; only a stage after the tag can require itrun your CI on the tag and record its verdict, or start a patch release if it failed
merged_items_shipevery item planned into the release whose code is merged can ship; a plan to the stage that tags, or the last stage, adds it when no items_finished is required, and holds the promotiongive what the item lacks (kanbanr check <CODE>), or plan it into another release
items_mergedevery item planned into the release (other than one in a no-op status) is at the integrate stage or later; read from the board, so it needs no repositorymove the item to the integrate stage, which merges its branch, or plan it into another release

Two more conditions are the plan’s own, never configured:

conditionholds whenfix shown
later_tests_greenevery test of the release’s items checked at this stage or before it is green (see Tests checked later)check them and record each result
untested_acceptedat the cut: every shipping requirement has a green test, or you accepted shipping exactly those without onerun them and record the results, or accept shipping them unverified on the Releases page

Tests checked later

Some checks can only be seen after main is pushed: a CI job runs, a tag publishes the notes. A test says when it is checked with at in its definition:

atthe item’s gatethe release
emptywaits for it—
pusheddoesn’t waitthe first stage that requires pushed, else the cut
cutdoesn’t waitthe cut
a release stagedoesn’t waitthat stage
tests:
  - name: release::tag_publishes_notes
    kind: e2e
    state: planned
    at: pushed

at must be pushed, cut or one of the project’s release stages, and only a project with releases can use it. It is part of what was agreed, so adding or changing it lapses the approval. A stage before the cut that a test waits for holds the promotion (later_tests_green) until the test is green. At the cut, every shipping requirement whose tests have none green is listed (untested_accepted): the cut waits until you accept exactly that list, on the Releases page or with --accept-untested FEAT-005/R-2,FEAT-005/R-3. The acceptance is kept on the stage change, and the release notes on the board gain a “Not verified in this release” section naming each one. A test that waits for a stage after the cut holds that stage instead, and needs no acceptance.

A stage can also list earlier stages in after (kanbanr config release-stage tag --after ci). The release must have been promoted forward into each of them before it enters this one, so a named promotion cannot jump over them. The plan shows each as a stage_passed condition with the fix promote <V> to <stage> first. Moving back to a stage is not entering it, and a stage entered by the same promotion does not count. kanbanr records that the stage was entered, not that CI passed.

A stage with no gate of its own keeps the default:

stagedefault on_enter
the firstbranch (unless another stage holds it)
a middle onenothing
the lastmove_main, tag (without move_main if another stage holds it, and without tag if another stage holds that)
the first after the tagnothing, and tag_passed required when commit_gates names a gate
the only onebranch, move_main, tag

A promotion takes the actions of every stage it passes or enters, in the order branch, prepare, move_main, tag, and needs every condition those stages require. Everything is worked out first; if anything is missing it is refused with each missing condition and its fix, and nothing changes. A condition an action of the same promotion makes true counts as met (prepare makes prepared, move_main makes main_at_release); nothing makes pushed true, so skipping straight to the cut still waits for the push. If a step or the board fails after earlier steps, every git step is undone, newest first. Promoting to the stage a release is at takes its actions again when any of them would change something. Moving back stays a board change: main never moves back, since it may already be pushed.

pushed reads the remote-tracking branch. A promotion fetches main first; offline, it judges from the last fetch and says so. kanbanr never pushes: pushing main and the tag is yours.

Stages after the tag

A tag says which commit the release is. Whether that commit works, and where it has been run, is for you to say. Put stages after the one holding tag and each is a confirmation: the release stays unshipped, its items stay where they are, and the stage runs no action.

cadence:
  release_stages: [candidate, main, tag, staging, production]
  release_gates:
    candidate: { on_enter: [branch, prepare] }
    main:      { requires: [items_finished], on_enter: [move_main] }
    tag:       { requires: [main_at_release, pushed], on_enter: [tag] }
  commit_gates: [ci]
  • Promoting into tag tags the commit and records tagged_at and the commit on the release.
  • The Releases page shows the newest result of the tag gate (tag_gate, else the first commit gate) for that commit, recorded after the tag, with its link and note. With none, it offers Record result.
  • The first stage after the tag requires a passed result. On a failed one the page offers Check again (re-reads the board after you rerun your CI and record the new result) and Start a patch release.
  • Each confirmation is kanbanr release promote <V> --note "what you checked" or the page’s Confirm button. It records who, when and the note on the release, and nothing else.
  • Confirming the last stage ships the release: finished items move to their last status, the notes are written and shipped_at is recorded. A project with no stage after the tag ships at the tag.
  • Start a patch release (kanbanr release add <V2> --patch-of <V> --from-failed-tag [--link …] [--notes …]) files a defect carrying the failed run’s link and your notes, plans it and the release’s items into a new patch branched from the tag, and marks the release superseded by it. The tag stays in git. kanbanr config tag-gate <name> picks the gate that judges the tag.

kanbanr never contacts a CI server or the remote: you run your CI, and you record what it said.

Gate results

kanbanr runs no CI and asks no server what it said. You look at your CI, then record its verdict for a commit; a stage that requires gate_passed reads what was recorded. Name the gates a project requires once, then record each verdict as it comes in:

kanbanr config commit-gates ci                       # the gates gate_passed requires (none clears them)
kanbanr config release-stage production --requires main_at_release,gate_passed --on-enter tag
kanbanr gate record ci --passed --url <link to the run> [--commit <REV>] [--note …]
kanbanr gate list [--name ci] [--commit <REV>]       # newest first

A result is a file of its own under the project’s gates/<name>/, and none is rewritten: the newest result of a gate for the commit decides, and a result for another commit says nothing. --commit defaults to HEAD; a pass with no commit named is refused while the working tree has uncommitted changes, because it would not be about HEAD. The Releases page offers the same as a Record result form where a promotion lacks a result (the Releases page’s Record result form, just above the Cut), and shows the command on a read-only monitor.

When Claude has read the run’s result, it prepares it (kanbanr prepare gate) instead of asking you to type it. The Releases page then shows the result filled in where Record result would be: the gate, the commit, passed or failed, the link to the run and the note, with one button. Confirm it, change a field first with Edit, or Reject it. The result is recorded as you, and what Claude prepared is kept beside it (Prepared by Claude).

A promotion that would itself add a commit to the release branch (prepare) cannot be covered: no result can exist for a commit that is not made yet, so promote to the stage that prepares first and record the result once it is on the branch. make ci records its own run as the gate local, a failure always and a pass only on a clean working tree; add local to commit_gates to require it. Claude never records a result for you.

kanbanr config release-stage candidate --on-enter branch,prepare
kanbanr config release-stage main --requires items_finished --on-enter move_main
kanbanr config release-stage production --requires main_at_release,pushed --on-enter tag
kanbanr config release-stage production --clear     # back to the default
kanbanr release promote v0.3.0 --plan --fetch        # the plan, after fetching main

release promote --plan prints the button, each step, each condition with ✓ or ✗ and its fix, and for the cut what it tags, ships and carries over. After a promotion, kanbanr says what is next — “next: push main (git push origin main), then wait for CI, then Cut v0.3.0”.

Preparing a release

A release prepares itself: entering the stage with prepare commits, in one commit on release/<V>, what a release needs. No separate item is made for it.

kanbanr config release-prepare --version-file api/Cargo.toml \
  --version-file 'api/Cargo.lock=name = "kanbanr-core"\nversion = "{version}"' \
  --version-file 'api/Cargo.lock=name = "kanbanr-cli"\nversion = "{version}"' \
  --version-file 'api/Cargo.lock=name = "kanbanr-server"\nversion = "{version}"' \
  --changelog CHANGELOG.md --changelog-copy docs/src/project/changelog.md \
  --notes 'docs/src/releases/{version}.md' \
  --notes-listing 'docs/src/SUMMARY.md::- [Release notes](releases/index.md)::  - [{number}](releases/{version}.md)'
kanbanr config release-prepare                     # shows it
  • Version files. Each file’s version is set to {number} (v0.3.0 → 0.3.0). A *.toml file matches ^version = "{version}" and a *.json file "version": "{version}", the first match only. Any other file needs a match: literal text with one {version}, where whitespace matches any whitespace (newlines too) and a leading ^ anchors to a line; an explicit match sets every occurrence. A file may be listed more than once, each time with its own match — a lockfile naming several of the project’s packages, say; every entry is applied, in order, in the one commit. Each --version-file adds an entry (the same path and match twice is kept once), and --clear-version-files starts the list afresh. A missing file, or a match that finds nothing, refuses the promotion.
  • Changelog. ## [{number}] - {date} goes below the first ## [Unreleased], so what was unreleased belongs to the release; an [Unreleased]: …compare/<prev>...HEAD link moves on and [{number}] gets its own. When that leaves the section empty, it is filled from the items the release ships, under ### Added, ### Changed and ### Fixed (a defect or bug is Fixed, a chore Changed, anything else Added), and [Unreleased] stays as an empty heading. When nothing ships and nothing is unreleased, the plan says so, the changelog is left as it is, and kanbanr release notes <V> --changelog <file> writes the section. Each copy gets the same text.
  • Notes. A draft from the items the cut would ship, written only if the file is not there yet, and listed below the line named in each listing.

Nothing is checked out: kanbanr writes the commit with git’s plumbing, so no hook runs, and the commit carries [no-ref] release preparation, made by kanbanr and a Kanbanr-Release: trailer. People’s commits on release/* stay refused; kanbanr’s preparation commit is the one exception. With nothing configured, prepare bumps nothing, makes no commit, and the plan says so.

Reading and editing the notes

The drafted notes are on release/<V>, not in your checkout, so read and change them from the release itself — no branch switch, no separate item:

kanbanr release notes v0.3.0                 # release/v0.3.0 @ 8f995e1: docs/src/releases/v0.3.0.md, then the text
kanbanr release notes v0.3.0 --edit          # $VISUAL / $EDITOR on a copy; committed if it changed
kanbanr release notes v0.3.0 --file notes.md # or `-` for stdin
kanbanr release notes v0.3.0 --file notes.md --changelog section.md  # the notes and the changelog section, one commit
kanbanr release notes v0.3.0 --changelog section.md                  # the changelog section alone

--changelog takes the text of the version’s section (the part under its ## [<number>] heading), writes it to the changelog and each of its copies in the same commit as the notes, and refuses an empty file. Use it instead of a fix item when the section needs changing on a release under test.

The notes are read from the path they were first written to, which the release records, so changing kanbanr config release-prepare --notes later does not lose earlier releases’ notes. A shipped release’s notes are read at its tag. A release recorded before this was kept is found at any path the setting has named in the board’s history, and a miss names every path and ref looked at.

A save is one commit onto release/<V>, made the way the preparation commit is: nothing checked out, [no-ref] release notes, written by kanbanr and a Kanbanr-Release: trailer. The same text makes no commit. Each save also applies the notes listings again, so a listing added to the config after the release became a candidate reaches it. The notes can be edited until the release is cut; after that they read as shipped. The Releases page shows the same notes under Release notes, with Edit notes on a write-enabled monitor started in the project folder.

Notes saved after main has moved to the release move main with them, so the commit the cut tags has them; the save says so (“main held v0.3.0, so it moved with the notes to 4c1d2e9: push main again and wait for CI before the cut”). Until you push main again, the cut waits. If main has commits past the release, nothing is saved.

The release date

The notes (_Released <date>._) and the changelog heading (## [<number>] - <date>) carry the day the release was prepared. The stage that moves main dates them today first, in one commit onto release/<V> (Release v0.3.0: dated 2026-11-01), and main moves with it; --plan shows the step as “dates the release 2026-11-01 and fast-forwards main”. If main has already moved, the cut’s plan warns instead, naming the date the files carry, today’s date and the command:

kanbanr release redate v0.3.0   # one commit onto release/v0.3.0; main moves with it if it holds the release

When main moved with it, the command says to push main again and wait for CI before the cut. Once the release has shipped it refuses. A project with no notes or changelog configured, or a file with no date line, has nothing to date.

A change merged into a promoted release

A release that has left its first stage and has not been cut goes back to that stage when an item is merged into release/<V>. kanbanr move says so, and the stage history records the item, who moved it and when. From the first stage the ordinary steps apply: update the notes (kanbanr release notes <V> ends with the planned items the notes do not mention), run the gate again, promote to main, push main and wait for CI, then cut. kanbanr release promote <V> --plan and the Releases page show the item and the steps. Until the cut, the stage that tags also needs main at the release tip, the tip pushed and, where the project names commit gates, a passed result, whatever the stage’s own requires say.

A recorded pass of a commit gate carries to a later commit of the release when every path changed since matches cadence.gate_docs (docs/ and *.md unless kanbanr config gate-docs names others); the plan names the commit it came from. A failed result never carries. A release that is tagged and not shipped refuses the merge before anything changes, because its tag names one commit; the change goes into a patch release (kanbanr release patch <V>). Saving the release notes moves main with them as before and does not send the release back.

Patch releases

A fix to a release already in production gets a release of its own, a patch:

kanbanr release add v1.0.1 --patch-of v1.0.0

The patch records its parent, which must have been cut and tagged — any cut release, an older supported one included. release/v1.0.1 is made from the parent’s tag, not from where main has since gone, and the patch starts at candidate. A patch release starts at candidate the moment it is created, so there is no first stage to promote from. Claude asks you in the conversation to confirm it; main and the tag are then decided on the Releases page as usual. It goes through the same stages. Its notes say “Patch of v1.0.0”, list what the patch adds, and what it keeps from the parent.

At production the patch is tagged. Main fast-forwards to it when it can; when main has moved on past the parent, main is left where it is. The patch’s commits that the integration branch does not have yet are listed — in the output and in the notes, under “To merge forward” — so the next release keeps the fix. Claude merges them forward with kanbanr git forward <VERSION> as soon as kanbanr says so; you push.

The integration branch and the main branch are both the repository’s default branch unless the project names them: kanbanr config cadence --integration-branch develop --main-branch main.

The first and last stages act on the code repository, so run them from the project folder. The monitor (kanbanr serve --allow-writes) uses the repository it was started in, when that folder’s marker names the project; otherwise it refuses them with “use the CLI from the project folder”. Nothing is pushed: publishing the tag and main is whoever pushes.

Items reach the project’s end status through the production stage of a release they are planned into: the cut moves them there, and a gate asking for in_release stops them getting there any other way.

The git model

The cadence also says how the code repository is laid out. kanbanr git model shows it:

CadenceLine of integrationProduction moves at
neither (trunk)mainthe merge of each finished item
sprints onlysprint/<SP> of the running sprintthe sprint’s close
releases onlythe integration branch (integration unless named)the release cut
sprints and releasessprint/<SP> of the running sprintthe release cut

Items are built on feat/<CODE>-<slug> (a defect on fix/<CODE>-<slug> when the pattern is the default) or spike/*. A release is branched as release/<VERSION> when it reaches its first stage. main, the integration branch, sprint/* and release/* are lines: they take merges only, and a merge into one must say which items it brings (Refs: kanbanr:<CODE>, or [no-ref] <why> on the record).

The model is always shown. It is switched on when you first choose sprints or releases, and off with kanbanr config cadence --git-model off; a trunk project (neither) can switch it on itself:

kanbanr config cadence --git-model on

Then start branches an item from its line (making the integration branch from main the first time), and a fix for a release under test from that release’s branch. sprint start makes sprint/<SP> from the newest sprint main does not have yet, else from main. A release’s branch is made from the line its cadence says. The commit hooks refuse plain commits on a line, and a generated merge message that names no item. kanbanr never pushes: the code repository refuses a push from it outright.

With the model on, the board makes the merges:

  • Integrating an item merges it. Moving an item into the integrate stage (or past it) merges its branch into its line with a merge commit naming the item (Refs: kanbanr:<CODE>). If the merge would conflict, the move is refused before anything changes, naming the files: merge the line into the item branch, resolve, commit, and move again. The item branch is kept. A batch cannot integrate an item; move it on its own.
  • A sprint’s close is production when there are sprints but no releases: main fast-forwards to sprint/<SP> and is tagged with the sprint’s code. If main has commits the sprint lacks, the close is refused and nothing changes.
  • Carried items catch up. When the sprint they were carried into starts (or the close names one that already has a branch), its branch is merged into each carried item’s branch — never a rebase. One that would conflict is reported with its files and left as it was.
  • A fix to a release under test integrates into release/<VERSION>, and the move says the line lacks it. kanbanr git forward <VERSION> merges the release forward into the line, naming every item its commits name. Claude runs it as soon as the move says so, and tells you what merged; you push.

kanbanr config workflow --write-agreement writes the team’s working agreement to the board, generated from the gates. Under Scrum that is the Definition of Ready and of Done. Because it is generated, it can’t drift from what is enforced.

Writing your own process

Start from the closest preset and edit it:

kanbanr config workflow --preset design-control
kanbanr config workflow --export > our-process.yaml
# edit our-process.yaml: rename stages, move sign-offs, add `kinds:` to gates
kanbanr process check our-process.yaml               # every problem, then the agreement; changes nothing
kanbanr config workflow --from-file our-process.yaml

kanbanr process check runs the same validator the board runs when a workflow is saved, so a file that checks clean is one the board accepts. It reports every problem at once, not only the first. It needs no board, so a process can be checked before the project exists, and - reads the file from stdin (kanbanr process check - < draft.yaml). Where there is one, it also names any status the file would remove that still holds this project’s items. When the file is clean, it prints the working agreement and a Mermaid diagram. kanbanr process checks lists every check a gate can ask for, from the same list as the table above.

The file holds statuses, default_state, displayed_states, no_op_states, terminal_states, transitions and gates. It has no name, so one process file can serve many projects. A board that declares gates is stamped schema_version: 3, so an older kanbanr refuses to open it instead of ignoring its gates.

Designing a process with Claude

You don’t have to write the file. Tell Claude how your team works (“design review before we build, QA signs off releases”), at setup or any time later. In plan mode, it:

  1. offers the processes already saved on the board and in your personal library, then the built-in ones;
  2. for “our own”, starts from the nearest built-in process and proposes stages for you to correct;
  3. asks one question per stage, what must be true before work enters it? The choices are the checks above, in plain words (kanbanr process checks), so you can only agree to what kanbanr can enforce;
  4. turns anything kanbanr can’t see (“the architecture board has reviewed it”) into a named sign-off that a person records;
  5. asks the process-wide choices together: block or warn, which stage holds each role (design, build, integrate and release; build is where the branch is made), which stage ends the work, which moves back are allowed;
  6. asks its name, and whether to keep it on the board for the team or in your personal library;
  7. checks the draft with kanbanr process check and puts its working agreement and diagram in the plan, with a one-line description of what the process is for.

Accepting the plan saves the process and applies it. Changing it later is the same conversation, and then Claude asks, one project at a time, whether each project using it should take the new version.

Saving and sharing processes

A process you will use again can be saved by name, and then chosen like a preset:

kanbanr process save our-process --description "Design review before build; QA signs off"
kanbanr process save our-process --from-file our-process.yaml   # or from a file
kanbanr process save my-process --personal                      # in your own library instead
kanbanr process list                                            # every process, and who uses it
kanbanr process show our-process                                # its file, agreement and diagram
kanbanr config workflow --preset our-process                    # apply it to this project
kanbanr project init storefront --workflow our-process          # or start a project with it
LibraryWhereWho has it
The boardprocesses/ in the board, beside projects/everyone with the board, through its git remote
Personal~/.kanbanr/processes/ (KANBANR_PROCESSES_DIR to move it)you, on any board
Built-inin kanbanreveryone

process save keeps a process on the board unless you pass --personal. Without --from-file, it saves this project’s workflow. A process must pass process check to be saved. A built-in process’s name can’t be reused. Saving again leaves the version alone when nothing changed, and adds one when something did.

A name is looked up on the board first, then in your personal library, then among the built-in processes. A team’s agreed process always wins over one person’s copy of the same name; process list marks a personal copy the board’s hides.

A project records the process it was given: its name, library, version, and a hash of its content. A personal process is sent to the board whole when you apply it, because the board can’t read anyone’s home folder. process list shows which projects use each process. When a project uses someone else’s personal process, it says the file is not in your library.

When a saved process changes

Changing a saved process never changes the projects using it. They are told, and each one updates when its user says so:

kanbanr process status            # which process this project uses, and whether it has moved on
kanbanr process diff              # what is different: statuses, moves, gates
kanbanr process update            # take the saved version now
  • kanbanr doctor warns when a newer version is saved, or when the project’s workflow was edited after it was applied. The same notice opens each Claude session, and Claude asks once whether to update.
  • The monitor’s Workflow page shows the process, its version and library, and any notice.
  • Items already in progress meet the new gates on their next move. Approvals already given stay.
  • An update that would remove a status still holding items is refused. Move the items, or rename the status with kanbanr config rename-status, first.
  • A built-in process can change with a kanbanr release, and is reported the same way.
  • A personal process is compared on the machine that has it: the board doesn’t hold its file.

A saved file has a short header, which an older kanbanr ignores:

process:
  name: our-process
  description: Design review before build; QA signs off
  version: 2
statuses: [...]