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): retain seeded checkpoint items [H5,H16]

Corey Olson04dcbbf62375
diff --git a/test/relay-browser-client.test.js b/test/relay-browser-client.test.js
index dad135eb..7146c3cf 100644
--- a/test/relay-browser-client.test.js
+++ b/test/relay-browser-client.test.js
@@ -262,8 +262,7 @@ test('the phone shows moves past its checkpoint as pending [H5,H16]', {
await chrome.navigate(box.origin + '/#board=' + link.board + '&key=' + readFileSync(box.keyFile, 'utf8').trim());
await chrome.waitFor('document.querySelector("#chain")?.textContent.includes(' + JSON.stringify(initialTitle) + ')');
const checkpointItems = await chrome.evaluate(`Array.from(document.querySelectorAll('#chain [data-item]'), row => ({ id: row.dataset.item, title: row.getAttribute('title') }))`);
- assert.equal(checkpointItems.length, 1, 'the initial checkpoint exposes its one real item');
- assert.equal(checkpointItems[0].title, initialTitle);
+ assert.ok(checkpointItems.some(item => item.title === initialTitle), 'the initial checkpoint exposes the added item alongside fixture seeds');
const loadsBefore = box.calls.filter(call => call.method === 'GET' && call.path === '/').length;
// No native checkpoint is published during this interval. The browser must keep the N projection,