trustgraph/tests/unit/test_provenance
cybermaggedon 4b5bfacab1
Forward missing explain_triples through RAG clients and agent tool callback (#768)
fix: forward explain_triples through RAG clients and agent tool callback
- RAG clients and the KnowledgeQueryImpl tool callback were
  dropping explain_triples from explain events, losing provenance
  data (including focus edge selections) when graph-rag is invoked
  via the agent.

Tests for provenance and explainability (56 new):
- Client-level forwarding of explain_triples
- Graph-RAG structural chain
  (question → grounding → exploration → focus → synthesis)
- Graph-RAG integration with mocked subsidiary clients
- Document-RAG integration
  (question → grounding → exploration → synthesis)
- Agent-orchestrator all 3 patterns: react, plan-then-execute,
  supervisor
2026-04-08 11:41:17 +01:00
..
__init__.py Updated test suite for explainability & provenance (#696) 2026-03-13 14:27:42 +00:00
test_agent_provenance.py Additional agent DAG tests (#750) 2026-04-01 13:59:58 +01:00
test_explainability.py Additional agent DAG tests (#750) 2026-04-01 13:59:58 +01:00
test_graph_rag_chain.py Forward missing explain_triples through RAG clients and agent tool callback (#768) 2026-04-08 11:41:17 +01:00
test_triples.py Split Analysis into Analysis+ToolUse and Observation, add message_id (#747) 2026-03-31 17:51:22 +01:00
test_uris.py Use UUID-based URNs for page and chunk IDs (#703) 2026-03-21 21:17:03 +00:00
test_vocabulary.py Updated test suite for explainability & provenance (#696) 2026-03-13 14:27:42 +00:00