lesson 6 of 8 · eval receiptlesson 6 of 8 · eval receiptlesson 6 of 8 · eval receiptlesson 6 of 8 · eval receiptlesson 6 of 8 · eval receiptlesson 6 of 8 · eval receiptlesson 6 of 8 · eval receiptlesson 6 of 8 · eval receiptlesson 6 of 8 · eval receiptlesson 6 of 8 · eval receiptlesson 6 of 8 · eval receipt
Checkpoint
One last thing before we move on. pass this to mark the lesson done, or skip and keep moving. hop to the next when you're ready.
Checkpoint. Write grade_eval_receipt(receipt) that returns a verdict
string. Checks run in this order; first failure wins:
receipt["split_clean"]is not True →"hold: split audit failed"- any score in prompt/rag/ft
formatorlabelis outside 0..1 →"hold: hallucinated scores" receipt["ft"]["format"]<receipt["prompt"]["format"]→"hold: FT did not beat prompt-only format"receipt.get("knowledge_job")is True →"hold: RAG owns a knowledge failure"- otherwise →
"ship"
Print each named receipt as name verdict.
Expected output:
honest-ft ship
leaky-split hold: split audit failed
invented hold: hallucinated scores
worse-than-prompt hold: FT did not beat prompt-only format
handbook hold: RAG owns a knowledge failure