Skip to content

Commit 15bc5b4

Browse files
committed
fix(ogar_codebook): sync CODEBOOK mirror to OGAR class_ids::ALL (health 0x09XX)
OGAR main advanced its class_ids::ALL 32→39 (added the 0x09XX Health domain: patient/diagnosis/lab_value/medication/treatment/visit/vital_sign) but the contract's wire mirror CODEBOOK was still at 32 (commerce 0x0206). The lance-graph-ogar const parity guard (mirror::CODEBOOK.len() == ogar_vocab::class_ids::ALL.len()) therefore failed the build of everything that links lance-graph-ogar (symbiont, cognitive-stack). Mirror was already prepped for health — ConceptDomain::Health, the 0x09 => Health mapping, and the 0x0901==Health test all exist; only the 7 CODEBOOK entries were missing. Added them verbatim from OGAR (stable ids). CODEBOOK now 39 == class_ids::ALL; contract codebook tests green. Unblocks the symbiont run-NaN census on this branch. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VGXeWN4XfVjteBVcVeuLo4
1 parent 2c24e3d commit 15bc5b4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

crates/lance-graph-contract/src/ogar_codebook.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ pub const CODEBOOK: &[(&str, u16)] = &[
138138
("billing_party", 0x0204),
139139
("payment_record", 0x0205),
140140
("currency_policy", 0x0206),
141+
// ── 0x09XX — Health domain (MedCare; OGIT NTO/Healthcare promotion) ──
142+
("patient", 0x0901),
143+
("diagnosis", 0x0902),
144+
("lab_value", 0x0903),
145+
("medication", 0x0904),
146+
("treatment", 0x0905),
147+
("visit", 0x0906),
148+
("vital_sign", 0x0907),
141149
];
142150

143151
/// Resolve a **canonical-concept** string to its stable `u16` codebook id via

0 commit comments

Comments
 (0)