feat(cases): תצוגת "פסיקה שצוטטה בהחלטה" בעמוד-התיק + שחזור חיווט-הרמס #164

Merged
chaim merged 1 commits from worktree-case-citations-ui into main 2026-06-08 11:59:45 +00:00
Owner

מה ולמה

חיים ביקש: בכניסה להחלטה (עמיאל) לראות את הפסיקה שצוטטה בתוכה. בנוסף — שחזור-קוד לחיווט-הכפתורים של הרמס שתוקן (ה-prompt חי רק ב-Paperclip DB).

תצוגת ציטוטים (C)

  • GET /api/cases/{case}/citations — מהשורה internal_committee של ההחלטה ב-case_lawprecedent_internal_citations: linked (join ל-case_law, קליק → /precedents/[id]) + missing (לא-נפתר + האם flagged ב-missing_precedents).
  • web-ui: lib/api/citations.ts + CitationsSection ב-drafts-panel (מוצג כשההחלטה בספרייה). מקושרת=ירוק/קליק, חסרה=ענבר "סומנה להעלאה".

שחזור חיווט-הרמס (B-persist)

  • scripts/curator_apply_pipeline_branch.py — מקור-אמת ל-branch שמקדים ל-prompt של הרמס: wake עם reason final_learning_*/final_halacha_* מריץ את ה-pipeline (HOME/DOTENV/DATA_DIR מוחלטים — מתקן את בעיית $HOME=פרופיל שהשביתה את מפתחות DeepSeek/Gemini ואת DATA_DIR). idempotent, שני הסוכנים. כבר הוחל ב-DB; הסקריפט לשחזור אחרי reset/יצירה-מחדש.

אומת

החיווט אומת חי על בל"מ 8126-03-25: כפתור → הרמס → pipeline → deepseek:True gemini:True, 2/2, dedup (7 כפילויות דולגו), "✓ pipeline הושלם". py_compile ✓ · tsc --noEmit ✓.

Invariants: G2 (יכולת חסרה) · INV-LRN1/G10 (הצעות בלבד, שער-יו"ר ידני).

🤖 Generated with Claude Code

## מה ולמה חיים ביקש: בכניסה להחלטה (עמיאל) לראות את הפסיקה שצוטטה בתוכה. בנוסף — שחזור-קוד לחיווט-הכפתורים של הרמס שתוקן (ה-prompt חי רק ב-Paperclip DB). ## תצוגת ציטוטים (C) - `GET /api/cases/{case}/citations` — מהשורה `internal_committee` של ההחלטה ב-`case_law` → `precedent_internal_citations`: **linked** (join ל-case_law, קליק → /precedents/[id]) + **missing** (לא-נפתר + האם `flagged` ב-missing_precedents). - `web-ui`: `lib/api/citations.ts` + `CitationsSection` ב-drafts-panel (מוצג כשההחלטה בספרייה). מקושרת=ירוק/קליק, חסרה=ענבר "סומנה להעלאה". ## שחזור חיווט-הרמס (B-persist) - `scripts/curator_apply_pipeline_branch.py` — מקור-אמת ל-branch שמקדים ל-prompt של הרמס: wake עם reason `final_learning_*`/`final_halacha_*` מריץ את ה-pipeline (HOME/DOTENV/DATA_DIR מוחלטים — מתקן את בעיית $HOME=פרופיל שהשביתה את מפתחות DeepSeek/Gemini ואת DATA_DIR). idempotent, שני הסוכנים. **כבר הוחל ב-DB**; הסקריפט לשחזור אחרי reset/יצירה-מחדש. ## אומת החיווט אומת **חי** על בל"מ 8126-03-25: כפתור → הרמס → pipeline → `deepseek:True gemini:True`, 2/2, dedup (7 כפילויות דולגו), "✓ pipeline הושלם". `py_compile` ✓ · `tsc --noEmit` ✓. Invariants: G2 (יכולת חסרה) · INV-LRN1/G10 (הצעות בלבד, שער-יו"ר ידני). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chaim added 1 commit 2026-06-08 11:59:39 +00:00
UI שביקש חיים: בכניסה להחלטה רואים את הפסיקה שצוטטה בתוכה — מקושרת לספרייה
(קליק → /precedents/[id]) מול חסרה (סומנה אוטומטית להעלאה).

- web/app.py: GET /api/cases/{case}/citations — מהשורה internal_committee של
  ההחלטה ב-case_law → precedent_internal_citations: linked (join case_law) +
  missing (unresolved + האם flagged ב-missing_precedents).
- web-ui: lib/api/citations.ts (hook) + CitationsSection ב-drafts-panel
  (מוצג כשההחלטה בספרייה). מקושרת=ירוק/קליק, חסרה=ענבר "סומנה להעלאה".
- scripts/curator_apply_pipeline_branch.py: מקור-אמת לחיווט-הכפתורים של הרמס
  (ה-prompt חי רק ב-Paperclip DB). מקדים branch שמריץ את pipeline-ה-final
  ל-wake reason final_learning_*/final_halacha_* (HOME/DOTENV/DATA_DIR מוחלטים
  → מפתחות DeepSeek+Gemini + DATA_DIR נפתרים נכון). idempotent, שני הסוכנים.
  כבר הוחל ב-DB; הסקריפט לשחזור אחרי reset.

אומת: py_compile ✓ · tsc ✓ · החיווט אומת חי על 8126 (deepseek+gemini, dedup,
✓ pipeline הושלם). G2 (יכולת חסרה) · INV-LRN1/G10 נשמרים.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
chaim merged commit de777c2b13 into main 2026-06-08 11:59:45 +00:00
chaim deleted branch worktree-case-citations-ui 2026-06-08 11:59:45 +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#164