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
test(inbox): snapshot a native answered obligation [E9,E18,N26]
Corey Olsona0e1807469a5
diff --git a/test/inbox-key-fixture.js b/test/inbox-key-fixture.jsindex ea0d5583..2ec9cea7 100644--- a/test/inbox-key-fixture.js+++ b/test/inbox-key-fixture.js@@ -20,17 +20,22 @@ function cursor(box) {return existsSync(file) ? readFileSync(file, 'utf8') : null;}-/** Create a genuine answered decision through the authenticated public CLI before hiding its key. */-export async function prepareKeylessInbox(box, { phoneRequest, receivedRequests }) {- const asked = await box.cli('shout', 'person', 'May this session read without recording delivery?', '--decision');- assert.equal(asked.code, 0, 'the fixture asks a real decision');- const request = await phoneRequest(box, (await box.phoneSession()).token,- { verb: 'answer', item: asked.document.id, args: { text: 'Read without acknowledging until the key returns.' } });- assert.equal((await receivedRequests(box))[request].status, 'done', 'the signed-in phone answers through ordinary authentication');- const exported = await box.cli('export');- const answer = exported.document.tables.shout.find(row => row.shout_answers === asked.document.id);- assert.ok(answer, 'the actual phone answer is recorded on the board');- return { answer: answer.shout_id };+/** Seed ordinary native decision records before relay linking; the real snapshot then carries their history. */+export async function prepareKeylessInbox(box) {+ const result = await box.script(`+ import * as store from ${JSON.stringify(new URL('../src/board.js', import.meta.url).href)};+ import { join } from 'node:path';+ const board = store.openBoard(join(process.cwd(), '.git', 'pullboard', 'board.sqlite'));+ try {+ const question = store.shout(board, { from: 'coordinator', to: 'person',+ text: 'May this session read without recording delivery?', decision: true, lanes: [${JSON.stringify(box.lane)}] });+ const answer = store.answerDecision(board, question, { agentId: 'coordinator', asPerson: true, channel: 'terminal',+ text: 'Read without acknowledging until the key returns.', lanes: [${JSON.stringify(box.lane)}] });+ console.log(JSON.stringify({ answer }));+ } finally { store.closeBoard(board); }+ `);+ assert.equal(result.code, 0, `native fixture setup: ${result.stderr}`);+ return JSON.parse(result.stdout);}/** Preserve both cursors while displaying a real obligation and refusing explicit acknowledgement. */diff --git a/test/team.test.js b/test/team.test.jsindex 74e802af..48cf582c 100644--- a/test/team.test.js+++ b/test/team.test.js@@ -835,6 +835,7 @@ test('every session reads and moves: terminal, SSH, agent, job or CI [E9,E18]',writeFileSync(join(keychainBin, name), `#!/bin/sh\necho "$1" >> ${JSON.stringify(keychainLog)}\n[ "$1" = search ] && exit 1\nexit 0\n`, { mode: 0o755 });}const plainPath = box.env.PATH;+ const inbox = await prepareKeylessInbox(box);box.env.PATH = keychainBin;assert.equal((await box.link()).code, 0, 'relay on links the board on a machine with a keychain');box.env.PATH = plainPath;@@ -846,7 +847,6 @@ test('every session reads and moves: terminal, SSH, agent, job or CI [E9,E18]',// S6b: a session that cannot read the key (SSH, a scheduled job, a locked keychain) still reads the whole board.assert.equal((await box.cli('add', box.lane, 'Read from any session')).code, 0);- const inbox = await prepareKeylessInbox(box, { phoneRequest, receivedRequests });renameSync(keys, keys + '.parked');try {for (const command of [['list'], ['show', '1'], ['inbox'], ['whoami'], ['status'], ['resume'], ['log']]) {