Commit cdcf2c5
committed
feat(spo): add causal trajectory hydration layer (Phase 6)
Bridge rustynum-bnn's CausalTrajectory with ladybug's NARS system:
- TrajectoryHydrator: feeds SpoDistanceResult into BNN trajectory pipeline
- HydratedEdge/HydratedStatement: SigmaEdge enriched with canonical TruthValue
- HydratedTrajectory: finalized result with gestalt, growth path, gate decision
- NarsTruth ↔ TruthValue conversion (nars_to_truth, truth_to_nars)
- Growth path inference from causal chain (6 paths through B₃ lattice)
- Gate combination: trajectory + shift detector bias (conservative merge)
- DN mutation guidance: weakest plane from EWM saliency
- apply_causal_inference: BPReLU direction → NARS inference rule selection
Also fixes pre-existing test calibration in test_spo_distance_random
(random vectors classified as Strong, not Noise, by SigmaGate thresholds).
17 new tests, all passing. 40 total SPO tests green.
https://claude.ai/code/session_0152b2NJYnjCJjvMAmgsTx3p1 parent d737a6c commit cdcf2c5
3 files changed
Lines changed: 832 additions & 4 deletions
0 commit comments