From 1444503e84f55aca1aca057fdcbd5ace0d777cc8 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 24 Nov 2026 18:24:27 -0600 Subject: [PATCH] test(native): expect the swarm run facts on the staged Antigravity credential Co-Authored-By: Claude Opus 5.5 --- .../services/native-runtime/native-session-executor.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/services/native-runtime/native-session-executor.test.ts b/server/src/services/native-runtime/native-session-executor.test.ts index c1b507258bd..54aae978417 100644 --- a/server/src/services/native-runtime/native-session-executor.test.ts +++ b/server/src/services/native-runtime/native-session-executor.test.ts @@ -18056,7 +18056,9 @@ describe("runnerd provider runtime wiring", () => { runnerEnvironment: { GEMINI_HOME: "/ambient", PAPERCLIP_ACPX_ANTIGRAVITY_AUTH_JSON_SECRET: "spoofed" } }); state.createBackend.mock.calls.at(-1)![1].codexTransportFactory!(); const transport = state.createTransport.mock.calls.at(-1)![0]; - expect(transport.environment).toMatchObject({ PAPERCLIP_ACPX_ANTIGRAVITY_AUTH_JSON_SECRET: credential() }); + // The staged credential carries the swarm route's run facts (dropped by the Runner's sanitizer before any write). + expect(JSON.parse(transport.environment!.PAPERCLIP_ACPX_ANTIGRAVITY_AUTH_JSON_SECRET!)) + .toEqual({ ...JSON.parse(credential()), paperclip: { swarmChannel: "provider_default" } }); expect(transport.environment?.GEMINI_HOME).toBeUndefined(); await mkdir(transport.acpxRuntimeDirectory!, { recursive: true, mode: 0o700 }); const runtimeHome = join(await resolveAcpxRuntimeRoot(transport.acpxRuntimeDirectory!, execution.session.normalizedSessionId!), "antigravity-home", "antigravity-acp");