You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ContextService::inject_semantic_recall (zeph-agent-context/src/service.rs:203) is a pub async method with full tiered-retrieval logic and a 30s timeout, but it is never called from any production code path.
The only callers visible via grep are test helpers. Production context assembly goes through:
ContextService::prepare_context → ContextAssembler::gather → fetch_semantic_recall (flat path), OR
Agent::inject_semantic_recall (zeph-core/src/agent/context/assembly.rs:1351) — a separate shim that directly calls fetch_semantic_recall_raw without tiered retrieval.
This is the root cause of #3996: tiered retrieval is only reachable through ContextService::inject_semantic_recall, which is never wired into the agent turn loop.
Description
ContextService::inject_semantic_recall(zeph-agent-context/src/service.rs:203) is apubasync method with full tiered-retrieval logic and a 30s timeout, but it is never called from any production code path.The only callers visible via grep are test helpers. Production context assembly goes through:
ContextService::prepare_context→ContextAssembler::gather→fetch_semantic_recall(flat path), ORAgent::inject_semantic_recall(zeph-core/src/agent/context/assembly.rs:1351) — a separate shim that directly callsfetch_semantic_recall_rawwithout tiered retrieval.This is the root cause of #3996: tiered retrieval is only reachable through
ContextService::inject_semantic_recall, which is never wired into the agent turn loop.Impact
Recommendation
Either:
ContextService::inject_semantic_recallinto the turn loop (fixes bug(agent-context): MemFlow tiered retrieval never activates in production — inject_semantic_recall not called from prepare_context #3996), orContextService::prepare_context/ContextAssembler::gatherdirectly.Environment