WS7: fix SI search results dead-ending on lookup

↗ view on GitHub · sloth-ninja · 2026-07-20 · f863815f

selectMatch resolved every chosen search result by its bare title.
Acts parse from a bare title but a whole statutory instrument has no
title-only parse branch, so SI results dead-ended on the "could not
parse" card. Resolve SI-typed matches by their parseable
"SI {year}/{number}" citation instead; Acts still resolve by title,
and the title stays the human label for the Assistant prefill.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Repository Sloth-ninja/JessicaOSS
Author sloth-ninja <ezanahaddis@gmail.com>
Authored
Parents 0892e306
Stats 2 files changed , +21 , -3
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-f863815f.md from inside the repo you want the change in.

⬇ Download capture-commit-f863815f.md