emileriksenkeev gives Philippine-law research its own lane

This fork makes a Philippine primary-law search source visible both to the assistant and to the lawyer using it.

searchi18n

The new research option is focused on Philippine primary law, giving users a more direct route to statutes and other authoritative legal materials for that jurisdiction.

Just as importantly, the interface now tells users when that source was used. Rather than a vague notice that the assistant consulted a tool, it labels the Philippine-law search specifically. That small detail helps a lawyer understand where an answer came from and decide whether to inspect the underlying authority on GitHub.

The pattern is narrow today, but it is a sensible model for any legal assistant that draws on jurisdiction-specific research sources.

So what Philippine legal teams and products serving them should care because clearer source signals make AI-assisted research easier to assess and trust.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

2 commits from emileriksenkeev/sydOS, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
42c1aa0e feat(law): batasdb Philippine primary-law search tool emileriksenkeev 2026-07-14 ↗ GitHub
commit body
Adds search_ph_law - a backend-proxied assistant tool over the batasdb corpus
(statutes/RAs, BIR issuances, SC & CTA jurisprudence). Grounds PH legal claims
in current authority with citations, effectivity/overruled flags, and citator
warnings.

- backend/src/lib/batasdb.ts: client with a result cache (batas_cache, long TTL
  since law changes slowly) and a monthly live-call budget guard (batas_usage +
  atomic batas_bump_usage RPC). Cache hits are free; on budget exhaustion falls
  back to stale cache. Key stays server-side via BATAS_API_KEY.
- chatTools: LAW_TOOLS (search_ph_law) + dispatch + system-prompt grounding
  guidance. Kept separate from VAULT_TOOLS.
- Wired into interactive chat only (chat.ts, projectChat.ts) - NOT the wiki
  builder, to protect the monthly budget.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
6cc9bd9b law: dedicated 'Searched Philippine law' activity chip emileriksenkeev 2026-07-14 ↗ GitHub
commit body
Replace the generic doc-read indicator for search_ph_law with a first-class
law_search event (start/complete pair, so the ~15s call shows a 'Searching
Philippine law...' spinner, then '(N authorities)'). Threaded through the backend
accumulator + persisted events and the frontend SSE parser, with a LawSearchBlock
renderer that notes the court/statute filter when set.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-917.md from inside the repo you want the changes in.

⬇ Download capture-thread-917.md