Task — engineering-spec@1
"Query-embed LRU cache + EmbedClient in AppState"
draftTASK-MEMORY-229
TASK-MEMORY-229: Query-embed LRU cache + EmbedClient in AppState
1. Description
repeat queries skip gateway; client constructed once; cache TTL 5m keyed by (model, hash)
Migrated 2026-07-08 from the memory improvement backlog, folded into the task system as class: improvement. Source report refs: R22, F14.
Acceptance criteria
- [ ] repeat queries skip gateway; client constructed once; cache TTL 5m keyed by (model, hash)