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): retain sealed pending epoch context on unlink [H17]
Corey Olsone984e5c0d138
diff --git a/src/relay-relink.js b/src/relay-relink.jsindex 95eaee97..70970891 100644--- a/src/relay-relink.js+++ b/src/relay-relink.js@@ -66,11 +66,15 @@ export function rememberRelink(root, previous) {export function archiveRelinkOutbox(root, state) {const directory = join(repoInfo(root).commonDir, 'pullboard');const file = join(directory, 'relay-outbox.sealed');- if (!existsSync(file)) return;+ const queued = existsSync(file);+ const records = [state.pending, state.recovered].filter(record => typeof record?.sealed === 'string')+ .map(record => ({ sequence: record.sequence, sealed: record.sealed }));+ if (!queued && !records.length) return;const name = 'relay-outbox-' + state.board + '-' + randomUUID();writeFileSync(join(directory, name + '.json'), JSON.stringify({ version: 1, board: state.board,- url: state.url, sequence: state.sequence, encryptedFile: name + '.sealed' }) + '\n', { flag: 'wx', mode: 0o600 });- renameSync(file, join(directory, name + '.sealed'));+ url: state.url, sequence: state.sequence, machine: state.machine, records,+ ...(queued ? { encryptedFile: name + '.sealed' } : {}) }) + '\n', { flag: 'wx', mode: 0o600 });+ if (queued) renameSync(file, join(directory, name + '.sealed'));}/** Consume the intent only after the new link and its exact sealed baseline are durable. */