trustgraph/tests/unit/test_gateway
cybermaggedon ddd4bd7790
Deliver explainability triples inline in retrieval response stream (#763)
Provenance triples are now included directly in explain messages from
GraphRAG, DocumentRAG, and Agent services, eliminating the need for
follow-up knowledge graph queries to retrieve explainability details.

Each explain message in the response stream now carries:
- explain_id: root URI for this provenance step (unchanged)
- explain_graph: named graph where triples are stored (unchanged)
- explain_triples: the actual provenance triples for this step (new)

Changes across the stack:
- Schema: added explain_triples field to GraphRagResponse,
  DocumentRagResponse, and AgentResponse
- Services: all explain message call sites pass triples through
  (graph_rag, document_rag, agent react, agent orchestrator)
- Translators: encode explain_triples via TripleTranslator for
  gateway wire format
- Python SDK: ProvenanceEvent now includes parsed ExplainEntity
  and raw triples; expanded event_type detection
- CLI: invoke_graph_rag, invoke_agent, invoke_document_rag use
  inline entity when available, fall back to graph query
- Tech specs updated

Additional explainability test
2026-04-07 12:19:05 +01:00
..
test_auth.py Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
test_config_receiver.py Config push notify pattern: replace stateful pub/sub with signal+ fetch (#760) 2026-04-06 16:57:27 +01:00
test_dispatch_config.py Pub/sub abstraction: decouple from Pulsar (#751) 2026-04-01 20:16:53 +01:00
test_dispatch_manager.py fix: prevent duplicate dispatcher creation race condition in invoke_global_service (#715) 2026-04-06 11:14:32 +01:00
test_dispatch_mux.py Fix websocket error responses in Mux dispatcher (#726) 2026-03-28 10:58:28 +00:00
test_dispatch_requestor.py Fix tests (#593) 2025-12-19 08:53:21 +00:00
test_dispatch_sender.py Fix tests (#593) 2025-12-19 08:53:21 +00:00
test_dispatch_serialize.py Changed schema for Value -> Term, majorly breaking change (#622) 2026-01-27 13:48:08 +00:00
test_endpoint_constant.py Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
test_endpoint_manager.py Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
test_endpoint_metrics.py Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
test_endpoint_socket.py Fix import export graceful shutdown (#476) 2025-08-28 13:39:28 +01:00
test_endpoint_stream.py Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
test_endpoint_variable.py Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
test_explain_triples.py Deliver explainability triples inline in retrieval response stream (#763) 2026-04-07 12:19:05 +01:00
test_rows_import_dispatcher.py Remove redundant metadata (#685) 2026-03-11 10:51:39 +00:00
test_running.py Test suite executed from CI pipeline (#433) 2025-07-14 14:57:44 +01:00
test_service.py Fix tests (#593) 2025-12-19 08:53:21 +00:00
test_socket_graceful_shutdown.py Fix test async warnings (#601) 2026-01-06 22:09:34 +00:00
test_streaming_translators.py Pub/sub abstraction: decouple from Pulsar (#751) 2026-04-01 20:16:53 +01:00
test_text_document_translator.py Pub/sub abstraction: decouple from Pulsar (#751) 2026-04-01 20:16:53 +01:00