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(relay): reuse the linked coordinator credential [D1,H16,B26]

Corey Olsonefa37379d572
diff --git a/test/relay-rigor.test.js b/test/relay-rigor.test.js
index 1d23e38e..74573c11 100644
--- a/test/relay-rigor.test.js
+++ b/test/relay-rigor.test.js
@@ -54,10 +54,12 @@ test('only an authenticated person sender records a never-again over the relay [
['person', attempt('person')],
];
closeBoard(native);
+ const coordinator = link.agentTokens?.coordinator;
+ assert.match(coordinator?.token ?? '', /^pa_[A-Za-z0-9_-]{43}$/u, 'relay on already supplied the coordinator credential');
const tokens = {
agent: await agentToken(box, link, 'rigor-relay-agent'),
machine: link.token,
- coordinator: await agentToken(box, link, 'coordinator'),
+ coordinator: coordinator.token,
'coordinator-cause-only': null,
person: (await box.phoneSession()).token,
};