From 666e359d577ee0a443dae9a8a65462b0178c44b3 Mon Sep 17 00:00:00 2001 From: AdaWorldAPI Date: Sun, 21 Jun 2026 21:32:35 +0200 Subject: [PATCH] fix(conformance): repoint MedcareBridge import after #585 OGIT/OGAR split MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #585 moved the OGAR-driven port bridges (UnifiedBridge harness + MedcareBridge/OpenProjectBridge/RedmineBridge) from lance-graph-ontology to lance-graph-ogar, but missed one consumer: the lance-graph-consumer-conformance crate still did `use lance_graph_ontology::bridges::MedcareBridge;` at lib.rs:93, which now fails to compile (MedcareBridge no longer lives there). Fix — the same transformation #585 applied to every other consumer: - repoint the import to `lance_graph_ogar::bridges::MedcareBridge` - add the `lance-graph-ogar` path dep to the crate's Cargo.toml OgitBridge (lib.rs:222) and WoaBridge (lib.rs:331) are untouched — those are OGIT-native legacy bridges that correctly stayed in lance-graph-ontology. The callcenter `UnifiedBridge` (lib.rs:25) is an unrelated type, also untouched. No dependency cycle: conformance -> ogar -> ontology -> contract. --- crates/lance-graph-consumer-conformance/Cargo.toml | 5 ++++- crates/lance-graph-consumer-conformance/src/lib.rs | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/lance-graph-consumer-conformance/Cargo.toml b/crates/lance-graph-consumer-conformance/Cargo.toml index 4aae31c0..3c273b52 100644 --- a/crates/lance-graph-consumer-conformance/Cargo.toml +++ b/crates/lance-graph-consumer-conformance/Cargo.toml @@ -12,8 +12,11 @@ publish = false # internal CI gate — not published to crates.io [dependencies] # The conformance harness imports UnifiedBridge, AuditChain, SuperDomain etc. lance-graph-callcenter = { path = "../lance-graph-callcenter" } -# NamespaceBridge trait + bridge implementations (MedcareBridge, OgitBridge, WoaBridge) +# NamespaceBridge trait + OGIT-native legacy bridges (OgitBridge, WoaBridge). lance-graph-ontology = { path = "../lance-graph-ontology" } +# OGAR-driven port bridges (MedcareBridge / HealthcarePort) — moved out of +# lance-graph-ontology in #585 to restore OGIT/OGAR separation of concerns. +lance-graph-ogar = { path = "../lance-graph-ogar" } # fnv1a_str, PrefetchDepth lance-graph-contract = { path = "../lance-graph-contract" } # Policy, Role, PermissionSpec for per-consumer test fixtures diff --git a/crates/lance-graph-consumer-conformance/src/lib.rs b/crates/lance-graph-consumer-conformance/src/lib.rs index f7cda95c..6d184cb0 100644 --- a/crates/lance-graph-consumer-conformance/src/lib.rs +++ b/crates/lance-graph-consumer-conformance/src/lib.rs @@ -90,7 +90,11 @@ mod tests { #[test] fn medcare_bridge_conforms() { - use lance_graph_ontology::bridges::MedcareBridge; + // MedcareBridge moved to the OGAR crate in #585 (it's codebook-/ + // PortSpec-driven via `HealthcarePort`, so it belongs to OGAR, not + // OGIT). OgitBridge / WoaBridge below stay in lance-graph-ontology — + // those are OGIT-native legacy bridges. + use lance_graph_ogar::bridges::MedcareBridge; let registry = seed_medcare_registry(); let bridge = Arc::new(MedcareBridge::new(registry).unwrap());