feat(X11): citation-corroboration Phase 1 — the signal (no approval change) #27

Merged
chaim merged 7 commits from feat/x11-corroboration-phase1 into main 2026-05-31 19:18:49 +00:00
Owner

Summary

מימוש Phase 1 של X11 (citator פנימי) — בניית אות ה-corroboration בלבד: קישור ציטוטים-נכנסים להלכה הספציפית, סיווג-טיפול, ודיווח. לא נוגע בשער-האישור (זה Phase 2).

6 משימות TDD, כל אחת עם סקירה דו-שלבית (ספ→איכות); סקירה סופית (opus): READY TO MERGE.

משימה Invariant
סכמה V24 — treatment + טבלת halacha_citation_corroboration תשתית
סיווג-טיפול (Opus 4.8) — followed/distinguished/overruled… INV-COR2
matcher הלכה↔ציטוט — pgvector cosine + רף 0.50 INV-COR3
aggregator — מקורות חיוביים מובחנים + חסימת-שלילי (סף 2) INV-COR4
orchestrator + persistence (שני גרפי-ציטוט) INV-COR6
כלי-MCP read-only halacha_corroboration INV-COR6

אימות end-to-end (שפר)

  • build_for_precedent('9024da7b…'){'citations': 7, 'linked': 6}; 6 שורות, כולן followed, ציונים 0.53–0.701 (אחת מתחת לרף — INV-COR3 עובד).
  • הלכה אמיתית: {positive_sources: 2, has_negative: False, corroborated: True}.

Test Plan

  • 11 בדיקות offline דטרמיניסטיות עוברות (pytest tests/test_corroboration.py)
  • smoke-test אינטגרציה על שפר (DB + LLM + embeddings)
  • scope נקי — אין שינוי במסלול-האישור (INV-COR5)

⚠️ נכנס לתוקף ב-restart של שרת ה-MCP המקומי. Phase 2 (חיווט אוטו-אישור + תיקון-G10 בפועל + העשרה) — תוכנית נפרדת, מותנית באימות האות ע"י דפנה.

🤖 Generated with Claude Code

## Summary מימוש **Phase 1** של X11 (citator פנימי) — בניית **אות ה-corroboration** בלבד: קישור ציטוטים-נכנסים להלכה הספציפית, סיווג-טיפול, ודיווח. **לא נוגע בשער-האישור** (זה Phase 2). 6 משימות TDD, כל אחת עם סקירה דו-שלבית (ספ→איכות); סקירה סופית (opus): **READY TO MERGE**. | משימה | Invariant | |-------|-----------| | סכמה V24 — `treatment` + טבלת `halacha_citation_corroboration` | תשתית | | סיווג-טיפול (Opus 4.8) — followed/distinguished/overruled… | INV-COR2 | | matcher הלכה↔ציטוט — pgvector cosine + רף 0.50 | INV-COR3 | | aggregator — מקורות חיוביים מובחנים + חסימת-שלילי (סף 2) | INV-COR4 | | orchestrator + persistence (שני גרפי-ציטוט) | INV-COR6 | | כלי-MCP read-only `halacha_corroboration` | INV-COR6 | ## אימות end-to-end (שפר) - `build_for_precedent('9024da7b…')` → `{'citations': 7, 'linked': 6}`; 6 שורות, כולן `followed`, ציונים 0.53–0.701 (אחת מתחת לרף — INV-COR3 עובד). - הלכה אמיתית: `{positive_sources: 2, has_negative: False, corroborated: True}`. ## Test Plan - [x] 11 בדיקות offline דטרמיניסטיות עוברות (`pytest tests/test_corroboration.py`) - [x] smoke-test אינטגרציה על שפר (DB + LLM + embeddings) - [x] scope נקי — אין שינוי במסלול-האישור (INV-COR5) > ⚠️ נכנס לתוקף ב-restart של שרת ה-MCP המקומי. **Phase 2** (חיווט אוטו-אישור + תיקון-G10 בפועל + העשרה) — תוכנית נפרדת, מותנית באימות האות ע"י דפנה. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chaim added 7 commits 2026-05-31 19:18:43 +00:00
chaim merged commit a9472187ff into main 2026-05-31 19:18:49 +00:00
chaim deleted branch feat/x11-corroboration-phase1 2026-05-31 19:18:49 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ezer-mishpati/legal-ai#27