fleet-memory/hindsight-api/hindsight_api/engine
Nicolò Boschi 1c9a7a0d5e
chore: cleanup benchmarks runner with old flags (#212)
* chore: cleanup benchmarks runner with old flags

* fix tests

* fix: observations rely on source_memory_ids, no link copying

Observations no longer copy any memory_links from their source facts.
Instead, retrieval uses source_memory_ids to traverse:
- Entity connections: observation → source_memory_ids → unit_entities
- Semantic similarity: observations have their own embeddings
- Temporal proximity: observations have their own temporal fields

This avoids data duplication and fixes bidirectionality issues with
entity links being copied to observations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* test: update consolidation test for source_memory_ids behavior

Updated test_consolidation_creates_memory_links to test_consolidation_uses_source_memory_ids
to reflect the new behavior where observations use source_memory_ids instead of memory_links
for traversal.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-28 13:22:48 +01:00
..
consolidation chore: cleanup benchmarks runner with old flags (#212) 2026-01-28 13:22:48 +01:00
directives feat: revisit mental models, directives and reflections (#179) 2026-01-22 17:13:16 +01:00
mental_models feat: revisit mental models, directives and reflections (#179) 2026-01-22 17:13:16 +01:00
reflect chore: cleanup benchmarks runner with old flags (#212) 2026-01-28 13:22:48 +01:00
retain feat: revisit mental models, directives and reflections (#179) 2026-01-22 17:13:16 +01:00
search fix: misc fixes for observations and mental models (#209) 2026-01-27 15:37:57 +01:00
__init__.py feat: extensions (#54) 2025-12-22 11:05:23 +01:00
cross_encoder.py fix: simplify pytorch model initialization to prevent meta tensor issues (#185) 2026-01-22 16:25:28 +01:00
db_budget.py fix: batch queries on recall (#149) 2026-01-13 13:20:22 +01:00
db_utils.py misc: performance improvements (#140) 2026-01-09 14:47:20 +01:00
embeddings.py fix: simplify pytorch model initialization to prevent meta tensor issues (#185) 2026-01-22 16:25:28 +01:00
entity_resolver.py fix: misc perf improvements (#133) 2026-01-08 22:49:04 +01:00
interface.py feat: introduce mental models (#132) 2026-01-16 11:16:41 +01:00
llm_wrapper.py fix: improve mental model consolidation (#197) 2026-01-26 09:54:25 +01:00
memory_engine.py chore: cleanup benchmarks runner with old flags (#212) 2026-01-28 13:22:48 +01:00
query_analyzer.py fix: improve mpfp retrieval (#146) 2026-01-12 18:58:05 +01:00
response_models.py fix: misc fixes for observations and mental models (#209) 2026-01-27 15:37:57 +01:00
task_backend.py fix: multi-tenant schema context for worker task execution (#208) 2026-01-27 12:28:47 +01:00
utils.py chore: drop dead code (#210) 2026-01-27 15:03:25 +01:00