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(cli): attribute checks and require consent [V2,N23]
Corey Olsonc0531af3c295
diff --git a/src/board.js b/src/board.jsindex 0389731e..c4f3fe60 100644--- a/src/board.js+++ b/src/board.js@@ -548,14 +548,15 @@ function routeOf(board, agentId) {* ids (B6).** @param {any} board- * @param {{ by: string, lane: string, title: string, criterion?: string, specIds?: string[], parentId?: number | null, after?: number[], brief?: string, route?: string }} item+ * @param {{ by: string, lane: string, title: string, criterion?: string, specIds?: string[], parentId?: number | null, after?: number[], brief?: string, route?: string, check?: string }} item* @returns {number} The new item's id.*/-export function addItem(board, { by, lane, title, criterion = '', specIds = [], parentId = null, after = [], brief = '', route = 'strong', check = '' }) {+export function addItem(board, { by, lane, title, criterion = '', specIds = [], parentId = null, after = [], brief = '', route = 'strong', check }) {+ const command = coordinatorCheck(by, check) ?? '';const cleanTitle = title.trim();if (!cleanTitle) throw new Refused('NO_TITLE', 'an item needs a title');checkRoute(route);- checkRouted({ brief: brief.trim(), route, criterion, check });+ checkRouted({ brief: brief.trim(), route, criterion, check: command });return atomic(board, () => {if (parentId !== null) {const parent = itemById(board, parentId);@@ -578,7 +579,7 @@ export function addItem(board, { by, lane, title, criterion = '', specIds = [],item_after, item_brief, item_route, item_check, item_created_by, item_created_at, item_updated_at)VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,)- .run(parentId, lane, cleanTitle, criterion.trim(), specIds.join(','), after.join(','), brief.trim(), route, check.trim(), by, at, at);+ .run(parentId, lane, cleanTitle, criterion.trim(), specIds.join(','), after.join(','), brief.trim(), route, command, by, at, at);const id = Number(result.lastInsertRowid);logEvent(board, by, 'add', id, { lane, specIds, after, route });return id;@@ -597,6 +598,7 @@ export function addItem(board, { by, lane, title, criterion = '', specIds = [],* @param {{ agentId: string, brief?: string, route?: string, criterion?: string, check?: string }} change*/export function editItem(board, id, { agentId, brief, route, criterion, check }) {+ const command = coordinatorCheck(agentId, check);if ([brief, route, criterion, check].every((value) => value === undefined)) {throw new Refused('USAGE', 'say what changes: --brief "...", --brief-file <file>, --route light|mid|strong, --criterion "..." or --check "<command>"');}@@ -612,7 +614,7 @@ export function editItem(board, id, { agentId, brief, route, criterion, check })item_brief: brief === undefined ? item.item_brief : brief.trim(),item_route: route ?? item.item_route,item_criterion: criterion === undefined ? item.item_criterion : criterion.trim(),- item_check: check === undefined ? item.item_check : check.trim(),+ item_check: command === undefined ? item.item_check : command,};checkRoute(next.item_route);const moved = ['item_route', 'item_criterion', 'item_check'].filter((key) => next[key] !== item[key]);@@ -626,12 +628,35 @@ export function editItem(board, id, { agentId, brief, route, criterion, check })...(next.item_brief !== item.item_brief ? { brief: `${next.item_brief.length} characters` } : {}),...(next.item_route !== item.item_route ? { route: next.item_route } : {}),...(next.item_criterion !== item.item_criterion ? { criterion: next.item_criterion } : {}),- ...(next.item_check !== item.item_check ? { check: next.item_check } : {}),+ ...(command !== undefined ? { check: next.item_check } : {}),...(unfreeze && item.item_frozen_digest ? { unfrozen: item.item_frozen_digest } : {}),});});}+/** Normalize an explicitly supplied check only when its author is the coordinator [V2]. */+function coordinatorCheck(agentId, command) {+ if (command === undefined) return undefined;+ if (agentId !== COORDINATOR) {+ throw new Refused('COORDINATOR_CHECK', 'only the coordinator sets or edits an item check; ask your coordinator to supply --check');+ }+ if (typeof command !== 'string') throw new Refused('BAD_CHECK', 'an item check is a command string; ask your coordinator to supply --check "<command>"');+ return command.trim();+}++/** Read the current check's setter from immutable edits, or its original item author [V2]. */+export function itemCheckAuthor(board, id) {+ const item = itemById(board, id);+ const edits = board.db.prepare("SELECT event_by, event_detail FROM event WHERE item_id = ? AND event_kind = 'edit' ORDER BY event_id DESC").all(id);+ for (const edit of edits) {+ let detail;+ try { detail = JSON.parse(edit.event_detail); }+ catch { return null; }+ if (detail && Object.hasOwn(detail, 'check')) return detail.check === item.item_check ? edit.event_by : null;+ }+ return item.item_created_by;+}+/*** The refusal codes src/machine.js declares for a guard of a move: the guard's own and any* additional typed refusals, or for the state check, the move's.diff --git a/src/cli.js b/src/cli.jsindex ffb6ccae..9def42ba 100644--- a/src/cli.js+++ b/src/cli.js@@ -102,7 +102,8 @@ Workpullboard next --verify reserve the next submitted item you can check;pullboard next --verify <id> reserve that submitted item insteadin the main checkout, verifying needs --as coordinator- pullboard check [id] run your item's check, the command that proves it (the project gate is pullboard gate)+ pullboard check [id] [--yes] show and run your item's check; --yes confirms a check set by someone else+ the command and its author print first; the project gate is pullboard gatepullboard claim <id> take or renew a lease; the first claim freezes the criterionpullboard release <id> hand it backpullboard submit <id> needs a clean tree and the gate green at HEAD (alias: done)@@ -175,6 +176,7 @@ const OPTIONS = {family: { type: 'string' },as: { type: 'string' },check: { type: 'string' },+ yes: { type: 'boolean' },agent: { type: 'string' },'agent-light': { type: 'string' },'agent-mid': { type: 'string' },@@ -1361,7 +1363,7 @@ function workCommands(io, args) {after,brief: briefInLane(ctx, first, briefArg(io, values) ?? ''),route: values.route ?? 'strong',- check: values.check ?? '',+ check: values.check,});io.result?.({ item: store.getItem(board, id) });io.say(`#${id}`);@@ -1395,18 +1397,30 @@ function workCommands(io, args) {run: () => runItems(io, values, { context, withBoard, whoAmI, nextOnce, submitHere, freezer }),sweep: () => act((ctx, board, me) => sweepHere(ctx, board, me, values)),next: () => nextHere(io, { ...values, verifyId: first }),- check: () => {+ check: async () => {const ctx = context(io);- const item = withBoard(ctx, (board) => {- if (first) return store.getItem(board, idArg(first));- const me = whoAmI(ctx, board);- const held = store.listItems(board).find((entry) => entry.item_status === 'claimed' && entry.item_owner === me.id && entry.item_parent_id === null);+ const { item, author, caller } = withBoard(ctx, (board) => {+ const me = first ? (ctx.info.isMain ? { id: COORDINATOR } : { id: store.agentAt(board, ctx.info.root)?.agent_id }) : whoAmI(ctx, board);+ const held = first ? store.getItem(board, idArg(first))+ : store.listItems(board).find((entry) => entry.item_status === 'claimed' && entry.item_owner === me.id && entry.item_parent_id === null);if (!held) throw new Refused('NOT_HOLDING', 'you hold no item; name one, pullboard check <id>, or run the project gate: pullboard gate');- return held;+ return { item: held, author: store.itemCheckAuthor(board, held.item_id), caller: me.id };});if (!item.item_check) throw new Refused('NO_CHECK', `#${item.item_id} has no check command; its proof is the project gate: pullboard gate`);+ const by = author || 'unknown (legacy)';+ const notice = `check #${item.item_id} set by ${by}: ${item.item_check}`;+ if (values.json) io.stderr.write(`${notice}\n`);+ else io.say(notice);+ if (!values.yes && (!author || author !== caller)) {+ if (values.json) io.stderr.write('Run this check? [y/N]\n');+ else io.err('Run this check? [y/N]');+ const answer = await firstInputLine(io.stdin);+ if (!/^y(?:es)?$/iu.test(answer.trim())) {+ throw new Refused('CHECK_CONFIRM', `the check set by ${by} was not run: ${item.item_check}; run pullboard check ${item.item_id} --yes after reading the command, or answer yes at the prompt`);+ }+ }const run = runShell(ctx.info.root, item.item_check);- io.result?.({ id: item.item_id, green: run.isGreen, seconds: run.seconds, check: item.item_check, report: run.isGreen ? '' : digestOf(run.output) });+ io.result?.({ id: item.item_id, green: run.isGreen, seconds: run.seconds, check: item.item_check, by, report: run.isGreen ? '' : digestOf(run.output) });io.say(`check ${run.isGreen ? 'green' : 'red'} in ${run.seconds}s: ${item.item_check}`);if (!run.isGreen) io.say(digestOf(run.output).replace(/^/gm, ' '));return run.isGreen ? 0 : 1;@@ -1687,6 +1701,19 @@ function specCommand(io, { first, second, rest, values }) {throw new Refused('USAGE', 'pullboard spec --json | check | view | show <id> | unmet [--must] | signoff <ids> [--by <principal>] | signers add');}+/** Read one consent line without waiting for EOF in an interactive terminal [V2]. */+async function firstInputLine(stdin) {+ if (!stdin) return '';+ let text = '';+ for await (const chunk of stdin) {+ text += chunk.toString();+ const newline = text.indexOf('\n');+ if (newline >= 0) return text.slice(0, newline);+ if (text.length > 256) return '';+ }+ return text;+}+/*** Read everything git writes on a hook's stdin, or nothing when run by hand.*diff --git a/test/check.test.js b/test/check.test.jsnew file mode 100644index 00000000..6e46c0a6--- /dev/null+++ b/test/check.test.js@@ -0,0 +1,234 @@+/** Coordinator-owned check commands and explicit caller consent [V2,N23]. */+import assert from 'node:assert/strict';+import { execFileSync, spawn, spawnSync } from 'node:child_process';+import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join, resolve } from 'node:path';+import { DatabaseSync } from 'node:sqlite';+import { after, test } from 'node:test';++const BIN = resolve(import.meta.dirname, '../bin/pullboard.js');+const TEMP_DIRS = [];+const SPEC = `# Check ownership fixture++## G · Goals+- G1 [approved, must] The fixture keeps its board. | gate: true+`;++after(() => {+ for (const dir of TEMP_DIRS) rmSync(dir, { recursive: true, force: true });+});++/** Quote a literal executable path for the fixture hook's POSIX shim. */+function shellWord(value) {+ return `'${value.replaceAll("'", "'\\''")}'`;+}++/** Create an isolated Git fixture with a real CLI process runner. */+function sandbox() {+ const dir = mkdtempSync(join(tmpdir(), 'pullboard-check-owner-'));+ TEMP_DIRS.push(dir);+ const bin = join(dir, 'bin');+ mkdirSync(bin);+ writeFileSync(join(bin, 'pullboard'), `#!/bin/sh\nexec ${shellWord(process.execPath)} ${shellWord(BIN)} "$@"\n`);+ chmodSync(join(bin, 'pullboard'), 0o755);+ const env = {+ ...process.env,+ PATH: `${bin}:${process.env.PATH}`,+ GIT_CONFIG_GLOBAL: '/dev/null',+ GIT_CONFIG_NOSYSTEM: '1',+ GIT_AUTHOR_NAME: 'Check owner test',+ GIT_AUTHOR_EMAIL: '[email protected]',+ GIT_COMMITTER_NAME: 'Check owner test',+ GIT_COMMITTER_EMAIL: '[email protected]',+ PULLBOARD_HOME: join(dir, 'pullboard-home'),+ };+ /** Run Git with private fixture identity and config. */+ const git = (cwd, ...args) => execFileSync('git', args, { cwd, env, encoding: 'utf8', stdio: 'pipe' }).trim();+ /** Run the production CLI in a separate process, optionally with piped stdin. */+ const run = (cwd, args, input) => spawnSync(process.execPath, [BIN, ...args], {+ cwd, env, encoding: 'utf8', timeout: 10_000, ...(input === undefined ? {} : { input }),+ });+ return { dir, env, git, run };+}++/** Initialize the board and register a real worktree joined to the web lane. */+function project() {+ const box = sandbox();+ const repo = join(box.dir, 'repo');+ mkdirSync(repo);+ box.git(repo, 'init', '-q', '-b', 'main');+ const initialized = box.run(repo, ['init']);+ assert.equal(initialized.status, 0, initialized.stderr);+ const configPath = join(repo, 'pullboard.json');+ const config = JSON.parse(readFileSync(configPath, 'utf8'));+ writeFileSync(configPath, `${JSON.stringify({+ ...config,+ gate: 'true',+ spec: 'SPEC.md',+ lanes: { web: { owns: ['web/'], specs: ['G1'] } },+ shared: [],+ }, null, 2)}\n`);+ writeFileSync(join(repo, 'SPEC.md'), SPEC);+ box.git(repo, 'add', '-A');+ box.git(repo, 'commit', '-q', '-m', 'chore: set up check ownership fixture');+ const web = join(box.dir, 'web-1');+ box.git(repo, 'worktree', 'add', '-q', web, '-b', 'web/one');+ const joined = box.run(web, ['join', 'web']);+ assert.equal(joined.status, 0, joined.stderr);+ return { ...box, repo, web };+}++/** Open the actual board database read-only and run one scalar query. */+function queryBoard(box, sql, ...params) {+ const db = new DatabaseSync(join(box.repo, '.git', 'pullboard', 'board.sqlite'), { readOnly: true });+ try {+ return db.prepare(sql).get(...params);+ } finally {+ db.close();+ }+}++/** Build a harmless project check that writes a distinct marker in its cwd. */+function markerCheck(filename) {+ const source = `require('node:fs').writeFileSync(${JSON.stringify(filename)}, 'ran')`;+ return `${shellWord(process.execPath)} -e ${shellWord(source)}`;+}++/** Add a check-bearing item as the coordinator and return its persisted id. */+function addCheckedItem(box, title, command) {+ const result = box.run(box.repo, ['add', 'coordinator', title, '--check', command, '--json']);+ assert.equal(result.status, 0, result.stderr);+ return JSON.parse(result.stdout).item.item_id;+}++/** Prompt the spawned agent CLI only after capturing its setter and exact command text. */+async function confirmInteractively(box, itemId, command, markerFile, json = false) {+ const child = spawn(process.execPath, [BIN, 'check', String(itemId), ...(json ? ['--json'] : [])], {+ cwd: box.web,+ env: box.env,+ stdio: ['pipe', 'pipe', 'pipe'],+ });+ let stdout = '';+ let stderr = '';+ let sent = false;+ let promptResolve;+ let promptReject;+ const prompt = new Promise((resolvePrompt, rejectPrompt) => {+ promptResolve = resolvePrompt;+ promptReject = rejectPrompt;+ });+ /** Send consent only after both the command attribution and its question are visible. */+ function answerPrompt() {+ const notice = json ? stderr : stdout;+ if (sent || !/set by coordinator/iu.test(notice) || !notice.includes(command) || !/Run this check\?/u.test(stderr)) return;+ sent = true;+ try {+ assert.equal(existsSync(markerFile), false, 'the check has not run before the setter, command and consent question are displayed');+ promptResolve();+ child.stdin.end('yes\n');+ } catch (error) { promptReject(error); child.kill('SIGKILL'); }+ }+ child.stdout.setEncoding('utf8').on('data', (chunk) => { stdout += chunk; answerPrompt(); });+ child.stderr.setEncoding('utf8').on('data', (chunk) => { stderr += chunk; answerPrompt(); });+ child.once('error', promptReject);+ const closed = new Promise((resolveClose, rejectClose) => {+ child.once('close', (code, signal) => resolveClose({ code, signal }));+ child.once('error', rejectClose);+ });+ const timer = setTimeout(() => {+ promptReject(new Error('timed out waiting for the coordinator check prompt'));+ child.kill('SIGKILL');+ }, 10_000);+ try {+ await prompt;+ const result = await closed;+ assert.equal(result.signal, null);+ return { ...result, stdout, stderr };+ } catch (error) {+ child.kill('SIGKILL');+ await Promise.race([closed, new Promise((resolveClose) => setTimeout(resolveClose, 1_000))]);+ throw error;+ } finally {+ clearTimeout(timer);+ }+}++test('[V2,N23] only the coordinator sets checks and agents confirm them before execution', async () => {+ const box = project();+ const itemCountBefore = queryBoard(box, 'SELECT COUNT(*) AS count FROM item').count;+ const eventCountBefore = queryBoard(box, 'SELECT COUNT(*) AS count FROM event').count;+ const forbiddenCreate = box.run(box.web, ['add', 'web', 'Agent supplied check', '--check', 'true', '--json']);+ assert.equal(forbiddenCreate.status, 1, forbiddenCreate.stderr);+ assert.equal(JSON.parse(forbiddenCreate.stdout).error.code, 'COORDINATOR_CHECK');+ assert.equal(queryBoard(box, 'SELECT COUNT(*) AS count FROM item').count, itemCountBefore, 'refusal adds no item');+ assert.equal(queryBoard(box, 'SELECT COUNT(*) AS count FROM event').count, eventCountBefore, 'refusal adds no event');++ const ordinary = box.run(box.web, ['add', 'web', 'Agent ordinary item', '--json']);+ assert.equal(ordinary.status, 0, ordinary.stderr);+ const ordinaryId = JSON.parse(ordinary.stdout).item.item_id;+ const rowBefore = queryBoard(box, 'SELECT item_title, item_check, item_updated_at FROM item WHERE item_id = ?', ordinaryId);+ const eventsBeforeEdit = queryBoard(box, 'SELECT COUNT(*) AS count FROM event').count;+ const forbiddenEdit = box.run(box.web, ['edit', String(ordinaryId), '--check', 'true', '--json']);+ assert.equal(forbiddenEdit.status, 1, forbiddenEdit.stderr);+ assert.equal(JSON.parse(forbiddenEdit.stdout).error.code, 'COORDINATOR_CHECK');+ assert.deepEqual(queryBoard(box, 'SELECT item_title, item_check, item_updated_at FROM item WHERE item_id = ?', ordinaryId), rowBefore);+ assert.equal(queryBoard(box, 'SELECT COUNT(*) AS count FROM event').count, eventsBeforeEdit, 'refused edit changes no event');++ for (const args of [+ ['add', 'web', 'Empty agent check', '--check', '', '--json'],+ ['edit', String(ordinaryId), '--check', '', '--json'],+ ]) {+ const refused = box.run(box.web, args);+ assert.equal(refused.status, 1, 'explicitly setting or clearing an empty check also belongs to the coordinator');+ assert.equal(JSON.parse(refused.stdout).error.code, 'COORDINATOR_CHECK');+ }++ const coordinatorCommand = markerCheck('check-ran-coordinator.txt');+ const coordinatorId = addCheckedItem(box, 'Coordinator check', coordinatorCommand);+ const coordinatorResult = box.run(box.repo, ['check', String(coordinatorId)]);+ assert.equal(coordinatorResult.status, 0, coordinatorResult.stderr);+ assert.match(coordinatorResult.stdout, /set by coordinator/iu, 'even the setter sees the command attribution');+ assert.ok(coordinatorResult.stdout.includes(coordinatorCommand), 'the exact command is printed before execution');+ assert.doesNotMatch(coordinatorResult.stderr, /Run this check/iu, 'the setter needs no consent prompt');+ assert.equal(readFileSync(join(box.repo, 'check-ran-coordinator.txt'), 'utf8'), 'ran');++ const interactiveCommand = markerCheck('check-ran-interactive.txt');+ const interactiveId = ordinaryId;+ const authored = box.run(box.repo, ['edit', String(interactiveId), '--check', interactiveCommand, '--json']);+ assert.equal(authored.status, 0, authored.stdout + authored.stderr);+ assert.equal(queryBoard(box, 'SELECT item_created_by FROM item WHERE item_id = ?', interactiveId).item_created_by, 'web-1',+ 'the check setter is derived from the edit, independently of the item creator');+ const eofRefusal = box.run(box.web, ['check', String(interactiveId), '--json'], '');+ assert.equal(eofRefusal.status, 1, eofRefusal.stderr);+ assert.equal(JSON.parse(eofRefusal.stdout).error.code, 'CHECK_CONFIRM');+ assert.ok(eofRefusal.stderr.includes(interactiveCommand), 'JSON mode prints the exact command before requesting consent');+ assert.match(eofRefusal.stderr, /set by coordinator[\s\S]*Run this check\?/u);+ const interactiveMarker = join(box.web, 'check-ran-interactive.txt');+ assert.equal(existsSync(interactiveMarker), false,+ 'EOF refusal runs no check command');+ const declined = box.run(box.web, ['check', String(interactiveId), '--json'], 'no\n');+ assert.equal(declined.status, 1);+ assert.equal(JSON.parse(declined.stdout).error.code, 'CHECK_CONFIRM');+ assert.equal(existsSync(interactiveMarker), false, 'declining the prompt also executes no command');++ const confirmed = await confirmInteractively(box, interactiveId, interactiveCommand, interactiveMarker);+ assert.equal(confirmed.code, 0, `${confirmed.stdout}${confirmed.stderr}`);+ assert.match(confirmed.stdout, /set by coordinator/iu);+ assert.ok(confirmed.stdout.includes(interactiveCommand), 'the prompt shows the exact command before confirmation');+ assert.equal(readFileSync(interactiveMarker, 'utf8'), 'ran');++ rmSync(interactiveMarker);+ const jsonConfirmed = await confirmInteractively(box, interactiveId, interactiveCommand, interactiveMarker, true);+ assert.equal(jsonConfirmed.code, 0, jsonConfirmed.stderr);+ assert.equal(JSON.parse(jsonConfirmed.stdout).by, 'coordinator', 'JSON remains one document while consent notices print immediately on stderr');+ assert.equal(readFileSync(interactiveMarker, 'utf8'), 'ran');++ const yesCommand = markerCheck('check-ran-yes.txt');+ const yesId = addCheckedItem(box, 'Confirmed by flag', yesCommand);+ const yesResult = box.run(box.web, ['check', String(yesId), '--yes', '--json']);+ assert.equal(yesResult.status, 0, yesResult.stderr);+ assert.equal(JSON.parse(yesResult.stdout).by, 'coordinator', 'JSON retains check attribution');+ assert.equal(JSON.parse(yesResult.stdout).check, yesCommand);+ assert.equal(readFileSync(join(box.web, 'check-ran-yes.txt'), 'utf8'), 'ran');+});diff --git a/test/e2e.test.js b/test/e2e.test.jsindex a6593677..06b3cc42 100644--- a/test/e2e.test.js+++ b/test/e2e.test.js@@ -1357,16 +1357,17 @@ test('check runs the item\'s own check command, yours by default, and prints a dbox.run(box.repo, 'add', 'web', 'Loose', '--specs', 'G1');assert.match(box.run(box.web, 'check').err, /NOT_HOLDING.*pullboard gate/);box.run(box.web, 'claim', '1');- const red = box.run(box.web, 'check');+ const red = box.run(box.web, 'check', '--yes');assert.equal(red.code, 1);- assert.match(red.out, /^check red in \d+s: test -f web\/a.html/);+ assert.match(red.out, /^check red in \d+s: test -f web\/a.html/m);assert.match(red.out, /\n {2}not ok 1 - web\/a.html is missing\n/);mkdirSync(join(box.web, 'web'));writeFileSync(join(box.web, 'web', 'a.html'), '<h1>Hi</h1>');- const green = box.run(box.web, 'check');+ const green = box.run(box.web, 'check', '--yes');assert.equal(green.code, 0, green.out);- assert.match(green.out, /^check green in \d+s: test -f web\/a.html/);- assert.equal(green.out.split('\n').filter(Boolean).length, 1);+ assert.match(green.out, /^check green in \d+s: test -f web\/a.html/m);+ assert.equal(green.out.split('\n').filter(Boolean).length, 2);+ assert.match(green.out, /^check #1 set by coordinator:/);assert.equal(box.run(box.repo, 'check', '1').code, 1, 'named, from another checkout: there the file is missing');assert.match(box.run(box.web, 'check', '2').err, /NO_CHECK.*#2 has no check command/);assert.match(box.run(box.repo, 'help').out, /pullboard check \[id\]/);