feat(corpus): עיצוב-מחדש קורפוס-הפסיקה — ביטול תור-ההלכות, שכבת-מאומת-מאזכורים, דירוג-בזמן-אחזור (#153) #315

Merged
chaim merged 13 commits from worktree-canonical-synthesis into main 2026-06-20 13:55:49 +00:00
Owner

רקע + מחקר

מימוש הכרעת-chaim (2026-06-20): "אמינות=אזכור, לא ביקורת. אפס-תור." מגובה במחקר-עומק (25 מקורות), מבחן-אמת על 3 תיקים, ו-nli-audit. מקור-אמת מלא: docs/precedent-corpus-redesign/00-final-synthesis.md (+01–06 קלטים).

הראיה המכרעת: המשטר-האגרסיבי (פאנל+cap, PR#304) חתך 70→3 ואיבד ~22-30 עקרוני-ליבה בכל תיק (כולל הלכת לוסטרניק ושל דפנה עצמה). דגלי-האיכות 97% false-positive. → לא לחתוך; לשמור-הכל-כרקע; לדרג לפי אזכור.

מה מומש (5 צעדים; צעד 6 נדחה)

  • 1 · ביטול תורHALACHA_NO_REVIEW_QUEUE=true (auto-approve הכל→רקע); migration ניקה 2,416 pending→approved. אפס קריאת-רשומות.
  • 2 · שכבת-מאומתhalachot.verified/cite_count מאזכורי-יו"ר (db.refresh_verified_layer + scripts/build_verified_layer.py שמריץ citator על כל הוועדות). 2,775 מאומתים / 137 פס"ד. גדל-אוטומטית.
  • 3 · אחזור מאומת≫רקעHALACHA_VERIFIED_BOOST בשתי שאילתות-האחזור (semantic+lexical); המסנן כולל רקע (<> rejected). אומת חי.
  • 5 · השבתת cap/noveltyHALACHA_PANEL_REGIME_ENABLED=false (הרסני; חזרה לחילוץ-עשיר-לרקע).
  • 4 · חוזה-קליטה — going-forward כבר מחווט (ingest מתזמן metadata); 206 הוזנו ל-drain + backfill_practice_area.py.
  • 6 · נדחה — V41/conformal/הטמעת-קאנון-חסר.

Invariants

מקיים INV-LRN (אמינות מהתנהגות-יו"ר), G10 (אפס-שער-אנושי-מעכב — האמינות אוטומטית מאזכור), G2 (מסלול-אחזור יחיד, מאומת-כשכבה לא קורפוס-מקביל), G9 (cite_count/verified עקיבים מ-citations).

בדיקות / סיכון

429 ירוקות, אפס רגרסיות. שינויי-נתונים הפיכים (status migration; verified הוא recompute). ⚠️ הסרת תור-ההלכות מה-UI (/precedents) → דרך שער Claude Design (לא נכלל כאן).

🤖 Generated with Claude Code

## רקע + מחקר מימוש הכרעת-chaim (2026-06-20): **"אמינות=אזכור, לא ביקורת. אפס-תור."** מגובה במחקר-עומק (25 מקורות), מבחן-אמת על 3 תיקים, ו-nli-audit. מקור-אמת מלא: [`docs/precedent-corpus-redesign/00-final-synthesis.md`](docs/precedent-corpus-redesign/00-final-synthesis.md) (+01–06 קלטים). **הראיה המכרעת:** המשטר-האגרסיבי (פאנל+cap, PR#304) חתך 70→3 ואיבד ~22-30 עקרוני-ליבה בכל תיק (כולל **הלכת לוסטרניק** ושל **דפנה עצמה**). דגלי-האיכות 97% false-positive. → לא לחתוך; לשמור-הכל-כרקע; לדרג לפי אזכור. ## מה מומש (5 צעדים; צעד 6 נדחה) - **1 · ביטול תור** — `HALACHA_NO_REVIEW_QUEUE=true` (auto-approve הכל→רקע); migration ניקה 2,416 pending→approved. **אפס קריאת-רשומות.** - **2 · שכבת-מאומת** — `halachot.verified`/`cite_count` מאזכורי-יו"ר (`db.refresh_verified_layer` + `scripts/build_verified_layer.py` שמריץ citator על **כל** הוועדות). **2,775 מאומתים / 137 פס"ד.** גדל-אוטומטית. - **3 · אחזור מאומת≫רקע** — `HALACHA_VERIFIED_BOOST` בשתי שאילתות-האחזור (semantic+lexical); המסנן כולל רקע (`<> rejected`). אומת חי. - **5 · השבתת cap/novelty** — `HALACHA_PANEL_REGIME_ENABLED=false` (הרסני; חזרה לחילוץ-עשיר-לרקע). - **4 · חוזה-קליטה** — going-forward כבר מחווט (ingest מתזמן metadata); 206 הוזנו ל-drain + `backfill_practice_area.py`. - **6 · נדחה** — V41/conformal/הטמעת-קאנון-חסר. ## Invariants מקיים **INV-LRN** (אמינות מהתנהגות-יו"ר), **G10** (אפס-שער-אנושי-מעכב — האמינות אוטומטית מאזכור), **G2** (מסלול-אחזור יחיד, מאומת-כשכבה לא קורפוס-מקביל), **G9** (cite_count/verified עקיבים מ-citations). ## בדיקות / סיכון **429 ירוקות, אפס רגרסיות.** שינויי-נתונים הפיכים (status migration; verified הוא recompute). ⚠️ **הסרת תור-ההלכות מה-UI (`/precedents`) → דרך שער Claude Design** (לא נכלל כאן). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chaim added 13 commits 2026-06-20 13:55:34 +00:00
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
25 primary sources, 21/25 claims verified (3-vote adversarial). Verdict: keep
all principles, rank by precedent-level citation centrality at retrieval time
(not a destructive holding-level cull — that's where automation provably errs),
gate human review near-zero via conformal/selective-prediction.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
02-deep-research-importance-recommendation.md (was README) + 03-deep-research-full-output.md

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
00-index.md hub + symlinks (no move, no copy — zero drift, references intact):
daphna-precedent-network, legal-principles-redesign, corpus-graph, corpus-analysis,
halacha-strict-rubric, specs X11/X12/X13.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8508-03-24 test: panel+cap cut 70→3, losing ~22 genuine principles incl. the
core Lustrenik betterment rule. Lesson: cap + novelty-filter is destructive for
RAG (which needs applied doctrine). Quality-at-source = dedup+noise-only, no cap.
PR#304 regime flagged for revision.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
chaim directive 2026-06-20: no halacha queue ever; trusted = only what a chair
actually cited, in context; corpus grows by citations; few-verified-now is fine.
nli-audit: nli_unsupported flag is 97% false-positive (29/30) — the 'noise' was
imaginary. Two layers: raw background (auto, no gate) vs verified (auto-canon from
citations). +06 indexed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(corpus): corpus redesign — eliminate halacha queue, verified-by-citation layer, rank-at-retrieval (#153)
All checks were successful
G12 Leak-Guard / leak-guard (pull_request) Successful in 5s
Lint — undefined names / undefined-names (pull_request) Successful in 12s
b9fa74b875
Implements chaim's 2026-06-20 directive (5 steps; step 6 deferred):
1. No review queue — HALACHA_NO_REVIEW_QUEUE=true (auto-approve all → background);
   migration cleared 2,416 pending_review → approved.
2. Verified layer — halachot.verified/cite_count from chair citations
   (db.refresh_verified_layer + scripts/build_verified_layer.py runs citator on
   ALL committee decisions). 2,775 verified / 137 precedents.
3. Retrieval ranks verified ≫ background — HALACHA_VERIFIED_BOOST in both semantic
   + lexical halacha queries; filter now includes background (<> rejected).
5. Disabled destructive panel cap/novelty — HALACHA_PANEL_REGIME_ENABLED=false
   (8508/1049/1200 proved it lost 22-30 genuine principles incl. Lustrenik).
4. Ingest contract — going-forward already queues metadata; backfill_practice_area.py
   + 206 re-queued to the metadata drain.

Source of truth: docs/precedent-corpus-redesign/00-final-synthesis.md. Quality flags
are 97% false-positive (nli-audit) → no longer gate. UI queue removal → Claude Design
gate. 429 tests green (no regressions).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
chaim merged commit 38b3ffc587 into main 2026-06-20 13:55: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#315