Claude/cognitive layer stack 77 kuh#117
Merged
Merged
Conversation
…crate Replaced the 300-line Container struct + impl + constants in src/container/mod.rs with re-exports from ladybug_contract::container. Before: TWO identical Container types (different Rust types, same layout) After: ONE Container type from contract, re-exported into src/container Kept: all 15 database-layer submodules (adjacency, cache, delta, graph, search, spine, traversal, etc.) and Fingerprint<->Container conversions. Removed: ~250 lines of duplicate struct definition, methods, constants. https://claude.ai/code/session_01NocTBszN8LoR9Vrc7Tn4oF
The "holy grail" change: CogRecord is now exactly 2KB (meta + content),
stack-allocated, #[repr(C, align(64))]. Multi-container geometries use
linked records in the DN tree instead of Vec<Container>.
- Contract: CogRecord { meta: Container, content: Container }
- Added as_bytes()/from_bytes() for zero-copy I/O
- Updated all callers: geometry, dn_redis, graph, traversal, migrate
- Converted orphan impls to extension traits (CogRecordSerde)
- All 729 tests pass
https://claude.ai/code/session_01NocTBszN8LoR9Vrc7Tn4oF
Single source of truth for the CogRecord layout shared across all 3 runtimes. Provides RECORD_BYTES=2048, field descriptors with byte offsets, and const field lookup. crewai-rust and n8n-rs re-export this via `contract::schema` when compiled with the `ladybug` feature. https://claude.ai/code/session_01NocTBszN8LoR9Vrc7Tn4oF
CausalBridge: connects GrammarTriangle (text→meaning) to CausalEngine (Pearl's do-calculus). Maps DependencyType→EdgeType, converts text fields to fingerprints, provides ingest_text() one-shot pipeline. 11 tests. CausalCertificate: statistical evidence bundle for causal claims. Combines Cohen's d effect size, Granger temporal signal, 95% CI, p-value, Berry-Esseen approximation bound, and NARS truth values. certify() gates claims through all conditions simultaneously. 13 tests. https://claude.ai/code/session_01NocTBszN8LoR9Vrc7Tn4oF
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.