@ngocsangairvds/vsaf 3.2.14 → 3.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1441) hide show
  1. package/bin/vsaf.js +13 -0
  2. package/package.json +1 -1
  3. package/src/config.js +167 -0
  4. package/src/global.js +1 -48
  5. package/src/utils.js +44 -1
  6. package/tools/vds-scripts/Makefile +9 -31
  7. package/tools/vds-scripts/docker/docker-compose.cli.yml +1 -117
  8. package/tools/vds-scripts/docker/docker-compose.services.yml +1 -40
  9. package/tools/vds-scripts/docker/infrastructure/init-schemas.sql +0 -34
  10. package/tools/vds-scripts/docker/infrastructure/pgbouncer/pgbouncer.ini +2 -6
  11. package/tools/vds-scripts/pyproject.toml +1 -33
  12. package/tools/vds-scripts/uv.lock +80 -1651
  13. package/tools/vds-scripts/vds_cli/pyproject.toml +3 -0
  14. package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +1 -127
  15. package/tools/vds-scripts/vds_cli/src/vds_cli/commands/lint_cli.py +1 -20
  16. package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +0 -100
  17. package/tools/vds-scripts/vds_cli/tests/conftest.py +0 -2
  18. package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +0 -25
  19. package/tools/vds-scripts/vds_cli/tests/unit/test_lint_cli.py +2 -2
  20. package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +0 -2
  21. package/tools/vds-scripts/CLOSURE.md +0 -340
  22. package/tools/vds-scripts/ECOSYSTEM-CHANGELOG.md +0 -52
  23. package/tools/vds-scripts/ECOSYSTEM-DOCS.md +0 -602
  24. package/tools/vds-scripts/ECOSYSTEM_ALIGNMENT.md +0 -133
  25. package/tools/vds-scripts/ENV-HYGIENE-OPS-NOTE.md +0 -65
  26. package/tools/vds-scripts/INVESTIGATION-cloud-401.md +0 -103
  27. package/tools/vds-scripts/MEM0_2.0_API_REFERENCE.md +0 -238
  28. package/tools/vds-scripts/PACKAGE_P125B_IMPLEMENTATION_SUMMARY.md +0 -131
  29. package/tools/vds-scripts/PHASE-MERGE-SUMMARY.md +0 -121
  30. package/tools/vds-scripts/PHASES-3-ARCHIVE.md +0 -59
  31. package/tools/vds-scripts/PROJECT_COMPLETION_SUMMARY.md +0 -45
  32. package/tools/vds-scripts/SEARCH-CRASH-REPRO.md +0 -51
  33. package/tools/vds-scripts/analyze_hexagonal.py +0 -217
  34. package/tools/vds-scripts/analyze_profiles.py +0 -60
  35. package/tools/vds-scripts/audit-checklist.xlsx +0 -0
  36. package/tools/vds-scripts/audit_orchestrator/.audit_approvals/approvals_index.json +0 -1
  37. package/tools/vds-scripts/audit_orchestrator/.env.example +0 -85
  38. package/tools/vds-scripts/audit_orchestrator/.github/workflows/audit.yml +0 -47
  39. package/tools/vds-scripts/audit_orchestrator/Dockerfile +0 -92
  40. package/tools/vds-scripts/audit_orchestrator/GOOGLE_SHEETS_IMPLEMENTATION_SUMMARY.md +0 -218
  41. package/tools/vds-scripts/audit_orchestrator/PHASE3_INTEGRATION_SUMMARY.md +0 -268
  42. package/tools/vds-scripts/audit_orchestrator/PHASE7-MERGE-SUMMARY.md +0 -174
  43. package/tools/vds-scripts/audit_orchestrator/README.md +0 -1573
  44. package/tools/vds-scripts/audit_orchestrator/TSK-168-IMPLEMENTATION-SUMMARY.md +0 -191
  45. package/tools/vds-scripts/audit_orchestrator/TSK-196-IMPLEMENTATION-SUMMARY.md +0 -201
  46. package/tools/vds-scripts/audit_orchestrator/alembic/env.py +0 -37
  47. package/tools/vds-scripts/audit_orchestrator/alembic/script.py.mako +0 -28
  48. package/tools/vds-scripts/audit_orchestrator/alembic/versions/0001_initial_audit_state_schema.py +0 -1260
  49. package/tools/vds-scripts/audit_orchestrator/alembic.ini +0 -68
  50. package/tools/vds-scripts/audit_orchestrator/config/category-mapping.json +0 -81
  51. package/tools/vds-scripts/audit_orchestrator/config/profile-timeouts.yaml +0 -17
  52. package/tools/vds-scripts/audit_orchestrator/create_sample.py +0 -55
  53. package/tools/vds-scripts/audit_orchestrator/data/corpus_accuracy_report.json +0 -17
  54. package/tools/vds-scripts/audit_orchestrator/data/exemplar_quality_report.json +0 -1606
  55. package/tools/vds-scripts/audit_orchestrator/data/instruction_plan_fixtures.json +0 -163
  56. package/tools/vds-scripts/audit_orchestrator/data/requirement_exemplars.json +0 -3443
  57. package/tools/vds-scripts/audit_orchestrator/data/requirement_scope_fixtures.json +0 -172
  58. package/tools/vds-scripts/audit_orchestrator/debug_rg.py +0 -46
  59. package/tools/vds-scripts/audit_orchestrator/demo_code_pack.py +0 -127
  60. package/tools/vds-scripts/audit_orchestrator/docs/AGENT_SDK_SELECTION_SPEC.md +0 -720
  61. package/tools/vds-scripts/audit_orchestrator/docs/API.md +0 -804
  62. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_ANALYSIS_APPROACH.md +0 -1041
  63. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_SCORING_EVOLUTION_SPEC.md +0 -868
  64. package/tools/vds-scripts/audit_orchestrator/docs/DEPLOYMENT.md +0 -778
  65. package/tools/vds-scripts/audit_orchestrator/docs/LLM_AGENT_AUDIT_SPEC.md +0 -721
  66. package/tools/vds-scripts/audit_orchestrator/docs/LLM_CONTENT_ANALYSIS_SPEC.md +0 -1143
  67. package/tools/vds-scripts/audit_orchestrator/docs/LSP_SETUP_GUIDE.md +0 -221
  68. package/tools/vds-scripts/audit_orchestrator/docs/MULTI_REPO_AUDIT_SPEC.md +0 -951
  69. package/tools/vds-scripts/audit_orchestrator/docs/OLLAMA_EMBEDDINGS_SETUP.md +0 -119
  70. package/tools/vds-scripts/audit_orchestrator/docs/PHASE32_REAL_BENCHMARK_2026-02-08.md +0 -66
  71. package/tools/vds-scripts/audit_orchestrator/docs/PHASE_64_TO_92_HISTORICAL_SPEC.md +0 -1772
  72. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-flow-trace.md +0 -201
  73. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-verification.md +0 -124
  74. package/tools/vds-scripts/audit_orchestrator/docs/phase152-hierarchical-query-surface.md +0 -46
  75. package/tools/vds-scripts/audit_orchestrator/examples/bitbucket_metadata_example.json +0 -50
  76. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/README.md +0 -68
  77. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase117_phase118_shared_state.sql +0 -64
  78. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase154_published_pages.sql +0 -28
  79. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_dispatch_tables.sql +0 -94
  80. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_events.sql +0 -91
  81. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_scope_snapshots.sql +0 -24
  82. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_status_view.sql +0 -22
  83. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase169_dispatch_observability.sql +0 -55
  84. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/state_repair_hardening.sql +0 -24
  85. package/tools/vds-scripts/audit_orchestrator/pyproject.toml +0 -211
  86. package/tools/vds-scripts/audit_orchestrator/pyrightconfig.json +0 -51
  87. package/tools/vds-scripts/audit_orchestrator/pytest.ini +0 -37
  88. package/tools/vds-scripts/audit_orchestrator/reproduce_scanner.py +0 -40
  89. package/tools/vds-scripts/audit_orchestrator/scripts/README.md +0 -116
  90. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_crawl_modes.py +0 -455
  91. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_dspy.py +0 -513
  92. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_nlp_accuracy.py +0 -138
  93. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_retrieval_modes.py +0 -176
  94. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_upload_update_mode.py +0 -167
  95. package/tools/vds-scripts/audit_orchestrator/scripts/build_check.py +0 -76
  96. package/tools/vds-scripts/audit_orchestrator/scripts/check_live_progress.py +0 -61
  97. package/tools/vds-scripts/audit_orchestrator/scripts/cli_integration_test.py +0 -400
  98. package/tools/vds-scripts/audit_orchestrator/scripts/index_workspace.py +0 -178
  99. package/tools/vds-scripts/audit_orchestrator/scripts/inspect_route_conformance.py +0 -196
  100. package/tools/vds-scripts/audit_orchestrator/scripts/monitor_postgres.py +0 -145
  101. package/tools/vds-scripts/audit_orchestrator/scripts/optimize_audit.py +0 -462
  102. package/tools/vds-scripts/audit_orchestrator/scripts/verify.py +0 -673
  103. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase111_requirement_analysis.py +0 -375
  104. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase117_cross_repo_evidence.py +0 -77
  105. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase121_short_circuit.py +0 -680
  106. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase122_instruction_handling.py +0 -478
  107. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase125_skill_integration.py +0 -832
  108. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_36.py +0 -394
  109. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_37.py +0 -58
  110. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/__init__.py +0 -17
  111. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/__init__.py +0 -29
  112. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/_langchain_warnings.py +0 -17
  113. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/agentic_investigator.py +0 -4130
  114. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/approval.py +0 -490
  115. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_loop_hooks.py +0 -107
  116. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_state.py +0 -50
  117. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/base.py +0 -4035
  118. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_agent.py +0 -667
  119. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_helpers.py +0 -236
  120. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_prompts.py +0 -146
  121. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/docs_agent.py +0 -1234
  122. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/langgraph_workflow.py +0 -2002
  123. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/pydantic_base.py +0 -1227
  124. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/requirement_analysis_agent.py +0 -593
  125. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_agent.py +0 -1829
  126. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_scanner.py +0 -686
  127. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/skill_tools.py +0 -204
  128. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/synthesis_agent.py +0 -1463
  129. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_efficiency_guard.py +0 -609
  130. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_registry.py +0 -3822
  131. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/__init__.py +0 -52
  132. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/evidence_corpus.py +0 -385
  133. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/filesystem.py +0 -1134
  134. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/lsp.py +0 -458
  135. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/mcp_toolset.py +0 -491
  136. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/skills_toolset.py +0 -997
  137. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/vector_evidence.py +0 -842
  138. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/usage_tracker.py +0 -682
  139. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/visualization.py +0 -303
  140. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/analyze_cmds.py +0 -892
  141. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/__init__.py +0 -15
  142. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/service.py +0 -171
  143. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/__init__.py +0 -20
  144. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/base.py +0 -60
  145. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/__init__.py +0 -6
  146. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/checks.py +0 -257
  147. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/__init__.py +0 -10
  148. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/checks.py +0 -78
  149. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/__init__.py +0 -6
  150. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/file_checks.py +0 -133
  151. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/__init__.py +0 -17
  152. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/api_docs_check.py +0 -80
  153. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/readme_check.py +0 -76
  154. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/security_docs_check.py +0 -78
  155. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/registry.py +0 -402
  156. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/__init__.py +0 -10
  157. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/checks.py +0 -276
  158. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli.py +0 -12
  159. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_common.py +0 -128
  160. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_impl.py +0 -9826
  161. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/bitbucket_cli_client.py +0 -187
  162. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/confluence_cli_client.py +0 -977
  163. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/sonarqube_cli_client.py +0 -28
  164. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/__init__.py +0 -21
  165. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/base.py +0 -25
  166. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_downloader.py +0 -644
  167. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_metadata.py +0 -133
  168. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/checklist_parser.py +0 -180
  169. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/__init__.py +0 -31
  170. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/bitbucket_probe.py +0 -443
  171. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/confluence_probe.py +0 -365
  172. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/freshness_evaluator.py +0 -330
  173. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/material_completeness_service.py +0 -1079
  174. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/confluence_collector.py +0 -259
  175. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/diagram_extractor.py +0 -280
  176. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/enrichment_extractor.py +0 -200
  177. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/evidence_cache.py +0 -35
  178. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/git_collector.py +0 -148
  179. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/graphify_collector.py +0 -171
  180. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/image_extractor.py +0 -359
  181. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/linked_page_tracker.py +0 -120
  182. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/markdown_converter.py +0 -344
  183. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_cache.py +0 -1252
  184. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_downloader.py +0 -1165
  185. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/orchestrator.py +0 -168
  186. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/registry_parser.py +0 -3063
  187. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/requirements.py +0 -70
  188. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/runner.py +0 -119
  189. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/sonarqube_collector.py +0 -113
  190. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config.py +0 -1943
  191. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/__init__.py +0 -23
  192. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/discovery.py +0 -90
  193. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/environment_resolver.py +0 -56
  194. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/evidence.py +0 -78
  195. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/models.py +0 -73
  196. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/precedence.py +0 -10
  197. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/redaction.py +0 -20
  198. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/confluence_connectivity.py +0 -140
  199. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/corpus_cmds.py +0 -278
  200. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/__init__.py +0 -7
  201. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/alembic_filters.py +0 -57
  202. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/__init__.py +0 -29
  203. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/diataxis_validator.py +0 -687
  204. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/doctor_cmds.py +0 -3295
  205. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/__init__.py +0 -5
  206. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/evaluation.py +0 -301
  207. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/modules.py +0 -172
  208. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/runtime.py +0 -836
  209. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/signatures.py +0 -406
  210. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/__init__.py +0 -192
  211. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/ad_hoc_analyzer.py +0 -399
  212. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/aggregator.py +0 -220
  213. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/auditor.py +0 -504
  214. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_evidence_cache.py +0 -111
  215. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_processor.py +0 -4776
  216. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/calibration.py +0 -217
  217. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_generator.py +0 -1201
  218. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_projection.py +0 -192
  219. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_scoping.py +0 -221
  220. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checkpoint.py +0 -159
  221. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cl003_shared_lib_guard.py +0 -194
  222. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/companion_context_service.py +0 -445
  223. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/confluence_checklist_contract.py +0 -7425
  224. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cross_check_rules.py +0 -213
  225. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/deterministic_evaluator.py +0 -237
  226. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/drift_detector.py +0 -157
  227. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/dspy_requirement_classifier.py +0 -640
  228. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_assembler.py +0 -407
  229. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_collector.py +0 -119
  230. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_diversity.py +0 -101
  231. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/gap_analyzer.py +0 -549
  232. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/graduated.py +0 -185
  233. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/grounding_validator.py +0 -287
  234. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_analyzer.py +0 -882
  235. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_compliance.py +0 -172
  236. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/llm_row_evaluator.py +0 -9270
  237. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/loader.py +0 -1070
  238. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/manual_check_config.py +0 -136
  239. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/mapping.py +0 -269
  240. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/multi_judge.py +0 -65
  241. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/phase120_checklist_update.py +0 -416
  242. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/profile_scorer.py +0 -427
  243. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_evidence_context.py +0 -449
  244. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_query_service.py +0 -155
  245. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_store.py +0 -383
  246. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_topology.py +0 -1920
  247. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/provider_failure_classifier.py +0 -778
  248. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_cli_helpers.py +0 -341
  249. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_extractor.py +0 -303
  250. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_synthesizer.py +0 -730
  251. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/regression_guard.py +0 -138
  252. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/repo_type_classifier.py +0 -297
  253. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_analysis.py +0 -1433
  254. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_classification.py +0 -1725
  255. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/result_merger.py +0 -814
  256. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/route_matrix.py +0 -267
  257. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator.py +0 -9437
  258. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_runtime.py +0 -1270
  259. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_types.py +0 -2102
  260. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/rubric.py +0 -592
  261. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/scorer.py +0 -1239
  262. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/section_packs.py +0 -645
  263. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/skill_recommendation.py +0 -1183
  264. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/stability_harness.py +0 -207
  265. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/target_selector.py +0 -841
  266. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/telemetry.py +0 -347
  267. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/template_analyzer.py +0 -469
  268. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/token_tracker.py +0 -111
  269. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/tool_first_planner.py +0 -7905
  270. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/topology_query_service.py +0 -80
  271. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/validator.py +0 -449
  272. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/weight_policy.py +0 -464
  273. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/errors.py +0 -430
  274. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/extract_cmds.py +0 -4887
  275. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/identity.py +0 -146
  276. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/__init__.py +0 -52
  277. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/baseline.py +0 -378
  278. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/change_analyzer.py +0 -407
  279. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/delta_report.py +0 -189
  280. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/diff_detector.py +0 -301
  281. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/integrations/__init__.py +0 -3
  282. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/__init__.py +0 -50
  283. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/audit_schemas.py +0 -459
  284. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/codex_oauth.py +0 -340
  285. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/cost_tracker.py +0 -288
  286. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/engine.py +0 -751
  287. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/evaluator.py +0 -245
  288. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/__init__.py +0 -32
  289. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/api_docs_evaluation.py +0 -25
  290. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/gap_analysis.py +0 -31
  291. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/instruction_templates.py +0 -634
  292. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/readme_evaluation.py +0 -25
  293. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/row_evaluation.py +0 -247
  294. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/security_docs_evaluation.py +0 -25
  295. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/template_analysis.py +0 -25
  296. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts.py +0 -0
  297. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/provider.py +0 -626
  298. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/logging_config.py +0 -577
  299. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/__init__.py +0 -58
  300. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/default_checklist_mapping.json +0 -18
  301. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/vietnamese_checklist_mapping.json +0 -38
  302. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/misc_cmds.py +0 -4689
  303. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/__init__.py +0 -153
  304. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/calibration.py +0 -98
  305. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/checklist.py +0 -921
  306. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/completeness.py +0 -309
  307. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enrichment.py +0 -58
  308. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enums.py +0 -97
  309. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/evidence.py +0 -351
  310. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/findings.py +0 -381
  311. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/gaps.py +0 -299
  312. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/graph.py +0 -42
  313. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/multi_judge.py +0 -50
  314. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/readiness.py +0 -309
  315. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/registry.py +0 -386
  316. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/reporting.py +0 -32
  317. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/task.py +0 -549
  318. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/template.py +0 -477
  319. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/__init__.py +0 -31
  320. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/metrics.py +0 -404
  321. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/parse_cmds.py +0 -608
  322. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/pdf_cmds.py +0 -208
  323. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/performance_gates.py +0 -224
  324. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/phase151_projection.py +0 -84
  325. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/__init__.py +0 -65
  326. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/detection.py +0 -842
  327. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/models.py +0 -474
  328. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/__init__.py +0 -1
  329. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_confluence_macros.py +0 -145
  330. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_field_sanitizer.py +0 -25
  331. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_table_builder.py +0 -63
  332. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_vietnamese_templates.py +0 -103
  333. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/bitbucket_link_resolver.py +0 -34
  334. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/checklist_renderer.py +0 -483
  335. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/confluence_publisher.py +0 -3048
  336. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/hierarchy_publisher.py +0 -213
  337. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/live_data_injector.py +0 -152
  338. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/macro_builder.py +0 -101
  339. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/markdown_converter.py +0 -154
  340. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/priority_renderer.py +0 -133
  341. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/project_aggregate_renderer.py +0 -423
  342. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/readiness_renderer.py +0 -186
  343. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_hierarchy_renderer.py +0 -382
  344. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_renderer.py +0 -683
  345. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/report_cmds.py +0 -788
  346. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/__init__.py +0 -13
  347. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/aggregation_report.py +0 -86
  348. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/checklist_generator.py +0 -425
  349. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/excel_generator.py +0 -599
  350. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/gap_report.py +0 -131
  351. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/json_generator.py +0 -188
  352. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/markdown_generator.py +0 -595
  353. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/__init__.py +0 -154
  354. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/collector.py +0 -61
  355. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/department_builder.py +0 -77
  356. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/errors.py +0 -9
  357. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/md_renderer.py +0 -386
  358. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_models.py +0 -95
  359. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_writer.py +0 -27
  360. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/repo_project_builders.py +0 -274
  361. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/readiness_report.py +0 -447
  362. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/reporting.py +0 -94
  363. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/sarif_generator.py +0 -519
  364. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/runtime_profiles.py +0 -98
  365. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/__init__.py +0 -29
  366. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/seed_loader.py +0 -561
  367. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/__init__.py +0 -5
  368. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/skill_routing.py +0 -312
  369. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/__init__.py +0 -0
  370. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/base.py +0 -110
  371. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/bitbucket.py +0 -129
  372. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/git_url.py +0 -60
  373. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/github.py +0 -75
  374. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/local.py +0 -58
  375. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/spec_sync_validator.py +0 -15
  376. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/__init__.py +0 -6285
  377. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/readiness_helpers.py +0 -74
  378. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/skill_readiness.py +0 -487
  379. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/store.py +0 -12927
  380. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state_cmds.py +0 -1868
  381. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/__init__.py +0 -0
  382. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/repo_sync.py +0 -409
  383. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync_cmds.py +0 -1247
  384. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/__init__.py +0 -3
  385. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/debug_bundle.py +0 -214
  386. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/validators/checklist_validator.py +0 -342
  387. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflow_cmds.py +0 -19147
  388. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/__init__.py +0 -9
  389. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/_test_audit_daily_batch.py +0 -192
  390. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_daily_batch.py +0 -308
  391. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_deep_monthly.py +0 -193
  392. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_drift_scan.py +0 -178
  393. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_security_daily.py +0 -183
  394. package/tools/vds-scripts/audit_orchestrator/templates/sample_audit_template.xlsx +0 -0
  395. package/tools/vds-scripts/audit_orchestrator/tests/__init__.py +0 -0
  396. package/tools/vds-scripts/audit_orchestrator/tests/_helpers.py +0 -32
  397. package/tools/vds-scripts/audit_orchestrator/tests/collectors/__init__.py +0 -0
  398. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/__init__.py +0 -0
  399. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_bitbucket_probe.py +0 -403
  400. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_confluence_probe.py +0 -423
  401. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_bitbucket_downloader.py +0 -289
  402. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_image_extractor.py +0 -260
  403. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_markdown_converter.py +0 -57
  404. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_cache.py +0 -197
  405. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_downloader.py +0 -550
  406. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser.py +0 -3514
  407. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_department_entry.py +0 -214
  408. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_flow.py +0 -200
  409. package/tools/vds-scripts/audit_orchestrator/tests/conftest.py +0 -988
  410. package/tools/vds-scripts/audit_orchestrator/tests/engine/__init__.py +0 -0
  411. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_calibration.py +0 -48
  412. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_confluence_checklist_phase22_helpers.py +0 -6065
  413. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_multi_judge.py +0 -62
  414. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_stability_harness.py +0 -61
  415. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_structured_metadata.py +0 -419
  416. package/tools/vds-scripts/audit_orchestrator/tests/factories/__init__.py +0 -0
  417. package/tools/vds-scripts/audit_orchestrator/tests/factories/models.py +0 -534
  418. package/tools/vds-scripts/audit_orchestrator/tests/factories/templates.py +0 -241
  419. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/__init__.py +0 -0
  420. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/__init__.py +0 -0
  421. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/compressed.drawio +0 -2
  422. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/mockup.bmpr +0 -0
  423. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/simple.drawio +0 -26
  424. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/__init__.py +0 -0
  425. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/__init__.py +0 -0
  426. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_cli.json +0 -26
  427. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_direct.json +0 -24
  428. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_cli.json +0 -14
  429. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_direct.json +0 -12
  430. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/__init__.py +0 -0
  431. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_cli.json +0 -7
  432. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_direct.json +0 -7
  433. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_cli.json +0 -11
  434. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_direct.json +0 -7
  435. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/__init__.py +0 -0
  436. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_cli.json +0 -12
  437. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_direct.json +0 -12
  438. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/requirement_strategy_phase115.json +0 -118
  439. package/tools/vds-scripts/audit_orchestrator/tests/integration/__init__.py +0 -0
  440. package/tools/vds-scripts/audit_orchestrator/tests/integration/conftest.py +0 -107
  441. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/__init__.py +0 -0
  442. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/expected_outcomes.md +0 -50
  443. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/__init__.py +0 -0
  444. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/auth.py +0 -27
  445. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/config.py +0 -16
  446. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/db.py +0 -24
  447. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/main.py +0 -18
  448. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/__init__.py +0 -1
  449. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/utils.py +0 -22
  450. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_checklist_template.json +0 -110
  451. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/__init__.py +0 -0
  452. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/code_evidence_pack.json +0 -40
  453. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/manifest.json +0 -49
  454. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/__init__.py +0 -0
  455. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/__init__.py +0 -0
  456. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/brd.md +0 -19
  457. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/design.md +0 -32
  458. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/security.md +0 -23
  459. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/srs.md +0 -25
  460. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/test.md +0 -30
  461. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_checkpoint_merge.py +0 -1371
  462. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_decoupling_route_p149.py +0 -176
  463. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_gap_analyzer_batch_p149.py +0 -151
  464. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_hybrid_search.py +0 -799
  465. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_mcp_integration.py +0 -741
  466. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_merge_ranking_p149.py +0 -98
  467. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_modality_mismatch_p149.py +0 -171
  468. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase117_118_storage.py +0 -350
  469. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase121_short_circuit.py +0 -732
  470. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase18_workflow.py +0 -223
  471. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase48_e2e_verification.py +0 -763
  472. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase81_doc_anchor_regression.py +0 -252
  473. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_provider_failure_finding_p149.py +0 -339
  474. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_readiness_e2e.py +0 -430
  475. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_refined_workflow.py +0 -1180
  476. package/tools/vds-scripts/audit_orchestrator/tests/pdf/__init__.py +0 -0
  477. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/__init__.py +0 -0
  478. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/department_renderer.md +0 -24
  479. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/project_renderer.md +0 -8
  480. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/repo_renderer.md +0 -10
  481. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_department_pdf.py +0 -112
  482. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_e2e_pdf.py +0 -135
  483. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_idempotency.py +0 -45
  484. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_md_renderer.py +0 -46
  485. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_cmds.py +0 -97
  486. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_snapshot.py +0 -77
  487. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_writer.py +0 -65
  488. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_project_builder.py +0 -199
  489. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_public_api.py +0 -135
  490. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_repo_builder.py +0 -246
  491. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_workflow_pdf_flags.py +0 -36
  492. package/tools/vds-scripts/audit_orchestrator/tests/property/__init__.py +0 -0
  493. package/tools/vds-scripts/audit_orchestrator/tests/property/test_properties.py +0 -807
  494. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/__init__.py +0 -0
  495. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agent_error_compat.py +0 -38
  496. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agentic_skill_policy_skip.py +0 -234
  497. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_event_stream_logging.py +0 -785
  498. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_timeout_policy.py +0 -277
  499. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_trace_payload_sanitization.py +0 -92
  500. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent.py +0 -2311
  501. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent_re_exports.py +0 -25
  502. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_analysis_helpers.py +0 -94
  503. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_create_audit_agent_reasoning_effort.py +0 -69
  504. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_docs_agent.py +0 -2044
  505. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_langgraph_workflow_efficiency_metrics.py +0 -71
  506. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_output_validators.py +0 -317
  507. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_phase41_toolsets.py +0 -6427
  508. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_ai_models.py +0 -1219
  509. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_base_url_resolution.py +0 -84
  510. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_security_agent.py +0 -2069
  511. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_skill_manager_focus.py +0 -439
  512. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_synthesis_agent.py +0 -1195
  513. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_tool_efficiency_guard_fr120.py +0 -683
  514. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_toolsets.py +0 -716
  515. package/tools/vds-scripts/audit_orchestrator/tests/test_aggregator_p149.py +0 -171
  516. package/tools/vds-scripts/audit_orchestrator/tests/test_alembic_migrations.py +0 -287
  517. package/tools/vds-scripts/audit_orchestrator/tests/test_anchor_allowlist_p149.py +0 -273
  518. package/tools/vds-scripts/audit_orchestrator/tests/test_audit_otel.py +0 -283
  519. package/tools/vds-scripts/audit_orchestrator/tests/test_checklist_models.py +0 -583
  520. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/__init__.py +0 -0
  521. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_base_check.py +0 -211
  522. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_llm_checks.py +0 -126
  523. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/__init__.py +0 -0
  524. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_analyze_command.py +0 -400
  525. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_archive_stale_page_cli.py +0 -217
  526. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_bitbucket_metadata_cli.py +0 -354
  527. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_cli_impl_profile_availability.py +0 -114
  528. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_codex_profile.py +0 -174
  529. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_compare_backends_cli.py +0 -449
  530. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_confluence_parent_auto_resolve.py +0 -451
  531. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_corpus_purge_cli.py +0 -290
  532. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_credentials_preflight.py +0 -106
  533. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_debug_bundle.py +0 -37
  534. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_deprecation_phase157.py +0 -484
  535. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_dispatch_concurrency_diagnostics.py +0 -758
  536. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_check_confluence_cli.py +0 -320
  537. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_codex.py +0 -187
  538. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_corpus_status_cli.py +0 -236
  539. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_correlation_cli.py +0 -128
  540. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_crawl_status_cli.py +0 -192
  541. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_credentials_cli.py +0 -86
  542. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_dispatch_status_cli.py +0 -421
  543. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_heartbeat_phase169.py +0 -173
  544. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_hierarchy_status_cli.py +0 -199
  545. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_locks_cli.py +0 -134
  546. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_logs_follow_cli.py +0 -305
  547. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_migration.py +0 -333
  548. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_profile_availability_cli.py +0 -151
  549. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_skills_policy_cli.py +0 -153
  550. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_evidence_quality_cli.py +0 -307
  551. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_debug_bundle_phase36.py +0 -60
  552. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_git_manifest_cli.py +0 -172
  553. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_file_removal_phase157e.py +0 -770
  554. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_grounding_classifier.py +0 -226
  555. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_logging.py +0 -49
  556. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_materials_cli.py +0 -9127
  557. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_metadata_completeness_phase92.py +0 -364
  558. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parent_dispatch_finalization_phase168f.py +0 -111
  559. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parse_cli.py +0 -590
  560. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase117_118_feature_flags.py +0 -219
  561. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase164_control_plane.py +0 -718
  562. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase165_runner_scripts.py +0 -230
  563. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_preparation_classifications.py +0 -146
  564. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_prepare_cli.py +0 -398
  565. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publication_quality_gate.py +0 -126
  566. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publish_system_doc_cli.py +0 -158
  567. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_query_checklist_cli.py +0 -219
  568. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli.py +0 -673
  569. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli_integration.py +0 -689
  570. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_removed_flags_phase92.py +0 -36
  571. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_report_cmds.py +0 -1317
  572. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_history_index.py +0 -57
  573. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_management.py +0 -1194
  574. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_runtime_profiles_cli.py +0 -1658
  575. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_smart_run_selection.py +0 -1562
  576. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_cli.py +0 -2467
  577. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_migration.py +0 -339
  578. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_sync_repos_debug_artifacts.py +0 -1109
  579. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_upload_results_cli.py +0 -809
  580. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist.py +0 -178
  581. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist_cli.py +0 -110
  582. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_spec_sync_cli.py +0 -519
  583. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_default_parameters_baseline.py +0 -101
  584. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_options.py +0 -7896
  585. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_db_modes.py +0 -6516
  586. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_project_scope.py +0 -831
  587. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_target.py +0 -611
  588. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_lifecycle.py +0 -2488
  589. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_scaffolding.py +0 -96
  590. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_row_key_guard.py +0 -78
  591. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_summary_artifacts.py +0 -1872
  592. package/tools/vds-scripts/audit_orchestrator/tests/test_cli_paths_phase2.py +0 -45
  593. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/__init__.py +0 -0
  594. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_bitbucket_cli_client.py +0 -124
  595. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_cli_parity.py +0 -110
  596. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_confluence_cli_client.py +0 -1149
  597. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_sonarqube_cli_client.py +0 -19
  598. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/__init__.py +0 -0
  599. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/test_linked_page_tracker.py +0 -118
  600. package/tools/vds-scripts/audit_orchestrator/tests/test_companion_context_service.py +0 -230
  601. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/__init__.py +0 -0
  602. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/conftest.py +0 -11
  603. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_compile_artifact.py +0 -465
  604. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique.py +0 -120
  605. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique_e2e.py +0 -75
  606. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_evaluation.py +0 -515
  607. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_runtime_loader.py +0 -537
  608. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_signatures_normalization.py +0 -172
  609. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/__init__.py +0 -0
  610. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_auditor_applicability.py +0 -68
  611. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_generator.py +0 -1252
  612. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_projection.py +0 -54
  613. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_confluence_checklist_projection_consistency.py +0 -1696
  614. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_critique_merger_matrix.py +0 -120
  615. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_check_rules.py +0 -459
  616. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_provider_critique.py +0 -55
  617. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_doc_loader.py +0 -73
  618. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_drift_detector.py +0 -34
  619. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_evidence_collectors.py +0 -93
  620. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_lease_timeout.py +0 -114
  621. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader.py +0 -350
  622. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader_parity.py +0 -179
  623. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_low_confidence_reeval.py +0 -691
  624. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase145a_completion.py +0 -209
  625. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase31_row_consistency_retry_benchmark.py +0 -150
  626. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_profile_detector.py +0 -286
  627. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_regression_guard.py +0 -53
  628. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_result_merger.py +0 -619
  629. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_evaluator.py +0 -15783
  630. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_failover.py +0 -215
  631. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_scorer.py +0 -597
  632. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_skill_breakdown_telemetry_fr137.py +0 -421
  633. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_targeted_auto_merge.py +0 -229
  634. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_failover.py +0 -488
  635. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_telemetry.py +0 -73
  636. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_validator.py +0 -419
  637. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/__init__.py +0 -0
  638. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/test_diff_detector.py +0 -111
  639. package/tools/vds-scripts/audit_orchestrator/tests/test_infra_persistence.py +0 -291
  640. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/__init__.py +0 -0
  641. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/test_phase3_integration.py +0 -516
  642. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/__init__.py +0 -0
  643. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cache.py +0 -670
  644. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_model_builder.py +0 -281
  645. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_oauth.py +0 -330
  646. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_streaming.py +0 -433
  647. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cost_tracker.py +0 -27
  648. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_engine.py +0 -876
  649. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_evaluator.py +0 -212
  650. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_instruction_templates.py +0 -639
  651. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompt_metadata.py +0 -97
  652. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompts.py +0 -660
  653. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider.py +0 -330
  654. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider_contract_sync.py +0 -18
  655. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_reasoning_effort_validation.py +0 -565
  656. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_schemas.py +0 -827
  657. package/tools/vds-scripts/audit_orchestrator/tests/test_logging_config.py +0 -297
  658. package/tools/vds-scripts/audit_orchestrator/tests/test_models/__init__.py +0 -0
  659. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_enums.py +0 -185
  660. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_findings.py +0 -1159
  661. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_project_profile.py +0 -307
  662. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_registry.py +0 -532
  663. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_template.py +0 -708
  664. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/__init__.py +0 -0
  665. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/test_metrics.py +0 -60
  666. package/tools/vds-scripts/audit_orchestrator/tests/test_paths_config_phase2.py +0 -21
  667. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/__init__.py +0 -0
  668. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/test_fr79_performance_guardrails.py +0 -199
  669. package/tools/vds-scripts/audit_orchestrator/tests/test_phase156_hardening.py +0 -498
  670. package/tools/vds-scripts/audit_orchestrator/tests/test_phase93_regression_guards.py +0 -123
  671. package/tools/vds-scripts/audit_orchestrator/tests/test_pipeline_integration.py +0 -517
  672. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/__init__.py +0 -0
  673. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/test_detection.py +0 -146
  674. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/__init__.py +0 -0
  675. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_bitbucket_link_resolver.py +0 -55
  676. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer.py +0 -84
  677. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer_projection.py +0 -97
  678. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_macros.py +0 -58
  679. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_publisher.py +0 -2171
  680. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_evidence_links.py +0 -129
  681. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_field_sanitizer.py +0 -108
  682. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_hierarchy_publisher.py +0 -134
  683. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_incremental_plan_parser.py +0 -62
  684. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_live_data_injector.py +0 -48
  685. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_macro_builder.py +0 -22
  686. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_p161_confluence_optimization.py +0 -168
  687. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_priority_renderer.py +0 -96
  688. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_project_aggregate_renderer.py +0 -364
  689. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_storage_validation.py +0 -273
  690. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_summary_refactor.py +0 -118
  691. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_system_doc_hierarchy.py +0 -50
  692. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_table_builder.py +0 -23
  693. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_vietnamese_templates.py +0 -37
  694. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_wiring_integration.py +0 -290
  695. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/__init__.py +0 -0
  696. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_aggregation_report.py +0 -181
  697. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_checklist_generator.py +0 -258
  698. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_gap_report.py +0 -73
  699. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_json_generator.py +0 -317
  700. package/tools/vds-scripts/audit_orchestrator/tests/test_result_merger_p149.py +0 -347
  701. package/tools/vds-scripts/audit_orchestrator/tests/test_route_mode_p149.py +0 -178
  702. package/tools/vds-scripts/audit_orchestrator/tests/test_rubric_parser.py +0 -179
  703. package/tools/vds-scripts/audit_orchestrator/tests/test_scorer.py +0 -110
  704. package/tools/vds-scripts/audit_orchestrator/tests/test_state/__init__.py +0 -0
  705. package/tools/vds-scripts/audit_orchestrator/tests/test_state/test_sparse_coverage.py +0 -117
  706. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/__init__.py +0 -0
  707. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_langgraph_workflow.py +0 -2072
  708. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_p161_runtime_hardening.py +0 -341
  709. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p149.py +0 -112
  710. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p172.py +0 -126
  711. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_guidance_p150.py +0 -95
  712. package/tools/vds-scripts/audit_orchestrator/tests/unit/__init__.py +0 -0
  713. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/__init__.py +0 -0
  714. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_agentic_investigator_phase115.py +0 -42
  715. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_requirement_analysis_agent.py +0 -412
  716. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_agent_updates.py +0 -131
  717. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_scanner.py +0 -397
  718. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_executor.py +0 -316
  719. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_fallback.py +0 -299
  720. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_policy.py +0 -520
  721. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_telemetry.py +0 -306
  722. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_synthesis_fixes.py +0 -761
  723. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_argument_robustness.py +0 -272
  724. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry.py +0 -2548
  725. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_ast_grep.py +0 -87
  726. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase123_scoping.py +0 -353
  727. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase94_ff.py +0 -445
  728. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_vector_search_phase115.py +0 -35
  729. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_utils.py +0 -1007
  730. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_vector_evidence_toolset.py +0 -622
  731. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/__init__.py +0 -0
  732. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/test_workflow_cli.py +0 -123
  733. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/__init__.py +0 -0
  734. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_cache_guard.py +0 -479
  735. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_checklist_parser_phase120.py +0 -55
  736. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_diagram_extractor.py +0 -467
  737. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_enrichment_extractor.py +0 -59
  738. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_graphify_collector.py +0 -158
  739. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/__init__.py +0 -0
  740. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_completeness.py +0 -563
  741. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_freshness_evaluator.py +0 -493
  742. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_cache_metrics.py +0 -365
  743. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_completeness_service.py +0 -2736
  744. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/__init__.py +0 -0
  745. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_discovery.py +0 -47
  746. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_redaction.py +0 -15
  747. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/__init__.py +0 -0
  748. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_ad_hoc_analyzer.py +0 -576
  749. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_agent_loop.py +0 -1896
  750. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_anchor_filter_cl003.py +0 -181
  751. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_evidence_cache.py +0 -155
  752. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_processor.py +0 -3608
  753. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_contract.py +0 -55
  754. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_scoping.py +0 -371
  755. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_companion_phase123.py +0 -142
  756. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_evidence_phase123.py +0 -249
  757. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_confluence_checklist_contract_export_parity.py +0 -813
  758. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_cross_repo_config_phase122.py +0 -613
  759. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_dspy_requirement_classifier.py +0 -517
  760. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_diversity.py +0 -144
  761. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_truncation.py +0 -108
  762. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_grounding_validator.py +0 -127
  763. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_guidance_injection_phase120.py +0 -105
  764. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_analysis_phase122.py +0 -761
  765. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_pre_filter_phase167.py +0 -334
  766. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_llm_row_evaluator_retries.py +0 -3684
  767. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_loader_phase123.py +0 -345
  768. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_manual_check_gating_phase122.py +0 -474
  769. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_parallel_eval.py +0 -263
  770. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase122_verifier_phase122.py +0 -169
  771. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase166_route_failover.py +0 -437
  772. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_post_eval_cl003_shared_lib.py +0 -267
  773. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_postproc_streaming.py +0 -194
  774. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_pre_eval_gating_phase122.py +0 -362
  775. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_prepare_topology_coverage.py +0 -247
  776. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_private_dns_sanitization_phase104.py +0 -397
  777. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_evidence_context.py +0 -450
  778. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_knowledge_store.py +0 -487
  779. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_topology.py +0 -1142
  780. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_provider_failure_classifier.py +0 -195
  781. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_extractor.py +0 -496
  782. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_synthesizer.py +0 -653
  783. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_repo_type_classifier.py +0 -303
  784. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis.py +0 -508
  785. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_execution_scope.py +0 -239
  786. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase114.py +0 -919
  787. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase115.py +0 -97
  788. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_shared_lib.py +0 -340
  789. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_drift.py +0 -729
  790. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_nlp.py +0 -670
  791. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_scope_phase122.py +0 -615
  792. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_matrix.py +0 -258
  793. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_override.py +0 -141
  794. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_routing_precision.py +0 -650
  795. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_dual_evidence.py +0 -2987
  796. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_instruction_runtime_phase122.py +0 -365
  797. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_runtime.py +0 -830
  798. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_runtime_hardening_phase122.py +0 -225
  799. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoped_na_skip.py +0 -107
  800. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoring_enhancements.py +0 -404
  801. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_retrieval_phase123.py +0 -441
  802. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_routing_phase123.py +0 -279
  803. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_resource_indexing_phase122.py +0 -188
  804. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_recommendation.py +0 -225
  805. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_routing_cl003_shared_lib.py +0 -338
  806. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skills_toolset.py +0 -319
  807. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_stability_metric.py +0 -60
  808. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_target_selector.py +0 -958
  809. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_tracker.py +0 -121
  810. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_wiring.py +0 -119
  811. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_tool_first_planner.py +0 -7103
  812. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_knowledge_persistence.py +0 -332
  813. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_query_service.py +0 -55
  814. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_unverified_ref_retry.py +0 -909
  815. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/__init__.py +0 -0
  816. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_evidence.py +0 -515
  817. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_gaps.py +0 -422
  818. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_readiness.py +0 -428
  819. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/__init__.py +0 -0
  820. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_confluence_hierarchy.py +0 -227
  821. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_project_title_generation.py +0 -335
  822. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_helpers.py +0 -290
  823. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_integration.py +0 -557
  824. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_readiness_renderer.py +0 -381
  825. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_repo_title_consistency.py +0 -266
  826. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_upload_hierarchy_integration.py +0 -470
  827. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/__init__.py +0 -0
  828. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_dspy.py +0 -177
  829. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_nlp_accuracy.py +0 -72
  830. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_retrieval_modes.py +0 -123
  831. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_verify_phase111_requirement_analysis.py +0 -409
  832. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/__init__.py +0 -0
  833. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_chain_cli.py +0 -277
  834. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_loader.py +0 -502
  835. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/__init__.py +0 -0
  836. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/test_skill_routing.py +0 -209
  837. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/__init__.py +0 -0
  838. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_bitbucket_source.py +0 -66
  839. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_non_retryable_markers.py +0 -88
  840. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_repo_info.py +0 -212
  841. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/__init__.py +0 -0
  842. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_completeness.py +0 -598
  843. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_events_contract_phase169.py +0 -100
  844. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_hardening_phase158.py +0 -392
  845. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_persistence_phase157.py +0 -914
  846. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_embedding_client.py +0 -64
  847. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_get_latest_completed_run.py +0 -313
  848. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_heartbeat_phase169.py +0 -109
  849. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_hybrid_search.py +0 -398
  850. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_normalize_url.py +0 -262
  851. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase152_query_surface.py +0 -59
  852. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase98_confluence_document_model.py +0 -202
  853. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_published_pages.py +0 -754
  854. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_readiness_helpers.py +0 -193
  855. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_ledger.py +0 -522
  856. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_management.py +0 -378
  857. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_schema_contract_phase170.py +0 -755
  858. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_cmds.py +0 -231
  859. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_loaders.py +0 -2151
  860. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_run_api.py +0 -2226
  861. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store.py +0 -1435
  862. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch.py +0 -646
  863. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch_status_view.py +0 -181
  864. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_scope.py +0 -213
  865. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_utilization_persist_phase169.py +0 -77
  866. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vds_search.py +0 -263
  867. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_api.py +0 -319
  868. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_runtime.py +0 -175
  869. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_store.py +0 -1756
  870. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/__init__.py +0 -0
  871. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/test_repo_sync.py +0 -257
  872. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_artifact_exclusion.py +0 -119
  873. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_auto_promote_phase158.py +0 -337
  874. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_carry_forward_artifact_filtering.py +0 -317
  875. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_checklist_precache_p160a.py +0 -416
  876. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_cli_decomposition_fr219.py +0 -269
  877. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_code_chunk_carry_forward.py +0 -203
  878. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_coherence.py +0 -180
  879. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_secret_policy.py +0 -522
  880. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_project_id_migration.py +0 -318
  881. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_status_diagnostics.py +0 -239
  882. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_department_priority_ordering.py +0 -131
  883. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_coordinator_phase158.py +0 -402
  884. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_job_identity_p167a.py +0 -238
  885. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_ramp_up_phase171.py +0 -434
  886. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatcher.py +0 -911
  887. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_doc_type_en_inference.py +0 -246
  888. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_early_exit_unchunked_repos.py +0 -111
  889. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors.py +0 -237
  890. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors_taxonomy.py +0 -83
  891. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_chunking_config_phase98.py +0 -73
  892. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_cmds_state_helpers.py +0 -33
  893. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_docs_code_chunking.py +0 -260
  894. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_finalize_dispatch_run_phase168.py +0 -341
  895. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_identity.py +0 -221
  896. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_infrastructure_detection.py +0 -441
  897. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_junction_table_phase95.py +0 -259
  898. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_late_binding_assignment_p167c.py +0 -286
  899. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_misc_cmds_fr224_225_hardening.py +0 -194
  900. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_p172_integration.py +0 -306
  901. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_parent_provider_preflight.py +0 -118
  902. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase92.py +0 -141
  903. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase93.py +0 -50
  904. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase115_search_strategy.py +0 -106
  905. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase154_title_consistency.py +0 -117
  906. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase155_param_forwarding.py +0 -304
  907. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase158_concurrency_defaults.py +0 -207
  908. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_doctor_schema.py +0 -319
  909. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_regression.py +0 -334
  910. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase94_corpus_lifecycle.py +0 -307
  911. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase96_repo_key_migration.py +0 -305
  912. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_pipelined_scheduling.py +0 -130
  913. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_availability_probe.py +0 -616
  914. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_aware_row_timeout.py +0 -102
  915. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_timeout_stagger_p160cd.py +0 -205
  916. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_progress_summary_phase169.py +0 -96
  917. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_registry_checklist_diagnostics.py +0 -124
  918. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_resume_manifest_p167b.py +0 -268
  919. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_risk_mitigations_p160e1.py +0 -348
  920. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_single_row_shards_p160b.py +0 -357
  921. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_state_repo_discovery.py +0 -504
  922. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_sync_metadata_entries.py +0 -57
  923. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_task_models.py +0 -1796
  924. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_utilization_telemetry_p167e.py +0 -259
  925. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_vietnamese_fts_hardening.py +0 -160
  926. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_phase98_enrichment.py +0 -92
  927. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_project_merge_materialization.py +0 -322
  928. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_row_key_migration_guard.py +0 -88
  929. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_short_circuit_phase121.py +0 -564
  930. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_single_target_row_context.py +0 -49
  931. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_zero_result_messaging.py +0 -76
  932. package/tools/vds-scripts/bandit-report.json +0 -2974
  933. package/tools/vds-scripts/brd_orchestrator/README.md +0 -29
  934. package/tools/vds-scripts/brd_orchestrator/pyproject.toml +0 -63
  935. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/__init__.py +0 -17
  936. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/cli.py +0 -187
  937. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/validator.py +0 -121
  938. package/tools/vds-scripts/brd_orchestrator/tests/__init__.py +0 -0
  939. package/tools/vds-scripts/brd_orchestrator/tests/test_cli.py +0 -62
  940. package/tools/vds-scripts/brd_orchestrator/tests/test_validator.py +0 -33
  941. package/tools/vds-scripts/circular_dependency_orchestrator/README.md +0 -30
  942. package/tools/vds-scripts/circular_dependency_orchestrator/pyproject.toml +0 -43
  943. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/__init__.py +0 -16
  944. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/cli.py +0 -904
  945. package/tools/vds-scripts/circular_dependency_orchestrator/tests/__init__.py +0 -0
  946. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/__init__.py +0 -0
  947. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/test_cli.py +0 -354
  948. package/tools/vds-scripts/coverage.json +0 -1
  949. package/tools/vds-scripts/create_pr.py +0 -57
  950. package/tools/vds-scripts/diagram_generator/README.md +0 -663
  951. package/tools/vds-scripts/diagram_generator/ci_validate.sh +0 -16
  952. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.png +0 -0
  953. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.puml +0 -23
  954. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.png +0 -0
  955. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.puml +0 -21
  956. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.png +0 -0
  957. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.puml +0 -14
  958. package/tools/vds-scripts/diagram_generator/examples/github-actions-validate.yml +0 -39
  959. package/tools/vds-scripts/diagram_generator/generate_all_diagrams.py +0 -827
  960. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_diagrams.py +0 -261
  961. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_quick.py +0 -486
  962. package/tools/vds-scripts/diagram_generator/pyproject.toml +0 -28
  963. package/tools/vds-scripts/diagram_generator/render_png.py +0 -59
  964. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/__init__.py +0 -3
  965. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/cli.py +0 -50
  966. package/tools/vds-scripts/diagram_generator/test_c4_hierarchical.py +0 -142
  967. package/tools/vds-scripts/diagram_generator/test_c4_quick.py +0 -131
  968. package/tools/vds-scripts/diagram_generator/tests/__init__.py +0 -0
  969. package/tools/vds-scripts/diagram_generator/tests/test_analyzer_completeness.py +0 -260
  970. package/tools/vds-scripts/diagram_generator/tests/test_c4_syntax_correctness.py +0 -138
  971. package/tools/vds-scripts/diagram_generator/tests/test_component_coverage.py +0 -182
  972. package/tools/vds-scripts/diagram_generator/tests/test_mermaid_output.py +0 -80
  973. package/tools/vds-scripts/diagram_generator/tests/test_png_generation.py +0 -112
  974. package/tools/vds-scripts/diagram_generator/tests/test_scenario_templates.py +0 -15
  975. package/tools/vds-scripts/diagram_generator/tests/test_sequence_accuracy.py +0 -93
  976. package/tools/vds-scripts/diagram_generator/tests/test_structurizr_export.py +0 -177
  977. package/tools/vds-scripts/diagram_generator/tests/test_style_consistency.py +0 -174
  978. package/tools/vds-scripts/diagram_generator/tests/test_usecase_generator.py +0 -201
  979. package/tools/vds-scripts/diagram_generator/tests/test_usecase_integration.py +0 -124
  980. package/tools/vds-scripts/docker/compose.phase2-verification.yml +0 -31
  981. package/tools/vds-scripts/docker-compose.openapi-validator.yml +0 -14
  982. package/tools/vds-scripts/excel_orchestrator/README.md +0 -288
  983. package/tools/vds-scripts/excel_orchestrator/RESEARCH_BASED_UPDATES_REPORT.md +0 -261
  984. package/tools/vds-scripts/excel_orchestrator/add_essential_missing_effort.py +0 -255
  985. package/tools/vds-scripts/excel_orchestrator/adjust_effort_complexity.py +0 -184
  986. package/tools/vds-scripts/excel_orchestrator/brd_analysis_and_task_breakdown.py +0 -632
  987. package/tools/vds-scripts/excel_orchestrator/brd_analysis_comprehensive.py +0 -1029
  988. package/tools/vds-scripts/excel_orchestrator/check_overlaps_and_brd_coverage.py +0 -570
  989. package/tools/vds-scripts/excel_orchestrator/clean_remarks_column.py +0 -127
  990. package/tools/vds-scripts/excel_orchestrator/comprehensive_brd_check.py +0 -322
  991. package/tools/vds-scripts/excel_orchestrator/create_buffered_summary.py +0 -119
  992. package/tools/vds-scripts/excel_orchestrator/create_service_totals_sheet.py +0 -118
  993. package/tools/vds-scripts/excel_orchestrator/examples/basic_operations.py +0 -85
  994. package/tools/vds-scripts/excel_orchestrator/expand_all_tasks.py +0 -341
  995. package/tools/vds-scripts/excel_orchestrator/expand_tasks.py +0 -304
  996. package/tools/vds-scripts/excel_orchestrator/fill_brd_references.py +0 -347
  997. package/tools/vds-scripts/excel_orchestrator/fill_remarks_and_colors.py +0 -132
  998. package/tools/vds-scripts/excel_orchestrator/finalize_brd_and_cleanup.py +0 -295
  999. package/tools/vds-scripts/excel_orchestrator/finalize_brd_coverage.py +0 -327
  1000. package/tools/vds-scripts/excel_orchestrator/fix_all_formulas.py +0 -99
  1001. package/tools/vds-scripts/excel_orchestrator/fix_detail_presentation.py +0 -113
  1002. package/tools/vds-scripts/excel_orchestrator/fix_presentation_and_effort.py +0 -116
  1003. package/tools/vds-scripts/excel_orchestrator/fix_presentation_consistency.py +0 -231
  1004. package/tools/vds-scripts/excel_orchestrator/fix_remarks_matching.py +0 -179
  1005. package/tools/vds-scripts/excel_orchestrator/group_tasks_by_service_id.py +0 -210
  1006. package/tools/vds-scripts/excel_orchestrator/increase_brd_coverage.py +0 -497
  1007. package/tools/vds-scripts/excel_orchestrator/increase_effort_complexity.py +0 -155
  1008. package/tools/vds-scripts/excel_orchestrator/organize_and_deduplicate.py +0 -273
  1009. package/tools/vds-scripts/excel_orchestrator/pyproject.toml +0 -64
  1010. package/tools/vds-scripts/excel_orchestrator/rebuild_all_formulas.py +0 -146
  1011. package/tools/vds-scripts/excel_orchestrator/remove_base_multiplier_and_check_duplicates.py +0 -310
  1012. package/tools/vds-scripts/excel_orchestrator/remove_duplicate_brd_tasks.py +0 -137
  1013. package/tools/vds-scripts/excel_orchestrator/research_based_updates.py +0 -457
  1014. package/tools/vds-scripts/excel_orchestrator/restore_e_values.py +0 -172
  1015. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/__init__.py +0 -5
  1016. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/cli.py +0 -746
  1017. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/config.py +0 -74
  1018. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/converters.py +0 -226
  1019. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/errors.py +0 -88
  1020. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/excel_client.py +0 -443
  1021. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/formatters.py +0 -211
  1022. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/logging.py +0 -57
  1023. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/source_contract.py +0 -29
  1024. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/target_state_status.py +0 -837
  1025. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/ulnc_alignment.py +0 -1291
  1026. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/validators.py +0 -164
  1027. package/tools/vds-scripts/excel_orchestrator/sync_detail_and_total_sheets.py +0 -211
  1028. package/tools/vds-scripts/excel_orchestrator/tests/__init__.py +0 -1
  1029. package/tools/vds-scripts/excel_orchestrator/tests/conftest.py +0 -36
  1030. package/tools/vds-scripts/excel_orchestrator/tests/test_cli.py +0 -383
  1031. package/tools/vds-scripts/excel_orchestrator/tests/test_excel_client.py +0 -129
  1032. package/tools/vds-scripts/excel_orchestrator/tests/test_ulnc_alignment.py +0 -373
  1033. package/tools/vds-scripts/excel_orchestrator/tests/test_validators.py +0 -64
  1034. package/tools/vds-scripts/excel_orchestrator/update_api_database_effort.py +0 -261
  1035. package/tools/vds-scripts/excel_orchestrator/update_buffers_inline.py +0 -115
  1036. package/tools/vds-scripts/excel_orchestrator/update_complex_services_and_add_new.py +0 -336
  1037. package/tools/vds-scripts/excel_orchestrator/update_responsibility_and_fix_rows.py +0 -208
  1038. package/tools/vds-scripts/excel_orchestrator/update_task_breakdown_vietnamese.py +0 -309
  1039. package/tools/vds-scripts/excel_orchestrator/update_vietnamese_and_responsibility.py +0 -415
  1040. package/tools/vds-scripts/excel_orchestrator/verify_brd_coverage_comprehensive.py +0 -401
  1041. package/tools/vds-scripts/hexagonal_orchestrator/README.md +0 -530
  1042. package/tools/vds-scripts/hexagonal_orchestrator/pyproject.toml +0 -48
  1043. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/__init__.py +0 -39
  1044. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/__init__.py +0 -19
  1045. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/base.py +0 -95
  1046. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/fallback.py +0 -614
  1047. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/java.py +0 -372
  1048. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/python.py +0 -437
  1049. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cache.py +0 -331
  1050. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/classifier.py +0 -263
  1051. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cli.py +0 -554
  1052. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/config.py +0 -577
  1053. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/models.py +0 -159
  1054. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/profiler.py +0 -451
  1055. package/tools/vds-scripts/hexagonal_orchestrator/test-config.yaml +0 -38
  1056. package/tools/vds-scripts/hexagonal_orchestrator/tests/__init__.py +0 -1
  1057. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/__init__.py +0 -1
  1058. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driven/persistence/InMemoryUserRepository.java +0 -62
  1059. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driving/api/UserController.java +0 -101
  1060. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/EmailService.java +0 -33
  1061. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/UserRepository.java +0 -45
  1062. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/usecase/CreateUser.java +0 -58
  1063. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/Email.java +0 -80
  1064. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/User.java +0 -98
  1065. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-noncompliant/domain/User.java +0 -64
  1066. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Menu.java +0 -13
  1067. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Product.java +0 -16
  1068. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/__init__.py +0 -1
  1069. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/__init__.py +0 -1
  1070. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/__init__.py +0 -1
  1071. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/email_service.py +0 -60
  1072. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/user_repository.py +0 -78
  1073. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/__init__.py +0 -1
  1074. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/__init__.py +0 -1
  1075. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/user.py +0 -56
  1076. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/__init__.py +0 -1
  1077. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/email.py +0 -63
  1078. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/application/user_service.py +0 -1837
  1079. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/domain/user.py +0 -43
  1080. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cache.py +0 -458
  1081. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_integration.py +0 -942
  1082. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_unit.py +0 -557
  1083. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cross_repo_pollution.py +0 -275
  1084. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_foundation.py +0 -129
  1085. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_integration.py +0 -1524
  1086. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_java_analyzer.py +0 -642
  1087. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_timing_unit.py +0 -60
  1088. package/tools/vds-scripts/intellij_orchestrator/README.md +0 -55
  1089. package/tools/vds-scripts/intellij_orchestrator/pyproject.toml +0 -64
  1090. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/__init__.py +0 -17
  1091. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/cli.py +0 -210
  1092. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/core.py +0 -260
  1093. package/tools/vds-scripts/intellij_orchestrator/tests/__init__.py +0 -1
  1094. package/tools/vds-scripts/intellij_orchestrator/tests/test_cli.py +0 -112
  1095. package/tools/vds-scripts/intellij_orchestrator/tests/test_core.py +0 -83
  1096. package/tools/vds-scripts/links_orchestrator/README.md +0 -63
  1097. package/tools/vds-scripts/links_orchestrator/pyproject.toml +0 -64
  1098. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/__init__.py +0 -10
  1099. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/cli.py +0 -254
  1100. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/validator.py +0 -244
  1101. package/tools/vds-scripts/links_orchestrator/tests/__init__.py +0 -0
  1102. package/tools/vds-scripts/links_orchestrator/tests/test_cli.py +0 -128
  1103. package/tools/vds-scripts/links_orchestrator/tests/test_validator.py +0 -76
  1104. package/tools/vds-scripts/lsp_orchestrator/.dockerignore +0 -69
  1105. package/tools/vds-scripts/lsp_orchestrator/ARCHITECTURE.md +0 -383
  1106. package/tools/vds-scripts/lsp_orchestrator/CODE_QUALITY_IMPROVEMENTS.md +0 -196
  1107. package/tools/vds-scripts/lsp_orchestrator/COMMANDS.md +0 -870
  1108. package/tools/vds-scripts/lsp_orchestrator/Dockerfile +0 -59
  1109. package/tools/vds-scripts/lsp_orchestrator/IMPLEMENTATION_SUMMARY.md +0 -490
  1110. package/tools/vds-scripts/lsp_orchestrator/LSP_ISSUES_AND_FINDINGS.md +0 -380
  1111. package/tools/vds-scripts/lsp_orchestrator/README.md +0 -616
  1112. package/tools/vds-scripts/lsp_orchestrator/SETUP.md +0 -143
  1113. package/tools/vds-scripts/lsp_orchestrator/TEST_COVERAGE_SUMMARY.md +0 -255
  1114. package/tools/vds-scripts/lsp_orchestrator/VERIFICATION_CHECKLIST.md +0 -814
  1115. package/tools/vds-scripts/lsp_orchestrator/docker-compose.yml +0 -102
  1116. package/tools/vds-scripts/lsp_orchestrator/docs/FOR_LLMS.md +0 -401
  1117. package/tools/vds-scripts/lsp_orchestrator/docs/explanation/lsp-response-matching.md +0 -79
  1118. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/automate-with-json.md +0 -159
  1119. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/docker-mode.md +0 -256
  1120. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/navigate-code.md +0 -116
  1121. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/parallel-processing.md +0 -179
  1122. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/project-tool-detection.md +0 -320
  1123. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/type-check-code.md +0 -46
  1124. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/use-daemon-mode.md +0 -78
  1125. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/wsl2-optimization.md +0 -227
  1126. package/tools/vds-scripts/lsp_orchestrator/docs/index.md +0 -88
  1127. package/tools/vds-scripts/lsp_orchestrator/docs/operator-hover-definition.md +0 -143
  1128. package/tools/vds-scripts/lsp_orchestrator/docs/reference/commands.md +0 -581
  1129. package/tools/vds-scripts/lsp_orchestrator/docs/reference/configuration.md +0 -422
  1130. package/tools/vds-scripts/lsp_orchestrator/docs/tutorials/00-quick-start.md +0 -169
  1131. package/tools/vds-scripts/lsp_orchestrator/pyproject.toml +0 -63
  1132. package/tools/vds-scripts/lsp_orchestrator/src/test_file.py +0 -5
  1133. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/__init__.py +0 -3
  1134. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/aggregator.py +0 -340
  1135. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/basedpyright_runner.py +0 -167
  1136. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/cli.py +0 -3370
  1137. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/code_actions.py +0 -79
  1138. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/core.py +0 -3295
  1139. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_client.py +0 -672
  1140. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_manager.py +0 -577
  1141. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_server.py +0 -1040
  1142. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/__init__.py +0 -9
  1143. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/project_detector.py +0 -537
  1144. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/formatters.py +0 -141
  1145. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ipc_protocol.py +0 -225
  1146. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_client.py +0 -957
  1147. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_router.py +0 -335
  1148. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mcp_server.py +0 -181
  1149. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/__init__.py +0 -201
  1150. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_detector.py +0 -646
  1151. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_tools.py +0 -114
  1152. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models.py +0 -399
  1153. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mypy_runner.py +0 -209
  1154. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/protocols.py +0 -52
  1155. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_lsp_client.py +0 -109
  1156. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_runner.py +0 -44
  1157. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/utils.py +0 -959
  1158. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/workspace_indexer.py +0 -1037
  1159. package/tools/vds-scripts/lsp_orchestrator/test_workspace_lsp.py +0 -6
  1160. package/tools/vds-scripts/lsp_orchestrator/tests/__init__.py +0 -1
  1161. package/tools/vds-scripts/lsp_orchestrator/tests/conftest.py +0 -6
  1162. package/tools/vds-scripts/lsp_orchestrator/tests/test_aggregator.py +0 -59
  1163. package/tools/vds-scripts/lsp_orchestrator/tests/test_cli.py +0 -111
  1164. package/tools/vds-scripts/lsp_orchestrator/tests/test_detect_tools_command.py +0 -186
  1165. package/tools/vds-scripts/lsp_orchestrator/tests/test_formatter_linter_detection.py +0 -519
  1166. package/tools/vds-scripts/lsp_orchestrator/tests/test_integration_phase9_10_11.py +0 -367
  1167. package/tools/vds-scripts/lsp_orchestrator/tests/test_mypy_runner.py +0 -482
  1168. package/tools/vds-scripts/lsp_orchestrator/tests/test_package_manager_detection.py +0 -399
  1169. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase10.py +0 -389
  1170. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase11.py +0 -327
  1171. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase12_integration.py +0 -634
  1172. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase9.py +0 -196
  1173. package/tools/vds-scripts/lsp_orchestrator/tests/test_project_detector.py +0 -377
  1174. package/tools/vds-scripts/lsp_orchestrator/tests/test_test_runner_detection.py +0 -549
  1175. package/tools/vds-scripts/lsp_orchestrator/tests/test_type_checker_routing.py +0 -362
  1176. package/tools/vds-scripts/lsp_orchestrator/tests/test_workspace_indexer.py +0 -144
  1177. package/tools/vds-scripts/markdown_orchestrator/README.md +0 -72
  1178. package/tools/vds-scripts/markdown_orchestrator/pyproject.toml +0 -39
  1179. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/__init__.py +0 -5
  1180. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/cli.py +0 -102
  1181. package/tools/vds-scripts/multi_agent_orchestrator/Dockerfile +0 -65
  1182. package/tools/vds-scripts/multi_agent_orchestrator/README.md +0 -306
  1183. package/tools/vds-scripts/multi_agent_orchestrator/postman/README.md +0 -264
  1184. package/tools/vds-scripts/multi_agent_orchestrator/postman/TEST_RESULTS_SUMMARY.md +0 -197
  1185. package/tools/vds-scripts/multi_agent_orchestrator/postman/VDS-Multi-Agent-Orchestrator-API.postman_collection.json +0 -1010
  1186. package/tools/vds-scripts/multi_agent_orchestrator/postman/environments/local-development.postman_environment.json +0 -55
  1187. package/tools/vds-scripts/multi_agent_orchestrator/postman/test-results.json +0 -24146
  1188. package/tools/vds-scripts/multi_agent_orchestrator/pyproject.toml +0 -63
  1189. package/tools/vds-scripts/multi_agent_orchestrator/run_api.py +0 -9
  1190. package/tools/vds-scripts/multi_agent_orchestrator/run_mock_api.py +0 -9
  1191. package/tools/vds-scripts/multi_agent_orchestrator/simple_test.py +0 -53
  1192. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/__init__.py +0 -25
  1193. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/agent_pool.py +0 -433
  1194. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/__init__.py +0 -5
  1195. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/main.py +0 -722
  1196. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/mock_main.py +0 -812
  1197. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/change_log.py +0 -515
  1198. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/cli.py +0 -424
  1199. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/config.py +0 -220
  1200. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/conflict_resolver.py +0 -462
  1201. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/coordinator.py +0 -627
  1202. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/models.py +0 -389
  1203. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/progress_dashboard.py +0 -380
  1204. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/redis_client.py +0 -245
  1205. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/scheduler_subscriber.py +0 -272
  1206. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_manager.py +0 -536
  1207. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_tracking.py +0 -550
  1208. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/vds_ai_memory_client.py +0 -352
  1209. package/tools/vds-scripts/multi_agent_orchestrator/test_complete_system.py +0 -149
  1210. package/tools/vds-scripts/multi_agent_orchestrator/test_infrastructure_only.py +0 -194
  1211. package/tools/vds-scripts/multi_agent_orchestrator/test_integration.py +0 -108
  1212. package/tools/vds-scripts/multi_agent_orchestrator/tests/__init__.py +0 -1
  1213. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_agent_registration_credential_validator.py +0 -223
  1214. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_config.py +0 -210
  1215. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_models.py +0 -195
  1216. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_w9_agent_routes.py +0 -321
  1217. package/tools/vds-scripts/openapi_orchestrator/README.md +0 -197
  1218. package/tools/vds-scripts/openapi_orchestrator/pyproject.toml +0 -106
  1219. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/__init__.py +0 -29
  1220. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/cli.py +0 -345
  1221. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/full_validator.py +0 -183
  1222. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/spec_validator.py +0 -197
  1223. package/tools/vds-scripts/openapi_orchestrator/tests/__init__.py +0 -1
  1224. package/tools/vds-scripts/openapi_orchestrator/tests/test_cli.py +0 -234
  1225. package/tools/vds-scripts/openapi_orchestrator/tests/test_full_validator.py +0 -203
  1226. package/tools/vds-scripts/openapi_orchestrator/tests/test_spec_validator.py +0 -295
  1227. package/tools/vds-scripts/pdf_orchestrator/.dockerignore +0 -93
  1228. package/tools/vds-scripts/pdf_orchestrator/.env.example +0 -40
  1229. package/tools/vds-scripts/pdf_orchestrator/.ruff_rules.py +0 -350
  1230. package/tools/vds-scripts/pdf_orchestrator/.yamllint.yml +0 -43
  1231. package/tools/vds-scripts/pdf_orchestrator/DEVELOPMENT_PLAN.md +0 -80
  1232. package/tools/vds-scripts/pdf_orchestrator/Dockerfile +0 -87
  1233. package/tools/vds-scripts/pdf_orchestrator/README.md +0 -608
  1234. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.md +0 -6
  1235. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.pdf +0 -0
  1236. package/tools/vds-scripts/pdf_orchestrator/config/alertmanager.yml +0 -83
  1237. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.prod.yml +0 -98
  1238. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.yml +0 -40
  1239. package/tools/vds-scripts/pdf_orchestrator/config/redis.conf +0 -78
  1240. package/tools/vds-scripts/pdf_orchestrator/docs/COMPETITIVE_ANALYSIS_REPORT.md +0 -309
  1241. package/tools/vds-scripts/pdf_orchestrator/docs/FEATURES_GUIDE.md +0 -518
  1242. package/tools/vds-scripts/pdf_orchestrator/docs/MULTI_USER_DEPLOYMENT_GUIDE.md +0 -615
  1243. package/tools/vds-scripts/pdf_orchestrator/docs/USER_GUIDE.md +0 -829
  1244. package/tools/vds-scripts/pdf_orchestrator/pyproject.toml +0 -87
  1245. package/tools/vds-scripts/pdf_orchestrator/pytest.ini +0 -71
  1246. package/tools/vds-scripts/pdf_orchestrator/ruff.toml +0 -6
  1247. package/tools/vds-scripts/pdf_orchestrator/scripts/debug_security_report.py +0 -59
  1248. package/tools/vds-scripts/pdf_orchestrator/scripts/demo_library_selector.py +0 -109
  1249. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_project_stats.py +0 -52
  1250. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_styled_pdf.py +0 -95
  1251. package/tools/vds-scripts/pdf_orchestrator/scripts/migrate_render_pdfs.py +0 -285
  1252. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.bat +0 -283
  1253. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.sh +0 -324
  1254. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/__init__.py +0 -5
  1255. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/cli.py +0 -542
  1256. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/config.py +0 -33
  1257. package/tools/vds-scripts/pdf_orchestrator/tests/README.md +0 -650
  1258. package/tools/vds-scripts/pdf_orchestrator/tests/__init__.py +0 -0
  1259. package/tools/vds-scripts/pdf_orchestrator/tests/conftest.py +0 -520
  1260. package/tools/vds-scripts/pdf_orchestrator/tests/requirements.txt +0 -51
  1261. package/tools/vds-scripts/pdf_orchestrator/tests/run_tests.py +0 -659
  1262. package/tools/vds-scripts/pdf_orchestrator/tests/test_config.py +0 -36
  1263. package/tools/vds-scripts/progress_report_orchestrator/Dockerfile +0 -77
  1264. package/tools/vds-scripts/progress_report_orchestrator/README.md +0 -39
  1265. package/tools/vds-scripts/progress_report_orchestrator/alembic/env.py +0 -42
  1266. package/tools/vds-scripts/progress_report_orchestrator/alembic/script.py.mako +0 -28
  1267. package/tools/vds-scripts/progress_report_orchestrator/alembic/versions/0001_initial_progress_schema.py +0 -180
  1268. package/tools/vds-scripts/progress_report_orchestrator/alembic.ini +0 -67
  1269. package/tools/vds-scripts/progress_report_orchestrator/pyproject.toml +0 -67
  1270. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/__init__.py +0 -3
  1271. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/__init__.py +0 -1
  1272. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/endpoint_scanner.py +0 -238
  1273. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/git_activity.py +0 -159
  1274. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/hexagonal.py +0 -100
  1275. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/test_scanner.py +0 -136
  1276. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/cli.py +0 -743
  1277. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/config.py +0 -50
  1278. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/__init__.py +0 -12
  1279. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/alembic_filters.py +0 -64
  1280. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/memory.py +0 -82
  1281. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/__init__.py +0 -1
  1282. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/analysis.py +0 -84
  1283. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/report.py +0 -117
  1284. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/topology.py +0 -101
  1285. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/__init__.py +0 -1
  1286. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/kg_parser.py +0 -252
  1287. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/uc_reader.py +0 -159
  1288. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/__init__.py +0 -1
  1289. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/concurrency.py +0 -39
  1290. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/llm_eval.py +0 -570
  1291. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/report.py +0 -1256
  1292. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/structural.py +0 -384
  1293. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/sync.py +0 -143
  1294. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/__init__.py +0 -5
  1295. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/engine.py +0 -105
  1296. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/templates.py +0 -236
  1297. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/scheduler_subscriber.py +0 -238
  1298. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/README.md +0 -56
  1299. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/__init__.py +0 -1
  1300. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-architecture-reviewer/SKILL.md +0 -67
  1301. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-endpoint-matcher/SKILL.md +0 -67
  1302. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/__init__.py +0 -1
  1303. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/schema.py +0 -625
  1304. package/tools/vds-scripts/progress_report_orchestrator/tests/__init__.py +0 -0
  1305. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/__init__.py +0 -0
  1306. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/.gitkeep +0 -0
  1307. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/__init__.py +0 -0
  1308. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/doc-dependencies.yaml +0 -79
  1309. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-docs.yaml +0 -478
  1310. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-services.yaml +0 -18
  1311. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/registry.yaml +0 -346
  1312. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/phase3_baseline_standard.md +0 -564
  1313. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/__init__.py +0 -0
  1314. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/test_checkpoint.py +0 -276
  1315. package/tools/vds-scripts/progress_report_orchestrator/tests/test_alembic_migrations.py +0 -265
  1316. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/__init__.py +0 -0
  1317. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_analyzers.py +0 -267
  1318. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_bounded_gather.py +0 -176
  1319. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_cli_phase_report.py +0 -119
  1320. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_delta.py +0 -169
  1321. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_error_handling.py +0 -150
  1322. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_gate_exit_codes.py +0 -230
  1323. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_git_activity.py +0 -215
  1324. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_kg_parser.py +0 -267
  1325. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_autodetect.py +0 -183
  1326. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_eval.py +0 -529
  1327. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_memory_integration.py +0 -151
  1328. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_migration_contract.py +0 -254
  1329. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_mode_rendering.py +0 -576
  1330. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_models.py +0 -251
  1331. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_progress_llm_config.py +0 -67
  1332. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_recommendations.py +0 -480
  1333. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_report_enhancements.py +0 -415
  1334. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_resume_reload.py +0 -343
  1335. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_trend_regression.py +0 -294
  1336. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_uc_reader.py +0 -169
  1337. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_valence_gap.py +0 -293
  1338. package/tools/vds-scripts/project-cycle-report.json +0 -14
  1339. package/tools/vds-scripts/project-dependency-graph.json +0 -11361
  1340. package/tools/vds-scripts/project-topology.json +0 -99
  1341. package/tools/vds-scripts/public_interface_boundary_orchestrator/pyproject.toml +0 -18
  1342. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/__init__.py +0 -0
  1343. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/cli.py +0 -232
  1344. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/__init__.py +0 -0
  1345. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/test_cli.py +0 -108
  1346. package/tools/vds-scripts/research_orchestrator/README.md +0 -68
  1347. package/tools/vds-scripts/research_orchestrator/py.typed +0 -0
  1348. package/tools/vds-scripts/research_orchestrator/pyproject.toml +0 -95
  1349. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/__init__.py +0 -3
  1350. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/_env.py +0 -11
  1351. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/cli.py +0 -335
  1352. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/config.py +0 -43
  1353. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/__init__.py +0 -0
  1354. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/models.py +0 -89
  1355. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/scoring.py +0 -102
  1356. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/exceptions.py +0 -78
  1357. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/http_client.py +0 -160
  1358. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/logging.py +0 -49
  1359. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/__init__.py +0 -0
  1360. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/formatters.py +0 -93
  1361. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/py.typed +0 -1
  1362. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/__init__.py +0 -0
  1363. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/build.py +0 -156
  1364. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/format.py +0 -147
  1365. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/__init__.py +0 -0
  1366. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health.py +0 -66
  1367. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health_graph.py +0 -52
  1368. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/registry.py +0 -127
  1369. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/search.py +0 -230
  1370. package/tools/vds-scripts/research_orchestrator/tests/__init__.py +0 -0
  1371. package/tools/vds-scripts/research_orchestrator/tests/conftest.py +0 -53
  1372. package/tools/vds-scripts/research_orchestrator/tests/test_cli.py +0 -222
  1373. package/tools/vds-scripts/research_orchestrator/tests/test_config.py +0 -23
  1374. package/tools/vds-scripts/research_orchestrator/tests/test_exceptions.py +0 -62
  1375. package/tools/vds-scripts/research_orchestrator/tests/test_formatters.py +0 -89
  1376. package/tools/vds-scripts/research_orchestrator/tests/test_graph_integration.py +0 -149
  1377. package/tools/vds-scripts/research_orchestrator/tests/test_http_client.py +0 -134
  1378. package/tools/vds-scripts/research_orchestrator/tests/test_report_build.py +0 -128
  1379. package/tools/vds-scripts/research_orchestrator/tests/test_report_format.py +0 -91
  1380. package/tools/vds-scripts/research_orchestrator/tests/test_scoring.py +0 -95
  1381. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/__init__.py +0 -1
  1382. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_health.py +0 -139
  1383. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_registry.py +0 -135
  1384. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_search.py +0 -238
  1385. package/tools/vds-scripts/run-history.json +0 -26
  1386. package/tools/vds-scripts/schema_converter/README.md +0 -109
  1387. package/tools/vds-scripts/schema_converter/pyproject.toml +0 -37
  1388. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/__init__.py +0 -3
  1389. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/cli.py +0 -50
  1390. package/tools/vds-scripts/schema_converter/tests/__init__.py +0 -0
  1391. package/tools/vds-scripts/schema_converter/tests/test_json_schema_generator.py +0 -115
  1392. package/tools/vds-scripts/schema_converter/tests/test_mermaid_generator.py +0 -112
  1393. package/tools/vds-scripts/schema_converter/tests/test_parser.py +0 -111
  1394. package/tools/vds-scripts/schema_converter/tests/test_plantuml_generator.py +0 -112
  1395. package/tools/vds-scripts/schema_converter/tests/test_plantuml_validator.py +0 -69
  1396. package/tools/vds-scripts/schema_converter/tests/test_prisma_generator.py +0 -113
  1397. package/tools/vds-scripts/schema_converter/tests/test_sql_generator.py +0 -138
  1398. package/tools/vds-scripts/schema_converter/tests/test_typeorm_generator.py +0 -110
  1399. package/tools/vds-scripts/schema_converter/tests/test_validators.py +0 -96
  1400. package/tools/vds-scripts/spec_orchestrator/README.md +0 -13
  1401. package/tools/vds-scripts/spec_orchestrator/pyproject.toml +0 -40
  1402. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/__init__.py +0 -5
  1403. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/cli.py +0 -162
  1404. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/core.py +0 -575
  1405. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/sync.py +0 -306
  1406. package/tools/vds-scripts/spec_orchestrator/tests/__init__.py +0 -0
  1407. package/tools/vds-scripts/spec_orchestrator/tests/test_frontmatter_drift.py +0 -243
  1408. package/tools/vds-scripts/spec_orchestrator/tests/test_sync.py +0 -342
  1409. package/tools/vds-scripts/structure_orchestrator/README.md +0 -60
  1410. package/tools/vds-scripts/structure_orchestrator/pyproject.toml +0 -103
  1411. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/__init__.py +0 -13
  1412. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/cli.py +0 -308
  1413. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/validator.py +0 -257
  1414. package/tools/vds-scripts/structure_orchestrator/tests/__init__.py +0 -0
  1415. package/tools/vds-scripts/structure_orchestrator/tests/test_cli.py +0 -161
  1416. package/tools/vds-scripts/structure_orchestrator/tests/test_helpers.py +0 -115
  1417. package/tools/vds-scripts/structure_orchestrator/tests/test_validator.py +0 -104
  1418. package/tools/vds-scripts/task_orchestrator/README.md +0 -50
  1419. package/tools/vds-scripts/task_orchestrator/__init__.py +0 -18
  1420. package/tools/vds-scripts/task_orchestrator/pyproject.toml +0 -43
  1421. package/tools/vds-scripts/task_orchestrator/scripts/run_excel_sync.py +0 -36
  1422. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/__init__.py +0 -13
  1423. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/audit.py +0 -134
  1424. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/cli.py +0 -127
  1425. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/debug.py +0 -133
  1426. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/normalize.py +0 -113
  1427. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/refine.py +0 -201
  1428. package/tools/vds-scripts/task_orchestrator/tests/__init__.py +0 -0
  1429. package/tools/vds-scripts/task_orchestrator/tests/test_task_orchestrator.py +0 -84
  1430. package/tools/vds-scripts/temp_query_projects.py +0 -2
  1431. package/tools/vds-scripts/test_small.md +0 -1
  1432. package/tools/vds-scripts/text_utils_orchestrator/pyproject.toml +0 -20
  1433. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/__init__.py +0 -7
  1434. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/i18n.py +0 -143
  1435. package/tools/vds-scripts/text_utils_orchestrator/tests/__init__.py +0 -0
  1436. package/tools/vds-scripts/text_utils_orchestrator/tests/test_i18n.py +0 -53
  1437. package/tools/vds-scripts/upgrade_major.py +0 -61
  1438. package/tools/vds-scripts/upgrade_major_v2.py +0 -64
  1439. package/tools/vds-scripts/verify_violations.py +0 -57
  1440. package/tools/vds-scripts/workflow-summary.json +0 -325
  1441. package/tools/vds-scripts/workflow-summary.md +0 -8
@@ -1,1696 +0,0 @@
1
- """Regression tests for Confluence checklist projection consistency."""
2
-
3
- from __future__ import annotations
4
-
5
- import json
6
-
7
- import pytest
8
- from bs4 import BeautifulSoup
9
- from openpyxl import load_workbook
10
- from vds_audit_orchestrator.engine.checklist_projection import PROJECTION_PROFILE_VERSION
11
- from vds_audit_orchestrator.engine.confluence_checklist_contract import (
12
- _build_checklist_meta_payload,
13
- _sanitize_private_urls_in_payload,
14
- _write_retrieval_trace_sidecar,
15
- export_confluence_checklist_excel,
16
- )
17
- from vds_audit_orchestrator.engine.row_evaluator import RowEvaluator
18
- from vds_audit_orchestrator.engine.row_evaluator_types import RowEvaluationResult
19
- from vds_audit_orchestrator.models.checklist import (
20
- AuditChecklist,
21
- EvidenceAnchor,
22
- RowProvenance,
23
- RowStatus,
24
- ScoreBreakdown,
25
- )
26
- from vds_audit_orchestrator.publishers.checklist_renderer import FullChecklistRenderer
27
-
28
-
29
- def test_confluence_contract_excel_uses_shared_rule_main_projection(tmp_path) -> None:
30
- checklist = AuditChecklist.model_validate(
31
- {
32
- "checklist_version": "1.0.0",
33
- "generated_at": "2026-02-04T10:00:00",
34
- "template_name": "VDS Checklist",
35
- "template_version": "1.0",
36
- "template_hash": "abc123def456",
37
- "template_row_count": 1,
38
- "repository": "test-repo",
39
- "row_llm_mode": "selective",
40
- "evidence_hash": "xyz789abc012",
41
- "rows": [
42
- {
43
- "row_id": "SEC-001:row_0",
44
- "row_index": 0,
45
- "check_id": "SEC-001",
46
- "section_id": "SectionFallback",
47
- "requirement_category": "RuleA||MainA",
48
- "requirement_text": "Threat model required",
49
- "weight_raw": 10.0,
50
- "weight_adjusted": 10.0,
51
- "status": "FAIL",
52
- "score_breakdown": {"raw_score": 10.0, "final_score": 10.0},
53
- "evidence_refs": [{"ref_type": "code_path", "ref_value": "docs/THREAT_MODEL.md"}],
54
- "reason": "No threat model documentation found in repository",
55
- "finding": "Missing THREAT_MODEL.md or equivalent documentation",
56
- "provenance": {
57
- "row_llm_mode": "deterministic",
58
- "evaluated_at": "2026-02-04T10:00:00",
59
- "template_hash": "abc123",
60
- "evidence_hash": "xyz789",
61
- },
62
- }
63
- ],
64
- }
65
- )
66
-
67
- output_path = tmp_path / "confluence-checklist.xlsx"
68
- export_confluence_checklist_excel(checklist, output_path=output_path)
69
-
70
- ws = load_workbook(output_path)["Checklist"]
71
- assert ws["A2"].value == "RuleA"
72
- assert ws["B2"].value == "MainA"
73
- assert ws["C2"].value == "Threat model required"
74
-
75
-
76
- def test_row_projection_consistency_between_contract_excel_and_rendered_html(tmp_path) -> None:
77
- checklist = AuditChecklist.model_validate(
78
- {
79
- "checklist_version": "1.0.0",
80
- "generated_at": "2026-02-04T10:00:00",
81
- "template_name": "VDS Checklist",
82
- "template_version": "1.0",
83
- "template_hash": "abc123def456",
84
- "template_row_count": 1,
85
- "repository": "test-repo",
86
- "row_llm_mode": "selective",
87
- "evidence_hash": "xyz789abc012",
88
- "rows": [
89
- {
90
- "row_id": "SEC-001:row_0",
91
- "row_index": 0,
92
- "check_id": "SEC-001",
93
- "section_id": "SectionFallback",
94
- "requirement_category": "QuyTacA||TieuChiChinhA",
95
- "requirement_text": "Threat model required",
96
- "weight_raw": 10.0,
97
- "weight_adjusted": 10.0,
98
- "status": "FAIL",
99
- "score_breakdown": {"raw_score": 10.0, "final_score": 10.0},
100
- "reason": "No threat model documentation found in repository",
101
- "finding": "Missing THREAT_MODEL.md or equivalent documentation",
102
- "provenance": {
103
- "row_llm_mode": "deterministic",
104
- "evaluated_at": "2026-02-04T10:00:00",
105
- "template_hash": "abc123",
106
- "evidence_hash": "xyz789",
107
- },
108
- }
109
- ],
110
- }
111
- )
112
-
113
- output_path = tmp_path / "confluence-checklist.xlsx"
114
- export_confluence_checklist_excel(checklist, output_path=output_path)
115
- ws = load_workbook(output_path)["Checklist"]
116
-
117
- html = FullChecklistRenderer().render(checklist, collapsed=False)
118
- tables = BeautifulSoup(html, "html.parser").find_all("table")
119
- assert len(tables) >= 2
120
- # Phase 42: first table is strict core (Yêu cầu/Điểm/Trọng số),
121
- # second table contains reasoning/evidence details.
122
- core_first_row = tables[0].find_all("tr")[1]
123
- core_cells = [cell.get_text(strip=True) for cell in core_first_row.find_all("td")]
124
- detail_first_row = tables[1].find_all("tr")[1]
125
- detail_cells = [cell.get_text(strip=True) for cell in detail_first_row.find_all("td")]
126
-
127
- assert ws["C2"].value == core_cells[0] # Tiêu chí con (requirement_text)
128
- assert ws["C2"].value == detail_cells[0] # Yêu cầu in details section
129
-
130
-
131
- def test_confluence_meta_includes_projection_profile_version_and_extended_columns(tmp_path) -> None:
132
- checklist = AuditChecklist.model_validate(
133
- {
134
- "checklist_version": "1.0.0",
135
- "generated_at": "2026-02-04T10:00:00",
136
- "template_name": "VDS Checklist",
137
- "template_version": "1.0",
138
- "template_hash": "abc123def456",
139
- "template_row_count": 1,
140
- "repository": "test-repo",
141
- "row_llm_mode": "selective",
142
- "evidence_hash": "xyz789abc012",
143
- "rows": [],
144
- }
145
- )
146
- payload = _build_checklist_meta_payload(
147
- checklist=checklist,
148
- report_dir=tmp_path,
149
- checklist_page_id="88716673",
150
- confluence_meta={"title": "Checklist", "version": 12},
151
- delta_payload={"targeted_run": False, "changed_row_count": 0, "merge_guardrail": {}},
152
- retrieval_trace_path=tmp_path / "audit-checklist.retrieval-trace.json",
153
- )
154
-
155
- assert payload["projection_profile_version"] == PROJECTION_PROFILE_VERSION
156
- extended_keys = [column["key"] for column in payload["columns"]["canonical_extended_columns"]]
157
- assert payload["paths"]["retrieval_trace_json"].endswith("audit-checklist.retrieval-trace.json")
158
- assert payload["preflight"]["requirement_mapping"] is None
159
- assert payload["preflight"]["security_evidence"] is None
160
- assert isinstance(payload["summary"], str)
161
- assert isinstance(payload["synthesis"], dict)
162
- assert isinstance(payload["evidence_quality"], dict)
163
- assert isinstance(payload["reconciliation_source"], dict)
164
- assert isinstance(payload["summary_meta_parity"], dict)
165
- assert payload["summary_meta_parity_detected"] is False
166
- assert payload["parity_mismatch"]["detected"] is False
167
- assert extended_keys[:10] == [
168
- "status_vietnamese",
169
- "score_percent",
170
- "score_1_5",
171
- "reason",
172
- "finding",
173
- "evidence_refs_str",
174
- "severity",
175
- "priority",
176
- "effort",
177
- "recommendation",
178
- ]
179
-
180
-
181
- def test_confluence_meta_includes_verification_coverage_summary(tmp_path) -> None:
182
- checklist = AuditChecklist.model_validate(
183
- {
184
- "checklist_version": "1.0.0",
185
- "generated_at": "2026-02-25T10:00:00",
186
- "template_name": "VDS Checklist",
187
- "template_version": "1.0",
188
- "template_hash": "abc123def456",
189
- "template_row_count": 2,
190
- "repository": "test-repo",
191
- "row_llm_mode": "selective",
192
- "evidence_hash": "xyz789abc012",
193
- "rows": [
194
- {
195
- "row_id": "CL-001:row_0",
196
- "row_index": 0,
197
- "check_id": "CL-001",
198
- "section_id": "SEC",
199
- "requirement_text": "Row one",
200
- "weight_raw": 10.0,
201
- "weight_adjusted": 10.0,
202
- "status": "FAIL",
203
- "score_breakdown": {"raw_score": 20.0, "final_score": 20.0},
204
- "evidence_refs": [
205
- {
206
- "ref_type": "code_path",
207
- "ref_value": "Dockerfile",
208
- "excerpt": "FROM eclipse-temurin:21-jdk",
209
- "verified": True,
210
- },
211
- {
212
- "ref_type": "code_path",
213
- "ref_value": "Dockerfile",
214
- "excerpt": "USER app",
215
- "verified": False,
216
- "verification_reason": "excerpt_verification_disabled",
217
- },
218
- ],
219
- "reason": "Reason one",
220
- "finding": "Finding one",
221
- "provenance": {
222
- "row_llm_mode": "deterministic",
223
- "evaluated_at": "2026-02-25T10:00:00",
224
- "template_hash": "abc123",
225
- "evidence_hash": "xyz789",
226
- },
227
- },
228
- {
229
- "row_id": "CL-002:row_1",
230
- "row_index": 1,
231
- "check_id": "CL-002",
232
- "section_id": "SEC",
233
- "requirement_text": "Row two",
234
- "weight_raw": 10.0,
235
- "weight_adjusted": 10.0,
236
- "status": "PARTIAL",
237
- "score_breakdown": {"raw_score": 60.0, "final_score": 60.0},
238
- "evidence_refs": [
239
- {
240
- "ref_type": "confluence_url",
241
- "ref_value": "https://confluence.local/page",
242
- "excerpt": "",
243
- "verified": False,
244
- }
245
- ],
246
- "reason": "Reason two",
247
- "finding": "Finding two",
248
- "provenance": {
249
- "row_llm_mode": "deterministic",
250
- "evaluated_at": "2026-02-25T10:00:00",
251
- "template_hash": "abc123",
252
- "evidence_hash": "xyz789",
253
- },
254
- },
255
- ],
256
- }
257
- )
258
-
259
- payload = _build_checklist_meta_payload(
260
- checklist=checklist,
261
- report_dir=tmp_path,
262
- checklist_page_id="88716673",
263
- confluence_meta={"title": "Checklist", "version": 13},
264
- delta_payload={"targeted_run": False, "changed_row_count": 0, "merge_guardrail": {}},
265
- retrieval_trace_path=tmp_path / "audit-checklist.retrieval-trace.json",
266
- )
267
-
268
- verification = payload["verification"]
269
- assert verification["row_count"] == 2
270
- assert verification["rows_with_any_refs"] == 2
271
- assert verification["rows_with_verified_refs"] == 1
272
- assert verification["rows_with_unverified_refs"] == 2
273
- assert verification["verified_true_count"] == 1
274
- assert verification["verified_false_count"] == 2
275
- assert verification["verified_ratio"] == 1 / 3
276
- assert verification["verification_reason_breakdown"] == {
277
- "excerpt_verification_disabled": 1,
278
- "no_excerpt_to_verify": 1,
279
- }
280
-
281
-
282
- def test_retrieval_trace_sidecar_includes_verification_coverage_runtime_and_row_diagnostics(tmp_path) -> None:
283
- row_results = [
284
- RowEvaluationResult(
285
- row_id="CL-001:row_0",
286
- check_id="CL-001",
287
- status=RowStatus.PARTIAL,
288
- score=60.0,
289
- score_breakdown=ScoreBreakdown.compute(raw_score=60.0),
290
- reason="Row one",
291
- finding="Finding one",
292
- evidence_anchors=[
293
- EvidenceAnchor(
294
- ref_type="code_path",
295
- ref_value="src/service.py",
296
- excerpt="def run(): pass",
297
- verified=True,
298
- ),
299
- EvidenceAnchor(
300
- ref_type="doc_path",
301
- ref_value="docs/runbook.md",
302
- excerpt="",
303
- verified=False,
304
- ),
305
- ],
306
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
307
- retrieval_trace={"mode": "hybrid"},
308
- ),
309
- RowEvaluationResult(
310
- row_id="CL-002:row_1",
311
- check_id="CL-002",
312
- status=RowStatus.FAIL,
313
- score=10.0,
314
- score_breakdown=ScoreBreakdown.compute(raw_score=10.0),
315
- reason="Row two",
316
- finding="Finding two",
317
- evidence_anchors=[
318
- EvidenceAnchor(
319
- ref_type="code_path",
320
- ref_value="Dockerfile",
321
- excerpt="USER app",
322
- verified=False,
323
- verification_reason="excerpt_verification_disabled",
324
- ),
325
- ],
326
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
327
- retrieval_trace={},
328
- ),
329
- ]
330
-
331
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
332
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
333
- payload = json.loads(output_path.read_text(encoding="utf-8"))
334
-
335
- verification = payload["verification"]
336
- assert verification["row_count"] == 2
337
- assert verification["rows_with_any_refs"] == 2
338
- assert verification["rows_with_verified_refs"] == 1
339
- assert verification["rows_with_unverified_refs"] == 2
340
- assert verification["verified_true_count"] == 1
341
- assert verification["verified_false_count"] == 2
342
- assert verification["verified_ratio"] == 1 / 3
343
- assert verification["verification_reason_breakdown"] == {
344
- "no_excerpt_to_verify": 1,
345
- "excerpt_verification_disabled": 1,
346
- }
347
-
348
- first_row_verification = payload["rows"][0]["verification_coverage"]
349
- assert first_row_verification["row_ref_count"] == 2
350
- assert first_row_verification["verified_true_count"] == 1
351
- assert first_row_verification["verified_false_count"] == 1
352
- assert first_row_verification["verification_reason_breakdown"] == {"no_excerpt_to_verify": 1}
353
- assert payload["rows"][0]["retrieval_trace"]["verification_coverage"]["verified_true_count"] == 1
354
-
355
-
356
- def test_retrieval_trace_sidecar_prefers_exported_evidence_refs_for_verification(tmp_path) -> None:
357
- exported_anchors = [
358
- EvidenceAnchor(
359
- ref_type="code_path",
360
- ref_value="src/service_a.py",
361
- excerpt="class ServiceA:",
362
- verified=True,
363
- verification_reason="excerpt_verified_in_context",
364
- ),
365
- EvidenceAnchor(
366
- ref_type="code_path",
367
- ref_value="src/service_b.py",
368
- excerpt="class ServiceB:",
369
- verified=True,
370
- verification_reason="excerpt_verified_in_context",
371
- ),
372
- ]
373
- raw_internal_anchors = [
374
- *exported_anchors,
375
- EvidenceAnchor(
376
- ref_type="knowledge_ref",
377
- ref_value="knowledge:legacy-fallback",
378
- excerpt="",
379
- verified=False,
380
- verification_reason="fallback_ref_inherited",
381
- ),
382
- ]
383
- row_results = [
384
- {
385
- "row_id": "CL-002:row_1",
386
- "check_id": "CL-002",
387
- "status": "FAIL",
388
- "score": 23.75,
389
- "reason": "Decisive code evidence confirms a violation.",
390
- "finding": "Concrete implementation dependency detected.",
391
- "evidence_refs": exported_anchors,
392
- "evidence_anchors": raw_internal_anchors,
393
- "retrieval_trace": {
394
- "verification_coverage_export": {
395
- "row_ref_count": 2,
396
- "has_any_refs": True,
397
- "has_verified_refs": True,
398
- "has_unverified_refs": False,
399
- "verified_true_count": 2,
400
- "verified_false_count": 0,
401
- "verified_ratio": 1.0,
402
- "verification_reason_breakdown": {
403
- "excerpt_verified_in_context": 2,
404
- },
405
- }
406
- },
407
- "provenance": RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
408
- }
409
- ]
410
-
411
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
412
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
413
- payload = json.loads(output_path.read_text(encoding="utf-8"))
414
-
415
- verification = payload["verification"]
416
- assert verification["row_count"] == 1
417
- assert verification["rows_with_unverified_refs"] == 0
418
- assert verification["verified_true_count"] == 2
419
- assert verification["verified_false_count"] == 0
420
- assert verification["verified_ratio"] == 1.0
421
-
422
- first_row_verification = payload["rows"][0]["verification_coverage"]
423
- assert first_row_verification["row_ref_count"] == 2
424
- assert first_row_verification["verified_true_count"] == 2
425
- assert first_row_verification["verified_false_count"] == 0
426
- assert first_row_verification["verification_reason_breakdown"] == {
427
- "excerpt_verified_in_context": 2,
428
- }
429
-
430
-
431
- def test_retrieval_trace_sidecar_tool_summary_falls_back_to_timeout_progress_snapshot(tmp_path) -> None:
432
- row_results = [
433
- RowEvaluationResult(
434
- row_id="CL-999:row_0",
435
- check_id="CL-999",
436
- status=RowStatus.ERROR,
437
- score=0.0,
438
- score_breakdown=ScoreBreakdown.compute(raw_score=0.0),
439
- reason="Timeout during evaluation",
440
- finding="Timed out",
441
- evidence_anchors=[],
442
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
443
- retrieval_trace={
444
- "timeout_progress_snapshot": {
445
- "steps_executed": 5,
446
- "steps_unique_tools": 4,
447
- "termination_reason": "stagnation",
448
- "budget_remaining": 3,
449
- "elapsed_seconds": 1.234,
450
- "evidence_refs_count": 6,
451
- "docs_search_count": 1,
452
- "docs_read_count": 2,
453
- "code_search_count": 1,
454
- "code_read_count": 1,
455
- "record_evidence_refs_count": 0,
456
- "row_context_count": 1,
457
- }
458
- },
459
- )
460
- ]
461
-
462
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
463
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
464
- payload = json.loads(output_path.read_text(encoding="utf-8"))
465
-
466
- summary = payload["rows"][0]["tool_call_summary"]
467
- assert summary == {
468
- "total_steps": 5,
469
- "unique_tools": 4,
470
- "termination_reason": "stagnation",
471
- "budget_remaining": 3,
472
- "elapsed_seconds": 1.234,
473
- "evidence_refs_count": 6,
474
- "docs_search_count": 1,
475
- "docs_read_count": 2,
476
- "code_search_count": 1,
477
- "code_read_count": 1,
478
- "record_evidence_refs_count": 0,
479
- "record_evidence_refs_required": True,
480
- "record_evidence_refs_contract_met": False,
481
- "record_evidence_refs_fallback_capture": False,
482
- "record_evidence_refs_capture_failure_reason": "record_evidence_refs_not_called",
483
- "route_escalation_required": False,
484
- "route_escalation_applied": False,
485
- "route_escalation_reason": False,
486
- "route_escalation_step_index": False,
487
- "row_context_count": 1,
488
- "top_k_code_read_contract_applies": False,
489
- "top_k_target": 0,
490
- "top_k_read_count": 0,
491
- "top_k_read_met": False,
492
- "top_k_read_shortfall_reason": False,
493
- "top_k_effective": 0,
494
- "top_k_fallback_applied": False,
495
- "top_k_bounded_soft_pass": False,
496
- "db_family_requirement": False,
497
- "db_family_candidate_count": 0,
498
- "db_family_pass_1_candidates": 0,
499
- "db_family_pass_2_candidates": 0,
500
- "db_family_config_database_hits": 0,
501
- "db_family_repository_hits": 0,
502
- "db_family_service_impl_hits": 0,
503
- "db_family_selected_read_hits": 0,
504
- "db_family_selected_read_coverage_met": False,
505
- "db_family_selected_read_shortfall_reason": False,
506
- "db_search_no_candidates_reason": False,
507
- "db_family_retrieval_insufficient": False,
508
- "db_family_coverage_gap_reason": False,
509
- "term_origin_map": False,
510
- "term_origin_map_term_count": 0,
511
- }
512
-
513
-
514
- def test_retrieval_trace_sidecar_projects_phase124_timeout_diagnostics(tmp_path) -> None:
515
- row_results = [
516
- RowEvaluationResult(
517
- row_id="CL-004:row_3",
518
- check_id="CL-004",
519
- status=RowStatus.FAIL,
520
- score=0.0,
521
- score_breakdown=ScoreBreakdown.compute(raw_score=0.0),
522
- reason="Timeout during evaluation",
523
- finding="Timed out after grounded progress",
524
- evidence_anchors=[],
525
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
526
- retrieval_trace={
527
- "timeout_kind": "timeout_with_grounding",
528
- "timeout_progress_snapshot": {
529
- "route_id": "code_search_read_verify_synthesize",
530
- "route_mode": "code_only",
531
- "route_reason": "project_scope_required=true",
532
- "project_artifact_readiness": {
533
- "readiness_status": "partial",
534
- "authoritative_artifact_ready": False,
535
- "missing_artifact_types": ["dependency_graph"],
536
- },
537
- "project_artifact_provenance_summary": [
538
- {"artifact_type": "dependency_graph", "source": "knowledge_store"}
539
- ],
540
- "grounding_validation": {
541
- "complete": False,
542
- "timeout_incomplete": True,
543
- },
544
- "evidence_gap_diagnostics": {
545
- "applied": True,
546
- "classification": "confirmed_gap",
547
- "gap_type": "authoritative_project_scope_artifact_missing",
548
- },
549
- "requirement_interpretation": {
550
- "intent": "No circular dependency across modules/services.",
551
- "control_objective": "1. Decoupling",
552
- "project_scope_required": True,
553
- },
554
- },
555
- },
556
- )
557
- ]
558
-
559
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
560
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
561
- payload = json.loads(output_path.read_text(encoding="utf-8"))
562
-
563
- row = payload["rows"][0]
564
- assert row["route_mode"] == "code_only"
565
- assert row["route_id"] == "code_search_read_verify_synthesize"
566
- assert row["project_artifact_readiness"] == {
567
- "readiness_status": "partial",
568
- "authoritative_artifact_ready": False,
569
- "missing_artifact_types": ["dependency_graph"],
570
- }
571
- assert row["project_artifact_provenance_summary"] == [
572
- {"artifact_type": "dependency_graph", "source": "knowledge_store"}
573
- ]
574
- assert row["grounding_validation"]["timeout_incomplete"] is True
575
- assert row["evidence_gap_diagnostics"]["gap_type"] == "authoritative_project_scope_artifact_missing"
576
-
577
-
578
- def test_retrieval_trace_sidecar_includes_app_config_discovery_summary(tmp_path) -> None:
579
- row_results = [
580
- RowEvaluationResult(
581
- row_id="CL-005:row_4",
582
- check_id="CL-005",
583
- status=RowStatus.PARTIAL,
584
- score=61.0,
585
- score_breakdown=ScoreBreakdown.compute(raw_score=61.0),
586
- reason="App-config evidence is only partially decisive.",
587
- finding="Datasource and schema candidates were found, but environment resolution remains incomplete.",
588
- evidence_anchors=[],
589
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
590
- retrieval_trace={
591
- "requirement_interpretation": {
592
- "intent": "Verify separate schema, datasource, and pool settings from app-config.",
593
- "control_objective": "CL-005",
594
- "app_config_discovery": {
595
- "target_repo": "merchant-report",
596
- "target_environment": "production",
597
- "environment_detected": "prod",
598
- "discovery_status": "partial",
599
- "config_sources": [
600
- {"source_type": "app_repo_config"},
601
- {"source_type": "helm_values"},
602
- ],
603
- "precedence_chain": [{"step_rank": 1}],
604
- "findings": [
605
- {"finding_type": "datasource", "evidence_strength": "decisive"},
606
- {"finding_type": "schema", "evidence_strength": "partial"},
607
- ],
608
- "unresolved_gaps": [
609
- {"gap_type": "environment_resolution", "severity": "blocking"},
610
- ],
611
- "confidence": 0.85,
612
- "decisive": True,
613
- },
614
- },
615
- "app_config_discovery_summary": {
616
- "target_repo": "merchant-report",
617
- "target_environment": "production",
618
- "environment_detected": "prod",
619
- "discovery_status": "partial",
620
- "confidence": 0.85,
621
- "decisive": True,
622
- "config_source_count": 2,
623
- "precedence_step_count": 1,
624
- "finding_count": 2,
625
- "decisive_finding_count": 1,
626
- "unresolved_gap_count": 1,
627
- "blocking_gap_count": 1,
628
- "config_source_types": ["app_repo_config", "helm_values"],
629
- "finding_types": ["datasource", "schema"],
630
- "gap_types": ["environment_resolution"],
631
- },
632
- },
633
- )
634
- ]
635
-
636
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
637
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
638
- payload = json.loads(output_path.read_text(encoding="utf-8"))
639
-
640
- row = payload["rows"][0]
641
- assert row["app_config_discovery_summary"] == {
642
- "target_repo": "merchant-report",
643
- "target_environment": "production",
644
- "environment_detected": "prod",
645
- "discovery_status": "partial",
646
- "confidence": 0.85,
647
- "decisive": True,
648
- "config_source_count": 2,
649
- "precedence_step_count": 1,
650
- "finding_count": 2,
651
- "decisive_finding_count": 1,
652
- "unresolved_gap_count": 1,
653
- "blocking_gap_count": 1,
654
- "config_source_types": ["app_repo_config", "helm_values"],
655
- "finding_types": ["datasource", "schema"],
656
- "gap_types": ["environment_resolution"],
657
- }
658
- assert row["retrieval_trace"]["app_config_discovery_summary"]["discovery_status"] == "partial"
659
-
660
-
661
- def test_retrieval_trace_sidecar_aligns_app_config_summary_with_final_cited_config_env(tmp_path) -> None:
662
- row_results = [
663
- {
664
- "row_id": "CL-015:row_14",
665
- "check_id": "CL-015",
666
- "status": "PARTIAL",
667
- "score": 40.0,
668
- "retry_count": 0,
669
- "retrieval_trace": {
670
- "route_mode": "code_only",
671
- "route_id": "code_search_read_verify_synthesize",
672
- "app_config_discovery_summary": {
673
- "target_repo": "cdcn-policy-management-service",
674
- "target_environment": "alpha",
675
- "environment_detected": "alpha",
676
- "discovery_status": "resolved",
677
- "confidence": 0.9,
678
- "decisive": True,
679
- "config_source_count": 3,
680
- "precedence_step_count": 3,
681
- "finding_count": 0,
682
- "decisive_finding_count": 1,
683
- "unresolved_gap_count": 0,
684
- "blocking_gap_count": 0,
685
- "config_source_types": ["config"],
686
- "finding_types": ["config_source_discovered_env_specific_match"],
687
- "gap_types": [],
688
- },
689
- "final_cited_refs": ["staging/application.yml"],
690
- },
691
- "evidence_anchors": [],
692
- }
693
- ]
694
-
695
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
696
- _write_retrieval_trace_sidecar(output_path, row_results=row_results) # type: ignore[arg-type]
697
- payload = json.loads(output_path.read_text(encoding="utf-8"))
698
-
699
- row = payload["rows"][0]
700
- assert row["final_cited_refs"] == ["staging/application.yml"]
701
- assert row["app_config_discovery_summary"]["target_environment"] == "staging"
702
- assert row["app_config_discovery_summary"]["environment_detected"] == "staging"
703
-
704
-
705
- def test_retrieval_trace_sidecar_tool_summary_emits_db_family_and_term_origin_telemetry(tmp_path) -> None:
706
- row_results = [
707
- RowEvaluationResult(
708
- row_id="CL-004:row_3",
709
- check_id="CL-004",
710
- status=RowStatus.ERROR,
711
- score=0.0,
712
- score_breakdown=ScoreBreakdown.compute(raw_score=0.0),
713
- reason="grounding failure",
714
- finding="grounding failure",
715
- evidence_anchors=[],
716
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
717
- retrieval_trace={
718
- "tool_first_loop": {
719
- "steps_executed": 6,
720
- "code_search_count": 2,
721
- "code_read_count": 1,
722
- "docs_intent_utilization": {
723
- "route_escalation_required": True,
724
- "route_escalation_applied": True,
725
- "route_escalation_reason": "docs_only_route_code_fallback",
726
- "route_escalation_step_index": 3,
727
- },
728
- "db_family_requirement": True,
729
- "db_family_candidate_count": 3,
730
- "db_family_pass_1_candidates": 5,
731
- "db_family_pass_2_candidates": 3,
732
- "db_family_config_database_hits": 1,
733
- "db_family_repository_hits": 1,
734
- "db_family_service_impl_hits": 1,
735
- "db_family_selected_read_hits": 2,
736
- "db_search_no_candidates_reason": "db_search_no_candidates",
737
- "db_family_retrieval_insufficient": True,
738
- "db_family_coverage_gap_reason": "none",
739
- "term_origin_map": {
740
- "datasource": "db_query_expansion",
741
- "kết nối": "requirement_term_vi",
742
- },
743
- }
744
- },
745
- )
746
- ]
747
-
748
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
749
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
750
- payload = json.loads(output_path.read_text(encoding="utf-8"))
751
-
752
- summary = payload["rows"][0]["tool_call_summary"]
753
- assert summary["db_family_requirement"] is True
754
- assert summary["db_family_candidate_count"] == 3
755
- assert summary["db_family_pass_1_candidates"] == 5
756
- assert summary["db_family_pass_2_candidates"] == 3
757
- assert summary["db_family_config_database_hits"] == 1
758
- assert summary["db_family_repository_hits"] == 1
759
- assert summary["db_family_service_impl_hits"] == 1
760
- assert summary["db_family_selected_read_hits"] == 2
761
- assert summary["db_family_selected_read_coverage_met"] is True
762
- assert summary["db_family_selected_read_shortfall_reason"] is False
763
- assert summary["db_search_no_candidates_reason"] == "db_search_no_candidates"
764
- assert summary["db_family_retrieval_insufficient"] is True
765
- assert summary["route_escalation_required"] is True
766
- assert summary["route_escalation_applied"] is True
767
- assert summary["route_escalation_reason"] == "docs_only_route_code_fallback"
768
- assert summary["route_escalation_step_index"] == 3
769
- assert summary["db_family_coverage_gap_reason"] == "none"
770
- assert summary["term_origin_map_term_count"] == 2
771
- assert isinstance(summary["term_origin_map"], dict)
772
-
773
-
774
- def test_retrieval_trace_sidecar_tool_summary_preserves_record_evidence_fallback_capture(tmp_path) -> None:
775
- row_results = [
776
- RowEvaluationResult(
777
- row_id="CL-001:row_0",
778
- check_id="CL-001",
779
- status=RowStatus.FAIL,
780
- score=24.75,
781
- score_breakdown=ScoreBreakdown.compute(raw_score=24.75),
782
- reason="fallback capture",
783
- finding="fallback capture",
784
- evidence_anchors=[],
785
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
786
- retrieval_trace={
787
- "tool_first_loop": {
788
- "steps_executed": 5,
789
- "docs_read_count": 2,
790
- "code_read_count": 3,
791
- "record_evidence_refs_count": 0,
792
- "record_evidence_refs_required": True,
793
- "record_evidence_refs_contract_met": True,
794
- "record_evidence_refs_fallback_capture": True,
795
- "record_evidence_refs_capture_failure_reason": "record_evidence_refs_hydrated_from_trace",
796
- }
797
- },
798
- )
799
- ]
800
-
801
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
802
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
803
- payload = json.loads(output_path.read_text(encoding="utf-8"))
804
-
805
- summary = payload["rows"][0]["tool_call_summary"]
806
- assert summary["record_evidence_refs_contract_met"] is True
807
- assert summary["record_evidence_refs_fallback_capture"] is True
808
- assert summary["record_evidence_refs_capture_failure_reason"] == "record_evidence_refs_hydrated_from_trace"
809
-
810
-
811
- def test_retrieval_trace_sidecar_tool_summary_infers_fallback_capture_from_failure_reason(tmp_path) -> None:
812
- row_results = [
813
- RowEvaluationResult(
814
- row_id="CL-001:row_0",
815
- check_id="CL-001",
816
- status=RowStatus.FAIL,
817
- score=24.75,
818
- score_breakdown=ScoreBreakdown.compute(raw_score=24.75),
819
- reason="fallback capture",
820
- finding="fallback capture",
821
- evidence_anchors=[],
822
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
823
- retrieval_trace={
824
- "tool_first_loop": {
825
- "steps_executed": 5,
826
- "docs_read_count": 2,
827
- "code_read_count": 3,
828
- "record_evidence_refs_count": 0,
829
- "record_evidence_refs_required": True,
830
- "record_evidence_refs_contract_met": True,
831
- "record_evidence_refs_capture_failure_reason": "record_evidence_refs_hydrated_from_trace",
832
- }
833
- },
834
- )
835
- ]
836
-
837
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
838
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
839
- payload = json.loads(output_path.read_text(encoding="utf-8"))
840
-
841
- summary = payload["rows"][0]["tool_call_summary"]
842
- assert summary["record_evidence_refs_contract_met"] is True
843
- assert summary["record_evidence_refs_fallback_capture"] is True
844
- assert summary["record_evidence_refs_capture_failure_reason"] == "record_evidence_refs_hydrated_from_trace"
845
-
846
-
847
- def test_retrieval_trace_sidecar_accepts_dict_rows_for_targeted_merge_refresh(tmp_path) -> None:
848
- row_results = [
849
- {
850
- "row_id": "R1",
851
- "check_id": "CL-001",
852
- "status": "FAIL",
853
- "score": 24.75,
854
- "retry_count": 1,
855
- "retry_metadata": {
856
- "corrective_retry_attempted": True,
857
- "corrective_retry_outcome": "retry_rejected_no_improvement",
858
- "corrective_retry_trigger_reason": "unverified_ref_ratio_threshold",
859
- "corrective_retry_guardrail_applied": True,
860
- },
861
- "retrieval_trace": {
862
- "tool_first_loop": {
863
- "steps_executed": 5,
864
- "record_evidence_refs_count": 0,
865
- "record_evidence_refs_required": True,
866
- "record_evidence_refs_contract_met": True,
867
- "record_evidence_refs_capture_failure_reason": "record_evidence_refs_hydrated_from_trace",
868
- }
869
- },
870
- "evidence_anchors": [],
871
- }
872
- ]
873
-
874
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
875
- _write_retrieval_trace_sidecar(output_path, row_results=row_results) # type: ignore[arg-type]
876
- payload = json.loads(output_path.read_text(encoding="utf-8"))
877
-
878
- row = payload["rows"][0]
879
- assert row["row_id"] == "R1"
880
- assert row["status"] == "FAIL"
881
- assert row["score"] == 24.75
882
- assert row["retry_count"] == 1
883
- assert row["retry_attempted"] is True
884
- assert row["retry_outcome"] == "retry_rejected_no_improvement"
885
- assert row["retry_trigger_reason"] == "unverified_ref_ratio_threshold"
886
- assert row["retry_guardrail_applied"] is True
887
- assert row["tool_call_summary"]["record_evidence_refs_fallback_capture"] is True
888
-
889
-
890
- def test_retrieval_trace_sidecar_projects_top_level_route_and_retention_fields(tmp_path) -> None:
891
- row_results = [
892
- {
893
- "row_id": "R1",
894
- "check_id": "CL-013",
895
- "status": "FAIL",
896
- "score": 16.5,
897
- "retry_count": 1,
898
- "retrieval_trace": {
899
- "route_mode": "hybrid_code_first",
900
- "route_id": "hybrid_code_first_search_read_verify_synthesize",
901
- "route_transition_reasons": ["code_first_requirement", "code_search_narrowing"],
902
- "selection_blocked_reason": "missing_infra_artifact_candidate",
903
- "exploratory_ref_count": 10,
904
- "final_cited_ref_count": 2,
905
- "final_cited_refs": ["src/service_a.py", "docs/guide.md"],
906
- "citation_retention_rate": 0.2,
907
- "tool_first_loop": {
908
- "docs_search_count": 1,
909
- "docs_read_count": 2,
910
- "code_search_count": 1,
911
- "code_read_count": 3,
912
- "route_escalation_reason": "docs_only_route_code_fallback",
913
- },
914
- },
915
- "evidence_anchors": [],
916
- }
917
- ]
918
-
919
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
920
- _write_retrieval_trace_sidecar(output_path, row_results=row_results) # type: ignore[arg-type]
921
- payload = json.loads(output_path.read_text(encoding="utf-8"))
922
-
923
- row = payload["rows"][0]
924
- assert row["route_mode"] == "hybrid_code_first"
925
- assert row["route_id"] == "hybrid_code_first_search_read_verify_synthesize"
926
- assert row["route_transition_reasons"] == ["code_first_requirement", "code_search_narrowing"]
927
- assert row["selection_blocked_reason"] == "missing_infra_artifact_candidate"
928
- assert row["docs_search_count"] == 1
929
- assert row["docs_read_count"] == 2
930
- assert row["code_search_count"] == 1
931
- assert row["code_read_count"] == 3
932
- assert row["exploratory_ref_count"] == 10
933
- assert row["final_cited_ref_count"] == 2
934
- assert row["final_cited_refs"] == ["src/service_a.py", "docs/guide.md"]
935
- assert row["citation_retention_rate"] == pytest.approx(0.2, abs=1e-9)
936
- assert row["route_escalation_reason"] == "docs_only_route_code_fallback"
937
-
938
-
939
- def test_retrieval_trace_sidecar_projects_route_and_retention_from_nested_trace_only(tmp_path) -> None:
940
- row_results = [
941
- {
942
- "row_id": "R1",
943
- "check_id": "CL-004",
944
- "status": "PARTIAL",
945
- "score": 76.5,
946
- "retry_count": 0,
947
- "retrieval_trace": {
948
- "tool_first_loop": {
949
- "route_mode": "hybrid_code_first",
950
- "route_id": "hybrid_code_first_search_read_verify_synthesize",
951
- "route_transition_reasons": ["code_first_requirement"],
952
- "selection_blocked_reason": "missing_infra_artifact_candidate",
953
- "docs_search_count": 1,
954
- "docs_read_count": 2,
955
- "code_search_count": 1,
956
- "code_read_count": 1,
957
- },
958
- "evidence_ref_sets": {
959
- "exploratory_ref_count": 10,
960
- "final_cited_ref_count": 2,
961
- "final_cited_refs": ["src/service_a.py", "docs/guide.md"],
962
- },
963
- },
964
- "evidence_anchors": [],
965
- }
966
- ]
967
-
968
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
969
- _write_retrieval_trace_sidecar(output_path, row_results=row_results) # type: ignore[arg-type]
970
- payload = json.loads(output_path.read_text(encoding="utf-8"))
971
-
972
- row = payload["rows"][0]
973
- assert row["route_mode"] == "hybrid_code_first"
974
- assert row["route_id"] == "hybrid_code_first_search_read_verify_synthesize"
975
- assert row["route_transition_reasons"] == ["code_first_requirement"]
976
- assert row["selection_blocked_reason"] == "missing_infra_artifact_candidate"
977
- assert row["docs_search_count"] == 1
978
- assert row["docs_read_count"] == 2
979
- assert row["code_search_count"] == 1
980
- assert row["code_read_count"] == 1
981
- assert row["exploratory_ref_count"] == 10
982
- assert row["final_cited_ref_count"] == 2
983
- assert row["final_cited_refs"] == ["src/service_a.py", "docs/guide.md"]
984
-
985
-
986
- def test_retrieval_trace_sidecar_projects_surfaces_prior_knowledge_and_recommended_skill(tmp_path) -> None:
987
- row_results = [
988
- {
989
- "row_id": "CL-002:row_1",
990
- "check_id": "CL-002",
991
- "status": "PARTIAL",
992
- "score": 40.0,
993
- "retry_count": 0,
994
- "retrieval_trace": {
995
- "tool_first_loop": {
996
- "route_mode": "code_only",
997
- "route_id": "code_search_read_verify_synthesize",
998
- "code_search_count": 1,
999
- "code_read_count": 4,
1000
- "prior_knowledge_refs": [
1001
- {
1002
- "ref_type": "prior_knowledge",
1003
- "ref_value": "knowledge:public-interface-scan",
1004
- "excerpt": "[Prior knowledge][par-merchant-report] boundary candidate scan",
1005
- "knowledge_type": "public_interface_boundary_project_scan",
1006
- "knowledge_modality": "code_linked_knowledge",
1007
- "linked_ref_values": [
1008
- "src/main/java/com/example/port/PublicApi.java",
1009
- "src/main/java/com/example/adapter/PublicApiAdapter.java",
1010
- ],
1011
- }
1012
- ],
1013
- },
1014
- "skill_policy_retry": {
1015
- "required": True,
1016
- "strict_require_effective_skill": True,
1017
- "observed_skill_calls": 1,
1018
- "observed_skill_execution_calls": 1,
1019
- "observed_skill_effective_calls": 1,
1020
- "recommended_skills": ["public-interface-boundary-skill"],
1021
- },
1022
- "skill_tool_usage": [
1023
- {
1024
- "tool": "run_skill_script",
1025
- "skill": "public-interface-boundary-skill",
1026
- "script": "scripts/scan_project.py",
1027
- "effective": True,
1028
- }
1029
- ],
1030
- "evidence_ref_sets": {
1031
- "final_cited_ref_count": 2,
1032
- "final_cited_refs": [
1033
- "src/main/java/com/example/port/PublicApi.java",
1034
- "src/main/java/com/example/adapter/PublicApiAdapter.java",
1035
- ],
1036
- },
1037
- },
1038
- "evidence_anchors": [],
1039
- }
1040
- ]
1041
-
1042
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1043
- _write_retrieval_trace_sidecar(output_path, row_results=row_results) # type: ignore[arg-type]
1044
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1045
-
1046
- row = payload["rows"][0]
1047
- assert row["recommended_skills"] == ["public-interface-boundary-skill"]
1048
- assert row["observed_skill_calls"] == 1
1049
- assert row["observed_skill_execution_calls"] == 1
1050
- assert row["observed_skill_effective_calls"] == 1
1051
- assert row["skill_tool_usage"] == [
1052
- {
1053
- "tool": "run_skill_script",
1054
- "skill": "public-interface-boundary-skill",
1055
- "script": "scripts/scan_project.py",
1056
- "effective": True,
1057
- }
1058
- ]
1059
- assert row["prior_knowledge_refs"] == [
1060
- {
1061
- "ref_type": "prior_knowledge",
1062
- "ref_value": "knowledge:public-interface-scan",
1063
- "excerpt": "[Prior knowledge][par-merchant-report] boundary candidate scan",
1064
- "knowledge_type": "public_interface_boundary_project_scan",
1065
- "knowledge_modality": "code_linked_knowledge",
1066
- "linked_ref_values": [
1067
- "src/main/java/com/example/port/PublicApi.java",
1068
- "src/main/java/com/example/adapter/PublicApiAdapter.java",
1069
- ],
1070
- }
1071
- ]
1072
- assert row["final_cited_refs"] == [
1073
- "src/main/java/com/example/port/PublicApi.java",
1074
- "src/main/java/com/example/adapter/PublicApiAdapter.java",
1075
- ]
1076
-
1077
-
1078
- def test_retrieval_trace_sidecar_projects_requirement_analysis_diagnostics(tmp_path) -> None:
1079
- row_results = [
1080
- {
1081
- "row_id": "R1",
1082
- "check_id": "CL-036",
1083
- "status": "FAIL",
1084
- "score": 12.0,
1085
- "retry_count": 0,
1086
- "retrieval_trace": {
1087
- "tool_first_loop": {
1088
- "code_ranking_diagnostics": {
1089
- "requirement_analysis": {
1090
- "analysis_mode": "code_first",
1091
- "analysis_reason_codes": ["code_first_requirement"],
1092
- "required_anchor_modalities": ["code"],
1093
- "generic_anchor_exemption": False,
1094
- "minimum_substantive_code_anchors": 1,
1095
- "finalization_policy": "code_substantive_required",
1096
- }
1097
- }
1098
- }
1099
- },
1100
- "evidence_anchors": [],
1101
- }
1102
- ]
1103
-
1104
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1105
- _write_retrieval_trace_sidecar(output_path, row_results=row_results) # type: ignore[arg-type]
1106
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1107
-
1108
- row = payload["rows"][0]
1109
- assert row["analysis_mode"] == "code_first"
1110
- assert row["analysis_reason_codes"] == ["code_first_requirement"]
1111
- assert row["required_anchor_modalities"] == ["code"]
1112
- assert row["generic_anchor_exemption"] is False
1113
- assert row["minimum_substantive_code_anchors"] == 1
1114
- assert row["finalization_policy"] == "code_substantive_required"
1115
-
1116
-
1117
- def test_retrieval_trace_sidecar_derives_requirement_analysis_from_interpretation(tmp_path) -> None:
1118
- row_results = [
1119
- {
1120
- "row_id": "R2",
1121
- "check_id": "CL-003",
1122
- "status": "FAIL",
1123
- "score": 20.75,
1124
- "retry_count": 0,
1125
- "retrieval_trace": {
1126
- "route_mode": "hybrid_code_first",
1127
- "requirement_interpretation": {
1128
- "intent": "3. No Circular Dependency Khong co cycle trong dependency graph giua modules/services.",
1129
- "control_objective": "1. Decoupling",
1130
- "evidence_targets": ["docs", "code"],
1131
- "code_targets": [
1132
- "pom.xml",
1133
- "src/main/java/acme/AppConfig.java",
1134
- ],
1135
- "code_markers": [],
1136
- "docs_markers": [],
1137
- "process_markers": [],
1138
- },
1139
- "evidence_ref_sets": {
1140
- "final_cited_refs": [
1141
- "src/main/java/acme/AppConfig.java",
1142
- "pom.xml",
1143
- ],
1144
- "exploratory_refs": [
1145
- "src/main/java/acme/AppConfig.java",
1146
- "pom.xml",
1147
- ],
1148
- },
1149
- },
1150
- "evidence_anchors": [],
1151
- }
1152
- ]
1153
-
1154
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1155
- _write_retrieval_trace_sidecar(output_path, row_results=row_results) # type: ignore[arg-type]
1156
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1157
-
1158
- row = payload["rows"][0]
1159
- assert row["analysis_mode"] == "hybrid_balanced"
1160
- assert "generic_metadata_exemption_blocked_by_substantive_code" in row["analysis_reason_codes"]
1161
- assert row["required_anchor_modalities"] == ["code", "docs"]
1162
- assert row["generic_anchor_exemption"] is False
1163
- assert row["minimum_substantive_code_anchors"] == 1
1164
- assert row["finalization_policy"] == "mixed_modalities_preserve_strong_code"
1165
-
1166
-
1167
- def test_retrieval_trace_sidecar_backfills_requirement_analysis_from_route_mode_only(
1168
- tmp_path,
1169
- ) -> None:
1170
- row_results = [
1171
- {
1172
- "row_id": "R3",
1173
- "check_id": "CL-999",
1174
- "status": "FAIL",
1175
- "score": 5.0,
1176
- "retry_count": 0,
1177
- "retrieval_trace": {
1178
- "route_mode": "docs_only",
1179
- "requirement_interpretation": {},
1180
- },
1181
- "evidence_anchors": [],
1182
- }
1183
- ]
1184
-
1185
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1186
- _write_retrieval_trace_sidecar(output_path, row_results=row_results) # type: ignore[arg-type]
1187
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1188
-
1189
- row = payload["rows"][0]
1190
- assert row["analysis_mode"] == "docs_first"
1191
- assert row["analysis_reason_codes"] == ["route_metadata_fallback", "route_mode_inference"]
1192
- assert row["required_anchor_modalities"] == ["docs"]
1193
- assert row["generic_anchor_exemption"] is False
1194
- assert row["minimum_substantive_code_anchors"] == 0
1195
- assert row["finalization_policy"] == "docs_primary"
1196
-
1197
-
1198
- def test_retrieval_trace_sidecar_tool_summary_emits_top_k_timeout_fallback_diagnostics(tmp_path) -> None:
1199
- row_results = [
1200
- RowEvaluationResult(
1201
- row_id="CL-004:row_3",
1202
- check_id="CL-004",
1203
- status=RowStatus.ERROR,
1204
- score=0.0,
1205
- score_breakdown=ScoreBreakdown.compute(raw_score=0.0),
1206
- reason="grounding failure",
1207
- finding="grounding failure",
1208
- evidence_anchors=[],
1209
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
1210
- retrieval_trace={
1211
- "tool_first_loop": {
1212
- "steps_executed": 4,
1213
- "top_k_code_read_contract_applies": True,
1214
- "top_k_target": 3,
1215
- "top_k_read_count": 1,
1216
- "top_k_read_met": False,
1217
- "top_k_read_shortfall_reason": "timeout_or_step_bound",
1218
- "code_ranking_diagnostics": {
1219
- "top_k_code_read_contract": {
1220
- "applies": True,
1221
- "target_k": 3,
1222
- "top_k_read_count": 1,
1223
- "top_k_read_met": False,
1224
- "top_k_read_shortfall": 2,
1225
- "top_k_read_shortfall_reason": "timeout_or_step_bound",
1226
- }
1227
- },
1228
- }
1229
- },
1230
- )
1231
- ]
1232
-
1233
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1234
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
1235
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1236
-
1237
- summary = payload["rows"][0]["tool_call_summary"]
1238
- assert summary["top_k_code_read_contract_applies"] is True
1239
- assert summary["top_k_target"] == 3
1240
- assert summary["top_k_read_count"] == 1
1241
- assert summary["top_k_read_met"] is False
1242
- assert summary["top_k_read_shortfall_reason"] == "timeout_or_step_bound"
1243
- assert summary["top_k_effective"] == 1
1244
- assert summary["top_k_fallback_applied"] is True
1245
- assert summary["top_k_bounded_soft_pass"] is True
1246
-
1247
-
1248
- def test_retrieval_trace_sidecar_projects_route_from_trace_steps_when_loop_route_fields_missing(tmp_path) -> None:
1249
- row_results = [
1250
- RowEvaluationResult(
1251
- row_id="CL-001:row_0",
1252
- check_id="CL-001",
1253
- status=RowStatus.FAIL,
1254
- score=29.75,
1255
- score_breakdown=ScoreBreakdown.compute(raw_score=2.975),
1256
- reason="architecture drift detected",
1257
- finding="framework dependency leak",
1258
- evidence_anchors=[],
1259
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
1260
- retrieval_trace={
1261
- "tool_first_loop": {
1262
- "docs_search_count": 2,
1263
- "docs_read_count": 5,
1264
- "code_search_count": 1,
1265
- "code_read_count": 3,
1266
- "trace_steps": [
1267
- {
1268
- "step": 1,
1269
- "tool": "get_row_context",
1270
- "route_id": "hybrid_code_first_search_read_verify_synthesize",
1271
- "route_reason": "targets=docs; dual_evidence_targets",
1272
- }
1273
- ],
1274
- },
1275
- "evidence_ref_sets": {
1276
- "exploratory_ref_count": 23,
1277
- "final_cited_ref_count": 2,
1278
- "citation_retention_rate": 2.0 / 23.0,
1279
- },
1280
- },
1281
- )
1282
- ]
1283
-
1284
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1285
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
1286
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1287
-
1288
- row = payload["rows"][0]
1289
- assert row["route_id"] == "hybrid_code_first_search_read_verify_synthesize"
1290
- assert row["route_mode"] == "hybrid_code_first"
1291
- assert row["route_reason"] == "targets=docs; dual_evidence_targets"
1292
- assert row["docs_search_count"] == 2
1293
- assert row["docs_read_count"] == 5
1294
- assert row["code_search_count"] == 1
1295
- assert row["code_read_count"] == 3
1296
- assert row["exploratory_ref_count"] == 23
1297
- assert row["final_cited_ref_count"] == 2
1298
- assert row["citation_retention_rate"] == pytest.approx(2.0 / 23.0, abs=1e-9)
1299
-
1300
-
1301
- def test_retrieval_trace_sidecar_projects_requirement_analysis_fields(tmp_path) -> None:
1302
- row_results = [
1303
- RowEvaluationResult(
1304
- row_id="CL-003:row_2",
1305
- check_id="CL-003",
1306
- status=RowStatus.FAIL,
1307
- score=24.0,
1308
- score_breakdown=ScoreBreakdown.compute(raw_score=2.4),
1309
- reason="generic anchor survived",
1310
- finding="dependency graph evidence is still too generic",
1311
- evidence_anchors=[],
1312
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
1313
- retrieval_trace={
1314
- "tool_first_loop": {
1315
- "route_id": "hybrid_code_first_search_read_verify_synthesize",
1316
- "route_mode": "hybrid_code_first",
1317
- "docs_search_count": 1,
1318
- "docs_read_count": 1,
1319
- "code_search_count": 1,
1320
- "code_read_count": 2,
1321
- "requirement_analysis": {
1322
- "analysis_mode": "code_first",
1323
- "analysis_reason_codes": ["decoupling_cycle_row", "code_first_requirement"],
1324
- "required_anchor_modalities": ["code"],
1325
- "generic_anchor_exemption": False,
1326
- "minimum_substantive_code_anchors": 1,
1327
- "finalization_policy": "code_substantive_required",
1328
- },
1329
- }
1330
- },
1331
- )
1332
- ]
1333
-
1334
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1335
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
1336
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1337
-
1338
- row = payload["rows"][0]
1339
- assert row["analysis_mode"] == "code_first"
1340
- assert row["analysis_reason_codes"] == ["decoupling_cycle_row", "code_first_requirement"]
1341
- assert row["required_anchor_modalities"] == ["code"]
1342
- assert row["generic_anchor_exemption"] is False
1343
- assert row["minimum_substantive_code_anchors"] == 1
1344
- assert row["finalization_policy"] == "code_substantive_required"
1345
-
1346
-
1347
- def test_retrieval_trace_sidecar_projects_requirement_analysis_from_code_ranking_diagnostics(tmp_path) -> None:
1348
- row_results = [
1349
- RowEvaluationResult(
1350
- row_id="CL-003:row_2",
1351
- check_id="CL-003",
1352
- status=RowStatus.FAIL,
1353
- score=12.0,
1354
- score_breakdown=ScoreBreakdown.compute(raw_score=1.2),
1355
- reason="generic anchor survived",
1356
- finding="dependency graph evidence is still too generic",
1357
- evidence_anchors=[],
1358
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
1359
- retrieval_trace={
1360
- "tool_first_loop": {
1361
- "route_id": "hybrid_code_first_search_read_verify_synthesize",
1362
- "route_mode": "hybrid_code_first",
1363
- "docs_search_count": 1,
1364
- "docs_read_count": 1,
1365
- "code_search_count": 1,
1366
- "code_read_count": 2,
1367
- "code_ranking_diagnostics": {
1368
- "requirement_analysis": {
1369
- "analysis_mode": "code_first",
1370
- "analysis_reason_codes": [
1371
- "decoupling_cycle_row",
1372
- "code_first_requirement",
1373
- "decoupling_cycle_row",
1374
- ],
1375
- "required_anchor_modalities": ["code", "docs", "invalid", "code"],
1376
- "generic_anchor_exemption": False,
1377
- "minimum_substantive_code_anchors": "2",
1378
- "finalization_policy": "code_substantive_required",
1379
- }
1380
- },
1381
- }
1382
- },
1383
- )
1384
- ]
1385
-
1386
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1387
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
1388
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1389
-
1390
- row = payload["rows"][0]
1391
- assert row["analysis_mode"] == "code_first"
1392
- assert row["analysis_reason_codes"] == ["decoupling_cycle_row", "code_first_requirement"]
1393
- assert row["required_anchor_modalities"] == ["code", "docs"]
1394
- assert row["generic_anchor_exemption"] is False
1395
- assert row["minimum_substantive_code_anchors"] == 2
1396
- assert row["finalization_policy"] == "code_substantive_required"
1397
-
1398
-
1399
- def test_retrieval_trace_sidecar_backfills_requirement_analysis_from_route_reason_and_interpretation(tmp_path) -> None:
1400
- row_results = [
1401
- RowEvaluationResult(
1402
- row_id="CL-036:row_35",
1403
- check_id="CL-036",
1404
- status=RowStatus.FAIL,
1405
- score=42.0,
1406
- score_breakdown=ScoreBreakdown.compute(raw_score=4.2),
1407
- reason="substantive code anchor required",
1408
- finding="fallback inference should project requirement-analysis diagnostics",
1409
- evidence_anchors=[],
1410
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
1411
- retrieval_trace={
1412
- "requirement_interpretation": {
1413
- "intent": "Validate decoupling through source-level implementation evidence.",
1414
- "control_objective": "Architecture",
1415
- "evidence_targets": ["code"],
1416
- "code_targets": ["src/main/java/com/acme/domain/OrderService.java"],
1417
- "docs_markers": [],
1418
- "code_markers": ["decoupling"],
1419
- "process_markers": [],
1420
- },
1421
- "tool_first_loop": {
1422
- "route_mode": "hybrid_code_first",
1423
- "route_reason": (
1424
- "targets=code; control_objective=architecture; risk_focus=quality;"
1425
- " confidence=0.86; analysis_mode=code_first; finalization_policy=code_substantive_required"
1426
- ),
1427
- "code_search_count": 2,
1428
- "code_read_count": 1,
1429
- "docs_intent_utilization": {"docs_target": False, "code_target": True},
1430
- },
1431
- },
1432
- )
1433
- ]
1434
-
1435
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1436
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
1437
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1438
-
1439
- row = payload["rows"][0]
1440
- assert row["analysis_mode"] == "code_first"
1441
- assert row["finalization_policy"] == "code_substantive_required"
1442
- assert row["required_anchor_modalities"] == ["code"]
1443
- assert row["minimum_substantive_code_anchors"] == 1
1444
- assert row["generic_anchor_exemption"] is False
1445
- assert "route_reason_analysis_mode_hint" in row["analysis_reason_codes"]
1446
-
1447
-
1448
- def test_retrieval_trace_sidecar_backfills_requirement_analysis_from_route_metadata_without_interpretation(
1449
- tmp_path,
1450
- ) -> None:
1451
- row_results = [
1452
- RowEvaluationResult(
1453
- row_id="CL-010:row_9",
1454
- check_id="CL-010",
1455
- status=RowStatus.FAIL,
1456
- score=33.0,
1457
- score_breakdown=ScoreBreakdown.compute(raw_score=3.3),
1458
- reason="mixed-modality requirement",
1459
- finding="route metadata fallback should keep diagnostics machine-readable",
1460
- evidence_anchors=[],
1461
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
1462
- retrieval_trace={
1463
- "tool_first_loop": {
1464
- "route_mode": "hybrid_code_first",
1465
- "route_reason": (
1466
- "targets=code,docs; control_objective=security; risk_focus=quality;"
1467
- " confidence=0.73; analysis_mode=hybrid_balanced;"
1468
- " finalization_policy=mixed_modalities_preserve_strong_code"
1469
- ),
1470
- "code_search_count": 1,
1471
- "code_read_count": 1,
1472
- "docs_search_count": 1,
1473
- "docs_read_count": 1,
1474
- "docs_intent_utilization": {"docs_target": True, "code_target": True},
1475
- },
1476
- },
1477
- )
1478
- ]
1479
-
1480
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1481
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
1482
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1483
-
1484
- row = payload["rows"][0]
1485
- assert row["analysis_mode"] == "hybrid_balanced"
1486
- assert row["finalization_policy"] == "mixed_modalities_preserve_strong_code"
1487
- assert row["required_anchor_modalities"] == ["code", "docs"]
1488
- assert row["minimum_substantive_code_anchors"] == 1
1489
- assert row["generic_anchor_exemption"] is False
1490
- assert "route_reason_analysis_mode_hint" in row["analysis_reason_codes"]
1491
-
1492
-
1493
- def test_retrieval_trace_sidecar_projects_mixed_requirement_analysis_from_promoted_trace(tmp_path) -> None:
1494
- raw_trace = {
1495
- "requirement_analysis": {
1496
- "analysis_mode": "code_first",
1497
- "analysis_reason_codes": ["code_first_requirement"],
1498
- "required_anchor_modalities": ["code"],
1499
- "generic_anchor_exemption": False,
1500
- "minimum_substantive_code_anchors": 0,
1501
- "finalization_policy": "code_substantive_required",
1502
- },
1503
- "tool_first_loop": {
1504
- "route_id": "hybrid_code_first_search_read_verify_synthesize",
1505
- "route_mode": "hybrid_code_first",
1506
- "docs_search_count": 1,
1507
- "docs_read_count": 1,
1508
- "code_search_count": 1,
1509
- "code_read_count": 2,
1510
- "code_ranking_diagnostics": {
1511
- "requirement_analysis": {
1512
- "analysis_mode": "hybrid_balanced",
1513
- "analysis_reason_codes": ["mixed_modalities_required", "code_marker_signal"],
1514
- "required_anchor_modalities": ["code", "docs"],
1515
- "generic_anchor_exemption": False,
1516
- "minimum_substantive_code_anchors": 1,
1517
- "finalization_policy": "mixed_modalities_preserve_strong_code",
1518
- }
1519
- },
1520
- },
1521
- }
1522
- promoted_trace = RowEvaluator._promote_requirement_analysis_diagnostics(raw_trace)
1523
-
1524
- row_results = [
1525
- RowEvaluationResult(
1526
- row_id="CL-010:row_9",
1527
- check_id="CL-010",
1528
- status=RowStatus.FAIL,
1529
- score=35.0,
1530
- score_breakdown=ScoreBreakdown.compute(raw_score=3.5),
1531
- reason="mixed row requires both docs and code anchors",
1532
- finding="docs/code modality evidence dropped after narrowing",
1533
- evidence_anchors=[],
1534
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
1535
- retrieval_trace=promoted_trace,
1536
- )
1537
- ]
1538
-
1539
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1540
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
1541
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1542
-
1543
- row = payload["rows"][0]
1544
- assert row["analysis_mode"] == "hybrid_balanced"
1545
- assert row["analysis_reason_codes"] == ["mixed_modalities_required", "code_marker_signal"]
1546
- assert row["required_anchor_modalities"] == ["code", "docs"]
1547
- assert row["minimum_substantive_code_anchors"] == 1
1548
- assert row["finalization_policy"] == "mixed_modalities_preserve_strong_code"
1549
-
1550
-
1551
- def test_retrieval_trace_sidecar_prefers_richer_requirement_analysis_without_pre_promotion(tmp_path) -> None:
1552
- row_results = [
1553
- RowEvaluationResult(
1554
- row_id="CL-010:row_9",
1555
- check_id="CL-010",
1556
- status=RowStatus.FAIL,
1557
- score=35.0,
1558
- score_breakdown=ScoreBreakdown.compute(raw_score=3.5),
1559
- reason="mixed row requires both docs and code anchors",
1560
- finding="docs/code modality evidence dropped after narrowing",
1561
- evidence_anchors=[],
1562
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
1563
- retrieval_trace={
1564
- "analysis_mode": "code_first",
1565
- "analysis_reason_codes": ["code_first_requirement"],
1566
- "required_anchor_modalities": ["code"],
1567
- "generic_anchor_exemption": False,
1568
- "minimum_substantive_code_anchors": 0,
1569
- "finalization_policy": "code_substantive_required",
1570
- "tool_first_loop": {
1571
- "route_id": "hybrid_code_first_search_read_verify_synthesize",
1572
- "route_mode": "hybrid_code_first",
1573
- "docs_search_count": 1,
1574
- "docs_read_count": 1,
1575
- "code_search_count": 1,
1576
- "code_read_count": 2,
1577
- "code_ranking_diagnostics": {
1578
- "requirement_analysis": {
1579
- "analysis_mode": "hybrid_balanced",
1580
- "analysis_reason_codes": ["mixed_modalities_required", "code_marker_signal"],
1581
- "required_anchor_modalities": ["code", "docs"],
1582
- "generic_anchor_exemption": False,
1583
- "minimum_substantive_code_anchors": 1,
1584
- "finalization_policy": "mixed_modalities_preserve_strong_code",
1585
- }
1586
- },
1587
- },
1588
- },
1589
- )
1590
- ]
1591
-
1592
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1593
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
1594
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1595
-
1596
- row = payload["rows"][0]
1597
- assert row["analysis_mode"] == "hybrid_balanced"
1598
- assert row["analysis_reason_codes"] == ["mixed_modalities_required", "code_marker_signal"]
1599
- assert row["required_anchor_modalities"] == ["code", "docs"]
1600
- assert row["minimum_substantive_code_anchors"] == 1
1601
- assert row["finalization_policy"] == "mixed_modalities_preserve_strong_code"
1602
-
1603
-
1604
- def test_retrieval_trace_sidecar_clamps_citation_retention_to_denominator(tmp_path) -> None:
1605
- row_results = [
1606
- RowEvaluationResult(
1607
- row_id="CL-033:row_32",
1608
- check_id="CL-033",
1609
- status=RowStatus.FAIL,
1610
- score=0.0,
1611
- score_breakdown=ScoreBreakdown.compute(raw_score=0.0),
1612
- reason="infra artifact missing",
1613
- finding="docker-compose missing",
1614
- evidence_anchors=[],
1615
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
1616
- retrieval_trace={
1617
- "exploratory_ref_count": 1,
1618
- "final_cited_ref_count": 2,
1619
- "citation_retention_rate": 2.0,
1620
- },
1621
- )
1622
- ]
1623
-
1624
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1625
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
1626
- payload = json.loads(output_path.read_text(encoding="utf-8"))
1627
-
1628
- row = payload["rows"][0]
1629
- assert row["exploratory_ref_count"] == 1
1630
- assert row["final_cited_ref_count"] == 1
1631
- assert row["citation_retention_rate"] == pytest.approx(1.0, abs=1e-9)
1632
-
1633
-
1634
- def test_sanitize_private_urls_in_payload_redacts_internal_hosts() -> None:
1635
- payload = {
1636
- "source_url": "http://10.254.136.35:8090/pages/viewpage.action?pageId=88722450",
1637
- "excerpt": "Ref http://10.254.136.35:8090/display/TMP/List+US+phase+7 and https://example.com/docs",
1638
- "plain_ip": "Service endpoint 10.10.100.31 and public host 8.8.8.8",
1639
- "nested": [
1640
- {"url": "http://192.168.1.10:8080/api"},
1641
- {"url": "https://public.example.com/path"},
1642
- ],
1643
- }
1644
-
1645
- sanitized = _sanitize_private_urls_in_payload(payload)
1646
- assert sanitized["source_url"] == "https://confluence.local/pages/viewpage.action?pageId=88722450"
1647
- assert "10.254.136.35" not in sanitized["excerpt"]
1648
- assert "internal-host-redacted:8090" in sanitized["excerpt"]
1649
- assert "https://example.com/docs" in sanitized["excerpt"]
1650
- assert "10.10.100.31" not in sanitized["plain_ip"]
1651
- assert "internal-ip-redacted" in sanitized["plain_ip"]
1652
- assert "8.8.8.8" in sanitized["plain_ip"]
1653
- assert sanitized["nested"][0]["url"] == "https://internal-host-redacted:8080/api"
1654
- assert sanitized["nested"][1]["url"] == "https://public.example.com/path"
1655
-
1656
-
1657
- def test_retrieval_trace_sidecar_sanitizes_private_urls_in_trace(tmp_path) -> None:
1658
- row_results = [
1659
- RowEvaluationResult(
1660
- row_id="CL-555:row_0",
1661
- check_id="CL-555",
1662
- status=RowStatus.PASS,
1663
- score=90.0,
1664
- score_breakdown=ScoreBreakdown.compute(raw_score=90.0),
1665
- reason="ok",
1666
- finding="ok",
1667
- evidence_anchors=[],
1668
- provenance=RowProvenance(row_llm_mode="per-row", template_hash="tpl", evidence_hash="evd"),
1669
- retrieval_trace={
1670
- "tool_first_loop": {
1671
- "trace_steps": [
1672
- {
1673
- "step": 1,
1674
- "tool": "read_doc_chunk",
1675
- "output": {
1676
- "title": "http://10.254.136.35:8090/pages/viewpage.action?pageId=88722450",
1677
- "source_url": "http://10.254.136.35:8090/display/TMP/5.2.+KBKT",
1678
- "excerpt": "Nodes: 10.10.151.188 and 8.8.8.8",
1679
- },
1680
- }
1681
- ]
1682
- }
1683
- },
1684
- )
1685
- ]
1686
-
1687
- output_path = tmp_path / "audit-checklist.retrieval-trace.json"
1688
- _write_retrieval_trace_sidecar(output_path, row_results=row_results)
1689
- serialized = output_path.read_text(encoding="utf-8")
1690
-
1691
- assert "10.254.136.35" not in serialized
1692
- assert "10.10.151.188" not in serialized
1693
- assert "confluence.local/pages/viewpage.action?pageId=88722450" in serialized
1694
- assert "internal-host-redacted:8090/display/TMP/5.2.+KBKT" in serialized
1695
- assert "internal-ip-redacted" in serialized
1696
- assert "8.8.8.8" in serialized