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(runners): bound unapplicable guard diagnostics [C7,V4]
Corey Olson93da1af8b8d1
diff --git a/src/runner-worker.js b/src/runner-worker.jsindex 354fd9fd..ff4d7625 100644--- a/src/runner-worker.js+++ b/src/runner-worker.js@@ -809,7 +809,7 @@ async function applyPrivateGuard(root, guard, env) {writeFileSync(path, lines.join('\n'));}return { applied: true, problem: '' };- } catch { return { applied: false, problem: `guard ${guard.text} cannot be reverted inside the submitted checkout` }; }+ } catch { return { applied: false, problem: `guard ${guard.text} cannot be reverted inside the submitted checkout`.slice(0, 4096) }; }}/** Execute the trusted phases against one absolute policy deadline, with worker-owned byte boundaries. */diff --git a/test/runner-private-check-fixture.js b/test/runner-private-check-fixture.jsindex 7c1ca032..b126e3d6 100644--- a/test/runner-private-check-fixture.js+++ b/test/runner-private-check-fixture.js@@ -114,6 +114,7 @@ export async function privateReviewRunnerEdges(t, e2e) {{ name: 'a red check remains red', install: '', check: node("console.log('REMOTE_CHECK_RED');process.exit(9)"), error: 'CHECK_RED', marker: 'REMOTE_CHECK_RED' },{ name: 'a missing guard is unverified rather than an ordinary red', install: '', check: node("console.log('RESTORED_CHECK_GREEN')"), guard: 'web/missing.cjs:1-1', error: 'GUARD_NOT_FOUND', marker: 'RESTORED_CHECK_GREEN' },{ name: 'an invalid guard path is rejected before a second dispatch', install: '', check: node("console.log('INVALID_GUARD_RESTORED_GREEN')"), guard: '../outside.cjs:1-1', error: 'GUARD_NOT_FOUND', marker: 'INVALID_GUARD_RESTORED_GREEN', dispatches: 1 },+ { name: 'a long missing guard retains a bounded typed diagnostic', install: '', check: node("console.log('LONG_GUARD_RESTORED_GREEN')"), guard: 'web/' + 'x'.repeat(4088) + '.cjs:1-1', error: 'GUARD_NOT_FOUND', marker: 'LONG_GUARD_RESTORED_GREEN' },{ name: 'an applied guard must turn the restored green check red', install: '', check: 'node web/guard.cjs', guard: 'web/guard.cjs:1-1', marker: 'GUARD_RESTORED_GREEN', applied: true },{ name: 'successful install cleanup does not shorten a long check', install: node("console.log('INSTALL_DRAINED')"), check: node("setTimeout(()=>console.log('LONG_CHECK_FINISHED'),31000)"), marker: 'LONG_CHECK_FINISHED' },];