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.recall items[] — no raw/content_ref dump (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; gate check-agent-inject-contract.sh.

Capture · embed

  • Capture MQT aura.tasks.memory.capture → candidates/error; zero direct PG in handler (no pg/set_config); live LLM extractor = M3 non-goal.
  • Embed MQT: short_term → skipped_short_term (no PG); other types withTenantTx + active model_key stub; HNSW owned by embed, BM25 by store GENERATED content_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-rr replicas≥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 LOCAL iterative_scan/ef_search/max_scan_tuples; tenant WHERE in ANN SQL; optional query_embedding[].
  • Gate: check-memory-recall.sh.