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(reopen): match replay cause metadata [V2,V6,H16]

Corey Olson059b93afa998
diff --git a/test/reopen.test.js b/test/reopen.test.js
index 9be40698..e05e619c 100644
--- a/test/reopen.test.js
+++ b/test/reopen.test.js
@@ -252,6 +252,7 @@ test('the coordinator reopens a submitted item without a verdict [V2,V6,O8]', (t
assert.equal(last.event_by, 'coordinator');
assert.deepEqual(JSON.parse(last.event_detail), {
commit: submitted.commit, note: 'correct the frozen criterion, not the work', judgment: null, model: 'unknown',
+ cause: 'refusal:REOPENED', causeDerivation: { kind: 'reopen-category', coarse: true },
});
assert.equal(store.events(board).some((event) => event.event_kind === 'release' && JSON.parse(event.event_detail).review), false);
@@ -703,7 +704,10 @@ test('a reopened bar takes the same commit again [V2,V6,H16]', async (t) => {
const first = applyRelayMove(copies[0], move, { sequence: 1, at: '2026-10-10T12:00:00.000Z', kind: 'move', sender });
const second = applyRelayMove(copies[1], move, { sequence: 1, at: '2026-10-10T12:00:00.000Z', kind: 'move', sender });
assert.deepEqual(first, second);
- assert.deepEqual(first.result, { id: 1, commit: submitted.commit });
+ assert.deepEqual(first.result, {
+ id: 1, commit: submitted.commit, cause: 'refusal:REOPENED',
+ causeDerivation: { kind: 'reopen-category', coarse: true },
+ });
for (const replica of copies) {
assert.equal(store.getItem(replica, 1).item_status, 'open');
assert.equal(store.getItem(replica, 1).item_commit, submitted.commit);