From ffd6883ed08a647aa7c71c123dc7ba1b50ba2413 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 21 Jun 2026 16:27:31 +0000 Subject: [PATCH 1/2] fix(medcare_bridge): drop the test temp dir instead of mem::forget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CodeRabbit (PR #582): the test helper leaked a temp dir via std::mem::forget(tmp) on every call. hydrate_once_sync parses the TTL into the in-memory OntologyRegistry, so the dir isn't needed afterward — let it drop. medcare_bridge tests 8/8 green. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01EYvNjD8M8LMNYbRy3gq2FP --- crates/lance-graph-ontology/src/bridges/medcare_bridge.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/lance-graph-ontology/src/bridges/medcare_bridge.rs b/crates/lance-graph-ontology/src/bridges/medcare_bridge.rs index 79aecae9..e561f16b 100644 --- a/crates/lance-graph-ontology/src/bridges/medcare_bridge.rs +++ b/crates/lance-graph-ontology/src/bridges/medcare_bridge.rs @@ -83,7 +83,10 @@ ogit.Healthcare:Patient registry .hydrate_once_sync(tmp.path(), &["Healthcare"]) .unwrap(); - std::mem::forget(tmp); + // `hydrate_once_sync` parses the TTL into the in-memory registry, so + // the temp dir is no longer needed — let it drop (no leak). The + // earlier `std::mem::forget(tmp)` kept it alive unnecessarily + // (CodeRabbit, PR #582). registry } From 15f4031af380f370296de4631bf934c225f858ed Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 21 Jun 2026 17:02:00 +0000 Subject: [PATCH 2/2] deps: repoint lance-graph-ontology ogar-vocab to OGAR main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OGAR #91 merged the HealthcarePort + 0x09XX Health codebook to main, so the temporary branch pin (carried while the OGAR PR was open) is retired. This crate was the lone holdout still on the OGAR branch while its siblings (lance-graph-ogar / cognitive-stack / symbiont) already track main — that split risked two ogar-vocab versions in one graph. Now all four resolve to one OGAR source. Build + 31 bridge tests green against ogar-vocab@main (rev 19a6886e). Generated by [Claude Code](https://claude.com/claude-code) --- Cargo.lock | 2 +- crates/lance-graph-ontology/Cargo.toml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d7287e79..76a70bcb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6003,7 +6003,7 @@ dependencies = [ [[package]] name = "ogar-vocab" version = "0.1.0" -source = "git+https://github.com/AdaWorldAPI/OGAR?branch=claude%2Fmedcare-bridge-lance-graph-wmx76z#c679bccb7996abffdf8de0a46d6700da992527d7" +source = "git+https://github.com/AdaWorldAPI/OGAR?branch=main#19a6886eda1761d2b8f8d1b9a8397549877b0711" [[package]] name = "once_cell" diff --git a/crates/lance-graph-ontology/Cargo.toml b/crates/lance-graph-ontology/Cargo.toml index 476cd8c2..fee493b9 100644 --- a/crates/lance-graph-ontology/Cargo.toml +++ b/crates/lance-graph-ontology/Cargo.toml @@ -17,12 +17,12 @@ lance-graph-contract = { path = "../lance-graph-contract" } # (OpenProjectBridge, RedmineBridge, …) are type aliases over the # harness — the namespace / bridge_id / public-name-alias data all # come from OGAR class schema, not from this crate. -# Pinned to the OGAR `claude/medcare-bridge-lance-graph-wmx76z` branch: -# it carries `ports::PortSpec` + the project-mgmt ports (from -# port-spec-trait) AND the new `HealthcarePort` + 0x09XX Health codebook -# that `MedcareBridge = UnifiedBridge` needs. Will move -# to `branch = "main"` once both OGAR PRs merge. -ogar-vocab = { git = "https://github.com/AdaWorldAPI/OGAR", branch = "claude/medcare-bridge-lance-graph-wmx76z" } +# OGAR `main` carries `ports::PortSpec` + the project-mgmt ports AND the +# `HealthcarePort` + 0x09XX Health codebook that +# `MedcareBridge = UnifiedBridge` needs (OGAR #91 merged). +# Tracks `main`, matching the sibling `lance-graph-ogar` / `cognitive-stack` +# / `symbiont` pins — one OGAR source for the whole graph. +ogar-vocab = { git = "https://github.com/AdaWorldAPI/OGAR", branch = "main" } # TTL parser. oxttl is the smallest streaming Turtle parser in the workspace's # dependency graph and matches the shape of OGIT's per-entity .ttl files.