Skip to content

EW64 MRU promote — Hebbian hot-tier "stronger immediate edges" (D-EW64-2)#447

Merged
AdaWorldAPI merged 6 commits into
mainfrom
claude/jolly-cori-clnf9
Jun 1, 2026
Merged

EW64 MRU promote — Hebbian hot-tier "stronger immediate edges" (D-EW64-2)#447
AdaWorldAPI merged 6 commits into
mainfrom
claude/jolly-cori-clnf9

Conversation

@AdaWorldAPI

@AdaWorldAPI AdaWorldAPI commented Jun 1, 2026

Copy link
Copy Markdown
Owner

What

D-EW64-2 (code): EpisodicEdges64::{promote, strongest} in lance-graph-contract — the Hebbian hot-tier "stronger immediate edges" mechanism.

  • promote(e) -> (Self, Option<EdgeRef>) moves a fired edge to slot 0 (strongest / most-immediate); survivors shift down; a new edge on a full word evicts the coldest (slot 3, returned for demotion to the cold connectome); idempotent on the already-hottest edge.
  • Slot order IS the strength ranking — no per-edge weight is stored. The co-addressed CausalEdge64 plasticity carries the Hebbian weight; recency = slot index. (E-EW64-STRENGTH-IS-CE64-PLASTICITY)
  • strongest() reads slot 0.

Findings (board, design-only):

  • E-PLANNING-IS-WHITE-MATTER — the 64k mailboxes are grey matter (compute) + PFC=MUL/planner; planning lives in the CE64/EW64 plasticity connectome (white matter), not in OTP/BEAM scheduling (KanbanMove/VersionScheduler = grey-matter coordination).
  • E-EW64-STRENGTH-IS-CE64-PLASTICITY — strength = co-addressed plasticity + MRU; the surreal-LIVE "wingman" (E-SUBSTRATE-IS-THE-SCHEDULER) is the designed orchestrator, gated on OQ-11.6 (LanceDB-LIVE fallback).

Firewall

Opaque (family, local) only — no COCA; zero-dep; the agnostic substrate never sees language. This is the substrate-agnostic hot-tier mechanism the surreal wingman will call; that orchestration stays gated on OQ-11.6 (fallback exists).

Tests / clippy

cargo test -p lance-graph-contract --lib533 green (+5: empty, move-to-front, evict-coldest, idempotent-refire, dedup-on-full). Default clippy -D warnings clean; episodic_edges.rs clean at pedantic+nursery.

Scope (deliberate)

Hot-tier mechanism only. Not included: the surreal-LIVE orchestration (OQ-11.6 gated), the cold-connectome store, pipeline wiring. Part of the episodic-witness64-ce64-prefetch.md seam.

https://claude.ai/code/session_012SorR8UbtEvYmbX8cXftj7


Generated by Claude Code

Summary by CodeRabbit

  • Documentation

    • Clarified edge-strength semantics, planning architecture, integration gaps, and status board entries.
  • New Features

    • Added a Most-Recently-Used edge ordering mechanism with automatic eviction and slot-strength ordering.
  • Tests

    • Added targeted coverage validating MRU ordering, eviction, deduplication, and idempotence behaviors.

claude added 4 commits May 31, 2026 23:23
…ctome (E-PLANNING-IS-WHITE-MATTER)

Check (a): reframe the 64k-mailbox actor model. The mailboxes are GREY matter
(compute) + PFC executive (MUL/planner); the CE64/EW64 plasticity connectome is
WHITE matter, and planning lives THERE -- the Hebbian-wired path (fire together
-> wire together) + prefetch + spreader, under PFC bias and head2head selection
-- NOT OTP/BEAM scheduling (KanbanMove/VersionScheduler = grey-matter process
coordination, not the planner).

Unifies existing Hebbian findings (E-EW64-IS-PREDICTIVE-PREFETCH, plasticity_
counters, the §11.5 spreaders, high_heel W15 plasticity) under the grey/white
lens. Honest: the white-matter mechanism is DESIGN (A3 witness_arc MISSING,
OQ-11.1 spreader TBD). Seam = plasticity update + spread on the SoA EdgeColumn;
arcuate.rs is the first explicit white-matter tract.

https://claude.ai/code/session_012SorR8UbtEvYmbX8cXftj7
…ots; surreal wingman weighed (E-EW64-STRENGTH-IS-CE64-PLASTICITY)

EpisodicEdges64 (4x EdgeRef{family,local}) has no strength field — and needs
none. Strength = the co-addressed CausalEdge64 plasticity (EW64 shares CE64
low-40 bits; high_heel W15 0=frozen..3=hot); the 4 slots are an MRU hot set
(slot 0 strongest, fire->promote, age->evict to cold). Register-lazy.

The "wingman" = the existing E-SUBSTRATE-IS-THE-SCHEDULER: surreal LIVE over the
version arc fires the promote/prefetch back into the mailbox, same substrate
(cold connectome + orchestration). GATED on OQ-11.6 (surreal_container fork) but
OPTIONAL — LanceDB-LIVE is the substrate-free fallback; the hot 4-edge EW64
stays in the deterministic SoA. Unblocked next = contract-side EW64 strength/MRU
atom; surreal deferred to OQ-11.6. Feeds episodic-witness64-ce64-prefetch.md.

https://claude.ai/code/session_012SorR8UbtEvYmbX8cXftj7
…th (D-EW64-2)

"Stronger immediate edges" (E-EW64-STRENGTH-IS-CE64-PLASTICITY) need no new
field. EpisodicEdges64::promote(e) moves a fired edge to slot 0 (strongest /
most-immediate); survivors shift down; a new edge on a full word evicts the
coldest (slot 3, returned for demotion to the cold connectome); idempotent on
the already-hottest edge. strongest() reads slot 0. Slot ORDER is the strength
ranking — no per-edge weight stored; the co-addressed CausalEdge64 plasticity
carries the Hebbian weight, recency is the slot index.

This is the substrate-agnostic hot-tier mechanism the surreal-LIVE "wingman"
(E-SUBSTRATE-IS-THE-SCHEDULER) will drive; that orchestration stays gated on
OQ-11.6 (LanceDB-LIVE fallback exists). Zero-dep; opaque (family,local) only,
no COCA. contract lib 533 green (+5); default clippy clean; episodic_edges.rs
clean at pedantic+nursery.

Board: STATUS_BOARD D-EW64-2 + LATEST_STATE PR-in-flight note + AGENT_LOG.

https://claude.ai/code/session_012SorR8UbtEvYmbX8cXftj7
@coderabbitai

coderabbitai Bot commented Jun 1, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 48b248a0-c33a-4522-a9fc-4eb58e9b9549

📥 Commits

Reviewing files that changed from the base of the PR and between 4628132 and f5183b0.

📒 Files selected for processing (3)
  • .claude/board/AGENT_LOG.md
  • .claude/board/STATUS_BOARD.md
  • crates/lance-graph-contract/src/episodic_edges.rs
✅ Files skipped from review due to trivial changes (2)
  • .claude/board/STATUS_BOARD.md
  • .claude/board/AGENT_LOG.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • crates/lance-graph-contract/src/episodic_edges.rs

📝 Walkthrough

Walkthrough

This PR ships EpisodicEdges64::promote, an MRU-slot ordering method that provides edge strength semantics by ranking edges 0–3 (strongest to coldest) and evicting the coldest edge on full-word insertion. The implementation is paired with design epiphanies reframing planning as white-matter connectome behavior and delivery documentation tracking the completed work.

Changes

EpisodicEdges64 MRU Promotion

Layer / File(s) Summary
Design & Conceptual Framework
.claude/board/EPIPHANIES.md
Two epiphany entries explain how strength is obtained from co-addressed CausalEdge64 plasticity via 4-slot MRU ordering, and reframe planning as connectome-weighted behavior rather than OTP scheduling.
EpisodicEdges64::promote Implementation & Tests
crates/lance-graph-contract/src/episodic_edges.rs
Introduces promote(self, e: EdgeRef) -> (Self, Option<EdgeRef>) implementing MRU strengthening: moves promoted edge to slot 0, shifts survivors colder, evicts slot 3 on full-word insertion when the promoted edge is new. Adds const fn strongest(self) -> Option<EdgeRef> and expanded unit tests covering empty insertion, promotion of present edges, eviction, idempotency, deduplication, family-local distinctions, and chained MRU behavior.
Delivery Documentation & Status
.claude/board/AGENT_LOG.md, .claude/board/LATEST_STATE.md, .claude/board/STATUS_BOARD.md
Prepend agent log entry for D-EW64-2 with LAND verdict and coverage tests note; append LATEST_STATE PR announcement; add STATUS_BOARD row marking D-EW64-2 In PR and referencing PR/test evidence; include design-resolution note explaining derived strength (no explicit field) and wingman gating/fallback.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 A rabbit hops through slots and time,
Four edges ranked in tidy rhyme—
Slot zero sings the hottest tune,
Cold ones fade like evening June.
Plasticity nudges strength to grow.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and specifically describes the main code change: implementing EpisodicEdges64::promote with MRU (Most-Recently-Used) slot-ordering to provide edge strength semantics.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/jolly-cori-clnf9

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

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/board/STATUS_BOARD.md:
- Line 13: The heading "D-EW64-2 — EpisodicEdges64 MRU promote (Hebbian hot-tier
"stronger immediate edges")" currently uses "###" which violates markdownlint
MD001; change its heading level to the correct increment (e.g., use "####"
instead of "###") so the heading nest level follows the surrounding document
structure and satisfies MD001.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: cd46b77f-707e-4069-a4d6-89765a2c181c

📥 Commits

Reviewing files that changed from the base of the PR and between 0d402d2 and 4628132.

📒 Files selected for processing (5)
  • .claude/board/AGENT_LOG.md
  • .claude/board/EPIPHANIES.md
  • .claude/board/LATEST_STATE.md
  • .claude/board/STATUS_BOARD.md
  • crates/lance-graph-contract/src/episodic_edges.rs

Comment thread .claude/board/STATUS_BOARD.md Outdated
claude added 2 commits June 1, 2026 00:34
…RU chain) per review

Opus review verdict LAND (no P0/P1; brute-forced all 0-4-edge words). Added its
two recommended P2 coverage tests:
- promote_cross_family_local_collision_is_not_deduped: dedup compares family too,
  so cross(3,3) and intra(3) are distinct (no dedup) despite shared local.
- promote_chains_mru_aging_and_appends_fresh_on_non_full: 4 fresh promotes →
  [4,3,2,1]; re-fire coldest → [1,4,3,2]; fresh-on-non-full appends to front.

episodic_edges 16/16 green; default clippy clean. Left the pre-existing
to_slot-on-invalid-EdgeRef nit out of scope (module-wide decision; valid inputs
constructed via new/intra/cross are unaffected).

https://claude.ai/code/session_012SorR8UbtEvYmbX8cXftj7
…447)

STATUS_BOARD section heading was ### (h3) directly under the # (h1) title,
skipping h2. CodeRabbit markdownlint MD001. Demote to ## (h2). Trivial.

https://claude.ai/code/session_012SorR8UbtEvYmbX8cXftj7
@AdaWorldAPI AdaWorldAPI merged commit 4e06aeb into main Jun 1, 2026
6 checks passed
AdaWorldAPI pushed a commit that referenced this pull request Jun 1, 2026
…+ gated phases + 3 decisions

Consolidates the EW64<->CE64 white-matter prefetch connectome after #447/#448
merged the hot tier (D-EW64-2/3/4). Phase A SHIPPED; B (plasticity-write
co-fire) GATED, C (surreal/LanceDB-LIVE wingman) GATED on OQ-11.6, D
(EpisodicWitness64 SoA column) GATED offline, E (comprehension<->arcuate ±5
wire) needs-design. Frames the three decisions that unblock further code:
plasticity model (Heel scalar vs PlasticityState per-plane), RawEdge mantissa
scope, and the comprehension-wire sense-candidate source. The morning handover.

https://claude.ai/code/session_012SorR8UbtEvYmbX8cXftj7
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