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.

chore(core): retain receipt fixtures with landed rigor [C7,V4,D1]

Corey Olsona7573584621b
diff --cc test/rigor.test.js
index 9819eb13,93065f1c..5617dd76
--- a/test/rigor.test.js
+++ b/test/rigor.test.js
@@@ -1,6 -1,8 +1,9 @@@
/** Rigor: a repeated failure cause is noticed from structured fields, never from notes [D1,V1]. */
+import { submitFixture } from './board-submit-fixture.js';
import assert from 'node:assert/strict';
+ import { spawnSync } from 'node:child_process';
+ import { createServer } from 'node:net';
+ import { once } from 'node:events';
import { chmodSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join, resolve } from 'node:path';
@@@ -81,10 -86,10 +87,10 @@@ function history(file)
/** A fresh 40-character commit id for each submission. */
const commit = () => (++next).toString(16).padStart(40, '0');
/** Claim and submit an item at a new commit, returning that commit. */
- const submit = (id) => {
+ const submit = (id, at = null) => {
store.claim(board, id, { agentId: builder, lane: 'app', leaseMs: 2 * HOUR, freeze });
- const sha = commit();
+ const sha = at ?? commit();
- store.submit(board, id, { agentId: builder, commit: sha, tree: `tree-${sha}` });
+ submitFixture(board, id, { agentId: builder, commit: sha, tree: `tree-${sha}` });
return sha;
};
/** Reject the current submission, naming a cause key or none. */