@ngocsangairvds/vsaf 3.2.14 → 3.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1442) hide show
  1. package/bin/vsaf.js +18 -4
  2. package/package.json +1 -1
  3. package/src/config.js +167 -0
  4. package/src/global.js +1 -48
  5. package/src/project.js +1 -0
  6. package/src/utils.js +44 -1
  7. package/tools/vds-scripts/Makefile +9 -31
  8. package/tools/vds-scripts/docker/docker-compose.cli.yml +1 -117
  9. package/tools/vds-scripts/docker/docker-compose.services.yml +1 -40
  10. package/tools/vds-scripts/docker/infrastructure/init-schemas.sql +0 -34
  11. package/tools/vds-scripts/docker/infrastructure/pgbouncer/pgbouncer.ini +2 -6
  12. package/tools/vds-scripts/pyproject.toml +1 -33
  13. package/tools/vds-scripts/uv.lock +80 -1651
  14. package/tools/vds-scripts/vds_cli/pyproject.toml +3 -0
  15. package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +1 -127
  16. package/tools/vds-scripts/vds_cli/src/vds_cli/commands/lint_cli.py +1 -20
  17. package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +0 -100
  18. package/tools/vds-scripts/vds_cli/tests/conftest.py +0 -2
  19. package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +0 -25
  20. package/tools/vds-scripts/vds_cli/tests/unit/test_lint_cli.py +2 -2
  21. package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +0 -2
  22. package/tools/vds-scripts/CLOSURE.md +0 -340
  23. package/tools/vds-scripts/ECOSYSTEM-CHANGELOG.md +0 -52
  24. package/tools/vds-scripts/ECOSYSTEM-DOCS.md +0 -602
  25. package/tools/vds-scripts/ECOSYSTEM_ALIGNMENT.md +0 -133
  26. package/tools/vds-scripts/ENV-HYGIENE-OPS-NOTE.md +0 -65
  27. package/tools/vds-scripts/INVESTIGATION-cloud-401.md +0 -103
  28. package/tools/vds-scripts/MEM0_2.0_API_REFERENCE.md +0 -238
  29. package/tools/vds-scripts/PACKAGE_P125B_IMPLEMENTATION_SUMMARY.md +0 -131
  30. package/tools/vds-scripts/PHASE-MERGE-SUMMARY.md +0 -121
  31. package/tools/vds-scripts/PHASES-3-ARCHIVE.md +0 -59
  32. package/tools/vds-scripts/PROJECT_COMPLETION_SUMMARY.md +0 -45
  33. package/tools/vds-scripts/SEARCH-CRASH-REPRO.md +0 -51
  34. package/tools/vds-scripts/analyze_hexagonal.py +0 -217
  35. package/tools/vds-scripts/analyze_profiles.py +0 -60
  36. package/tools/vds-scripts/audit-checklist.xlsx +0 -0
  37. package/tools/vds-scripts/audit_orchestrator/.audit_approvals/approvals_index.json +0 -1
  38. package/tools/vds-scripts/audit_orchestrator/.env.example +0 -85
  39. package/tools/vds-scripts/audit_orchestrator/.github/workflows/audit.yml +0 -47
  40. package/tools/vds-scripts/audit_orchestrator/Dockerfile +0 -92
  41. package/tools/vds-scripts/audit_orchestrator/GOOGLE_SHEETS_IMPLEMENTATION_SUMMARY.md +0 -218
  42. package/tools/vds-scripts/audit_orchestrator/PHASE3_INTEGRATION_SUMMARY.md +0 -268
  43. package/tools/vds-scripts/audit_orchestrator/PHASE7-MERGE-SUMMARY.md +0 -174
  44. package/tools/vds-scripts/audit_orchestrator/README.md +0 -1573
  45. package/tools/vds-scripts/audit_orchestrator/TSK-168-IMPLEMENTATION-SUMMARY.md +0 -191
  46. package/tools/vds-scripts/audit_orchestrator/TSK-196-IMPLEMENTATION-SUMMARY.md +0 -201
  47. package/tools/vds-scripts/audit_orchestrator/alembic/env.py +0 -37
  48. package/tools/vds-scripts/audit_orchestrator/alembic/script.py.mako +0 -28
  49. package/tools/vds-scripts/audit_orchestrator/alembic/versions/0001_initial_audit_state_schema.py +0 -1260
  50. package/tools/vds-scripts/audit_orchestrator/alembic.ini +0 -68
  51. package/tools/vds-scripts/audit_orchestrator/config/category-mapping.json +0 -81
  52. package/tools/vds-scripts/audit_orchestrator/config/profile-timeouts.yaml +0 -17
  53. package/tools/vds-scripts/audit_orchestrator/create_sample.py +0 -55
  54. package/tools/vds-scripts/audit_orchestrator/data/corpus_accuracy_report.json +0 -17
  55. package/tools/vds-scripts/audit_orchestrator/data/exemplar_quality_report.json +0 -1606
  56. package/tools/vds-scripts/audit_orchestrator/data/instruction_plan_fixtures.json +0 -163
  57. package/tools/vds-scripts/audit_orchestrator/data/requirement_exemplars.json +0 -3443
  58. package/tools/vds-scripts/audit_orchestrator/data/requirement_scope_fixtures.json +0 -172
  59. package/tools/vds-scripts/audit_orchestrator/debug_rg.py +0 -46
  60. package/tools/vds-scripts/audit_orchestrator/demo_code_pack.py +0 -127
  61. package/tools/vds-scripts/audit_orchestrator/docs/AGENT_SDK_SELECTION_SPEC.md +0 -720
  62. package/tools/vds-scripts/audit_orchestrator/docs/API.md +0 -804
  63. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_ANALYSIS_APPROACH.md +0 -1041
  64. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_SCORING_EVOLUTION_SPEC.md +0 -868
  65. package/tools/vds-scripts/audit_orchestrator/docs/DEPLOYMENT.md +0 -778
  66. package/tools/vds-scripts/audit_orchestrator/docs/LLM_AGENT_AUDIT_SPEC.md +0 -721
  67. package/tools/vds-scripts/audit_orchestrator/docs/LLM_CONTENT_ANALYSIS_SPEC.md +0 -1143
  68. package/tools/vds-scripts/audit_orchestrator/docs/LSP_SETUP_GUIDE.md +0 -221
  69. package/tools/vds-scripts/audit_orchestrator/docs/MULTI_REPO_AUDIT_SPEC.md +0 -951
  70. package/tools/vds-scripts/audit_orchestrator/docs/OLLAMA_EMBEDDINGS_SETUP.md +0 -119
  71. package/tools/vds-scripts/audit_orchestrator/docs/PHASE32_REAL_BENCHMARK_2026-02-08.md +0 -66
  72. package/tools/vds-scripts/audit_orchestrator/docs/PHASE_64_TO_92_HISTORICAL_SPEC.md +0 -1772
  73. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-flow-trace.md +0 -201
  74. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-verification.md +0 -124
  75. package/tools/vds-scripts/audit_orchestrator/docs/phase152-hierarchical-query-surface.md +0 -46
  76. package/tools/vds-scripts/audit_orchestrator/examples/bitbucket_metadata_example.json +0 -50
  77. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/README.md +0 -68
  78. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase117_phase118_shared_state.sql +0 -64
  79. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase154_published_pages.sql +0 -28
  80. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_dispatch_tables.sql +0 -94
  81. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_events.sql +0 -91
  82. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_scope_snapshots.sql +0 -24
  83. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_status_view.sql +0 -22
  84. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase169_dispatch_observability.sql +0 -55
  85. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/state_repair_hardening.sql +0 -24
  86. package/tools/vds-scripts/audit_orchestrator/pyproject.toml +0 -211
  87. package/tools/vds-scripts/audit_orchestrator/pyrightconfig.json +0 -51
  88. package/tools/vds-scripts/audit_orchestrator/pytest.ini +0 -37
  89. package/tools/vds-scripts/audit_orchestrator/reproduce_scanner.py +0 -40
  90. package/tools/vds-scripts/audit_orchestrator/scripts/README.md +0 -116
  91. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_crawl_modes.py +0 -455
  92. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_dspy.py +0 -513
  93. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_nlp_accuracy.py +0 -138
  94. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_retrieval_modes.py +0 -176
  95. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_upload_update_mode.py +0 -167
  96. package/tools/vds-scripts/audit_orchestrator/scripts/build_check.py +0 -76
  97. package/tools/vds-scripts/audit_orchestrator/scripts/check_live_progress.py +0 -61
  98. package/tools/vds-scripts/audit_orchestrator/scripts/cli_integration_test.py +0 -400
  99. package/tools/vds-scripts/audit_orchestrator/scripts/index_workspace.py +0 -178
  100. package/tools/vds-scripts/audit_orchestrator/scripts/inspect_route_conformance.py +0 -196
  101. package/tools/vds-scripts/audit_orchestrator/scripts/monitor_postgres.py +0 -145
  102. package/tools/vds-scripts/audit_orchestrator/scripts/optimize_audit.py +0 -462
  103. package/tools/vds-scripts/audit_orchestrator/scripts/verify.py +0 -673
  104. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase111_requirement_analysis.py +0 -375
  105. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase117_cross_repo_evidence.py +0 -77
  106. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase121_short_circuit.py +0 -680
  107. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase122_instruction_handling.py +0 -478
  108. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase125_skill_integration.py +0 -832
  109. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_36.py +0 -394
  110. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_37.py +0 -58
  111. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/__init__.py +0 -17
  112. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/__init__.py +0 -29
  113. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/_langchain_warnings.py +0 -17
  114. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/agentic_investigator.py +0 -4130
  115. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/approval.py +0 -490
  116. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_loop_hooks.py +0 -107
  117. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_state.py +0 -50
  118. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/base.py +0 -4035
  119. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_agent.py +0 -667
  120. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_helpers.py +0 -236
  121. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_prompts.py +0 -146
  122. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/docs_agent.py +0 -1234
  123. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/langgraph_workflow.py +0 -2002
  124. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/pydantic_base.py +0 -1227
  125. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/requirement_analysis_agent.py +0 -593
  126. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_agent.py +0 -1829
  127. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_scanner.py +0 -686
  128. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/skill_tools.py +0 -204
  129. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/synthesis_agent.py +0 -1463
  130. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_efficiency_guard.py +0 -609
  131. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_registry.py +0 -3822
  132. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/__init__.py +0 -52
  133. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/evidence_corpus.py +0 -385
  134. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/filesystem.py +0 -1134
  135. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/lsp.py +0 -458
  136. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/mcp_toolset.py +0 -491
  137. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/skills_toolset.py +0 -997
  138. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/vector_evidence.py +0 -842
  139. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/usage_tracker.py +0 -682
  140. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/visualization.py +0 -303
  141. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/analyze_cmds.py +0 -892
  142. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/__init__.py +0 -15
  143. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/service.py +0 -171
  144. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/__init__.py +0 -20
  145. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/base.py +0 -60
  146. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/__init__.py +0 -6
  147. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/checks.py +0 -257
  148. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/__init__.py +0 -10
  149. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/checks.py +0 -78
  150. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/__init__.py +0 -6
  151. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/file_checks.py +0 -133
  152. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/__init__.py +0 -17
  153. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/api_docs_check.py +0 -80
  154. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/readme_check.py +0 -76
  155. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/security_docs_check.py +0 -78
  156. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/registry.py +0 -402
  157. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/__init__.py +0 -10
  158. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/checks.py +0 -276
  159. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli.py +0 -12
  160. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_common.py +0 -128
  161. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_impl.py +0 -9826
  162. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/bitbucket_cli_client.py +0 -187
  163. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/confluence_cli_client.py +0 -977
  164. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/sonarqube_cli_client.py +0 -28
  165. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/__init__.py +0 -21
  166. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/base.py +0 -25
  167. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_downloader.py +0 -644
  168. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_metadata.py +0 -133
  169. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/checklist_parser.py +0 -180
  170. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/__init__.py +0 -31
  171. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/bitbucket_probe.py +0 -443
  172. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/confluence_probe.py +0 -365
  173. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/freshness_evaluator.py +0 -330
  174. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/material_completeness_service.py +0 -1079
  175. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/confluence_collector.py +0 -259
  176. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/diagram_extractor.py +0 -280
  177. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/enrichment_extractor.py +0 -200
  178. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/evidence_cache.py +0 -35
  179. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/git_collector.py +0 -148
  180. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/graphify_collector.py +0 -171
  181. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/image_extractor.py +0 -359
  182. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/linked_page_tracker.py +0 -120
  183. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/markdown_converter.py +0 -344
  184. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_cache.py +0 -1252
  185. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_downloader.py +0 -1165
  186. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/orchestrator.py +0 -168
  187. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/registry_parser.py +0 -3063
  188. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/requirements.py +0 -70
  189. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/runner.py +0 -119
  190. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/sonarqube_collector.py +0 -113
  191. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config.py +0 -1943
  192. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/__init__.py +0 -23
  193. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/discovery.py +0 -90
  194. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/environment_resolver.py +0 -56
  195. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/evidence.py +0 -78
  196. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/models.py +0 -73
  197. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/precedence.py +0 -10
  198. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/redaction.py +0 -20
  199. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/confluence_connectivity.py +0 -140
  200. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/corpus_cmds.py +0 -278
  201. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/__init__.py +0 -7
  202. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/alembic_filters.py +0 -57
  203. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/__init__.py +0 -29
  204. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/diataxis_validator.py +0 -687
  205. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/doctor_cmds.py +0 -3295
  206. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/__init__.py +0 -5
  207. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/evaluation.py +0 -301
  208. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/modules.py +0 -172
  209. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/runtime.py +0 -836
  210. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/signatures.py +0 -406
  211. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/__init__.py +0 -192
  212. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/ad_hoc_analyzer.py +0 -399
  213. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/aggregator.py +0 -220
  214. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/auditor.py +0 -504
  215. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_evidence_cache.py +0 -111
  216. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_processor.py +0 -4776
  217. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/calibration.py +0 -217
  218. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_generator.py +0 -1201
  219. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_projection.py +0 -192
  220. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_scoping.py +0 -221
  221. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checkpoint.py +0 -159
  222. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cl003_shared_lib_guard.py +0 -194
  223. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/companion_context_service.py +0 -445
  224. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/confluence_checklist_contract.py +0 -7425
  225. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cross_check_rules.py +0 -213
  226. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/deterministic_evaluator.py +0 -237
  227. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/drift_detector.py +0 -157
  228. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/dspy_requirement_classifier.py +0 -640
  229. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_assembler.py +0 -407
  230. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_collector.py +0 -119
  231. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_diversity.py +0 -101
  232. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/gap_analyzer.py +0 -549
  233. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/graduated.py +0 -185
  234. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/grounding_validator.py +0 -287
  235. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_analyzer.py +0 -882
  236. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_compliance.py +0 -172
  237. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/llm_row_evaluator.py +0 -9270
  238. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/loader.py +0 -1070
  239. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/manual_check_config.py +0 -136
  240. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/mapping.py +0 -269
  241. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/multi_judge.py +0 -65
  242. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/phase120_checklist_update.py +0 -416
  243. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/profile_scorer.py +0 -427
  244. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_evidence_context.py +0 -449
  245. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_query_service.py +0 -155
  246. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_store.py +0 -383
  247. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_topology.py +0 -1920
  248. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/provider_failure_classifier.py +0 -778
  249. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_cli_helpers.py +0 -341
  250. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_extractor.py +0 -303
  251. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_synthesizer.py +0 -730
  252. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/regression_guard.py +0 -138
  253. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/repo_type_classifier.py +0 -297
  254. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_analysis.py +0 -1433
  255. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_classification.py +0 -1725
  256. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/result_merger.py +0 -814
  257. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/route_matrix.py +0 -267
  258. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator.py +0 -9437
  259. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_runtime.py +0 -1270
  260. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_types.py +0 -2102
  261. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/rubric.py +0 -592
  262. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/scorer.py +0 -1239
  263. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/section_packs.py +0 -645
  264. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/skill_recommendation.py +0 -1183
  265. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/stability_harness.py +0 -207
  266. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/target_selector.py +0 -841
  267. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/telemetry.py +0 -347
  268. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/template_analyzer.py +0 -469
  269. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/token_tracker.py +0 -111
  270. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/tool_first_planner.py +0 -7905
  271. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/topology_query_service.py +0 -80
  272. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/validator.py +0 -449
  273. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/weight_policy.py +0 -464
  274. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/errors.py +0 -430
  275. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/extract_cmds.py +0 -4887
  276. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/identity.py +0 -146
  277. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/__init__.py +0 -52
  278. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/baseline.py +0 -378
  279. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/change_analyzer.py +0 -407
  280. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/delta_report.py +0 -189
  281. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/diff_detector.py +0 -301
  282. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/integrations/__init__.py +0 -3
  283. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/__init__.py +0 -50
  284. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/audit_schemas.py +0 -459
  285. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/codex_oauth.py +0 -340
  286. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/cost_tracker.py +0 -288
  287. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/engine.py +0 -751
  288. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/evaluator.py +0 -245
  289. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/__init__.py +0 -32
  290. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/api_docs_evaluation.py +0 -25
  291. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/gap_analysis.py +0 -31
  292. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/instruction_templates.py +0 -634
  293. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/readme_evaluation.py +0 -25
  294. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/row_evaluation.py +0 -247
  295. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/security_docs_evaluation.py +0 -25
  296. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/template_analysis.py +0 -25
  297. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts.py +0 -0
  298. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/provider.py +0 -626
  299. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/logging_config.py +0 -577
  300. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/__init__.py +0 -58
  301. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/default_checklist_mapping.json +0 -18
  302. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/vietnamese_checklist_mapping.json +0 -38
  303. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/misc_cmds.py +0 -4689
  304. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/__init__.py +0 -153
  305. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/calibration.py +0 -98
  306. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/checklist.py +0 -921
  307. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/completeness.py +0 -309
  308. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enrichment.py +0 -58
  309. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enums.py +0 -97
  310. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/evidence.py +0 -351
  311. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/findings.py +0 -381
  312. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/gaps.py +0 -299
  313. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/graph.py +0 -42
  314. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/multi_judge.py +0 -50
  315. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/readiness.py +0 -309
  316. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/registry.py +0 -386
  317. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/reporting.py +0 -32
  318. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/task.py +0 -549
  319. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/template.py +0 -477
  320. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/__init__.py +0 -31
  321. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/metrics.py +0 -404
  322. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/parse_cmds.py +0 -608
  323. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/pdf_cmds.py +0 -208
  324. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/performance_gates.py +0 -224
  325. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/phase151_projection.py +0 -84
  326. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/__init__.py +0 -65
  327. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/detection.py +0 -842
  328. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/models.py +0 -474
  329. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/__init__.py +0 -1
  330. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_confluence_macros.py +0 -145
  331. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_field_sanitizer.py +0 -25
  332. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_table_builder.py +0 -63
  333. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_vietnamese_templates.py +0 -103
  334. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/bitbucket_link_resolver.py +0 -34
  335. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/checklist_renderer.py +0 -483
  336. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/confluence_publisher.py +0 -3048
  337. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/hierarchy_publisher.py +0 -213
  338. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/live_data_injector.py +0 -152
  339. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/macro_builder.py +0 -101
  340. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/markdown_converter.py +0 -154
  341. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/priority_renderer.py +0 -133
  342. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/project_aggregate_renderer.py +0 -423
  343. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/readiness_renderer.py +0 -186
  344. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_hierarchy_renderer.py +0 -382
  345. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_renderer.py +0 -683
  346. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/report_cmds.py +0 -788
  347. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/__init__.py +0 -13
  348. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/aggregation_report.py +0 -86
  349. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/checklist_generator.py +0 -425
  350. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/excel_generator.py +0 -599
  351. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/gap_report.py +0 -131
  352. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/json_generator.py +0 -188
  353. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/markdown_generator.py +0 -595
  354. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/__init__.py +0 -154
  355. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/collector.py +0 -61
  356. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/department_builder.py +0 -77
  357. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/errors.py +0 -9
  358. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/md_renderer.py +0 -386
  359. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_models.py +0 -95
  360. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_writer.py +0 -27
  361. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/repo_project_builders.py +0 -274
  362. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/readiness_report.py +0 -447
  363. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/reporting.py +0 -94
  364. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/sarif_generator.py +0 -519
  365. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/runtime_profiles.py +0 -98
  366. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/__init__.py +0 -29
  367. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/seed_loader.py +0 -561
  368. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/__init__.py +0 -5
  369. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/skill_routing.py +0 -312
  370. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/__init__.py +0 -0
  371. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/base.py +0 -110
  372. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/bitbucket.py +0 -129
  373. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/git_url.py +0 -60
  374. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/github.py +0 -75
  375. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/local.py +0 -58
  376. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/spec_sync_validator.py +0 -15
  377. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/__init__.py +0 -6285
  378. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/readiness_helpers.py +0 -74
  379. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/skill_readiness.py +0 -487
  380. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/store.py +0 -12927
  381. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state_cmds.py +0 -1868
  382. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/__init__.py +0 -0
  383. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/repo_sync.py +0 -409
  384. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync_cmds.py +0 -1247
  385. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/__init__.py +0 -3
  386. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/debug_bundle.py +0 -214
  387. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/validators/checklist_validator.py +0 -342
  388. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflow_cmds.py +0 -19147
  389. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/__init__.py +0 -9
  390. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/_test_audit_daily_batch.py +0 -192
  391. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_daily_batch.py +0 -308
  392. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_deep_monthly.py +0 -193
  393. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_drift_scan.py +0 -178
  394. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_security_daily.py +0 -183
  395. package/tools/vds-scripts/audit_orchestrator/templates/sample_audit_template.xlsx +0 -0
  396. package/tools/vds-scripts/audit_orchestrator/tests/__init__.py +0 -0
  397. package/tools/vds-scripts/audit_orchestrator/tests/_helpers.py +0 -32
  398. package/tools/vds-scripts/audit_orchestrator/tests/collectors/__init__.py +0 -0
  399. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/__init__.py +0 -0
  400. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_bitbucket_probe.py +0 -403
  401. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_confluence_probe.py +0 -423
  402. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_bitbucket_downloader.py +0 -289
  403. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_image_extractor.py +0 -260
  404. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_markdown_converter.py +0 -57
  405. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_cache.py +0 -197
  406. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_downloader.py +0 -550
  407. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser.py +0 -3514
  408. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_department_entry.py +0 -214
  409. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_flow.py +0 -200
  410. package/tools/vds-scripts/audit_orchestrator/tests/conftest.py +0 -988
  411. package/tools/vds-scripts/audit_orchestrator/tests/engine/__init__.py +0 -0
  412. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_calibration.py +0 -48
  413. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_confluence_checklist_phase22_helpers.py +0 -6065
  414. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_multi_judge.py +0 -62
  415. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_stability_harness.py +0 -61
  416. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_structured_metadata.py +0 -419
  417. package/tools/vds-scripts/audit_orchestrator/tests/factories/__init__.py +0 -0
  418. package/tools/vds-scripts/audit_orchestrator/tests/factories/models.py +0 -534
  419. package/tools/vds-scripts/audit_orchestrator/tests/factories/templates.py +0 -241
  420. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/__init__.py +0 -0
  421. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/__init__.py +0 -0
  422. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/compressed.drawio +0 -2
  423. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/mockup.bmpr +0 -0
  424. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/simple.drawio +0 -26
  425. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/__init__.py +0 -0
  426. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/__init__.py +0 -0
  427. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_cli.json +0 -26
  428. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_direct.json +0 -24
  429. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_cli.json +0 -14
  430. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_direct.json +0 -12
  431. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/__init__.py +0 -0
  432. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_cli.json +0 -7
  433. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_direct.json +0 -7
  434. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_cli.json +0 -11
  435. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_direct.json +0 -7
  436. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/__init__.py +0 -0
  437. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_cli.json +0 -12
  438. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_direct.json +0 -12
  439. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/requirement_strategy_phase115.json +0 -118
  440. package/tools/vds-scripts/audit_orchestrator/tests/integration/__init__.py +0 -0
  441. package/tools/vds-scripts/audit_orchestrator/tests/integration/conftest.py +0 -107
  442. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/__init__.py +0 -0
  443. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/expected_outcomes.md +0 -50
  444. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/__init__.py +0 -0
  445. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/auth.py +0 -27
  446. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/config.py +0 -16
  447. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/db.py +0 -24
  448. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/main.py +0 -18
  449. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/__init__.py +0 -1
  450. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/utils.py +0 -22
  451. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_checklist_template.json +0 -110
  452. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/__init__.py +0 -0
  453. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/code_evidence_pack.json +0 -40
  454. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/manifest.json +0 -49
  455. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/__init__.py +0 -0
  456. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/__init__.py +0 -0
  457. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/brd.md +0 -19
  458. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/design.md +0 -32
  459. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/security.md +0 -23
  460. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/srs.md +0 -25
  461. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/test.md +0 -30
  462. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_checkpoint_merge.py +0 -1371
  463. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_decoupling_route_p149.py +0 -176
  464. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_gap_analyzer_batch_p149.py +0 -151
  465. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_hybrid_search.py +0 -799
  466. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_mcp_integration.py +0 -741
  467. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_merge_ranking_p149.py +0 -98
  468. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_modality_mismatch_p149.py +0 -171
  469. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase117_118_storage.py +0 -350
  470. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase121_short_circuit.py +0 -732
  471. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase18_workflow.py +0 -223
  472. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase48_e2e_verification.py +0 -763
  473. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase81_doc_anchor_regression.py +0 -252
  474. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_provider_failure_finding_p149.py +0 -339
  475. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_readiness_e2e.py +0 -430
  476. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_refined_workflow.py +0 -1180
  477. package/tools/vds-scripts/audit_orchestrator/tests/pdf/__init__.py +0 -0
  478. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/__init__.py +0 -0
  479. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/department_renderer.md +0 -24
  480. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/project_renderer.md +0 -8
  481. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/repo_renderer.md +0 -10
  482. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_department_pdf.py +0 -112
  483. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_e2e_pdf.py +0 -135
  484. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_idempotency.py +0 -45
  485. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_md_renderer.py +0 -46
  486. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_cmds.py +0 -97
  487. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_snapshot.py +0 -77
  488. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_writer.py +0 -65
  489. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_project_builder.py +0 -199
  490. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_public_api.py +0 -135
  491. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_repo_builder.py +0 -246
  492. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_workflow_pdf_flags.py +0 -36
  493. package/tools/vds-scripts/audit_orchestrator/tests/property/__init__.py +0 -0
  494. package/tools/vds-scripts/audit_orchestrator/tests/property/test_properties.py +0 -807
  495. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/__init__.py +0 -0
  496. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agent_error_compat.py +0 -38
  497. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agentic_skill_policy_skip.py +0 -234
  498. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_event_stream_logging.py +0 -785
  499. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_timeout_policy.py +0 -277
  500. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_trace_payload_sanitization.py +0 -92
  501. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent.py +0 -2311
  502. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent_re_exports.py +0 -25
  503. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_analysis_helpers.py +0 -94
  504. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_create_audit_agent_reasoning_effort.py +0 -69
  505. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_docs_agent.py +0 -2044
  506. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_langgraph_workflow_efficiency_metrics.py +0 -71
  507. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_output_validators.py +0 -317
  508. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_phase41_toolsets.py +0 -6427
  509. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_ai_models.py +0 -1219
  510. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_base_url_resolution.py +0 -84
  511. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_security_agent.py +0 -2069
  512. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_skill_manager_focus.py +0 -439
  513. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_synthesis_agent.py +0 -1195
  514. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_tool_efficiency_guard_fr120.py +0 -683
  515. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_toolsets.py +0 -716
  516. package/tools/vds-scripts/audit_orchestrator/tests/test_aggregator_p149.py +0 -171
  517. package/tools/vds-scripts/audit_orchestrator/tests/test_alembic_migrations.py +0 -287
  518. package/tools/vds-scripts/audit_orchestrator/tests/test_anchor_allowlist_p149.py +0 -273
  519. package/tools/vds-scripts/audit_orchestrator/tests/test_audit_otel.py +0 -283
  520. package/tools/vds-scripts/audit_orchestrator/tests/test_checklist_models.py +0 -583
  521. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/__init__.py +0 -0
  522. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_base_check.py +0 -211
  523. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_llm_checks.py +0 -126
  524. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/__init__.py +0 -0
  525. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_analyze_command.py +0 -400
  526. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_archive_stale_page_cli.py +0 -217
  527. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_bitbucket_metadata_cli.py +0 -354
  528. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_cli_impl_profile_availability.py +0 -114
  529. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_codex_profile.py +0 -174
  530. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_compare_backends_cli.py +0 -449
  531. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_confluence_parent_auto_resolve.py +0 -451
  532. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_corpus_purge_cli.py +0 -290
  533. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_credentials_preflight.py +0 -106
  534. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_debug_bundle.py +0 -37
  535. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_deprecation_phase157.py +0 -484
  536. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_dispatch_concurrency_diagnostics.py +0 -758
  537. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_check_confluence_cli.py +0 -320
  538. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_codex.py +0 -187
  539. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_corpus_status_cli.py +0 -236
  540. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_correlation_cli.py +0 -128
  541. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_crawl_status_cli.py +0 -192
  542. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_credentials_cli.py +0 -86
  543. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_dispatch_status_cli.py +0 -421
  544. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_heartbeat_phase169.py +0 -173
  545. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_hierarchy_status_cli.py +0 -199
  546. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_locks_cli.py +0 -134
  547. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_logs_follow_cli.py +0 -305
  548. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_migration.py +0 -333
  549. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_profile_availability_cli.py +0 -151
  550. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_skills_policy_cli.py +0 -153
  551. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_evidence_quality_cli.py +0 -307
  552. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_debug_bundle_phase36.py +0 -60
  553. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_git_manifest_cli.py +0 -172
  554. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_file_removal_phase157e.py +0 -770
  555. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_grounding_classifier.py +0 -226
  556. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_logging.py +0 -49
  557. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_materials_cli.py +0 -9127
  558. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_metadata_completeness_phase92.py +0 -364
  559. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parent_dispatch_finalization_phase168f.py +0 -111
  560. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parse_cli.py +0 -590
  561. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase117_118_feature_flags.py +0 -219
  562. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase164_control_plane.py +0 -718
  563. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase165_runner_scripts.py +0 -230
  564. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_preparation_classifications.py +0 -146
  565. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_prepare_cli.py +0 -398
  566. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publication_quality_gate.py +0 -126
  567. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publish_system_doc_cli.py +0 -158
  568. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_query_checklist_cli.py +0 -219
  569. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli.py +0 -673
  570. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli_integration.py +0 -689
  571. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_removed_flags_phase92.py +0 -36
  572. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_report_cmds.py +0 -1317
  573. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_history_index.py +0 -57
  574. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_management.py +0 -1194
  575. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_runtime_profiles_cli.py +0 -1658
  576. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_smart_run_selection.py +0 -1562
  577. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_cli.py +0 -2467
  578. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_migration.py +0 -339
  579. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_sync_repos_debug_artifacts.py +0 -1109
  580. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_upload_results_cli.py +0 -809
  581. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist.py +0 -178
  582. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist_cli.py +0 -110
  583. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_spec_sync_cli.py +0 -519
  584. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_default_parameters_baseline.py +0 -101
  585. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_options.py +0 -7896
  586. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_db_modes.py +0 -6516
  587. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_project_scope.py +0 -831
  588. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_target.py +0 -611
  589. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_lifecycle.py +0 -2488
  590. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_scaffolding.py +0 -96
  591. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_row_key_guard.py +0 -78
  592. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_summary_artifacts.py +0 -1872
  593. package/tools/vds-scripts/audit_orchestrator/tests/test_cli_paths_phase2.py +0 -45
  594. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/__init__.py +0 -0
  595. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_bitbucket_cli_client.py +0 -124
  596. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_cli_parity.py +0 -110
  597. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_confluence_cli_client.py +0 -1149
  598. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_sonarqube_cli_client.py +0 -19
  599. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/__init__.py +0 -0
  600. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/test_linked_page_tracker.py +0 -118
  601. package/tools/vds-scripts/audit_orchestrator/tests/test_companion_context_service.py +0 -230
  602. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/__init__.py +0 -0
  603. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/conftest.py +0 -11
  604. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_compile_artifact.py +0 -465
  605. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique.py +0 -120
  606. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique_e2e.py +0 -75
  607. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_evaluation.py +0 -515
  608. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_runtime_loader.py +0 -537
  609. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_signatures_normalization.py +0 -172
  610. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/__init__.py +0 -0
  611. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_auditor_applicability.py +0 -68
  612. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_generator.py +0 -1252
  613. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_projection.py +0 -54
  614. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_confluence_checklist_projection_consistency.py +0 -1696
  615. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_critique_merger_matrix.py +0 -120
  616. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_check_rules.py +0 -459
  617. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_provider_critique.py +0 -55
  618. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_doc_loader.py +0 -73
  619. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_drift_detector.py +0 -34
  620. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_evidence_collectors.py +0 -93
  621. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_lease_timeout.py +0 -114
  622. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader.py +0 -350
  623. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader_parity.py +0 -179
  624. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_low_confidence_reeval.py +0 -691
  625. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase145a_completion.py +0 -209
  626. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase31_row_consistency_retry_benchmark.py +0 -150
  627. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_profile_detector.py +0 -286
  628. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_regression_guard.py +0 -53
  629. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_result_merger.py +0 -619
  630. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_evaluator.py +0 -15783
  631. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_failover.py +0 -215
  632. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_scorer.py +0 -597
  633. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_skill_breakdown_telemetry_fr137.py +0 -421
  634. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_targeted_auto_merge.py +0 -229
  635. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_failover.py +0 -488
  636. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_telemetry.py +0 -73
  637. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_validator.py +0 -419
  638. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/__init__.py +0 -0
  639. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/test_diff_detector.py +0 -111
  640. package/tools/vds-scripts/audit_orchestrator/tests/test_infra_persistence.py +0 -291
  641. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/__init__.py +0 -0
  642. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/test_phase3_integration.py +0 -516
  643. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/__init__.py +0 -0
  644. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cache.py +0 -670
  645. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_model_builder.py +0 -281
  646. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_oauth.py +0 -330
  647. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_streaming.py +0 -433
  648. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cost_tracker.py +0 -27
  649. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_engine.py +0 -876
  650. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_evaluator.py +0 -212
  651. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_instruction_templates.py +0 -639
  652. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompt_metadata.py +0 -97
  653. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompts.py +0 -660
  654. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider.py +0 -330
  655. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider_contract_sync.py +0 -18
  656. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_reasoning_effort_validation.py +0 -565
  657. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_schemas.py +0 -827
  658. package/tools/vds-scripts/audit_orchestrator/tests/test_logging_config.py +0 -297
  659. package/tools/vds-scripts/audit_orchestrator/tests/test_models/__init__.py +0 -0
  660. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_enums.py +0 -185
  661. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_findings.py +0 -1159
  662. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_project_profile.py +0 -307
  663. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_registry.py +0 -532
  664. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_template.py +0 -708
  665. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/__init__.py +0 -0
  666. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/test_metrics.py +0 -60
  667. package/tools/vds-scripts/audit_orchestrator/tests/test_paths_config_phase2.py +0 -21
  668. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/__init__.py +0 -0
  669. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/test_fr79_performance_guardrails.py +0 -199
  670. package/tools/vds-scripts/audit_orchestrator/tests/test_phase156_hardening.py +0 -498
  671. package/tools/vds-scripts/audit_orchestrator/tests/test_phase93_regression_guards.py +0 -123
  672. package/tools/vds-scripts/audit_orchestrator/tests/test_pipeline_integration.py +0 -517
  673. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/__init__.py +0 -0
  674. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/test_detection.py +0 -146
  675. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/__init__.py +0 -0
  676. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_bitbucket_link_resolver.py +0 -55
  677. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer.py +0 -84
  678. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer_projection.py +0 -97
  679. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_macros.py +0 -58
  680. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_publisher.py +0 -2171
  681. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_evidence_links.py +0 -129
  682. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_field_sanitizer.py +0 -108
  683. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_hierarchy_publisher.py +0 -134
  684. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_incremental_plan_parser.py +0 -62
  685. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_live_data_injector.py +0 -48
  686. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_macro_builder.py +0 -22
  687. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_p161_confluence_optimization.py +0 -168
  688. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_priority_renderer.py +0 -96
  689. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_project_aggregate_renderer.py +0 -364
  690. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_storage_validation.py +0 -273
  691. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_summary_refactor.py +0 -118
  692. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_system_doc_hierarchy.py +0 -50
  693. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_table_builder.py +0 -23
  694. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_vietnamese_templates.py +0 -37
  695. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_wiring_integration.py +0 -290
  696. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/__init__.py +0 -0
  697. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_aggregation_report.py +0 -181
  698. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_checklist_generator.py +0 -258
  699. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_gap_report.py +0 -73
  700. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_json_generator.py +0 -317
  701. package/tools/vds-scripts/audit_orchestrator/tests/test_result_merger_p149.py +0 -347
  702. package/tools/vds-scripts/audit_orchestrator/tests/test_route_mode_p149.py +0 -178
  703. package/tools/vds-scripts/audit_orchestrator/tests/test_rubric_parser.py +0 -179
  704. package/tools/vds-scripts/audit_orchestrator/tests/test_scorer.py +0 -110
  705. package/tools/vds-scripts/audit_orchestrator/tests/test_state/__init__.py +0 -0
  706. package/tools/vds-scripts/audit_orchestrator/tests/test_state/test_sparse_coverage.py +0 -117
  707. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/__init__.py +0 -0
  708. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_langgraph_workflow.py +0 -2072
  709. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_p161_runtime_hardening.py +0 -341
  710. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p149.py +0 -112
  711. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p172.py +0 -126
  712. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_guidance_p150.py +0 -95
  713. package/tools/vds-scripts/audit_orchestrator/tests/unit/__init__.py +0 -0
  714. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/__init__.py +0 -0
  715. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_agentic_investigator_phase115.py +0 -42
  716. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_requirement_analysis_agent.py +0 -412
  717. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_agent_updates.py +0 -131
  718. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_scanner.py +0 -397
  719. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_executor.py +0 -316
  720. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_fallback.py +0 -299
  721. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_policy.py +0 -520
  722. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_telemetry.py +0 -306
  723. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_synthesis_fixes.py +0 -761
  724. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_argument_robustness.py +0 -272
  725. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry.py +0 -2548
  726. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_ast_grep.py +0 -87
  727. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase123_scoping.py +0 -353
  728. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase94_ff.py +0 -445
  729. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_vector_search_phase115.py +0 -35
  730. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_utils.py +0 -1007
  731. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_vector_evidence_toolset.py +0 -622
  732. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/__init__.py +0 -0
  733. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/test_workflow_cli.py +0 -123
  734. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/__init__.py +0 -0
  735. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_cache_guard.py +0 -479
  736. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_checklist_parser_phase120.py +0 -55
  737. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_diagram_extractor.py +0 -467
  738. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_enrichment_extractor.py +0 -59
  739. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_graphify_collector.py +0 -158
  740. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/__init__.py +0 -0
  741. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_completeness.py +0 -563
  742. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_freshness_evaluator.py +0 -493
  743. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_cache_metrics.py +0 -365
  744. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_completeness_service.py +0 -2736
  745. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/__init__.py +0 -0
  746. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_discovery.py +0 -47
  747. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_redaction.py +0 -15
  748. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/__init__.py +0 -0
  749. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_ad_hoc_analyzer.py +0 -576
  750. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_agent_loop.py +0 -1896
  751. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_anchor_filter_cl003.py +0 -181
  752. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_evidence_cache.py +0 -155
  753. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_processor.py +0 -3608
  754. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_contract.py +0 -55
  755. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_scoping.py +0 -371
  756. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_companion_phase123.py +0 -142
  757. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_evidence_phase123.py +0 -249
  758. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_confluence_checklist_contract_export_parity.py +0 -813
  759. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_cross_repo_config_phase122.py +0 -613
  760. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_dspy_requirement_classifier.py +0 -517
  761. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_diversity.py +0 -144
  762. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_truncation.py +0 -108
  763. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_grounding_validator.py +0 -127
  764. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_guidance_injection_phase120.py +0 -105
  765. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_analysis_phase122.py +0 -761
  766. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_pre_filter_phase167.py +0 -334
  767. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_llm_row_evaluator_retries.py +0 -3684
  768. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_loader_phase123.py +0 -345
  769. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_manual_check_gating_phase122.py +0 -474
  770. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_parallel_eval.py +0 -263
  771. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase122_verifier_phase122.py +0 -169
  772. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase166_route_failover.py +0 -437
  773. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_post_eval_cl003_shared_lib.py +0 -267
  774. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_postproc_streaming.py +0 -194
  775. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_pre_eval_gating_phase122.py +0 -362
  776. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_prepare_topology_coverage.py +0 -247
  777. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_private_dns_sanitization_phase104.py +0 -397
  778. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_evidence_context.py +0 -450
  779. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_knowledge_store.py +0 -487
  780. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_topology.py +0 -1142
  781. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_provider_failure_classifier.py +0 -195
  782. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_extractor.py +0 -496
  783. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_synthesizer.py +0 -653
  784. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_repo_type_classifier.py +0 -303
  785. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis.py +0 -508
  786. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_execution_scope.py +0 -239
  787. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase114.py +0 -919
  788. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase115.py +0 -97
  789. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_shared_lib.py +0 -340
  790. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_drift.py +0 -729
  791. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_nlp.py +0 -670
  792. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_scope_phase122.py +0 -615
  793. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_matrix.py +0 -258
  794. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_override.py +0 -141
  795. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_routing_precision.py +0 -650
  796. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_dual_evidence.py +0 -2987
  797. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_instruction_runtime_phase122.py +0 -365
  798. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_runtime.py +0 -830
  799. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_runtime_hardening_phase122.py +0 -225
  800. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoped_na_skip.py +0 -107
  801. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoring_enhancements.py +0 -404
  802. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_retrieval_phase123.py +0 -441
  803. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_routing_phase123.py +0 -279
  804. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_resource_indexing_phase122.py +0 -188
  805. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_recommendation.py +0 -225
  806. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_routing_cl003_shared_lib.py +0 -338
  807. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skills_toolset.py +0 -319
  808. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_stability_metric.py +0 -60
  809. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_target_selector.py +0 -958
  810. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_tracker.py +0 -121
  811. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_wiring.py +0 -119
  812. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_tool_first_planner.py +0 -7103
  813. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_knowledge_persistence.py +0 -332
  814. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_query_service.py +0 -55
  815. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_unverified_ref_retry.py +0 -909
  816. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/__init__.py +0 -0
  817. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_evidence.py +0 -515
  818. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_gaps.py +0 -422
  819. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_readiness.py +0 -428
  820. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/__init__.py +0 -0
  821. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_confluence_hierarchy.py +0 -227
  822. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_project_title_generation.py +0 -335
  823. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_helpers.py +0 -290
  824. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_integration.py +0 -557
  825. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_readiness_renderer.py +0 -381
  826. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_repo_title_consistency.py +0 -266
  827. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_upload_hierarchy_integration.py +0 -470
  828. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/__init__.py +0 -0
  829. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_dspy.py +0 -177
  830. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_nlp_accuracy.py +0 -72
  831. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_retrieval_modes.py +0 -123
  832. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_verify_phase111_requirement_analysis.py +0 -409
  833. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/__init__.py +0 -0
  834. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_chain_cli.py +0 -277
  835. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_loader.py +0 -502
  836. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/__init__.py +0 -0
  837. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/test_skill_routing.py +0 -209
  838. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/__init__.py +0 -0
  839. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_bitbucket_source.py +0 -66
  840. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_non_retryable_markers.py +0 -88
  841. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_repo_info.py +0 -212
  842. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/__init__.py +0 -0
  843. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_completeness.py +0 -598
  844. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_events_contract_phase169.py +0 -100
  845. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_hardening_phase158.py +0 -392
  846. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_persistence_phase157.py +0 -914
  847. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_embedding_client.py +0 -64
  848. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_get_latest_completed_run.py +0 -313
  849. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_heartbeat_phase169.py +0 -109
  850. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_hybrid_search.py +0 -398
  851. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_normalize_url.py +0 -262
  852. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase152_query_surface.py +0 -59
  853. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase98_confluence_document_model.py +0 -202
  854. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_published_pages.py +0 -754
  855. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_readiness_helpers.py +0 -193
  856. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_ledger.py +0 -522
  857. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_management.py +0 -378
  858. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_schema_contract_phase170.py +0 -755
  859. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_cmds.py +0 -231
  860. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_loaders.py +0 -2151
  861. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_run_api.py +0 -2226
  862. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store.py +0 -1435
  863. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch.py +0 -646
  864. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch_status_view.py +0 -181
  865. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_scope.py +0 -213
  866. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_utilization_persist_phase169.py +0 -77
  867. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vds_search.py +0 -263
  868. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_api.py +0 -319
  869. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_runtime.py +0 -175
  870. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_store.py +0 -1756
  871. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/__init__.py +0 -0
  872. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/test_repo_sync.py +0 -257
  873. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_artifact_exclusion.py +0 -119
  874. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_auto_promote_phase158.py +0 -337
  875. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_carry_forward_artifact_filtering.py +0 -317
  876. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_checklist_precache_p160a.py +0 -416
  877. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_cli_decomposition_fr219.py +0 -269
  878. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_code_chunk_carry_forward.py +0 -203
  879. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_coherence.py +0 -180
  880. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_secret_policy.py +0 -522
  881. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_project_id_migration.py +0 -318
  882. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_status_diagnostics.py +0 -239
  883. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_department_priority_ordering.py +0 -131
  884. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_coordinator_phase158.py +0 -402
  885. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_job_identity_p167a.py +0 -238
  886. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_ramp_up_phase171.py +0 -434
  887. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatcher.py +0 -911
  888. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_doc_type_en_inference.py +0 -246
  889. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_early_exit_unchunked_repos.py +0 -111
  890. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors.py +0 -237
  891. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors_taxonomy.py +0 -83
  892. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_chunking_config_phase98.py +0 -73
  893. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_cmds_state_helpers.py +0 -33
  894. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_docs_code_chunking.py +0 -260
  895. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_finalize_dispatch_run_phase168.py +0 -341
  896. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_identity.py +0 -221
  897. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_infrastructure_detection.py +0 -441
  898. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_junction_table_phase95.py +0 -259
  899. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_late_binding_assignment_p167c.py +0 -286
  900. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_misc_cmds_fr224_225_hardening.py +0 -194
  901. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_p172_integration.py +0 -306
  902. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_parent_provider_preflight.py +0 -118
  903. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase92.py +0 -141
  904. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase93.py +0 -50
  905. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase115_search_strategy.py +0 -106
  906. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase154_title_consistency.py +0 -117
  907. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase155_param_forwarding.py +0 -304
  908. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase158_concurrency_defaults.py +0 -207
  909. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_doctor_schema.py +0 -319
  910. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_regression.py +0 -334
  911. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase94_corpus_lifecycle.py +0 -307
  912. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase96_repo_key_migration.py +0 -305
  913. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_pipelined_scheduling.py +0 -130
  914. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_availability_probe.py +0 -616
  915. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_aware_row_timeout.py +0 -102
  916. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_timeout_stagger_p160cd.py +0 -205
  917. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_progress_summary_phase169.py +0 -96
  918. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_registry_checklist_diagnostics.py +0 -124
  919. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_resume_manifest_p167b.py +0 -268
  920. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_risk_mitigations_p160e1.py +0 -348
  921. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_single_row_shards_p160b.py +0 -357
  922. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_state_repo_discovery.py +0 -504
  923. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_sync_metadata_entries.py +0 -57
  924. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_task_models.py +0 -1796
  925. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_utilization_telemetry_p167e.py +0 -259
  926. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_vietnamese_fts_hardening.py +0 -160
  927. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_phase98_enrichment.py +0 -92
  928. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_project_merge_materialization.py +0 -322
  929. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_row_key_migration_guard.py +0 -88
  930. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_short_circuit_phase121.py +0 -564
  931. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_single_target_row_context.py +0 -49
  932. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_zero_result_messaging.py +0 -76
  933. package/tools/vds-scripts/bandit-report.json +0 -2974
  934. package/tools/vds-scripts/brd_orchestrator/README.md +0 -29
  935. package/tools/vds-scripts/brd_orchestrator/pyproject.toml +0 -63
  936. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/__init__.py +0 -17
  937. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/cli.py +0 -187
  938. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/validator.py +0 -121
  939. package/tools/vds-scripts/brd_orchestrator/tests/__init__.py +0 -0
  940. package/tools/vds-scripts/brd_orchestrator/tests/test_cli.py +0 -62
  941. package/tools/vds-scripts/brd_orchestrator/tests/test_validator.py +0 -33
  942. package/tools/vds-scripts/circular_dependency_orchestrator/README.md +0 -30
  943. package/tools/vds-scripts/circular_dependency_orchestrator/pyproject.toml +0 -43
  944. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/__init__.py +0 -16
  945. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/cli.py +0 -904
  946. package/tools/vds-scripts/circular_dependency_orchestrator/tests/__init__.py +0 -0
  947. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/__init__.py +0 -0
  948. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/test_cli.py +0 -354
  949. package/tools/vds-scripts/coverage.json +0 -1
  950. package/tools/vds-scripts/create_pr.py +0 -57
  951. package/tools/vds-scripts/diagram_generator/README.md +0 -663
  952. package/tools/vds-scripts/diagram_generator/ci_validate.sh +0 -16
  953. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.png +0 -0
  954. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.puml +0 -23
  955. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.png +0 -0
  956. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.puml +0 -21
  957. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.png +0 -0
  958. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.puml +0 -14
  959. package/tools/vds-scripts/diagram_generator/examples/github-actions-validate.yml +0 -39
  960. package/tools/vds-scripts/diagram_generator/generate_all_diagrams.py +0 -827
  961. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_diagrams.py +0 -261
  962. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_quick.py +0 -486
  963. package/tools/vds-scripts/diagram_generator/pyproject.toml +0 -28
  964. package/tools/vds-scripts/diagram_generator/render_png.py +0 -59
  965. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/__init__.py +0 -3
  966. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/cli.py +0 -50
  967. package/tools/vds-scripts/diagram_generator/test_c4_hierarchical.py +0 -142
  968. package/tools/vds-scripts/diagram_generator/test_c4_quick.py +0 -131
  969. package/tools/vds-scripts/diagram_generator/tests/__init__.py +0 -0
  970. package/tools/vds-scripts/diagram_generator/tests/test_analyzer_completeness.py +0 -260
  971. package/tools/vds-scripts/diagram_generator/tests/test_c4_syntax_correctness.py +0 -138
  972. package/tools/vds-scripts/diagram_generator/tests/test_component_coverage.py +0 -182
  973. package/tools/vds-scripts/diagram_generator/tests/test_mermaid_output.py +0 -80
  974. package/tools/vds-scripts/diagram_generator/tests/test_png_generation.py +0 -112
  975. package/tools/vds-scripts/diagram_generator/tests/test_scenario_templates.py +0 -15
  976. package/tools/vds-scripts/diagram_generator/tests/test_sequence_accuracy.py +0 -93
  977. package/tools/vds-scripts/diagram_generator/tests/test_structurizr_export.py +0 -177
  978. package/tools/vds-scripts/diagram_generator/tests/test_style_consistency.py +0 -174
  979. package/tools/vds-scripts/diagram_generator/tests/test_usecase_generator.py +0 -201
  980. package/tools/vds-scripts/diagram_generator/tests/test_usecase_integration.py +0 -124
  981. package/tools/vds-scripts/docker/compose.phase2-verification.yml +0 -31
  982. package/tools/vds-scripts/docker-compose.openapi-validator.yml +0 -14
  983. package/tools/vds-scripts/excel_orchestrator/README.md +0 -288
  984. package/tools/vds-scripts/excel_orchestrator/RESEARCH_BASED_UPDATES_REPORT.md +0 -261
  985. package/tools/vds-scripts/excel_orchestrator/add_essential_missing_effort.py +0 -255
  986. package/tools/vds-scripts/excel_orchestrator/adjust_effort_complexity.py +0 -184
  987. package/tools/vds-scripts/excel_orchestrator/brd_analysis_and_task_breakdown.py +0 -632
  988. package/tools/vds-scripts/excel_orchestrator/brd_analysis_comprehensive.py +0 -1029
  989. package/tools/vds-scripts/excel_orchestrator/check_overlaps_and_brd_coverage.py +0 -570
  990. package/tools/vds-scripts/excel_orchestrator/clean_remarks_column.py +0 -127
  991. package/tools/vds-scripts/excel_orchestrator/comprehensive_brd_check.py +0 -322
  992. package/tools/vds-scripts/excel_orchestrator/create_buffered_summary.py +0 -119
  993. package/tools/vds-scripts/excel_orchestrator/create_service_totals_sheet.py +0 -118
  994. package/tools/vds-scripts/excel_orchestrator/examples/basic_operations.py +0 -85
  995. package/tools/vds-scripts/excel_orchestrator/expand_all_tasks.py +0 -341
  996. package/tools/vds-scripts/excel_orchestrator/expand_tasks.py +0 -304
  997. package/tools/vds-scripts/excel_orchestrator/fill_brd_references.py +0 -347
  998. package/tools/vds-scripts/excel_orchestrator/fill_remarks_and_colors.py +0 -132
  999. package/tools/vds-scripts/excel_orchestrator/finalize_brd_and_cleanup.py +0 -295
  1000. package/tools/vds-scripts/excel_orchestrator/finalize_brd_coverage.py +0 -327
  1001. package/tools/vds-scripts/excel_orchestrator/fix_all_formulas.py +0 -99
  1002. package/tools/vds-scripts/excel_orchestrator/fix_detail_presentation.py +0 -113
  1003. package/tools/vds-scripts/excel_orchestrator/fix_presentation_and_effort.py +0 -116
  1004. package/tools/vds-scripts/excel_orchestrator/fix_presentation_consistency.py +0 -231
  1005. package/tools/vds-scripts/excel_orchestrator/fix_remarks_matching.py +0 -179
  1006. package/tools/vds-scripts/excel_orchestrator/group_tasks_by_service_id.py +0 -210
  1007. package/tools/vds-scripts/excel_orchestrator/increase_brd_coverage.py +0 -497
  1008. package/tools/vds-scripts/excel_orchestrator/increase_effort_complexity.py +0 -155
  1009. package/tools/vds-scripts/excel_orchestrator/organize_and_deduplicate.py +0 -273
  1010. package/tools/vds-scripts/excel_orchestrator/pyproject.toml +0 -64
  1011. package/tools/vds-scripts/excel_orchestrator/rebuild_all_formulas.py +0 -146
  1012. package/tools/vds-scripts/excel_orchestrator/remove_base_multiplier_and_check_duplicates.py +0 -310
  1013. package/tools/vds-scripts/excel_orchestrator/remove_duplicate_brd_tasks.py +0 -137
  1014. package/tools/vds-scripts/excel_orchestrator/research_based_updates.py +0 -457
  1015. package/tools/vds-scripts/excel_orchestrator/restore_e_values.py +0 -172
  1016. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/__init__.py +0 -5
  1017. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/cli.py +0 -746
  1018. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/config.py +0 -74
  1019. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/converters.py +0 -226
  1020. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/errors.py +0 -88
  1021. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/excel_client.py +0 -443
  1022. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/formatters.py +0 -211
  1023. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/logging.py +0 -57
  1024. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/source_contract.py +0 -29
  1025. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/target_state_status.py +0 -837
  1026. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/ulnc_alignment.py +0 -1291
  1027. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/validators.py +0 -164
  1028. package/tools/vds-scripts/excel_orchestrator/sync_detail_and_total_sheets.py +0 -211
  1029. package/tools/vds-scripts/excel_orchestrator/tests/__init__.py +0 -1
  1030. package/tools/vds-scripts/excel_orchestrator/tests/conftest.py +0 -36
  1031. package/tools/vds-scripts/excel_orchestrator/tests/test_cli.py +0 -383
  1032. package/tools/vds-scripts/excel_orchestrator/tests/test_excel_client.py +0 -129
  1033. package/tools/vds-scripts/excel_orchestrator/tests/test_ulnc_alignment.py +0 -373
  1034. package/tools/vds-scripts/excel_orchestrator/tests/test_validators.py +0 -64
  1035. package/tools/vds-scripts/excel_orchestrator/update_api_database_effort.py +0 -261
  1036. package/tools/vds-scripts/excel_orchestrator/update_buffers_inline.py +0 -115
  1037. package/tools/vds-scripts/excel_orchestrator/update_complex_services_and_add_new.py +0 -336
  1038. package/tools/vds-scripts/excel_orchestrator/update_responsibility_and_fix_rows.py +0 -208
  1039. package/tools/vds-scripts/excel_orchestrator/update_task_breakdown_vietnamese.py +0 -309
  1040. package/tools/vds-scripts/excel_orchestrator/update_vietnamese_and_responsibility.py +0 -415
  1041. package/tools/vds-scripts/excel_orchestrator/verify_brd_coverage_comprehensive.py +0 -401
  1042. package/tools/vds-scripts/hexagonal_orchestrator/README.md +0 -530
  1043. package/tools/vds-scripts/hexagonal_orchestrator/pyproject.toml +0 -48
  1044. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/__init__.py +0 -39
  1045. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/__init__.py +0 -19
  1046. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/base.py +0 -95
  1047. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/fallback.py +0 -614
  1048. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/java.py +0 -372
  1049. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/python.py +0 -437
  1050. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cache.py +0 -331
  1051. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/classifier.py +0 -263
  1052. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cli.py +0 -554
  1053. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/config.py +0 -577
  1054. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/models.py +0 -159
  1055. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/profiler.py +0 -451
  1056. package/tools/vds-scripts/hexagonal_orchestrator/test-config.yaml +0 -38
  1057. package/tools/vds-scripts/hexagonal_orchestrator/tests/__init__.py +0 -1
  1058. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/__init__.py +0 -1
  1059. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driven/persistence/InMemoryUserRepository.java +0 -62
  1060. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driving/api/UserController.java +0 -101
  1061. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/EmailService.java +0 -33
  1062. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/UserRepository.java +0 -45
  1063. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/usecase/CreateUser.java +0 -58
  1064. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/Email.java +0 -80
  1065. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/User.java +0 -98
  1066. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-noncompliant/domain/User.java +0 -64
  1067. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Menu.java +0 -13
  1068. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Product.java +0 -16
  1069. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/__init__.py +0 -1
  1070. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/__init__.py +0 -1
  1071. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/__init__.py +0 -1
  1072. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/email_service.py +0 -60
  1073. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/user_repository.py +0 -78
  1074. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/__init__.py +0 -1
  1075. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/__init__.py +0 -1
  1076. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/user.py +0 -56
  1077. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/__init__.py +0 -1
  1078. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/email.py +0 -63
  1079. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/application/user_service.py +0 -1837
  1080. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/domain/user.py +0 -43
  1081. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cache.py +0 -458
  1082. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_integration.py +0 -942
  1083. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_unit.py +0 -557
  1084. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cross_repo_pollution.py +0 -275
  1085. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_foundation.py +0 -129
  1086. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_integration.py +0 -1524
  1087. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_java_analyzer.py +0 -642
  1088. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_timing_unit.py +0 -60
  1089. package/tools/vds-scripts/intellij_orchestrator/README.md +0 -55
  1090. package/tools/vds-scripts/intellij_orchestrator/pyproject.toml +0 -64
  1091. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/__init__.py +0 -17
  1092. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/cli.py +0 -210
  1093. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/core.py +0 -260
  1094. package/tools/vds-scripts/intellij_orchestrator/tests/__init__.py +0 -1
  1095. package/tools/vds-scripts/intellij_orchestrator/tests/test_cli.py +0 -112
  1096. package/tools/vds-scripts/intellij_orchestrator/tests/test_core.py +0 -83
  1097. package/tools/vds-scripts/links_orchestrator/README.md +0 -63
  1098. package/tools/vds-scripts/links_orchestrator/pyproject.toml +0 -64
  1099. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/__init__.py +0 -10
  1100. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/cli.py +0 -254
  1101. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/validator.py +0 -244
  1102. package/tools/vds-scripts/links_orchestrator/tests/__init__.py +0 -0
  1103. package/tools/vds-scripts/links_orchestrator/tests/test_cli.py +0 -128
  1104. package/tools/vds-scripts/links_orchestrator/tests/test_validator.py +0 -76
  1105. package/tools/vds-scripts/lsp_orchestrator/.dockerignore +0 -69
  1106. package/tools/vds-scripts/lsp_orchestrator/ARCHITECTURE.md +0 -383
  1107. package/tools/vds-scripts/lsp_orchestrator/CODE_QUALITY_IMPROVEMENTS.md +0 -196
  1108. package/tools/vds-scripts/lsp_orchestrator/COMMANDS.md +0 -870
  1109. package/tools/vds-scripts/lsp_orchestrator/Dockerfile +0 -59
  1110. package/tools/vds-scripts/lsp_orchestrator/IMPLEMENTATION_SUMMARY.md +0 -490
  1111. package/tools/vds-scripts/lsp_orchestrator/LSP_ISSUES_AND_FINDINGS.md +0 -380
  1112. package/tools/vds-scripts/lsp_orchestrator/README.md +0 -616
  1113. package/tools/vds-scripts/lsp_orchestrator/SETUP.md +0 -143
  1114. package/tools/vds-scripts/lsp_orchestrator/TEST_COVERAGE_SUMMARY.md +0 -255
  1115. package/tools/vds-scripts/lsp_orchestrator/VERIFICATION_CHECKLIST.md +0 -814
  1116. package/tools/vds-scripts/lsp_orchestrator/docker-compose.yml +0 -102
  1117. package/tools/vds-scripts/lsp_orchestrator/docs/FOR_LLMS.md +0 -401
  1118. package/tools/vds-scripts/lsp_orchestrator/docs/explanation/lsp-response-matching.md +0 -79
  1119. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/automate-with-json.md +0 -159
  1120. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/docker-mode.md +0 -256
  1121. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/navigate-code.md +0 -116
  1122. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/parallel-processing.md +0 -179
  1123. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/project-tool-detection.md +0 -320
  1124. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/type-check-code.md +0 -46
  1125. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/use-daemon-mode.md +0 -78
  1126. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/wsl2-optimization.md +0 -227
  1127. package/tools/vds-scripts/lsp_orchestrator/docs/index.md +0 -88
  1128. package/tools/vds-scripts/lsp_orchestrator/docs/operator-hover-definition.md +0 -143
  1129. package/tools/vds-scripts/lsp_orchestrator/docs/reference/commands.md +0 -581
  1130. package/tools/vds-scripts/lsp_orchestrator/docs/reference/configuration.md +0 -422
  1131. package/tools/vds-scripts/lsp_orchestrator/docs/tutorials/00-quick-start.md +0 -169
  1132. package/tools/vds-scripts/lsp_orchestrator/pyproject.toml +0 -63
  1133. package/tools/vds-scripts/lsp_orchestrator/src/test_file.py +0 -5
  1134. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/__init__.py +0 -3
  1135. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/aggregator.py +0 -340
  1136. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/basedpyright_runner.py +0 -167
  1137. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/cli.py +0 -3370
  1138. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/code_actions.py +0 -79
  1139. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/core.py +0 -3295
  1140. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_client.py +0 -672
  1141. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_manager.py +0 -577
  1142. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_server.py +0 -1040
  1143. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/__init__.py +0 -9
  1144. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/project_detector.py +0 -537
  1145. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/formatters.py +0 -141
  1146. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ipc_protocol.py +0 -225
  1147. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_client.py +0 -957
  1148. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_router.py +0 -335
  1149. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mcp_server.py +0 -181
  1150. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/__init__.py +0 -201
  1151. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_detector.py +0 -646
  1152. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_tools.py +0 -114
  1153. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models.py +0 -399
  1154. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mypy_runner.py +0 -209
  1155. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/protocols.py +0 -52
  1156. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_lsp_client.py +0 -109
  1157. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_runner.py +0 -44
  1158. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/utils.py +0 -959
  1159. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/workspace_indexer.py +0 -1037
  1160. package/tools/vds-scripts/lsp_orchestrator/test_workspace_lsp.py +0 -6
  1161. package/tools/vds-scripts/lsp_orchestrator/tests/__init__.py +0 -1
  1162. package/tools/vds-scripts/lsp_orchestrator/tests/conftest.py +0 -6
  1163. package/tools/vds-scripts/lsp_orchestrator/tests/test_aggregator.py +0 -59
  1164. package/tools/vds-scripts/lsp_orchestrator/tests/test_cli.py +0 -111
  1165. package/tools/vds-scripts/lsp_orchestrator/tests/test_detect_tools_command.py +0 -186
  1166. package/tools/vds-scripts/lsp_orchestrator/tests/test_formatter_linter_detection.py +0 -519
  1167. package/tools/vds-scripts/lsp_orchestrator/tests/test_integration_phase9_10_11.py +0 -367
  1168. package/tools/vds-scripts/lsp_orchestrator/tests/test_mypy_runner.py +0 -482
  1169. package/tools/vds-scripts/lsp_orchestrator/tests/test_package_manager_detection.py +0 -399
  1170. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase10.py +0 -389
  1171. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase11.py +0 -327
  1172. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase12_integration.py +0 -634
  1173. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase9.py +0 -196
  1174. package/tools/vds-scripts/lsp_orchestrator/tests/test_project_detector.py +0 -377
  1175. package/tools/vds-scripts/lsp_orchestrator/tests/test_test_runner_detection.py +0 -549
  1176. package/tools/vds-scripts/lsp_orchestrator/tests/test_type_checker_routing.py +0 -362
  1177. package/tools/vds-scripts/lsp_orchestrator/tests/test_workspace_indexer.py +0 -144
  1178. package/tools/vds-scripts/markdown_orchestrator/README.md +0 -72
  1179. package/tools/vds-scripts/markdown_orchestrator/pyproject.toml +0 -39
  1180. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/__init__.py +0 -5
  1181. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/cli.py +0 -102
  1182. package/tools/vds-scripts/multi_agent_orchestrator/Dockerfile +0 -65
  1183. package/tools/vds-scripts/multi_agent_orchestrator/README.md +0 -306
  1184. package/tools/vds-scripts/multi_agent_orchestrator/postman/README.md +0 -264
  1185. package/tools/vds-scripts/multi_agent_orchestrator/postman/TEST_RESULTS_SUMMARY.md +0 -197
  1186. package/tools/vds-scripts/multi_agent_orchestrator/postman/VDS-Multi-Agent-Orchestrator-API.postman_collection.json +0 -1010
  1187. package/tools/vds-scripts/multi_agent_orchestrator/postman/environments/local-development.postman_environment.json +0 -55
  1188. package/tools/vds-scripts/multi_agent_orchestrator/postman/test-results.json +0 -24146
  1189. package/tools/vds-scripts/multi_agent_orchestrator/pyproject.toml +0 -63
  1190. package/tools/vds-scripts/multi_agent_orchestrator/run_api.py +0 -9
  1191. package/tools/vds-scripts/multi_agent_orchestrator/run_mock_api.py +0 -9
  1192. package/tools/vds-scripts/multi_agent_orchestrator/simple_test.py +0 -53
  1193. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/__init__.py +0 -25
  1194. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/agent_pool.py +0 -433
  1195. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/__init__.py +0 -5
  1196. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/main.py +0 -722
  1197. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/mock_main.py +0 -812
  1198. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/change_log.py +0 -515
  1199. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/cli.py +0 -424
  1200. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/config.py +0 -220
  1201. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/conflict_resolver.py +0 -462
  1202. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/coordinator.py +0 -627
  1203. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/models.py +0 -389
  1204. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/progress_dashboard.py +0 -380
  1205. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/redis_client.py +0 -245
  1206. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/scheduler_subscriber.py +0 -272
  1207. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_manager.py +0 -536
  1208. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_tracking.py +0 -550
  1209. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/vds_ai_memory_client.py +0 -352
  1210. package/tools/vds-scripts/multi_agent_orchestrator/test_complete_system.py +0 -149
  1211. package/tools/vds-scripts/multi_agent_orchestrator/test_infrastructure_only.py +0 -194
  1212. package/tools/vds-scripts/multi_agent_orchestrator/test_integration.py +0 -108
  1213. package/tools/vds-scripts/multi_agent_orchestrator/tests/__init__.py +0 -1
  1214. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_agent_registration_credential_validator.py +0 -223
  1215. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_config.py +0 -210
  1216. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_models.py +0 -195
  1217. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_w9_agent_routes.py +0 -321
  1218. package/tools/vds-scripts/openapi_orchestrator/README.md +0 -197
  1219. package/tools/vds-scripts/openapi_orchestrator/pyproject.toml +0 -106
  1220. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/__init__.py +0 -29
  1221. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/cli.py +0 -345
  1222. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/full_validator.py +0 -183
  1223. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/spec_validator.py +0 -197
  1224. package/tools/vds-scripts/openapi_orchestrator/tests/__init__.py +0 -1
  1225. package/tools/vds-scripts/openapi_orchestrator/tests/test_cli.py +0 -234
  1226. package/tools/vds-scripts/openapi_orchestrator/tests/test_full_validator.py +0 -203
  1227. package/tools/vds-scripts/openapi_orchestrator/tests/test_spec_validator.py +0 -295
  1228. package/tools/vds-scripts/pdf_orchestrator/.dockerignore +0 -93
  1229. package/tools/vds-scripts/pdf_orchestrator/.env.example +0 -40
  1230. package/tools/vds-scripts/pdf_orchestrator/.ruff_rules.py +0 -350
  1231. package/tools/vds-scripts/pdf_orchestrator/.yamllint.yml +0 -43
  1232. package/tools/vds-scripts/pdf_orchestrator/DEVELOPMENT_PLAN.md +0 -80
  1233. package/tools/vds-scripts/pdf_orchestrator/Dockerfile +0 -87
  1234. package/tools/vds-scripts/pdf_orchestrator/README.md +0 -608
  1235. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.md +0 -6
  1236. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.pdf +0 -0
  1237. package/tools/vds-scripts/pdf_orchestrator/config/alertmanager.yml +0 -83
  1238. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.prod.yml +0 -98
  1239. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.yml +0 -40
  1240. package/tools/vds-scripts/pdf_orchestrator/config/redis.conf +0 -78
  1241. package/tools/vds-scripts/pdf_orchestrator/docs/COMPETITIVE_ANALYSIS_REPORT.md +0 -309
  1242. package/tools/vds-scripts/pdf_orchestrator/docs/FEATURES_GUIDE.md +0 -518
  1243. package/tools/vds-scripts/pdf_orchestrator/docs/MULTI_USER_DEPLOYMENT_GUIDE.md +0 -615
  1244. package/tools/vds-scripts/pdf_orchestrator/docs/USER_GUIDE.md +0 -829
  1245. package/tools/vds-scripts/pdf_orchestrator/pyproject.toml +0 -87
  1246. package/tools/vds-scripts/pdf_orchestrator/pytest.ini +0 -71
  1247. package/tools/vds-scripts/pdf_orchestrator/ruff.toml +0 -6
  1248. package/tools/vds-scripts/pdf_orchestrator/scripts/debug_security_report.py +0 -59
  1249. package/tools/vds-scripts/pdf_orchestrator/scripts/demo_library_selector.py +0 -109
  1250. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_project_stats.py +0 -52
  1251. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_styled_pdf.py +0 -95
  1252. package/tools/vds-scripts/pdf_orchestrator/scripts/migrate_render_pdfs.py +0 -285
  1253. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.bat +0 -283
  1254. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.sh +0 -324
  1255. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/__init__.py +0 -5
  1256. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/cli.py +0 -542
  1257. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/config.py +0 -33
  1258. package/tools/vds-scripts/pdf_orchestrator/tests/README.md +0 -650
  1259. package/tools/vds-scripts/pdf_orchestrator/tests/__init__.py +0 -0
  1260. package/tools/vds-scripts/pdf_orchestrator/tests/conftest.py +0 -520
  1261. package/tools/vds-scripts/pdf_orchestrator/tests/requirements.txt +0 -51
  1262. package/tools/vds-scripts/pdf_orchestrator/tests/run_tests.py +0 -659
  1263. package/tools/vds-scripts/pdf_orchestrator/tests/test_config.py +0 -36
  1264. package/tools/vds-scripts/progress_report_orchestrator/Dockerfile +0 -77
  1265. package/tools/vds-scripts/progress_report_orchestrator/README.md +0 -39
  1266. package/tools/vds-scripts/progress_report_orchestrator/alembic/env.py +0 -42
  1267. package/tools/vds-scripts/progress_report_orchestrator/alembic/script.py.mako +0 -28
  1268. package/tools/vds-scripts/progress_report_orchestrator/alembic/versions/0001_initial_progress_schema.py +0 -180
  1269. package/tools/vds-scripts/progress_report_orchestrator/alembic.ini +0 -67
  1270. package/tools/vds-scripts/progress_report_orchestrator/pyproject.toml +0 -67
  1271. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/__init__.py +0 -3
  1272. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/__init__.py +0 -1
  1273. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/endpoint_scanner.py +0 -238
  1274. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/git_activity.py +0 -159
  1275. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/hexagonal.py +0 -100
  1276. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/test_scanner.py +0 -136
  1277. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/cli.py +0 -743
  1278. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/config.py +0 -50
  1279. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/__init__.py +0 -12
  1280. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/alembic_filters.py +0 -64
  1281. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/memory.py +0 -82
  1282. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/__init__.py +0 -1
  1283. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/analysis.py +0 -84
  1284. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/report.py +0 -117
  1285. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/topology.py +0 -101
  1286. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/__init__.py +0 -1
  1287. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/kg_parser.py +0 -252
  1288. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/uc_reader.py +0 -159
  1289. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/__init__.py +0 -1
  1290. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/concurrency.py +0 -39
  1291. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/llm_eval.py +0 -570
  1292. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/report.py +0 -1256
  1293. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/structural.py +0 -384
  1294. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/sync.py +0 -143
  1295. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/__init__.py +0 -5
  1296. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/engine.py +0 -105
  1297. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/templates.py +0 -236
  1298. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/scheduler_subscriber.py +0 -238
  1299. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/README.md +0 -56
  1300. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/__init__.py +0 -1
  1301. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-architecture-reviewer/SKILL.md +0 -67
  1302. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-endpoint-matcher/SKILL.md +0 -67
  1303. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/__init__.py +0 -1
  1304. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/schema.py +0 -625
  1305. package/tools/vds-scripts/progress_report_orchestrator/tests/__init__.py +0 -0
  1306. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/__init__.py +0 -0
  1307. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/.gitkeep +0 -0
  1308. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/__init__.py +0 -0
  1309. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/doc-dependencies.yaml +0 -79
  1310. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-docs.yaml +0 -478
  1311. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-services.yaml +0 -18
  1312. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/registry.yaml +0 -346
  1313. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/phase3_baseline_standard.md +0 -564
  1314. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/__init__.py +0 -0
  1315. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/test_checkpoint.py +0 -276
  1316. package/tools/vds-scripts/progress_report_orchestrator/tests/test_alembic_migrations.py +0 -265
  1317. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/__init__.py +0 -0
  1318. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_analyzers.py +0 -267
  1319. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_bounded_gather.py +0 -176
  1320. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_cli_phase_report.py +0 -119
  1321. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_delta.py +0 -169
  1322. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_error_handling.py +0 -150
  1323. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_gate_exit_codes.py +0 -230
  1324. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_git_activity.py +0 -215
  1325. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_kg_parser.py +0 -267
  1326. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_autodetect.py +0 -183
  1327. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_eval.py +0 -529
  1328. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_memory_integration.py +0 -151
  1329. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_migration_contract.py +0 -254
  1330. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_mode_rendering.py +0 -576
  1331. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_models.py +0 -251
  1332. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_progress_llm_config.py +0 -67
  1333. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_recommendations.py +0 -480
  1334. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_report_enhancements.py +0 -415
  1335. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_resume_reload.py +0 -343
  1336. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_trend_regression.py +0 -294
  1337. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_uc_reader.py +0 -169
  1338. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_valence_gap.py +0 -293
  1339. package/tools/vds-scripts/project-cycle-report.json +0 -14
  1340. package/tools/vds-scripts/project-dependency-graph.json +0 -11361
  1341. package/tools/vds-scripts/project-topology.json +0 -99
  1342. package/tools/vds-scripts/public_interface_boundary_orchestrator/pyproject.toml +0 -18
  1343. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/__init__.py +0 -0
  1344. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/cli.py +0 -232
  1345. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/__init__.py +0 -0
  1346. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/test_cli.py +0 -108
  1347. package/tools/vds-scripts/research_orchestrator/README.md +0 -68
  1348. package/tools/vds-scripts/research_orchestrator/py.typed +0 -0
  1349. package/tools/vds-scripts/research_orchestrator/pyproject.toml +0 -95
  1350. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/__init__.py +0 -3
  1351. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/_env.py +0 -11
  1352. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/cli.py +0 -335
  1353. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/config.py +0 -43
  1354. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/__init__.py +0 -0
  1355. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/models.py +0 -89
  1356. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/scoring.py +0 -102
  1357. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/exceptions.py +0 -78
  1358. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/http_client.py +0 -160
  1359. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/logging.py +0 -49
  1360. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/__init__.py +0 -0
  1361. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/formatters.py +0 -93
  1362. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/py.typed +0 -1
  1363. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/__init__.py +0 -0
  1364. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/build.py +0 -156
  1365. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/format.py +0 -147
  1366. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/__init__.py +0 -0
  1367. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health.py +0 -66
  1368. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health_graph.py +0 -52
  1369. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/registry.py +0 -127
  1370. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/search.py +0 -230
  1371. package/tools/vds-scripts/research_orchestrator/tests/__init__.py +0 -0
  1372. package/tools/vds-scripts/research_orchestrator/tests/conftest.py +0 -53
  1373. package/tools/vds-scripts/research_orchestrator/tests/test_cli.py +0 -222
  1374. package/tools/vds-scripts/research_orchestrator/tests/test_config.py +0 -23
  1375. package/tools/vds-scripts/research_orchestrator/tests/test_exceptions.py +0 -62
  1376. package/tools/vds-scripts/research_orchestrator/tests/test_formatters.py +0 -89
  1377. package/tools/vds-scripts/research_orchestrator/tests/test_graph_integration.py +0 -149
  1378. package/tools/vds-scripts/research_orchestrator/tests/test_http_client.py +0 -134
  1379. package/tools/vds-scripts/research_orchestrator/tests/test_report_build.py +0 -128
  1380. package/tools/vds-scripts/research_orchestrator/tests/test_report_format.py +0 -91
  1381. package/tools/vds-scripts/research_orchestrator/tests/test_scoring.py +0 -95
  1382. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/__init__.py +0 -1
  1383. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_health.py +0 -139
  1384. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_registry.py +0 -135
  1385. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_search.py +0 -238
  1386. package/tools/vds-scripts/run-history.json +0 -26
  1387. package/tools/vds-scripts/schema_converter/README.md +0 -109
  1388. package/tools/vds-scripts/schema_converter/pyproject.toml +0 -37
  1389. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/__init__.py +0 -3
  1390. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/cli.py +0 -50
  1391. package/tools/vds-scripts/schema_converter/tests/__init__.py +0 -0
  1392. package/tools/vds-scripts/schema_converter/tests/test_json_schema_generator.py +0 -115
  1393. package/tools/vds-scripts/schema_converter/tests/test_mermaid_generator.py +0 -112
  1394. package/tools/vds-scripts/schema_converter/tests/test_parser.py +0 -111
  1395. package/tools/vds-scripts/schema_converter/tests/test_plantuml_generator.py +0 -112
  1396. package/tools/vds-scripts/schema_converter/tests/test_plantuml_validator.py +0 -69
  1397. package/tools/vds-scripts/schema_converter/tests/test_prisma_generator.py +0 -113
  1398. package/tools/vds-scripts/schema_converter/tests/test_sql_generator.py +0 -138
  1399. package/tools/vds-scripts/schema_converter/tests/test_typeorm_generator.py +0 -110
  1400. package/tools/vds-scripts/schema_converter/tests/test_validators.py +0 -96
  1401. package/tools/vds-scripts/spec_orchestrator/README.md +0 -13
  1402. package/tools/vds-scripts/spec_orchestrator/pyproject.toml +0 -40
  1403. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/__init__.py +0 -5
  1404. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/cli.py +0 -162
  1405. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/core.py +0 -575
  1406. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/sync.py +0 -306
  1407. package/tools/vds-scripts/spec_orchestrator/tests/__init__.py +0 -0
  1408. package/tools/vds-scripts/spec_orchestrator/tests/test_frontmatter_drift.py +0 -243
  1409. package/tools/vds-scripts/spec_orchestrator/tests/test_sync.py +0 -342
  1410. package/tools/vds-scripts/structure_orchestrator/README.md +0 -60
  1411. package/tools/vds-scripts/structure_orchestrator/pyproject.toml +0 -103
  1412. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/__init__.py +0 -13
  1413. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/cli.py +0 -308
  1414. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/validator.py +0 -257
  1415. package/tools/vds-scripts/structure_orchestrator/tests/__init__.py +0 -0
  1416. package/tools/vds-scripts/structure_orchestrator/tests/test_cli.py +0 -161
  1417. package/tools/vds-scripts/structure_orchestrator/tests/test_helpers.py +0 -115
  1418. package/tools/vds-scripts/structure_orchestrator/tests/test_validator.py +0 -104
  1419. package/tools/vds-scripts/task_orchestrator/README.md +0 -50
  1420. package/tools/vds-scripts/task_orchestrator/__init__.py +0 -18
  1421. package/tools/vds-scripts/task_orchestrator/pyproject.toml +0 -43
  1422. package/tools/vds-scripts/task_orchestrator/scripts/run_excel_sync.py +0 -36
  1423. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/__init__.py +0 -13
  1424. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/audit.py +0 -134
  1425. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/cli.py +0 -127
  1426. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/debug.py +0 -133
  1427. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/normalize.py +0 -113
  1428. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/refine.py +0 -201
  1429. package/tools/vds-scripts/task_orchestrator/tests/__init__.py +0 -0
  1430. package/tools/vds-scripts/task_orchestrator/tests/test_task_orchestrator.py +0 -84
  1431. package/tools/vds-scripts/temp_query_projects.py +0 -2
  1432. package/tools/vds-scripts/test_small.md +0 -1
  1433. package/tools/vds-scripts/text_utils_orchestrator/pyproject.toml +0 -20
  1434. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/__init__.py +0 -7
  1435. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/i18n.py +0 -143
  1436. package/tools/vds-scripts/text_utils_orchestrator/tests/__init__.py +0 -0
  1437. package/tools/vds-scripts/text_utils_orchestrator/tests/test_i18n.py +0 -53
  1438. package/tools/vds-scripts/upgrade_major.py +0 -61
  1439. package/tools/vds-scripts/upgrade_major_v2.py +0 -64
  1440. package/tools/vds-scripts/verify_violations.py +0 -57
  1441. package/tools/vds-scripts/workflow-summary.json +0 -325
  1442. package/tools/vds-scripts/workflow-summary.md +0 -8
@@ -1,1943 +0,0 @@
1
- """Configuration management for VDS Audit Orchestrator.
2
-
3
- This module provides centralized configuration with support for:
4
- 1. The shared VDS audit config file under the resolved config root
5
- 2. Environment variables (VDS_AUDIT_* prefix)
6
- 3. Sensible defaults
7
-
8
- Configuration Precedence:
9
- 1. Environment variables (highest priority)
10
- 2. Shared audit config file (non-sensitive settings only)
11
- 3. Default values (lowest priority)
12
-
13
- Example audit.yaml:
14
- llm:
15
- enabled: true
16
- protocol: openai
17
- base_url: https://api.openai.com/v1
18
- model_simple: qwen3-coder:8b
19
- model_standard: qwen3-coder:30b
20
-
21
- embedding:
22
- model: bge-m3
23
- dimensions: 1024
24
-
25
- paths:
26
- template_dir: ~/audit/templates
27
- output_dir: ./reports
28
-
29
- features:
30
- checkpoint_enabled: true
31
- """
32
-
33
- from __future__ import annotations
34
-
35
- import json
36
- import os
37
- from enum import StrEnum
38
- from pathlib import Path
39
- from typing import Any, Literal, cast
40
- from urllib.parse import urlparse
41
-
42
- import structlog
43
- from pydantic import BaseModel, Field, SecretStr, field_validator, model_validator
44
- from pydantic_settings import BaseSettings, SettingsConfigDict
45
- from vds_agent_core.config import (
46
- VDS_BASE_SETTINGS_CONFIG,
47
- AgentRuntimeMode,
48
- LangGraphConfig,
49
- LLMProtocolType,
50
- LLMRuntimeConfig,
51
- NonProgressPolicyConfig,
52
- NonProgressPreset,
53
- )
54
- from vds_agent_core.config import (
55
- AgenticConfig as _CoreAgenticConfig,
56
- )
57
- from vds_cli_common.env import load_shared_env
58
- from vds_cli_common.paths import get_vds_cache_root, get_vds_config_root
59
- from vds_platform_core.credentials import resolve_secret
60
- from vds_platform_core.serialization import safe_dump
61
-
62
- logger = structlog.get_logger(__name__)
63
-
64
- # Default config directory
65
- DEFAULT_CONFIG_DIR = get_vds_config_root()
66
- DEFAULT_CONFIG_FILE = DEFAULT_CONFIG_DIR / "audit.yaml"
67
-
68
- # FR-79 SLA defaults (TSK-660.36)
69
- SLA_ROW_LATENCY_P95_SEC = 45.0
70
- SLA_MEMORY_CEILING_MB = 2048
71
- SLA_THROUGHPUT_ROWS_PER_MIN = 3.0
72
-
73
-
74
- def _is_truthy(value: str | None, *, default: bool = True) -> bool:
75
- if value is None:
76
- return default
77
- return value.strip().lower() in {"1", "true", "yes", "on"}
78
-
79
-
80
- def _parse_strict_bool_env(key: str, raw_value: str) -> bool:
81
- normalized = raw_value.strip().lower()
82
- if normalized == "true":
83
- return True
84
- if normalized == "false":
85
- return False
86
- raise ValueError(f"Invalid {key}={raw_value!r}. Expected 'true' or 'false'.")
87
-
88
-
89
- def _resolve_base_url(base_url: str | None) -> str | None:
90
- return str(base_url or "").strip() or None
91
-
92
-
93
- class FeatureFlag(StrEnum):
94
- """Feature flag identifiers."""
95
-
96
- ADAPTIVE_WEIGHTING_ENABLED = "adaptive_weighting_enabled"
97
- CHECKPOINT_ENABLED = "checkpoint_enabled"
98
- LLM_ENABLED = "llm_enabled"
99
- SEARCH_STRATEGY_ENABLED = "search_strategy_enabled"
100
- ADVISORY_SEARCH_STRATEGY_ENABLED = "advisory_search_strategy_enabled"
101
- SCOPE_ESCALATION_ENABLED = "scope_escalation_enabled"
102
- AST_GREP_ENABLED = "ast_grep_enabled"
103
- CROSS_REPO_EVIDENCE_ENABLED = "cross_repo_evidence_enabled"
104
- KNOWLEDGE_AGENT_ENABLED = "knowledge_agent_enabled"
105
- KNOWLEDGE_ACCUMULATION_ENABLED = "knowledge_accumulation_enabled"
106
- KNOWLEDGE_RETRIEVAL_ENABLED = "knowledge_retrieval_enabled"
107
- MANUAL_CHECK_GATING_ENABLED = "manual_check_gating_enabled"
108
- CROSS_REPO_CONFIG_ENABLED = "cross_repo_config_enabled"
109
- REQUIREMENT_SCOPE_ENABLED = "requirement_scope_enabled"
110
- SHARED_RESOURCE_INDEXING_ENABLED = "shared_resource_indexing_enabled"
111
- INSTRUCTION_ANALYSIS_ENABLED = "instruction_analysis_enabled"
112
-
113
-
114
- TrustTier = Literal["internal", "external-verified", "external-unverified"]
115
- LLM_MODEL_TIER_SENTINEL = "__VDS_MODEL_REQUIRED__"
116
- LLM_MODEL_TIER_ENV_MAP: dict[str, str] = {
117
- "model_simple": "VDS_AUDIT_LLM__MODEL_SIMPLE",
118
- "model_standard": "VDS_AUDIT_LLM__MODEL_STANDARD",
119
- "model_complex": "VDS_AUDIT_LLM__MODEL_COMPLEX",
120
- }
121
- LLM_REASONING_EFFORT_VALUES: tuple[str, ...] = ("none", "minimal", "low", "medium", "high", "xhigh")
122
-
123
- # Mapping from VDS canonical reasoning effort to Anthropic anthropic_effort.
124
- # Anthropic accepts: low, medium, high, max. "none" and "minimal" have no
125
- # Anthropic equivalent and are mapped to None (omit).
126
- _VDS_TO_ANTHROPIC_EFFORT: dict[str, str | None] = {
127
- "none": None,
128
- "minimal": None,
129
- "low": "low",
130
- "medium": "medium",
131
- "high": "high",
132
- "xhigh": "max",
133
- }
134
-
135
-
136
- def normalize_reasoning_effort(value: str | None, *, key: str = "reasoning_effort") -> str | None:
137
- """Normalize and validate LLM reasoning effort values."""
138
- if value is None:
139
- return None
140
- normalized = str(value).strip().lower()
141
- if normalized not in LLM_REASONING_EFFORT_VALUES:
142
- allowed = ", ".join(LLM_REASONING_EFFORT_VALUES)
143
- raise ValueError(f"Invalid {key}={value!r}. Allowed values: {allowed}.")
144
- return normalized
145
-
146
-
147
- def inject_reasoning_effort(
148
- settings: dict[str, Any],
149
- reasoning_effort: str | None,
150
- protocol: LLMProtocolType | str | None = None,
151
- ) -> None:
152
- """Inject provider-appropriate reasoning effort into model settings dict.
153
-
154
- For ``anthropic`` protocol, maps to ``anthropic_effort`` (accepted values:
155
- low, medium, high, max). For all other protocols (openai, openai-codex,
156
- gemini, ollama), maps to ``openai_reasoning_effort``.
157
- """
158
- if reasoning_effort is None:
159
- return
160
- protocol_value = str(getattr(protocol, "value", protocol) or "").strip().lower()
161
- if protocol_value == "anthropic":
162
- anthropic_value = _VDS_TO_ANTHROPIC_EFFORT.get(reasoning_effort)
163
- if anthropic_value is not None:
164
- settings["anthropic_effort"] = anthropic_value
165
- else:
166
- settings["openai_reasoning_effort"] = reasoning_effort
167
-
168
-
169
- class EmbeddingConfig(BaseModel):
170
- """Embedding model configuration for corpus vectorization (Phase 47).
171
-
172
- BGE-M3 is the default embedding model, validated by VN-MTEB benchmark (EACL 2026)
173
- as the best-performing model for Vietnamese text. Nomic-embed-text is the fallback
174
- when BGE-M3 is unavailable.
175
-
176
- Reference: https://arxiv.org/abs/2502.08569 (VN-MTEB: Vietnamese Massive Text Embedding Benchmark)
177
- """
178
-
179
- # Primary embedding model
180
- model: str = Field(
181
- default="bge-m3",
182
- description="Default embedding model for corpus vectorization (bge-m3 recommended for Vietnamese)",
183
- )
184
- dimensions: int = Field(
185
- default=1024,
186
- description="Embedding vector dimensions (1024 for bge-m3, 768 for nomic-embed-text)",
187
- )
188
-
189
- # Fallback configuration
190
- fallback_model: str = Field(
191
- default="nomic-embed-text",
192
- description="Fallback embedding model when primary is unavailable",
193
- )
194
- fallback_dimensions: int = Field(
195
- default=768,
196
- description="Fallback model dimensions (768 for nomic-embed-text)",
197
- )
198
-
199
- # Batch and timeout settings
200
- batch_size: int = Field(default=25, ge=1, le=25, description="Embedding batch size (max 25)")
201
- timeout_seconds: float = Field(default=30.0, ge=5.0, description="Embedding request timeout in seconds")
202
- retries: int = Field(default=2, ge=0, description="Number of retries for failed embedding requests")
203
- base_url: str | None = Field(
204
- default=None,
205
- description="Embedding API base URL override (defaults to llm.base_url, then http://127.0.0.1:11434)",
206
- )
207
- api_key: SecretStr | None = Field(
208
- default=None,
209
- description="Embedding API key override (read from VDS_AUDIT_EMBEDDING__API_KEY when provided)",
210
- )
211
-
212
-
213
- class LLMConfig(LLMRuntimeConfig):
214
- """LLM protocol configuration — inherits from vds_agent_core.config.LLMRuntimeConfig.
215
-
216
- Overrides env_prefix to VDS_AUDIT__ for audit-specific env vars.
217
- Adds audit-specific fields on top of the shared runtime config.
218
- """
219
-
220
- model_config = SettingsConfigDict(
221
- env_prefix="VDS_AUDIT__",
222
- **VDS_BASE_SETTINGS_CONFIG,
223
- )
224
-
225
- # Audit-specific fields (not in LLMRuntimeConfig)
226
- use_pydantic_ai: bool = Field(default=True, description="Use PydanticAI agents for LLM calls")
227
- api_key: SecretStr | None = None
228
- base_url: str | None = None
229
- stream: bool = Field(
230
- default=False,
231
- description="Enable provider streaming mode for Anthropic-compatible SSE endpoints",
232
- )
233
- agent_stream: bool = Field(
234
- default=True,
235
- description="Enable streaming PydanticAI agent execution mode (run_stream) for supported protocols",
236
- )
237
- reasoning_effort: str | None = Field(
238
- default=None,
239
- description="OpenAI-compatible reasoning effort override: none|minimal|low|medium|high|xhigh",
240
- )
241
-
242
- ollama_num_ctx: int | None = Field(
243
- default=None,
244
- ge=1024,
245
- le=262_144,
246
- description="Optional Ollama num_ctx override for native /api/chat calls",
247
- )
248
-
249
- # Models (tiered)
250
- model_simple: str = LLM_MODEL_TIER_SENTINEL
251
- model_standard: str = LLM_MODEL_TIER_SENTINEL
252
- model_complex: str = LLM_MODEL_TIER_SENTINEL
253
-
254
- # Cost controls
255
- max_cost_per_repo: float = 2.00
256
- max_tokens_per_request: int = 12000
257
- code_review_max_total_chars: int = Field(
258
- default=30_000,
259
- ge=2_000,
260
- le=120_000,
261
- description="Maximum total code-context chars embedded in non-agentic code-review prompts",
262
- )
263
- code_review_max_files: int = Field(
264
- default=20,
265
- ge=1,
266
- le=50,
267
- description="Maximum code-pack files selected for non-agentic code-review prompts",
268
- )
269
- code_review_layer_enabled: bool = Field(
270
- default=True,
271
- description="Enable Layer-2 semantic code-review LLM pass before deep quality analysis",
272
- )
273
-
274
- # Cache settings
275
- cache_enabled: bool = True
276
- cache_ttl_hours: int = 24
277
-
278
- # PydanticAI retry policy (Phase 8)
279
- agent_retries: int = Field(default=2, ge=0, description="Model retries for PydanticAI agents")
280
- output_retries: int = Field(
281
- default=2,
282
- ge=0,
283
- description="Output validation retries for PydanticAI agents",
284
- )
285
- agent_timeout_seconds: float = Field(
286
- default=1200.0,
287
- ge=30.0,
288
- le=3600.0,
289
- description="Base timeout budget for agent LLM calls in seconds (generous: 20 min)",
290
- )
291
- agent_timeout_max_seconds: float = Field(
292
- default=3600.0,
293
- ge=60.0,
294
- le=7200.0,
295
- description="Maximum timeout budget for agent LLM calls in seconds (generous: 1 hour)",
296
- )
297
- agent_timeout_extension_seconds: float = Field(
298
- default=600.0,
299
- ge=0.0,
300
- le=1800.0,
301
- description="Per-extension timeout increment for long-running agent calls (generous: 10 min)",
302
- )
303
- agent_timeout_extension_attempts: int = Field(
304
- default=6,
305
- ge=0,
306
- le=10,
307
- description="Maximum timeout extensions for long-running agent calls (generous: 6 attempts)",
308
- )
309
- agent_timeout_heartbeat_seconds: float = Field(
310
- default=30.0,
311
- ge=5.0,
312
- le=300.0,
313
- description="Progress heartbeat interval while waiting on long-running agent calls",
314
- )
315
- agent_rate_limit_retry_attempts: int = Field(
316
- default=5,
317
- ge=0,
318
- le=8,
319
- description="Additional retries for transient provider rate-limit responses (generous: 5)",
320
- )
321
- agent_rate_limit_retry_backoff_seconds: float = Field(
322
- default=1.5,
323
- ge=0.1,
324
- le=60.0,
325
- description="Base exponential backoff in seconds for provider rate-limit retries (generous: 1.5s)",
326
- )
327
- row_failover_profiles: list[str] = Field(
328
- default_factory=list,
329
- description="Ordered fallback runtime profiles for mid-row provider failover",
330
- )
331
- row_failover_max_provider_hops: int = Field(
332
- default=5,
333
- ge=0,
334
- le=10,
335
- description="Maximum provider hops per row evaluation (generous: 5 hops across 17 profiles)",
336
- )
337
- agent_idle_timeout_seconds: float = Field(
338
- default=360.0,
339
- ge=30.0,
340
- le=1800.0,
341
- description="Abort tool-enabled runs when no event progress occurs (generous: 6 min)",
342
- )
343
- row_progress_lease_seconds: int = Field(
344
- default=0,
345
- ge=0,
346
- le=1800,
347
- description="Row progress lease window in seconds (0 disables lease mode)",
348
- )
349
- row_stall_detection_seconds: int = Field(
350
- default=30,
351
- ge=1,
352
- le=900,
353
- description="Row stall detection window in seconds while lease mode is enabled",
354
- )
355
- row_absolute_timeout_ms: int = Field(
356
- default=600_000,
357
- ge=1000,
358
- le=3_600_000,
359
- description="Absolute row timeout ceiling in milliseconds while lease mode is enabled",
360
- )
361
- agent_event_stream_enabled: bool = Field(
362
- default=True,
363
- description="Enable PydanticAI event-stream handler for realtime tool/result logging",
364
- )
365
- agent_event_stream_log_text_deltas: bool = Field(
366
- default=False,
367
- description="Enable verbose realtime text-delta logging from model response stream",
368
- )
369
- agent_trace_payload_enabled: bool = Field(
370
- default=False,
371
- description="Emit payload-level prompt/response/tool trace diagnostics",
372
- )
373
- agent_trace_payload_max_chars: int = Field(
374
- default=20_000,
375
- ge=1_000,
376
- le=200_000,
377
- description="Maximum characters kept per traced payload field",
378
- )
379
-
380
- # Toolset integration (Phase 8)
381
- mcp_toolsets_enabled: bool = Field(default=False, description="Enable MCP toolsets for agents")
382
- mcp_toolset_type: str = Field(default="fastmcp", description="Toolset type: fastmcp or mcp")
383
- mcp_config_path: str | None = Field(default=None, description="Path to MCP config (JSON/YAML)")
384
- skills_toolset_enabled: bool = Field(default=False, description="Enable AgentSkills toolset")
385
- skills_directories: list[str] = Field(default_factory=list, description="Skill directories for SkillsToolset")
386
- skills_allowlist: list[str] = Field(
387
- default_factory=list,
388
- max_length=200,
389
- description="Optional allowlist of skill names for SkillsToolset",
390
- )
391
- skills_allow_script_execution: bool = Field(
392
- default=False,
393
- description="Disable skill script execution by default unless explicitly opted in",
394
- )
395
- skills_allowed_trust_tiers: list[TrustTier] = Field(
396
- default_factory=lambda: [cast("TrustTier", "internal")],
397
- min_length=1,
398
- max_length=3,
399
- description="Allowed skill trust tiers",
400
- )
401
- skills_default_trust_tier: TrustTier = Field(
402
- default="external-unverified",
403
- description="Default trust tier for skills not present in skills_trust_tiers",
404
- )
405
- skills_trust_tiers: dict[str, TrustTier] = Field(
406
- default_factory=dict,
407
- max_length=200,
408
- description="Optional mapping of skill name to trust tier",
409
- )
410
- skills_scope_map: dict[str, list[str]] = Field(
411
- default_factory=dict,
412
- description="Optional mapping of skill name to allowed scopes",
413
- )
414
-
415
- @field_validator("skills_allowlist")
416
- @classmethod
417
- def _validate_skills_allowlist(cls, value: list[str]) -> list[str]:
418
- normalized = [item.strip() for item in value if item.strip()]
419
- if len(normalized) != len(value):
420
- raise ValueError("skills_allowlist entries must be non-empty strings")
421
- return normalized
422
-
423
- @field_validator("skills_allowed_trust_tiers")
424
- @classmethod
425
- def _validate_skills_allowed_trust_tiers(
426
- cls,
427
- value: list[TrustTier],
428
- ) -> list[TrustTier]:
429
- deduped = list(dict.fromkeys(value))
430
- if not deduped:
431
- raise ValueError("skills_allowed_trust_tiers must contain at least one tier")
432
- return deduped
433
-
434
- @field_validator("reasoning_effort")
435
- @classmethod
436
- def _validate_reasoning_effort(cls, value: str | None) -> str | None:
437
- return normalize_reasoning_effort(value)
438
-
439
-
440
- class PathsConfig(BaseModel):
441
- """File path configuration."""
442
-
443
- config_dir: Path = Field(default_factory=get_vds_config_root)
444
- template_dir: Path = Field(default_factory=lambda: get_vds_config_root() / "audit" / "templates")
445
- checkpoint_dir: Path = Field(default_factory=lambda: get_vds_config_root() / "audit" / "checkpoints")
446
- cache_dir: Path = Field(default_factory=lambda: get_vds_cache_root() / "vds_audit")
447
- materials_cache_dir: Path = Field(default_factory=lambda: get_vds_cache_root() / "confluence")
448
- output_dir: Path = Field(default_factory=lambda: Path.cwd() / "audit_reports")
449
-
450
- def ensure_dirs_exist(self) -> None:
451
- """Create directories if they don't exist."""
452
- for path_attr in ["template_dir", "checkpoint_dir", "cache_dir", "materials_cache_dir", "output_dir"]:
453
- path = getattr(self, path_attr)
454
- path.mkdir(parents=True, exist_ok=True)
455
-
456
-
457
- class FeaturesConfig(BaseModel):
458
- """Feature flags configuration."""
459
-
460
- adaptive_weighting_enabled: bool = True
461
- checkpoint_enabled: bool = True
462
- llm_enabled: bool = False # Disabled by default, requires explicit opt-in
463
- search_strategy_enabled: bool = True # Phase 115: Enabled by default
464
- advisory_search_strategy_enabled: bool = True # Phase 115: Enabled by default
465
- scope_escalation_enabled: bool = True
466
- ast_grep_enabled: bool = True # Phase 116: Enabled by default (gracefully degrades if sg not installed)
467
- cross_repo_evidence_enabled: bool = True # Phase 117: Enabled by default
468
- knowledge_agent_enabled: bool = True # Phase 118: Enabled by default
469
- knowledge_accumulation_enabled: bool = True # Phase 118: Enabled by default
470
- knowledge_retrieval_enabled: bool = True # Phase 118: Enabled by default
471
- manual_check_gating_enabled: bool = True # Phase 122: Enabled by default
472
- cross_repo_config_enabled: bool = True # Phase 122: Enabled by default
473
- requirement_scope_enabled: bool = True # Phase 122: Enabled by default
474
- shared_resource_indexing_enabled: bool = True # Phase 122: Enabled by default
475
- instruction_analysis_enabled: bool = True # Phase 122: Enabled by default
476
-
477
- def is_enabled(self, flag: FeatureFlag) -> bool:
478
- """Check if a specific feature flag is enabled."""
479
- return getattr(self, flag.value, False)
480
-
481
- def with_override(self, **overrides: bool) -> FeaturesConfig:
482
- """Create a new FeaturesConfig instance with overrides.
483
-
484
- Args:
485
- **overrides: Feature flag overrides (e.g., google_sheets_enabled=False)
486
-
487
- Returns:
488
- New FeaturesConfig instance with specified flags overridden
489
- """
490
- values = safe_dump(self)
491
- values.update(overrides)
492
- return FeaturesConfig(**values)
493
-
494
-
495
- class VDSIntegrationConfig(BaseModel):
496
- """VDS services integration configuration."""
497
-
498
- # Phase 118 knowledge agent
499
- knowledge_ttl_days: int = 30
500
- knowledge_confidence_threshold: float = 0.8
501
-
502
- @model_validator(mode="before")
503
- @classmethod
504
- def _apply_phase118_flat_env_aliases(cls, value: Any) -> Any:
505
- if not isinstance(value, dict):
506
- return value
507
- data = dict(value)
508
- if "knowledge_ttl_days" not in data:
509
- env_ttl = os.getenv("VDS_AUDIT_KNOWLEDGE_TTL_DAYS")
510
- if env_ttl:
511
- data["knowledge_ttl_days"] = env_ttl
512
- if "knowledge_confidence_threshold" not in data:
513
- env_threshold = os.getenv("VDS_AUDIT_KNOWLEDGE_CONFIDENCE_THRESHOLD")
514
- if env_threshold:
515
- data["knowledge_confidence_threshold"] = env_threshold
516
- return data
517
-
518
- # Confluence
519
- confluence_base_url: str | None = None
520
- confluence_space_key: str | None = None
521
-
522
- # Phase 120 (FR-120.6) Canonical Checklist integration
523
- backend_checklist_confluence_page_id: str = "88722450"
524
- frontend_checklist_confluence_page_id: str = "88729031"
525
- backend_checklist_google_sheet_gid: str = "2126622691"
526
- backend_checklist_schema_extensions: list[str] = Field(
527
- default_factory=lambda: ["Check = Manual", "Hướng dẫn chi tiết"],
528
- description="Phase 120 widened operator-facing schema fields.",
529
- )
530
-
531
- # Jira
532
- jira_base_url: str | None = None
533
- jira_project_key: str | None = None
534
-
535
- # Bitbucket
536
- bitbucket_base_url: str | None = None
537
- bitbucket_project_key: str | None = None
538
-
539
- # SonarQube
540
- sonarqube_base_url: str | None = None
541
- sonarqube_token: SecretStr | None = None
542
-
543
-
544
- class PerformanceSLAConfig(BaseModel):
545
- """Performance SLA guardrails (FR-79)."""
546
-
547
- row_latency_p95_sec: float = Field(
548
- default=SLA_ROW_LATENCY_P95_SEC,
549
- ge=0.1,
550
- description="Single-row evaluation latency P95 ceiling in seconds",
551
- )
552
- memory_ceiling_mb: int = Field(
553
- default=SLA_MEMORY_CEILING_MB,
554
- ge=128,
555
- description="Peak RSS memory ceiling in MB for a 55-row checklist run",
556
- )
557
- throughput_rows_per_min: float = Field(
558
- default=SLA_THROUGHPUT_ROWS_PER_MIN,
559
- ge=0.1,
560
- description="Minimum sustained checklist throughput in rows per minute",
561
- )
562
-
563
-
564
- _NON_PROGRESS_PRESET_OVERRIDES: dict[NonProgressPreset, dict[str, Any]] = {
565
- NonProgressPreset.STRICT: {
566
- "high_repeat_min_tool_calls": 6,
567
- "fallback_single_tool_min_tool_calls": 4,
568
- "dominant_repetition_ratio": 0.35,
569
- },
570
- NonProgressPreset.BALANCED: {},
571
- NonProgressPreset.PERMISSIVE: {
572
- "high_repeat_min_tool_calls": 20,
573
- "high_repeat_max_repeat": 8,
574
- "high_volume_repetition_min_tool_calls": 40,
575
- },
576
- }
577
-
578
-
579
- def resolve_non_progress_policy(
580
- preset: NonProgressPreset | str | None,
581
- overrides: dict[str, Any] | None = None,
582
- ) -> NonProgressPolicyConfig:
583
- """Resolve final non-progress policy from preset + optional field-level overrides."""
584
- selected = NonProgressPreset.BALANCED if preset is None else NonProgressPreset(str(preset).strip().lower())
585
- base = NonProgressPolicyConfig(**_NON_PROGRESS_PRESET_OVERRIDES[selected])
586
- if not overrides:
587
- return base
588
- return NonProgressPolicyConfig.model_validate(base.model_copy(update=overrides).model_dump())
589
-
590
-
591
- class AgenticConfig(_CoreAgenticConfig):
592
- """Configuration for agentic investigation mode (Phase 41).
593
-
594
- Controls the bounded, read-only tool-enabled investigation path
595
- for CodeAnalysisAgent. Default-enabled for Phase 61 default-on semantics.
596
-
597
- NOTE: The canonical generic base is vds_agent_core.config.AgenticConfig.
598
- This class extends it with audit-specific defaults and additional fields
599
- (strict_no_fallback, synthesis caps, local_openai_* aliases, audit tool_allowlists).
600
- """
601
-
602
- enabled: bool = Field(default=True, description="Enable agentic investigation mode")
603
- max_turns: int = Field(default=40, ge=1, le=100, description="Maximum agent turns per evaluation (generous: 40)")
604
- max_tool_calls: int = Field(
605
- default=400, ge=1, le=1000, description="Maximum total tool calls per evaluation (generous: 400)"
606
- )
607
- tool_timeout_sec: int = Field(
608
- default=60, ge=1, le=300, description="Per-tool call timeout in seconds (generous: 60s)"
609
- )
610
- safe_extensions: list[str] = Field(
611
- default_factory=lambda: [".py", ".md", ".json", ".yaml", ".toml", ".xml", ".js", ".ts", ".java", ".go"],
612
- description="File extensions allowed for read_file tool",
613
- )
614
- max_read_bytes: int = Field(default=200_000, ge=1024, le=10_000_000, description="Maximum bytes per file read")
615
- max_read_lines: int = Field(
616
- default=300,
617
- ge=50,
618
- le=5000,
619
- description="Maximum lines returned by read_file when no explicit line range is provided",
620
- )
621
- strict_no_fallback: bool = Field(
622
- default=True,
623
- description=(
624
- "Fail-fast without budget/guard fallback retries; "
625
- "agent must satisfy tool-grounded requirements in first pass"
626
- ),
627
- )
628
- strict_cap_max_turns: int = Field(
629
- default=20,
630
- ge=1,
631
- le=100,
632
- description="Maximum turns for strict mode (generous: 20, was 10)",
633
- )
634
- strict_cap_max_tool_calls: int = Field(
635
- default=48,
636
- ge=1,
637
- le=1000,
638
- description="Maximum tool calls for strict mode (generous: 48, was 24)",
639
- )
640
- local_openai_synthesis_max_turns: int = Field(
641
- default=8,
642
- ge=1,
643
- le=20,
644
- description="Turn cap for local OpenAI synthesis-retry (generous: 8, was 4)",
645
- )
646
- local_openai_synthesis_max_tool_calls: int = Field(
647
- default=4,
648
- ge=0,
649
- le=20,
650
- description="Tool-call cap for local OpenAI synthesis-retry (generous: 4, was 2)",
651
- )
652
- local_openai_hard_synthesis_max_turns: int = Field(
653
- default=4,
654
- ge=1,
655
- le=10,
656
- description="Turn cap for hard synthesis mode (generous: 4, was 2)",
657
- )
658
- local_openai_hard_synthesis_max_tool_calls: int = Field(
659
- default=2,
660
- ge=0,
661
- le=5,
662
- description="Tool-call cap for hard synthesis mode (generous: 2, was 0)",
663
- )
664
- synthesis_max_turns: int = Field(
665
- default=8,
666
- ge=1,
667
- le=20,
668
- description=(
669
- "Generic turn cap for strict synthesis-retry mode after usage-limit "
670
- "errors (preferred over local_openai_synthesis_max_turns)."
671
- ),
672
- )
673
- synthesis_max_tool_calls: int = Field(
674
- default=2,
675
- ge=0,
676
- le=20,
677
- description=(
678
- "Generic tool-call cap for strict synthesis-retry mode after usage-limit "
679
- "errors (preferred over local_openai_synthesis_max_tool_calls)."
680
- ),
681
- )
682
- hard_synthesis_max_turns: int = Field(
683
- default=4,
684
- ge=1,
685
- le=10,
686
- description="Generic turn cap for hard synthesis mode (generous: 4, was 2)",
687
- )
688
- hard_synthesis_max_tool_calls: int = Field(
689
- default=2,
690
- ge=0,
691
- le=5,
692
- description="Generic tool-call cap for hard synthesis mode (generous: 2, was 0)",
693
- )
694
- non_progress_preset: NonProgressPreset | None = Field(
695
- default=None,
696
- description="Named non-progress policy preset (strict|balanced|permissive)",
697
- )
698
- non_progress_policy: NonProgressPolicyConfig = Field(
699
- default_factory=NonProgressPolicyConfig,
700
- description="Configurable thresholds used by non-progress retry guards",
701
- )
702
- tool_allowlists: dict[str, list[str]] = Field(
703
- default_factory=lambda: {
704
- "code": [
705
- "list_directory",
706
- "read_file",
707
- "grep_search",
708
- "rg_search",
709
- "ast_grep_search",
710
- "get_definition",
711
- "find_references",
712
- "workspace_symbol",
713
- "list_evidence_documents",
714
- "search_evidence",
715
- "read_evidence_document",
716
- "search_evidence_vector",
717
- "search_code_vector",
718
- "vector_retrieval_status",
719
- "list_skills",
720
- "load_skill",
721
- "read_skill_resource",
722
- "run_skill_script",
723
- ],
724
- "docs": [
725
- "list_evidence_documents",
726
- "search_evidence",
727
- "read_evidence_document",
728
- "search_evidence_vector",
729
- ],
730
- "security": [
731
- "list_evidence_documents",
732
- "search_evidence",
733
- "read_evidence_document",
734
- "search_evidence_vector",
735
- "search_code_vector",
736
- "grep_search",
737
- "rg_search",
738
- "ast_grep_search",
739
- "read_file",
740
- ],
741
- },
742
- description="Per-agent tool allowlists used for invalid-tool diagnostics and guardrails",
743
- )
744
-
745
- @model_validator(mode="after")
746
- def _resolve_generic_synthesis_aliases(self) -> AgenticConfig:
747
- """Prefer generic synthesis keys while preserving legacy local_openai overrides."""
748
- if self.synthesis_max_turns == 8 and self.local_openai_synthesis_max_turns != 8:
749
- self.synthesis_max_turns = int(self.local_openai_synthesis_max_turns)
750
- if self.synthesis_max_tool_calls == 2 and self.local_openai_synthesis_max_tool_calls != 2:
751
- self.synthesis_max_tool_calls = int(self.local_openai_synthesis_max_tool_calls)
752
- if self.hard_synthesis_max_turns == 4 and self.local_openai_hard_synthesis_max_turns != 4:
753
- self.hard_synthesis_max_turns = int(self.local_openai_hard_synthesis_max_turns)
754
- if self.hard_synthesis_max_tool_calls == 2 and self.local_openai_hard_synthesis_max_tool_calls != 2:
755
- self.hard_synthesis_max_tool_calls = int(self.local_openai_hard_synthesis_max_tool_calls)
756
- return self
757
-
758
- @field_validator("tool_allowlists")
759
- @classmethod
760
- def _validate_tool_allowlists(
761
- cls,
762
- value: dict[str, list[str]],
763
- ) -> dict[str, list[str]]:
764
- normalized: dict[str, list[str]] = {}
765
- for agent_name, tools in value.items():
766
- key = str(agent_name or "").strip().lower()
767
- if not key:
768
- raise ValueError("agentic.tool_allowlists keys must be non-empty strings")
769
- if not isinstance(tools, list):
770
- raise ValueError("agentic.tool_allowlists values must be lists of tool names")
771
- cleaned: list[str] = []
772
- for tool_name in tools:
773
- tool = str(tool_name or "").strip()
774
- if not tool:
775
- raise ValueError("agentic.tool_allowlists entries must be non-empty strings")
776
- if tool not in cleaned:
777
- cleaned.append(tool)
778
- normalized[key] = cleaned
779
- return normalized
780
-
781
-
782
- class AuditConfig(BaseSettings):
783
- """Main configuration for VDS Audit Orchestrator.
784
-
785
- Configuration is loaded from (in order of precedence):
786
- 1. Environment variables (VDS_AUDIT_* prefix)
787
- 2. Effective audit.yaml config file resolved through the shared VDS path/config layer
788
- 3. Default values
789
-
790
- Environment Variables:
791
- VDS_AUDIT_LLM_ENABLED: Enable LLM features
792
- VDS_AUDIT_LLM_PROTOCOL: LLM protocol (anthropic, openai, gemini, openai-codex)
793
- VDS_AUDIT_TEMPLATE_DIR: Directory for audit templates
794
- VDS_AUDIT_OUTPUT_DIR: Directory for audit reports
795
- VDS_AUDIT_LLM__API_KEY: API key for selected protocol
796
- VDS_AUDIT_LLM__BASE_URL: Optional endpoint override for selected protocol
797
- """
798
-
799
- model_config = SettingsConfigDict(
800
- env_prefix="VDS_AUDIT_",
801
- env_nested_delimiter="__",
802
- case_sensitive=False,
803
- extra="ignore",
804
- )
805
-
806
- # Sub-configurations
807
- llm: LLMConfig = Field(default_factory=LLMConfig)
808
- embedding: EmbeddingConfig = Field(default_factory=EmbeddingConfig)
809
- paths: PathsConfig = Field(default_factory=PathsConfig)
810
- features: FeaturesConfig = Field(default_factory=FeaturesConfig)
811
- vds: VDSIntegrationConfig = Field(default_factory=VDSIntegrationConfig)
812
- langgraph: LangGraphConfig = Field(default_factory=LangGraphConfig)
813
- performance: PerformanceSLAConfig = Field(default_factory=PerformanceSLAConfig)
814
- agentic: AgenticConfig = Field(default_factory=AgenticConfig)
815
-
816
- # General settings
817
- project_root: Path = Field(default_factory=Path.cwd)
818
- default_concurrency: int = 5
819
- default_timeout: int = 300
820
- log_level: str = "INFO"
821
-
822
- @classmethod
823
- def load(cls, config_file: Path | None = None) -> AuditConfig:
824
- """Load configuration from file and environment.
825
-
826
- Args:
827
- config_file: Path to config file (defaults to the effective shared audit config path)
828
-
829
- Returns:
830
- Loaded AuditConfig instance
831
- """
832
- config_file = config_file or DEFAULT_CONFIG_FILE
833
- bootstrap_home = _is_truthy(os.getenv("VDS_AUDIT_BOOTSTRAP_HOME"), default=True)
834
- if bootstrap_home:
835
- DEFAULT_CONFIG_DIR.mkdir(parents=True, exist_ok=True)
836
- if not config_file.exists():
837
- try:
838
- create_sample_config(config_file)
839
- except Exception as exc:
840
- logger.warning("failed_to_create_sample_config", path=str(config_file), error=str(exc))
841
-
842
- if bootstrap_home:
843
- load_shared_env()
844
- # Auto-apply runtime profile defaults when config is loaded outside CLI callback.
845
- # If VDS_AUDIT_PROFILE is explicitly requested, it must override stale active-profile context.
846
- active_profile = (os.getenv("VDS_AUDIT_ACTIVE_PROFILE") or "").strip()
847
- requested_profile = (os.getenv("VDS_AUDIT_PROFILE") or "").strip() or None
848
- should_apply_profile = False
849
- should_apply_profile = requested_profile != active_profile if requested_profile else not active_profile
850
-
851
- if should_apply_profile:
852
- try:
853
- from vds_audit_orchestrator.runtime_profiles import apply_runtime_profile
854
-
855
- activation = apply_runtime_profile(
856
- requested_profile,
857
- force_override=bool(requested_profile),
858
- )
859
- if activation.profile_name:
860
- logger.info(
861
- "auto_runtime_profile_applied",
862
- profile=activation.profile_name,
863
- source=activation.source,
864
- path=str(activation.profile_path),
865
- applied_env_keys=len(activation.applied_env_keys),
866
- )
867
- except Exception as exc:
868
- logger.warning("auto_runtime_profile_apply_failed", error=str(exc))
869
- file_config: dict[str, Any] = {}
870
-
871
- # Load from YAML file if exists
872
- if config_file.exists():
873
- try:
874
- import yaml
875
-
876
- with open(config_file) as f:
877
- file_config = yaml.safe_load(f) or {}
878
- if os.getenv("VDS_AUDIT_LOG_CONFIG_LOADS", "false").strip().lower() in {"1", "true", "yes", "on"}:
879
- logger.info("Loaded config from file", path=str(config_file))
880
- except ImportError:
881
- logger.warning("PyYAML not installed, skipping config file")
882
- except Exception as e:
883
- logger.warning("Failed to load config file", path=str(config_file), error=str(e))
884
-
885
- # Merge with environment variables (env takes precedence)
886
- return cls._merge_config(file_config)
887
-
888
- @classmethod
889
- def _merge_config(cls, file_config: dict[str, Any]) -> AuditConfig:
890
- """Merge file config with environment variables."""
891
-
892
- allowed_trust_tiers: set[str] = {"internal", "external-verified", "external-unverified"}
893
-
894
- def _section_config(section: str) -> dict[str, Any]:
895
- """Return a mapping-like config section, tolerating null/invalid YAML values."""
896
- raw = file_config.get(section, {})
897
- if raw is None:
898
- return {}
899
- if isinstance(raw, dict):
900
- return dict(raw)
901
- logger.warning(
902
- "invalid_audit_yaml_section_type",
903
- section=section,
904
- section_type=type(raw).__name__,
905
- )
906
- return {}
907
-
908
- def _parse_env_list(raw_value: str) -> list[str]:
909
- value = raw_value.strip()
910
- if not value:
911
- return []
912
- if value.startswith("["):
913
- try:
914
- parsed = json.loads(value)
915
- except json.JSONDecodeError:
916
- logger.warning("invalid_json_list_env", raw=raw_value)
917
- return []
918
- if isinstance(parsed, list):
919
- return [str(item).strip() for item in parsed if str(item).strip()]
920
- logger.warning("invalid_json_list_type_env", raw=raw_value, parsed_type=type(parsed).__name__)
921
- return []
922
- return [item.strip() for item in value.split(",") if item.strip()]
923
-
924
- def _parse_env_trust_tier_map(raw_value: str) -> tuple[bool, dict[str, TrustTier]]:
925
- value = raw_value.strip()
926
- if not value:
927
- return True, {}
928
-
929
- raw_mapping: dict[str, Any] = {}
930
- if value.startswith("{"):
931
- try:
932
- parsed = json.loads(value)
933
- except json.JSONDecodeError:
934
- logger.warning(
935
- "invalid_json_map_env",
936
- env="VDS_AUDIT_LLM__SKILLS_TRUST_TIERS",
937
- raw=raw_value,
938
- )
939
- return False, {}
940
- if not isinstance(parsed, dict):
941
- logger.warning(
942
- "invalid_json_map_type_env",
943
- env="VDS_AUDIT_LLM__SKILLS_TRUST_TIERS",
944
- raw=raw_value,
945
- parsed_type=type(parsed).__name__,
946
- )
947
- return False, {}
948
- raw_mapping = dict(parsed)
949
- else:
950
- for token in (item.strip() for item in value.split(",")):
951
- if not token:
952
- continue
953
- if "=" in token:
954
- raw_name, raw_tier = token.split("=", 1)
955
- elif ":" in token:
956
- raw_name, raw_tier = token.split(":", 1)
957
- else:
958
- logger.warning(
959
- "invalid_trust_tier_map_entry_env",
960
- env="VDS_AUDIT_LLM__SKILLS_TRUST_TIERS",
961
- entry=token,
962
- )
963
- continue
964
- skill_name = str(raw_name).strip()
965
- trust_tier = str(raw_tier).strip()
966
- if skill_name:
967
- raw_mapping[skill_name] = trust_tier
968
-
969
- validated: dict[str, TrustTier] = {}
970
- for raw_name, raw_tier in raw_mapping.items():
971
- skill_name = str(raw_name).strip()
972
- trust_tier = str(raw_tier).strip()
973
- if not skill_name:
974
- continue
975
- if trust_tier not in allowed_trust_tiers:
976
- logger.warning(
977
- "invalid_trust_tier_env_entry",
978
- env="VDS_AUDIT_LLM__SKILLS_TRUST_TIERS",
979
- skill_name=skill_name,
980
- trust_tier=trust_tier,
981
- )
982
- continue
983
- validated[skill_name] = cast("TrustTier", trust_tier)
984
- return True, validated
985
-
986
- # Build nested config from file.
987
- # Sensitive protocol credentials must come from the shared VDS env layer.
988
- llm_file_config = _section_config("llm")
989
- for sensitive_key in ("api_key",):
990
- sensitive_value = llm_file_config.get(sensitive_key)
991
- if sensitive_value:
992
- logger.warning(
993
- "sensitive_llm_credential_ignored_in_audit_yaml",
994
- key=sensitive_key,
995
- source=str(DEFAULT_CONFIG_FILE),
996
- )
997
- llm_file_config.pop(sensitive_key, None)
998
- llm_config = LLMConfig(**llm_file_config)
999
- vds_file_config = _section_config("vds")
1000
- for sensitive_key in ("sonarqube_token",):
1001
- sensitive_value = vds_file_config.get(sensitive_key)
1002
- if sensitive_value:
1003
- logger.warning(
1004
- "sensitive_vds_credential_ignored_in_audit_yaml",
1005
- key=sensitive_key,
1006
- source=str(DEFAULT_CONFIG_FILE),
1007
- )
1008
- vds_file_config.pop(sensitive_key, None)
1009
- langgraph_file_config = _section_config("langgraph")
1010
- if langgraph_file_config.get("postgres_dsn"):
1011
- logger.warning(
1012
- "sensitive_langgraph_setting_ignored_in_audit_yaml",
1013
- key="postgres_dsn",
1014
- source=str(DEFAULT_CONFIG_FILE),
1015
- )
1016
- langgraph_file_config.pop("postgres_dsn", None)
1017
- paths_config = PathsConfig(**_section_config("paths"))
1018
- features_config = FeaturesConfig(**_section_config("features"))
1019
- vds_config = VDSIntegrationConfig(**vds_file_config)
1020
- langgraph_config = LangGraphConfig(**langgraph_file_config)
1021
- performance_config = PerformanceSLAConfig(**_section_config("performance"))
1022
- agentic_file_config = _section_config("agentic")
1023
- file_policy_overrides_raw = agentic_file_config.get("non_progress_policy")
1024
- file_policy_overrides = file_policy_overrides_raw if isinstance(file_policy_overrides_raw, dict) else None
1025
- agentic_config = AgenticConfig(**agentic_file_config)
1026
- embedding_config = EmbeddingConfig(**_section_config("embedding"))
1027
-
1028
- # Override with environment variables
1029
- # LLM settings
1030
- if os.getenv("VDS_AUDIT_LLM_ENABLED"):
1031
- llm_config.enabled = os.getenv("VDS_AUDIT_LLM_ENABLED", "").lower() in ("true", "1", "yes")
1032
- protocol_env = os.getenv("VDS_AUDIT_LLM_PROTOCOL")
1033
- if protocol_env:
1034
- llm_config.protocol = LLMProtocolType(protocol_env)
1035
- runtime_mode_env = os.getenv("VDS_AUDIT_LLM__AGENT_RUNTIME_MODE")
1036
- if runtime_mode_env:
1037
- try:
1038
- llm_config.agent_runtime_mode = AgentRuntimeMode(runtime_mode_env)
1039
- except ValueError as exc:
1040
- # FR-37: Hard-cut rejection for removed runtime modes
1041
- raise ValueError(
1042
- f"Invalid VDS_AUDIT_LLM__AGENT_RUNTIME_MODE='{runtime_mode_env}'. "
1043
- f"Phase 64 single-mode architecture only supports: {', '.join(m.value for m in AgentRuntimeMode)}. "
1044
- f"Migration: Remove VDS_AUDIT_LLM__AGENT_RUNTIME_MODE or set to 'pydanticai'."
1045
- ) from exc
1046
- if os.getenv("VDS_AUDIT_LLM__MODEL_SIMPLE"):
1047
- llm_config.model_simple = os.getenv("VDS_AUDIT_LLM__MODEL_SIMPLE", llm_config.model_simple)
1048
- if os.getenv("VDS_AUDIT_LLM__MODEL_STANDARD"):
1049
- llm_config.model_standard = os.getenv("VDS_AUDIT_LLM__MODEL_STANDARD", llm_config.model_standard)
1050
- if os.getenv("VDS_AUDIT_LLM__MODEL_COMPLEX"):
1051
- llm_config.model_complex = os.getenv("VDS_AUDIT_LLM__MODEL_COMPLEX", llm_config.model_complex)
1052
- if os.getenv("VDS_AUDIT_LLM__STREAM"):
1053
- llm_config.stream = _parse_strict_bool_env(
1054
- "VDS_AUDIT_LLM__STREAM",
1055
- os.getenv("VDS_AUDIT_LLM__STREAM", ""),
1056
- )
1057
- if os.getenv("VDS_AUDIT_LLM__AGENT_STREAM"):
1058
- llm_config.agent_stream = _parse_strict_bool_env(
1059
- "VDS_AUDIT_LLM__AGENT_STREAM",
1060
- os.getenv("VDS_AUDIT_LLM__AGENT_STREAM", ""),
1061
- )
1062
- reasoning_effort = os.getenv("VDS_AUDIT_LLM__REASONING_EFFORT")
1063
- if reasoning_effort:
1064
- llm_config.reasoning_effort = normalize_reasoning_effort(
1065
- reasoning_effort,
1066
- key="VDS_AUDIT_LLM__REASONING_EFFORT",
1067
- )
1068
- if os.getenv("VDS_AUDIT_LLM__MAX_TOKENS_PER_REQUEST"):
1069
- llm_config.max_tokens_per_request = int(
1070
- os.getenv("VDS_AUDIT_LLM__MAX_TOKENS_PER_REQUEST", str(llm_config.max_tokens_per_request))
1071
- )
1072
- code_review_chars_env = os.getenv("VDS_AUDIT_LLM__CODE_REVIEW_MAX_TOTAL_CHARS")
1073
- code_review_chars_alias_env = os.getenv("VDS_AUDIT_AGENTIC_CODE_REVIEW_MAX_TOTAL_CHARS")
1074
- if code_review_chars_env:
1075
- llm_config.code_review_max_total_chars = int(
1076
- os.getenv(
1077
- "VDS_AUDIT_LLM__CODE_REVIEW_MAX_TOTAL_CHARS",
1078
- str(llm_config.code_review_max_total_chars),
1079
- )
1080
- )
1081
- elif code_review_chars_alias_env:
1082
- llm_config.code_review_max_total_chars = int(code_review_chars_alias_env)
1083
- if os.getenv("VDS_AUDIT_LLM__CODE_REVIEW_MAX_FILES"):
1084
- llm_config.code_review_max_files = int(
1085
- os.getenv("VDS_AUDIT_LLM__CODE_REVIEW_MAX_FILES", str(llm_config.code_review_max_files))
1086
- )
1087
- if os.getenv("VDS_AUDIT_LLM__CODE_REVIEW_LAYER_ENABLED"):
1088
- llm_config.code_review_layer_enabled = os.getenv(
1089
- "VDS_AUDIT_LLM__CODE_REVIEW_LAYER_ENABLED",
1090
- "",
1091
- ).lower() in ("true", "1", "yes")
1092
- if os.getenv("VDS_AUDIT_LLM__AGENT_RETRIES"):
1093
- llm_config.agent_retries = int(os.getenv("VDS_AUDIT_LLM__AGENT_RETRIES", "2"))
1094
- if os.getenv("VDS_AUDIT_LLM__OUTPUT_RETRIES"):
1095
- llm_config.output_retries = int(os.getenv("VDS_AUDIT_LLM__OUTPUT_RETRIES", "2"))
1096
- row_failover_profiles_env = os.getenv("VDS_AUDIT_LLM__ROW_FAILOVER_PROFILES")
1097
- if row_failover_profiles_env is not None:
1098
- try:
1099
- parsed_profiles = json.loads(row_failover_profiles_env)
1100
- except Exception:
1101
- parsed_profiles = [item.strip() for item in row_failover_profiles_env.split(",") if item.strip()]
1102
- if isinstance(parsed_profiles, list):
1103
- llm_config.row_failover_profiles = [str(item).strip() for item in parsed_profiles if str(item).strip()]
1104
- else:
1105
- llm_config.row_failover_profiles = []
1106
- if os.getenv("VDS_AUDIT_LLM__ROW_FAILOVER_MAX_PROVIDER_HOPS"):
1107
- llm_config.row_failover_max_provider_hops = int(
1108
- os.getenv(
1109
- "VDS_AUDIT_LLM__ROW_FAILOVER_MAX_PROVIDER_HOPS",
1110
- str(llm_config.row_failover_max_provider_hops),
1111
- )
1112
- )
1113
- if os.getenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_SECONDS"):
1114
- llm_config.agent_timeout_seconds = float(os.getenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_SECONDS", "600.0"))
1115
- if os.getenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_MAX_SECONDS"):
1116
- llm_config.agent_timeout_max_seconds = float(
1117
- os.getenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_MAX_SECONDS", "1800.0")
1118
- )
1119
- if os.getenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_EXTENSION_SECONDS"):
1120
- llm_config.agent_timeout_extension_seconds = float(
1121
- os.getenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_EXTENSION_SECONDS", "300.0")
1122
- )
1123
- if os.getenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_EXTENSION_ATTEMPTS"):
1124
- llm_config.agent_timeout_extension_attempts = int(
1125
- os.getenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_EXTENSION_ATTEMPTS", "3")
1126
- )
1127
- if os.getenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_HEARTBEAT_SECONDS"):
1128
- llm_config.agent_timeout_heartbeat_seconds = float(
1129
- os.getenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_HEARTBEAT_SECONDS", "30.0")
1130
- )
1131
- if os.getenv("VDS_AUDIT_LLM__AGENT_RATE_LIMIT_RETRY_ATTEMPTS"):
1132
- llm_config.agent_rate_limit_retry_attempts = int(
1133
- os.getenv("VDS_AUDIT_LLM__AGENT_RATE_LIMIT_RETRY_ATTEMPTS", "2")
1134
- )
1135
- if os.getenv("VDS_AUDIT_LLM__AGENT_RATE_LIMIT_RETRY_BACKOFF_SECONDS"):
1136
- llm_config.agent_rate_limit_retry_backoff_seconds = float(
1137
- os.getenv("VDS_AUDIT_LLM__AGENT_RATE_LIMIT_RETRY_BACKOFF_SECONDS", "2.0")
1138
- )
1139
- if os.getenv("VDS_AUDIT_LLM__AGENT_IDLE_TIMEOUT_SECONDS"):
1140
- llm_config.agent_idle_timeout_seconds = float(
1141
- os.getenv("VDS_AUDIT_LLM__AGENT_IDLE_TIMEOUT_SECONDS", "180.0")
1142
- )
1143
- if os.getenv("VDS_AUDIT_TIMEOUT_POLICY__ROW_PROGRESS_LEASE_SECONDS"):
1144
- llm_config.row_progress_lease_seconds = int(
1145
- os.getenv("VDS_AUDIT_TIMEOUT_POLICY__ROW_PROGRESS_LEASE_SECONDS", "0")
1146
- )
1147
- if os.getenv("VDS_AUDIT_TIMEOUT_POLICY__ROW_STALL_DETECTION_SECONDS"):
1148
- llm_config.row_stall_detection_seconds = int(
1149
- os.getenv("VDS_AUDIT_TIMEOUT_POLICY__ROW_STALL_DETECTION_SECONDS", "30")
1150
- )
1151
- if os.getenv("VDS_AUDIT_TIMEOUT_POLICY__ROW_ABSOLUTE_TIMEOUT_MS"):
1152
- llm_config.row_absolute_timeout_ms = int(
1153
- os.getenv("VDS_AUDIT_TIMEOUT_POLICY__ROW_ABSOLUTE_TIMEOUT_MS", "600000")
1154
- )
1155
- if os.getenv("VDS_AUDIT_LLM__AGENT_EVENT_STREAM_ENABLED"):
1156
- llm_config.agent_event_stream_enabled = os.getenv(
1157
- "VDS_AUDIT_LLM__AGENT_EVENT_STREAM_ENABLED", ""
1158
- ).lower() in ("true", "1", "yes")
1159
- if os.getenv("VDS_AUDIT_LLM__AGENT_EVENT_STREAM_LOG_TEXT_DELTAS"):
1160
- llm_config.agent_event_stream_log_text_deltas = os.getenv(
1161
- "VDS_AUDIT_LLM__AGENT_EVENT_STREAM_LOG_TEXT_DELTAS",
1162
- "",
1163
- ).lower() in ("true", "1", "yes")
1164
- if os.getenv("VDS_AUDIT_LLM__AGENT_TRACE_PAYLOAD_ENABLED"):
1165
- llm_config.agent_trace_payload_enabled = os.getenv(
1166
- "VDS_AUDIT_LLM__AGENT_TRACE_PAYLOAD_ENABLED",
1167
- "",
1168
- ).lower() in ("true", "1", "yes")
1169
- if os.getenv("VDS_AUDIT_LLM__AGENT_TRACE_PAYLOAD_MAX_CHARS"):
1170
- llm_config.agent_trace_payload_max_chars = int(
1171
- os.getenv("VDS_AUDIT_LLM__AGENT_TRACE_PAYLOAD_MAX_CHARS", "20000")
1172
- )
1173
- if os.getenv("VDS_AUDIT_LLM__MCP_TOOLSETS_ENABLED"):
1174
- llm_config.mcp_toolsets_enabled = os.getenv("VDS_AUDIT_LLM__MCP_TOOLSETS_ENABLED", "").lower() in (
1175
- "true",
1176
- "1",
1177
- "yes",
1178
- )
1179
- if os.getenv("VDS_AUDIT_LLM__MCP_TOOLSET_TYPE"):
1180
- llm_config.mcp_toolset_type = os.getenv("VDS_AUDIT_LLM__MCP_TOOLSET_TYPE", llm_config.mcp_toolset_type)
1181
- if os.getenv("VDS_AUDIT_LLM__MCP_CONFIG_PATH"):
1182
- llm_config.mcp_config_path = os.getenv("VDS_AUDIT_LLM__MCP_CONFIG_PATH", llm_config.mcp_config_path)
1183
- if os.getenv("VDS_AUDIT_LLM__SKILLS_TOOLSET_ENABLED"):
1184
- llm_config.skills_toolset_enabled = os.getenv("VDS_AUDIT_LLM__SKILLS_TOOLSET_ENABLED", "").lower() in (
1185
- "true",
1186
- "1",
1187
- "yes",
1188
- )
1189
- if os.getenv("VDS_AUDIT_LLM__SKILLS_DIRECTORIES"):
1190
- raw_dirs = os.getenv("VDS_AUDIT_LLM__SKILLS_DIRECTORIES", "")
1191
- parsed_dirs = _parse_env_list(raw_dirs)
1192
- if parsed_dirs:
1193
- llm_config.skills_directories = parsed_dirs
1194
- if os.getenv("VDS_AUDIT_LLM__SKILLS_ALLOWLIST"):
1195
- raw_allowlist = os.getenv("VDS_AUDIT_LLM__SKILLS_ALLOWLIST", "")
1196
- llm_config.skills_allowlist = _parse_env_list(raw_allowlist)
1197
- if os.getenv("VDS_AUDIT_LLM__SKILLS_ALLOW_SCRIPT_EXECUTION"):
1198
- llm_config.skills_allow_script_execution = os.getenv(
1199
- "VDS_AUDIT_LLM__SKILLS_ALLOW_SCRIPT_EXECUTION",
1200
- "",
1201
- ).lower() in ("true", "1", "yes")
1202
- if os.getenv("VDS_AUDIT_LLM__SKILLS_ALLOWED_TRUST_TIERS"):
1203
- raw_trust_tiers = os.getenv("VDS_AUDIT_LLM__SKILLS_ALLOWED_TRUST_TIERS", "")
1204
- parsed_trust_tiers = _parse_env_list(raw_trust_tiers)
1205
- if parsed_trust_tiers:
1206
- validated_tiers = [
1207
- cast("TrustTier", tier) for tier in parsed_trust_tiers if tier in allowed_trust_tiers
1208
- ]
1209
- if validated_tiers:
1210
- llm_config.skills_allowed_trust_tiers = validated_tiers
1211
- if os.getenv("VDS_AUDIT_LLM__SKILLS_DEFAULT_TRUST_TIER"):
1212
- default_tier = os.getenv("VDS_AUDIT_LLM__SKILLS_DEFAULT_TRUST_TIER", "")
1213
- if default_tier in allowed_trust_tiers:
1214
- llm_config.skills_default_trust_tier = cast("TrustTier", default_tier)
1215
- skills_trust_tiers_env = os.getenv("VDS_AUDIT_LLM__SKILLS_TRUST_TIERS")
1216
- if skills_trust_tiers_env is not None:
1217
- parsed_ok, parsed_trust_tier_map = _parse_env_trust_tier_map(skills_trust_tiers_env)
1218
- if parsed_ok:
1219
- llm_config.skills_trust_tiers = parsed_trust_tier_map
1220
- api_key = os.getenv("VDS_AUDIT_LLM__API_KEY")
1221
- if api_key:
1222
- llm_config.api_key = SecretStr(api_key)
1223
- base_url = os.getenv("VDS_AUDIT_LLM__BASE_URL")
1224
- if base_url:
1225
- llm_config.base_url = base_url
1226
- ollama_num_ctx_raw = os.getenv("VDS_AUDIT_LLM__OLLAMA_NUM_CTX")
1227
- if ollama_num_ctx_raw:
1228
- try:
1229
- llm_config.ollama_num_ctx = int(ollama_num_ctx_raw)
1230
- except (ValueError, TypeError):
1231
- logger.warning(
1232
- "invalid_ollama_num_ctx_env",
1233
- raw=ollama_num_ctx_raw,
1234
- fallback="None (field default)",
1235
- )
1236
- sonarqube_token = os.getenv("SONARQUBE_TOKEN")
1237
- if sonarqube_token:
1238
- vds_config.sonarqube_token = SecretStr(sonarqube_token)
1239
-
1240
- # Path settings
1241
- template_dir = os.getenv("VDS_AUDIT_TEMPLATE_DIR")
1242
- if template_dir:
1243
- paths_config.template_dir = Path(template_dir).expanduser()
1244
- output_dir = os.getenv("VDS_AUDIT_OUTPUT_DIR")
1245
- if output_dir:
1246
- paths_config.output_dir = Path(output_dir).expanduser()
1247
- cache_dir = os.getenv("VDS_AUDIT_CACHE_DIR")
1248
- if cache_dir:
1249
- paths_config.cache_dir = Path(cache_dir).expanduser()
1250
- materials_cache_dir = os.getenv("VDS_AUDIT_MATERIALS_CACHE_DIR")
1251
- if materials_cache_dir:
1252
- paths_config.materials_cache_dir = Path(materials_cache_dir).expanduser()
1253
- checkpoint_dir = os.getenv("VDS_AUDIT_CHECKPOINT_DIR")
1254
- if checkpoint_dir:
1255
- paths_config.checkpoint_dir = Path(checkpoint_dir).expanduser()
1256
- # Feature flags from environment
1257
- for flag in FeatureFlag:
1258
- env_key = f"VDS_AUDIT_{flag.value.upper()}"
1259
- if os.getenv(env_key):
1260
- setattr(features_config, flag.value, os.getenv(env_key, "").lower() in ("true", "1", "yes"))
1261
-
1262
- # LangGraph settings from environment
1263
- if os.getenv("VDS_AUDIT_LANGGRAPH__CHECKPOINTER_TYPE"):
1264
- langgraph_config.checkpointer_type = os.getenv("VDS_AUDIT_LANGGRAPH__CHECKPOINTER_TYPE", "memory")
1265
- postgres_dsn = os.getenv("VDS_AUDIT_LANGGRAPH__POSTGRES_DSN")
1266
- if postgres_dsn:
1267
- langgraph_config.postgres_dsn = postgres_dsn
1268
-
1269
- # Performance SLA settings from environment (FR-79)
1270
- if os.getenv("VDS_AUDIT_SLA_ROW_LATENCY_P95_SEC"):
1271
- performance_config.row_latency_p95_sec = float(
1272
- os.getenv("VDS_AUDIT_SLA_ROW_LATENCY_P95_SEC", str(SLA_ROW_LATENCY_P95_SEC))
1273
- )
1274
- if os.getenv("VDS_AUDIT_SLA_MEMORY_CEILING_MB"):
1275
- performance_config.memory_ceiling_mb = int(
1276
- os.getenv("VDS_AUDIT_SLA_MEMORY_CEILING_MB", str(SLA_MEMORY_CEILING_MB))
1277
- )
1278
- if os.getenv("VDS_AUDIT_SLA_THROUGHPUT_ROWS_PER_MIN"):
1279
- performance_config.throughput_rows_per_min = float(
1280
- os.getenv("VDS_AUDIT_SLA_THROUGHPUT_ROWS_PER_MIN", str(SLA_THROUGHPUT_ROWS_PER_MIN))
1281
- )
1282
-
1283
- # Agentic mode from environment
1284
- if os.getenv("VDS_AUDIT_AGENTIC_ENABLED"):
1285
- agentic_config.enabled = os.getenv("VDS_AUDIT_AGENTIC_ENABLED", "").lower() in ("true", "1", "yes")
1286
- if os.getenv("VDS_AUDIT_AGENTIC_MAX_TURNS"):
1287
- agentic_config.max_turns = int(os.getenv("VDS_AUDIT_AGENTIC_MAX_TURNS", "20"))
1288
- if os.getenv("VDS_AUDIT_AGENTIC_MAX_TOOL_CALLS"):
1289
- agentic_config.max_tool_calls = int(os.getenv("VDS_AUDIT_AGENTIC_MAX_TOOL_CALLS", "200"))
1290
- if os.getenv("VDS_AUDIT_AGENTIC_TOOL_TIMEOUT_SEC"):
1291
- agentic_config.tool_timeout_sec = int(os.getenv("VDS_AUDIT_AGENTIC_TOOL_TIMEOUT_SEC", "30"))
1292
- if os.getenv("VDS_AUDIT_AGENTIC_MAX_READ_BYTES"):
1293
- agentic_config.max_read_bytes = int(os.getenv("VDS_AUDIT_AGENTIC_MAX_READ_BYTES", "200000"))
1294
- if os.getenv("VDS_AUDIT_AGENTIC_MAX_READ_LINES"):
1295
- agentic_config.max_read_lines = int(os.getenv("VDS_AUDIT_AGENTIC_MAX_READ_LINES", "300"))
1296
- if os.getenv("VDS_AUDIT_AGENTIC_STRICT_NO_FALLBACK"):
1297
- agentic_config.strict_no_fallback = os.getenv("VDS_AUDIT_AGENTIC_STRICT_NO_FALLBACK", "").lower() in (
1298
- "true",
1299
- "1",
1300
- "yes",
1301
- )
1302
- if os.getenv("VDS_AUDIT_AGENTIC_STRICT_CAP_MAX_TURNS"):
1303
- agentic_config.strict_cap_max_turns = int(os.getenv("VDS_AUDIT_AGENTIC_STRICT_CAP_MAX_TURNS", "10"))
1304
- if os.getenv("VDS_AUDIT_AGENTIC_STRICT_CAP_MAX_TOOL_CALLS"):
1305
- agentic_config.strict_cap_max_tool_calls = int(
1306
- os.getenv("VDS_AUDIT_AGENTIC_STRICT_CAP_MAX_TOOL_CALLS", "24")
1307
- )
1308
- if os.getenv("VDS_AUDIT_AGENTIC_LOCAL_OPENAI_SYNTHESIS_MAX_TURNS"):
1309
- agentic_config.local_openai_synthesis_max_turns = int(
1310
- os.getenv("VDS_AUDIT_AGENTIC_LOCAL_OPENAI_SYNTHESIS_MAX_TURNS", "4")
1311
- )
1312
- if os.getenv("VDS_AUDIT_AGENTIC_LOCAL_OPENAI_SYNTHESIS_MAX_TOOL_CALLS"):
1313
- agentic_config.local_openai_synthesis_max_tool_calls = int(
1314
- os.getenv("VDS_AUDIT_AGENTIC_LOCAL_OPENAI_SYNTHESIS_MAX_TOOL_CALLS", "2")
1315
- )
1316
- if os.getenv("VDS_AUDIT_AGENTIC_LOCAL_OPENAI_HARD_SYNTHESIS_MAX_TURNS"):
1317
- agentic_config.local_openai_hard_synthesis_max_turns = int(
1318
- os.getenv("VDS_AUDIT_AGENTIC_LOCAL_OPENAI_HARD_SYNTHESIS_MAX_TURNS", "2")
1319
- )
1320
- if os.getenv("VDS_AUDIT_AGENTIC_LOCAL_OPENAI_HARD_SYNTHESIS_MAX_TOOL_CALLS"):
1321
- agentic_config.local_openai_hard_synthesis_max_tool_calls = int(
1322
- os.getenv("VDS_AUDIT_AGENTIC_LOCAL_OPENAI_HARD_SYNTHESIS_MAX_TOOL_CALLS", "0")
1323
- )
1324
- if os.getenv("VDS_AUDIT_AGENTIC_SYNTHESIS_MAX_TURNS"):
1325
- agentic_config.synthesis_max_turns = int(os.getenv("VDS_AUDIT_AGENTIC_SYNTHESIS_MAX_TURNS", "4"))
1326
- if os.getenv("VDS_AUDIT_AGENTIC_SYNTHESIS_MAX_TOOL_CALLS"):
1327
- agentic_config.synthesis_max_tool_calls = int(os.getenv("VDS_AUDIT_AGENTIC_SYNTHESIS_MAX_TOOL_CALLS", "2"))
1328
- if os.getenv("VDS_AUDIT_AGENTIC_HARD_SYNTHESIS_MAX_TURNS"):
1329
- agentic_config.hard_synthesis_max_turns = int(os.getenv("VDS_AUDIT_AGENTIC_HARD_SYNTHESIS_MAX_TURNS", "2"))
1330
- if os.getenv("VDS_AUDIT_AGENTIC_HARD_SYNTHESIS_MAX_TOOL_CALLS"):
1331
- agentic_config.hard_synthesis_max_tool_calls = int(
1332
- os.getenv("VDS_AUDIT_AGENTIC_HARD_SYNTHESIS_MAX_TOOL_CALLS", "0")
1333
- )
1334
- if os.getenv("VDS_AUDIT_AGENTIC_SAFE_EXTENSIONS"):
1335
- raw_extensions = os.getenv("VDS_AUDIT_AGENTIC_SAFE_EXTENSIONS", "")
1336
- parsed_extensions = [ext.strip() for ext in raw_extensions.split(",") if ext.strip()]
1337
- if parsed_extensions:
1338
- agentic_config.safe_extensions = parsed_extensions
1339
- if os.getenv("VDS_AUDIT_AGENTIC_NON_PROGRESS_POLICY"):
1340
- raw_policy = os.getenv("VDS_AUDIT_AGENTIC_NON_PROGRESS_POLICY", "")
1341
- try:
1342
- decoded_policy = json.loads(raw_policy)
1343
- except json.JSONDecodeError:
1344
- logger.warning(
1345
- "agentic_non_progress_policy_env_invalid",
1346
- env_var="VDS_AUDIT_AGENTIC_NON_PROGRESS_POLICY",
1347
- )
1348
- else:
1349
- if isinstance(decoded_policy, dict):
1350
- try:
1351
- NonProgressPolicyConfig.model_validate(decoded_policy)
1352
- file_policy_overrides = decoded_policy
1353
- except Exception as exc:
1354
- logger.warning(
1355
- "agentic_non_progress_policy_env_validation_failed",
1356
- env_var="VDS_AUDIT_AGENTIC_NON_PROGRESS_POLICY",
1357
- error=str(exc),
1358
- )
1359
- non_progress_preset_env = os.getenv("VDS_AUDIT_AGENTIC_NON_PROGRESS_PRESET")
1360
- if non_progress_preset_env:
1361
- try:
1362
- agentic_config.non_progress_preset = NonProgressPreset(non_progress_preset_env.strip().lower())
1363
- except ValueError as exc:
1364
- raise ValueError(
1365
- "Invalid VDS_AUDIT_AGENTIC_NON_PROGRESS_PRESET="
1366
- f"'{non_progress_preset_env}'. Allowed values: strict, balanced, permissive."
1367
- ) from exc
1368
- if os.getenv("VDS_AUDIT_AGENTIC_TOOL_ALLOWLISTS"):
1369
- raw_allowlists = os.getenv("VDS_AUDIT_AGENTIC_TOOL_ALLOWLISTS", "")
1370
- try:
1371
- decoded_allowlists = json.loads(raw_allowlists)
1372
- except json.JSONDecodeError:
1373
- logger.warning(
1374
- "agentic_tool_allowlists_env_invalid",
1375
- env_var="VDS_AUDIT_AGENTIC_TOOL_ALLOWLISTS",
1376
- )
1377
- else:
1378
- if isinstance(decoded_allowlists, dict):
1379
- try:
1380
- agentic_config.tool_allowlists = AgenticConfig.model_validate(
1381
- {"tool_allowlists": decoded_allowlists}
1382
- ).tool_allowlists
1383
- except Exception as exc:
1384
- logger.warning(
1385
- "agentic_tool_allowlists_env_validation_failed",
1386
- env_var="VDS_AUDIT_AGENTIC_TOOL_ALLOWLISTS",
1387
- error=str(exc),
1388
- )
1389
- agentic_config.non_progress_policy = resolve_non_progress_policy(
1390
- agentic_config.non_progress_preset,
1391
- file_policy_overrides,
1392
- )
1393
-
1394
- # Embedding settings from environment (Phase 47)
1395
- if os.getenv("VDS_AUDIT_EMBEDDING__MODEL"):
1396
- embedding_config.model = os.getenv("VDS_AUDIT_EMBEDDING__MODEL", embedding_config.model)
1397
- if os.getenv("VDS_AUDIT_EMBEDDING__DIMENSIONS"):
1398
- embedding_config.dimensions = int(os.getenv("VDS_AUDIT_EMBEDDING__DIMENSIONS", "1024"))
1399
- if os.getenv("VDS_AUDIT_EMBEDDING__FALLBACK_MODEL"):
1400
- embedding_config.fallback_model = os.getenv(
1401
- "VDS_AUDIT_EMBEDDING__FALLBACK_MODEL", embedding_config.fallback_model
1402
- )
1403
- if os.getenv("VDS_AUDIT_EMBEDDING__FALLBACK_DIMENSIONS"):
1404
- embedding_config.fallback_dimensions = int(os.getenv("VDS_AUDIT_EMBEDDING__FALLBACK_DIMENSIONS", "768"))
1405
- if os.getenv("VDS_AUDIT_EMBEDDING__BATCH_SIZE"):
1406
- embedding_config.batch_size = int(os.getenv("VDS_AUDIT_EMBEDDING__BATCH_SIZE", "10"))
1407
- if os.getenv("VDS_AUDIT_EMBEDDING__TIMEOUT_SECONDS"):
1408
- embedding_config.timeout_seconds = float(os.getenv("VDS_AUDIT_EMBEDDING__TIMEOUT_SECONDS", "30.0"))
1409
- if os.getenv("VDS_AUDIT_EMBEDDING__RETRIES"):
1410
- embedding_config.retries = int(os.getenv("VDS_AUDIT_EMBEDDING__RETRIES", "2"))
1411
- if os.getenv("VDS_AUDIT_EMBEDDING__BASE_URL"):
1412
- embedding_config.base_url = os.getenv("VDS_AUDIT_EMBEDDING__BASE_URL")
1413
- if os.getenv("VDS_AUDIT_EMBEDDING__API_KEY"):
1414
- embedding_config.api_key = SecretStr(os.getenv("VDS_AUDIT_EMBEDDING__API_KEY", ""))
1415
-
1416
- # General settings from environment
1417
- log_level = os.getenv("VDS_AUDIT_LOG_LEVEL", "INFO")
1418
- default_concurrency = int(os.getenv("VDS_AUDIT_CONCURRENCY", "5"))
1419
- default_timeout = int(os.getenv("VDS_AUDIT_TIMEOUT", "300"))
1420
-
1421
- return cls(
1422
- llm=llm_config,
1423
- embedding=embedding_config,
1424
- paths=paths_config,
1425
- features=features_config,
1426
- vds=vds_config,
1427
- langgraph=langgraph_config,
1428
- performance=performance_config,
1429
- agentic=agentic_config,
1430
- log_level=log_level,
1431
- default_concurrency=default_concurrency,
1432
- default_timeout=default_timeout,
1433
- )
1434
-
1435
- def validate_required(self) -> list[str]:
1436
- """Validate required configuration is set.
1437
-
1438
- Returns:
1439
- List of missing required configurations
1440
- """
1441
- missing = []
1442
-
1443
- # If LLM is enabled, check protocol-specific requirements
1444
- if self.features.llm_enabled or (self.llm.enabled and self.llm.protocol in {LLMProtocolType.ANTHROPIC, LLMProtocolType.GEMINI} and not self.llm.api_key):
1445
- missing.append("VDS_AUDIT_LLM__API_KEY (required when LLM protocol is anthropic or gemini)")
1446
-
1447
- return missing
1448
-
1449
- def validate_model_tier_requirements(self) -> list[str]:
1450
- """Validate that required model tiers are explicitly configured when LLM is enabled."""
1451
- if not (self.features.llm_enabled or self.llm.enabled):
1452
- return []
1453
-
1454
- missing: list[str] = []
1455
- guidance: dict[str, str] = {
1456
- "model_simple": "model.llm.simple",
1457
- "model_standard": "model.llm.standard",
1458
- "model_complex": "model.llm.complex",
1459
- }
1460
- for tier_key, env_key in LLM_MODEL_TIER_ENV_MAP.items():
1461
- raw_value = str(getattr(self.llm, tier_key, "") or "").strip()
1462
- if not raw_value or raw_value == LLM_MODEL_TIER_SENTINEL:
1463
- missing.append(f"{tier_key} ({env_key} or runtime profile {guidance[tier_key]})")
1464
-
1465
- if not missing:
1466
- return []
1467
- return [
1468
- "LLM model tier configuration is required when LLM is enabled. "
1469
- f"Missing/placeholder tiers: {', '.join(missing)}. "
1470
- "Set explicit model tiers in the effective audit.yaml file, runtime profile model.llm.*, or environment variables."
1471
- ]
1472
-
1473
- @staticmethod
1474
- def _parse_env_list(raw_value: str) -> list[str]:
1475
- value = raw_value.strip()
1476
- if not value:
1477
- return []
1478
- if value.startswith("["):
1479
- try:
1480
- parsed = json.loads(value)
1481
- except json.JSONDecodeError:
1482
- return []
1483
- if isinstance(parsed, list):
1484
- return [str(item).strip() for item in parsed if str(item).strip()]
1485
- return []
1486
- return [item.strip() for item in value.split(",") if item.strip()]
1487
-
1488
- def validate_runtime_mode_contract(self) -> list[str]:
1489
- """Validate Phase 64 hard-cut runtime mode contract.
1490
-
1491
- FR-37: Rejected at startup (not deprecation):
1492
- - Invalid runtime mode values
1493
- - Legacy SDK env vars that are no longer supported
1494
- """
1495
- errors: list[str] = []
1496
- mode = self.llm.agent_runtime_mode
1497
-
1498
- if mode != AgentRuntimeMode.PYDANTICAI:
1499
- errors.append(f"agent_runtime_mode must be 'pydanticai' (single-mode runtime). Got: {mode.value}.")
1500
-
1501
- # FR-37: Reject legacy SDK env vars (Phase 64 hard-cut)
1502
- legacy_sdk_env_keys = [
1503
- "VDS_AUDIT_CLAUDE_AGENT_SDK__SETTING_SOURCES",
1504
- "VDS_AUDIT_CLAUDE_AGENT_SDK__ALLOWED_TOOLS",
1505
- "VDS_AUDIT_CLAUDE_AGENT_SDK__WORKING_DIRECTORY",
1506
- "VDS_AUDIT_CLAUDE_AGENT_SDK__SKILLS_DIRECTORY",
1507
- "VDS_AUDIT_CLAUDE_AGENT_SDK__MCP_CONFIG_PATH",
1508
- ]
1509
- detected_legacy_vars = [key for key in legacy_sdk_env_keys if os.getenv(key)]
1510
- if detected_legacy_vars:
1511
- errors.append(
1512
- f"Legacy SDK env vars detected (no longer supported): {', '.join(detected_legacy_vars)}. "
1513
- "Phase 64 single-mode architecture uses PydanticAI. "
1514
- "Migration: Remove these env vars from your profile or environment."
1515
- )
1516
-
1517
- return errors
1518
-
1519
- def validate_endpoint_model_compatibility(self) -> list[str]:
1520
- """Validate endpoint/model compatibility policy with actionable diagnostics."""
1521
- endpoint_override = (os.getenv("VDS_AUDIT_LLM__BASE_URL") or "").strip()
1522
- if not endpoint_override:
1523
- return []
1524
-
1525
- endpoint = (self.llm.base_url or "").strip()
1526
- if not endpoint:
1527
- return []
1528
-
1529
- if self.llm.protocol != LLMProtocolType.ANTHROPIC:
1530
- return []
1531
-
1532
- mode = self.llm.agent_runtime_mode.value
1533
- model = (self.llm.model_standard or "").strip()
1534
- parsed = urlparse(endpoint)
1535
- host = (parsed.hostname or "").lower()
1536
- path = (parsed.path or "").lower()
1537
-
1538
- endpoint_policy = "custom"
1539
- if host in {"api.anthropic.com", "api.eu.anthropic.com"}:
1540
- endpoint_policy = "anthropic-official"
1541
- elif (
1542
- host in {"localhost", "127.0.0.1", "0.0.0.0"} or ":11434" in endpoint or "ollama" in host or "llama" in host
1543
- ):
1544
- endpoint_policy = "local-proxy"
1545
- elif path.endswith("/v1"):
1546
- endpoint_policy = "proxy-v1"
1547
-
1548
- errors: list[str] = []
1549
- if endpoint_policy == "anthropic-official" and model and not model.startswith("claude-"):
1550
- errors.append(
1551
- "Endpoint/model compatibility check failed: "
1552
- f"VDS_AUDIT_LLM__BASE_URL='{endpoint}' expects Claude models, "
1553
- f"but llm.model_standard='{model}'. Use a 'claude-*' model or switch endpoint/protocol."
1554
- )
1555
- # Non-official Anthropic endpoints are treated as compatible proxies. They
1556
- # may expose `/v1` URLs or localhost hosts while still accepting Anthropic
1557
- # protocol payloads and Claude model ids.
1558
-
1559
- if errors:
1560
- logger.error(
1561
- "runtime_endpoint_model_incompatible",
1562
- endpoint=endpoint,
1563
- endpoint_policy=endpoint_policy,
1564
- model_standard=model,
1565
- agent_runtime_mode=mode,
1566
- )
1567
- return errors
1568
-
1569
- def validate_coherence(self) -> list[str]:
1570
- """Validate merged runtime configuration coherence (FR-83)."""
1571
- errors: list[str] = []
1572
- policy = self.agentic.non_progress_policy
1573
- if policy.fallback_single_tool_min_tool_calls > policy.high_repeat_min_tool_calls:
1574
- errors.append(
1575
- "CC-01 CONFIG_COHERENCE_VIOLATION: "
1576
- "agentic.non_progress_policy.fallback_single_tool_min_tool_calls must be <= "
1577
- "agentic.non_progress_policy.high_repeat_min_tool_calls."
1578
- )
1579
-
1580
- batch_timeout_ms_raw = (os.getenv("VDS_AUDIT_BATCH_TIMEOUT_MS") or "").strip()
1581
- if batch_timeout_ms_raw:
1582
- try:
1583
- batch_timeout_ms = float(batch_timeout_ms_raw)
1584
- except ValueError:
1585
- batch_timeout_ms = 0.0
1586
- batch_size_raw = (os.getenv("VDS_AUDIT_BATCH_SIZE") or "").strip() or "8"
1587
- try:
1588
- batch_size = int(batch_size_raw)
1589
- except ValueError:
1590
- batch_size = 0
1591
- if batch_timeout_ms > 0 and batch_size > 0:
1592
- per_row_budget_seconds = (batch_timeout_ms / 1000.0) / float(batch_size)
1593
- if float(self.agentic.tool_timeout_sec) >= per_row_budget_seconds:
1594
- errors.append(
1595
- "CC-02 CONFIG_COHERENCE_VIOLATION: agentic.tool_timeout_sec must be strictly less than "
1596
- "batch_timeout_ms / batch_size."
1597
- )
1598
-
1599
- strict_budget_enabled = _is_truthy(os.getenv("VDS_AUDIT_STRICT_BUDGET"), default=False) or (
1600
- (os.getenv("VDS_AUDIT_COST_ENFORCEMENT") or "").strip().lower() == "strict"
1601
- )
1602
- if strict_budget_enabled and float(self.llm.max_cost_per_repo) <= 0:
1603
- errors.append("CC-03 CONFIG_COHERENCE_VIOLATION: strict budget mode requires llm.max_cost_per_repo > 0.")
1604
-
1605
- model_tier_errors = self.validate_model_tier_requirements()
1606
- errors.extend(f"CC-04 CONFIG_MODEL_TIER_MISSING: {message}" for message in model_tier_errors)
1607
-
1608
- dspy_coherence_errors = self._validate_dspy_protocol_model_coherence()
1609
- errors.extend(f"CC-05 CONFIG_PROFILE_INVALID: {message}" for message in dspy_coherence_errors)
1610
- dspy_protocol_raw = (os.getenv("VDS_AUDIT_DSPY_PROTOCOL") or "").strip()
1611
- dspy_model_raw = (os.getenv("VDS_AUDIT_DSPY_MODEL") or "").strip()
1612
- if dspy_protocol_raw and not dspy_model_raw:
1613
- errors.append(
1614
- "CC-08 CONFIG_COHERENCE_VIOLATION: when VDS_AUDIT_DSPY_PROTOCOL is set, "
1615
- "VDS_AUDIT_DSPY_MODEL must also be set explicitly."
1616
- )
1617
-
1618
- if self.llm.agent_timeout_seconds > self.llm.agent_timeout_max_seconds:
1619
- errors.append(
1620
- "CC-06 CONFIG_COHERENCE_VIOLATION: llm.agent_timeout_seconds must be <= llm.agent_timeout_max_seconds."
1621
- )
1622
-
1623
- preset = self.agentic.non_progress_preset
1624
- balanced = NonProgressPolicyConfig()
1625
- if preset == NonProgressPreset.STRICT and (
1626
- policy.high_repeat_min_tool_calls > balanced.high_repeat_min_tool_calls
1627
- or policy.fallback_single_tool_min_tool_calls > balanced.fallback_single_tool_min_tool_calls
1628
- or policy.dominant_repetition_ratio > balanced.dominant_repetition_ratio
1629
- ):
1630
- errors.append(
1631
- "CC-07 CONFIG_COHERENCE_VIOLATION: strict preset conflicts with overrides that reduce strictness."
1632
- )
1633
- if preset == NonProgressPreset.PERMISSIVE and (
1634
- policy.high_repeat_min_tool_calls < balanced.high_repeat_min_tool_calls
1635
- or policy.high_repeat_max_repeat < balanced.high_repeat_max_repeat
1636
- or policy.high_volume_repetition_min_tool_calls < balanced.high_volume_repetition_min_tool_calls
1637
- ):
1638
- errors.append(
1639
- "CC-07 CONFIG_COHERENCE_VIOLATION: permissive preset conflicts with overrides that reduce permissiveness."
1640
- )
1641
-
1642
- return errors
1643
-
1644
- def _validate_dspy_protocol_model_coherence(self) -> list[str]:
1645
- protocol = (self.llm.protocol.value or "").strip().lower()
1646
- dspy_protocol = (os.getenv("VDS_AUDIT_DSPY_PROTOCOL") or "").strip().lower()
1647
- dspy_model = (os.getenv("VDS_AUDIT_DSPY_MODEL") or "").strip()
1648
- if not protocol or not dspy_model:
1649
- return []
1650
- supported_protocols = {"anthropic", "openai", "gemini", "openai-codex"}
1651
- if protocol not in supported_protocols:
1652
- return []
1653
- if dspy_protocol and dspy_protocol not in supported_protocols:
1654
- return [
1655
- f"Incoherent DSPy model/protocol pairing: invalid VDS_AUDIT_DSPY_PROTOCOL='{dspy_protocol}'. "
1656
- "Allowed: anthropic, openai, gemini, openai-codex."
1657
- ]
1658
- active_protocol = dspy_protocol or protocol
1659
- coherence_protocol = "openai" if active_protocol == "openai-codex" else active_protocol
1660
- model_prefix = dspy_model.split("/", 1)[0].lower() if "/" in dspy_model else ""
1661
- normalized_prefix = "gemini" if model_prefix == "google" else model_prefix
1662
- expected_prefix = coherence_protocol
1663
- if model_prefix and coherence_protocol != "openai" and normalized_prefix != expected_prefix:
1664
- return [
1665
- f"Incoherent DSPy model/protocol pairing: protocol='{active_protocol}', "
1666
- f"VDS_AUDIT_DSPY_MODEL='{dspy_model}', expected '{expected_prefix}/...' or no prefix."
1667
- ]
1668
-
1669
- lowered_model = dspy_model.lower()
1670
- if not model_prefix and coherence_protocol != "anthropic" and lowered_model.startswith("claude-"):
1671
- return [f"Incoherent DSPy model/protocol pairing: protocol='{active_protocol}' cannot use '{dspy_model}'."]
1672
- if not model_prefix and coherence_protocol != "gemini" and lowered_model.startswith("gemini"):
1673
- return [f"Incoherent DSPy model/protocol pairing: protocol='{active_protocol}' cannot use '{dspy_model}'."]
1674
- return []
1675
-
1676
- def get_llm_client(self):
1677
- """Get configured LLM client.
1678
-
1679
- Returns:
1680
- Configured Anthropic client instance
1681
-
1682
- Raises:
1683
- RuntimeError: If LLM features are not enabled
1684
- ValueError: If required API key is missing or protocol is unsupported
1685
- """
1686
- if not self.llm.enabled and not self.features.llm_enabled:
1687
- raise RuntimeError("LLM features are not enabled. Set VDS_AUDIT_LLM_ENABLED=true")
1688
-
1689
- from vds_audit_orchestrator.llm.provider import build_anthropic_client
1690
-
1691
- resolved_base_url = _resolve_base_url(self.llm.base_url)
1692
-
1693
- if self.llm.protocol == LLMProtocolType.ANTHROPIC:
1694
- if not self.llm.api_key:
1695
- raise ValueError(f"VDS_AUDIT_LLM__API_KEY is required for {self.llm.protocol.value}")
1696
- return build_anthropic_client(
1697
- api_key=resolve_secret(self.llm.api_key) or "",
1698
- base_url=resolved_base_url,
1699
- )
1700
-
1701
- elif self.llm.protocol in {LLMProtocolType.OPENAI, LLMProtocolType.OPENAI_CODEX}:
1702
- # OpenAI protocol uses OpenAI SDK directly
1703
- try:
1704
- from openai import OpenAI
1705
-
1706
- api_key = resolve_secret(self.llm.api_key) or "no-key-required"
1707
- if self.llm.protocol == LLMProtocolType.OPENAI_CODEX and not self.llm.api_key:
1708
- raise ValueError(
1709
- "VDS_AUDIT_LLM__API_KEY is required for openai-codex runtime config "
1710
- "(use ${codex:access_token} in runtime profile)."
1711
- )
1712
- return OpenAI(
1713
- api_key=api_key,
1714
- base_url=resolved_base_url,
1715
- )
1716
- except ImportError:
1717
- raise ValueError("openai package required for OpenAI protocol: pip install openai") from None
1718
-
1719
- elif self.llm.protocol == LLMProtocolType.GEMINI:
1720
- # Gemini protocol uses google-genai SDK directly
1721
- try:
1722
- from google.genai import Client as GenAIClient
1723
-
1724
- api_key = resolve_secret(self.llm.api_key)
1725
- if not api_key:
1726
- raise ValueError(f"VDS_AUDIT_LLM__API_KEY is required for {self.llm.protocol.value}")
1727
- return GenAIClient(
1728
- api_key=api_key,
1729
- http_options={"base_url": resolved_base_url} if resolved_base_url else None,
1730
- )
1731
- except ImportError:
1732
- raise ValueError(
1733
- "google-genai package required for Gemini protocol: pip install google-genai"
1734
- ) from None
1735
-
1736
- raise ValueError(f"Unsupported protocol: {self.llm.protocol}")
1737
-
1738
-
1739
- # Global config instance (lazy-loaded)
1740
- _config: AuditConfig | None = None
1741
-
1742
-
1743
- def get_config() -> AuditConfig:
1744
- """Get the global configuration instance.
1745
-
1746
- Loads configuration on first access from:
1747
- 1. Environment variables
1748
- 2. Shared audit config file (if present)
1749
- 3. Default values
1750
-
1751
- Returns:
1752
- Global AuditConfig instance
1753
- """
1754
- global _config
1755
- if _config is None:
1756
- _config = AuditConfig.load()
1757
- return _config
1758
-
1759
-
1760
- def set_config(config: AuditConfig) -> None:
1761
- """Set the global configuration instance."""
1762
- global _config
1763
- _config = config
1764
-
1765
-
1766
- def reset_config() -> None:
1767
- """Reset configuration to reload from sources."""
1768
- global _config
1769
- _config = None
1770
-
1771
-
1772
- # Convenience function for feature flag checking
1773
- def is_feature_enabled(flag: FeatureFlag) -> bool:
1774
- """Check if a feature flag is enabled."""
1775
- return get_config().features.is_enabled(flag)
1776
-
1777
-
1778
- # Create sample config file if needed
1779
- def create_sample_config(path: Path | None = None) -> Path:
1780
- """Create a sample audit.yaml config file.
1781
-
1782
- Args:
1783
- path: Path to create config file (defaults to the effective shared audit config path)
1784
-
1785
- Returns:
1786
- Path to created config file
1787
- """
1788
- path = path or DEFAULT_CONFIG_FILE
1789
- path.parent.mkdir(parents=True, exist_ok=True)
1790
-
1791
- sample_config = """# VDS Audit Orchestrator Configuration
1792
- # This file is loaded from the shared audit config path
1793
- # Environment variables take precedence over these settings
1794
- # Sensitive credentials (VDS_AUDIT_LLM__API_KEY, tokens) belong in the shared VDS env file
1795
-
1796
- llm:
1797
- # Master switch for LLM features (default: false)
1798
- enabled: false
1799
-
1800
- # Protocol: anthropic, openai, gemini (default: openai)
1801
- # Env override: VDS_AUDIT_LLM_PROTOCOL
1802
- protocol: openai
1803
-
1804
- # API key for selected protocol (set in the shared VDS env file, not in this file)
1805
- # Env: VDS_AUDIT_LLM__API_KEY
1806
- # api_key: sk-...
1807
-
1808
- # Optional protocol endpoint override
1809
- # Env override: VDS_AUDIT_LLM__BASE_URL
1810
- # base_url: https://api.openai.com/v1
1811
-
1812
- # Enable Anthropic streaming mode for SSE-only proxy endpoints
1813
- # Env override: VDS_AUDIT_LLM__STREAM
1814
- stream: false
1815
-
1816
- # Model tiers are required when llm.enabled=true
1817
- model_simple: __VDS_MODEL_REQUIRED__ # Fast, simple checks
1818
- model_standard: __VDS_MODEL_REQUIRED__ # Standard analysis
1819
- model_complex: __VDS_MODEL_REQUIRED__ # Complex reasoning
1820
-
1821
- # Cost controls
1822
- max_cost_per_repo: 2.00
1823
- max_tokens_per_request: 12000
1824
- code_review_max_total_chars: 30000
1825
- code_review_max_files: 20
1826
- code_review_layer_enabled: true
1827
- cache_enabled: true
1828
- cache_ttl_hours: 24
1829
-
1830
- # PydanticAI retry policy
1831
- agent_retries: 2
1832
- output_retries: 2
1833
-
1834
- # Agent timeout policy (large-model/tool-use runs)
1835
- agent_timeout_seconds: 600.0
1836
- agent_timeout_max_seconds: 1800.0
1837
- agent_timeout_extension_seconds: 300.0
1838
- agent_timeout_extension_attempts: 3
1839
- agent_timeout_heartbeat_seconds: 30.0
1840
- agent_rate_limit_retry_attempts: 2
1841
- agent_rate_limit_retry_backoff_seconds: 2.0
1842
- agent_idle_timeout_seconds: 180.0
1843
-
1844
- # Toolset integration (Phase 8)
1845
- mcp_toolsets_enabled: false
1846
- mcp_toolset_type: fastmcp # fastmcp or mcp
1847
- # mcp_config_path: ~/.vds/mcp.yaml
1848
- skills_toolset_enabled: false
1849
- # skills_directories:
1850
- # - ./skills
1851
- # - ./audit_orchestrator/skills
1852
-
1853
- # Embedding configuration (Phase 47)
1854
- # BGE-M3 is validated by VN-MTEB benchmark (EACL 2026) as best for Vietnamese
1855
- embedding:
1856
- # Primary embedding model for corpus vectorization
1857
- model: bge-m3
1858
- # base_url: http://127.0.0.1:11434
1859
- # api_key: ${VDS_AUDIT_EMBEDDING__API_KEY}
1860
- dimensions: 1024
1861
-
1862
- # Fallback model when primary is unavailable
1863
- fallback_model: nomic-embed-text
1864
- fallback_dimensions: 768
1865
-
1866
- # Batch and timeout settings
1867
- batch_size: 10
1868
- timeout_seconds: 30.0
1869
- retries: 2
1870
-
1871
- paths:
1872
- # Template directory for audit templates
1873
- template_dir: ~/.vds/audit/templates
1874
-
1875
- # Checkpoint directory for resumable audits
1876
- checkpoint_dir: ~/.vds/audit/checkpoints
1877
-
1878
- # Cache directory for LLM responses
1879
- cache_dir: ~/.cache/vds_audit
1880
-
1881
- # Shared cache directory for extracted materials
1882
- materials_cache_dir: <vds-cache-root>/confluence
1883
-
1884
- # Default output directory for reports
1885
- output_dir: ./audit_reports
1886
-
1887
- features:
1888
- # Enable profile-aware weight adjustments
1889
- adaptive_weighting_enabled: true
1890
-
1891
- # Enable checkpoint/resume for long audits
1892
- checkpoint_enabled: true
1893
-
1894
- # Enable LLM-powered analysis (requires llm.enabled=true)
1895
- llm_enabled: false
1896
-
1897
- vds:
1898
- # VDS service integrations (optional, auto-detected from vds-cli)
1899
- # confluence_base_url: https://confluence.example.com
1900
- # jira_base_url: https://jira.example.com
1901
- # bitbucket_base_url: https://bitbucket.example.com
1902
- # sonarqube_base_url: https://sonarqube.example.com
1903
-
1904
- langgraph:
1905
- # LangGraph workflow checkpointing configuration
1906
- # checkpointer_type: 'memory' (default, local-only debug) or 'postgres' (durable)
1907
- checkpointer_type: memory
1908
-
1909
- # PostgreSQL connection string is sensitive and should be set in the shared VDS env file:
1910
- # VDS_AUDIT_LANGGRAPH__POSTGRES_DSN=postgresql://user:password@host:port/database
1911
-
1912
- # Thread ID prefix for workflow executions
1913
- thread_id_prefix: audit
1914
-
1915
- performance:
1916
- # FR-79 SLA guardrails
1917
- row_latency_p95_sec: 45.0
1918
- memory_ceiling_mb: 2048
1919
- throughput_rows_per_min: 3.0
1920
-
1921
- agentic:
1922
- # Agentic investigation mode (Phase 41)
1923
- # When enabled, CodeAnalysisAgent can dynamically explore repository files
1924
- # using bounded, read-only tools (list_directory, read_file, grep_search)
1925
- enabled: true
1926
- max_turns: 20
1927
- max_tool_calls: 200
1928
- tool_timeout_sec: 30
1929
- max_read_bytes: 200000
1930
- max_read_lines: 300
1931
- # safe_extensions:
1932
- # - .py
1933
- # - .md
1934
- # - .json
1935
- # - .yaml
1936
- # - .toml
1937
- """
1938
-
1939
- with open(path, "w") as f:
1940
- f.write(sample_config)
1941
-
1942
- logger.info("Created sample config file", path=str(path))
1943
- return path