Skip to content

Commit ec0c42a

Browse files
committed
knowledge: neurosymbolic + RLVR + causal learning-layer curriculum (v1)
8-paper synthesis composing Schölkopf SCMs + MIT BPL + LINC + GRPO into a 5-PR roadmap for the stack's missing self-improvement loop. Governance only — no code changes. Doc + 2 board PREPENDs per CLAUDE.md Mandatory Board-Hygiene Rule. ## What this composes Eight papers, four tiers, ~6 hours total reading load: Tier 0 (doctrinal frame): - Causal de Finetti (Guo+Schölkopf 2022, arXiv:2203.15756) — ICM principle, AriGraph SPO-G grouping doctrine - Executable Counterfactuals (Vashishtha 2025, arXiv:2510.01539) — Pearl 2³ trainable verbs, RL>SFT for OOD Tier 1 (method substrate): - LINC (Olausson+Solar-Lezama+Tenenbaum 2023, arXiv:2310.15164) — Σ9-Σ10 classical-prover dispatch - GRPO/DeepSeekMath (Shao 2024, arXiv:2402.03300) — RLVR algorithm spec Tier 2 (closed-loop generation): - LPN (Bonnet 2024, arXiv:2411.08706) — StyleVectors test-time gradient - TextGrad (Yuksekgonul 2024, ~arXiv:2406.07496) — textual-gradient prompt optimizer - Opt-Sym (Yeo+Solar-Lezama 2026, ID pending) — symbolic-space adaptive data generation Tier 3 (safety/calibration): - Conformal CFG (Farzaneh 2026, arXiv:2601.20090) — calibrated bounds for L4 planner outputs ## Stack mapping (5 live components, 4 missing modules) Live: AriGraph SPO-G quads (PR #372) · StyleVectors (cache::triple_model) · Σ9-Σ10 → L4 dispatch shell · MUL gate · Pearl 2³ in nars_engine Missing: NARS Intervention/Counterfactual verbs · ICM-invariance column · TextGrad-style style_synthesize · GRPO trainer · LINC bridge ## 5-PR roadmap (each ~200-800 LOC, sequential, PR-LL-1..LL-5) PR-LL-1: NARS Intervention/Counterfactual InferenceType variants + AriGraph ::intervene_on — closes Pearl 2³ dispatch gap PR-LL-2: ICM-invariance BindSpace column (1 bit/row, gated through CollapseGate per I1) + lance-graph-planner::data_gen module (Opt-Sym generator targeting Σ-tier as difficulty axis, with NARS+Chapman-Kolmogorov deterministic verification stronger than Opt-Sym's LLM verifier) PR-LL-3: Hybrid TextGrad/LPN style_synthesize — numerical autograd on StyleVector + textual gradient on rendering prompt — closes THINKING_ORCHESTRATION_WIRING.md Gap 1 (12 vs 36 ThinkingStyle) PR-LL-4: crates/lance-graph-trainer/ — GRPO loop with NARS confidence ∈ [0,1] as graded reward (strictly stronger than Opt-Sym binary). Backed by candle or burn for the Qwen3 head fine-tune. ~2 weeks separate prep work for the head-via-candle wiring. PR-LL-5: crates/linc-bridge/ — Z3 SMT prover + Farzaneh-style conformal counterfactual wrap. SMT theories (arithmetic, bitvectors, arrays) match stack queries better than pure FOL. Required for MedCare-rs / q2 high-stakes safety. ## 6 Open Questions (ratify before sprint fan-out) OQ-LL-1 reward shape (graded NARS confidence vs binary) OQ-LL-2 TextGrad optimizer location (local Qwen3 vs frontier API) OQ-LL-3 prover choice (Z3 vs Prover9 vs HOL Light) OQ-LL-4 style-pool location (contract vs separate learned_styles pool) OQ-LL-5 ICM-invariance update protocol (when does invariance bit clear?) OQ-LL-6 Σ-tier-as-difficulty probe (hot-path latency check) ## Iron rule audit (all 6 satisfied) I-SUBSTRATE-MARKOV: synthesized trajectories pass Chapman-Kolmogorov in PR-LL-2 verify step I-NOISE-FLOOR-JIRAK: PR-LL-5 conformal calibration uses Jirak bounds (not classical Berry-Esseen) — counterfactual rollouts share latent abduction, classical bounds underestimate variance I-VSA-IDENTITIES: style_synthesize produces identity fingerprints, not content I1: IcmInvarianceColumn writes through CollapseGate::bundle, never raw assignment Method-on-carrier: all 4 new capabilities are methods on existing carriers (AriGraph, StyleVector, Student, Query) AGI-as-glove SoA: synthesized styles land in StyleColumn extension; no new layer ## Blast radius - 2 new crates: lance-graph-trainer + linc-bridge (~1400 LOC total) - 3 crates modified: lance-graph-planner, causal-edge, lance-graph-contract - Zone 3 surface UNCHANGED - ndarray side UNCHANGED (curriculum stays thinking-side of doctrinal split) - External deps gated behind features: z3-rs (PR-LL-5), candle/burn (PR-LL-4) ## Files changed - NEW: .claude/knowledge/neurosymbolic-rlvr-causal-curriculum-v1.md (~620 lines, 12 sections, 5-PR roadmap + 6 OQs + iron-rule audit) - PREPEND: .claude/board/EPIPHANIES.md (E-LL-CURRICULUM-1) - PREPEND: .claude/board/INTEGRATION_PLANS.md (plan-index entry) 3 files changed. Pure plan + board hygiene. No code. ## Predecessor / successor Predecessor: PR #371/#372 (causaledge64-mailbox-rename-soa-v1) substrate — this curriculum is the learning loop on top of that substrate Successor: PR-LL-1 through PR-LL-5 (the curriculum is the spec for the sequential implementation wave; each PR fan-outs via the established CCA2A 12-worker pattern)
1 parent 303ee52 commit ec0c42a

3 files changed

Lines changed: 617 additions & 0 deletions

File tree

.claude/board/EPIPHANIES.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
## 2026-05-14 — E-LL-CURRICULUM-1 — neurosymbolic + RLVR + causal learning layer (8-paper synthesis)
2+
3+
**Status:** PROPOSAL (curriculum doc landed; 5-PR roadmap ratification pending)
4+
5+
**Click:** The stack already has the substrate for *self-improvement*. PR #372 landed AriGraph SPO-G + CausalEdge64 v2 + Σ-tier router + MailboxSoA — all five doctrinal pieces of (probabilistic programs × structural causal models × multi-environment grouped data × explicit conditional dispatch × Bayesian belief). What's missing is **the learning loop on top**: a deterministic verifier (NARS), a Goldilocks data generator (Opt-Sym shape), a continuous program-latent optimizer (LPN shape), an RL trainer (GRPO shape), and a Σ9-Σ10 deductive prover (LINC shape). Each maps to one existing-or-near-existing stack component; the curriculum (this doc) is the joint reading that names which paper supplies which verb. Reading load: ~6 hours across 4 tiers. PR roadmap: 5 PRs (LL-1 NARS intervene/CFG verbs → LL-2 ICM column + Opt-Sym generator → LL-3 hybrid TextGrad/LPN style optimizer → LL-4 GRPO trainer crate → LL-5 LINC bridge + conformal CFG).
6+
7+
**Stack alignment table:** Causal de Finetti ↔ AriGraph SPO-G (live); LPN ↔ StyleVectors (live, underused); LINC ↔ Σ9-Σ10 → L4 (live shell, no prover); Executable CFG ↔ Pearl 2³ in NarsEngine (live in name, missing verbs); Opt-Sym ↔ data_gen module (missing); Conformal CFG ↔ safety wrap (missing); TextGrad ↔ style optimizer (missing); GRPO ↔ trainer (missing).
8+
9+
**Doctrinal claim:** Stack's NARS truth + I-SUBSTRATE-MARKOV gives a *strictly stronger* deterministic verifier than Opt-Sym's LLM verifier — graded confidence ∈ [0,1] is better than binary pass/fail as a GRPO reward. Stack's `StyleVectors` is *already* an LPN-style continuous latent space; LPN's gradient-at-inference is the missing operator. The MUL gate is *already* the LINC dispatch shape; LINC just fills the L4 slot. Each of the 8 papers maps to a verb the stack named but didn't ship.
10+
11+
**Doc location:** `.claude/knowledge/neurosymbolic-rlvr-causal-curriculum-v1.md` (~600 lines, 12 sections). Cross-refs to causal-edge-64-* triad, cognitive-shader-driver-thinking-engine-reunification, encoding-ecosystem (mandatory), lab-vs-canonical-surface (mandatory), bf16-hhtl-terrain (probe queue).
12+
13+
**Open questions (6) gated before sprint fan-out:** reward shape (graded vs binary), TextGrad optimizer (local vs frontier), prover choice (Z3 vs HOL Light), style-pool location (contract vs separate), ICM-invariance update protocol, Σ-tier-as-difficulty probe.
14+
15+
**Iron rule audit:** Six rules (I-SUBSTRATE-MARKOV, I-NOISE-FLOOR-JIRAK, I-VSA-IDENTITIES, I1, method-on-carrier, AGI-as-glove SoA) all satisfied — synthesized styles are IDENTITY fingerprints (not content), Conformal CFG uses Jirak bounds (not classical Berry-Esseen), all four new capabilities are methods on existing carriers, BindSpace stays read-only with the new IcmInvarianceColumn gated through CollapseGate.
16+
17+
**Predecessor:** PR #371/#372 (causaledge64-mailbox-rename-soa-v1) substrate.
18+
19+
**Successor:** PR-LL-1 through PR-LL-5 (this curriculum is the spec).
20+
21+
---
22+
123
# Epiphanies — Append-Only Log (date-prefixed)
224

325
> **APPEND-ONLY.** Every epiphany, realization, correction, or

.claude/board/INTEGRATION_PLANS.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,70 @@
1+
## 2026-05-14 — neurosymbolic-rlvr-causal-curriculum-v1 (LL-CURRICULUM)
2+
3+
**Status:** Active (PROPOSAL — curriculum landed, 5-PR roadmap ratification pending §7 OQs)
4+
**Confidence:** High (composition of published methods + existing substrate; no novel research)
5+
**Plan file:** `.claude/knowledge/neurosymbolic-rlvr-causal-curriculum-v1.md`
6+
**Predecessor:** `causaledge64-mailbox-rename-soa-v1` (PR #372 — landed)
7+
8+
### Scope
9+
10+
8-paper curriculum + 5-PR implementation roadmap for the stack's learning layer. Composes Schölkopf-style structural causal models, MIT-style Bayesian program learning, Solar-Lezama × Tenenbaum neurosymbolic dispatch (LINC), and DeepSeekMath-style RLVR into one substrate that turns the existing `Think` struct (post-PR #372) into a self-improving system.
11+
12+
### What this composes
13+
14+
- **Causal de Finetti** (Guo+Schölkopf 2022, arXiv:2203.15756) → AriGraph SPO-G grouping doctrine
15+
- **LPN** (Bonnet 2024, arXiv:2411.08706) → `StyleVectors` test-time gradient adaptation
16+
- **LINC** (Olausson+Solar-Lezama+Tenenbaum 2023, arXiv:2310.15164) → Σ9-Σ10 EPIPHANY classical-prover dispatch
17+
- **Executable Counterfactuals** (Vashishtha 2025, arXiv:2510.01539) → Pearl 2³ trainable verbs + RL>SFT for OOD
18+
- **Conformal CFG** (Farzaneh 2026, arXiv:2601.20090) → calibrated counterfactual sets for MedCare-rs / q2 safety
19+
- **TextGrad** (Yuksekgonul 2024, arXiv:~2406.07496) → closed-loop style optimizer (textual gradient)
20+
- **Opt-Sym** (Yeo+Solar-Lezama 2026) → symbolic-space adaptive data generation
21+
- **GRPO/DeepSeekMath** (Shao 2024, arXiv:2402.03300) → RLVR trainer algorithm
22+
23+
### 5-PR sequencing (this curriculum doc is governance only; the 5 implementation PRs follow)
24+
25+
| # | Scope | LOC | Risk |
26+
|---|---|---|---|
27+
| PR-LL-1 | NARS Intervention/Counterfactual InferenceType variants + AriGraph::intervene_on | ~200 | Low (additive to enum) |
28+
| PR-LL-2 | ICM-invariance BindSpace column + `lance-graph-planner::data_gen` (Opt-Sym generator) | ~800 | Med (new SoA column + new module) |
29+
| PR-LL-3 | Hybrid TextGrad/LPN `style_synthesize` (numerical + textual gradient on StyleVector) | ~400 | Med (closes Gap 1) |
30+
| PR-LL-4 | `crates/lance-graph-trainer/` (GRPO loop, candle/burn-backed) | ~800 | High (new training crate, ~2 weeks prep work) |
31+
| PR-LL-5 | `crates/linc-bridge/` (Z3 prover + conformal CFG wrap) | ~600 | Med (new crate, external dep on z3-rs) |
32+
33+
Sequential: each PR is a precondition for the next. PR-LL-4 requires ~2 weeks of separate Qwen3-head-via-candle prep work before fan-out.
34+
35+
### Closes / unblocks
36+
37+
- `THINKING_ORCHESTRATION_WIRING.md` **Gap 1** (Contract Not Consumed — 12 vs 36 ThinkingStyle) → PR-LL-3 learns the missing 24 from runtime trajectories
38+
- `THINKING_ORCHESTRATION_WIRING.md` **Gap 4** (Elevation not connected) → SigmaTierRouter consumes PR-LL-3's free-energy gradient as elevation signal
39+
- **Pearl 2³ named-but-not-dispatched** → PR-LL-1 makes intervene/counterfactual first-class verbs
40+
- **L4 planner shell empty** → PR-LL-5 fills with LINC dispatch + conformal calibration
41+
- **TD-LEARNING-LOOP-MISSING** (implicit; no doc exists for the unwired GRPO trainer) → PR-LL-4
42+
43+
### Blast radius
44+
45+
- **New crates:** `lance-graph-trainer` + `linc-bridge` (~1400 LOC together)
46+
- **Crates modified:** `lance-graph-planner` (data_gen + style_synthesize modules), `causal-edge` (Intervention/Counterfactual variants), `lance-graph-contract` (StylePoolProvider trait per OQ-LL-4)
47+
- **Zone 3 surface UNCHANGED**
48+
- **External deps added:** `z3-rs` (PR-LL-5), `candle` or `burn` (PR-LL-4) — both gated behind feature flags
49+
- **ndarray side:** UNCHANGED (the curriculum stays on the thinking-side of the doctrinal split)
50+
51+
### Open Questions (6 — ratify before sprint fan-out)
52+
53+
OQ-LL-1 reward shape (graded NARS confidence vs binary) · OQ-LL-2 TextGrad optimizer location (local Qwen3 vs frontier API) · OQ-LL-3 prover choice (Z3 vs Prover9 vs HOL Light) · OQ-LL-4 style-pool location (contract vs separate) · OQ-LL-5 ICM-invariance update protocol · OQ-LL-6 Σ-tier-as-difficulty probe (hot-path latency)
54+
55+
### Iron rule compliance
56+
57+
| Rule | Status |
58+
|---|---|
59+
| I-SUBSTRATE-MARKOV | All synthesized trajectories pass Chapman-Kolmogorov test in PR-LL-2 verify step |
60+
| I-NOISE-FLOOR-JIRAK | PR-LL-5 conformal calibration uses Jirak-derived bounds, not classical Berry-Esseen |
61+
| I-VSA-IDENTITIES | `style_synthesize` produces identity fingerprints; content stays in YAML registries |
62+
| I1 BindSpace read-only | `IcmInvarianceColumn` writes go through `CollapseGate::bundle` |
63+
| Method-on-carrier | All 4 new capabilities are methods on existing carriers |
64+
| AGI-as-glove SoA | Synthesized styles land in `StyleColumn` extension; no new layer |
65+
66+
---
67+
168
# Integration Plans — Versioned Index
269

370
> **APPEND-ONLY.** Every integration plan ever authored for this

0 commit comments

Comments
 (0)