Automation quality and human review
Measure quality and handling time together
Automation quality is whether the workflow safely achieves the intended result, not how many tickets a model processes. Compare a deterministic rule baseline with a proposed extraction pipeline using the same independently labeled cases. The five fictional cases below have target routes, proposed routes, hypothetical total handling seconds (including correction) and human-assigned severity. A severity of 1 is a low-impact misroute, 3 a high-impact error, and 0 an exact route match in this exercise. This is an illustrative rubric, not a measured service benchmark. Correct routing is 3/5 for the rule fixture and 4/5 for the mock fixture; manual corrections fall from two to one. Total handling time is 210 versus 155 fictional seconds, a difference of 55 seconds. Do not claim measured savings from invented times.
def summarize(rows): # Each case: (expected route, proposed route, handling seconds, severity). # Severity is a human label, 0 for correct, 1 low, 3 high. if any(type(t) is not int or t < 0 or type(s) is not int or s not in (0,1,3) or ((a == b) != (s == 0)) for a,b,t,s in rows): raise ValueError("invalid evaluation row") return {"cases":len(rows), "correct":sum(a==b for a,b,_,_ in rows), "corrections":sum(a!=b for a,b,_,_ in rows), "seconds":sum(t for _,_,t,_ in rows), "severity_points":sum(s for _,_,_,s in rows), "high_errors":sum(s==3 for _,_,_,s in rows)}
rule = [("billing","billing",30,0),("technical","review",50,1), ("review","review",40,0),("technical","technical",30,0), ("review","billing",60,3)]mock = [("billing","billing",20,0),("technical","technical",20,0), ("review","review",35,0),("technical","review",45,1), ("review","review",35,0)]print(summarize(rule))print(summarize(mock))Make the rule baseline reproducible
Use a simple category field first: route explicit billing or technical hints; otherwise send to review. In the project fixture, five tickets have hints billing, unknown, unknown, technical and billing. The last is actually urgent; a deliberately limited baseline misses urgency. The mock fixture includes urgency and a deliberately missed technical case. Establish truth from the original ticket descriptions before comparing systems. Keep the same ticket IDs and ordering, define correctness before observing predictions, and record false escalations separately from dangerous missed escalations. A deterministic baseline with an explicit urgency rule is a worthwhile stronger comparator. Never tune on the final held-out cases.
Require human escalation and explicit release gates
A low average latency cannot offset an unacceptable high-impact error. Use a risk-based threshold, independent reviewer, and an escalation queue with ownership and response targets. The toy release gate checks nonempty equal case counts, zero high-impact errors, no increase in corrections and lower total handling time. Matching counts alone do not establish paired cases; the caller must first verify identical unique case IDs and consistent timing definitions. A passing result requests pilot review, not automatic deployment. A real pilot requires representative held-out data, authorization, operational controls, monitoring and rollback.
def release_gate(baseline, candidate): # Fictional policy: no high errors, no extra corrections, less time. if baseline["cases"] == 0 or baseline["cases"] != candidate["cases"]: return "insufficient" if candidate["high_errors"] or candidate["corrections"] > baseline["corrections"]: return "review" if candidate["seconds"] >= baseline["seconds"]: return "review" return "pilot_review"
base = dict(cases=5, high_errors=1, corrections=2, seconds=210)mock = dict(cases=5, high_errors=0, corrections=1, seconds=155)print(release_gate(base,mock))print(release_gate(base,dict(mock,high_errors=1)))print(release_gate(base,dict(mock,cases=4)))Monitor drift and review burden
Track per-category errors, review rate, correction time, severity distribution, queue age, retries, and end-to-end latency including waiting. Compare distributions over time rather than relying only on a mean; count missing observations and report denominators. Audit reviewer agreement and sampling coverage, including rare urgent tickets. Store model and prompt versions, policy version, trace ID and redacted outcome. Pause automation or route to human review when the service fails, the policy changes or serious errors appear. Restrict reviewers to authorized records and log decisions; a model cannot approve its own consequential action.
Practice with an honest evaluation report
Build the five-ticket project with a deterministic rule function and fixed mock extraction responses. Record the paired expected and proposed routes, seconds and severity; check the calculations against the lesson. Add held-out duplicate, missing field, urgent and malformed cases; report outcomes separately from the five-case example. Explain why a simulated 55-second difference is not evidence of real productivity improvement. Reference: ref-ai-automation-quality-and-human-review. Next chapter formalizes evaluation datasets, rubrics and agreement.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Automation quality and human review quiz
Assess deterministic routing, reliability, evaluation and human review.
What is the rule fixture correction count?
How much hypothetical total time is saved in the five cases?
What is the mock fixture high-error count?
What does pilot_review mean?
What makes a fair paired comparison?