feat: add Kenyan legal authority grounding contract to system prompt
Replaces the open-ended "answer based on your legal knowledge" line with an 8-rule honesty contract that: - Requires retrieval via search_kenya_law (local corpus) and search_legal_authority_web (approved domains) before citing any Kenyan statute, case, regulation, or guidance - Prohibits citing Kenyan legal authority from training data - Requires surfacing corpus-vs-web conflicts and preferring newer authority - Mandates an explicit "no results" admission when both tools come up empty - Bans invented or paraphrased citations outright - Flags EA Court of Appeal cases (pre-1977) as persuasive, not binding - Directs users to kenyalaw.org / relevant regulator for out-of-corpus authorities Retrieval tools (search_kenya_law, search_legal_authority_web) are not yet registered - contract is placed ahead of implementation intentionally so the model refuses rather than hallucinates if a retrieval gap occurs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| Repository | Davemaina1/iroh_ |
|---|---|
| Author | Davemaina1 <dmain7015@gmail.com> |
| Authored | |
| Parents | b47a935a |
| Stats | 1 file changed , +23 , -2 |
| Part of | Kenya legal grounding: honesty contract + retrieval tools |
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-7244c0be.md
from inside the repo you want the change in.