Commit 21ee026
committed
feat(contract): D-ODOO-SAV-5b-v2 — canonical OGIT-URI codebook foundation + E-CODEBOOK-INHERITS-FROM-OGIT
Per the 2026-05-28 user-given doctrine (distilled across four messages):
"every data is now LE-byte contract SoA in each mailbox / bitpacked is
also only a desperation bucket / normally LE SoA should have codebook
for everything including semantic ontology graph / inherited from OGIT
because the SoA doesn't guess."
Adds the canonical identity layer that supersedes the bitpacked RoleKey
form shipped in feaa587:
**New: crates/lance-graph-contract/src/callcenter/ogit_uris.rs (8 tests)**
- SAVANT_OGIT_BASE = "https://ogit.adaworldapi.com/callcenter/savants#"
- SAVANT_OGIT_URIS: LazyLock<[String; 25]> — one URI per savant, roster order
- savant_ogit_uri(id) / savant_ogit_uri_by_name(name) — lookup helpers
- 8 unit tests: uris_match_savant_count, uris_use_canonical_namespace,
id_1_resolves_to_fiscal_position_resolver, id_16_is_absent,
id_26_resolves_to_backorder_judge, id_lookup_matches_name_lookup,
nonexistent_name_returns_none, every_savant_in_roster_has_a_uri
Resolves through `lance-graph-ontology::registry::OntologyRegistry`
(infrastructure already shipped — PR #407/#408 hydrators, PR #412 DOLCE
classifier, PR #416 FIBU/FIBO alignment, the canonical lingua-franca path).
The OntologyRegistry resolves the URI to a stable u32 codebook code; the
LE-byte mailbox SoA columns store the code. The Baton (u16, CausalEdge64)
carries the code across mailbox boundaries.
**Updated: contract::callcenter::role_keys (doc-only update)**
Module-level documentation now explicitly flags the bitpacked RoleKey
slices as the desperation-bucket fallback per the new doctrine; canonical
savant identity is via the OGIT URI in ogit_uris. Code unchanged (still
compiled, 7 tests still pass) — usable for ephemeral in-mailbox Hamming
compare where codebook lookup is unavailable.
**Updated: contract::callcenter::mod.rs**
Re-exports the new ogit_uris module + adds the two-identity-layer rationale
in the module doc (canonical OGIT URI + desperation-bucket RoleKey).
**Prepended: .claude/board/EPIPHANIES.md — E-CODEBOOK-INHERITS-FROM-OGIT**
Captures the full doctrine across all four 2026-05-28 messages:
Vsa16kF32 deprecated, LE-byte SoA per mailbox, codebook for everything,
inheritance from OGIT, Kontenerkennung-style multi-dim rich codebook
(parent chain + NARS confidence per link + business × transaction × form
× regulation × law × entity × product), audit query layer (episodic +
AriGraph SPO-G + regulation-ontology + NARS confidence threshold).
**Queued (separate D-ids, captured in the EPIPHANIES entry):**
- (a) data/ontologies/ogit/callcenter/savants.ttl + OntologyRegistry
hydration for the 25 savants
- (b) Kontenerkennung-style inheritance struct with NARS confidence per
parent link
- (c) regulation-ontology codebook (HGB / GoB / AO / UStG / IFRS / GoBD)
- (d) audit-threshold dispatch in cognitive-shader-driver (NARS confidence
vs audit_floor → CausalEdge64 emission or escalation Baton)
Tests: 15 callcenter tests total (8 new ogit_uris + 7 existing role_keys);
454 prior contract lib tests unaffected.
https://claude.ai/code/session_017gZ6sPRXYPj5n7uJ7NBtRv1 parent 508d2c4 commit 21ee026
4 files changed
Lines changed: 231 additions & 8 deletions
File tree
- .claude/board
- crates/lance-graph-contract/src/callcenter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
1 | 32 | | |
2 | 33 | | |
3 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
9 | 21 | | |
10 | 22 | | |
11 | 23 | | |
12 | 24 | | |
13 | 25 | | |
| 26 | + | |
14 | 27 | | |
15 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
16 | 32 | | |
17 | 33 | | |
18 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 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 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
9 | 24 | | |
10 | 25 | | |
11 | 26 | | |
| |||
22 | 37 | | |
23 | 38 | | |
24 | 39 | | |
25 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
26 | 43 | | |
27 | 44 | | |
28 | 45 | | |
| |||
0 commit comments