Checkpoint
One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.
Final drill: the whole runbook in one function. Three tickets
from this morning, each with a trace and a repro flag. Write
triage(report):
- Gate. If
report["reproduced_with_logged_input"]is falsy, return"blocked: reproduce with the logged input"— no classification, no routing. - Classify. Apply the lesson-02 priority order to
report["trace"]:retrieved_chunksnon-empty ANDretrieved_chunks_match_queryisFalse→"retrieval"raw_output != output_after_postprocess→"parse"retrieved_chunksempty →"hallucination"- otherwise →
"prompt"
- Route. Return
"route to <destination>"viaROUTES.
Print one line per ticket as ticket_<id>: <result>.
Expected output:
ticket_9101: blocked: reproduce with the logged input
ticket_9102: route to retrieval pipeline
ticket_9103: route to post-processing code