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.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
test(relay): read structured canary refusals [H5,H17]
Corey Olsonfd9f211c2896
diff --git a/test/relay-canary-watch.test.js b/test/relay-canary-watch.test.jsindex 78c52202..0b0ca1f1 100644--- a/test/relay-canary-watch.test.js+++ b/test/relay-canary-watch.test.js@@ -189,7 +189,7 @@ test('the canary command binds machine opt-in to its linked ordinary seat [H5,H1await box.link();const refused = await box.cli('relay', 'canary', 'on');assert.equal(refused.code, 1, 'a coordinator cannot substitute for the dedicated ordinary canary seat');- assert.match(refused.failure, /RELAY_CANARY_SEAT/u);+ assert.equal(refused.document.error.code, 'RELAY_CANARY_SEAT');const seat = await joinedCanarySeat(box);const enabled = await box.cliAt(seat.root, 'relay', 'canary', 'on', '--timeout', '5000');assert.equal(enabled.code, 0, enabled.failure);@@ -203,5 +203,5 @@ test('the canary command binds machine opt-in to its linked ordinary seat [H5,H1assert.equal(off.document.config.enabled, false);const stopped = await box.cliAt(seat.root, 'relay', 'canary', 'run');assert.equal(stopped.code, 1);- assert.match(stopped.failure, /RELAY_CANARY_CONFIG/u);+ assert.equal(stopped.document.error.code, 'RELAY_CANARY_CONFIG');});