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): authenticate checkpoint intents on phone [H15,H16]

Corey Olson12dacee68de0
diff --git a/test/relay-person-requests.test.js b/test/relay-person-requests.test.js
index db97844c..9a7450fa 100644
--- a/test/relay-person-requests.test.js
+++ b/test/relay-person-requests.test.js
@@ -355,7 +355,7 @@ test('a timed-out checkpoint PUT retries identical ciphertext through the native
boardId: link.board, kind: 'request', sequence: 1,
})).toString('base64url');
const response = await fetch(box.origin + '/api/v1/boards/' + link.board + '/requests', {
- method: 'POST', headers: { authorization: 'Bearer ' + link.token,
+ method: 'POST', headers: { authorization: 'Bearer ' + (await box.phoneSession()).token,
'x-pullboard-engine': String(ENGINE_VERSION), 'content-type': 'application/json' },
body: JSON.stringify({ sequence: 1, sealed }),
});
@@ -393,7 +393,7 @@ test('a newer acknowledged checkpoint covers an earlier timed-out PUT [H16,C7]',
boardId: link.board, kind: 'request', sequence: 1,
})).toString('base64url');
const response = await fetch(box.origin + '/api/v1/boards/' + link.board + '/requests', {
- method: 'POST', headers: { authorization: 'Bearer ' + link.token,
+ method: 'POST', headers: { authorization: 'Bearer ' + (await box.phoneSession()).token,
'x-pullboard-engine': String(ENGINE_VERSION), 'content-type': 'application/json' },
body: JSON.stringify({ sequence: 1, sealed }),
});