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(core): preserve descriptors with no GUI observation [C7,O5,V4]

Corey Olson6bc6457a7ace
diff --git a/src/runner-load.js b/src/runner-load.js
index 2d7b29d0..b07b3cf5 100644
--- a/src/runner-load.js
+++ b/src/runner-load.js
@@ -11,7 +11,7 @@ export function sampleRunnerLoad() {
}
/** Describe actual local admission capacity; unreported capabilities stay unknown. */
-export function localRunnerDescriptor(slots, browser, gui = null) {
+export function localRunnerDescriptor(slots, browser, gui) {
return { id: `local:${hostname()}`, kind: 'local', slots: { current: slots, limit: slots, elastic: false },
- capabilities: { os: platform(), browser, gui } };
+ capabilities: { os: platform(), browser, ...(gui === undefined ? {} : { gui }) } };
}
diff --git a/src/runner-stage.js b/src/runner-stage.js
index 57c93e73..4dc09b0c 100644
--- a/src/runner-stage.js
+++ b/src/runner-stage.js
@@ -54,7 +54,7 @@ function normalizedRunner(value, { stage = false } = {}) {
id: value.id,
kind: value.kind,
slots: { current: value.slots.current, limit: value.slots.limit, elastic: value.slots.elastic },
- capabilities: { os, browser, gui },
+ capabilities: { os, browser, ...(value.capabilities.gui === undefined ? {} : { gui }) },
};
normalized.active = value.active;
if (value.browserSlots !== undefined) Object.assign(normalized, { browserSlots: value.browserSlots, browserActive: value.browserActive });
@@ -214,7 +214,7 @@ function capabilityMatch(runner, requested) {
for (const key of ['os', 'browser', 'gui']) {
if (requested[key] === undefined || requested[key] === null) continue;
if (['browser', 'gui'].includes(key) && requested[key] === false) continue;
- const actual = runner.capabilities[key];
+ const actual = runner.capabilities[key] ?? null;
if (actual === null) unknown = true;
else if (actual !== requested[key]) return 'no';
}