Skip to content

Commit c043cf1

Browse files
committed
fix(consolidation): apply 9 joint savant patches + Hilbert-3D scope-cut
Joint plan-review savant verdict: READY-WITH-DOC-FIXES (4 P0 + 5 P1 + 3 P2). All P0/P1 patches applied; advancing to Phase 2 preflight + worker fan-out. P0 patches: - P0-1 PR-X12: RansEncoder::encode_symbol gains # Data-flow rule builder- exemption docstring (Rule #3 carve-out for streaming byte-stream builders) - P0-2 PR-X12: Box<CtuPartition> → stack-arena via tinyvec::ArrayVec<_, 85> (no heap on hot path; quad-tree depth ≤3 bounds total nodes at 85) - P0-3 PR-X13: include_bytes! → include_str! throughout; UTF-8 SAFETY concern removed (Rust validates UTF-8 at compile time on include_str!) - P0-4 PR-X9: A5 encode.rs narrowed to import codec types from PR-X12 (CellMode, MergeDir, rdo_cell, RdoConfig); no mode-picker re-impl P1 patches: - P1-1 PR-X10 Q4: removed lean-(a) on jc consolidation; master ruling is invariant 12 + path (b) per PR-X11 - P1-2 PR-X11 Pillar-8: σ_temporal documented as PILLAR_8_PSD_THRESHOLD with TODO(calibrate-from-echocardiography) marker - P1-3 PR-X4: src/hpc/splat3d/v2/ flagged as INTERIM worktree path; public module path is crate::hpc::splat4d::* from day one via mod.rs re-export - P1-4 PR-X12 sprint composition: A2-A5 parallel (4-way), then A6+A7 parallel, then A8 sequential (not 'A2-A7 parallel' as previously stated) - P1-5 PR-X9 GridStorage trait: switched from associated const + generic const expressions to type-param const generics (compiles on stable 1.94) Scope-cut: Hilbert-3D encode/decode added as MANDATORY Tier-3 in PR-X10 A12 (Butz/Skilling algorithm, ~200 LoC, src/hpc/linalg/hilbert.rs). Required by splat4d cascade CascadeAddr::from_position. Tier-3 RNG/FFT/ sparse/banded marked as in-sprint optional. Also commits the joint savant verdict file (pr-master-consolidation-savant-verdict.md, 145 lines). A1 (MatN foundation) cherry-picked at 0172b0e. 13 lib tests + 7 doctests green. Ready to spawn A2-A12 parallel fan-out + PR-X11/X13 concurrent sprint.
1 parent 0172b0e commit c043cf1

7 files changed

Lines changed: 171 additions & 23 deletions
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Joint Plan-Review Savant Verdict — Master Consolidation Arc
2+
3+
Reviewer: Sonnet joint plan-review savant
4+
Branch reviewed: `claude/pr-x4-splat-cascade-design` @ `190dcbe7`
5+
Docs reviewed: 10
6+
Date: 2026-05-18
7+
8+
Verdict: **READY-WITH-DOC-FIXES**
9+
10+
P0 count: **4** (must fix before any sprint spawns)
11+
P1 count: **5** (advisory; sprints can spawn with these unresolved)
12+
P2 count: **3** (defer to per-sprint P2 savants)
13+
14+
## P0 findings (must fix)
15+
16+
### P0-1 — PR-X12 §ANS: `RansEncoder::encode_symbol(&mut self)` missing data-flow rule docstring
17+
18+
`pr-x12-codec-x265-design.md` ~L141 shows `pub fn encode_symbol(&mut self, ...)` with no `# Data-flow rule` docstring section. Rule #3 binds. The rANS encoder legitimately IS a streaming builder (accumulates output bytes); the method is correct in principle but the design doc must carry the builder-exemption justification.
19+
20+
**Patch**: add to `encode_symbol`:
21+
```
22+
/// # Data-flow rule
23+
///
24+
/// `RansEncoder` is a streaming byte-stream builder per
25+
/// `.claude/rules/data-flow.md` Rule #3's builder/constructor exemption.
26+
/// `encode_symbol` accumulates into `self.output`; no shared data is
27+
/// mutated during computation. Caller holds the encoder exclusively per
28+
/// encoding session.
29+
```
30+
31+
### P0-2 — PR-X12 §Core types: `Box<CtuPartition>` heap allocation on hot path
32+
33+
Violates invariant 1 (zero-cost on hot path). RDO loop runs per-cell; allocating a quad-tree node per CTU split blows the cache.
34+
35+
**Patch**: replace `Split([Box<CtuPartition>; 4])` with stack-arena pattern. Quad-tree depth ≤ 3 levels (64→32→16→8), so total CU count per CTU ≤ 1+4+16+64 = 85 nodes. Use `tinyvec::ArrayVec<CtuPartition, 85>` OR a pre-allocated `Vec<CtuPartition>` indexed by `u16`. Document the stack-arena pattern in the doc body.
36+
37+
### P0-3 — PR-X13 §Why: `include_bytes!` vs `include_str!` inconsistency
38+
39+
PR-X13 mixes references to `include_bytes!` (body text) and `include_str!` (Q1 ruling). The two have different SAFETY profiles: `include_str!` validates UTF-8 at compile time; `include_bytes!` requires runtime UTF-8 validation by the Turtle parser.
40+
41+
**Patch**: commit to `include_str!` throughout. Replace all `include_bytes!` references in PR-X13 body text. Remove the UTF-8-boundary item from the SAFETY audit gate (it's no longer a runtime concern). The ~150 KB size estimate stays accurate.
42+
43+
### P0-4 — PR-X9 vs PR-X12 cross-sprint API split
44+
45+
PR-X9 §A5 `encode.rs` independently defines `RdoConfig` + mode-encoder logic. PR-X12 §A2 `mode.rs` + §A6 `rdo.rs` define the canonical version. Two parallel codec surfaces will diverge at integration time.
46+
47+
**Patch**: PR-X9 A5 `encode.rs` MUST import `ndarray::hpc::codec::{CellMode, MergeDir, rdo_cell, RdoConfig}` from PR-X12. PR-X9 A5 scope narrows from "RDO loop + mode picker" to "LazyBlockedGrid encoder using PR-X12 codec primitives". Feature flag dependency already correct (`cognitive = [..., codec, ...]`); only the worker-scope text needs patching.
48+
49+
## P1 findings (advisory)
50+
51+
### P1-1 — PR-X10 §jc consolidation: internal contradiction on invariant 12
52+
53+
PR-X10 Q4 leans "(a) keep jc zero-dep" while master + PR-X11 break it. Confusing.
54+
55+
**Patch**: delete the (a) lean in PR-X10 Q4. State that the master ruling is **invariant 12 + path (b)** for the PR-X11 consolidation. PR-X10 doesn't need to decide; it just ships the ndarray surface.
56+
57+
### P1-2 — PR-X11 Pillar-8: σ_temporal PASS gate currently arbitrary
58+
59+
Pre-staging Pillar-8 without echocardiography calibration risks a PASS gate that always passes.
60+
61+
**Patch**: ship Pillar-8 with placeholder σ_temporal. PASS gate documented as `report.psd_rate >= PILLAR_8_PSD_THRESHOLD` where `PILLAR_8_PSD_THRESHOLD = TODO_CALIBRATE_FROM_ECHOCARDIOGRAPHY`. Tracking issue + `// TODO(calibrate-pillar-8-σ_temporal)` comment in the const block.
62+
63+
### P1-3 — PR-X4 module path inconsistency
64+
65+
PR-X4 says `src/hpc/splat3d/v2/` (interim worktree path) but master maps to `ndarray::hpc::splat4d::*` (final public path).
66+
67+
**Patch**: clarify in PR-X4 that `src/hpc/splat3d/v2/` is the interim worktree location during the migration; public module path is `crate::hpc::splat4d::*` from day one via `mod.rs` re-export. Both paths resolve to the same code.
68+
69+
### P1-4 — PR-X12 worker parallelism overstated
70+
71+
"A2-A7 parallel" is wrong: A6 (RDO loop) has hard dependencies on A2 (CellMode) + A3 (predict) + A4 (transform) + A5 (quantize). True max fan-out is A2-A5 (4-way).
72+
73+
**Patch**: revise to "A2-A5 parallel, then A6+A7 parallel, then A8 sequential." Maximum 4-way effective parallelism, not 6-way.
74+
75+
### P1-5 — PR-X9 `GridStorage` trait: associated const in const-generic position fails on stable 1.94
76+
77+
`pr-x9-design.md` L157 defines `trait GridStorage<T> { const BR: usize; const BC: usize; ... }` and uses `{ Self::BR }` in associated type bounds. Generic const expressions are NOT stable. CLAUDE.md mandates Rust 1.94 Stable.
78+
79+
**Patch**: switch to type-param generics: `trait GridStorage<T: Copy, const BR: usize, const BC: usize>`. Impls become `impl<T, const BR, const BC> GridStorage<T, BR, BC> for BlockedGrid<T, BR, BC>`. Compiles on stable 1.94.
80+
81+
## Rulings on the 10 joint decisions
82+
83+
| # | Decision | Ruling | Note |
84+
|---|---|---|---|
85+
| 1 | OGIT integration | **(c) embedded TTL bundle** | PR-X13 subsumes Z1+Z2 cleanly |
86+
| 2 | jc zero-dep | **break + invariant 12** | feature-flag isolation preserves the property jc isolation was meant to give |
87+
| 3 | Codec coder | **rANS** | cognitive symbol skew (70% skip) compresses better than video luma/chroma |
88+
| 4 | Cross-sprint ordering | **concurrent** | DAG verified, no cycles |
89+
| 5 | 12 workers/sprint | **confirmed as max ceiling** | PR-X10 hits 12; others hit natural fan-out limit (6/4/4/3/2) |
90+
| 6 | Phase 2 Protocol A | **confirmed** | 6 specialist savants — overlap is feature, not bug |
91+
| 7 | Backward compat for splat3d | **full type aliases** | Rust monomorphization works across aliases (same type, not new type) |
92+
| 8 | Pillar count PR-X11 | **6 (Pillar-8 with placeholder σ)** | per P1-2 patch |
93+
| 9 | Codec mode count | **4** | 5th basin-shift collapses into escape mode |
94+
| 10 | PR-X10 closed-form + general-N coexist | **confirmed** | one-paragraph routing guide eliminates fork-in-the-road |
95+
96+
## Critical scope concerns
97+
98+
### Scope-creep — PR-X10 is exceptionally large
99+
100+
Tier 1+2+3 = ~5,000 LoC across 14 files. "12-worker parallel" conceals that each worker owns 300-600 LoC of non-trivial numerical code.
101+
102+
**Recommendation**: treat PR-X10 **Tier 3 as in-sprint optional** (RNG distributions, FFT extensions, sparse GEMM, banded solvers). Ship only if Tier 1+2 finish within the 2-week window. Tier 3 has no downstream sprint blockers.
103+
104+
### Scope-cut — Hilbert-3D missing from all sprint docs (CRITICAL)
105+
106+
Required for `CascadeAddr::from_position` in splat4d cascade. NOT in any sprint doc.
107+
108+
**Recommendation**: assign Hilbert-3D encode/decode to **PR-X10 A12** as a MANDATORY (not optional) Tier-3 item. ~200 LoC, Butz/Skilling algorithm, pure integer, no precision concerns. New file `src/hpc/linalg/hilbert.rs` OR fold into `hpc::vml`.
109+
110+
## Audit gate results
111+
112+
| Gate | Result | Notes |
113+
|---|---|---|
114+
| A: Data-flow Rule #3 | **PARTIAL FAIL** | P0-1 — rANS encode_symbol missing docstring exemption |
115+
| B: Layering rule | **PASS** | zero `#[target_feature]` in example code |
116+
| C: Distance-typing | **PASS** | no `Box<dyn Distance>`, no umbrella enum |
117+
| D: SAFETY-claim | **PARTIAL FAIL** | P0-3 — TTL parser SAFETY ambiguous |
118+
| E: Cross-PR API consistency | **PARTIAL FAIL** | P0-4 — PR-X9 + PR-X12 codec surface split |
119+
120+
## Net call
121+
122+
**Apply 4 P0 patches + the 5 P1 patches + add Hilbert-3D to PR-X10 A12. Then advance to Phase 2 preflight per Protocol A.**
123+
124+
The dependency DAG is correct, the 10 joint decisions are sound, and the overall architecture is coherent. Sprint ordering (W1-W2 PR-X10, W3 PR-X11+X13, W4-W5 PR-X12+X4, W6-W7 PR-X9, W8 integration) is confirmed. All 44 sprint workers can be spawned per the **corrected** parallelism counts (12/6/4/4/3/2 = 31 effective parallel slots; remaining 13 workers run sequentially within their sprints).

‎.claude/knowledge/pr-x10-linalg-core-design.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ Three definitions today across `ewa_sandwich.rs`, `ewa_sandwich_3d.rs`, `koesten
387387
- **(a)** `jc` keeps its private `hadamard` module (architectural invariant: jc is zero-dep on ndarray). The hadamard module is the consolidated copy; the three sites all use it.
388388
- **(b)** Relax the zero-dep rule for the SPD primitives only — depend on `ndarray::hpc::linalg::{Spd2, Spd3}`. Simpler but couples jc to ndarray.
389389

390-
**Lean: (a)** — keep jc self-certifying. PR-X10's `linalg::matrix` module's API surface is the reference jc's hadamard mirrors.
390+
**Ruling per joint savant P1-1**: invariant 12 governs — master ruling is **path (b)** for the PR-X11 consolidation (jc's math moves into `ndarray::hpc::pillar::*`). PR-X10 doesn't decide this; it ships the canonical ndarray-side surface that PR-X11 then consumes.
391391

392392
### `Cov16384` carrier for Pillar 8 (Düker-Zoubouloglou CLT on AR(1) in ℝ^16384)
393393

@@ -465,7 +465,7 @@ This is a LARGE sprint. Per the user's "12 agents + 1 coordinator" cadence:
465465
| 12 | **A9 — Batched gemm + Norms + Activations** | 1 | `linalg/batched.rs`, `linalg/norm.rs`, `linalg/activations_ext.rs` | ~550 |
466466
| 13 | **A10 — RoPE + Attention (incl. flash-attention)** | 1 | `linalg/rope.rs`, `linalg/attention.rs` | ~600 |
467467
| 14 | **A11 — Cross-entropy + softmax-backward** | 1 | `linalg/loss.rs` | ~250 |
468-
| 15 | **A12 — Tier-3 catalog (RNG dists, vml special fns, FFT extensions, sparse, banded)** | 1 | `hpc/rng.rs`, `hpc/vml.rs`, `hpc/fft.rs`, `linalg/sparse.rs`, `linalg/banded.rs` | ~600 |
468+
| 15 | **A12 — Tier-3 catalog + Hilbert-3D (MANDATORY per joint savant scope-cut)** | 1 | `linalg/hilbert.rs` (NEW — Butz/Skilling 3D Hilbert curve encode/decode, ~200 LoC; used by splat4d::cascade::CascadeAddr::from_position) + Tier-3 OPTIONAL: `hpc/rng.rs`, `hpc/vml.rs`, `hpc/fft.rs`, `linalg/sparse.rs`, `linalg/banded.rs` (ship only if Tier 1+2 finish in 2-week window) | ~200 LoC mandatory + ~600 optional |
469469
| 16 | Codex P0 audit | 1 savant | — | — |
470470
| 17 | Coordinator fix P0s | coordinator | — | — |
471471
| 18 | P2 savant pre-merge | 1 savant | — | — |

‎.claude/knowledge/pr-x11-jc-consolidation-design.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Each `prove()` probe has a deterministic SEED and explicit PASS criteria:
106106
| Pillar-6 (2D EWA) | `0x_DA_5A_DC_5A_DD` | 1000 × 10 | PSD rate ≥ 0.999, log-norm Frobenius KS Thm 1 |
107107
| Pillar-7 (3D EWA) | `0x_EDA_5A_DC_5A_DD` | 1000 × 10 | PSD rate ≥ 0.999, same |
108108
| Pillar-7.5 (Koestenberger) | `0x_KE_5A_DC_5A_DD` | 1000 × 10 | path-1 vs path-2 max abs error ≤ 1e-5 |
109-
| Pillar-8 (temporal) | `0x_E0_DA_5A_DC_5A_DD` | 1000 × 30 × 3 bands | PSD rate ≥ 0.999 across cardiac / respiratory / micro |
109+
| Pillar-8 (temporal) | `0x_E0_DA_5A_DC_5A_DD` | 1000 × 30 × 3 bands | PSD rate ≥ `PILLAR_8_PSD_THRESHOLD` — **placeholder per joint savant P1-2**: `pub const PILLAR_8_PSD_THRESHOLD: f64 = 0.999; // TODO(calibrate-from-echocardiography): cardiac ~6 Hz/~5 mm, respiratory ~0.3 Hz/~20 mm, micro ~120 Hz/~0.1 mm`. Gate is documented-arbitrary, not silently arbitrary. |
110110
| Pillar-9 (Cov16384) | `0x_C0_DA_DA_5A_DC` | 100 × 50 | Düker-Zoubouloglou CLT rate ≥ 0.95 |
111111
| Pillar-10 (Pflug) | `0x_F1_5A_DC_5A_DD` | 1000 × 5 | nested-distance ≤ tight Pflug-Pichler bound |
112112
| Pillar-11 (signature) | `0x_516_DC_5A_DD` | 1000 × Lévy paths | Hambly-Lyons sigker convergence |

‎.claude/knowledge/pr-x12-codec-x265-design.md‎

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,19 @@ pub struct Ctu {
6262

6363
#[repr(u8)]
6464
pub enum CtuPartition {
65-
Leaf(LeafCu), // 64×64, 32×32, 16×16, or 8×8 CU
66-
Split([Box<CtuPartition>; 4]), // 4 sub-quadrants
65+
Leaf(LeafCu),
66+
/// Stack-arena pattern. Per PR-X10 invariant 1 (zero-cost on hot path,
67+
/// no `Box<dyn>`), the quad-tree is allocated once per CTU into a
68+
/// fixed-capacity arena instead of heap-allocating each split node.
69+
/// Quad-tree depth ≤ 3 (64→32→16→8) → ≤ 85 nodes total.
70+
Split([u16; 4]), // indices into the CTU's pre-allocated arena
71+
}
72+
73+
/// Pre-allocated arena holding all CU nodes for one CTU. Capacity 85
74+
/// (1+4+16+64). Stack-allocated via `tinyvec::ArrayVec` OR a flat
75+
/// `Vec<CtuPartition>` indexed by `u16`. No heap allocation per split.
76+
pub struct CtuArena {
77+
nodes: tinyvec::ArrayVec<[CtuPartition; 85]>,
6778
}
6879

6980
pub struct LeafCu {
@@ -138,6 +149,16 @@ pub struct RansEncoder {
138149
}
139150

140151
impl RansEncoder {
152+
/// # Data-flow rule
153+
///
154+
/// `RansEncoder` is a streaming byte-stream BUILDER per
155+
/// `.claude/rules/data-flow.md` Rule #3's builder/constructor exemption.
156+
/// `encode_symbol` accumulates into `self.output`; no shared data is
157+
/// mutated during computation. Caller holds the encoder exclusively per
158+
/// encoding session. This is NOT a compute path — for COMPUTE (e.g.
159+
/// LazyBlockedGrid encoding via PR-X9's `map_l1`-style path) the
160+
/// encoder is constructed fresh per encoding session and consumed via
161+
/// `finish() -> Vec<u8>`.
141162
pub fn encode_symbol(&mut self, symbol: CellMode) {
142163
let (cum_freq, freq) = self.freq_table.cum_and_freq(symbol as usize);
143164
let q = self.state / freq as u32;
@@ -180,7 +201,7 @@ Worst case (incoherent / random): 95% delta + 5% escape → ~4 bytes/cell, **sti
180201
| A7 | `ans.rs` | rANS encoder/decoder + adaptive freq table | ~300 | A2 |
181202
| A8 | `stream.rs` | Byte-stream pack/unpack + header + frame markers | ~250 | A7 |
182203

183-
**Sprint composition**: A1 sequential (foundation), then A2-A7 parallel (different files, A6 depends on A2-A5 but workers run concurrently with stub bodies until prerequisites land), then A8 sequential after A7. **~2 weeks** sprint duration with the 12-agent cadence.
204+
**Sprint composition** (per joint savant P1-4 ruling): A1 sequential (foundation), then **A2-A5 parallel** (CellMode + predict + transform + quantize — independent files, no inter-worker deps), then **A6+A7 parallel** (RDO + rANS — both depend on A2-A5 outputs), then A8 sequential (stream pack/unpack — depends on A7). True max effective parallelism: **4-way** (A2-A5). ~2 weeks sprint duration with the 12-agent cadence; 4 of those slots are used at peak.
184205

185206
## Verification commands
186207

‎.claude/knowledge/pr-x13-ogit-bridge-design.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The master consolidation picks **(c)** because it:
2424
- Removes inter-repo blockers (1 sprint instead of 3)
2525
- Removes the lance-graph-ontology dependency entirely
2626
- Makes the cognitive-shader stack self-contained in ndarray
27-
- Costs ~150 KB of TTL files baked into the binary via `include_bytes!`
27+
- Costs ~150 KB of TTL files baked into the binary via `include_str!`
2828
- Bardioc REST client integration (for live schema queries) becomes a separate optional follow-on, not a blocker
2929

3030
PR-X13 ships the **embedded-TTL bridge** + ships **the OGIT Cognitive namespace TTL itself** (the PR-Z1 bootstrap content) as build-time-embedded data.
@@ -141,7 +141,7 @@ pub struct CognitiveBridge {
141141
impl CognitiveBridge {
142142
/// Load the Cognitive namespace from the embedded TTL bundle.
143143
pub fn load_embedded() -> Result<Self, OgitError> {
144-
let ttls = embedded::cognitive_ttls(); // include_bytes! at compile time
144+
let ttls = embedded::cognitive_ttls(); // include_str! at compile time
145145
let triples = TurtleParser::parse_all(&ttls)?;
146146
let schema = OntologySchema::from_triples(&triples)?;
147147
let codebook = CamCodebook::from_leaf_instances(&schema)?;
@@ -177,7 +177,7 @@ impl CognitiveBridge {
177177
| A1 | `turtle_parser.rs` | Turtle lexer + parser (subset of RDF 1.1 Turtle); ~250 LoC | ~300 |
178178
| A2 | `schema.rs` | `OntologySchema` + `EntityClass` + `FamilyBitmap`; build from triples | ~350 |
179179
| A3 | `cognitive_bridge.rs` | `CognitiveBridge` + `CamCodebook` integration + O(1) family lookup | ~250 |
180-
| A4 | `assets/cognitive/*.ttl` + `embedded.rs` | The 26 TTL files (mirror PR-Z1's spec) + `include_bytes!` wiring | ~50 LoC + 900 lines TTL |
180+
| A4 | `assets/cognitive/*.ttl` + `embedded.rs` | The 26 TTL files (mirror PR-Z1's spec) + `include_str!` wiring | ~50 LoC + 900 lines TTL |
181181

182182
**Sprint composition**: all 4 spawn in parallel. A2 + A3 depend on A1's parser output type, but they can develop against the same parser interface stubbed in advance.
183183

@@ -223,7 +223,7 @@ Bardioc REST client integration could ship later as `ndarray::hpc::ogit_bridge::
223223

224224
## Open questions (joint savant ruling)
225225

226-
1. **TTL files embedded via `include_bytes!` or `include_str!`?** Lean: **`include_str!`** (TTL is UTF-8 text; `include_str!` lets us format-check at compile time).
226+
1. **TTL files: include_str! confirmed (per P0-3 verdict).** Lean: **`include_str!`** (TTL is UTF-8 text; `include_str!` lets us format-check at compile time).
227227

228228
2. **Schema rebuild on startup OR serialize an in-memory binary blob?** Lean: **rebuild on startup** for v1 — 50 ms parse + build is fine; binary blob optimization (msgpack or rkyv) is PR-X13.1.
229229

@@ -244,7 +244,7 @@ Bardioc REST client integration could ship later as `ndarray::hpc::ogit_bridge::
244244
- rdflib parity gate green (same triple count, same triples)
245245
- `CognitiveBridge::load_embedded()` completes in < 50 ms on Zen4
246246
- `CognitiveBridge::nearest_basin()` finds the correct basin on ≥ 99.5% of synthetic test cases (the 0.5% are ambiguous-family cases that go to escape mode in PR-X9)
247-
- Codex P0 audit (especially SAFETY-claim on `include_bytes!` byte handling + UTF-8 boundary correctness)
247+
- Codex P0 audit (especially SAFETY-claim on `include_str!` string literal boundary correctness — include_str! validates UTF-8 at compile time)
248248
- P2 savant SHIP verdict
249249

250250
## Deprecation path

‎.claude/knowledge/pr-x4-design.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,11 @@ Same sequential 5-10 Sonnet + 1 Opus coordinator pattern as PR-X3. Per-worker fi
343343
### File layout
344344

345345
```
346-
src/hpc/splat3d/v2/ (NEW directory — kept side-by-side with existing splat3d files
347-
until raster.rs migrates; final rename in cleanup commit)
346+
src/hpc/splat3d/v2/ (INTERIM worktree path during migration; the public
347+
module path is `crate::hpc::splat4d::*` from day one via
348+
`mod.rs` re-export per joint savant P1-3. After
349+
splat3d::raster.rs migrates, the v2/ directory is renamed
350+
to `splat4d/` and the re-export becomes direct.)
348351
├── mod.rs — coordinator: submodule decls + re-exports
349352
├── tile.rs — A1: TileInstance + TileBinning<BR, BC> struct + accessors
350353
├── bin.rs — A2: from_projected_l1 + from_projected_cascade impls

0 commit comments

Comments
 (0)