Fact-check a piece against its transcript
check_citationsValidate that every quote resolves verbatim to a transcript timestamp before publishing. Checks section order, timestamps, and numbers, then persists a clean piece as a draft or returns failing spans to fix.
Instructions
Validates that every quoted span resolves to a subject turn at the cited timestamp. With piece_id it re-checks a stored piece. With brief_id and markdown it checks a host-written piece: section order (story, then pull quotes), every quote verbatim and timestamped, no numbers outside quotes, no repeated frames. A clean pass persists the piece as a draft for human review and returns its piece_id. A fail returns every failing span with the closest matching turn so you can fix and resubmit; nothing is persisted on a fail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief_id | No | With markdown: the brief whose transcript the piece was written from. | |
| markdown | No | With brief_id: the host-written piece. H1 headline, prose story, then '## Pull quotes' with one '> “quote” (MM:SS)' per line. The per-question view is appended for you. | |
| piece_id | No | Re-check a stored piece by id. Give either piece_id, or brief_id plus markdown. |