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(resources): load board landing admission lazily [C7,Q1]
Corey Olsonef8f7cf783f1
diff --git a/src/resources.js b/src/resources.jsindex 804f3e4e..3877baf9 100644--- a/src/resources.js+++ b/src/resources.js@@ -25,7 +25,6 @@ import {withMachineHomeWrite,} from './machine-home.js';import { Refused } from './refused.js';-import { takeLandingResource } from './landing-resource.js';import { gateQueueSettings } from './queue-settings.js';import {ARRIVAL_ORDER,@@ -605,7 +604,11 @@ 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') return takeLandingResource(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');