From fbb2c8b760eb3eb177824123172541c2ba93df65 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 10 Jul 2026 12:11:46 +0000 Subject: [PATCH 1/2] contract: mirror the 4 harvest-derived Health mints (0x0908..0x090B) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Paired with the OGAR-side mint (two-sided COUNT_FUSE drift fuse: lance-graph-ogar compile-time assert now 88 == 88). Same rows, same order as ogar-vocab CODEBOOK: anamnesis / investigation / examination / practitioner — harvest-derived, no OGIT entity, no port alias yet. Co-Authored-By: Claude --- .claude/board/LATEST_STATE.md | 4 ++++ crates/lance-graph-contract/src/ogar_codebook.rs | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.claude/board/LATEST_STATE.md b/.claude/board/LATEST_STATE.md index 0a6008bb..5fd12635 100644 --- a/.claude/board/LATEST_STATE.md +++ b/.claude/board/LATEST_STATE.md @@ -22,6 +22,10 @@ --- +## 2026-07-10 — branch `claude/medcare-ruff-codebook-handover-5ulx0i` — `contract::ogar_codebook` synced to the OGAR round-2 Health mints (`0x0908..0x090B`) + +Paired mirror of OGAR `2c8836f` (two-sided COUNT_FUSE: `lance-graph-ogar` compile-time assert now 88 == 88). **NEW rows:** `anamnesis 0x0908` / `investigation 0x0909` / `examination 0x090A` / `practitioner 0x090B` — harvest-derived mints surfaced by the MedCare transcode furnace exam's slag ledger (council-hardened 5+3, spec in the consumer repo), NO OGIT entity → no port alias; the 0x09 section comment now names the two provenance classes (7 OGIT-promoted + 4 harvest-derived). **Verified:** `cargo test --manifest-path crates/lance-graph-ogar/Cargo.toml` (COUNT_FUSE green, 62+ tests), `cargo test -p lance-graph-contract` (840 lib tests green). Consumer side: medcare-analytics lands the `MINTED_UNSERVED_HEALTH_CONCEPTS` fail-closed exemption ledger in the same window (its RLS boot gate derives coverage from `concepts_in_domain(Health)`). Merge train: OGAR first, this mirror immediately after, medcare gate immediately after that. + ## 2026-07-06 — MERGED #651 (merge `16c9e0c`) — `contract::class_view::WideFieldMask`: backward-compatible >64-field masks (canonical form, repr-independent Eq/Hash) (Post-merge inventory entry, L-1 of the criticals wave — operator ruling (c), 2026-07-06. Also records: the `claude/classview-unified-render` work in the entry below MERGED as **PR #650**, merge `598f872` — its "not yet a PR" line is superseded.) diff --git a/crates/lance-graph-contract/src/ogar_codebook.rs b/crates/lance-graph-contract/src/ogar_codebook.rs index 10faf406..d8e4dded 100644 --- a/crates/lance-graph-contract/src/ogar_codebook.rs +++ b/crates/lance-graph-contract/src/ogar_codebook.rs @@ -507,7 +507,9 @@ pub const CODEBOOK: &[(&str, u16)] = &[ ("page_layout", 0x0807), ("page_image", 0x0808), ("ocr_renderer", 0x0809), - // ── 0x09XX — Health domain (MedCare; OGIT NTO/Healthcare promotion) ── + // ── 0x09XX — Health domain (MedCare; 0x0901..0x0907 = OGIT + // NTO/Healthcare promotion; 0x0908..0x090B = harvest-derived mints, + // furnace-exam round 2 — no OGIT entity, no port alias yet) ── ("patient", 0x0901), ("diagnosis", 0x0902), ("lab_value", 0x0903), @@ -515,6 +517,10 @@ pub const CODEBOOK: &[(&str, u16)] = &[ ("treatment", 0x0905), ("visit", 0x0906), ("vital_sign", 0x0907), + ("anamnesis", 0x0908), + ("investigation", 0x0909), + ("examination", 0x090A), + ("practitioner", 0x090B), // ── 0x0AXX — Anatomy domain (FMA reference ontology; public, not PHI) ── // FMA anatomy lives HERE, not in Health 0x09 — reference structure is // public, a clinical finding *about* it is PHI. `CLASSID_FMA` retargets to From ccaee502f0146036d046ca7e0ee80e9cb416a313 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 10 Jul 2026 16:33:01 +0000 Subject: [PATCH 2/2] contract: mirror external_practice (0x090C) + board entry Paired with OGAR 13e1b0f (two-sided COUNT_FUSE: 89 == 89). Same row, same order as ogar-vocab CODEBOOK; the 0x09 section comment notes the 0x0908..0x090C harvest-mint range and external_practice's three-axis grounding. LATEST_STATE prepended per board-hygiene rule. Co-Authored-By: Claude --- .claude/board/LATEST_STATE.md | 4 ++++ crates/lance-graph-contract/src/ogar_codebook.rs | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.claude/board/LATEST_STATE.md b/.claude/board/LATEST_STATE.md index 5fd12635..e428fc1a 100644 --- a/.claude/board/LATEST_STATE.md +++ b/.claude/board/LATEST_STATE.md @@ -22,6 +22,10 @@ --- +## 2026-07-10 — branch `claude/medcare-ruff-codebook-handover-5ulx0i` — `contract::ogar_codebook` +`external_practice` (`0x090C`, round-4b Health mint) + +Paired mirror of OGAR `13e1b0f` (COUNT_FUSE 88->89, `lance-graph-ogar` compile-time equality green). **NEW row:** `external_practice 0x090C` — a referral-partner organization (FHIR `Organization`), the round-4b furnace mint. Hardened by a staged 5+3 council **and** an operator-directed three-axis grounding gate (method + storage + navigation-structure witnesses all present -> grounded [G]); the round's second candidate was refused a mint by the same gate for lacking a navigational home. No OGIT entity -> no port alias. **Verified:** `cargo test --manifest-path crates/lance-graph-ogar/Cargo.toml` (fuse green, 62+ tests), `cargo test -p lance-graph-contract` (840 lib tests). Consumer side: medcare-analytics extends `MINTED_UNSERVED_HEALTH_CONCEPTS` with `0x090C`. Merge train: OGAR -> this mirror -> medcare gate, back-to-back (W1 fuse window universal, W2 medcare-gate window present). + ## 2026-07-10 — branch `claude/medcare-ruff-codebook-handover-5ulx0i` — `contract::ogar_codebook` synced to the OGAR round-2 Health mints (`0x0908..0x090B`) Paired mirror of OGAR `2c8836f` (two-sided COUNT_FUSE: `lance-graph-ogar` compile-time assert now 88 == 88). **NEW rows:** `anamnesis 0x0908` / `investigation 0x0909` / `examination 0x090A` / `practitioner 0x090B` — harvest-derived mints surfaced by the MedCare transcode furnace exam's slag ledger (council-hardened 5+3, spec in the consumer repo), NO OGIT entity → no port alias; the 0x09 section comment now names the two provenance classes (7 OGIT-promoted + 4 harvest-derived). **Verified:** `cargo test --manifest-path crates/lance-graph-ogar/Cargo.toml` (COUNT_FUSE green, 62+ tests), `cargo test -p lance-graph-contract` (840 lib tests green). Consumer side: medcare-analytics lands the `MINTED_UNSERVED_HEALTH_CONCEPTS` fail-closed exemption ledger in the same window (its RLS boot gate derives coverage from `concepts_in_domain(Health)`). Merge train: OGAR first, this mirror immediately after, medcare gate immediately after that. diff --git a/crates/lance-graph-contract/src/ogar_codebook.rs b/crates/lance-graph-contract/src/ogar_codebook.rs index d8e4dded..78edccb5 100644 --- a/crates/lance-graph-contract/src/ogar_codebook.rs +++ b/crates/lance-graph-contract/src/ogar_codebook.rs @@ -508,8 +508,9 @@ pub const CODEBOOK: &[(&str, u16)] = &[ ("page_image", 0x0808), ("ocr_renderer", 0x0809), // ── 0x09XX — Health domain (MedCare; 0x0901..0x0907 = OGIT - // NTO/Healthcare promotion; 0x0908..0x090B = harvest-derived mints, - // furnace-exam round 2 — no OGIT entity, no port alias yet) ── + // NTO/Healthcare promotion; 0x0908..0x090C = harvest-derived mints, + // furnace-exam rounds 2 & 4 — no OGIT entity, no port alias yet; + // 0x090C external_practice is three-axis-witnessed, FHIR Organization) ── ("patient", 0x0901), ("diagnosis", 0x0902), ("lab_value", 0x0903), @@ -521,6 +522,7 @@ pub const CODEBOOK: &[(&str, u16)] = &[ ("investigation", 0x0909), ("examination", 0x090A), ("practitioner", 0x090B), + ("external_practice", 0x090C), // ── 0x0AXX — Anatomy domain (FMA reference ontology; public, not PHI) ── // FMA anatomy lives HERE, not in Health 0x09 — reference structure is // public, a clinical finding *about* it is PHI. `CLASSID_FMA` retargets to