Concepts
Ladder and gates
A variant earns the right to an expensive run by passing cheap ones first. Each tier of the ladder has a gate: the bar your metric must clear there.
The ladder
Tiers go from cheap to expensive. A typical harness has four:
- Smoke: a handful of examples. Anything that runs and produces output passes. Catches broken variants for pennies.
- Dev set: where you choose between variants. The bar applies here.
- Test set: confirms the choice on examples you didn't choose on. Part of it is held out: never used to choose, required before adopting. Its minimum size counts the whole test set; the held-out part needs a few runs of its own (5 for a 50-example test set).
- Production: a canary or shadow traffic. Runs only with your explicit OK.
Your harness's tiers are yours to adjust: names, sizes and bars are part of your harness layer.
Gates
Before running a tier, ask the gate. It answers whether the variant may run there yet, why or why not, what the run should cost from what you've reported so far, and whether the variant already passes.
gate = h.gate("prompt-v2", "T2", experiment_id=42)
if not gate["allowed"]:
print(gate["reasons"]) # ["T1 not passed yet: mean_accuracy 0.78 < bar 0.80"]const gate = await h.gate({ variant: "prompt-v2", tier: "T2", experimentId: 42 });
if (!gate.allowed) console.log(gate.reasons); // ["T1 not passed yet: mean_accuracy 0.78 < bar 0.80"]GET /api/harnesses/support-bot/gate?variant=prompt-v2&tier=T2 HTTP/1.1
Authorization: Bearer syn_...
HTTP/1.1 200 OK
{"allowed": false,
"reasons": ["T1 not passed yet: mean_accuracy 0.78 < bar 0.80"],
"estimated_cost_usd": 4.1, "passes_own_gate": false}Adopting a variant requires it to pass the gate of every tier it ran, and of the held-out test set and every tier below it: the test set is required to adopt, so passing only the smoke test or the dev set isn't enough. You can adopt anyway with a written reason (override_reason in Python and HTTP, overrideReason in TypeScript); the override is logged and shown on the version.
Noise
Many systems give different outputs for the same input. Record several draws per variant (tag them, e.g. meta.axes.seed) and comparisons account for run-to-run noise instead of crowning one lucky draw.
Something unclear or missing? Email support@synaptra.my.