Skip to content

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.

fix(browser): match exact reviewed proof invocation [C7,O5]

Corey Olson325af773d23c
diff --git a/src/browser-admission.js b/src/browser-admission.js
index 5f801880..dd50b8bb 100644
--- a/src/browser-admission.js
+++ b/src/browser-admission.js
@@ -73,7 +73,7 @@ const REVIEWED_EXECUTORS = new Map([
site: "spawn(row.check, { cwd: directory, env: environment, shell: true, stdio: ['ignore', 'pipe', 'pipe'] })",
reason: 'the Windows sentinel executor runs an approved check only when explicitly invoked' }]],
['src/rigor-proof.js', [{ function: 'runOwnedCheck',
- site: "spawn(runner?.executable ?? '/bin/sh', runner?.args ?? ['-c', check], { cwd: tree, env: environment, detached: true, stdio: ['ignore', 'pipe', 'pipe'] })",
+ site: "spawn(runner?.executable ?? '/bin/sh', runner?.args ?? ['-c', check], { cwd: tree, env: environment, detached: true, stdio: ['ignore', 'pipe', 'pipe'], })",
reason: 'prepareCauseProof validates the named runner executable against the real process.execPath' }]],
['test/cli-startup.test.js', [{ function: 'fixture',
site: "runFixtureChild(env.PULLBOARD_REAL_GIT, args, { cwd, env, encoding: 'utf8' })",
diff --git a/test/test-resources.test.js b/test/test-resources.test.js
index 6bd57f27..6afc6ff9 100644
--- a/test/test-resources.test.js
+++ b/test/test-resources.test.js
@@ -537,6 +537,7 @@ test('reviewed executor imports stay browser-free only at their exact call sites
const root = sourceFixture(t, {});
cpSync(join(repository, 'src'), join(root, 'src'), { recursive: true });
cpSync(join(repository, 'test'), join(root, 'test'), { recursive: true });
+ copyFileSync(join(repository, 'package.json'), join(root, 'package.json'));
for (const [index, [file, name, call]] of entries.entries()) {
const importer = `test/reviewed-executor-${index}.test.js`;
const request = file.startsWith('src/') ? `../${file}` : `./${file.slice(5)}`;