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(person): retain optional signoff confirmation receipt [E22,A1]

Corey Olson41c941853eb3
diff --git a/src/commands/spec.js b/src/commands/spec.js
index efaa934e..cd7b9b8d 100644
--- a/src/commands/spec.js
+++ b/src/commands/spec.js
@@ -247,7 +247,7 @@ export async function specCommand(io, { first, second, rest, values }) {
if (missing.length) throw new Refused('NO_EVIDENCE', `${missing.join(', ')} has no evidence; build it or cite its id in a test first`);
const completed = await requireSignedPerson(ctx, board, whoAmI(ctx, board), { verb: 'spec-approve', args: { ids: ids.join(',') } }, rows.map(({ id, text }) => ({ id, text })));
if (completed === null) throw new Refused('PERSON_SIGNED', 'confirm optional sign-off as a row approval through its original terminal request', 'run spec approve <ids> with your passkey');
- io.result?.({ count: ids.length, by: 'person', ids, evidence });
+ io.result?.({ count: ids.length, by: 'person', ids, evidence, ...io.personConfirmation });
return completed;
});
}
diff --git a/src/person-confirmation.js b/src/person-confirmation.js
index c853f300..b8411dd4 100644
--- a/src/person-confirmation.js
+++ b/src/person-confirmation.js
@@ -46,6 +46,7 @@ export async function awaitPersonConfirmation(ctx, board, request, where, { wait
if (record?.status === 'done' || record?.coordinatorRequest && Object.hasOwn(record, 'result')) {
const result = { ...confirmedResult(record), request: request.id, status: record.status,
...(record.coordinatorRequest ? { coordinatorRequest: record.coordinatorRequest } : {}) };
+ ctx.io.personConfirmation = { request: result.request, status: result.status };
ctx.io.result?.(result);
ctx.io.say(`passkey-confirmed request ${request.id} ${record.coordinatorRequest ? 'sent to the coordinator' : 'completed'}`);
return 0;