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
test(watch): seed reviewer role through board API [B7,A2]
Corey Olsond08e97470e7a
diff --git a/test/watch.test.js b/test/watch.test.jsindex c7417d4d..ffe5bce8 100644--- a/test/watch.test.js+++ b/test/watch.test.js@@ -6,6 +6,7 @@ import { hostname, loadavg, tmpdir } from 'node:os';import { delimiter, join, resolve } from 'node:path';import { DatabaseSync } from 'node:sqlite';import { after, test } from 'node:test';+import { openBoard, reserveReview } from '../src/board.js';import { runFixtureChild, runFixtureGit, startFixtureChild } from './fixture-child.js';const BIN = resolve(import.meta.dirname, '../bin/pullboard.js');@@ -384,7 +385,10 @@ test('a shout about an item reaches only the people on it [B7,A2,N19]', async (trunFixtureGit(['add', '-A'], { cwd: builder.path, env: box.env, stdio: 'pipe' });runFixtureGit(['commit', '-q', '-m', 'feat(app): directed message fixture [G1]'], { cwd: builder.path, env: box.env, stdio: 'pipe' });box.cli(builder.path, 'submit', String(item.item_id));- box.cli(reviewer.path, 'next', '--verify', String(item.item_id));+ // Fixture setup uses the public board API: routing needs a reviewer role, not a second runtime session's verdict.+ const board = openBoard(join(box.root, '.git', 'pullboard', 'board.sqlite'));+ try { reserveReview(board, item.item_id, { agentId: reviewer.agent, leaseMs: 60_000, policy: 'any' }); }+ finally { board.db.close(); }for (const seat of [builder, reviewer, outsider]) box.cli(seat.path, 'inbox');const watches = [builder, reviewer, outsider].map((seat, index) => startWatch(box,['--json', '--kinds', 'shout', ...(index < 2 ? ['--to', seat.agent] : [])], { cwd: seat.path }));