Orchestrata Ultimate › Tests › Reference › agents › volks › compliance

Tests reference — tests/agents/volks/compliance

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

Prose pending.

Modules

Module Tests Covers
test_pipeline.py 36 3
test_volk.py 28 4

Module details

tests/agents/volks/compliance/test_pipeline.py

source · 36 tests · 468 lines

Covers: agents.volks.compliance._pipeline, knowledge_graph.kg_design, verification.traceability

Kind Name Line Description
function test_task_slug_basic 62
function test_task_slug_strips_punctuation 66
function test_task_slug_max_length 70
function test_task_slug_strips_trailing_dashes 76
function test_task_slug_empty 82
function test_project_slug_uses_directory_basename 95
function test_project_slug_falls_back_to_unscoped_when_empty 99
function test_project_slug_never_derived_from_task_text 104
function test_scan_traces_reads_source_and_tests 136
function test_scan_traces_missing_dirs 150
function test_scan_traces_only_src 158
function test_load_requirements_none_store 223
function test_load_requirements_empty_kg 227
function test_load_requirements_populated 232
function test_load_requirements_error_swallowed 252
function test_fetch_kg_requirements_direct 257
function test_generate_rtm_produces_report 285
function test_generate_rtm_empty 298
function test_sync_code_no_store_is_noop 310
function test_sync_code_with_store_syncs 315
function test_sync_code_never_syncs_under_an_empty_slug 328 No project_dir known -> "unscoped", never "" -- the empty slug is
function test_sync_code_handles_dict_traces 338
function test_sync_code_swallows_errors 344
function test_check_compliance_no_store 355
function test_check_compliance_returns_result 359
function test_check_compliance_returns_none_when_store_returns_none 369
function test_check_compliance_swallows_errors 374
function test_persist_rtm_no_report_returns_empty 406
function test_persist_rtm_writes_files 410
function test_persist_rtm_writes_to_kg_when_session_and_store 418
function test_persist_rtm_no_session_skips_kg 432
function test_save_rtm_to_kg_handles_errors 439
function test_save_rtm_to_kg_noop_when_no_store 446
function test_save_rtm_to_disk_bad_dir_returns_empty 451
function test_save_rtm_to_disk_empty_project_dir_refuses_to_write 458
function test_persist_rtm_empty_project_dir_refuses_to_write 466

tests/agents/volks/compliance/test_volk.py

source · 28 tests · 435 lines

Covers: agents.volks.compliance.volk, core.traceability_utils, knowledge_graph.kg_design, core.packet/ (package)

Kind Name Line Description
function test_init_defaults 109
function test_compliance_agent_subclass 120
function test_init_kg_sets_store_or_none 131
function test_init_kg_is_idempotent 139
function test_extract_coverage_none 152
function test_extract_coverage_no_validation_attr 156
function test_extract_coverage_with_validation 163
function test_extract_coverage_validation_is_none 168
function test_extract_compliance_pct_none 173
function test_extract_compliance_pct_from_result 177
function test_build_payload_with_all_fields 187
function test_build_payload_missing_rtm_and_compliance 216
function test_rtm_section_lines 235
function test_rtm_section_none_returns_empty 241
function test_rtm_section_no_validation_returns_empty 245
function test_compliance_section_populated 249
function test_compliance_section_none_returns_empty 258
function test_files_section_empty 262
function test_files_section_populated 266
function test_build_report_lines_pass 272
function test_build_report_lines_fail 284
function test_process_unknown_subject_returns_none 300
function test_process_compliance_check_returns_response 313
function test_handle_compliance_builds_report_artifact 360
function test_compliance_threshold_controls_pass 382
function test_extract_packet_fields_sets_attributes 403
function test_calculate_results_pass_threshold 419
function test_calculate_results_below_threshold 429

Support files

Fixtures, package markers and helpers without test functions.