Script (run from apps/server with node): decodes two ModelSelections through @t3tools/contracts, reads reasoningEffort with getModelSelectionStringOptionValue, compares with modelSelectionsEqual, and passes both through the real decideProviderSessionTransition with selectionTransition: {type: "apply_on_next_turn"}.
import * as Schema from "effect/Schema";
import { ModelSelection } from "@t3tools/contracts";
import { getModelSelectionStringOptionValue, modelSelectionsEqual } from "@t3tools/shared/model";
import { decideProviderSessionTransition } from "./src/orchestration-v2/ProviderSessionTransitionPolicy.ts";
const decode = Schema.decodeUnknownSync(ModelSelection);