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
test(core): bar-correction asserts fail on their own messages [B31]
Corey Olson665a78ba5398
diff --git a/test/bar-corrections.test.js b/test/bar-corrections.test.jsindex 5204149c..d16cab45 100644--- a/test/bar-corrections.test.js+++ b/test/bar-corrections.test.js@@ -95,11 +95,11 @@ test('[B10,B31] a corrected bar records why the old one was wrong', () => {box.json(box.web, 'refreeze', '1');rejectOnce(box, 1, 'the WAL lock never appears');const unexplained = box.run(box.repo, 'edit', '1', '--check', 'true # wal', '--json');- assert.equal(JSON.parse(unexplained.out).error.code, 'BAR_REASON', 'a check correction on an item that was claimed needs a reason too');+ assert.equal(JSON.parse(unexplained.out).error?.code, 'BAR_REASON', 'a check correction on an item that was claimed needs a reason too');box.json(box.repo, 'edit', '1', '--check', 'true # wal', '--reason', 'the old check never opened a WAL board');const marked = box.json(box.repo, 'show', '1').thread.filter((entry) => entry.type === 'move' && entry.kind === 'edit').at(-1);- assert.equal(marked.detail.barCorrection.reject.by, 'web-2', 'a reject followed by a correction is marked as caused by the bar');- assert.equal(marked.detail.barCorrection.reject.reason, 'TEST_FAILURE');+ assert.equal(marked.detail.barCorrection.reject?.by, 'web-2', 'a reject followed by a correction is marked as caused by the bar');+ assert.equal(marked.detail.barCorrection.reject?.reason, 'TEST_FAILURE');const shown = box.run(box.repo, 'show', '1');assert.equal(shown.code, 0, shown.err);