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(board): align correction contracts and figures [V2,A5,I10]
Corey Olson5080bb8a58ef
diff --git a/docs/formats.test.js b/docs/formats.test.jsindex 2a931df2..7d3243e1 100644--- a/docs/formats.test.js+++ b/docs/formats.test.js@@ -276,6 +276,12 @@ function recordEventContract() {submit(board, rejected, { agentId: builder, commit: rejectedCommit, tree: 'e'.repeat(40) });verify(board, rejected, { agentId: reviewer, decision: 'REJECT', reason: 'TEST_FAILURE', note: 'the fixture failed', head: rejectedCommit, digest: 'rejected', policy: 'agents' });+ const corrected = addItem(board, { by: coordinator, lane: 'docs', title: 'Corrected live claim' });+ claim(board, corrected, { agentId: builder, lane: 'docs', leaseMs: 60_000, freeze: freeze('before-correction') });+ editItem(board, corrected, { agentId: coordinator, criterion: 'Corrected criterion' });+ assert.deepEqual(JSON.parse(events(board).filter((row) => row.event_kind === 'edit').at(-1).event_detail).pendingRefreeze, ['criterion']);+ refreeze(board, corrected, { agentId: builder, freeze: freeze('adopted-correction') });+const withdrawn = addItem(board, { by: coordinator, lane: 'docs', title: 'Withdrawn example' });withdraw(board, withdrawn, { agentId: coordinator, reason: 'duplicate fixture' });holdLane(board, 'view', { agentId: coordinator, reason: 'fixture hold' });@@ -553,7 +559,9 @@ test('[A5] schema, versions, event kinds and event detail fields match live behafor (const row of actualRows) {const kind = row.event_kind;const entry = actual[kind] ?? { actors: new Set(), fields: new Set() };- const actor = actorByKind[kind] ?? actors[row.event_by] ?? 'unknown';+ const actor = kind === 'refreeze' && row.event_by !== COORDINATOR+ ? 'live holder adopting a pending correction'+ : actorByKind[kind] ?? actors[row.event_by] ?? 'unknown';entry.actors.add(actor);for (const field of Object.keys(row.detail)) {if (field !== 'model') entry.fields.add(field);@@ -564,7 +572,7 @@ test('[A5] schema, versions, event kinds and event detail fields match live behaassert.deepEqual(Object.keys(documented).sort(), Object.keys(actual).sort());assert.match(block('<!-- pass-rule:start -->', '<!-- pass-rule:end -->'), /passDecision` only for the coordinator/);for (const [kind, expected] of Object.entries(documented)) {- assert.deepEqual([...actual[kind].actors].sort(), [expected.actor]);+ assert.deepEqual([...actual[kind].actors].sort(), expected.actor.split(', or ').sort());assert.deepEqual([...actual[kind].fields].sort(), expected.fields);}});diff --git a/docs/img/lifecycle.svg b/docs/img/lifecycle.svgindex 29f5ccf9..09f7469f 100644--- a/docs/img/lifecycle.svg+++ b/docs/img/lifecycle.svg@@ -54,7 +54,7 @@ text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans',<text class="head" x="24" y="34">An item's life</text><text class="aside" x="140" y="34">starts open; ends verified or withdrawn</text><g class="plain"><rect x="25" y="150" width="160" height="58" rx="8"/><text class="t1" x="105" y="175" text-anchor="middle">open</text><text class="t2" x="105" y="193" text-anchor="middle">↻ escalate · refreeze</text></g>-<g class="plain"><rect x="235" y="150" width="160" height="58" rx="8"/><text class="t1" x="315" y="175" text-anchor="middle">claimed</text><text class="t2" x="315" y="193" text-anchor="middle">↻ claim</text></g>+<g class="plain"><rect x="235" y="150" width="160" height="58" rx="8"/><text class="t1" x="315" y="175" text-anchor="middle">claimed</text><text class="t2" x="315" y="193" text-anchor="middle">↻ claim · refreeze</text></g><g class="plain"><rect x="445" y="150" width="160" height="58" rx="8"/><text class="t1" x="525" y="175" text-anchor="middle">submitted</text><text class="t2" x="525" y="193" text-anchor="middle">↻ reserve</text></g><g class="done" data-final="verified"><rect x="655" y="150" width="160" height="58" rx="8"/><rect x="659" y="154" width="152" height="50" rx="5" fill="none"/><text class="t1" x="735" y="184" text-anchor="middle">verified</text></g><g class="plain" data-final="withdrawn"><rect x="445" y="284" width="160" height="58" rx="8"/><rect x="449" y="288" width="152" height="50" rx="5" fill="none"/><text class="t1" x="525" y="318" text-anchor="middle">withdrawn</text></g>diff --git a/test/e2e-runner.test.js b/test/e2e-runner.test.jsindex d85a2258..2abb3368 100644--- a/test/e2e-runner.test.js+++ b/test/e2e-runner.test.js@@ -57,7 +57,7 @@ test('an item carries a brief to whoever claims it; a light agent sees only itsassert.match(box.run(box.web, 'next').out, /claimed #1: Design the page/);assert.equal(box.run(box.repo, 'edit', '1', '--brief', 'Start from the sketch in docs/page.md.').code, 0);assert.match(box.run(box.web, 'show', '1').out, /brief:\n {2}Start from the sketch in docs\/page.md./);- assert.match(box.run(box.web, 'edit', '2', '--brief', 'mine').err, /NOT_YOURS/);+ assert.match(box.run(box.web, 'edit', '2', '--brief', 'mine').err, /HELD/);});test('run builds routed items unattended: the failure feeds the next attempt; red work escalates, pinned [N14, B15]', () => {