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(core): route sandbox access via coordinator [I1,C7]
Corey Olson453abc6bb4bf
diff --git a/src/gate.js b/src/gate.jsindex af7b3006..5f998052 100644--- a/src/gate.js+++ b/src/gate.js@@ -259,7 +259,7 @@ export function runShell(root, command, { pipefail = false, env = {}, stages = f/** Refuse an environment-blocked proof after its ordinary raw logs and timings are persisted. */export function refuseSandboxBlocked(run) {if (run.sandboxBlocked) throw new Refused('SANDBOX_BLOCKED',- `The environment refused ${run.sandboxBlocked}. Ask the person to allow this operation, or run the gate outside the sandbox; keep the tests unchanged.`);+ `The environment refused ${run.sandboxBlocked}. Ask the coordinator to bring this operation to the person, or run the gate outside the sandbox; keep the tests unchanged.`);}/** Replace a possible secret-bearing line before persisting a direct item-check log. */diff --git a/src/next-steps.js b/src/next-steps.jsindex b9b22b69..7e6be528 100644--- a/src/next-steps.js+++ b/src/next-steps.js@@ -284,7 +284,7 @@ export const NEXT_STEPS = Object.freeze({RIGOR_UNNOTICED: 'run pullboard rigor and draft a cause it lists, or wait until the cause repeats',RIGOR_UNPROVEN: 'name a check that fails at --red and passes at --green: pullboard rigor draft <key> "<rule>" --check "<command>" --red <commit> --green <commit>',RIGOR_PERSON_ONLY: 'ask the person to mark it from the main checkout: pullboard fact <id> root-cause "<why>" --cause <key> --never-again --as person',- SANDBOX_BLOCKED: 'ask the person to allow the named operation, or run the gate outside the sandbox; keep the tests unchanged',+ SANDBOX_BLOCKED: `${COORDINATOR_PERSON_REQUEST}; or run the gate outside the sandbox; keep the tests unchanged`,NOT_YOUR_DECISION: 'answer only decisions addressed to you; see pullboard inbox',NO_AGENT: 'create and join a lane worktree: pullboard worktree <lane> --model "<model name>"',NO_BOARD: 'initialize the board in this repository: pullboard init',diff --git a/test/submit-gate.test.js b/test/submit-gate.test.jsindex 5ae65de0..b70fb413 100644--- a/test/submit-gate.test.js+++ b/test/submit-gate.test.js@@ -233,7 +233,9 @@ test('a child process listen denial reads as sandbox blocked [C7,B26]', (t) => {assert.equal(python.code, 1, pythonOutput);assert.match(python.err, /SANDBOX_BLOCKED/u, 'submit names a scanner-known denial from a child traceback');assert.match(python.err, /file access .*\(EACCES\)/u);- assert.match(python.err, /Ask the person to allow this operation/u);+ assert.match(python.err, /ask the coordinator to bring (?:it|this operation) to the person/iu);+ assert.match(python.err, /pullboard shout coordinator .*--decision/u);+ assert.doesNotMatch(python.err, /\bask the person\b/iu);assert.doesNotMatch(python.err, /GATE_RED/u);const pythonSource = childPythonTestSource();@@ -1106,12 +1108,14 @@ for (const mode of ['deleted source', 'topic parent', 'merge commit']) {test('a sandbox-blocked gate asks the person [I1,C7]', async (t) => {const command = 'node -e "console.error(process.env.BLOCKED_DIAGNOSTIC); process.exit(Number(process.env.BLOCKED_EXIT || 1))"';- /** Assert the actual CLI names the refused operation and directs the person to restore access. */+ /** Assert the actual CLI keeps the refused operation and routes the access request through the coordinator. */function blocked(result, operation) {assert.equal(result.code, 1, result.out + result.err);assert.match(result.err, /SANDBOX_BLOCKED/u);assert.ok(result.err.includes(operation), result.err);- assert.match(result.err, /Ask the person to allow this operation/u);+ assert.match(result.err, /ask the coordinator to bring (?:it|this operation) to the person/iu);+ assert.match(result.err, /pullboard shout coordinator .*--decision/u);+ assert.doesNotMatch(result.err, /\bask the person\b/iu);assert.match(result.err, /run the gate outside the sandbox/u);assert.match(result.err, /keep the tests unchanged/u);}