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
fix(land): keep board admission off runner [C7,O5]
Corey Olson90d7f70b8743
diff --git a/src/land.js b/src/land.jsindex 4acc5f12..dd917aa3 100644--- a/src/land.js+++ b/src/land.js@@ -42,7 +42,7 @@ import {} from './gate-run-receipt.js';import { testsNeedBrowser } from './browser-admission.js';import { laneOf } from './lanes.js';-import { takeResource } from './resources.js';+import { takeLandingResource } from './landing-resource.js';import {landingLeaseState,requireConfirmedLanding,@@ -769,7 +769,7 @@ export async function land(options) {}let lastWait = '';const controller = new AbortController();- const lease = await takeResource({ name: 'landing', scope: 'board', capacity: 1, board: options.board, write: options.write, branch,+ const lease = await takeLandingResource({ board: options.board, write: options.write, branch,onLost: error => controller.abort(error),/** Report a real ordered holder, without allocating machine test capacity to this waiter. */onWait({ holders, position }) {diff --git a/src/resources.js b/src/resources.jsindex 7a21f596..10c30a7e 100644--- a/src/resources.js+++ b/src/resources.js@@ -699,11 +699,6 @@ function pause(ms) { return new Promise((resolvePromise) => setTimeout(resolvePr*/export async function takeResource(options) {const { name, capacity, scope = 'machine', root = process.cwd(), allowIdleCapacityUpdate = false } = options;- if (scope === 'board' && name === 'landing' && capacity === 1 && options.board && typeof options.write === 'function') {- // Ordinary machine/repo users must initialize without importing the board/gate cycle.- const { takeLandingResource } = await import('./landing-resource.js');- return takeLandingResource(options);- }if (typeof name !== 'string' || !name.trim() || name.trim() !== name) throw new Refused('BAD_RESOURCE_NAME', 'resource name must be nonempty trimmed text');if (name.startsWith('runner:')) throw new Refused('RESERVED_RUNNER_RESOURCE', 'runner resource rows are managed by the machine gate; request name "gate"');if (!Number.isSafeInteger(capacity) || capacity < 1) throw new Refused('BAD_RESOURCE_CAPACITY', 'resource capacity must be a positive integer');diff --git a/src/runner-worker.js b/src/runner-worker.jsindex dc291db5..be89c2fc 100644--- a/src/runner-worker.js+++ b/src/runner-worker.js@@ -198,7 +198,7 @@ async function readSpec() {tagNames.add(tag.name);if (tag.chain.length ? tag.chain[0] !== tag.object : tag.object !== tag.peeledCommit) throw new Error('invalid tag manifest');}- const runtimeNames = ['runner-custody.js', 'resources.js', 'landing-resource.js', 'git.js', 'machine-home.js', 'refused.js', 'process-census.js', 'queue-settings.js', 'queue-order.js', 'sandbox-denial.js', 'gate-stages.js', 'child-journal-preload.js'];+ const runtimeNames = ['runner-custody.js', 'resources.js', 'git.js', 'machine-home.js', 'refused.js', 'process-census.js', 'queue-settings.js', 'queue-order.js', 'sandbox-denial.js', 'gate-stages.js', 'child-journal-preload.js'];if (Object.keys(value.runtime.files).length !== runtimeNames.length|| runtimeNames.some(name => typeof value.runtime.files[name] !== 'string')) throw new Error('invalid work specification');if (createHash('sha256').update(JSON.stringify(value.runtime.files)).digest('hex') !== value.runtime.sha256) throw new Error('invalid trusted runtime');diff --git a/src/runners.js b/src/runners.jsindex de0d8e4d..3936fa28 100644--- a/src/runners.js+++ b/src/runners.js@@ -67,7 +67,7 @@ const MAX_BLOB_BYTES = 8 * 1024 ** 2;const MAX_HISTORY_TAGS = 1_024;const MAX_TAG_CHAIN = 8;const TOOL_ROOT = fileURLToPath(new URL('../', import.meta.url));-const RUNTIME_NAMES = ['runner-custody.js', 'resources.js', 'landing-resource.js', 'git.js', 'machine-home.js', 'refused.js', 'process-census.js', 'queue-settings.js', 'queue-order.js', 'sandbox-denial.js', 'gate-stages.js', 'child-journal-preload.js'];+const RUNTIME_NAMES = ['runner-custody.js', 'resources.js', 'git.js', 'machine-home.js', 'refused.js', 'process-census.js', 'queue-settings.js', 'queue-order.js', 'sandbox-denial.js', 'gate-stages.js', 'child-journal-preload.js'];/** Validate an SSH destination as one argument, never a command or an SSH option. */export function validateRunner(value) {