Skip to content

Claude/review rustynum pr 80 2z ny5#161

Merged
AdaWorldAPI merged 8 commits into
mainfrom
claude/review-rustynum-pr-80-2zNy5
Mar 2, 2026
Merged

Claude/review rustynum pr 80 2z ny5#161
AdaWorldAPI merged 8 commits into
mainfrom
claude/review-rustynum-pr-80-2zNy5

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

No description provided.

claude and others added 3 commits March 2, 2026 10:56
…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
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

claude added 5 commits March 2, 2026 18:13
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
@AdaWorldAPI AdaWorldAPI merged commit 52135b8 into main Mar 2, 2026
8 of 12 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