@ngocsangairvds/vsaf 3.2.13 → 3.2.15

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 (1441) hide show
  1. package/bin/vsaf.js +13 -0
  2. package/package.json +1 -1
  3. package/src/config.js +167 -0
  4. package/src/global.js +34 -51
  5. package/src/utils.js +44 -1
  6. package/tools/vds-scripts/Makefile +9 -31
  7. package/tools/vds-scripts/docker/docker-compose.cli.yml +1 -117
  8. package/tools/vds-scripts/docker/docker-compose.services.yml +1 -40
  9. package/tools/vds-scripts/docker/infrastructure/init-schemas.sql +0 -34
  10. package/tools/vds-scripts/docker/infrastructure/pgbouncer/pgbouncer.ini +2 -6
  11. package/tools/vds-scripts/pyproject.toml +1 -33
  12. package/tools/vds-scripts/uv.lock +80 -1651
  13. package/tools/vds-scripts/vds_cli/pyproject.toml +3 -0
  14. package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +1 -127
  15. package/tools/vds-scripts/vds_cli/src/vds_cli/commands/lint_cli.py +1 -20
  16. package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +0 -100
  17. package/tools/vds-scripts/vds_cli/tests/conftest.py +0 -2
  18. package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +0 -25
  19. package/tools/vds-scripts/vds_cli/tests/unit/test_lint_cli.py +2 -2
  20. package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +0 -2
  21. package/tools/vds-scripts/CLOSURE.md +0 -340
  22. package/tools/vds-scripts/ECOSYSTEM-CHANGELOG.md +0 -52
  23. package/tools/vds-scripts/ECOSYSTEM-DOCS.md +0 -602
  24. package/tools/vds-scripts/ECOSYSTEM_ALIGNMENT.md +0 -133
  25. package/tools/vds-scripts/ENV-HYGIENE-OPS-NOTE.md +0 -65
  26. package/tools/vds-scripts/INVESTIGATION-cloud-401.md +0 -103
  27. package/tools/vds-scripts/MEM0_2.0_API_REFERENCE.md +0 -238
  28. package/tools/vds-scripts/PACKAGE_P125B_IMPLEMENTATION_SUMMARY.md +0 -131
  29. package/tools/vds-scripts/PHASE-MERGE-SUMMARY.md +0 -121
  30. package/tools/vds-scripts/PHASES-3-ARCHIVE.md +0 -59
  31. package/tools/vds-scripts/PROJECT_COMPLETION_SUMMARY.md +0 -45
  32. package/tools/vds-scripts/SEARCH-CRASH-REPRO.md +0 -51
  33. package/tools/vds-scripts/analyze_hexagonal.py +0 -217
  34. package/tools/vds-scripts/analyze_profiles.py +0 -60
  35. package/tools/vds-scripts/audit-checklist.xlsx +0 -0
  36. package/tools/vds-scripts/audit_orchestrator/.audit_approvals/approvals_index.json +0 -1
  37. package/tools/vds-scripts/audit_orchestrator/.env.example +0 -85
  38. package/tools/vds-scripts/audit_orchestrator/.github/workflows/audit.yml +0 -47
  39. package/tools/vds-scripts/audit_orchestrator/Dockerfile +0 -92
  40. package/tools/vds-scripts/audit_orchestrator/GOOGLE_SHEETS_IMPLEMENTATION_SUMMARY.md +0 -218
  41. package/tools/vds-scripts/audit_orchestrator/PHASE3_INTEGRATION_SUMMARY.md +0 -268
  42. package/tools/vds-scripts/audit_orchestrator/PHASE7-MERGE-SUMMARY.md +0 -174
  43. package/tools/vds-scripts/audit_orchestrator/README.md +0 -1573
  44. package/tools/vds-scripts/audit_orchestrator/TSK-168-IMPLEMENTATION-SUMMARY.md +0 -191
  45. package/tools/vds-scripts/audit_orchestrator/TSK-196-IMPLEMENTATION-SUMMARY.md +0 -201
  46. package/tools/vds-scripts/audit_orchestrator/alembic/env.py +0 -37
  47. package/tools/vds-scripts/audit_orchestrator/alembic/script.py.mako +0 -28
  48. package/tools/vds-scripts/audit_orchestrator/alembic/versions/0001_initial_audit_state_schema.py +0 -1260
  49. package/tools/vds-scripts/audit_orchestrator/alembic.ini +0 -68
  50. package/tools/vds-scripts/audit_orchestrator/config/category-mapping.json +0 -81
  51. package/tools/vds-scripts/audit_orchestrator/config/profile-timeouts.yaml +0 -17
  52. package/tools/vds-scripts/audit_orchestrator/create_sample.py +0 -55
  53. package/tools/vds-scripts/audit_orchestrator/data/corpus_accuracy_report.json +0 -17
  54. package/tools/vds-scripts/audit_orchestrator/data/exemplar_quality_report.json +0 -1606
  55. package/tools/vds-scripts/audit_orchestrator/data/instruction_plan_fixtures.json +0 -163
  56. package/tools/vds-scripts/audit_orchestrator/data/requirement_exemplars.json +0 -3443
  57. package/tools/vds-scripts/audit_orchestrator/data/requirement_scope_fixtures.json +0 -172
  58. package/tools/vds-scripts/audit_orchestrator/debug_rg.py +0 -46
  59. package/tools/vds-scripts/audit_orchestrator/demo_code_pack.py +0 -127
  60. package/tools/vds-scripts/audit_orchestrator/docs/AGENT_SDK_SELECTION_SPEC.md +0 -720
  61. package/tools/vds-scripts/audit_orchestrator/docs/API.md +0 -804
  62. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_ANALYSIS_APPROACH.md +0 -1041
  63. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_SCORING_EVOLUTION_SPEC.md +0 -868
  64. package/tools/vds-scripts/audit_orchestrator/docs/DEPLOYMENT.md +0 -778
  65. package/tools/vds-scripts/audit_orchestrator/docs/LLM_AGENT_AUDIT_SPEC.md +0 -721
  66. package/tools/vds-scripts/audit_orchestrator/docs/LLM_CONTENT_ANALYSIS_SPEC.md +0 -1143
  67. package/tools/vds-scripts/audit_orchestrator/docs/LSP_SETUP_GUIDE.md +0 -221
  68. package/tools/vds-scripts/audit_orchestrator/docs/MULTI_REPO_AUDIT_SPEC.md +0 -951
  69. package/tools/vds-scripts/audit_orchestrator/docs/OLLAMA_EMBEDDINGS_SETUP.md +0 -119
  70. package/tools/vds-scripts/audit_orchestrator/docs/PHASE32_REAL_BENCHMARK_2026-02-08.md +0 -66
  71. package/tools/vds-scripts/audit_orchestrator/docs/PHASE_64_TO_92_HISTORICAL_SPEC.md +0 -1772
  72. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-flow-trace.md +0 -201
  73. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-verification.md +0 -124
  74. package/tools/vds-scripts/audit_orchestrator/docs/phase152-hierarchical-query-surface.md +0 -46
  75. package/tools/vds-scripts/audit_orchestrator/examples/bitbucket_metadata_example.json +0 -50
  76. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/README.md +0 -68
  77. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase117_phase118_shared_state.sql +0 -64
  78. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase154_published_pages.sql +0 -28
  79. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_dispatch_tables.sql +0 -94
  80. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_events.sql +0 -91
  81. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_scope_snapshots.sql +0 -24
  82. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_status_view.sql +0 -22
  83. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase169_dispatch_observability.sql +0 -55
  84. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/state_repair_hardening.sql +0 -24
  85. package/tools/vds-scripts/audit_orchestrator/pyproject.toml +0 -211
  86. package/tools/vds-scripts/audit_orchestrator/pyrightconfig.json +0 -51
  87. package/tools/vds-scripts/audit_orchestrator/pytest.ini +0 -37
  88. package/tools/vds-scripts/audit_orchestrator/reproduce_scanner.py +0 -40
  89. package/tools/vds-scripts/audit_orchestrator/scripts/README.md +0 -116
  90. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_crawl_modes.py +0 -455
  91. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_dspy.py +0 -513
  92. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_nlp_accuracy.py +0 -138
  93. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_retrieval_modes.py +0 -176
  94. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_upload_update_mode.py +0 -167
  95. package/tools/vds-scripts/audit_orchestrator/scripts/build_check.py +0 -76
  96. package/tools/vds-scripts/audit_orchestrator/scripts/check_live_progress.py +0 -61
  97. package/tools/vds-scripts/audit_orchestrator/scripts/cli_integration_test.py +0 -400
  98. package/tools/vds-scripts/audit_orchestrator/scripts/index_workspace.py +0 -178
  99. package/tools/vds-scripts/audit_orchestrator/scripts/inspect_route_conformance.py +0 -196
  100. package/tools/vds-scripts/audit_orchestrator/scripts/monitor_postgres.py +0 -145
  101. package/tools/vds-scripts/audit_orchestrator/scripts/optimize_audit.py +0 -462
  102. package/tools/vds-scripts/audit_orchestrator/scripts/verify.py +0 -673
  103. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase111_requirement_analysis.py +0 -375
  104. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase117_cross_repo_evidence.py +0 -77
  105. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase121_short_circuit.py +0 -680
  106. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase122_instruction_handling.py +0 -478
  107. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase125_skill_integration.py +0 -832
  108. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_36.py +0 -394
  109. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_37.py +0 -58
  110. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/__init__.py +0 -17
  111. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/__init__.py +0 -29
  112. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/_langchain_warnings.py +0 -17
  113. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/agentic_investigator.py +0 -4130
  114. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/approval.py +0 -490
  115. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_loop_hooks.py +0 -107
  116. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_state.py +0 -50
  117. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/base.py +0 -4035
  118. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_agent.py +0 -667
  119. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_helpers.py +0 -236
  120. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_prompts.py +0 -146
  121. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/docs_agent.py +0 -1234
  122. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/langgraph_workflow.py +0 -2002
  123. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/pydantic_base.py +0 -1227
  124. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/requirement_analysis_agent.py +0 -593
  125. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_agent.py +0 -1829
  126. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_scanner.py +0 -686
  127. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/skill_tools.py +0 -204
  128. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/synthesis_agent.py +0 -1463
  129. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_efficiency_guard.py +0 -609
  130. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_registry.py +0 -3822
  131. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/__init__.py +0 -52
  132. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/evidence_corpus.py +0 -385
  133. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/filesystem.py +0 -1134
  134. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/lsp.py +0 -458
  135. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/mcp_toolset.py +0 -491
  136. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/skills_toolset.py +0 -997
  137. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/vector_evidence.py +0 -842
  138. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/usage_tracker.py +0 -682
  139. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/visualization.py +0 -303
  140. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/analyze_cmds.py +0 -892
  141. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/__init__.py +0 -15
  142. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/service.py +0 -171
  143. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/__init__.py +0 -20
  144. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/base.py +0 -60
  145. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/__init__.py +0 -6
  146. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/checks.py +0 -257
  147. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/__init__.py +0 -10
  148. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/checks.py +0 -78
  149. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/__init__.py +0 -6
  150. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/file_checks.py +0 -133
  151. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/__init__.py +0 -17
  152. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/api_docs_check.py +0 -80
  153. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/readme_check.py +0 -76
  154. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/security_docs_check.py +0 -78
  155. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/registry.py +0 -402
  156. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/__init__.py +0 -10
  157. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/checks.py +0 -276
  158. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli.py +0 -12
  159. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_common.py +0 -128
  160. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_impl.py +0 -9826
  161. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/bitbucket_cli_client.py +0 -187
  162. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/confluence_cli_client.py +0 -977
  163. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/sonarqube_cli_client.py +0 -28
  164. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/__init__.py +0 -21
  165. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/base.py +0 -25
  166. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_downloader.py +0 -644
  167. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_metadata.py +0 -133
  168. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/checklist_parser.py +0 -180
  169. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/__init__.py +0 -31
  170. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/bitbucket_probe.py +0 -443
  171. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/confluence_probe.py +0 -365
  172. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/freshness_evaluator.py +0 -330
  173. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/material_completeness_service.py +0 -1079
  174. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/confluence_collector.py +0 -259
  175. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/diagram_extractor.py +0 -280
  176. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/enrichment_extractor.py +0 -200
  177. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/evidence_cache.py +0 -35
  178. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/git_collector.py +0 -148
  179. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/graphify_collector.py +0 -171
  180. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/image_extractor.py +0 -359
  181. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/linked_page_tracker.py +0 -120
  182. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/markdown_converter.py +0 -344
  183. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_cache.py +0 -1252
  184. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_downloader.py +0 -1165
  185. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/orchestrator.py +0 -168
  186. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/registry_parser.py +0 -3063
  187. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/requirements.py +0 -70
  188. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/runner.py +0 -119
  189. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/sonarqube_collector.py +0 -113
  190. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config.py +0 -1943
  191. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/__init__.py +0 -23
  192. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/discovery.py +0 -90
  193. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/environment_resolver.py +0 -56
  194. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/evidence.py +0 -78
  195. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/models.py +0 -73
  196. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/precedence.py +0 -10
  197. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/redaction.py +0 -20
  198. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/confluence_connectivity.py +0 -140
  199. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/corpus_cmds.py +0 -278
  200. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/__init__.py +0 -7
  201. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/alembic_filters.py +0 -57
  202. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/__init__.py +0 -29
  203. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/diataxis_validator.py +0 -687
  204. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/doctor_cmds.py +0 -3295
  205. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/__init__.py +0 -5
  206. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/evaluation.py +0 -301
  207. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/modules.py +0 -172
  208. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/runtime.py +0 -836
  209. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/signatures.py +0 -406
  210. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/__init__.py +0 -192
  211. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/ad_hoc_analyzer.py +0 -399
  212. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/aggregator.py +0 -220
  213. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/auditor.py +0 -504
  214. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_evidence_cache.py +0 -111
  215. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_processor.py +0 -4776
  216. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/calibration.py +0 -217
  217. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_generator.py +0 -1201
  218. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_projection.py +0 -192
  219. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_scoping.py +0 -221
  220. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checkpoint.py +0 -159
  221. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cl003_shared_lib_guard.py +0 -194
  222. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/companion_context_service.py +0 -445
  223. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/confluence_checklist_contract.py +0 -7425
  224. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cross_check_rules.py +0 -213
  225. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/deterministic_evaluator.py +0 -237
  226. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/drift_detector.py +0 -157
  227. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/dspy_requirement_classifier.py +0 -640
  228. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_assembler.py +0 -407
  229. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_collector.py +0 -119
  230. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_diversity.py +0 -101
  231. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/gap_analyzer.py +0 -549
  232. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/graduated.py +0 -185
  233. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/grounding_validator.py +0 -287
  234. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_analyzer.py +0 -882
  235. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_compliance.py +0 -172
  236. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/llm_row_evaluator.py +0 -9270
  237. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/loader.py +0 -1070
  238. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/manual_check_config.py +0 -136
  239. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/mapping.py +0 -269
  240. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/multi_judge.py +0 -65
  241. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/phase120_checklist_update.py +0 -416
  242. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/profile_scorer.py +0 -427
  243. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_evidence_context.py +0 -449
  244. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_query_service.py +0 -155
  245. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_store.py +0 -383
  246. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_topology.py +0 -1920
  247. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/provider_failure_classifier.py +0 -778
  248. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_cli_helpers.py +0 -341
  249. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_extractor.py +0 -303
  250. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_synthesizer.py +0 -730
  251. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/regression_guard.py +0 -138
  252. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/repo_type_classifier.py +0 -297
  253. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_analysis.py +0 -1433
  254. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_classification.py +0 -1725
  255. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/result_merger.py +0 -814
  256. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/route_matrix.py +0 -267
  257. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator.py +0 -9437
  258. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_runtime.py +0 -1270
  259. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_types.py +0 -2102
  260. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/rubric.py +0 -592
  261. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/scorer.py +0 -1239
  262. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/section_packs.py +0 -645
  263. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/skill_recommendation.py +0 -1183
  264. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/stability_harness.py +0 -207
  265. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/target_selector.py +0 -841
  266. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/telemetry.py +0 -347
  267. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/template_analyzer.py +0 -469
  268. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/token_tracker.py +0 -111
  269. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/tool_first_planner.py +0 -7905
  270. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/topology_query_service.py +0 -80
  271. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/validator.py +0 -449
  272. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/weight_policy.py +0 -464
  273. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/errors.py +0 -430
  274. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/extract_cmds.py +0 -4887
  275. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/identity.py +0 -146
  276. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/__init__.py +0 -52
  277. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/baseline.py +0 -378
  278. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/change_analyzer.py +0 -407
  279. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/delta_report.py +0 -189
  280. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/diff_detector.py +0 -301
  281. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/integrations/__init__.py +0 -3
  282. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/__init__.py +0 -50
  283. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/audit_schemas.py +0 -459
  284. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/codex_oauth.py +0 -340
  285. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/cost_tracker.py +0 -288
  286. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/engine.py +0 -751
  287. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/evaluator.py +0 -245
  288. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/__init__.py +0 -32
  289. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/api_docs_evaluation.py +0 -25
  290. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/gap_analysis.py +0 -31
  291. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/instruction_templates.py +0 -634
  292. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/readme_evaluation.py +0 -25
  293. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/row_evaluation.py +0 -247
  294. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/security_docs_evaluation.py +0 -25
  295. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/template_analysis.py +0 -25
  296. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts.py +0 -0
  297. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/provider.py +0 -626
  298. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/logging_config.py +0 -577
  299. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/__init__.py +0 -58
  300. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/default_checklist_mapping.json +0 -18
  301. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/vietnamese_checklist_mapping.json +0 -38
  302. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/misc_cmds.py +0 -4689
  303. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/__init__.py +0 -153
  304. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/calibration.py +0 -98
  305. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/checklist.py +0 -921
  306. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/completeness.py +0 -309
  307. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enrichment.py +0 -58
  308. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enums.py +0 -97
  309. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/evidence.py +0 -351
  310. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/findings.py +0 -381
  311. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/gaps.py +0 -299
  312. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/graph.py +0 -42
  313. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/multi_judge.py +0 -50
  314. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/readiness.py +0 -309
  315. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/registry.py +0 -386
  316. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/reporting.py +0 -32
  317. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/task.py +0 -549
  318. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/template.py +0 -477
  319. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/__init__.py +0 -31
  320. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/metrics.py +0 -404
  321. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/parse_cmds.py +0 -608
  322. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/pdf_cmds.py +0 -208
  323. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/performance_gates.py +0 -224
  324. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/phase151_projection.py +0 -84
  325. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/__init__.py +0 -65
  326. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/detection.py +0 -842
  327. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/models.py +0 -474
  328. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/__init__.py +0 -1
  329. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_confluence_macros.py +0 -145
  330. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_field_sanitizer.py +0 -25
  331. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_table_builder.py +0 -63
  332. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_vietnamese_templates.py +0 -103
  333. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/bitbucket_link_resolver.py +0 -34
  334. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/checklist_renderer.py +0 -483
  335. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/confluence_publisher.py +0 -3048
  336. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/hierarchy_publisher.py +0 -213
  337. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/live_data_injector.py +0 -152
  338. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/macro_builder.py +0 -101
  339. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/markdown_converter.py +0 -154
  340. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/priority_renderer.py +0 -133
  341. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/project_aggregate_renderer.py +0 -423
  342. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/readiness_renderer.py +0 -186
  343. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_hierarchy_renderer.py +0 -382
  344. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_renderer.py +0 -683
  345. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/report_cmds.py +0 -788
  346. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/__init__.py +0 -13
  347. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/aggregation_report.py +0 -86
  348. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/checklist_generator.py +0 -425
  349. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/excel_generator.py +0 -599
  350. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/gap_report.py +0 -131
  351. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/json_generator.py +0 -188
  352. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/markdown_generator.py +0 -595
  353. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/__init__.py +0 -154
  354. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/collector.py +0 -61
  355. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/department_builder.py +0 -77
  356. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/errors.py +0 -9
  357. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/md_renderer.py +0 -386
  358. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_models.py +0 -95
  359. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_writer.py +0 -27
  360. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/repo_project_builders.py +0 -274
  361. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/readiness_report.py +0 -447
  362. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/reporting.py +0 -94
  363. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/sarif_generator.py +0 -519
  364. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/runtime_profiles.py +0 -98
  365. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/__init__.py +0 -29
  366. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/seed_loader.py +0 -561
  367. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/__init__.py +0 -5
  368. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/skill_routing.py +0 -312
  369. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/__init__.py +0 -0
  370. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/base.py +0 -110
  371. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/bitbucket.py +0 -129
  372. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/git_url.py +0 -60
  373. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/github.py +0 -75
  374. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/local.py +0 -58
  375. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/spec_sync_validator.py +0 -15
  376. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/__init__.py +0 -6285
  377. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/readiness_helpers.py +0 -74
  378. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/skill_readiness.py +0 -487
  379. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/store.py +0 -12927
  380. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state_cmds.py +0 -1868
  381. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/__init__.py +0 -0
  382. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/repo_sync.py +0 -409
  383. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync_cmds.py +0 -1247
  384. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/__init__.py +0 -3
  385. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/debug_bundle.py +0 -214
  386. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/validators/checklist_validator.py +0 -342
  387. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflow_cmds.py +0 -19147
  388. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/__init__.py +0 -9
  389. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/_test_audit_daily_batch.py +0 -192
  390. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_daily_batch.py +0 -308
  391. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_deep_monthly.py +0 -193
  392. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_drift_scan.py +0 -178
  393. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_security_daily.py +0 -183
  394. package/tools/vds-scripts/audit_orchestrator/templates/sample_audit_template.xlsx +0 -0
  395. package/tools/vds-scripts/audit_orchestrator/tests/__init__.py +0 -0
  396. package/tools/vds-scripts/audit_orchestrator/tests/_helpers.py +0 -32
  397. package/tools/vds-scripts/audit_orchestrator/tests/collectors/__init__.py +0 -0
  398. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/__init__.py +0 -0
  399. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_bitbucket_probe.py +0 -403
  400. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_confluence_probe.py +0 -423
  401. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_bitbucket_downloader.py +0 -289
  402. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_image_extractor.py +0 -260
  403. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_markdown_converter.py +0 -57
  404. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_cache.py +0 -197
  405. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_downloader.py +0 -550
  406. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser.py +0 -3514
  407. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_department_entry.py +0 -214
  408. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_flow.py +0 -200
  409. package/tools/vds-scripts/audit_orchestrator/tests/conftest.py +0 -988
  410. package/tools/vds-scripts/audit_orchestrator/tests/engine/__init__.py +0 -0
  411. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_calibration.py +0 -48
  412. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_confluence_checklist_phase22_helpers.py +0 -6065
  413. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_multi_judge.py +0 -62
  414. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_stability_harness.py +0 -61
  415. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_structured_metadata.py +0 -419
  416. package/tools/vds-scripts/audit_orchestrator/tests/factories/__init__.py +0 -0
  417. package/tools/vds-scripts/audit_orchestrator/tests/factories/models.py +0 -534
  418. package/tools/vds-scripts/audit_orchestrator/tests/factories/templates.py +0 -241
  419. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/__init__.py +0 -0
  420. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/__init__.py +0 -0
  421. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/compressed.drawio +0 -2
  422. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/mockup.bmpr +0 -0
  423. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/simple.drawio +0 -26
  424. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/__init__.py +0 -0
  425. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/__init__.py +0 -0
  426. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_cli.json +0 -26
  427. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_direct.json +0 -24
  428. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_cli.json +0 -14
  429. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_direct.json +0 -12
  430. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/__init__.py +0 -0
  431. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_cli.json +0 -7
  432. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_direct.json +0 -7
  433. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_cli.json +0 -11
  434. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_direct.json +0 -7
  435. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/__init__.py +0 -0
  436. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_cli.json +0 -12
  437. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_direct.json +0 -12
  438. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/requirement_strategy_phase115.json +0 -118
  439. package/tools/vds-scripts/audit_orchestrator/tests/integration/__init__.py +0 -0
  440. package/tools/vds-scripts/audit_orchestrator/tests/integration/conftest.py +0 -107
  441. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/__init__.py +0 -0
  442. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/expected_outcomes.md +0 -50
  443. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/__init__.py +0 -0
  444. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/auth.py +0 -27
  445. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/config.py +0 -16
  446. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/db.py +0 -24
  447. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/main.py +0 -18
  448. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/__init__.py +0 -1
  449. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/utils.py +0 -22
  450. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_checklist_template.json +0 -110
  451. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/__init__.py +0 -0
  452. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/code_evidence_pack.json +0 -40
  453. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/manifest.json +0 -49
  454. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/__init__.py +0 -0
  455. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/__init__.py +0 -0
  456. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/brd.md +0 -19
  457. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/design.md +0 -32
  458. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/security.md +0 -23
  459. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/srs.md +0 -25
  460. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/test.md +0 -30
  461. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_checkpoint_merge.py +0 -1371
  462. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_decoupling_route_p149.py +0 -176
  463. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_gap_analyzer_batch_p149.py +0 -151
  464. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_hybrid_search.py +0 -799
  465. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_mcp_integration.py +0 -741
  466. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_merge_ranking_p149.py +0 -98
  467. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_modality_mismatch_p149.py +0 -171
  468. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase117_118_storage.py +0 -350
  469. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase121_short_circuit.py +0 -732
  470. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase18_workflow.py +0 -223
  471. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase48_e2e_verification.py +0 -763
  472. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase81_doc_anchor_regression.py +0 -252
  473. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_provider_failure_finding_p149.py +0 -339
  474. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_readiness_e2e.py +0 -430
  475. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_refined_workflow.py +0 -1180
  476. package/tools/vds-scripts/audit_orchestrator/tests/pdf/__init__.py +0 -0
  477. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/__init__.py +0 -0
  478. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/department_renderer.md +0 -24
  479. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/project_renderer.md +0 -8
  480. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/repo_renderer.md +0 -10
  481. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_department_pdf.py +0 -112
  482. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_e2e_pdf.py +0 -135
  483. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_idempotency.py +0 -45
  484. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_md_renderer.py +0 -46
  485. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_cmds.py +0 -97
  486. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_snapshot.py +0 -77
  487. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_writer.py +0 -65
  488. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_project_builder.py +0 -199
  489. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_public_api.py +0 -135
  490. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_repo_builder.py +0 -246
  491. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_workflow_pdf_flags.py +0 -36
  492. package/tools/vds-scripts/audit_orchestrator/tests/property/__init__.py +0 -0
  493. package/tools/vds-scripts/audit_orchestrator/tests/property/test_properties.py +0 -807
  494. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/__init__.py +0 -0
  495. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agent_error_compat.py +0 -38
  496. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agentic_skill_policy_skip.py +0 -234
  497. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_event_stream_logging.py +0 -785
  498. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_timeout_policy.py +0 -277
  499. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_trace_payload_sanitization.py +0 -92
  500. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent.py +0 -2311
  501. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent_re_exports.py +0 -25
  502. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_analysis_helpers.py +0 -94
  503. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_create_audit_agent_reasoning_effort.py +0 -69
  504. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_docs_agent.py +0 -2044
  505. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_langgraph_workflow_efficiency_metrics.py +0 -71
  506. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_output_validators.py +0 -317
  507. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_phase41_toolsets.py +0 -6427
  508. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_ai_models.py +0 -1219
  509. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_base_url_resolution.py +0 -84
  510. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_security_agent.py +0 -2069
  511. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_skill_manager_focus.py +0 -439
  512. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_synthesis_agent.py +0 -1195
  513. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_tool_efficiency_guard_fr120.py +0 -683
  514. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_toolsets.py +0 -716
  515. package/tools/vds-scripts/audit_orchestrator/tests/test_aggregator_p149.py +0 -171
  516. package/tools/vds-scripts/audit_orchestrator/tests/test_alembic_migrations.py +0 -287
  517. package/tools/vds-scripts/audit_orchestrator/tests/test_anchor_allowlist_p149.py +0 -273
  518. package/tools/vds-scripts/audit_orchestrator/tests/test_audit_otel.py +0 -283
  519. package/tools/vds-scripts/audit_orchestrator/tests/test_checklist_models.py +0 -583
  520. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/__init__.py +0 -0
  521. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_base_check.py +0 -211
  522. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_llm_checks.py +0 -126
  523. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/__init__.py +0 -0
  524. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_analyze_command.py +0 -400
  525. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_archive_stale_page_cli.py +0 -217
  526. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_bitbucket_metadata_cli.py +0 -354
  527. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_cli_impl_profile_availability.py +0 -114
  528. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_codex_profile.py +0 -174
  529. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_compare_backends_cli.py +0 -449
  530. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_confluence_parent_auto_resolve.py +0 -451
  531. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_corpus_purge_cli.py +0 -290
  532. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_credentials_preflight.py +0 -106
  533. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_debug_bundle.py +0 -37
  534. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_deprecation_phase157.py +0 -484
  535. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_dispatch_concurrency_diagnostics.py +0 -758
  536. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_check_confluence_cli.py +0 -320
  537. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_codex.py +0 -187
  538. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_corpus_status_cli.py +0 -236
  539. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_correlation_cli.py +0 -128
  540. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_crawl_status_cli.py +0 -192
  541. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_credentials_cli.py +0 -86
  542. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_dispatch_status_cli.py +0 -421
  543. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_heartbeat_phase169.py +0 -173
  544. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_hierarchy_status_cli.py +0 -199
  545. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_locks_cli.py +0 -134
  546. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_logs_follow_cli.py +0 -305
  547. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_migration.py +0 -333
  548. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_profile_availability_cli.py +0 -151
  549. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_skills_policy_cli.py +0 -153
  550. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_evidence_quality_cli.py +0 -307
  551. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_debug_bundle_phase36.py +0 -60
  552. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_git_manifest_cli.py +0 -172
  553. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_file_removal_phase157e.py +0 -770
  554. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_grounding_classifier.py +0 -226
  555. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_logging.py +0 -49
  556. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_materials_cli.py +0 -9127
  557. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_metadata_completeness_phase92.py +0 -364
  558. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parent_dispatch_finalization_phase168f.py +0 -111
  559. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parse_cli.py +0 -590
  560. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase117_118_feature_flags.py +0 -219
  561. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase164_control_plane.py +0 -718
  562. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase165_runner_scripts.py +0 -230
  563. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_preparation_classifications.py +0 -146
  564. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_prepare_cli.py +0 -398
  565. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publication_quality_gate.py +0 -126
  566. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publish_system_doc_cli.py +0 -158
  567. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_query_checklist_cli.py +0 -219
  568. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli.py +0 -673
  569. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli_integration.py +0 -689
  570. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_removed_flags_phase92.py +0 -36
  571. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_report_cmds.py +0 -1317
  572. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_history_index.py +0 -57
  573. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_management.py +0 -1194
  574. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_runtime_profiles_cli.py +0 -1658
  575. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_smart_run_selection.py +0 -1562
  576. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_cli.py +0 -2467
  577. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_migration.py +0 -339
  578. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_sync_repos_debug_artifacts.py +0 -1109
  579. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_upload_results_cli.py +0 -809
  580. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist.py +0 -178
  581. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist_cli.py +0 -110
  582. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_spec_sync_cli.py +0 -519
  583. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_default_parameters_baseline.py +0 -101
  584. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_options.py +0 -7896
  585. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_db_modes.py +0 -6516
  586. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_project_scope.py +0 -831
  587. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_target.py +0 -611
  588. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_lifecycle.py +0 -2488
  589. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_scaffolding.py +0 -96
  590. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_row_key_guard.py +0 -78
  591. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_summary_artifacts.py +0 -1872
  592. package/tools/vds-scripts/audit_orchestrator/tests/test_cli_paths_phase2.py +0 -45
  593. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/__init__.py +0 -0
  594. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_bitbucket_cli_client.py +0 -124
  595. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_cli_parity.py +0 -110
  596. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_confluence_cli_client.py +0 -1149
  597. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_sonarqube_cli_client.py +0 -19
  598. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/__init__.py +0 -0
  599. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/test_linked_page_tracker.py +0 -118
  600. package/tools/vds-scripts/audit_orchestrator/tests/test_companion_context_service.py +0 -230
  601. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/__init__.py +0 -0
  602. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/conftest.py +0 -11
  603. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_compile_artifact.py +0 -465
  604. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique.py +0 -120
  605. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique_e2e.py +0 -75
  606. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_evaluation.py +0 -515
  607. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_runtime_loader.py +0 -537
  608. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_signatures_normalization.py +0 -172
  609. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/__init__.py +0 -0
  610. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_auditor_applicability.py +0 -68
  611. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_generator.py +0 -1252
  612. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_projection.py +0 -54
  613. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_confluence_checklist_projection_consistency.py +0 -1696
  614. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_critique_merger_matrix.py +0 -120
  615. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_check_rules.py +0 -459
  616. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_provider_critique.py +0 -55
  617. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_doc_loader.py +0 -73
  618. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_drift_detector.py +0 -34
  619. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_evidence_collectors.py +0 -93
  620. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_lease_timeout.py +0 -114
  621. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader.py +0 -350
  622. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader_parity.py +0 -179
  623. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_low_confidence_reeval.py +0 -691
  624. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase145a_completion.py +0 -209
  625. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase31_row_consistency_retry_benchmark.py +0 -150
  626. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_profile_detector.py +0 -286
  627. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_regression_guard.py +0 -53
  628. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_result_merger.py +0 -619
  629. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_evaluator.py +0 -15783
  630. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_failover.py +0 -215
  631. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_scorer.py +0 -597
  632. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_skill_breakdown_telemetry_fr137.py +0 -421
  633. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_targeted_auto_merge.py +0 -229
  634. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_failover.py +0 -488
  635. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_telemetry.py +0 -73
  636. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_validator.py +0 -419
  637. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/__init__.py +0 -0
  638. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/test_diff_detector.py +0 -111
  639. package/tools/vds-scripts/audit_orchestrator/tests/test_infra_persistence.py +0 -291
  640. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/__init__.py +0 -0
  641. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/test_phase3_integration.py +0 -516
  642. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/__init__.py +0 -0
  643. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cache.py +0 -670
  644. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_model_builder.py +0 -281
  645. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_oauth.py +0 -330
  646. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_streaming.py +0 -433
  647. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cost_tracker.py +0 -27
  648. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_engine.py +0 -876
  649. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_evaluator.py +0 -212
  650. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_instruction_templates.py +0 -639
  651. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompt_metadata.py +0 -97
  652. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompts.py +0 -660
  653. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider.py +0 -330
  654. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider_contract_sync.py +0 -18
  655. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_reasoning_effort_validation.py +0 -565
  656. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_schemas.py +0 -827
  657. package/tools/vds-scripts/audit_orchestrator/tests/test_logging_config.py +0 -297
  658. package/tools/vds-scripts/audit_orchestrator/tests/test_models/__init__.py +0 -0
  659. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_enums.py +0 -185
  660. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_findings.py +0 -1159
  661. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_project_profile.py +0 -307
  662. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_registry.py +0 -532
  663. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_template.py +0 -708
  664. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/__init__.py +0 -0
  665. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/test_metrics.py +0 -60
  666. package/tools/vds-scripts/audit_orchestrator/tests/test_paths_config_phase2.py +0 -21
  667. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/__init__.py +0 -0
  668. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/test_fr79_performance_guardrails.py +0 -199
  669. package/tools/vds-scripts/audit_orchestrator/tests/test_phase156_hardening.py +0 -498
  670. package/tools/vds-scripts/audit_orchestrator/tests/test_phase93_regression_guards.py +0 -123
  671. package/tools/vds-scripts/audit_orchestrator/tests/test_pipeline_integration.py +0 -517
  672. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/__init__.py +0 -0
  673. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/test_detection.py +0 -146
  674. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/__init__.py +0 -0
  675. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_bitbucket_link_resolver.py +0 -55
  676. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer.py +0 -84
  677. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer_projection.py +0 -97
  678. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_macros.py +0 -58
  679. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_publisher.py +0 -2171
  680. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_evidence_links.py +0 -129
  681. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_field_sanitizer.py +0 -108
  682. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_hierarchy_publisher.py +0 -134
  683. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_incremental_plan_parser.py +0 -62
  684. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_live_data_injector.py +0 -48
  685. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_macro_builder.py +0 -22
  686. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_p161_confluence_optimization.py +0 -168
  687. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_priority_renderer.py +0 -96
  688. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_project_aggregate_renderer.py +0 -364
  689. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_storage_validation.py +0 -273
  690. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_summary_refactor.py +0 -118
  691. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_system_doc_hierarchy.py +0 -50
  692. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_table_builder.py +0 -23
  693. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_vietnamese_templates.py +0 -37
  694. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_wiring_integration.py +0 -290
  695. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/__init__.py +0 -0
  696. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_aggregation_report.py +0 -181
  697. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_checklist_generator.py +0 -258
  698. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_gap_report.py +0 -73
  699. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_json_generator.py +0 -317
  700. package/tools/vds-scripts/audit_orchestrator/tests/test_result_merger_p149.py +0 -347
  701. package/tools/vds-scripts/audit_orchestrator/tests/test_route_mode_p149.py +0 -178
  702. package/tools/vds-scripts/audit_orchestrator/tests/test_rubric_parser.py +0 -179
  703. package/tools/vds-scripts/audit_orchestrator/tests/test_scorer.py +0 -110
  704. package/tools/vds-scripts/audit_orchestrator/tests/test_state/__init__.py +0 -0
  705. package/tools/vds-scripts/audit_orchestrator/tests/test_state/test_sparse_coverage.py +0 -117
  706. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/__init__.py +0 -0
  707. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_langgraph_workflow.py +0 -2072
  708. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_p161_runtime_hardening.py +0 -341
  709. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p149.py +0 -112
  710. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p172.py +0 -126
  711. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_guidance_p150.py +0 -95
  712. package/tools/vds-scripts/audit_orchestrator/tests/unit/__init__.py +0 -0
  713. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/__init__.py +0 -0
  714. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_agentic_investigator_phase115.py +0 -42
  715. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_requirement_analysis_agent.py +0 -412
  716. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_agent_updates.py +0 -131
  717. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_scanner.py +0 -397
  718. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_executor.py +0 -316
  719. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_fallback.py +0 -299
  720. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_policy.py +0 -520
  721. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_telemetry.py +0 -306
  722. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_synthesis_fixes.py +0 -761
  723. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_argument_robustness.py +0 -272
  724. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry.py +0 -2548
  725. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_ast_grep.py +0 -87
  726. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase123_scoping.py +0 -353
  727. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase94_ff.py +0 -445
  728. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_vector_search_phase115.py +0 -35
  729. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_utils.py +0 -1007
  730. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_vector_evidence_toolset.py +0 -622
  731. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/__init__.py +0 -0
  732. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/test_workflow_cli.py +0 -123
  733. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/__init__.py +0 -0
  734. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_cache_guard.py +0 -479
  735. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_checklist_parser_phase120.py +0 -55
  736. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_diagram_extractor.py +0 -467
  737. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_enrichment_extractor.py +0 -59
  738. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_graphify_collector.py +0 -158
  739. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/__init__.py +0 -0
  740. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_completeness.py +0 -563
  741. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_freshness_evaluator.py +0 -493
  742. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_cache_metrics.py +0 -365
  743. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_completeness_service.py +0 -2736
  744. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/__init__.py +0 -0
  745. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_discovery.py +0 -47
  746. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_redaction.py +0 -15
  747. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/__init__.py +0 -0
  748. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_ad_hoc_analyzer.py +0 -576
  749. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_agent_loop.py +0 -1896
  750. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_anchor_filter_cl003.py +0 -181
  751. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_evidence_cache.py +0 -155
  752. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_processor.py +0 -3608
  753. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_contract.py +0 -55
  754. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_scoping.py +0 -371
  755. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_companion_phase123.py +0 -142
  756. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_evidence_phase123.py +0 -249
  757. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_confluence_checklist_contract_export_parity.py +0 -813
  758. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_cross_repo_config_phase122.py +0 -613
  759. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_dspy_requirement_classifier.py +0 -517
  760. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_diversity.py +0 -144
  761. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_truncation.py +0 -108
  762. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_grounding_validator.py +0 -127
  763. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_guidance_injection_phase120.py +0 -105
  764. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_analysis_phase122.py +0 -761
  765. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_pre_filter_phase167.py +0 -334
  766. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_llm_row_evaluator_retries.py +0 -3684
  767. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_loader_phase123.py +0 -345
  768. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_manual_check_gating_phase122.py +0 -474
  769. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_parallel_eval.py +0 -263
  770. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase122_verifier_phase122.py +0 -169
  771. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase166_route_failover.py +0 -437
  772. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_post_eval_cl003_shared_lib.py +0 -267
  773. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_postproc_streaming.py +0 -194
  774. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_pre_eval_gating_phase122.py +0 -362
  775. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_prepare_topology_coverage.py +0 -247
  776. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_private_dns_sanitization_phase104.py +0 -397
  777. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_evidence_context.py +0 -450
  778. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_knowledge_store.py +0 -487
  779. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_topology.py +0 -1142
  780. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_provider_failure_classifier.py +0 -195
  781. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_extractor.py +0 -496
  782. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_synthesizer.py +0 -653
  783. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_repo_type_classifier.py +0 -303
  784. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis.py +0 -508
  785. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_execution_scope.py +0 -239
  786. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase114.py +0 -919
  787. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase115.py +0 -97
  788. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_shared_lib.py +0 -340
  789. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_drift.py +0 -729
  790. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_nlp.py +0 -670
  791. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_scope_phase122.py +0 -615
  792. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_matrix.py +0 -258
  793. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_override.py +0 -141
  794. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_routing_precision.py +0 -650
  795. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_dual_evidence.py +0 -2987
  796. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_instruction_runtime_phase122.py +0 -365
  797. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_runtime.py +0 -830
  798. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_runtime_hardening_phase122.py +0 -225
  799. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoped_na_skip.py +0 -107
  800. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoring_enhancements.py +0 -404
  801. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_retrieval_phase123.py +0 -441
  802. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_routing_phase123.py +0 -279
  803. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_resource_indexing_phase122.py +0 -188
  804. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_recommendation.py +0 -225
  805. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_routing_cl003_shared_lib.py +0 -338
  806. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skills_toolset.py +0 -319
  807. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_stability_metric.py +0 -60
  808. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_target_selector.py +0 -958
  809. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_tracker.py +0 -121
  810. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_wiring.py +0 -119
  811. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_tool_first_planner.py +0 -7103
  812. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_knowledge_persistence.py +0 -332
  813. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_query_service.py +0 -55
  814. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_unverified_ref_retry.py +0 -909
  815. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/__init__.py +0 -0
  816. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_evidence.py +0 -515
  817. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_gaps.py +0 -422
  818. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_readiness.py +0 -428
  819. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/__init__.py +0 -0
  820. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_confluence_hierarchy.py +0 -227
  821. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_project_title_generation.py +0 -335
  822. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_helpers.py +0 -290
  823. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_integration.py +0 -557
  824. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_readiness_renderer.py +0 -381
  825. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_repo_title_consistency.py +0 -266
  826. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_upload_hierarchy_integration.py +0 -470
  827. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/__init__.py +0 -0
  828. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_dspy.py +0 -177
  829. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_nlp_accuracy.py +0 -72
  830. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_retrieval_modes.py +0 -123
  831. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_verify_phase111_requirement_analysis.py +0 -409
  832. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/__init__.py +0 -0
  833. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_chain_cli.py +0 -277
  834. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_loader.py +0 -502
  835. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/__init__.py +0 -0
  836. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/test_skill_routing.py +0 -209
  837. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/__init__.py +0 -0
  838. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_bitbucket_source.py +0 -66
  839. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_non_retryable_markers.py +0 -88
  840. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_repo_info.py +0 -212
  841. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/__init__.py +0 -0
  842. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_completeness.py +0 -598
  843. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_events_contract_phase169.py +0 -100
  844. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_hardening_phase158.py +0 -392
  845. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_persistence_phase157.py +0 -914
  846. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_embedding_client.py +0 -64
  847. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_get_latest_completed_run.py +0 -313
  848. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_heartbeat_phase169.py +0 -109
  849. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_hybrid_search.py +0 -398
  850. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_normalize_url.py +0 -262
  851. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase152_query_surface.py +0 -59
  852. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase98_confluence_document_model.py +0 -202
  853. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_published_pages.py +0 -754
  854. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_readiness_helpers.py +0 -193
  855. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_ledger.py +0 -522
  856. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_management.py +0 -378
  857. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_schema_contract_phase170.py +0 -755
  858. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_cmds.py +0 -231
  859. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_loaders.py +0 -2151
  860. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_run_api.py +0 -2226
  861. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store.py +0 -1435
  862. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch.py +0 -646
  863. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch_status_view.py +0 -181
  864. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_scope.py +0 -213
  865. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_utilization_persist_phase169.py +0 -77
  866. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vds_search.py +0 -263
  867. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_api.py +0 -319
  868. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_runtime.py +0 -175
  869. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_store.py +0 -1756
  870. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/__init__.py +0 -0
  871. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/test_repo_sync.py +0 -257
  872. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_artifact_exclusion.py +0 -119
  873. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_auto_promote_phase158.py +0 -337
  874. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_carry_forward_artifact_filtering.py +0 -317
  875. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_checklist_precache_p160a.py +0 -416
  876. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_cli_decomposition_fr219.py +0 -269
  877. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_code_chunk_carry_forward.py +0 -203
  878. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_coherence.py +0 -180
  879. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_secret_policy.py +0 -522
  880. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_project_id_migration.py +0 -318
  881. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_status_diagnostics.py +0 -239
  882. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_department_priority_ordering.py +0 -131
  883. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_coordinator_phase158.py +0 -402
  884. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_job_identity_p167a.py +0 -238
  885. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_ramp_up_phase171.py +0 -434
  886. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatcher.py +0 -911
  887. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_doc_type_en_inference.py +0 -246
  888. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_early_exit_unchunked_repos.py +0 -111
  889. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors.py +0 -237
  890. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors_taxonomy.py +0 -83
  891. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_chunking_config_phase98.py +0 -73
  892. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_cmds_state_helpers.py +0 -33
  893. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_docs_code_chunking.py +0 -260
  894. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_finalize_dispatch_run_phase168.py +0 -341
  895. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_identity.py +0 -221
  896. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_infrastructure_detection.py +0 -441
  897. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_junction_table_phase95.py +0 -259
  898. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_late_binding_assignment_p167c.py +0 -286
  899. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_misc_cmds_fr224_225_hardening.py +0 -194
  900. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_p172_integration.py +0 -306
  901. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_parent_provider_preflight.py +0 -118
  902. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase92.py +0 -141
  903. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase93.py +0 -50
  904. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase115_search_strategy.py +0 -106
  905. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase154_title_consistency.py +0 -117
  906. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase155_param_forwarding.py +0 -304
  907. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase158_concurrency_defaults.py +0 -207
  908. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_doctor_schema.py +0 -319
  909. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_regression.py +0 -334
  910. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase94_corpus_lifecycle.py +0 -307
  911. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase96_repo_key_migration.py +0 -305
  912. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_pipelined_scheduling.py +0 -130
  913. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_availability_probe.py +0 -616
  914. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_aware_row_timeout.py +0 -102
  915. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_timeout_stagger_p160cd.py +0 -205
  916. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_progress_summary_phase169.py +0 -96
  917. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_registry_checklist_diagnostics.py +0 -124
  918. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_resume_manifest_p167b.py +0 -268
  919. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_risk_mitigations_p160e1.py +0 -348
  920. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_single_row_shards_p160b.py +0 -357
  921. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_state_repo_discovery.py +0 -504
  922. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_sync_metadata_entries.py +0 -57
  923. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_task_models.py +0 -1796
  924. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_utilization_telemetry_p167e.py +0 -259
  925. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_vietnamese_fts_hardening.py +0 -160
  926. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_phase98_enrichment.py +0 -92
  927. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_project_merge_materialization.py +0 -322
  928. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_row_key_migration_guard.py +0 -88
  929. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_short_circuit_phase121.py +0 -564
  930. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_single_target_row_context.py +0 -49
  931. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_zero_result_messaging.py +0 -76
  932. package/tools/vds-scripts/bandit-report.json +0 -2974
  933. package/tools/vds-scripts/brd_orchestrator/README.md +0 -29
  934. package/tools/vds-scripts/brd_orchestrator/pyproject.toml +0 -63
  935. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/__init__.py +0 -17
  936. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/cli.py +0 -187
  937. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/validator.py +0 -121
  938. package/tools/vds-scripts/brd_orchestrator/tests/__init__.py +0 -0
  939. package/tools/vds-scripts/brd_orchestrator/tests/test_cli.py +0 -62
  940. package/tools/vds-scripts/brd_orchestrator/tests/test_validator.py +0 -33
  941. package/tools/vds-scripts/circular_dependency_orchestrator/README.md +0 -30
  942. package/tools/vds-scripts/circular_dependency_orchestrator/pyproject.toml +0 -43
  943. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/__init__.py +0 -16
  944. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/cli.py +0 -904
  945. package/tools/vds-scripts/circular_dependency_orchestrator/tests/__init__.py +0 -0
  946. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/__init__.py +0 -0
  947. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/test_cli.py +0 -354
  948. package/tools/vds-scripts/coverage.json +0 -1
  949. package/tools/vds-scripts/create_pr.py +0 -57
  950. package/tools/vds-scripts/diagram_generator/README.md +0 -663
  951. package/tools/vds-scripts/diagram_generator/ci_validate.sh +0 -16
  952. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.png +0 -0
  953. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.puml +0 -23
  954. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.png +0 -0
  955. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.puml +0 -21
  956. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.png +0 -0
  957. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.puml +0 -14
  958. package/tools/vds-scripts/diagram_generator/examples/github-actions-validate.yml +0 -39
  959. package/tools/vds-scripts/diagram_generator/generate_all_diagrams.py +0 -827
  960. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_diagrams.py +0 -261
  961. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_quick.py +0 -486
  962. package/tools/vds-scripts/diagram_generator/pyproject.toml +0 -28
  963. package/tools/vds-scripts/diagram_generator/render_png.py +0 -59
  964. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/__init__.py +0 -3
  965. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/cli.py +0 -50
  966. package/tools/vds-scripts/diagram_generator/test_c4_hierarchical.py +0 -142
  967. package/tools/vds-scripts/diagram_generator/test_c4_quick.py +0 -131
  968. package/tools/vds-scripts/diagram_generator/tests/__init__.py +0 -0
  969. package/tools/vds-scripts/diagram_generator/tests/test_analyzer_completeness.py +0 -260
  970. package/tools/vds-scripts/diagram_generator/tests/test_c4_syntax_correctness.py +0 -138
  971. package/tools/vds-scripts/diagram_generator/tests/test_component_coverage.py +0 -182
  972. package/tools/vds-scripts/diagram_generator/tests/test_mermaid_output.py +0 -80
  973. package/tools/vds-scripts/diagram_generator/tests/test_png_generation.py +0 -112
  974. package/tools/vds-scripts/diagram_generator/tests/test_scenario_templates.py +0 -15
  975. package/tools/vds-scripts/diagram_generator/tests/test_sequence_accuracy.py +0 -93
  976. package/tools/vds-scripts/diagram_generator/tests/test_structurizr_export.py +0 -177
  977. package/tools/vds-scripts/diagram_generator/tests/test_style_consistency.py +0 -174
  978. package/tools/vds-scripts/diagram_generator/tests/test_usecase_generator.py +0 -201
  979. package/tools/vds-scripts/diagram_generator/tests/test_usecase_integration.py +0 -124
  980. package/tools/vds-scripts/docker/compose.phase2-verification.yml +0 -31
  981. package/tools/vds-scripts/docker-compose.openapi-validator.yml +0 -14
  982. package/tools/vds-scripts/excel_orchestrator/README.md +0 -288
  983. package/tools/vds-scripts/excel_orchestrator/RESEARCH_BASED_UPDATES_REPORT.md +0 -261
  984. package/tools/vds-scripts/excel_orchestrator/add_essential_missing_effort.py +0 -255
  985. package/tools/vds-scripts/excel_orchestrator/adjust_effort_complexity.py +0 -184
  986. package/tools/vds-scripts/excel_orchestrator/brd_analysis_and_task_breakdown.py +0 -632
  987. package/tools/vds-scripts/excel_orchestrator/brd_analysis_comprehensive.py +0 -1029
  988. package/tools/vds-scripts/excel_orchestrator/check_overlaps_and_brd_coverage.py +0 -570
  989. package/tools/vds-scripts/excel_orchestrator/clean_remarks_column.py +0 -127
  990. package/tools/vds-scripts/excel_orchestrator/comprehensive_brd_check.py +0 -322
  991. package/tools/vds-scripts/excel_orchestrator/create_buffered_summary.py +0 -119
  992. package/tools/vds-scripts/excel_orchestrator/create_service_totals_sheet.py +0 -118
  993. package/tools/vds-scripts/excel_orchestrator/examples/basic_operations.py +0 -85
  994. package/tools/vds-scripts/excel_orchestrator/expand_all_tasks.py +0 -341
  995. package/tools/vds-scripts/excel_orchestrator/expand_tasks.py +0 -304
  996. package/tools/vds-scripts/excel_orchestrator/fill_brd_references.py +0 -347
  997. package/tools/vds-scripts/excel_orchestrator/fill_remarks_and_colors.py +0 -132
  998. package/tools/vds-scripts/excel_orchestrator/finalize_brd_and_cleanup.py +0 -295
  999. package/tools/vds-scripts/excel_orchestrator/finalize_brd_coverage.py +0 -327
  1000. package/tools/vds-scripts/excel_orchestrator/fix_all_formulas.py +0 -99
  1001. package/tools/vds-scripts/excel_orchestrator/fix_detail_presentation.py +0 -113
  1002. package/tools/vds-scripts/excel_orchestrator/fix_presentation_and_effort.py +0 -116
  1003. package/tools/vds-scripts/excel_orchestrator/fix_presentation_consistency.py +0 -231
  1004. package/tools/vds-scripts/excel_orchestrator/fix_remarks_matching.py +0 -179
  1005. package/tools/vds-scripts/excel_orchestrator/group_tasks_by_service_id.py +0 -210
  1006. package/tools/vds-scripts/excel_orchestrator/increase_brd_coverage.py +0 -497
  1007. package/tools/vds-scripts/excel_orchestrator/increase_effort_complexity.py +0 -155
  1008. package/tools/vds-scripts/excel_orchestrator/organize_and_deduplicate.py +0 -273
  1009. package/tools/vds-scripts/excel_orchestrator/pyproject.toml +0 -64
  1010. package/tools/vds-scripts/excel_orchestrator/rebuild_all_formulas.py +0 -146
  1011. package/tools/vds-scripts/excel_orchestrator/remove_base_multiplier_and_check_duplicates.py +0 -310
  1012. package/tools/vds-scripts/excel_orchestrator/remove_duplicate_brd_tasks.py +0 -137
  1013. package/tools/vds-scripts/excel_orchestrator/research_based_updates.py +0 -457
  1014. package/tools/vds-scripts/excel_orchestrator/restore_e_values.py +0 -172
  1015. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/__init__.py +0 -5
  1016. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/cli.py +0 -746
  1017. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/config.py +0 -74
  1018. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/converters.py +0 -226
  1019. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/errors.py +0 -88
  1020. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/excel_client.py +0 -443
  1021. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/formatters.py +0 -211
  1022. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/logging.py +0 -57
  1023. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/source_contract.py +0 -29
  1024. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/target_state_status.py +0 -837
  1025. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/ulnc_alignment.py +0 -1291
  1026. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/validators.py +0 -164
  1027. package/tools/vds-scripts/excel_orchestrator/sync_detail_and_total_sheets.py +0 -211
  1028. package/tools/vds-scripts/excel_orchestrator/tests/__init__.py +0 -1
  1029. package/tools/vds-scripts/excel_orchestrator/tests/conftest.py +0 -36
  1030. package/tools/vds-scripts/excel_orchestrator/tests/test_cli.py +0 -383
  1031. package/tools/vds-scripts/excel_orchestrator/tests/test_excel_client.py +0 -129
  1032. package/tools/vds-scripts/excel_orchestrator/tests/test_ulnc_alignment.py +0 -373
  1033. package/tools/vds-scripts/excel_orchestrator/tests/test_validators.py +0 -64
  1034. package/tools/vds-scripts/excel_orchestrator/update_api_database_effort.py +0 -261
  1035. package/tools/vds-scripts/excel_orchestrator/update_buffers_inline.py +0 -115
  1036. package/tools/vds-scripts/excel_orchestrator/update_complex_services_and_add_new.py +0 -336
  1037. package/tools/vds-scripts/excel_orchestrator/update_responsibility_and_fix_rows.py +0 -208
  1038. package/tools/vds-scripts/excel_orchestrator/update_task_breakdown_vietnamese.py +0 -309
  1039. package/tools/vds-scripts/excel_orchestrator/update_vietnamese_and_responsibility.py +0 -415
  1040. package/tools/vds-scripts/excel_orchestrator/verify_brd_coverage_comprehensive.py +0 -401
  1041. package/tools/vds-scripts/hexagonal_orchestrator/README.md +0 -530
  1042. package/tools/vds-scripts/hexagonal_orchestrator/pyproject.toml +0 -48
  1043. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/__init__.py +0 -39
  1044. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/__init__.py +0 -19
  1045. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/base.py +0 -95
  1046. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/fallback.py +0 -614
  1047. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/java.py +0 -372
  1048. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/python.py +0 -437
  1049. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cache.py +0 -331
  1050. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/classifier.py +0 -263
  1051. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cli.py +0 -554
  1052. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/config.py +0 -577
  1053. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/models.py +0 -159
  1054. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/profiler.py +0 -451
  1055. package/tools/vds-scripts/hexagonal_orchestrator/test-config.yaml +0 -38
  1056. package/tools/vds-scripts/hexagonal_orchestrator/tests/__init__.py +0 -1
  1057. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/__init__.py +0 -1
  1058. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driven/persistence/InMemoryUserRepository.java +0 -62
  1059. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driving/api/UserController.java +0 -101
  1060. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/EmailService.java +0 -33
  1061. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/UserRepository.java +0 -45
  1062. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/usecase/CreateUser.java +0 -58
  1063. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/Email.java +0 -80
  1064. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/User.java +0 -98
  1065. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-noncompliant/domain/User.java +0 -64
  1066. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Menu.java +0 -13
  1067. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Product.java +0 -16
  1068. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/__init__.py +0 -1
  1069. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/__init__.py +0 -1
  1070. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/__init__.py +0 -1
  1071. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/email_service.py +0 -60
  1072. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/user_repository.py +0 -78
  1073. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/__init__.py +0 -1
  1074. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/__init__.py +0 -1
  1075. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/user.py +0 -56
  1076. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/__init__.py +0 -1
  1077. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/email.py +0 -63
  1078. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/application/user_service.py +0 -1837
  1079. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/domain/user.py +0 -43
  1080. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cache.py +0 -458
  1081. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_integration.py +0 -942
  1082. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_unit.py +0 -557
  1083. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cross_repo_pollution.py +0 -275
  1084. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_foundation.py +0 -129
  1085. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_integration.py +0 -1524
  1086. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_java_analyzer.py +0 -642
  1087. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_timing_unit.py +0 -60
  1088. package/tools/vds-scripts/intellij_orchestrator/README.md +0 -55
  1089. package/tools/vds-scripts/intellij_orchestrator/pyproject.toml +0 -64
  1090. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/__init__.py +0 -17
  1091. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/cli.py +0 -210
  1092. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/core.py +0 -260
  1093. package/tools/vds-scripts/intellij_orchestrator/tests/__init__.py +0 -1
  1094. package/tools/vds-scripts/intellij_orchestrator/tests/test_cli.py +0 -112
  1095. package/tools/vds-scripts/intellij_orchestrator/tests/test_core.py +0 -83
  1096. package/tools/vds-scripts/links_orchestrator/README.md +0 -63
  1097. package/tools/vds-scripts/links_orchestrator/pyproject.toml +0 -64
  1098. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/__init__.py +0 -10
  1099. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/cli.py +0 -254
  1100. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/validator.py +0 -244
  1101. package/tools/vds-scripts/links_orchestrator/tests/__init__.py +0 -0
  1102. package/tools/vds-scripts/links_orchestrator/tests/test_cli.py +0 -128
  1103. package/tools/vds-scripts/links_orchestrator/tests/test_validator.py +0 -76
  1104. package/tools/vds-scripts/lsp_orchestrator/.dockerignore +0 -69
  1105. package/tools/vds-scripts/lsp_orchestrator/ARCHITECTURE.md +0 -383
  1106. package/tools/vds-scripts/lsp_orchestrator/CODE_QUALITY_IMPROVEMENTS.md +0 -196
  1107. package/tools/vds-scripts/lsp_orchestrator/COMMANDS.md +0 -870
  1108. package/tools/vds-scripts/lsp_orchestrator/Dockerfile +0 -59
  1109. package/tools/vds-scripts/lsp_orchestrator/IMPLEMENTATION_SUMMARY.md +0 -490
  1110. package/tools/vds-scripts/lsp_orchestrator/LSP_ISSUES_AND_FINDINGS.md +0 -380
  1111. package/tools/vds-scripts/lsp_orchestrator/README.md +0 -616
  1112. package/tools/vds-scripts/lsp_orchestrator/SETUP.md +0 -143
  1113. package/tools/vds-scripts/lsp_orchestrator/TEST_COVERAGE_SUMMARY.md +0 -255
  1114. package/tools/vds-scripts/lsp_orchestrator/VERIFICATION_CHECKLIST.md +0 -814
  1115. package/tools/vds-scripts/lsp_orchestrator/docker-compose.yml +0 -102
  1116. package/tools/vds-scripts/lsp_orchestrator/docs/FOR_LLMS.md +0 -401
  1117. package/tools/vds-scripts/lsp_orchestrator/docs/explanation/lsp-response-matching.md +0 -79
  1118. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/automate-with-json.md +0 -159
  1119. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/docker-mode.md +0 -256
  1120. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/navigate-code.md +0 -116
  1121. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/parallel-processing.md +0 -179
  1122. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/project-tool-detection.md +0 -320
  1123. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/type-check-code.md +0 -46
  1124. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/use-daemon-mode.md +0 -78
  1125. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/wsl2-optimization.md +0 -227
  1126. package/tools/vds-scripts/lsp_orchestrator/docs/index.md +0 -88
  1127. package/tools/vds-scripts/lsp_orchestrator/docs/operator-hover-definition.md +0 -143
  1128. package/tools/vds-scripts/lsp_orchestrator/docs/reference/commands.md +0 -581
  1129. package/tools/vds-scripts/lsp_orchestrator/docs/reference/configuration.md +0 -422
  1130. package/tools/vds-scripts/lsp_orchestrator/docs/tutorials/00-quick-start.md +0 -169
  1131. package/tools/vds-scripts/lsp_orchestrator/pyproject.toml +0 -63
  1132. package/tools/vds-scripts/lsp_orchestrator/src/test_file.py +0 -5
  1133. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/__init__.py +0 -3
  1134. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/aggregator.py +0 -340
  1135. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/basedpyright_runner.py +0 -167
  1136. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/cli.py +0 -3370
  1137. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/code_actions.py +0 -79
  1138. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/core.py +0 -3295
  1139. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_client.py +0 -672
  1140. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_manager.py +0 -577
  1141. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_server.py +0 -1040
  1142. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/__init__.py +0 -9
  1143. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/project_detector.py +0 -537
  1144. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/formatters.py +0 -141
  1145. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ipc_protocol.py +0 -225
  1146. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_client.py +0 -957
  1147. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_router.py +0 -335
  1148. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mcp_server.py +0 -181
  1149. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/__init__.py +0 -201
  1150. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_detector.py +0 -646
  1151. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_tools.py +0 -114
  1152. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models.py +0 -399
  1153. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mypy_runner.py +0 -209
  1154. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/protocols.py +0 -52
  1155. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_lsp_client.py +0 -109
  1156. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_runner.py +0 -44
  1157. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/utils.py +0 -959
  1158. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/workspace_indexer.py +0 -1037
  1159. package/tools/vds-scripts/lsp_orchestrator/test_workspace_lsp.py +0 -6
  1160. package/tools/vds-scripts/lsp_orchestrator/tests/__init__.py +0 -1
  1161. package/tools/vds-scripts/lsp_orchestrator/tests/conftest.py +0 -6
  1162. package/tools/vds-scripts/lsp_orchestrator/tests/test_aggregator.py +0 -59
  1163. package/tools/vds-scripts/lsp_orchestrator/tests/test_cli.py +0 -111
  1164. package/tools/vds-scripts/lsp_orchestrator/tests/test_detect_tools_command.py +0 -186
  1165. package/tools/vds-scripts/lsp_orchestrator/tests/test_formatter_linter_detection.py +0 -519
  1166. package/tools/vds-scripts/lsp_orchestrator/tests/test_integration_phase9_10_11.py +0 -367
  1167. package/tools/vds-scripts/lsp_orchestrator/tests/test_mypy_runner.py +0 -482
  1168. package/tools/vds-scripts/lsp_orchestrator/tests/test_package_manager_detection.py +0 -399
  1169. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase10.py +0 -389
  1170. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase11.py +0 -327
  1171. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase12_integration.py +0 -634
  1172. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase9.py +0 -196
  1173. package/tools/vds-scripts/lsp_orchestrator/tests/test_project_detector.py +0 -377
  1174. package/tools/vds-scripts/lsp_orchestrator/tests/test_test_runner_detection.py +0 -549
  1175. package/tools/vds-scripts/lsp_orchestrator/tests/test_type_checker_routing.py +0 -362
  1176. package/tools/vds-scripts/lsp_orchestrator/tests/test_workspace_indexer.py +0 -144
  1177. package/tools/vds-scripts/markdown_orchestrator/README.md +0 -72
  1178. package/tools/vds-scripts/markdown_orchestrator/pyproject.toml +0 -39
  1179. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/__init__.py +0 -5
  1180. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/cli.py +0 -102
  1181. package/tools/vds-scripts/multi_agent_orchestrator/Dockerfile +0 -65
  1182. package/tools/vds-scripts/multi_agent_orchestrator/README.md +0 -306
  1183. package/tools/vds-scripts/multi_agent_orchestrator/postman/README.md +0 -264
  1184. package/tools/vds-scripts/multi_agent_orchestrator/postman/TEST_RESULTS_SUMMARY.md +0 -197
  1185. package/tools/vds-scripts/multi_agent_orchestrator/postman/VDS-Multi-Agent-Orchestrator-API.postman_collection.json +0 -1010
  1186. package/tools/vds-scripts/multi_agent_orchestrator/postman/environments/local-development.postman_environment.json +0 -55
  1187. package/tools/vds-scripts/multi_agent_orchestrator/postman/test-results.json +0 -24146
  1188. package/tools/vds-scripts/multi_agent_orchestrator/pyproject.toml +0 -63
  1189. package/tools/vds-scripts/multi_agent_orchestrator/run_api.py +0 -9
  1190. package/tools/vds-scripts/multi_agent_orchestrator/run_mock_api.py +0 -9
  1191. package/tools/vds-scripts/multi_agent_orchestrator/simple_test.py +0 -53
  1192. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/__init__.py +0 -25
  1193. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/agent_pool.py +0 -433
  1194. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/__init__.py +0 -5
  1195. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/main.py +0 -722
  1196. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/mock_main.py +0 -812
  1197. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/change_log.py +0 -515
  1198. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/cli.py +0 -424
  1199. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/config.py +0 -220
  1200. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/conflict_resolver.py +0 -462
  1201. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/coordinator.py +0 -627
  1202. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/models.py +0 -389
  1203. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/progress_dashboard.py +0 -380
  1204. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/redis_client.py +0 -245
  1205. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/scheduler_subscriber.py +0 -272
  1206. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_manager.py +0 -536
  1207. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_tracking.py +0 -550
  1208. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/vds_ai_memory_client.py +0 -352
  1209. package/tools/vds-scripts/multi_agent_orchestrator/test_complete_system.py +0 -149
  1210. package/tools/vds-scripts/multi_agent_orchestrator/test_infrastructure_only.py +0 -194
  1211. package/tools/vds-scripts/multi_agent_orchestrator/test_integration.py +0 -108
  1212. package/tools/vds-scripts/multi_agent_orchestrator/tests/__init__.py +0 -1
  1213. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_agent_registration_credential_validator.py +0 -223
  1214. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_config.py +0 -210
  1215. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_models.py +0 -195
  1216. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_w9_agent_routes.py +0 -321
  1217. package/tools/vds-scripts/openapi_orchestrator/README.md +0 -197
  1218. package/tools/vds-scripts/openapi_orchestrator/pyproject.toml +0 -106
  1219. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/__init__.py +0 -29
  1220. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/cli.py +0 -345
  1221. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/full_validator.py +0 -183
  1222. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/spec_validator.py +0 -197
  1223. package/tools/vds-scripts/openapi_orchestrator/tests/__init__.py +0 -1
  1224. package/tools/vds-scripts/openapi_orchestrator/tests/test_cli.py +0 -234
  1225. package/tools/vds-scripts/openapi_orchestrator/tests/test_full_validator.py +0 -203
  1226. package/tools/vds-scripts/openapi_orchestrator/tests/test_spec_validator.py +0 -295
  1227. package/tools/vds-scripts/pdf_orchestrator/.dockerignore +0 -93
  1228. package/tools/vds-scripts/pdf_orchestrator/.env.example +0 -40
  1229. package/tools/vds-scripts/pdf_orchestrator/.ruff_rules.py +0 -350
  1230. package/tools/vds-scripts/pdf_orchestrator/.yamllint.yml +0 -43
  1231. package/tools/vds-scripts/pdf_orchestrator/DEVELOPMENT_PLAN.md +0 -80
  1232. package/tools/vds-scripts/pdf_orchestrator/Dockerfile +0 -87
  1233. package/tools/vds-scripts/pdf_orchestrator/README.md +0 -608
  1234. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.md +0 -6
  1235. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.pdf +0 -0
  1236. package/tools/vds-scripts/pdf_orchestrator/config/alertmanager.yml +0 -83
  1237. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.prod.yml +0 -98
  1238. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.yml +0 -40
  1239. package/tools/vds-scripts/pdf_orchestrator/config/redis.conf +0 -78
  1240. package/tools/vds-scripts/pdf_orchestrator/docs/COMPETITIVE_ANALYSIS_REPORT.md +0 -309
  1241. package/tools/vds-scripts/pdf_orchestrator/docs/FEATURES_GUIDE.md +0 -518
  1242. package/tools/vds-scripts/pdf_orchestrator/docs/MULTI_USER_DEPLOYMENT_GUIDE.md +0 -615
  1243. package/tools/vds-scripts/pdf_orchestrator/docs/USER_GUIDE.md +0 -829
  1244. package/tools/vds-scripts/pdf_orchestrator/pyproject.toml +0 -87
  1245. package/tools/vds-scripts/pdf_orchestrator/pytest.ini +0 -71
  1246. package/tools/vds-scripts/pdf_orchestrator/ruff.toml +0 -6
  1247. package/tools/vds-scripts/pdf_orchestrator/scripts/debug_security_report.py +0 -59
  1248. package/tools/vds-scripts/pdf_orchestrator/scripts/demo_library_selector.py +0 -109
  1249. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_project_stats.py +0 -52
  1250. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_styled_pdf.py +0 -95
  1251. package/tools/vds-scripts/pdf_orchestrator/scripts/migrate_render_pdfs.py +0 -285
  1252. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.bat +0 -283
  1253. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.sh +0 -324
  1254. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/__init__.py +0 -5
  1255. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/cli.py +0 -542
  1256. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/config.py +0 -33
  1257. package/tools/vds-scripts/pdf_orchestrator/tests/README.md +0 -650
  1258. package/tools/vds-scripts/pdf_orchestrator/tests/__init__.py +0 -0
  1259. package/tools/vds-scripts/pdf_orchestrator/tests/conftest.py +0 -520
  1260. package/tools/vds-scripts/pdf_orchestrator/tests/requirements.txt +0 -51
  1261. package/tools/vds-scripts/pdf_orchestrator/tests/run_tests.py +0 -659
  1262. package/tools/vds-scripts/pdf_orchestrator/tests/test_config.py +0 -36
  1263. package/tools/vds-scripts/progress_report_orchestrator/Dockerfile +0 -77
  1264. package/tools/vds-scripts/progress_report_orchestrator/README.md +0 -39
  1265. package/tools/vds-scripts/progress_report_orchestrator/alembic/env.py +0 -42
  1266. package/tools/vds-scripts/progress_report_orchestrator/alembic/script.py.mako +0 -28
  1267. package/tools/vds-scripts/progress_report_orchestrator/alembic/versions/0001_initial_progress_schema.py +0 -180
  1268. package/tools/vds-scripts/progress_report_orchestrator/alembic.ini +0 -67
  1269. package/tools/vds-scripts/progress_report_orchestrator/pyproject.toml +0 -67
  1270. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/__init__.py +0 -3
  1271. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/__init__.py +0 -1
  1272. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/endpoint_scanner.py +0 -238
  1273. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/git_activity.py +0 -159
  1274. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/hexagonal.py +0 -100
  1275. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/test_scanner.py +0 -136
  1276. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/cli.py +0 -743
  1277. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/config.py +0 -50
  1278. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/__init__.py +0 -12
  1279. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/alembic_filters.py +0 -64
  1280. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/memory.py +0 -82
  1281. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/__init__.py +0 -1
  1282. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/analysis.py +0 -84
  1283. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/report.py +0 -117
  1284. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/topology.py +0 -101
  1285. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/__init__.py +0 -1
  1286. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/kg_parser.py +0 -252
  1287. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/uc_reader.py +0 -159
  1288. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/__init__.py +0 -1
  1289. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/concurrency.py +0 -39
  1290. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/llm_eval.py +0 -570
  1291. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/report.py +0 -1256
  1292. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/structural.py +0 -384
  1293. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/sync.py +0 -143
  1294. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/__init__.py +0 -5
  1295. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/engine.py +0 -105
  1296. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/templates.py +0 -236
  1297. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/scheduler_subscriber.py +0 -238
  1298. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/README.md +0 -56
  1299. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/__init__.py +0 -1
  1300. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-architecture-reviewer/SKILL.md +0 -67
  1301. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-endpoint-matcher/SKILL.md +0 -67
  1302. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/__init__.py +0 -1
  1303. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/schema.py +0 -625
  1304. package/tools/vds-scripts/progress_report_orchestrator/tests/__init__.py +0 -0
  1305. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/__init__.py +0 -0
  1306. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/.gitkeep +0 -0
  1307. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/__init__.py +0 -0
  1308. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/doc-dependencies.yaml +0 -79
  1309. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-docs.yaml +0 -478
  1310. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-services.yaml +0 -18
  1311. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/registry.yaml +0 -346
  1312. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/phase3_baseline_standard.md +0 -564
  1313. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/__init__.py +0 -0
  1314. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/test_checkpoint.py +0 -276
  1315. package/tools/vds-scripts/progress_report_orchestrator/tests/test_alembic_migrations.py +0 -265
  1316. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/__init__.py +0 -0
  1317. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_analyzers.py +0 -267
  1318. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_bounded_gather.py +0 -176
  1319. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_cli_phase_report.py +0 -119
  1320. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_delta.py +0 -169
  1321. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_error_handling.py +0 -150
  1322. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_gate_exit_codes.py +0 -230
  1323. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_git_activity.py +0 -215
  1324. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_kg_parser.py +0 -267
  1325. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_autodetect.py +0 -183
  1326. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_eval.py +0 -529
  1327. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_memory_integration.py +0 -151
  1328. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_migration_contract.py +0 -254
  1329. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_mode_rendering.py +0 -576
  1330. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_models.py +0 -251
  1331. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_progress_llm_config.py +0 -67
  1332. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_recommendations.py +0 -480
  1333. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_report_enhancements.py +0 -415
  1334. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_resume_reload.py +0 -343
  1335. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_trend_regression.py +0 -294
  1336. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_uc_reader.py +0 -169
  1337. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_valence_gap.py +0 -293
  1338. package/tools/vds-scripts/project-cycle-report.json +0 -14
  1339. package/tools/vds-scripts/project-dependency-graph.json +0 -11361
  1340. package/tools/vds-scripts/project-topology.json +0 -99
  1341. package/tools/vds-scripts/public_interface_boundary_orchestrator/pyproject.toml +0 -18
  1342. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/__init__.py +0 -0
  1343. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/cli.py +0 -232
  1344. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/__init__.py +0 -0
  1345. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/test_cli.py +0 -108
  1346. package/tools/vds-scripts/research_orchestrator/README.md +0 -68
  1347. package/tools/vds-scripts/research_orchestrator/py.typed +0 -0
  1348. package/tools/vds-scripts/research_orchestrator/pyproject.toml +0 -95
  1349. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/__init__.py +0 -3
  1350. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/_env.py +0 -11
  1351. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/cli.py +0 -335
  1352. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/config.py +0 -43
  1353. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/__init__.py +0 -0
  1354. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/models.py +0 -89
  1355. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/scoring.py +0 -102
  1356. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/exceptions.py +0 -78
  1357. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/http_client.py +0 -160
  1358. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/logging.py +0 -49
  1359. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/__init__.py +0 -0
  1360. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/formatters.py +0 -93
  1361. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/py.typed +0 -1
  1362. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/__init__.py +0 -0
  1363. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/build.py +0 -156
  1364. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/format.py +0 -147
  1365. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/__init__.py +0 -0
  1366. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health.py +0 -66
  1367. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health_graph.py +0 -52
  1368. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/registry.py +0 -127
  1369. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/search.py +0 -230
  1370. package/tools/vds-scripts/research_orchestrator/tests/__init__.py +0 -0
  1371. package/tools/vds-scripts/research_orchestrator/tests/conftest.py +0 -53
  1372. package/tools/vds-scripts/research_orchestrator/tests/test_cli.py +0 -222
  1373. package/tools/vds-scripts/research_orchestrator/tests/test_config.py +0 -23
  1374. package/tools/vds-scripts/research_orchestrator/tests/test_exceptions.py +0 -62
  1375. package/tools/vds-scripts/research_orchestrator/tests/test_formatters.py +0 -89
  1376. package/tools/vds-scripts/research_orchestrator/tests/test_graph_integration.py +0 -149
  1377. package/tools/vds-scripts/research_orchestrator/tests/test_http_client.py +0 -134
  1378. package/tools/vds-scripts/research_orchestrator/tests/test_report_build.py +0 -128
  1379. package/tools/vds-scripts/research_orchestrator/tests/test_report_format.py +0 -91
  1380. package/tools/vds-scripts/research_orchestrator/tests/test_scoring.py +0 -95
  1381. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/__init__.py +0 -1
  1382. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_health.py +0 -139
  1383. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_registry.py +0 -135
  1384. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_search.py +0 -238
  1385. package/tools/vds-scripts/run-history.json +0 -26
  1386. package/tools/vds-scripts/schema_converter/README.md +0 -109
  1387. package/tools/vds-scripts/schema_converter/pyproject.toml +0 -37
  1388. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/__init__.py +0 -3
  1389. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/cli.py +0 -50
  1390. package/tools/vds-scripts/schema_converter/tests/__init__.py +0 -0
  1391. package/tools/vds-scripts/schema_converter/tests/test_json_schema_generator.py +0 -115
  1392. package/tools/vds-scripts/schema_converter/tests/test_mermaid_generator.py +0 -112
  1393. package/tools/vds-scripts/schema_converter/tests/test_parser.py +0 -111
  1394. package/tools/vds-scripts/schema_converter/tests/test_plantuml_generator.py +0 -112
  1395. package/tools/vds-scripts/schema_converter/tests/test_plantuml_validator.py +0 -69
  1396. package/tools/vds-scripts/schema_converter/tests/test_prisma_generator.py +0 -113
  1397. package/tools/vds-scripts/schema_converter/tests/test_sql_generator.py +0 -138
  1398. package/tools/vds-scripts/schema_converter/tests/test_typeorm_generator.py +0 -110
  1399. package/tools/vds-scripts/schema_converter/tests/test_validators.py +0 -96
  1400. package/tools/vds-scripts/spec_orchestrator/README.md +0 -13
  1401. package/tools/vds-scripts/spec_orchestrator/pyproject.toml +0 -40
  1402. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/__init__.py +0 -5
  1403. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/cli.py +0 -162
  1404. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/core.py +0 -575
  1405. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/sync.py +0 -306
  1406. package/tools/vds-scripts/spec_orchestrator/tests/__init__.py +0 -0
  1407. package/tools/vds-scripts/spec_orchestrator/tests/test_frontmatter_drift.py +0 -243
  1408. package/tools/vds-scripts/spec_orchestrator/tests/test_sync.py +0 -342
  1409. package/tools/vds-scripts/structure_orchestrator/README.md +0 -60
  1410. package/tools/vds-scripts/structure_orchestrator/pyproject.toml +0 -103
  1411. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/__init__.py +0 -13
  1412. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/cli.py +0 -308
  1413. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/validator.py +0 -257
  1414. package/tools/vds-scripts/structure_orchestrator/tests/__init__.py +0 -0
  1415. package/tools/vds-scripts/structure_orchestrator/tests/test_cli.py +0 -161
  1416. package/tools/vds-scripts/structure_orchestrator/tests/test_helpers.py +0 -115
  1417. package/tools/vds-scripts/structure_orchestrator/tests/test_validator.py +0 -104
  1418. package/tools/vds-scripts/task_orchestrator/README.md +0 -50
  1419. package/tools/vds-scripts/task_orchestrator/__init__.py +0 -18
  1420. package/tools/vds-scripts/task_orchestrator/pyproject.toml +0 -43
  1421. package/tools/vds-scripts/task_orchestrator/scripts/run_excel_sync.py +0 -36
  1422. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/__init__.py +0 -13
  1423. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/audit.py +0 -134
  1424. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/cli.py +0 -127
  1425. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/debug.py +0 -133
  1426. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/normalize.py +0 -113
  1427. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/refine.py +0 -201
  1428. package/tools/vds-scripts/task_orchestrator/tests/__init__.py +0 -0
  1429. package/tools/vds-scripts/task_orchestrator/tests/test_task_orchestrator.py +0 -84
  1430. package/tools/vds-scripts/temp_query_projects.py +0 -2
  1431. package/tools/vds-scripts/test_small.md +0 -1
  1432. package/tools/vds-scripts/text_utils_orchestrator/pyproject.toml +0 -20
  1433. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/__init__.py +0 -7
  1434. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/i18n.py +0 -143
  1435. package/tools/vds-scripts/text_utils_orchestrator/tests/__init__.py +0 -0
  1436. package/tools/vds-scripts/text_utils_orchestrator/tests/test_i18n.py +0 -53
  1437. package/tools/vds-scripts/upgrade_major.py +0 -61
  1438. package/tools/vds-scripts/upgrade_major_v2.py +0 -64
  1439. package/tools/vds-scripts/verify_violations.py +0 -57
  1440. package/tools/vds-scripts/workflow-summary.json +0 -325
  1441. package/tools/vds-scripts/workflow-summary.md +0 -8
@@ -1,1920 +0,0 @@
1
- """Project topology resolution and graph artifact generation (Phase 113, FR-113.2..FR-113.4).
2
-
3
- This module provides the core infrastructure for project-scope requirement execution:
4
-
5
- - **ProjectTopologyResolver** (TSK-113.2): Resolves participating repos from registry/state,
6
- classifies repo types using ``RepoTypeClassifier``, and persists ``project-topology.json``.
7
-
8
- - **PerRepoStructureExtractor** (TSK-113.3): Bounded extraction of imports, client/integration
9
- wiring, module manifests, and service entrypoints needed for cross-repo topology.
10
-
11
- - **DependencyGraphBuilder** (TSK-113.4): Normalizes extracted structure into
12
- ``project-dependency-graph.json`` and ``project-cycle-report.json`` with edge provenance
13
- and deterministic cycle/layering checks.
14
-
15
- Design Decision References:
16
- - DD-113.2: ``workflow-project`` owns authoritative project-scope execution.
17
- - DD-113.3: Registry/state topology is the participation authority.
18
- - DD-113.4: Project graph artifacts are deterministic and reusable.
19
- - DD-113.5: Deterministic graph checks outrank narrative inference.
20
- """
21
-
22
- from __future__ import annotations
23
-
24
- import re
25
- from collections.abc import Iterator
26
- from dataclasses import dataclass, field
27
- from datetime import UTC, datetime
28
- from enum import StrEnum
29
- from pathlib import Path
30
- from typing import Any, Literal
31
-
32
- from psycopg.rows import dict_row
33
- from pydantic import BaseModel, Field
34
- from structlog import get_logger
35
-
36
- from vds_audit_orchestrator.engine.repo_type_classifier import RepoType, RepoTypeClassifier
37
-
38
- __all__ = [
39
- "CycleFinding",
40
- "DependencyEdge",
41
- "DependencyGraphBuilder",
42
- "EdgeSource",
43
- "ModuleIdentity",
44
- "PerRepoStructureExtractor",
45
- "ProjectCycleReport",
46
- "ProjectDependencyGraph",
47
- "ProjectTopology",
48
- "ProjectTopologyResolver",
49
- "RepoRole",
50
- "classify_repo_role",
51
- ]
52
-
53
- logger = get_logger(__name__)
54
-
55
-
56
- # ---------------------------------------------------------------------------
57
- # Enums and Constants
58
- # ---------------------------------------------------------------------------
59
-
60
-
61
- class RepoRole(StrEnum):
62
- """Deterministic repo-role classification for cross-repo config awareness (FR-122.3, AC-122.3.1).
63
-
64
- Values are ordered by classification priority in ``classify_repo_role()``.
65
- """
66
-
67
- SERVICE = "service"
68
- CONFIG = "config"
69
- LIB = "lib"
70
- INFRA = "infra"
71
- DEPLOYMENT = "deployment"
72
- FRONTEND = "frontend"
73
- UNKNOWN = "unknown"
74
-
75
-
76
- # Naming heuristics for repo-role classification (DD-122.5).
77
- _CONFIG_REPO_NAME_PATTERNS: tuple[re.Pattern[str], ...] = (
78
- re.compile(r"[-_]config(?:uration)?(?:[-_]|$)", re.IGNORECASE),
79
- re.compile(r"^config[-_]", re.IGNORECASE),
80
- re.compile(r"[-_]properties(?:[-_]|$)", re.IGNORECASE),
81
- re.compile(r"[-_]settings(?:[-_]|$)", re.IGNORECASE),
82
- re.compile(r"[-_]env(?:ironment)?s?(?:[-_]|$)", re.IGNORECASE),
83
- )
84
-
85
- _LIB_REPO_NAME_PATTERNS: tuple[re.Pattern[str], ...] = (
86
- re.compile(r"[-_](?:lib|library|common|shared|core|sdk|utils?)(?:[-_]|$)", re.IGNORECASE),
87
- re.compile(r"^(?:lib|library|common|shared|core|sdk|utils?)[-_]", re.IGNORECASE),
88
- )
89
-
90
- _INFRA_REPO_NAME_PATTERNS: tuple[re.Pattern[str], ...] = (
91
- re.compile(r"[-_](?:infra|infrastructure|platform|ops|devops|sre)(?:[-_]|$)", re.IGNORECASE),
92
- re.compile(r"^(?:infra|infrastructure|platform|ops|devops|sre)[-_]", re.IGNORECASE),
93
- )
94
-
95
- _DEPLOYMENT_REPO_NAME_PATTERNS: tuple[re.Pattern[str], ...] = (
96
- re.compile(
97
- r"[-_](?:deploy|deployment|helm|chart|k8s|kubernetes|terraform|ansible|ci|cd|pipeline)(?:[-_]|$)", re.IGNORECASE
98
- ),
99
- re.compile(r"^(?:deploy|deployment|helm|chart|k8s|kubernetes|terraform|ansible)[-_]", re.IGNORECASE),
100
- )
101
-
102
- _FRONTEND_REPO_NAME_PATTERNS: tuple[re.Pattern[str], ...] = (
103
- re.compile(r"[-_](?:fe|frontend|web|ui|portal|dashboard|app)(?:[-_]|$)", re.IGNORECASE),
104
- re.compile(r"^(?:fe|frontend|web|ui|portal|dashboard)[-_]", re.IGNORECASE),
105
- )
106
-
107
- _SERVICE_REPO_NAME_PATTERNS: tuple[re.Pattern[str], ...] = (
108
- re.compile(
109
- r"[-_](?:service|svc|api|server|backend|gateway|worker|processor|consumer|producer)(?:[-_]|$)", re.IGNORECASE
110
- ),
111
- re.compile(r"^(?:service|svc|api|server|backend|gateway|worker)[-_]", re.IGNORECASE),
112
- )
113
-
114
- # Structure heuristics: files/dirs that indicate a config repo.
115
- _CONFIG_STRUCTURE_FILES: frozenset[str] = frozenset(
116
- {
117
- "application.yml",
118
- "application.yaml",
119
- "application.properties",
120
- "application-dev.yml",
121
- "application-prod.yml",
122
- "bootstrap.yml",
123
- "bootstrap.yaml",
124
- }
125
- )
126
- _CONFIG_STRUCTURE_DIRS: frozenset[str] = frozenset(
127
- {
128
- "config",
129
- "configs",
130
- "configuration",
131
- "properties",
132
- "environments",
133
- }
134
- )
135
-
136
- # Structure heuristics: files/dirs that indicate a lib repo.
137
- _LIB_STRUCTURE_DIRS: frozenset[str] = frozenset(
138
- {
139
- "lib",
140
- "libs",
141
- "packages",
142
- "modules",
143
- }
144
- )
145
-
146
- # Structure heuristics: files/dirs that indicate a deployment repo.
147
- _DEPLOYMENT_STRUCTURE_DIRS: frozenset[str] = frozenset(
148
- {
149
- "helm",
150
- "charts",
151
- "k8s",
152
- "kubernetes",
153
- "terraform",
154
- "ansible",
155
- "deploy",
156
- "deployment",
157
- "manifests",
158
- }
159
- )
160
-
161
-
162
- def classify_repo_role(
163
- *,
164
- repo_key: str,
165
- repo_path: Path | None = None,
166
- repo_type: RepoType | None = None,
167
- ) -> RepoRole:
168
- """Deterministic heuristic-driven repo-role classification (DD-122.5, AC-122.3.2).
169
-
170
- Classification priority:
171
- 1. Naming patterns on ``repo_key`` (strongest signal).
172
- 2. Structure heuristics from ``repo_path`` top-level entries.
173
- 3. Fallback from existing ``RepoType`` when available.
174
- 4. ``RepoRole.UNKNOWN`` as default.
175
- """
176
- repo_key_lower = repo_key.lower()
177
-
178
- # --- Layer 0: Pre-scan structure for source-code markers (DD-122.5 refinement) ---
179
- # Repos whose name matches config/deployment patterns but contain source code
180
- # (src/ + build tool) are services that *manage* config, not pure config repos.
181
- _has_source_code_structure = False
182
- if repo_path is not None and repo_path.is_dir():
183
- try:
184
- _top_names = {entry.name for entry in repo_path.iterdir()}
185
- except OSError:
186
- _top_names = set()
187
- _SOURCE_CODE_MARKERS = {"src", "main", "app", "lib"}
188
- _BUILD_TOOL_MARKERS = {
189
- "pom.xml",
190
- "build.gradle",
191
- "build.gradle.kts",
192
- "go.mod",
193
- "pyproject.toml",
194
- "package.json",
195
- }
196
- _has_source_code_structure = bool(_top_names & _SOURCE_CODE_MARKERS) and bool(_top_names & _BUILD_TOOL_MARKERS)
197
-
198
- # --- Layer 1: Naming heuristics (highest priority) ---
199
- if any(p.search(repo_key_lower) for p in _CONFIG_REPO_NAME_PATTERNS):
200
- if _has_source_code_structure:
201
- # Name says "config" but structure says "service" — demote to SERVICE.
202
- logger.debug(
203
- "classify_repo_role_config_demoted",
204
- repo_key=repo_key,
205
- reason="source_code_structure_detected",
206
- )
207
- return RepoRole.SERVICE
208
- return RepoRole.CONFIG
209
- if any(p.search(repo_key_lower) for p in _DEPLOYMENT_REPO_NAME_PATTERNS):
210
- return RepoRole.DEPLOYMENT
211
- if any(p.search(repo_key_lower) for p in _INFRA_REPO_NAME_PATTERNS):
212
- return RepoRole.INFRA
213
- if any(p.search(repo_key_lower) for p in _LIB_REPO_NAME_PATTERNS):
214
- return RepoRole.LIB
215
- if any(p.search(repo_key_lower) for p in _FRONTEND_REPO_NAME_PATTERNS):
216
- return RepoRole.FRONTEND
217
- if any(p.search(repo_key_lower) for p in _SERVICE_REPO_NAME_PATTERNS):
218
- return RepoRole.SERVICE
219
-
220
- # --- Layer 2: Structure heuristics ---
221
- if repo_path is not None and repo_path.is_dir():
222
- try:
223
- top_level = {entry.name for entry in repo_path.iterdir()}
224
- except OSError:
225
- top_level = set()
226
-
227
- top_level_lower = {name.lower() for name in top_level}
228
-
229
- # Config repo: dominated by config files with no source code
230
- has_config_files = bool(top_level_lower & {f.lower() for f in _CONFIG_STRUCTURE_FILES})
231
- has_config_dirs = bool(top_level_lower & _CONFIG_STRUCTURE_DIRS)
232
- has_source_code = bool(
233
- top_level & {"src", "main", "app", "lib", "pom.xml", "build.gradle", "go.mod", "pyproject.toml"}
234
- )
235
- if (has_config_files or has_config_dirs) and not has_source_code:
236
- return RepoRole.CONFIG
237
-
238
- # Deployment repo: dominated by deployment manifests
239
- if top_level_lower & _DEPLOYMENT_STRUCTURE_DIRS and not has_source_code:
240
- return RepoRole.DEPLOYMENT
241
-
242
- # Lib repo: has lib/packages structure
243
- if top_level_lower & _LIB_STRUCTURE_DIRS and not bool(top_level & {"Dockerfile", "docker-compose.yml"}):
244
- return RepoRole.LIB
245
-
246
- # --- Layer 3: Fallback from RepoType ---
247
- if repo_type is not None:
248
- _type_to_role: dict[RepoType, RepoRole] = {
249
- RepoType.FRONTEND: RepoRole.FRONTEND,
250
- RepoType.BACKEND: RepoRole.SERVICE,
251
- RepoType.INFRA: RepoRole.INFRA,
252
- RepoType.FULLSTACK: RepoRole.SERVICE,
253
- }
254
- fallback = _type_to_role.get(repo_type)
255
- if fallback is not None:
256
- return fallback
257
-
258
- return RepoRole.UNKNOWN
259
-
260
-
261
- class EdgeSource(StrEnum):
262
- """Provenance type for a dependency edge."""
263
-
264
- IMPORT_STATEMENT = "import_statement"
265
- CLIENT_WIRING = "client_wiring"
266
- MANIFEST_REFERENCE = "manifest_reference"
267
- SERVICE_ENTRYPOINT = "service_entrypoint"
268
- ADAPTER_CONFIG = "adapter_config"
269
- ANNOTATION_ATTRIBUTE = "annotation_attribute"
270
-
271
-
272
- class DependencyType(StrEnum):
273
- """Category of dependency relationship."""
274
-
275
- DIRECT = "direct"
276
- TRANSITIVE = "transitive"
277
- RUNTIME = "runtime"
278
- COMPILE = "compile"
279
- PROVIDED = "provided"
280
-
281
-
282
- # Language-specific patterns for structure extraction (TSK-113.3)
283
- _JAVA_IMPORT_PATTERN = re.compile(r"""^import\s+(?:static\s+)?([\w.]+)(?:\.\*)?;""")
284
- _KOTLIN_IMPORT_PATTERN = re.compile(r"""^import\s+(?:([\w.]+)(?:\.\*)?|\* as \w+)""")
285
- _PYTHON_IMPORT_PATTERN = re.compile(r"""^from\s+([\w.]+)\s+import|^import\s+([\w.]+)(?:\s+as\s+\w+)?$""")
286
- _GO_IMPORT_PATTERN = re.compile(r"""^import\s+"([^"]+)"|import\s+`([^"]+)`""")
287
- _TS_IMPORT_PATTERN = re.compile(r"""^import\s+(?:(?:{[^}]*}|\w+)\s+from\s+)?['"]([^'"]+)['"]""")
288
-
289
- # Module boundary patterns
290
- _JAVA_PACKAGE_PATTERN = re.compile(r"""^package\s+([\w.]+);""")
291
- _KOTLIN_PACKAGE_PATTERN = re.compile(r"""^package\s+([\w.]+)""")
292
- _PYTHON_MODULE_INIT = ("__init__.py",)
293
- _GO_PACKAGE_PATTERN = re.compile(r"""^package\s+(\w+)""")
294
- _TS_NAMESPACE_PATTERN = re.compile(r"""^namespace\s+(\w+)""")
295
-
296
- # Service/adapter patterns
297
- _SPRING_SERVICE_PATTERN = re.compile(r"""@(?:Rest)?Controller|@Service|@Component|@Repository""")
298
- _SPRING_REQUEST_MAPPING = re.compile(r"""@(?:Get|Post|Put|Delete|Patch|Request)Mapping""")
299
- _MICRONAUT_CONTROLLER = re.compile(r"""@(?:Controller|Client)(?:\s*\(\s*['"]([^'"]+)['"])?""")
300
- _QUARKUS_PATH = re.compile(r"""@Path\s*\(\s*['"]([^'"]+)['"]""")
301
-
302
- # Build manifest patterns
303
- _GRADLE_PROJECT_PATTERN = re.compile(r"""^\s*(?:api|implementation|testImplementation)\s+['"]([^:'"]+)""")
304
- _MAVEN_DEPENDENCY_PATTERN = re.compile(
305
- r"""<dependency>.*?<groupId>([^<]+)</groupId>.*?<artifactId>([^<]+)</artifactId>""",
306
- re.DOTALL,
307
- )
308
- _PYTHON_REQUIREMENT = re.compile(r"""^[\w\-\[\],<>=!~]+===?([\w\.\-]+)""")
309
- _GO_MODULE_PATTERN = re.compile(r"""^\s+([\w\.\/]+)\s+v[\d\.]+""")
310
- _NODE_DEPENDENCY = re.compile(r"""^['"]([\w\-@\/]+)['"]:\s*['"]?[^'"]+['"]?""")
311
-
312
- # Bounded extraction limits (DD-113.3)
313
- _MAX_SCAN_DEPTH = 3 # Maximum directory depth for structure scan
314
- _MAX_FILES_PER_REPO = 500 # Safety limit on files scanned per repo
315
- _MAX_EDGES_PER_REPO = 200 # Safety limit on edges extracted per repo
316
-
317
-
318
- # ---------------------------------------------------------------------------
319
- # Data Models (FR-113.2, FR-113.3, FR-113.4)
320
- # ---------------------------------------------------------------------------
321
-
322
-
323
- @dataclass(frozen=True, slots=True)
324
- class ModuleIdentity:
325
- """Normalized module/service identity for cross-repo topology."""
326
-
327
- name: str
328
- repo_key: str
329
- module_type: str # e.g., "spring_service", "fastapi_app", "go_package"
330
- language: str # e.g., "java", "python", "go"
331
- source_path: str # Relative path from repo root
332
- is_entrypoint: bool = False
333
-
334
- def __str__(self) -> str:
335
- return f"{self.repo_key}/{self.name}"
336
-
337
-
338
- @dataclass(frozen=True, slots=True)
339
- class DependencyEdge:
340
- """A directed dependency edge between modules/repos."""
341
-
342
- source_module: str # Fully qualified source module name
343
- target_module: str # Fully qualified target module name
344
- source_repo: str
345
- target_repo: str
346
- dependency_type: DependencyType = DependencyType.DIRECT
347
- edge_source: EdgeSource = EdgeSource.IMPORT_STATEMENT
348
- source_file: str | None = None
349
- line_number: int | None = None
350
- evidence_snippet: str | None = None
351
-
352
- def __hash__(self) -> int:
353
- return hash((self.source_module, self.target_module, self.source_repo, self.target_repo))
354
-
355
- def __eq__(self, other: object) -> bool:
356
- if not isinstance(other, DependencyEdge):
357
- return False
358
- return (
359
- self.source_module == other.source_module
360
- and self.target_module == other.target_module
361
- and self.source_repo == other.source_repo
362
- and self.target_repo == other.target_repo
363
- )
364
-
365
-
366
- @dataclass(frozen=True, slots=True)
367
- class CycleFinding:
368
- """A detected circular dependency or forbidden edge."""
369
-
370
- cycle_type: Literal["circular", "forbidden_layer", "forbidden_peer"]
371
- involved_modules: list[str]
372
- involved_repos: set[str]
373
- path: list[DependencyEdge] # The full cycle path
374
- severity: Literal["error", "warning", "info"] = "error"
375
- description: str = ""
376
- detection_timestamp: datetime = field(default_factory=lambda: datetime.now(UTC))
377
-
378
- def to_dict(self) -> dict[str, Any]:
379
- return {
380
- "cycle_type": self.cycle_type,
381
- "involved_modules": self.involved_modules,
382
- "involved_repos": sorted(self.involved_repos),
383
- "path": [
384
- {
385
- "from": edge.source_module,
386
- "to": edge.target_module,
387
- "source_repo": edge.source_repo,
388
- "target_repo": edge.target_repo,
389
- "edge_source": edge.edge_source,
390
- "source_file": edge.source_file,
391
- "line_number": edge.line_number,
392
- }
393
- for edge in self.path
394
- ],
395
- "severity": self.severity,
396
- "description": self.description,
397
- "detection_timestamp": self.detection_timestamp.isoformat(),
398
- }
399
-
400
-
401
- class RepoTopologyEntry(BaseModel):
402
- """Single repo entry within project topology (FR-113.2, FR-122.3)."""
403
-
404
- repo_key: str
405
- repo_path: str
406
- repo_type: RepoType
407
- repo_role: RepoRole = RepoRole.UNKNOWN # Phase 122 (AC-122.3.1)
408
- modules: list[str] = Field(default_factory=list) # Fully qualified module names
409
- entrypoints: list[str] = Field(default_factory=list)
410
- language: str | None = None
411
- scan_summary: dict[str, int] = Field(default_factory=dict)
412
-
413
-
414
- class ProjectTopology(BaseModel):
415
- """Project topology artifact (FR-113.2, AC-113.2.2).
416
-
417
- This artifact records:
418
- - Participating repo keys and identities
419
- - Resolved repo types (frontend/backend/fullstack/unknown)
420
- - Normalized module/service entries when available
421
- - Input provenance (AC-113.2.3)
422
- """
423
-
424
- project_storage_key: str
425
- project_name: str | None = None
426
- repos: list[RepoTopologyEntry] = Field(default_factory=list)
427
- resolved_at: datetime = Field(default_factory=lambda: datetime.now(UTC))
428
- thread_id: str | None = None
429
- run_id: str | None = None
430
- registry_source: str | None = None
431
- topology_source: str | None = None
432
-
433
- model_config = {"extra": "allow"}
434
-
435
-
436
- class ProjectDependencyGraph(BaseModel):
437
- """Project dependency graph artifact (FR-113.3, AC-113.3.1).
438
-
439
- Contains normalized edges with provenance (AC-113.3.4) and supports
440
- deterministic cycle detection (AC-113.3.3).
441
- """
442
-
443
- project_storage_key: str
444
- nodes: dict[str, dict[str, Any]] = Field(
445
- default_factory=dict,
446
- description="Module identity metadata keyed by fully qualified name",
447
- )
448
- edges: list[dict[str, Any]] = Field(
449
- default_factory=list,
450
- description="All dependency edges with provenance",
451
- )
452
- cross_repo_edges: list[dict[str, Any]] = Field(
453
- default_factory=list,
454
- description="Subset of edges that cross repo boundaries",
455
- )
456
- generated_at: datetime = Field(default_factory=lambda: datetime.now(UTC))
457
- provenance: dict[str, Any] = Field(default_factory=dict)
458
-
459
- model_config = {"extra": "allow"}
460
-
461
-
462
- class ProjectCycleReport(BaseModel):
463
- """Project cycle detection report (FR-113.3, AC-113.3.3).
464
-
465
- Authoritative for cross-repo dependency/coupling rows. LLM reasoning
466
- may explain but must not replace these results (DD-113.5).
467
- """
468
-
469
- project_storage_key: str
470
- total_edges_analyzed: int
471
- circular_cycles: list[dict[str, Any]] = Field(default_factory=list)
472
- forbidden_layer_violations: list[dict[str, Any]] = Field(default_factory=list)
473
- cross_repo_couplings: list[dict[str, Any]] = Field(default_factory=list)
474
- layering_summary: dict[str, Any] = Field(default_factory=dict)
475
- generated_at: datetime = Field(default_factory=lambda: datetime.now(UTC))
476
- graph_artifact_reference: str | None = None
477
-
478
- model_config = {"extra": "allow"}
479
-
480
-
481
- # ---------------------------------------------------------------------------
482
- # TSK-113.2: Project Topology Participation Resolver
483
- # ---------------------------------------------------------------------------
484
-
485
-
486
- class ProjectTopologyResolver:
487
- """Resolve participating repos and build project topology artifact (FR-113.2).
488
-
489
- Reuses registry/state/topology inputs already used by ``workflow-project``
490
- (DD-113.3) and produces ``project-topology.json`` with provenance (AC-113.2.3).
491
-
492
- Usage:
493
- resolver = ProjectTopologyResolver(state_store=store)
494
-
495
- topology = resolver.resolve_from_state(
496
- project_storage_key="88718940",
497
- thread_id="audit-20250312",
498
- )
499
-
500
- topology.write_json(output_dir / "project-topology.json")
501
- """
502
-
503
- def __init__(
504
- self,
505
- *,
506
- state_store: Any, # Centralized state store (PostgresStateStore)
507
- repo_cache_root: Path,
508
- repo_type_classifier: RepoTypeClassifier | None = None,
509
- ) -> None:
510
- self.state_store = state_store
511
- self.repo_cache_root = repo_cache_root
512
- self.repo_type_classifier = repo_type_classifier or RepoTypeClassifier()
513
- self._logger = get_logger(__name__, component="ProjectTopologyResolver")
514
-
515
- def resolve_from_state(
516
- self,
517
- *,
518
- project_storage_key: str,
519
- thread_id: str | None = None,
520
- run_id: str | None = None,
521
- bitbucket_project: str | None = None,
522
- ) -> ProjectTopology:
523
- """Resolve participating repos from centralized state (AC-113.2.1).
524
-
525
- Args:
526
- project_storage_key: Confluence numeric page_id for the project.
527
- thread_id: Workflow thread ID for provenance.
528
- run_id: Optional run ID for provenance.
529
- bitbucket_project: Optional Bitbucket project key override.
530
-
531
- Returns:
532
- ``ProjectTopology`` with repo identities, types, and module entries.
533
-
534
- Raises:
535
- ValueError: If project cannot be resolved from state (AC-113.2.4).
536
- """
537
- self._logger.info(
538
- "project_topology_resolving",
539
- project_storage_key=project_storage_key,
540
- thread_id=thread_id,
541
- )
542
-
543
- # Query repos from centralized state
544
- try:
545
- project_row = self._get_project_row(project_storage_key)
546
- except Exception as e:
547
- self._logger.exception(
548
- "project_topology_resolution_failed",
549
- project_storage_key=project_storage_key,
550
- error=str(e),
551
- )
552
- raise ValueError(
553
- f"Cannot resolve project topology for {project_storage_key!r}: "
554
- f"project not found in centralized state. "
555
- f"Cross-repo code rows must remain non-pass (AC-113.2.4)."
556
- ) from e
557
-
558
- # Check if project row was actually found (may return None without exception)
559
- if project_row is None:
560
- raise ValueError(
561
- f"Cannot resolve project topology for {project_storage_key!r}: "
562
- f"project not found in centralized state. "
563
- f"Cross-repo code rows must remain non-pass (AC-113.2.4)."
564
- )
565
-
566
- repo_entries: list[RepoTopologyEntry] = []
567
- repos = self._get_project_repos(
568
- project_storage_key=project_storage_key,
569
- bitbucket_project=bitbucket_project,
570
- )
571
-
572
- for repo_row in repos:
573
- repo_key = str(repo_row.get("repo_key") or "").strip()
574
- repo_slug = self._repo_slug_for_path(repo_row) or repo_key
575
- local_code_path = self._repo_local_code_path(repo_row)
576
- if repo_key.endswith(":project") and not local_code_path:
577
- self._logger.debug(
578
- "project_topology_pseudo_repo_skipped",
579
- repo_key=repo_key,
580
- )
581
- continue
582
- if not repo_slug and not local_code_path:
583
- self._logger.debug(
584
- "project_topology_repo_identity_skipped",
585
- repo_key=repo_key,
586
- )
587
- continue
588
- repo_path = self._resolve_repo_path(
589
- repo_key=repo_key,
590
- repo_slug=repo_slug,
591
- local_code_path=local_code_path,
592
- bitbucket_project=repo_row.get("bitbucket_project_key"),
593
- )
594
-
595
- if not repo_path or not repo_path.exists():
596
- self._logger.warning(
597
- "project_topology_repo_not_found",
598
- repo_key=repo_key,
599
- repo_slug=repo_slug,
600
- repo_path=str(repo_path) if repo_path else None,
601
- )
602
- continue
603
-
604
- repo_type = self.repo_type_classifier.classify(repo_path)
605
- repo_role = classify_repo_role(
606
- repo_key=repo_key,
607
- repo_path=repo_path,
608
- repo_type=repo_type,
609
- )
610
-
611
- entry = RepoTopologyEntry(
612
- repo_key=repo_key,
613
- repo_path=str(repo_path),
614
- repo_type=repo_type,
615
- repo_role=repo_role,
616
- language=self._infer_repo_language(repo_path),
617
- scan_summary={"modules": 0, "entrypoints": 0},
618
- )
619
-
620
- repo_entries.append(entry)
621
- self._logger.debug(
622
- "project_topology_repo_classified",
623
- repo_key=repo_key,
624
- repo_type=repo_type.value,
625
- repo_role=repo_role.value,
626
- )
627
-
628
- # Sort by repo_key for deterministic output (NFR-113.1)
629
- repo_entries.sort(key=lambda e: e.repo_key)
630
-
631
- topology = ProjectTopology(
632
- project_storage_key=project_storage_key,
633
- project_name=project_row.get("display_name"),
634
- repos=repo_entries,
635
- resolved_at=datetime.now(UTC),
636
- thread_id=thread_id,
637
- run_id=run_id,
638
- registry_source="centralized_state",
639
- topology_source="registry_state_confluence",
640
- )
641
-
642
- self._logger.info(
643
- "project_topology_resolved",
644
- project_storage_key=project_storage_key,
645
- repos_count=len(topology.repos),
646
- )
647
-
648
- return topology
649
-
650
- def _get_project_row(self, project_storage_key: str) -> dict[str, Any] | None:
651
- """Fetch project row from centralized state."""
652
- if hasattr(self.state_store, "get_project_by_storage_key"):
653
- return self.state_store.get_project_by_storage_key(project_storage_key)
654
- if hasattr(self.state_store, "get_project"):
655
- return self.state_store.get_project(project_storage_key)
656
- # Fallback: try direct SQL query
657
- if hasattr(self.state_store, "_conn"):
658
- with self.state_store._conn.cursor(row_factory=dict_row) as cur:
659
- cur.execute(
660
- """
661
- SELECT *
662
- FROM audit_state.projects
663
- WHERE project_key = %s
664
- OR metadata->>'page_id' = %s
665
- OR metadata->>'project_storage_key' = %s
666
- ORDER BY CASE WHEN project_key = %s THEN 0 ELSE 1 END, id
667
- LIMIT 1
668
- """,
669
- (project_storage_key, project_storage_key, project_storage_key, project_storage_key),
670
- )
671
- return cur.fetchone()
672
- return None
673
-
674
- def _get_project_repos(
675
- self,
676
- project_storage_key: str,
677
- bitbucket_project: str | None = None,
678
- ) -> list[dict[str, Any]]:
679
- """Fetch repos for project from centralized state."""
680
- if hasattr(self.state_store, "get_repos_for_project"):
681
- return self.state_store.get_repos_for_project(project_storage_key)
682
-
683
- # Fallback: direct SQL query
684
- if hasattr(self.state_store, "_conn"):
685
- with self.state_store._conn.cursor(row_factory=dict_row) as cur:
686
- if bitbucket_project:
687
- cur.execute(
688
- """
689
- SELECT
690
- r.repo_key,
691
- NULLIF(
692
- btrim(
693
- COALESCE(
694
- r.metadata->>'repo_slug',
695
- r.metadata->>'bitbucket_repo_key',
696
- r.repo_key
697
- )
698
- ),
699
- ''
700
- ) AS repo_slug,
701
- COALESCE(
702
- NULLIF(btrim(r.metadata->>'bitbucket_project_key'), ''),
703
- bp.project_key
704
- ) AS bitbucket_project_key,
705
- NULLIF(btrim(r.metadata->>'local_code_path'), '') AS local_code_path,
706
- r.metadata
707
- FROM audit_state.repos r
708
- JOIN audit_state.projects p ON p.id = r.project_id
709
- LEFT JOIN audit_state.bitbucket_projects bp ON bp.id = r.bitbucket_project_id
710
- WHERE p.project_key = %s
711
- AND r.analysis_excluded = FALSE
712
- AND lower(COALESCE(NULLIF(btrim(r.metadata->>'bitbucket_project_key'), ''), bp.project_key, '')) = lower(%s)
713
- ORDER BY r.repo_key
714
- """,
715
- (project_storage_key, bitbucket_project),
716
- )
717
- else:
718
- cur.execute(
719
- """
720
- SELECT
721
- r.repo_key,
722
- NULLIF(
723
- btrim(
724
- COALESCE(
725
- r.metadata->>'repo_slug',
726
- r.metadata->>'bitbucket_repo_key',
727
- r.repo_key
728
- )
729
- ),
730
- ''
731
- ) AS repo_slug,
732
- COALESCE(
733
- NULLIF(btrim(r.metadata->>'bitbucket_project_key'), ''),
734
- bp.project_key
735
- ) AS bitbucket_project_key,
736
- NULLIF(btrim(r.metadata->>'local_code_path'), '') AS local_code_path,
737
- r.metadata
738
- FROM audit_state.repos r
739
- JOIN audit_state.projects p ON p.id = r.project_id
740
- LEFT JOIN audit_state.bitbucket_projects bp ON bp.id = r.bitbucket_project_id
741
- WHERE p.project_key = %s
742
- AND r.analysis_excluded = FALSE
743
- ORDER BY r.repo_key
744
- """,
745
- (project_storage_key,),
746
- )
747
- return cur.fetchall()
748
- return []
749
-
750
- def _resolve_repo_path(
751
- self,
752
- repo_key: str,
753
- repo_slug: str | None = None,
754
- local_code_path: str | None = None,
755
- bitbucket_project: str | None = None,
756
- ) -> Path | None:
757
- """Resolve repo cache path from repo key and Bitbucket project."""
758
- if isinstance(local_code_path, str) and local_code_path.strip():
759
- local_repo_path = Path(local_code_path).expanduser()
760
- if local_repo_path.exists():
761
- return local_repo_path
762
-
763
- bb_project = bitbucket_project or self._infer_bitbucket_project(repo_key)
764
- if not bb_project:
765
- return None
766
-
767
- repo_dir_name = str(repo_slug or repo_key or "").strip()
768
- if not repo_dir_name:
769
- return None
770
-
771
- candidate_projects: list[str] = []
772
- normalized_project = str(bb_project).strip()
773
- for candidate in (normalized_project.upper(), normalized_project, normalized_project.lower()):
774
- if candidate and candidate not in candidate_projects:
775
- candidate_projects.append(candidate)
776
-
777
- for project_key in candidate_projects:
778
- candidate_path = self.repo_cache_root / f"{project_key}-project" / repo_dir_name
779
- if candidate_path.exists():
780
- return candidate_path
781
-
782
- # Standard cache pattern: <vds-cache-root>/repos/{BB_PROJECT}-project/{repo_slug}
783
- return self.repo_cache_root / f"{candidate_projects[0]}-project" / repo_dir_name
784
-
785
- @staticmethod
786
- def _repo_metadata(repo_row: dict[str, Any]) -> dict[str, Any]:
787
- metadata = repo_row.get("metadata")
788
- return metadata if isinstance(metadata, dict) else {}
789
-
790
- def _repo_slug_for_path(self, repo_row: dict[str, Any]) -> str:
791
- metadata = self._repo_metadata(repo_row)
792
- for candidate in (
793
- repo_row.get("repo_slug"),
794
- metadata.get("repo_slug"),
795
- metadata.get("bitbucket_repo_key"),
796
- repo_row.get("repo_key"),
797
- ):
798
- value = str(candidate or "").strip()
799
- if value:
800
- return value
801
- return ""
802
-
803
- def _repo_local_code_path(self, repo_row: dict[str, Any]) -> str | None:
804
- metadata = self._repo_metadata(repo_row)
805
- value = str(repo_row.get("local_code_path") or metadata.get("local_code_path") or "").strip()
806
- return value or None
807
-
808
- def _infer_bitbucket_project(self, repo_key: str) -> str | None:
809
- """Infer Bitbucket project key from repo_key or state."""
810
- if hasattr(self.state_store, "get_bitbucket_project_for_repo"):
811
- return self.state_store.get_bitbucket_project_for_repo(repo_key)
812
- return None
813
-
814
- def _infer_repo_language(self, repo_path: Path) -> str | None:
815
- """Infer primary language from repo structure."""
816
- top_level = {entry.name for entry in repo_path.iterdir()} if repo_path.is_dir() else set()
817
-
818
- if "pom.xml" in top_level or any(f.endswith(".java") for f in top_level):
819
- return "java"
820
- if "build.gradle" in top_level or "build.gradle.kts" in top_level:
821
- return "java"
822
- if "go.mod" in top_level:
823
- return "go"
824
- if "package.json" in top_level:
825
- return "typescript"
826
- if "requirements.txt" in top_level or "pyproject.toml" in top_level:
827
- return "python"
828
- if "Gemfile" in top_level:
829
- return "ruby"
830
- return None
831
-
832
- def write_topology_artifact(
833
- self,
834
- topology: ProjectTopology,
835
- output_dir: Path,
836
- ) -> Path:
837
- """Persist project topology artifact as JSON."""
838
- output_dir.mkdir(parents=True, exist_ok=True)
839
- artifact_path = output_dir / "project-topology.json"
840
-
841
- artifact_path.write_text(
842
- topology.model_dump_json(indent=2, exclude_none=True),
843
- encoding="utf-8",
844
- )
845
-
846
- self._logger.info(
847
- "project_topology_artifact_written",
848
- artifact_path=str(artifact_path),
849
- repos_count=len(topology.repos),
850
- )
851
-
852
- return artifact_path
853
-
854
-
855
- # ---------------------------------------------------------------------------
856
- # TSK-113.3: Per-Repo Structure Extraction
857
- # ---------------------------------------------------------------------------
858
-
859
-
860
- class PerRepoStructureExtractor:
861
- """Bounded per-repo structure extraction for cross-repo topology (FR-113.3).
862
-
863
- Extracts imports, client/integration wiring, module manifests, and service
864
- entrypoints needed to build normalized dependency edges.
865
-
866
- Bounded by depth and file count limits (DD-113.3) to keep extraction
867
- predictable and efficient.
868
- """
869
-
870
- def __init__(
871
- self,
872
- *,
873
- max_scan_depth: int = _MAX_SCAN_DEPTH,
874
- max_files_per_repo: int = _MAX_FILES_PER_REPO,
875
- max_edges_per_repo: int = _MAX_EDGES_PER_REPO,
876
- ) -> None:
877
- self.max_scan_depth = max_scan_depth
878
- self.max_files_per_repo = max_files_per_repo
879
- self.max_edges_per_repo = max_edges_per_repo
880
- self._logger = get_logger(__name__, component="PerRepoStructureExtractor")
881
-
882
- def extract_from_repo(
883
- self,
884
- repo_path: Path,
885
- repo_key: str,
886
- language: str | None = None,
887
- ) -> tuple[list[ModuleIdentity], list[DependencyEdge]]:
888
- """Extract module identities and dependency edges from a single repo.
889
-
890
- Args:
891
- repo_path: Path to the cloned repository.
892
- repo_key: Repository key for provenance.
893
- language: Optional inferred language hint.
894
-
895
- Returns:
896
- Tuple of (module_identities, dependency_edges).
897
- """
898
- self._logger.info(
899
- "repo_structure_extraction_starting",
900
- repo_key=repo_key,
901
- repo_path=str(repo_path),
902
- language=language,
903
- )
904
-
905
- if not language:
906
- language = self._detect_language(repo_path)
907
-
908
- modules: list[ModuleIdentity] = []
909
- edges: list[DependencyEdge] = []
910
-
911
- if language == "java":
912
- modules, edges = self._extract_java_structure(repo_path, repo_key)
913
- elif language == "python":
914
- modules, edges = self._extract_python_structure(repo_path, repo_key)
915
- elif language == "go":
916
- modules, edges = self._extract_go_structure(repo_path, repo_key)
917
- elif language == "typescript":
918
- modules, edges = self._extract_typescript_structure(repo_path, repo_key)
919
- elif language == "kotlin":
920
- modules, edges = self._extract_kotlin_structure(repo_path, repo_key)
921
- else:
922
- self._logger.warning(
923
- "repo_language_not_supported",
924
- repo_key=repo_key,
925
- language=language,
926
- )
927
-
928
- self._logger.info(
929
- "repo_structure_extraction_complete",
930
- repo_key=repo_key,
931
- modules_found=len(modules),
932
- edges_found=len(edges),
933
- )
934
-
935
- return modules, edges
936
-
937
- def _detect_language(self, repo_path: Path) -> str | None:
938
- """Detect primary language from build files and directory structure."""
939
- if not repo_path.is_dir():
940
- return None
941
-
942
- top_level = {entry.name for entry in repo_path.iterdir()}
943
-
944
- if "pom.xml" in top_level or any(f.startswith("build.gradle") for f in top_level):
945
- return "java"
946
- if "requirements.txt" in top_level or "pyproject.toml" in top_level or "setup.py" in top_level:
947
- return "python"
948
- if "go.mod" in top_level:
949
- return "go"
950
- if "package.json" in top_level and "tsconfig.json" in top_level:
951
- return "typescript"
952
- if "build.gradle.kts" in top_level:
953
- return "kotlin"
954
- return None
955
-
956
- def _extract_java_structure(
957
- self,
958
- repo_path: Path,
959
- repo_key: str,
960
- ) -> tuple[list[ModuleIdentity], list[DependencyEdge]]:
961
- """Extract Java structure from Maven/Gradle projects."""
962
- modules: list[ModuleIdentity] = []
963
- edges: list[DependencyEdge] = []
964
-
965
- # Find source roots (src/main/java, src/test/java)
966
- source_roots = self._find_java_source_roots(repo_path)
967
- scanned_files = 0
968
-
969
- java_scan_depth = max(self.max_scan_depth, 8)
970
-
971
- for source_root in source_roots:
972
- if scanned_files >= self.max_files_per_repo:
973
- break
974
-
975
- for java_file in self._scan_files_by_extension(source_root, ".java", java_scan_depth):
976
- scanned_files += 1
977
- if scanned_files > self.max_files_per_repo:
978
- break
979
-
980
- rel_path = java_file.relative_to(repo_path)
981
- module_name = self._java_file_to_module(java_file, source_root, repo_path)
982
- if not module_name:
983
- continue
984
-
985
- module = ModuleIdentity(
986
- name=module_name,
987
- repo_key=repo_key,
988
- module_type=self._classify_java_module(java_file),
989
- language="java",
990
- source_path=str(rel_path),
991
- is_entrypoint=self._is_java_entrypoint(java_file),
992
- )
993
- modules.append(module)
994
-
995
- # Extract import statements
996
- file_edges = self._extract_java_imports(java_file, module, repo_key, repo_path)
997
- edges.extend(file_edges)
998
-
999
- if len(edges) >= self.max_edges_per_repo:
1000
- break
1001
-
1002
- return modules, edges[: self.max_edges_per_repo]
1003
-
1004
- def _find_java_source_roots(self, repo_path: Path) -> list[Path]:
1005
- """Find standard Java source root directories."""
1006
- roots = []
1007
- candidates = [
1008
- repo_path / "src" / "main" / "java",
1009
- repo_path / "src" / "test" / "java",
1010
- repo_path / "src" / "main" / "kotlin",
1011
- repo_path / "src" / "main",
1012
- ]
1013
- for candidate in candidates:
1014
- if candidate.is_dir():
1015
- roots.append(candidate)
1016
- return roots
1017
-
1018
- def _java_file_to_module(
1019
- self,
1020
- java_file: Path,
1021
- source_root: Path,
1022
- repo_root: Path,
1023
- ) -> str | None:
1024
- """Convert Java file path to fully qualified module name."""
1025
- try:
1026
- content = java_file.read_text(encoding="utf-8", errors="ignore")
1027
- package_match = _JAVA_PACKAGE_PATTERN.search(content)
1028
- if package_match:
1029
- package_name = package_match.group(1)
1030
- class_name = java_file.stem
1031
- return f"{package_name}.{class_name}"
1032
- except OSError:
1033
- pass
1034
-
1035
- # Fallback: derive from path
1036
- relative = java_file.relative_to(source_root).parent
1037
- package = ".".join(relative.parts) if relative.parts else "default"
1038
- return f"{package}.{java_file.stem}"
1039
-
1040
- def _classify_java_module(self, java_file: Path) -> str:
1041
- """Classify Java module type (spring_service, etc.)."""
1042
- try:
1043
- content = java_file.read_text(encoding="utf-8", errors="ignore")
1044
- if _SPRING_SERVICE_PATTERN.search(content):
1045
- return "spring_service"
1046
- if _MICRONAUT_CONTROLLER.search(content):
1047
- return "micronaut_controller"
1048
- if _QUARKUS_PATH.search(content):
1049
- return "quarkus_resource"
1050
- except OSError:
1051
- pass
1052
- return "java_class"
1053
-
1054
- def _is_java_entrypoint(self, java_file: Path) -> bool:
1055
- """Check if Java file is a service entrypoint."""
1056
- try:
1057
- content = java_file.read_text(encoding="utf-8", errors="ignore")
1058
- if _SPRING_REQUEST_MAPPING.search(content):
1059
- return True
1060
- if _QUARKUS_PATH.search(content):
1061
- return True
1062
- if "@GET" in content or "@POST" in content or "@PUT" in content:
1063
- return True
1064
- except OSError:
1065
- pass
1066
- return False
1067
-
1068
- def _extract_java_imports(
1069
- self,
1070
- java_file: Path,
1071
- source_module: ModuleIdentity,
1072
- repo_key: str,
1073
- repo_root: Path,
1074
- ) -> list[DependencyEdge]:
1075
- """Extract import statements from Java file."""
1076
- edges = []
1077
- try:
1078
- lines = java_file.read_text(encoding="utf-8", errors="ignore").splitlines()
1079
- for line_no, line in enumerate(lines, 1):
1080
- match = _JAVA_IMPORT_PATTERN.match(line.strip())
1081
- if match:
1082
- target_module = match.group(1)
1083
- # Determine if cross-repo by checking package structure
1084
- target_repo = self._resolve_import_target_repo(target_module, repo_key, repo_root)
1085
- edge = DependencyEdge(
1086
- source_module=source_module.name,
1087
- target_module=target_module,
1088
- source_repo=repo_key,
1089
- target_repo=target_repo,
1090
- edge_source=EdgeSource.IMPORT_STATEMENT,
1091
- source_file=str(source_module.source_path),
1092
- line_number=line_no,
1093
- )
1094
- edges.append(edge)
1095
- except OSError:
1096
- pass
1097
- return edges
1098
-
1099
- def _resolve_import_target_repo(
1100
- self,
1101
- import_package: str,
1102
- current_repo: str,
1103
- repo_root: Path,
1104
- ) -> str:
1105
- """Resolve target repo for an import (simplified heuristic)."""
1106
- # For now, assume imports within current repo's base package are intra-repo
1107
- # This is a simplified heuristic - full implementation would scan all repos
1108
- import_package.split(".", maxsplit=1)[0]
1109
- return current_repo # Default to same repo for bounded extraction
1110
-
1111
- def _extract_python_structure(
1112
- self,
1113
- repo_path: Path,
1114
- repo_key: str,
1115
- ) -> tuple[list[ModuleIdentity], list[DependencyEdge]]:
1116
- """Extract Python structure from setup.py/pyproject.toml and source."""
1117
- modules: list[ModuleIdentity] = []
1118
- edges: list[DependencyEdge] = []
1119
-
1120
- # Scan Python files
1121
- scanned_files = 0
1122
- for py_file in self._scan_files_by_extension(repo_path, ".py", self.max_scan_depth):
1123
- scanned_files += 1
1124
- if scanned_files > self.max_files_per_repo:
1125
- break
1126
-
1127
- rel_path = py_file.relative_to(repo_path)
1128
- module_name = self._python_file_to_module(py_file, repo_path)
1129
- if not module_name:
1130
- continue
1131
-
1132
- module = ModuleIdentity(
1133
- name=module_name,
1134
- repo_key=repo_key,
1135
- module_type=self._classify_python_module(py_file),
1136
- language="python",
1137
- source_path=str(rel_path),
1138
- is_entrypoint=self._is_python_entrypoint(py_file),
1139
- )
1140
- modules.append(module)
1141
-
1142
- file_edges = self._extract_python_imports(py_file, module, repo_key, repo_path)
1143
- edges.extend(file_edges)
1144
-
1145
- if len(edges) >= self.max_edges_per_repo:
1146
- break
1147
-
1148
- return modules, edges[: self.max_edges_per_repo]
1149
-
1150
- def _python_file_to_module(self, py_file: Path, repo_root: Path) -> str | None:
1151
- """Convert Python file path to module name."""
1152
- relative = py_file.relative_to(repo_root)
1153
- parts = list(relative.parts[:-1]) # Directory path
1154
- if py_file.stem != "__init__":
1155
- parts.append(py_file.stem)
1156
- return ".".join(parts) if parts else py_file.stem
1157
-
1158
- def _classify_python_module(self, py_file: Path) -> str:
1159
- """Classify Python module type."""
1160
- try:
1161
- content = py_file.read_text(encoding="utf-8", errors="ignore")
1162
- if "FastAPI" in content or "APIRouter" in content:
1163
- return "fastapi_app"
1164
- if "Flask" in content or "@app.route" in content:
1165
- return "flask_app"
1166
- if "Django" in content:
1167
- return "django_app"
1168
- except OSError:
1169
- pass
1170
- return "python_module"
1171
-
1172
- def _is_python_entrypoint(self, py_file: Path) -> bool:
1173
- """Check if Python file is a service entrypoint."""
1174
- try:
1175
- content = py_file.read_text(encoding="utf-8", errors="ignore")
1176
- if "@app." in content or "APIRouter" in content or "FastAPI" in content:
1177
- return True
1178
- except OSError:
1179
- pass
1180
- return False
1181
-
1182
- def _extract_python_imports(
1183
- self,
1184
- py_file: Path,
1185
- source_module: ModuleIdentity,
1186
- repo_key: str,
1187
- repo_root: Path,
1188
- ) -> list[DependencyEdge]:
1189
- """Extract import statements from Python file."""
1190
- edges = []
1191
- try:
1192
- lines = py_file.read_text(encoding="utf-8", errors="ignore").splitlines()
1193
- for line_no, line in enumerate(lines, 1):
1194
- match = _PYTHON_IMPORT_PATTERN.match(line.strip())
1195
- if match:
1196
- target_module = match.group(1) or match.group(2)
1197
- if target_module:
1198
- edge = DependencyEdge(
1199
- source_module=source_module.name,
1200
- target_module=target_module,
1201
- source_repo=repo_key,
1202
- target_repo=repo_key, # Default to same repo
1203
- edge_source=EdgeSource.IMPORT_STATEMENT,
1204
- source_file=str(source_module.source_path),
1205
- line_number=line_no,
1206
- )
1207
- edges.append(edge)
1208
- except OSError:
1209
- pass
1210
- return edges
1211
-
1212
- def _extract_go_structure(
1213
- self,
1214
- repo_path: Path,
1215
- repo_key: str,
1216
- ) -> tuple[list[ModuleIdentity], list[DependencyEdge]]:
1217
- """Extract Go structure from go.mod and source."""
1218
- modules: list[ModuleIdentity] = []
1219
- edges: list[DependencyEdge] = []
1220
-
1221
- # Extract module name from go.mod
1222
- module_prefix = ""
1223
- go_mod = repo_path / "go.mod"
1224
- if go_mod.exists():
1225
- try:
1226
- content = go_mod.read_text(encoding="utf-8")
1227
- for line in content.splitlines():
1228
- if line.startswith("module "):
1229
- module_prefix = line.split()[1]
1230
- break
1231
- except OSError:
1232
- pass
1233
-
1234
- scanned_files = 0
1235
- for go_file in self._scan_files_by_extension(repo_path, ".go", self.max_scan_depth):
1236
- scanned_files += 1
1237
- if scanned_files > self.max_files_per_repo:
1238
- break
1239
-
1240
- rel_path = go_file.relative_to(repo_path)
1241
- package_name = self._extract_go_package(go_file)
1242
- module_name = f"{module_prefix}/{rel_path.parent.as_posix()}" if module_prefix else str(rel_path)
1243
- if package_name:
1244
- module_name = f"{module_name}:{package_name}"
1245
-
1246
- module = ModuleIdentity(
1247
- name=module_name,
1248
- repo_key=repo_key,
1249
- module_type="go_package",
1250
- language="go",
1251
- source_path=str(rel_path),
1252
- is_entrypoint=self._is_go_entrypoint(go_file),
1253
- )
1254
- modules.append(module)
1255
-
1256
- file_edges = self._extract_go_imports(go_file, module, repo_key)
1257
- edges.extend(file_edges)
1258
-
1259
- if len(edges) >= self.max_edges_per_repo:
1260
- break
1261
-
1262
- return modules, edges[: self.max_edges_per_repo]
1263
-
1264
- def _extract_go_package(self, go_file: Path) -> str | None:
1265
- """Extract package name from Go file."""
1266
- try:
1267
- content = go_file.read_text(encoding="utf-8", errors="ignore")
1268
- match = _GO_PACKAGE_PATTERN.search(content)
1269
- return match.group(1) if match else None
1270
- except OSError:
1271
- return None
1272
-
1273
- def _is_go_entrypoint(self, go_file: Path) -> bool:
1274
- """Check if Go file is a service entrypoint."""
1275
- try:
1276
- content = go_file.read_text(encoding="utf-8", errors="ignore")
1277
- if "func main" in content or "http.HandleFunc" in content or "http.ListenAndServe" in content:
1278
- return True
1279
- except OSError:
1280
- pass
1281
- return False
1282
-
1283
- def _extract_go_imports(
1284
- self,
1285
- go_file: Path,
1286
- source_module: ModuleIdentity,
1287
- repo_key: str,
1288
- ) -> list[DependencyEdge]:
1289
- """Extract import statements from Go file."""
1290
- edges = []
1291
- try:
1292
- lines = go_file.read_text(encoding="utf-8", errors="ignore").splitlines()
1293
- for line_no, line in enumerate(lines, 1):
1294
- match = _GO_IMPORT_PATTERN.match(line.strip())
1295
- if match:
1296
- target_module = match.group(1) or match.group(2)
1297
- if target_module and not target_module.startswith('"'):
1298
- edge = DependencyEdge(
1299
- source_module=source_module.name,
1300
- target_module=target_module,
1301
- source_repo=repo_key,
1302
- target_repo=repo_key,
1303
- edge_source=EdgeSource.IMPORT_STATEMENT,
1304
- source_file=str(source_module.source_path),
1305
- line_number=line_no,
1306
- )
1307
- edges.append(edge)
1308
- except OSError:
1309
- pass
1310
- return edges
1311
-
1312
- def _extract_typescript_structure(
1313
- self,
1314
- repo_path: Path,
1315
- repo_key: str,
1316
- ) -> tuple[list[ModuleIdentity], list[DependencyEdge]]:
1317
- """Extract TypeScript structure."""
1318
- modules: list[ModuleIdentity] = []
1319
- edges: list[DependencyEdge] = []
1320
-
1321
- # Scan TS/TSX files
1322
- scanned_files = 0
1323
- for ext in (".ts", ".tsx"):
1324
- for ts_file in self._scan_files_by_extension(repo_path, ext, self.max_scan_depth):
1325
- scanned_files += 1
1326
- if scanned_files > self.max_files_per_repo:
1327
- break
1328
-
1329
- rel_path = ts_file.relative_to(repo_path)
1330
- module_name = str(rel_path.with_suffix(""))
1331
-
1332
- module = ModuleIdentity(
1333
- name=module_name,
1334
- repo_key=repo_key,
1335
- module_type=self._classify_typescript_module(ts_file),
1336
- language="typescript",
1337
- source_path=str(rel_path),
1338
- is_entrypoint=self._is_typescript_entrypoint(ts_file),
1339
- )
1340
- modules.append(module)
1341
-
1342
- file_edges = self._extract_typescript_imports(ts_file, module, repo_key)
1343
- edges.extend(file_edges)
1344
-
1345
- if len(edges) >= self.max_edges_per_repo:
1346
- break
1347
-
1348
- return modules, edges[: self.max_edges_per_repo]
1349
-
1350
- def _classify_typescript_module(self, ts_file: Path) -> str:
1351
- """Classify TypeScript module type."""
1352
- if ts_file.stem.endswith(".service") or ts_file.stem.endswith(".controller"):
1353
- return "angular_service"
1354
- if ts_file.stem.endswith(".component"):
1355
- return "angular_component"
1356
- return "typescript_module"
1357
-
1358
- def _is_typescript_entrypoint(self, ts_file: Path) -> bool:
1359
- """Check if TypeScript file is a service entrypoint."""
1360
- try:
1361
- content = ts_file.read_text(encoding="utf-8", errors="ignore")
1362
- if "@Controller" in content or "@Injectable" in content:
1363
- return True
1364
- if "app.use" in content or "router." in content:
1365
- return True
1366
- except OSError:
1367
- pass
1368
- return False
1369
-
1370
- def _extract_typescript_imports(
1371
- self,
1372
- ts_file: Path,
1373
- source_module: ModuleIdentity,
1374
- repo_key: str,
1375
- ) -> list[DependencyEdge]:
1376
- """Extract import statements from TypeScript file."""
1377
- edges = []
1378
- try:
1379
- lines = ts_file.read_text(encoding="utf-8", errors="ignore").splitlines()
1380
- for line_no, line in enumerate(lines, 1):
1381
- match = _TS_IMPORT_PATTERN.search(line)
1382
- if match:
1383
- target_module = match.group(1)
1384
- if target_module and not target_module.startswith("."):
1385
- edge = DependencyEdge(
1386
- source_module=source_module.name,
1387
- target_module=target_module,
1388
- source_repo=repo_key,
1389
- target_repo=repo_key,
1390
- edge_source=EdgeSource.IMPORT_STATEMENT,
1391
- source_file=str(source_module.source_path),
1392
- line_number=line_no,
1393
- )
1394
- edges.append(edge)
1395
- except OSError:
1396
- pass
1397
- return edges
1398
-
1399
- def _extract_kotlin_structure(
1400
- self,
1401
- repo_path: Path,
1402
- repo_key: str,
1403
- ) -> tuple[list[ModuleIdentity], list[DependencyEdge]]:
1404
- """Extract Kotlin structure (similar to Java)."""
1405
- # Reuse Java extraction patterns with Kotlin-specific tweaks
1406
- modules: list[ModuleIdentity] = []
1407
- edges: list[DependencyEdge] = []
1408
-
1409
- source_roots = self._find_java_source_roots(repo_path) # Kotlin uses same structure
1410
- scanned_files = 0
1411
-
1412
- kotlin_scan_depth = max(self.max_scan_depth, 8)
1413
-
1414
- for source_root in source_roots:
1415
- if scanned_files >= self.max_files_per_repo:
1416
- break
1417
-
1418
- for kt_file in self._scan_files_by_extension(source_root, ".kt", kotlin_scan_depth):
1419
- scanned_files += 1
1420
- if scanned_files > self.max_files_per_repo:
1421
- break
1422
-
1423
- rel_path = kt_file.relative_to(repo_path)
1424
- module_name = self._java_file_to_module(kt_file, source_root, repo_path) # Reuse logic
1425
- if not module_name:
1426
- continue
1427
-
1428
- module = ModuleIdentity(
1429
- name=module_name,
1430
- repo_key=repo_key,
1431
- module_type=self._classify_kotlin_module(kt_file),
1432
- language="kotlin",
1433
- source_path=str(rel_path),
1434
- is_entrypoint=self._is_java_entrypoint(kt_file), # Reuse detection
1435
- )
1436
- modules.append(module)
1437
-
1438
- file_edges = self._extract_kotlin_imports(kt_file, module, repo_key, repo_path)
1439
- edges.extend(file_edges)
1440
-
1441
- if len(edges) >= self.max_edges_per_repo:
1442
- break
1443
-
1444
- return modules, edges[: self.max_edges_per_repo]
1445
-
1446
- def _classify_kotlin_module(self, kt_file: Path) -> str:
1447
- """Classify Kotlin module type."""
1448
- try:
1449
- content = kt_file.read_text(encoding="utf-8", errors="ignore")
1450
- if _SPRING_SERVICE_PATTERN.search(content):
1451
- return "spring_service"
1452
- if "Ktor" in content:
1453
- return "ktor_route"
1454
- except OSError:
1455
- pass
1456
- return "kotlin_class"
1457
-
1458
- def _extract_kotlin_imports(
1459
- self,
1460
- kt_file: Path,
1461
- source_module: ModuleIdentity,
1462
- repo_key: str,
1463
- repo_root: Path,
1464
- ) -> list[DependencyEdge]:
1465
- """Extract import statements from Kotlin file."""
1466
- edges = []
1467
- try:
1468
- lines = kt_file.read_text(encoding="utf-8", errors="ignore").splitlines()
1469
- for line_no, line in enumerate(lines, 1):
1470
- match = _KOTLIN_IMPORT_PATTERN.match(line.strip())
1471
- if match:
1472
- target_module = match.group(1)
1473
- if target_module:
1474
- edge = DependencyEdge(
1475
- source_module=source_module.name,
1476
- target_module=target_module,
1477
- source_repo=repo_key,
1478
- target_repo=repo_key,
1479
- edge_source=EdgeSource.IMPORT_STATEMENT,
1480
- source_file=str(source_module.source_path),
1481
- line_number=line_no,
1482
- )
1483
- edges.append(edge)
1484
- except OSError:
1485
- pass
1486
- return edges
1487
-
1488
- def _scan_files_by_extension(
1489
- self,
1490
- root: Path,
1491
- extension: str,
1492
- max_depth: int,
1493
- ) -> Iterator[Path]:
1494
- """Recursively scan files by extension up to max_depth."""
1495
- if not root.is_dir():
1496
- return
1497
-
1498
- for entry in root.iterdir():
1499
- if entry.is_file() and entry.name.endswith(extension):
1500
- yield entry
1501
- elif entry.is_dir() and max_depth > 0 and not entry.name.startswith("."):
1502
- yield from self._scan_files_by_extension(entry, extension, max_depth - 1)
1503
-
1504
-
1505
- # ---------------------------------------------------------------------------
1506
- # TSK-113.4: Deterministic Graph Artifact Builder
1507
- # ---------------------------------------------------------------------------
1508
-
1509
-
1510
- class DependencyGraphBuilder:
1511
- """Build deterministic dependency graph and cycle reports (FR-113.3).
1512
-
1513
- Normalizes extracted structure into:
1514
- - ``project-dependency-graph.json`` with edge provenance (AC-113.3.4)
1515
- - ``project-cycle-report.json`` with deterministic cycle checks (AC-113.3.3)
1516
-
1517
- The results are authoritative for cross-repo dependency/coupling rows
1518
- (DD-113.5) - LLM reasoning may explain but must not replace graph results.
1519
- """
1520
-
1521
- def __init__(
1522
- self,
1523
- *,
1524
- topology: ProjectTopology | None = None,
1525
- ) -> None:
1526
- self.topology = topology
1527
- self._logger = get_logger(__name__, component="DependencyGraphBuilder")
1528
-
1529
- def build_graph(
1530
- self,
1531
- all_modules: list[ModuleIdentity],
1532
- all_edges: list[DependencyEdge],
1533
- project_storage_key: str,
1534
- ) -> ProjectDependencyGraph:
1535
- """Build normalized dependency graph artifact.
1536
-
1537
- Args:
1538
- all_modules: All module identities from participating repos.
1539
- all_edges: All extracted dependency edges.
1540
- project_storage_key: Project key for provenance.
1541
-
1542
- Returns:
1543
- ``ProjectDependencyGraph`` with nodes, edges, and provenance.
1544
- """
1545
- self._logger.info(
1546
- "dependency_graph_building",
1547
- project_storage_key=project_storage_key,
1548
- modules_count=len(all_modules),
1549
- edges_count=len(all_edges),
1550
- )
1551
-
1552
- # Build node index
1553
- nodes: dict[str, dict[str, Any]] = {}
1554
- for module in all_modules:
1555
- nodes[module.name] = {
1556
- "repo_key": module.repo_key,
1557
- "module_type": module.module_type,
1558
- "language": module.language,
1559
- "source_path": module.source_path,
1560
- "is_entrypoint": module.is_entrypoint,
1561
- }
1562
-
1563
- # Normalize edges to dicts with provenance
1564
- edges: list[dict[str, Any]] = []
1565
- cross_repo_edges: list[dict[str, Any]] = []
1566
-
1567
- # Sort edges deterministically (NFR-113.1)
1568
- sorted_edges = sorted(
1569
- all_edges,
1570
- key=lambda e: (e.source_module, e.target_module, e.source_repo, e.target_repo),
1571
- )
1572
-
1573
- for edge in sorted_edges:
1574
- edge_dict = {
1575
- "source": edge.source_module,
1576
- "target": edge.target_module,
1577
- "source_repo": edge.source_repo,
1578
- "target_repo": edge.target_repo,
1579
- "dependency_type": edge.dependency_type.value,
1580
- "edge_source": edge.edge_source.value,
1581
- "source_file": edge.source_file,
1582
- "line_number": edge.line_number,
1583
- "evidence_snippet": edge.evidence_snippet,
1584
- "is_cross_repo": edge.source_repo != edge.target_repo,
1585
- }
1586
- edges.append(edge_dict)
1587
-
1588
- if edge.source_repo != edge.target_repo:
1589
- cross_repo_edges.append(edge_dict)
1590
-
1591
- graph = ProjectDependencyGraph(
1592
- project_storage_key=project_storage_key,
1593
- nodes=nodes,
1594
- edges=edges,
1595
- cross_repo_edges=cross_repo_edges,
1596
- generated_at=datetime.now(UTC),
1597
- provenance={
1598
- "topology_source": "per_repo_structure_extraction",
1599
- "total_modules": len(nodes),
1600
- "total_edges": len(edges),
1601
- "cross_repo_edges": len(cross_repo_edges),
1602
- },
1603
- )
1604
-
1605
- self._logger.info(
1606
- "dependency_graph_built",
1607
- nodes_count=len(nodes),
1608
- edges_count=len(edges),
1609
- cross_repo_count=len(cross_repo_edges),
1610
- )
1611
-
1612
- return graph
1613
-
1614
- def detect_cycles(
1615
- self,
1616
- graph: ProjectDependencyGraph,
1617
- ) -> ProjectCycleReport:
1618
- """Detect circular dependencies and layering violations (AC-113.3.3).
1619
-
1620
- Uses deterministic algorithms (Tarjan's for SCCs, DFS for paths)
1621
- to ensure reproducible results (NFR-113.1).
1622
-
1623
- Args:
1624
- graph: The dependency graph to analyze.
1625
-
1626
- Returns:
1627
- ``ProjectCycleReport`` with authoritative findings.
1628
- """
1629
- self._logger.info(
1630
- "cycle_detection_starting",
1631
- project_storage_key=graph.project_storage_key,
1632
- edges_count=len(graph.edges),
1633
- )
1634
-
1635
- # Build adjacency list for cycle detection
1636
- adjacency = self._build_adjacency_list(graph)
1637
- node_to_repo = self._build_node_to_repo_map(graph)
1638
-
1639
- circular_cycles: list[dict[str, Any]] = []
1640
- forbidden_layer_violations: list[dict[str, Any]] = []
1641
- cross_repo_couplings: list[dict[str, Any]] = []
1642
-
1643
- # Detect SCCs using Tarjan's algorithm
1644
- sccs = self._tarjan_scc(adjacency)
1645
-
1646
- for scc in sccs:
1647
- if len(scc) > 1:
1648
- # Found a cycle
1649
- cycle_edges = self._extract_cycle_path(scc, graph.edges)
1650
- involved_repos = {node_to_repo.get(n, "unknown") for n in scc}
1651
-
1652
- finding = CycleFinding(
1653
- cycle_type="circular",
1654
- involved_modules=list(scc),
1655
- involved_repos=involved_repos,
1656
- path=cycle_edges,
1657
- severity="error",
1658
- description=f"Circular dependency detected involving {len(scc)} modules",
1659
- )
1660
-
1661
- circular_cycles.append(finding.to_dict())
1662
-
1663
- # Analyze cross-repo couplings
1664
- for edge_dict in graph.cross_repo_edges:
1665
- coupling_key = (
1666
- edge_dict["source_repo"],
1667
- edge_dict["target_repo"],
1668
- )
1669
- cross_repo_couplings.append(
1670
- {
1671
- "source_repo": coupling_key[0],
1672
- "target_repo": coupling_key[1],
1673
- "source_module": edge_dict["source"],
1674
- "target_module": edge_dict["target"],
1675
- "edge_source": edge_dict["edge_source"],
1676
- }
1677
- )
1678
-
1679
- report = ProjectCycleReport(
1680
- project_storage_key=graph.project_storage_key,
1681
- total_edges_analyzed=len(graph.edges),
1682
- circular_cycles=circular_cycles,
1683
- forbidden_layer_violations=forbidden_layer_violations,
1684
- cross_repo_couplings=cross_repo_couplings,
1685
- layering_summary={
1686
- "cycles_found": len(circular_cycles),
1687
- "cross_repo_couplings": len(cross_repo_couplings),
1688
- "layer_violations": len(forbidden_layer_violations),
1689
- },
1690
- generated_at=datetime.now(UTC),
1691
- graph_artifact_reference="project-dependency-graph.json",
1692
- )
1693
-
1694
- self._logger.info(
1695
- "cycle_detection_complete",
1696
- cycles_found=len(circular_cycles),
1697
- cross_repo_couplings=len(cross_repo_couplings),
1698
- )
1699
-
1700
- return report
1701
-
1702
- def _build_adjacency_list(
1703
- self,
1704
- graph: ProjectDependencyGraph,
1705
- ) -> dict[str, set[str]]:
1706
- """Build adjacency list from graph edges."""
1707
- adjacency: dict[str, set[str]] = {}
1708
- for edge in graph.edges:
1709
- source = edge["source"]
1710
- target = edge["target"]
1711
- if source not in adjacency:
1712
- adjacency[source] = set()
1713
- adjacency[source].add(target)
1714
- return adjacency
1715
-
1716
- def _build_node_to_repo_map(
1717
- self,
1718
- graph: ProjectDependencyGraph,
1719
- ) -> dict[str, str]:
1720
- """Map module names to their repo keys."""
1721
- node_to_repo: dict[str, str] = {}
1722
- for node_name, node_data in graph.nodes.items():
1723
- node_to_repo[node_name] = node_data.get("repo_key", "unknown")
1724
- return node_to_repo
1725
-
1726
- def _tarjan_scc(
1727
- self,
1728
- adjacency: dict[str, set[str]],
1729
- ) -> list[set[str]]:
1730
- """Tarjan's strongly connected components algorithm.
1731
-
1732
- Returns SCCs with size > 1 (cycles).
1733
- Deterministic implementation for reproducibility (NFR-113.1).
1734
- """
1735
- index_counter = [0]
1736
- stack: list[str] = []
1737
- lowlink: dict[str, int] = {}
1738
- index: dict[str, int] = {}
1739
- on_stack: dict[str, bool] = {}
1740
- sccs: list[set[str]] = []
1741
-
1742
- def strongconnect(v: str) -> None:
1743
- index[v] = index_counter[0]
1744
- lowlink[v] = index_counter[0]
1745
- index_counter[0] += 1
1746
- stack.append(v)
1747
- on_stack[v] = True
1748
-
1749
- for w in sorted(adjacency.get(v, set())): # Sort for determinism
1750
- if w not in index:
1751
- strongconnect(w)
1752
- lowlink[v] = min(lowlink[v], lowlink[w])
1753
- elif on_stack.get(w, False):
1754
- lowlink[v] = min(lowlink[v], index[w])
1755
-
1756
- if lowlink[v] == index[v]:
1757
- # Start a new SCC
1758
- scc: set[str] = set()
1759
- while True:
1760
- w = stack.pop()
1761
- on_stack[w] = False
1762
- scc.add(w)
1763
- if w == v:
1764
- break
1765
- if len(scc) > 1:
1766
- sccs.append(scc)
1767
-
1768
- # Process nodes in sorted order for determinism
1769
- for v in sorted(adjacency.keys()):
1770
- if v not in index:
1771
- strongconnect(v)
1772
-
1773
- return sccs
1774
-
1775
- def _extract_cycle_path(
1776
- self,
1777
- scc_nodes: set[str],
1778
- all_edges: list[dict[str, Any]],
1779
- ) -> list[DependencyEdge]:
1780
- """Extract the cycle path from SCC nodes."""
1781
- # Build subgraph of SCC
1782
- scc_edges = [e for e in all_edges if e["source"] in scc_nodes and e["target"] in scc_nodes]
1783
-
1784
- # Convert to DependencyEdge objects
1785
- path_edges = []
1786
- for e in scc_edges:
1787
- path_edges.append(
1788
- DependencyEdge(
1789
- source_module=e["source"],
1790
- target_module=e["target"],
1791
- source_repo=e["source_repo"],
1792
- target_repo=e["target_repo"],
1793
- dependency_type=DependencyType(e.get("dependency_type", "direct")),
1794
- edge_source=EdgeSource(e.get("edge_source", "import_statement")),
1795
- source_file=e.get("source_file"),
1796
- line_number=e.get("line_number"),
1797
- )
1798
- )
1799
-
1800
- return path_edges
1801
-
1802
- def write_graph_artifact(
1803
- self,
1804
- graph: ProjectDependencyGraph,
1805
- output_dir: Path,
1806
- ) -> Path:
1807
- """Persist dependency graph artifact as JSON."""
1808
- output_dir.mkdir(parents=True, exist_ok=True)
1809
- artifact_path = output_dir / "project-dependency-graph.json"
1810
-
1811
- artifact_path.write_text(
1812
- graph.model_dump_json(indent=2, exclude_none=True),
1813
- encoding="utf-8",
1814
- )
1815
-
1816
- self._logger.info(
1817
- "dependency_graph_artifact_written",
1818
- artifact_path=str(artifact_path),
1819
- )
1820
-
1821
- return artifact_path
1822
-
1823
- def write_cycle_report_artifact(
1824
- self,
1825
- report: ProjectCycleReport,
1826
- output_dir: Path,
1827
- ) -> Path:
1828
- """Persist cycle report artifact as JSON."""
1829
- output_dir.mkdir(parents=True, exist_ok=True)
1830
- artifact_path = output_dir / "project-cycle-report.json"
1831
-
1832
- artifact_path.write_text(
1833
- report.model_dump_json(indent=2, exclude_none=True),
1834
- encoding="utf-8",
1835
- )
1836
-
1837
- self._logger.info(
1838
- "cycle_report_artifact_written",
1839
- artifact_path=str(artifact_path),
1840
- )
1841
-
1842
- return artifact_path
1843
-
1844
-
1845
- # ---------------------------------------------------------------------------
1846
- # Convenience: Combined Workflow (TSK-113.2 + TSK-113.3 + TSK-113.4)
1847
- # ---------------------------------------------------------------------------
1848
-
1849
-
1850
- def build_project_topology_artifacts(
1851
- *,
1852
- state_store: Any,
1853
- project_storage_key: str,
1854
- repo_cache_root: Path,
1855
- output_dir: Path,
1856
- thread_id: str | None = None,
1857
- run_id: str | None = None,
1858
- ) -> tuple[ProjectTopology, ProjectDependencyGraph, ProjectCycleReport]:
1859
- """End-to-end workflow for building all Phase 113 project artifacts.
1860
-
1861
- This is the main entry point for TSK-113.2 through TSK-113.4, combining:
1862
- 1. Project topology resolution (FR-113.2)
1863
- 2. Per-repo structure extraction (FR-113.3)
1864
- 3. Dependency graph and cycle report generation (FR-113.3)
1865
-
1866
- Args:
1867
- state_store: Centralized state store instance.
1868
- project_storage_key: Confluence numeric page_id for the project.
1869
- repo_cache_root: Root path for repo cache.
1870
- output_dir: Directory to write artifact JSON files.
1871
- thread_id: Optional thread ID for provenance.
1872
- run_id: Optional run ID for provenance.
1873
-
1874
- Returns:
1875
- Tuple of (topology, graph, cycle_report) artifacts.
1876
-
1877
- Raises:
1878
- ValueError: If project topology cannot be resolved (AC-113.2.4).
1879
- """
1880
- resolver = ProjectTopologyResolver(
1881
- state_store=state_store,
1882
- repo_cache_root=repo_cache_root,
1883
- )
1884
-
1885
- topology = resolver.resolve_from_state(
1886
- project_storage_key=project_storage_key,
1887
- thread_id=thread_id,
1888
- run_id=run_id,
1889
- )
1890
-
1891
- resolver.write_topology_artifact(topology, output_dir)
1892
-
1893
- # Extract structure from each repo
1894
- extractor = PerRepoStructureExtractor()
1895
- all_modules: list[ModuleIdentity] = []
1896
- all_edges: list[DependencyEdge] = []
1897
-
1898
- for repo_entry in topology.repos:
1899
- repo_path = Path(repo_entry.repo_path)
1900
- modules, edges = extractor.extract_from_repo(
1901
- repo_path=repo_path,
1902
- repo_key=repo_entry.repo_key,
1903
- language=repo_entry.language,
1904
- )
1905
- all_modules.extend(modules)
1906
- all_edges.extend(edges)
1907
-
1908
- # Build graph and detect cycles
1909
- graph_builder = DependencyGraphBuilder(topology=topology)
1910
- graph = graph_builder.build_graph(
1911
- all_modules=all_modules,
1912
- all_edges=all_edges,
1913
- project_storage_key=project_storage_key,
1914
- )
1915
- graph_builder.write_graph_artifact(graph, output_dir)
1916
-
1917
- cycle_report = graph_builder.detect_cycles(graph)
1918
- graph_builder.write_cycle_report_artifact(cycle_report, output_dir)
1919
-
1920
- return topology, graph, cycle_report