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.

test(rigor): a draft row carries its evidence and proof [D1,D3,S1]

Corey Olsonad514113f690
diff --git a/test/api.test.js b/test/api.test.js
index 49f94951..82375819 100644
--- a/test/api.test.js
+++ b/test/api.test.js
@@ -1024,7 +1024,7 @@ test('[A1] every catalog command and subcommand has a real CLI exercise', () =>
json(source, source.repo, 'submit', [String(caused.item_id)]);
json(source, source.repo, 'reopen', [String(caused.item_id), '--note', 'the bar cites the wrong row', '--cause', 'row:G1']);
}
- const red = source.git(source.repo, 'rev-parse', 'HEAD').stdout.trim();
+ const red = source.git(source.repo, 'rev-parse', 'HEAD');
mkdirSync(join(source.repo, 'app'), { recursive: true });
writeFileSync(join(source.repo, 'app', 'fixed.txt'), 'fixed\n');
source.git(source.repo, 'add', 'app/fixed.txt');
diff --git a/test/rigor.test.js b/test/rigor.test.js
index 49a8a261..613d6ca7 100644
--- a/test/rigor.test.js
+++ b/test/rigor.test.js
@@ -297,12 +297,12 @@ test('a repeated cause becomes a draft row with its proof [D1,D3,S1]', () => {
writeFileSync(join(box.repo, 'src', 'page.js'), '// TODO: escape the title\nexport const page = 1;\n');
box.git('add', 'src/page.js');
box.git('commit', '-q', '-m', 'chore: add the page');
- const bad = box.git('rev-parse', 'HEAD').stdout.trim();
+ const bad = box.git('rev-parse', 'HEAD');
writeFileSync(join(box.repo, 'src', 'page.js'), 'export const page = 1;\n');
writeFileSync(join(box.repo, 'fixed.txt'), 'fixed\n');
box.git('add', 'src/page.js', 'fixed.txt');
box.git('commit', '-q', '-m', 'chore: escape the title');
- const fix = box.git('rev-parse', 'HEAD').stdout.trim();
+ const fix = box.git('rev-parse', 'HEAD');
const board = history(box.file);
const items = ['Work one', 'Work two', 'Product one', 'Product two', 'Both one', 'Both two', 'Lonely'].map(board.add);