Coverage report: 77%

Files Functions Classes

coverage.py v7.13.1, created at 2026-01-09 00:42 +0900

File function   statements missing excluded   coverage
src / agent_contracts / __init__.py (no function)   14 0 0   100%
src / agent_contracts / config / __init__.py (no function)   4 0 0   100%
src / agent_contracts / config / loader.py load_config   10 0 0   100%
src / agent_contracts / config / loader.py set_config   1 0 0   100%
src / agent_contracts / config / loader.py get_config   1 0 0   100%
src / agent_contracts / config / loader.py load_questions   13 13 0   0%
src / agent_contracts / config / loader.py set_questions   1 1 0   0%
src / agent_contracts / config / loader.py get_question_group   3 3 0   0%
src / agent_contracts / config / loader.py get_question   2 2 0   0%
src / agent_contracts / config / loader.py (no function)   14 0 0   100%
src / agent_contracts / config / questions.py (no function)   14 0 0   100%
src / agent_contracts / config / schema.py (no function)   12 0 0   100%
src / agent_contracts / contracts.py NodeContract.get_highest_priority_condition   3 3 0   0%
src / agent_contracts / contracts.py NodeContract.get_llm_hints   1 0 0   100%
src / agent_contracts / contracts.py NodeInputs.get_slice   1 1 0   0%
src / agent_contracts / contracts.py NodeOutputs.to_state_updates   1 0 0   100%
src / agent_contracts / contracts.py (no function)   28 0 1   100%
src / agent_contracts / graph_builder.py GraphBuilder.__init__   9 9 0   0%
src / agent_contracts / graph_builder.py GraphBuilder.add_supervisor   14 14 0   0%
src / agent_contracts / graph_builder.py GraphBuilder.build_routing_map   3 3 0   0%
src / agent_contracts / graph_builder.py GraphBuilder.create_node_wrapper   5 5 0   0%
src / agent_contracts / graph_builder.py GraphBuilder.create_node_wrapper.wrapper   14 14 0   0%
src / agent_contracts / graph_builder.py GraphBuilder.create_supervisor_wrapper   4 4 0   0%
src / agent_contracts / graph_builder.py GraphBuilder.create_supervisor_wrapper.wrapper   9 9 0   0%
src / agent_contracts / graph_builder.py GraphBuilder.create_routing_function   6 6 0   0%
src / agent_contracts / graph_builder.py GraphBuilder.create_routing_function.route   9 9 0   0%
src / agent_contracts / graph_builder.py build_graph_from_registry   30 30 0   0%
src / agent_contracts / graph_builder.py (no function)   19 0 0   100%
src / agent_contracts / node.py ModularNode.__init__   7 2 0   71%
src / agent_contracts / node.py ModularNode._validate_dependencies   8 4 0   50%
src / agent_contracts / node.py ModularNode.execute   1 1 0   0%
src / agent_contracts / node.py ModularNode.__call__   11 3 0   73%
src / agent_contracts / node.py ModularNode._extract_inputs   6 1 0   83%
src / agent_contracts / node.py ModularNode._convert_outputs   5 0 0   100%
src / agent_contracts / node.py ModularNode.get_request_param   3 3 0   0%
src / agent_contracts / node.py ModularNode.build_error_response   1 1 0   0%
src / agent_contracts / node.py InteractiveNode.prepare_context   1 1 0   0%
src / agent_contracts / node.py InteractiveNode.check_completion   1 1 0   0%
src / agent_contracts / node.py InteractiveNode.process_answer   1 1 0   0%
src / agent_contracts / node.py InteractiveNode.generate_question   1 1 0   0%
src / agent_contracts / node.py InteractiveNode.create_completion_output   1 1 0   0%
src / agent_contracts / node.py InteractiveNode.execute   5 5 0   0%
src / agent_contracts / node.py (no function)   29 0 1   100%
src / agent_contracts / registry.py NodeRegistry.__init__   3 0 0   100%
src / agent_contracts / registry.py NodeRegistry.register   9 1 0   89%
src / agent_contracts / registry.py NodeRegistry._validate_contract   8 2 0   75%
src / agent_contracts / registry.py NodeRegistry.add_valid_slice   1 1 0   0%
src / agent_contracts / registry.py NodeRegistry.get_node_class   1 0 0   100%
src / agent_contracts / registry.py NodeRegistry.get_contract   1 0 0   100%
src / agent_contracts / registry.py NodeRegistry.get_all_nodes   1 0 0   100%
src / agent_contracts / registry.py NodeRegistry.get_supervisor_nodes   1 0 0   100%
src / agent_contracts / registry.py NodeRegistry.evaluate_triggers   12 0 0   100%
src / agent_contracts / registry.py NodeRegistry._evaluate_condition   12 4 0   67%
src / agent_contracts / registry.py NodeRegistry._evaluate_condition.matches_expected   5 1 0   80%
src / agent_contracts / registry.py NodeRegistry._get_state_value   16 8 0   50%
src / agent_contracts / registry.py NodeRegistry.build_llm_prompt   11 11 0   0%
src / agent_contracts / registry.py NodeRegistry.analyze_data_flow   10 0 0   100%
src / agent_contracts / registry.py get_node_registry   3 3 0   0%
src / agent_contracts / registry.py reset_registry   1 1 0   0%
src / agent_contracts / registry.py (no function)   22 0 0   100%
src / agent_contracts / router.py BaseActionRouter.route   0 0 1   100%
src / agent_contracts / router.py BaseActionRouter.__call__   9 9 0   0%
src / agent_contracts / router.py (no function)   8 0 1   100%
src / agent_contracts / routing.py RoutingDecision.to_supervisor_decision   8 0 0   100%
src / agent_contracts / routing.py (no function)   16 0 2   100%
src / agent_contracts / runtime / __init__.py (no function)   7 0 0   100%
src / agent_contracts / runtime / context.py RequestContext.get_param   3 0 0   100%
src / agent_contracts / runtime / context.py ExecutionResult.from_state   2 0 0   100%
src / agent_contracts / runtime / context.py ExecutionResult.error_result   1 0 0   100%
src / agent_contracts / runtime / context.py ExecutionResult.to_response_dict   3 0 0   100%
src / agent_contracts / runtime / context.py (no function)   26 0 0   100%
src / agent_contracts / runtime / executor.py AgentRuntime.__init__   4 0 0   100%
src / agent_contracts / runtime / executor.py AgentRuntime.execute   18 0 0   100%
src / agent_contracts / runtime / executor.py AgentRuntime._create_initial_state   10 0 0   100%
src / agent_contracts / runtime / executor.py AgentRuntime._merge_session   8 1 0   88%
src / agent_contracts / runtime / executor.py (no function)   13 0 0   100%
src / agent_contracts / runtime / hooks.py RuntimeHooks.prepare_state   0 0 1   100%
src / agent_contracts / runtime / hooks.py RuntimeHooks.after_execution   0 0 1   100%
src / agent_contracts / runtime / hooks.py DefaultHooks.prepare_state   1 0 0   100%
src / agent_contracts / runtime / hooks.py DefaultHooks.after_execution   1 0 0   100%
src / agent_contracts / runtime / hooks.py (no function)   10 0 4   100%
src / agent_contracts / runtime / session.py SessionStore.load   0 0 1   100%
src / agent_contracts / runtime / session.py SessionStore.save   0 0 1   100%
src / agent_contracts / runtime / session.py SessionStore.delete   0 0 1   100%
src / agent_contracts / runtime / session.py InMemorySessionStore.__init__   1 0 0   100%
src / agent_contracts / runtime / session.py InMemorySessionStore.load   8 0 0   100%
src / agent_contracts / runtime / session.py InMemorySessionStore.save   2 0 0   100%
src / agent_contracts / runtime / session.py InMemorySessionStore.delete   1 0 0   100%
src / agent_contracts / runtime / session.py InMemorySessionStore.clear   1 0 0   100%
src / agent_contracts / runtime / session.py InMemorySessionStore.__len__   1 0 0   100%
src / agent_contracts / runtime / session.py (no function)   15 0 5   100%
src / agent_contracts / runtime / state_ops.py ensure_slices   5 0 0   100%
src / agent_contracts / runtime / state_ops.py merge_session   12 1 0   92%
src / agent_contracts / runtime / state_ops.py reset_internal_flags   7 0 0   100%
src / agent_contracts / runtime / state_ops.py create_base_state   14 0 0   100%
src / agent_contracts / runtime / state_ops.py copy_slice   4 0 0   100%
src / agent_contracts / runtime / state_ops.py update_slice   5 1 0   80%
src / agent_contracts / runtime / state_ops.py get_nested   8 0 0   100%
src / agent_contracts / runtime / state_ops.py (no function)   10 0 0   100%
src / agent_contracts / runtime / streaming.py StreamEvent.to_dict   8 0 0   100%
src / agent_contracts / runtime / streaming.py StreamEvent.to_sse   4 0 0   100%
src / agent_contracts / runtime / streaming.py StreamingRuntime.__init__   4 0 0   100%
src / agent_contracts / runtime / streaming.py StreamingRuntime.add_node   2 0 0   100%
src / agent_contracts / runtime / streaming.py StreamingRuntime.stream   27 7 0   74%
src / agent_contracts / runtime / streaming.py StreamingRuntime.stream_with_graph   23 23 0   0%
src / agent_contracts / runtime / streaming.py create_status_event   1 0 0   100%
src / agent_contracts / runtime / streaming.py create_progress_event   1 0 0   100%
src / agent_contracts / runtime / streaming.py create_data_event   1 0 0   100%
src / agent_contracts / runtime / streaming.py (no function)   42 0 0   100%
src / agent_contracts / state.py get_slice   1 1 0   0%
src / agent_contracts / state.py merge_slice_updates   9 2 0   78%
src / agent_contracts / state.py apply_slice_updates   6 1 0   83%
src / agent_contracts / state.py (no function)   26 0 0   100%
src / agent_contracts / state_accessors.py StateAccessor.__init__   3 0 0   100%
src / agent_contracts / state_accessors.py StateAccessor.get   4 0 0   100%
src / agent_contracts / state_accessors.py StateAccessor.set   5 1 0   80%
src / agent_contracts / state_accessors.py StateAccessor.update   3 0 0   100%
src / agent_contracts / state_accessors.py StateAccessor.__repr__   1 0 0   100%
src / agent_contracts / state_accessors.py reset_response   4 0 0   100%
src / agent_contracts / state_accessors.py increment_turn   3 0 0   100%
src / agent_contracts / state_accessors.py set_error   1 0 0   100%
src / agent_contracts / state_accessors.py clear_error   1 0 0   100%
src / agent_contracts / state_accessors.py (no function)   31 0 0   100%
src / agent_contracts / store / __init__.py (no function)   3 3 0   0%
src / agent_contracts / store / base.py StateStore.save   0 0 1   100%
src / agent_contracts / store / base.py StateStore.load   0 0 1   100%
src / agent_contracts / store / base.py StateStore.delete   0 0 1   100%
src / agent_contracts / store / base.py StateStore.exists   0 0 1   100%
src / agent_contracts / store / base.py StateStore.list_by_prefix   1 1 0   0%
src / agent_contracts / store / base.py StateStore.close   1 1 0   0%
src / agent_contracts / store / base.py (no function)   14 14 4   0%
src / agent_contracts / store / memory.py InMemoryStateStore.__init__   1 1 0   0%
src / agent_contracts / store / memory.py InMemoryStateStore.save   1 1 0   0%
src / agent_contracts / store / memory.py InMemoryStateStore.load   1 1 0   0%
src / agent_contracts / store / memory.py InMemoryStateStore.delete   4 4 0   0%
src / agent_contracts / store / memory.py InMemoryStateStore.exists   1 1 0   0%
src / agent_contracts / store / memory.py InMemoryStateStore.list_by_prefix   1 1 0   0%
src / agent_contracts / store / memory.py InMemoryStateStore.clear   1 1 0   0%
src / agent_contracts / store / memory.py (no function)   11 11 0   0%
src / agent_contracts / supervisor.py GenericSupervisor.__init__   7 0 0   100%
src / agent_contracts / supervisor.py GenericSupervisor.run   9 0 0   100%
src / agent_contracts / supervisor.py GenericSupervisor.decide   2 0 0   100%
src / agent_contracts / supervisor.py GenericSupervisor._check_immediate_rules   5 0 0   100%
src / agent_contracts / supervisor.py GenericSupervisor._select_top_matches   13 3 0   77%
src / agent_contracts / supervisor.py GenericSupervisor._decide_with_llm   18 7 0   61%
src / agent_contracts / supervisor.py GenericSupervisor._build_matched_rules   18 3 0   83%
src / agent_contracts / supervisor.py GenericSupervisor.decide_with_trace   36 5 0   86%
src / agent_contracts / supervisor.py GenericSupervisor.__call__   1 0 0   100%
src / agent_contracts / supervisor.py (no function)   23 0 0   100%
src / agent_contracts / utils / __init__.py (no function)   3 0 0   100%
src / agent_contracts / utils / json.py json_serializer   3 3 0   0%
src / agent_contracts / utils / json.py json_dumps   3 3 0   0%
src / agent_contracts / utils / json.py (no function)   6 0 0   100%
src / agent_contracts / utils / logging.py get_logger   1 0 0   100%
src / agent_contracts / utils / logging.py configure_logging   1 1 0   0%
src / agent_contracts / utils / logging.py get_structured_logger   3 3 0   0%
src / agent_contracts / utils / logging.py (no function)   11 1 0   91%
src / agent_contracts / validator.py ValidationResult.has_errors   1 0 0   100%
src / agent_contracts / validator.py ValidationResult.has_warnings   1 0 0   100%
src / agent_contracts / validator.py ValidationResult.is_valid   1 0 0   100%
src / agent_contracts / validator.py ValidationResult.__str__   16 1 0   94%
src / agent_contracts / validator.py ContractValidator.__init__   2 0 0   100%
src / agent_contracts / validator.py ContractValidator.validate   11 0 0   100%
src / agent_contracts / validator.py ContractValidator._validate_slices   11 2 0   82%
src / agent_contracts / validator.py ContractValidator._validate_services   9 1 0   89%
src / agent_contracts / validator.py ContractValidator._validate_reachability   9 1 0   89%
src / agent_contracts / validator.py ContractValidator._report_shared_writers   5 0 0   100%
src / agent_contracts / validator.py ContractValidator.get_shared_writers   10 1 0   90%
src / agent_contracts / validator.py ContractValidator.get_slice_readers   10 1 0   90%
src / agent_contracts / validator.py ContractValidator.get_unused_slices   13 13 0   0%
src / agent_contracts / validator.py (no function)   27 0 2   100%
src / agent_contracts / visualizer.py ContractVisualizer.__init__   2 0 0   100%
src / agent_contracts / visualizer.py ContractVisualizer.generate_architecture_doc   2 0 0   100%
src / agent_contracts / visualizer.py ContractVisualizer._generate_header   1 0 0   100%
src / agent_contracts / visualizer.py ContractVisualizer._generate_footer   1 0 0   100%
src / agent_contracts / visualizer.py ContractVisualizer.generate_langgraph_flow   7 5 0   29%
src / agent_contracts / visualizer.py ContractVisualizer.generate_state_slices_section   18 0 0   100%
src / agent_contracts / visualizer.py ContractVisualizer._build_slice_relationships   11 11 0   0%
src / agent_contracts / visualizer.py ContractVisualizer.generate_hierarchy_diagram   25 0 0   100%
src / agent_contracts / visualizer.py ContractVisualizer._get_node_icon   16 5 0   69%
src / agent_contracts / visualizer.py ContractVisualizer._safe_id   1 0 0   100%
src / agent_contracts / visualizer.py ContractVisualizer.generate_dataflow_diagram   102 2 0   98%
src / agent_contracts / visualizer.py ContractVisualizer.generate_trigger_hierarchy   31 0 0   100%
src / agent_contracts / visualizer.py ContractVisualizer.generate_trigger_hierarchy.get_max_priority   4 0 0   100%
src / agent_contracts / visualizer.py ContractVisualizer._get_priority_icon   7 0 0   100%
src / agent_contracts / visualizer.py ContractVisualizer._summarize_conditions   11 2 0   82%
src / agent_contracts / visualizer.py ContractVisualizer.generate_nodes_reference   15 1 0   93%
src / agent_contracts / visualizer.py (no function)   19 0 4   100%
Total     1498 345 34   77%

No items found using the specified filter.