1.2 KiB
1.2 KiB
ADDED Requirements
Requirement: Lookup knowledge SHALL persist modular RAG trace details
The lookup_knowledge tool SHALL persist modular RAG pipeline details in tool_invocation.retrieval_details for every new lookup invocation.
Scenario: Evidence lookup persists modular detail keys
- WHEN
lookup_knowledgereturns usable evidence - THEN
retrieval_detailsSHALL includequery_transform - AND it SHALL include
retrieval_trace - AND it SHALL include
context_pack_summary - AND it SHALL include
rerank_trace - AND it SHALL include
evidence_blocks
Scenario: Fallback lookup persists fallback reason
- WHEN
lookup_knowledgeperforms an unfiltered retry after filtered retrieval fails or is low quality - THEN
retrieval_details.retrieval_traceSHALL include the selected attempt - AND
retrieval_details.fallback_reasonSHALL preserve the fallback reason
Scenario: No-evidence lookup still preserves trace
- WHEN
lookup_knowledgereturns no usable evidence - THEN
retrieval_detailsSHALL still include retrieval trace information for attempted retrieval paths - AND it SHALL not include full evidence content as duplicated trace data