Skip to content

plan+board: DeepNSM→V3 convergence — the encoder that fills reserved tenants#640

Merged
AdaWorldAPI merged 1 commit into
mainfrom
claude/v3-substrate-migration-review-o0yoxv
Jul 4, 2026
Merged

plan+board: DeepNSM→V3 convergence — the encoder that fills reserved tenants#640
AdaWorldAPI merged 1 commit into
mainfrom
claude/v3-substrate-migration-review-o0yoxv

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

What

Answers the operator's DeepNSM-to-V3 question — "migrate everything of DeepNSM to V3, check convergence with cam_pq 48-bit vs 6×palette256² vs causaledge64 vs SPO-nars-2³ vs episodic-witness/AriGraph-basins" — with a mapper-grounded scoreboard and a reframe, rather than a big-bang port. Doc-only.

Four parallel contract mappers (deepnsm+COCA codec / V3 substrate+tenants / representation zoo / arm-discovery+grammar-Markov) established the current contracts with file:line receipts. The synthesis:

  • The static convergence is already PROVEN — PR V3 substrate convergence: probes P0–P5 prove one palette across distance/edge/causality/discovery/reasoning #624 landed probes P0–P5: deepnsm distance → palette ≡ arm-discovery MatrixDistance (byte-exact, 4096 pairs), CausalEdge64 round-trip, Pearl 2³ projections, Aerial+ ARM → CausalEdge64, NAL reasoning. This plan credits that as the baseline, not something to re-derive.
  • The reframe: cam_pq / CausalEdge64 / NARS-2³ / episodic are not four rival representations — they are one composed stack (node-code → edge → truth → memory). CAM-PQ 48-bit and 6×palette256² are the code and its distance-table dual of one object; CausalEdge64 is an edge; NARS-2³ is a truth projection. DeepNSM is the trained encoder that fills tenants V3 already reserved, not a payload to port.
  • The recognition: the COCA gridlake Cell (helix48[u8;6] + campq48[u8;6] + count + sum_truth) is a byte-subset of tenants that already existHelixResidue(6 B) + the canonical 6 B CAM-PQ facet + Meta MetaWord nars_f/nars_c. Landing it is a ValueSchema reading over existing tenants — zero new tenant, no ENVELOPE_LAYOUT_VERSION bump. That is task feat(graph): add ZeckF64 neighborhood vector search (Heel/Hip/Twig/Leaf) #17 (gridlake carrier / lane J).
  • The genuinely-unbuilt seam: the memory layer. No episodic-witness ValueTenant; witness_tombstone.rs calcify chain is todo!(); basin = family is doc-only (the AriGraph runtime references neither NodeGuid nor family, grep-confirmed). This is the real new work and the real risk.

Wired vs doc-only scoreboard

Layer V3 home Status
node-code (CAM-PQ code + ADC-table dual) HelixResidue + facet; key tile dual proven (#624 P1); key↔tile identity doc-only
edge (CausalEdge64) EdgeBlockValueTenant::MaterializedEdges wired
truth (SPO-NARS 2³) 3-bit mask in CausalEdge64; projections computed mask stored / projections computed — partial
memory (episodic witness, basin) family field; episodic_edges.rs; witness_tombstone.rs doc-only / todo!() scaffold

Staged deliverables

D-DNV-1 recognition (task #17, buildable) → D-DNV-2 SPO→CausalEdge64+2³ on real COCA (buildable, extends #624 P3b) → D-DNV-3 arm-discovery second proposer leg (GATED on ARM-JIRAK-FLOOR) → D-DNV-4 memory tenant (own wave + probe). No code is bound to the memory-layer claims until their probe is green.

Files

  • .claude/plans/deepnsm-v3-convergence-v1.md — the staged plan, collision guards, out-of-scope.
  • .claude/board/EPIPHANIES.mdE-V3-DEEPNSM-IS-THE-ENCODER-NOT-A-MIGRATION-1 (prepended).
  • .claude/board/INTEGRATION_PLANS.md — plan index entry (prepended).

Doc-only; extends v3-convergence-wiring-v1 (wire-don't-invent); supersedes nothing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MLBnPuScZy6w9di2QEjsXM


Generated by Claude Code

…tenants

Answers the DeepNSM-to-V3 migration question with a mapper-grounded
scoreboard rather than a big-bang port. Four parallel contract mappers
(deepnsm+COCA / V3 substrate / representation zoo / arm-discovery+grammar)
establish that the static convergence is already PROVEN (#624 P0–P5) and
that only the memory layer (episodic-witness tenant, basin=family) is
doc-only. The reframe: cam_pq/CausalEdge64/NARS-2³/episodic are one
composed stack, not four rival representations, and DeepNSM is the trained
encoder that fills tenants V3 already reserved — the COCA gridlake Cell is
a byte-subset of HelixResidue + CAM-PQ facet + Meta (task #17 recognition).

- plan: .claude/plans/deepnsm-v3-convergence-v1.md (D-DNV-1..4, gated seams)
- EPIPHANIES: E-V3-DEEPNSM-IS-THE-ENCODER-NOT-A-MIGRATION-1 (wired/doc-only
  scoreboard + collision guards)
- INTEGRATION_PLANS: plan index entry

Doc-only; extends v3-convergence-wiring-v1, supersedes nothing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MLBnPuScZy6w9di2QEjsXM
@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@AdaWorldAPI, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 15 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b101b6b1-669a-4dc0-ba0b-9cb1dd6c7122

📥 Commits

Reviewing files that changed from the base of the PR and between 050ae80 and 79a2cbc.

📒 Files selected for processing (3)
  • .claude/board/EPIPHANIES.md
  • .claude/board/INTEGRATION_PLANS.md
  • .claude/plans/deepnsm-v3-convergence-v1.md

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 79a2cbca28

ℹ️ 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".

Comment on lines +77 to +78
- **D-DNV-1 (recognition, = task #17).** Land the COCA/gridlake landing as a
`ValueSchema` reading over `HelixResidue` + CAM-PQ facet + `Meta`. Zero new

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Correct the ValueSchema CAM-PQ mapping

With D-DNV-1 implemented as written, campq48 has no value-slab home: ValueSchema only selects ValueTenant bits, and the tenant enum in crates/lance-graph-contract/src/canonical_node.rs:731-743 has HelixResidue/TurbovecResidue but no CAM-PQ tenant; the Pair48 CAM-PQ shape lives in crates/lance-graph-contract/src/facet_schema.rs:13-33 as a FacetCascade reading, not a tenant. The plan should route CAM-PQ through that facet/key path or reserve a real tenant, otherwise task #17's “zero new tenant” implementation cannot actually materialize campq48.

Useful? React with 👍 / 👎.

Comment on lines +81 to +82
- **D-DNV-2 (SPO → CausalEdge64 + 2³, deepen P1/P3).** Map deepnsm `SpoTriple`
(36-bit S/P/O) onto `CausalEdge64` S/P/O + freq/conf → `MaterializedEdges`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Account for 12-bit SPO ranks before packing edges

When D-DNV-2 runs on real DeepNSM triples, direct packing aliases most vocab ranks: SpoTriple stores each role as a 12-bit 0..4095 rank (crates/deepnsm/src/spo.rs:1-17, :38-42), but CausalEdge64 S/P/O are only 8-bit palette indices (crates/causal-edge/src/edge.rs:126-132). The plan needs an explicit 12→8 codebook/bucket mapping or sidecar for full ranks before writing MaterializedEdges; otherwise any role >=256 will be truncated/collided.

Useful? React with 👍 / 👎.

@AdaWorldAPI AdaWorldAPI merged commit 70af76f into main Jul 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants