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(tour): register the retained demo board [N26]
Corey Olsoncc00de6ec238
diff --git a/src/tour.js b/src/tour.jsindex 66226bd3..92f10234 100644--- a/src/tour.js+++ b/src/tour.js@@ -9,6 +9,8 @@ import { chmodSync, mkdirSync, mkdtempSync, realpathSync, writeFileSync } from 'import { tmpdir } from 'node:os';import { join } from 'node:path';import { fileURLToPath } from 'node:url';+import { loadConfig } from './config.js';+import { registerProject } from './projects.js';const BIN = fileURLToPath(new URL('../bin/pullboard.js', import.meta.url));@@ -19,6 +21,8 @@ const SPEC = `# Greeter`;const CONFIG = {+ name: 'demo',+ project: 'Pullboard tour demo',gate: 'node --test',spec: 'SPEC.md',verify: { policy: 'any', family: 'off' },@@ -184,7 +188,9 @@ export function tour(io) {io.say(`The repo is at ${repo}`);return 1;}+ registerProject(repo, new Date(), loadConfig(repo));io.say('\nNothing shipped until a second agent verified it.');io.say(`Look around: cd ${repo} && pullboard log`);+ io.say('see it: pullboard view');return 0;}diff --git a/test/e2e.test.js b/test/e2e.test.jsindex 094df3e2..74368164 100644--- a/test/e2e.test.js+++ b/test/e2e.test.js@@ -1257,6 +1257,37 @@ test('the tour runs a reject and its rework on a throwaway repo, in under thirtyassert.match(stopped.stdout, /The tour stopped: git init -q -b main exited null/);});+test('the tour registers a labelled demo that view lists and forget removes [N10, N26]', async () => {+ const box = project();+ const tourEnv = { ...box.env, TMPDIR: box.dir, HOME: box.dir };+ delete tourEnv.PULLBOARD_MODEL;+ const result = spawnSync(process.execPath, [BIN, 'tour'], {+ cwd: box.dir,+ env: tourEnv,+ encoding: 'utf8',+ });+ assert.equal(result.status, 0, `${result.stdout}${result.stderr}`);+ assert.equal(result.stdout.trimEnd().split('\n').at(-1), 'see it: pullboard view');+ const demoRoot = /Look around: cd (\S+) && pullboard log/.exec(result.stdout)?.[1];+ assert.ok(demoRoot, 'the retained demo path is printed');+ const registered = JSON.parse(readFileSync(join(box.env.PULLBOARD_HOME, 'projects.json'), 'utf8')).projects;+ assert.deepEqual(registered.map(({ root, name }) => [root, name]), [[box.repo, 'repo'], [demoRoot, 'demo']]);++ const view = await startView(box, box.repo);+ try {+ const listing = await fetch(`${view.base}/api/v1/boards`, { headers: { 'x-pullboard-key': view.key } });+ assert.equal(listing.status, 200);+ assert.deepEqual((await listing.json()).boards.map(({ root, name }) => [root, name]), [[box.repo, 'repo'], [demoRoot, 'demo']]);+ const forgotten = box.run(box.dir, 'forget', demoRoot);+ assert.equal(forgotten.code, 0, forgotten.err);+ assert.match(forgotten.out, /forgot/);+ const after = await fetch(`${view.base}/api/v1/boards`, { headers: { 'x-pullboard-key': view.key } });+ assert.deepEqual((await after.json()).boards.map(({ root, name }) => [root, name]), [[box.repo, 'repo']]);+ } finally {+ await view.stop();+ }+});+test('the run pack names verified items that touched the same files, so a cold agent follows them [N21]', () => {const box = project();const script = (name, lines) => {