Claude/review rustynum pr 80 2z ny5#161
Merged
Merged
Conversation
…causal queries CLAM tree path as B-tree key. One u16 encodes three query types: - Address: structural position in CLAM binary tree - Lineage: range scan = phylogeny (ancestor→descendant traversal) - Causality: range scan = causal chain (cause→effect traversal) ClamPath struct: - from_tree_traversal() — construct from bipolar split sequence - subtree_range() → (lo, hi) — B-tree range scan for descendants - common_ancestor_depth() — shared prefix length (XOR + leading zeros) - lineage_distance() — symmetric tree distance - siblings() — counterfactual query (flip last split) - parent() / left_child() / right_child() — tree navigation - is_ancestor_of() — prefix containment check - density_hint() — depth as LFD proxy for adaptive search CogRecord8K integration via ClamPathExt trait: - set_clam_path() / clam_path() on index container word[0] - to_word() / from_word() — u64 packing for WideContainer - to_bytes() / from_bytes() — 3-byte B-tree column encoding - btree_key() → u16 for LanceDB B-tree index 23 tests, all green. https://claude.ai/code/session_0152b2NJYnjCJjvMAmgsTx3p
ClamPath (24b) + MerkleRoot (40b) = word[0] of CogRecord8K. Self-healing Redis: same content = same hash = same key. Eineindeutigkeit: three query paths converge to one address.
ClamPath(24 bits) + MerkleRoot(40 bits) = 64 bits in CogRecord8K word[0].
ClamPath = HOW you got here (navigation/lineage).
MerkleRoot = WHAT lives here (content-addressed canonical identity).
MerkleRoot:
- from_planes(S, P, O) — blake3 Merkle tree over 3 × 16384-bit planes
- from_fingerprint() — backward compat for unseparated planes
- redis_key() → "ada:bind:{40-bit hex}" — self-healing canonical address
- Deterministic: same content = same hash = same key (Eineindeutigkeit)
ClamPath additions:
- to_u24() / from_u24() — 24-bit packed form for combined word[0]
- pack_with_merkle() / unpack_with_merkle() — combined 64-bit encoding
ClamPathExt updated:
- set_clam_path_merkle() / clam_path_merkle() — full combined read/write
- set_clam_path() / clam_path() — backward compat (MerkleRoot = ZERO)
- merkle_root() — read MerkleRoot only
Dependency: blake3 = "1"
32 tests, all green.
https://claude.ai/code/session_0152b2NJYnjCJjvMAmgsTx3p
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Replaces manual field-by-field conversion with compile-time guaranteed From/Into trait impls. If either type adds a field, the bridge fails at compile time instead of silently dropping it. The old nars_to_truth()/truth_to_nars() functions now delegate to the From impls for backward compatibility. https://claude.ai/code/session_0152b2NJYnjCJjvMAmgsTx3p
- Remove migrate_16k_extended() and to_16k_linked() — dead code since CONTAINER_WORDS=256 (single container holds full 16K fingerprint) - Remove no-op bitmask assignment in feedback.rs (equal operands to |) - Update test to use single-container roundtrip https://claude.ai/code/session_0152b2NJYnjCJjvMAmgsTx3p
Eliminates the duplicate Fingerprint struct in jina_cache.rs (R1 risk item). Now uses the canonical crate::core::Fingerprint everywhere. Jina-specific logic (from_jina_embedding, serialization) moved to standalone functions. spo.rs keeps its private Fingerprint (1,570-line isolated prototype, not on the production path — consolidation deferred until spo.rs is either deprecated or rewritten to use the harvest/trajectory pipeline). https://claude.ai/code/session_0152b2NJYnjCJjvMAmgsTx3p
Connects AccumulatedHarvest (Phase 2) to BundlingProposal lifecycle via GestaltEngine, closing the Phase 7 wiring gap (R4 risk item). GestaltEngine: - evaluate_harvest() auto-creates BundlingProposal when evidence crosses threshold (search count + confidence) - feed_evidence() feeds new harvest results into existing trajectories - check_auto_approvals() triggers CollapseGate::Flow in Research mode - gestalt_summary() counts trajectories by state CollapseMode governs the decision boundary: - Research: auto-approve >= 0.95 confidence - Production: propose >= 0.80, require human review - Regulated: propose at any confidence, always human 5 new tests covering threshold gating, proposal creation, auto-approval lifecycle, and evidence feeding. https://claude.ai/code/session_0152b2NJYnjCJjvMAmgsTx3p
Tactic #23 AMP (Adaptive Meta-Prompting): GestaltState -> inference_biases(), confidence_modifier(), chain_depth_delta() Crystallizing prefers Deduction, Contested prefers Analogy/Abduction, Dissolving prefers Abduction, Epiphany prefers Induction. Tactic #12 TCA (Temporal Context Augmentation): TruthTrajectory -> temporal_monotonicity(), temporal_acceleration(), has_temporal_precedence(). Granger-style analysis: evidence events followed by confidence rises = causal temporal precedence. Tactic #21 SSR (Self-Skeptical Reasoning): SkepticismLevel (Trust/Cautious/Skeptical/Doubting) derived from trajectory dynamics. High confidence from few events = Skeptical. damping_factor() multiplies NARS confidence before gating. 5 new tests across the three tactics. https://claude.ai/code/session_0152b2NJYnjCJjvMAmgsTx3p
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.