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(view): a wrapped lifecycle caption keeps its dots [N26,M1]

Corey Olson18ebfe1842e7
diff --git a/src/view/page-script-2.js b/src/view/page-script-2.js
index 9ad6565d..d864d0c7 100644
--- a/src/view/page-script-2.js
+++ b/src/view/page-script-2.js
@@ -651,7 +651,8 @@ function flowSvg(p) {
const inside = new Map(FLOW.states.map((s) => {
const keeps = pairs.find((pair) => pair.from === s.id && pair.to === s.id);
const said = keeps ? told([keeps]) : null;
- const kept = said ? wrap(said.words, BW - 28 - wide('↻ ', 11), 11).map((line, i) => (i ? ' ' : '↻ ') + line) : [];
+ // A wrapped line opens with the dot it was split at, so the moves still read as one list (#954).
+ const kept = said ? wrap(said.words, BW - 28 - wide('↻ ', 11), 11).map((line, i) => (i ? '· ' : '↻ ') + line) : [];
return [s.id, { keeps, said, kept, back: s.id === FLOW.initial && back ? back + ' sent back' : '' }];
}));
const BH = 44 + 15 * Math.max(1, ...[...inside.values()].map((box) => box.kept.length + (box.back ? 1 : 0)));
diff --git a/test/cockpit/activity.test.js b/test/cockpit/activity.test.js
index 9bcd738c..606436eb 100644
--- a/test/cockpit/activity.test.js
+++ b/test/cockpit/activity.test.js
@@ -213,7 +213,7 @@ test('the activity tab draws the lifecycle from the declaration, as the README d
// The moves that keep a state are written in its box, not drawn as loops.
const keeping = MACHINE.states.filter((state) => MACHINE.moves.some((move) => move.to === state.id && move.from.includes(state.id))).map((state) => state.id);
assert.deepEqual(Object.fromEntries(boxes.filter((entry) => entry.keeps).map((entry) => [entry.state, entry.keeps])), {
- open: '↻ escalate · refreeze (none yet)',
+ open: '↻ release · escalate · refreeze (none yet)',
claimed: '↻ claim 1',
submitted: '↻ reserve (none yet)',
verified: '↻ accept (none yet)',