mirror of
https://gitea.ingwaz.work/Ingwaz/openbrain-mcp.git
synced 2026-06-15 22:07:08 +00:00
Implement truth scoring orchestrator that ties PLN + ECAN together: New types: - TruthCategory: verified/plausible/unverified/contradicted enum - ScorerConfig: pipeline configuration (thresholds, ECAN params) - RelatedMemory: cross-reference result with similarity + existing scores - ScoringResult: complete scoring output with TV, confidence, category, ECAN Core functions: - score_memory(): orchestrates evidence classification, PLN scoring, ECAN computation, and categorization - is_contradiction(): heuristic negation-asymmetry detection - categorize(): rule-based category assignment Scoring pipeline: 1. Classify related memories as confirmations or contradictions 2. Scale confidence by cosine similarity (closer = stronger evidence) 3. Apply PLN score_with_evidence for truth value computation 4. Run ECAN cycle (re-score) or initialize (first score) 5. Categorize based on TV, confirmations, and contradictions 13 unit tests covering all scoring paths, categories, contradiction detection, ECAN initialization/cycling, and output bounds. Part of #29