WS2: eval golden cases for legislation.gov.uk + regnal-year Act fix
Add 3 deterministic cases (TUPE reg.4, ERA 1996 s.98, the Companies Act 2006 title-search feed) and 1 citation-gate case exercising a realistic tool-output-shaped answer citing an Act section, an act-first section reference, an SI-by-number with a regulation reference, and a pre-1963 Act. All four verified live before committing. Fix evals/src/citations.ts resolveActUri: pre-1963 Acts (e.g. Landlord and Tenant Act 1954) are catalogued on legislation.gov.uk under regnal-year ids (/id/ukpga/Eliz2/2-3/56) rather than a plain calendar year in the URI path, so the existing regex-only match silently failed to resolve them. Match the Atom entry by its <ukm:Year Value="..."> and take the id's full path suffix as a fallback - modern Acts still hit the existing fast path first, so this is additive, not a behaviour change for the passing cases. Discovered while verifying the new golden case live per the WS2 brief; left unfixed it would have blocked WS4's planned LTA 1954 lease-renewal workflow template later. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
| Repository | Sloth-ninja/JessicaOSS |
|---|---|
| Author | sloth-ninja <ezanahaddis@gmail.com> |
| Authored | |
| Committed | |
| Parents | 342687b5 |
| Stats | 5 files changed , +71 |
| Part of | WS2 / WS7: legislation.gov.uk research integration |
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-02358fb4.md
from inside the repo you want the change in.