EverOS/tests/unit/test_memory
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
..
test_cascade chore(release): update EverOS to 1.1.4 (#348) 2026-07-23 13:18:19 +08:00
test_extract feat(observability): instrument memory ops + OME trace linking 2026-07-23 20:47:39 +08:00
test_get feat(observability): instrument memory ops + OME trace linking 2026-07-23 20:47:39 +08:00
test_prompt_slots chore: initialize EverOS 1.0.0 2026-06-06 07:33:17 +08:00
test_reflection feat(observability): instrument memory ops + OME trace linking 2026-07-23 20:47:39 +08:00
test_search fix(observability): correct span typing and telemetry shape 2026-07-24 15:29:54 +08:00
test_strategies chore(release): update EverOS to 1.1.1 (#327) 2026-07-07 18:30:03 +08:00
__init__.py chore: initialize EverOS 1.0.0 2026-06-06 07:33:17 +08:00
test_events.py chore: initialize EverOS 1.0.0 2026-06-06 07:33:17 +08:00
test_models.py chore: initialize EverOS 1.0.0 2026-06-06 07:33:17 +08:00