Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

Merge main e907ffec into #733 [S1,E3]

Corey Olson8f556a69dfe8
diff --cc docs/api.md
index 001fb78d,7d0edfa6..b51c2ac4
--- a/docs/api.md
+++ b/docs/api.md
@@@ -117,8 -120,8 +120,9 @@@ For example: `flow: review wait averag
| `spec signers` | `version:number`, `added:boolean`, `by:string`, `path:string`, `initial:boolean` |
| `spec approve` | `version:number`, `decisions:array` |
| `spec decline` | `version:number`, `decisions:array` |
+| `spec answer` | `version:number`, `decisions:array` |
| `spec apply` | `version:number`, `applied:array`, `files:array` |
+ | `doctrine check` | `version:number`, `rules:array` |
| `hook pre-commit` | `version:number`, `messages:array` |
| `hook pre-merge-commit` | `version:number`, `messages:array` |
| `hook commit-msg` | `version:number`, `messages:array` |
diff --cc src/cli.js
index d46889be,7c289e1f..ce2a14c8
--- a/src/cli.js
+++ b/src/cli.js
@@@ -14,10 -14,11 +14,11 @@@ import * as store from './board.js'
import { CONFIG_FILE, COORDINATOR, DOCTRINE_FILE, LEGACY_DOCTRINE_FILE, loadConfig } from './config.js';
import { displayAgentName } from './agent-names.js';
import { doctrineHistory, loadDoctrine } from './doctrine.js';
+ import { checkRulesAt, doctrineReport, hasSubmitRules, holdDoctrine, ruleLine } from './doctrine-checks.js';
import { agentSessionDigest, requirePersonChannel } from './person.js';
import { bindLocalSession, localSessionMatches } from './agent-session.js';
-import { decisionProjection, planRowApply, prepareRowDecisions, restoreRowApply, writeRowApply } from './row-decisions.js';
+import { decisionProjection, handAnsweredQuestions, planRowApply, prepareRowDecisions, restoreRowApply, writeRowApply } from './row-decisions.js';
- import { digestOf, gateReport, runGate, runProfiledShell, runSubmitGate, submitGateReport, timingDigest, withGateSlot } from './gate.js';
+ import { digestOf, gateReport, refuseSandboxBlocked, runGate, runProfiledShell, runSubmitGate, submitGateReport, timingDigest, withGateSlot } from './gate.js';
import { checkNeedsBrowser } from './browser-admission.js';
import { bareWorktreeFinding, codeIsFromMain, contains, differFromHead, git, gitChildEnv, headCommit, headTree, invalidateGitFacts, isClean, mainCheckout, patchId, repoInfo, resolveCommit, tryGit, untracked, withGitFacts } from './git.js';
import {
diff --cc src/help.js
index 66f3201c,a1185b07..9b89cf02
--- a/src/help.js
+++ b/src/help.js
@@@ -162,9 -165,11 +165,13 @@@ Spe
principal defaults to Git user.email; --by overrides it
pullboard spec approve <ids> | decline <ids> --reason "why" the person's exact-row decision
approve <id> --text "new wording" approves an exact rewrite
+ pullboard spec answer <id> "<choice or text>" the person's answer to a pending question
+ a listed choice, or their own words added as the last choice
pullboard spec apply coordinator applies recorded row decisions to the files
+ pullboard doctrine check each doctrine rule's check: its count, its committed count, whether it holds
+ a rule row adds | gate: check <command> | count: N, and | files: <paths> to narrow it
+ the command prints one line per problem and exits 0 or 1; anything else cannot count
+ submit refuses a touched rule whose count rises; runs: nightly skips submit, mode: watch only counts
Role guides
pullboard prompt decompose|plan|signoff|review|verify how to do each role; Claude Code gets them as skills
diff --cc src/json.js
index 82258c51,eb237e3f..e1ebfafd
--- a/src/json.js
+++ b/src/json.js
@@@ -83,8 -84,8 +84,9 @@@ export const JSON_SHAPES =
'spec signers': shape({ added: 'boolean', by: 'string', path: 'string', initial: 'boolean' }),
'spec approve': shape({ decisions: 'array' }),
'spec decline': shape({ decisions: 'array' }),
+ 'spec answer': shape({ decisions: 'array' }),
'spec apply': shape({ applied: 'array', files: 'array' }),
+ 'doctrine check': shape({ rules: 'array' }),
'hook pre-commit': shape({ messages: 'array' }),
'hook pre-merge-commit': shape({ messages: 'array' }),
'hook commit-msg': shape({ messages: 'array' }),
diff --cc src/templates.js
index 8e26957f,5c9a529a..289a5987
--- a/src/templates.js
+++ b/src/templates.js
@@@ -100,9 -100,9 +100,9 @@@ On a board that is not set up, run \`pu
This repo runs on pullboard: a work board, lanes and a spec that live in git. Nothing ships until a second agent verifies it.
-**Source of truth.** \`SPEC.md\` holds every requirement as a row with an id, like \`G1.2\`. Code follows the spec. Commits cite the ids they serve: \`feat(scope): subject [G1.2]\`. Only a person approves or changes an approved row. Ids are permanent: a row the person cuts stays, marked \`wont\` (won't build), so every commit that cites it keeps its meaning. Propose each requirement with \`pullboard spec draft "<text>"\`; it returns the draft row id for the person to approve. To start from a blueprint's rules, questions and starter items, run \`pullboard blueprint add <name or file>\` (bundled: web-app); it files them all as drafts for the person to approve. To share this board's approved rules and answered questions as a blueprint, run \`pullboard blueprint save [file]\`; it never writes items, notes, paths, emails or names.
+**Source of truth.** \`SPEC.md\` holds every requirement as a row with an id, like \`G1.2\`. Code follows the spec. Commits cite the ids they serve: \`feat(scope): subject [G1.2]\`. Only a person approves or changes an approved row. Ids are permanent: a row the person cuts stays, marked \`wont\` (won't build), so every commit that cites it keeps its meaning. Propose each requirement with \`pullboard spec draft "<text>"\`; it returns the draft row id for the person to approve. To start from a blueprint's rules, questions and starter items, run \`pullboard blueprint add <name or file>\` (bundled: web-app); it files them all as drafts for the person to approve. Its questions file as pending rows, each with a default answer and its choices: the person answers one with \`pullboard spec answer <id> "<choice or text>"\` from the main checkout or the view, and the coordinator writes it with \`pullboard spec apply\`. Never answer a question by editing SPEC.md; spec check flags it. To share this board's approved rules and answered questions as a blueprint, run \`pullboard blueprint save [file]\`; it never writes items, notes, paths, emails or names.
- **Doctrine.** Our house rules for agentic development. This repo inherits Pullboard standard doctrine version 1. ${doctrine.repo ? doctrine.name : DOCTRINE_FILE} adds the repo's own rows, overrides a standard rule by its PB id, or declines it with a wont row and its reason as the row text: - PB7 [wont] <why>. Approved rows are in force; follow them as you would the spec. Run pullboard spec --json to read the current merged rules. Re-run pullboard init after changing the doctrine to refresh this managed guidance.
+ **Doctrine.** Our house rules for agentic development. This repo inherits Pullboard standard doctrine version 1. ${doctrine.repo ? doctrine.name : DOCTRINE_FILE} adds the repo's own rows, overrides a standard rule by its PB id, or declines it with a wont row and its reason as the row text: - PB7 [wont] <why>. Approved rows are in force; follow them as you would the spec. A rule with \`gate: check <command>\` and \`count: N\` holds a count that only falls: run pullboard doctrine check to see each count, and submit refuses RATCHET_ROSE when a touched rule rises or a changed file gains a problem. Lower \`count:\` in a commit when you fix problems; only the person raises it. Run pullboard spec --json to read the current merged rules. Re-run pullboard init after changing the doctrine to refresh this managed guidance.
### Current doctrine