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(relay): wire seat receipt claims only into token-issuing auth [H2]

Corey Olson4d8cfa0e5e79
diff --git a/relay/service.js b/relay/service.js
index 997ecfae..3dc0cc78 100644
--- a/relay/service.js
+++ b/relay/service.js
@@ -203,9 +203,10 @@ export function createRelayHandler({ directory, auth, pollMs = 200, publicOrigin
/**
* Let token issuance see a published seat receipt under the same board lock that appends it, so
- * a receipt claims its target before, and whether or not, its enrollment finishes (#579).
+ * a receipt claims its target before, and whether or not, its enrollment finishes (#579). An
+ * auth stub without token issuance (some fixtures) has nothing to wire.
*/
- auth.setRegistrationClaims((id, target) => {
+ auth.setRegistrationClaims?.((id, target) => {
const file = join(root, identity(id) + '.journal.sqlite');
try { if (!lstatSync(file).isFile()) return null; } catch (error) { if (error.code === 'ENOENT') return null; throw error; }
return auth.withBoard(id, () => {