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.

fix(test): retain historical cursors on redelivery [H16]

Corey Olson97a3c43f1052
diff --git a/test/submit-invariants.test.js b/test/submit-invariants.test.js
index eb7d4fbc..bf751d67 100644
--- a/test/submit-invariants.test.js
+++ b/test/submit-invariants.test.js
@@ -300,10 +300,10 @@ test('a landing escape is proposed as a submit invariant only when modern submit
assert.equal(appliedSequence(target), sourcePrefix + 1, 'a typed refusal still consumes its authenticated relay position');
assert.deepEqual(engineReceipt(target, move.id)?.outcome, result, 'the refusal is retained as the move receipt');
assert.deepEqual(applyRelayMove(target, move, ordered), result, 'redelivery returns the same durable refusal');
- assert.equal(appliedSequence(target), 1, 'redelivery does not advance twice');
+ assert.equal(appliedSequence(target), sourcePrefix + 1, 'redelivery does not advance twice');
assert.equal(store.events(target).length, count, 'redelivery adds no submit event');
assert.deepEqual(applyRelayMove(replica, move, ordered), result, 'another replica reaches the same refusal');
- assert.equal(appliedSequence(replica), 1, 'both replicas retain the same ordered prefix');
+ assert.equal(appliedSequence(replica), sourcePrefix + 1, 'both replicas retain the same ordered prefix');
assert.equal(store.getItem(replica, id).item_status, 'claimed');
assert.deepEqual(store.events(replica), store.events(target), 'neither replica records a submit event');
assert.deepEqual(engineReceipt(replica, move.id), engineReceipt(target, move.id), 'replica refusal receipts agree');