A Codex release gate for DOCX files that require a defensible FINAL / RELEASED status.
- Independently audits a source document and a separate working candidate.
- Requires fresh provenance, package, scope, native-feature, application, and every-page visual evidence.
- Delivers an exact same-directory copy only after all applicable gates pass.
- Fails closed as
NOT RELEASEDwhen evidence is missing or a material issue remains.
Use this only for submission-ready, publication-ready, final, or comprehensively verified DOCX deliverables. It does not author or repair content. Start with documents-fast whenever a new candidate or repair is needed.
git clone https://github.com/Yupei-Han/documents-finalize "$HOME/.agents/skills/documents-finalize"Restart Codex if needed, confirm it with /skills, then invoke:
$documents-finalize audit this working DOCX against its source and release it only if every required gate passes.
- The immutable source document.
- A separate
WORKINGcandidate, normally produced bydocuments-fast. - An optional handoff JSON, which is verified rather than trusted.
- Create an exact proposed-final copy from the candidate.
- Run fresh preflight and package comparisons.
- Verify authorized scope and protected Word structures.
- Render and inspect 100% of pages.
- Issue release and delivery records only after all eight gates pass.
python scripts/self_test.pyThe included e2e_smoke.py covers the split fast-to-finalize release boundary for maintainers.
A successful save or render is not a release. Any repair returns to documents-fast, and finalization restarts with new evidence.