From d28a39716bacc0a01835da4af86e14de6c0e86b9 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 7 Jul 2026 09:47:23 +0000 Subject: [PATCH] contract: mirror the 0x0805..0x0809 OCR plan mints (D0.5, paired with OGAR #172) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The lance-graph half of the two-sided drift fuse: ogar_codebook::CODEBOOK +5 rows (textline/blob/page_layout/page_image/ocr_renderer) mirroring OGAR PR #172, + the lance-graph-ogar doc-count 79->84. MERGE ORDER: OGAR #172 first (or same timeframe) — lance-graph-ogar pulls ogar-* as git deps on OGAR main, so its COUNT_FUSE compile-assert only balances once both sides carry 84. 829/829 contract tests green. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_016b33swuXE23hKtqxsHu9p1 --- crates/lance-graph-contract/src/ogar_codebook.rs | 8 ++++++++ crates/lance-graph-ogar/Cargo.toml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/lance-graph-contract/src/ogar_codebook.rs b/crates/lance-graph-contract/src/ogar_codebook.rs index b60e33c4..10faf406 100644 --- a/crates/lance-graph-contract/src/ogar_codebook.rs +++ b/crates/lance-graph-contract/src/ogar_codebook.rs @@ -499,6 +499,14 @@ pub const CODEBOOK: &[(&str, u16)] = &[ // not 27 slots — the layer graph sinks onto `FacetCascade` tenants (the // ruff→OGAR network harvest lands here). ("network_layer", 0x0804), + // PDF→text plan mints (tesseract-rs `pdf-to-text-ocr-v1.md` Phase 0 D0.3/D0.5; + // OGAR PR #172 is the authoritative side — this mirror lands PAIRED with its + // merge per the two-sided drift fuse). Each row names its consumer phase. + ("textline", 0x0805), + ("blob", 0x0806), + ("page_layout", 0x0807), + ("page_image", 0x0808), + ("ocr_renderer", 0x0809), // ── 0x09XX — Health domain (MedCare; OGIT NTO/Healthcare promotion) ── ("patient", 0x0901), ("diagnosis", 0x0902), diff --git a/crates/lance-graph-ogar/Cargo.toml b/crates/lance-graph-ogar/Cargo.toml index 87502988..d01912d0 100644 --- a/crates/lance-graph-ogar/Cargo.toml +++ b/crates/lance-graph-ogar/Cargo.toml @@ -84,7 +84,7 @@ lance-graph-ontology = { path = "../lance-graph-ontology" } # # Back to branch = "main" now that OGAR #152 (Geo/OSM + network_layer, ALL=79) # has merged: main == the temp-pinned rev, so the contract mirror (79) and -# ogar_vocab::class_ids::ALL (79) agree via COUNT_FUSE, and symbiont / +# ogar_vocab::class_ids::ALL (84 since the 0x0805..0x0809 OCR plan mints, OGAR #172) agree via COUNT_FUSE, and symbiont / # cognitive-stack (which also `branch = "main"` these crates) resolve the SAME # single OGAR copy instead of a second one at a rev (codex P2 on #648). ogar-vocab = { git = "https://github.com/AdaWorldAPI/OGAR", branch = "main" }