Skip to content

Commit 85ec3bb

Browse files
test(server): malformed update replay asserts no error item
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 5a5859f commit 85ec3bb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • apps/server/src/orchestration-v2/testkit/fixtures/malformed_session_update

‎apps/server/src/orchestration-v2/testkit/fixtures/malformed_session_update/output.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { assert } from "@effect/vitest";
12
import type { ProviderReplayTranscript } from "@t3tools/contracts";
23

34
import type { OrchestratorV2ScenarioResult } from "../../OrchestratorScenario.ts";
@@ -19,7 +20,11 @@ export function assertMalformedSessionUpdateOutput(
1920
const projection = projectionFor(result, transcript.scenario);
2021
assertSemanticProjectionIntegrity(projection);
2122
assertUserMessagesInclude(projection, [MALFORMED_SESSION_UPDATE_PROMPT]);
22-
// No error item: the dropped update does not fail the turn.
2323
assertTurnItemTypes(projection, ["user_message", "assistant_message"]);
24+
// The dropped update does not fail the turn.
25+
assert.notInclude(
26+
projection.turnItems.map((item) => item.type),
27+
"error",
28+
);
2429
assertAssistantTextIncludes(projection, "malformed update fixture ok");
2530
}

0 commit comments

Comments
 (0)