@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,2226 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from datetime import UTC, datetime
4
- from typing import Any
5
-
6
- import pytest
7
- from vds_audit_orchestrator import state
8
-
9
-
10
- class _WarningCaptureLogger:
11
- def __init__(self) -> None:
12
- self.events: list[dict[str, Any]] = []
13
-
14
- def warning(self, event: str, **kwargs: Any) -> None:
15
- self.events.append({"event": event, **kwargs})
16
-
17
- def info(self, event: str, **kwargs: Any) -> None:
18
- self.events.append({"event": event, **kwargs})
19
-
20
- def debug(self, event: str, **kwargs: Any) -> None:
21
- self.events.append({"event": event, **kwargs})
22
-
23
-
24
- class _FakeRunApiStore:
25
- def __init__(self, _dsn: str) -> None:
26
- self.closed = False
27
- self.append_calls: list[dict[str, Any]] = []
28
-
29
- def append_run_event(
30
- self,
31
- *,
32
- run_id: str,
33
- event_type: str,
34
- status: str = "info",
35
- payload: dict[str, Any] | None = None,
36
- created_at: datetime | None = None,
37
- ) -> dict[str, Any]:
38
- self.append_calls.append(
39
- {
40
- "run_id": run_id,
41
- "event_type": event_type,
42
- "status": status,
43
- "payload": payload or {},
44
- "created_at": created_at,
45
- }
46
- )
47
- return {
48
- "id": 1,
49
- "run_pk": 10,
50
- "event_type": event_type,
51
- "status": status,
52
- "payload": payload or {},
53
- "created_at": created_at or datetime.now(UTC),
54
- }
55
-
56
- def list_runs(
57
- self,
58
- *,
59
- project_key: str | None = None,
60
- repo_key: str | None = None,
61
- run_type: str | None = None,
62
- status: str | None = None,
63
- limit: int | None = None,
64
- ) -> list[dict[str, Any]]:
65
- return [
66
- {
67
- "id": 7,
68
- "run_id": "thread-42",
69
- "project_key": project_key or "insurance",
70
- "repo_key": repo_key,
71
- "run_type": run_type or "workflow",
72
- "status": status or "running",
73
- "payload": {},
74
- "started_at": datetime.now(UTC),
75
- "finished_at": None,
76
- "state_version": 1,
77
- "created_at": datetime.now(UTC),
78
- "updated_at": datetime.now(UTC),
79
- }
80
- ]
81
-
82
- def show_run(self, *, run_id: str) -> dict[str, Any]:
83
- return {
84
- "id": 7,
85
- "run_id": run_id,
86
- "project_key": "insurance",
87
- "repo_key": "insurance:svc-a",
88
- "run_type": "workflow",
89
- "status": "running",
90
- "payload": {},
91
- "started_at": datetime.now(UTC),
92
- "finished_at": None,
93
- "state_version": 1,
94
- "created_at": datetime.now(UTC),
95
- "updated_at": datetime.now(UTC),
96
- }
97
-
98
- def list_run_events(self, *, run_id: str, limit: int | None = None) -> list[dict[str, Any]]:
99
- return [
100
- {
101
- "id": 21,
102
- "run_pk": 7,
103
- "event_type": "run_started",
104
- "status": "info",
105
- "payload": {"run_id": run_id, "limit": limit},
106
- "created_at": datetime.now(UTC),
107
- }
108
- ]
109
-
110
- def upsert_evidence_snapshot(
111
- self,
112
- *,
113
- snapshot_key: str,
114
- project_key: str,
115
- repo_key: str | None = None,
116
- content_hash: str,
117
- payload: dict[str, Any] | None = None,
118
- ) -> dict[str, Any]:
119
- return {
120
- "id": 88,
121
- "snapshot_key": snapshot_key,
122
- "project_key": project_key,
123
- "repo_key": repo_key,
124
- "content_hash": content_hash,
125
- "payload": payload or {},
126
- "reuse_count": 0,
127
- "first_seen_at": datetime.now(UTC),
128
- "last_reused_at": None,
129
- "created_at": datetime.now(UTC),
130
- "updated_at": datetime.now(UTC),
131
- }
132
-
133
- def list_evidence_snapshots(self, *, project_key: str, limit: int | None = None) -> list[dict[str, Any]]:
134
- return [
135
- {
136
- "id": 88,
137
- "snapshot_key": "insurance:svc-a:sha256-1",
138
- "project_key": project_key,
139
- "repo_key": "insurance:svc-a",
140
- "content_hash": "sha256-1",
141
- "payload": {"limit": limit},
142
- "reuse_count": 1,
143
- "first_seen_at": datetime.now(UTC),
144
- "last_reused_at": datetime.now(UTC),
145
- "created_at": datetime.now(UTC),
146
- "updated_at": datetime.now(UTC),
147
- }
148
- ]
149
-
150
- def compact_run_events(self, *, retention_days: int, dry_run: bool = True) -> dict[str, Any]:
151
- return {
152
- "retention_days": retention_days,
153
- "dry_run": dry_run,
154
- "candidate_count": 3,
155
- "deleted_count": 0 if dry_run else 3,
156
- }
157
-
158
- def close(self) -> None:
159
- self.closed = True
160
-
161
-
162
- @pytest.fixture(autouse=True)
163
- def _stub_project_document_count(monkeypatch) -> None:
164
- class _FailingStateStore:
165
- def __init__(self, _dsn: str) -> None:
166
- raise ConnectionError("state unavailable in unit test")
167
-
168
- monkeypatch.setattr(state, "PostgresStateStore", _FailingStateStore)
169
- monkeypatch.setattr(state, "_resolve_project_document_count", lambda **_kwargs: None)
170
-
171
-
172
- def test_append_run_event_rejects_invalid_event_type_public_api(monkeypatch) -> None:
173
- store = _FakeRunApiStore("postgresql://state")
174
- monkeypatch.setattr(state, "PostgresStateStore", lambda _dsn: store)
175
-
176
- try:
177
- state.append_run_event(
178
- state_dsn="postgresql://state",
179
- run_id="thread-42",
180
- event_type="phase.started",
181
- payload={"phase": 42},
182
- )
183
- raise AssertionError("Expected ValueError for unsupported event_type")
184
- except ValueError as exc:
185
- assert "Invalid event_type 'phase.started'" in str(exc)
186
-
187
- assert store.append_calls == []
188
-
189
-
190
- def test_append_run_event_accepts_allowed_event_type_public_api(monkeypatch) -> None:
191
- store = _FakeRunApiStore("postgresql://state")
192
- monkeypatch.setattr(state, "PostgresStateStore", lambda _dsn: store)
193
-
194
- event = state.append_run_event(
195
- state_dsn="postgresql://state",
196
- run_id="thread-42",
197
- event_type="run_started",
198
- payload={"phase": 42},
199
- )
200
-
201
- assert event["event_type"] == "run_started"
202
- assert store.append_calls[0]["event_type"] == "run_started"
203
-
204
-
205
- def test_list_runs_and_show_run_include_events(monkeypatch) -> None:
206
- store = _FakeRunApiStore("postgresql://state")
207
- monkeypatch.setattr(state, "PostgresStateStore", lambda _dsn: store)
208
-
209
- runs = state.list_runs(
210
- state_dsn="postgresql://state",
211
- project_key="insurance",
212
- status="running",
213
- limit=5,
214
- )
215
- shown = state.show_run(
216
- state_dsn="postgresql://state",
217
- run_id="thread-42",
218
- include_events=True,
219
- events_limit=3,
220
- )
221
-
222
- assert runs[0]["project_key"] == "insurance"
223
- assert shown is not None
224
- assert shown["run"]["run_id"] == "thread-42"
225
- assert shown["events"][0]["event_type"] == "run_started"
226
-
227
-
228
- def test_upsert_and_list_evidence_snapshots_public_api(monkeypatch) -> None:
229
- store = _FakeRunApiStore("postgresql://state")
230
- monkeypatch.setattr(state, "PostgresStateStore", lambda _dsn: store)
231
-
232
- row = state.upsert_evidence_snapshot(
233
- state_dsn="postgresql://state",
234
- snapshot_key="insurance:svc-a:sha256-1",
235
- project_key="insurance",
236
- repo_key="insurance:svc-a",
237
- content_hash="sha256-1",
238
- payload={"evidence_dir": "/tmp/evidence"},
239
- )
240
- rows = state.list_evidence_snapshots(
241
- state_dsn="postgresql://state",
242
- project_key="insurance",
243
- limit=2,
244
- )
245
-
246
- assert row["snapshot_key"] == "insurance:svc-a:sha256-1"
247
- assert rows[0]["project_key"] == "insurance"
248
- assert rows[0]["payload"]["limit"] == 2
249
-
250
-
251
- def test_compact_public_api(monkeypatch) -> None:
252
- store = _FakeRunApiStore("postgresql://state")
253
- monkeypatch.setattr(state, "PostgresStateStore", lambda _dsn: store)
254
-
255
- preview = state.compact(state_dsn="postgresql://state", retention_days=30, dry_run=True)
256
- applied = state.compact(state_dsn="postgresql://state", retention_days=30, dry_run=False)
257
-
258
- assert preview["candidate_count"] == 3
259
- assert preview["deleted_count"] == 0
260
- assert applied["deleted_count"] == 3
261
-
262
-
263
- def test_readiness_requires_confluence_sync_artifacts(monkeypatch, tmp_path) -> None:
264
- repo_path = tmp_path / "repo-ready"
265
- repo_path.mkdir(parents=True)
266
-
267
- monkeypatch.setattr(
268
- state,
269
- "load_manifest_payload",
270
- lambda *, state_dsn: {
271
- "projects": [
272
- {
273
- "project_name": "Insurance Core",
274
- "project_storage_key": "123",
275
- "page_id": "123",
276
- "checklist_profiles": [
277
- {
278
- "profile_id": "default",
279
- "display_name": "Default Checklist",
280
- "page_ids": ["88722450"],
281
- "priority": 0,
282
- }
283
- ],
284
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
285
- "sync_metadata": {
286
- "artifacts": [
287
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
288
- ]
289
- },
290
- "bitbucket": [
291
- {
292
- "repo_slug": "repo-ready",
293
- "repo_url": "https://bitbucket.example.com/projects/INS/repos/repo-ready",
294
- "local_code_path": str(repo_path),
295
- "status": "not_modified",
296
- }
297
- ],
298
- }
299
- ]
300
- },
301
- )
302
- monkeypatch.setattr(
303
- state,
304
- "list_retrieval_snapshots",
305
- lambda **kwargs: (
306
- [
307
- {
308
- "snapshot_key": "insurance-core:project_corpus",
309
- "payload": {
310
- "diagnostics": {
311
- "docs_chunk_ready": True,
312
- "code_chunk_ready": True,
313
- "docs_chunk_count": 7,
314
- "code_chunk_count": 5,
315
- }
316
- },
317
- }
318
- ]
319
- if not kwargs.get("repo_key")
320
- else [
321
- {
322
- "snapshot_key": "insurance-core:repo-ready:project_corpus",
323
- "payload": {
324
- "diagnostics": {
325
- "docs_chunk_ready": True,
326
- "code_chunk_ready": True,
327
- "docs_chunk_count": 7,
328
- "code_chunk_count": 3,
329
- }
330
- },
331
- }
332
- ]
333
- ),
334
- )
335
-
336
- result = state.readiness(
337
- state_dsn="postgresql://state",
338
- project_identifier="123",
339
- repo_identifier="repo-ready",
340
- )
341
-
342
- assert result["summary"]["ready"] is True
343
- assert result["ready"] is True
344
- assert result["docs_chunk_ready"] is True
345
- assert result["code_chunk_ready"] is True
346
- assert result["summary"]["docs_chunk_ready"] is True
347
- assert result["summary"]["code_chunk_ready"] is True
348
- assert result["project"]["checks"]["has_confluence_sync_artifacts"] is True
349
- assert result["project"]["checks"]["has_ready_repo_entries"] is True
350
- assert result["repo"]["ready"] is True
351
- assert result["hierarchy_ready"] is True
352
- assert result["department_count"] == 0
353
- assert result["project_count"] == 1
354
- assert result["bitbucket_project_count"] == 1
355
- assert result["repo_count"] == 1
356
- assert result["summary"]["hierarchy_ready"] is True
357
- assert result["hierarchy"]["anomaly_count"] == 0
358
- assert result["hierarchy"]["anomalies"]["repos_missing_bitbucket_project_key"]["count"] == 0
359
- assert len(result["hierarchy"]["anomalies"]["repos_missing_bitbucket_project_key"]["samples"]) == 0
360
- checklist_diag = result["checklist_profile_diagnostics"]
361
- assert checklist_diag["profiles_total"] == 1
362
- assert checklist_diag["profiles_ready"] == 1
363
- assert checklist_diag["selected_profile"] == "default"
364
- assert checklist_diag["selected_profile_details"]["profile_id"] == "default"
365
- assert checklist_diag["selected_profile_details"]["page_ids"] == ["88722450"]
366
- assert checklist_diag["selected_page_count"] == 1
367
- assert checklist_diag["selected_page_ids"] == ["88722450"]
368
- assert checklist_diag["failure_reasons"] == []
369
-
370
-
371
- def test_readiness_project_scope_uses_persisted_chunk_counts_not_snapshot_payload(monkeypatch, tmp_path) -> None:
372
- repo_path = tmp_path / "repo-ready"
373
- repo_path.mkdir(parents=True)
374
-
375
- class _PersistedCountStore:
376
- def __init__(self, _dsn: str) -> None:
377
- pass
378
-
379
- def get_snapshot_chunk_counts(self, *, snapshot_id: int) -> dict[str, int]:
380
- if snapshot_id == 101:
381
- # Project-scope code docs are deduplicated from persisted corpus.
382
- return {"docs_chunk_count": 8, "code_chunk_count": 0}
383
- return {"docs_chunk_count": 0, "code_chunk_count": 0}
384
-
385
- def get_project_repo_scoped_code_chunk_count(self, *, project_key: str, project_id: int) -> int:
386
- assert project_key == "123"
387
- assert project_id == 1
388
- return 24
389
-
390
- def resolve_project_id(self, _project_key: str) -> int:
391
- return 1
392
-
393
- def corpus_status_diagnostics(self, *, project_key: str, project_id: int) -> dict[str, Any]:
394
- return {
395
- "total_chunks": 8,
396
- "artifact_chunks": 0,
397
- "contamination_ratio": 0.0,
398
- "metadata_completeness_ratio": 1.0,
399
- "health_status": "clean",
400
- }
401
-
402
- def _snapshot_project_filter(self, *, project_id: int, project_key: str) -> tuple[str, tuple[Any, ...]]:
403
- raise ConnectionError("infra diagnostics unavailable in unit test")
404
-
405
- def close(self) -> None:
406
- return None
407
-
408
- monkeypatch.setattr(state, "PostgresStateStore", _PersistedCountStore)
409
- monkeypatch.setattr(state, "_resolve_project_document_count", lambda **_kwargs: 8)
410
-
411
- monkeypatch.setattr(
412
- state,
413
- "load_manifest_payload",
414
- lambda *, state_dsn: {
415
- "projects": [
416
- {
417
- "project_name": "Insurance Core",
418
- "project_storage_key": "123",
419
- "page_id": "123",
420
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
421
- "sync_metadata": {
422
- "artifacts": [
423
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
424
- ]
425
- },
426
- "bitbucket": [
427
- {
428
- "repo_slug": "repo-ready",
429
- "local_code_path": str(repo_path),
430
- "status": "not_modified",
431
- }
432
- ],
433
- }
434
- ]
435
- },
436
- )
437
- monkeypatch.setattr(
438
- state,
439
- "list_retrieval_snapshots",
440
- lambda **_kwargs: [
441
- {
442
- "id": 101,
443
- "snapshot_key": "insurance-core:project_corpus",
444
- "repo_key": None,
445
- "state_version": 30,
446
- "payload": {
447
- "diagnostics": {
448
- "docs_chunk_ready": True,
449
- "code_chunk_ready": True,
450
- "docs_chunk_count": 8,
451
- "code_chunk_count": 77,
452
- }
453
- },
454
- }
455
- ],
456
- )
457
-
458
- result = state.readiness(
459
- state_dsn="postgresql://state",
460
- project_identifier="123",
461
- )
462
-
463
- assert result["docs_chunk_count"] == 8
464
- assert result["docs_chunk_ready"] is True
465
- assert result["code_chunk_count"] == 24
466
- assert result["code_chunk_ready"] is True
467
- assert result["ready"] is True
468
- assert result["summary"]["ready"] is True
469
-
470
-
471
- def test_readiness_repo_scope_does_not_use_project_aggregate_code_chunks(monkeypatch, tmp_path) -> None:
472
- repo_path = tmp_path / "repo-ready"
473
- repo_path.mkdir(parents=True)
474
-
475
- class _Cursor:
476
- def __init__(self) -> None:
477
- self._query: str = ""
478
-
479
- def __enter__(self) -> _Cursor:
480
- return self
481
-
482
- def __exit__(self, exc_type: Any, exc: Any, tb: Any) -> None:
483
- return None
484
-
485
- def execute(self, query: str, _params: Any = None) -> None:
486
- self._query = query
487
-
488
- def fetchone(self) -> dict[str, Any]:
489
- if "FROM audit_state.repos AS repos" in self._query:
490
- return {"id": 99}
491
- return {}
492
-
493
- def fetchall(self) -> list[dict[str, Any]]:
494
- if "SELECT id FROM audit_state.retrieval_snapshots rs" in self._query:
495
- return [{"id": 202}]
496
- if "SELECT DISTINCT cd.source_uri" in self._query:
497
- return []
498
- return []
499
-
500
- class _Conn:
501
- def cursor(self) -> _Cursor:
502
- return _Cursor()
503
-
504
- class _PersistedCountStore:
505
- def __init__(self, _dsn: str) -> None:
506
- self._conn = _Conn()
507
-
508
- def get_snapshot_chunk_counts(self, *, snapshot_id: int) -> dict[str, int]:
509
- if snapshot_id == 101:
510
- return {"docs_chunk_count": 8, "code_chunk_count": 0}
511
- if snapshot_id == 202:
512
- return {"docs_chunk_count": 2, "code_chunk_count": 0}
513
- return {"docs_chunk_count": 0, "code_chunk_count": 0}
514
-
515
- def get_project_repo_scoped_code_chunk_count(self, *, project_key: str, project_id: int) -> int:
516
- # Should not affect repo-scoped readiness.
517
- assert project_key == "123"
518
- assert project_id == 1
519
- return 24
520
-
521
- def resolve_project_id(self, _project_key: str) -> int:
522
- return 1
523
-
524
- def corpus_status_diagnostics(self, *, project_key: str, project_id: int) -> dict[str, Any]:
525
- return {
526
- "total_chunks": 10,
527
- "artifact_chunks": 0,
528
- "contamination_ratio": 0.0,
529
- "metadata_completeness_ratio": 1.0,
530
- "health_status": "clean",
531
- }
532
-
533
- def _snapshot_project_filter(self, *, project_id: int, project_key: str) -> tuple[str, tuple[Any, ...]]:
534
- raise ConnectionError("infra diagnostics unavailable in unit test")
535
-
536
- def close(self) -> None:
537
- return None
538
-
539
- monkeypatch.setattr(state, "PostgresStateStore", _PersistedCountStore)
540
- monkeypatch.setattr(state, "_resolve_project_document_count", lambda **_kwargs: 8)
541
- monkeypatch.setattr(
542
- state,
543
- "load_manifest_payload",
544
- lambda *, state_dsn: {
545
- "projects": [
546
- {
547
- "project_name": "Insurance Core",
548
- "project_storage_key": "123",
549
- "page_id": "123",
550
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
551
- "sync_metadata": {
552
- "artifacts": [
553
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
554
- ]
555
- },
556
- "bitbucket": [
557
- {
558
- "repo_slug": "repo-ready",
559
- "local_code_path": str(repo_path),
560
- "status": "not_modified",
561
- }
562
- ],
563
- }
564
- ]
565
- },
566
- )
567
-
568
- def _list_retrieval_snapshots(**kwargs: Any) -> list[dict[str, Any]]:
569
- repo_key = kwargs.get("repo_key")
570
- if repo_key:
571
- return [
572
- {
573
- "id": 202,
574
- "snapshot_key": "insurance-core:repo-ready",
575
- "repo_key": "repo-ready",
576
- "state_version": 31,
577
- "payload": {
578
- "diagnostics": {
579
- "docs_chunk_ready": True,
580
- "code_chunk_ready": True,
581
- "docs_chunk_count": 2,
582
- "code_chunk_count": 11,
583
- }
584
- },
585
- }
586
- ]
587
- return [
588
- {
589
- "id": 101,
590
- "snapshot_key": "insurance-core:project_corpus",
591
- "repo_key": None,
592
- "state_version": 30,
593
- "payload": {
594
- "diagnostics": {
595
- "docs_chunk_ready": True,
596
- "code_chunk_ready": True,
597
- "docs_chunk_count": 8,
598
- "code_chunk_count": 77,
599
- }
600
- },
601
- }
602
- ]
603
-
604
- monkeypatch.setattr(state, "list_retrieval_snapshots", _list_retrieval_snapshots)
605
-
606
- result = state.readiness(
607
- state_dsn="postgresql://state",
608
- project_identifier="123",
609
- repo_identifier="repo-ready",
610
- )
611
-
612
- assert result["docs_chunk_count"] == 10
613
- assert result["docs_chunk_ready"] is True
614
- assert result["code_chunk_count"] == 0
615
- assert result["code_chunk_ready"] is False
616
- assert result["ready"] is False
617
- assert result["summary"]["ready"] is False
618
-
619
-
620
- def test_readiness_hierarchy_diagnostics_reports_anomalies_with_bounded_samples(monkeypatch, tmp_path) -> None:
621
- duplicate_repo_a = tmp_path / "repos" / "duplicate-a"
622
- duplicate_repo_b = tmp_path / "repos" / "duplicate-b"
623
- duplicate_repo_a.mkdir(parents=True)
624
- duplicate_repo_b.mkdir(parents=True)
625
-
626
- missing_entries: list[dict[str, Any]] = []
627
- for idx in range(7):
628
- missing_path = tmp_path / "repos" / f"missing-{idx}"
629
- missing_path.mkdir(parents=True)
630
- missing_entries.append(
631
- {
632
- "repo_slug": f"missing-{idx}",
633
- "repo_url": f"https://bitbucket.example.com/repos/missing-{idx}",
634
- "local_code_path": str(missing_path),
635
- "status": "not_modified",
636
- }
637
- )
638
-
639
- monkeypatch.setattr(
640
- state,
641
- "load_manifest_payload",
642
- lambda *, state_dsn: {
643
- "projects": [
644
- {
645
- "project_name": "Shared Selector",
646
- "project_storage_key": "123",
647
- "page_id": "123",
648
- "department": "Claims",
649
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
650
- "sync_metadata": {
651
- "artifacts": [
652
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
653
- ]
654
- },
655
- "bitbucket": [
656
- {
657
- "repo_slug": "payments-api",
658
- "bitbucket_project_key": "INS",
659
- "local_code_path": str(duplicate_repo_a),
660
- "status": "not_modified",
661
- },
662
- *missing_entries,
663
- ],
664
- },
665
- {
666
- "project_name": "Shared Selector",
667
- "project_storage_key": "124",
668
- "page_id": "124",
669
- "department": "Fraud",
670
- "documents": [{"page_id": "2", "title": "Overview", "source": "confluence"}],
671
- "sync_metadata": {
672
- "artifacts": [
673
- {"resource_type": "confluence_page", "resource_id": "2", "status": "not_modified"}
674
- ]
675
- },
676
- "bitbucket": [
677
- {
678
- "repo_slug": "payments-api",
679
- "bitbucket_project_key": "INS",
680
- "local_code_path": str(duplicate_repo_b),
681
- "status": "not_modified",
682
- }
683
- ],
684
- },
685
- ]
686
- },
687
- )
688
- # Phase 94 (AC-262.4): dual-source gating requires chunk readiness in snapshots
689
- _corpus_snapshot = {
690
- "snapshot_key": "insurance-core:project_corpus",
691
- "payload": {
692
- "diagnostics": {
693
- "docs_chunk_count": 10,
694
- "code_chunk_count": 5,
695
- "docs_chunk_ready": True,
696
- "code_chunk_ready": True,
697
- }
698
- },
699
- "state_version": 1,
700
- }
701
- monkeypatch.setattr(state, "list_retrieval_snapshots", lambda **_kwargs: [_corpus_snapshot])
702
-
703
- result = state.readiness(
704
- state_dsn="postgresql://state",
705
- project_identifier="123",
706
- )
707
-
708
- assert result["ready"] is True
709
- assert result["hierarchy_ready"] is False
710
- assert result["department_count"] == 1
711
- assert result["project_count"] == 1
712
- assert result["bitbucket_project_count"] == 1
713
- assert result["repo_count"] == 8
714
-
715
- anomalies = result["hierarchy"]["anomalies"]
716
- assert anomalies["repos_missing_bitbucket_project_key"]["count"] == 7
717
- assert len(anomalies["repos_missing_bitbucket_project_key"]["samples"]) == 5
718
- assert anomalies["duplicate_repo_identities"]["count"] == 0
719
- assert len(anomalies["duplicate_repo_identities"]["samples"]) == 0
720
- assert anomalies["project_selector_anomalies"]["count"] == 0
721
- assert len(anomalies["project_selector_anomalies"]["samples"]) == 0
722
-
723
-
724
- def test_hierarchy_diagnostics_extracts_repo_identity_from_clone_url() -> None:
725
- diagnostics = state._hierarchy_diagnostics(
726
- manifest_payload={
727
- "projects": [
728
- {
729
- "project_storage_key": "2001",
730
- "page_id": "2001",
731
- "bitbucket": [
732
- {
733
- "clone_url": "https://bitbucket.example.com/scm/INS/payments-api.git",
734
- }
735
- ],
736
- },
737
- {
738
- "project_storage_key": "2002",
739
- "page_id": "2002",
740
- "bitbucket": [
741
- {
742
- "clone_url": "https://bitbucket.example.com/scm/INS/payments-api.git",
743
- }
744
- ],
745
- },
746
- ]
747
- }
748
- )
749
-
750
- anomalies = diagnostics["anomalies"]
751
- assert anomalies["repos_missing_bitbucket_project_key"]["count"] == 0
752
- assert anomalies["duplicate_repo_identities"]["count"] == 1
753
-
754
-
755
- def test_hierarchy_diagnostics_treats_local_bitbucket_placeholder_as_missing() -> None:
756
- diagnostics = state._hierarchy_diagnostics(
757
- manifest_payload={
758
- "projects": [
759
- {
760
- "project_storage_key": "88710011",
761
- "page_id": "88710011",
762
- "bitbucket": [
763
- {
764
- "repo_slug": "payments-api",
765
- "repo_url": "https://bitbucket.local/projects/local/repos/payments-api",
766
- }
767
- ],
768
- }
769
- ]
770
- }
771
- )
772
-
773
- anomalies = diagnostics["anomalies"]
774
- assert anomalies["repos_missing_bitbucket_project_key"]["count"] == 0
775
- assert diagnostics["anomaly_count"] == 0
776
-
777
-
778
- def test_hierarchy_diagnostics_ignores_synthetic_project_repo_entries() -> None:
779
- diagnostics = state._hierarchy_diagnostics(
780
- manifest_payload={
781
- "projects": [
782
- {
783
- "project_storage_key": "88718940",
784
- "page_id": "88718940",
785
- "bitbucket": [
786
- {
787
- "repo_storage_key": "88718940:project",
788
- "repo_slug": "project",
789
- "repo_url": "https://bitbucket.local/projects/local/repos/project",
790
- },
791
- {
792
- "repo_storage_key": "cpm-campaign-service",
793
- "repo_slug": "campaign-service",
794
- "bitbucket_project_key": "CPM",
795
- "repo_url": "http://bitbucket.digital.vn/scm/cpm/campaign-service.git",
796
- },
797
- ],
798
- }
799
- ]
800
- }
801
- )
802
-
803
- assert diagnostics["repo_count"] == 1
804
- assert diagnostics["anomaly_count"] == 0
805
-
806
-
807
- def test_build_registry_payload_excludes_synthetic_project_repo_rows() -> None:
808
- snapshot = {
809
- "projects": [
810
- {
811
- "id": 1,
812
- "project_key": "88718940",
813
- "display_name": "CEP",
814
- "metadata": {
815
- "page_id": "88718940",
816
- "project_storage_key": "88718940",
817
- "project_name": "CEP",
818
- },
819
- }
820
- ],
821
- "repos": [
822
- {
823
- "id": 10,
824
- "project_id": 1,
825
- "repo_key": "88718940:project",
826
- "repo_url": "",
827
- "default_branch": "main",
828
- "metadata": {"repo_slug": "project"},
829
- },
830
- {
831
- "id": 11,
832
- "project_id": 1,
833
- "repo_key": "cpm-campaign-service",
834
- "repo_url": "http://bitbucket.digital.vn/scm/cpm/campaign-service.git",
835
- "default_branch": "main",
836
- "metadata": {"repo_slug": "campaign-service"},
837
- },
838
- ],
839
- "artifacts": [],
840
- "project_preparation": [],
841
- "repo_preparation": [],
842
- "departments": [],
843
- "bitbucket_projects": [],
844
- }
845
-
846
- payload = state._build_registry_payload_from_snapshot(snapshot)
847
- project_payload = payload["projects"][0]
848
- repos = project_payload.get("bitbucket") or []
849
-
850
- assert len(repos) == 1
851
- assert repos[0]["repo_storage_key"] == "cpm-campaign-service"
852
- assert not str(repos[0]["repo_storage_key"]).endswith(":project")
853
-
854
-
855
- def test_repo_storage_key_from_entry_normalizes_redundant_git_suffix() -> None:
856
- key = state._repo_storage_key_from_entry(
857
- project_key="3-2-1-4-mini-app",
858
- entry={
859
- "repo_url": "http://bitbucket.digital.vn/scm/webappv2/miniapp-be.git.git",
860
- "bitbucket_project_key": "WEBAPPV2",
861
- },
862
- )
863
-
864
- assert key == "webappv2-miniapp-be"
865
-
866
-
867
- def test_repo_storage_key_from_entry_uses_canonical_name_fallback() -> None:
868
- key = state._repo_storage_key_from_entry(
869
- project_key="test-project",
870
- entry={
871
- "name": "Dự Án Quản Lý",
872
- "bitbucket_project_key": "PR",
873
- },
874
- )
875
-
876
- assert key == "pr-du-an-quan-ly"
877
-
878
-
879
- def test_repo_execution_payload_uses_canonical_repo_slug_fallback() -> None:
880
- payload = state._repo_execution_payload(
881
- project_key="test-project",
882
- entry={
883
- "name": "Dự Án Quản Lý",
884
- "local_code_path": "/tmp/repo",
885
- },
886
- )
887
-
888
- assert payload["repo_slug"] == "du-an-quan-ly"
889
-
890
-
891
- def test_readiness_prefers_project_corpus_snapshot_over_smoke_probe(monkeypatch, tmp_path) -> None:
892
- repo_path = tmp_path / "repo-ready"
893
- repo_path.mkdir(parents=True)
894
-
895
- monkeypatch.setattr(
896
- state,
897
- "load_manifest_payload",
898
- lambda *, state_dsn: {
899
- "projects": [
900
- {
901
- "project_name": "Insurance Core",
902
- "project_storage_key": "123",
903
- "page_id": "123",
904
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
905
- "sync_metadata": {
906
- "artifacts": [
907
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
908
- ]
909
- },
910
- "bitbucket": [
911
- {
912
- "repo_slug": "repo-ready",
913
- "local_code_path": str(repo_path),
914
- "status": "not_modified",
915
- }
916
- ],
917
- }
918
- ]
919
- },
920
- )
921
- monkeypatch.setattr(
922
- state,
923
- "list_retrieval_snapshots",
924
- lambda **kwargs: (
925
- [
926
- {
927
- "snapshot_key": "insurance-core:smoke_probe",
928
- "state_version": 100,
929
- "payload": {
930
- "diagnostics": {
931
- "docs_chunk_ready": True,
932
- "code_chunk_ready": False,
933
- "docs_chunk_count": 1,
934
- "code_chunk_count": 0,
935
- }
936
- },
937
- },
938
- {
939
- "snapshot_key": "insurance-core:project_corpus",
940
- "repo_key": None,
941
- "state_version": 10,
942
- "payload": {
943
- "diagnostics": {
944
- "docs_chunk_ready": True,
945
- "code_chunk_ready": True,
946
- "docs_chunk_count": 5044,
947
- "code_chunk_count": 537,
948
- }
949
- },
950
- },
951
- {
952
- "snapshot_key": "insurance-core:repo-ready:project_corpus",
953
- "repo_key": "insurance-core:repo-ready",
954
- "state_version": 50,
955
- "payload": {
956
- "diagnostics": {
957
- "docs_chunk_ready": True,
958
- "code_chunk_ready": True,
959
- "docs_chunk_count": 6000,
960
- "code_chunk_count": 6000,
961
- }
962
- },
963
- },
964
- ]
965
- if not kwargs.get("repo_key")
966
- else []
967
- ),
968
- )
969
-
970
- result = state.readiness(
971
- state_dsn="postgresql://state",
972
- project_identifier="123",
973
- )
974
-
975
- assert result["docs_chunk_count"] == 5044
976
- assert result["code_chunk_count"] == 537
977
- assert result["docs_chunk_ready"] is True
978
- assert result["code_chunk_ready"] is True
979
- assert result["retrieval"]["latest_project_snapshot"]["snapshot_key"] == "insurance-core:project_corpus"
980
-
981
-
982
- def test_readiness_accepts_snapshot_payload_top_level_chunk_diagnostics(monkeypatch, tmp_path) -> None:
983
- repo_path = tmp_path / "repo-ready"
984
- repo_path.mkdir(parents=True)
985
-
986
- monkeypatch.setattr(
987
- state,
988
- "load_manifest_payload",
989
- lambda *, state_dsn: {
990
- "projects": [
991
- {
992
- "project_name": "Insurance Core",
993
- "project_storage_key": "123",
994
- "page_id": "123",
995
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
996
- "sync_metadata": {
997
- "artifacts": [
998
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
999
- ]
1000
- },
1001
- "bitbucket": [
1002
- {
1003
- "repo_slug": "repo-ready",
1004
- "local_code_path": str(repo_path),
1005
- "status": "not_modified",
1006
- }
1007
- ],
1008
- }
1009
- ]
1010
- },
1011
- )
1012
- monkeypatch.setattr(
1013
- state,
1014
- "list_retrieval_snapshots",
1015
- lambda **kwargs: (
1016
- []
1017
- if kwargs.get("repo_key")
1018
- else [
1019
- {
1020
- "snapshot_key": "insurance-core:project_corpus",
1021
- "payload": {
1022
- "docs_chunk_ready": True,
1023
- "code_chunk_ready": True,
1024
- "docs_chunk_count": 11,
1025
- "code_chunk_count": 9,
1026
- },
1027
- }
1028
- ]
1029
- ),
1030
- )
1031
-
1032
- result = state.readiness(
1033
- state_dsn="postgresql://state",
1034
- project_identifier="123",
1035
- repo_identifier="repo-ready",
1036
- )
1037
-
1038
- assert result["ready"] is True
1039
- assert result["docs_chunk_ready"] is True
1040
- assert result["code_chunk_ready"] is True
1041
- assert result["docs_chunk_count"] == 11
1042
- assert result["code_chunk_count"] == 9
1043
-
1044
-
1045
- def test_readiness_fails_without_confluence_sync_artifacts(monkeypatch, tmp_path) -> None:
1046
- repo_path = tmp_path / "repo-ready"
1047
- repo_path.mkdir(parents=True)
1048
-
1049
- monkeypatch.setattr(
1050
- state,
1051
- "load_manifest_payload",
1052
- lambda *, state_dsn: {
1053
- "projects": [
1054
- {
1055
- "project_name": "Insurance Core",
1056
- "project_storage_key": "123",
1057
- "page_id": "123",
1058
- "documents": [{"page_id": "1", "title": "Overview", "source": "filesystem"}],
1059
- "bitbucket": [
1060
- {
1061
- "repo_slug": "repo-ready",
1062
- "local_code_path": str(repo_path),
1063
- "status": "not_modified",
1064
- }
1065
- ],
1066
- }
1067
- ]
1068
- },
1069
- )
1070
- monkeypatch.setattr(state, "list_retrieval_snapshots", lambda **_kwargs: [])
1071
-
1072
- result = state.readiness(
1073
- state_dsn="postgresql://state",
1074
- project_identifier="123",
1075
- repo_identifier="repo-ready",
1076
- )
1077
-
1078
- assert result["summary"]["ready"] is False
1079
- assert result["project"]["checks"]["has_confluence_sync_artifacts"] is False
1080
-
1081
-
1082
- def test_readiness_repo_scope_reports_project_level_docs_info_message(monkeypatch, tmp_path) -> None:
1083
- repo_path = tmp_path / "repo-ready"
1084
- repo_path.mkdir(parents=True)
1085
-
1086
- class _FailingDiagnosticsStore:
1087
- def __init__(self, _dsn: str) -> None:
1088
- raise ConnectionError("state diagnostics unavailable")
1089
-
1090
- monkeypatch.setattr(state, "PostgresStateStore", _FailingDiagnosticsStore)
1091
-
1092
- monkeypatch.setattr(
1093
- state,
1094
- "load_manifest_payload",
1095
- lambda *, state_dsn: {
1096
- "projects": [
1097
- {
1098
- "project_name": "Insurance Core",
1099
- "project_storage_key": "123",
1100
- "page_id": "123",
1101
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
1102
- "sync_metadata": {
1103
- "artifacts": [
1104
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
1105
- ]
1106
- },
1107
- "bitbucket": [
1108
- {
1109
- "repo_slug": "repo-ready",
1110
- "local_code_path": str(repo_path),
1111
- "status": "not_modified",
1112
- }
1113
- ],
1114
- }
1115
- ]
1116
- },
1117
- )
1118
- monkeypatch.setattr(
1119
- state,
1120
- "list_retrieval_snapshots",
1121
- lambda **kwargs: (
1122
- []
1123
- if kwargs.get("repo_key")
1124
- else [
1125
- {
1126
- "snapshot_key": "insurance-core:project_corpus",
1127
- "repo_key": None,
1128
- "state_version": 10,
1129
- "payload": {
1130
- "diagnostics": {
1131
- "docs_chunk_ready": True,
1132
- "code_chunk_ready": True,
1133
- "docs_chunk_count": 21,
1134
- "code_chunk_count": 5,
1135
- }
1136
- },
1137
- }
1138
- ]
1139
- ),
1140
- )
1141
-
1142
- result = state.readiness(
1143
- state_dsn="postgresql://state",
1144
- project_identifier="123",
1145
- repo_identifier="repo-ready",
1146
- )
1147
-
1148
- assert result["ready"] is True
1149
- assert result["retrieval"]["latest_selected_repo_snapshot"] is None
1150
- assert result["retrieval"]["latest_project_snapshot"]["snapshot_key"] == "insurance-core:project_corpus"
1151
- assert result["info_messages"] == [
1152
- "Project-level docs chunks are available, but selected repo has no repo-scoped docs chunks; retrieval uses project-level docs."
1153
- ]
1154
- assert result["summary"]["info_messages"] == result["info_messages"]
1155
-
1156
-
1157
- def test_readiness_repo_scope_uses_shared_project_docs_when_repo_docs_missing(monkeypatch, tmp_path) -> None:
1158
- repo_path = tmp_path / "repo-ready"
1159
- repo_path.mkdir(parents=True)
1160
-
1161
- class _FailingDiagnosticsStore:
1162
- def __init__(self, _dsn: str) -> None:
1163
- raise ConnectionError("state diagnostics unavailable")
1164
-
1165
- monkeypatch.setattr(state, "PostgresStateStore", _FailingDiagnosticsStore)
1166
-
1167
- monkeypatch.setattr(
1168
- state,
1169
- "load_manifest_payload",
1170
- lambda *, state_dsn: {
1171
- "projects": [
1172
- {
1173
- "project_name": "Insurance Core",
1174
- "project_storage_key": "123",
1175
- "page_id": "123",
1176
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
1177
- "sync_metadata": {
1178
- "artifacts": [
1179
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
1180
- ]
1181
- },
1182
- "bitbucket": [
1183
- {
1184
- "repo_slug": "repo-ready",
1185
- "local_code_path": str(repo_path),
1186
- "status": "not_modified",
1187
- }
1188
- ],
1189
- }
1190
- ]
1191
- },
1192
- )
1193
-
1194
- def _list_retrieval_snapshots(**kwargs):
1195
- if kwargs.get("repo_key"):
1196
- return [
1197
- {
1198
- "snapshot_key": "insurance-core:repo-ready:project_corpus",
1199
- "repo_key": "insurance-core:repo-ready",
1200
- "state_version": 20,
1201
- "payload": {
1202
- "diagnostics": {
1203
- "docs_chunk_ready": False,
1204
- "code_chunk_ready": True,
1205
- "docs_chunk_count": 0,
1206
- "code_chunk_count": 12,
1207
- }
1208
- },
1209
- }
1210
- ]
1211
- return [
1212
- {
1213
- "snapshot_key": "insurance-core:project_corpus",
1214
- "repo_key": None,
1215
- "state_version": 20,
1216
- "payload": {
1217
- "diagnostics": {
1218
- "docs_chunk_ready": True,
1219
- "code_chunk_ready": True,
1220
- "docs_chunk_count": 25,
1221
- "code_chunk_count": 100,
1222
- }
1223
- },
1224
- }
1225
- ]
1226
-
1227
- monkeypatch.setattr(state, "list_retrieval_snapshots", _list_retrieval_snapshots)
1228
-
1229
- result = state.readiness(
1230
- state_dsn="postgresql://state",
1231
- project_identifier="123",
1232
- repo_identifier="repo-ready",
1233
- )
1234
-
1235
- assert result["ready"] is True
1236
- assert result["docs_chunk_ready"] is True
1237
- assert result["docs_chunk_count"] == 25
1238
- assert result["code_chunk_ready"] is True
1239
- assert result["code_chunk_count"] == 12
1240
- assert result["info_messages"] == [
1241
- "Project-level docs chunks are available, but selected repo has no repo-scoped docs chunks; retrieval uses project-level docs."
1242
- ]
1243
-
1244
-
1245
- def test_readiness_accepts_repo_preparation_ready_marker(monkeypatch, tmp_path) -> None:
1246
- repo_path = tmp_path / "repo-ready"
1247
- repo_path.mkdir(parents=True)
1248
-
1249
- monkeypatch.setattr(
1250
- state,
1251
- "load_manifest_payload",
1252
- lambda *, state_dsn: {
1253
- "projects": [
1254
- {
1255
- "project_name": "Insurance Core",
1256
- "project_storage_key": "123",
1257
- "page_id": "123",
1258
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
1259
- "sync_metadata": {
1260
- "artifacts": [
1261
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
1262
- ]
1263
- },
1264
- "bitbucket": [
1265
- {
1266
- "repo_slug": "repo-ready",
1267
- "local_code_path": str(repo_path),
1268
- "status": "missing",
1269
- "sync_decision": "failed",
1270
- "readiness": "ready",
1271
- }
1272
- ],
1273
- }
1274
- ]
1275
- },
1276
- )
1277
- # Phase 94 (AC-262.4): dual-source gating requires chunk readiness in snapshots
1278
- _corpus_snapshot = {
1279
- "snapshot_key": "insurance-core:project_corpus",
1280
- "payload": {
1281
- "diagnostics": {
1282
- "docs_chunk_count": 10,
1283
- "code_chunk_count": 5,
1284
- "docs_chunk_ready": True,
1285
- "code_chunk_ready": True,
1286
- }
1287
- },
1288
- "state_version": 1,
1289
- }
1290
- monkeypatch.setattr(state, "list_retrieval_snapshots", lambda **_kwargs: [_corpus_snapshot])
1291
-
1292
- result = state.readiness(
1293
- state_dsn="postgresql://state",
1294
- project_identifier="123",
1295
- repo_identifier="repo-ready",
1296
- )
1297
-
1298
- assert result["summary"]["ready"] is True
1299
- assert result["project"]["checks"]["has_ready_repo_entries"] is True
1300
- assert result["repo"]["ready"] is True
1301
-
1302
-
1303
- def test_readiness_includes_checklist_profile_diagnostics_with_repo_type_match(monkeypatch, tmp_path) -> None:
1304
- repo_path = tmp_path / "repo-backend"
1305
- repo_path.mkdir(parents=True)
1306
-
1307
- monkeypatch.setattr(
1308
- state,
1309
- "load_manifest_payload",
1310
- lambda *, state_dsn: {
1311
- "projects": [
1312
- {
1313
- "project_name": "Insurance Core",
1314
- "project_storage_key": "123",
1315
- "page_id": "123",
1316
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
1317
- "sync_metadata": {
1318
- "artifacts": [
1319
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
1320
- ]
1321
- },
1322
- "checklist_profiles": [
1323
- {
1324
- "profile_id": "backend",
1325
- "display_name": "Backend Checklist",
1326
- "page_ids": ["88722450", "88722451"],
1327
- "priority": 10,
1328
- "repo_type_filters": ["backend"],
1329
- },
1330
- {
1331
- "profile_id": "default",
1332
- "display_name": "Default Checklist",
1333
- "page_ids": ["88722450"],
1334
- "priority": 20,
1335
- },
1336
- ],
1337
- "bitbucket": [
1338
- {
1339
- "repo_slug": "repo-backend",
1340
- "repo_type": "backend",
1341
- "local_code_path": str(repo_path),
1342
- "status": "ready",
1343
- "sync_decision": "synced",
1344
- "readiness": "ready",
1345
- }
1346
- ],
1347
- }
1348
- ]
1349
- },
1350
- )
1351
- monkeypatch.setattr(
1352
- state,
1353
- "list_retrieval_snapshots",
1354
- lambda **_kwargs: [
1355
- {
1356
- "snapshot_key": "insurance-core:project_corpus",
1357
- "repo_key": None,
1358
- "payload": {
1359
- "diagnostics": {
1360
- "docs_chunk_count": 10,
1361
- "code_chunk_count": 5,
1362
- "docs_chunk_ready": True,
1363
- "code_chunk_ready": True,
1364
- }
1365
- },
1366
- "state_version": 1,
1367
- }
1368
- ],
1369
- )
1370
-
1371
- result = state.readiness(
1372
- state_dsn="postgresql://state",
1373
- project_identifier="123",
1374
- repo_identifier="repo-backend",
1375
- )
1376
-
1377
- diagnostics = result["checklist_profile_diagnostics"]
1378
- assert diagnostics["profiles_total"] == 2
1379
- assert diagnostics["profiles_ready"] == 2
1380
- assert diagnostics["selected_profile"] == "backend"
1381
- assert diagnostics["selected_profile_details"]["profile_id"] == "backend"
1382
- assert diagnostics["selected_profile_details"]["page_ids"] == ["88722450", "88722451"]
1383
- assert diagnostics["selected_profile_details"]["repo_type_filters"] == ["backend"]
1384
- assert diagnostics["selected_profile_source"] == "repo_type_match"
1385
- assert diagnostics["selected_page_count"] == 2
1386
- assert diagnostics["selected_page_ids"] == ["88722450", "88722451"]
1387
- assert diagnostics["failure_reasons"] == []
1388
- assert result["summary"]["checklist_profile_diagnostics"]["selected_profile"] == "backend"
1389
-
1390
-
1391
- def test_readiness_project_scope_includes_checklist_topology_report(monkeypatch, tmp_path) -> None:
1392
- backend_repo = tmp_path / "repo-backend"
1393
- frontend_repo = tmp_path / "repo-frontend"
1394
- backend_repo.mkdir(parents=True)
1395
- frontend_repo.mkdir(parents=True)
1396
-
1397
- monkeypatch.setattr(
1398
- state,
1399
- "load_manifest_payload",
1400
- lambda *, state_dsn: {
1401
- "projects": [
1402
- {
1403
- "project_name": "Insurance Core",
1404
- "project_storage_key": "123",
1405
- "page_id": "123",
1406
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
1407
- "sync_metadata": {
1408
- "artifacts": [
1409
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
1410
- ]
1411
- },
1412
- "checklist_profiles": [
1413
- {
1414
- "profile_id": "frontend",
1415
- "display_name": "Frontend Checklist",
1416
- "page_ids": ["88729031"],
1417
- "priority": 10,
1418
- "repo_type_filters": ["frontend"],
1419
- },
1420
- {
1421
- "profile_id": "default",
1422
- "display_name": "Default Checklist",
1423
- "page_ids": ["88722450"],
1424
- "priority": 20,
1425
- },
1426
- ],
1427
- "bitbucket": [
1428
- {
1429
- "repo_slug": "repo-backend",
1430
- "repo_type": "backend",
1431
- "local_code_path": str(backend_repo),
1432
- "status": "ready",
1433
- "sync_decision": "synced",
1434
- "readiness": "ready",
1435
- },
1436
- {
1437
- "repo_slug": "repo-frontend",
1438
- "repo_type": "frontend",
1439
- "local_code_path": str(frontend_repo),
1440
- "status": "ready",
1441
- "sync_decision": "synced",
1442
- "readiness": "ready",
1443
- },
1444
- ],
1445
- }
1446
- ]
1447
- },
1448
- )
1449
- monkeypatch.setattr(
1450
- state,
1451
- "list_retrieval_snapshots",
1452
- lambda **_kwargs: [
1453
- {
1454
- "snapshot_key": "insurance-core:project_corpus",
1455
- "repo_key": None,
1456
- "payload": {
1457
- "diagnostics": {
1458
- "docs_chunk_count": 10,
1459
- "code_chunk_count": 5,
1460
- "docs_chunk_ready": True,
1461
- "code_chunk_ready": True,
1462
- }
1463
- },
1464
- "state_version": 1,
1465
- }
1466
- ],
1467
- )
1468
-
1469
- result = state.readiness(
1470
- state_dsn="postgresql://state",
1471
- project_identifier="123",
1472
- )
1473
-
1474
- topology = result["checklist_topology_report"]
1475
- assert topology["repo_count"] == 2
1476
- assert topology["profile_count"] == 2
1477
- assert topology["mixed_profile_assignment"] is True
1478
- repo_map = {row["repo_slug"]: row for row in topology["by_repo"]}
1479
- assert repo_map["repo-frontend"]["checklist_profile_id"] == "frontend"
1480
- assert repo_map["repo-backend"]["checklist_profile_id"] == "default"
1481
- assert result["summary"]["checklist_topology_report"]["mixed_profile_assignment"] is True
1482
-
1483
-
1484
- def test_readiness_legacy_page_field_does_not_synthesize_default_profile(monkeypatch, tmp_path) -> None:
1485
- repo_path = tmp_path / "repo-legacy"
1486
- repo_path.mkdir(parents=True)
1487
-
1488
- monkeypatch.setattr(
1489
- state,
1490
- "load_manifest_payload",
1491
- lambda *, state_dsn: {
1492
- "projects": [
1493
- {
1494
- "project_name": "Insurance Core",
1495
- "project_storage_key": "123",
1496
- "page_id": "123",
1497
- "checklist_page_id": "88722450",
1498
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
1499
- "sync_metadata": {
1500
- "artifacts": [
1501
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
1502
- ]
1503
- },
1504
- "bitbucket": [
1505
- {
1506
- "repo_slug": "repo-legacy",
1507
- "local_code_path": str(repo_path),
1508
- "status": "ready",
1509
- "sync_decision": "synced",
1510
- "readiness": "ready",
1511
- }
1512
- ],
1513
- }
1514
- ]
1515
- },
1516
- )
1517
- monkeypatch.setattr(
1518
- state,
1519
- "list_retrieval_snapshots",
1520
- lambda **_kwargs: [
1521
- {
1522
- "snapshot_key": "insurance-core:project_corpus",
1523
- "repo_key": None,
1524
- "payload": {
1525
- "diagnostics": {
1526
- "docs_chunk_count": 10,
1527
- "code_chunk_count": 5,
1528
- "docs_chunk_ready": True,
1529
- "code_chunk_ready": True,
1530
- }
1531
- },
1532
- "state_version": 1,
1533
- }
1534
- ],
1535
- )
1536
-
1537
- result = state.readiness(
1538
- state_dsn="postgresql://state",
1539
- project_identifier="123",
1540
- repo_identifier="repo-legacy",
1541
- )
1542
-
1543
- diagnostics = result["checklist_profile_diagnostics"]
1544
- assert diagnostics["profiles_total"] == 1
1545
- assert diagnostics["profiles_ready"] == 1
1546
- assert diagnostics["selected_profile"] == "default"
1547
- assert diagnostics["selected_profile_details"]["profile_id"] == "default"
1548
- assert diagnostics["selected_profile_details"]["page_ids"] == ["88722450"]
1549
- assert diagnostics["selected_page_count"] == 1
1550
- assert diagnostics["selected_page_ids"] == ["88722450"]
1551
- assert diagnostics["failure_reasons"] == []
1552
- assert diagnostics["info_reasons"] == ["fallback_default_synthesized_default_profile"]
1553
-
1554
-
1555
- def test_readiness_synthesizes_canonical_default_profile_when_catalog_missing(monkeypatch, tmp_path) -> None:
1556
- repo_path = tmp_path / "repo-no-profile"
1557
- repo_path.mkdir(parents=True)
1558
-
1559
- monkeypatch.setattr(
1560
- state,
1561
- "load_manifest_payload",
1562
- lambda *, state_dsn: {
1563
- "projects": [
1564
- {
1565
- "project_name": "Insurance Core",
1566
- "project_storage_key": "123",
1567
- "page_id": "123",
1568
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
1569
- "sync_metadata": {
1570
- "artifacts": [
1571
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
1572
- ]
1573
- },
1574
- "bitbucket": [
1575
- {
1576
- "repo_slug": "repo-no-profile",
1577
- "local_code_path": str(repo_path),
1578
- "status": "ready",
1579
- "sync_decision": "synced",
1580
- "readiness": "ready",
1581
- }
1582
- ],
1583
- }
1584
- ]
1585
- },
1586
- )
1587
- monkeypatch.setattr(
1588
- state,
1589
- "list_retrieval_snapshots",
1590
- lambda **_kwargs: [
1591
- {
1592
- "snapshot_key": "insurance-core:project_corpus",
1593
- "repo_key": None,
1594
- "payload": {
1595
- "diagnostics": {
1596
- "docs_chunk_count": 10,
1597
- "code_chunk_count": 5,
1598
- "docs_chunk_ready": True,
1599
- "code_chunk_ready": True,
1600
- }
1601
- },
1602
- "state_version": 1,
1603
- }
1604
- ],
1605
- )
1606
-
1607
- result = state.readiness(
1608
- state_dsn="postgresql://state",
1609
- project_identifier="123",
1610
- repo_identifier="repo-no-profile",
1611
- )
1612
-
1613
- diagnostics = result["checklist_profile_diagnostics"]
1614
- assert diagnostics["profiles_total"] == 1
1615
- assert diagnostics["profiles_ready"] == 1
1616
- assert diagnostics["selected_profile"] == "default"
1617
- assert diagnostics["selected_profile_details"]["profile_id"] == "default"
1618
- assert diagnostics["selected_profile_details"]["page_ids"] == ["88722450"]
1619
- assert diagnostics["selected_profile_source"] == "state_default_profile"
1620
- assert diagnostics["selected_page_count"] == 1
1621
- assert diagnostics["selected_page_ids"] == ["88722450"]
1622
- assert diagnostics["failure_reasons"] == []
1623
- assert diagnostics["info_reasons"] == ["fallback_default_synthesized_default_profile"]
1624
-
1625
-
1626
- def test_readiness_selects_auxiliary_repo_and_preserves_role(monkeypatch, tmp_path) -> None:
1627
- config_repo_path = tmp_path / "workspace" / "DOPS-project" / "config-repo"
1628
- shared_repo_path = tmp_path / "workspace" / "AUXLIB-project" / "shared-lib"
1629
- config_repo_path.mkdir(parents=True)
1630
- shared_repo_path.mkdir(parents=True)
1631
-
1632
- monkeypatch.setattr(
1633
- state,
1634
- "load_manifest_payload",
1635
- lambda *, state_dsn: {
1636
- "projects": [
1637
- {
1638
- "project_name": "Insurance Core",
1639
- "project_storage_key": "123",
1640
- "page_id": "123",
1641
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
1642
- "sync_metadata": {
1643
- "artifacts": [
1644
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
1645
- ]
1646
- },
1647
- "bitbucket": [
1648
- {
1649
- "repo_slug": "config-repo",
1650
- "local_code_path": str(config_repo_path),
1651
- "status": "not_modified",
1652
- "role": "auxiliary_config",
1653
- },
1654
- {
1655
- "repo_slug": "shared-lib",
1656
- "local_code_path": str(shared_repo_path),
1657
- "status": "not_modified",
1658
- "role": "auxiliary_lib",
1659
- },
1660
- ],
1661
- }
1662
- ]
1663
- },
1664
- )
1665
- # Phase 94 (AC-262.4): dual-source gating requires chunk readiness in snapshots
1666
- _corpus_snapshot = {
1667
- "snapshot_key": "insurance-core:project_corpus",
1668
- "payload": {
1669
- "diagnostics": {
1670
- "docs_chunk_count": 10,
1671
- "code_chunk_count": 5,
1672
- "docs_chunk_ready": True,
1673
- "code_chunk_ready": True,
1674
- }
1675
- },
1676
- "state_version": 1,
1677
- }
1678
- monkeypatch.setattr(state, "list_retrieval_snapshots", lambda **_kwargs: [_corpus_snapshot])
1679
-
1680
- result = state.readiness(
1681
- state_dsn="postgresql://state",
1682
- project_identifier="123",
1683
- repo_identifier="config-repo",
1684
- )
1685
-
1686
- assert result["ready"] is True
1687
- assert result["project"]["checks"]["ready_repo_count"] == 2
1688
- assert result["repo"]["ready"] is True
1689
- assert result["repo"]["repo_slug"] == "config-repo"
1690
- assert result["repo"]["role"] == "auxiliary_config"
1691
-
1692
-
1693
- def test_readiness_projects_counts_exclude_analysis_excluded_repos(monkeypatch, tmp_path) -> None:
1694
- repo_ready_path = tmp_path / "repo-ready"
1695
- repo_excluded_path = tmp_path / "repo-excluded"
1696
- repo_ready_path.mkdir(parents=True)
1697
- repo_excluded_path.mkdir(parents=True)
1698
-
1699
- monkeypatch.setattr(
1700
- state,
1701
- "load_manifest_payload",
1702
- lambda *, state_dsn: {
1703
- "projects": [
1704
- {
1705
- "project_name": "Insurance Core",
1706
- "project_storage_key": "insurance-core",
1707
- "page_id": "123",
1708
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
1709
- "sync_metadata": {
1710
- "artifacts": [
1711
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
1712
- ]
1713
- },
1714
- "bitbucket": [
1715
- {
1716
- "repo_slug": "repo-ready",
1717
- "local_code_path": str(repo_ready_path),
1718
- "readiness": "ready",
1719
- },
1720
- {
1721
- "repo_slug": "repo-excluded",
1722
- "local_code_path": str(repo_excluded_path),
1723
- "readiness": "ready",
1724
- "analysis_excluded": True,
1725
- "analysis_exclusion_reason": "unsupported branch",
1726
- },
1727
- ],
1728
- }
1729
- ]
1730
- },
1731
- )
1732
- monkeypatch.setattr(
1733
- state,
1734
- "list_retrieval_snapshots",
1735
- lambda **_kwargs: [
1736
- {
1737
- "snapshot_key": "insurance-core:project_corpus",
1738
- "payload": {
1739
- "diagnostics": {
1740
- "docs_chunk_count": 10,
1741
- "code_chunk_count": 5,
1742
- "docs_chunk_ready": True,
1743
- "code_chunk_ready": True,
1744
- }
1745
- },
1746
- "state_version": 1,
1747
- }
1748
- ],
1749
- )
1750
-
1751
- result = state.readiness(
1752
- state_dsn="postgresql://state",
1753
- project_identifier="insurance-core",
1754
- )
1755
-
1756
- checks = result["project"]["checks"]
1757
- assert checks["analysis_repo_total"] == 2
1758
- assert checks["analysis_repo_excluded_count"] == 1
1759
- assert checks["analysis_repo_eligible_count"] == 1
1760
- assert checks["repo_count"] == 1
1761
- assert checks["ready_repo_count"] == 1
1762
-
1763
-
1764
- def test_readiness_selected_repo_reports_analysis_exclusion(monkeypatch, tmp_path) -> None:
1765
- repo_path = tmp_path / "repo-excluded"
1766
- repo_path.mkdir(parents=True)
1767
-
1768
- monkeypatch.setattr(
1769
- state,
1770
- "load_manifest_payload",
1771
- lambda *, state_dsn: {
1772
- "projects": [
1773
- {
1774
- "project_name": "Insurance Core",
1775
- "project_storage_key": "insurance-core",
1776
- "page_id": "123",
1777
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
1778
- "sync_metadata": {
1779
- "artifacts": [
1780
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
1781
- ]
1782
- },
1783
- "bitbucket": [
1784
- {
1785
- "repo_slug": "repo-excluded",
1786
- "local_code_path": str(repo_path),
1787
- "readiness": "ready",
1788
- "analysis_excluded": True,
1789
- "analysis_exclusion_reason": "sunset repo",
1790
- }
1791
- ],
1792
- }
1793
- ]
1794
- },
1795
- )
1796
- monkeypatch.setattr(
1797
- state,
1798
- "list_retrieval_snapshots",
1799
- lambda **_kwargs: [
1800
- {
1801
- "snapshot_key": "insurance-core:project_corpus",
1802
- "payload": {
1803
- "diagnostics": {
1804
- "docs_chunk_count": 10,
1805
- "code_chunk_count": 5,
1806
- "docs_chunk_ready": True,
1807
- "code_chunk_ready": True,
1808
- }
1809
- },
1810
- "state_version": 1,
1811
- }
1812
- ],
1813
- )
1814
-
1815
- result = state.readiness(
1816
- state_dsn="postgresql://state",
1817
- project_identifier="insurance-core",
1818
- repo_identifier="repo-excluded",
1819
- )
1820
-
1821
- assert result["repo"]["ready"] is False
1822
- assert result["repo"]["checks"]["analysis_excluded"] is True
1823
- assert result["repo"]["checks"]["analysis_exclusion_reason"] == "sunset repo"
1824
-
1825
-
1826
- def test_resolve_run_input_includes_latest_workflow_run_parameters(monkeypatch, tmp_path) -> None:
1827
- repo_path = tmp_path / "repo-ready"
1828
- repo_path.mkdir(parents=True)
1829
-
1830
- monkeypatch.setattr(
1831
- state,
1832
- "load_manifest_payload",
1833
- lambda *, state_dsn: {
1834
- "projects": [
1835
- {
1836
- "project_name": "Insurance Core",
1837
- "project_storage_key": "123",
1838
- "project_name_en": "insurance-core",
1839
- "page_id": "123",
1840
- "bitbucket": [
1841
- {
1842
- "repo_slug": "repo-ready",
1843
- "local_code_path": str(repo_path),
1844
- "status": "not_modified",
1845
- }
1846
- ],
1847
- }
1848
- ]
1849
- },
1850
- )
1851
- monkeypatch.setattr(state, "list_retrieval_snapshots", lambda **_kwargs: [])
1852
-
1853
- captured_calls: list[dict[str, Any]] = []
1854
-
1855
- def _fake_list_runs(**kwargs):
1856
- captured_calls.append(kwargs)
1857
- if kwargs.get("repo_key"):
1858
- return [
1859
- {
1860
- "run_id": "thread-101",
1861
- "project_key": "insurance-core",
1862
- "repo_key": "insurance-core-repo-ready",
1863
- "run_type": "workflow",
1864
- "status": "completed",
1865
- "payload": {
1866
- "kind": "workflow_invocation",
1867
- "run_parameters": {
1868
- "evidence_project": "Insurance Core",
1869
- "retrieval_mode": "hybrid",
1870
- "row_timeout_ms": 90000,
1871
- },
1872
- },
1873
- "started_at": datetime.now(UTC),
1874
- "finished_at": datetime.now(UTC),
1875
- }
1876
- ]
1877
- return []
1878
-
1879
- monkeypatch.setattr(state, "list_runs", _fake_list_runs)
1880
-
1881
- result = state.resolve_run_input(
1882
- state_dsn="postgresql://state",
1883
- project_identifier="123",
1884
- repo_identifier="repo-ready",
1885
- )
1886
-
1887
- execution = result["execution"]
1888
- assert execution["latest_workflow_run"]["run_id"] == "thread-101"
1889
- assert execution["latest_run_parameters"]["row_timeout_ms"] == 90000
1890
- assert captured_calls[0]["repo_key"] == "123-repo-ready"
1891
-
1892
-
1893
- def test_resolve_run_input_latest_run_parameters_fallback_to_project_scope(monkeypatch, tmp_path) -> None:
1894
- repo_path = tmp_path / "repo-ready"
1895
- repo_path.mkdir(parents=True)
1896
-
1897
- monkeypatch.setattr(
1898
- state,
1899
- "load_manifest_payload",
1900
- lambda *, state_dsn: {
1901
- "projects": [
1902
- {
1903
- "project_name": "Insurance Core",
1904
- "project_storage_key": "123",
1905
- "project_name_en": "insurance-core",
1906
- "page_id": "123",
1907
- "bitbucket": [
1908
- {
1909
- "repo_slug": "repo-ready",
1910
- "local_code_path": str(repo_path),
1911
- "status": "not_modified",
1912
- }
1913
- ],
1914
- }
1915
- ]
1916
- },
1917
- )
1918
- monkeypatch.setattr(state, "list_retrieval_snapshots", lambda **_kwargs: [])
1919
-
1920
- captured_calls: list[dict[str, Any]] = []
1921
-
1922
- def _fake_list_runs(**kwargs):
1923
- captured_calls.append(kwargs)
1924
- if kwargs.get("repo_key"):
1925
- return []
1926
- return [
1927
- {
1928
- "run_id": "thread-202",
1929
- "project_key": "insurance-core",
1930
- "repo_key": None,
1931
- "run_type": "workflow",
1932
- "status": "completed",
1933
- "payload": {
1934
- "kind": "workflow_invocation",
1935
- "run_parameters": {
1936
- "retrieval_mode": "vector",
1937
- "row_consistency_retry_mode": "auto",
1938
- },
1939
- },
1940
- "started_at": datetime.now(UTC),
1941
- "finished_at": datetime.now(UTC),
1942
- }
1943
- ]
1944
-
1945
- monkeypatch.setattr(state, "list_runs", _fake_list_runs)
1946
-
1947
- result = state.resolve_run_input(
1948
- state_dsn="postgresql://state",
1949
- project_identifier="123",
1950
- repo_identifier="repo-ready",
1951
- )
1952
-
1953
- assert len(captured_calls) == 2
1954
- assert captured_calls[0]["repo_key"] == "123-repo-ready"
1955
- assert captured_calls[1]["repo_key"] is None
1956
- assert result["execution"]["latest_workflow_run"]["run_id"] == "thread-202"
1957
- assert result["execution"]["latest_run_parameters"]["retrieval_mode"] == "vector"
1958
-
1959
-
1960
- def test_resolve_workflow_run_parameters_prefers_repo_scope(monkeypatch, tmp_path) -> None:
1961
- repo_path = tmp_path / "repo-ready"
1962
- repo_path.mkdir(parents=True)
1963
-
1964
- monkeypatch.setattr(
1965
- state,
1966
- "load_manifest_payload",
1967
- lambda *, state_dsn: {
1968
- "projects": [
1969
- {
1970
- "project_name": "Insurance Core",
1971
- "project_storage_key": "123",
1972
- "project_name_en": "insurance-core",
1973
- "page_id": "123",
1974
- "bitbucket": [
1975
- {
1976
- "repo_slug": "repo-ready",
1977
- "local_code_path": str(repo_path),
1978
- "status": "not_modified",
1979
- }
1980
- ],
1981
- }
1982
- ]
1983
- },
1984
- )
1985
- monkeypatch.setattr(state, "list_retrieval_snapshots", lambda **_kwargs: [])
1986
- monkeypatch.setattr(
1987
- state,
1988
- "list_runs",
1989
- lambda **kwargs: [
1990
- {
1991
- "run_id": "thread-303",
1992
- "project_key": "insurance-core",
1993
- "repo_key": "insurance-core-repo-ready" if kwargs.get("repo_key") else None,
1994
- "run_type": "workflow",
1995
- "status": "completed",
1996
- "payload": {"run_parameters": {"retrieval_mode": "hybrid", "row_timeout_ms": 45000}},
1997
- "started_at": datetime.now(UTC),
1998
- "finished_at": datetime.now(UTC),
1999
- }
2000
- ],
2001
- )
2002
-
2003
- result = state.resolve_workflow_run_parameters(
2004
- state_dsn="postgresql://state",
2005
- project_identifier="123",
2006
- repo_identifier="repo-ready",
2007
- )
2008
-
2009
- assert result["available"] is True
2010
- assert result["source_scope"] == "repo_other"
2011
- assert result["latest_workflow_run"]["run_id"] == "thread-303"
2012
- assert result["latest_run_parameters"]["retrieval_mode"] == "hybrid"
2013
-
2014
-
2015
- def test_resolve_workflow_run_parameters_reports_none_when_missing(monkeypatch, tmp_path) -> None:
2016
- repo_path = tmp_path / "repo-ready"
2017
- repo_path.mkdir(parents=True)
2018
-
2019
- monkeypatch.setattr(
2020
- state,
2021
- "load_manifest_payload",
2022
- lambda *, state_dsn: {
2023
- "projects": [
2024
- {
2025
- "project_name": "Insurance Core",
2026
- "project_storage_key": "123",
2027
- "project_name_en": "insurance-core",
2028
- "page_id": "123",
2029
- "bitbucket": [
2030
- {
2031
- "repo_slug": "repo-ready",
2032
- "local_code_path": str(repo_path),
2033
- "status": "not_modified",
2034
- }
2035
- ],
2036
- }
2037
- ]
2038
- },
2039
- )
2040
- monkeypatch.setattr(state, "list_retrieval_snapshots", lambda **_kwargs: [])
2041
- monkeypatch.setattr(state, "list_runs", lambda **_kwargs: [])
2042
-
2043
- result = state.resolve_workflow_run_parameters(
2044
- state_dsn="postgresql://state",
2045
- project_identifier="123",
2046
- repo_identifier="repo-ready",
2047
- )
2048
-
2049
- assert result["available"] is False
2050
- assert result["source_scope"] == "none"
2051
- assert result["latest_workflow_run"] is None
2052
- assert result["latest_run_parameters"] == {}
2053
-
2054
-
2055
- def test_resolve_run_input_defaults_fallback_handles_recoverable_list_runs_errors(monkeypatch, tmp_path) -> None:
2056
- repo_path = tmp_path / "repo-ready"
2057
- repo_path.mkdir(parents=True)
2058
-
2059
- warning_logger = _WarningCaptureLogger()
2060
- monkeypatch.setattr(state, "_log", warning_logger)
2061
- monkeypatch.setattr(
2062
- state,
2063
- "load_manifest_payload",
2064
- lambda *, state_dsn: {
2065
- "projects": [
2066
- {
2067
- "project_name": "Insurance Core",
2068
- "project_storage_key": "123",
2069
- "project_name_en": "insurance-core",
2070
- "page_id": "123",
2071
- "bitbucket": [
2072
- {
2073
- "repo_slug": "repo-ready",
2074
- "local_code_path": str(repo_path),
2075
- "status": "not_modified",
2076
- }
2077
- ],
2078
- }
2079
- ]
2080
- },
2081
- )
2082
- monkeypatch.setattr(state, "list_retrieval_snapshots", lambda **_kwargs: [])
2083
-
2084
- def _raise_timeout(**_kwargs: Any) -> list[dict[str, Any]]:
2085
- raise TimeoutError("defaults lookup timed out")
2086
-
2087
- monkeypatch.setattr(state, "list_runs", _raise_timeout)
2088
-
2089
- result = state.resolve_run_input(
2090
- state_dsn="postgresql://state",
2091
- project_identifier="123",
2092
- repo_identifier="repo-ready",
2093
- )
2094
-
2095
- assert result["execution"]["latest_workflow_run"] is None
2096
- assert result["execution"]["latest_run_parameters"] == {}
2097
- assert warning_logger.events
2098
- warning = warning_logger.events[0]
2099
- assert warning["error_type"] == "TimeoutError"
2100
- assert warning["source_module"] == state.__name__
2101
- assert warning["context"]["function"] == "_latest_workflow_run_defaults"
2102
- assert warning["recovery_action"] == "continue_to_next_scope_or_run_type"
2103
-
2104
-
2105
- def test_readiness_snapshot_fallback_handles_recoverable_lookup_errors(monkeypatch, tmp_path) -> None:
2106
- repo_path = tmp_path / "repo-ready"
2107
- repo_path.mkdir(parents=True)
2108
-
2109
- warning_logger = _WarningCaptureLogger()
2110
- monkeypatch.setattr(state, "_log", warning_logger)
2111
- monkeypatch.setattr(
2112
- state,
2113
- "load_manifest_payload",
2114
- lambda *, state_dsn: {
2115
- "projects": [
2116
- {
2117
- "project_name": "Insurance Core",
2118
- "project_storage_key": "123",
2119
- "page_id": "123",
2120
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
2121
- "sync_metadata": {
2122
- "artifacts": [
2123
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
2124
- ]
2125
- },
2126
- "bitbucket": [
2127
- {
2128
- "repo_slug": "repo-ready",
2129
- "local_code_path": str(repo_path),
2130
- "status": "not_modified",
2131
- }
2132
- ],
2133
- }
2134
- ]
2135
- },
2136
- )
2137
-
2138
- def _raise_connection_error(**_kwargs: Any) -> list[dict[str, Any]]:
2139
- raise ConnectionError("retrieval snapshot table unavailable")
2140
-
2141
- monkeypatch.setattr(state, "list_retrieval_snapshots", _raise_connection_error)
2142
-
2143
- result = state.readiness(
2144
- state_dsn="postgresql://state",
2145
- project_identifier="123",
2146
- repo_identifier="repo-ready",
2147
- )
2148
-
2149
- # Phase 94 (AC-262.4): dual-source gating means ready=False when chunk
2150
- # readiness is unknown (ConnectionError prevents snapshot lookup)
2151
- assert result["ready"] is False
2152
- assert result["docs_chunk_ready"] is False
2153
- assert result["code_chunk_ready"] is False
2154
- assert result["docs_chunk_count"] == 0
2155
- assert result["code_chunk_count"] == 0
2156
- assert result["retrieval"]["latest_project_snapshot"] is None
2157
- assert result["retrieval"]["latest_selected_repo_snapshot"] is None
2158
- assert warning_logger.events
2159
- warning = next(
2160
- (e for e in warning_logger.events if e.get("error_type") == "ConnectionError"),
2161
- None,
2162
- )
2163
- assert warning is not None, (
2164
- f"Expected a warning event with error_type='ConnectionError', "
2165
- f"got events: {[e.get('event') for e in warning_logger.events]}"
2166
- )
2167
- assert warning["error_type"] == "ConnectionError"
2168
- assert warning["source_module"] == state.__name__
2169
- assert warning["context"]["function"] == "readiness"
2170
- assert warning["recovery_action"] == "fallback_to_empty_snapshot_diagnostics"
2171
-
2172
-
2173
- def test_readiness_repo_not_ready_reason_includes_sync_markers(monkeypatch, tmp_path) -> None:
2174
- repo_path = tmp_path / "repo-failed-sync"
2175
- repo_path.mkdir(parents=True)
2176
-
2177
- class _FailingDiagnosticsStore:
2178
- def __init__(self, _dsn: str) -> None:
2179
- raise ConnectionError("state diagnostics unavailable")
2180
-
2181
- monkeypatch.setattr(state, "PostgresStateStore", _FailingDiagnosticsStore)
2182
- monkeypatch.setattr(state, "_resolve_project_document_count", lambda **_kwargs: 1)
2183
- monkeypatch.setattr(
2184
- state,
2185
- "load_manifest_payload",
2186
- lambda *, state_dsn: {
2187
- "projects": [
2188
- {
2189
- "project_name": "Insurance Core",
2190
- "project_storage_key": "88710001",
2191
- "page_id": "88710001",
2192
- "documents": [{"page_id": "1", "title": "Overview", "source": "confluence"}],
2193
- "sync_metadata": {
2194
- "artifacts": [
2195
- {"resource_type": "confluence_page", "resource_id": "1", "status": "not_modified"}
2196
- ]
2197
- },
2198
- "bitbucket": [
2199
- {
2200
- "repo_slug": "repo-failed-sync",
2201
- "local_code_path": str(repo_path),
2202
- "status": "missing",
2203
- "sync_status": "missing",
2204
- "sync_decision": "failed",
2205
- "readiness": "not_ready",
2206
- }
2207
- ],
2208
- }
2209
- ]
2210
- },
2211
- )
2212
- monkeypatch.setattr(state, "list_retrieval_snapshots", lambda **_kwargs: [])
2213
-
2214
- result = state.readiness(
2215
- state_dsn="postgresql://state",
2216
- project_identifier="88710001",
2217
- repo_identifier="repo-failed-sync",
2218
- )
2219
-
2220
- assert result["repo"]["ready"] is False
2221
- assert result["repo"]["checks"]["sync_status"] == "missing"
2222
- assert result["repo"]["checks"]["sync_decision"] == "failed"
2223
- assert result["repo"]["checks"]["readiness"] == "not_ready"
2224
- assert result["repo"]["reason"] == (
2225
- "repo not ready: sync_decision=failed, sync_status=missing, readiness=not_ready"
2226
- )