Scope defaults to visible harness fallbacks

Signed-off-by: kenny lopez <klopez4212@gmail.com>
This commit is contained in:
kenny lopez
2026-07-23 14:22:30 -07:00
parent 81fe1896e5
commit 0591b50b6f
10 changed files with 174 additions and 13 deletions

View File

@@ -5,6 +5,7 @@ import {
availableRuntimesForStart,
buildInstanceInputForDefinition,
resolveStartRuntimeForDefinition,
shouldPinSelectedRuntimeForDefinition,
} from "./instanceInputForDefinition.ts";
// ── Phase 1B.3.5: the single definition→instance mapping ────────────────────
@@ -74,6 +75,9 @@ test("row 4: create input never contains definition env vars", async () => {
});
test("row 2: harnessOverride follows the backend-aligned formula", async () => {
assert.equal(shouldPinSelectedRuntimeForDefinition(undefined, "goose"), true);
assert.equal(shouldPinSelectedRuntimeForDefinition("claude", "goose"), false);
const match = await buildInstanceInputForDefinition(
persona({ runtime: "goose" }),
gooseRuntime,