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(test): build large relay boards from attempt records [H5,H15,H17]
Corey Olsoned9fe5e10b0a
diff --git a/test/relay-snapshot-size.test.js b/test/relay-snapshot-size.test.jsindex cb5328c6..8e77d898 100644--- a/test/relay-snapshot-size.test.js+++ b/test/relay-snapshot-size.test.js@@ -58,7 +58,8 @@ test('a 20 MB sealed snapshot syncs to the relay and reads back whole [H5,H15,H1await box.link();const local = store.openBoard(join(box.root, '.git/pullboard/board.sqlite'));try {- store.shout(local, { from: 'coordinator', to: 'all', text: 'LARGE_SEALED_SNAPSHOT_' + randomBytes(14_000_000).toString('base64url'), lanes: [box.lane] });+ // A shout is at most 400 characters (#1109); an attempt record carries the same incompressible bytes.+ store.recordAttempt(local, null, { agentId: 'coordinator', n: 1, seconds: 0, result: 'LARGE_SEALED_SNAPSHOT_' + randomBytes(14_000_000).toString('base64url') });} finally { store.closeBoard(local); }const state = JSON.parse(readFileSync(box.linkFile, 'utf8'));@@ -140,7 +141,7 @@ test('a large board syncs to the relay compressed [H5,H15,H17]', {const longText = marker + 'q'.repeat(7_200_000);const native = store.openBoard(join(box.root, '.git/pullboard/board.sqlite'));try {- store.shout(native, { from: 'coordinator', to: 'all', text: longText, lanes: [box.lane] });+ store.recordAttempt(native, null, { agentId: 'coordinator', n: 1, seconds: 0, result: longText });// The historical payload grows the native snapshot without sending a seven-megabyte paragraph to the recent UI feed.for (let index = 0; index < 100; index++) {store.shout(native, { from: 'coordinator', to: 'all', text: marker + 'recent ' + index, lanes: [box.lane] });@@ -289,8 +290,8 @@ async function thirtyThousandBoard(t) {});oldest = store.shout(native, { from: 'coordinator', to: 'all', text: oldestMarker, lanes: [box.lane] });// Incompressible retained history proves several times the old cap in actual uploaded cipher bytes.- for (let index = 0; index < 32; index++) store.shout(native, {- from: 'coordinator', to: 'all', text: 'Private historical data ' + index + ':' + randomBytes(1_000_000).toString('base64'), lanes: [box.lane],+ for (let index = 0; index < 32; index++) store.recordAttempt(native, null, {+ agentId: 'coordinator', n: index + 1, seconds: 0, result: 'Private historical data ' + index + ':' + randomBytes(1_000_000).toString('base64'),});for (let index = 0; index < 30_017; index++) store.shout(native, {from: 'coordinator', to: 'all', text: 'Recent and retained work ' + index, lanes: [box.lane],@@ -520,8 +521,8 @@ test('large compressible history uses bounded pages even when its whole encrypteconst board = store.openBoard(join(box.root, '.git/pullboard/board.sqlite'));try {store.atomic(board, () => {- for (let index = 0; index < 4_000; index++) store.shout(board, {- from: 'coordinator', to: 'all', lanes: [box.lane], text: 'Retained compressible history ' + index + ' ' + 'q'.repeat(1_000),+ for (let index = 0; index < 4_000; index++) store.recordAttempt(board, null, {+ agentId: 'coordinator', n: index + 1, seconds: 0, result: 'Retained compressible history ' + index + ' ' + 'q'.repeat(1_000),});});} finally { store.closeBoard(board); }