Skip to content

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.

fix(cli): preserve person decision inspection [B26]

Corey Olsonb861d3d170c9
diff --git a/src/cli.js b/src/cli.js
index b0108924..66c82026 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -309,7 +309,6 @@ function personMode(ctx, me, values) {
if (!ctx.info.isMain || me.id !== COORDINATOR) {
throw new Refused('B26_PERSON_ANSWER', 'only the main checkout can act as the person; ask your coordinator to answer or pass this decision');
}
- requirePersonChannel(ctx.io.personChannel);
return true;
}
@@ -1473,6 +1472,7 @@ function workCommands(io, args) {
}),
answer: () => act((ctx, board, me) => {
const asPerson = personMode(ctx, me, values);
+ if (asPerson) requirePersonChannel(ctx.io.personChannel);
const id = store.answerDecision(board, idArg(first), { agentId: me.id, text: [second, ...rest].filter(Boolean).join(' '), lanes: laneNames(ctx.config), asPerson, channel: ctx.io.personChannel ?? 'terminal' });
const ask = store.getShout(board, idArg(first));
io.result?.({ id, answers: ask.shout_id });
diff --git a/test/person.test.js b/test/person.test.js
index 7ff8c489..60c938ec 100644
--- a/test/person.test.js
+++ b/test/person.test.js
@@ -251,6 +251,8 @@ test('[B26,S5] an agent shell cannot append a person sign-off but a plain shell
assert.equal(refused.status, 1, name + ': ' + refused.stdout + refused.stderr);
const error = JSON.parse(refused.stdout).error;
assert.equal(error.code, 'B26_PERSON_CHANNEL', name);
+ const inspected = box.run(box.repo, ['decisions', '--as', 'person', '--json'], { [name]: value });
+ assert.equal(inspected.status, 0, 'read-only inspection does not approve a person call');
assert.match(error.next, /pullboard view/iu, name);
assert.equal(readFileSync(file, 'utf8'), original, name + ' preserves every existing sign-off byte');
}