Problem
Shopify's Sidekick is an assistant that helps merchants manage their stores in natural language. As its tools grew from a handful to dozens, their boundaries blurred and the system prompt became a pile of special cases. Testing was harder: LLM outputs are probabilistic, conversations have many steps, and "vibe testing" (a judge told to rate 0-10) gives false confidence.
Example from the article: asked to "segment customers with status enabled", a model under RL training wrote customer_tags CONTAINS 'enabled' instead of customer_account_status = 'ENABLED'.
Solution in brief
Serve instructions to the model together with tool results (just-in-time) instead of in one huge system prompt. Evaluate with a ground truth set sampled from real conversations, labeled by several experts, and use their agreement as the ceiling for LLM judges. Test candidate builds by replaying conversations through an LLM user simulator scored by the calibrated judge.
Questions this case answers
- How to evaluate a multi-step conversational system before release when outputs are probabilistic and no fixed answer set covers real usage
- How to decide that an automated grader can replace human raters, given a measured human agreement ceiling
- How to keep an instruction-driven agent maintainable as its set of capabilities grows
- How to evaluate a production LLM agent when golden datasets and 'rate 0-10' judges give false confidence?
Tools and methods
- Just-in-time (JIT) instructions — return guidance with tool data at the moment it is needed
- Ground Truth Set (GTX) — real merchant conversations labeled by humans
- LLM-as-a-judge — specialized judges per aspect, calibrated to human agreement
- Cohen's Kappa, Kendall Tau, Pearson correlation — human agreement and judge-to-human agreement
- LLM merchant simulator — replays the "essence" of real conversations through candidate systems
- GRPO with gated rewards — RL on procedural checks plus judge scores
Google or a one-time email code. No password.