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
fix(relay): verify size ack and seed healthy control [H5,H17]
Corey Olson8c8a78c67e34
diff --git a/src/relay.js b/src/relay.jsindex c40536bd..1456ae66 100644--- a/src/relay.js+++ b/src/relay.js@@ -473,7 +473,8 @@ async function publishSnapshotSize(state, io) {try {const sealed = Buffer.from(await seal(readBoardKey(state.board), new TextEncoder().encode(JSON.stringify(value)),{ boardId: state.board, kind: 'snapshot', sequence: 0 })).toString('base64url');- await rawRequest(state, '/api/v1/boards/' + state.board + '/upload-status', { method: 'PUT', body: { sealed } }, io);+ const reply = await rawRequest(state, '/api/v1/boards/' + state.board + '/upload-status', { method: 'PUT', body: { sealed } }, io);+ if (typeof reply.recorded !== 'boolean') throw new Refused('RELAY_RESPONSE', 'Retry the sealed size notice when the relay can acknowledge it.');pause.sizeNoticePublished = true;const file = STATE_FILES.get(state);if (file) saveLink(file, state);diff --git a/test/hosted-shapes.test.js b/test/hosted-shapes.test.jsindex 5631d2d1..8576b2b1 100644--- a/test/hosted-shapes.test.js+++ b/test/hosted-shapes.test.js@@ -455,6 +455,7 @@ import { enrollProtocolPhone } from './relay-device-enrollment-fixture.js';import { hostedEngines } from './hosted-browsers.js';import { openEngine } from './hosted-browsers.js';import {+ BOARD_ITEM,BOARDS,HOSTED,READ_SCREEN,@@ -1017,6 +1018,9 @@ test('a board over the size limit is named with its size and the limit, beside abox.limitSnapshots(null);const healthy = await siblingProject(box, 'healthy-sibling', 'fixture/healthy-sibling');+ const healthyLane = Object.keys(JSON.parse(readFileSync(join(healthy, 'pullboard.json'), 'utf8')).lanes)[0];+ assert.equal((await box.cliAt(healthy, 'add', healthyLane, BOARD_ITEM)).code, 0,+ 'the healthy board has the real item required by the unchanged visibility probe');assert.equal((await box.cliAt(healthy, 'relay', 'on', '--url', box.origin)).code, 0);const mixed = await visit(paired, { route: front.route(session, null), phone: true }, true);assert.equal(mixed.board, true, 'the healthy sibling remains readable');