Onboarding
ProOnboarding: Set Up Drift Detection
Onboarding arc for the drift goal. Walks the full bottom-up chain -- context store, compliance store, rubric, then a scheduled benchmark that uses them -- creating only what's missing and what your tier allows, then runs a baseline and leaves you monitoring.
Agentic and programmatic use. Agents and scripts you connect can make cost-generating calls on your behalf, and AI agents behave non-deterministically. You are responsible for monitoring and bounding your own automation. See Terms for details.
Run it: paste into your MCP agent
Parts in double braces (like {{recipe_id}}) are placeholders. Replace them with your own values before (or after) copying.
You are completing the user’s onboarding for the goal “detect model drift”. A drift benchmark is NOT a single step: it sits on top of prerequisites (what the models read, what the judge scores against, and the scoring standard). Build it BOTTOM-UP – create only what is MISSING and only what the user’s TIER allows, in dependency order, then the benchmark that uses it. Do not skip ahead to creating the benchmark before its scoring prerequisites exist.
Several tools below are EXTENDED (not in your core list): create_rag_store, create_rubric, create_benchmark, update_benchmark_alerts. If you do not see one, do NOT assume it is unavailable – discover it via list_tool_catalog, then request_tools, then invoke. Respect tier gates: the server enforces them, so read the error and relay it rather than retrying.
CONFIRM TOOLS + CHECK STATE.
- List the tools; confirm you can reach list_rag_stores, list_rubrics, list_models, create_benchmark, trigger_benchmark_run, list_benchmark_runs, poll_job, and the agent-state tools (get_agent_notes, put_agent_note, update_agent_note). Load any extended ones you are missing (list_tool_catalog -> request_tools). If the tool list will not load at all, STOP and tell me the MCP connection is not working.
- get_agent_notes(recipe_id="{{recipe_id}}"). If an active note already records a drift setup, tell me it is already set up and hand off to mcp-drift-monitor instead of building a duplicate. Otherwise continue.
SETTLE SCOPE WITH ME (one short conversation, before creating anything).
- The prompt and the model(s) to monitor. List the models available to my account first (list_models) and respect my plan’s per-run cap; do not exceed it.
- Grounding: do the models need to read my own documents to answer (a CONTEXT store), or is the prompt self-contained? Context is optional.
- Compliance: am I tracking drift against regulations/standards (a COMPLIANCE store the JUDGE scores against), or just general quality? Compliance is Pro+ only.
- Scoring standard: drift in quality is invisible on an unscored run, so we need either a gold-standard answer (expected_output) or a RUBRIC. If I have neither, you will create a rubric for me in step 5. Tell me plainly which of the steps below apply given my answers and my tier, and that you will create only those.
CONTEXT STORE (optional; only if the models need to read my documents). Pro+.
- If I already have a suitable general store (list_rag_stores, store_type general, sync_status ready), reuse it – do not create a duplicate.
- Otherwise create_rag_store(store_type=“general”, name=…), then walk me through uploading the file(s) (upload-url -> confirm) and poll until sync_status is ready. A store that is not ready cannot be attached to a benchmark.
- If my tier does not allow it, say so and continue without a context store.
COMPLIANCE STORE (optional; only if I am tracking compliance drift). Pro+ only.
- Reuse an existing compliance store if one fits; otherwise create_rag_store(store_type=“compliance”, name=…) and ingest the regulation text the same way (upload -> confirm -> poll ready).
- If my tier does not allow compliance, say so clearly and fall back to a quality rubric (step 5) rather than silently dropping the compliance intent.
RUBRIC (the scoring standard). Pro+.
- If I supplied a gold-standard answer instead of a rubric, skip this – carry the expected_output straight to the benchmark.
- If I already have a fitting rubric (list_rubrics), reuse it.
- Otherwise create_rubric with criteria we agree on. Make it a COMPLIANCE rubric if we set up a compliance store in step 4 (so the judge scores against those regs), else a quality rubric. Respect the per-rubric criteria cap for my tier. Show me the criteria before saving; do not invent a standard silently.
BENCHMARK (uses everything above). Pro+ for scheduling.
- create_benchmark with: name, the prompt, the models, benchmark_type (quality, or compliance if a compliance store+rubric are in play), the rubric_id OR expected_output from step 5, store_id if a context store was set up in step 3, compliance_store_id if a compliance store was set up in step 4, and a schedule I choose. Ask me which cadence I want and offer the schedules my plan allows; the server enforces the cap, so read back what it accepts rather than asserting it. Note the suite_id returned.
- Optionally translate “warn me if X” into pass/fail thresholds with update_benchmark_alerts so regressions are flagged.
RECORD THE STANDING NOTE (series anchor; stays RUNNING for the life of the series).
put_agent_note(recipe_id="{{recipe_id}}", recipe="onboard-drift", intent="Drift monitor for <model(s)> on <short prompt label>", status="running", data={ suite_id: "<suite_id>" }).BASELINE RUN. trigger_benchmark_run(suite_id) -> returns a JOB id; poll poll_job every 5 seconds to completion (stop after 5 minutes). The job id and run id are DIFFERENT. Once complete, list_benchmark_runs(suite_id) and take the newest run’s run_id as the BASELINE.
ANCHOR THE BASELINE + HAND OFF. update_agent_note setting job_id= and data={ suite_id, baseline_run_id: “”, last_run_id: “” }, keep status “running”. Report the baseline numbers per model, tell me the benchmark is live on , and that from now on the drift monitor reconciles each run against this baseline – run mcp-drift-monitor (or just ask “any drift?”) in future sessions.
ON ANY FAILURE at any step: tell me honestly where it failed and with what error (a tier gate is a clear, expected error – relay it, do not retry blindly). Do NOT fabricate a baseline or claim the benchmark is live when a call failed. If a note was created, mark it “failed” with data.failure_stage, data.failure_reason, detail, and job_id; never leave a note “running” after a genuine failure, and never claim prerequisites exist that you did not actually create.
Goal
Walk out of onboarding already monitoring – with the whole stack built correctly underneath. A drift benchmark depends on prerequisites: what the models read (a context store), what the judge scores against (a compliance store), and the scoring standard (a rubric or gold answer). This recipe builds that stack bottom-up, creating only what is missing and what your tier allows, then stands up the scheduled benchmark and a baseline run on top.
When to use
When you arrived to detect model drift and want the setup done for you end to end, including the prerequisites, rather than discovering halfway through the benchmark form that you first need a store and a rubric.
How it works
- Bottom-up, not benchmark-first. The agent inspects what you already have, then creates the missing prerequisites in dependency order – context store, compliance store, rubric – before it creates the benchmark that references them. A benchmark built before its scoring prerequisites exist is a dead end.
- Tier-aware. Context and compliance stores and scheduling are tier-gated (compliance and RAG are Pro+; schedule cadence rises with tier). The agent creates only what your plan allows and tells you plainly what it skipped and why – it never silently drops your intent.
- Scored or nothing. Drift in quality is invisible on an unscored run, so a rubric or a gold-standard answer is required before the benchmark is built. The agent will create the rubric with you if you do not have one.
- One standing note. The baseline run id is persisted in a note that stays
runningfor the life of the series, which lets any later session diff the newest run against the original baseline. Ongoing reconciliation is the drift monitor’s job (mcp-drift-monitor).
Verification
- Only the prerequisites you actually needed were created, in order, and any you already had were reused rather than duplicated.
- A scheduled benchmark exists that references the store(s) and rubric/gold standard, and has run at least once (the baseline).
- A standing note exists with
suite_idandbaseline_run_idin its data, statusrunning. - Anything skipped for tier reasons was reported to you explicitly, not silently dropped.
- The hand-off to mcp-drift-monitor is clear: a later “any drift?” finds the note and reports against the baseline without you supplying ids.
Where this leads
Natural next recipes once you are comfortable with this one.
Benchmark is live. Use the drift monitor each session to reconcile the newest run against the baseline and hear only about real movement.
Score drift on exactly what you care about. Turn a plain description of 'good' into a reusable weighted rubric.