Prove amendment calculus end-to-end on a real Canadian amending act
Real-law probe: S.C. 2021, c. 11 (National Day for Truth and
Reconciliation) parsed from the Annual Statutes text and verified
against today's consolidations pulled from the LOCAL A2AJ bulk corpus
(AppData ALR Quote Verifier parquet plane - no network in the probe).
Result: 2/2 compiled replace ops' blocks present verbatim
(glyph-normalized) in current law (BEA 42(a)(i), CLC 193(2)); 2/2
scoped instructions refused with correct reasons (portion-of s. 35
chapeau, definition-in-s. 166); payload phrase in 4/4 targets.
Grammar fixes the real act forced:
- Canadian acts do NOT quote replacement blocks - unquotedBlock()
captures the indented block after 'the following:', trimming
marginal notes, next-instruction lines, chapter notes, and
Title-Case heading furniture ('Coming into Force')
- definition-scoped heads ('The definition general holiday in section
166...') now refuse like portion/heading heads instead of compiling
a whole-section replace (misapplication risk)
17/17 unit tests; amend-consolidation-probe.ts is the reusable
harness (amending text + current-provision files + expected-phrase).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018bhP89cYSdEEjHNPnxacns
| Repository | eliziff/Beaver |
|---|---|
| Author | Eli Ziff <eliasziff@gmail.com> |
| Authored | |
| Parents | 2a97b32c |
| Stats | 3 files changed , +184 , -9 |
| Part of | Deterministic legal-text tools ("SLA audit organs") |
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-7f53fb31.md
from inside the repo you want the change in.