Shopify builds production-ready agentic systems for Sidekick with JIT instructions, LLM evaluation, and GRPO training
As Sidekick's tool inventory grew beyond 50 specialized capabilities, the system prompt became an unwieldy collection of special cases nearly impossible to maintain, and traditional software testing approaches fell short for evaluating the probabilistic, multi-step nature of LLM-based agents.
Vibe-testing with simple 0-to-10 LLM judges yielded near-random evaluation quality (Cohen's Kappa of 0.02), and GRPO training produced significant reward hacking — opt-out behavior, tag misuse, and schema violations — that undermined model improvements.
After implementing JIT instructions, improved LLM judges, and reward-hacking fixes, syntax validation accuracy improved from ~93% to ~99%, LLM judge correlation improved from 0.66 to 0.75 on average, and end-to-end conversation quality matched the supervised fine-tuning baseline.
Show all 8 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
After implementing JIT instructions, improved LLM judges, and reward-hacking fixes, syntax validation accuracy improved from ~93% to ~99%, LLM judge correlation improved from 0.66 to 0.75 on average, and end-to-end co…
What tools did this team use?
Sidekick, GRPO.
What results were reported?
Syntax validation accuracy after fix: ~99%; Syntax validation accuracy before fix: ~93%; LLM judge correlation after improvement: 0.75; LLM judge correlation before improvement: 0.66 (source-reported, not independently verified).
What failed first in this deployment?
Vibe-testing with simple 0-to-10 LLM judges yielded near-random evaluation quality (Cohen's Kappa of 0.02), and GRPO training produced significant reward hacking — opt-out behavior, tag misuse, and schema violations —…
How is this ecommerce ops AI workflow structured?
Merchant natural language request → JIT instructions served to LLM → LLM acts in agentic loop → LLM judges evaluate outputs → Merchant simulator pre-production test → GRPO training with gated rewards.