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(doctrine): seed legacy approval rules before init [D1,D2,S19]

Corey Olson68d599200680
diff --git a/test/approved-row-changes.test.js b/test/approved-row-changes.test.js
index a56688fc..4de71167 100644
--- a/test/approved-row-changes.test.js
+++ b/test/approved-row-changes.test.js
@@ -69,13 +69,14 @@ function fixture(t, { signer = false, doctrine = false } = {}) {
git('init', '-q', '-b', 'main');
git('config', 'user.name', 'Approved-row fixture');
git('config', 'user.email', '[email protected]');
+ // Seed the legacy file before init so the conventional rename test starts with one doctrine.
+ if (doctrine) writeFileSync(join(root, 'PRACTICE.md'), '# Local rules\n\n## L · Local\n- L1 [approved] Keep the local rule exact. | gate: true\n');
const initialized = pullboard('init');
assert.equal(initialized.status, 0, `${initialized.stdout}${initialized.stderr}`);
const configPath = join(root, 'pullboard.json');
const config = JSON.parse(readFileSync(configPath, 'utf8'));
writeFileSync(configPath, `${JSON.stringify({ ...config, gate: 'true', spec: 'SPEC.md' }, null, 2)}\n`);
writeFileSync(join(root, 'SPEC.md'), SPEC);
- if (doctrine) writeFileSync(join(root, 'PRACTICE.md'), '# Local rules\n\n## L · Local\n- L1 [approved] Keep the local rule exact. | gate: true\n');
mkdirSync(join(root, 'test'));
writeFileSync(join(root, 'test', 'promise.test.js'), "import assert from 'node:assert/strict';\nimport { readFileSync } from 'node:fs';\nimport { test } from 'node:test';\ntest('approved promise remains documented [G1]', () => { assert.match(readFileSync('SPEC.md', 'utf8'), /G1 \\[approved/); });\n");
git('add', '-A');