Skip to content

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.

feat(board): expose event log format version [A5]

Corey Olsonc995c39cd788
diff --git a/src/board.js b/src/board.js
index 273f2114..b5c6f1eb 100644
--- a/src/board.js
+++ b/src/board.js
@@ -18,6 +18,9 @@ import { Refused } from './refused.js';
export const ACCEPT_REASON = 'CRITERION_MET';
export const PERSON = 'person';
+/** Version of the persisted append-only event record format; bump for incompatible format changes. */
+export const EVENT_LOG_VERSION = 1;
+
/**
* Who can take an item (B13), as tiers in order of the model an item needs: `light` is work a small
* or local model can build from its brief, `mid` needs a capable general model, and
diff --git a/test/api.test.js b/test/api.test.js
index 60c10fd3..9e0b9f18 100644
--- a/test/api.test.js
+++ b/test/api.test.js
@@ -16,6 +16,7 @@ import { once } from 'node:events';
import { join, dirname, resolve, basename, delimiter } from 'node:path';
import { after, test } from 'node:test';
import { resultCommands } from '../src/cli.js';
+import { EVENT_LOG_VERSION } from '../src/board.js';
import { JSON_SHAPES } from '../src/json.js';
const BIN = resolve(import.meta.dirname, '../bin/pullboard.js');
@@ -33,6 +34,10 @@ const SPEC = `# API fixture
- G1 [approved, must] The fixture keeps its board. | gate: true
`;
+test('[A5] append-only event records expose format version one', () => {
+ assert.equal(EVENT_LOG_VERSION, 1);
+});
+
/** Quote a literal executable path for the fixture hook's POSIX shim. */
function shellWord(value) {
return "'" + value.replace(/'/g, "'\\''") + "'";