EverOS/tests/unit/test_memory/test_search
zhanghui f20a123805 fix(observability): correct span typing and telemetry shape
Follow-up to the live-trace audit — all on the enabled path:

- boundary detection LLM (everalgo detect_boundaries) ran with the
  SPAN-typed request root as the current span, so its ~1.2k tokens were
  dropped from cost. Wrap it in an everos.memcell.boundary GENERATION
  span so Langfuse prices it.
- embedding calls stamped usage on the enclosing retriever span. Wrap
  each /embeddings call in an everos.embedding EMBEDDING span so the type
  is correct and pricing can apply.
- agentic recall emitted a duplicate, same-name everos.search.recall
  (cluster_scoped wrapping hybrid_full, which owns the real recall span).
  Drop the redundant outer span; hybrid_full keeps the one recall span
  (also used standalone in round 2).
- search now captures the returned hit ids (episodes/cases/skills) as
  observation output when capture_content is on — previously only the
  query input was captured.
- add/flush spans carry request_id in metadata.
- persist captures the memory-root-relative .md path, not the host
  absolute path (no host layout leak to the telemetry backend).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-24 15:29:54 +08:00
..
__init__.py chore: initialize EverOS 1.0.0 2026-06-06 07:33:17 +08:00
conftest.py chore(release): update EverOS to 1.1.1 (#327) 2026-07-07 18:30:03 +08:00
test_adapter.py chore: initialize EverOS 1.0.0 2026-06-06 07:33:17 +08:00
test_agentic.py feat(observability): instrument memory ops + OME trace linking 2026-07-23 20:47:39 +08:00
test_agentic_agent.py chore: initialize EverOS 1.0.0 2026-06-06 07:33:17 +08:00
test_callbacks.py chore: initialize EverOS 1.0.0 2026-06-06 07:33:17 +08:00
test_dto.py chore(release): update EverOS to 1.1.0 (#307) 2026-06-24 23:17:23 +08:00
test_filters.py fix(search): scope deprecated_by filter to user tables only (#330) 2026-07-08 11:17:01 +08:00
test_hierarchy.py chore(release): update EverOS to 1.1.1 (#327) 2026-07-07 18:30:03 +08:00
test_manager.py fix(observability): correct span typing and telemetry shape 2026-07-24 15:29:54 +08:00
test_recall_agent_skill.py chore(release): update EverOS to 1.1.0 (#307) 2026-06-24 23:17:23 +08:00
test_recall_atomic_fact.py chore(release): update EverOS to 1.1.0 (#307) 2026-06-24 23:17:23 +08:00
test_recall_episode.py chore(release): update EverOS to 1.1.1 (#327) 2026-07-07 18:30:03 +08:00
test_recall_knowledge_topic.py chore(release): update EverOS to 1.1.0 (#307) 2026-06-24 23:17:23 +08:00
test_recall_or_semantics.py chore(release): update EverOS to 1.1.0 (#307) 2026-06-24 23:17:23 +08:00
test_recall_profile.py chore(release): update EverOS to 1.1.0 (#307) 2026-06-24 23:17:23 +08:00
test_shaper.py chore: initialize EverOS 1.0.0 2026-06-06 07:33:17 +08:00
test_skill_hybrid.py chore: initialize EverOS 1.0.0 2026-06-06 07:33:17 +08:00