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(spec): shim the grammar repair hook fixture [A5,S8]

Corey Olson8675cc6293be
diff --git a/test/spec.test.js b/test/spec.test.js
index 13c8b81b..123fc673 100644
--- a/test/spec.test.js
+++ b/test/spec.test.js
@@ -102,8 +102,13 @@ test('real spec check refuses future grammar in either configured file [A5]', (t
test('a grammar-1 repair can commit after grammar 2 was already recorded [A5,S8]', (t) => {
const root = realpathSync(mkdtempSync(join(tmpdir(), 'pullboard-grammar-history-')));
t.after(() => rmSync(root, { recursive: true, force: true }));
+ const bin = join(root, '.bin');
+ mkdirSync(bin);
+ writeFileSync(join(bin, 'pullboard'), `#!/bin/sh\nexec "${process.execPath}" "${resolve(import.meta.dirname, '../bin/pullboard.js')}" "$@"\n`);
+ chmodSync(join(bin, 'pullboard'), 0o755);
const env = {
...process.env,
+ PATH: `${bin}:${process.env.PATH}`,
GIT_CONFIG_GLOBAL: '/dev/null',
GIT_CONFIG_NOSYSTEM: '1',
GIT_AUTHOR_NAME: 'Test Agent',