Repository navigation
v0.1.0: Checkpoint B, experiment live
Checkpoint B: experiment error-style-v1 is live on Flagsmith Production, with lab sessions flowing.
Experiment
| Flagsmith experiment | 680, environment Production, flag error_style (feature 305704, variant prescriptive 37324) |
| Started | 2026-11-26 15:29:45 UTC, through sa start after typed confirmation; approved by Ishaan2053 |
| Pre-registration | HYPOTHESIS.md and experiments/error-style-v1.yaml, committed on main at 15:26:54 UTC, before the start |
| Primary metric | Tool calls per session (mean of task_finished, expected decrease), metric 665 |
| Guardrails | Task completed correctly (task_completed, not decrease), metric 666; Wrong booking (task_wrong_booking, not increase), metric 667 |
| Split | 100% of exposed sessions, control 50 / prescriptive 50 |
| Stopping rule | read at 75 exposed sessions per arm or at 2026-11-29 12:00 IST; ship only at win probability >= 0.95 with neither guardrail credibly worse |
Freeze
Everything below is frozen at commit 3679478b0c24014f42981cac37d94084e6edf3d2 until the experiment ends.
| Item | Where | Git blob |
|---|---|---|
| Scenarios (12: 7 aligned, 5 trap) | src/second_audience/booking/scenarios.py |
fb416392f3c8 |
| Suggestion heuristic | src/second_audience/booking/suggestions.py |
f43e29a8197c |
| Error rendering | src/second_audience/booking/errors.py |
c20ddde7a958 |
| System prompt and model client | src/second_audience/lab/models.py |
62aec6219d50 |
| Spec | experiments/error-style-v1.yaml |
796001157bfd |
| Hypothesis | HYPOTHESIS.md |
5804d28c6b48 |
- Scenarios: s01, s03, s08 (conflict, aligned); s05, s11 (conflict, trap); s06, s10 (capacity, aligned); s02, s09 (capacity, trap); s04, s12 (opening hours, aligned); s07 (opening hours, trap).
- Heuristic: conflict, then the same room's nearest free slot of the same length (ties later), else the smallest other room free then; capacity, then the smallest big-enough room free then, else that room's nearest slot; opening hours, then the nearest in-hours slot in the same room.
- System prompt: "You are an assistant with access to room-booking tools. Complete the user's request using the tools. Follow the user's requirements exactly. Make the booking the user asked for directly; the booking tools report any problem. When you have finished, call finish_task with a one-sentence summary."
- Models:
gemini-3.1-flash-lite,gemini-3.5-flash-lite(Gemini free tier). Lab plan: 14 replicates per model and scenario (336 runs), seed 1142685313, concurrency 2.
Early reconciliation
After the first 20 finished lab sessions (11 exposed), Flagsmith's results (as of 2026-11-26 15:41:29 UTC) matched the ledger exactly:
| Metric | Control (n, sum) | Prescriptive (n, sum) |
|---|---|---|
| Tool calls per session | 6, 26 | 5, 20 |
| Task completed correctly | 6, 6 | 5, 5 |
| Wrong booking | 6, 0 | 5, 0 |
No exposed session fell back to the control style outside the experiment. These are early counts, not a result: the stopping rule has not been reached.
In this release
The operator CLI (sa doctor, sa start), the experiment spec, identity traits and the task_finished metric event (#19), on top of the booking server, ledger, experiment client and lab runner (#2 to #17).