feat: deterministic DOCX structural lint as a read-only library action

↗ view on GitHub · Eli Ziff · 2026-07-27 · f054e6cc

Implement the contract structural lint proposed in
docs/legal-skills-ecosystem-comparison.md: broken internal
cross-references, references to missing schedules/exhibits, literal
numbering gaps and duplicates, and duplicate or unused defined terms,
computed from word/document.xml instead of recalled by the model.

Every check abstains with an explicit note when the document does not
exhibit the convention it depends on (Word field numbering, detached
schedules, no quoted definitions), and the report is a receipt of what
was checked, resolved, skipped as external, and abstained from.

Exposed as library_lint_docx_structure beside the existing bounded
DOCX actions; read-only, so it is not a mutation tool.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUsMXzBsEJ27DjJVPSfW5o
Repository eliziff/Beaver
Author Eli Ziff <eliasziff@gmail.com>
Authored
Parents 4f898989
Stats 5 files changed , +1028 , -2
Part of SourceDoc / DOCX engine: redlines, tracked changes, editing benchmark

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-f054e6cc.md from inside the repo you want the change in.

⬇ Download capture-commit-f054e6cc.md