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(setup): route stale approval requests to coordinator [S1,B26]
Corey Olson965e3cb7c681
diff --git a/src/cli.js b/src/cli.jsindex 9efc88eb..4a37c36a 100644--- a/src/cli.js+++ b/src/cli.js@@ -1642,7 +1642,7 @@ function boardSetup(ctx, card, identity) {// A pending question takes an answer, a draft row an approval: each gets the command that decides it.const { personCommand, verb, seatQuestion, seatNext } = personAsk(drafted);return { step: 1, total: 5, ...current, steps, waitingOn: 'person-approval', rowIds, ...(toApply.length ? { approvedRowIds: toApply.map(row => row.id) } : {}),- question: (seat ? seatQuestion : `Waiting for the person to ${verb} ${names}.`) + drafted.filter(row => row.staleDecision).map(row => ` ${row.stage}`).join(''), command,+ question: ctx.io.guidance((seat ? seatQuestion : `Waiting for the person to ${verb} ${names}.`) + drafted.filter(row => row.staleDecision).map(row => ` ${row.stage}`).join('')), command,personCommand,afterAnswer: (toApply.length ? `The person already approved ${toApply.map(row => row.id).join(', ')}; pullboard spec apply writes them. ` : '') + 'The person approves draft rows and answers questions in Pullboard View or their own terminal; then the coordinator runs pullboard spec apply.',meanwhile: seat ? 'While waiting, review independent approved work or send questions to the coordinator with pullboard shout coordinator "<what is needed>" --decision.' : 'While waiting, the agent may review independent approved work or prepare questions for the person.',diff --git a/test/row-decision-guidance.test.js b/test/row-decision-guidance.test.jsnew file mode 100644index 00000000..aef523ba--- /dev/null+++ b/test/row-decision-guidance.test.js@@ -0,0 +1,32 @@+/** Independent signed-row recovery guidance follows the coordinator boundary for agent seats [S1,B26]. */+import assert from 'node:assert/strict';+import { readFileSync, writeFileSync } from 'node:fs';+import { join } from 'node:path';+import { test } from 'node:test';+import { createE2eHelpers } from './e2e-helpers.js';+import { runFixtureChild } from './fixture-child.js';++test('a stale signed approval keeps agent recovery requests with the coordinator [S1,B26]', t => {+ const helpers = createE2eHelpers();+ t.after(helpers.cleanup);+ const box = helpers.project('true');+ const original = readFileSync(join(box.repo, 'SPEC.md'), 'utf8').replace('G1 [approved, must]', 'G1 [draft, must]');+ for (const root of [box.repo, box.web]) writeFileSync(join(root, 'SPEC.md'), original);+ const key = join(box.dir, 'review-signing-key');+ const made = runFixtureChild('ssh-keygen', ['-q', '-t', 'ed25519', '-N', '', '-f', key], { env: box.env, encoding: 'utf8' });+ assert.equal(made.status, 0, made.stderr);+ box.git(box.repo, 'config', 'user.signingkey', key);+ const signer = box.run(box.repo, 'spec', 'signers', 'add', '--key', key + '.pub', '--by', 'CO', '--json');+ assert.equal(signer.code, 0, `${signer.out}\n${signer.err}`);+ const approved = box.run(box.repo, 'spec', 'approve', 'G1', '--by', 'CO', '--json');+ assert.equal(approved.code, 0, `${approved.out}\n${approved.err}`);+ assert.ok(JSON.parse(approved.out).decisions[0].signature, 'the pending approval is genuinely signed');+ const changed = original.replace('| gate: web test', '| gate: web changed-test');+ assert.notEqual(changed, original);+ for (const root of [box.repo, box.web]) writeFileSync(join(root, 'SPEC.md'), changed);+ const resumed = box.run(box.web, 'resume', '--json');+ assert.equal(resumed.code, 0, `${resumed.out}\n${resumed.err}`);+ const setup = JSON.parse(resumed.out).setup;+ assert.match(setup.question, /coordinator/u, 'the actual joined agent is directed through its coordinator');+ assert.doesNotMatch(setup.question, /(?:^|[.;]\s*)ask the person\b/iu, 'a generated stale warning must not append a direct person request to agent guidance');+});