Orchestrata Ultimate › Tests › Reference › agents › volks › junior

Tests reference — tests/agents/volks/junior

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

Prose pending.

Modules

Module Tests Covers
test_junior_handoff.py 6 1
test_volk.py 43 3
test_volk_extended.py 26 4

Module details

tests/agents/volks/junior/test_junior_handoff.py

source · 6 tests · 73 lines

Real tests for VP-A6: J:Junior design-review handoff wording.

Covers: agents.volks.junior.volk

Kind Name Line Description
function test_prompt_states_verdict_handoff_to_u_ar 18
function test_prompt_keeps_verdict_markers_and_identity 25
function test_prompt_appends_coding_standards 32
function test_prompt_still_formats_cleanly 39
function test_prompt_includes_task_fidelity_check 47
function test_feedback_packet_matches_stated_handoff 59

tests/agents/volks/junior/test_volk.py

source · 43 tests · 576 lines

Covers: agents.volks.junior.volk, drivers.driver_factory, core.packet/ (package)

Kind Name Line Description
function test_max_design_review_cycles_is_three 56
function test_design_review_prompt_contains_checklist 60
function test_init_defaults 71
function test_junior_agent_subclass 79
function test_parse_questions_numbered 89
function test_parse_questions_bulleted 101
function test_parse_questions_stops_on_new_section 107
function test_parse_questions_no_section_returns_empty 113
function test_extract_question_line_numbered 117
function test_extract_question_line_bullet 121
function test_extract_question_line_none 125
function test_is_section_break_true_for_text 130
function test_is_section_break_false_for_empty 134
function test_is_section_break_false_for_number 138
function test_is_section_break_false_for_bullet 142
function test_build_review_prompt_has_sections 151
function test_build_review_prompt_omits_empty_class_diagram 167
function test_build_review_prompt_includes_task_summary 179 Dogfood run-2 F3 defect 4: the ORIGINAL task summary (already present
function test_build_review_prompt_omits_task_section_when_absent 198 No task_summary in payload -> no dangling "Original Task:" section.
function test_make_feedback_packet_ready 210
function test_make_feedback_packet_questions_includes_list 220
function test_scan_workspace_nonexistent 233
function test_scan_workspace_skips_hidden_and_cache 237
function test_scan_workspace_sorted_relative 254
function test_validate_dependencies_no_pyproject 269
function test_validate_dependencies_with_declared_deps 275
function test_validate_dependencies_skips_non_py 290
function test_validate_dependencies_skips_unparseable 297
function test_collect_project_modules 304
function test_collect_project_modules_no_src 315
function test_check_single_file_nonexistent 319
function test_handle_design_review_auto_ready_at_max_cycle 329
function test_handle_design_review_beyond_max_cycle 348
function test_process_unknown_subject_returns_none 362
function test_auto_ready_sets_state 374
function test_build_review_response_ready 396
function test_build_review_response_questions_path 410
function test_build_review_response_no_questions_defaults_ready 431
function test_apply_project_dir_sets_workspace 449
function test_apply_project_dir_empty_is_noop 462
function test_log_deps_issues_no_raise 476
function test_handle_implement_invokes_driver_via_module_hook 506 Temporarily swap get_driver for a function that returns a recording
function test_handle_implement_failure_surfaces 549

tests/agents/volks/junior/test_volk_extended.py

source · 26 tests · 551 lines

Covers: agents.volks.junior.volk, drivers.driver_factory, llm.client, core.packet/ (package)

Kind Name Line Description
function test_junior_agent_init_with_driver 69 JuniorAgent accepts a driver parameter and stores it.
function test_junior_agent_init_without_driver 77 JuniorAgent works when no driver is passed.
function test_process_sets_graph_context_on_design_review 89 process() extracts graph context from the packet payload.
function test_process_sets_graph_context_on_implement 104 process() extracts graph context for implement subject too.
function test_handle_design_review_llm_path_ready 131 When cycle < max, the LLM path is taken and READY is parsed.
function test_handle_design_review_llm_path_questions 157 When cycle < max, the LLM path is taken and QUESTIONS are parsed.
function test_handle_design_review_default_cycle 185 Missing design_cycle defaults to 1 and hits the LLM path.
function test_call_design_review_llm_directly 213 _call_design_review_llm formats the prompt and invokes call_llm.
function test_build_review_response_ready_takes_precedence_over_questions 251 If VERDICT: READY appears, questions are ignored and READY is returned.
function test_make_feedback_packet_empty_questions_list 272 An empty questions list should not add a questions key.
function test_parse_questions_with_text_before_section 283 Text before QUESTIONS: section should be ignored.
function test_parse_questions_mixed_bullets_and_numbers 297 Mixed bullets and numbered lines are both extracted.
function test_parse_questions_stops_on_blank_line_then_text 306 A non-question line breaks the section even after blanks.
function test_scan_workspace_nested_hidden_dirs 320 Hidden directories nested inside visible ones are also skipped.
function test_scan_workspace_hidden_files_in_subdirs 335 Hidden files at any depth are skipped.
function test_validate_dependencies_empty_files_created 351 Empty files_created list returns empty issues regardless of pyproject.
function test_validate_dependencies_all_local_imports 359 Local project imports should not produce issues.
function test_build_review_prompt_partial_payload 377 Only provided fields appear in the prompt.
function test_build_review_prompt_class_diagram_omitted_when_empty 386 Explicit empty string for class_diagram omits the section.
function test_handle_implement_default_payload_values 422 Missing aider_prompt, files, and is_fix should use defaults.
function test_handle_implement_scans_and_validates_deps 449 After driver execution, workspace is scanned and deps validated.
function test_apply_project_dir_with_none_value 482 project_dir explicitly set to empty string should not change workspace.
function test_log_deps_issues_empty_list 502 Empty deps_issues should not raise and should not modify state.
function test_log_deps_issues_multiple_issues 509 Multiple issues should all be logged without raising.
function test_auto_ready_payload_contents 522 Auto-ready packet must contain all required payload fields.
function test_auto_ready_resets_thread 539 Auto-ready must reset current_thread to None.

Support files

Fixtures, package markers and helpers without test functions.