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(core): retain missing-object failure diagnostics [V4]

Corey Olsonf7dfeac7891e
diff --git a/test/review-queue.test.js b/test/review-queue.test.js
index 1051f00b..7fa24dcb 100644
--- a/test/review-queue.test.js
+++ b/test/review-queue.test.js
@@ -385,8 +385,10 @@ test('automatic conflict returns bind native evidence and replay without caller
}
const left = replica('valid-left'), right = replica('valid-right');
const missing = { ...move, args: [conflicted, { agentId: actor, computedConflict: rehash({ trunk: 'f'.repeat(40) }) }] };
- assert.throws(() => applyEngineMove(left, missing, { sequence: 1, at: new Date().toISOString() }),
- error => error.code === 'MERGE_CHECK_FAILED', 'missing immutable objects refuse by name until fetched');
+ assert.throws(() => {
+ const unexpected = applyEngineMove(left, missing, { sequence: 1, at: new Date().toISOString() });
+ t.diagnostic('unexpected missing-object outcome: ' + JSON.stringify({ move: missing, outcome: unexpected }));
+ }, error => error.code === 'MERGE_CHECK_FAILED', 'missing immutable objects refuse by name until fetched');
assert.equal(appliedSequence(left), 0, 'a missing-object refusal does not consume the position needed after fetch');
assert.throws(() => prepareEngineMove(left, 'reopen', [conflicted, { agentId: actor, automaticConflict: true }]),
error => error.code === 'COORDINATOR_ONLY', 'an imported replica cannot fabricate native origin evidence');