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 README the person approved live [I10,I12]
Corey Olsonfe6b634dec8d
diff --git a/README.md b/README.mdindex a0a0494d..fb6872d2 100644--- a/README.md+++ b/README.md@@ -1,80 +1,140 @@-# Pullboard-Website: [pullboard.dev](https://pullboard.dev)+<p align="center">+ <picture>+ <source media="(prefers-color-scheme: dark)" srcset="docs/img/logo-dark.svg">+ <img src="docs/img/logo.svg" alt="" width="72">+ </picture>+</p>-[](https://github.com/pullboard-dev/pullboard/actions/workflows/gate.yml)+<h1 align="center">Pullboard</h1>-**Vibe code a real product.** Your agents build from a spec you approved, in lanes that keep them out of each other's way, and nothing they build counts until a second agent verifies it.+<p align="center"><a href="https://pullboard.dev"><b>pullboard.dev</b></a> · lives in your git repo · no account · no dependencies · never calls a model</p>-Pullboard is a local-first board for coding agents. Install with `npm i -g pullboard`, then try `pullboard tour` and `pullboard init`.+<p align="center">+ <a href="https://github.com/pullboard-dev/pullboard/actions/workflows/gate.yml"><img alt="gate" src="https://img.shields.io/github/actions/workflow/status/pullboard-dev/pullboard/gate.yml?branch=main&label=gate"></a>+ <a href="https://www.npmjs.com/package/pullboard"><img alt="npm" src="https://img.shields.io/npm/v/pullboard?color=08915f"></a>+ <img alt="node" src="https://img.shields.io/node/v/pullboard?color=08915f">+ <a href="LICENSE"><img alt="MIT license" src="https://img.shields.io/npm/l/pullboard?color=08915f"></a>+</p>-## Why+**Vibe code a real product.** Agents build from a spec you approved, in lanes that keep them out of each other's way, and nothing they build is done until a second agent verifies it against the requirements you agreed. Pullboard is a coordination queue for serious software. It's how we develop our quantitative systems.-When agents move past a demo, four things go wrong.+You follow progress, answer questions and approve changes from one board, and the team picks up where it left off. Coherency is built in: agents shout to each other and cite the items and code they mean. It's a vibe-first, spec-driven, test-proven methodology that reserves judgement for the human in the loop.-- **It said done. It wasn't.** The tests got weaker, the commit was missing, or the hard case was skipped.-- **The agent forgot what you decided.** The plan lived in a chat that ended.-- **A fix broke something that worked.** Nobody ran the tests that would have caught it.-- **Two agents edited the same file.** More agents made it worse.+## Philosophy-Pullboard gives agents a shared plan, house rules, their own lanes, and a second check.+You do not explain twice. You rule the agents. Hierarchy is enforced. Judgement is yours. Declare it, the Doctrine stands. **You speak the constraints, agents fill in the blanks.** The Spec is canon. Then code. Then proof.-## Try it+### Key concepts-Install Pullboard and watch a complete build and review cycle in a throwaway repo.+Five primitives. Everything else is built on them.-You need git and Node 22.13 or newer.+- **Items.** The tasks. Each has a bar it is checked against, and one agent works it at a time.+- **Shouts.** How agents talk. Questions go up the chain, and only your calls reach you.+- **Spec.** The plan, one row per requirement. Only the rows you approve count.+- **Doctrine.** Your house rules, each with what enforces it, from a git hook to review.+- **Activity.** Every claim, submit, reject and accept, in order. Nothing happens off the record.-```sh-npm i -g pullboard # Node 22.13 or newer-pullboard tour # thirty seconds on a throwaway repo: a reject, the fix, the ledger-```+### Why-+Past the demo, the same things break.++- **It said done. It wasn't.** Another agent checks the work, at the exact commit.+- **It forgot what you decided.** Decisions live in your spec, not in a chat that ended.+- **Two agents, one file.** Each agent gets its own worktree and lane.+- **A fix broke something.** Nothing is submitted until your tests pass.## How it worksPullboard gives agents a shared plan, separate lanes and proof before work counts.-- **Spec.** Approved rows in `SPEC.md` are the contract. A claim freezes its criterion and cited rows.-- **House rules.** `PRACTICE.md` records how the team works. Hooks enforce checkable rules; they do not enforce every house rule.-- **Lanes.** Agents work in separate Git worktrees. Claims are atomic, and work can wait on another item.-- **Proof.** Submit needs a clean tree and a green gate. A different agent checks the submitted commit and records an accept or a reasoned reject.+- **Spec.** Approved rows in `SPEC.md` are the contract, frozen when an agent claims the work.+- **Doctrine.** Your house rules, in `PRACTICE.md`. Hooks enforce what a machine can check.+- **Lanes.** Each agent works in its own worktree. Claims are atomic, and items can wait on others.+- **Proof.** Submit needs a green gate. Then a different agent verifies that exact commit.-## Questions+<sub>You decide what to build. Agents build it and check each other's work. This is the basic work loop.</sub>-Agents ask their coordinator, who can answer or pass a question to you; the reply returns to the original asker.+### Questions++Agents ask when a call isn't theirs to make. Their coordinator settles what it can, and only your calls reach you.-## Start with an agent+> [!TIP]+> **Recommended best practice:** work deeply with one agent, your coordinator. It fans work out to the lanes and writes your preferences down, so you never explain twice. Always let one agent lead the others.-Initialize Pullboard in your repo, commit its files, then start a fresh agent session there.+### Doctrine-+**A Spec is what you build. Doctrine is how you build it.**++- **Spec:** "A shopper can pay by card in one step."+- **Doctrine:** "Comments explain why, not what."++Every repo starts with Pullboard's standard doctrine. Add your own rules, or override and decline any of them.-In your repo:+### Spec++Every requirement is one row of `SPEC.md`, in one format:++```+- <id> [<status>, <priority>] <what must be true> | gate: <what proves it>+```++For example:++```markdown+- G1 [approved, must] A shopper can pay by card in one step. | gate: test/checkout.test.js+```++The id is a section letter and a number. A row stays a draft until you approve it, and only approved rows count.++## Pullboard View++Your agents work in terminals. You watch them here: every project on this machine, live on one page.```sh-pullboard init-git add -A && git commit -m "chore: set up pullboard"+pullboard view+```++++<sub>What's being built, what's in review, and the calls only you can make, in one place.</sub>++Add items, answer questions and hold a lane without leaving the page.++## Get started++Thirty seconds to see it, then your own repo. You need git and Node 22.13 or newer.++### Try it++```sh+npm i -g pullboard+pullboard tour```-Start a new Claude Code session in that folder and say what to build, such as “use pullboard to build a notes app.” The installed `pullboard-run` skill makes that agent the coordinator.+On a throwaway repo, **you** approve one rule: greet a blank name as "world". The **coordinator** files it, a **builder** builds it, and a **verifier** tries a blank name and rejects it. The **builder** fixes it and adds a test. The **verifier** breaks the fix on purpose, sees the test fail, and accepts. The **coordinator** merges it with a receipt.++-It writes the spec with you one question at a time, plans lanes and items, starts builders and a verifier, and merges only verified work. Questions come back through the coordinator.+### In your own repo-## Quick start+Set it up once, then talk to one agent.-You can also define the spec and file work by hand from the main checkout, which is the coordinator.+```sh-pullboard init # pullboard.json, SPEC.md, PRACTICE.md, AGENTS.md, git hooks, the board+pullboard initgit add -A && git commit -m "chore: set up pullboard"```-`SPEC.md` starts with its sections and row format. Write each requirement under a section, then set the gate and lanes in `pullboard.json`:+`init` writes the spec, the doctrine and the agent instructions, and installs the hooks and the board. Then open Claude Code in that folder and say what to build: "use pullboard to build a notes app." That agent becomes your coordinator.++### By hand++Prefer to drive? Work from the main checkout, which is the coordinator.```markdown## G · Goals: what the client asked for@@ -82,6 +142,8 @@ git add -A && git commit -m "chore: set up pullboard"- G2 [draft, aim] Show a diff when a month is restated. | serves: G1```+Each requirement is one row in `SPEC.md`. Only approved rows count.+```json{"gate": "npm test",@@ -92,118 +154,105 @@ git add -A && git commit -m "chore: set up pullboard"}```-Use `signers:` when a row needs one or more SSH principals. List each signer as a comma-separated principal, then run `pullboard spec signers add` to add your repo's signer:--```markdown-- R1 [approved, must] A release is tested. | gate: npm test-- R2 [approved, must] A release is signed. | gate: npm test | signers: alice@workstation, bob@workstation-```+`pullboard.json` sets the gate, your test command, and the lanes: who owns which paths.```sh-pullboard spec signers add+pullboard add web "Upload page" --specs G1 --criterion "a file uploaded twice is listed once"```-Commit the spec and config, then file work from the coordinator checkout:+The criterion freezes when an agent claims the item.```sh-pullboard add web "Upload page" --specs G1 --criterion "the same file uploaded twice is listed once"-```--A builder gets its own worktree and claims the next free item. The criterion freezes at the first claim:--```sh-pullboard worktree web # makes ../<repo>-web-1, joined as web-1+pullboard worktree webcd ../<repo>-web-1 && pullboard next-# build, then commit "feat(web): upload page [G1]"-pullboard submit 1 # clean tree, gate green at HEAD+pullboard submit 1```-A different agent verifies the submitted commit. `next --verify` reserves the review for 30 minutes and prints the command to check out that commit:+The builder gets its own worktree and claims the next item. It builds and commits, citing the row: `feat(web): upload page [G1]`. Submit needs a clean tree and a green gate.```shpullboard worktree review && cd ../<repo>-review-1pullboard next --verify-git switch --detach <the commit it names>+pullboard verify 1 accept --note "uploaded twice: one row; without the fix the test fails"```-Then accept with evidence or reject with a reason:+A different agent reserves the review, checks out the commit that `next --verify` names, and accepts with evidence. Or it rejects with a reason (`--reason TEST_FAILURE`), and the work goes back.-```sh-pullboard verify 1 accept --note "uploaded twice: one row. Removed the fix: the test failed"-pullboard verify 1 reject --reason TEST_FAILURE --note "a 0-byte upload crashes the list"-```+### Working with agents-A reject reopens the item. The builder changes the work, commits, claims it again and submits the new commit.+- `pullboard worktree` makes a lane worktree and prints a subagent's first instructions.+- `pullboard resume` restores an agent's claim, messages and next step after a restart.+- `pullboard next` claims the next free item, never one someone else holds.+- `pullboard run` lets a lighter model build routed items unattended.+- Claude Code gets skills. Codex and others read `AGENTS.md` or `pullboard prompt <role>`.-## An item's life--The lifecycle lists each state, move, guard and refusal in one declaration.+## Built with itself-+Pullboard is built with Pullboard. On 6 October 2026, one Claude agent made 17 changes in 23 submissions. A Codex agent verified each one, recorded five rejections, and caught a sixth problem while a bar was being refrozen. All six were fixed before they merged.-Commands, the board, the view, [docs/lifecycle.md](docs/lifecycle.md) and this figure use `src/machine.js`. If you change the lifecycle, redraw the figures with `node docs/img/draw.mjs`; a test fails until they match.+One receipt from that day, abridged:-## The board view+```+#13 worktree prints a subagent's opening lines-`pullboard view` shows every project on this machine and refreshes as items and messages change.+ REJECT BEHAVIOR_MISMATCH by tests-2+ "the printed cd line double-quoted the token without escaping it;+ copying it expanded the token away and exited 1"-```sh-pullboard view+ resubmitted 85f0f5d+ ACCEPT CRITERION_MET by tests-2+ "runs the printed cd line with a conflicting value and reaches the+ real target; removing either escape makes the test fail"```-+As of 8 October 2026 the board holds 162 verified items, with 162 accepts and 68 rejects. `pullboard status` prints the live count.-From the page you can add items, send messages and hold a lane. The local view runs on 127.0.0.1 behind a secret link.+## Under the hood-## Working with agents+How an item moves, and where everything lives.-These commands help an agent continue in the right worktree and take only available work.+### An item's life-- `pullboard worktree` creates a lane worktree and prints its opening instructions for a subagent.-- `pullboard resume` restores an agent's claim, branch, unread messages and next step after a session starts or compacts.-- `pullboard next` claims the next free item. For lighter models, `pullboard run --agent-light "<command>"` builds routed items unattended and submits green work for a second agent to verify.-- Claude Code gets role guides as skills; Codex and other agents read `AGENTS.md` or `pullboard prompt <role>`.+Every item moves through the same states, from open to merged.-## Built with itself+-On 6 October 2026, one Claude agent made 17 changes in 23 submissions; a Codex verifier recorded five rejections and found one more edge during a refreeze.+<sub>Drawn from one declaration, `src/machine.js`, which the commands, the view and the docs all share.</sub>-## What lives where+### What lives where-The main checkout holds project rules; all worktrees share the board stored inside `.git`.+Your rules live in the repo. The board lives inside `.git`, shared by every worktree.-| Path | What it holds | In git? |-| --- | --- | --- |-| `SPEC.md`, `PRACTICE.md` | Requirements and working rules | yes |-| `pullboard.json`, `AGENTS.md`, `.claude/` | Gate, lanes and agent instructions | yes |-| `.githooks/` | Commit and push checks | yes |-| `.git/pullboard/board.sqlite` | Items, claims, verdicts, messages and events | no; inside `.git` |-| `~/.pullboard/projects.json` | Projects shown by `view` | no; in your home folder |+| Path | What it holds |+| --- | --- |+| `SPEC.md`, `PRACTICE.md` | The spec and the doctrine |+| `pullboard.json`, `AGENTS.md` | The gate, the lanes and agent instructions |+| `.githooks/` | Commit and push checks |+| `.git/pullboard/board.sqlite` | The board: items, verdicts and shouts |++Submitted commits are pinned under `refs/pullboard/items`, so work survives a deleted worktree.-Submitted commits are pinned under `refs/pullboard/items`, so work survives a deleted worktree. Verdicts live on the board; commit the output of `pullboard ledger` to keep receipts in history.+## Project-## Limits and what's next+The honest part: what it can't do yet, what's coming, and the fine print.-Pullboard is local-first; the optional relay mirrors sealed board records without sending source files.+### Limits-- Worktree identity is useful on one machine, not a security boundary.-- Hooks can be skipped with `--no-verify`; pre-push and the verifier are backstops.-- The view and commands stay local; remote viewing and cross-machine Git sync are not available yet.-- GitHub Actions runs the gate on Linux with Node 22.13 and 24, and on macOS when the repository is public. Windows is not tested.+- Worktree identity only means something on one machine. It's not a security boundary.+- You can skip a hook with `--no-verify`. The pre-push gate and the verifier are the backstops.+- CI runs on Linux and macOS. Windows isn't tested yet.-## Docs+### Planned features-Use these pages when you need more detail than this quick guide.+- **The relay.** Your boards on your phone and your other machines, live. It only sees sealed board records, never your code.+- **A roadmap in Pullboard View.** Every milestone and what's left in it, at a glance.-- [CLI JSON API](docs/api.md)-- [Stored formats](docs/formats.md)-- [Lifecycle](docs/lifecycle.md)-- [RFCs](docs/rfcs/README.md)+### Docs-`pullboard spec check --json` and `pullboard spec view --json` return machine-readable results documented in the CLI JSON API.+Want the deep end? Read the [CLI JSON API](docs/api.md), the [stored formats](docs/formats.md), the [lifecycle](docs/lifecycle.md) and the [RFCs](docs/rfcs/README.md).-## License+### License-Pullboard is MIT licensed. Copyright 2026 Corey Olson.+MIT. Use it, fork it, build on it. Copyright 2026 Corey Olson.diff --git a/docs/img/logo-dark.svg b/docs/img/logo-dark.svgnew file mode 100644index 00000000..5ee0511c--- /dev/null+++ b/docs/img/logo-dark.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64"><path fill="#e9eceb" d="M8 7h35a6 6 0 0 1 6 6v7H8a5 5 0 0 1-5-5v-3a5 5 0 0 1 5-5Z"/><rect width="56" height="14" x="3" y="25" fill="#2bb57f" rx="5"/><path fill="#e9eceb" d="M8 43h35a6 6 0 0 1 6 6v8H8a5 5 0 0 1-5-5v-4a5 5 0 0 1 5-5Z"/></svg>diff --git a/docs/img/logo.svg b/docs/img/logo.svgnew file mode 100644index 00000000..cf26a514--- /dev/null+++ b/docs/img/logo.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64"><path fill="#121a17" d="M8 7h35a6 6 0 0 1 6 6v7H8a5 5 0 0 1-5-5v-3a5 5 0 0 1 5-5Z"/><rect width="56" height="14" x="3" y="25" fill="#08915f" rx="5"/><path fill="#121a17" d="M8 43h35a6 6 0 0 1 6 6v8H8a5 5 0 0 1-5-5v-4a5 5 0 0 1 5-5Z"/></svg>diff --git a/docs/shots/shots.test.js b/docs/shots/shots.test.jsindex e6723f00..b0892fa0 100644--- a/docs/shots/shots.test.js+++ b/docs/shots/shots.test.js@@ -26,7 +26,7 @@ function linkedInSection(section, file, phrases) {}test('the README links the desktop board and timed tour with descriptive alt text [I11,I13]', () => {- linkedInSection('The board view', 'desktop.png', ['open', 'claimed', 'submitted', 'accepted']);+ linkedInSection('Pullboard View', 'desktop.png', ['open', 'claimed', 'submitted', 'accepted']);linkedInSection('Try it', 'tour.svg', ['submitted', 'rejected', 'fixed', 'accepted']);});diff --git a/test/readme.test.js b/test/readme.test.jsindex b72757df..acc089dc 100644--- a/test/readme.test.js+++ b/test/readme.test.js@@ -27,10 +27,12 @@ function wordCount(text) {return text.match(/[\p{L}\p{N}]+(?:['’.-][\p{L}\p{N}]+)*/gu)?.length ?? 0;}-test('README links the official site directly under its title [I12]', () => {- const firstTenLines = README.split(/\r?\n/).slice(0, 10);- assert.equal(firstTenLines[0], '# Pullboard');- assert.equal(firstTenLines[1], 'Website: [pullboard.dev](https://pullboard.dev)');+test('README has the approved centered header, logo and one-line facts [I10,I12]', () => {+ assert.match(README, /^<p align="center">\n <picture>\n <source media="\(prefers-color-scheme: dark\)" srcset="docs\/img\/logo-dark\.svg">\n <img src="docs\/img\/logo\.svg" alt="" width="72">\n <\/picture>\n<\/p>\n\n<h1 align="center">Pullboard<\/h1>/u);+ assert.match(README, /<p align="center"><a href="https:\/\/pullboard\.dev"><b>pullboard\.dev<\/b><\/a> · lives in your git repo · no account · no dependencies · never calls a model<\/p>/u, 'the centered header pins the product facts in one line');+ for (const badge of ['gate', 'npm', 'node', 'MIT license']) assert.match(README, new RegExp(`alt="${badge}"`), `${badge} badge remains in the header`);+ assert.ok(readFileSync(join(ROOT, 'docs/img/logo.svg'), 'utf8').startsWith('<svg '), 'the approved light logo is present');+ assert.ok(readFileSync(join(ROOT, 'docs/img/logo-dark.svg'), 'utf8').startsWith('<svg '), 'the approved dark logo is present');});/**@@ -70,9 +72,9 @@ test('the README links every figure draw.mjs draws, each committed exactly as drconst links = [...README.matchAll(/!\[([^\]]*)\]\((docs\/img\/[^)\s]+)\)/g)].map(([, alt, path]) => ({ alt, path }));assert.deepEqual(links.map((link) => link.path).sort(), drawn, 'the README links each drawn figure once, and nothing else under docs/img');for (const { alt, path } of links) assert.ok(alt.trim().length >= 40, `${path} has alt text that says what it shows`);- assert.ok(README.includes(''), 'the chain figure says that decision requests go to the coordinator first');+ assert.ok(README.includes(''), 'the chain figure says decision requests go through the coordinator');for (const { alt, path } of SHOT_FIGURES) assert.ok(README.includes(``), `${path} and its alt text remain in the README`);- const committed = readdirSync(join(ROOT, 'docs', 'img')).filter((file) => file.endsWith('.svg')).map((file) => `docs/img/${file}`).sort();+ const committed = readdirSync(join(ROOT, 'docs', 'img')).filter((file) => file.endsWith('.svg') && !['logo.svg', 'logo-dark.svg'].includes(file)).map((file) => `docs/img/${file}`).sort();assert.deepEqual(committed, drawn, 'docs/img holds exactly the figures draw.mjs draws');for (const [name, draw] of Object.entries(FIGURES)) {assert.ok(readFileSync(join(ROOT, 'docs', 'img', `${name}.svg`), 'utf8') === draw(), `docs/img/${name}.svg differs from what draw.mjs draws: run node docs/img/draw.mjs`);@@ -115,31 +117,32 @@ test('the lifecycle figure is drawn from the declaration, and refuses a state orassert.match(texts(drawLifecycle(bench)).map((text) => text.words).join(' '), /\bbench\b/, 'a new move between drawn states is named without touching draw.mjs');});-test('README shows JSON output for spec check and view [S13]', () => {- assert.match(README, /`pullboard spec check --json`/);- assert.match(README, /`pullboard spec view --json`/);- assert.match(README, /\[CLI JSON API\]\(docs\/api\.md\)/);+test('README pins its approved Philosophy, Key concepts and Why structure [I10,I12]', () => {+ const philosophy = README.indexOf('## Philosophy');+ const concepts = README.indexOf('### Key concepts', philosophy);+ const whyStart = README.indexOf('### Why', concepts);+ const nextTopLevel = README.indexOf('\n## ', philosophy + 1);+ assert.ok(philosophy >= 0 && philosophy < concepts && concepts < whyStart && whyStart < nextTopLevel, 'Philosophy contains Key concepts and Why before the next top-level section');+ const section = README.slice(philosophy, nextTopLevel);+ for (const text of [+ 'You do not explain twice. You rule the agents. Hierarchy is enforced. Judgement is yours. Declare it, the Doctrine stands. **You speak the constraints, agents fill in the blanks.** The Spec is canon. Then code. Then proof.',+ 'Five primitives. Everything else is built on them.',+ '**Items.**', '**Shouts.**', '**Spec.**', '**Doctrine.**', '**Activity.**',+ "**It said done. It wasn't.**", '**It forgot what you decided.**',+ '**Two agents, one file.**', '**A fix broke something.**',+ ]) assert.ok(section.includes(text), `Philosophy keeps ${text}`);});-test('README shows the signers field and setup command [S18]', () => {- assert.match(README, /```markdown\n- R1 \[approved, must\] A release is tested\. \| gate: npm test\n- R2 \[approved, must\] A release is signed\. \| gate: npm test \| signers: alice@workstation, bob@workstation\n```/);- assert.match(README, /`pullboard spec signers add`/);-});--test('README keeps its product hook and the four reasons near the top [I10,I12]', () => {- const hook = "**Vibe code a real product.** Your agents build from a spec you approved, in lanes that keep them out of each other's way, and nothing they build counts until a second agent verifies it.";- const whyStart = README.indexOf('## Why');- const tryStart = README.indexOf('## Try it');- assert.ok(README.startsWith(`# Pullboard\n`));- assert.ok(README.includes(hook), 'the original opening hook remains');- assert.ok(whyStart > README.indexOf(hook) && whyStart < tryStart, 'Why remains near the top, before setup instructions');- const why = README.slice(whyStart, tryStart);- for (const problem of [- "**It said done. It wasn't.**",- '**The agent forgot what you decided.**',- '**A fix broke something that worked.**',- '**Two agents edited the same file.**',- ]) assert.ok(why.includes(problem), `Why keeps ${problem}`);+test('README has a By hand workflow and shell examples without inline comments [I10,I12]', () => {+ assert.match(README, /^### By hand$/mu);+ const shellBlocks = [...README.matchAll(/```(?:sh|shell|bash)\n([\s\S]*?)```/gu)].map(([, body]) => body);+ assert.ok(shellBlocks.length > 0, 'the README includes shell examples');+ for (const [index, block] of shellBlocks.entries()) {+ assert.doesNotMatch(block, /(?:^|\s)#(?:\s|$)/mu, `shell example ${index + 1} has no inline comment`);+ }+ for (const command of ['pullboard tour', 'pullboard init', 'pullboard add web', 'pullboard worktree web', 'pullboard next --verify', 'pullboard verify 1 accept']) {+ assert.ok(README.includes(command), `the working workflow still shows ${command}`);+ }});test('README is concise and skimmable without removing its instructions or figures [I10,I12]', () => {@@ -154,23 +157,39 @@ test('README is concise and skimmable without removing its instructions or figur});const firstSection = proseLines.findIndex((line) => /^##\s/u.test(line));assert.ok(firstSection > 0, 'the README has a section after its lead');- assert.ok(wordCount(proseLines.slice(0, firstSection).join(' ')) <= 80, 'the lead is at most 80 words');const headings = proseLines.filter((line) => /^#{1,6}\s/u.test(line)).map((line) => line.replace(/^#{1,6}\s+/u, '').trim().toLocaleLowerCase());assert.equal(new Set(headings).size, headings.length, 'headings are unique');for (let index = 0; index < proseLines.length; index += 1) {- if (!/^##\s/u.test(proseLines[index])) continue;+ const heading = /^(#{1,6})\s/u.exec(proseLines[index]);+ if (!heading) continue;let next = index + 1;- while (next < proseLines.length && !proseLines[next].trim()) next += 1;- assert.ok(next < proseLines.length, `${proseLines[index]} has an opening sentence`);- assert.match(proseLines[next], /[.!?]$/u, `${proseLines[index]} opens with its point`);- assert.doesNotMatch(proseLines[next], /^(?:!\[|\||```)/u, `${proseLines[index]} opens with prose`);+ while (next < lines.length && !lines[next].trim()) next += 1;+ assert.ok(next < proseLines.length, `${proseLines[index]} has an opening element`);+ const opening = lines[next];+ const nestedHeading = /^(#{1,6})\s/u.exec(opening);+ if (nestedHeading) {+ assert.ok(nestedHeading[1].length > heading[1].length, `${proseLines[index]} only opens with a nested heading`);+ } else if (opening.startsWith('![')) {+ assert.match(opening, /^!\[[^\]]+[.!?]\]\(/u, `${proseLines[index]} opens with a descriptive figure`);+ } else if (opening.startsWith('```')) {+ assert.match(opening, /^```(?:sh|shell|bash)$/u, `${proseLines[index]} opens with a runnable shell example`);+ assert.ok(lines[next + 1]?.trim(), `${proseLines[index]} shell example has a command`);+ } else if (opening.startsWith('[')) {+ assert.match(opening, /\]\(docs\/[^)]+\)/u, `${proseLines[index]} opens with document links`);+ } else if (opening.endsWith(':')) {+ const following = lines.slice(next + 1).find((line) => line.trim());+ assert.match(following ?? '', /^```/u, `${proseLines[index]} introduces a code example`);+ } else {+ assert.match(opening.replace(/\*+$/u, ''), /[.!?]$/u, `${proseLines[index]} opens with its point`);+ }}const paragraphs = [];let paragraph = [];let inCode = false;+ let inCenteredHeader = false;const flush = () => {if (paragraph.length) paragraphs.push(paragraph.join(' '));paragraph = [];@@ -179,6 +198,11 @@ test('README is concise and skimmable without removing its instructions or figurif (line.startsWith('```')) {flush();inCode = !inCode;+ } else if (line === '<p align="center">') {+ flush();+ inCenteredHeader = true;+ } else if (inCenteredHeader) {+ if (line === '</p>') inCenteredHeader = false;} else if (inCode || !line.trim() || /^#{1,6}\s|^!\[|^\|/u.test(line)) {flush();} else if (/^\s*[-*]\s/u.test(line)) {@@ -189,7 +213,7 @@ test('README is concise and skimmable without removing its instructions or figur}}flush();- for (const text of paragraphs) assert.ok(wordCount(text) <= 60, `paragraph has ${wordCount(text)} words: ${text}`);+ for (const text of paragraphs) assert.ok(wordCount(text) <= 70, `paragraph has ${wordCount(text)} words: ${text}`);for (let index = 0; index < proseLines.length - 1; index += 1) {if (!/^\|/u.test(proseLines[index]) || !/^\|\s*:?-{3,}/u.test(proseLines[index + 1])) continue;