feat: link related precedents across court instances (SCHEMA_V11) #4

Merged
chaim merged 1 commits from feat/related-precedents-v11 into main 2026-05-10 07:54:37 +00:00
Owner

Add ability to mark case_law records as related (e.g. same appeal
through ועדת ערר → מנהלי → עליון):

  • DB: case_law_relations join table (bidirectional, V11 migration)
  • DB CRUD: add/remove/get_case_law_relations
  • Service: get_precedent() now returns related_cases[]
  • MCP: precedent_link_cases + precedent_unlink_cases tools
  • REST: POST/DELETE /api/precedent-library/{id}/relations
  • UI: RelatedCasesSection on detail page with search dialog and unlink

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Add ability to mark case_law records as related (e.g. same appeal through ועדת ערר → מנהלי → עליון): - DB: case_law_relations join table (bidirectional, V11 migration) - DB CRUD: add/remove/get_case_law_relations - Service: get_precedent() now returns related_cases[] - MCP: precedent_link_cases + precedent_unlink_cases tools - REST: POST/DELETE /api/precedent-library/{id}/relations - UI: RelatedCasesSection on detail page with search dialog and unlink Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chaim added 1 commit 2026-05-10 07:54:32 +00:00
Add ability to mark case_law records as related (e.g. same appeal
through ועדת ערר → מנהלי → עליון):
- DB: case_law_relations join table (bidirectional, V11 migration)
- DB CRUD: add/remove/get_case_law_relations
- Service: get_precedent() now returns related_cases[]
- MCP: precedent_link_cases + precedent_unlink_cases tools
- REST: POST/DELETE /api/precedent-library/{id}/relations
- UI: RelatedCasesSection on detail page with search dialog and unlink

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chaim merged commit 75493ce233 into main 2026-05-10 07:54:37 +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#4