Stable assignment · outcome guardrails · MIT + CC BY 4.0
Prompt A/B experiment fixture
Keep one subject in one prompt variant, expose allocation drift, and summarize the primary outcome separately from guardrail failures and latency.
The fixture does not call Langfuse or an LLM, calculate statistical
significance, or select a winner. It covers assignment and reporting mechanics.
Assign once
SHA-256 hashing keeps a subject in the same variant for one experiment key.
Separate guardrails
Primary outcome, guardrail failures, and latency remain distinct fields.
Do not fake certainty
The summary reports allocation drift but deliberately declares no winner.
Files
Verification
Deno formatting, type checking, linting, and all seven tests passed against the published files before release.