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(settings): retain native stamps and engine fixtures [H16,C7]
Corey Olson57f5384e1ca6
diff --git a/test/engine.test.js b/test/engine.test.jsindex 9fe2af2d..aaee3785 100644--- a/test/engine.test.js+++ b/test/engine.test.js@@ -664,7 +664,21 @@ test('the engine version is the highest feature engine [C7,V4]', () => {const source = new URL('../src/', import.meta.url);const files = readdirSync(source).filter((file) => /-engine\.js$/u.test(file));assert.deepEqual(Object.keys(ENGINE_REGISTRY), files.map((file) => file.slice(0, -'-engine.js'.length)).sort(), 'every src/*-engine.js leaf is a feature engine, discovered by its file name');- for (const file of files) assert.match(readFileSync(new URL(file, source), 'utf8'), /^export const [A-Z][A-Z0-9_]*_ENGINE = \d+;$/mu, `${file} declares its one engine constant`);+ const pending = [], landed = [];+ for (const file of files) {+ const text = readFileSync(new URL(file, source), 'utf8');+ const declarations = text.split('\n').filter(line => /^export const /u.test(line));+ assert.equal(declarations.length, 1, `${file} declares exactly one engine constant`);+ const match = /^export const [A-Z][A-Z0-9_]*_ENGINE = (?:(\d+)|unassignedEngine\(\));$/u.exec(declarations[0]);+ assert.ok(match, `${file} declares a landed number or the native landing placeholder`);+ if (match[1] !== undefined) landed.push(Number(match[1]));+ else {+ assert.ok(text.split('\n').includes("import { unassignedEngine } from './engine-next.js';"), `${file} imports the actual placeholder resolver`);+ pending.push(file.slice(0, -'-engine.js'.length));+ }+ }+ for (const name of pending) assert.equal(ENGINE_REGISTRY[name], Math.max(0, ...landed) + 1,+ `${name} resolves to the next landed engine until its own merge assigns a permanent number`);assert.doesNotMatch(readFileSync(new URL('machine.js', source), 'utf8'), /Math\.max\([A-Z_]+ENGINE,/u, 'src/machine.js lists no engine by name');});diff --git a/test/relay-credential.test.js b/test/relay-credential.test.jsindex 3ed5d009..398a3fc6 100644--- a/test/relay-credential.test.js+++ b/test/relay-credential.test.js@@ -24,6 +24,7 @@ test('every current operation selects its native actor credential without a secoif (operation === 'release') args = [999999, actor];if (['claim', 'refreeze'].includes(operation)) args = [box.before.tables.item[0].item_id, options];if (operation === 'reserveNextReview') args = [options];+ if (operation === 'setLineSetting') args = [{ agentId: actor, key: 'reviewsFirst', value: true, reason: 'credential fixture', window: { windowMinutes: 60, activeReviewers: 1 } }];if (operation === 'recordHealthFindings') args = [{ agentId: actor, observedRevision: 0, findings: [] }];if (operation === 'recordSpecApprovalBaseline') args = [{ agentId: actor, baseline: { version: 1, file: 'SPEC.md', anchor: null, rows: [] } }];if (operation === 'recordFlakeObservation') args = [{ agentId: actor, lane: box.lane, observation: syntheticFlakeObservation('credential-fixture') }];diff --git a/test/settings.test.js b/test/settings.test.jsindex cf22d655..07b14f2c 100644--- a/test/settings.test.js+++ b/test/settings.test.js@@ -95,7 +95,7 @@ test('a line setting change is a recorded move with its reason and its range [R1const first = store.events(board).findLast(event => event.event_kind === 'line_setting');assert.ok(first, 'the actual CLI records a native board event, not only a local settings file');assert.deepEqual(JSON.parse(first.event_detail), { key: 'reviewsFirst', value: true,- reason: 'Review waiting exceeds the target', window: numbers });+ reason: 'Review waiting exceeds the target', window: numbers, model: 'unknown' });assert.equal(first.event_by, 'coordinator');const values = [['reviewsFirst', false], ['wipPerReviewer', 1.5], ['wipPerReviewer', 3], ['barReady', true],['takeoverMinutes', 15], ['takeoverMinutes', 60], ['landingBatchSize', 1], ['landingBatchSize', 8],