Commit 0c2f2d8
committed
feat(contract): D-OVC — realign classids to OGAR 0xDDCC + ogar_codebook wire-compat mirror
Resolves ISS-CLASSID-OGAR-DRIFT (operator-signed): the merged contract
classids disagreed with OGAR ogar-vocab's domain-encoded 0xDDCC codebook
(CLASSID_OSINT=0x0007 hit OGAR's Reserved domain; CLASSID_FMA=0x0008 hit
OGAR's OCR block). Realigned onto the canonical 0xDDCC scheme.
D-OVC-2/3 (canonical_node.rs, layout-preserving const values — NOT a bit
reclaim, so no ENVELOPE_LAYOUT_VERSION bump):
- CLASSID_OSINT 0x0007 -> 0x0700 (OSINT domain root, >>8 == 0x07)
- CLASSID_FMA 0x0008 -> 0x0901 (anatomy concept in Health; 0x0900 root)
- mint CLASSID_PROJECT = 0x0100, CLASSID_ERP = 0x0200
- ReadMode::{PROJECT, ERP} (Cognitive/CoarseOnly) + BUILTIN_READ_MODES
- soa_graph::{PROJECT, ERP} DomainSpecs, re-exported from lib.rs
- value-asserting tests updated to the new values + >>8 domain-byte asserts;
new project_and_erp_classids_resolve_to_their_read_modes
D-OVC-1/4 (NEW contract::ogar_codebook — zero-dep, wire-compat, NO
OGAR<->contract dependency; the u16 LE wire is the only contract):
- ConceptDomain (7 domains, id>>8 route) + canonical_concept_domain
- classid_concept_domain (D-OVC-4: classid low-u16 -> domain)
- source_domain_concept("project"|"erp"|"german-erp")
- CODEBOOK (26 project 0x01XX + 6 commerce 0x02XX, mirrored from OGAR
ogar-vocab lib.rs:1073) + canonical_concept_id
- LabelDTO { label, id, canonical } + from_canonical + id_le
(named from_canonical, not OGAR's from_alias: the contract carries the
codebook-id layer, NOT OGAR's curator-alias normalizer)
- drift-guard test pins the shared 0xDDCC ids (both sides update together)
Verified: lance-graph-contract --lib 710 (default) / 716 (guid-v2-tail);
lance-graph-callcenter --features query 211; clippy -D warnings + fmt clean
on both configs. All OSINT/FMA references are symbolic; downstream unbroken.
(Also folds in pre-existing fmt drift in the same crate: aiwar/codebook/
hhtl/nan_projection comment-alignment + line-wrapping.)
Board: AGENT_LOG (cont.12), LATEST_STATE IN-PR entry, ISSUES RESOLVING,
plan ogar-vocab-contract-codebook-migration-v1 D-OVC-1/2/4 SHIPPED.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcpLeEC3XK8Eye53GKBVvi1 parent 6075d00 commit 0c2f2d8
12 files changed
Lines changed: 484 additions & 47 deletions
File tree
- .claude
- board
- plans
- crates/lance-graph-contract/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
1 | 13 | | |
2 | 14 | | |
3 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
Lines changed: 41 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
104 | 124 | | |
105 | 125 | | |
106 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
0 commit comments