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
/** Read the exact native E32 receiving projection without loading the network sender [E32,B24,H16]. */
import { Refused } from './refused.js';
import { boardLinkName } from './board-link-format.js';
import { boardReferenceId } from './board-reference.js';
/** Read detached canonical state installed by authenticated receiveBoardState, never a caller snapshot. */
export function readReceivedBoardState(board, { linkId, generation, sourceBoardId }) {
if (!Number.isSafeInteger(generation) || generation < 1) throw new Refused('BOARD_LINK_FORMAT', 'use a positive link generation');
const key = `board_link_state:${boardLinkName(linkId)}:${generation}:${boardReferenceId(sourceBoardId)}`;
const row = board.db.prepare('SELECT meta_value FROM board_meta WHERE meta_key=?').get(key);
return row ? JSON.parse(row.meta_value) : null;
}