@ngocsangairvds/vsaf 3.2.14 → 3.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1442) hide show
  1. package/bin/vsaf.js +18 -4
  2. package/package.json +1 -1
  3. package/src/config.js +167 -0
  4. package/src/global.js +1 -48
  5. package/src/project.js +1 -0
  6. package/src/utils.js +44 -1
  7. package/tools/vds-scripts/Makefile +9 -31
  8. package/tools/vds-scripts/docker/docker-compose.cli.yml +1 -117
  9. package/tools/vds-scripts/docker/docker-compose.services.yml +1 -40
  10. package/tools/vds-scripts/docker/infrastructure/init-schemas.sql +0 -34
  11. package/tools/vds-scripts/docker/infrastructure/pgbouncer/pgbouncer.ini +2 -6
  12. package/tools/vds-scripts/pyproject.toml +1 -33
  13. package/tools/vds-scripts/uv.lock +80 -1651
  14. package/tools/vds-scripts/vds_cli/pyproject.toml +3 -0
  15. package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +1 -127
  16. package/tools/vds-scripts/vds_cli/src/vds_cli/commands/lint_cli.py +1 -20
  17. package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +0 -100
  18. package/tools/vds-scripts/vds_cli/tests/conftest.py +0 -2
  19. package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +0 -25
  20. package/tools/vds-scripts/vds_cli/tests/unit/test_lint_cli.py +2 -2
  21. package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +0 -2
  22. package/tools/vds-scripts/CLOSURE.md +0 -340
  23. package/tools/vds-scripts/ECOSYSTEM-CHANGELOG.md +0 -52
  24. package/tools/vds-scripts/ECOSYSTEM-DOCS.md +0 -602
  25. package/tools/vds-scripts/ECOSYSTEM_ALIGNMENT.md +0 -133
  26. package/tools/vds-scripts/ENV-HYGIENE-OPS-NOTE.md +0 -65
  27. package/tools/vds-scripts/INVESTIGATION-cloud-401.md +0 -103
  28. package/tools/vds-scripts/MEM0_2.0_API_REFERENCE.md +0 -238
  29. package/tools/vds-scripts/PACKAGE_P125B_IMPLEMENTATION_SUMMARY.md +0 -131
  30. package/tools/vds-scripts/PHASE-MERGE-SUMMARY.md +0 -121
  31. package/tools/vds-scripts/PHASES-3-ARCHIVE.md +0 -59
  32. package/tools/vds-scripts/PROJECT_COMPLETION_SUMMARY.md +0 -45
  33. package/tools/vds-scripts/SEARCH-CRASH-REPRO.md +0 -51
  34. package/tools/vds-scripts/analyze_hexagonal.py +0 -217
  35. package/tools/vds-scripts/analyze_profiles.py +0 -60
  36. package/tools/vds-scripts/audit-checklist.xlsx +0 -0
  37. package/tools/vds-scripts/audit_orchestrator/.audit_approvals/approvals_index.json +0 -1
  38. package/tools/vds-scripts/audit_orchestrator/.env.example +0 -85
  39. package/tools/vds-scripts/audit_orchestrator/.github/workflows/audit.yml +0 -47
  40. package/tools/vds-scripts/audit_orchestrator/Dockerfile +0 -92
  41. package/tools/vds-scripts/audit_orchestrator/GOOGLE_SHEETS_IMPLEMENTATION_SUMMARY.md +0 -218
  42. package/tools/vds-scripts/audit_orchestrator/PHASE3_INTEGRATION_SUMMARY.md +0 -268
  43. package/tools/vds-scripts/audit_orchestrator/PHASE7-MERGE-SUMMARY.md +0 -174
  44. package/tools/vds-scripts/audit_orchestrator/README.md +0 -1573
  45. package/tools/vds-scripts/audit_orchestrator/TSK-168-IMPLEMENTATION-SUMMARY.md +0 -191
  46. package/tools/vds-scripts/audit_orchestrator/TSK-196-IMPLEMENTATION-SUMMARY.md +0 -201
  47. package/tools/vds-scripts/audit_orchestrator/alembic/env.py +0 -37
  48. package/tools/vds-scripts/audit_orchestrator/alembic/script.py.mako +0 -28
  49. package/tools/vds-scripts/audit_orchestrator/alembic/versions/0001_initial_audit_state_schema.py +0 -1260
  50. package/tools/vds-scripts/audit_orchestrator/alembic.ini +0 -68
  51. package/tools/vds-scripts/audit_orchestrator/config/category-mapping.json +0 -81
  52. package/tools/vds-scripts/audit_orchestrator/config/profile-timeouts.yaml +0 -17
  53. package/tools/vds-scripts/audit_orchestrator/create_sample.py +0 -55
  54. package/tools/vds-scripts/audit_orchestrator/data/corpus_accuracy_report.json +0 -17
  55. package/tools/vds-scripts/audit_orchestrator/data/exemplar_quality_report.json +0 -1606
  56. package/tools/vds-scripts/audit_orchestrator/data/instruction_plan_fixtures.json +0 -163
  57. package/tools/vds-scripts/audit_orchestrator/data/requirement_exemplars.json +0 -3443
  58. package/tools/vds-scripts/audit_orchestrator/data/requirement_scope_fixtures.json +0 -172
  59. package/tools/vds-scripts/audit_orchestrator/debug_rg.py +0 -46
  60. package/tools/vds-scripts/audit_orchestrator/demo_code_pack.py +0 -127
  61. package/tools/vds-scripts/audit_orchestrator/docs/AGENT_SDK_SELECTION_SPEC.md +0 -720
  62. package/tools/vds-scripts/audit_orchestrator/docs/API.md +0 -804
  63. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_ANALYSIS_APPROACH.md +0 -1041
  64. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_SCORING_EVOLUTION_SPEC.md +0 -868
  65. package/tools/vds-scripts/audit_orchestrator/docs/DEPLOYMENT.md +0 -778
  66. package/tools/vds-scripts/audit_orchestrator/docs/LLM_AGENT_AUDIT_SPEC.md +0 -721
  67. package/tools/vds-scripts/audit_orchestrator/docs/LLM_CONTENT_ANALYSIS_SPEC.md +0 -1143
  68. package/tools/vds-scripts/audit_orchestrator/docs/LSP_SETUP_GUIDE.md +0 -221
  69. package/tools/vds-scripts/audit_orchestrator/docs/MULTI_REPO_AUDIT_SPEC.md +0 -951
  70. package/tools/vds-scripts/audit_orchestrator/docs/OLLAMA_EMBEDDINGS_SETUP.md +0 -119
  71. package/tools/vds-scripts/audit_orchestrator/docs/PHASE32_REAL_BENCHMARK_2026-02-08.md +0 -66
  72. package/tools/vds-scripts/audit_orchestrator/docs/PHASE_64_TO_92_HISTORICAL_SPEC.md +0 -1772
  73. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-flow-trace.md +0 -201
  74. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-verification.md +0 -124
  75. package/tools/vds-scripts/audit_orchestrator/docs/phase152-hierarchical-query-surface.md +0 -46
  76. package/tools/vds-scripts/audit_orchestrator/examples/bitbucket_metadata_example.json +0 -50
  77. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/README.md +0 -68
  78. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase117_phase118_shared_state.sql +0 -64
  79. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase154_published_pages.sql +0 -28
  80. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_dispatch_tables.sql +0 -94
  81. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_events.sql +0 -91
  82. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_scope_snapshots.sql +0 -24
  83. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_status_view.sql +0 -22
  84. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase169_dispatch_observability.sql +0 -55
  85. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/state_repair_hardening.sql +0 -24
  86. package/tools/vds-scripts/audit_orchestrator/pyproject.toml +0 -211
  87. package/tools/vds-scripts/audit_orchestrator/pyrightconfig.json +0 -51
  88. package/tools/vds-scripts/audit_orchestrator/pytest.ini +0 -37
  89. package/tools/vds-scripts/audit_orchestrator/reproduce_scanner.py +0 -40
  90. package/tools/vds-scripts/audit_orchestrator/scripts/README.md +0 -116
  91. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_crawl_modes.py +0 -455
  92. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_dspy.py +0 -513
  93. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_nlp_accuracy.py +0 -138
  94. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_retrieval_modes.py +0 -176
  95. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_upload_update_mode.py +0 -167
  96. package/tools/vds-scripts/audit_orchestrator/scripts/build_check.py +0 -76
  97. package/tools/vds-scripts/audit_orchestrator/scripts/check_live_progress.py +0 -61
  98. package/tools/vds-scripts/audit_orchestrator/scripts/cli_integration_test.py +0 -400
  99. package/tools/vds-scripts/audit_orchestrator/scripts/index_workspace.py +0 -178
  100. package/tools/vds-scripts/audit_orchestrator/scripts/inspect_route_conformance.py +0 -196
  101. package/tools/vds-scripts/audit_orchestrator/scripts/monitor_postgres.py +0 -145
  102. package/tools/vds-scripts/audit_orchestrator/scripts/optimize_audit.py +0 -462
  103. package/tools/vds-scripts/audit_orchestrator/scripts/verify.py +0 -673
  104. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase111_requirement_analysis.py +0 -375
  105. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase117_cross_repo_evidence.py +0 -77
  106. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase121_short_circuit.py +0 -680
  107. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase122_instruction_handling.py +0 -478
  108. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase125_skill_integration.py +0 -832
  109. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_36.py +0 -394
  110. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_37.py +0 -58
  111. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/__init__.py +0 -17
  112. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/__init__.py +0 -29
  113. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/_langchain_warnings.py +0 -17
  114. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/agentic_investigator.py +0 -4130
  115. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/approval.py +0 -490
  116. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_loop_hooks.py +0 -107
  117. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_state.py +0 -50
  118. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/base.py +0 -4035
  119. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_agent.py +0 -667
  120. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_helpers.py +0 -236
  121. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_prompts.py +0 -146
  122. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/docs_agent.py +0 -1234
  123. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/langgraph_workflow.py +0 -2002
  124. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/pydantic_base.py +0 -1227
  125. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/requirement_analysis_agent.py +0 -593
  126. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_agent.py +0 -1829
  127. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_scanner.py +0 -686
  128. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/skill_tools.py +0 -204
  129. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/synthesis_agent.py +0 -1463
  130. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_efficiency_guard.py +0 -609
  131. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_registry.py +0 -3822
  132. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/__init__.py +0 -52
  133. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/evidence_corpus.py +0 -385
  134. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/filesystem.py +0 -1134
  135. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/lsp.py +0 -458
  136. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/mcp_toolset.py +0 -491
  137. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/skills_toolset.py +0 -997
  138. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/vector_evidence.py +0 -842
  139. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/usage_tracker.py +0 -682
  140. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/visualization.py +0 -303
  141. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/analyze_cmds.py +0 -892
  142. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/__init__.py +0 -15
  143. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/service.py +0 -171
  144. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/__init__.py +0 -20
  145. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/base.py +0 -60
  146. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/__init__.py +0 -6
  147. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/checks.py +0 -257
  148. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/__init__.py +0 -10
  149. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/checks.py +0 -78
  150. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/__init__.py +0 -6
  151. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/file_checks.py +0 -133
  152. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/__init__.py +0 -17
  153. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/api_docs_check.py +0 -80
  154. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/readme_check.py +0 -76
  155. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/security_docs_check.py +0 -78
  156. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/registry.py +0 -402
  157. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/__init__.py +0 -10
  158. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/checks.py +0 -276
  159. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli.py +0 -12
  160. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_common.py +0 -128
  161. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_impl.py +0 -9826
  162. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/bitbucket_cli_client.py +0 -187
  163. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/confluence_cli_client.py +0 -977
  164. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/sonarqube_cli_client.py +0 -28
  165. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/__init__.py +0 -21
  166. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/base.py +0 -25
  167. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_downloader.py +0 -644
  168. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_metadata.py +0 -133
  169. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/checklist_parser.py +0 -180
  170. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/__init__.py +0 -31
  171. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/bitbucket_probe.py +0 -443
  172. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/confluence_probe.py +0 -365
  173. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/freshness_evaluator.py +0 -330
  174. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/material_completeness_service.py +0 -1079
  175. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/confluence_collector.py +0 -259
  176. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/diagram_extractor.py +0 -280
  177. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/enrichment_extractor.py +0 -200
  178. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/evidence_cache.py +0 -35
  179. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/git_collector.py +0 -148
  180. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/graphify_collector.py +0 -171
  181. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/image_extractor.py +0 -359
  182. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/linked_page_tracker.py +0 -120
  183. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/markdown_converter.py +0 -344
  184. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_cache.py +0 -1252
  185. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_downloader.py +0 -1165
  186. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/orchestrator.py +0 -168
  187. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/registry_parser.py +0 -3063
  188. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/requirements.py +0 -70
  189. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/runner.py +0 -119
  190. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/sonarqube_collector.py +0 -113
  191. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config.py +0 -1943
  192. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/__init__.py +0 -23
  193. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/discovery.py +0 -90
  194. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/environment_resolver.py +0 -56
  195. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/evidence.py +0 -78
  196. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/models.py +0 -73
  197. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/precedence.py +0 -10
  198. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/redaction.py +0 -20
  199. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/confluence_connectivity.py +0 -140
  200. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/corpus_cmds.py +0 -278
  201. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/__init__.py +0 -7
  202. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/alembic_filters.py +0 -57
  203. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/__init__.py +0 -29
  204. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/diataxis_validator.py +0 -687
  205. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/doctor_cmds.py +0 -3295
  206. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/__init__.py +0 -5
  207. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/evaluation.py +0 -301
  208. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/modules.py +0 -172
  209. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/runtime.py +0 -836
  210. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/signatures.py +0 -406
  211. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/__init__.py +0 -192
  212. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/ad_hoc_analyzer.py +0 -399
  213. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/aggregator.py +0 -220
  214. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/auditor.py +0 -504
  215. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_evidence_cache.py +0 -111
  216. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_processor.py +0 -4776
  217. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/calibration.py +0 -217
  218. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_generator.py +0 -1201
  219. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_projection.py +0 -192
  220. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_scoping.py +0 -221
  221. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checkpoint.py +0 -159
  222. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cl003_shared_lib_guard.py +0 -194
  223. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/companion_context_service.py +0 -445
  224. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/confluence_checklist_contract.py +0 -7425
  225. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cross_check_rules.py +0 -213
  226. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/deterministic_evaluator.py +0 -237
  227. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/drift_detector.py +0 -157
  228. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/dspy_requirement_classifier.py +0 -640
  229. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_assembler.py +0 -407
  230. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_collector.py +0 -119
  231. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_diversity.py +0 -101
  232. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/gap_analyzer.py +0 -549
  233. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/graduated.py +0 -185
  234. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/grounding_validator.py +0 -287
  235. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_analyzer.py +0 -882
  236. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_compliance.py +0 -172
  237. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/llm_row_evaluator.py +0 -9270
  238. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/loader.py +0 -1070
  239. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/manual_check_config.py +0 -136
  240. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/mapping.py +0 -269
  241. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/multi_judge.py +0 -65
  242. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/phase120_checklist_update.py +0 -416
  243. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/profile_scorer.py +0 -427
  244. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_evidence_context.py +0 -449
  245. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_query_service.py +0 -155
  246. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_store.py +0 -383
  247. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_topology.py +0 -1920
  248. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/provider_failure_classifier.py +0 -778
  249. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_cli_helpers.py +0 -341
  250. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_extractor.py +0 -303
  251. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_synthesizer.py +0 -730
  252. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/regression_guard.py +0 -138
  253. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/repo_type_classifier.py +0 -297
  254. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_analysis.py +0 -1433
  255. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_classification.py +0 -1725
  256. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/result_merger.py +0 -814
  257. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/route_matrix.py +0 -267
  258. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator.py +0 -9437
  259. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_runtime.py +0 -1270
  260. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_types.py +0 -2102
  261. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/rubric.py +0 -592
  262. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/scorer.py +0 -1239
  263. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/section_packs.py +0 -645
  264. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/skill_recommendation.py +0 -1183
  265. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/stability_harness.py +0 -207
  266. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/target_selector.py +0 -841
  267. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/telemetry.py +0 -347
  268. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/template_analyzer.py +0 -469
  269. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/token_tracker.py +0 -111
  270. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/tool_first_planner.py +0 -7905
  271. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/topology_query_service.py +0 -80
  272. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/validator.py +0 -449
  273. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/weight_policy.py +0 -464
  274. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/errors.py +0 -430
  275. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/extract_cmds.py +0 -4887
  276. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/identity.py +0 -146
  277. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/__init__.py +0 -52
  278. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/baseline.py +0 -378
  279. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/change_analyzer.py +0 -407
  280. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/delta_report.py +0 -189
  281. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/diff_detector.py +0 -301
  282. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/integrations/__init__.py +0 -3
  283. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/__init__.py +0 -50
  284. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/audit_schemas.py +0 -459
  285. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/codex_oauth.py +0 -340
  286. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/cost_tracker.py +0 -288
  287. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/engine.py +0 -751
  288. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/evaluator.py +0 -245
  289. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/__init__.py +0 -32
  290. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/api_docs_evaluation.py +0 -25
  291. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/gap_analysis.py +0 -31
  292. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/instruction_templates.py +0 -634
  293. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/readme_evaluation.py +0 -25
  294. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/row_evaluation.py +0 -247
  295. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/security_docs_evaluation.py +0 -25
  296. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/template_analysis.py +0 -25
  297. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts.py +0 -0
  298. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/provider.py +0 -626
  299. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/logging_config.py +0 -577
  300. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/__init__.py +0 -58
  301. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/default_checklist_mapping.json +0 -18
  302. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/vietnamese_checklist_mapping.json +0 -38
  303. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/misc_cmds.py +0 -4689
  304. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/__init__.py +0 -153
  305. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/calibration.py +0 -98
  306. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/checklist.py +0 -921
  307. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/completeness.py +0 -309
  308. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enrichment.py +0 -58
  309. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enums.py +0 -97
  310. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/evidence.py +0 -351
  311. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/findings.py +0 -381
  312. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/gaps.py +0 -299
  313. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/graph.py +0 -42
  314. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/multi_judge.py +0 -50
  315. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/readiness.py +0 -309
  316. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/registry.py +0 -386
  317. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/reporting.py +0 -32
  318. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/task.py +0 -549
  319. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/template.py +0 -477
  320. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/__init__.py +0 -31
  321. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/metrics.py +0 -404
  322. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/parse_cmds.py +0 -608
  323. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/pdf_cmds.py +0 -208
  324. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/performance_gates.py +0 -224
  325. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/phase151_projection.py +0 -84
  326. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/__init__.py +0 -65
  327. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/detection.py +0 -842
  328. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/models.py +0 -474
  329. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/__init__.py +0 -1
  330. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_confluence_macros.py +0 -145
  331. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_field_sanitizer.py +0 -25
  332. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_table_builder.py +0 -63
  333. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_vietnamese_templates.py +0 -103
  334. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/bitbucket_link_resolver.py +0 -34
  335. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/checklist_renderer.py +0 -483
  336. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/confluence_publisher.py +0 -3048
  337. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/hierarchy_publisher.py +0 -213
  338. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/live_data_injector.py +0 -152
  339. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/macro_builder.py +0 -101
  340. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/markdown_converter.py +0 -154
  341. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/priority_renderer.py +0 -133
  342. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/project_aggregate_renderer.py +0 -423
  343. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/readiness_renderer.py +0 -186
  344. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_hierarchy_renderer.py +0 -382
  345. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_renderer.py +0 -683
  346. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/report_cmds.py +0 -788
  347. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/__init__.py +0 -13
  348. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/aggregation_report.py +0 -86
  349. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/checklist_generator.py +0 -425
  350. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/excel_generator.py +0 -599
  351. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/gap_report.py +0 -131
  352. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/json_generator.py +0 -188
  353. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/markdown_generator.py +0 -595
  354. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/__init__.py +0 -154
  355. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/collector.py +0 -61
  356. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/department_builder.py +0 -77
  357. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/errors.py +0 -9
  358. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/md_renderer.py +0 -386
  359. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_models.py +0 -95
  360. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_writer.py +0 -27
  361. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/repo_project_builders.py +0 -274
  362. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/readiness_report.py +0 -447
  363. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/reporting.py +0 -94
  364. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/sarif_generator.py +0 -519
  365. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/runtime_profiles.py +0 -98
  366. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/__init__.py +0 -29
  367. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/seed_loader.py +0 -561
  368. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/__init__.py +0 -5
  369. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/skill_routing.py +0 -312
  370. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/__init__.py +0 -0
  371. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/base.py +0 -110
  372. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/bitbucket.py +0 -129
  373. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/git_url.py +0 -60
  374. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/github.py +0 -75
  375. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/local.py +0 -58
  376. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/spec_sync_validator.py +0 -15
  377. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/__init__.py +0 -6285
  378. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/readiness_helpers.py +0 -74
  379. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/skill_readiness.py +0 -487
  380. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/store.py +0 -12927
  381. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state_cmds.py +0 -1868
  382. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/__init__.py +0 -0
  383. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/repo_sync.py +0 -409
  384. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync_cmds.py +0 -1247
  385. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/__init__.py +0 -3
  386. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/debug_bundle.py +0 -214
  387. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/validators/checklist_validator.py +0 -342
  388. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflow_cmds.py +0 -19147
  389. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/__init__.py +0 -9
  390. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/_test_audit_daily_batch.py +0 -192
  391. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_daily_batch.py +0 -308
  392. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_deep_monthly.py +0 -193
  393. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_drift_scan.py +0 -178
  394. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_security_daily.py +0 -183
  395. package/tools/vds-scripts/audit_orchestrator/templates/sample_audit_template.xlsx +0 -0
  396. package/tools/vds-scripts/audit_orchestrator/tests/__init__.py +0 -0
  397. package/tools/vds-scripts/audit_orchestrator/tests/_helpers.py +0 -32
  398. package/tools/vds-scripts/audit_orchestrator/tests/collectors/__init__.py +0 -0
  399. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/__init__.py +0 -0
  400. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_bitbucket_probe.py +0 -403
  401. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_confluence_probe.py +0 -423
  402. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_bitbucket_downloader.py +0 -289
  403. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_image_extractor.py +0 -260
  404. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_markdown_converter.py +0 -57
  405. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_cache.py +0 -197
  406. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_downloader.py +0 -550
  407. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser.py +0 -3514
  408. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_department_entry.py +0 -214
  409. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_flow.py +0 -200
  410. package/tools/vds-scripts/audit_orchestrator/tests/conftest.py +0 -988
  411. package/tools/vds-scripts/audit_orchestrator/tests/engine/__init__.py +0 -0
  412. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_calibration.py +0 -48
  413. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_confluence_checklist_phase22_helpers.py +0 -6065
  414. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_multi_judge.py +0 -62
  415. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_stability_harness.py +0 -61
  416. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_structured_metadata.py +0 -419
  417. package/tools/vds-scripts/audit_orchestrator/tests/factories/__init__.py +0 -0
  418. package/tools/vds-scripts/audit_orchestrator/tests/factories/models.py +0 -534
  419. package/tools/vds-scripts/audit_orchestrator/tests/factories/templates.py +0 -241
  420. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/__init__.py +0 -0
  421. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/__init__.py +0 -0
  422. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/compressed.drawio +0 -2
  423. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/mockup.bmpr +0 -0
  424. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/simple.drawio +0 -26
  425. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/__init__.py +0 -0
  426. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/__init__.py +0 -0
  427. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_cli.json +0 -26
  428. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_direct.json +0 -24
  429. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_cli.json +0 -14
  430. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_direct.json +0 -12
  431. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/__init__.py +0 -0
  432. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_cli.json +0 -7
  433. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_direct.json +0 -7
  434. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_cli.json +0 -11
  435. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_direct.json +0 -7
  436. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/__init__.py +0 -0
  437. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_cli.json +0 -12
  438. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_direct.json +0 -12
  439. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/requirement_strategy_phase115.json +0 -118
  440. package/tools/vds-scripts/audit_orchestrator/tests/integration/__init__.py +0 -0
  441. package/tools/vds-scripts/audit_orchestrator/tests/integration/conftest.py +0 -107
  442. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/__init__.py +0 -0
  443. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/expected_outcomes.md +0 -50
  444. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/__init__.py +0 -0
  445. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/auth.py +0 -27
  446. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/config.py +0 -16
  447. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/db.py +0 -24
  448. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/main.py +0 -18
  449. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/__init__.py +0 -1
  450. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/utils.py +0 -22
  451. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_checklist_template.json +0 -110
  452. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/__init__.py +0 -0
  453. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/code_evidence_pack.json +0 -40
  454. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/manifest.json +0 -49
  455. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/__init__.py +0 -0
  456. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/__init__.py +0 -0
  457. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/brd.md +0 -19
  458. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/design.md +0 -32
  459. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/security.md +0 -23
  460. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/srs.md +0 -25
  461. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/test.md +0 -30
  462. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_checkpoint_merge.py +0 -1371
  463. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_decoupling_route_p149.py +0 -176
  464. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_gap_analyzer_batch_p149.py +0 -151
  465. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_hybrid_search.py +0 -799
  466. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_mcp_integration.py +0 -741
  467. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_merge_ranking_p149.py +0 -98
  468. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_modality_mismatch_p149.py +0 -171
  469. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase117_118_storage.py +0 -350
  470. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase121_short_circuit.py +0 -732
  471. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase18_workflow.py +0 -223
  472. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase48_e2e_verification.py +0 -763
  473. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase81_doc_anchor_regression.py +0 -252
  474. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_provider_failure_finding_p149.py +0 -339
  475. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_readiness_e2e.py +0 -430
  476. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_refined_workflow.py +0 -1180
  477. package/tools/vds-scripts/audit_orchestrator/tests/pdf/__init__.py +0 -0
  478. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/__init__.py +0 -0
  479. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/department_renderer.md +0 -24
  480. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/project_renderer.md +0 -8
  481. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/repo_renderer.md +0 -10
  482. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_department_pdf.py +0 -112
  483. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_e2e_pdf.py +0 -135
  484. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_idempotency.py +0 -45
  485. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_md_renderer.py +0 -46
  486. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_cmds.py +0 -97
  487. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_snapshot.py +0 -77
  488. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_writer.py +0 -65
  489. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_project_builder.py +0 -199
  490. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_public_api.py +0 -135
  491. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_repo_builder.py +0 -246
  492. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_workflow_pdf_flags.py +0 -36
  493. package/tools/vds-scripts/audit_orchestrator/tests/property/__init__.py +0 -0
  494. package/tools/vds-scripts/audit_orchestrator/tests/property/test_properties.py +0 -807
  495. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/__init__.py +0 -0
  496. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agent_error_compat.py +0 -38
  497. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agentic_skill_policy_skip.py +0 -234
  498. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_event_stream_logging.py +0 -785
  499. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_timeout_policy.py +0 -277
  500. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_trace_payload_sanitization.py +0 -92
  501. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent.py +0 -2311
  502. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent_re_exports.py +0 -25
  503. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_analysis_helpers.py +0 -94
  504. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_create_audit_agent_reasoning_effort.py +0 -69
  505. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_docs_agent.py +0 -2044
  506. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_langgraph_workflow_efficiency_metrics.py +0 -71
  507. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_output_validators.py +0 -317
  508. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_phase41_toolsets.py +0 -6427
  509. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_ai_models.py +0 -1219
  510. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_base_url_resolution.py +0 -84
  511. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_security_agent.py +0 -2069
  512. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_skill_manager_focus.py +0 -439
  513. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_synthesis_agent.py +0 -1195
  514. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_tool_efficiency_guard_fr120.py +0 -683
  515. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_toolsets.py +0 -716
  516. package/tools/vds-scripts/audit_orchestrator/tests/test_aggregator_p149.py +0 -171
  517. package/tools/vds-scripts/audit_orchestrator/tests/test_alembic_migrations.py +0 -287
  518. package/tools/vds-scripts/audit_orchestrator/tests/test_anchor_allowlist_p149.py +0 -273
  519. package/tools/vds-scripts/audit_orchestrator/tests/test_audit_otel.py +0 -283
  520. package/tools/vds-scripts/audit_orchestrator/tests/test_checklist_models.py +0 -583
  521. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/__init__.py +0 -0
  522. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_base_check.py +0 -211
  523. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_llm_checks.py +0 -126
  524. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/__init__.py +0 -0
  525. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_analyze_command.py +0 -400
  526. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_archive_stale_page_cli.py +0 -217
  527. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_bitbucket_metadata_cli.py +0 -354
  528. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_cli_impl_profile_availability.py +0 -114
  529. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_codex_profile.py +0 -174
  530. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_compare_backends_cli.py +0 -449
  531. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_confluence_parent_auto_resolve.py +0 -451
  532. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_corpus_purge_cli.py +0 -290
  533. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_credentials_preflight.py +0 -106
  534. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_debug_bundle.py +0 -37
  535. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_deprecation_phase157.py +0 -484
  536. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_dispatch_concurrency_diagnostics.py +0 -758
  537. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_check_confluence_cli.py +0 -320
  538. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_codex.py +0 -187
  539. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_corpus_status_cli.py +0 -236
  540. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_correlation_cli.py +0 -128
  541. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_crawl_status_cli.py +0 -192
  542. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_credentials_cli.py +0 -86
  543. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_dispatch_status_cli.py +0 -421
  544. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_heartbeat_phase169.py +0 -173
  545. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_hierarchy_status_cli.py +0 -199
  546. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_locks_cli.py +0 -134
  547. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_logs_follow_cli.py +0 -305
  548. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_migration.py +0 -333
  549. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_profile_availability_cli.py +0 -151
  550. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_skills_policy_cli.py +0 -153
  551. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_evidence_quality_cli.py +0 -307
  552. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_debug_bundle_phase36.py +0 -60
  553. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_git_manifest_cli.py +0 -172
  554. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_file_removal_phase157e.py +0 -770
  555. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_grounding_classifier.py +0 -226
  556. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_logging.py +0 -49
  557. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_materials_cli.py +0 -9127
  558. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_metadata_completeness_phase92.py +0 -364
  559. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parent_dispatch_finalization_phase168f.py +0 -111
  560. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parse_cli.py +0 -590
  561. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase117_118_feature_flags.py +0 -219
  562. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase164_control_plane.py +0 -718
  563. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase165_runner_scripts.py +0 -230
  564. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_preparation_classifications.py +0 -146
  565. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_prepare_cli.py +0 -398
  566. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publication_quality_gate.py +0 -126
  567. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publish_system_doc_cli.py +0 -158
  568. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_query_checklist_cli.py +0 -219
  569. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli.py +0 -673
  570. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli_integration.py +0 -689
  571. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_removed_flags_phase92.py +0 -36
  572. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_report_cmds.py +0 -1317
  573. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_history_index.py +0 -57
  574. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_management.py +0 -1194
  575. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_runtime_profiles_cli.py +0 -1658
  576. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_smart_run_selection.py +0 -1562
  577. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_cli.py +0 -2467
  578. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_migration.py +0 -339
  579. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_sync_repos_debug_artifacts.py +0 -1109
  580. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_upload_results_cli.py +0 -809
  581. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist.py +0 -178
  582. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist_cli.py +0 -110
  583. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_spec_sync_cli.py +0 -519
  584. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_default_parameters_baseline.py +0 -101
  585. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_options.py +0 -7896
  586. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_db_modes.py +0 -6516
  587. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_project_scope.py +0 -831
  588. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_target.py +0 -611
  589. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_lifecycle.py +0 -2488
  590. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_scaffolding.py +0 -96
  591. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_row_key_guard.py +0 -78
  592. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_summary_artifacts.py +0 -1872
  593. package/tools/vds-scripts/audit_orchestrator/tests/test_cli_paths_phase2.py +0 -45
  594. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/__init__.py +0 -0
  595. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_bitbucket_cli_client.py +0 -124
  596. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_cli_parity.py +0 -110
  597. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_confluence_cli_client.py +0 -1149
  598. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_sonarqube_cli_client.py +0 -19
  599. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/__init__.py +0 -0
  600. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/test_linked_page_tracker.py +0 -118
  601. package/tools/vds-scripts/audit_orchestrator/tests/test_companion_context_service.py +0 -230
  602. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/__init__.py +0 -0
  603. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/conftest.py +0 -11
  604. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_compile_artifact.py +0 -465
  605. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique.py +0 -120
  606. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique_e2e.py +0 -75
  607. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_evaluation.py +0 -515
  608. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_runtime_loader.py +0 -537
  609. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_signatures_normalization.py +0 -172
  610. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/__init__.py +0 -0
  611. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_auditor_applicability.py +0 -68
  612. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_generator.py +0 -1252
  613. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_projection.py +0 -54
  614. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_confluence_checklist_projection_consistency.py +0 -1696
  615. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_critique_merger_matrix.py +0 -120
  616. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_check_rules.py +0 -459
  617. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_provider_critique.py +0 -55
  618. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_doc_loader.py +0 -73
  619. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_drift_detector.py +0 -34
  620. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_evidence_collectors.py +0 -93
  621. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_lease_timeout.py +0 -114
  622. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader.py +0 -350
  623. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader_parity.py +0 -179
  624. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_low_confidence_reeval.py +0 -691
  625. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase145a_completion.py +0 -209
  626. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase31_row_consistency_retry_benchmark.py +0 -150
  627. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_profile_detector.py +0 -286
  628. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_regression_guard.py +0 -53
  629. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_result_merger.py +0 -619
  630. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_evaluator.py +0 -15783
  631. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_failover.py +0 -215
  632. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_scorer.py +0 -597
  633. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_skill_breakdown_telemetry_fr137.py +0 -421
  634. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_targeted_auto_merge.py +0 -229
  635. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_failover.py +0 -488
  636. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_telemetry.py +0 -73
  637. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_validator.py +0 -419
  638. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/__init__.py +0 -0
  639. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/test_diff_detector.py +0 -111
  640. package/tools/vds-scripts/audit_orchestrator/tests/test_infra_persistence.py +0 -291
  641. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/__init__.py +0 -0
  642. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/test_phase3_integration.py +0 -516
  643. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/__init__.py +0 -0
  644. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cache.py +0 -670
  645. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_model_builder.py +0 -281
  646. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_oauth.py +0 -330
  647. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_streaming.py +0 -433
  648. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cost_tracker.py +0 -27
  649. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_engine.py +0 -876
  650. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_evaluator.py +0 -212
  651. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_instruction_templates.py +0 -639
  652. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompt_metadata.py +0 -97
  653. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompts.py +0 -660
  654. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider.py +0 -330
  655. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider_contract_sync.py +0 -18
  656. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_reasoning_effort_validation.py +0 -565
  657. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_schemas.py +0 -827
  658. package/tools/vds-scripts/audit_orchestrator/tests/test_logging_config.py +0 -297
  659. package/tools/vds-scripts/audit_orchestrator/tests/test_models/__init__.py +0 -0
  660. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_enums.py +0 -185
  661. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_findings.py +0 -1159
  662. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_project_profile.py +0 -307
  663. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_registry.py +0 -532
  664. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_template.py +0 -708
  665. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/__init__.py +0 -0
  666. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/test_metrics.py +0 -60
  667. package/tools/vds-scripts/audit_orchestrator/tests/test_paths_config_phase2.py +0 -21
  668. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/__init__.py +0 -0
  669. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/test_fr79_performance_guardrails.py +0 -199
  670. package/tools/vds-scripts/audit_orchestrator/tests/test_phase156_hardening.py +0 -498
  671. package/tools/vds-scripts/audit_orchestrator/tests/test_phase93_regression_guards.py +0 -123
  672. package/tools/vds-scripts/audit_orchestrator/tests/test_pipeline_integration.py +0 -517
  673. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/__init__.py +0 -0
  674. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/test_detection.py +0 -146
  675. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/__init__.py +0 -0
  676. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_bitbucket_link_resolver.py +0 -55
  677. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer.py +0 -84
  678. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer_projection.py +0 -97
  679. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_macros.py +0 -58
  680. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_publisher.py +0 -2171
  681. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_evidence_links.py +0 -129
  682. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_field_sanitizer.py +0 -108
  683. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_hierarchy_publisher.py +0 -134
  684. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_incremental_plan_parser.py +0 -62
  685. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_live_data_injector.py +0 -48
  686. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_macro_builder.py +0 -22
  687. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_p161_confluence_optimization.py +0 -168
  688. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_priority_renderer.py +0 -96
  689. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_project_aggregate_renderer.py +0 -364
  690. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_storage_validation.py +0 -273
  691. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_summary_refactor.py +0 -118
  692. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_system_doc_hierarchy.py +0 -50
  693. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_table_builder.py +0 -23
  694. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_vietnamese_templates.py +0 -37
  695. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_wiring_integration.py +0 -290
  696. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/__init__.py +0 -0
  697. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_aggregation_report.py +0 -181
  698. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_checklist_generator.py +0 -258
  699. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_gap_report.py +0 -73
  700. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_json_generator.py +0 -317
  701. package/tools/vds-scripts/audit_orchestrator/tests/test_result_merger_p149.py +0 -347
  702. package/tools/vds-scripts/audit_orchestrator/tests/test_route_mode_p149.py +0 -178
  703. package/tools/vds-scripts/audit_orchestrator/tests/test_rubric_parser.py +0 -179
  704. package/tools/vds-scripts/audit_orchestrator/tests/test_scorer.py +0 -110
  705. package/tools/vds-scripts/audit_orchestrator/tests/test_state/__init__.py +0 -0
  706. package/tools/vds-scripts/audit_orchestrator/tests/test_state/test_sparse_coverage.py +0 -117
  707. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/__init__.py +0 -0
  708. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_langgraph_workflow.py +0 -2072
  709. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_p161_runtime_hardening.py +0 -341
  710. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p149.py +0 -112
  711. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p172.py +0 -126
  712. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_guidance_p150.py +0 -95
  713. package/tools/vds-scripts/audit_orchestrator/tests/unit/__init__.py +0 -0
  714. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/__init__.py +0 -0
  715. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_agentic_investigator_phase115.py +0 -42
  716. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_requirement_analysis_agent.py +0 -412
  717. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_agent_updates.py +0 -131
  718. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_scanner.py +0 -397
  719. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_executor.py +0 -316
  720. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_fallback.py +0 -299
  721. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_policy.py +0 -520
  722. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_telemetry.py +0 -306
  723. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_synthesis_fixes.py +0 -761
  724. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_argument_robustness.py +0 -272
  725. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry.py +0 -2548
  726. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_ast_grep.py +0 -87
  727. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase123_scoping.py +0 -353
  728. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase94_ff.py +0 -445
  729. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_vector_search_phase115.py +0 -35
  730. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_utils.py +0 -1007
  731. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_vector_evidence_toolset.py +0 -622
  732. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/__init__.py +0 -0
  733. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/test_workflow_cli.py +0 -123
  734. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/__init__.py +0 -0
  735. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_cache_guard.py +0 -479
  736. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_checklist_parser_phase120.py +0 -55
  737. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_diagram_extractor.py +0 -467
  738. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_enrichment_extractor.py +0 -59
  739. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_graphify_collector.py +0 -158
  740. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/__init__.py +0 -0
  741. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_completeness.py +0 -563
  742. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_freshness_evaluator.py +0 -493
  743. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_cache_metrics.py +0 -365
  744. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_completeness_service.py +0 -2736
  745. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/__init__.py +0 -0
  746. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_discovery.py +0 -47
  747. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_redaction.py +0 -15
  748. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/__init__.py +0 -0
  749. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_ad_hoc_analyzer.py +0 -576
  750. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_agent_loop.py +0 -1896
  751. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_anchor_filter_cl003.py +0 -181
  752. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_evidence_cache.py +0 -155
  753. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_processor.py +0 -3608
  754. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_contract.py +0 -55
  755. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_scoping.py +0 -371
  756. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_companion_phase123.py +0 -142
  757. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_evidence_phase123.py +0 -249
  758. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_confluence_checklist_contract_export_parity.py +0 -813
  759. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_cross_repo_config_phase122.py +0 -613
  760. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_dspy_requirement_classifier.py +0 -517
  761. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_diversity.py +0 -144
  762. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_truncation.py +0 -108
  763. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_grounding_validator.py +0 -127
  764. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_guidance_injection_phase120.py +0 -105
  765. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_analysis_phase122.py +0 -761
  766. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_pre_filter_phase167.py +0 -334
  767. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_llm_row_evaluator_retries.py +0 -3684
  768. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_loader_phase123.py +0 -345
  769. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_manual_check_gating_phase122.py +0 -474
  770. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_parallel_eval.py +0 -263
  771. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase122_verifier_phase122.py +0 -169
  772. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase166_route_failover.py +0 -437
  773. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_post_eval_cl003_shared_lib.py +0 -267
  774. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_postproc_streaming.py +0 -194
  775. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_pre_eval_gating_phase122.py +0 -362
  776. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_prepare_topology_coverage.py +0 -247
  777. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_private_dns_sanitization_phase104.py +0 -397
  778. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_evidence_context.py +0 -450
  779. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_knowledge_store.py +0 -487
  780. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_topology.py +0 -1142
  781. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_provider_failure_classifier.py +0 -195
  782. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_extractor.py +0 -496
  783. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_synthesizer.py +0 -653
  784. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_repo_type_classifier.py +0 -303
  785. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis.py +0 -508
  786. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_execution_scope.py +0 -239
  787. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase114.py +0 -919
  788. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase115.py +0 -97
  789. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_shared_lib.py +0 -340
  790. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_drift.py +0 -729
  791. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_nlp.py +0 -670
  792. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_scope_phase122.py +0 -615
  793. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_matrix.py +0 -258
  794. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_override.py +0 -141
  795. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_routing_precision.py +0 -650
  796. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_dual_evidence.py +0 -2987
  797. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_instruction_runtime_phase122.py +0 -365
  798. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_runtime.py +0 -830
  799. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_runtime_hardening_phase122.py +0 -225
  800. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoped_na_skip.py +0 -107
  801. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoring_enhancements.py +0 -404
  802. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_retrieval_phase123.py +0 -441
  803. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_routing_phase123.py +0 -279
  804. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_resource_indexing_phase122.py +0 -188
  805. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_recommendation.py +0 -225
  806. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_routing_cl003_shared_lib.py +0 -338
  807. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skills_toolset.py +0 -319
  808. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_stability_metric.py +0 -60
  809. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_target_selector.py +0 -958
  810. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_tracker.py +0 -121
  811. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_wiring.py +0 -119
  812. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_tool_first_planner.py +0 -7103
  813. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_knowledge_persistence.py +0 -332
  814. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_query_service.py +0 -55
  815. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_unverified_ref_retry.py +0 -909
  816. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/__init__.py +0 -0
  817. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_evidence.py +0 -515
  818. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_gaps.py +0 -422
  819. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_readiness.py +0 -428
  820. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/__init__.py +0 -0
  821. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_confluence_hierarchy.py +0 -227
  822. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_project_title_generation.py +0 -335
  823. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_helpers.py +0 -290
  824. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_integration.py +0 -557
  825. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_readiness_renderer.py +0 -381
  826. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_repo_title_consistency.py +0 -266
  827. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_upload_hierarchy_integration.py +0 -470
  828. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/__init__.py +0 -0
  829. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_dspy.py +0 -177
  830. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_nlp_accuracy.py +0 -72
  831. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_retrieval_modes.py +0 -123
  832. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_verify_phase111_requirement_analysis.py +0 -409
  833. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/__init__.py +0 -0
  834. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_chain_cli.py +0 -277
  835. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_loader.py +0 -502
  836. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/__init__.py +0 -0
  837. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/test_skill_routing.py +0 -209
  838. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/__init__.py +0 -0
  839. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_bitbucket_source.py +0 -66
  840. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_non_retryable_markers.py +0 -88
  841. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_repo_info.py +0 -212
  842. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/__init__.py +0 -0
  843. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_completeness.py +0 -598
  844. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_events_contract_phase169.py +0 -100
  845. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_hardening_phase158.py +0 -392
  846. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_persistence_phase157.py +0 -914
  847. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_embedding_client.py +0 -64
  848. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_get_latest_completed_run.py +0 -313
  849. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_heartbeat_phase169.py +0 -109
  850. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_hybrid_search.py +0 -398
  851. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_normalize_url.py +0 -262
  852. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase152_query_surface.py +0 -59
  853. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase98_confluence_document_model.py +0 -202
  854. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_published_pages.py +0 -754
  855. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_readiness_helpers.py +0 -193
  856. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_ledger.py +0 -522
  857. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_management.py +0 -378
  858. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_schema_contract_phase170.py +0 -755
  859. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_cmds.py +0 -231
  860. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_loaders.py +0 -2151
  861. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_run_api.py +0 -2226
  862. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store.py +0 -1435
  863. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch.py +0 -646
  864. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch_status_view.py +0 -181
  865. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_scope.py +0 -213
  866. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_utilization_persist_phase169.py +0 -77
  867. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vds_search.py +0 -263
  868. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_api.py +0 -319
  869. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_runtime.py +0 -175
  870. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_store.py +0 -1756
  871. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/__init__.py +0 -0
  872. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/test_repo_sync.py +0 -257
  873. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_artifact_exclusion.py +0 -119
  874. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_auto_promote_phase158.py +0 -337
  875. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_carry_forward_artifact_filtering.py +0 -317
  876. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_checklist_precache_p160a.py +0 -416
  877. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_cli_decomposition_fr219.py +0 -269
  878. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_code_chunk_carry_forward.py +0 -203
  879. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_coherence.py +0 -180
  880. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_secret_policy.py +0 -522
  881. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_project_id_migration.py +0 -318
  882. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_status_diagnostics.py +0 -239
  883. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_department_priority_ordering.py +0 -131
  884. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_coordinator_phase158.py +0 -402
  885. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_job_identity_p167a.py +0 -238
  886. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_ramp_up_phase171.py +0 -434
  887. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatcher.py +0 -911
  888. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_doc_type_en_inference.py +0 -246
  889. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_early_exit_unchunked_repos.py +0 -111
  890. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors.py +0 -237
  891. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors_taxonomy.py +0 -83
  892. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_chunking_config_phase98.py +0 -73
  893. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_cmds_state_helpers.py +0 -33
  894. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_docs_code_chunking.py +0 -260
  895. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_finalize_dispatch_run_phase168.py +0 -341
  896. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_identity.py +0 -221
  897. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_infrastructure_detection.py +0 -441
  898. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_junction_table_phase95.py +0 -259
  899. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_late_binding_assignment_p167c.py +0 -286
  900. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_misc_cmds_fr224_225_hardening.py +0 -194
  901. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_p172_integration.py +0 -306
  902. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_parent_provider_preflight.py +0 -118
  903. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase92.py +0 -141
  904. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase93.py +0 -50
  905. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase115_search_strategy.py +0 -106
  906. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase154_title_consistency.py +0 -117
  907. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase155_param_forwarding.py +0 -304
  908. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase158_concurrency_defaults.py +0 -207
  909. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_doctor_schema.py +0 -319
  910. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_regression.py +0 -334
  911. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase94_corpus_lifecycle.py +0 -307
  912. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase96_repo_key_migration.py +0 -305
  913. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_pipelined_scheduling.py +0 -130
  914. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_availability_probe.py +0 -616
  915. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_aware_row_timeout.py +0 -102
  916. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_timeout_stagger_p160cd.py +0 -205
  917. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_progress_summary_phase169.py +0 -96
  918. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_registry_checklist_diagnostics.py +0 -124
  919. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_resume_manifest_p167b.py +0 -268
  920. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_risk_mitigations_p160e1.py +0 -348
  921. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_single_row_shards_p160b.py +0 -357
  922. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_state_repo_discovery.py +0 -504
  923. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_sync_metadata_entries.py +0 -57
  924. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_task_models.py +0 -1796
  925. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_utilization_telemetry_p167e.py +0 -259
  926. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_vietnamese_fts_hardening.py +0 -160
  927. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_phase98_enrichment.py +0 -92
  928. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_project_merge_materialization.py +0 -322
  929. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_row_key_migration_guard.py +0 -88
  930. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_short_circuit_phase121.py +0 -564
  931. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_single_target_row_context.py +0 -49
  932. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_zero_result_messaging.py +0 -76
  933. package/tools/vds-scripts/bandit-report.json +0 -2974
  934. package/tools/vds-scripts/brd_orchestrator/README.md +0 -29
  935. package/tools/vds-scripts/brd_orchestrator/pyproject.toml +0 -63
  936. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/__init__.py +0 -17
  937. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/cli.py +0 -187
  938. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/validator.py +0 -121
  939. package/tools/vds-scripts/brd_orchestrator/tests/__init__.py +0 -0
  940. package/tools/vds-scripts/brd_orchestrator/tests/test_cli.py +0 -62
  941. package/tools/vds-scripts/brd_orchestrator/tests/test_validator.py +0 -33
  942. package/tools/vds-scripts/circular_dependency_orchestrator/README.md +0 -30
  943. package/tools/vds-scripts/circular_dependency_orchestrator/pyproject.toml +0 -43
  944. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/__init__.py +0 -16
  945. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/cli.py +0 -904
  946. package/tools/vds-scripts/circular_dependency_orchestrator/tests/__init__.py +0 -0
  947. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/__init__.py +0 -0
  948. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/test_cli.py +0 -354
  949. package/tools/vds-scripts/coverage.json +0 -1
  950. package/tools/vds-scripts/create_pr.py +0 -57
  951. package/tools/vds-scripts/diagram_generator/README.md +0 -663
  952. package/tools/vds-scripts/diagram_generator/ci_validate.sh +0 -16
  953. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.png +0 -0
  954. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.puml +0 -23
  955. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.png +0 -0
  956. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.puml +0 -21
  957. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.png +0 -0
  958. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.puml +0 -14
  959. package/tools/vds-scripts/diagram_generator/examples/github-actions-validate.yml +0 -39
  960. package/tools/vds-scripts/diagram_generator/generate_all_diagrams.py +0 -827
  961. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_diagrams.py +0 -261
  962. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_quick.py +0 -486
  963. package/tools/vds-scripts/diagram_generator/pyproject.toml +0 -28
  964. package/tools/vds-scripts/diagram_generator/render_png.py +0 -59
  965. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/__init__.py +0 -3
  966. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/cli.py +0 -50
  967. package/tools/vds-scripts/diagram_generator/test_c4_hierarchical.py +0 -142
  968. package/tools/vds-scripts/diagram_generator/test_c4_quick.py +0 -131
  969. package/tools/vds-scripts/diagram_generator/tests/__init__.py +0 -0
  970. package/tools/vds-scripts/diagram_generator/tests/test_analyzer_completeness.py +0 -260
  971. package/tools/vds-scripts/diagram_generator/tests/test_c4_syntax_correctness.py +0 -138
  972. package/tools/vds-scripts/diagram_generator/tests/test_component_coverage.py +0 -182
  973. package/tools/vds-scripts/diagram_generator/tests/test_mermaid_output.py +0 -80
  974. package/tools/vds-scripts/diagram_generator/tests/test_png_generation.py +0 -112
  975. package/tools/vds-scripts/diagram_generator/tests/test_scenario_templates.py +0 -15
  976. package/tools/vds-scripts/diagram_generator/tests/test_sequence_accuracy.py +0 -93
  977. package/tools/vds-scripts/diagram_generator/tests/test_structurizr_export.py +0 -177
  978. package/tools/vds-scripts/diagram_generator/tests/test_style_consistency.py +0 -174
  979. package/tools/vds-scripts/diagram_generator/tests/test_usecase_generator.py +0 -201
  980. package/tools/vds-scripts/diagram_generator/tests/test_usecase_integration.py +0 -124
  981. package/tools/vds-scripts/docker/compose.phase2-verification.yml +0 -31
  982. package/tools/vds-scripts/docker-compose.openapi-validator.yml +0 -14
  983. package/tools/vds-scripts/excel_orchestrator/README.md +0 -288
  984. package/tools/vds-scripts/excel_orchestrator/RESEARCH_BASED_UPDATES_REPORT.md +0 -261
  985. package/tools/vds-scripts/excel_orchestrator/add_essential_missing_effort.py +0 -255
  986. package/tools/vds-scripts/excel_orchestrator/adjust_effort_complexity.py +0 -184
  987. package/tools/vds-scripts/excel_orchestrator/brd_analysis_and_task_breakdown.py +0 -632
  988. package/tools/vds-scripts/excel_orchestrator/brd_analysis_comprehensive.py +0 -1029
  989. package/tools/vds-scripts/excel_orchestrator/check_overlaps_and_brd_coverage.py +0 -570
  990. package/tools/vds-scripts/excel_orchestrator/clean_remarks_column.py +0 -127
  991. package/tools/vds-scripts/excel_orchestrator/comprehensive_brd_check.py +0 -322
  992. package/tools/vds-scripts/excel_orchestrator/create_buffered_summary.py +0 -119
  993. package/tools/vds-scripts/excel_orchestrator/create_service_totals_sheet.py +0 -118
  994. package/tools/vds-scripts/excel_orchestrator/examples/basic_operations.py +0 -85
  995. package/tools/vds-scripts/excel_orchestrator/expand_all_tasks.py +0 -341
  996. package/tools/vds-scripts/excel_orchestrator/expand_tasks.py +0 -304
  997. package/tools/vds-scripts/excel_orchestrator/fill_brd_references.py +0 -347
  998. package/tools/vds-scripts/excel_orchestrator/fill_remarks_and_colors.py +0 -132
  999. package/tools/vds-scripts/excel_orchestrator/finalize_brd_and_cleanup.py +0 -295
  1000. package/tools/vds-scripts/excel_orchestrator/finalize_brd_coverage.py +0 -327
  1001. package/tools/vds-scripts/excel_orchestrator/fix_all_formulas.py +0 -99
  1002. package/tools/vds-scripts/excel_orchestrator/fix_detail_presentation.py +0 -113
  1003. package/tools/vds-scripts/excel_orchestrator/fix_presentation_and_effort.py +0 -116
  1004. package/tools/vds-scripts/excel_orchestrator/fix_presentation_consistency.py +0 -231
  1005. package/tools/vds-scripts/excel_orchestrator/fix_remarks_matching.py +0 -179
  1006. package/tools/vds-scripts/excel_orchestrator/group_tasks_by_service_id.py +0 -210
  1007. package/tools/vds-scripts/excel_orchestrator/increase_brd_coverage.py +0 -497
  1008. package/tools/vds-scripts/excel_orchestrator/increase_effort_complexity.py +0 -155
  1009. package/tools/vds-scripts/excel_orchestrator/organize_and_deduplicate.py +0 -273
  1010. package/tools/vds-scripts/excel_orchestrator/pyproject.toml +0 -64
  1011. package/tools/vds-scripts/excel_orchestrator/rebuild_all_formulas.py +0 -146
  1012. package/tools/vds-scripts/excel_orchestrator/remove_base_multiplier_and_check_duplicates.py +0 -310
  1013. package/tools/vds-scripts/excel_orchestrator/remove_duplicate_brd_tasks.py +0 -137
  1014. package/tools/vds-scripts/excel_orchestrator/research_based_updates.py +0 -457
  1015. package/tools/vds-scripts/excel_orchestrator/restore_e_values.py +0 -172
  1016. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/__init__.py +0 -5
  1017. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/cli.py +0 -746
  1018. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/config.py +0 -74
  1019. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/converters.py +0 -226
  1020. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/errors.py +0 -88
  1021. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/excel_client.py +0 -443
  1022. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/formatters.py +0 -211
  1023. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/logging.py +0 -57
  1024. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/source_contract.py +0 -29
  1025. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/target_state_status.py +0 -837
  1026. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/ulnc_alignment.py +0 -1291
  1027. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/validators.py +0 -164
  1028. package/tools/vds-scripts/excel_orchestrator/sync_detail_and_total_sheets.py +0 -211
  1029. package/tools/vds-scripts/excel_orchestrator/tests/__init__.py +0 -1
  1030. package/tools/vds-scripts/excel_orchestrator/tests/conftest.py +0 -36
  1031. package/tools/vds-scripts/excel_orchestrator/tests/test_cli.py +0 -383
  1032. package/tools/vds-scripts/excel_orchestrator/tests/test_excel_client.py +0 -129
  1033. package/tools/vds-scripts/excel_orchestrator/tests/test_ulnc_alignment.py +0 -373
  1034. package/tools/vds-scripts/excel_orchestrator/tests/test_validators.py +0 -64
  1035. package/tools/vds-scripts/excel_orchestrator/update_api_database_effort.py +0 -261
  1036. package/tools/vds-scripts/excel_orchestrator/update_buffers_inline.py +0 -115
  1037. package/tools/vds-scripts/excel_orchestrator/update_complex_services_and_add_new.py +0 -336
  1038. package/tools/vds-scripts/excel_orchestrator/update_responsibility_and_fix_rows.py +0 -208
  1039. package/tools/vds-scripts/excel_orchestrator/update_task_breakdown_vietnamese.py +0 -309
  1040. package/tools/vds-scripts/excel_orchestrator/update_vietnamese_and_responsibility.py +0 -415
  1041. package/tools/vds-scripts/excel_orchestrator/verify_brd_coverage_comprehensive.py +0 -401
  1042. package/tools/vds-scripts/hexagonal_orchestrator/README.md +0 -530
  1043. package/tools/vds-scripts/hexagonal_orchestrator/pyproject.toml +0 -48
  1044. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/__init__.py +0 -39
  1045. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/__init__.py +0 -19
  1046. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/base.py +0 -95
  1047. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/fallback.py +0 -614
  1048. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/java.py +0 -372
  1049. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/python.py +0 -437
  1050. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cache.py +0 -331
  1051. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/classifier.py +0 -263
  1052. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cli.py +0 -554
  1053. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/config.py +0 -577
  1054. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/models.py +0 -159
  1055. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/profiler.py +0 -451
  1056. package/tools/vds-scripts/hexagonal_orchestrator/test-config.yaml +0 -38
  1057. package/tools/vds-scripts/hexagonal_orchestrator/tests/__init__.py +0 -1
  1058. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/__init__.py +0 -1
  1059. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driven/persistence/InMemoryUserRepository.java +0 -62
  1060. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driving/api/UserController.java +0 -101
  1061. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/EmailService.java +0 -33
  1062. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/UserRepository.java +0 -45
  1063. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/usecase/CreateUser.java +0 -58
  1064. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/Email.java +0 -80
  1065. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/User.java +0 -98
  1066. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-noncompliant/domain/User.java +0 -64
  1067. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Menu.java +0 -13
  1068. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Product.java +0 -16
  1069. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/__init__.py +0 -1
  1070. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/__init__.py +0 -1
  1071. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/__init__.py +0 -1
  1072. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/email_service.py +0 -60
  1073. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/user_repository.py +0 -78
  1074. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/__init__.py +0 -1
  1075. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/__init__.py +0 -1
  1076. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/user.py +0 -56
  1077. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/__init__.py +0 -1
  1078. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/email.py +0 -63
  1079. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/application/user_service.py +0 -1837
  1080. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/domain/user.py +0 -43
  1081. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cache.py +0 -458
  1082. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_integration.py +0 -942
  1083. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_unit.py +0 -557
  1084. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cross_repo_pollution.py +0 -275
  1085. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_foundation.py +0 -129
  1086. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_integration.py +0 -1524
  1087. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_java_analyzer.py +0 -642
  1088. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_timing_unit.py +0 -60
  1089. package/tools/vds-scripts/intellij_orchestrator/README.md +0 -55
  1090. package/tools/vds-scripts/intellij_orchestrator/pyproject.toml +0 -64
  1091. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/__init__.py +0 -17
  1092. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/cli.py +0 -210
  1093. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/core.py +0 -260
  1094. package/tools/vds-scripts/intellij_orchestrator/tests/__init__.py +0 -1
  1095. package/tools/vds-scripts/intellij_orchestrator/tests/test_cli.py +0 -112
  1096. package/tools/vds-scripts/intellij_orchestrator/tests/test_core.py +0 -83
  1097. package/tools/vds-scripts/links_orchestrator/README.md +0 -63
  1098. package/tools/vds-scripts/links_orchestrator/pyproject.toml +0 -64
  1099. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/__init__.py +0 -10
  1100. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/cli.py +0 -254
  1101. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/validator.py +0 -244
  1102. package/tools/vds-scripts/links_orchestrator/tests/__init__.py +0 -0
  1103. package/tools/vds-scripts/links_orchestrator/tests/test_cli.py +0 -128
  1104. package/tools/vds-scripts/links_orchestrator/tests/test_validator.py +0 -76
  1105. package/tools/vds-scripts/lsp_orchestrator/.dockerignore +0 -69
  1106. package/tools/vds-scripts/lsp_orchestrator/ARCHITECTURE.md +0 -383
  1107. package/tools/vds-scripts/lsp_orchestrator/CODE_QUALITY_IMPROVEMENTS.md +0 -196
  1108. package/tools/vds-scripts/lsp_orchestrator/COMMANDS.md +0 -870
  1109. package/tools/vds-scripts/lsp_orchestrator/Dockerfile +0 -59
  1110. package/tools/vds-scripts/lsp_orchestrator/IMPLEMENTATION_SUMMARY.md +0 -490
  1111. package/tools/vds-scripts/lsp_orchestrator/LSP_ISSUES_AND_FINDINGS.md +0 -380
  1112. package/tools/vds-scripts/lsp_orchestrator/README.md +0 -616
  1113. package/tools/vds-scripts/lsp_orchestrator/SETUP.md +0 -143
  1114. package/tools/vds-scripts/lsp_orchestrator/TEST_COVERAGE_SUMMARY.md +0 -255
  1115. package/tools/vds-scripts/lsp_orchestrator/VERIFICATION_CHECKLIST.md +0 -814
  1116. package/tools/vds-scripts/lsp_orchestrator/docker-compose.yml +0 -102
  1117. package/tools/vds-scripts/lsp_orchestrator/docs/FOR_LLMS.md +0 -401
  1118. package/tools/vds-scripts/lsp_orchestrator/docs/explanation/lsp-response-matching.md +0 -79
  1119. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/automate-with-json.md +0 -159
  1120. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/docker-mode.md +0 -256
  1121. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/navigate-code.md +0 -116
  1122. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/parallel-processing.md +0 -179
  1123. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/project-tool-detection.md +0 -320
  1124. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/type-check-code.md +0 -46
  1125. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/use-daemon-mode.md +0 -78
  1126. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/wsl2-optimization.md +0 -227
  1127. package/tools/vds-scripts/lsp_orchestrator/docs/index.md +0 -88
  1128. package/tools/vds-scripts/lsp_orchestrator/docs/operator-hover-definition.md +0 -143
  1129. package/tools/vds-scripts/lsp_orchestrator/docs/reference/commands.md +0 -581
  1130. package/tools/vds-scripts/lsp_orchestrator/docs/reference/configuration.md +0 -422
  1131. package/tools/vds-scripts/lsp_orchestrator/docs/tutorials/00-quick-start.md +0 -169
  1132. package/tools/vds-scripts/lsp_orchestrator/pyproject.toml +0 -63
  1133. package/tools/vds-scripts/lsp_orchestrator/src/test_file.py +0 -5
  1134. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/__init__.py +0 -3
  1135. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/aggregator.py +0 -340
  1136. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/basedpyright_runner.py +0 -167
  1137. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/cli.py +0 -3370
  1138. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/code_actions.py +0 -79
  1139. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/core.py +0 -3295
  1140. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_client.py +0 -672
  1141. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_manager.py +0 -577
  1142. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_server.py +0 -1040
  1143. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/__init__.py +0 -9
  1144. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/project_detector.py +0 -537
  1145. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/formatters.py +0 -141
  1146. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ipc_protocol.py +0 -225
  1147. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_client.py +0 -957
  1148. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_router.py +0 -335
  1149. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mcp_server.py +0 -181
  1150. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/__init__.py +0 -201
  1151. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_detector.py +0 -646
  1152. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_tools.py +0 -114
  1153. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models.py +0 -399
  1154. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mypy_runner.py +0 -209
  1155. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/protocols.py +0 -52
  1156. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_lsp_client.py +0 -109
  1157. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_runner.py +0 -44
  1158. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/utils.py +0 -959
  1159. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/workspace_indexer.py +0 -1037
  1160. package/tools/vds-scripts/lsp_orchestrator/test_workspace_lsp.py +0 -6
  1161. package/tools/vds-scripts/lsp_orchestrator/tests/__init__.py +0 -1
  1162. package/tools/vds-scripts/lsp_orchestrator/tests/conftest.py +0 -6
  1163. package/tools/vds-scripts/lsp_orchestrator/tests/test_aggregator.py +0 -59
  1164. package/tools/vds-scripts/lsp_orchestrator/tests/test_cli.py +0 -111
  1165. package/tools/vds-scripts/lsp_orchestrator/tests/test_detect_tools_command.py +0 -186
  1166. package/tools/vds-scripts/lsp_orchestrator/tests/test_formatter_linter_detection.py +0 -519
  1167. package/tools/vds-scripts/lsp_orchestrator/tests/test_integration_phase9_10_11.py +0 -367
  1168. package/tools/vds-scripts/lsp_orchestrator/tests/test_mypy_runner.py +0 -482
  1169. package/tools/vds-scripts/lsp_orchestrator/tests/test_package_manager_detection.py +0 -399
  1170. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase10.py +0 -389
  1171. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase11.py +0 -327
  1172. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase12_integration.py +0 -634
  1173. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase9.py +0 -196
  1174. package/tools/vds-scripts/lsp_orchestrator/tests/test_project_detector.py +0 -377
  1175. package/tools/vds-scripts/lsp_orchestrator/tests/test_test_runner_detection.py +0 -549
  1176. package/tools/vds-scripts/lsp_orchestrator/tests/test_type_checker_routing.py +0 -362
  1177. package/tools/vds-scripts/lsp_orchestrator/tests/test_workspace_indexer.py +0 -144
  1178. package/tools/vds-scripts/markdown_orchestrator/README.md +0 -72
  1179. package/tools/vds-scripts/markdown_orchestrator/pyproject.toml +0 -39
  1180. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/__init__.py +0 -5
  1181. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/cli.py +0 -102
  1182. package/tools/vds-scripts/multi_agent_orchestrator/Dockerfile +0 -65
  1183. package/tools/vds-scripts/multi_agent_orchestrator/README.md +0 -306
  1184. package/tools/vds-scripts/multi_agent_orchestrator/postman/README.md +0 -264
  1185. package/tools/vds-scripts/multi_agent_orchestrator/postman/TEST_RESULTS_SUMMARY.md +0 -197
  1186. package/tools/vds-scripts/multi_agent_orchestrator/postman/VDS-Multi-Agent-Orchestrator-API.postman_collection.json +0 -1010
  1187. package/tools/vds-scripts/multi_agent_orchestrator/postman/environments/local-development.postman_environment.json +0 -55
  1188. package/tools/vds-scripts/multi_agent_orchestrator/postman/test-results.json +0 -24146
  1189. package/tools/vds-scripts/multi_agent_orchestrator/pyproject.toml +0 -63
  1190. package/tools/vds-scripts/multi_agent_orchestrator/run_api.py +0 -9
  1191. package/tools/vds-scripts/multi_agent_orchestrator/run_mock_api.py +0 -9
  1192. package/tools/vds-scripts/multi_agent_orchestrator/simple_test.py +0 -53
  1193. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/__init__.py +0 -25
  1194. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/agent_pool.py +0 -433
  1195. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/__init__.py +0 -5
  1196. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/main.py +0 -722
  1197. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/mock_main.py +0 -812
  1198. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/change_log.py +0 -515
  1199. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/cli.py +0 -424
  1200. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/config.py +0 -220
  1201. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/conflict_resolver.py +0 -462
  1202. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/coordinator.py +0 -627
  1203. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/models.py +0 -389
  1204. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/progress_dashboard.py +0 -380
  1205. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/redis_client.py +0 -245
  1206. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/scheduler_subscriber.py +0 -272
  1207. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_manager.py +0 -536
  1208. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_tracking.py +0 -550
  1209. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/vds_ai_memory_client.py +0 -352
  1210. package/tools/vds-scripts/multi_agent_orchestrator/test_complete_system.py +0 -149
  1211. package/tools/vds-scripts/multi_agent_orchestrator/test_infrastructure_only.py +0 -194
  1212. package/tools/vds-scripts/multi_agent_orchestrator/test_integration.py +0 -108
  1213. package/tools/vds-scripts/multi_agent_orchestrator/tests/__init__.py +0 -1
  1214. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_agent_registration_credential_validator.py +0 -223
  1215. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_config.py +0 -210
  1216. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_models.py +0 -195
  1217. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_w9_agent_routes.py +0 -321
  1218. package/tools/vds-scripts/openapi_orchestrator/README.md +0 -197
  1219. package/tools/vds-scripts/openapi_orchestrator/pyproject.toml +0 -106
  1220. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/__init__.py +0 -29
  1221. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/cli.py +0 -345
  1222. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/full_validator.py +0 -183
  1223. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/spec_validator.py +0 -197
  1224. package/tools/vds-scripts/openapi_orchestrator/tests/__init__.py +0 -1
  1225. package/tools/vds-scripts/openapi_orchestrator/tests/test_cli.py +0 -234
  1226. package/tools/vds-scripts/openapi_orchestrator/tests/test_full_validator.py +0 -203
  1227. package/tools/vds-scripts/openapi_orchestrator/tests/test_spec_validator.py +0 -295
  1228. package/tools/vds-scripts/pdf_orchestrator/.dockerignore +0 -93
  1229. package/tools/vds-scripts/pdf_orchestrator/.env.example +0 -40
  1230. package/tools/vds-scripts/pdf_orchestrator/.ruff_rules.py +0 -350
  1231. package/tools/vds-scripts/pdf_orchestrator/.yamllint.yml +0 -43
  1232. package/tools/vds-scripts/pdf_orchestrator/DEVELOPMENT_PLAN.md +0 -80
  1233. package/tools/vds-scripts/pdf_orchestrator/Dockerfile +0 -87
  1234. package/tools/vds-scripts/pdf_orchestrator/README.md +0 -608
  1235. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.md +0 -6
  1236. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.pdf +0 -0
  1237. package/tools/vds-scripts/pdf_orchestrator/config/alertmanager.yml +0 -83
  1238. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.prod.yml +0 -98
  1239. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.yml +0 -40
  1240. package/tools/vds-scripts/pdf_orchestrator/config/redis.conf +0 -78
  1241. package/tools/vds-scripts/pdf_orchestrator/docs/COMPETITIVE_ANALYSIS_REPORT.md +0 -309
  1242. package/tools/vds-scripts/pdf_orchestrator/docs/FEATURES_GUIDE.md +0 -518
  1243. package/tools/vds-scripts/pdf_orchestrator/docs/MULTI_USER_DEPLOYMENT_GUIDE.md +0 -615
  1244. package/tools/vds-scripts/pdf_orchestrator/docs/USER_GUIDE.md +0 -829
  1245. package/tools/vds-scripts/pdf_orchestrator/pyproject.toml +0 -87
  1246. package/tools/vds-scripts/pdf_orchestrator/pytest.ini +0 -71
  1247. package/tools/vds-scripts/pdf_orchestrator/ruff.toml +0 -6
  1248. package/tools/vds-scripts/pdf_orchestrator/scripts/debug_security_report.py +0 -59
  1249. package/tools/vds-scripts/pdf_orchestrator/scripts/demo_library_selector.py +0 -109
  1250. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_project_stats.py +0 -52
  1251. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_styled_pdf.py +0 -95
  1252. package/tools/vds-scripts/pdf_orchestrator/scripts/migrate_render_pdfs.py +0 -285
  1253. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.bat +0 -283
  1254. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.sh +0 -324
  1255. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/__init__.py +0 -5
  1256. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/cli.py +0 -542
  1257. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/config.py +0 -33
  1258. package/tools/vds-scripts/pdf_orchestrator/tests/README.md +0 -650
  1259. package/tools/vds-scripts/pdf_orchestrator/tests/__init__.py +0 -0
  1260. package/tools/vds-scripts/pdf_orchestrator/tests/conftest.py +0 -520
  1261. package/tools/vds-scripts/pdf_orchestrator/tests/requirements.txt +0 -51
  1262. package/tools/vds-scripts/pdf_orchestrator/tests/run_tests.py +0 -659
  1263. package/tools/vds-scripts/pdf_orchestrator/tests/test_config.py +0 -36
  1264. package/tools/vds-scripts/progress_report_orchestrator/Dockerfile +0 -77
  1265. package/tools/vds-scripts/progress_report_orchestrator/README.md +0 -39
  1266. package/tools/vds-scripts/progress_report_orchestrator/alembic/env.py +0 -42
  1267. package/tools/vds-scripts/progress_report_orchestrator/alembic/script.py.mako +0 -28
  1268. package/tools/vds-scripts/progress_report_orchestrator/alembic/versions/0001_initial_progress_schema.py +0 -180
  1269. package/tools/vds-scripts/progress_report_orchestrator/alembic.ini +0 -67
  1270. package/tools/vds-scripts/progress_report_orchestrator/pyproject.toml +0 -67
  1271. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/__init__.py +0 -3
  1272. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/__init__.py +0 -1
  1273. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/endpoint_scanner.py +0 -238
  1274. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/git_activity.py +0 -159
  1275. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/hexagonal.py +0 -100
  1276. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/test_scanner.py +0 -136
  1277. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/cli.py +0 -743
  1278. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/config.py +0 -50
  1279. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/__init__.py +0 -12
  1280. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/alembic_filters.py +0 -64
  1281. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/memory.py +0 -82
  1282. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/__init__.py +0 -1
  1283. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/analysis.py +0 -84
  1284. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/report.py +0 -117
  1285. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/topology.py +0 -101
  1286. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/__init__.py +0 -1
  1287. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/kg_parser.py +0 -252
  1288. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/uc_reader.py +0 -159
  1289. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/__init__.py +0 -1
  1290. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/concurrency.py +0 -39
  1291. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/llm_eval.py +0 -570
  1292. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/report.py +0 -1256
  1293. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/structural.py +0 -384
  1294. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/sync.py +0 -143
  1295. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/__init__.py +0 -5
  1296. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/engine.py +0 -105
  1297. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/templates.py +0 -236
  1298. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/scheduler_subscriber.py +0 -238
  1299. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/README.md +0 -56
  1300. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/__init__.py +0 -1
  1301. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-architecture-reviewer/SKILL.md +0 -67
  1302. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-endpoint-matcher/SKILL.md +0 -67
  1303. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/__init__.py +0 -1
  1304. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/schema.py +0 -625
  1305. package/tools/vds-scripts/progress_report_orchestrator/tests/__init__.py +0 -0
  1306. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/__init__.py +0 -0
  1307. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/.gitkeep +0 -0
  1308. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/__init__.py +0 -0
  1309. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/doc-dependencies.yaml +0 -79
  1310. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-docs.yaml +0 -478
  1311. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-services.yaml +0 -18
  1312. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/registry.yaml +0 -346
  1313. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/phase3_baseline_standard.md +0 -564
  1314. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/__init__.py +0 -0
  1315. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/test_checkpoint.py +0 -276
  1316. package/tools/vds-scripts/progress_report_orchestrator/tests/test_alembic_migrations.py +0 -265
  1317. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/__init__.py +0 -0
  1318. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_analyzers.py +0 -267
  1319. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_bounded_gather.py +0 -176
  1320. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_cli_phase_report.py +0 -119
  1321. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_delta.py +0 -169
  1322. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_error_handling.py +0 -150
  1323. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_gate_exit_codes.py +0 -230
  1324. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_git_activity.py +0 -215
  1325. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_kg_parser.py +0 -267
  1326. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_autodetect.py +0 -183
  1327. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_eval.py +0 -529
  1328. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_memory_integration.py +0 -151
  1329. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_migration_contract.py +0 -254
  1330. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_mode_rendering.py +0 -576
  1331. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_models.py +0 -251
  1332. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_progress_llm_config.py +0 -67
  1333. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_recommendations.py +0 -480
  1334. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_report_enhancements.py +0 -415
  1335. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_resume_reload.py +0 -343
  1336. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_trend_regression.py +0 -294
  1337. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_uc_reader.py +0 -169
  1338. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_valence_gap.py +0 -293
  1339. package/tools/vds-scripts/project-cycle-report.json +0 -14
  1340. package/tools/vds-scripts/project-dependency-graph.json +0 -11361
  1341. package/tools/vds-scripts/project-topology.json +0 -99
  1342. package/tools/vds-scripts/public_interface_boundary_orchestrator/pyproject.toml +0 -18
  1343. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/__init__.py +0 -0
  1344. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/cli.py +0 -232
  1345. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/__init__.py +0 -0
  1346. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/test_cli.py +0 -108
  1347. package/tools/vds-scripts/research_orchestrator/README.md +0 -68
  1348. package/tools/vds-scripts/research_orchestrator/py.typed +0 -0
  1349. package/tools/vds-scripts/research_orchestrator/pyproject.toml +0 -95
  1350. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/__init__.py +0 -3
  1351. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/_env.py +0 -11
  1352. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/cli.py +0 -335
  1353. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/config.py +0 -43
  1354. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/__init__.py +0 -0
  1355. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/models.py +0 -89
  1356. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/scoring.py +0 -102
  1357. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/exceptions.py +0 -78
  1358. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/http_client.py +0 -160
  1359. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/logging.py +0 -49
  1360. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/__init__.py +0 -0
  1361. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/formatters.py +0 -93
  1362. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/py.typed +0 -1
  1363. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/__init__.py +0 -0
  1364. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/build.py +0 -156
  1365. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/format.py +0 -147
  1366. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/__init__.py +0 -0
  1367. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health.py +0 -66
  1368. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health_graph.py +0 -52
  1369. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/registry.py +0 -127
  1370. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/search.py +0 -230
  1371. package/tools/vds-scripts/research_orchestrator/tests/__init__.py +0 -0
  1372. package/tools/vds-scripts/research_orchestrator/tests/conftest.py +0 -53
  1373. package/tools/vds-scripts/research_orchestrator/tests/test_cli.py +0 -222
  1374. package/tools/vds-scripts/research_orchestrator/tests/test_config.py +0 -23
  1375. package/tools/vds-scripts/research_orchestrator/tests/test_exceptions.py +0 -62
  1376. package/tools/vds-scripts/research_orchestrator/tests/test_formatters.py +0 -89
  1377. package/tools/vds-scripts/research_orchestrator/tests/test_graph_integration.py +0 -149
  1378. package/tools/vds-scripts/research_orchestrator/tests/test_http_client.py +0 -134
  1379. package/tools/vds-scripts/research_orchestrator/tests/test_report_build.py +0 -128
  1380. package/tools/vds-scripts/research_orchestrator/tests/test_report_format.py +0 -91
  1381. package/tools/vds-scripts/research_orchestrator/tests/test_scoring.py +0 -95
  1382. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/__init__.py +0 -1
  1383. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_health.py +0 -139
  1384. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_registry.py +0 -135
  1385. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_search.py +0 -238
  1386. package/tools/vds-scripts/run-history.json +0 -26
  1387. package/tools/vds-scripts/schema_converter/README.md +0 -109
  1388. package/tools/vds-scripts/schema_converter/pyproject.toml +0 -37
  1389. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/__init__.py +0 -3
  1390. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/cli.py +0 -50
  1391. package/tools/vds-scripts/schema_converter/tests/__init__.py +0 -0
  1392. package/tools/vds-scripts/schema_converter/tests/test_json_schema_generator.py +0 -115
  1393. package/tools/vds-scripts/schema_converter/tests/test_mermaid_generator.py +0 -112
  1394. package/tools/vds-scripts/schema_converter/tests/test_parser.py +0 -111
  1395. package/tools/vds-scripts/schema_converter/tests/test_plantuml_generator.py +0 -112
  1396. package/tools/vds-scripts/schema_converter/tests/test_plantuml_validator.py +0 -69
  1397. package/tools/vds-scripts/schema_converter/tests/test_prisma_generator.py +0 -113
  1398. package/tools/vds-scripts/schema_converter/tests/test_sql_generator.py +0 -138
  1399. package/tools/vds-scripts/schema_converter/tests/test_typeorm_generator.py +0 -110
  1400. package/tools/vds-scripts/schema_converter/tests/test_validators.py +0 -96
  1401. package/tools/vds-scripts/spec_orchestrator/README.md +0 -13
  1402. package/tools/vds-scripts/spec_orchestrator/pyproject.toml +0 -40
  1403. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/__init__.py +0 -5
  1404. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/cli.py +0 -162
  1405. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/core.py +0 -575
  1406. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/sync.py +0 -306
  1407. package/tools/vds-scripts/spec_orchestrator/tests/__init__.py +0 -0
  1408. package/tools/vds-scripts/spec_orchestrator/tests/test_frontmatter_drift.py +0 -243
  1409. package/tools/vds-scripts/spec_orchestrator/tests/test_sync.py +0 -342
  1410. package/tools/vds-scripts/structure_orchestrator/README.md +0 -60
  1411. package/tools/vds-scripts/structure_orchestrator/pyproject.toml +0 -103
  1412. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/__init__.py +0 -13
  1413. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/cli.py +0 -308
  1414. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/validator.py +0 -257
  1415. package/tools/vds-scripts/structure_orchestrator/tests/__init__.py +0 -0
  1416. package/tools/vds-scripts/structure_orchestrator/tests/test_cli.py +0 -161
  1417. package/tools/vds-scripts/structure_orchestrator/tests/test_helpers.py +0 -115
  1418. package/tools/vds-scripts/structure_orchestrator/tests/test_validator.py +0 -104
  1419. package/tools/vds-scripts/task_orchestrator/README.md +0 -50
  1420. package/tools/vds-scripts/task_orchestrator/__init__.py +0 -18
  1421. package/tools/vds-scripts/task_orchestrator/pyproject.toml +0 -43
  1422. package/tools/vds-scripts/task_orchestrator/scripts/run_excel_sync.py +0 -36
  1423. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/__init__.py +0 -13
  1424. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/audit.py +0 -134
  1425. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/cli.py +0 -127
  1426. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/debug.py +0 -133
  1427. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/normalize.py +0 -113
  1428. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/refine.py +0 -201
  1429. package/tools/vds-scripts/task_orchestrator/tests/__init__.py +0 -0
  1430. package/tools/vds-scripts/task_orchestrator/tests/test_task_orchestrator.py +0 -84
  1431. package/tools/vds-scripts/temp_query_projects.py +0 -2
  1432. package/tools/vds-scripts/test_small.md +0 -1
  1433. package/tools/vds-scripts/text_utils_orchestrator/pyproject.toml +0 -20
  1434. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/__init__.py +0 -7
  1435. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/i18n.py +0 -143
  1436. package/tools/vds-scripts/text_utils_orchestrator/tests/__init__.py +0 -0
  1437. package/tools/vds-scripts/text_utils_orchestrator/tests/test_i18n.py +0 -53
  1438. package/tools/vds-scripts/upgrade_major.py +0 -61
  1439. package/tools/vds-scripts/upgrade_major_v2.py +0 -64
  1440. package/tools/vds-scripts/verify_violations.py +0 -57
  1441. package/tools/vds-scripts/workflow-summary.json +0 -325
  1442. package/tools/vds-scripts/workflow-summary.md +0 -8
@@ -1,2102 +0,0 @@
1
- """Shared row evaluator enums, config, and value objects (FR-92 extraction)."""
2
-
3
- from __future__ import annotations
4
-
5
- import hashlib
6
- import os
7
- import re
8
- from dataclasses import dataclass, field
9
- from enum import StrEnum
10
- from typing import TYPE_CHECKING, Any
11
-
12
- if TYPE_CHECKING:
13
- from vds_audit_orchestrator.engine.instruction_analyzer import InstructionPlan
14
-
15
- from vds_agent_core.profiles import resolve_agentic_tool_first_scalar
16
-
17
- from vds_audit_orchestrator.config_resolution import build_app_config_discovery_result, discover_config_sources
18
- from vds_audit_orchestrator.engine.requirement_analysis import requires_app_config_only as _requires_app_config_only
19
- from vds_audit_orchestrator.models.checklist import EvidenceAnchor, RowProvenance, RowStatus, ScoreBreakdown
20
-
21
- # ---------------------------------------------------------------------------
22
- # Typed RouteDecision model
23
- # ---------------------------------------------------------------------------
24
-
25
-
26
- @dataclass(frozen=True, slots=True)
27
- class RouteDecision:
28
- """Typed route decision replacing raw dict for route metadata.
29
-
30
- Frozen dataclass following the existing pattern in this module.
31
- """
32
-
33
- route_id: str
34
- route_confidence: float
35
- ambiguity_reason_codes: list[str] = field(default_factory=list)
36
- route_reason: str = ""
37
- required_steps: list[str] = field(default_factory=list)
38
- required_tools: list[str] = field(default_factory=list)
39
- docs_focused: bool = False
40
- code_targets: list[str] = field(default_factory=list)
41
- docs_target: bool = False
42
- code_target: bool = False
43
- route_mode: str = ""
44
- override_source: str = "heuristic"
45
- override_reason: str = ""
46
-
47
- def to_dict(self) -> dict[str, Any]:
48
- """Serialize to dict for backward-compatible context passing."""
49
- return {
50
- "route_id": self.route_id,
51
- "route_confidence": self.route_confidence,
52
- "ambiguity_reason_codes": list(self.ambiguity_reason_codes),
53
- "route_reason": self.route_reason,
54
- "required_steps": list(self.required_steps),
55
- "required_tools": list(self.required_tools),
56
- "docs_focused": self.docs_focused,
57
- "code_targets": list(self.code_targets),
58
- "docs_target": self.docs_target,
59
- "code_target": self.code_target,
60
- "route_mode": self.route_mode,
61
- "override_source": self.override_source,
62
- "override_reason": self.override_reason,
63
- }
64
-
65
- def explain(self) -> str:
66
- """Compact human-readable route summary."""
67
- markers = f"confidence={self.route_confidence:.2f}"
68
- if self.ambiguity_reason_codes:
69
- markers += f" ambiguity={self.ambiguity_reason_codes}"
70
- return f"route={self.route_id} mode={self.route_mode} {markers}"
71
-
72
-
73
- # ---------------------------------------------------------------------------
74
- # Route override precedence
75
- # ---------------------------------------------------------------------------
76
-
77
-
78
- @dataclass(frozen=True, slots=True)
79
- class RouteOverride:
80
- """Explicit route override with source tracking.
81
-
82
- Precedence: CLI override > row override map > heuristic route.
83
- """
84
-
85
- route_id: str
86
- override_source: str # "cli" | "row_map" | "heuristic"
87
- override_reason: str = ""
88
-
89
- def to_dict(self) -> dict[str, Any]:
90
- return {
91
- "route_id": self.route_id,
92
- "override_source": self.override_source,
93
- "override_reason": self.override_reason,
94
- }
95
-
96
-
97
- def apply_route_override(
98
- heuristic: RouteDecision,
99
- *,
100
- cli_override: str | None = None,
101
- row_overrides: dict[str, str] | None = None,
102
- row_id: str = "",
103
- ) -> tuple[RouteDecision, RouteOverride | None]:
104
- """Apply route override precedence: CLI > row map > heuristic.
105
-
106
- Args:
107
- heuristic: The heuristic-derived RouteDecision.
108
- cli_override: Global CLI-level route override (highest precedence).
109
- row_overrides: Per-row override map {row_id: route_id}.
110
- row_id: Current row identifier for row-level lookup.
111
-
112
- Returns:
113
- Tuple of (final RouteDecision, RouteOverride metadata or None if no override).
114
- """
115
- if cli_override:
116
- overridden = RouteDecision(
117
- route_id=cli_override,
118
- route_confidence=1.0,
119
- route_reason=f"CLI override: {cli_override}",
120
- route_mode=cli_override,
121
- ambiguity_reason_codes=heuristic.ambiguity_reason_codes,
122
- required_steps=heuristic.required_steps,
123
- required_tools=heuristic.required_tools,
124
- docs_focused=heuristic.docs_focused,
125
- code_targets=heuristic.code_targets,
126
- docs_target=heuristic.docs_target,
127
- code_target=heuristic.code_target,
128
- override_source="cli",
129
- override_reason=f"Global CLI override applied: {cli_override}",
130
- )
131
- override_meta = RouteOverride(
132
- route_id=cli_override,
133
- override_source="cli",
134
- override_reason=f"Global CLI override applied: {cli_override}",
135
- )
136
- return overridden, override_meta
137
-
138
- if row_overrides and row_id and row_id in row_overrides:
139
- row_route = row_overrides[row_id]
140
- overridden = RouteDecision(
141
- route_id=row_route,
142
- route_confidence=1.0,
143
- route_reason=f"Row override map: {row_id} -> {row_route}",
144
- route_mode=row_route,
145
- ambiguity_reason_codes=heuristic.ambiguity_reason_codes,
146
- required_steps=heuristic.required_steps,
147
- required_tools=heuristic.required_tools,
148
- docs_focused=heuristic.docs_focused,
149
- code_targets=heuristic.code_targets,
150
- docs_target=heuristic.docs_target,
151
- code_target=heuristic.code_target,
152
- override_source="row_map",
153
- override_reason=f"Row-specific override: {row_id} -> {row_route}",
154
- )
155
- override_meta = RouteOverride(
156
- route_id=row_route,
157
- override_source="row_map",
158
- override_reason=f"Row-specific override: {row_id} -> {row_route}",
159
- )
160
- return overridden, override_meta
161
-
162
- return heuristic, None
163
-
164
-
165
- # Interpretation marker taxonomy — strict allowlists
166
- DOCS_MARKER_ALLOWLIST: tuple[str, ...] = (
167
- "openapi",
168
- "swagger",
169
- "sequence diagram",
170
- "confluence",
171
- "runbook",
172
- "architecture document",
173
- "api specification",
174
- "technical design document",
175
- )
176
-
177
- CODE_MARKER_KEYWORDS: tuple[str, ...] = (
178
- "implementation",
179
- "source code",
180
- "dockerfile",
181
- "docker-compose",
182
- "kubernetes",
183
- "k8s",
184
- "helm",
185
- "healthcheck",
186
- "health endpoint",
187
- "metrics endpoint",
188
- "liveness",
189
- "readiness",
190
- "actuator",
191
- "unit test",
192
- "integration test",
193
- "pipeline",
194
- "sast",
195
- "dast",
196
- "security scan",
197
- )
198
-
199
- PROCESS_MARKER_KEYWORDS: tuple[str, ...] = (
200
- "sla",
201
- "support",
202
- "incident",
203
- "compliance",
204
- "policy",
205
- "governance",
206
- "regulatory",
207
- "approval",
208
- "review",
209
- "audit",
210
- "certification",
211
- )
212
-
213
- DEPLOYMENT_DOCS_SENSITIVE_MARKERS: tuple[str, ...] = (
214
- "air-gapped",
215
- "air gapped",
216
- "offline",
217
- "package",
218
- "packaging",
219
- "install",
220
- "internet",
221
- "sandbox",
222
- "đóng gói",
223
- "dong goi",
224
- "không cần internet",
225
- "khong can internet",
226
- "cài đặt",
227
- "cai dat",
228
- )
229
-
230
-
231
- class CheckCategory(StrEnum):
232
- """Classification of check types for evaluation strategy."""
233
-
234
- DETERMINISTIC = "deterministic"
235
- SEMANTIC = "semantic"
236
- HYBRID = "hybrid"
237
-
238
-
239
- DETERMINISTIC_CHECK_TYPES: frozenset[str] = frozenset(
240
- {
241
- "git_file_exists",
242
- "git_file_content",
243
- "git_directory_exists",
244
- "file_exists",
245
- "directory_exists",
246
- "bitbucket_branch_permission",
247
- "bitbucket_merge_check",
248
- "bitbucket_default_reviewers",
249
- "bitbucket_repo_settings",
250
- "confluence_page_exists",
251
- "confluence_attachment_exists",
252
- "confluence_link_exists",
253
- "sonarqube_quality_gate",
254
- "sonarqube_metric",
255
- "sonarqube_metric_threshold",
256
- "sonarqube_coverage",
257
- "sonarqube_bugs",
258
- "sonarqube_vulnerabilities",
259
- "jira_issue_exists",
260
- "jira_issue_linked",
261
- "openapi_spec_exists",
262
- "openapi_valid",
263
- "api_documented",
264
- "ci_pipeline_exists",
265
- "ci_config_valid",
266
- "dockerfile_exists",
267
- }
268
- )
269
-
270
- SEMANTIC_CHECK_TYPES: frozenset[str] = frozenset(
271
- {
272
- "readme_quality",
273
- "documentation_quality",
274
- "api_docs_quality",
275
- "security_docs_quality",
276
- "code_documentation",
277
- "architecture_alignment",
278
- "requirement_coverage",
279
- "test_coverage_quality",
280
- "compliance_narrative",
281
- "llm_content_evaluation",
282
- "llm_gap_analysis",
283
- }
284
- )
285
-
286
-
287
- def _classify_check_type(check_type: str) -> CheckCategory:
288
- """Classify a check type into its evaluation category."""
289
- normalized = check_type.lower().strip()
290
-
291
- if normalized in DETERMINISTIC_CHECK_TYPES:
292
- return CheckCategory.DETERMINISTIC
293
- if normalized in SEMANTIC_CHECK_TYPES:
294
- return CheckCategory.SEMANTIC
295
-
296
- if any(kw in normalized for kw in ["quality", "narrative", "alignment", "coverage_quality"]):
297
- return CheckCategory.SEMANTIC
298
- if any(kw in normalized for kw in ["exists", "threshold", "metric", "permission", "check"]):
299
- return CheckCategory.DETERMINISTIC
300
-
301
- return CheckCategory.HYBRID
302
-
303
-
304
- def is_deterministic(check_type: str) -> bool:
305
- """Return True if check can be evaluated without LLM."""
306
- return _classify_check_type(check_type) == CheckCategory.DETERMINISTIC
307
-
308
-
309
- def needs_llm(check_type: str, evidence_clarity: float = 1.0) -> bool:
310
- """Determine if LLM evaluation is needed."""
311
- category = _classify_check_type(check_type)
312
-
313
- if category == CheckCategory.DETERMINISTIC:
314
- return evidence_clarity < 0.3
315
- if category == CheckCategory.SEMANTIC:
316
- return True
317
- return evidence_clarity < 0.7
318
-
319
-
320
- class RowLLMMode(StrEnum):
321
- """LLM invocation mode for row evaluation."""
322
-
323
- OFF = "off"
324
- SELECTIVE = "selective"
325
- PER_ROW = "per-row"
326
-
327
-
328
- class ConsistencyRetryMode(StrEnum):
329
- """Retry policy for evidence-consistency correction turn."""
330
-
331
- OFF = "off"
332
- AUTO = "auto"
333
- ALWAYS = "always"
334
-
335
-
336
- class RowUnifiedMode(StrEnum):
337
- """Guarded rollout mode for unified row execution path."""
338
-
339
- OFF = "off"
340
- ON = "on"
341
-
342
-
343
- @dataclass
344
- class RowEvaluatorConfig:
345
- """Configuration for row-level evaluation."""
346
-
347
- mode: RowLLMMode = RowLLMMode.SELECTIVE
348
- protocol: str | None = None
349
- model: str | None = None
350
- cache_enabled: bool = True
351
- confidence_threshold: float = 0.6
352
- batch_related_rows: bool = True
353
- max_evidence_chars: int = 12000
354
- decompose_complex: bool = False
355
- consistency_retry_enabled: bool = True
356
- consistency_retry_mode: ConsistencyRetryMode = ConsistencyRetryMode.AUTO
357
- row_unified_mode: RowUnifiedMode = RowUnifiedMode.ON
358
- use_dspy: bool = False
359
- dspy_score_tolerance: float = 10.0
360
- dspy_confidence_tolerance: float = 0.15
361
- dspy_quality_threshold: float = 0.6
362
- tool_first_enabled: bool = False
363
- tool_first_max_steps: int = field(
364
- default_factory=lambda: int(os.getenv("VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_STEPS", "30"))
365
- )
366
- tool_first_timeout_seconds: float = field(
367
- default_factory=lambda: float(os.getenv("VDS_AUDIT_AGENTIC_TOOL_FIRST_TIMEOUT_SECONDS", "30.0"))
368
- )
369
- tool_first_budget_units: int = field(
370
- default_factory=lambda: int(os.getenv("VDS_AUDIT_AGENTIC_TOOL_FIRST_BUDGET_UNITS", "50"))
371
- )
372
- tool_calls_limit: int = field(
373
- default_factory=lambda: int(resolve_agentic_tool_first_scalar("tool_calls_limit", default=30))
374
- )
375
- strict_budget: bool = False
376
- instruction_mode: str = "minimal"
377
- evidence_strategy: str = "tool_first"
378
- instruction_language: str = "vi"
379
- max_inline_evidence_chars: int = 2000
380
- agent_runtime_mode: str | None = None
381
- runtime_context: dict[str, Any] = field(default_factory=dict)
382
- # P172-E: Per-run control-objective evidence threshold overrides (TSK-172.30)
383
- evidence_overrides: dict[str, dict[str, int]] = field(default_factory=dict)
384
-
385
-
386
- def compute_cache_key(
387
- template_hash: str,
388
- evidence_hash: str,
389
- row_id: str,
390
- model: str | None = None,
391
- ) -> str:
392
- """Compute stable cache key for row evaluation."""
393
- key_parts = [template_hash, evidence_hash, row_id]
394
- if model:
395
- key_parts.append(model)
396
- return hashlib.sha256("|".join(key_parts).encode()).hexdigest()[:32]
397
-
398
-
399
- def estimate_evidence_clarity(
400
- requirement_text: str,
401
- evidence_context: str,
402
- evidence_refs: list[str],
403
- ) -> float:
404
- """Estimate clarity/completeness of evidence for a requirement."""
405
- if not evidence_context.strip():
406
- return 0.0
407
-
408
- score = 0.0
409
- evidence_len = len(evidence_context)
410
- if evidence_len > 2000:
411
- score += 0.3
412
- elif evidence_len > 500:
413
- score += 0.2
414
- elif evidence_len > 100:
415
- score += 0.1
416
-
417
- ref_count = len(evidence_refs)
418
- if ref_count >= 3:
419
- score += 0.3
420
- elif ref_count >= 1:
421
- score += 0.15
422
-
423
- req_words = set(requirement_text.lower().split())
424
- evidence_words = set(evidence_context.lower().split())
425
- overlap = len(req_words & evidence_words)
426
- overlap_ratio = overlap / max(len(req_words), 1)
427
- score += min(0.4, overlap_ratio * 0.5)
428
-
429
- return min(1.0, score)
430
-
431
-
432
- def extract_requirement_guidance(config: dict[str, Any]) -> str:
433
- """Build normalized requirement guidance text from checklist config.
434
-
435
- The legacy ``evidence_required`` field is no longer included in routing
436
- guidance. It must not influence route decisions.
437
-
438
- Runtime guidance injection gateway securely maps widened schema fields
439
- (Hướng dẫn chi tiết, Check = Manual) to enforcement context.
440
- """
441
- parts: list[str] = []
442
- main = str(config.get("confluence_main") or "").strip()
443
- if main:
444
- parts.append(f"Nội dung chính: {main}")
445
- rule = str(config.get("confluence_rule") or "").strip()
446
- if rule:
447
- parts.append(f"Quy tắc: {rule}")
448
-
449
- guidance = str(config.get("detailed_guidance") or config.get("confluence_notes") or "").strip()
450
- if guidance:
451
- parts.append(f"Hướng dẫn chi tiết: {guidance}")
452
-
453
- check_manual = str(config.get("check_manual") or "").strip()
454
- if check_manual:
455
- parts.append(f"Check = Manual: {check_manual}")
456
-
457
- evidence_hint = str(config.get("confluence_evidence_hint") or "").strip()
458
- if evidence_hint:
459
- parts.append(f"Minh chứng kỳ vọng: {evidence_hint}")
460
- # Legacy evidence_required fallback removed from routing path.
461
- # The hint must no longer influence route decisions.
462
- return "\n".join(parts)
463
-
464
-
465
- def extract_disambiguation_hint(config: dict[str, Any]) -> str:
466
- """Extract optional domain clarification hint from checklist config."""
467
- return str(config.get("disambiguation_hint") or config.get("confluence_disambiguation_hint") or "").strip()
468
-
469
-
470
- _CONFIG_ENV_ALIAS_ORDER: tuple[tuple[str, tuple[str, ...]], ...] = (
471
- ("preprod", ("pre-production", "pre production", "preprod", "pre_prod", "preprodution")),
472
- ("production", ("production", "prod")),
473
- ("staging", ("staging", "stage")),
474
- ("uat", ("uat",)),
475
- ("sit", ("sit",)),
476
- ("qa", ("qa",)),
477
- ("alpha", ("alpha",)),
478
- ("beta", ("beta",)),
479
- ("development", ("development", "dev")),
480
- ("test", ("test",)),
481
- ("sandbox", ("sandbox",)),
482
- ("local", ("local",)),
483
- )
484
- _CONFIG_ENV_TOKEN_PATTERNS: tuple[tuple[str, re.Pattern[str]], ...] = tuple(
485
- (
486
- canonical,
487
- re.compile(r"(?<![a-z0-9])(?:" + "|".join(re.escape(alias.lower()) for alias in aliases) + r")(?![a-z0-9])"),
488
- )
489
- for canonical, aliases in _CONFIG_ENV_ALIAS_ORDER
490
- )
491
-
492
-
493
- def requires_app_config_only(*texts: Any) -> bool:
494
- """Return True when row guidance explicitly narrows work to app-config."""
495
-
496
- combined = "\n".join(str(text or "").strip() for text in texts if str(text or "").strip())
497
- return _requires_app_config_only(combined)
498
-
499
-
500
- def extract_required_config_environments(*texts: Any) -> list[str]:
501
- """Extract normalized config-environment hints from guidance text.
502
-
503
- The parser intentionally stays lightweight and only returns environments
504
- when the guidance names them explicitly. This keeps routing deterministic
505
- while still allowing downstream evidence selection to honor requirements
506
- like "môi trường production".
507
- """
508
-
509
- combined = "\n".join(str(text or "").strip() for text in texts if str(text or "").strip())
510
- if not combined:
511
- return []
512
-
513
- lowered = combined.lower()
514
- ordered_envs: list[tuple[int, str]] = []
515
- for canonical, pattern in _CONFIG_ENV_TOKEN_PATTERNS:
516
- for match in pattern.finditer(lowered):
517
- ordered_envs.append((match.start(), canonical))
518
-
519
- ordered_envs.sort(key=lambda item: item[0])
520
- unique_envs: list[str] = []
521
- for _, canonical in ordered_envs:
522
- if canonical not in unique_envs:
523
- unique_envs.append(canonical)
524
- return unique_envs
525
-
526
-
527
- def _is_doc_like_ref(ref: str) -> bool:
528
- raw_value = ref.strip().lower()
529
- value = _normalize_ref_for_type_detection(raw_value)
530
- if not value:
531
- return False
532
- if raw_value.startswith("chunk:"):
533
- return True
534
- if "://" in raw_value:
535
- return True
536
- if value.startswith("docs/") or "/docs/" in value:
537
- return True
538
- return bool(re.search(r"\.(md|markdown|rst|adoc|txt)$", value))
539
-
540
-
541
- def _normalize_ref_for_type_detection(ref: str) -> str:
542
- value = str(ref or "").strip().lower()
543
- if not value:
544
- return ""
545
- for prefix in ("code:", "doc:"):
546
- if value.startswith(prefix):
547
- value = value[len(prefix) :]
548
- break
549
- value = value.split("?", 1)[0]
550
- value = value.split("#", 1)[0]
551
- value = re.sub(r":\d+(?::\d+)?$", "", value)
552
- return value
553
-
554
-
555
- def _is_code_like_ref(ref: str) -> bool:
556
- value = _normalize_ref_for_type_detection(ref)
557
- if not value or _is_doc_like_ref(value):
558
- return False
559
- infra_file_names = {"dockerfile", "containerfile", "makefile", "jenkinsfile"}
560
- normalized = value.strip("/").lower()
561
- if normalized in infra_file_names:
562
- return True
563
- if any(normalized.endswith(f"/{name}") for name in infra_file_names):
564
- return True
565
- return bool(
566
- re.search(
567
- r"\.(py|java|kt|kts|js|ts|tsx|jsx|go|rs|cpp|cc|c|h|hpp|yaml|yml|json|toml|xml|sql|sh)$",
568
- value,
569
- )
570
- )
571
-
572
-
573
- def _is_deployment_docs_sensitive_requirement(requirement_text: str, requirement_category: str) -> bool:
574
- combined = f"{requirement_text or ''} {requirement_category or ''}".lower()
575
- return any(marker in combined for marker in DEPLOYMENT_DOCS_SENSITIVE_MARKERS)
576
-
577
-
578
- _GUIDANCE_SKIP_CLASSIFIERS: tuple[tuple[str, str, tuple[str, ...]], ...] = (
579
- ("manual_required", "guidance_phrase:con_nguoi_lam", ("con người làm",)),
580
- (
581
- "infra_provided",
582
- "guidance_phrase:infra_handled",
583
- ("đã được xử lý ở tầng infra riêng", "không cần đánh giá"),
584
- ),
585
- (
586
- "infra_provided",
587
- "guidance_phrase:internal_system_guarantee",
588
- ("mặc định đã được đảm bảo bởi hệ thống nội bộ",),
589
- ),
590
- (
591
- "infra_provided",
592
- "guidance_phrase:ci_cd_guarantee",
593
- ("tiêu chí này đã có từ đầu ci/cd", "không cần đánh giá"),
594
- ),
595
- (
596
- "infra_provided",
597
- "guidance_phrase:ktdv_infra_support",
598
- ("tiêu chí này đã được hỗ trợ bởi hạ tầng", "đơn vị ktdv", "không cần kiểm tra"),
599
- ),
600
- (
601
- "quality_control_managed",
602
- "guidance_phrase:quality_control_flow",
603
- ("mặc định fail", "kiểm soát chất lượng"),
604
- ),
605
- )
606
-
607
-
608
- def _normalize_guidance_skip_text(value: str) -> str:
609
- text = " ".join(str(value or "").strip().lower().split())
610
- text = text.replace(" ,", ",")
611
- return text
612
-
613
-
614
- def _classify_guidance_skip(*texts: str) -> tuple[bool, str | None, str, str]:
615
- for raw_text in texts:
616
- source_text = str(raw_text or "").strip()
617
- if not source_text:
618
- continue
619
- normalized = _normalize_guidance_skip_text(source_text)
620
- for decision, reason, markers in _GUIDANCE_SKIP_CLASSIFIERS:
621
- if all(marker in normalized for marker in markers):
622
- return True, decision, source_text, reason
623
- return False, None, "", ""
624
-
625
-
626
- def _infer_code_targets_from_requirement(requirement_text: str, requirement_category: str) -> list[str]:
627
- combined = f"{requirement_text or ''} {requirement_category or ''}".lower()
628
- inferred: list[str] = []
629
- migration_requirement = any(
630
- marker in combined
631
- for marker in (
632
- "flyway",
633
- "liquibase",
634
- "migration",
635
- "migrate",
636
- "changelog",
637
- "changeset",
638
- "db/migration",
639
- )
640
- )
641
- architecture_exclusion_markers = (
642
- "hexagonal",
643
- "clean architecture",
644
- "domain logic",
645
- "ports & adapters",
646
- "ports and adapters",
647
- "framework",
648
- "org.springframework",
649
- "javax.persistence",
650
- "ui layer",
651
- "infrastructure layer",
652
- )
653
- if any(marker in combined for marker in ("dockerfile", "multi-stage", "multi stage", "container image")):
654
- inferred.append("Dockerfile")
655
- if "containerfile" in combined:
656
- inferred.append("Containerfile")
657
- if any(marker in combined for marker in ("docker compose", "docker-compose", "compose.yml", "compose.yaml")):
658
- inferred.extend(["docker-compose.yml", "docker-compose.yaml"])
659
- if any(marker in combined for marker in ("k8s", "kubernetes", "deployment.yaml", "readiness", "liveness")):
660
- inferred.append("k8s/deployment.yaml")
661
- if "helm" in combined:
662
- inferred.extend(["helm/Chart.yaml", "helm/values.yaml"])
663
- gateway_requirement = any(
664
- marker in combined for marker in ("api gateway", "gateway", "rate limiting", "rate limit")
665
- )
666
- if gateway_requirement:
667
- inferred.extend(
668
- [
669
- "AuthenticationFilter.java",
670
- "RestTemplateConfig.java",
671
- "RateLimitFilter.java",
672
- "GatewayFilter.java",
673
- "GatewayConditionMultiApi.java",
674
- "AuthorizationFilter.java",
675
- "GatewayConfig.java",
676
- "ApiGatewayConfig.java",
677
- ]
678
- )
679
- explicit_public_interface_requirement = any(
680
- marker in combined
681
- for marker in (
682
- "explicit public interface",
683
- "interface/contract",
684
- "interface contract",
685
- "api client",
686
- "message contract",
687
- "import class implementation",
688
- "không import class implementation",
689
- "khong import class implementation",
690
- "concrete implementation",
691
- "concrete class",
692
- )
693
- )
694
- if explicit_public_interface_requirement:
695
- inferred.extend(
696
- [
697
- "Service.java",
698
- "ApiClient.java",
699
- "FeignClient.java",
700
- "MessageContract.java",
701
- "Contract.java",
702
- "Client.java",
703
- ]
704
- )
705
- if migration_requirement:
706
- inferred.extend(
707
- [
708
- "src/main/resources/db/migration",
709
- "src/main/resources/db/changelog",
710
- "src/main/resources/application.properties",
711
- "src/main/resources/application.yml",
712
- "src/main/resources/application.yaml",
713
- "src/main/resources/bootstrap.properties",
714
- "src/main/resources/bootstrap.yml",
715
- "src/main/resources/bootstrap.yaml",
716
- "db/migration",
717
- "db/changelog",
718
- "migrations",
719
- "migration",
720
- "liquibase",
721
- "flyway",
722
- "pom.xml",
723
- "build.gradle",
724
- "build.gradle.kts",
725
- "application.properties",
726
- "application.yml",
727
- "application.yaml",
728
- "bootstrap.properties",
729
- "bootstrap.yml",
730
- "bootstrap.yaml",
731
- "changelog.xml",
732
- "changelog.yaml",
733
- "changelog.yml",
734
- "changelog.json",
735
- ]
736
- )
737
- db_decoupling_requirement = any(
738
- marker in combined
739
- for marker in (
740
- "schema",
741
- "datasource",
742
- "database",
743
- "db instance",
744
- "connection string",
745
- "cross-schema",
746
- "cross schema",
747
- "native query",
748
- "join",
749
- "jdbctemplate",
750
- "createnativequery",
751
- )
752
- )
753
- if db_decoupling_requirement and not any(marker in combined for marker in architecture_exclusion_markers):
754
- inferred.extend(
755
- [
756
- "application.properties",
757
- "DatabaseConfig.java",
758
- "DataSourceConfig.java",
759
- "Repository.java",
760
- "application.yml",
761
- "application.yaml",
762
- "bootstrap.properties",
763
- "bootstrap.yml",
764
- "bootstrap.yaml",
765
- ]
766
- )
767
- config_separation_requirement = any(
768
- marker in combined for marker in ("configuration", "config", "cấu hình", "cau hinh")
769
- ) and any(
770
- marker in combined for marker in ("business", "nghiệp vụ", "nghiep vu", "technical", "kỹ thuật", "ky thuat")
771
- )
772
- if config_separation_requirement:
773
- inferred.extend(
774
- [
775
- "application.properties",
776
- "application.yml",
777
- "application.yaml",
778
- "bootstrap.properties",
779
- "bootstrap.yml",
780
- "bootstrap.yaml",
781
- "AppConfig.java",
782
- "ApplicationConfig.java",
783
- "Config.java",
784
- ]
785
- )
786
- return list(dict.fromkeys(target for target in inferred if target))
787
-
788
-
789
- def _clamp_unit(value: float) -> float:
790
- return max(0.0, min(1.0, float(value)))
791
-
792
-
793
- def _extract_trace_ref_values(retrieval_trace: dict[str, Any] | None) -> list[str]:
794
- if not isinstance(retrieval_trace, dict):
795
- return []
796
-
797
- refs: list[str] = []
798
-
799
- def _append_ref(candidate: Any) -> None:
800
- if isinstance(candidate, str):
801
- value = candidate.strip()
802
- if value:
803
- refs.append(value)
804
- return
805
- if not isinstance(candidate, dict):
806
- return
807
- for key in ("source_path", "source_url", "ref_value", "ref", "path"):
808
- raw = candidate.get(key)
809
- if not raw:
810
- continue
811
- value = str(raw).strip()
812
- if value:
813
- refs.append(value)
814
- return
815
-
816
- docs_trace = retrieval_trace.get("docs")
817
- if isinstance(docs_trace, dict):
818
- top_k = docs_trace.get("top_k")
819
- if isinstance(top_k, list):
820
- for item in top_k:
821
- _append_ref(item)
822
- elif isinstance(docs_trace, list):
823
- for item in docs_trace:
824
- _append_ref(item)
825
-
826
- code_trace = retrieval_trace.get("code")
827
- if isinstance(code_trace, dict):
828
- top_k = code_trace.get("top_k")
829
- if isinstance(top_k, list):
830
- for item in top_k:
831
- _append_ref(item)
832
-
833
- tool_loop = retrieval_trace.get("tool_first_loop")
834
- if isinstance(tool_loop, dict):
835
- evidence_refs = tool_loop.get("evidence_refs")
836
- if isinstance(evidence_refs, list):
837
- for item in evidence_refs:
838
- _append_ref(item)
839
- trace_steps = tool_loop.get("trace_steps")
840
- if isinstance(trace_steps, list):
841
- for step in trace_steps:
842
- if not isinstance(step, dict):
843
- continue
844
- output = step.get("output")
845
- if not isinstance(output, dict):
846
- continue
847
- for key in (
848
- "read_ref",
849
- "ref_value",
850
- "ref",
851
- "doc_id",
852
- "source_path",
853
- "source_url",
854
- "file_path",
855
- "path",
856
- ):
857
- _append_ref(output.get(key))
858
- chunk_id = output.get("chunk_id")
859
- chunk_value = str(chunk_id or "").strip()
860
- if chunk_value:
861
- if chunk_value.startswith("chunk:"):
862
- refs.append(chunk_value)
863
- else:
864
- refs.append(f"chunk:{chunk_value}")
865
- hits = output.get("hits")
866
- if isinstance(hits, list):
867
- for hit in hits:
868
- _append_ref(hit)
869
- if isinstance(hit, dict):
870
- for key in (
871
- "read_ref",
872
- "ref_value",
873
- "ref",
874
- "doc_id",
875
- "source_path",
876
- "source_url",
877
- "file_path",
878
- "path",
879
- ):
880
- _append_ref(hit.get(key))
881
- hit_chunk = str(hit.get("chunk_id") or "").strip()
882
- if hit_chunk:
883
- if hit_chunk.startswith("chunk:"):
884
- refs.append(hit_chunk)
885
- else:
886
- refs.append(f"chunk:{hit_chunk}")
887
-
888
- return list(dict.fromkeys(refs))
889
-
890
-
891
- def compute_requirement_coverage_metrics(
892
- *,
893
- score_breakdown: ScoreBreakdown,
894
- evidence_anchors: list[EvidenceAnchor],
895
- retrieval_trace: dict[str, Any] | None = None,
896
- ) -> dict[str, float]:
897
- """Compute additive coverage metrics for row finalize stage."""
898
- anchor_refs = [str(anchor.ref_value).strip() for anchor in evidence_anchors if str(anchor.ref_value).strip()]
899
- trace_refs = _extract_trace_ref_values(retrieval_trace)
900
- all_refs = list(dict.fromkeys(anchor_refs + trace_refs))
901
-
902
- doc_refs = [ref for ref in all_refs if _is_doc_like_ref(ref)]
903
- code_refs = [ref for ref in all_refs if _is_code_like_ref(ref)]
904
- total_refs = len(all_refs)
905
-
906
- docs_ratio = (len(doc_refs) / total_refs) if total_refs else 0.0
907
- code_ratio = (len(code_refs) / total_refs) if total_refs else 0.0
908
- evidence_presence = 1.0 if total_refs > 0 else 0.0
909
-
910
- base_coverage = _clamp_unit(getattr(score_breakdown, "coverage_factor", 0.0))
911
- confidence = _clamp_unit(getattr(score_breakdown, "confidence_factor", 0.0))
912
- coverage_requirements = _clamp_unit(base_coverage * evidence_presence)
913
-
914
- return {
915
- "coverage_requirements": round(coverage_requirements, 4),
916
- "coverage_code": round(_clamp_unit(code_ratio), 4),
917
- "coverage_docs": round(_clamp_unit(docs_ratio), 4),
918
- "coverage_confidence": round(confidence, 4),
919
- }
920
-
921
-
922
- _NON_REPO_IDENTITY_FILENAMES = frozenset(
923
- {
924
- "application.properties",
925
- "application.yml",
926
- "application.yaml",
927
- "bootstrap.properties",
928
- "bootstrap.yml",
929
- "bootstrap.yaml",
930
- "values.yml",
931
- "values.yaml",
932
- "configmap.yml",
933
- "configmap.yaml",
934
- "secret.yml",
935
- "secret.yaml",
936
- }
937
- )
938
-
939
-
940
- _NON_REPO_IDENTITY_SEGMENTS = frozenset(
941
- {
942
- "application",
943
- "bootstrap",
944
- "values",
945
- "configmap",
946
- "secret",
947
- "resources",
948
- "database",
949
- "datasource",
950
- "schema",
951
- "shared",
952
- "memory",
953
- "service",
954
- "module",
955
- }
956
- )
957
-
958
-
959
- def _is_plausible_repo_identity(value: str | None) -> bool:
960
- text = str(value or "").strip()
961
- if not text:
962
- return False
963
- lowered = text.casefold()
964
- if lowered in {"unknown-repo", "unknown", "uncategorized", "n/a", "none"}:
965
- return False
966
- if lowered in _NON_REPO_IDENTITY_FILENAMES or lowered in _NON_REPO_IDENTITY_SEGMENTS:
967
- return False
968
- if any(token in lowered for token in ("decoupling", "architecture", "documentation", "security")):
969
- return False
970
- if text.startswith(("#", "-")):
971
- return False
972
- if "/" in text or "\\" in text:
973
- return False
974
- if "." in text:
975
- suffix = text.rsplit(".", 1)[-1].casefold()
976
- if suffix in {
977
- "java",
978
- "kt",
979
- "kts",
980
- "groovy",
981
- "xml",
982
- "yml",
983
- "yaml",
984
- "properties",
985
- "json",
986
- "conf",
987
- "cfg",
988
- "ini",
989
- "sh",
990
- "md",
991
- "txt",
992
- }:
993
- return False
994
- if not re.fullmatch(r"[A-Za-z0-9._-]+", text):
995
- return False
996
- return any(char.isalpha() for char in text)
997
-
998
-
999
- _GENERIC_REPO_PATH_SEGMENTS = frozenset(
1000
- {
1001
- "src",
1002
- "source",
1003
- "main",
1004
- "test",
1005
- "tests",
1006
- "docs",
1007
- "doc",
1008
- "config",
1009
- "configs",
1010
- "resources",
1011
- "production",
1012
- "prod",
1013
- "uat",
1014
- "sit",
1015
- "stg",
1016
- "staging",
1017
- "dev",
1018
- "development",
1019
- "local",
1020
- "shared",
1021
- }
1022
- )
1023
-
1024
-
1025
- def _repo_identity_from_path_like(value: str | None) -> str | None:
1026
- text = str(value or "").strip()
1027
- if not text:
1028
- return None
1029
- normalized = text.replace("\\", "/")
1030
- parts = [part.strip() for part in normalized.split("/") if part.strip() and part.strip() not in {".", ".."}]
1031
- if not parts:
1032
- return None
1033
- for index, part in enumerate(parts[:-1]):
1034
- if part.casefold().endswith("-project"):
1035
- candidate = parts[index + 1].strip()
1036
- if _is_plausible_repo_identity(candidate):
1037
- return candidate
1038
- trimmed_parts = [part for part in parts if part.casefold() not in _GENERIC_REPO_PATH_SEGMENTS]
1039
- search_parts = trimmed_parts[:-1] if trimmed_parts and "." in trimmed_parts[-1] else trimmed_parts
1040
- for candidate in reversed(search_parts):
1041
- if _is_plausible_repo_identity(candidate):
1042
- return candidate
1043
- first = trimmed_parts[0] if trimmed_parts else ""
1044
- return first if _is_plausible_repo_identity(first) else None
1045
-
1046
-
1047
- def _derive_target_repo_identity(
1048
- *,
1049
- requirement_text: str,
1050
- requirement_category: str | None,
1051
- check_config: dict[str, Any] | None,
1052
- evidence_refs: list[str] | None,
1053
- inferred_code_targets: list[str] | None,
1054
- ) -> str:
1055
- config = dict(check_config or {})
1056
- direct_candidates = [
1057
- config.get("repo_slug"),
1058
- config.get("repo_name"),
1059
- config.get("repo_key"),
1060
- config.get("repository"),
1061
- config.get("repository_name"),
1062
- config.get("service_name"),
1063
- config.get("service"),
1064
- ]
1065
- for candidate in direct_candidates:
1066
- text = str(candidate or "").strip()
1067
- if _is_plausible_repo_identity(text):
1068
- return text
1069
-
1070
- path_like_candidates = [
1071
- config.get("repo_path"),
1072
- config.get("repo_root"),
1073
- config.get("repository_path"),
1074
- *list(evidence_refs or []),
1075
- *list(inferred_code_targets or []),
1076
- ]
1077
- for candidate in path_like_candidates:
1078
- derived = _repo_identity_from_path_like(str(candidate or "").strip())
1079
- if derived and _is_plausible_repo_identity(derived):
1080
- return derived
1081
-
1082
- requirement = str(requirement_text or "").strip()
1083
- category = str(requirement_category or "").strip()
1084
- named_requirement_match = re.search(r"\b([A-Za-z][A-Za-z0-9_-]{2,})\b", requirement)
1085
- if named_requirement_match:
1086
- possible = str(named_requirement_match.group(1) or "").strip()
1087
- if _is_plausible_repo_identity(possible) and possible.casefold() != category.casefold():
1088
- return possible
1089
-
1090
- return "unknown-repo"
1091
-
1092
-
1093
- def build_requirement_interpretation(
1094
- *,
1095
- requirement_text: str,
1096
- requirement_category: str | None,
1097
- requirement_guidance: str | None,
1098
- evidence_refs: list[str] | None = None,
1099
- check_config: dict[str, Any] | None = None,
1100
- instruction_plan: InstructionPlan | None = None,
1101
- ) -> dict[str, Any]:
1102
- """Build a normalized row requirement interpretation artifact.
1103
-
1104
- When *instruction_plan* is provided and carries valid directives or
1105
- scoring criteria, its structured fields supersede the heuristic routing
1106
- for ``evidence_targets``, ``skill_objectives``, ``skills_needed``, and
1107
- ``acceptance_signals`` (DD-122.16).
1108
- """
1109
- requirement = str(requirement_text or "").strip()
1110
- category = str(requirement_category or "").strip()
1111
- guidance = str(requirement_guidance or "").strip()
1112
- refs = [str(ref).strip() for ref in (evidence_refs or []) if str(ref).strip()]
1113
- config = dict(check_config or {})
1114
-
1115
- guidance_skill_lines = [
1116
- line.strip()
1117
- for line in guidance.splitlines()
1118
- if line.strip() and not line.strip().lower().startswith("quy tắc:")
1119
- ]
1120
- app_config_only = requires_app_config_only(
1121
- requirement,
1122
- guidance,
1123
- config.get("detailed_guidance"),
1124
- config.get("confluence_notes"),
1125
- )
1126
- if app_config_only:
1127
- required_config_environments = extract_required_config_environments(
1128
- guidance,
1129
- config.get("detailed_guidance"),
1130
- )
1131
- if not required_config_environments:
1132
- required_config_environments = extract_required_config_environments(
1133
- config.get("confluence_notes"),
1134
- extract_disambiguation_hint(config),
1135
- )
1136
- else:
1137
- required_config_environments = extract_required_config_environments(
1138
- guidance,
1139
- config.get("detailed_guidance"),
1140
- config.get("confluence_notes"),
1141
- extract_disambiguation_hint(config),
1142
- )
1143
- lowered_requirement = f"{requirement} {' '.join(guidance_skill_lines)}".lower().strip()
1144
- lowered_category = category.lower()
1145
- lowered = f"{lowered_category} {requirement.lower()} {guidance.lower()}".strip()
1146
- risk_focus = (
1147
- "security"
1148
- if any(
1149
- kw in lowered
1150
- for kw in (
1151
- "security",
1152
- "auth",
1153
- "authentication",
1154
- "authorization",
1155
- "vulnerability",
1156
- "token",
1157
- "sast",
1158
- "dast",
1159
- "quét lỗ hổng",
1160
- "quet lo hong",
1161
- "kiểm thử bảo mật",
1162
- "kiem thu bao mat",
1163
- )
1164
- )
1165
- else "quality"
1166
- )
1167
-
1168
- doc_refs = [ref for ref in refs if _is_doc_like_ref(ref)]
1169
- code_refs = [ref for ref in refs if _is_code_like_ref(ref)]
1170
- evidence_targets: list[str] = []
1171
-
1172
- security_control_markers = (
1173
- "sast",
1174
- "dast",
1175
- "vulnerability",
1176
- "critical",
1177
- "high/critical",
1178
- "security scan",
1179
- "quét lỗ hổng",
1180
- "quet lo hong",
1181
- "kiem thu bao mat",
1182
- "kiểm thử bảo mật",
1183
- )
1184
- has_security_control_signal = any(marker in lowered_requirement for marker in security_control_markers)
1185
- implementation_code_markers = (
1186
- "/health",
1187
- "/metrics",
1188
- "prometheus",
1189
- "health endpoint",
1190
- "metrics endpoint",
1191
- "healthcheck",
1192
- "liveness",
1193
- "readiness",
1194
- "actuator",
1195
- "dashboard",
1196
- "bảng điều khiển",
1197
- "bang dieu khien",
1198
- )
1199
- has_implementation_code_signal = any(marker in lowered for marker in implementation_code_markers)
1200
- explicit_docs_requirement_markers = (
1201
- "tài liệu",
1202
- "documentation",
1203
- "runbook",
1204
- "guideline",
1205
- "guide",
1206
- "hướng dẫn",
1207
- "huong dan",
1208
- "grafana",
1209
- "openapi",
1210
- "swagger",
1211
- "policy",
1212
- "quy trình",
1213
- "quy trinh",
1214
- )
1215
- has_explicit_docs_requirement_signal = any(
1216
- marker in lowered_requirement for marker in explicit_docs_requirement_markers
1217
- )
1218
- migration_requirement = any(
1219
- marker in lowered_requirement or marker in lowered_category
1220
- for marker in (
1221
- "flyway",
1222
- "liquibase",
1223
- "migration",
1224
- "migrate",
1225
- "changelog",
1226
- "changeset",
1227
- )
1228
- )
1229
-
1230
- # Documentation-only routing must be driven by explicit artifact intent.
1231
- # Broad domain terms (e.g., architecture/SLA/support) can still represent
1232
- # implementation checks and should not force docs-only evidence targets.
1233
- docs_domain_markers = (
1234
- "tài liệu",
1235
- "documentation",
1236
- "runbook",
1237
- "guideline",
1238
- "guide",
1239
- "hướng dẫn",
1240
- "huong dan",
1241
- "openapi",
1242
- "swagger",
1243
- "postman",
1244
- "sequence diagram",
1245
- "data flow",
1246
- "screenshot",
1247
- "troubleshooting",
1248
- "wiki",
1249
- "gitbook",
1250
- "confluence",
1251
- "mttr",
1252
- )
1253
- docs_domain_signal = any(kw in lowered for kw in docs_domain_markers)
1254
- has_code_marker_signal = any(marker in lowered for marker in CODE_MARKER_KEYWORDS)
1255
- has_docs_marker_signal = any(marker in lowered for marker in DOCS_MARKER_ALLOWLIST)
1256
- has_semantic_code_signal = has_security_control_signal or has_implementation_code_signal or has_code_marker_signal
1257
- is_docs_only_domain = docs_domain_signal and not has_security_control_signal and not has_implementation_code_signal
1258
- deployment_docs_sensitive = _is_deployment_docs_sensitive_requirement(requirement, category)
1259
- infra_or_deployment_signal = deployment_docs_sensitive or any(
1260
- marker in lowered
1261
- for marker in (
1262
- "dockerfile",
1263
- "containerfile",
1264
- "kubernetes",
1265
- "k8s",
1266
- "helm",
1267
- "terraform",
1268
- "deployment",
1269
- "triển khai",
1270
- "trien khai",
1271
- )
1272
- )
1273
- has_semantic_docs_signal = (
1274
- is_docs_only_domain
1275
- or deployment_docs_sensitive
1276
- or has_explicit_docs_requirement_signal
1277
- or has_docs_marker_signal
1278
- )
1279
- project_scope_required = (
1280
- any(
1281
- marker in lowered
1282
- for marker in (
1283
- "dependency graph",
1284
- "circular dependency",
1285
- "dependency cycle",
1286
- "cycle trong dependency graph",
1287
- "dependency/lib",
1288
- "dependency lib",
1289
- "modules/services",
1290
- "service/module",
1291
- "module/service",
1292
- "dùng chung",
1293
- "dung chung",
1294
- "lib tập trung",
1295
- "lib tap trung",
1296
- "dependency tập trung",
1297
- "dependency tap trung",
1298
- )
1299
- )
1300
- and not infra_or_deployment_signal
1301
- )
1302
-
1303
- # Route targeting should primarily follow requirement semantics, while
1304
- # matcher seed refs are only tie-breakers for ambiguous rows.
1305
- if has_semantic_docs_signal or (doc_refs and not has_semantic_code_signal):
1306
- evidence_targets.append("docs")
1307
-
1308
- if (
1309
- has_semantic_code_signal
1310
- or (code_refs and not has_semantic_docs_signal)
1311
- or (not evidence_targets and not doc_refs)
1312
- ):
1313
- evidence_targets.append("code")
1314
-
1315
- if has_implementation_code_signal and not has_explicit_docs_requirement_signal and not deployment_docs_sensitive:
1316
- evidence_targets = [target for target in evidence_targets if target != "docs"]
1317
-
1318
- if app_config_only or migration_requirement:
1319
- evidence_targets = ["code"]
1320
-
1321
- evidence_targets = ["code", "docs"] if not evidence_targets else list(dict.fromkeys(evidence_targets))
1322
-
1323
- skill_objective_keywords: dict[str, tuple[str, ...]] = {
1324
- # Advisory-only signal: can help, but should not force a strict skill path.
1325
- "analyze_operational_readiness": (
1326
- "sizing",
1327
- "capacity",
1328
- "performance",
1329
- "load test",
1330
- "stress test",
1331
- "benchmark",
1332
- ),
1333
- # Strong signal: documentation artifact checks benefit from domain playbooks/runbooks.
1334
- "analyze_documentation_artifacts": (
1335
- "sequence diagram",
1336
- "data flow",
1337
- "technical specs",
1338
- "swagger",
1339
- "openapi",
1340
- "postman",
1341
- "sandbox",
1342
- "troubleshooting",
1343
- "user manual",
1344
- "hướng dẫn sử dụng",
1345
- "huong dan su dung",
1346
- "mttr",
1347
- ),
1348
- # Strong signal: requirement is typically process/tooling heavy.
1349
- "analyze_support_sla_controls": (
1350
- "sla",
1351
- "support",
1352
- "incident",
1353
- "oncall",
1354
- "runbook",
1355
- "quy trình",
1356
- "quy trinh",
1357
- ),
1358
- "analyze_compliance_controls": (
1359
- "compliance",
1360
- "policy",
1361
- "regulatory",
1362
- "governance",
1363
- "kiểm soát",
1364
- "kiem soat",
1365
- ),
1366
- "analyze_security_scan_controls": (
1367
- "sast",
1368
- "dast",
1369
- "security scan",
1370
- "vulnerability scan",
1371
- "critical",
1372
- "high/critical",
1373
- "quét lỗ hổng",
1374
- "quet lo hong",
1375
- ),
1376
- "analyze_tooling_automation_guidance": (
1377
- "workflow",
1378
- "orchestrator",
1379
- "playbook",
1380
- "cli",
1381
- "command",
1382
- "tooling",
1383
- "lsp",
1384
- "mypy",
1385
- "pyright",
1386
- "ruff",
1387
- "uv",
1388
- "typer",
1389
- "confluence",
1390
- "bitbucket",
1391
- "grafana",
1392
- "bpmn",
1393
- "automation",
1394
- "script",
1395
- "sync",
1396
- "integration guide",
1397
- "documentation process",
1398
- ),
1399
- "analyze_migration_scripts": (
1400
- "migration",
1401
- "migration script",
1402
- "liquibase",
1403
- "flyway",
1404
- "db/migration",
1405
- "db/changelog",
1406
- "changelog",
1407
- "schema evolution",
1408
- "versioned sql",
1409
- ),
1410
- "analyze_dependency_cycles": (
1411
- "circular dependency",
1412
- "dependency cycle",
1413
- "dependency graph",
1414
- "dependency/lib",
1415
- "dependency lib",
1416
- "shared-library",
1417
- "shared library",
1418
- "service/module",
1419
- "module/service",
1420
- "module service",
1421
- "dùng chung",
1422
- "dung chung",
1423
- "lib tập trung",
1424
- "lib tap trung",
1425
- "dependency tập trung",
1426
- "dependency tap trung",
1427
- "chu trình phụ thuộc",
1428
- "chu trinh phu thuoc",
1429
- "phụ thuộc vòng tròn",
1430
- "phu thuoc vong tron",
1431
- ),
1432
- # Phase 133: shared-library usage analysis (CL-003-like rows)
1433
- "analyze_shared_library_usage": (
1434
- "shared library",
1435
- "shared-library",
1436
- "thư viện dùng chung",
1437
- "lib tập trung",
1438
- "dependency tập trung",
1439
- "centralized lib",
1440
- "common-lib",
1441
- "LIB project",
1442
- "88724032",
1443
- "dùng chung",
1444
- "shared infrastructure",
1445
- ),
1446
- "analyze_architecture_compliance": (
1447
- "hexagonal",
1448
- "clean architecture",
1449
- "ports & adapters",
1450
- "ports and adapters",
1451
- "domain logic",
1452
- "domain independence",
1453
- "framework-agnostic",
1454
- "framework agnostic",
1455
- "domain-driven",
1456
- "ddd",
1457
- "kiến trúc sạch",
1458
- "kien truc sach",
1459
- ),
1460
- "analyze_public_interface_boundaries": (
1461
- "explicit public interface",
1462
- "interface/contract",
1463
- "interface contract",
1464
- "api client",
1465
- "message contract",
1466
- "import class implementation",
1467
- "không import class implementation",
1468
- "khong import class implementation",
1469
- "concrete implementation",
1470
- "concrete class",
1471
- "public interface",
1472
- "public contract",
1473
- ),
1474
- "discover_app_config": (
1475
- "app-config",
1476
- "app config",
1477
- "application.yml",
1478
- "application.yaml",
1479
- "application.properties",
1480
- "configmap",
1481
- "helm",
1482
- "environment config",
1483
- "production config",
1484
- ),
1485
- "resolve_environment_specific_config": (
1486
- "prod",
1487
- "production",
1488
- "uat",
1489
- "sit",
1490
- "stg",
1491
- "staging",
1492
- "dev",
1493
- "profile-specific",
1494
- "môi trường",
1495
- "moi truong",
1496
- ),
1497
- "analyze_datasource_isolation": (
1498
- "datasource",
1499
- "schema",
1500
- "db instance",
1501
- "database instance",
1502
- "pool limit",
1503
- "maximum-pool-size",
1504
- "minimum-idle",
1505
- "max-lifetime",
1506
- "separate schema",
1507
- "separate database",
1508
- ),
1509
- "compare_cross_service_config_separation": (
1510
- "shared datasource",
1511
- "shared schema",
1512
- "shared database",
1513
- "shared memory",
1514
- "shared-memory",
1515
- "direct database",
1516
- "direct db",
1517
- "gọi trực tiếp vào database",
1518
- "goi truc tiep vao database",
1519
- "cross-service config",
1520
- "separate schema",
1521
- "separate db instance",
1522
- ),
1523
- }
1524
- # Keep documentation artifact signals advisory by default. In practice these
1525
- # rows are often grounded effectively via docs/code tools and forcing strict
1526
- # execution-class skill calls increases discovery churn without evidence gain.
1527
- strict_skill_objectives = frozenset(
1528
- {
1529
- "analyze_support_sla_controls",
1530
- "analyze_compliance_controls",
1531
- "analyze_security_scan_controls",
1532
- "analyze_tooling_automation_guidance",
1533
- "analyze_migration_scripts",
1534
- "analyze_architecture_compliance",
1535
- "analyze_public_interface_boundaries",
1536
- "analyze_shared_library_usage",
1537
- "discover_app_config",
1538
- "resolve_environment_specific_config",
1539
- "analyze_datasource_isolation",
1540
- "compare_cross_service_config_separation",
1541
- }
1542
- )
1543
- skill_objectives: list[str] = []
1544
- matched_signals: list[tuple[str, str, str]] = []
1545
- for objective, keywords in skill_objective_keywords.items():
1546
- matched_keyword = next((keyword for keyword in keywords if keyword in lowered_requirement), None)
1547
- matched_scope = "requirement"
1548
- if not matched_keyword:
1549
- matched_keyword = next((keyword for keyword in keywords if keyword in lowered_category), None)
1550
- matched_scope = "category"
1551
- if not matched_keyword:
1552
- continue
1553
- skill_objectives.append(objective)
1554
- matched_signals.append((objective, matched_keyword, matched_scope))
1555
-
1556
- # Prefer architecture-compliance objective over generic dependency-cycle
1557
- # objective when row text clearly describes hexagonal / clean architecture.
1558
- if "analyze_architecture_compliance" in skill_objectives and "analyze_dependency_cycles" in skill_objectives:
1559
- skill_objectives = [objective for objective in skill_objectives if objective != "analyze_dependency_cycles"]
1560
- matched_signals = [signal for signal in matched_signals if signal[0] != "analyze_dependency_cycles"]
1561
-
1562
- explicit_interface_requirement = any(
1563
- marker in lowered_requirement
1564
- for marker in (
1565
- "explicit public interface",
1566
- "interface/contract",
1567
- "interface contract",
1568
- "api client",
1569
- "message contract",
1570
- "import class implementation",
1571
- "không import class implementation",
1572
- "khong import class implementation",
1573
- "concrete implementation",
1574
- "concrete class",
1575
- )
1576
- )
1577
- if explicit_interface_requirement and "analyze_dependency_cycles" in skill_objectives:
1578
- skill_objectives = [objective for objective in skill_objectives if objective != "analyze_dependency_cycles"]
1579
- matched_signals = [signal for signal in matched_signals if signal[0] != "analyze_dependency_cycles"]
1580
- if explicit_interface_requirement and "analyze_architecture_compliance" in skill_objectives:
1581
- skill_objectives = [
1582
- objective for objective in skill_objectives if objective != "analyze_architecture_compliance"
1583
- ]
1584
- matched_signals = [signal for signal in matched_signals if signal[0] != "analyze_architecture_compliance"]
1585
- if explicit_interface_requirement and "analyze_public_interface_boundaries" not in skill_objectives:
1586
- skill_objectives.append("analyze_public_interface_boundaries")
1587
- matched_signals.append(("analyze_public_interface_boundaries", "explicit public interface", "requirement"))
1588
- if migration_requirement and "analyze_tooling_automation_guidance" in skill_objectives:
1589
- skill_objectives = [
1590
- objective for objective in skill_objectives if objective != "analyze_tooling_automation_guidance"
1591
- ]
1592
- matched_signals = [signal for signal in matched_signals if signal[0] != "analyze_tooling_automation_guidance"]
1593
- if migration_requirement and "analyze_migration_scripts" not in skill_objectives:
1594
- skill_objectives.append("analyze_migration_scripts")
1595
- matched_signals.append(("analyze_migration_scripts", "liquibase/flyway", "requirement"))
1596
-
1597
- # Security scan rows under SLA sections should stay security-focused. Keep
1598
- # SLA/support objective only when explicitly requested by requirement text.
1599
- if has_security_control_signal and "analyze_security_scan_controls" in skill_objectives:
1600
- support_from_requirement = any(
1601
- objective == "analyze_support_sla_controls" and scope == "requirement"
1602
- for objective, _, scope in matched_signals
1603
- )
1604
- if not support_from_requirement:
1605
- skill_objectives = [
1606
- objective for objective in skill_objectives if objective != "analyze_support_sla_controls"
1607
- ]
1608
- matched_signals = [signal for signal in matched_signals if signal[0] != "analyze_support_sla_controls"]
1609
-
1610
- strict_requirement_signals = [
1611
- signal for signal in matched_signals if signal[0] in strict_skill_objectives and signal[2] == "requirement"
1612
- ]
1613
- if "analyze_dependency_cycles" in skill_objectives and not strict_requirement_signals:
1614
- dependency_requirement_match = next(
1615
- (
1616
- signal
1617
- for signal in matched_signals
1618
- if signal[0] == "analyze_dependency_cycles" and signal[1] in lowered_requirement
1619
- ),
1620
- None,
1621
- )
1622
- if dependency_requirement_match is not None:
1623
- strict_requirement_signals.append(
1624
- ("analyze_dependency_cycles", dependency_requirement_match[1], "requirement")
1625
- )
1626
- strict_category_signals = [
1627
- signal for signal in matched_signals if signal[0] in strict_skill_objectives and signal[2] == "category"
1628
- ]
1629
- if strict_requirement_signals:
1630
- skills_needed = True
1631
- skill_signal_keyword = strict_requirement_signals[0][1]
1632
- skills_needed_reason = f"requirement_keyword:{skill_signal_keyword}"
1633
- elif strict_category_signals:
1634
- skills_needed = False
1635
- skill_signal_keyword = strict_category_signals[0][1]
1636
- skills_needed_reason = f"advisory_keyword:{skill_signal_keyword}"
1637
- elif matched_signals:
1638
- skills_needed = False
1639
- skill_signal_keyword = matched_signals[0][1]
1640
- skills_needed_reason = f"advisory_keyword:{skill_signal_keyword}"
1641
- else:
1642
- skills_needed = False
1643
- skills_needed_reason = "no_skill_keyword_signal"
1644
-
1645
- acceptance_signals: list[str] = []
1646
- for line in guidance.splitlines():
1647
- normalized = " ".join(line.split())
1648
- if not normalized:
1649
- continue
1650
- if normalized.lower().startswith(("minh chứng kỳ vọng:", "cách kiểm tra:", "quy tắc:", "nội dung chính:")):
1651
- acceptance_signals.append(normalized)
1652
- if not acceptance_signals and category:
1653
- acceptance_signals.append(f"Ưu tiên bám sát nhóm kiểm tra: {category}")
1654
-
1655
- # Marker taxonomy + conflict diagnostics
1656
- docs_markers: list[str] = [marker for marker in DOCS_MARKER_ALLOWLIST if marker in lowered]
1657
- code_markers: list[str] = [marker for marker in CODE_MARKER_KEYWORDS if marker in lowered]
1658
- process_markers: list[str] = [marker for marker in PROCESS_MARKER_KEYWORDS if marker in lowered]
1659
-
1660
- # Populate marker_conflicts when both docs and code markers are active
1661
- marker_conflicts: list[str] = []
1662
- if docs_markers and code_markers:
1663
- for dm in docs_markers:
1664
- for cm in code_markers:
1665
- marker_conflicts.append(f"docs_marker '{dm}' conflicts with code_marker '{cm}'")
1666
-
1667
- check_manual_raw = str(config.get("check_manual") or "").strip()
1668
- detailed_guidance = str(config.get("detailed_guidance") or "").strip()
1669
- evidence_hint = str(config.get("confluence_evidence_hint") or "").strip()
1670
- guidance_skip, guidance_skip_decision, guidance_skip_source_text, guidance_skip_reason = _classify_guidance_skip(
1671
- detailed_guidance,
1672
- evidence_hint,
1673
- requirement_guidance,
1674
- )
1675
- manual_hint_text = " ".join(part for part in (detailed_guidance, evidence_hint) if part).lower()
1676
- manual_hint_markers = (
1677
- "con người làm",
1678
- "manual verification",
1679
- "manual review",
1680
- "kiểm tra thủ công",
1681
- "xác minh thủ công",
1682
- "đánh giá thủ công",
1683
- )
1684
- check_manual = check_manual_raw.lower() in {"1", "true", "yes", "on", "manual"} or any(
1685
- marker in manual_hint_text for marker in manual_hint_markers
1686
- )
1687
-
1688
- inferred_code_targets = list(dict.fromkeys(_infer_code_targets_from_requirement(requirement, category) + code_refs))
1689
-
1690
- app_config_discovery = None
1691
- if app_config_only or any(
1692
- objective in skill_objectives
1693
- for objective in (
1694
- "discover_app_config",
1695
- "resolve_environment_specific_config",
1696
- "analyze_datasource_isolation",
1697
- "compare_cross_service_config_separation",
1698
- )
1699
- ):
1700
- app_config_discovery = build_app_config_discovery_result(
1701
- target_repo=_derive_target_repo_identity(
1702
- requirement_text=requirement,
1703
- requirement_category=category,
1704
- check_config=config,
1705
- evidence_refs=refs,
1706
- inferred_code_targets=inferred_code_targets,
1707
- ),
1708
- target_environment=(required_config_environments[0] if required_config_environments else None),
1709
- config_sources=discover_config_sources(inferred_code_targets[:10]),
1710
- )
1711
-
1712
- # --- DD-122.16: InstructionPlan supersedes heuristic routing ---
1713
- plan_metadata: dict[str, Any] = {}
1714
- if instruction_plan is not None:
1715
- plan_metadata["instruction_plan"] = instruction_plan.to_dict()
1716
- plan_metadata["instruction_plan_id"] = getattr(instruction_plan, "plan_id", "")
1717
-
1718
- # Override evidence_targets when plan provides structured directives
1719
- plan_evidence_targets = getattr(instruction_plan, "evidence_targets", None)
1720
- if plan_evidence_targets:
1721
- evidence_targets = list(dict.fromkeys(plan_evidence_targets))
1722
-
1723
- # Preserve semantic audit-skill objectives from requirement heuristics,
1724
- # then augment with instruction-plan directives instead of overwriting them.
1725
- valid_directives = getattr(instruction_plan, "valid_directives", ())
1726
- if valid_directives:
1727
- plan_skill_objectives = [
1728
- d.directive_type for d in valid_directives if d.directive_type not in ("skip_infra", "skip_manual")
1729
- ]
1730
- if plan_skill_objectives:
1731
- merged_objectives = list(dict.fromkeys([*skill_objectives, *plan_skill_objectives]))
1732
- skill_objectives = merged_objectives[:4]
1733
- skills_needed = True
1734
- if not str(skills_needed_reason or "").startswith("requirement_keyword:"):
1735
- skills_needed_reason = f"instruction_plan:{instruction_plan.plan_id}"
1736
-
1737
- # Override acceptance_signals from scoring criteria
1738
- plan_pass_criteria = getattr(instruction_plan, "pass_criteria", ())
1739
- plan_fail_criteria = getattr(instruction_plan, "fail_criteria", ())
1740
- if plan_pass_criteria or plan_fail_criteria:
1741
- plan_acceptance = [c.criterion for c in plan_pass_criteria if c.is_valid()]
1742
- plan_acceptance += [f"FAIL if: {c.criterion}" for c in plan_fail_criteria if c.is_valid()]
1743
- if plan_acceptance:
1744
- acceptance_signals = plan_acceptance[:6]
1745
-
1746
- return {
1747
- "intent": requirement[:240],
1748
- "control_objective": category or "uncategorized",
1749
- "evidence_targets": evidence_targets,
1750
- "code_targets": inferred_code_targets[:5],
1751
- "risk_focus": risk_focus,
1752
- "project_scope_required": project_scope_required,
1753
- "check_manual": check_manual,
1754
- "guidance_skip": guidance_skip,
1755
- "guidance_skip_decision": guidance_skip_decision,
1756
- "guidance_skip_source_text": guidance_skip_source_text,
1757
- "guidance_skip_reason": guidance_skip_reason,
1758
- "detailed_guidance": detailed_guidance,
1759
- "app_config_only": app_config_only,
1760
- "required_config_environments": required_config_environments,
1761
- "app_config_discovery": (
1762
- {
1763
- "target_repo": app_config_discovery.target_repo,
1764
- "target_environment": app_config_discovery.target_environment,
1765
- "environment_detected": app_config_discovery.environment_detected,
1766
- "discovery_status": app_config_discovery.discovery_status,
1767
- "config_sources": [
1768
- {
1769
- "source_type": item.source_type,
1770
- "source_path": item.source_path,
1771
- "source_ref": item.source_ref,
1772
- "environment_relevance": item.environment_relevance,
1773
- "discovery_rank": item.discovery_rank,
1774
- "keys_detected": list(item.keys_detected),
1775
- "decisive_candidate": item.decisive_candidate,
1776
- "redaction_applied": item.redaction_applied,
1777
- }
1778
- for item in app_config_discovery.config_sources
1779
- ],
1780
- "precedence_chain": [
1781
- {
1782
- "step_rank": step.step_rank,
1783
- "source_type": step.source_type,
1784
- "source_ref": step.source_ref,
1785
- "override_kind": step.override_kind,
1786
- "applies_to_environment": step.applies_to_environment,
1787
- "resolution_note": step.resolution_note,
1788
- }
1789
- for step in app_config_discovery.precedence_chain
1790
- ],
1791
- "findings": [
1792
- {
1793
- "finding_type": finding.finding_type,
1794
- "finding_value_kind": finding.finding_value_kind,
1795
- "evidence_strength": finding.evidence_strength,
1796
- "compared_subjects": list(finding.compared_subjects),
1797
- "supports_row_decision": finding.supports_row_decision,
1798
- "evidence_refs": list(finding.evidence_refs),
1799
- "notes": finding.notes,
1800
- }
1801
- for finding in app_config_discovery.findings
1802
- ],
1803
- "unresolved_gaps": [
1804
- {
1805
- "gap_type": gap.gap_type,
1806
- "severity": gap.severity,
1807
- "details": gap.details,
1808
- "remaining_candidates": list(gap.remaining_candidates),
1809
- }
1810
- for gap in app_config_discovery.unresolved_gaps
1811
- ],
1812
- "confidence": app_config_discovery.confidence,
1813
- "decisive": app_config_discovery.decisive,
1814
- }
1815
- if app_config_discovery is not None
1816
- else None
1817
- ),
1818
- "project_scope_strategy": (
1819
- [
1820
- "Ưu tiên tìm bằng chứng wiring giữa module/service trong code trước (client, import, config, integration points).",
1821
- "Đối chiếu thêm tài liệu kiến trúc/thiết kế tổng thể hoặc ADR mô tả dependency rules giữa module/service.",
1822
- "Chỉ được kết luận PASS nếu có artifact project-level xác nhận dependency graph/cycle analysis.",
1823
- "Nếu chỉ có bằng chứng repo-local hoặc tài liệu kiến trúc mức cao, coi kết luận là sơ bộ; không được PASS tuyệt đối.",
1824
- "Không dùng testcase, KBKT, hoặc build metadata chung làm bằng chứng chính cho yêu cầu này trừ khi yêu cầu gọi đích danh chúng.",
1825
- ]
1826
- if project_scope_required
1827
- else []
1828
- ),
1829
- "authoritative_artifact_expectations": (
1830
- [
1831
- "dependency graph toàn project",
1832
- "dependency cycle report",
1833
- "mvn dependency:tree hoặc Gradle dependency tree có phạm vi module/service",
1834
- "ArchUnit / jdeps / depcruise / madge / nx dep-graph output",
1835
- ]
1836
- if project_scope_required
1837
- else []
1838
- ),
1839
- "skills_needed": skills_needed,
1840
- "skills_needed_reason": skills_needed_reason,
1841
- "skill_objectives": skill_objectives[:4],
1842
- "acceptance_signals": acceptance_signals[:6],
1843
- "docs_markers": docs_markers,
1844
- "code_markers": code_markers,
1845
- "process_markers": process_markers,
1846
- "marker_conflicts": marker_conflicts,
1847
- **plan_metadata,
1848
- }
1849
-
1850
-
1851
- @dataclass
1852
- class RowEvaluationResult:
1853
- """Result of evaluating a single row."""
1854
-
1855
- row_id: str
1856
- check_id: str
1857
- status: RowStatus
1858
- score: float
1859
- score_breakdown: ScoreBreakdown
1860
- reason: str
1861
- finding: str
1862
- evidence_anchors: list[EvidenceAnchor]
1863
- provenance: RowProvenance
1864
- reasoning: str = "" # LLM chain-of-thought (from RowEvaluationResponse.reasoning)
1865
- severity: str | None = None
1866
- priority: str = "P2"
1867
- effort: str = "M"
1868
- recommendation: str | None = None
1869
- fix_suggestions: list[str] = field(default_factory=list)
1870
- score_1_5: int | None = None
1871
- cache_hit: bool = False
1872
- error_message: str | None = None
1873
- retry_count: int = 0
1874
- retry_metadata: dict[str, Any] = field(default_factory=dict)
1875
- retrieval_trace: dict[str, Any] | None = None
1876
- coverage_requirements: float | None = None
1877
- coverage_code: float | None = None
1878
- coverage_docs: float | None = None
1879
- coverage_confidence: float | None = None
1880
- coverage_deterministic_downgrade_flag: bool = False
1881
- # FR-305: Structured metadata fields for evaluation quality analysis
1882
- evidence_strength: str | None = None
1883
- termination_reason: str | None = None
1884
- check_description: str | None = None
1885
- tool_calls_used: int | None = None
1886
-
1887
- @property
1888
- def is_error(self) -> bool:
1889
- return self.status == RowStatus.ERROR
1890
-
1891
-
1892
- class EvidenceStrength(StrEnum):
1893
- """Classification of evidence quality for structured metadata (FR-305)."""
1894
-
1895
- STRONG = "STRONG"
1896
- MODERATE = "MODERATE"
1897
- WEAK = "WEAK"
1898
- NONE = "NONE"
1899
-
1900
-
1901
- def classify_evidence_strength(
1902
- evidence_refs: list[str] | None,
1903
- retrieval_trace: dict[str, Any] | None = None,
1904
- ) -> str:
1905
- """Classify evidence strength using weighted quality factors.
1906
-
1907
- Weighted factors:
1908
- - Source diversity bonus: evidence spanning docs + code receives 2x boost.
1909
- - Short-content penalty: trace entries with content <200 bytes receive 0.5x.
1910
- - Keyword relevance boost: if trace provides check keywords and refs match,
1911
- apply 1.5x boost.
1912
-
1913
- Thresholds:
1914
- - STRONG: score >= 4.0
1915
- - MODERATE: score >= 2.0
1916
- - WEAK: score >= 0.5
1917
- - NONE: score < 0.5
1918
- """
1919
- refs = [str(r).strip() for r in (evidence_refs or []) if str(r).strip()]
1920
- trace_refs = _extract_trace_ref_values(retrieval_trace)
1921
- all_refs = list(dict.fromkeys(refs + trace_refs))
1922
-
1923
- if not all_refs:
1924
- return EvidenceStrength.NONE.value
1925
-
1926
- # Preserve existing hard override used by tool-first loop traces.
1927
- if isinstance(retrieval_trace, dict):
1928
- tool_first_loop = retrieval_trace.get("tool_first_loop")
1929
- if isinstance(tool_first_loop, dict):
1930
- evidence_refs_count = tool_first_loop.get("evidence_refs_count")
1931
- if isinstance(evidence_refs_count, int) and evidence_refs_count == 0:
1932
- return EvidenceStrength.NONE.value
1933
-
1934
- short_refs = _extract_short_content_refs(retrieval_trace)
1935
- weighted_score = 0.0
1936
- for ref in all_refs:
1937
- contribution = 1.0
1938
- if ref in short_refs:
1939
- contribution *= 0.5
1940
- weighted_score += contribution
1941
-
1942
- has_docs = any(_is_doc_like_ref(ref) for ref in all_refs)
1943
- has_code = any(_is_code_like_ref(ref) for ref in all_refs)
1944
- if has_docs and has_code:
1945
- weighted_score *= 2.0
1946
-
1947
- keywords = _extract_relevance_keywords(retrieval_trace)
1948
- if keywords and _refs_match_keywords(all_refs, keywords):
1949
- weighted_score *= 1.5
1950
-
1951
- if weighted_score >= 4.0:
1952
- return EvidenceStrength.STRONG.value
1953
- if weighted_score >= 2.0:
1954
- return EvidenceStrength.MODERATE.value
1955
- if weighted_score >= 0.5:
1956
- return EvidenceStrength.WEAK.value
1957
- return EvidenceStrength.NONE.value
1958
-
1959
-
1960
- def _extract_short_content_refs(retrieval_trace: dict[str, Any] | None) -> set[str]:
1961
- if not isinstance(retrieval_trace, dict):
1962
- return set()
1963
-
1964
- short_refs: set[str] = set()
1965
-
1966
- def _candidate_ref(item: dict[str, Any]) -> str:
1967
- for key in ("source_path", "source_url", "ref_value", "ref", "path"):
1968
- raw = item.get(key)
1969
- if raw is None:
1970
- continue
1971
- value = str(raw).strip()
1972
- if value:
1973
- return value
1974
- return ""
1975
-
1976
- def _candidate_length(item: dict[str, Any]) -> int | None:
1977
- for key in ("content_text", "text", "content", "snippet"):
1978
- raw = item.get(key)
1979
- if raw is None:
1980
- continue
1981
- value = str(raw)
1982
- if value:
1983
- return len(value.encode("utf-8"))
1984
- return None
1985
-
1986
- def _iter_candidates(section: Any) -> list[dict[str, Any]]:
1987
- if isinstance(section, dict):
1988
- top_k = section.get("top_k")
1989
- if isinstance(top_k, list):
1990
- return [item for item in top_k if isinstance(item, dict)]
1991
- return []
1992
- if isinstance(section, list):
1993
- return [item for item in section if isinstance(item, dict)]
1994
- return []
1995
-
1996
- for section_name in ("docs", "code"):
1997
- for item in _iter_candidates(retrieval_trace.get(section_name)):
1998
- ref = _candidate_ref(item)
1999
- if not ref:
2000
- continue
2001
- content_length = _candidate_length(item)
2002
- if content_length is not None and content_length < 200:
2003
- short_refs.add(ref)
2004
- return short_refs
2005
-
2006
-
2007
- def _extract_relevance_keywords(retrieval_trace: dict[str, Any] | None) -> set[str]:
2008
- if not isinstance(retrieval_trace, dict):
2009
- return set()
2010
-
2011
- keywords: set[str] = set()
2012
- candidate_keys = ("check_keywords", "keywords", "query_terms", "search_terms", "terms")
2013
-
2014
- def _consume(value: Any) -> None:
2015
- if isinstance(value, str):
2016
- for token in re.findall(r"[a-z0-9][a-z0-9._-]*", value.lower()):
2017
- if len(token) >= 3:
2018
- keywords.add(token)
2019
- return
2020
- if isinstance(value, (list, tuple, set)):
2021
- for item in value:
2022
- _consume(item)
2023
- return
2024
- if isinstance(value, dict):
2025
- for nested in value.values():
2026
- _consume(nested)
2027
-
2028
- for key in candidate_keys:
2029
- _consume(retrieval_trace.get(key))
2030
- tool_loop = retrieval_trace.get("tool_first_loop")
2031
- if isinstance(tool_loop, dict):
2032
- for key in candidate_keys:
2033
- _consume(tool_loop.get(key))
2034
- return keywords
2035
-
2036
-
2037
- def _refs_match_keywords(refs: list[str], keywords: set[str]) -> bool:
2038
- if not refs or not keywords:
2039
- return False
2040
- lowered_refs = [ref.lower() for ref in refs if ref]
2041
- return any(keyword in ref for keyword in keywords for ref in lowered_refs)
2042
-
2043
-
2044
- def _severity_from_status(status: RowStatus, score: float) -> str | None:
2045
- """Map status/score to rough severity bucket."""
2046
- if status in {RowStatus.PASS, RowStatus.NA}:
2047
- return None
2048
- if status == RowStatus.ERROR:
2049
- return "HIGH"
2050
- if score < 20:
2051
- return "HIGH"
2052
- if score < 40:
2053
- return "MEDIUM"
2054
- if score < 90:
2055
- return "LOW"
2056
- return None
2057
-
2058
-
2059
- def _score_to_1_5(score_percent: float) -> int:
2060
- """Convert percent score to checklist 1-5 scale."""
2061
- if score_percent >= 90:
2062
- return 5
2063
- if score_percent >= 70:
2064
- return 4
2065
- if score_percent >= 50:
2066
- return 3
2067
- if score_percent >= 30:
2068
- return 2
2069
- return 1
2070
-
2071
-
2072
- __all__ = [
2073
- "CODE_MARKER_KEYWORDS",
2074
- "DETERMINISTIC_CHECK_TYPES",
2075
- "DOCS_MARKER_ALLOWLIST",
2076
- "PROCESS_MARKER_KEYWORDS",
2077
- "SEMANTIC_CHECK_TYPES",
2078
- "CheckCategory",
2079
- "ConsistencyRetryMode",
2080
- "EvidenceStrength",
2081
- "RouteDecision",
2082
- "RouteOverride",
2083
- "RowEvaluationResult",
2084
- "RowEvaluatorConfig",
2085
- "RowLLMMode",
2086
- "RowUnifiedMode",
2087
- "_classify_check_type",
2088
- "_score_to_1_5",
2089
- "_severity_from_status",
2090
- "apply_route_override",
2091
- "build_requirement_interpretation",
2092
- "classify_evidence_strength",
2093
- "compute_cache_key",
2094
- "compute_requirement_coverage_metrics",
2095
- "estimate_evidence_clarity",
2096
- "extract_disambiguation_hint",
2097
- "extract_required_config_environments",
2098
- "extract_requirement_guidance",
2099
- "is_deterministic",
2100
- "needs_llm",
2101
- "requires_app_config_only",
2102
- ]