Skip to main content

Retrieval

You are in the deep end

Authoring contract. Attachments compose around autonomy; they are not a fifth mode.

Three ideas — do not conflate them:

MechanismWhat it isStore / transport
deterministic_prefetchApp packs scoped corpora before generateworking.slots.prefetch on the run pin (not long_term)
Retrieve toolNamed capability on the manifest (clause_search, account_fee_lookup)Ordinary HTTP to invoke.url (local: agent-fabric-mocks)
long_term=retrieve_onlyFacts for a later journeyCatalogue-only — Shared Memory / RAG (not built)

Do not add a retrieve kind — capabilities.

Modes on the route​

retrieval.modeCatalogueThis Runtime
toolNamed retrieve capability over scope corpus idsHTTP to that capability’s invoke.url. Payload = assembled goal ∪ schema-selected slots
deterministic_prefetchApp packs scope corpora before generateGET each corpus row from ADP, POST {collection, goal} to corpus url, write working.slots.prefetch, inject pack text into downstream LLM user blobs (and HTTP when input_schema includes packed_text)
none / omit—No corpus access

policy_memo and pack_then_review are prefetch routes (D7 proof). fee_explain is tool mode: HTTP to account_fee_lookup.

Prefetch flow​

  1. Hydrate builds a prefetch stage node (invoke empty, llm_role=none).
  2. When the route row has retrieval.mode=deterministic_prefetch, agent-runtime/app/agents/prefetch.py POSTs each scoped corpus gateway (Compose: agent-fabric-mocks POST /v1/search/{gateway}).
  3. Chunks land in working.slots.prefetch and a formatted note for LLM stages.
  4. Synthesis / query-formulation stages fail closed if the pack is empty.

Empty invoke without prefetch mode is still a no-op.

Corpora table​

ADP dataplane.corpora stores gateway url, collection, status. retrieval.scope is corpus ids only (["policy-engine"]). Runtime GETs corpora and POSTs published rows only.

Omit the retrieval row when the route must not touch an index (email_summarize, llm_pipeline).

Components: architecture. Scenario matrix: dataflow scenarios. Verification: dataflow-plan.md.