feat(web-ui): expose citation-corroboration badge on halachot (X11)

- db.list_halachot: aggregate corroboration_count (distinct positive sources)
  + corroboration_negative from halacha_citation_corroboration (LEFT JOIN)
- web-ui: CorroborationBadge — 'מתוקף · N ציטוטים' at ≥2 (gold), soft single
  citation, danger badge on negative treatment; native title tooltips
- shown in ExtractedHalachotSection (per-precedent) + halacha review panel

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-01 05:04:31 +00:00
parent 9f2adc4dd0
commit f46bf47d5b
5 changed files with 75 additions and 1 deletions

View File

@@ -83,6 +83,11 @@ export type Halacha = {
court?: string;
decision_date?: string | null;
precedent_level?: string;
/* X11 citation corroboration — how many distinct later courts/committees
* adopted this halacha (positive treatment), and whether any cited it
* negatively (distinguished/criticized/overruled). */
corroboration_count?: number;
corroboration_negative?: boolean;
};
export type RelatedCase = {