Aura M2: capture/embed · recall Warm RRF · agent inject
Aura M2 memory path (after M1 schema). Inject contract + capture/embed/recall.
Agent inject contract
- Sole context source =
aura.rpc.memory.recallitems[]— no raw/content_refdump (ARCHITECTURE §1 #9). - Slot budget: sum 2048 · short_term 512 · episodic 768 · long_term+semantic 768; short items 4 · top_k 12.
- Packing lands in M3
agent_invoke; gatecheck-agent-inject-contract.sh.
Capture · embed
- Capture MQT
aura.tasks.memory.capture→ candidates/error; zero direct PG in handler (nopg/set_config); live LLM extractor = M3 non-goal. - Embed MQT:
short_term→skipped_short_term(no PG); other typeswithTenantTx+ activemodel_keystub; HNSW owned by embed, BM25 by store GENERATEDcontent_tsv. - Gates:
check-memory-capture.sh·check-memory-embed.sh.
Recall RPC + hybrid RRF
- Deploy = Core RR Warm only: Function MinScale≥2 + Deployment
aura-memory-recall-rrreplicas≥2 queue-group — no MQT / JetStream lag (No Responders risk). - SELECT: short_term created_at DESC; BM25(
ts_rank) + vector(halfvec/<=>) fused RRF k=60; graph stub empty until M4. - Tx: pooler + tenant GUC then
SET LOCALiterative_scan/ef_search/max_scan_tuples; tenant WHERE in ANN SQL; optionalquery_embedding[]. - Gate:
check-memory-recall.sh.