test(runner): keep v1 integrity fixtures free of v2 goal commands

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Dotta 2026-09-11 17:05:25 -05:00
parent b48689cb00
commit 4f3935ed52
1 changed files with 7 additions and 1 deletions

View File

@ -641,7 +641,13 @@ describe("Codex protocol integrity propagation", () => {
runtimeIdentity: { processId: process.pid },
}),
);
await commandResult("session.goal.get", { goal: null });
// This synthetic runner deliberately negotiates PRP v1. The transport
// reports goals as unsupported locally and must never send it a v2
// session.goal.get command during session admission.
await vi.waitFor(() => expect(admitted).toHaveBeenCalledTimes(1));
expect(core.store.state.commands.some(
(command) => command.type === "session.goal.get",
)).toBe(false);
if (scenario !== "integrity-fault") {
await vi.waitFor(() =>
expect(