DOCX export refused: mandatory_policy_mismatch
You clicked Export Word; the export refused with HTTP 422 and reason: "mandatory_policy_mismatch".
What this means
The renderer asserts that the verbatim policy text in note_policies matches the constitution exactly. The note drifted. Most often: Claude paraphrased a sentence and you didn't catch it.
Fix
- Open the Notes tab.
- Click Regenerate notes.
- After regeneration, click Export Word again.
If the assertion still fails after regeneration:
Compare the note text to the constitution (see Policy text missing for the SQL + cat commands).
Identify the offending paragraph.
Check whether the constitution was recently updated (
git log packages/financial-statements/constitution/mandatory_policies/).Restart the worker if a constitution-cache issue is suspected:
bashdocker restart breezycorp-monorepo-worker-1Regenerate notes and retry the export.
Why we don't auto-fix
Auto-rewriting the note at export time would silently mask LLM drift across engagements. The renderer surfaces the mismatch so a reviewer sees that the LLM is occasionally paraphrasing, and can escalate.