Some checks failed
Forge CI / smoke-and-build (pull_request) Failing after 53s
fact_feedback tool existed but was never called automatically. Trust scores never changed after initial assignment. Facts lived forever regardless of accuracy. Changes: - MemoryProvider: add get_prefetched_fact_ids() for feedback loop - HolographicMemoryProvider: track fact IDs returned by prefetch() - MemoryManager: auto_calibrate_feedback() detects corrections and applies helpful/unhelpful feedback automatically - Correction detection: regex patterns for 'no', 'wrong', 'actually', 'i said', 'correction:', 'undo', etc. - MemoryManager: get_pruning_candidates() for below-threshold facts - Wired into run_agent.py: calibration runs after prefetch, before tool loop Trust mechanics: - Successful interaction: trust += 0.05 per fact (helpful) - Correction detected: trust -= 0.10 per fact (unhelpful) - Trust clamped to [0.0, 1.0] - Facts below threshold (default 0.15) are pruning candidates Tests: 23 new tests, all passing. 139 total memory tests green. Refs: Timmy_Foundation/hermes-agent#252