Skip to content

v1.6.0: make the gate actually gate — FAIL-level must-fix checks, equation numbering, delivery gate - #4

Merged
AllenWang2005 merged 1 commit into
mainfrom
skill-v1.6.0
Jul 8, 2026
Merged

v1.6.0: make the gate actually gate — FAIL-level must-fix checks, equation numbering, delivery gate#4
AllenWang2005 merged 1 commit into
mainfrom
skill-v1.6.0

Conversation

@AllenWang2005

Copy link
Copy Markdown
Owner

Fixes why the latest Codex run shipped gridded tables, italic formula digits, and unnumbered equations while the audit said pass:

  1. WARN 不拦截 — all Must-Fix checks promoted to FAIL: TABLE_BORDERS, TABLE_RULES, FORMULA_DIGIT_ITALIC, FORMULA_MULTILETTER_ITALIC, EQUATION_NUMBER_CENTER, EQUATION_NUMBER_TABS, CAPTION_ALIGN.
  2. 样式网格看不见TABLE_BORDERS now resolves the referenced table style's basedOn chain (Table Grid draws its borders from styles.xml).
  3. 公式编号无检查 — new EQUATION_UNNUMBERED (FAIL) and EQUATION_NOT_REFERENCED (WARN, 由式 (3-1) 可得).
  4. 规则不会自动执行 — new scripts/finalize_docx.py: one mandatory command = mechanical fixes + full audit + DELIVERY GATE: PASS/FAIL verdict (non-zero exit on FAIL). SKILL.md and agents/openai.yaml both require a PASS before delivery.

Verified against a reproduction of the Codex failure modes (all three now FAIL the gate). 136/136 tests pass; samples regenerated; compliant sample still PASSes.

🤖 Generated with Claude Code

…ation numbering, finalize_docx.py

Third real-world failure: Codex delivered gridded tables, italic formula
digits, and unnumbered/unreferenced equations — and the audit 'passed'.
Root causes fixed:
- WARN never blocked delivery: every Must-Fix rule promoted to FAIL
  (TABLE_BORDERS, TABLE_RULES, FORMULA_DIGIT_ITALIC,
  FORMULA_MULTILETTER_ITALIC, EQUATION_NUMBER_CENTER/TABS, CAPTION_ALIGN)
- TABLE_BORDERS ignored style-driven grids (Table Grid lives in styles.xml);
  now resolves the style chain
- No check existed for missing equation numbers or missing in-text
  citations: new EQUATION_UNNUMBERED (FAIL) + EQUATION_NOT_REFERENCED (WARN)
- Rules in prose are not executed: scripts/finalize_docx.py is the one
  mandatory command (mechanical fixes + audit + DELIVERY GATE verdict,
  non-zero exit on FAIL); SKILL.md and agents/openai.yaml wired to it

Verified against a reproduction of the Codex failures: all three now FAIL
and the gate blocks delivery. 136 tests pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@AllenWang2005
AllenWang2005 merged commit ed885af into main Jul 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant