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.

docs(spec): rows for the house rules, the spec view and role guides

Corey Olson27d39c145e0b
diff --git a/PRACTICE.md b/PRACTICE.md
new file mode 100644
index 00000000..84930aa7
--- /dev/null
+++ b/PRACTICE.md
@@ -0,0 +1,33 @@
+# Practice
+
+How pullboard itself is built: the house rules, as rows. SPEC.md says what to build; this file says how. A row whose gate names a check fails the build when broken; a row gated by review guides agents and reviewers.
+
+Statuses: approved = in force · draft = proposed · retired = dropped, id kept. Tiers: must · aim.
+
+## W · Writing
+- W1 [approved, must] Numbers over adjectives. No hedges, no filler. | gate: review
+- W2 [approved, must] Commit headers are type(scope): subject [ids], 72 characters at most, no emojis. | gate: commit-msg hook
+- W3 [approved, must] Spec ids go in commits, code headers and test names, never in words meant for people. | gate: review
+- W4 [approved, must] A refusal names its rule as a code and says the next step. | gate: review
+
+## C · Code
+- C1 [approved, must] Plain JavaScript ES modules; no build step. | gate: package test
+- C2 [approved, must] Zero runtime dependencies: every import is a node: built-in or a file in this repo. | gate: test/package.test.js
+- C3 [approved, must] Every function has a JSDoc block: what it does, then why when that is not obvious. | gate: review
+- C4 [approved, must] Refusals throw Refused(code, message); nothing else exits the process except the bin. | gate: review
+- C5 [approved, must] Text from files or users is escaped before it reaches a page. | gate: test/view.test.js
+- C6 [draft, aim] Functions under 60 lines and files under 1,000. | gate: review
+
+## T · Tests
+- T1 [approved, must] Tests use node:test against real git repos and a real SQLite file, not mocks. | gate: review
+- T2 [approved, must] Every test name cites the spec rows it proves. | gate: review
+- T3 [approved, must] The suite passes on Node 22, 24 and 26 before a release. | gate: release check
+
+## G · Git and the gate
+- G1 [approved, must] `npm run gate` (spec check and tests) passes before every push. | gate: pre-push hook
+- G2 [approved, must] Never bypass a hook. Never rewrite the main line, except to remove a secret. | gate: review
+- G3 [approved, must] This repo's hooks run the source in this checkout. | gate: .githooks
+
+## S · Security
+- S1 [approved, must] No secrets and no env files in git; test fixtures build fake secrets at run time. | gate: pre-commit secret scan
+- S2 [approved, must] The board never stores source code, only ids, commits and digests. | gate: review
diff --git a/SPEC.md b/SPEC.md
index 18af3cc3..1d23a261 100644
--- a/SPEC.md
+++ b/SPEC.md
@@ -41,6 +41,8 @@ Statuses: approved = decided · draft = proposed · pending = open question · f
- S3 [approved, must] Serves links name real ids and never cycle. | gate: test/spec.test.js
- S4 [approved, must] Approved must-rows name their gate. | gate: test/spec.test.js
- S5 [approved, must] A sign-off keeps the text it approved. Changing the row makes it stale. | gate: test/spec.test.js
+- S6 [approved, must] PRACTICE.md holds the house rules in the same row format; spec check lints both. | gate: test/practice.test.js
+- S7 [approved, must] `pullboard spec view` renders spec, questions, sign-offs and practice as one offline page. | gate: test/view.test.js
## C · Commits
- C1 [approved, must] Header: type(scope): subject [ids], 72 characters at most. | gate: test/hooks.test.js
@@ -54,6 +56,7 @@ Statuses: approved = decided · draft = proposed · pending = open question · f
## I · Init
- I1 [approved, must] One command sets up config, spec, agent instructions, hooks and board. | gate: test/e2e.test.js
- I2 [approved, must] Init is idempotent and never overwrites a file it did not write. | gate: test/e2e.test.js
+- I3 [approved, must] Init writes the standard PRACTICE.md and the role guides as Claude Code skills. | gate: test/e2e.test.js
## N · Next commands
- N1 [draft, must] `pullboard decide`: the person's queue of everything waiting on them.
@@ -61,7 +64,7 @@ Statuses: approved = decided · draft = proposed · pending = open question · f
- N3 [draft, must] `pullboard context <id>`: frozen bar, cited rows, gates, lane, verdicts, what still blocks it.
- N4 [draft, must] `pullboard ask add` stores the client's documents in ask/, hashed; rows can cite them.
- N5 [draft, must] `pullboard spec approve` and `spec answer` record who changed a row's status, and when.
-- N6 [draft, must] `pullboard prompt <role>` prints the role prompt, overridable per repo.
+- N6 [approved, must] `pullboard prompt <role>` prints the role guide, overridable per repo. | gate: test/practice.test.js
- N7 [draft, must] `pullboard plan` proposes lanes and items from the spec and the repo; --apply writes them.
- N8 [draft, must] `pullboard run` starts configured agent commands per lane and role, under budgets and stops.
- N9 [draft, aim] `pullboard report` renders spec coverage, verified items and receipts as one page.