Skip to content

Commit 7c28967

Browse files
committed
docs(unified-soa): meticulous integration plan + handover for ONE-SoA-end-to-end convergence
Plan (.claude/plans/unified-soa-convergence-v1.md, 685 lines, tee-chunked): - 5 user-stated rulings from this session (E-SOA-IS-THE-ONLY + §11.3/4/6 refinements) - 9 half-baked consumers: current state → target state (each gets D-MBX-12.x) - THE SoA column-by-column layout (header + per-row + identity planes + shared cold) - SoA version byte at layout root; field-isolation matrix discipline (I-LEGACY-API-FEATURE-GATED) - Workspace stack pin: lance =6.0.0 → =6.0.1 only bump pending (arrow 58 / datafusion 53 / lancedb =0.29.0 already on target); enables SurrealDB transparent view - 4-phase Rubicon kanban (Planning > Cognitive work > Evaluation > Commit·Plan·Prune) wired at Libet -550 ms; surrealkv-on-lance view (D-MBX-9) — SurrealDB is VIEW not store - AriGraph episodic Markov chain = the index space; SPO-W witness = pointer - Counterfactual Staunen × Wisdom plasticity spreader (Hebbian, Planning-gated) - lance-graph-planner DTO surface overhaul: DTOs as SoA-row-lenses; output = KanbanMoves - 7 phased deliverables (P0..P7) + dependency graph + risk matrix + success criteria - 12 deliverable specs: D-MBX-A2/A3/A4/A5/A6 + 7/8/9/10/11/12 (12 sub-PRs) - 8 open questions (OQ-11.1..11.8) with default proposals + ratification gates Handover (.claude/handovers/2026-05-29-1825-soa-convergence-author-to-impl.md): - What this session did (chronology) - FINDING (high-confidence facts, code anchors) - CONJECTURE (load-bearing defaults to ratify) - Blockers (PR-NDARRAY-MIRI-COMPLETE, par-tile, surreal_container BLOCKED, cargo prohibition) - Open questions for the user (8 OQs with default proposals) - Recommended next-session entry sequence - Provenance: user-stated rulings recorded verbatim Board hygiene: INTEGRATION_PLANS PREPEND entry; STATUS_BOARD new plan section with all new deliverables (D-MBX-A1 Shipped; A2/A3/A4/A5/A6/7/8/9/10/11/12 Queued). Council note: §11 epiphanies are author-stated by the user — `epiphany-brainstorm-council` (shipped #433) is bypassed for them. Plan's spec content IS open to council review via PR. Design/spec only. No code. Cargo prohibited (session-stability constraint). https://claude.ai/code/session_017GFLBnDy23AWBqvkbHHC41
1 parent eb5c4a5 commit 7c28967

4 files changed

Lines changed: 835 additions & 0 deletions

File tree

.claude/board/INTEGRATION_PLANS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 2026-05-29 — unified-soa-convergence-v1 (THE single LE SoA end-to-end across the workspace: 9 half-baked consumers + SoA version gate + Lance 6.0.1/LanceDB 0.29/DataFusion 53 alignment + 4-phase Rubicon kanban + lance-graph-planner DTO overhaul + Libet −550 ms anchor + Staunen×Wisdom plasticity spreader + SPO-W pointer via AriGraph episodic Markov chain)
2+
3+
**Status:** PROPOSAL / integration plan. Design-spec only, no code. **Plan file:** `.claude/plans/unified-soa-convergence-v1.md`. **Handover:** `.claude/handovers/2026-05-29-1825-soa-convergence-author-to-impl.md`. **Epiphany:** `E-SOA-IS-THE-ONLY` (+ refinements §11.3/4/6 in PR-this-one).
4+
**Owns:** the meticulous integration sequence for the 5 layered user rulings ratified this session — one SoA never transformed; mailbox = full BindSpace as LE; Libet −550 ms ratchets the Rubicon kanban; SPO-W = pointer via AriGraph episodic Markov chain; counterfactual Staunen×Wisdom = plasticity spreaders. Adds D-MBX-A2/A3/A4/A5/A6, D-MBX-7/8/9/10/11/12 (12 sub-PRs); 8 open questions OQ-11.1–11.8; risk matrix; phased dependency graph (P0–P7).
5+
**Anchored iron rules:** I-VSA-IDENTITIES, I-LEGACY-API-FEATURE-GATED (governs the SoA version gate), I-SUBSTRATE-MARKOV (untouched), I-NOISE-FLOOR-JIRAK.
6+
**Predecessors:** `bindspace-singleton-to-mailbox-soa-v1` (§11 rulings); `causaledge64-mailbox-rename-soa-v1` (canonical 5-crate + 7-PR plan); `cognitive-substrate-convergence-v1/v2/v3` (Σ10 Rubicon shipped #388).
7+
**Council bypass note:** the underlying §11 epiphanies are author-stated (user) — `epiphany-brainstorm-council` (shipped #433) is bypassed for them; the plan's *spec content* IS open to council review via PR.
8+
**Workspace stack verified 2026-05-29:** arrow 58 ✓ · datafusion 53 ✓ · lancedb =0.29.0 ✓ · lance =6.0.0 → **=6.0.1** (one patch bump pending, D-MBX-11).
9+
10+
---
111
## 2026-05-28 — normalized-entity-holy-grail-v1 (typed unified normalization + Op chain over OGIT/OWL/DOLCE/Odoo with three-context execution — the trunk that unifies BP-1 + EXT-1..6 + jit + MailboxSoA into one consumer surface)
212

313
**Status:** PROPOSAL. The trunk plan that ties together every prior architectural deliverable into ONE typed consumer pipeline grammar. Closes the structural gap that lets consumers re-implement business logic in regex / hand-rolled pseudo-code by making such interpretation a MISSING FUNCTION (per `E-CONSUMER-CANNOT-INTERPRET-1`) rather than a code-review concern. Re-encodes Odoo's three-regime decomposition (interactive / bulk / periodisch) as compile-time typestate, not stringly-typed `env.context` flags.

.claude/board/STATUS_BOARD.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,27 @@ hot/cold/feedback loop onto our contract types + SoA floor
546546

547547
---
548548

549+
## unified-soa-convergence-v1 — ONE LE SoA end-to-end across 9 consumers + version gate + Lance 6.0.1 stack + 4-phase Rubicon kanban
550+
551+
Plan path: `.claude/plans/unified-soa-convergence-v1.md`. Handover `.claude/handovers/2026-05-29-1825-soa-convergence-author-to-impl.md`. Epiphany `E-SOA-IS-THE-ONLY` (+ §11.3/4/6 refinements).
552+
553+
| D-id | Title | Crate(s) | ~LOC | Risk | Status | PR / Evidence |
554+
|---|---|---|---|---|---|---|
555+
| D-MBX-A1 | migrated thoughtspace columns landed on `MailboxSoA<N>` (`edges`/`qualia`/`meta`/`entity_type`) | cognitive-shader-driver | 60 | LOW | **Shipped** | between #418 and #433 (verified `mailbox_soa.rs` 2026-05-29) |
556+
| D-MBX-A2 | close BindSpace expressivity gaps in `MailboxSoA<N>` (`content_ref`, S/P/O role slices, temporal/expert fold per OQ-2) | cognitive-shader-driver + contract | 140 | MED | **Queued** | gates on D-CE64-MB-1-impl + OQ-1/OQ-2 |
557+
| D-MBX-A3 | `witness_arc: [u32; W]` per-row column (the belief-state arc handle into AriGraph episodic Markov chain) | cognitive-shader-driver | 100 | MED | **Queued** | gates on D-MBX-A2 + OQ-11.2 |
558+
| D-MBX-A4 | Staunen × Wisdom counterfactual plasticity spreader (Hebbian, hot-path-only, Planning-gated) | cognitive-shader-driver | 80 | LOW | **Queued — design** | gates on D-MBX-A3 + OQ-11.1 + `phase` field |
559+
| D-MBX-A5 | SPO-W witness pointer dual-residency (SoA / kanban / mailbox index); SoA decides commit modality (chain pointer vs cold fact) | cognitive-shader-driver + AriGraph SPO-G | 150 | HIGH | **Queued** | gates on D-MBX-A3 + D-MBX-4 |
560+
| D-MBX-A6 | `lance-graph-planner` DTO surface overhaul: DTOs as SoA-row-lenses; planner output = `KanbanMove`s; 5-phase feature-gated cutover (OQ-11.7) | lance-graph-planner + contract | 600 | HIGH | **Queued** | gates on D-MBX-10 + D-MBX-8 + OQ-11.7 |
561+
| D-MBX-7 | `lance-graph` containers ≡ `MailboxSoA` layout ≡ `ndarray::simd_soa.rs`-aligned (1.4–4.2× SIMD payoff; hard prereq for SurrealDB transparent view) | lance-graph + ndarray | 300 | HIGH | **Queued** | gates on D-MBX-A2 + D-MBX-10 + D-MBX-11 + PR-NDARRAY-MIRI-COMPLETE |
562+
| D-MBX-8 | Σ10 commit stamps **t = −550 ms** wall-clock (Libet anchor) in `SigmaTierRouter`; downstream ractor START fires | sigma-tier-router + shader-driver | 120 | MED | **Queued** | gates on D-MBX-A4 + D-MBX-A6 Phase 1 |
563+
| D-MBX-9 | Rubicon kanban view in `surrealkv`-on-lance (4 columns: Planning · Cognitive work · Evaluation · Commit·Plan·Prune); ractor lifecycle hooks = kanban moves | surreal_container + ractor | 250 | HIGH | **Queued** | gates on D-MBX-7 + D-MBX-8 + surreal_container BLOCKED(B/C/D) resolved (OQ-11.6) + D-PERSONA-5 |
564+
| D-MBX-10 | SoA version byte at layout root (`MailboxSoAHeader`); refuse v(N>M) bytes on v(M) reader; field-isolation matrix tests on every column op (`I-LEGACY-API-FEATURE-GATED` discipline) | lance-graph-contract | 100 | HIGH | **Queued** | foundation — should land early in P2; gates on OQ-11.5 |
565+
| D-MBX-11 | Lance `=6.0.0 → =6.0.1` patch bump (5 Cargo.toml files identified) | workspace Cargo.toml | 10 | LOW | **Queued (mechanical)** | none — can land in parallel with par-tile prereq |
566+
| D-MBX-12 | 8-PR workspace-wide consumer alignment: 12.1 AriGraph · 12.2 Vsa16k audit · 12.4 lance-graph · 12.5 planner · 12.6 shader-driver · 12.7 callcenter · 12.8 ontology audit · 12.9 thinking-styles | per-crate | 800 | per-PR | **Queued (multi-PR)** | sequencing per OQ-11.8: 12.4 → 12.5 → 12.6 → 12.7 → 12.1 → 12.9 → 12.2 → 12.8 |
567+
568+
---
569+
549570
## bindspace-singleton-to-mailbox-soa-v1 — dissolve `Arc<BindSpace>` into per-mailbox `MailboxSoA<N>`
550571

551572
Plan path: `.claude/plans/bindspace-singleton-to-mailbox-soa-v1.md`. Epiphany `E-MAILBOX-IS-BINDSPACE`. Migration of the shared singleton address space into mailbox-owned ephemeral thoughtspace (LE-contract SoA columns); drops the 64 KB `Vsa16kF32` `cycle` plane.
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
# Handover — soa-convergence-author → soa-convergence-impl
2+
3+
**Date:** 2026-05-29 18:25 UTC
4+
**From session:** `017GFLBn` (branch `claude/splat3d-cpu-simd-renderer-MAOO0`)
5+
**To:** the implementation session that picks up `unified-soa-convergence-v1.md`.
6+
**Plan ratified in this session (PRs to read first):**
7+
- PR #418 (merged) — `bindspace-singleton-to-mailbox-soa-v1.md` + 5-ruling epiphanies (E-MAILBOX-IS-BINDSPACE / E-RUBICON-RACTOR / E-SOA-IS-THE-ONLY).
8+
- PR (this handover) — `unified-soa-convergence-v1.md` integration plan + handover.
9+
10+
---
11+
12+
## What this session did (chronological)
13+
14+
1. **2026-05-27** — opened PR #416 (recipes + atoms + savants + FIBU re-parent), addressed codex/CodeRabbit review on `b291ac5`, watched it merge.
15+
2. **Investigated** SurrealDB / ractor / owned BindSpace status across the workspace; recorded the surreal POC reconciliation.
16+
3. **2026-05-27** — drafted `bindspace-singleton-to-mailbox-soa-v1.md` (§0–§10) capturing the singleton-dissolution doctrine, hot/cold model, DTO vertical audit (p64-bridge conforms, engine_bridge re-encodes), and the LanceDB-leading / SurrealDB-view correction. Shipped as PR #418.
17+
4. **2026-05-29** — captured five layered architectural rulings from the user (§11.1–§11.5):
18+
- One SoA, never transformed; mailbox SoA mutation IS the hot path.
19+
- Mailbox = full BindSpace as LE; witness = belief-state arc (no separate revision log).
20+
- Libet −550 ms anchors the Rubicon kanban in `surrealkv`-on-lance.
21+
- SPO-W witness is a *pointer* via AriGraph episodic Markov chain.
22+
- Counterfactual Staunen × Wisdom = plasticity spreaders.
23+
5. **2026-05-29** — refined §11.3 (4-phase kanban: Planning / Cognitive work / Evaluation of goalstate / Commit·Plan·Prune) and §11.4 (AriGraph episodic Markov chain as the index space).
24+
6. **2026-05-29** — added §11.6: the nine half-baked consumers (AriGraph / Vsa16k substrate / BindSpace / lance-graph cold / planner / shader-driver / callcenter / ontology AS IS / thinking-styles), SoA version byte at layout root, Lance 6.0.1 / LanceDB 0.29 / DataFusion 53 stack alignment, planner DTO surface overhaul.
25+
7. **2026-05-29** — drafted `unified-soa-convergence-v1.md` (this plan): integration sequence across all 9 consumers, per-deliverable specs for D-MBX-A2/A3/A4/A5/A6/7/8/9/10/11/12, OQ catalogue (11.1–11.8), risk matrix, dependency graph, success criteria.
26+
27+
---
28+
29+
## FINDING (high-confidence facts the next session inherits)
30+
31+
- **D-MBX-A1 columns landed** between PRs #418 and #433. `mailbox_soa.rs` now carries `edges: [CausalEdge64; N]`, `qualia: [QualiaI4_16D; N]`, `meta: [MetaWord; N]`, `entity_type: [u16; N]`. Verified in the current `mailbox_soa.rs` (lines 67–83).
32+
- **Workspace stack pins** (verified `Cargo.toml` 2026-05-29): `arrow = "58"` ✓, `datafusion = "53"` ✓, `lance = "=6.0.0"` (target =6.0.1), `lancedb = "=0.29.0"` ✓. Only one bump pending (D-MBX-11), files identified.
33+
- **The `ResonanceDto` dup** (`TD-RESONANCEDTO-DUP-1`) is P3 confirmed (not a compile error — distinct modules `dto::ResonanceDto` and `awareness_dto::ResonanceDto`); deferred to D-MBX-2 per user.
34+
- **`epiphany-brainstorm-council`** is a pre-merge gate for `EPIPHANIES.md` additions (shipped in PR #433). This session bypassed the council for the §11 epiphanies because they are *author-stated* by the user, not derived. The plan IS open to council review on spec content.
35+
- **`p64-bridge`** is the conformance template — already LE-types-to-palette with no re-encode. Code-anchor for D-MBX-7.
36+
- **`surreal_container`** is BLOCKED(A/B/C/D); D-MBX-11 removes BLOCKED(A); the rest still need a fork-access human (OQ-11.6) — long-standing.
37+
- **`SigmaTierRouter`** (D-CSV-10) shipped in PR #388; D-MBX-8 adds the −550 ms wall-clock stamp on top of it.
38+
- **`E-NORMALIZED-ENTITY-1`** (2026-05-28) informs D-MBX-A6: typestate carrier (`NormalizedEntity<Stage>`) is the pattern for re-expressing planner DTOs as SoA-row-lenses.
39+
40+
---
41+
42+
## CONJECTURE (load-bearing, ratify before acting on it)
43+
44+
- **OQ-11.1** — Staunen × Wisdom plasticity spread radius / decay. Plan default: radius = 3, decay = bump / (1 + |offset|), column-local in v1. Needs user ratification before D-MBX-A4 lands.
45+
- **OQ-11.2** — Witness arc width W. Plan default: W = 16 (~64 B/row at u32 handles). Needs user ratification before D-MBX-A3 lands.
46+
- **OQ-11.5** — SoA version field width. Plan default: `version: u16` at layout root; no per-column version stamps in v1. Needs user ratification before D-MBX-10 lands.
47+
- **OQ-11.7**`lance-graph-planner` DTO overhaul: clean break vs feature-gated coexistence. Plan default: feature-gated per `I-LEGACY-API-FEATURE-GATED`. Needs user ratification before D-MBX-A6 cuts over.
48+
- **The kanban "Plan" loop closes the active-inference cycle.** If you observe a session where the system stops thinking before reaching homeostasis floor, suspect the Plan-branch in column 4 is not re-entering Planning correctly.
49+
- **`witness_arc` rotation only after Commit/Prune.** If the arc rotates mid-cycle, witnesses are lost before SPO-G calcification — that's a P0 bug.
50+
51+
---
52+
53+
## Blockers
54+
55+
- **`PR-NDARRAY-MIRI-COMPLETE`** — close `U16x32 / U32x16 / U64x8` SIMD method gaps. Cross-repo work in `AdaWorldAPI/ndarray`. Blocks D-CE64-MB-1-impl and therefore the whole P3+ chain.
56+
- **`D-CE64-MB-1-impl`** (par-tile crate apex) — already specced (Sprint-11 W1) but not yet implemented. Blocks D-MBX-A2/A3/A4/A5.
57+
- **`surreal_container` BLOCKED(B/C/D)** — surrealdb fork URL + branch + `kv-lance` feature flag. OQ-11.6. Needs a fork-access human. Blocks D-MBX-9 (kanban view). D-MBX-11 removes BLOCKED(A).
58+
- **CLAUDE.md "The Click" / `Vsa16kF32` doctrinal update** (OQ-11.4) — must precede D-MBX-5 (`BindSpace` singleton + `Vsa16kF32` plane deletion). Separate doc-PR.
59+
- **Cargo prohibited in this session** (user-stated 2026-05-29 over stability concern). Next session should verify cargo prohibition is lifted before running tests; if still in effect, defer cargo and continue spec work.
60+
61+
---
62+
63+
## Open questions for the user
64+
65+
| # | Question | Default proposal | Blocks |
66+
|---|---|---|---|
67+
| OQ-11.1 | Staunen × Wisdom spread radius/decay/scope? | r=3, decay 1/(1+|offset|), column-local v1 | D-MBX-A4 |
68+
| OQ-11.2 | Witness arc width `W`? | W = 16 (~64 B/row) | D-MBX-A3 |
69+
| OQ-11.3 | Need separate "vetoed"/"ghosted" kanban columns? | No — Prune is terminal-veto; ghost preempt drops pre-column-2. | D-MBX-9 |
70+
| OQ-11.4 | When does CLAUDE.md "The Click" doctrinal update land? | Before D-MBX-5. Separate doc-PR. | D-MBX-5 |
71+
| OQ-11.5 | SoA version field width? | u16 at layout root; no per-column stamps in v1 | D-MBX-10 |
72+
| OQ-11.6 | surrealdb fork URL + branch + feature flag? | unknown — needs fork-access human | D-MBX-9 |
73+
| OQ-11.7 | Planner DTO overhaul: clean break or feature-gated? | feature-gated per I-LEGACY-API-FEATURE-GATED | D-MBX-A6 |
74+
| OQ-11.8 | D-MBX-12 sub-PR sequencing? | 12.4 → 12.5 → 12.6 → 12.7 → 12.1 → 12.9 → 12.2 → 12.8 | D-MBX-12 |
75+
76+
---
77+
78+
## Recommended next-session entry sequence
79+
80+
1. **Read Tier-0 + this handover + `unified-soa-convergence-v1.md`.** Do NOT re-derive — the plan is meticulous.
81+
2. **Confirm cargo prohibition status** with the user.
82+
3. **Ratify the four blocking OQs** (11.1 / 11.2 / 11.5 / 11.7) via AskUserQuestion or direct ask. The plan defaults are sensible but they ARE defaults.
83+
4. **Pick the next deliverable:**
84+
- **If cargo allowed:** start D-MBX-11 (mechanical Lance 6.0.0 → 6.0.1 bump). Verify with `cargo check`. Push.
85+
- **If cargo prohibited:** start D-MBX-10 spec work (version gate design + test plan), or the CLAUDE.md doctrinal update (OQ-11.4) as a docs-only PR.
86+
- **In parallel:** push for `PR-NDARRAY-MIRI-COMPLETE` resolution (cross-repo, blocking P3+).
87+
5. **Do NOT bypass `epiphany-brainstorm-council`** for any new derived epiphany. User-stated rulings remain author-stated; derived insights from spec review go through the council.
88+
6. **Board hygiene every commit.** LATEST_STATE + PR_ARC + STATUS_BOARD + EPIPHANIES (if applicable) update in the SAME commit as the change.
89+
90+
---
91+
92+
## Code anchors (don't re-grep these)
93+
94+
- `crates/cognitive-shader-driver/src/mailbox_soa.rs` (D-MBX-A1 columns at lines 67–83; A2/A3/A4/A5 extend here)
95+
- `crates/cognitive-shader-driver/src/bindspace.rs` (singleton to dissolve in D-MBX-3/5)
96+
- `crates/cognitive-shader-driver/src/driver.rs:56` (`Arc<BindSpace>` holder)
97+
- `crates/cognitive-shader-driver/src/bin/serve.rs:29` (`BindSpace::zeros(4096)` to remove)
98+
- `crates/cognitive-shader-driver/src/engine_bridge.rs:199` `busdto_to_binary16k` / `:310` `unbind_busdto` (re-encode seam to collapse in D-MBX-2)
99+
- `crates/lance-graph-contract/src/cognitive_shader.rs:382` (`ShaderCrystal.persisted_row`)
100+
- `crates/lance-graph-ontology/src/registry.rs:39` (`LazyLock<NamespaceRegistry>` — AS IS)
101+
- `crates/lance-graph-ontology/src/lance_cache.rs` (ontology cache — AS IS)
102+
- `crates/surreal_container/src/lib.rs` (BLOCKED view layer)
103+
- `crates/p64-bridge/src/lib.rs` (conformance template)
104+
- `crates/thinking-engine/src/dto.rs:40,59,120` (`StreamDto`/`ResonanceDto`/`BusDto` to collapse in D-MBX-2)
105+
- `crates/thinking-engine/src/awareness_dto.rs:21` (the second `ResonanceDto` — TD-RESONANCEDTO-DUP-1, Deferred)
106+
107+
---
108+
109+
## Provenance
110+
111+
User-stated rulings recorded verbatim in the plan:
112+
- §11.1: *"the same SoA is the one and only SoA consumed and transmitted everywhere, never transformed"*
113+
- §11.2: *"the mailbox needs to have everything that BindSpace had reinvented as little endian contract"*
114+
- §11.3: *"planning > ractor mailbox owned SoA > cognitive work > evaluation of goalstate > commit vs plan vs prune"*
115+
- §11.4: *"the SPO-W witness is the pointer via AriGraph episodic/belief state arc array … [pointer to] other mailboxes in the AriGraph episodic Markov chain"*
116+
- §11.5: *"counterfactual Staunen and wisdom should become helpers of spreading plasticity"*
117+
- §11.6: *"all have to consume the same SoA from A-Z … the SoA can be versioned … for surrealdb the versioning gets aligned with lance 6.0.1 / lancedb 0.29 / datafusion 53"*
118+
119+
These rulings are **load-bearing** for the entire plan. Do not paraphrase or "fix" them without consulting the user.

0 commit comments

Comments
 (0)