From a20a46b262609a3c99aa16392b8c3841fba8cca6 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 6 May 2026 11:25:57 +0200 Subject: [PATCH] =?UTF-8?q?docs(c4):=20fix=203c.2=20=E2=80=94=20add=20Pers?= =?UTF-8?q?onRelationshipRepository,=20route=20through=20repo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both RelationshipService and RelationshipInferenceService inject PersonRelationshipRepository. The previous direct db arrows were inaccurate. Co-Authored-By: Claude Sonnet 4.6 --- docs/architecture/c4-diagrams.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/architecture/c4-diagrams.md b/docs/architecture/c4-diagrams.md index 5e502d30..6467998d 100644 --- a/docs/architecture/c4-diagrams.md +++ b/docs/architecture/c4-diagrams.md @@ -242,6 +242,7 @@ C4Component Component(relInference, "RelationshipInferenceService", "Spring Service", "Computes transitive family relationships from explicit edges to infer grandparent/grandchild, aunt/uncle, and other extended-family links for the network graph.") Component(personRepo, "PersonRepository", "Spring Data JPA", "Queries persons with name search (including aliases), correspondent discovery, person summaries with document counts, and merge/reassignment helpers.") + Component(relRepo, "PersonRelationshipRepository", "Spring Data JPA", "Reads and writes PersonRelationship records. Supports lookup by person ID, by relation type, and existence checks for deduplication.") } Rel(frontend, personCtrl, "Person requests", "HTTP / JSON") @@ -250,9 +251,10 @@ C4Component Rel(relCtrl, relSvc, "Delegates to", "") Rel(relCtrl, relInference, "Queries inferred graph", "") Rel(personSvc, personRepo, "Reads / writes persons", "") - Rel(relSvc, db, "Reads / writes relationships", "JDBC") - Rel(relInference, db, "Reads relationships for inference", "JDBC") + Rel(relSvc, relRepo, "Reads / writes relationships", "") + Rel(relInference, relRepo, "Reads relationships for inference", "") Rel(personRepo, db, "SQL queries", "JDBC") + Rel(relRepo, db, "SQL queries", "JDBC") ``` ### 3d — OCR Orchestration