Commit 2f1ad2e
committed
feat(graph+contract): CLAM containment + CAKES nearest over HHTL prefixes (Inc 0, the manifold facet)
panCAKES == radix trie == HHTL (E-PANCAKES-IS-RADIX-IS-HHTL): the CLAM cluster
tree IS the radix trie of the classid·HEEL·HIP·TWIG nibble paths already in the
keys, so the structural neighborhood is pure prefix arithmetic, zero value decode.
- NiblePath::common_prefix_depth (contract) — the radix-trie nearest-neighbor
measure; longest-common-prefix = CAKES attraction. +1 unit test.
- MailboxSoaView::hhtl_path_at (contract) — per-row HHTL NiblePath, deferred-
binding default None (canon NodeRow already carries key(16); the override
exposes what's there).
- graph::mailbox_scan::clam_contained (is_ancestor_of = the radix subtree =
CLAM cluster) + cakes_nearest (common_prefix_depth ranking, k-NN). Both
key-only, zero value decode.
- Tests: containment = radix subtree (rows 0,1,2 under 1·2; leaf narrows to 0);
CAKES ranks by shared depth [(0,3),(1,2),(2,2)]; deferred-None yields nothing
(coarser-facet fallback); F2 zero-value-decode extended to CLAM/CAKES (the
GuardedSoa value columns still panic-guarded). 7/7 mailbox_scan + 21/21 hhtl
green, clippy clean.
This is the first dispatch-table facet beyond the classid node-match: proximity/
neighborhood resolves on the key (CLAM/CAKES), free, per E-CLAM-IS-THE-MANIFOLD-
ENGINE. Edge-deref (EdgeBlock) + helix exact-location (value decode) are the
next tiers.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcpLeEC3XK8Eye53GKBVvi1 parent 04576d9 commit 2f1ad2e
4 files changed
Lines changed: 195 additions & 1 deletion
File tree
- .claude/board
- crates
- lance-graph-contract/src
- lance-graph/src/graph
| 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 | + | |
1 | 21 | | |
2 | 22 | | |
3 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
241 | 270 | | |
242 | 271 | | |
243 | 272 | | |
| |||
456 | 485 | | |
457 | 486 | | |
458 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
459 | 506 | | |
460 | 507 | | |
461 | 508 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
91 | 109 | | |
92 | 110 | | |
93 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
87 | 88 | | |
88 | 89 | | |
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 | + | |
90 | 140 | | |
91 | 141 | | |
92 | 142 | | |
| |||
100 | 150 | | |
101 | 151 | | |
102 | 152 | | |
| 153 | + | |
103 | 154 | | |
104 | 155 | | |
105 | 156 | | |
| |||
141 | 192 | | |
142 | 193 | | |
143 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
144 | 198 | | |
145 | 199 | | |
146 | 200 | | |
| |||
149 | 203 | | |
150 | 204 | | |
151 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
152 | 215 | | |
153 | 216 | | |
154 | 217 | | |
| |||
193 | 256 | | |
194 | 257 | | |
195 | 258 | | |
196 | | - | |
| 259 | + | |
| 260 | + | |
197 | 261 | | |
198 | 262 | | |
199 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
200 | 309 | | |
201 | 310 | | |
0 commit comments