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(core): require cross-family reviews [O2,O3]
Corey Olsona576ed9d9575
diff --git a/src/board.js b/src/board.jsindex e72b3275..ec1e3191 100644--- a/src/board.js+++ b/src/board.js@@ -873,10 +873,11 @@ export function reviewHolder(board, item) {* nothing, so the agent that made it can still give its verdict unless another reserved it since.** @param {any} board- * @param {{ agentId: string, policy: string }} who+ * @param {{ agentId: string, policy: string, familyPolicy?: string }} who* @returns {Record<string, (found: any) => Refused | null>}*/-function reviewerChecks(board, { agentId, policy }) {+function reviewerChecks(board, { agentId, policy, familyPolicy = 'off' }) {+ const family = board.db.prepare('SELECT agent_family FROM agent WHERE agent_id = ?').get(agentId)?.agent_family ?? null;return {notBuilder: (found) => (found.item_built_by === agentId ? new Refused('SELF_VERIFY', 'the builder never verifies its own work; another agent must') : null),routeAllows: (found) => {@@ -885,6 +886,9 @@ function reviewerChecks(board, { agentId, policy }) {},policyAllows: (found) =>policy === COORDINATOR && found.item_lane !== COORDINATOR && agentId !== COORDINATOR ? new Refused('COORDINATOR_VERIFIES', 'this repo has the coordinator verify lane work') : null,+ familyAllows: (found) => familyPolicy === 'require' && (!family || !found.item_builder_family || family === found.item_builder_family)+ ? new Refused('O2_FAMILY_MATCH', `#${found.item_id} needs a verifier from another declared family under verify.family require; ask the coordinator to assign one`)+ : null,reviewFree: (found) => {const holder = reviewHolder(board, found);return holder && holder !== agentId@@ -900,7 +904,7 @@ function reviewerChecks(board, { agentId, policy }) {** @param {any} board* @param {number} id- * @param {{ agentId: string, leaseMs: number, policy: string }} who+ * @param {{ agentId: string, leaseMs: number, policy: string, familyPolicy?: string }} who* @returns {any} The item, reserved.*/export function reserveReview(board, id, who) {@@ -912,13 +916,13 @@ export function reserveReview(board, id, who) {* transaction, so no other verifier can take it between the look and the reservation.** @param {any} board- * @param {{ agentId: string, lane: string, leaseMs: number, policy: string, runnable?: boolean, routes?: string[] }} who+ * @param {{ agentId: string, lane: string, leaseMs: number, policy: string, familyPolicy?: string, runnable?: boolean, routes?: string[] }} who* @returns {{ item: any | null, reasons: string[] }}*/-export function reserveNextReview(board, { agentId, lane, leaseMs, policy, runnable, routes }) {+export function reserveNextReview(board, { agentId, lane, leaseMs, policy, familyPolicy = 'off', runnable, routes }) {return atomic(board, () => {- const { item, reasons } = nextFor(board, { agentId, lane, verify: true, runnable, routes });- return item ? { item: reserveWithin(board, item.item_id, { agentId, leaseMs, policy }), reasons: [] } : { item: null, reasons };+ const { item, reasons } = nextFor(board, { agentId, lane, verify: true, familyPolicy, runnable, routes });+ return item ? { item: reserveWithin(board, item.item_id, { agentId, leaseMs, policy, familyPolicy }), reasons: [] } : { item: null, reasons };});}@@ -927,17 +931,17 @@ export function reserveNextReview(board, { agentId, lane, leaseMs, policy, runna** @param {any} board* @param {number} id- * @param {{ agentId: string, leaseMs: number, policy: string }} who+ * @param {{ agentId: string, leaseMs: number, policy: string, familyPolicy?: string }} who* @returns {any}*/-function reserveWithin(board, id, { agentId, leaseMs, policy }) {+function reserveWithin(board, id, { agentId, leaseMs, policy, familyPolicy = 'off' }) {const until = new Date(board.clock.now().getTime() + leaseMs).toISOString();moveItem(board, id, 'reserve', {checks: {coordinatorSaysAs: null,joined: null,[IN_STATE]: (found) => new Refused('NOT_SUBMITTED', `item #${id} is ${current(board, found).item_status}, not submitted`),- ...reviewerChecks(board, { agentId, policy }),+ ...reviewerChecks(board, { agentId, policy, familyPolicy }),},set: () => ({ item_review_by: agentId, item_review_until: until }),});@@ -958,10 +962,10 @@ function reserveWithin(board, id, { agentId, leaseMs, policy }) {** @param {any} board* @param {number} id- * @param {{ agentId: string, decision: string, reason?: string, note?: string, head: string, digest: string, policy: string }} verdict+ * @param {{ agentId: string, decision: string, reason?: string, note?: string, head: string, digest: string, policy: string, familyPolicy?: string }} verdict* @returns {{ decision: string, reason: string }}*/-export function verify(board, id, { agentId, decision, reason, note = '', head, digest, policy }) {+export function verify(board, id, { agentId, decision, reason, note = '', head, digest, policy, familyPolicy = 'off' }) {const verb = { ACCEPT: 'accept', REJECT: 'reject' }[decision];if (!verb) throw new Refused('BAD_DECISION', 'the decision is accept or reject');const isAccept = verb === 'accept';@@ -973,7 +977,7 @@ export function verify(board, id, { agentId, decision, reason, note = '', head,joined: null,[IN_STATE]: (found) => new Refused('NOT_SUBMITTED', `item #${id} is ${current(board, found).item_status}, not submitted`),atSubmittedCommit: null,- ...reviewerChecks(board, { agentId, policy }),+ ...reviewerChecks(board, { agentId, policy, familyPolicy }),criterionUnchanged: (found) =>digest === found.item_frozen_digest? null@@ -1335,10 +1339,10 @@ export function events(board, { itemId } = {}) {* and `shared` names them (N20). A held lane offers nothing new (N22).** @param {any} board- * @param {{ agentId: string, lane: string, verify?: boolean, runnable?: boolean, routes?: string[], warm?: string[] }} who+ * @param {{ agentId: string, lane: string, verify?: boolean, familyPolicy?: string, runnable?: boolean, routes?: string[], warm?: string[] }} who* @returns {{ item: any | null, reasons: string[], shared?: string[] }}*/-export function nextFor(board, { agentId, lane, verify = false, runnable = false, routes = ROUTES, warm = [] }) {+export function nextFor(board, { agentId, lane, verify = false, familyPolicy = 'off', runnable = false, routes = ROUTES, warm = [] }) {const route = routeOf(board, agentId);const tier = (entry) => ROUTES.indexOf(entry.item_route);const items = listItems(board)@@ -1348,7 +1352,11 @@ export function nextFor(board, { agentId, lane, verify = false, runnable = falseconst tiers = route === 'strong' ? '' : `${ROUTES.slice(0, ROUTES.indexOf(route) + 1).reverse().join(' or ')} `;const routed = `${tiers}${runnable ? 'runnable ' : ''}`;if (verify) {- const reviewable = items.filter((entry) => entry.item_status === 'submitted' && entry.item_built_by !== agentId);+ const family = board.db.prepare('SELECT agent_family FROM agent WHERE agent_id = ?').get(agentId)?.agent_family ?? null;+ const hasDifferentFamily = (entry) => Boolean(family && entry.item_builder_family && family !== entry.item_builder_family);+ let reviewable = items.filter((entry) => entry.item_status === 'submitted' && entry.item_built_by !== agentId);+ if (familyPolicy === 'require') reviewable = reviewable.filter(hasDifferentFamily);+ if (familyPolicy === 'prefer') reviewable.sort((first, second) => Number(hasDifferentFamily(second)) - Number(hasDifferentFamily(first)));const holder = (entry) => reviewHolder(board, entry);const item = reviewable.find((entry) => holder(entry) === agentId) ?? reviewable.find((entry) => !holder(entry));if (item) return { item, reasons: [] };diff --git a/src/cli.js b/src/cli.jsindex bfd6dc6a..eb3553e8 100644--- a/src/cli.js+++ b/src/cli.js@@ -1101,7 +1101,8 @@ function verifyHere(ctx, id, { second, values }) {note: textArg(ctx.io, values, 'note') ?? '',head,digest,- policy: ctx.config.verify,+ policy: ctx.config.verify.policy,+ familyPolicy: ctx.config.verify.family,});});ctx.io.result?.({ id, ...result });@@ -1123,7 +1124,7 @@ function nextOnce(ctx, values) {if (values.verify) checkMainVerifier(ctx, board, values);const me = whoAmI(ctx, board);if (values.verify) {- return store.reserveNextReview(board, { agentId: me.id, lane: me.lane, leaseMs: ctx.config.reviewLeaseMs, policy: ctx.config.verify, runnable: values.runnable, routes: values.routes });+ return store.reserveNextReview(board, { agentId: me.id, lane: me.lane, leaseMs: ctx.config.reviewLeaseMs, policy: ctx.config.verify.policy, familyPolicy: ctx.config.verify.family, runnable: values.runnable, routes: values.routes });}const warm = warmFiles(ctx, board, me);const { item, reasons, shared } = store.nextFor(board, { agentId: me.id, lane: me.lane, runnable: values.runnable, routes: values.routes, warm });diff --git a/src/config.js b/src/config.jsindex b3fa89e9..d7ffa1f4 100644--- a/src/config.js+++ b/src/config.js@@ -38,7 +38,7 @@ export function defaults() {gate: '',lease: '2h',reviewLease: '30m',- verify: 'any',+ verify: { policy: 'any', family: 'off' },lanes: {},products: {},shared: [],@@ -86,6 +86,9 @@ function merge(base, raw) {...raw,commits: { ...base.commits, ...(raw.commits ?? {}) },protect: { ...base.protect, ...(raw.protect ?? {}) },+ verify: typeof raw.verify === 'string'+ ? { ...base.verify, policy: raw.verify }+ : { ...base.verify, ...(raw.verify ?? {}) },};}@@ -140,8 +143,11 @@ export function configProblems(config) {if (typeof config.spec !== 'string' || !config.spec) problems.push('"spec" names a file');if (typeof config.practice !== 'string' || !config.practice) problems.push('"practice" names a file');if (typeof config.gate !== 'string') problems.push('"gate" is a shell command, like "npm test"');- if (!['any', COORDINATOR].includes(config.verify)) {- problems.push('"verify" is "any" (any other agent) or "coordinator"');+ if (!['any', COORDINATOR].includes(config.verify?.policy)) {+ problems.push('"verify.policy" is "any" (any other agent) or "coordinator"');+ }+ if (!['off', 'prefer', 'require'].includes(config.verify?.family)) {+ problems.push('"verify.family" is "off", "prefer" or "require"');}if (!isStringList(config.shared)) problems.push('"shared" is a list of path prefixes');const isFixer = (fixer) => typeof fixer?.run === 'string' && fixer.run.trim() && (fixer.files === undefined || isStringList(fixer.files));diff --git a/src/machine.js b/src/machine.jsindex 85d0116d..6efe9e8d 100644--- a/src/machine.js+++ b/src/machine.js@@ -117,6 +117,7 @@ export const GUARDS = [{ id: 'atSubmittedCommit', refuse: 'NOT_AT_COMMIT', rule: "the caller's checkout contains the submitted commit", next: 'git switch --detach <commit>', source: 'cli' },{ id: 'notBuilder', refuse: 'SELF_VERIFY', rule: 'the caller did not build it', next: 'another agent verifies it: pullboard next --verify', source: 'board' },{ id: 'policyAllows', refuse: 'COORDINATOR_VERIFIES', rule: "the repo's verify policy lets the caller verify this lane's work", next: 'the coordinator verifies it', source: 'board' },+ { id: 'familyAllows', refuse: 'O2_FAMILY_MATCH', rule: 'the builder and verifier have known, different declared families', next: 'ask the coordinator for a verifier from another declared family', source: 'board', when: 'verify.family is require' },{ id: 'reviewFree', refuse: 'REVIEW_HELD', rule: 'no other agent holds its review under a live lease', next: 'pullboard next --verify, which passes over reviews another agent holds', source: 'board' },{ id: 'reasonIsMet', refuse: 'BAD_REASON', rule: 'an accept gives CRITERION_MET as its reason', next: 'a failed criterion is a reject: pullboard verify <id> reject --reason CODE', source: 'board' },{ id: 'proofNoted', refuse: 'PROOF_REQUIRED', rule: 'an accept notes how it was proved', next: '--note "what you broke or which edge you tried, and what happened"', source: 'board' },@@ -143,17 +144,17 @@ export const MOVES = [},{verb: 'reserve', from: ['submitted'], to: 'submitted', by: ['agent', 'coordinator'], refuse: 'NOT_SUBMITTED',- guards: ['coordinatorSaysAs', 'joined', 'itemExists', IN_STATE, 'notBuilder', 'routeAllows', 'policyAllows', 'reviewFree'],+ guards: ['coordinatorSaysAs', 'joined', 'itemExists', IN_STATE, 'notBuilder', 'routeAllows', 'policyAllows', 'familyAllows', 'reviewFree'],sets: ['item_review_by', 'item_review_until'], command: 'pullboard next --verify',},{verb: 'accept', from: ['submitted'], to: 'verified', by: ['agent', 'coordinator'], refuse: 'NOT_SUBMITTED',- guards: ['coordinatorSaysAs', 'joined', 'itemExists', IN_STATE, 'atSubmittedCommit', 'notBuilder', 'routeAllows', 'policyAllows', 'reviewFree', 'criterionUnchanged', 'reasonIsMet', 'proofNoted'],+ guards: ['coordinatorSaysAs', 'joined', 'itemExists', IN_STATE, 'atSubmittedCommit', 'notBuilder', 'routeAllows', 'policyAllows', 'familyAllows', 'reviewFree', 'criterionUnchanged', 'reasonIsMet', 'proofNoted'],sets: ['item_verified_by'], command: 'pullboard verify <id> accept --note "..."',},{verb: 'reject', from: ['submitted'], to: 'open', by: ['agent', 'coordinator'], refuse: 'NOT_SUBMITTED',- guards: ['coordinatorSaysAs', 'joined', 'itemExists', IN_STATE, 'atSubmittedCommit', 'notBuilder', 'routeAllows', 'policyAllows', 'reviewFree', 'criterionUnchanged', 'reasonCoded', 'noteGiven'],+ guards: ['coordinatorSaysAs', 'joined', 'itemExists', IN_STATE, 'atSubmittedCommit', 'notBuilder', 'routeAllows', 'policyAllows', 'familyAllows', 'reviewFree', 'criterionUnchanged', 'reasonCoded', 'noteGiven'],command: 'pullboard verify <id> reject --reason CODE --note "..."',},{diff --git a/src/templates.js b/src/templates.jsindex f5ff5710..f0fc35a7 100644--- a/src/templates.js+++ b/src/templates.js@@ -19,7 +19,7 @@ export function configTemplate(gate, fix = []) {...(fix.length ? { fix } : {}),spec: 'SPEC.md',practice: 'PRACTICE.md',- verify: 'any',+ verify: { policy: 'any', family: 'off' },lease: '2h',lanes: { review: { owns: [], starts: 'any time: verifiers check submitted work and own no folders' } },shared: [],diff --git a/src/tour.js b/src/tour.jsindex 2ce705c9..7b1284e9 100644--- a/src/tour.js+++ b/src/tour.js@@ -21,7 +21,7 @@ const SPEC = `# Greeterconst CONFIG = {gate: 'node --test',spec: 'SPEC.md',- verify: 'any',+ verify: { policy: 'any', family: 'off' },lease: '2h',lanes: { app: { owns: ['src/'], specs: ['G'] }, review: { owns: [] } },shared: [],diff --git a/test/board.test.js b/test/board.test.jsindex c55235a1..81e66959 100644--- a/test/board.test.js+++ b/test/board.test.js@@ -727,4 +727,67 @@ test('[O3] declared families travel from join through submit and verdict, and abstore.claim(persistent, unclaimed, { agentId: 'web-2', lane: 'web', leaseMs: 2 * HOUR, freeze: familyFreeze });store.submit(persistent, unclaimed, { agentId: 'web-2', commit: SHA_A, tree: 'tree-c' });assert.equal(store.getItem(persistent, unclaimed).item_builder_family, null);++ const differentFamily = store.addItem(persistent, { by: 'coordinator', lane: 'web', title: 'CLI family review' });+ store.claim(persistent, differentFamily, { agentId: 'web-1', lane: 'web', leaseMs: 2 * HOUR, freeze: familyFreeze });+ store.submit(persistent, differentFamily, { agentId: 'web-1', commit: SHA_A, tree: 'tree-d' });+ assert.equal(store.agentAt(persistent, reviewerRoot).agent_family, 'Family Gamma');+ assert.equal(store.getItem(persistent, unclaimed).item_builder_family, null);+ assert.equal(store.nextFor(persistent, { agentId: 'review-1', lane: 'review', verify: true, familyPolicy: 'require' }).item.item_id, differentFamily);+ const policyConfig = JSON.stringify({+ gate: 'true', spec: 'SPEC.md', verify: { policy: 'any', family: 'require' },+ lanes: { web: { owns: ['web/'], specs: [] }, review: { owns: ['review/'], specs: [] } }, shared: [],+ });+ writeFileSync(join(repo, 'pullboard.json'), policyConfig);+ writeFileSync(join(reviewerRoot, 'pullboard.json'), policyConfig);+ const cliReview = await runMain(reviewerRoot, ['next', '--verify', '--json']);+ assert.equal(cliReview.code, 0, cliReview.stderr || cliReview.stdout);+ assert.equal(JSON.parse(cliReview.stdout).item.item_id, differentFamily, 'CLI reads verify.family and reserves different-family work');+});++test('[O2,O3] family policy controls review order and refuses unknown or matching families', () => {+ store.register(board, { lane: 'web', path: '/repo-web-1', family: 'Family Alpha' });+ store.register(board, { lane: 'web', path: '/repo-web-2', family: 'Family Beta' });+ store.register(board, { lane: 'api', path: '/repo-api-1', family: 'Family Beta' });+ const submitAs = (agentId, title) => {+ const id = store.addItem(board, { by: 'coordinator', lane: 'web', title });+ store.claim(board, id, { agentId, lane: 'web', leaseMs: HOUR, freeze: () => ({ text: title, digest: 'digest:Page' }) });+ store.submit(board, id, { agentId, commit: SHA_A, tree: `tree-${title}` });+ return id;+ };+ const beta = submitAs('web-2', 'Beta build');+ const alpha = submitAs('web-1', 'Alpha build');+ store.register(board, { lane: 'web', path: '/repo-web-2', family: null });+ const unknown = submitAs('web-2', 'Unknown build');++ assert.equal(store.nextFor(board, { agentId: 'api-1', lane: 'api', verify: true, familyPolicy: 'off' }).item.item_id, beta,+ 'off preserves the existing oldest-first review order');+ assert.equal(store.nextFor(board, { agentId: 'api-1', lane: 'api', verify: true, familyPolicy: 'prefer' }).item.item_id, alpha,+ 'prefer puts the known different family ahead of a matching or unknown family');+ assert.equal(store.nextFor(board, { agentId: 'api-1', lane: 'api', verify: true, familyPolicy: 'require' }).item.item_id, alpha,+ 'require offers only work with a known different family');+ assert.throws(() => store.verify(board, beta, {+ agentId: 'api-1', decision: 'ACCEPT', head: SHA_A, digest: 'digest:Page', policy: 'any', familyPolicy: 'require',+ note: 'checked family policy',+ }), /O2_FAMILY_MATCH.*ask the coordinator/);+ assert.throws(() => store.verify(board, unknown, {+ agentId: 'api-1', decision: 'ACCEPT', head: SHA_A, digest: 'digest:Page', policy: 'any', familyPolicy: 'require',+ note: 'checked unknown builder family',+ }), /O2_FAMILY_MATCH/);+ assert.equal(store.reserveNextReview(board, {+ agentId: 'api-1', lane: 'api', leaseMs: HOUR, policy: 'any', familyPolicy: 'require',+ }).item.item_id, alpha, 'reservation uses the same family filter as next --verify');+ assert.equal(store.verify(board, alpha, {+ agentId: 'api-1', decision: 'ACCEPT', head: SHA_A, digest: 'digest:Page', policy: 'any', familyPolicy: 'require',+ note: 'verified from a different declared family',+ }).decision, 'ACCEPT', 'a different-family verifier can complete the verdict');++ store.register(board, { lane: 'api', path: '/repo-api-1', family: null });+ const unknownVerifierTarget = submitAs('web-1', 'Unknown verifier target');+ assert.equal(store.nextFor(board, { agentId: 'api-1', lane: 'api', verify: true, familyPolicy: 'require' }).item, null,+ 'an unknown verifier family counts as a match under require');+ assert.throws(() => store.verify(board, unknownVerifierTarget, {+ agentId: 'api-1', decision: 'ACCEPT', head: SHA_A, digest: 'digest:Page', policy: 'any', familyPolicy: 'require',+ note: 'checked unknown verifier family',+ }), /O2_FAMILY_MATCH/);});diff --git a/test/lanes.test.js b/test/lanes.test.jsindex 80311c39..a87f9be8 100644--- a/test/lanes.test.js+++ b/test/lanes.test.js@@ -48,7 +48,7 @@ test('a config with a bad lane refuses and names the field [L1]', () => {for (const field of ['"owns" is a list', '"specs" is a list', '"starts" is text']) {assert.ok(fields.some((problem) => problem.includes(`lane "web": ${field}`)), `a well-named lane with a bad field is refused: ${field}`);}- assert.ok(configProblems({ ...CONFIG, verify: 'anyone' }).some((problem) => problem.includes('"verify"')));+ assert.ok(configProblems({ ...CONFIG, verify: 'anyone' }).some((problem) => problem.includes('"verify.policy"')));});test('config merges nested groups over the defaults, and leases read as durations', () => {@@ -59,6 +59,13 @@ test('config merges nested groups over the defaults, and leases read as durationassert.equal(config.commits.maxHeader, 60);assert.deepEqual(config.commits.requireIds, ['feat', 'fix']);assert.equal(config.leaseMs, 90 * 60_000);+ assert.deepEqual(config.verify, { policy: 'any', family: 'off' });+ writeFileSync(join(root, 'pullboard.json'), JSON.stringify({ gate: 'npm test', verify: 'coordinator' }));+ assert.deepEqual(loadConfig(root).verify, { policy: 'coordinator', family: 'off' }, 'legacy verify strings remain valid');+ writeFileSync(join(root, 'pullboard.json'), JSON.stringify({ gate: 'npm test', verify: { family: 'require' } }));+ assert.deepEqual(loadConfig(root).verify, { policy: 'any', family: 'require' }, 'nested verify options merge over defaults');+ writeFileSync(join(root, 'pullboard.json'), JSON.stringify({ gate: 'npm test', verify: { family: 'sometimes' } }));+ assert.throws(() => loadConfig(root), /verify\.family.*off.*prefer.*require/);writeFileSync(join(root, 'pullboard.json'), '{ not json');assert.throws(() => loadConfig(root), /BAD_CONFIG/);} finally {diff --git a/test/machine.test.js b/test/machine.test.jsindex 00429a82..bea431d4 100644--- a/test/machine.test.js+++ b/test/machine.test.js@@ -869,6 +869,7 @@ test('submit, accept and reject refuse in the declared order, one failure peeledjudge(built, 'web-1', { reason: bad }),judge(built, light, { reason: bad }),judge(built, 'web-2', { reason: bad }),+ judge(built, other, { reason: bad, policy: 'any', familyPolicy: 'require' }),judge(built, other, { reason: bad, policy: 'any' }),judge(built, 'web-2', { reason: bad, policy: 'any' }),judge(built, 'web-2', { reason: bad, policy: 'any', digest: 'digest:Page' }),@@ -890,12 +891,12 @@ test('reserve refuses in the declared order, one failure peeled at a time [V15,const other = store.register(board, { lane: 'web', path: '/repo-web-other' });const built = submittedItem(board);const open = store.addItem(board, { by: 'coordinator', lane: 'web', title: 'Page' });- const reserveAs = (id, agentId, policy = 'coordinator') => outcome(() => store.reserveReview(board, id, { agentId, leaseMs: 3_600_000, policy }));+ const reserveAs = (id, agentId, policy = 'coordinator', familyPolicy = 'off') => outcome(() => store.reserveReview(board, id, { agentId, leaseMs: 3_600_000, policy, familyPolicy }));const fired = [reserveAs(999, 'web-2'), reserveAs(open, 'web-2'), reserveAs(built, 'web-1'), reserveAs(built, light), reserveAs(built, 'web-2')];store.reserveReview(board, built, { agentId: other, leaseMs: 3_600_000, policy: 'any' });- fired.push(reserveAs(built, 'web-2', 'any'), reserveAs(built, other, 'any'));+ fired.push(reserveAs(built, other, 'any', 'require'), reserveAs(built, 'web-2', 'any'), reserveAs(built, other, 'any'));assert.deepEqual(fired, [...declaredBoardOrder('reserve'), 'ok']);- assert.deepEqual(fired, ['NO_ITEM', 'NOT_SUBMITTED', 'SELF_VERIFY', 'ROUTE', 'COORDINATOR_VERIFIES', 'REVIEW_HELD', 'ok']);+ assert.deepEqual(fired, ['NO_ITEM', 'NOT_SUBMITTED', 'SELF_VERIFY', 'ROUTE', 'COORDINATOR_VERIFIES', 'O2_FAMILY_MATCH', 'REVIEW_HELD', 'ok']);} finally {lab.done();}@@ -1106,7 +1107,7 @@ test('the review lease is reviewLease in pullboard.json, 30 minutes unless the rtest('the lifecycle page and the help show the reservation: reserve, and reviewFree on every verdict [V15, M1]', () => {const page = lifecycleMarkdown();assert.match(page, /^\| reserve \| submitted \| submitted \| agent, coordinator \| .*reviewFree \(REVIEW_HELD\) \|$/m);- for (const verb of ['accept', 'reject']) assert.match(page, new RegExp(`^\\| ${verb} \\| submitted \\| .*policyAllows \\(COORDINATOR_VERIFIES\\), reviewFree \\(REVIEW_HELD\\), criterionUnchanged`, 'm'));+ for (const verb of ['accept', 'reject']) assert.match(page, new RegExp(`^\\| ${verb} \\| submitted \\| .*policyAllows \\(COORDINATOR_VERIFIES\\), familyAllows \\(O2_FAMILY_MATCH\\), reviewFree \\(REVIEW_HELD\\), criterionUnchanged`, 'm'));assert.match(page, /^\| REVIEW_HELD \| no other agent holds its review under a live lease \| pullboard next --verify/m);assert.match(HELP, /^ {2}agent +claim, release, submit, reserve, accept, reject, escalate$/m);assert.match(HELP, /pullboard next --verify +reserve the next submitted item you can check/);