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(queue): read structured refusal from stdout [N22,B13]

Corey Olson747272ef00ec
diff --git a/test/queue-order.test.js b/test/queue-order.test.js
index 8cfb8804..38cf1dd6 100644
--- a/test/queue-order.test.js
+++ b/test/queue-order.test.js
@@ -196,7 +196,7 @@ test('ordinary milestone ordering preserves coordinator overrides until an expli
assert.deepEqual(again.items, [1, 2, 3], 'ordering does not remove milestone membership');
const refused = box.run(box.web, 'milestone', 'lift', 'Now', '1,2', '--json');
assert.notEqual(refused.code, 0);
- assert.match(refused.err, /COORDINATOR_ONLY/u);
+ assert.equal(JSON.parse(refused.out).error.code, 'COORDINATOR_ONLY');
command(box.repo, 'milestone', 'lift', 'Now', '1,2');
const lifted = command(box.web, 'milestone', 'order', 'Now', '2,3').milestone;
assert.deepEqual(lifted.order, [2, 3], 'ordinary legacy ordering still works once overrides are explicitly lifted');