Commit 12c5ea3
committed
docs(identity): Phase B grounded mint seam — frugal north-star, four moves
Grounded the live registry surfaces before proposing Phase B:
- contract/ontology.rs:85 entity_type_id() is a 1-based POSITIONAL index into
Ontology.schemas (mutable: insert/reorder renumbers everything) -- the legacy
anti-pattern in our own code.
- lance-graph-ontology/registry.rs OntologyRegistry is APPEND-ONLY
(RegistryState::append, 'no rebuild per append') -- the correct immutable home,
and already frugal: enumerate_first_with_entity_type_id shows N MappingRows -> 1
entity_type (one template reused across namespaces) is already legal.
Four frugal moves recorded in the plan: (1) mint in the append-only registry,
deduped by template (domains reuse via namespace, not a fresh entity_type);
(2) pair entity_type <-> NiblePath at mint; (3) build-time round-trip test makes
eineindeutigkeit CI-falsifiable; (4) feature-gate the legacy positional helper
per I-LEGACY-API-FEATURE-GATED.
https://claude.ai/code/session_014A4JuRCqKP2yNENrQ9Ha7H1 parent 09484b3 commit 12c5ea3
1 file changed
Lines changed: 32 additions & 0 deletions
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
189 | 221 | | |
190 | 222 | | |
191 | 223 | | |
| |||
0 commit comments