Downloaded-authority content cache over CourtListener and public sources

↗ view on GitHub · Eli Ziff · 2026-07-28 · ed15c59d

Generalizes the parseCache pattern (evaluation-context plan §12) to
a keyed, TTL-bounded, atomically written cache and threads it
through the two authority fetch seams that had only per-session
in-memory caching: CourtListener API GETs (24h ceiling, token never
in the key) and public legal source text/JSON fetches (7d/24h).
A2AJ already had its own persistent response cache. Stands aside
under NODE_ENV=test so fetch-stubbing suites keep their call
assertions; failures fall through to real fetches.

Chunks/embeddings/retrieval-result/preview caches from the plan's
menu stay unbuilt: no live consumer exists for them yet.

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 a88bdda1
Stats 4 files changed , +285 , -32
Part of A2AJ / CourtListener Canadian legal-source 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-ed15c59d.md from inside the repo you want the change in.

⬇ Download capture-commit-ed15c59d.md