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
feat(blueprint): bundle every gallery blueprint [S1]
Corey Olsona6a9bf937e21
diff --git a/src/blueprints/data-pipeline.json b/src/blueprints/data-pipeline.jsonnew file mode 100644index 00000000..13ac6196--- /dev/null+++ b/src/blueprints/data-pipeline.json@@ -0,0 +1,18 @@+{+ "blueprint": 1,+ "name": "data-pipeline",+ "title": "Data pipeline",+ "version": 1,+ "kind": "infrastructure",+ "by": "Pullboard",+ "summary": "Every table has an owner, a schema check and a freshness check.",+ "prefix": "DP",+ "rules": [+ { "key": "DP1", "text": "A schema change ships with its migration.", "why": "a schema that changes without its migration breaks every job that reads the old shape." },+ { "key": "DP2", "text": "A failed job names the rows and the reason.", "why": "a failure that names no rows means rerunning everything to find what broke." }+ ],+ "questions": [+ { "key": "Q1", "ask": "The warehouse is", "choices": ["Snowflake", "BigQuery", "Postgres", "Something else"], "default": "Snowflake" },+ { "key": "Q2", "ask": "Jobs run", "choices": ["Daily", "Hourly", "Weekly", "On demand"], "default": "Daily" }+ ]+}diff --git a/src/blueprints/ios-app.json b/src/blueprints/ios-app.jsonnew file mode 100644index 00000000..55785d54--- /dev/null+++ b/src/blueprints/ios-app.json@@ -0,0 +1,18 @@+{+ "blueprint": 1,+ "name": "ios-app",+ "title": "iOS app",+ "version": 1,+ "kind": "product",+ "by": "Pullboard",+ "summary": "Screens that look right in light, in dark and with VoiceOver.",+ "prefix": "IOS",+ "rules": [+ { "key": "IOS1", "text": "Every screen has a light and a dark screenshot test.", "why": "a screen that reads well in one mode can be unreadable in the other." },+ { "key": "IOS2", "text": "No change removes a VoiceOver label from a screen.", "why": "a missing label makes a control invisible to someone who cannot see the screen." }+ ],+ "questions": [+ { "key": "Q1", "ask": "The oldest iOS it supports is", "choices": ["iOS 17", "iOS 16", "iOS 18", "Only the latest"], "default": "iOS 17" },+ { "key": "Q2", "ask": "Its screens are built with", "choices": ["SwiftUI", "UIKit", "Both"], "default": "SwiftUI" }+ ]+}diff --git a/src/blueprints/library.json b/src/blueprints/library.jsonnew file mode 100644index 00000000..bc090495--- /dev/null+++ b/src/blueprints/library.json@@ -0,0 +1,18 @@+{+ "blueprint": 1,+ "name": "library",+ "title": "Open-source library",+ "version": 1,+ "kind": "product",+ "by": "Pullboard",+ "summary": "Your users get a changelog line and the right version bump, every release.",+ "prefix": "LIB",+ "rules": [+ { "key": "LIB1", "text": "A breaking change bumps the major version.", "why": "people pin a major version, so a breaking change must never arrive inside one." },+ { "key": "LIB2", "text": "Every public function has a working example in the docs.", "why": "an example that runs teaches a function fastest and breaks loudly when the function changes." }+ ],+ "questions": [+ { "key": "Q1", "ask": "The library is written in", "choices": ["JavaScript or TypeScript", "Python", "Rust", "Something else"], "default": "JavaScript or TypeScript" },+ { "key": "Q2", "ask": "It is published to", "choices": ["npm", "PyPI", "crates.io", "Somewhere else"], "default": "npm" }+ ]+}diff --git a/src/blueprints/pullboard.json b/src/blueprints/pullboard.jsonnew file mode 100644index 00000000..12455e7a--- /dev/null+++ b/src/blueprints/pullboard.json@@ -0,0 +1,15 @@+{+ "blueprint": 1,+ "name": "pullboard",+ "title": "Pullboard, built on Pullboard",+ "version": 1,+ "kind": "practice",+ "by": "Pullboard",+ "summary": "The rules we build Pullboard with: a frozen bar on every item, a second agent on every change, and a landing gate that runs every test.",+ "prefix": "PB",+ "rules": [+ { "key": "PB1", "text": "A builder never verifies their own work.", "why": "the agent that wrote a change is the one least likely to see what it missed." },+ { "key": "PB2", "text": "Every item's check fails before the change and passes after it.", "why": "a check that passes either way proves nothing." },+ { "key": "PB3", "text": "Main only moves when the whole test suite passes.", "why": "two changes can each pass alone and still break each other." }+ ]+}diff --git a/src/blueprints/research.json b/src/blueprints/research.jsonnew file mode 100644index 00000000..0c4e8869--- /dev/null+++ b/src/blueprints/research.json@@ -0,0 +1,18 @@+{+ "blueprint": 1,+ "name": "research",+ "title": "Research board",+ "version": 1,+ "kind": "beyond-code",+ "by": "Pullboard",+ "summary": "Research you can cite: every claim traced back to its source.",+ "prefix": "RS",+ "rules": [+ { "key": "RS1", "text": "Every claim in a finding links to its source.", "why": "a claim without a source cannot be checked." },+ { "key": "RS2", "text": "A finding counts only after a second agent rechecks its source.", "why": "the first reader rarely catches its own misreading." }+ ],+ "questions": [+ { "key": "Q1", "ask": "The research is about", "choices": ["A technical question", "A market or product", "Academic literature", "Something else"], "default": "A technical question" },+ { "key": "Q2", "ask": "Trusted sources are", "choices": ["Official documentation and papers", "Any public source I approve", "Only sources I list"], "default": "Official documentation and papers" }+ ]+}diff --git a/src/blueprints/serverless.json b/src/blueprints/serverless.jsonnew file mode 100644index 00000000..4bbc8477--- /dev/null+++ b/src/blueprints/serverless.json@@ -0,0 +1,19 @@+{+ "blueprint": 1,+ "name": "serverless",+ "title": "Serverless",+ "version": 1,+ "kind": "infrastructure",+ "by": "Pullboard",+ "summary": "Pick your cloud once, and your agents never drift from it.",+ "prefix": "SV",+ "rules": [+ { "key": "SV1", "text": "Every function has an alarm before it ships.", "why": "a function that fails quietly is found by your users first." },+ { "key": "SV2", "text": "No function runs past its platform's time limit.", "why": "the platform stops a function at its limit, so longer work has to be split before it fails in production." }+ ],+ "questions": [+ { "key": "Q1", "ask": "It runs on", "choices": ["AWS", "Google Cloud", "Azure", "Cloudflare"], "default": "AWS" },+ { "key": "Q2", "ask": "Its region is", "choices": ["The one nearest my users", "A US region", "An EU region", "Another region"], "default": "The one nearest my users" },+ { "key": "Q3", "ask": "Its database is", "choices": ["A managed key-value store", "A managed SQL database", "None yet"], "default": "A managed key-value store" }+ ]+}diff --git a/src/blueprints/test-reliability.json b/src/blueprints/test-reliability.jsonnew file mode 100644index 00000000..3f5d603b--- /dev/null+++ b/src/blueprints/test-reliability.json@@ -0,0 +1,17 @@+{+ "blueprint": 1,+ "name": "test-reliability",+ "title": "Test reliability",+ "version": 1,+ "kind": "practice",+ "by": "Pullboard",+ "summary": "Rules we learned fixing flaky tests on our own board, ready for yours.",+ "prefix": "TR",+ "rules": [+ { "key": "TR1", "text": "No test waits on the wall clock or a fixed sleep.", "why": "a test that sleeps is slow on an idle machine and flaky on a busy one." },+ { "key": "TR2", "text": "A flake is pinned on a change only after a run without it.", "why": "a test that fails under load looks like a broken change until it fails without that change too." }+ ],+ "questions": [+ { "key": "Q1", "ask": "Tests run with", "choices": ["Vitest", "Jest", "pytest", "Something else"], "default": "Vitest" }+ ]+}diff --git a/src/blueprints/website.json b/src/blueprints/website.jsonnew file mode 100644index 00000000..54d0829e--- /dev/null+++ b/src/blueprints/website.json@@ -0,0 +1,18 @@+{+ "blueprint": 1,+ "name": "website",+ "title": "Website",+ "version": 1,+ "kind": "product",+ "by": "Pullboard",+ "summary": "Pages that load fast, read well on a phone and never break a link.",+ "prefix": "WEB",+ "rules": [+ { "key": "WEB1", "text": "Every page reads in full with JavaScript turned off.", "why": "search engines, slow phones and screen readers often meet a page before its scripts run." },+ { "key": "WEB2", "text": "No change leaves a link pointing at a missing page.", "why": "a broken link is a dead end for every reader who follows it." }+ ],+ "questions": [+ { "key": "Q1", "ask": "The site is built with", "choices": ["Astro", "Hugo", "Next.js", "Something else"], "default": "Astro" },+ { "key": "Q2", "ask": "It is hosted on", "choices": ["Netlify", "Vercel", "GitHub Pages", "My own server"], "default": "Netlify" }+ ]+}diff --git a/src/blueprints/writing.json b/src/blueprints/writing.jsonnew file mode 100644index 00000000..9c0afd04--- /dev/null+++ b/src/blueprints/writing.json@@ -0,0 +1,18 @@+{+ "blueprint": 1,+ "name": "writing",+ "title": "Writing and blog",+ "version": 1,+ "kind": "beyond-code",+ "by": "Pullboard",+ "summary": "Posts in your voice, fact-checked, and published only when you say so.",+ "prefix": "WR",+ "rules": [+ { "key": "WR1", "text": "Every fact in a post links to where it came from.", "why": "a reader who cannot see where a fact came from has to take your word for it." },+ { "key": "WR2", "text": "A post publishes only after you approve it.", "why": "a post goes out under your name, so you decide when it is ready." }+ ],+ "questions": [+ { "key": "Q1", "ask": "The voice is", "choices": ["Plain and direct", "Friendly and casual", "Formal", "Like my past posts"], "default": "Plain and direct" },+ { "key": "Q2", "ask": "Posts publish to", "choices": ["My own blog", "Substack", "Medium", "Somewhere else"], "default": "My own blog" }+ ]+}diff --git a/test/blueprint.test.js b/test/blueprint.test.jsindex d587b389..ff5caefc 100644--- a/test/blueprint.test.js+++ b/test/blueprint.test.js@@ -5,6 +5,7 @@ import { tmpdir } from 'node:os';import { join, resolve } from 'node:path';import { after, test } from 'node:test';import { runFixtureChild, runFixtureGit } from './fixture-child.js';+import { bundledBlueprints, readBlueprint } from '../src/blueprints.js';import { parseSpec } from '../src/spec.js';const BIN = resolve(import.meta.dirname, '../bin/pullboard.js');@@ -177,3 +178,34 @@ test('blueprint add files a blueprint as drafts or nothing at all [S1,I1]', () =assert.equal(added.rows.length, 10);assert.equal(added.items.length, 3);});++/**+ * Each pullboard.dev/blueprints card's rules, word for word, and how many things it asks the+ * person. web-app's own file is #677's; its card's second rule now ends "before it ships", which+ * the published detail page does not say yet, so only its first rule is pinned here.+ */+const GALLERY = {+ pullboard: { rules: ['A builder never verifies their own work.', "Every item's check fails before the change and passes after it.", 'Main only moves when the whole test suite passes.'], asks: 0 },+ website: { rules: ['Every page reads in full with JavaScript turned off.', 'No change leaves a link pointing at a missing page.'], asks: 2 },+ 'web-app': { rules: ['Every change ships with a test that fails without it.'], asks: 3 },+ library: { rules: ['A breaking change bumps the major version.', 'Every public function has a working example in the docs.'], asks: 2 },+ 'ios-app': { rules: ['Every screen has a light and a dark screenshot test.', 'No change removes a VoiceOver label from a screen.'], asks: 2 },+ serverless: { rules: ['Every function has an alarm before it ships.', "No function runs past its platform's time limit."], asks: 3 },+ 'data-pipeline': { rules: ['A schema change ships with its migration.', 'A failed job names the rows and the reason.'], asks: 2 },+ 'test-reliability': { rules: ['No test waits on the wall clock or a fixed sleep.', 'A flake is pinned on a change only after a run without it.'], asks: 1 },+ research: { rules: ['Every claim in a finding links to its source.', 'A finding counts only after a second agent rechecks its source.'], asks: 2 },+ writing: { rules: ['Every fact in a post links to where it came from.', 'A post publishes only after you approve it.'], asks: 2 },+};++test('every gallery blueprint is bundled and valid [S1]', () => {+ assert.deepEqual(bundledBlueprints(), Object.keys(GALLERY).sort(), 'the bundled blueprints are exactly the gallery cards');+ for (const [name, card] of Object.entries(GALLERY)) {+ const blueprint = readBlueprint(name, process.cwd());+ assert.equal(blueprint.name, name);+ assert.equal(blueprint.by, 'Pullboard', `${name} is made by Pullboard, not a client or private project`);+ const texts = blueprint.rules.map((rule) => rule.text);+ for (const rule of card.rules) assert.ok(texts.includes(rule), `${name} holds its card's rule word for word: ${rule}`);+ for (const rule of blueprint.rules) assert.ok(rule.why.trim().length > 10, `${name} ${rule.key} gives a reason`);+ assert.ok(blueprint.questions.length >= card.asks, `${name} asks at least what its card says it asks`);+ }+});