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.

test: bind branch engine to pending leaf state [A5,H16,C7]

Corey Olson669a65129617
diff --git a/docs/formats.test.js b/docs/formats.test.js
index 779fde2e..26b17b85 100644
--- a/docs/formats.test.js
+++ b/docs/formats.test.js
@@ -268,9 +268,11 @@ function assertEngineGuideVersion(guideVersion, leaves, branchVersion) {
`two unassigned engine leaves are not allowed: ${pending.map(({ file }) => file).join(', ')}`,
);
assert.equal(guideVersion, landed, `move engine guide version ${guideVersion} must match highest landed engine ${landed}`);
- assert.ok(
- branchVersion === landed || branchVersion === landed + 1,
- `executable engine version ${branchVersion} must be landed ${landed} or the one pending number ${landed + 1}`,
+ const expectedBranchVersion = pending.length === 1 ? landed + 1 : landed;
+ assert.equal(
+ branchVersion,
+ expectedBranchVersion,
+ `executable engine version ${branchVersion} must match the branch state ${expectedBranchVersion}`,
);
}