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.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
docs: readme, the method and the roadmap
Corey Olsonce8cadefbcab
diff --git a/README.md b/README.mdnew file mode 100644index 00000000..8c510d6d--- /dev/null+++ b/README.md@@ -0,0 +1,137 @@+# pullboard++**Nothing ships until a second agent verifies it.**++A work board, lanes, a spec and git hooks that live in your repo, for teams of coding agents. Local-first: no account, no server, no network. One SQLite file inside `.git`, zero dependencies, Node 22.13 or newer.++```sh+npm i -D @pullboard/local+npx pullboard init+```++## Why++Coding agents write code faster than anyone can review it, and left alone they grade their own homework. An agent says "done, tests pass," and it isn't: the test got weaker, the commit was never made, or the bar moved after the work started. Two agents build the same thing; a third edits the files both depend on.++Pullboard makes "done" mean something:++- **The bar is frozen before the work starts.** The first claim freezes the item's criterion and the text of every spec row it cites. A verdict is checked against that text, never a newer one.+- **The gate is green at the exact commit.** Submit needs a clean tree, nothing untracked, and your gate passing at HEAD.+- **A different agent checks it.** The builder can never verify its own work. The verifier must have the submitted commit checked out, and records ACCEPT or REJECT with a reason code.+- **Rejected work comes back changed.** Resubmitting a rejected commit is refused.+- **Agents stay in their lanes.** Pre-commit refuses changes outside a lane's folders, moves and deletes included.+- **Every commit traces to the spec.** `feat` and `fix` commits cite the spec ids they serve, and the ids must exist.++## The method++1. **Client ask.** Start from what the person paying for it needs.+2. **Spec as lettered points.** Every requirement becomes one row with an id: `G1.2`, `K3`. Approved rows are the contract.+3. **Agents build against the spec,** one item at a time, each item citing its rows.+4. **Split the work into lanes.** Each lane owns folders; agents never collide on files.+5. **A second agent verifies,** against the criterion frozen at claim, at the submitted commit.+6. **A person drives.** They write and approve the spec, settle the open questions, sign off rows, and read the ledger.++The full guide is in [docs/method.md](docs/method.md).++## Quick start++```sh+npx pullboard init # pullboard.json, SPEC.md, AGENTS.md, git hooks, the board+```++Write requirements in `SPEC.md`, one row per line:++```markdown+## G · Goals+- G1 [approved, must] Same file twice is a no-op. | gate: idempotency test+- G2 [draft, aim] Show a diff when a month is restated. | serves: G1+```++Declare lanes and the gate in `pullboard.json`:++```json+{+ "gate": "npm test",+ "lanes": {+ "web": { "owns": ["apps/web/"], "specs": ["G0"], "starts": "now" },+ "pipeline": { "owns": ["apps/pipeline/", "packages/ingest/"], "specs": ["G1", "G2"] }+ },+ "shared": ["test/attacks/"]+}+```++The main checkout is the coordinator. Every other agent works in its own worktree and joins a lane:++```sh+pullboard add web "Build the upload page" --specs G1 --criterion "drop a file, see it listed"+git worktree add ../app-web -b web/upload && cd ../app-web+pullboard join web # joined as web-1+pullboard claim 1 # 2-hour lease; criterion frozen+# ... build, commit "feat(web): upload page [G1]" ...+pullboard submit 1 # clean tree + gate green at HEAD+```++Another agent, from the submitted commit:++```sh+pullboard verify 1 accept+pullboard verify 1 reject --reason TEST_FAILURE --note "upload of a 0-byte file crashes"+```++## Receipts++`pullboard ledger` prints what was built, by whom, verified by whom, at which commit:++```+1 verified by a second agent · 0 awaiting verification · 1 rejections along the way++| # | Lane | Item | Spec | Built by | Verified by | Commit | Merged |+| --- | --- | --- | --- | --- | --- | --- | --- |+| 1 | web | Build the upload page | G1 | web-1 | coordinator | d0cba867b919 | d0cba867b919 |+```++`pullboard log` shows every move in order: claims, submissions, rejections, refreezes, merges. Commit the ledger at the end of a build and the history is the proof.++## Commands++| Command | What it does |+| --- | --- |+| `init` | Sets up config, spec, agent instructions, hooks and the board. Safe to rerun. |+| `join <lane>` | Registers this worktree as the next agent in a lane. |+| `add <lane> <title>` | Adds an item. `--specs`, `--criterion`, `--parent` for child items. |+| `list [lane]`, `show <id>` | The board, and one item with its frozen criterion and verdicts. |+| `claim <id>`, `release <id>` | Take or renew a lease; hand it back. |+| `submit <id>` | Records the work at HEAD, after the gate passes. Alias: `done`. |+| `verify <id> accept\|reject` | A verdict, by anyone but the builder, from the submitted commit. |+| `shout <to> <text>`, `inbox` | Messages to a lane, an agent, or `all`. |+| `merged`, `withdraw`, `refreeze` | The coordinator's: where verified work landed, dropped items, a re-frozen bar. |+| `ledger`, `log [id]`, `status` | Receipts. |+| `spec check\|show\|unmet\|signoff` | Lints SPEC.md; a person signs off rows with the text they read. |+| `gate`, `hooks` | Runs the gate; reinstalls hooks after a fresh clone. |++Add `"prepare": "pullboard hooks"` to `package.json` so every clone gets the hooks on `npm install`.++## What lives where++| Path | What | In git? |+| --- | --- | --- |+| `pullboard.json` | Gate, lanes, commit rules | yes |+| `SPEC.md` | The requirements, one row per id | yes |+| `AGENTS.md`, `CLAUDE.md` | How agents work here; init adds its section | yes |+| `.githooks/` | pre-commit, commit-msg, pre-push | yes |+| `.pullboard/signoffs.jsonl` | A person's sign-offs, with the text they approved | yes |+| `.git/pullboard/board.sqlite` | The board: items, claims, verdicts, shouts, events | never |++## Limits, stated++- **Identity is the worktree.** On one machine that keeps honest agents honest; an agent could still edit the SQLite file. Hosted Pullboard issues each agent its own identity.+- **Hooks can be skipped** with `--no-verify`. Pre-push and the verifier are the backstop.+- **Conflicts are avoided, not resolved.** One holder per item and lanes by folder keep agents apart; a rebase that conflicts goes back to its builder.++## Local and hosted++This package is complete on one machine and free. [Pullboard](https://pullboard.dev) is the hosted layer for teams across machines: issued identities, a neutral record, dashboards and the deploy axis. See [ROADMAP.md](ROADMAP.md).++## License++MITdiff --git a/ROADMAP.md b/ROADMAP.mdnew file mode 100644index 00000000..23d5fedd--- /dev/null+++ b/ROADMAP.md@@ -0,0 +1,60 @@+# Roadmap++What exists, what comes next, and why. Each step keeps the core rule: nothing ships until a second agent verifies it.++## Now: 0.5, the local core++A board in `.git`, lanes, a spec, hooks and a gate, with Pullboard's protocol rules: criterion frozen at claim, builder never verifies, typed verdicts bound to the submitted commit, rejected work back only at a new head. One machine, no account, no dependencies.++## Next: 0.6, sync over git++Today the board lives in one clone's `.git`. Teams on several machines need it to travel, and git already moves data between machines.++- **Board events on a ref.** Every move becomes an empty commit on `refs/pullboard/events`, synced with plain `git push` and `git fetch`. Git is the source of truth; the SQLite file becomes a cache rebuilt from the ref, with a test that a full rebuild equals the incremental one.+- **Claims as compare-and-swap.** One ref per claim (`refs/pullboard/claims/<id>`), pushed with `--force-with-lease=<ref>:<expected>`, so the remote decides who holds an item atomically, like the local transaction does today.+- **Signed verdicts.** Each agent signs its verdict commits with its own key, so "the builder never verifies" holds across machines, not only by worktree path.+- **No clocks in the rules.** Order comes from the ref, never from a timestamp a writer controls.++## Then: 0.7, pushes drive the board++Agents stop calling submit by hand: the board moves when the code moves.++- **The change as a first-class object.** Item, branch, base and head commits, preview, verdicts, promoted or not: one record, the unit a reviewer looks for.+- **Push triggers submit and verification.** A push to an item's branch submits it (gate green) and queues it for a verifier. Locally a hook; hosted, a webhook.+- **Re-verify when the main line moves, instead of racing.** If trunk moved after a verdict, the change is rebased and verified again before it lands (STALE_HEAD). A rebase that conflicts goes back to its builder with the reason.+- **Code by pointer.** Shouts and verdicts reference `{repo, branch, sha, path, lines}`; the snippet is rendered where the code lives, and a reference to a commit that does not exist is refused.+- **Notes ship with the code.** The agent's notes for a change live on its branch, so the why stays in the repo, next to what it explains.++## Then: 0.8, verify before deploy++- **Every branch gets a preview,** and the submission records its URL (Cloudflare Workers Previews, Vercel, Netlify, or a local server). The verifier checks the running app, not only the tests.+- **ACCEPT promotes.** The verified commit merges to the production branch and the host deploys it: Built, Verified, Deployed, in that order.+- **Deploy receipts.** A criterion can name a target, and the receipt binds commit, host, service and boot time, so "merged" is never mistaken for "running".++## Hosted Pullboard (pullboard.dev)++The paid layer, for teams across machines and organizations:++- `pullboard sync` mirrors a local board, both ways.+- **Issued identities per agent:** a verdict binds who gave it, not a path. Independent verification is only as good as the identity behind it.+- The spec register in a UI, dashboards, and a neutral record a third party can trust.+- Free for three boards; unlimited on paid plans.++## A Cloudflare track++Cloudflare's agent-era Git platform (Artifacts, Workers, Previews) supplies the Git side; Pullboard stays the coordinator and never holds source.++- Artifacts is the Git host; a push event runs a Worker that submits the change to the board.+- Each branch's Workers Preview is the verification target; ACCEPT promotes and Workers Builds deploys.+- Diffs render on demand in the Worker; none are stored by the board.++## Also planned++- **Item kinds.** `work | mutex | condition`, declared and immutable, so a lock or a monitor's signal is never held to work's obligations.+- **Context pack.** `pullboard context <id>`: one deterministic view of an item (frozen criterion, submitted head, verdict trail, binding rules, and the named gates still blocking it), so no agent rebuilds it from chat.+- **Rules that fail builds.** A spec or doctrine row names the check that enforces it, and the gate asserts that check exists.++## Not planned++- **Several agents racing the same task.** Exclusive claims are the point: at many agents, wasted work is the main cost. Spend a second attempt only where the first was rejected.+- **A diff or merge UI.** Git and the host already do that well.diff --git a/docs/method.md b/docs/method.mdnew file mode 100644index 00000000..e71ab026--- /dev/null+++ b/docs/method.md@@ -0,0 +1,70 @@+# The Pullboard method++A way to run a team of coding agents on one codebase so that the work they report as done is done. It fits on one page because it is mostly one rule.++> **Nothing ships until a second agent turns its key.**++The rule is old. Banks call it maker-checker, auditors the four-eyes principle, and missile crews the two-person rule: the person who does the work is never the one who signs it off. What is new is applying it to agents, which write faster than any person can read and, left alone, mark their own work as passing.++## Roles++- **The person** decides. They turn the client's ask into the spec, approve rows, settle open questions, and sign off what is met. Their judgment is the scarce input; the method exists to spend it where it counts.+- **The coordinator** is the agent in the main checkout. It turns spec rows into items, verifies lane work, merges, and owns every path no lane owns.+- **Lane agents** build. Each works in its own worktree, owns a set of folders, and claims one item at a time.++## The six steps++### 1. Start from the ask++Write down what the client asked for in their words before deciding anything. Every later argument about scope ends here.++### 2. Turn it into lettered points++Every requirement becomes one row with an id, a status and the check that proves it:++```+- G1.2 [approved, must] Same file twice is a no-op. | gate: idempotency test+```++- **One row, one line, one id.** Ids are never reused, so a commit that cites `G1.2` means the same thing a year later.+- **Prefixes are tracks.** `G` for the client's goals, `K` for constraints, `S` for security, whatever the product needs. Letters group; numbers order.+- **Status says how settled it is.** approved means decided, draft means proposed, pending means an open question, fact means true today, retired means spent.+- **Every approved must-row names its gate:** the test or check that will prove it. A requirement nobody can check is a wish.++### 3. Build against the spec++Each item cites the rows it serves. The first claim freezes the item's criterion and the text of those rows: the bar is fixed before the work starts and cannot move under the builder or the verifier. If the person changes a row, the coordinator refreezes the item in the open and the work is claimed again.++### 4. Split the work into lanes++A lane owns folders. Agents in different lanes never edit the same files, so they never collide; a change outside your lane is refused at commit, and you shout the owner instead. Shared contracts (types, schema, the lockfile) belong to the coordinator, who changes them on the main line for everyone.++### 5. A second agent verifies++Submitting needs a clean tree and the gate green at the exact commit. Then a different agent checks out that commit and judges it against the frozen criterion:++- **ACCEPT** only when the criterion is met.+- **REJECT** names what failed (TEST_FAILURE, BEHAVIOR_MISMATCH, INSUFFICIENT_EVIDENCE, STALE_HEAD, OTHER) with a note the builder can act on. The item reopens, and the same commit can never be submitted again.++Prefer evidence that would fail if the work were wrong: revert the fix and watch the test go red. A test that passes either way proves nothing.++### 6. A person drives++The person reads the ledger, not every diff. They decide pending rows, sign off approved ones against the text they read (a sign-off goes stale if the row changes), and move the bar only in the open.++## Rules++1. The builder never verifies its own work.+2. The criterion freezes at first claim.+3. A verdict binds the submitted commit and the frozen criterion.+4. Done means the gate is green at that commit, on a clean tree.+5. Rejected work comes back at a new head.+6. Lanes own folders; changes outside your lane go through the owner.+7. Commits cite the spec rows they serve.+8. One live claim per agent; a claim is a lease.+9. The bar moves only in the open: refreeze, logged.+10. Never bypass a hook or edit the board's database.++## What it does not do++It does not review code for you, resolve merge conflicts, or decide what to build. It makes sure that what agents report as done was checked by someone who did not build it, against a bar that did not move, at the commit that ships, and it leaves a record anyone can read.