Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

Default EAGER_PROVISION on (#1208)

Joshua France72933512d027
diff --git a/src/config.ts b/src/config.ts
index 0353426bf..e926583d9 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -1431,7 +1431,7 @@ export function loadConfig(env: NodeJS.ProcessEnv = process.env): Config {
reachExecEnabled: boolEnvStrict("REACH_EXEC", env.REACH_EXEC) ?? false,
sharedOwnerAuthIsolation: boolEnvStrict("SHARED_OWNER_AUTH_ISOLATION", env.SHARED_OWNER_AUTH_ISOLATION) ?? false,
surfaceDebugFooter: boolEnvStrict("SURFACE_DEBUG_FOOTER", env.SURFACE_DEBUG_FOOTER) ?? false,
- eagerProvisionEnabled: boolEnvStrict("EAGER_PROVISION", env.EAGER_PROVISION) ?? false,
+ eagerProvisionEnabled: boolEnvStrict("EAGER_PROVISION", env.EAGER_PROVISION) ?? true,
awsSandbox: awsSandboxEnv(env),
localSandbox: localSandboxEnv(env),
spritesSandbox: spritesSandboxEnv(env),
diff --git a/test/config.test.ts b/test/config.test.ts
index 8e10f619b..7289e7c47 100644
--- a/test/config.test.ts
+++ b/test/config.test.ts
@@ -214,8 +214,10 @@ test("every boolean knob accepts the shared vocabulary (off means off)", () => {
REACH_EXEC: "off",
COMMAND_SCOPED_CREDENTIALS: "off",
PI_CAPTURE_REQUESTS: "off",
+ EAGER_PROVISION: "off",
});
assert.equal(off.seedSkills, false);
+ assert.equal(off.eagerProvisionEnabled, false);
assert.equal(off.scratchExecEnabled, false);
assert.equal(off.reachExecEnabled, false);
assert.equal(off.sharedOwnerAuthIsolation, false);
@@ -237,6 +239,7 @@ test("every boolean knob accepts the shared vocabulary (off means off)", () => {
const unset = loadConfig({});
assert.equal(unset.piCaptureRequests, true, "capture defaults on");
assert.equal(unset.piSystemCacheSplit, false, "cache split defaults off");
+ assert.equal(unset.eagerProvisionEnabled, true, "eager provision defaults on");
});
test("numEnv: empty and non-numeric values fall back instead of poisoning config with NaN", () => {
diff --git a/test/orchestrator.test.ts b/test/orchestrator.test.ts
index 274054fb7..f1fe21715 100644
--- a/test/orchestrator.test.ts
+++ b/test/orchestrator.test.ts
@@ -3483,7 +3483,7 @@ test("collect-mode metrics: a turn the caller sees as 'ok' records metric status
});
test("a conversational turn never provisions a sandbox (lazy); execute/write/read do", async () => {
- const built = freshApp();
+ const built = freshApp({ eagerProvisionEnabled: false });
const { app } = built;
const boxes = spyProvisioning(built.sandbox);