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.

fix(land): compose landing engine allocation [B3]

Corey Olsone0d8ba9454ad
diff --cc test/land.test.js
index 4327a0c6,5a8c9d93..56a6c842
--- a/test/land.test.js
+++ b/test/land.test.js
@@@ -14,9 -14,9 +14,9 @@@ import { MARKER_NOT_YET, readMarker } f
import { assertLandingStopIdentity } from './land-stop-fixture.js';
import { assertLandingDoctrineCounts } from './land-doctrine-fixture.js';
import { onBoard, events, calls } from './land-board-fixture.js';
--
import { landingTimeoutFixture } from './landing-timeout-fixture.js';
+import { assertParallelLanding, assertParallelCliLease, assertParallelNestedGate } from './land-parallel-fixture.js';
+ import { landEnginesInOrder } from './land-engine-fixture.js';
const e2e = createE2eHelpers();
after(e2e.cleanup);
const { sandbox, project, commitFile, waitFor, BIN } = e2e;
@@@ -33,7 -33,7 +33,6 @@@ test('a landing records a falling doctr
test('a repo with no remote lands into the local trunk and status reads as normal [I1,B3,R3,H5]', () => {
assertNoRemoteLanding(sandbox, commitFile);
});
--
/** Start a separate process holding an exclusive write transaction on the fixture board. */
function startExclusiveBoardWriter(box, boardFile, name) {
const ready = join(box.dir, `${name}-ready`);
@@@ -58,7 -58,7 +57,6 @@@
});
return { child, closed: childOutcome(child), ready, release, released };
}
--
/** Resolve when an owned fixture child closes or fails to spawn. */
function childOutcome(child) {
return new Promise((resolveOutcome) => {
@@@ -67,7 -67,7 +65,6 @@@
child.once('close', (code, signal) => resolveOutcome({ code, signal, error: spawnError }));
});
}
--
/** Run the real pre-commit hook with a preload observing its agentAt SQLite read. */
function startHookRead(box, probe, marker) {
const env = { ...box.env, HOOK_READ_ATTEMPT: marker };
@@@ -1490,11 -1490,6 +1487,14 @@@ test('a publish gate run is recorded an
});
test('a landing gate past its timeout stops cleanly [E27,E29]', () => landingTimeoutFixture({ landProject, itemWorktree, submitItem, acceptItem, onBoard, json }));
+test('landing tests candidate batches in parallel and lands the longest green prefix [B3,V4]', { timeout: 180_000 }, // budget: two real three-item private landings and bounded overlap barriers; no speed threshold.
+() => assertParallelLanding({ landProject, itemWorktree, submitItem, acceptItem, json }));
+
+test('parallel CLI landing retains its lease and fences lost authority [B3,V4,Q1,Q3]', { timeout: 180_000 }, // budget: two private CLI landings with cooperative gate barriers; hang ceiling only, no speed threshold.
+async () => assertParallelCliLease({ landProject, itemWorktree, submitItem, acceptItem, onBoard, waitFor, BIN }));
+
+test('parallel landing refuses a live inherited gate before scheduling [B3,V4,Q1,Q3]', { timeout: 90_000 }, // budget: private verified item plus two immediate guarded entries; hang ceiling only.
+() => assertParallelNestedGate({ landProject, itemWorktree, submitItem, acceptItem, onBoard, BIN }));
+ test('the landing merge assigns engine numbers in landing order, either order, and the board replays [B3,R3,H16]', () => {
+ for (const order of [[0, 1], [1, 0]]) landEnginesInOrder({ landProject, itemWorktree, submitItem, acceptItem, json, onBoard }, order);
+ });