Skip to content

Commit 0c74cf9

Browse files
authored
Merge pull request #380 from AdaWorldAPI/claude/cognitive-substrate-convergence-plan-v1
plan: cognitive-substrate-convergence-v1 (i4 mantissa + gapless baton + active inference)
2 parents 30c6b73 + 7f8bf98 commit 0c74cf9

3 files changed

Lines changed: 754 additions & 0 deletions

File tree

.claude/board/INTEGRATION_PLANS.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,85 @@
1+
## 2026-05-15 — cognitive-substrate-convergence-v1 (CSV — i4 mantissa + gapless baton + active inference)
2+
3+
**Status:** Active (PROPOSAL — awaits OQ-CSV-1..6 ratification before sprint-11 D-CSV-* spawn)
4+
**Confidence:** HIGH on architecture; MED on i4-16D qualia per-dim assignment (OQ-CSV-1); HIGH on i4-mantissa NARS (PR-LL-1 already shipped equivalent in `nars_dispatch.rs`); HIGH on gapless-baton model
5+
**Plan file:** `.claude/plans/cognitive-substrate-convergence-v1.md` (~46 KB, 18 sections)
6+
**Predecessors:** `causaledge64-mailbox-rename-soa-v1` (PR #372), `neurosymbolic-rlvr-causal-curriculum-v1` (PR #373), PR-LL-1 (PR #375)
7+
8+
### Scope
9+
10+
Locks the architectural decisions made during sprint-10 + the post-sprint-10 cross-session A2A discussion (2026-05-15) before context dilution. Consolidates 7 design questions that converge into ONE substrate: CausalEdge64 v2 layout + QualiaColumn quantization + CollapseGate wire format + WitnessCorpus pointer + MUL evaluation + Σ-tier Rubicon orchestration + thinking-engine ↔ SoA reunification.
11+
12+
### The five compressions
13+
14+
1. **Encoding** — signed i4 mantissa family across NARS / Qualia / ThinkingAtom / direction
15+
2. **Wire format** — discrete `Vec<(u16, CausalEdge64)>` baton tuples between mailboxes (no analog `Vsa16kF32` envelope)
16+
3. **Addressing** — i4 payload IS its own CAM key (content = address; 16¹⁶ ≈ 1.8×10¹⁹ unique states)
17+
4. **Temporal axis** — structural (chain-position + AriGraph anchor), not stored in edge
18+
5. **Cycle driver** — entropy-driven (free-energy gradient), not request-driven
19+
20+
### Final CausalEdge64 v2 bit layout (plan §6)
21+
22+
```text
23+
[0:23] S/P/O palette indices (3 × u8)
24+
[24:39] NARS frequency + confidence (2 × u8)
25+
[40:42] Causal mask (3b — Pearl 2³, IS the rung axis; counterfactual at 0b111 SPO)
26+
[43:45] Direction triad (3b)
27+
[46:49] Inference mantissa (4b SIGNED — direction × rule)
28+
[50:52] Plasticity flags (3b)
29+
[53:58] W slot (6b — discourse corpus root handle) ← NEW
30+
[59:60] Truth-band lens (2b — 4 lens states incl. "13% ambiguous direction") ← NEW
31+
[61:63] Spare (3b — sprint-12+ probe headroom)
32+
Total 64b zero unused
33+
```
34+
35+
### 12 deliverables (D-CSV-1..D-CSV-12) across sprints 11-13
36+
37+
| Phase | D-id | Title | Sprint | LOC | Risk |
38+
|---|---|---|---|---|---|
39+
| A | D-CSV-1 | `causal-edge` v2 layout per §6 | 11 | ~250 | LOW |
40+
| A | D-CSV-2 | `QualiaI4_16D` type + f32 ↔ i4 migration helpers | 11 | ~180 | LOW |
41+
| A | D-CSV-3 | InferenceType signed-mantissa expansion + absorb PR-LL-1 variants into canonical edge enum | 11 | ~120 | MED |
42+
| A | D-CSV-4 | `CollapseGateEmission` wire format spec + impl | 11 | ~150 | LOW |
43+
| B | D-CSV-5 | QualiaColumn `[f32; 18]``QualiaI4_16D` (5a sibling-column / 5b cutover) | 11 | ~400 | HIGH |
44+
| B | D-CSV-6 | `WitnessCorpus` (CAM-PQ-indexed) replaces `SpoWitnessChain<32>` | 11 | ~600 | HIGH |
45+
| B | D-CSV-7 | MailboxSoA integration: W-slot + plasticity accumulator + apply_edges | 11 | ~350 | MED |
46+
| C | D-CSV-8 | MUL evaluation in integer SIMD (i4 × i4 → i8 products) | 12 | ~500 | MED |
47+
| C | D-CSV-9 | 8-channel ↔ SPO-palette transcoder (Option R-3) at L3 commit | 12 | ~180 | LOW |
48+
| C | D-CSV-10 | Σ-tier Rubicon-resonance dispatch in SigmaTierRouter | 12 | ~250 | MED |
49+
| D | D-CSV-11 | Vertical streaming structs in ndarray (qualia.history, inference.trajectory, splat.evolve) | 13+ | ~700 | HIGH |
50+
| D | D-CSV-12 | Splat shader op fleet on i4 substrate (splat_gaussian, score_*, emit_if_epiphany) | 13+ | ~800 | MED |
51+
52+
Total: ~4,480 LOC across 12 PRs. Cross-spec patches to sprint-10 W2/W3/W4/W5/W6/W7/W10/W11 specs estimated ~870 LOC (bundled into one sprint-11 prep PR).
53+
54+
### What this locks (vs prior plan)
55+
56+
- **Resolves sprint-10 meta-review CSI-1** (`.claude/board/sprint-log-10/meta-review.md`) with the definitive v2 bit layout per §6
57+
- **Resolves dual-CausalEdge64 finding (E-META-7)** via Option R-3 transcoder at L3 commit boundary
58+
- **Locks the i4 substrate family** unifying qualia + NARS mantissa + ThinkingAtom + direction into one quantization vocabulary
59+
- **Locks gapless-baton wire format** — no analog envelope between mailboxes; `Vsa16kF32` narrows to intra-tier Markov + crystal carrier + grammar bind/unbind testing
60+
- **Locks MailboxSoA semantics** as spatial-temporal meaning accumulators, not channels
61+
- **Locks Σ-tier Rubicon-resonance orchestration** — F-gradient driver, not request-response
62+
- **Locks active-inference cycle driver** — "can't stop thinking" per CLAUDE.md doctrine; entropy-of-state IS the dispatch trigger
63+
64+
### Open questions (6) requiring user ratification
65+
66+
1. **OQ-CSV-1** — Qualia 16D per-dim assignment (BLOCKS D-CSV-2): proposed layout in plan §7.2 needs `qualia-engineer` agent cross-check
67+
2. **OQ-CSV-2** — W-slot width 6 vs 8 bits (BLOCKS D-CSV-1): 6=64 corpora generous, 8=256 corpora for multi-tenant SaaS
68+
3. **OQ-CSV-3** — Spare bits reserved vs pre-allocated (non-blocking): default reserved
69+
4. **OQ-CSV-4** — QualiaColumn migration phasing (BLOCKS D-CSV-5): default sibling-then-cutover (lower risk)
70+
5. **OQ-CSV-5** — Pre-computed Magnitude (Staunen×Wisdom) column vs on-demand (non-blocking): default on-demand
71+
6. **OQ-CSV-6** — Σ10 Rubicon threshold Jirak-derived vs hand-tuned (BLOCKS D-CSV-10 sprint-12): hand-tuned acceptable per `I-NOISE-FLOOR-JIRAK` if TECH_DEBT documented
72+
73+
### Cross-references
74+
75+
- 12 sprint-10 specs at `.claude/specs/` (W1-W12); 11 require small spec patches per plan §12
76+
- 8 sprint-10 knowledge docs at `.claude/knowledge/causal-edge-64-*.md`, `spo-*.md`, `ogit-*.md`, `cognitive-shader-driver-*.md`, `splat-*.md`
77+
- Meta-review at `.claude/board/sprint-log-10/meta-review.md` — CSI-1 resolved by this plan's §6
78+
- PR #375 PR-LL-1 — Intervention/Counterfactual variants already in `nars_dispatch.rs`, this plan absorbs them into canonical edge enum
79+
- PR #379 — 4-branch retirement (orphan sweep) cleared the pre-condition
80+
81+
---
82+
183
## 2026-05-14 — neurosymbolic-rlvr-causal-curriculum-v1 (LL-CURRICULUM)
284

385
**Status:** Active (PROPOSAL — curriculum landed, 5-PR roadmap ratification pending §7 OQs)

.claude/board/STATUS_BOARD.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,70 @@ Plan path: `.claude/plans/causaledge64-mailbox-rename-soa-v1.md`.
416416

417417
---
418418

419+
## cognitive-substrate-convergence-v1 — i4 mantissa + gapless baton + active inference
420+
421+
Active integration plan. Authored 2026-05-15 (cross-session A2A discussion).
422+
Plan path: `.claude/plans/cognitive-substrate-convergence-v1.md`.
423+
Consolidates sprint-10 architectural decisions before context dilution.
424+
425+
### Phase A — Substrate primitives (sprint-11)
426+
427+
| D-id | Title | Status | PR / Evidence |
428+
|---|---|---|---|
429+
| D-CSV-1 | `causal-edge` crate v2 layout (signed mantissa, W-slot, lens, drop temporal) | **Queued** | blocked on OQ-CSV-1 + OQ-CSV-2 user ratification |
430+
| D-CSV-2 | `QualiaI4_16D` type in `lance-graph-contract::qualia` + f32↔i4 migration helpers | **Queued** | blocked on OQ-CSV-1 (per-dim assignment) |
431+
| D-CSV-3 | InferenceType signed-mantissa expansion (absorbs PR-LL-1 Intervention/Counterfactual into canonical edge enum) | **Queued** | depends on D-CSV-1 |
432+
| D-CSV-4 | `CollapseGateEmission` wire format spec + impl per plan §8 | **Queued** | depends on D-CSV-1 |
433+
434+
### Phase B — Storage & dispatch path (sprint-11)
435+
436+
| D-id | Title | Status | PR / Evidence |
437+
|---|---|---|---|
438+
| D-CSV-5 | QualiaColumn migration `[f32; 18]``QualiaI4_16D` (5a sibling column + 5b cutover) | **Queued** | blocked on OQ-CSV-4 phasing decision |
439+
| D-CSV-6 | `WitnessCorpus` (CAM-PQ-indexed) replaces `SpoWitnessChain<32>` | **Queued** | depends on D-CSV-4; elevates CAM-PQ wiring to Wave 3 hard prerequisite |
440+
| D-CSV-7 | MailboxSoA integration: W-slot referencing + per-row plasticity accumulator + apply_edges | **Queued** | depends on D-CSV-1, D-CSV-4 |
441+
442+
### Phase C — Reasoning path (sprint-12)
443+
444+
| D-id | Title | Status | PR / Evidence |
445+
|---|---|---|---|
446+
| D-CSV-8 | MUL evaluation in integer SIMD: DK/TrustTexture/FlowState/GateDecision consume i4 qualia + signed mantissa | **Queued** | depends on D-CSV-2 + D-CSV-3 |
447+
| D-CSV-9 | 8-channel ↔ SPO-palette transcoder (Option R-3) at thinking-engine L3 commit boundary | **Queued** | depends on D-CSV-3 |
448+
| D-CSV-10 | Σ-tier Rubicon-resonance dispatch in `SigmaTierRouter`: ΔF + resonance threshold → Σ10 commit | **Queued** | depends on D-CSV-7 + D-CSV-8; blocked on OQ-CSV-6 (Jirak-derived threshold) |
449+
450+
### Phase D — Streaming infrastructure (sprint-13+)
451+
452+
| D-id | Title | Status | PR / Evidence |
453+
|---|---|---|---|
454+
| D-CSV-11 | Vertical streaming structs in ndarray: `QualiaStream`, `InferenceStream`, `SplatFieldStream` + `par_*` rayon variants | **Queued** | new ndarray surface; coordinate with upstream PR #116 hpc-extras gap |
455+
| D-CSV-12 | Splat shader op fleet (`splat_gaussian`, `score_hole_closure`, `replay_coherence`, `emit_if_epiphany`) as methods on `Think` carrier | **Queued** | depends on D-CSV-11 |
456+
457+
### Open-question gates (block specific D-CSV-* spawns)
458+
459+
| Gate | Blocks | Recommendation |
460+
|---|---|---|
461+
| **OQ-CSV-1** Qualia 16D per-dim assignment | D-CSV-2, D-CSV-5 | Ratify proposed §7.2 layout with `qualia-engineer` agent cross-check against `thinking-engine/src/qualia.rs` |
462+
| **OQ-CSV-2** W-slot width 6 vs 8 bits | D-CSV-1 | Default 6 (= 64 active corpora); promote to 8 if multi-tenant SaaS demands |
463+
| **OQ-CSV-4** QualiaColumn migration phasing | D-CSV-5 | Default sibling-column-then-cutover (lower risk; 1 extra PR worth it) |
464+
| **OQ-CSV-6** Σ10 Rubicon threshold derivation | D-CSV-10 (sprint-12) | Hand-tuned acceptable for sprint-11/12 with TECH_DEBT note per `I-NOISE-FLOOR-JIRAK`; principled Jirak derivation deferred to VAMPE coupled-revival sprint-13+ |
465+
466+
### Cross-spec patches (one bundled prep PR pre-sprint-11)
467+
468+
| Spec | Patch | LOC |
469+
|---|---|---|
470+
| `pr-ce64-mb-2-causaledge64-v2.md` (W2) | §3 bit layout → plan §6; OQ-LAYOUT-1 resolved; signed-mantissa rationale | ~150 |
471+
| `pr-ce64-mb-2-pal8-nars-regression.md` (W3) | Tests parameterized on v2 layout; mantissa roundtrip + lens 4-state | ~80 |
472+
| `pr-ce64-mb-3-bindspace-efgh.md` (W4) | QualiaColumn migration step (D-CSV-5) cross-ref | ~40 |
473+
| `pr-ce64-mb-4-arigraph-spo-g.md` (W5) | `SpoWitnessChain<32>``WitnessCorpus`; `W5-INV-CHAIN-ORDER` invariant; W-slot semantics | ~300 |
474+
| `pr-ce64-mb-5-mailbox-soa-attentionmask.md` (W6) | `g_slot_at_drop` field (CSI-2); spatial-temporal accumulator semantics | ~50 |
475+
| `pr-ce64-mb-6-sigma-tier-router.md` (W7) | Σ10 Rubicon-resonance threshold; integer-SIMD MUL path | ~120 |
476+
| `sprint-10-pr-dep-graph.md` (W10) | PR-J1-INT4-32D-ATOMS + CAM-PQ wiring elevated to Wave 3 hard dep | ~50 |
477+
| `sprint-10-test-plan.md` (W11) | Refresh test counts for v2; i4-roundtrip + signed-mantissa-product tests | ~80 |
478+
479+
**Total spec-patch LOC:** ~870. Bundle into `gov: sprint-10 specs patch for cognitive-substrate-convergence-v1` PR.
480+
481+
---
482+
419483
## Update protocol
420484

421485
When a deliverable ships:

0 commit comments

Comments
 (0)