[EPIC][expert] Retrieval / evidence expert: symbolic source selection, evidence gaps, and explainable retrieval strategy #417
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/prolog-rlm#417
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #376
Depends on: #377
Consumes/integrates with: #219, #380
Goal
Extract the expert-system portion of #219 into a first-class Retrieval / Evidence Expert that decides how to satisfy an information need using symbolic rules and current evidence, without requiring an LLM.
Embeddings and retrieval backends are sensors/capabilities. They do not decide the research strategy.
Responsibilities
Given a normalized information need, determine:
Symbolic policy
Initial policy should support rules equivalent to:
Real policy should consider observed state, available backends, provenance requirements, freshness, prior attempts and ambiguity.
Use tabling/case reuse for repeated semantic subproblems where safe. Persist strategy statistics separately from authoritative facts.
Evidence contract
Return structured evidence with source/provenance, not just chunks of text.
Distinguish:
The expert should be able to explain why it selected a source/strategy and what gap remains.
Interaction with #219
#219 remains the infrastructure/source-retrieval umbrella for embeddings, backend-neutral retrieval, Chroma/adapters and freshness integration.
This epic owns the expert reasoning layer over those capabilities. Do not duplicate the backend API, embedding abstraction or source freshness implementation.
LLM policy
Normal retrieval planning uses zero model calls.
An LLM may be an explicitly configured semantic fallback or optional summarizer, but:
Cooperation
Acceptance
Non-goals
Refs #376 #377 #219 #380 #93
Machine Spirit #403A handoff — TAPS retrieval contract
#403A establishes a required distinction for this expert:
The Retrieval/Evidence Expert should continue to own strategy choice and evidence-gap pursuit, but its result should carry a TAPS-style projection/receipt with at least:
exact,structural,lexical,case,graph_activation,vector, optional model expansion);support_closure = closed|partial|resource_limited|stale;search_coverage = exhaustive_for_declared_fragment|bounded_structural|heuristic|partial_backend|unknown;A support-closed returned result may still have heuristic search coverage. Do not report it as exhaustive merely because its included proof is self-contained.
Hard invariants:
Exact/structural symbolic routes precede vector/model work when they can satisfy the need. MMR/diversity/source-dependence may shape soft periphery but cannot drop mandatory counterevidence or semantic dependencies.
This is a design handoff only; implementation remains open. Refs #403 #400 #402 #219.
Machine Spirit #403B handoff — adversarial retrieval obligations
#403B is complete and refines TAPS into OATH-TAPS. Retrieval/Evidence Expert should not treat one ranked candidate set as the evidence universe.
Canonical handoff:
seek_support,seek_refutation,seek_exception_or_defeater,seek_fresher_state,seek_identity_counterexample, andseek_independent_origin;support_closure,search_coverage,opposition_coverage, selection integrity, and unresolved exposure gaps;no defeater existsmerely because top-k contained none;The substantive design, sources, APIs and 34 fixtures are on #403B. Refs #403 #397 #400 #402.
MACHINE-SPIRIT #403C handoff — MOSAIC-TAPS
Depth 6C establishes the interoperability contract for this expert. #381 should own semantic retrieval orchestration, not backend mechanics:
union,cascade,fallback,intersect,join,refine,corroborate,oppose,freshen);#219 remains responsible for primitive retrieval adapters/RSC metadata. Exact implementation/scaling algorithms are reserved for #403D.
Refs #397 #403 #219 #396 and symbolic-memory#7/#9/#10.
Machine Spirit #403D handoff — RACE-TAPS physical execution
Depth 6D is design-complete. #381 remains the owner of logical retrieval obligations, source/strategy selection, typed composition and gap policy. Add/implement a physical-plan boundary rather than another expert:
Required D invariants:
native_prefilter_exact,native_filtered_ann(profile,recall),postfilter_only,unsupported); ANN top-k then postfilter cannot claim exhaustive filtered search;model_calls = 0.The full mechanisms, typed records, rejected alternatives and 44 D fixtures are on #403D. This does not authorize implementation outside #381's existing human-gated rules.
Machine Spirit #404B / CITADEL-EPOCH handoff
If retrieval-strategy statistics are learned, keep them advisory and preserve enough eligibility/selection lineage to detect selective-evidence/self-confirmation attacks.
A learned retrieval strategy may optimize physical/operational choice only inside the existing OATH/MOSAIC/RACE obligation contract. It may not suppress opposition/defeater/freshness/independent-origin obligations, reinterpret absence as evidence, or mark its own retrieved corpus independent. If a candidate influences which evidence is gathered, that influence is part of its exposure closure and may contaminate later promotion evidence.
Refs #404B CITADEL B19-B20, B30, plus #403 OATH-TAPS.