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(formats): describe optional submission size precisely [A5,R2]
Corey Olson14884732528d
diff --git a/docs/formats.md b/docs/formats.mdindex d465dab5..9b9f8132 100644--- a/docs/formats.md+++ b/docs/formats.md@@ -431,7 +431,7 @@ The `event` table is a SQLite schema object governed by `SCHEMA_VERSION`; its ap| `claim` | builder | `leaseUntil`, `digest` || `renew` | builder | `leaseUntil`, `digest` || `release` | builder | — |-| `submit` | builder | `commit`, `tree`, `policyCommit`, engine-9 `criterionDigest`, engine-38 `submissionProof`, optional `submissionSize` (the `FLOW_SIZE_ENGINE` leaf) |+| `submit` | builder | `commit`, `tree`, `policyCommit`, engine-9 `criterionDigest`, engine-38 `submissionProof`, optional `submissionSize` || `reserve` | reviewer | `until` || `accept` | reviewer | `reason`, `commit`, engine-20 `implies`, engine-33 `review`, engine-68 `note` || `reject` | reviewer | `reason`, `commit`, engine-20 `implies`, engine-30 `cause`, engine-33 `review`, automatic-Rigor `causeDerivation` |diff --git a/docs/formats.test.js b/docs/formats.test.jsindex 0f01bac5..adefca4d 100644--- a/docs/formats.test.js+++ b/docs/formats.test.js@@ -344,7 +344,9 @@ function recordEventContract() {refreeze(board, first, { agentId: coordinator, freeze: freeze('second') });claim(board, first, { agentId: builder, lane: 'docs', leaseMs: 60_000, freeze: freeze('unused') });const acceptedCommit = 'a'.repeat(40);- submitFixture(board, first, { agentId: builder, commit: acceptedCommit, tree: 'b'.repeat(40), files: ['docs/formats.md'], policyCommit: 'a'.repeat(40) });+ // Synthetic metadata exercises the optional event shape; real Git counting is tested separately.+ submitFixture(board, first, { agentId: builder, commit: acceptedCommit, tree: 'b'.repeat(40), files: ['docs/formats.md'], policyCommit: 'a'.repeat(40),+ submissionSize: { base: 'c'.repeat(40), head: acceptedCommit, lines: 100, method: 'added-plus-deleted-no-renames' } });reserveReview(board, first, { agentId: reviewer, leaseMs: 60_000, policy: 'agents' });verify(board, first, { agentId: reviewer, decision: 'ACCEPT', reason: ACCEPT_REASON, note: 'checked the example', head: acceptedCommit, digest: 'second', policy: 'agents', implies: [dependency] });verify(board, first, { agentId: reviewer, decision: 'ACCEPT', note: 'checked a newer composition',