diff --git a/backend/AGENTS.md b/backend/AGENTS.md index 6bb7885b1..c8b39bd9d 100644 --- a/backend/AGENTS.md +++ b/backend/AGENTS.md @@ -594,9 +594,9 @@ Focused regression coverage for the updater lives in `backend/tests/test_memory_ - `max_injection_tokens` - Token limit for prompt injection (2000) - `token_counting` - Token counting strategy for the injection budget: `tiktoken` (default, accurate but may download BPE data from a public endpoint on first use — can block for a long time in network-restricted environments, see issues #3402/#3429) or `char` (network-free CJK-aware char estimate, never touches tiktoken) - `staleness_review_enabled` - Enable proactive staleness pruning of aged facts (default: `true`; only triggers when aged candidates exist) -- `staleness_age_days` - Age in days before a fact becomes a staleness candidate (default: 180; range: 1–3650) +- `staleness_age_days` - Age in days before a fact becomes a staleness candidate (default: 90; range: 30–365) - `staleness_min_candidates` - Minimum aged candidates required to trigger a review cycle (default: 3; range: 1–50) -- `staleness_max_removals_per_cycle` - Maximum facts removed in a single cycle; lowest-confidence entries are kept when the LLM requests more (default: 5; range: 1–20) +- `staleness_max_removals_per_cycle` - Maximum facts removed in a single cycle; lowest-confidence entries are kept when the LLM requests more (default: 10; range: 1–50) - `staleness_protected_categories` - Fact categories that are never pruned by staleness review (default: `["correction"]`) - `consolidation_enabled` - Enable memory consolidation (default: `true`; no extra API call — runs in the same LLM invocation as the normal memory update) - `consolidation_min_facts` - Minimum facts in a category to trigger consolidation review (default: 8; range: 3–30) diff --git a/config.example.yaml b/config.example.yaml index 3ea98e048..039396104 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -1387,7 +1387,7 @@ summarization: # Stores user context and conversation history for personalized responses memory: enabled: true - storage_path: memory.json # Path relative to backend directory + storage_path: memory.json # Absolute path opts out of per-user isolation; a relative path resolves under the data base_dir, not the backend directory debounce_seconds: 30 # Wait time before processing queued updates model_name: null # Use default model max_facts: 100 # Maximum number of facts to store