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(readme): the lifecycle reopen fixture keeps one synthetic verified return [D1]

Corey Olson6173659aae71
diff --git a/test/readme.test.js b/test/readme.test.js
index a0939316..9c258e3e 100644
--- a/test/readme.test.js
+++ b/test/readme.test.js
@@ -164,7 +164,11 @@ test('the lifecycle figure is drawn from the declaration, and refuses a state or
assert.throws(() => drawLifecycle(unsupported), /no route for withdrawn > open/);
const reopen = { ...MACHINE,
states: MACHINE.states.map((state) => state.id === 'verified' ? { ...state, final: false } : state),
- moves: [...MACHINE.moves, { verb: 'reopen', from: ['verified'], to: 'open', by: ['coordinator'], guards: [] }],
+ // Give this fixture one synthetic verified return even when the real declaration adds others.
+ // The original label geometry and collision assertions below still exercise that route.
+ moves: [...MACHINE.moves.map((move) => move.to === 'open'
+ ? { ...move, from: move.from.filter((state) => state !== 'verified') } : move).filter((move) => move.from.length),
+ { verb: 'reopen', from: ['verified'], to: 'open', by: ['coordinator'], guards: [] }],
};
let reopenedSvg;
assert.doesNotThrow(() => { reopenedSvg = drawLifecycle(reopen); }, 'the synthetic verified reopen has a declared drawing route');