feat(graph): re-land Hamming-plane DistanceMeans on main (stranded by #545 stacked-merge order)#548
Conversation
…545 stacked-merge order) #545 merged into the inc0 branch ~17s AFTER inc0->main (#544) had already merged, so its content (the value-tier Hamming means) never reached main. This re-lands exactly the 3 code files on top of current main — no board/doc churn, no deletion of other merged work: - contract soa_view: IdentityPlane enum + MailboxSoaView::identity_plane_at (deferred-binding default None). - core mailbox_scan: DistanceMeans::Hamming(IdentityPlane) + node_distance arm (popcount XOR over the value plane; costed tier, returns None on the zero-decode fake so the F2 gate is untouched). - cognitive-shader-driver: identity_plane_at override on the real MailboxSoA<N> (Content/Topic/Angle -> content_row/topic_row/angle_row, guarded by populated) — the codex P2 fix so Hamming works on the live view. Tests: contract soa_view 4/4, cognitive-shader-driver identity_plane_at 1/1, lance-graph mailbox_scan 13/13. fmt + clippy clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CcpLeEC3XK8Eye53GKBVvi
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds a public ChangesIdentityPlane contract, Hamming distance, and MailboxSoA wiring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
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. Comment |
Re-land the Hamming-plane
DistanceMeanson mainWhy this exists: #545 was stacked on the inc0 branch (base =
claude/inc0-mailbox-soa-backend). When both merged, the order was inc0→main (#544, 08:07:43) then #545→inc0 (08:08:00) — so #545's content landed in the inc0 branch after inc0 had already merged to main, and never reachedmain. Verified:DistanceMeans::Hamming/identity_plane_atare absent from current main.This PR re-lands exactly the 3 code files on top of current
main— no board/doc churn, no deletion of other merged work (the stale value-tier branch couldn't be PR'd directly because main has since advanced).Content (identical to the merged-but-stranded #545)
soa_view:IdentityPlaneenum +MailboxSoaView::identity_plane_at(deferred-binding defaultNone).mailbox_scan:DistanceMeans::Hamming(IdentityPlane)+ thenode_distancearm —popcount(XOR)over the value plane. Costed tier; returnsNoneon the zero-decode fake so feat(graph): Backend::MailboxSoa — classid node-match + CLAM/CAKES neighborhood (Inc 0) #544's F2 gate is untouched.identity_plane_atoverride on the realMailboxSoA<N>(the codex P2 fix) —Content/Topic/Angle→content_row/topic_row/angle_row, guarded bypopulated(no padding rows).Tests
contract
soa_view4/4 · cognitive-shader-driveridentity_plane_at1/1 · lance-graphmailbox_scan13/13 · fmt + clippy clean.🤖 Generated with Claude Code
Generated by Claude Code
Summary by CodeRabbit
New Features
Bug Fixes