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(relay): pullboard relay status reports what plain relay does [H5]
Corey Olsona349dac85f5b
diff --git a/src/cli.js b/src/cli.jsindex 2b87a3c3..98a74ad7 100644--- a/src/cli.js+++ b/src/cli.js@@ -3826,9 +3826,10 @@ async function runCommand(argv, io) {const ctx = context(io);return await relayJoin(ctx.info.root, second, values.url, io);}- if (second || rest.length || (first && !['on', 'off'].includes(first)) || (values.url && first !== 'on')) throw new Refused('USAGE', 'pullboard relay [on|off] [--url <address>]');+ if (second || rest.length || (first && !['on', 'off', 'status'].includes(first)) || (values.url && first !== 'on')) throw new Refused('USAGE', 'pullboard relay [status|on|off] [--url <address>]');const ctx = context(io);- if (!first) { await syncRelay(ctx.info.root, io); await executePersonRequests(ctx.info.root, io, main); }+ // pullboard relay status is the named form of plain pullboard relay: the same sync and report.+ if (!first || first === 'status') { await syncRelay(ctx.info.root, io); await executePersonRequests(ctx.info.root, io, main); }const result = first === 'on' ? await relayOn(ctx.info.root, values.url, io): first === 'off' ? await relayOff(ctx.info.root, io) : relayStatus(ctx.info.root);io.result?.(result);diff --git a/src/help.js b/src/help.jsindex cea45525..d4bae9f3 100644--- a/src/help.js+++ b/src/help.js@@ -38,7 +38,7 @@ Set upbehind the session secret in its printed addresspullboard mcp MCP tools over stdio for this worktree's agent, started by its MCP client:board status, show, shout and capture an idea; a person's move is refused- pullboard relay [on|off|pair|join <code>] [--url <address>] link, inspect or unlink this board's sealed relay+ pullboard relay [status|on|off|pair|join <code>] [--url <address>] link, inspect or unlink this board's sealed relayon signs in through GitHub; the address defaults to https://app.pullboard.devpair prints a one-use machine code; join stores it in another clonepullboard relay on --all [--url <address>] link every registered project after one sign-in; pair the phone oncediff --git a/src/templates.js b/src/templates.jsindex c6c970c6..b54e9416 100644--- a/src/templates.js+++ b/src/templates.js@@ -128,7 +128,7 @@ It prints the folder to work in and what to run there first. Every join needs thThe coordinator merges verified items into the main line; builders never merge.-For spare test capacity, use \`pullboard runner add <ssh-host> --slots <n> --browser <n>\`. It registers SSH capacity on this machine; \`pullboard resources\` shows runners and their usage. Only committed source goes to a runner, and board moves stay here.+For spare test capacity, use \`pullboard runner add <ssh-host> --slots <n> --browser <n>\`. It registers SSH capacity on this machine; \`pullboard resources\` shows runners and their usage. Only committed source goes to a runner, and board moves stay here. To see whether this board is linked to the relay, and for which GitHub account, run \`pullboard relay status\`.If your item needs code another lane owns and it is not there yet, shout that lane and take another item. Never copy their code into your lane, and never build another lane's item, even one that was rejected and blocks you: shout that lane and the coordinator. A claim refused as BLOCKED names the item it waits on.diff --git a/test/api.test.js b/test/api.test.jsindex 0dd259bc..24686936 100644--- a/test/api.test.js+++ b/test/api.test.js@@ -958,6 +958,7 @@ test('[A1] every catalog command and subcommand has a real CLI exercise', () =>assert.match(humanImport.stdout, /imported version 1 board tables/);json(source, source.repo, 'relay');+ assert.deepEqual(json(source, source.repo, 'relay', ['status']), json(source, source.repo, 'relay'), 'relay status reports what plain relay reports');json(source, source.repo, 'relay', ['off']);const catalog = json(source, source.repo, 'add', ['app', 'Catalog item', '--criterion', 'catalog coverage'], 'add').item;const landing = json(source, source.repo, 'land', ['--dry-run']);diff --git a/test/relay-setup.test.js b/test/relay-setup.test.jsindex 69ac0674..36bd2c20 100644--- a/test/relay-setup.test.js+++ b/test/relay-setup.test.js@@ -285,11 +285,20 @@ test('relay on --all says who signed in, what it linked and what it waits for [Hassert.equal((finished.stdout.match(/#device=/gu) ?? []).length, 1, 'the pairing secret appears only in the one existing link');const board = JSON.parse(readFileSync(join(box.root, '.git/pullboard/relay.json'), 'utf8')).board;- const status = plainCommand(box.root, box.env, ['relay']);+ const relayRequests = (from) => box.calls.slice(from).map(call => `${call.method} ${call.path.replace(/[0-9a-f]{32}/gu, '<board>')}`);+ const beforeStatus = box.calls.length;+ const status = plainCommand(box.root, box.env, ['relay', 'status']);const shown = await status.done;- assert.equal(shown.code, 0, shown.stderr);+ const statusRequests = relayRequests(beforeStatus);+ assert.equal(shown.code, 0, `pullboard relay status runs: ${shown.stderr}`);const statusLine = shown.stdout.split('\n').find(line => line.startsWith('relay: ')) ?? '';assert.ok(statusLine.startsWith(`relay: repo (board ${board}) `), `relay status names the linked board: ${statusLine}`);assert.ok(statusLine.includes(' is linked for GitHub fixture-user; '), `relay status names the linked account: ${statusLine}`);assert.match(statusLine, /; sequence \d+; \d+ pending uploads$/u, 'relay status still gives the sequence and pending uploads');+ const beforePlain = box.calls.length;+ const plain = await plainCommand(box.root, box.env, ['relay']).done;+ assert.equal(plain.code, 0, plain.stderr);+ assert.equal(plain.stdout, shown.stdout, 'plain pullboard relay prints the same status');+ assert.ok(statusRequests.length > 0, 'relay status syncs with the relay before it reports');+ assert.deepEqual(statusRequests, relayRequests(beforePlain), 'relay status makes the same relay requests as plain relay');});