Orchestrata Ultimate › Tests › Reference › agents › volks › architect

Tests reference — tests/agents/volks/architect

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

Prose pending.

Modules

Module Tests Covers
conftest.py 0 1
test_architect_context.py 35 1
test_architect_handoff.py 5 1
test_architect_project.py 13 1
test_prompts.py 7 1
test_volk.py 50 7

Module details

tests/agents/volks/architect/conftest.py

source · 0 tests · 18 lines

Shared fixtures for architect volk tests.

Covers: llm.client

tests/agents/volks/architect/test_architect_context.py

source · 35 tests · 578 lines

Test Standards Compliance (see AGENTS.md § Test Standards):

Covers: agents.volks.architect.architect_context

Kind Name Line Description
function test_slugify_basic 47
function test_slugify_special_chars_removed 52
function test_slugify_multiple_hyphens_collapsed 57
function test_slugify_strip_edges 62
function test_slugify_length_cap 67
function test_slugify_empty_returns_project 72
function test_slugify_punct_only_returns_project 77
function test_slugify_underscores 82
function test_try_load_class_file_matches_class 92
function test_try_load_class_file_does_not_match_function 108
function test_try_load_class_file_truncation 119
function test_try_load_class_file_unreadable 132
function test_scan_filesystem_for_classes_no_crash_when_missing 144
function test_build_monorepo_context_empty_text 159
function test_build_monorepo_context_noise_only 166
function test_build_monorepo_context_lowercase_only 174
function test_build_project_tree_context_real 186
function test_query_project_tree_direct 193
function test_build_monorepo_context_unknown_class_empty 203
function test_build_full_monorepo_context_returns_string 212
function test_build_full_monorepo_context_escapes_braces 220
function test_build_full_monorepo_context_sets_attribute 230
function test_query_project_tree_with_seeded 240
function test_build_monorepo_context_loads_real_file 269 Seed Class node with a real on-disk path and verify full flow.
function test_build_monorepo_context_truncates 297
function test_build_monorepo_context_packages_prefix 324
function test_build_monorepo_context_skips_missing_path 352
function test_build_monorepo_context_null_path_falls_back 377 A graph-seeded File node with no path property makes
function test_load_graph_file_invalid_utf8_is_skipped 406 A file that fails to decode as UTF-8 hits the except branch in
function test_build_full_monorepo_context_joined 419
function test_build_project_tree_context_connect_fails_returns_empty 466 An unreachable KG_ROUTING_URI makes client.connect() return False
function test_build_project_tree_context_query_failure_returns_empty 486 A real, successful connect followed by a failure while assembling the
function test_load_classes_from_graph_connect_fails_leaves_loaded_empty 497 _load_classes_from_graph's inner _query_graph returns []
function test_scan_filesystem_for_classes_walks_real_tree 520 Point ORCHESTRATA_MONOREPO_ROOT at a real, populated tmp tree and
function test_scan_filesystem_for_classes_skips_already_loaded 563 When loaded already has an entry for a path the walk encounters,

tests/agents/volks/architect/test_architect_handoff.py

source · 5 tests · 53 lines

Tests for the VP-A5 handoff sentence in ARCHITECT_PROMPT_TEMPLATE.

Covers: agents.volks.architect.architect_prompts

Kind Name Line Description
function test_handoff_names_junior_reviewer 13
function test_handoff_names_codedirector_implementer 18
function test_handoff_sentence_present 22
function test_architect_identity_and_sections_preserved 29
function test_template_still_formats_with_required_fields 42

tests/agents/volks/architect/test_architect_project.py

source · 13 tests · 184 lines

Tests for architect_project.py — ArchitectProjectMixin (volk flavor).

Covers: agents.volks.architect.architect_project

Kind Name Line Description
function test_init_project_full_bootstrap 35
function test_write_context_json_has_expected_keys 54
function test_write_context_json_idempotent 66
function test_git_init_and_idempotent 77
function test_create_venv_skips_if_present 90
function test_create_venv_handles_missing_uv 96
function test_write_design_docs 102
function test_parse_design_populates_all 115
function test_parse_design_partial 132
function test_git_commit_noop_when_no_repo 139
function test_git_commit_noop_when_missing_project_dir 145
function test_git_commit_success 150
function test_init_project_sets_owner_only_perms 177 SPEC-030 Security §Data Protection: the generated workspace is created

tests/agents/volks/architect/test_prompts.py

source · 7 tests · 67 lines

Tests for architect prompts module (architect_prompts.py).

Covers: agents.volks.architect.architect_prompts

Kind Name Line Description
function test_architect_prompts_exports_template 6
function test_architect_prompts_exports_update_template 12
function test_architect_prompts_max_design_cycles 23
function test_architect_prompt_template_formats_with_required_fields 27
function test_architect_update_template_formats_with_required_fields 39
function test_max_design_cycles 57
function test_architect_prompt_template_points_to_design_patterns_tool 61

tests/agents/volks/architect/test_volk.py

source · 50 tests · 1238 lines

Tests for volk.py — ArchitectVolk (the deepseek-reasoner Architect).

Covers: agents.exceptions, agents.tool_registry, agents.volks.architect.architect_prompts, agents.volks.architect.volk, llm.client, core.packet/ (package), core.protocols/ (package)

Kind Name Line Description
function test_esc_escapes_braces 39
function test_esc_no_braces_unchanged 43
function test_build_spec_section_empty 47
function test_build_spec_section_with_text 51
function test_build_ux_section_empty 58
function test_build_ux_section_with_text 63
function test_architect_volk_init_defaults 75
function test_process_unknown_subject_returns_none 100
function test_process_sets_graph_context_from_payload 107
function test_process_graph_context_none_when_missing 115
function test_handle_feedback_ready_finalizes_and_sends_to_codedirector 128
function test_handle_feedback_max_cycles_forces_finalize 162
function test_process_design_feedback_ready_routes_to_finalize 195
function test_finalize_design_constructs_implement_packet 218
function test_make_review_packet_contents 254
function test_load_structured_fields_populates_all 281
function test_load_structured_fields_defaults_empty 308
function test_load_structured_fields_impact_report_prints_summary 319
function test_resolve_project_name_from_task_summary 344
function test_resolve_project_name_from_concierge_field 353
function test_resolve_project_name_concierge_empty_falls_back_to_summary 361
function test_volk_parse_and_write_design_flow 374
function test_handle_feedback_not_ready_routes_to_iterate 401 NOT_READY verdict below MAX cycles routes to _iterate_design.
function test_handle_design_full_flow 428 Exercise _handle_design end-to-end with real LLM and real graph.
function test_process_implement_routes_to_handle_design_fast 479 process() with subject='implement' drives the full _handle_design path.
function test_handle_design_passes_max_turns_16_to_tool_loop 576 (F13, dogfood run-4) grounded design work against a real codebase
function test_handle_design_folds_graph_context_into_prompt 619 Regression: _call_llm_with_tools takes no graph_context= kwarg
function test_handle_design_executes_real_tool_call_before_final_design 663 The tool-calling loop lets U:Ar actually inspect the codebase (a real
function test_process_design_feedback_not_ready_iterates_fast 746 process() -> _handle_feedback -> _iterate_design, LLM boundary swapped.
function test_iterate_design_folds_graph_context_into_prompt 822 Regression: _iterate_design's tool-loop call (dogfood run-2 F3 defect 3)
function test_iterate_design_calls_llm_and_returns_review_packet 875 Exercise the full _iterate_design path using the real configured LLM.
function test_handle_design_retries_once_on_blank_response_then_succeeds 910 A blank first response (no section markers -- all core sections empty)
function test_handle_design_raises_when_still_blank_after_retry 963 Both the initial call AND the retry come back blank -> TaskExecutionError,
function test_multi_agent_review_edit_returns_verdict 1020
function test_review_edit_approves_clean_edit 1031
function test_review_edit_blocks_relative_import 1040
function test_review_edit_blocks_direct_driver_construction_outside_factory 1051
function test_review_edit_blocks_redis_direct_construction_outside_factory 1066 Coverage: the redis.Redis( branch of has_direct_driver_construction
function test_review_edit_allows_driver_construction_inside_factory_module 1088
function test_review_edit_approves_docstring_mentioning_relative_import 1104 F4 regression: the relative-import/driver-construction checks must
function test_review_edit_handles_explicit_none_field 1122 F5 regression: a payload key present with an explicit None
class TestSkeletonFlowPromptTemplate 1148
method TestSkeletonFlowPromptTemplate.test_default_template_unchanged_without_flag 1149
method TestSkeletonFlowPromptTemplate.test_flag_on_includes_contract_addendum 1152
method TestSkeletonFlowPromptTemplate.test_flag_on_template_survives_format 1165 The exact production call: _design() runs .format(...) on the
class TestExtractMermaidBlock 1192
method TestExtractMermaidBlock.test_extracts_class_diagram_fence 1193
method TestExtractMermaidBlock.test_returns_none_when_no_fence 1198
method TestExtractMermaidBlock.test_returns_none_when_fence_not_closed 1201
class TestValidateClassDiagram 1205
method TestValidateClassDiagram.test_valid_contract_logs_no_warning 1206
method TestValidateClassDiagram.test_invalid_contract_logs_warning 1220
method TestValidateClassDiagram.test_missing_block_logs_warning 1235

Support files

Fixtures, package markers and helpers without test functions.