fix(ai-sdk): national-law subsidiarity in authority rerank (DSGVO > BDSG) #40
Reference in New Issue
Block a user
Delete Branch "feat/authority-rerank-subsidiarity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The authority reranker (wired in
legal_rag_client.go:168) had no national-subsidiarity dimension, so a general BDSG § could outrank the primary DSGVO article. Surfaced by the KB-2026.1 BDSG pilot.binding_lawin an EU-primary domain WITHOUT a co-primary topic match → soft demote (subsidiarityPen0.18), not exclusion. National special rules stay co-primary via the topic ontology (DSB §38, special categories §22, ...).auftragsverarbeit.Pure ranking logic, no data manipulation; soft demotes keep national rules visible.
⚠️ Note: the reranker itself was committed on main (
9cfe6f83) but the deployed dev binary predates it — merging this activates the reranker on dev (binding>guidance, DSGVO>BDSG-subsidiary).Evidence
go build/vet/test ./...green; 6 new table tests.bp_compliance_ce(current dev corpus): NEUTRAL — 0 degraded, 0 improved.Test plan
🤖 Generated with Claude Code