Orchestrata Ultimate › Tests › Reference › agents › volks › analyst

Tests reference — tests/agents/volks/analyst

tests/agents/volks/analyst — 5 test modules, 55 test functions. Source tree: tests/agents/volks/analyst at commit 8a2cb42ad. Generated from the tests AST snapshot by scripts/gen-data-pages.py.

Prose pending.

Modules

Module Tests Covers
test_agent.py 19 2
test_analyst_handoff.py 3 1
test_parsers.py 23 1
test_prompts.py 10 1

Module details

tests/agents/volks/analyst/test_agent.py

source · 19 tests · 427 lines

Tests for AnalystAgent (U:BA).

Covers: agents.volks.analyst.agent, core.packet/ (package)

Kind Name Line Description
function test_analyst_defaults 97
function test_process_unknown_subject_returns_none 110
function test_parse_analysis_populates_state 116
function test_parse_analysis_warns_when_user_stories_section_is_missing 130 Dogfood F10: a response with no well-formed USER_STORIES: section used
function test_parse_analysis_does_not_warn_on_empty_response 144 An empty response is the no-LLM-output case, not the F10 deviation —
function test_build_escalation_packet_payload_shape 156
function test_handle_analysis_reads_and_forwards_project_dir 193 project_dir must survive U:BA -- 2026-07 audit: it was silently
function test_build_escalation_packet_defaults_project_language 217
function test_handle_analysis_full_flow 225
function test_handle_analysis_without_conversation_history 285
function test_init_kg_non_fatal_on_failure 301
function test_init_kg_idempotent_when_already_set 311
function test_store_to_kg_skips_when_unavailable 320
function test_store_to_kg_handles_kg_exception 332
function test_store_project_and_spec_slug_generation 348 The KG project slug is the canonical project-directory basename
function test_store_project_and_spec_slug_falls_back_to_unscoped_never_empty 374 No project_dir known -> the "unscoped" sentinel, never "" -- an
function test_store_stories_and_reqs_filters_by_story 387
function test_store_stories_and_reqs_no_reqs_for_story 407
function test_store_stories_and_reqs_uses_default_spec_id 419

tests/agents/volks/analyst/test_analyst_handoff.py

source · 3 tests · 36 lines

Tests for the U:BA -> U:PM handoff sentence in ANALYST_SYSTEM_PROMPT (VP-A2).

Covers: agents.volks.analyst.prompts

Kind Name Line Description
function test_handoff_names_downstream_pm_and_scope_review 6
function test_handoff_lists_the_consumed_sections 11
function test_existing_identity_and_output_sections_preserved 25

tests/agents/volks/analyst/test_parsers.py

source · 23 tests · 210 lines

Tests for analyst volk LLM-output parsers.

Covers: agents.volks.analyst.parsers

Kind Name Line Description
function test_req_pattern_matches 18
function test_us_pattern_matches 25
function test_nfr_pattern_matches 31
function test_extract_section_missing 37
function test_extract_section_trims_at_end_marker 41
function test_extract_section_no_end_marker_returns_remainder 46
function test_parse_kv_lines_simple 51
function test_parse_kv_lines_skips_non_kv 60
function test_parse_project_type_present 66
function test_parse_project_type_missing 70
function test_parse_technology_extracts_kv 74
function test_parse_technology_missing_returns_empty 87
function test_parse_spec_metadata_extracts 91
function test_parse_spec_metadata_missing 99
function test_parse_user_stories_single_story_with_criteria 103
function test_parse_user_stories_multiple_stories 130
function test_parse_user_stories_none_when_missing_section 149
function test_parse_user_stories_ignores_lines_before_first_us 153
function test_parse_requirements_extract_with_story_id 167
function test_parse_requirements_stops_at_nfr_line 183
function test_parse_requirements_missing 190
function test_parse_nfrs_with_categories 194
function test_parse_nfrs_missing 209

tests/agents/volks/analyst/test_prompts.py

source · 10 tests · 57 lines

Tests for agents.volks.analyst.prompts.

Covers: agents.volks.analyst.prompts

Kind Name Line Description
class TestAnalystSystemPrompt 26
method TestAnalystSystemPrompt.test_is_non_empty_string 27
method TestAnalystSystemPrompt.test_contains_project_type 31
method TestAnalystSystemPrompt.test_contains_technology 34
method TestAnalystSystemPrompt.test_contains_spec_metadata 37
method TestAnalystSystemPrompt.test_contains_user_stories 40
method TestAnalystSystemPrompt.test_contains_requirements 43
method TestAnalystSystemPrompt.test_contains_non_functional 46
method TestAnalystSystemPrompt.test_contains_role 49
method TestAnalystSystemPrompt.test_has_acceptance_criteria_rule 52
method TestAnalystSystemPrompt.test_has_nfr_categories 55

Support files

Fixtures, package markers and helpers without test functions.