Concepts
Plain definitions of the words ModelRig uses.
How this works βΈ
The loop
See
Observe every model call your product already makes β its prompt, output, cost and latency β in one console.
Grade
Judge quality: attach a grade β a 0β1 score plus an optional comment, from your code, a human, or an AI β and the console shows what's working and what isn't.
Improve
Bake off a cheaper-or-better model on your own replayed traffic, and when the evidence holds, make the change. Never a silent swap: promote it in ModelRig (console or MCP; versioned, reversible) or merge it as a PR if you keep routes in git.
Framing words
Words that describe the loop itself rather than one table column.
- lane
- Three separate axes once all read as βcaptureβ on this console β keep them apart. (1) Content custody is your orgβs artifact_posture (managed / metadata / off, in Account settings): it decides whether the bytes of prompts and outputs are stored at all. (2) Optimization is a routeβs capture flag: it decides whether runs are kept as replay samples for a bake-off β βOptimization onβ keeps samples, off is a pure router that keeps none. (3) The verification lane is a callβs tags.lane: βSent via ModelRig (passthrough)β marks a BYOK passthrough that skipped the validate/repair pipeline, βReported by your codeβ a call your code made and reported, versus βSent via ModelRigβ for a verified route run. All three are orthogonal β a call can be verified, on an Optimization-on route, under managed custody, each set independently.
- incumbent
- The model a route serves today β the thing a bake-off measures every challenger against.
- challenger
- A variant run against the incumbent on your replayed traffic, to see whether it is cheaper or better on the same inputs.
- ladder
- The evidence ladder a route climbs before optimization is safe: rung 0 (implicit signals only), rung 1 (enough of your attached grades), rung 2+ (judges, a later phase). See the rung entry below.
- regret
- How far a routing choice can fall short of the top-scoring option available; the optimizer only proposes a swap inside a regret bound you set. Distinct from switching regret β the risk that changing models at all makes things worse β which is why every swap stays your decision.
Glossary
Every term the β tooltips define, grouped. The definitions here are the same ones the tooltips show.
Keys & credentials
What your app holds, and whose rows its calls become.
- API key more βΈ
- A rig_sk_ secret naming your organization β the only ModelRig credential your app holds.
- scope more βΈ
- One thing a key is allowed to do. A key can only ever do what it was granted.
- credential scope
- Which key a claim holds under: our managed account, your own (BYOK) key, or any β they differ.
- project
- A sub-scope inside your organization. A key bound to one stamps it on every row it ships.
- ingest more βΈ
- The endpoint your exporter posts telemetry to. Your key decides whose rows they become.
- rig
- Your project's ModelRig setup as a whole; later, a published endpoint others can call.
- rig manifest
- Your project's settings file: name, cost dimensions, sharing preferences.
- last used
- When this key last authenticated. Updated every few minutes, not on every request.
Traffic & calls
The rows the See pages read β a run, its steps, and every call underneath.
- route more βΈ
- A task your app asks ModelRig to run β a small YAML file naming prompt, schema, and allowed models.
- candidates more βΈ
- The only models allowed to serve this route β nothing else can be billed.
- version
- Bumps when the route's YAML changes; telemetry records which version served each call.
- inference
- One model call β sent via ModelRig, or made by your code and reported with rig.recordCall β one row per attempt.
- Sent via ModelRig
- ModelRig dispatched this call. On a route the output is checked; the passthrough form skips the schema check.
- Reported by your code
- Your code made this call and reported its tokens and cost with rig.recordCall; ModelRig did not send it.
- Call not received
- A step expected a call that never reached ModelRig. Check ingest health on the home page.
- served tier
- The provider capacity class that actually ran it β flex is discounted but sheddable; compare with requested.
- requested tier
- The capacity class the route asked for; the served tier shows what you actually got.
- failure class more βΈ
- Typed reason a call failed β retries are budgeted per class, so one flaky network can't eat your content retries.
- attempts
- Retry counts by failure class for this call.
- latency
- Wall-clock time for the call, including provider queueing.
- run
- One execution of a pipeline your app instrumented β a generated report, a batch job.
- step
- One stage of a run. A step whose call reached ModelRig (sent via ModelRig through the SDK or gateway, or reported by your code with rig.recordCall) is linked to that call; others still produce artifacts.
- artifact
- A work product a step produced β prompt, raw response, parsed output, evidence. When your org's content custody is managed (the default) its bytes are stored and shown in the console, except on a zero_retention route, which keeps none; on metadata, only its metadata and hash are kept.
- provenance
- Where a step's numbers come from: a call that reached ModelRig β sent via ModelRig through the SDK or gateway (measured by ModelRig), or made by your code and reported with rig.recordCall (shown as "Reported by your code": the numbers are yours) β or your own trace span with no ModelRig receipt (attested). A step whose call never arrived shows "Call not received".
- grade
- a judgment on a call, run, or artifact: a 0β1 score plus an optional written comment, from your code, a human, or an AI model. The pass/fail verdict is derived from the score (against the route's threshold), never stored separately.Not: not the derived pass/fail β that's the verdict, computed from the score; and not a bake-off's score of a candidate against a golden (a separate system).Interacts: attach one with rig.grade(subject, { score, kind }) β subject is an inference, a run, or an artifact; ten grades on a route reach Rung 1 on /coverage, and /insights clusters on a route's low-scoring grades.
- content hash
- sha256 of the artifact's bytes; proves they are exactly what was recorded. When your org's content custody is managed (the default) the bytes are stored too; on metadata, only the hash is kept.
- taint
- Everything that derives from this artifact β its downstream closure over lineage + supersession. If this one is bad, these are the ones to re-check (condemn or clear).
- route mirror
- The copy of a route's resolved bundle the hosted gateway serves, stamped with when it last changed. A promote in ModelRig writes it directly; if you keep routes in git, the exporter syncs it.
- bundle sha
- A content hash of the resolved bundle. When it changes, the route changed β through a promote in ModelRig or a sync from your git.
Quality & conformance
Whether an output is actually usable β not just valid JSON.
- conformance
- Output actually matched the required schema β not just valid JSON.
- first-try success
- per Group-by slice, the fraction of (run_id, step) groups whose earliest attempt has no failure_class, over routed and raw calls alike.Not: not schema-conformance (that's Route readiness), and not final success: a provider shed that a retry recovered still counts against it.
- final success
- per Group-by slice, the fraction of (run_id, step) groups whose latest attempt has no failure_class; the rest are real failures.Not: not a per-call rate: retried attempts are folded into their step, so recovered retries never read as failures.
- run success
- The run passed its run-outcome@v1 grade β the pipeline finished with an accepted outcome, not just no error.
- value accuracy
- Whether the values are right, not just schema-shaped β valid JSON can still be wrong.
- grounded rate
- Share of a model's probed outputs that grounded their answer in retrieved evidence β probed, not self-reported.
- native rung
- Whether the provider enforces your JSON Schema natively (server-side) β the probed native-schema pass rate. Unrelated to the optimization 'rung' ladder.
- repair rate
- How often an invalid output needed the repair pass before conforming β repair cost is shown, never hidden.
- ci95
- The 95% confidence interval β where the true rate plausibly lies given this sample size.
- samples
- How many calls this statistic is computed from β small n means wide intervals.
- fingerprint
- An anonymous shape-signature of your schema β never its contents.
Grading
How you judge outputs, and how an AI grader learns your standard from your guide and your grades.
- grades overview
- Every grade on your calls and runs: from your code, people, or AI graders.
- pass mark
- Pass or fail, derived from the 0β1 score against the step's threshold (default 0.5).
- grade kind
- Who graded it: your code's check (deterministic), a person (human), or an AI grader (model-judge).
- grader name
- The name a grade was posted under: usually a code check you named in rig.grade, not an AI grader.
- advisory (warning)
- A check running in warn mode: it flags a problem without counting as a fail.Interacts: On the Grades pages and a run's Grades panel, advisory grades are left out of pass rates; a failing one shows as a warning. Post them on runs or calls (artifact grades still feed the run verdict).
- grade rung
- Evidence level for a route: 0 = fewer than ten grades, 1 = ten or more grades attached.
- grade queue
- Outputs waiting for your pass/fail. Your answers teach your graders.
- teaching sample
- Recent outputs from steps with a grading guide. Grade them so the AI grader learns your standard.
- escalation
- Outputs the AI grader was unsure about (close to the line, or its judges disagreed). Your call decides.
- grader spot-audit
- A random sample of the AI grader's own verdicts. Confirm or overturn them to keep it honest.
- grader more βΈ
- An AI judge for one step or route, taught by your grading guide and your own grades.Interacts: A step with the same name as a route shares that route's grader, including its auto-grade setting.
- grading guide more βΈ
- 3β7 pass/fail criteria that define a good output for this step. Plain sentences, one rule each.
- criterion
- Name it, then say in one sentence what passes and what fails.
- grader status
- UNGRADED: no guide. TEACHING: learning from you. CALIBRATED: agrees with you at default 85% (set per guide) over 50+ items.
- agreement
- How often the AI grader's verdict matches yours on the same outputs.
- paired grades
- How many paired grades back the agreement number (n), and its likely range (CI).
- re-measure
- Re-grades the outputs you already graded, to update agreement. Uses metered AI calls in your org; admins only.
- auto-grade
- Once calibrated, grade new outputs automatically: off, a sample, or all. Uses metered AI calls in your org.
- masked grader
- Graders run on several masked models. The agreement number is the receipt, not the model name.
- records import
- Turn past labelled examples (CSV/JSONL) into grades and test cases. Nothing is written until you commit.
- score from
- Where the 0β1 score comes from: a numeric column, or labels you map to scores.
- import origin
- human-approved: a person judged it (a human grade). production-outcome: a recorded live result (a code-check grade).
- import task
- The step or route these examples belong to. Their grades teach that grader.
- dry-run
- Checks the file and mapping and shows what would import. Writes nothing.
- bake-off samples
- Your current model's output next to a challenger's, for the same input, from a bake-off.
Cost
What a call really costs, and how spend is grouped, capped, and attributed to a customer.
- dimension
- A label you attach to calls so costs can be grouped by it.
- declared vs observed
- Declared = named in rig.yaml with a label; observed = any tag we've seen in your data β both work.
- required
- Warns when calls omit this tag, so cost reports don't silently under-count.
- Reserved
- Well-known tag keys (subject, feature) always offered as cost dimensions β even before a call has carried one.
- subject
- the tag that attributes a call to one end-customer: tags: { subject: customerId }. On first sight it becomes a tenant on /tenants.Not: not a plain cost dimension like client or feature β those group spend but do not create a tenant statement.
- tenant
- One of your end-customers β derived from its subject tag (or a project-scoped key), the unit a statement is per.
- tenant statement
- A per-end-customer view derived on read: attempted Β· verified Β· billable, with the true cost measured. Never stored.
- verified outcome
- A call whose output passed deterministic conformance β it counts as billable on a tenant statement (what you bill your customer). Judge and human grades are context. ModelRig's 2% applies to all metered usage.
- unattributed
- The always-visible row catching usage with no subject tag and no project-scoped key β spend not yet tied to a tenant.
- cached tokens
- Input the provider had cached β billed at a discount.
- cache hit rate more βΈ
- Share of this route's input tokens the provider served from cache β its own reported usage, replays excluded.
- effective input rate more βΈ
- What input really costs per token once cache reads and write premiums are counted β not the list price.
- effective cost of conformance more βΈ
- What it really costs to get 1,000 usable outputs β repairs and retries included.
- category percentile
- This route's effective cost ranked against your routes with the same schema shape β 0 = cheapest.
- unpriced
- The model has no pricing entry: cost shows an honest $0 and it is never ranked as cheap.
- envelope more βΈ
- A spending cap for a unit of work β spend hard-stops at the cap with a typed error.
- budget_exhausted
- The typed error a call gets when its envelope's cap is hit β nothing further spends.
- utilization
- Spend so far against the envelope's cap.
- verified savings
- (baseline cost β actual cost) Γ conformant outputs since the swap β measured from telemetry, never projected.
Optimization & proof
How a cheaper-or-better model is proven on your own traffic before you swap. Here βcaptureβ is the route's Optimization/replay flag (keep runs as replay samples) β a different axis from content custody (are bytes stored) and from how a call arrived (Sent via ModelRig, passthrough, Reported by your code).
- bake-off more βΈ
- Replaying your own captured traffic β or your goldens β through model variants to compare cost and conformance.
- variant more βΈ
- A named alternative serving setup for a route β different model, prompt, or repair policy.
- arm
- One contestant in a bake-off β the incumbent you run today, or a challenger variant being measured against it.
- sample input
- One replayed captured input; the incumbent and each challenger are run on the same input so you can read their outputs side by side.
- sample
- A kept incumbent-vs-challenger output pair for one input, stored only when a bake-off ran with `--keep-outputs`; bounded and expiring.
- capture more βΈ
- Recorded inputs+outputs for replay, written to the local SQLite `captures` table β the telemetry exporter has no code path to it. Turning capture on is Optimization on for that route: the bounded review samples a bake-off keeps do reach your organization here, where you can read and export them.
- replay
- Re-running captured inputs through a variant offline β real calls, zero production exposure.
- proposal
- A variant that beat the incumbent's gate. A proposal only β never a silent swap: you promote it in ModelRig (console or MCP), or merge it as a PR if you keep routes in git.
- evidence
- The measured bake-off attached to a proposal β conformance and effective cost on your own traffic.
- trigger
- The watched event that raised this proposal β a price change or a new model on a provider you use.
- watch
- The daily cycle that diffs model prices and new arrivals against your routes, raising proposals.
- expires
- Proposals age out after 30 days β decisions ride current data, never stale suggestions.
- verdict
- the pass/fail a grade resolves to: pass = score β₯ the subject's route threshold (default 0.5).Not: not the grade itself (the grade is the 0β1 score) and not a stored field β it is derived at read time.Interacts: coverage, /insights, and the console's pass badge all derive it from the one stored grade score, so they never disagree.
- episode
- One run of a job, identified by your episodeKey β a grade can target the whole episode instead of one call.
- optimization coverage
- How much evidence each route has for safe optimization: implicit signals (rung 0) plus your grades (rung 1).
- rung
- The evidence ladder: 0 = implicit signals only, 1 = enough attached grades, 2+ = judges (later phase).
- registry
- What we've verified about each model β declared claims, probed measurements, observed traffic.
- declared
- What the provider's own documentation claims the model can do.
- probed
- What our published, reproducible tests actually measured β dated, with confidence intervals.
- observed
- What live routed traffic has shown β aggregates only.
- discrepancy
- A declared claim that didn't hold up when probed β shown, not hidden; that's the point.
Custody & screening
What ModelRig holds (content custody β the bytes-at-rest axis, distinct from a route's Optimization/replay flag and from how a call arrived β Sent via ModelRig, passthrough, Reported by your code), and how untrusted content is handled before dispatch.
- content custody
- The org-level artifact_posture your account is on β the single, server-enforced control over what ModelRig captures, set in account settings (the console or the set_org_settings MCP tool). Three values: managed (signup default β the artifacts your code saves, and each call's prompt and response when call capture is on, are stored in full, PII/PHI scrubbed), metadata (counts and hashes only), off (capture nothing β the server drops even metadata at ingest).Not: Not a deployment environment variable you set. The customer opt-out is this account posture, not a MODELRIG_ARTIFACTS env var β one API key turns everything on and you dial it back per-org from account settings.Interacts: It is the master gate above every route: a content-enabled route stores nothing while the org is on metadata or off. A zero_retention route keeps nothing even under managed.
- threat coverage more βΈ
- A mapping of the OWASP Top 10 for LLM Applications 2026 and MITRE ATLAS threats to ModelRig controls, with each control's live state for your org and the next step to turn it on.Not: Not a security assessment, a score or a certification. It is ModelRig's own mapping, not an assessment or endorsement by OWASP or MITRE, and several rows say what ModelRig does not address.Interacts: Built from the content posture, provider policy, AI inventory, audit log, grading and budget caps on your org; shown first on the console Security page.
- zero retention
- Opt in β require: zero_retention on a route, or zeroRetention on a single run β to route only to zero-retentionβdesignated endpoints under our managed account (a BYOK key is scoped separately). Fail-closed: no designated candidate, no dispatch.
- screening more βΈ
- Isolating untrusted content as data and flagging known injection shapes before dispatch. It does not prevent injection β no detector can.
- spotlighting more βΈ
- Rendering untrusted content (search results, third-party variables) into a JSON-encoded user-slot block, never the trusted system prompt.
- quarantine more βΈ
- A flagged turn is dispatched with tool calls barred (tool_choice:none, or dropped and counted) β the untrusted turn can't actuate a tool through ModelRig.
- canary more βΈ
- A unique token seeded into the system slot; if it appears in the model's output, the receipt counts a canary leak (a prompt-echo signal).
Billing
The money vocabulary the /billing page shows.
- prepaid
- You fund a balance up front; usage draws it down. When it's empty, requests stop β the balance is its own spending cap.
- balance
- Money you've funded, minus what usage has drawn. Recomputable from every statement entry β never a guessed counter.
- available balance
- The part of your balance you can spend right now. Frozen funds are not part of it.
- frozen balance
- Funds held aside during a payment dispute β not spendable, and not ours. A lost dispute keeps them frozen; a won one releases them.
- top-up
- Adding funds to your balance on Stripe's hosted checkout. Your balance credits when the payment clears.
- statement
- Every ledger entry, newest first β top-ups, draws, fees, refunds. The running balance after each one is shown.
- provider cost
- What the model provider charged for a call, at list price β drawn from your balance on managed keys.
- metered fee
- Our flat 2% of metered usage at provider list prices β the only thing we keep. Stripe's processing cost passes through separately.
- fee credit
- A credit back to your balance β a promo or a correction. Rare; shown for a complete record.
- refund
- Unused balance returned to your card. Always refundable β just ask; consumed usage is not.
- adjustment
- A manual correction to your balance β e.g. dunning after a failed off-session charge. Signed, and always explained in the note.
- card on file
- A saved payment method for the monthly metered fee, entered on Stripe's page. We never see the card number.
- dispute
- A chargeback your bank raised on a payment. It freezes the disputed funds while we respond with your usage record.
Foundations
Prerequisites a first-timer may want a one-line reminder of.
- YAML more βΈ
- A human-friendly config format β indentation defines structure.
- JSON Schema more βΈ
- A contract describing what valid output looks like.
- environment variable more βΈ
- A named value your shell passes to programs β how keys and settings reach ModelRig without living in code.
- CLI more βΈ
- The command line β you type a command in a terminal and the program runs.
More terms
Defined in the glossary, not yet sorted into a section above.
- model source
- Who chose a call's model: your code (code) or a ModelRig step config (step-config, with its version).
- reasoning tokens
- Tokens a model spends thinking before it answers β billed as output and already inside the output count.Not: Extra spend on top of output: they are a part of output, so they are never added again.Interacts: The reasoning level (none to max) set on the call, the step or route, or the org defaults decides how much a model may think; each call records the level it asked for.
- step config
- A versioned pin for a raw-lane step, named by the stepKey your code passes to rig.runRaw.Not: A route. The prompt stays in your code; only the model, tier and Flex windows change.Interacts: Your provider keys never move. With no pin, your code's model serves. A pin applies to runs that start after ModelRig's settings cache refreshes (at most about a minute after you save); a run never changes model mid-run. A model that cannot honor the call fails closed.
- Pass a stepKey on each rig.runRaw call.
- Open Routes & steps and pick the step.
- Choose a model, tier and Flex windows; check the estimated cost change; Save.
- Roll back any version from the step's history.