fix: 8 pipeline bugs from deep audit (graph dedup, feedback wiring, decay)#66
Merged
varun29ankuS merged 2 commits intomainfrom Feb 23, 2026
Merged
fix: 8 pipeline bugs from deep audit (graph dedup, feedback wiring, decay)#66varun29ankuS merged 2 commits intomainfrom
varun29ankuS merged 2 commits intomainfrom
Conversation
…ecay) - Remove duplicate graph processing from remember() — handler's process_experience_into_graph() is the single graph path now - Fix relevance.rs using raw .ema instead of .ema_with_decay() - Add content-hash dedup to batch_remember (rejects intra-batch dupes) - Wire feedback → graph edge strengthening via strengthen_episode_entity_edges() - Add full apply_decay() on heavy maintenance cycles (every 6 hours) - Clean up stale episode edges on upsert updates via delete_episode() - Wire context pattern detection (repetition/topic change) into proactive_context - Remove dead stability_with_decay() and its unused constant - Strip system noise from proactive_context at handler entry (crash fix) - Add client-side stripSystemNoise() in MCP server TypeScript
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.
Summary
remember()— onlyprocess_experience_into_graph()at the handler layer creates entities/edges now, preventing inflated mention_counts and spurious edge strengtheningstrengthen_episode_entity_edges()(Hebbian: what fires together wires together)detect_context_pattern(),apply_context_pattern_signals(), andset_previous_context()into the proactive_context handler — repetition and topic-change signals now modulate feedbackapply_decay()now runs on heavy maintenance cycles (every 6 hours) alongside lazy pruning, ensuring no edge escapes time-based weakeningdelete_episode()is called beforeprocess_experience_into_graph()on updates, preventing stale edges from prior versionsrelevance.rsusing raw.emainstead of.ema_with_decay()— stale scores were shifting results by ~0.10stability_with_decay()and its unusedDECAY_STABILITY_HALF_LIFE_DAYSconstant<task-notification>,<system-reminder>XML) at proactive_context handler entry in both Rust and MCP TypeScript, preventing BM25/embedding overload from multi-KB XML scaffoldingTest plan
cargo check+cargo clippy— zero errors, zero new warningswas_update: true