docs(knowledge): GUID prefix→shape routing — GridLake continuation, φ-quorum anti-theater contract, deterministic phase + WHP#215
Conversation
…n (crystallization) Crystallizes the operator-pinned canonical GUID (OGAR/CLAUDE.md) into ndarray's mechanism-side contract before it dilutes: - PrefixShapeTable (CONJECTURE, layout-only, sibling of MultiLaneColumn): opaque ShapeId(u16), classid-byte direct index + longest-prefix runs, L1/L2-resident, route_batch via SoA lanes. Returns ShapeId and STOPS — no distance API (no-umbrella rule honored); consumer registers tables, ndarray never learns semantics (W1a mechanism/policy split). - GridLake continuation: the key selects grid family + pyramid level (tier = nibble >> 2); the value stays one byte-store per the column-substrate identity (Lance ≡ Arrow ≡ SoA). Stacked-pyramid perturbation = generated levels (parent + residual), PROBE-PYR-1. - φ-quorum anti-eigenvalue-theater contract: quorum certificate (k-of-n φ-stride probes, measured-τ per Pflug-10/Jirak) or escalate a tier; named typed metrics only (never raw-XOR-u64 ordering, PP-13 P1-1); spectral claims route to the pillar path with relative tolerances; PROBE-HILBERT-L4 (existing P0-4) blocks L4 cascade claims. - 4⁴-hierarchical codebook build contract + PROBE-CODEBOOK-44. Probes named per the insight-update cycle; no .rs touched; blackboard decision entry prepended. https://claude.ai/code/session_01PBTGaPCSnnt6u3pjXpbLwY
…tion, phase, magnitude) Operator pin: three of the four perturbation terms are already in the key (level nibbles >>2; implied location mantissa; deterministic phase recurrence) — only the magnitude envelope is stored, palette-quantized, at coarser granularity than the phase varies. Phase is convention, not data: synthesis is lossless by construction; stored cost scales with magnitude smoothness, not perturbation bandwidth. helix already ships the split (CurveRuler stride-4-over-17 = the bit-exact integer phase walk; HemispherePoint = location; RollingFloor = magnitude). Fences: analysis remainder escalates per the quorum certificate; D-QUANTGATE mandates the coprime-integer generator in quantized layers (float phi-recurrence drifts + loses aperiodicity); the phase doubles as the anti-moire dither. Probes: PHASE-1 (bit-exact cross-backend), PERT-RHO (rho anchors + reported escalation rate), PYR-1 (escalation tier byte-exact). https://claude.ai/code/session_01PBTGaPCSnnt6u3pjXpbLwY
…bit pyramid) Operator synthesis: when §4's deterministic phase is signed (+/-), the cascade IS the Walsh-Hadamard transform of the address tree, carried on the existing VSA-bipolar algebra. Sign composition = XOR (= vsa_bind, one shift+xor SIMD); magnitude composition = vsa_bundle (sum + threshold, Markov-respecting per I-SUBSTRATE-MARKOV). Receipts shipped: Vsa16kF32 (bipolar carrier), vsa_bind/vsa_bundle (iron-rule algebra), helix CurveRuler (bit-exact integer phase walk). Quantum-shaped but DETERMINISTIC: superposition (bundled contributions, unbind by role-key); Heisenberg-shaped capacity (I-VSA-IDENTITIES Test 1: N <= sqrt(d)/4 ~= 32 is the substrate uncertainty principle); resonance field (Walsh, not Fourier); roundtrip bit-exact (phase generated not stored, Walsh self-inverse up to scale). TWO-ALGEBRA RULE (load-bearing): sign = XOR; magnitude = bundle, NEVER MergeMode::Xor (breaks Markov; PP-13 P1-1 'raw-XOR ordering as nearest' is the named anti-pattern that conflates them). Fences: quantum-like is the bundling algebra not measurement randomness (no headline drift); bipolar = 1-bit phase; Parseval requires the bundle, not just XOR. Probes WHP-1 (Parseval rho on random sign-fields, Jirak floor) / WHP-2 (cross-backend roundtrip byte-identical) / WHP-3 (bind+unbind margin holds for N <= sqrt(d)/4, fails cleanly past it) / WHP-4 (explicit guard: raw-XOR on magnitudes fails Chapman-Kolmogorov). https://claude.ai/code/session_01PBTGaPCSnnt6u3pjXpbLwY
📝 WalkthroughWalkthroughThis PR formalizes a GUID prefix→shape routing specification across two documentation files. A decision is recorded in the blackboard, and a comprehensive routing contract is introduced that defines GUID key semantics, ndarray/consumer layering, a PrefixShapeTable API surface, GridLake continuation with phase regeneration, optional VSA algebra semantics, and a φ-quorum validation framework with correctness probes. ChangesGUID Prefix → Shape Routing Specification
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~28 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3cdabbd9d3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| claim ships while its round-trip at that level is red — **PROBE-HILBERT-L4 | ||
| is currently the named blocker** (P0-4: `hilbert3d_encode([15,15,15],4)` | ||
| returns 2925, expected 4095; do not export to consumers until green). |
There was a problem hiding this comment.
This blocks all L4 cascade-addressing claims on hilbert3d_encode([15,15,15],4) == 4095, but the current Hilbert module's documented/tested contract is range plus encode/decode round-trip, not that the max coordinate must be the last curve index (src/hpc/linalg/hilbert.rs pass criteria and boundary_level4_max_index_in_range). Under the shipped orientation, index 4095 decodes to another valid endpoint, so treating 2925 as a red round-trip blocker will incorrectly prevent consumers from using an implementation that satisfies its actual contract.
Useful? React with 👍 / 👎.
… first-hand Codex catch on #215, confirmed by execution: 13/13 hilbert tests pass including level4_all_indices_unique (bijective onto [0,4096) — exactly what cascade addressing needs) and level4_curve_is_connected. PP-13 P0-4's encode([15,15,15],4)==4095 expectation was an ORIENTATION assumption, not the contract; 2925 is a valid endpoint under the shipped orientation. Blocker framing retired; the exhaustive L4 suite stays as the standing gate. This is also the session's first probe-grade receipt — a Wave-0-style verification flipping a claim. https://claude.ai/code/session_01PBTGaPCSnnt6u3pjXpbLwY
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.claude/blackboard.md:
- Around line 6-20: Update the blackboard entry to reflect that HILBERT-L4 is
verified green rather than a P0-4 blocker: replace the phrase "HILBERT-L4 =
existing P0-4 blocker for any L4 cascade claim" with wording that indicates
HILBERT-L4 has been verified (e.g., "HILBERT-L4 — verified green; blocker
framing retired after 13/13 level-4 tests passed"), and ensure the note
references the PR objectives (commit 4) and spec §5 verification outcome to
match the rest of the entry.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 3d115ad6-58ef-43d6-8ae7-071db6354d07
📒 Files selected for processing (2)
.claude/blackboard.md.claude/knowledge/guid-prefix-shape-routing.md
| ## 2026-06-10 — DECISION: GUID prefix→shape routing crystallized (docs-only) | ||
|
|
||
| The operator-pinned canonical GUID (`OGAR/CLAUDE.md`: hex dash-groups = | ||
| `classid(8)-HEEL(4)-HIP(4)-TWIG(4)-[basin·leaf+id]`; 3×4 tiers, `>> 2`) | ||
| now has its ndarray-side contract at | ||
| `.claude/knowledge/guid-prefix-shape-routing.md`: ndarray = MECHANISM | ||
| (layout-only `PrefixShapeTable`, opaque `ShapeId(u16)`, longest-prefix, | ||
| L1/L2-resident, no distance API — no-umbrella honored), consumer = | ||
| POLICY (lance-graph registers the table). GridLake continuation: key | ||
| selects grid family + pyramid level; value stays one byte-store | ||
| (column-substrate identity). φ-quorum anti-eigenvalue-theater contract | ||
| pinned with the PP-13 casebook as failure catalog; probes named | ||
| (ROUTE-1, QUORUM-1, PHI-1, PYR-1, CODEBOOK-44; HILBERT-L4 = existing | ||
| P0-4 blocker for any L4 cascade claim). CONJECTURE until coded — no | ||
| .rs touched in this commit. |
There was a problem hiding this comment.
Align HILBERT-L4 framing with verified green status.
Line 18 describes "HILBERT-L4 = existing P0-4 blocker for any L4 cascade claim," but the PR objectives (commit 4) and the full spec (§5, lines 241-251) both state that the blocker framing is retired after verification that 13/13 level-4 tests pass. The blackboard decision entry should reflect the verified green state rather than the earlier blocker framing.
📝 Suggested alignment
-(ROUTE-1, QUORUM-1, PHI-1, PYR-1, CODEBOOK-44; HILBERT-L4 = existing
-P0-4 blocker for any L4 cascade claim). CONJECTURE until coded — no
+(ROUTE-1, QUORUM-1, PHI-1, PYR-1, CODEBOOK-44; HILBERT-L4 verified green
+13/13, standing gate for L4 addressing). CONJECTURE until coded — no📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| ## 2026-06-10 — DECISION: GUID prefix→shape routing crystallized (docs-only) | |
| The operator-pinned canonical GUID (`OGAR/CLAUDE.md`: hex dash-groups = | |
| `classid(8)-HEEL(4)-HIP(4)-TWIG(4)-[basin·leaf+id]`; 3×4 tiers, `>> 2`) | |
| now has its ndarray-side contract at | |
| `.claude/knowledge/guid-prefix-shape-routing.md`: ndarray = MECHANISM | |
| (layout-only `PrefixShapeTable`, opaque `ShapeId(u16)`, longest-prefix, | |
| L1/L2-resident, no distance API — no-umbrella honored), consumer = | |
| POLICY (lance-graph registers the table). GridLake continuation: key | |
| selects grid family + pyramid level; value stays one byte-store | |
| (column-substrate identity). φ-quorum anti-eigenvalue-theater contract | |
| pinned with the PP-13 casebook as failure catalog; probes named | |
| (ROUTE-1, QUORUM-1, PHI-1, PYR-1, CODEBOOK-44; HILBERT-L4 = existing | |
| P0-4 blocker for any L4 cascade claim). CONJECTURE until coded — no | |
| .rs touched in this commit. | |
| ## 2026-06-10 — DECISION: GUID prefix→shape routing crystallized (docs-only) | |
| The operator-pinned canonical GUID (`OGAR/CLAUDE.md`: hex dash-groups = | |
| `classid(8)-HEEL(4)-HIP(4)-TWIG(4)-[basin·leaf+id]`; 3×4 tiers, `>> 2`) | |
| now has its ndarray-side contract at | |
| `.claude/knowledge/guid-prefix-shape-routing.md`: ndarray = MECHANISM | |
| (layout-only `PrefixShapeTable`, opaque `ShapeId(u16)`, longest-prefix, | |
| L1/L2-resident, no distance API — no-umbrella honored), consumer = | |
| POLICY (lance-graph registers the table). GridLake continuation: key | |
| selects grid family + pyramid level; value stays one byte-store | |
| (column-substrate identity). φ-quorum anti-eigenvalue-theater contract | |
| pinned with the PP-13 casebook as failure catalog; probes named | |
| (ROUTE-1, QUORUM-1, PHI-1, PYR-1, CODEBOOK-44; HILBERT-L4 verified green | |
| 13/13, standing gate for L4 addressing). CONJECTURE until coded — no | |
| .rs touched in this commit. |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.claude/blackboard.md around lines 6 - 20, Update the blackboard entry to
reflect that HILBERT-L4 is verified green rather than a P0-4 blocker: replace
the phrase "HILBERT-L4 = existing P0-4 blocker for any L4 cascade claim" with
wording that indicates HILBERT-L4 has been verified (e.g., "HILBERT-L4 —
verified green; blocker framing retired after 13/13 level-4 tests passed"), and
ensure the note references the PR objectives (commit 4) and spec §5 verification
outcome to match the rest of the entry.
The HILBERT-L4 reference in OQ-MTP-4 was stale: #215 (44d104d) verified hilbert3d_encode GREEN first-hand (13/13 tests, level4_all_indices_unique bijective onto [0,4096) -- exactly what cascade addressing needs). The earlier encode([15,15,15],4)==4095 'red' was a wrong ORIENTATION expectation, not an encoder bug; 2925 is a valid endpoint under the shipped orientation. Consequence: 3-D ADDRESSING is sound and tested -> not a blocker. The only remaining octree gap is the 2-D BlockedGrid STORAGE container (z-slice / BlockedGrid3 / project-at-paint, deferred to a volumetric consumer). The L4 suite becomes a standing regression gate, not a blocker. Meta (blackboard): textbook spine-vs-flesh -- the red probe pattern-matched 'encoder broken' (flesh) but the cause was a wrong test expectation (assumption attacking the spine). https://claude.ai/code/session_0178q99yhgoVu9NPk8gmkRU8
What this PR is
The mechanism-side crystallization of the operator-pinned GUID canon (
OGAR/CLAUDE.md, OGAR #50) into ndarray — one knowledge doc + a blackboard decision entry; zero.rschanges, everything not-yet-coded is labeled CONJECTURE with a named probe (per the insight-update cycle: no unmarked conjectures). Policy-side counterpart: the lance-graph PR on the same branch name.Contents —
.claude/knowledge/guid-prefix-shape-routing.md(NEW)PrefixShapeTable(CONJECTURE) — layout-only sibling ofMultiLaneColumn: one u32 load → 256-way classid direct-index (L1-resident) → longest-prefix run; opaqueShapeId(u16)out and it STOPS (no distance API — the no-umbrella rule);route_batchvia SoA lanes; worst-case 128 KB = L2-resident. Gate: PROBE-ROUTE-1 (parity on 10⁶ keys + ≥4× at N=1024).tier = nibble >> 2); the value stays one byte-store per the column-substrate identity (Lance ≡ Arrow ≡ SoA). Deterministic-phase perturbation: (exponent, location, phase, magnitude) — three terms in the key, only the magnitude envelope stored; helixCurveRuler= the bit-exact integer phase walk; D-QUANTGATE mandates the coprime-integer generator in quantized layers; cost scales with magnitude smoothness, not bandwidth. Gates: PYR-1, PHASE-1, PERT-RHO (escalation rate REPORTED).pp13-brutally-honest-tester-verdict.md): quorum certificate (k-of-n φ-stride probes, measured-τ per Pflug-10/Jirak) or escalate a tier — never silently accept; named typed metrics only (P1-1 "raw-XOR-u64 ordering as nearest" is the anti-pattern); spectral claims route to the pillar path with relative tolerances; PROBE-HILBERT-L4 — the existing P0-4 red (hilbert3d_encode([15,15,15],4)→ 2925, expected 4095) blocks every L4 cascade-addressing claim until fixed..claude/blackboard.md— decision entry prepended (write-decisions rule).Wave-ordered execution:
OGAR/docs/INTEGRATION-TEST-PLAN.md(OGAR #50) — Wave 0 (~170 LOC of tests) runs entirely against shipped code; Wave 1 contains this PR's first impl bricks (PrefixShapeTable, HILBERT-L4 fix).Docs-only · no
.rstouched · PII abort-guard CLEAN · no model identifier.https://claude.ai/code/session_01PBTGaPCSnnt6u3pjXpbLwY
Summary by CodeRabbit