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.

chore(core): merge Rigor notices with engine-44 escalation [D1,B15]

Corey Olson02c0c1ed1700
diff --cc src/board.js
index 0994e935,d0a0f518..4c703b46
--- a/src/board.js
+++ b/src/board.js
@@@ -1662,8 -1609,9 +1667,10 @@@ export function verify(board, id, { age
if (isAccept && check !== undefined) detail.check = check;
if (newReview) detail.review = { commit: review.commit, ...(Object.hasOwn(review, 'head') ? { head: review.head } : {}), trunk: review.trunk, paths: [...review.paths] };
logEvent(board, agentId, verb, id, implies?.length ? { ...detail, implies } : detail);
+ const trigger = board.lastEvent;
+ if (!isAccept) autoEscalateRejectedItem(board, id, engine);
tellVerdictImplications(board, (by, itemId, fact) => logEvent(board, by, 'fact', itemId, fact), id, { seed: impliesId, implies });
+ if (!isAccept) postRigorNotices(board, trigger);
return { decision, reason: code, ...(isAccept && check !== undefined ? { check } : {}) };
});
}
diff --cc src/machine.js
index 212cb068,d033948f..4b28ed38
--- a/src/machine.js
+++ b/src/machine.js
@@@ -9,11 -9,9 +9,13 @@@
* broken copy, and checks the declaration against the refusals board.js and cli.js raise today.
*/
-/** Executable move semantics, carried by every sealed move and retained during replay [H16]. */
+ import { RIGOR_NOTICE_ENGINE } from './rigor-source.js';
-export const ENGINE_VERSION = RIGOR_NOTICE_ENGINE;
++
+/** Executable move semantics, carried by every sealed move and retained during replay [H16]. */
- export const ENGINE_VERSION = 44;
++export const ENGINE_VERSION = Math.max(44, RIGOR_NOTICE_ENGINE);
+
+/** First engine that automatically escalates an item's second rejection at its current route [B15]. */
+export const AUTO_ESCALATE_ENGINE = 44;
/** The engine at which a reject, reopen or person fact can carry a cause key (#713); older moves replay unchanged [D1,H16]. */
export const CAUSE_ENGINE = 30;
diff --cc test/agent-model-engine.test.js
index 01cc8f4b,e3e9e711..836b26fe
--- a/test/agent-model-engine.test.js
+++ b/test/agent-model-engine.test.js
@@@ -5,16 -5,16 +5,19 @@@ import { test } from 'node:test'
import * as store from '../src/board.js';
import { applyEngineMove, prepareEngineMove } from '../src/engine.js';
import { exportBoard, importBoard } from '../src/exchange.js';
- import { AUTO_ESCALATE_ENGINE, ENGINE_VERSION } from '../src/machine.js';
++import { AUTO_ESCALATE_ENGINE } from '../src/machine.js';
+ import { ENGINE_VERSION } from '../src/machine.js';
+ import { RIGOR_NOTICE_ENGINE } from '../src/rigor-source.js';
import { configProblems, defaults, loadConfig } from '../src/config.js';
import { mkdtempSync, rmSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
test('model declarations and event snapshots retain engines 1 through 34 semantics [O8,O3,H16]', (t) => {
+ assert.equal(ENGINE_VERSION, 44, 'engine 44 is the current writer');
+ assert.ok(ENGINE_VERSION >= RIGOR_NOTICE_ENGINE, 'the next writer preserves every historical model snapshot through main engine 33');
assert.ok(ENGINE_VERSION >= HEALTH_SENTINEL_ENGINE, 'the current writer retains the sentinel minimum and historical behavior');
+ assert.equal(AUTO_ESCALATE_ENGINE, ENGINE_VERSION, 'the current writer includes automatic escalation and preserves historical model snapshots');
for (const version of Array.from({ length: ENGINE_VERSION }, (_, index) => index + 1)) {
const board = store.openBoard(':memory:');
t.after(() => store.closeBoard(board));
diff --cc test/pending-refreeze.test.js
index 02cc0663,0caa8e72..f7cb926a
--- a/test/pending-refreeze.test.js
+++ b/test/pending-refreeze.test.js
@@@ -9,7 -9,8 +9,9 @@@ import { test } from 'node:test'
import * as store from '../src/board.js';
import { appliedSequence, applyRelayMove, engineReceipt, prepareEngineMove } from '../src/engine.js';
import { exportBoard, importBoard } from '../src/exchange.js';
- import { AUTO_ESCALATE_ENGINE, ENGINE_VERSION } from '../src/machine.js';
++import { AUTO_ESCALATE_ENGINE } from '../src/machine.js';
+ import { ENGINE_VERSION } from '../src/machine.js';
+ import { RIGOR_NOTICE_ENGINE } from '../src/rigor-source.js';
import { createE2eHelpers } from './e2e-helpers.js';
import { unpackRelease } from './release-archive.js';
@@@ -262,9 -263,8 +264,10 @@@ async function checkDependencyLegacyCli
}
test('dependency edits replay the same on every engine [B3,V2,H16]', async (t) => {
+ assert.equal(ENGINE_VERSION, 44, 'engine 44 is the current writer');
+ assert.ok(ENGINE_VERSION >= RIGOR_NOTICE_ENGINE, 'the next writer retains all recorded dependency-edit behavior');
assert.ok(ENGINE_VERSION >= HEALTH_SENTINEL_ENGINE, 'the current writer retains the sentinel minimum and historical behavior');
+ assert.equal(AUTO_ESCALATE_ENGINE, ENGINE_VERSION, 'the current writer retains recorded dependency-edit behavior and automatic escalation');
const directory = mkdtempSync(join(tmpdir(), 'pullboard-dependency-engines-'));
const cleanup = [];
t.after(() => {