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): read held spec citations with a clock [A5,A6,S8,S10]
Corey Olsonbb4fcda6cc1c
diff --git a/src/cli.js b/src/cli.jsindex 07b279a6..8de793a1 100644--- a/src/cli.js+++ b/src/cli.js@@ -2743,7 +2743,7 @@ async function readStdin(stdin) {function hookRead(ctx, read) {if (!existsSync(ctx.file)) return null;const db = new DatabaseSync(ctx.file, { readOnly: true });- try { return read({ db }); }+ try { return read({ db, clock: ctx.clock }); }finally { db.close(); }}diff --git a/test/shared-version.test.js b/test/shared-version.test.jsindex 20046569..d50fed70 100644--- a/test/shared-version.test.js+++ b/test/shared-version.test.js@@ -112,3 +112,17 @@ test('a roadmap external-board open refuses unmerged event-log source [A5,A6]',`);assert.equal(result[0].items[0].status, 'unavailable'); assert.deepEqual(box.versions(), before);});+++test('a held item remains readable by newer-source read-only spec citations [A5,A6,S8,S10]', t => {+ const box = fixture(t);+ const added = box.cli(box.root, box.root, 'add', 'core', 'Preserve held citations', '--specs', 'G1');+ assert.equal(added.status, 0, added.stderr + added.stdout);+ const claimed = box.cli(box.root, box.lane, 'claim', '1');+ assert.equal(claimed.status, 0, claimed.stderr + claimed.stdout);+ const before = readFileSync(box.file);+ box.bump('SCHEMA_VERSION', 2, 3);+ const checked = box.cli(box.lane, box.lane, 'spec', 'check', '--json');+ assert.equal(checked.status, 0, checked.stderr + checked.stdout);+ assert.deepEqual(readFileSync(box.file), before, 'spec citations read a live claim without migrating or writing its board');+});