EverOS/tests/unit
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_component feat(observability): capture LLM + embedding token usage 2026-07-23 20:47:39 +08:00
test_config feat(observability): OTel tracing chassis + request-id propagation 2026-07-23 20:47:39 +08:00
test_core fix(observability): address OTel review findings 2026-07-24 15:29:54 +08:00
test_entrypoints feat(api): serve endpoints under /api/v2, retain /api/v1 as alias 2026-07-24 13:44:58 +08:00
test_infra feat(observability): instrument memory ops + OME trace linking 2026-07-23 20:47:39 +08:00
test_memory fix(observability): correct span typing and telemetry shape 2026-07-24 15:29:54 +08:00
test_scripts docs: align config and github workflow (#314) 2026-06-29 07:31:31 +08:00
test_service fix(observability): address OTel review findings 2026-07-24 15:29:54 +08:00
__init__.py chore: initialize EverOS 1.0.0 2026-06-06 07:33:17 +08:00
test_benchmark_config.py chore(release): update EverOS to 1.1.1 (#327) 2026-07-07 18:30:03 +08:00