A/B test lab
Constrain access and rehearse rollback
Least privilege, negative probes, and a timed rollback beat a security essay about support-answer service comparing retriever_v1 vs reranking retriever_v2.
1Try it yourself
Decision drill
A/B test lab
Split traffic and measure quality — not every change needs an experiment, but behavior shifts do.
1/3New system prompt — 50/50 traffic.
2Learn the idea
Read
Least privilege for this lab
Separate runtime and operator roles for support-answer service comparing retriever_v1 vs reranking retriever_v2. Runtime may only perform the narrow actions that experiment owner measuring groundedness lift with SRM checks needs; operators get audited break-glass with TTL. Encode a negative probe that denies the privilege trick related to reassignment every request → users flicker; metrics uninterpretable.
Read
Data and secret hygiene
Redact prompts/PII at collection. Secrets enter via a manager or workload identity — never source, fixtures, or exception strings. Incident AB-SRM-FAIL-27 should be impossible if these controls hold. Output allowlists and schema checks stay in force on error paths.
Read
Implementation artifact
Read
Exposures omit question text; store hashed user_id only.
Read
Rollback drill
Rehearse the rollback or kill switch timed against a clock. Record actor, reason, prior revision/secret/flag, and verification query. Invariant reminder: assignment sticky by user_id; analysis gated on sample ratio mismatch (SRM) p>0.001 fail.
Read
Stage depth
Abuse cases unique to this lab include the privilege path implied by reassignment every request → users flicker; metrics uninterpretable. Prove a read-only role cannot mutate. Break-glass tokens expire; leftover tokens fail the drill. Dependency pin/digest story matters when images or models move under you. Document how to rotate the credential that support-answer service comparing retriever_v1 vs reranking retriever_v2 uses without a full outage window longer than your dual-run plan. Security evidence is part of ship, not an appendix nobody reads.
Read
Field notes for `ab-test-lab` / `security-ops`
List network egress destinations and justify each. Ensure debug endpoints are off by default in the shipping config. Verify that error responses do not echo secrets or raw stack frames to clients. For multi-tenant paths, add a cross-tenant probe fixture. Time the rollback drill twice — once with the author, once with a peer. Store the drill transcript beside the threat notes for the incident id. In this chapter the product is support-answer service comparing retriever_v1 vs reranking retriever_v2, the human stakeholder is experiment owner measuring groundedness lift with SRM checks, and the incident id you design against is AB-SRM-FAIL-27. Re-state the oracle in your notes — after 20k sessions, v2 groundedness +2.1pp, p95 latency +80ms within budget — and keep the invariant visible: assignment sticky by user_id; analysis gated on sample ratio mismatch (SRM) p>0.001 fail. Track groundedness_lift_pp and srm_pvalue as the scoreboard. Surface under change control: POST /v1/support/answer. If you only have forty minutes, finish the fixture for reassignment every request → users flicker; metrics uninterpretable before polishing UI. Promotion language stays ternary: promote, hold, or roll back based on evidence, not hope.
Go deeper
Before you start
Why this matters
Threat-model support-answer service comparing retriever_v1 vs reranking retriever_v2 in five minutes: who can change config, who can read secrets, what a malicious payload tries to do. Write one negative probe that must yield deny with zero side effects. Reference AB-SRM-FAIL-27 as the story you refuse to repeat.
Related lessons
Check your understanding
Page assessment
Answer from memory. Completion is saved from this evidence, not from opening the next page.
All responses are required.