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(map): pin test import edges to the scanned main [C7]
Corey Olsonef27757e9cb5
diff --git a/src/code-map.js b/src/code-map.jsindex 7cf6a046..1f3f182d 100644--- a/src/code-map.js+++ b/src/code-map.js@@ -317,15 +317,15 @@ function gitText(root, args) {return execFileSync('git', ['-C', root, ...args], { encoding: 'utf8', maxBuffer: 128 * 1024 * 1024 }).trim();}-/** Require source bytes to come from the exact clean primary main commit being indexed. */+/** Pin source and importer-test bytes to the exact clean primary main commit being indexed. */function requireSourcePin(root, commit) {if (gitText(root, ['branch', '--show-current']) !== 'main'|| gitText(root, ['rev-parse', 'HEAD']) !== commit|| gitText(root, ['rev-parse', 'main']) !== commit) {throw new Error('the primary source checkout is not at the requested main commit');}- if (gitText(root, ['status', '--porcelain', '--untracked-files=all', '--', 'src', 'bin'])) {- throw new Error('src/ or bin/ differs from the committed main source');+ if (gitText(root, ['status', '--porcelain', '--untracked-files=all', '--', 'src', 'bin', 'test'])) {+ throw new Error('src/, bin/ or test/ differs from the committed main source');}}