promptdojo_

The policy pack — banned promises and fresh citations, as data — step 5 of 8

Every draft must cite a KB article that (a) exists in the pack's index and (b) has been verified since the freshness cutoff. citation_ok currently checks existence only — so T-502's draft, citing the shipping-delays article nobody has verified since November, sails through. That article predates the carrier's status-name change; the draft is confidently citing an expired truth.

Fix citation_ok so a stale article blocks the draft. Dates are ISO strings, so plain string comparison orders them correctly.

Expected output:

T-501 cites KB-101: ok
T-502 cites KB-204: BLOCKED
T-503 cites KB-999: BLOCKED
The break is on lines 15, 16 — but read the whole snippet first.

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