mirror of
https://github.com/samvallad33/vestige.git
synced 2026-05-09 07:42:37 +02:00
Add Prediction Error Gating and smart_ingest tool (26 tools total)
Implements neuroscience-inspired memory gating based on prediction error: - New smart_ingest MCP tool that auto-decides CREATE/UPDATE/SUPERSEDE - PredictionErrorGate evaluates semantic similarity vs existing memories - Automatically supersedes demoted memories with similar new content - Reinforces near-identical memories instead of creating duplicates - Adds promote_memory/demote_memory/request_feedback tools Thresholds: - >0.92 similarity = Reinforce existing - >0.75 similarity = Update/Merge - <0.75 similarity = Create new - Demoted + similar = Auto-supersede Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5337efdfa7
commit
bbd1c15b4a
12 changed files with 1705 additions and 10 deletions
|
|
@ -138,7 +138,8 @@ pub use fsrs::{
|
|||
|
||||
// Storage layer
|
||||
pub use storage::{
|
||||
ConsolidationHistoryRecord, InsightRecord, IntentionRecord, Result, Storage, StorageError,
|
||||
ConsolidationHistoryRecord, InsightRecord, IntentionRecord, Result, SmartIngestResult, Storage,
|
||||
StorageError,
|
||||
};
|
||||
|
||||
// Consolidation (sleep-inspired memory processing)
|
||||
|
|
@ -215,6 +216,18 @@ pub use advanced::{
|
|||
UsageEvent,
|
||||
UsagePattern,
|
||||
UserAction,
|
||||
// Prediction Error Gating (solves bad vs good similar memory problem)
|
||||
CandidateMemory,
|
||||
CreateReason,
|
||||
EvaluationIntent,
|
||||
GateDecision,
|
||||
GateStats,
|
||||
MergeStrategy,
|
||||
PredictionErrorConfig,
|
||||
PredictionErrorGate,
|
||||
SimilarityResult as PredictionSimilarityResult,
|
||||
SupersedeReason,
|
||||
UpdateType,
|
||||
};
|
||||
|
||||
// Codebase memory (Vestige's killer differentiator)
|
||||
|
|
@ -437,6 +450,10 @@ pub mod prelude {
|
|||
// Reconsolidation
|
||||
ReconsolidationManager,
|
||||
SpeculativeRetriever,
|
||||
// Prediction Error Gating
|
||||
PredictionErrorGate,
|
||||
GateDecision,
|
||||
EvaluationIntent,
|
||||
};
|
||||
|
||||
// Codebase memory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue