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
fix(init): a starter's check is filed as blueprint add files it [I1,S1]
Corey Olson8cbb39597044
diff --git a/src/cli.js b/src/cli.jsindex 1061e417..c8b5a589 100644--- a/src/cli.js+++ b/src/cli.js@@ -1582,17 +1582,12 @@ function setupCommands(io, { first, values }) {init: async () => {const info = repoInfo(io.cwd);// A named blueprint is read and checked before anything is written, so an unknown name- // or a broken file leaves the repository untouched (#678). Init executes nothing from a- // blueprint: it fetches no URL and launches no check baseline, so a starter with a check waits- // for pullboard blueprint add, where the coordinator's check rules apply.+ // or a broken file leaves the repository untouched (#678). Init fetches no URL; past that it+ // adds the blueprint exactly as pullboard blueprint add does, through the same function.if (values.blueprint !== undefined && /^[a-z][a-z0-9+.-]*:\/\//iu.test(values.blueprint)) {throw new Refused('BLUEPRINT_URL', `init reads a bundled blueprint name or a local file, never a URL; download ${values.blueprint} yourself, read it, then run pullboard init --blueprint <file>`);}const blueprint = values.blueprint === undefined ? null : readBlueprint(values.blueprint, info.root);- const checked = blueprint ? blueprint.items.filter((item) => item.check) : [];- if (checked.length) {- throw new Refused('BLUEPRINT_CHECK', `init launches no check baselines, and ${checked.map((item) => `items[${item.key}]`).join(', ')} carr${checked.length === 1 ? 'ies' : 'y'} a check; run pullboard init, then pullboard blueprint add ${values.blueprint} from the coordinator`);- }const model = optionalModel(values.model);const linked = relayLinked(info.root);const ctx = linked && model !== undefined ? context(io) : null;diff --git a/test/blueprint.test.js b/test/blueprint.test.jsindex ced4c4b1..273c4343 100644--- a/test/blueprint.test.js+++ b/test/blueprint.test.js@@ -292,8 +292,8 @@ test('init --blueprint starts a board from a blueprint [I1,S1]', () => {assert.deepEqual(readdirSync(unknown.repo).filter((name) => name !== '.git'), [], 'nothing is written');assert.equal(existsSync(join(unknown.repo, '.git', 'pullboard')), false, 'no board is created');- // Init executes nothing from a blueprint: a URL is refused unfetched, and a starter that carries- // a check is refused rather than launching its baseline. Both leave the repository untouched.+ // A URL is refused unfetched and leaves the repository untouched. A starter that carries a check+ // is filed with that check stored, exactly as pullboard blueprint add files it.const remote = emptyRepo();const fetched = remote.run('init', '--blueprint', 'https://example.invalid/web-app.json', '--json');assert.notEqual(fetched.status, 0);@@ -304,13 +304,13 @@ test('init --blueprint starts a board from a blueprint [I1,S1]', () => {const withCheck = join(outside, 'checked.blueprint.json');writeFileSync(withCheck, JSON.stringify({ ...PUBLISHED, items: PUBLISHED.items.map((item, index) => (index === 0 ? { ...item, check: 'true' } : item)) }));const checkedRepo = emptyRepo();- const checked = checkedRepo.run('init', '--blueprint', withCheck, '--json');- assert.notEqual(checked.status, 0);- const checkRefusal = JSON.parse(checked.stdout).error;- assert.equal(checkRefusal.code, 'BLUEPRINT_CHECK');- assert.match(checkRefusal.message, new RegExp(`items\\[${PUBLISHED.items[0].key}\\]`, 'u'), 'the refusal names the starter with a check');- assert.deepEqual(readdirSync(checkedRepo.repo).filter((name) => name !== '.git'), [], 'a check writes nothing');- assert.equal(existsSync(join(checkedRepo.repo, '.git', 'pullboard')), false, 'a check creates no board');+ const checked = checkedRepo.run('init', '--blueprint', withCheck);+ assert.equal(checked.status, 0, checked.stdout + checked.stderr);+ const filed = JSON.parse(checkedRepo.run('list', '--json').stdout).items ?? [];+ assert.equal(filed.length, PUBLISHED.items.length, 'every starter is filed, the checked one included');+ const starter = filed.find((item) => item.item_title === PUBLISHED.items[0].title);+ assert.ok(starter, 'the checked starter is on the board');+ assert.equal(starter.item_check, 'true', 'its check is stored as written');rmSync(outside, { recursive: true, force: true });// Plain init is unchanged: no blueprint section, no items, no summary line.