promptdojo_

Clause extraction — no pinpoint, no claim — step 6 of 7

Write triage_extraction(extracted, playbook) returning a list of (clause, status) tuples in extraction order:

  1. pin is None"REOPEN — no pinpoint"
  2. found equals the playbook preferred"OK — preferred"
  3. found equals the playbook fallback"OK — fallback"
  4. anything else → "ESCALATE -> " + the clause owner's name

The report loop (provided) prints each row, then the tally: preferred / fallback / reopen / escalate counts, and the mark-up is ready only when there are zero reopens AND zero escalations — otherwise NOT ready.

Expected output:

limitation_of_liability: OK — fallback
data_breach_notice: REOPEN — no pinpoint
governing_law: ESCALATE -> D. Chen
audit_rights: OK — preferred
1 preferred / 1 fallback / 1 reopen / 1 escalate — mark-up NOT ready

full-screen editor opens — close anytime to keep reading.