Architect runs: the chaos monkey leaves when you move on to the next brief

This commit is contained in:
Frederic Jung 2026-10-30 11:36:51 +01:00
parent 170914b05e
commit b04e1e22c1
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ test('architect runs: every reference passes each brief, on plan and within budg
plan.forEach((steps, i) => {
for (const s of steps) if (s[0] === '@rm') ev(`ACT.pzRmPop({city:'${s[1]}'})`); else lay(ev, ...s);
assert.equal(review(ev), true, `${id} brief ${i + 1}: ${ev('arEval().why')} ${ev('JSON.stringify(UI.arFail)')}`);
if (i < plan.length - 1) ev('ACT.pzArNext()');
if (i < plan.length - 1) { ev('ACT.pzArNext()'); assert.equal(ev('UI.mk'), null, `${id}: the monkey leaves with the next brief`); }
});
assert.equal(ev('arOver()'), 0, `${id}: never over a brief's tubes`);
assert.equal(ev('arSpend()<=arRun().budget'), true, `${id}: within budget`);