By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
A demo is judged by one good answer. A release is judged by the same twenty answers every time. A golden set is a small, versioned collection of real exceptions plus edge cases, each with expectations that can be checked mechanically. It is the minimum evidence a change should have before it is allowed anywhere near a customer.
For Waypoint the harness runs against a deterministic fake provider, so a CI run is fast, free and repeatable. That does not make the harness fake: it tests the contract, the schema, the required facts and the approval rule. Quality that depends on live-model judgement is a separate, smaller, sampled layer on top.
| Check | Catches | False-positive risk | Waypoint example |
|---|---|---|---|
| Schema | A missing field, wrong type or renamed key in the response | None; it is structural | Every response has draft, citations, approval_required |
| Contains | The answer stops mentioning a required fact or clause | Wording changes can trip it, so test short canonical phrases | "clause 4.2" appears in a delay-credit draft |
| Exact | A tool decision, approval flag or status changes value | Too strict for prose, ideal for decisions | approval_required is true for an issue_credit proposal |
The harness below runs four cases and refuses to call the release green because one case is missing a required citation. That failure is the whole point: the gate is doing its job before a customer sees the omission.
GOLDEN_CASES = [
{
"id": "delay-credit",
"exception": {"code": "EXC-4821", "carrier": "Northline"},
"checks": {"contains": ["clause 4.2"]},
},
{
"id": "reroute-fee",
"exception": {"code": "EXC-4902", "carrier": "Bluepeak"},
"checks": {"schema": ["draft", "proposed_action", "citations"]},
},
{
"id": "citation-required",
"exception": {"code": "EXC-5010", "carrier": "Bluepeak"},
"checks": {"schema": ["draft", "citations"]},
},
{
"id": "refund-blocked",
"exception": {"code": "EXC-5100", "carrier": "Northline"},
"checks": {"exact": {"approval_required": True}},
},
]
class FakeWaypoint:
def respond(self, exception: dict) -> dict:
table = {
"EXC-4821": {
"draft": "Northline clause 4.2 supports a delay credit; update drafted.",
"proposed_action": None,
"citations": ["northline-policy@v3#4.2"],
"approval_required": False,
},
"EXC-4902": {
"draft": "Bluepeak confirms the connection misses the window; no fee applies.",
"proposed_action": "propose_reroute",
"citations": ["bluepeak-policy@v2#1.4"],
"approval_required": False,
},
"EXC-5010": {
"draft": "Bluepeak recommends a reroute.",
"proposed_action": "propose_reroute",
"approval_required": False,
},
"EXC-5100": {
"draft": "Northline clause 6.1 supports a service refund.",
"proposed_action": "issue_credit",
"citations": ["northline-policy@v3#6.1"],
"approval_required": True,
},
}
return table[exception["code"]]
def run_checks(response: dict, checks: dict) -> list[str]:
failures = []
for key in checks.get("schema", []):
if key not in response:
failures.append(f"missing field {key}")
for expected in checks.get("contains", []):
if expected.lower() not in response.get("draft", "").lower():
failures.append(f"draft missing {expected!r}")
for key, expected in checks.get("exact", {}).items():
if response.get(key) != expected:
failures.append(f"{key} expected {expected!r}")
return failures
model = FakeWaypoint()
passed = 0
for case in GOLDEN_CASES:
response = model.respond(case["exception"])
failures = run_checks(response, case["checks"])
if not failures:
passed += 1
label = "PASS" if not failures else "FAIL"
print(f"{label} {case['id']}: {failures or 'ok'}")
score = passed / len(GOLDEN_CASES)
decision = "green" if score >= 0.92 else "red"
print(f"score={score:.2f} gate={decision}")Key takeaways
A golden set is versioned real cases plus edge cases, checked mechanically before release.
Schema, contains and exact checks catch different failures; exact is for decisions, not prose.
Gate on a threshold plus hard-fail safety cases, with the eval set and report pinned to the change.
Add a failing case before fixing an incident, and keep the fake provider's shape faithful to the real one.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.