Map of Content for the KB legal knowledgebase subproject (13 notes). KB is a separate Bun + React + Anthropic SDK app at KB/ in the repo. Single-tenant, local-dev tool.
Start here
KB Overview — what KB is and where it runs. KB Architecture — server, frontend, content modules, Anthropic SDK wiring.
Architecture
- KB Overview — purpose, port, dev workflow
- KB Architecture — server → frontend → kb modules → Anthropic SDK
Content modules
- KB Content Index — every legal article with one-line summary; flagged “10 rendered vs 29 advertised” mismatch and 11 unused draft modules
- KB GDPR Articles — articles 6, 13/14, 30, overview
- KB Swedish Law — dataskyddslagen + bolagsverket modules
- KB B2B Enrichment — data minimization, legitimate interest, Art.14 obligations, retention; 5 of these have a broken
from "../../types"import - KB IMY Decisions — enforcement records
Chat and search
- KB Chat Flow —
useChat+ Anthropic SDK; flagged serverclaude-opus-4-5vs clientclaude-opus-4-6model mismatch and synthetic SSE streaming - KB Search —
useSearch+ fuse.js; does not index article body - KB Credibility Scoring —
KB/src/lib/credibility.ts
UI
- KB UI Components — ChatPanel, ArticleViewer, Sidebar, TableOfContents, SourceBadge
- KB Settings — flagged false claim “keys never transmitted to our servers” (they transit the local Bun server as headers)
Compliance / disclaimer
- KB Legal Disclaimer — what the disclaimer says and why
Verified bugs
See Dashboard. KB has the most reported bugs of any area: model mismatch, 5 broken imports (from "../../types"), false-secret claim in settings, fake streaming, fuse.js scope.