trustgraph/tests/unit/test_agent
cybermaggedon 816a8cfcf6
Update tests for agent-orchestrator (#745)
Add 96 tests covering the orchestrator's aggregation, provenance,
routing, and explainability parsing. These verify the supervisor
fan-out/fan-in lifecycle, the new RDF provenance types
(Decomposition, Finding, Plan, StepResult, Synthesis), and their
round-trip through the wire format.

Unit tests (84):
- Aggregator: register, record completion, peek, build synthesis,
  cleanup
- Provenance triple builders: types, provenance links,
  goals/steps, labels
- Explainability parsing: from_triples dispatch, field extraction
  for all new entity types, precedence over existing types
- PatternBase: is_subagent detection, emit_subagent_completion
  message shape
- Completion dispatch: detection logic, full aggregator
  integration flow, synthesis request not re-intercepted as
  completion
- MetaRouter: task type identification, pattern selection,
  valid_patterns constraints, fallback on LLM error or unknown
  response

Contract tests (12):
- Orchestration fields on AgentRequest round-trip correctly
- subagent-completion and synthesise step types in request
  history
- Plan steps with status and dependencies
- Provenance triple builder → wire format → from_triples
  round-trip for all five new entity types
2026-03-31 13:12:26 +01:00
..
__init__.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
conftest.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
test_agent_service_non_streaming.py Add multi-pattern orchestrator with plan-then-execute and supervisor (#739) 2026-03-31 00:32:49 +01:00
test_agent_step_arguments.py MCP auth for the simple case (#557) 2025-11-11 12:28:53 +00:00
test_aggregator.py Update tests for agent-orchestrator (#745) 2026-03-31 13:12:26 +01:00
test_completion_dispatch.py Update tests for agent-orchestrator (#745) 2026-03-31 13:12:26 +01:00
test_conversation_state.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
test_explainability_parsing.py Update tests for agent-orchestrator (#745) 2026-03-31 13:12:26 +01:00
test_mcp_tool_auth.py MCP auth for the simple case (#557) 2025-11-11 12:28:53 +00:00
test_meta_router.py Update tests for agent-orchestrator (#745) 2026-03-31 13:12:26 +01:00
test_pattern_base_subagent.py Update tests for agent-orchestrator (#745) 2026-03-31 13:12:26 +01:00
test_provenance_triples.py Update tests for agent-orchestrator (#745) 2026-03-31 13:12:26 +01:00
test_react_processor.py master -> 1.5 (README updates) (#552) 2025-10-11 11:46:03 +01:00
test_reasoning_engine.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
test_tool_coordination.py Extending test coverage (#434) 2025-07-14 17:54:04 +01:00
test_tool_filter.py Feature/tool group (#484) 2025-09-03 23:39:49 +01:00
test_tool_service.py Tool services - dynamically pluggable tool implementations for agent frameworks (#658) 2026-03-04 14:51:32 +00:00
test_tool_service_lifecycle.py Updated test suite for explainability & provenance (#696) 2026-03-13 14:27:42 +00:00