@ngocsangairvds/vsaf 3.2.14 → 3.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1442) hide show
  1. package/bin/vsaf.js +18 -4
  2. package/package.json +1 -1
  3. package/src/config.js +167 -0
  4. package/src/global.js +1 -48
  5. package/src/project.js +1 -0
  6. package/src/utils.js +44 -1
  7. package/tools/vds-scripts/Makefile +9 -31
  8. package/tools/vds-scripts/docker/docker-compose.cli.yml +1 -117
  9. package/tools/vds-scripts/docker/docker-compose.services.yml +1 -40
  10. package/tools/vds-scripts/docker/infrastructure/init-schemas.sql +0 -34
  11. package/tools/vds-scripts/docker/infrastructure/pgbouncer/pgbouncer.ini +2 -6
  12. package/tools/vds-scripts/pyproject.toml +1 -33
  13. package/tools/vds-scripts/uv.lock +80 -1651
  14. package/tools/vds-scripts/vds_cli/pyproject.toml +3 -0
  15. package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +1 -127
  16. package/tools/vds-scripts/vds_cli/src/vds_cli/commands/lint_cli.py +1 -20
  17. package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +0 -100
  18. package/tools/vds-scripts/vds_cli/tests/conftest.py +0 -2
  19. package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +0 -25
  20. package/tools/vds-scripts/vds_cli/tests/unit/test_lint_cli.py +2 -2
  21. package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +0 -2
  22. package/tools/vds-scripts/CLOSURE.md +0 -340
  23. package/tools/vds-scripts/ECOSYSTEM-CHANGELOG.md +0 -52
  24. package/tools/vds-scripts/ECOSYSTEM-DOCS.md +0 -602
  25. package/tools/vds-scripts/ECOSYSTEM_ALIGNMENT.md +0 -133
  26. package/tools/vds-scripts/ENV-HYGIENE-OPS-NOTE.md +0 -65
  27. package/tools/vds-scripts/INVESTIGATION-cloud-401.md +0 -103
  28. package/tools/vds-scripts/MEM0_2.0_API_REFERENCE.md +0 -238
  29. package/tools/vds-scripts/PACKAGE_P125B_IMPLEMENTATION_SUMMARY.md +0 -131
  30. package/tools/vds-scripts/PHASE-MERGE-SUMMARY.md +0 -121
  31. package/tools/vds-scripts/PHASES-3-ARCHIVE.md +0 -59
  32. package/tools/vds-scripts/PROJECT_COMPLETION_SUMMARY.md +0 -45
  33. package/tools/vds-scripts/SEARCH-CRASH-REPRO.md +0 -51
  34. package/tools/vds-scripts/analyze_hexagonal.py +0 -217
  35. package/tools/vds-scripts/analyze_profiles.py +0 -60
  36. package/tools/vds-scripts/audit-checklist.xlsx +0 -0
  37. package/tools/vds-scripts/audit_orchestrator/.audit_approvals/approvals_index.json +0 -1
  38. package/tools/vds-scripts/audit_orchestrator/.env.example +0 -85
  39. package/tools/vds-scripts/audit_orchestrator/.github/workflows/audit.yml +0 -47
  40. package/tools/vds-scripts/audit_orchestrator/Dockerfile +0 -92
  41. package/tools/vds-scripts/audit_orchestrator/GOOGLE_SHEETS_IMPLEMENTATION_SUMMARY.md +0 -218
  42. package/tools/vds-scripts/audit_orchestrator/PHASE3_INTEGRATION_SUMMARY.md +0 -268
  43. package/tools/vds-scripts/audit_orchestrator/PHASE7-MERGE-SUMMARY.md +0 -174
  44. package/tools/vds-scripts/audit_orchestrator/README.md +0 -1573
  45. package/tools/vds-scripts/audit_orchestrator/TSK-168-IMPLEMENTATION-SUMMARY.md +0 -191
  46. package/tools/vds-scripts/audit_orchestrator/TSK-196-IMPLEMENTATION-SUMMARY.md +0 -201
  47. package/tools/vds-scripts/audit_orchestrator/alembic/env.py +0 -37
  48. package/tools/vds-scripts/audit_orchestrator/alembic/script.py.mako +0 -28
  49. package/tools/vds-scripts/audit_orchestrator/alembic/versions/0001_initial_audit_state_schema.py +0 -1260
  50. package/tools/vds-scripts/audit_orchestrator/alembic.ini +0 -68
  51. package/tools/vds-scripts/audit_orchestrator/config/category-mapping.json +0 -81
  52. package/tools/vds-scripts/audit_orchestrator/config/profile-timeouts.yaml +0 -17
  53. package/tools/vds-scripts/audit_orchestrator/create_sample.py +0 -55
  54. package/tools/vds-scripts/audit_orchestrator/data/corpus_accuracy_report.json +0 -17
  55. package/tools/vds-scripts/audit_orchestrator/data/exemplar_quality_report.json +0 -1606
  56. package/tools/vds-scripts/audit_orchestrator/data/instruction_plan_fixtures.json +0 -163
  57. package/tools/vds-scripts/audit_orchestrator/data/requirement_exemplars.json +0 -3443
  58. package/tools/vds-scripts/audit_orchestrator/data/requirement_scope_fixtures.json +0 -172
  59. package/tools/vds-scripts/audit_orchestrator/debug_rg.py +0 -46
  60. package/tools/vds-scripts/audit_orchestrator/demo_code_pack.py +0 -127
  61. package/tools/vds-scripts/audit_orchestrator/docs/AGENT_SDK_SELECTION_SPEC.md +0 -720
  62. package/tools/vds-scripts/audit_orchestrator/docs/API.md +0 -804
  63. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_ANALYSIS_APPROACH.md +0 -1041
  64. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_SCORING_EVOLUTION_SPEC.md +0 -868
  65. package/tools/vds-scripts/audit_orchestrator/docs/DEPLOYMENT.md +0 -778
  66. package/tools/vds-scripts/audit_orchestrator/docs/LLM_AGENT_AUDIT_SPEC.md +0 -721
  67. package/tools/vds-scripts/audit_orchestrator/docs/LLM_CONTENT_ANALYSIS_SPEC.md +0 -1143
  68. package/tools/vds-scripts/audit_orchestrator/docs/LSP_SETUP_GUIDE.md +0 -221
  69. package/tools/vds-scripts/audit_orchestrator/docs/MULTI_REPO_AUDIT_SPEC.md +0 -951
  70. package/tools/vds-scripts/audit_orchestrator/docs/OLLAMA_EMBEDDINGS_SETUP.md +0 -119
  71. package/tools/vds-scripts/audit_orchestrator/docs/PHASE32_REAL_BENCHMARK_2026-02-08.md +0 -66
  72. package/tools/vds-scripts/audit_orchestrator/docs/PHASE_64_TO_92_HISTORICAL_SPEC.md +0 -1772
  73. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-flow-trace.md +0 -201
  74. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-verification.md +0 -124
  75. package/tools/vds-scripts/audit_orchestrator/docs/phase152-hierarchical-query-surface.md +0 -46
  76. package/tools/vds-scripts/audit_orchestrator/examples/bitbucket_metadata_example.json +0 -50
  77. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/README.md +0 -68
  78. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase117_phase118_shared_state.sql +0 -64
  79. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase154_published_pages.sql +0 -28
  80. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_dispatch_tables.sql +0 -94
  81. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_events.sql +0 -91
  82. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_scope_snapshots.sql +0 -24
  83. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_status_view.sql +0 -22
  84. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase169_dispatch_observability.sql +0 -55
  85. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/state_repair_hardening.sql +0 -24
  86. package/tools/vds-scripts/audit_orchestrator/pyproject.toml +0 -211
  87. package/tools/vds-scripts/audit_orchestrator/pyrightconfig.json +0 -51
  88. package/tools/vds-scripts/audit_orchestrator/pytest.ini +0 -37
  89. package/tools/vds-scripts/audit_orchestrator/reproduce_scanner.py +0 -40
  90. package/tools/vds-scripts/audit_orchestrator/scripts/README.md +0 -116
  91. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_crawl_modes.py +0 -455
  92. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_dspy.py +0 -513
  93. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_nlp_accuracy.py +0 -138
  94. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_retrieval_modes.py +0 -176
  95. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_upload_update_mode.py +0 -167
  96. package/tools/vds-scripts/audit_orchestrator/scripts/build_check.py +0 -76
  97. package/tools/vds-scripts/audit_orchestrator/scripts/check_live_progress.py +0 -61
  98. package/tools/vds-scripts/audit_orchestrator/scripts/cli_integration_test.py +0 -400
  99. package/tools/vds-scripts/audit_orchestrator/scripts/index_workspace.py +0 -178
  100. package/tools/vds-scripts/audit_orchestrator/scripts/inspect_route_conformance.py +0 -196
  101. package/tools/vds-scripts/audit_orchestrator/scripts/monitor_postgres.py +0 -145
  102. package/tools/vds-scripts/audit_orchestrator/scripts/optimize_audit.py +0 -462
  103. package/tools/vds-scripts/audit_orchestrator/scripts/verify.py +0 -673
  104. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase111_requirement_analysis.py +0 -375
  105. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase117_cross_repo_evidence.py +0 -77
  106. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase121_short_circuit.py +0 -680
  107. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase122_instruction_handling.py +0 -478
  108. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase125_skill_integration.py +0 -832
  109. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_36.py +0 -394
  110. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_37.py +0 -58
  111. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/__init__.py +0 -17
  112. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/__init__.py +0 -29
  113. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/_langchain_warnings.py +0 -17
  114. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/agentic_investigator.py +0 -4130
  115. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/approval.py +0 -490
  116. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_loop_hooks.py +0 -107
  117. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_state.py +0 -50
  118. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/base.py +0 -4035
  119. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_agent.py +0 -667
  120. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_helpers.py +0 -236
  121. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_prompts.py +0 -146
  122. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/docs_agent.py +0 -1234
  123. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/langgraph_workflow.py +0 -2002
  124. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/pydantic_base.py +0 -1227
  125. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/requirement_analysis_agent.py +0 -593
  126. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_agent.py +0 -1829
  127. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_scanner.py +0 -686
  128. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/skill_tools.py +0 -204
  129. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/synthesis_agent.py +0 -1463
  130. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_efficiency_guard.py +0 -609
  131. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_registry.py +0 -3822
  132. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/__init__.py +0 -52
  133. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/evidence_corpus.py +0 -385
  134. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/filesystem.py +0 -1134
  135. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/lsp.py +0 -458
  136. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/mcp_toolset.py +0 -491
  137. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/skills_toolset.py +0 -997
  138. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/vector_evidence.py +0 -842
  139. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/usage_tracker.py +0 -682
  140. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/visualization.py +0 -303
  141. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/analyze_cmds.py +0 -892
  142. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/__init__.py +0 -15
  143. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/service.py +0 -171
  144. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/__init__.py +0 -20
  145. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/base.py +0 -60
  146. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/__init__.py +0 -6
  147. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/checks.py +0 -257
  148. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/__init__.py +0 -10
  149. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/checks.py +0 -78
  150. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/__init__.py +0 -6
  151. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/file_checks.py +0 -133
  152. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/__init__.py +0 -17
  153. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/api_docs_check.py +0 -80
  154. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/readme_check.py +0 -76
  155. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/security_docs_check.py +0 -78
  156. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/registry.py +0 -402
  157. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/__init__.py +0 -10
  158. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/checks.py +0 -276
  159. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli.py +0 -12
  160. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_common.py +0 -128
  161. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_impl.py +0 -9826
  162. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/bitbucket_cli_client.py +0 -187
  163. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/confluence_cli_client.py +0 -977
  164. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/sonarqube_cli_client.py +0 -28
  165. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/__init__.py +0 -21
  166. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/base.py +0 -25
  167. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_downloader.py +0 -644
  168. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_metadata.py +0 -133
  169. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/checklist_parser.py +0 -180
  170. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/__init__.py +0 -31
  171. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/bitbucket_probe.py +0 -443
  172. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/confluence_probe.py +0 -365
  173. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/freshness_evaluator.py +0 -330
  174. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/material_completeness_service.py +0 -1079
  175. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/confluence_collector.py +0 -259
  176. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/diagram_extractor.py +0 -280
  177. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/enrichment_extractor.py +0 -200
  178. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/evidence_cache.py +0 -35
  179. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/git_collector.py +0 -148
  180. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/graphify_collector.py +0 -171
  181. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/image_extractor.py +0 -359
  182. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/linked_page_tracker.py +0 -120
  183. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/markdown_converter.py +0 -344
  184. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_cache.py +0 -1252
  185. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_downloader.py +0 -1165
  186. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/orchestrator.py +0 -168
  187. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/registry_parser.py +0 -3063
  188. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/requirements.py +0 -70
  189. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/runner.py +0 -119
  190. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/sonarqube_collector.py +0 -113
  191. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config.py +0 -1943
  192. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/__init__.py +0 -23
  193. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/discovery.py +0 -90
  194. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/environment_resolver.py +0 -56
  195. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/evidence.py +0 -78
  196. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/models.py +0 -73
  197. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/precedence.py +0 -10
  198. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/redaction.py +0 -20
  199. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/confluence_connectivity.py +0 -140
  200. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/corpus_cmds.py +0 -278
  201. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/__init__.py +0 -7
  202. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/alembic_filters.py +0 -57
  203. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/__init__.py +0 -29
  204. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/diataxis_validator.py +0 -687
  205. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/doctor_cmds.py +0 -3295
  206. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/__init__.py +0 -5
  207. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/evaluation.py +0 -301
  208. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/modules.py +0 -172
  209. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/runtime.py +0 -836
  210. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/signatures.py +0 -406
  211. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/__init__.py +0 -192
  212. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/ad_hoc_analyzer.py +0 -399
  213. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/aggregator.py +0 -220
  214. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/auditor.py +0 -504
  215. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_evidence_cache.py +0 -111
  216. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_processor.py +0 -4776
  217. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/calibration.py +0 -217
  218. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_generator.py +0 -1201
  219. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_projection.py +0 -192
  220. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_scoping.py +0 -221
  221. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checkpoint.py +0 -159
  222. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cl003_shared_lib_guard.py +0 -194
  223. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/companion_context_service.py +0 -445
  224. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/confluence_checklist_contract.py +0 -7425
  225. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cross_check_rules.py +0 -213
  226. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/deterministic_evaluator.py +0 -237
  227. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/drift_detector.py +0 -157
  228. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/dspy_requirement_classifier.py +0 -640
  229. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_assembler.py +0 -407
  230. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_collector.py +0 -119
  231. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_diversity.py +0 -101
  232. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/gap_analyzer.py +0 -549
  233. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/graduated.py +0 -185
  234. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/grounding_validator.py +0 -287
  235. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_analyzer.py +0 -882
  236. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_compliance.py +0 -172
  237. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/llm_row_evaluator.py +0 -9270
  238. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/loader.py +0 -1070
  239. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/manual_check_config.py +0 -136
  240. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/mapping.py +0 -269
  241. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/multi_judge.py +0 -65
  242. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/phase120_checklist_update.py +0 -416
  243. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/profile_scorer.py +0 -427
  244. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_evidence_context.py +0 -449
  245. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_query_service.py +0 -155
  246. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_store.py +0 -383
  247. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_topology.py +0 -1920
  248. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/provider_failure_classifier.py +0 -778
  249. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_cli_helpers.py +0 -341
  250. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_extractor.py +0 -303
  251. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_synthesizer.py +0 -730
  252. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/regression_guard.py +0 -138
  253. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/repo_type_classifier.py +0 -297
  254. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_analysis.py +0 -1433
  255. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_classification.py +0 -1725
  256. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/result_merger.py +0 -814
  257. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/route_matrix.py +0 -267
  258. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator.py +0 -9437
  259. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_runtime.py +0 -1270
  260. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_types.py +0 -2102
  261. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/rubric.py +0 -592
  262. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/scorer.py +0 -1239
  263. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/section_packs.py +0 -645
  264. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/skill_recommendation.py +0 -1183
  265. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/stability_harness.py +0 -207
  266. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/target_selector.py +0 -841
  267. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/telemetry.py +0 -347
  268. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/template_analyzer.py +0 -469
  269. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/token_tracker.py +0 -111
  270. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/tool_first_planner.py +0 -7905
  271. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/topology_query_service.py +0 -80
  272. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/validator.py +0 -449
  273. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/weight_policy.py +0 -464
  274. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/errors.py +0 -430
  275. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/extract_cmds.py +0 -4887
  276. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/identity.py +0 -146
  277. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/__init__.py +0 -52
  278. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/baseline.py +0 -378
  279. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/change_analyzer.py +0 -407
  280. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/delta_report.py +0 -189
  281. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/diff_detector.py +0 -301
  282. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/integrations/__init__.py +0 -3
  283. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/__init__.py +0 -50
  284. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/audit_schemas.py +0 -459
  285. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/codex_oauth.py +0 -340
  286. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/cost_tracker.py +0 -288
  287. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/engine.py +0 -751
  288. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/evaluator.py +0 -245
  289. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/__init__.py +0 -32
  290. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/api_docs_evaluation.py +0 -25
  291. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/gap_analysis.py +0 -31
  292. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/instruction_templates.py +0 -634
  293. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/readme_evaluation.py +0 -25
  294. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/row_evaluation.py +0 -247
  295. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/security_docs_evaluation.py +0 -25
  296. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/template_analysis.py +0 -25
  297. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts.py +0 -0
  298. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/provider.py +0 -626
  299. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/logging_config.py +0 -577
  300. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/__init__.py +0 -58
  301. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/default_checklist_mapping.json +0 -18
  302. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/vietnamese_checklist_mapping.json +0 -38
  303. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/misc_cmds.py +0 -4689
  304. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/__init__.py +0 -153
  305. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/calibration.py +0 -98
  306. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/checklist.py +0 -921
  307. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/completeness.py +0 -309
  308. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enrichment.py +0 -58
  309. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enums.py +0 -97
  310. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/evidence.py +0 -351
  311. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/findings.py +0 -381
  312. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/gaps.py +0 -299
  313. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/graph.py +0 -42
  314. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/multi_judge.py +0 -50
  315. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/readiness.py +0 -309
  316. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/registry.py +0 -386
  317. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/reporting.py +0 -32
  318. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/task.py +0 -549
  319. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/template.py +0 -477
  320. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/__init__.py +0 -31
  321. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/metrics.py +0 -404
  322. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/parse_cmds.py +0 -608
  323. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/pdf_cmds.py +0 -208
  324. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/performance_gates.py +0 -224
  325. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/phase151_projection.py +0 -84
  326. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/__init__.py +0 -65
  327. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/detection.py +0 -842
  328. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/models.py +0 -474
  329. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/__init__.py +0 -1
  330. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_confluence_macros.py +0 -145
  331. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_field_sanitizer.py +0 -25
  332. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_table_builder.py +0 -63
  333. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_vietnamese_templates.py +0 -103
  334. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/bitbucket_link_resolver.py +0 -34
  335. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/checklist_renderer.py +0 -483
  336. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/confluence_publisher.py +0 -3048
  337. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/hierarchy_publisher.py +0 -213
  338. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/live_data_injector.py +0 -152
  339. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/macro_builder.py +0 -101
  340. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/markdown_converter.py +0 -154
  341. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/priority_renderer.py +0 -133
  342. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/project_aggregate_renderer.py +0 -423
  343. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/readiness_renderer.py +0 -186
  344. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_hierarchy_renderer.py +0 -382
  345. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_renderer.py +0 -683
  346. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/report_cmds.py +0 -788
  347. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/__init__.py +0 -13
  348. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/aggregation_report.py +0 -86
  349. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/checklist_generator.py +0 -425
  350. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/excel_generator.py +0 -599
  351. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/gap_report.py +0 -131
  352. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/json_generator.py +0 -188
  353. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/markdown_generator.py +0 -595
  354. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/__init__.py +0 -154
  355. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/collector.py +0 -61
  356. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/department_builder.py +0 -77
  357. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/errors.py +0 -9
  358. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/md_renderer.py +0 -386
  359. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_models.py +0 -95
  360. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_writer.py +0 -27
  361. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/repo_project_builders.py +0 -274
  362. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/readiness_report.py +0 -447
  363. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/reporting.py +0 -94
  364. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/sarif_generator.py +0 -519
  365. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/runtime_profiles.py +0 -98
  366. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/__init__.py +0 -29
  367. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/seed_loader.py +0 -561
  368. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/__init__.py +0 -5
  369. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/skill_routing.py +0 -312
  370. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/__init__.py +0 -0
  371. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/base.py +0 -110
  372. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/bitbucket.py +0 -129
  373. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/git_url.py +0 -60
  374. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/github.py +0 -75
  375. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/local.py +0 -58
  376. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/spec_sync_validator.py +0 -15
  377. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/__init__.py +0 -6285
  378. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/readiness_helpers.py +0 -74
  379. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/skill_readiness.py +0 -487
  380. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/store.py +0 -12927
  381. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state_cmds.py +0 -1868
  382. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/__init__.py +0 -0
  383. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/repo_sync.py +0 -409
  384. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync_cmds.py +0 -1247
  385. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/__init__.py +0 -3
  386. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/debug_bundle.py +0 -214
  387. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/validators/checklist_validator.py +0 -342
  388. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflow_cmds.py +0 -19147
  389. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/__init__.py +0 -9
  390. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/_test_audit_daily_batch.py +0 -192
  391. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_daily_batch.py +0 -308
  392. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_deep_monthly.py +0 -193
  393. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_drift_scan.py +0 -178
  394. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_security_daily.py +0 -183
  395. package/tools/vds-scripts/audit_orchestrator/templates/sample_audit_template.xlsx +0 -0
  396. package/tools/vds-scripts/audit_orchestrator/tests/__init__.py +0 -0
  397. package/tools/vds-scripts/audit_orchestrator/tests/_helpers.py +0 -32
  398. package/tools/vds-scripts/audit_orchestrator/tests/collectors/__init__.py +0 -0
  399. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/__init__.py +0 -0
  400. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_bitbucket_probe.py +0 -403
  401. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_confluence_probe.py +0 -423
  402. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_bitbucket_downloader.py +0 -289
  403. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_image_extractor.py +0 -260
  404. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_markdown_converter.py +0 -57
  405. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_cache.py +0 -197
  406. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_downloader.py +0 -550
  407. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser.py +0 -3514
  408. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_department_entry.py +0 -214
  409. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_flow.py +0 -200
  410. package/tools/vds-scripts/audit_orchestrator/tests/conftest.py +0 -988
  411. package/tools/vds-scripts/audit_orchestrator/tests/engine/__init__.py +0 -0
  412. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_calibration.py +0 -48
  413. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_confluence_checklist_phase22_helpers.py +0 -6065
  414. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_multi_judge.py +0 -62
  415. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_stability_harness.py +0 -61
  416. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_structured_metadata.py +0 -419
  417. package/tools/vds-scripts/audit_orchestrator/tests/factories/__init__.py +0 -0
  418. package/tools/vds-scripts/audit_orchestrator/tests/factories/models.py +0 -534
  419. package/tools/vds-scripts/audit_orchestrator/tests/factories/templates.py +0 -241
  420. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/__init__.py +0 -0
  421. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/__init__.py +0 -0
  422. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/compressed.drawio +0 -2
  423. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/mockup.bmpr +0 -0
  424. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/simple.drawio +0 -26
  425. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/__init__.py +0 -0
  426. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/__init__.py +0 -0
  427. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_cli.json +0 -26
  428. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_direct.json +0 -24
  429. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_cli.json +0 -14
  430. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_direct.json +0 -12
  431. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/__init__.py +0 -0
  432. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_cli.json +0 -7
  433. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_direct.json +0 -7
  434. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_cli.json +0 -11
  435. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_direct.json +0 -7
  436. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/__init__.py +0 -0
  437. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_cli.json +0 -12
  438. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_direct.json +0 -12
  439. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/requirement_strategy_phase115.json +0 -118
  440. package/tools/vds-scripts/audit_orchestrator/tests/integration/__init__.py +0 -0
  441. package/tools/vds-scripts/audit_orchestrator/tests/integration/conftest.py +0 -107
  442. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/__init__.py +0 -0
  443. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/expected_outcomes.md +0 -50
  444. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/__init__.py +0 -0
  445. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/auth.py +0 -27
  446. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/config.py +0 -16
  447. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/db.py +0 -24
  448. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/main.py +0 -18
  449. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/__init__.py +0 -1
  450. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/utils.py +0 -22
  451. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_checklist_template.json +0 -110
  452. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/__init__.py +0 -0
  453. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/code_evidence_pack.json +0 -40
  454. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/manifest.json +0 -49
  455. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/__init__.py +0 -0
  456. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/__init__.py +0 -0
  457. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/brd.md +0 -19
  458. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/design.md +0 -32
  459. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/security.md +0 -23
  460. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/srs.md +0 -25
  461. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/test.md +0 -30
  462. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_checkpoint_merge.py +0 -1371
  463. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_decoupling_route_p149.py +0 -176
  464. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_gap_analyzer_batch_p149.py +0 -151
  465. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_hybrid_search.py +0 -799
  466. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_mcp_integration.py +0 -741
  467. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_merge_ranking_p149.py +0 -98
  468. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_modality_mismatch_p149.py +0 -171
  469. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase117_118_storage.py +0 -350
  470. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase121_short_circuit.py +0 -732
  471. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase18_workflow.py +0 -223
  472. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase48_e2e_verification.py +0 -763
  473. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase81_doc_anchor_regression.py +0 -252
  474. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_provider_failure_finding_p149.py +0 -339
  475. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_readiness_e2e.py +0 -430
  476. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_refined_workflow.py +0 -1180
  477. package/tools/vds-scripts/audit_orchestrator/tests/pdf/__init__.py +0 -0
  478. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/__init__.py +0 -0
  479. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/department_renderer.md +0 -24
  480. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/project_renderer.md +0 -8
  481. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/repo_renderer.md +0 -10
  482. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_department_pdf.py +0 -112
  483. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_e2e_pdf.py +0 -135
  484. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_idempotency.py +0 -45
  485. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_md_renderer.py +0 -46
  486. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_cmds.py +0 -97
  487. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_snapshot.py +0 -77
  488. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_writer.py +0 -65
  489. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_project_builder.py +0 -199
  490. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_public_api.py +0 -135
  491. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_repo_builder.py +0 -246
  492. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_workflow_pdf_flags.py +0 -36
  493. package/tools/vds-scripts/audit_orchestrator/tests/property/__init__.py +0 -0
  494. package/tools/vds-scripts/audit_orchestrator/tests/property/test_properties.py +0 -807
  495. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/__init__.py +0 -0
  496. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agent_error_compat.py +0 -38
  497. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agentic_skill_policy_skip.py +0 -234
  498. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_event_stream_logging.py +0 -785
  499. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_timeout_policy.py +0 -277
  500. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_trace_payload_sanitization.py +0 -92
  501. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent.py +0 -2311
  502. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent_re_exports.py +0 -25
  503. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_analysis_helpers.py +0 -94
  504. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_create_audit_agent_reasoning_effort.py +0 -69
  505. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_docs_agent.py +0 -2044
  506. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_langgraph_workflow_efficiency_metrics.py +0 -71
  507. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_output_validators.py +0 -317
  508. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_phase41_toolsets.py +0 -6427
  509. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_ai_models.py +0 -1219
  510. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_base_url_resolution.py +0 -84
  511. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_security_agent.py +0 -2069
  512. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_skill_manager_focus.py +0 -439
  513. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_synthesis_agent.py +0 -1195
  514. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_tool_efficiency_guard_fr120.py +0 -683
  515. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_toolsets.py +0 -716
  516. package/tools/vds-scripts/audit_orchestrator/tests/test_aggregator_p149.py +0 -171
  517. package/tools/vds-scripts/audit_orchestrator/tests/test_alembic_migrations.py +0 -287
  518. package/tools/vds-scripts/audit_orchestrator/tests/test_anchor_allowlist_p149.py +0 -273
  519. package/tools/vds-scripts/audit_orchestrator/tests/test_audit_otel.py +0 -283
  520. package/tools/vds-scripts/audit_orchestrator/tests/test_checklist_models.py +0 -583
  521. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/__init__.py +0 -0
  522. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_base_check.py +0 -211
  523. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_llm_checks.py +0 -126
  524. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/__init__.py +0 -0
  525. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_analyze_command.py +0 -400
  526. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_archive_stale_page_cli.py +0 -217
  527. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_bitbucket_metadata_cli.py +0 -354
  528. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_cli_impl_profile_availability.py +0 -114
  529. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_codex_profile.py +0 -174
  530. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_compare_backends_cli.py +0 -449
  531. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_confluence_parent_auto_resolve.py +0 -451
  532. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_corpus_purge_cli.py +0 -290
  533. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_credentials_preflight.py +0 -106
  534. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_debug_bundle.py +0 -37
  535. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_deprecation_phase157.py +0 -484
  536. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_dispatch_concurrency_diagnostics.py +0 -758
  537. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_check_confluence_cli.py +0 -320
  538. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_codex.py +0 -187
  539. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_corpus_status_cli.py +0 -236
  540. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_correlation_cli.py +0 -128
  541. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_crawl_status_cli.py +0 -192
  542. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_credentials_cli.py +0 -86
  543. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_dispatch_status_cli.py +0 -421
  544. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_heartbeat_phase169.py +0 -173
  545. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_hierarchy_status_cli.py +0 -199
  546. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_locks_cli.py +0 -134
  547. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_logs_follow_cli.py +0 -305
  548. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_migration.py +0 -333
  549. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_profile_availability_cli.py +0 -151
  550. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_skills_policy_cli.py +0 -153
  551. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_evidence_quality_cli.py +0 -307
  552. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_debug_bundle_phase36.py +0 -60
  553. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_git_manifest_cli.py +0 -172
  554. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_file_removal_phase157e.py +0 -770
  555. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_grounding_classifier.py +0 -226
  556. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_logging.py +0 -49
  557. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_materials_cli.py +0 -9127
  558. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_metadata_completeness_phase92.py +0 -364
  559. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parent_dispatch_finalization_phase168f.py +0 -111
  560. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parse_cli.py +0 -590
  561. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase117_118_feature_flags.py +0 -219
  562. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase164_control_plane.py +0 -718
  563. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase165_runner_scripts.py +0 -230
  564. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_preparation_classifications.py +0 -146
  565. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_prepare_cli.py +0 -398
  566. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publication_quality_gate.py +0 -126
  567. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publish_system_doc_cli.py +0 -158
  568. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_query_checklist_cli.py +0 -219
  569. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli.py +0 -673
  570. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli_integration.py +0 -689
  571. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_removed_flags_phase92.py +0 -36
  572. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_report_cmds.py +0 -1317
  573. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_history_index.py +0 -57
  574. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_management.py +0 -1194
  575. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_runtime_profiles_cli.py +0 -1658
  576. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_smart_run_selection.py +0 -1562
  577. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_cli.py +0 -2467
  578. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_migration.py +0 -339
  579. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_sync_repos_debug_artifacts.py +0 -1109
  580. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_upload_results_cli.py +0 -809
  581. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist.py +0 -178
  582. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist_cli.py +0 -110
  583. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_spec_sync_cli.py +0 -519
  584. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_default_parameters_baseline.py +0 -101
  585. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_options.py +0 -7896
  586. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_db_modes.py +0 -6516
  587. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_project_scope.py +0 -831
  588. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_target.py +0 -611
  589. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_lifecycle.py +0 -2488
  590. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_scaffolding.py +0 -96
  591. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_row_key_guard.py +0 -78
  592. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_summary_artifacts.py +0 -1872
  593. package/tools/vds-scripts/audit_orchestrator/tests/test_cli_paths_phase2.py +0 -45
  594. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/__init__.py +0 -0
  595. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_bitbucket_cli_client.py +0 -124
  596. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_cli_parity.py +0 -110
  597. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_confluence_cli_client.py +0 -1149
  598. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_sonarqube_cli_client.py +0 -19
  599. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/__init__.py +0 -0
  600. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/test_linked_page_tracker.py +0 -118
  601. package/tools/vds-scripts/audit_orchestrator/tests/test_companion_context_service.py +0 -230
  602. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/__init__.py +0 -0
  603. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/conftest.py +0 -11
  604. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_compile_artifact.py +0 -465
  605. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique.py +0 -120
  606. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique_e2e.py +0 -75
  607. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_evaluation.py +0 -515
  608. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_runtime_loader.py +0 -537
  609. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_signatures_normalization.py +0 -172
  610. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/__init__.py +0 -0
  611. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_auditor_applicability.py +0 -68
  612. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_generator.py +0 -1252
  613. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_projection.py +0 -54
  614. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_confluence_checklist_projection_consistency.py +0 -1696
  615. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_critique_merger_matrix.py +0 -120
  616. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_check_rules.py +0 -459
  617. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_provider_critique.py +0 -55
  618. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_doc_loader.py +0 -73
  619. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_drift_detector.py +0 -34
  620. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_evidence_collectors.py +0 -93
  621. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_lease_timeout.py +0 -114
  622. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader.py +0 -350
  623. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader_parity.py +0 -179
  624. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_low_confidence_reeval.py +0 -691
  625. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase145a_completion.py +0 -209
  626. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase31_row_consistency_retry_benchmark.py +0 -150
  627. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_profile_detector.py +0 -286
  628. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_regression_guard.py +0 -53
  629. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_result_merger.py +0 -619
  630. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_evaluator.py +0 -15783
  631. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_failover.py +0 -215
  632. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_scorer.py +0 -597
  633. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_skill_breakdown_telemetry_fr137.py +0 -421
  634. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_targeted_auto_merge.py +0 -229
  635. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_failover.py +0 -488
  636. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_telemetry.py +0 -73
  637. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_validator.py +0 -419
  638. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/__init__.py +0 -0
  639. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/test_diff_detector.py +0 -111
  640. package/tools/vds-scripts/audit_orchestrator/tests/test_infra_persistence.py +0 -291
  641. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/__init__.py +0 -0
  642. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/test_phase3_integration.py +0 -516
  643. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/__init__.py +0 -0
  644. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cache.py +0 -670
  645. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_model_builder.py +0 -281
  646. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_oauth.py +0 -330
  647. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_streaming.py +0 -433
  648. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cost_tracker.py +0 -27
  649. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_engine.py +0 -876
  650. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_evaluator.py +0 -212
  651. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_instruction_templates.py +0 -639
  652. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompt_metadata.py +0 -97
  653. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompts.py +0 -660
  654. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider.py +0 -330
  655. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider_contract_sync.py +0 -18
  656. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_reasoning_effort_validation.py +0 -565
  657. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_schemas.py +0 -827
  658. package/tools/vds-scripts/audit_orchestrator/tests/test_logging_config.py +0 -297
  659. package/tools/vds-scripts/audit_orchestrator/tests/test_models/__init__.py +0 -0
  660. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_enums.py +0 -185
  661. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_findings.py +0 -1159
  662. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_project_profile.py +0 -307
  663. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_registry.py +0 -532
  664. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_template.py +0 -708
  665. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/__init__.py +0 -0
  666. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/test_metrics.py +0 -60
  667. package/tools/vds-scripts/audit_orchestrator/tests/test_paths_config_phase2.py +0 -21
  668. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/__init__.py +0 -0
  669. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/test_fr79_performance_guardrails.py +0 -199
  670. package/tools/vds-scripts/audit_orchestrator/tests/test_phase156_hardening.py +0 -498
  671. package/tools/vds-scripts/audit_orchestrator/tests/test_phase93_regression_guards.py +0 -123
  672. package/tools/vds-scripts/audit_orchestrator/tests/test_pipeline_integration.py +0 -517
  673. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/__init__.py +0 -0
  674. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/test_detection.py +0 -146
  675. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/__init__.py +0 -0
  676. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_bitbucket_link_resolver.py +0 -55
  677. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer.py +0 -84
  678. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer_projection.py +0 -97
  679. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_macros.py +0 -58
  680. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_publisher.py +0 -2171
  681. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_evidence_links.py +0 -129
  682. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_field_sanitizer.py +0 -108
  683. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_hierarchy_publisher.py +0 -134
  684. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_incremental_plan_parser.py +0 -62
  685. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_live_data_injector.py +0 -48
  686. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_macro_builder.py +0 -22
  687. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_p161_confluence_optimization.py +0 -168
  688. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_priority_renderer.py +0 -96
  689. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_project_aggregate_renderer.py +0 -364
  690. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_storage_validation.py +0 -273
  691. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_summary_refactor.py +0 -118
  692. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_system_doc_hierarchy.py +0 -50
  693. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_table_builder.py +0 -23
  694. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_vietnamese_templates.py +0 -37
  695. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_wiring_integration.py +0 -290
  696. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/__init__.py +0 -0
  697. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_aggregation_report.py +0 -181
  698. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_checklist_generator.py +0 -258
  699. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_gap_report.py +0 -73
  700. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_json_generator.py +0 -317
  701. package/tools/vds-scripts/audit_orchestrator/tests/test_result_merger_p149.py +0 -347
  702. package/tools/vds-scripts/audit_orchestrator/tests/test_route_mode_p149.py +0 -178
  703. package/tools/vds-scripts/audit_orchestrator/tests/test_rubric_parser.py +0 -179
  704. package/tools/vds-scripts/audit_orchestrator/tests/test_scorer.py +0 -110
  705. package/tools/vds-scripts/audit_orchestrator/tests/test_state/__init__.py +0 -0
  706. package/tools/vds-scripts/audit_orchestrator/tests/test_state/test_sparse_coverage.py +0 -117
  707. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/__init__.py +0 -0
  708. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_langgraph_workflow.py +0 -2072
  709. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_p161_runtime_hardening.py +0 -341
  710. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p149.py +0 -112
  711. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p172.py +0 -126
  712. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_guidance_p150.py +0 -95
  713. package/tools/vds-scripts/audit_orchestrator/tests/unit/__init__.py +0 -0
  714. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/__init__.py +0 -0
  715. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_agentic_investigator_phase115.py +0 -42
  716. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_requirement_analysis_agent.py +0 -412
  717. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_agent_updates.py +0 -131
  718. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_scanner.py +0 -397
  719. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_executor.py +0 -316
  720. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_fallback.py +0 -299
  721. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_policy.py +0 -520
  722. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_telemetry.py +0 -306
  723. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_synthesis_fixes.py +0 -761
  724. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_argument_robustness.py +0 -272
  725. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry.py +0 -2548
  726. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_ast_grep.py +0 -87
  727. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase123_scoping.py +0 -353
  728. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase94_ff.py +0 -445
  729. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_vector_search_phase115.py +0 -35
  730. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_utils.py +0 -1007
  731. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_vector_evidence_toolset.py +0 -622
  732. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/__init__.py +0 -0
  733. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/test_workflow_cli.py +0 -123
  734. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/__init__.py +0 -0
  735. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_cache_guard.py +0 -479
  736. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_checklist_parser_phase120.py +0 -55
  737. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_diagram_extractor.py +0 -467
  738. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_enrichment_extractor.py +0 -59
  739. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_graphify_collector.py +0 -158
  740. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/__init__.py +0 -0
  741. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_completeness.py +0 -563
  742. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_freshness_evaluator.py +0 -493
  743. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_cache_metrics.py +0 -365
  744. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_completeness_service.py +0 -2736
  745. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/__init__.py +0 -0
  746. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_discovery.py +0 -47
  747. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_redaction.py +0 -15
  748. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/__init__.py +0 -0
  749. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_ad_hoc_analyzer.py +0 -576
  750. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_agent_loop.py +0 -1896
  751. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_anchor_filter_cl003.py +0 -181
  752. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_evidence_cache.py +0 -155
  753. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_processor.py +0 -3608
  754. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_contract.py +0 -55
  755. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_scoping.py +0 -371
  756. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_companion_phase123.py +0 -142
  757. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_evidence_phase123.py +0 -249
  758. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_confluence_checklist_contract_export_parity.py +0 -813
  759. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_cross_repo_config_phase122.py +0 -613
  760. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_dspy_requirement_classifier.py +0 -517
  761. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_diversity.py +0 -144
  762. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_truncation.py +0 -108
  763. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_grounding_validator.py +0 -127
  764. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_guidance_injection_phase120.py +0 -105
  765. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_analysis_phase122.py +0 -761
  766. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_pre_filter_phase167.py +0 -334
  767. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_llm_row_evaluator_retries.py +0 -3684
  768. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_loader_phase123.py +0 -345
  769. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_manual_check_gating_phase122.py +0 -474
  770. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_parallel_eval.py +0 -263
  771. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase122_verifier_phase122.py +0 -169
  772. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase166_route_failover.py +0 -437
  773. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_post_eval_cl003_shared_lib.py +0 -267
  774. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_postproc_streaming.py +0 -194
  775. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_pre_eval_gating_phase122.py +0 -362
  776. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_prepare_topology_coverage.py +0 -247
  777. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_private_dns_sanitization_phase104.py +0 -397
  778. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_evidence_context.py +0 -450
  779. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_knowledge_store.py +0 -487
  780. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_topology.py +0 -1142
  781. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_provider_failure_classifier.py +0 -195
  782. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_extractor.py +0 -496
  783. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_synthesizer.py +0 -653
  784. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_repo_type_classifier.py +0 -303
  785. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis.py +0 -508
  786. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_execution_scope.py +0 -239
  787. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase114.py +0 -919
  788. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase115.py +0 -97
  789. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_shared_lib.py +0 -340
  790. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_drift.py +0 -729
  791. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_nlp.py +0 -670
  792. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_scope_phase122.py +0 -615
  793. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_matrix.py +0 -258
  794. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_override.py +0 -141
  795. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_routing_precision.py +0 -650
  796. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_dual_evidence.py +0 -2987
  797. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_instruction_runtime_phase122.py +0 -365
  798. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_runtime.py +0 -830
  799. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_runtime_hardening_phase122.py +0 -225
  800. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoped_na_skip.py +0 -107
  801. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoring_enhancements.py +0 -404
  802. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_retrieval_phase123.py +0 -441
  803. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_routing_phase123.py +0 -279
  804. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_resource_indexing_phase122.py +0 -188
  805. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_recommendation.py +0 -225
  806. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_routing_cl003_shared_lib.py +0 -338
  807. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skills_toolset.py +0 -319
  808. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_stability_metric.py +0 -60
  809. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_target_selector.py +0 -958
  810. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_tracker.py +0 -121
  811. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_wiring.py +0 -119
  812. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_tool_first_planner.py +0 -7103
  813. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_knowledge_persistence.py +0 -332
  814. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_query_service.py +0 -55
  815. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_unverified_ref_retry.py +0 -909
  816. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/__init__.py +0 -0
  817. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_evidence.py +0 -515
  818. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_gaps.py +0 -422
  819. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_readiness.py +0 -428
  820. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/__init__.py +0 -0
  821. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_confluence_hierarchy.py +0 -227
  822. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_project_title_generation.py +0 -335
  823. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_helpers.py +0 -290
  824. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_integration.py +0 -557
  825. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_readiness_renderer.py +0 -381
  826. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_repo_title_consistency.py +0 -266
  827. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_upload_hierarchy_integration.py +0 -470
  828. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/__init__.py +0 -0
  829. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_dspy.py +0 -177
  830. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_nlp_accuracy.py +0 -72
  831. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_retrieval_modes.py +0 -123
  832. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_verify_phase111_requirement_analysis.py +0 -409
  833. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/__init__.py +0 -0
  834. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_chain_cli.py +0 -277
  835. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_loader.py +0 -502
  836. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/__init__.py +0 -0
  837. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/test_skill_routing.py +0 -209
  838. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/__init__.py +0 -0
  839. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_bitbucket_source.py +0 -66
  840. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_non_retryable_markers.py +0 -88
  841. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_repo_info.py +0 -212
  842. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/__init__.py +0 -0
  843. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_completeness.py +0 -598
  844. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_events_contract_phase169.py +0 -100
  845. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_hardening_phase158.py +0 -392
  846. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_persistence_phase157.py +0 -914
  847. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_embedding_client.py +0 -64
  848. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_get_latest_completed_run.py +0 -313
  849. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_heartbeat_phase169.py +0 -109
  850. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_hybrid_search.py +0 -398
  851. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_normalize_url.py +0 -262
  852. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase152_query_surface.py +0 -59
  853. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase98_confluence_document_model.py +0 -202
  854. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_published_pages.py +0 -754
  855. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_readiness_helpers.py +0 -193
  856. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_ledger.py +0 -522
  857. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_management.py +0 -378
  858. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_schema_contract_phase170.py +0 -755
  859. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_cmds.py +0 -231
  860. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_loaders.py +0 -2151
  861. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_run_api.py +0 -2226
  862. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store.py +0 -1435
  863. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch.py +0 -646
  864. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch_status_view.py +0 -181
  865. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_scope.py +0 -213
  866. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_utilization_persist_phase169.py +0 -77
  867. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vds_search.py +0 -263
  868. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_api.py +0 -319
  869. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_runtime.py +0 -175
  870. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_store.py +0 -1756
  871. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/__init__.py +0 -0
  872. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/test_repo_sync.py +0 -257
  873. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_artifact_exclusion.py +0 -119
  874. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_auto_promote_phase158.py +0 -337
  875. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_carry_forward_artifact_filtering.py +0 -317
  876. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_checklist_precache_p160a.py +0 -416
  877. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_cli_decomposition_fr219.py +0 -269
  878. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_code_chunk_carry_forward.py +0 -203
  879. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_coherence.py +0 -180
  880. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_secret_policy.py +0 -522
  881. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_project_id_migration.py +0 -318
  882. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_status_diagnostics.py +0 -239
  883. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_department_priority_ordering.py +0 -131
  884. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_coordinator_phase158.py +0 -402
  885. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_job_identity_p167a.py +0 -238
  886. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_ramp_up_phase171.py +0 -434
  887. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatcher.py +0 -911
  888. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_doc_type_en_inference.py +0 -246
  889. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_early_exit_unchunked_repos.py +0 -111
  890. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors.py +0 -237
  891. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors_taxonomy.py +0 -83
  892. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_chunking_config_phase98.py +0 -73
  893. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_cmds_state_helpers.py +0 -33
  894. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_docs_code_chunking.py +0 -260
  895. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_finalize_dispatch_run_phase168.py +0 -341
  896. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_identity.py +0 -221
  897. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_infrastructure_detection.py +0 -441
  898. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_junction_table_phase95.py +0 -259
  899. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_late_binding_assignment_p167c.py +0 -286
  900. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_misc_cmds_fr224_225_hardening.py +0 -194
  901. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_p172_integration.py +0 -306
  902. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_parent_provider_preflight.py +0 -118
  903. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase92.py +0 -141
  904. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase93.py +0 -50
  905. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase115_search_strategy.py +0 -106
  906. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase154_title_consistency.py +0 -117
  907. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase155_param_forwarding.py +0 -304
  908. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase158_concurrency_defaults.py +0 -207
  909. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_doctor_schema.py +0 -319
  910. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_regression.py +0 -334
  911. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase94_corpus_lifecycle.py +0 -307
  912. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase96_repo_key_migration.py +0 -305
  913. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_pipelined_scheduling.py +0 -130
  914. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_availability_probe.py +0 -616
  915. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_aware_row_timeout.py +0 -102
  916. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_timeout_stagger_p160cd.py +0 -205
  917. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_progress_summary_phase169.py +0 -96
  918. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_registry_checklist_diagnostics.py +0 -124
  919. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_resume_manifest_p167b.py +0 -268
  920. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_risk_mitigations_p160e1.py +0 -348
  921. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_single_row_shards_p160b.py +0 -357
  922. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_state_repo_discovery.py +0 -504
  923. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_sync_metadata_entries.py +0 -57
  924. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_task_models.py +0 -1796
  925. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_utilization_telemetry_p167e.py +0 -259
  926. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_vietnamese_fts_hardening.py +0 -160
  927. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_phase98_enrichment.py +0 -92
  928. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_project_merge_materialization.py +0 -322
  929. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_row_key_migration_guard.py +0 -88
  930. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_short_circuit_phase121.py +0 -564
  931. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_single_target_row_context.py +0 -49
  932. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_zero_result_messaging.py +0 -76
  933. package/tools/vds-scripts/bandit-report.json +0 -2974
  934. package/tools/vds-scripts/brd_orchestrator/README.md +0 -29
  935. package/tools/vds-scripts/brd_orchestrator/pyproject.toml +0 -63
  936. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/__init__.py +0 -17
  937. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/cli.py +0 -187
  938. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/validator.py +0 -121
  939. package/tools/vds-scripts/brd_orchestrator/tests/__init__.py +0 -0
  940. package/tools/vds-scripts/brd_orchestrator/tests/test_cli.py +0 -62
  941. package/tools/vds-scripts/brd_orchestrator/tests/test_validator.py +0 -33
  942. package/tools/vds-scripts/circular_dependency_orchestrator/README.md +0 -30
  943. package/tools/vds-scripts/circular_dependency_orchestrator/pyproject.toml +0 -43
  944. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/__init__.py +0 -16
  945. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/cli.py +0 -904
  946. package/tools/vds-scripts/circular_dependency_orchestrator/tests/__init__.py +0 -0
  947. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/__init__.py +0 -0
  948. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/test_cli.py +0 -354
  949. package/tools/vds-scripts/coverage.json +0 -1
  950. package/tools/vds-scripts/create_pr.py +0 -57
  951. package/tools/vds-scripts/diagram_generator/README.md +0 -663
  952. package/tools/vds-scripts/diagram_generator/ci_validate.sh +0 -16
  953. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.png +0 -0
  954. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.puml +0 -23
  955. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.png +0 -0
  956. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.puml +0 -21
  957. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.png +0 -0
  958. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.puml +0 -14
  959. package/tools/vds-scripts/diagram_generator/examples/github-actions-validate.yml +0 -39
  960. package/tools/vds-scripts/diagram_generator/generate_all_diagrams.py +0 -827
  961. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_diagrams.py +0 -261
  962. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_quick.py +0 -486
  963. package/tools/vds-scripts/diagram_generator/pyproject.toml +0 -28
  964. package/tools/vds-scripts/diagram_generator/render_png.py +0 -59
  965. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/__init__.py +0 -3
  966. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/cli.py +0 -50
  967. package/tools/vds-scripts/diagram_generator/test_c4_hierarchical.py +0 -142
  968. package/tools/vds-scripts/diagram_generator/test_c4_quick.py +0 -131
  969. package/tools/vds-scripts/diagram_generator/tests/__init__.py +0 -0
  970. package/tools/vds-scripts/diagram_generator/tests/test_analyzer_completeness.py +0 -260
  971. package/tools/vds-scripts/diagram_generator/tests/test_c4_syntax_correctness.py +0 -138
  972. package/tools/vds-scripts/diagram_generator/tests/test_component_coverage.py +0 -182
  973. package/tools/vds-scripts/diagram_generator/tests/test_mermaid_output.py +0 -80
  974. package/tools/vds-scripts/diagram_generator/tests/test_png_generation.py +0 -112
  975. package/tools/vds-scripts/diagram_generator/tests/test_scenario_templates.py +0 -15
  976. package/tools/vds-scripts/diagram_generator/tests/test_sequence_accuracy.py +0 -93
  977. package/tools/vds-scripts/diagram_generator/tests/test_structurizr_export.py +0 -177
  978. package/tools/vds-scripts/diagram_generator/tests/test_style_consistency.py +0 -174
  979. package/tools/vds-scripts/diagram_generator/tests/test_usecase_generator.py +0 -201
  980. package/tools/vds-scripts/diagram_generator/tests/test_usecase_integration.py +0 -124
  981. package/tools/vds-scripts/docker/compose.phase2-verification.yml +0 -31
  982. package/tools/vds-scripts/docker-compose.openapi-validator.yml +0 -14
  983. package/tools/vds-scripts/excel_orchestrator/README.md +0 -288
  984. package/tools/vds-scripts/excel_orchestrator/RESEARCH_BASED_UPDATES_REPORT.md +0 -261
  985. package/tools/vds-scripts/excel_orchestrator/add_essential_missing_effort.py +0 -255
  986. package/tools/vds-scripts/excel_orchestrator/adjust_effort_complexity.py +0 -184
  987. package/tools/vds-scripts/excel_orchestrator/brd_analysis_and_task_breakdown.py +0 -632
  988. package/tools/vds-scripts/excel_orchestrator/brd_analysis_comprehensive.py +0 -1029
  989. package/tools/vds-scripts/excel_orchestrator/check_overlaps_and_brd_coverage.py +0 -570
  990. package/tools/vds-scripts/excel_orchestrator/clean_remarks_column.py +0 -127
  991. package/tools/vds-scripts/excel_orchestrator/comprehensive_brd_check.py +0 -322
  992. package/tools/vds-scripts/excel_orchestrator/create_buffered_summary.py +0 -119
  993. package/tools/vds-scripts/excel_orchestrator/create_service_totals_sheet.py +0 -118
  994. package/tools/vds-scripts/excel_orchestrator/examples/basic_operations.py +0 -85
  995. package/tools/vds-scripts/excel_orchestrator/expand_all_tasks.py +0 -341
  996. package/tools/vds-scripts/excel_orchestrator/expand_tasks.py +0 -304
  997. package/tools/vds-scripts/excel_orchestrator/fill_brd_references.py +0 -347
  998. package/tools/vds-scripts/excel_orchestrator/fill_remarks_and_colors.py +0 -132
  999. package/tools/vds-scripts/excel_orchestrator/finalize_brd_and_cleanup.py +0 -295
  1000. package/tools/vds-scripts/excel_orchestrator/finalize_brd_coverage.py +0 -327
  1001. package/tools/vds-scripts/excel_orchestrator/fix_all_formulas.py +0 -99
  1002. package/tools/vds-scripts/excel_orchestrator/fix_detail_presentation.py +0 -113
  1003. package/tools/vds-scripts/excel_orchestrator/fix_presentation_and_effort.py +0 -116
  1004. package/tools/vds-scripts/excel_orchestrator/fix_presentation_consistency.py +0 -231
  1005. package/tools/vds-scripts/excel_orchestrator/fix_remarks_matching.py +0 -179
  1006. package/tools/vds-scripts/excel_orchestrator/group_tasks_by_service_id.py +0 -210
  1007. package/tools/vds-scripts/excel_orchestrator/increase_brd_coverage.py +0 -497
  1008. package/tools/vds-scripts/excel_orchestrator/increase_effort_complexity.py +0 -155
  1009. package/tools/vds-scripts/excel_orchestrator/organize_and_deduplicate.py +0 -273
  1010. package/tools/vds-scripts/excel_orchestrator/pyproject.toml +0 -64
  1011. package/tools/vds-scripts/excel_orchestrator/rebuild_all_formulas.py +0 -146
  1012. package/tools/vds-scripts/excel_orchestrator/remove_base_multiplier_and_check_duplicates.py +0 -310
  1013. package/tools/vds-scripts/excel_orchestrator/remove_duplicate_brd_tasks.py +0 -137
  1014. package/tools/vds-scripts/excel_orchestrator/research_based_updates.py +0 -457
  1015. package/tools/vds-scripts/excel_orchestrator/restore_e_values.py +0 -172
  1016. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/__init__.py +0 -5
  1017. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/cli.py +0 -746
  1018. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/config.py +0 -74
  1019. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/converters.py +0 -226
  1020. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/errors.py +0 -88
  1021. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/excel_client.py +0 -443
  1022. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/formatters.py +0 -211
  1023. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/logging.py +0 -57
  1024. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/source_contract.py +0 -29
  1025. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/target_state_status.py +0 -837
  1026. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/ulnc_alignment.py +0 -1291
  1027. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/validators.py +0 -164
  1028. package/tools/vds-scripts/excel_orchestrator/sync_detail_and_total_sheets.py +0 -211
  1029. package/tools/vds-scripts/excel_orchestrator/tests/__init__.py +0 -1
  1030. package/tools/vds-scripts/excel_orchestrator/tests/conftest.py +0 -36
  1031. package/tools/vds-scripts/excel_orchestrator/tests/test_cli.py +0 -383
  1032. package/tools/vds-scripts/excel_orchestrator/tests/test_excel_client.py +0 -129
  1033. package/tools/vds-scripts/excel_orchestrator/tests/test_ulnc_alignment.py +0 -373
  1034. package/tools/vds-scripts/excel_orchestrator/tests/test_validators.py +0 -64
  1035. package/tools/vds-scripts/excel_orchestrator/update_api_database_effort.py +0 -261
  1036. package/tools/vds-scripts/excel_orchestrator/update_buffers_inline.py +0 -115
  1037. package/tools/vds-scripts/excel_orchestrator/update_complex_services_and_add_new.py +0 -336
  1038. package/tools/vds-scripts/excel_orchestrator/update_responsibility_and_fix_rows.py +0 -208
  1039. package/tools/vds-scripts/excel_orchestrator/update_task_breakdown_vietnamese.py +0 -309
  1040. package/tools/vds-scripts/excel_orchestrator/update_vietnamese_and_responsibility.py +0 -415
  1041. package/tools/vds-scripts/excel_orchestrator/verify_brd_coverage_comprehensive.py +0 -401
  1042. package/tools/vds-scripts/hexagonal_orchestrator/README.md +0 -530
  1043. package/tools/vds-scripts/hexagonal_orchestrator/pyproject.toml +0 -48
  1044. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/__init__.py +0 -39
  1045. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/__init__.py +0 -19
  1046. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/base.py +0 -95
  1047. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/fallback.py +0 -614
  1048. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/java.py +0 -372
  1049. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/python.py +0 -437
  1050. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cache.py +0 -331
  1051. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/classifier.py +0 -263
  1052. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cli.py +0 -554
  1053. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/config.py +0 -577
  1054. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/models.py +0 -159
  1055. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/profiler.py +0 -451
  1056. package/tools/vds-scripts/hexagonal_orchestrator/test-config.yaml +0 -38
  1057. package/tools/vds-scripts/hexagonal_orchestrator/tests/__init__.py +0 -1
  1058. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/__init__.py +0 -1
  1059. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driven/persistence/InMemoryUserRepository.java +0 -62
  1060. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driving/api/UserController.java +0 -101
  1061. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/EmailService.java +0 -33
  1062. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/UserRepository.java +0 -45
  1063. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/usecase/CreateUser.java +0 -58
  1064. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/Email.java +0 -80
  1065. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/User.java +0 -98
  1066. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-noncompliant/domain/User.java +0 -64
  1067. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Menu.java +0 -13
  1068. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Product.java +0 -16
  1069. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/__init__.py +0 -1
  1070. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/__init__.py +0 -1
  1071. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/__init__.py +0 -1
  1072. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/email_service.py +0 -60
  1073. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/user_repository.py +0 -78
  1074. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/__init__.py +0 -1
  1075. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/__init__.py +0 -1
  1076. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/user.py +0 -56
  1077. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/__init__.py +0 -1
  1078. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/email.py +0 -63
  1079. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/application/user_service.py +0 -1837
  1080. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/domain/user.py +0 -43
  1081. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cache.py +0 -458
  1082. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_integration.py +0 -942
  1083. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_unit.py +0 -557
  1084. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cross_repo_pollution.py +0 -275
  1085. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_foundation.py +0 -129
  1086. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_integration.py +0 -1524
  1087. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_java_analyzer.py +0 -642
  1088. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_timing_unit.py +0 -60
  1089. package/tools/vds-scripts/intellij_orchestrator/README.md +0 -55
  1090. package/tools/vds-scripts/intellij_orchestrator/pyproject.toml +0 -64
  1091. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/__init__.py +0 -17
  1092. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/cli.py +0 -210
  1093. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/core.py +0 -260
  1094. package/tools/vds-scripts/intellij_orchestrator/tests/__init__.py +0 -1
  1095. package/tools/vds-scripts/intellij_orchestrator/tests/test_cli.py +0 -112
  1096. package/tools/vds-scripts/intellij_orchestrator/tests/test_core.py +0 -83
  1097. package/tools/vds-scripts/links_orchestrator/README.md +0 -63
  1098. package/tools/vds-scripts/links_orchestrator/pyproject.toml +0 -64
  1099. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/__init__.py +0 -10
  1100. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/cli.py +0 -254
  1101. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/validator.py +0 -244
  1102. package/tools/vds-scripts/links_orchestrator/tests/__init__.py +0 -0
  1103. package/tools/vds-scripts/links_orchestrator/tests/test_cli.py +0 -128
  1104. package/tools/vds-scripts/links_orchestrator/tests/test_validator.py +0 -76
  1105. package/tools/vds-scripts/lsp_orchestrator/.dockerignore +0 -69
  1106. package/tools/vds-scripts/lsp_orchestrator/ARCHITECTURE.md +0 -383
  1107. package/tools/vds-scripts/lsp_orchestrator/CODE_QUALITY_IMPROVEMENTS.md +0 -196
  1108. package/tools/vds-scripts/lsp_orchestrator/COMMANDS.md +0 -870
  1109. package/tools/vds-scripts/lsp_orchestrator/Dockerfile +0 -59
  1110. package/tools/vds-scripts/lsp_orchestrator/IMPLEMENTATION_SUMMARY.md +0 -490
  1111. package/tools/vds-scripts/lsp_orchestrator/LSP_ISSUES_AND_FINDINGS.md +0 -380
  1112. package/tools/vds-scripts/lsp_orchestrator/README.md +0 -616
  1113. package/tools/vds-scripts/lsp_orchestrator/SETUP.md +0 -143
  1114. package/tools/vds-scripts/lsp_orchestrator/TEST_COVERAGE_SUMMARY.md +0 -255
  1115. package/tools/vds-scripts/lsp_orchestrator/VERIFICATION_CHECKLIST.md +0 -814
  1116. package/tools/vds-scripts/lsp_orchestrator/docker-compose.yml +0 -102
  1117. package/tools/vds-scripts/lsp_orchestrator/docs/FOR_LLMS.md +0 -401
  1118. package/tools/vds-scripts/lsp_orchestrator/docs/explanation/lsp-response-matching.md +0 -79
  1119. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/automate-with-json.md +0 -159
  1120. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/docker-mode.md +0 -256
  1121. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/navigate-code.md +0 -116
  1122. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/parallel-processing.md +0 -179
  1123. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/project-tool-detection.md +0 -320
  1124. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/type-check-code.md +0 -46
  1125. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/use-daemon-mode.md +0 -78
  1126. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/wsl2-optimization.md +0 -227
  1127. package/tools/vds-scripts/lsp_orchestrator/docs/index.md +0 -88
  1128. package/tools/vds-scripts/lsp_orchestrator/docs/operator-hover-definition.md +0 -143
  1129. package/tools/vds-scripts/lsp_orchestrator/docs/reference/commands.md +0 -581
  1130. package/tools/vds-scripts/lsp_orchestrator/docs/reference/configuration.md +0 -422
  1131. package/tools/vds-scripts/lsp_orchestrator/docs/tutorials/00-quick-start.md +0 -169
  1132. package/tools/vds-scripts/lsp_orchestrator/pyproject.toml +0 -63
  1133. package/tools/vds-scripts/lsp_orchestrator/src/test_file.py +0 -5
  1134. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/__init__.py +0 -3
  1135. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/aggregator.py +0 -340
  1136. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/basedpyright_runner.py +0 -167
  1137. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/cli.py +0 -3370
  1138. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/code_actions.py +0 -79
  1139. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/core.py +0 -3295
  1140. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_client.py +0 -672
  1141. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_manager.py +0 -577
  1142. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_server.py +0 -1040
  1143. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/__init__.py +0 -9
  1144. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/project_detector.py +0 -537
  1145. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/formatters.py +0 -141
  1146. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ipc_protocol.py +0 -225
  1147. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_client.py +0 -957
  1148. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_router.py +0 -335
  1149. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mcp_server.py +0 -181
  1150. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/__init__.py +0 -201
  1151. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_detector.py +0 -646
  1152. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_tools.py +0 -114
  1153. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models.py +0 -399
  1154. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mypy_runner.py +0 -209
  1155. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/protocols.py +0 -52
  1156. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_lsp_client.py +0 -109
  1157. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_runner.py +0 -44
  1158. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/utils.py +0 -959
  1159. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/workspace_indexer.py +0 -1037
  1160. package/tools/vds-scripts/lsp_orchestrator/test_workspace_lsp.py +0 -6
  1161. package/tools/vds-scripts/lsp_orchestrator/tests/__init__.py +0 -1
  1162. package/tools/vds-scripts/lsp_orchestrator/tests/conftest.py +0 -6
  1163. package/tools/vds-scripts/lsp_orchestrator/tests/test_aggregator.py +0 -59
  1164. package/tools/vds-scripts/lsp_orchestrator/tests/test_cli.py +0 -111
  1165. package/tools/vds-scripts/lsp_orchestrator/tests/test_detect_tools_command.py +0 -186
  1166. package/tools/vds-scripts/lsp_orchestrator/tests/test_formatter_linter_detection.py +0 -519
  1167. package/tools/vds-scripts/lsp_orchestrator/tests/test_integration_phase9_10_11.py +0 -367
  1168. package/tools/vds-scripts/lsp_orchestrator/tests/test_mypy_runner.py +0 -482
  1169. package/tools/vds-scripts/lsp_orchestrator/tests/test_package_manager_detection.py +0 -399
  1170. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase10.py +0 -389
  1171. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase11.py +0 -327
  1172. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase12_integration.py +0 -634
  1173. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase9.py +0 -196
  1174. package/tools/vds-scripts/lsp_orchestrator/tests/test_project_detector.py +0 -377
  1175. package/tools/vds-scripts/lsp_orchestrator/tests/test_test_runner_detection.py +0 -549
  1176. package/tools/vds-scripts/lsp_orchestrator/tests/test_type_checker_routing.py +0 -362
  1177. package/tools/vds-scripts/lsp_orchestrator/tests/test_workspace_indexer.py +0 -144
  1178. package/tools/vds-scripts/markdown_orchestrator/README.md +0 -72
  1179. package/tools/vds-scripts/markdown_orchestrator/pyproject.toml +0 -39
  1180. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/__init__.py +0 -5
  1181. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/cli.py +0 -102
  1182. package/tools/vds-scripts/multi_agent_orchestrator/Dockerfile +0 -65
  1183. package/tools/vds-scripts/multi_agent_orchestrator/README.md +0 -306
  1184. package/tools/vds-scripts/multi_agent_orchestrator/postman/README.md +0 -264
  1185. package/tools/vds-scripts/multi_agent_orchestrator/postman/TEST_RESULTS_SUMMARY.md +0 -197
  1186. package/tools/vds-scripts/multi_agent_orchestrator/postman/VDS-Multi-Agent-Orchestrator-API.postman_collection.json +0 -1010
  1187. package/tools/vds-scripts/multi_agent_orchestrator/postman/environments/local-development.postman_environment.json +0 -55
  1188. package/tools/vds-scripts/multi_agent_orchestrator/postman/test-results.json +0 -24146
  1189. package/tools/vds-scripts/multi_agent_orchestrator/pyproject.toml +0 -63
  1190. package/tools/vds-scripts/multi_agent_orchestrator/run_api.py +0 -9
  1191. package/tools/vds-scripts/multi_agent_orchestrator/run_mock_api.py +0 -9
  1192. package/tools/vds-scripts/multi_agent_orchestrator/simple_test.py +0 -53
  1193. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/__init__.py +0 -25
  1194. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/agent_pool.py +0 -433
  1195. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/__init__.py +0 -5
  1196. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/main.py +0 -722
  1197. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/mock_main.py +0 -812
  1198. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/change_log.py +0 -515
  1199. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/cli.py +0 -424
  1200. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/config.py +0 -220
  1201. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/conflict_resolver.py +0 -462
  1202. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/coordinator.py +0 -627
  1203. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/models.py +0 -389
  1204. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/progress_dashboard.py +0 -380
  1205. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/redis_client.py +0 -245
  1206. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/scheduler_subscriber.py +0 -272
  1207. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_manager.py +0 -536
  1208. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_tracking.py +0 -550
  1209. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/vds_ai_memory_client.py +0 -352
  1210. package/tools/vds-scripts/multi_agent_orchestrator/test_complete_system.py +0 -149
  1211. package/tools/vds-scripts/multi_agent_orchestrator/test_infrastructure_only.py +0 -194
  1212. package/tools/vds-scripts/multi_agent_orchestrator/test_integration.py +0 -108
  1213. package/tools/vds-scripts/multi_agent_orchestrator/tests/__init__.py +0 -1
  1214. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_agent_registration_credential_validator.py +0 -223
  1215. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_config.py +0 -210
  1216. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_models.py +0 -195
  1217. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_w9_agent_routes.py +0 -321
  1218. package/tools/vds-scripts/openapi_orchestrator/README.md +0 -197
  1219. package/tools/vds-scripts/openapi_orchestrator/pyproject.toml +0 -106
  1220. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/__init__.py +0 -29
  1221. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/cli.py +0 -345
  1222. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/full_validator.py +0 -183
  1223. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/spec_validator.py +0 -197
  1224. package/tools/vds-scripts/openapi_orchestrator/tests/__init__.py +0 -1
  1225. package/tools/vds-scripts/openapi_orchestrator/tests/test_cli.py +0 -234
  1226. package/tools/vds-scripts/openapi_orchestrator/tests/test_full_validator.py +0 -203
  1227. package/tools/vds-scripts/openapi_orchestrator/tests/test_spec_validator.py +0 -295
  1228. package/tools/vds-scripts/pdf_orchestrator/.dockerignore +0 -93
  1229. package/tools/vds-scripts/pdf_orchestrator/.env.example +0 -40
  1230. package/tools/vds-scripts/pdf_orchestrator/.ruff_rules.py +0 -350
  1231. package/tools/vds-scripts/pdf_orchestrator/.yamllint.yml +0 -43
  1232. package/tools/vds-scripts/pdf_orchestrator/DEVELOPMENT_PLAN.md +0 -80
  1233. package/tools/vds-scripts/pdf_orchestrator/Dockerfile +0 -87
  1234. package/tools/vds-scripts/pdf_orchestrator/README.md +0 -608
  1235. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.md +0 -6
  1236. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.pdf +0 -0
  1237. package/tools/vds-scripts/pdf_orchestrator/config/alertmanager.yml +0 -83
  1238. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.prod.yml +0 -98
  1239. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.yml +0 -40
  1240. package/tools/vds-scripts/pdf_orchestrator/config/redis.conf +0 -78
  1241. package/tools/vds-scripts/pdf_orchestrator/docs/COMPETITIVE_ANALYSIS_REPORT.md +0 -309
  1242. package/tools/vds-scripts/pdf_orchestrator/docs/FEATURES_GUIDE.md +0 -518
  1243. package/tools/vds-scripts/pdf_orchestrator/docs/MULTI_USER_DEPLOYMENT_GUIDE.md +0 -615
  1244. package/tools/vds-scripts/pdf_orchestrator/docs/USER_GUIDE.md +0 -829
  1245. package/tools/vds-scripts/pdf_orchestrator/pyproject.toml +0 -87
  1246. package/tools/vds-scripts/pdf_orchestrator/pytest.ini +0 -71
  1247. package/tools/vds-scripts/pdf_orchestrator/ruff.toml +0 -6
  1248. package/tools/vds-scripts/pdf_orchestrator/scripts/debug_security_report.py +0 -59
  1249. package/tools/vds-scripts/pdf_orchestrator/scripts/demo_library_selector.py +0 -109
  1250. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_project_stats.py +0 -52
  1251. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_styled_pdf.py +0 -95
  1252. package/tools/vds-scripts/pdf_orchestrator/scripts/migrate_render_pdfs.py +0 -285
  1253. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.bat +0 -283
  1254. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.sh +0 -324
  1255. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/__init__.py +0 -5
  1256. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/cli.py +0 -542
  1257. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/config.py +0 -33
  1258. package/tools/vds-scripts/pdf_orchestrator/tests/README.md +0 -650
  1259. package/tools/vds-scripts/pdf_orchestrator/tests/__init__.py +0 -0
  1260. package/tools/vds-scripts/pdf_orchestrator/tests/conftest.py +0 -520
  1261. package/tools/vds-scripts/pdf_orchestrator/tests/requirements.txt +0 -51
  1262. package/tools/vds-scripts/pdf_orchestrator/tests/run_tests.py +0 -659
  1263. package/tools/vds-scripts/pdf_orchestrator/tests/test_config.py +0 -36
  1264. package/tools/vds-scripts/progress_report_orchestrator/Dockerfile +0 -77
  1265. package/tools/vds-scripts/progress_report_orchestrator/README.md +0 -39
  1266. package/tools/vds-scripts/progress_report_orchestrator/alembic/env.py +0 -42
  1267. package/tools/vds-scripts/progress_report_orchestrator/alembic/script.py.mako +0 -28
  1268. package/tools/vds-scripts/progress_report_orchestrator/alembic/versions/0001_initial_progress_schema.py +0 -180
  1269. package/tools/vds-scripts/progress_report_orchestrator/alembic.ini +0 -67
  1270. package/tools/vds-scripts/progress_report_orchestrator/pyproject.toml +0 -67
  1271. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/__init__.py +0 -3
  1272. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/__init__.py +0 -1
  1273. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/endpoint_scanner.py +0 -238
  1274. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/git_activity.py +0 -159
  1275. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/hexagonal.py +0 -100
  1276. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/test_scanner.py +0 -136
  1277. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/cli.py +0 -743
  1278. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/config.py +0 -50
  1279. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/__init__.py +0 -12
  1280. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/alembic_filters.py +0 -64
  1281. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/memory.py +0 -82
  1282. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/__init__.py +0 -1
  1283. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/analysis.py +0 -84
  1284. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/report.py +0 -117
  1285. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/topology.py +0 -101
  1286. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/__init__.py +0 -1
  1287. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/kg_parser.py +0 -252
  1288. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/uc_reader.py +0 -159
  1289. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/__init__.py +0 -1
  1290. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/concurrency.py +0 -39
  1291. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/llm_eval.py +0 -570
  1292. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/report.py +0 -1256
  1293. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/structural.py +0 -384
  1294. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/sync.py +0 -143
  1295. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/__init__.py +0 -5
  1296. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/engine.py +0 -105
  1297. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/templates.py +0 -236
  1298. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/scheduler_subscriber.py +0 -238
  1299. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/README.md +0 -56
  1300. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/__init__.py +0 -1
  1301. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-architecture-reviewer/SKILL.md +0 -67
  1302. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-endpoint-matcher/SKILL.md +0 -67
  1303. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/__init__.py +0 -1
  1304. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/schema.py +0 -625
  1305. package/tools/vds-scripts/progress_report_orchestrator/tests/__init__.py +0 -0
  1306. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/__init__.py +0 -0
  1307. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/.gitkeep +0 -0
  1308. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/__init__.py +0 -0
  1309. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/doc-dependencies.yaml +0 -79
  1310. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-docs.yaml +0 -478
  1311. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-services.yaml +0 -18
  1312. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/registry.yaml +0 -346
  1313. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/phase3_baseline_standard.md +0 -564
  1314. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/__init__.py +0 -0
  1315. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/test_checkpoint.py +0 -276
  1316. package/tools/vds-scripts/progress_report_orchestrator/tests/test_alembic_migrations.py +0 -265
  1317. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/__init__.py +0 -0
  1318. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_analyzers.py +0 -267
  1319. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_bounded_gather.py +0 -176
  1320. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_cli_phase_report.py +0 -119
  1321. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_delta.py +0 -169
  1322. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_error_handling.py +0 -150
  1323. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_gate_exit_codes.py +0 -230
  1324. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_git_activity.py +0 -215
  1325. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_kg_parser.py +0 -267
  1326. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_autodetect.py +0 -183
  1327. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_eval.py +0 -529
  1328. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_memory_integration.py +0 -151
  1329. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_migration_contract.py +0 -254
  1330. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_mode_rendering.py +0 -576
  1331. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_models.py +0 -251
  1332. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_progress_llm_config.py +0 -67
  1333. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_recommendations.py +0 -480
  1334. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_report_enhancements.py +0 -415
  1335. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_resume_reload.py +0 -343
  1336. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_trend_regression.py +0 -294
  1337. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_uc_reader.py +0 -169
  1338. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_valence_gap.py +0 -293
  1339. package/tools/vds-scripts/project-cycle-report.json +0 -14
  1340. package/tools/vds-scripts/project-dependency-graph.json +0 -11361
  1341. package/tools/vds-scripts/project-topology.json +0 -99
  1342. package/tools/vds-scripts/public_interface_boundary_orchestrator/pyproject.toml +0 -18
  1343. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/__init__.py +0 -0
  1344. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/cli.py +0 -232
  1345. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/__init__.py +0 -0
  1346. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/test_cli.py +0 -108
  1347. package/tools/vds-scripts/research_orchestrator/README.md +0 -68
  1348. package/tools/vds-scripts/research_orchestrator/py.typed +0 -0
  1349. package/tools/vds-scripts/research_orchestrator/pyproject.toml +0 -95
  1350. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/__init__.py +0 -3
  1351. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/_env.py +0 -11
  1352. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/cli.py +0 -335
  1353. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/config.py +0 -43
  1354. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/__init__.py +0 -0
  1355. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/models.py +0 -89
  1356. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/scoring.py +0 -102
  1357. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/exceptions.py +0 -78
  1358. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/http_client.py +0 -160
  1359. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/logging.py +0 -49
  1360. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/__init__.py +0 -0
  1361. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/formatters.py +0 -93
  1362. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/py.typed +0 -1
  1363. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/__init__.py +0 -0
  1364. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/build.py +0 -156
  1365. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/format.py +0 -147
  1366. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/__init__.py +0 -0
  1367. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health.py +0 -66
  1368. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health_graph.py +0 -52
  1369. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/registry.py +0 -127
  1370. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/search.py +0 -230
  1371. package/tools/vds-scripts/research_orchestrator/tests/__init__.py +0 -0
  1372. package/tools/vds-scripts/research_orchestrator/tests/conftest.py +0 -53
  1373. package/tools/vds-scripts/research_orchestrator/tests/test_cli.py +0 -222
  1374. package/tools/vds-scripts/research_orchestrator/tests/test_config.py +0 -23
  1375. package/tools/vds-scripts/research_orchestrator/tests/test_exceptions.py +0 -62
  1376. package/tools/vds-scripts/research_orchestrator/tests/test_formatters.py +0 -89
  1377. package/tools/vds-scripts/research_orchestrator/tests/test_graph_integration.py +0 -149
  1378. package/tools/vds-scripts/research_orchestrator/tests/test_http_client.py +0 -134
  1379. package/tools/vds-scripts/research_orchestrator/tests/test_report_build.py +0 -128
  1380. package/tools/vds-scripts/research_orchestrator/tests/test_report_format.py +0 -91
  1381. package/tools/vds-scripts/research_orchestrator/tests/test_scoring.py +0 -95
  1382. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/__init__.py +0 -1
  1383. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_health.py +0 -139
  1384. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_registry.py +0 -135
  1385. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_search.py +0 -238
  1386. package/tools/vds-scripts/run-history.json +0 -26
  1387. package/tools/vds-scripts/schema_converter/README.md +0 -109
  1388. package/tools/vds-scripts/schema_converter/pyproject.toml +0 -37
  1389. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/__init__.py +0 -3
  1390. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/cli.py +0 -50
  1391. package/tools/vds-scripts/schema_converter/tests/__init__.py +0 -0
  1392. package/tools/vds-scripts/schema_converter/tests/test_json_schema_generator.py +0 -115
  1393. package/tools/vds-scripts/schema_converter/tests/test_mermaid_generator.py +0 -112
  1394. package/tools/vds-scripts/schema_converter/tests/test_parser.py +0 -111
  1395. package/tools/vds-scripts/schema_converter/tests/test_plantuml_generator.py +0 -112
  1396. package/tools/vds-scripts/schema_converter/tests/test_plantuml_validator.py +0 -69
  1397. package/tools/vds-scripts/schema_converter/tests/test_prisma_generator.py +0 -113
  1398. package/tools/vds-scripts/schema_converter/tests/test_sql_generator.py +0 -138
  1399. package/tools/vds-scripts/schema_converter/tests/test_typeorm_generator.py +0 -110
  1400. package/tools/vds-scripts/schema_converter/tests/test_validators.py +0 -96
  1401. package/tools/vds-scripts/spec_orchestrator/README.md +0 -13
  1402. package/tools/vds-scripts/spec_orchestrator/pyproject.toml +0 -40
  1403. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/__init__.py +0 -5
  1404. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/cli.py +0 -162
  1405. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/core.py +0 -575
  1406. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/sync.py +0 -306
  1407. package/tools/vds-scripts/spec_orchestrator/tests/__init__.py +0 -0
  1408. package/tools/vds-scripts/spec_orchestrator/tests/test_frontmatter_drift.py +0 -243
  1409. package/tools/vds-scripts/spec_orchestrator/tests/test_sync.py +0 -342
  1410. package/tools/vds-scripts/structure_orchestrator/README.md +0 -60
  1411. package/tools/vds-scripts/structure_orchestrator/pyproject.toml +0 -103
  1412. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/__init__.py +0 -13
  1413. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/cli.py +0 -308
  1414. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/validator.py +0 -257
  1415. package/tools/vds-scripts/structure_orchestrator/tests/__init__.py +0 -0
  1416. package/tools/vds-scripts/structure_orchestrator/tests/test_cli.py +0 -161
  1417. package/tools/vds-scripts/structure_orchestrator/tests/test_helpers.py +0 -115
  1418. package/tools/vds-scripts/structure_orchestrator/tests/test_validator.py +0 -104
  1419. package/tools/vds-scripts/task_orchestrator/README.md +0 -50
  1420. package/tools/vds-scripts/task_orchestrator/__init__.py +0 -18
  1421. package/tools/vds-scripts/task_orchestrator/pyproject.toml +0 -43
  1422. package/tools/vds-scripts/task_orchestrator/scripts/run_excel_sync.py +0 -36
  1423. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/__init__.py +0 -13
  1424. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/audit.py +0 -134
  1425. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/cli.py +0 -127
  1426. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/debug.py +0 -133
  1427. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/normalize.py +0 -113
  1428. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/refine.py +0 -201
  1429. package/tools/vds-scripts/task_orchestrator/tests/__init__.py +0 -0
  1430. package/tools/vds-scripts/task_orchestrator/tests/test_task_orchestrator.py +0 -84
  1431. package/tools/vds-scripts/temp_query_projects.py +0 -2
  1432. package/tools/vds-scripts/test_small.md +0 -1
  1433. package/tools/vds-scripts/text_utils_orchestrator/pyproject.toml +0 -20
  1434. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/__init__.py +0 -7
  1435. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/i18n.py +0 -143
  1436. package/tools/vds-scripts/text_utils_orchestrator/tests/__init__.py +0 -0
  1437. package/tools/vds-scripts/text_utils_orchestrator/tests/test_i18n.py +0 -53
  1438. package/tools/vds-scripts/upgrade_major.py +0 -61
  1439. package/tools/vds-scripts/upgrade_major_v2.py +0 -64
  1440. package/tools/vds-scripts/verify_violations.py +0 -57
  1441. package/tools/vds-scripts/workflow-summary.json +0 -325
  1442. package/tools/vds-scripts/workflow-summary.md +0 -8
@@ -1,2171 +0,0 @@
1
- """Tests for Confluence publisher update behavior."""
2
-
3
- from __future__ import annotations
4
-
5
- import json
6
- from pathlib import Path
7
-
8
- import pytest
9
- from vds_audit_orchestrator.errors import DataSourceError
10
- from vds_audit_orchestrator.publishers.confluence_publisher import ConfluencePublisher
11
-
12
-
13
- class _FakeClient:
14
- def __init__(self) -> None:
15
- self.update_page_calls: list[dict[str, object]] = []
16
- self.update_attachment_calls: list[dict[str, object]] = []
17
- self.upload_attachment_calls: list[dict[str, object]] = []
18
- self.create_page_calls: list[dict[str, object]] = []
19
- self.is_degraded: bool = False
20
- self.attachments: list[dict[str, object]] = [
21
- {"id": "att-1", "title": "report.json"},
22
- {"id": "att-2", "title": "findings.xlsx"},
23
- ]
24
- self.pages: dict[str, dict[str, object]] = {
25
- "parent-1": {"id": "parent-1", "title": "Parent", "parent_id": None, "space_key": "VDS"},
26
- "analysis-root-1": {
27
- "id": "analysis-root-1",
28
- "title": "Project Analysis - parent-1",
29
- "parent_id": "parent-1",
30
- "space_key": "VDS",
31
- },
32
- "run-1": {"id": "run-1", "title": "Run 1", "parent_id": "analysis-root-1", "space_key": "VDS"},
33
- }
34
- self.current_body = (
35
- "<!-- VDS:SECTION:summary:START --><p>old summary</p><!-- VDS:SECTION:summary:END -->"
36
- "<!-- VDS:SECTION:top_findings:START --><p>old findings</p><!-- VDS:SECTION:top_findings:END -->"
37
- "<!-- VDS:SECTION:priority_actions:START --><p>old priority</p><!-- VDS:SECTION:priority_actions:END -->"
38
- "<!-- VDS:SECTION:checklist_core:START --><p>old checklist core</p><!-- VDS:SECTION:checklist_core:END -->"
39
- "<!-- VDS:SECTION:checklist_details:START --><p>old checklist details</p><!-- VDS:SECTION:checklist_details:END -->"
40
- )
41
- self.current_title = "Run 1"
42
- self.get_content_page_expands: list[str | None] = []
43
-
44
- async def search_cql(self, cql: str, limit: int = 25, start: int = 0) -> list[dict[str, object]]:
45
- import re
46
-
47
- parent_match = re.search(r"parent=([^\s]+)", cql)
48
- space_match = re.search(r'space="([^"]+)"', cql)
49
- title_match = re.search(r'title="([^"]+)"', cql)
50
- parent_id = parent_match.group(1) if parent_match else None
51
- space_key = space_match.group(1) if space_match else None
52
- title = title_match.group(1) if title_match else None
53
- if not title:
54
- return []
55
- matches: list[dict[str, object]] = []
56
- for page in self.pages.values():
57
- if page.get("title") != title:
58
- continue
59
- if parent_id is not None and page.get("parent_id") != parent_id:
60
- continue
61
- if space_key is not None and page.get("space_key") != space_key:
62
- continue
63
- matches.append({"id": page.get("id")})
64
- return matches[:limit]
65
-
66
- async def get_content_page(self, page_id: str, *, expand: str | None = None) -> dict[str, object]:
67
- self.get_content_page_expands.append(expand)
68
- page = self.pages.get(page_id, {"title": self.current_title, "space_key": "VDS"})
69
- return {
70
- "id": page_id,
71
- "title": page.get("title", self.current_title),
72
- "version": {"number": 5},
73
- "space": {"key": page.get("space_key", "VDS")},
74
- "body": {"storage": {"value": self.current_body}},
75
- }
76
-
77
- async def create_page(
78
- self,
79
- *,
80
- space_key: str,
81
- title: str,
82
- body_file: Path,
83
- parent_id: str | None = None,
84
- ) -> dict[str, object]:
85
- created_id = f"new-page-{len(self.create_page_calls) + 1}"
86
- self.create_page_calls.append(
87
- {"space_key": space_key, "title": title, "body_file": body_file, "parent_id": parent_id, "id": created_id}
88
- )
89
- self.pages[created_id] = {
90
- "id": created_id,
91
- "title": title,
92
- "parent_id": parent_id,
93
- "space_key": space_key,
94
- }
95
- return {"id": created_id}
96
-
97
- async def create_or_update_page(
98
- self,
99
- *,
100
- space_key: str,
101
- title: str,
102
- body_file: Path,
103
- parent_id: str | None = None,
104
- ) -> dict[str, object]:
105
- """Delegates to create_page for test purposes (upsert semantics)."""
106
- for page in self.pages.values():
107
- if page.get("parent_id") == parent_id and page.get("title") == title:
108
- return {"id": page.get("id")}
109
- return await self.create_page(
110
- space_key=space_key,
111
- title=title,
112
- body_file=body_file,
113
- parent_id=parent_id,
114
- )
115
-
116
- async def update_page(
117
- self,
118
- page_id: str,
119
- *,
120
- title: str | None = None,
121
- body_file: Path | None = None,
122
- version: int | None = None,
123
- ) -> dict[str, object]:
124
- if body_file and body_file.exists():
125
- self.current_body = body_file.read_text(encoding="utf-8")
126
- self.update_page_calls.append({"page_id": page_id, "title": title, "body_file": body_file, "version": version})
127
- return {"id": page_id}
128
-
129
- async def list_attachments(self, page_id: str) -> list[dict[str, object]]:
130
- return list(self.attachments)
131
-
132
- async def update_attachment(
133
- self,
134
- *,
135
- page_id: str,
136
- attachment_id: str,
137
- file_path: Path,
138
- ) -> dict[str, object]:
139
- self.update_attachment_calls.append(
140
- {"page_id": page_id, "attachment_id": attachment_id, "file_path": file_path}
141
- )
142
- return {"id": attachment_id}
143
-
144
- async def upload_attachment(self, *, page_id: str, file_path: Path) -> dict[str, object]:
145
- self.upload_attachment_calls.append({"page_id": page_id, "file_path": file_path})
146
- return {"id": "new-attachment"}
147
-
148
- async def get_page(self, page_id: str, *, expand: str | None = None) -> dict[str, object] | None:
149
- body: dict[str, object] = {}
150
- if expand and "body.storage" in expand:
151
- body = {"storage": {"value": self.current_body}}
152
- return {"id": page_id, "title": self.current_title, "body": body, "version": {"number": 5}}
153
-
154
-
155
- @pytest.mark.asyncio
156
- async def test_upload_results_updates_existing_run_page(tmp_path):
157
- report_dir = tmp_path / "reports"
158
- report_dir.mkdir(parents=True, exist_ok=True)
159
- markdown = report_dir / "report.md"
160
- markdown.write_text("# Report\n\nContent.", encoding="utf-8")
161
- (report_dir / "report.json").write_text("{}", encoding="utf-8")
162
- (report_dir / "findings.xlsx").write_bytes(b"fake")
163
- (report_dir / "audit-checklist.xlsx").write_bytes(b"checklist")
164
-
165
- client = _FakeClient()
166
- publisher = ConfluencePublisher(client)
167
-
168
- result = await publisher.upload_results(
169
- report_dir=report_dir,
170
- parent_page="parent-1",
171
- page_title="Run 1",
172
- include_attachments=True,
173
- )
174
-
175
- assert result.page_id == "run-1"
176
- run_page_creates = [call for call in client.create_page_calls if call.get("title") == "Run 1"]
177
- assert run_page_creates == []
178
- assert len(client.update_page_calls) == 1
179
- assert client.update_page_calls[0]["page_id"] == "run-1"
180
- assert client.update_page_calls[0]["version"] == 6
181
- assert len(client.update_attachment_calls) == 2
182
- assert len(client.upload_attachment_calls) == 1
183
- assert client.upload_attachment_calls[0]["file_path"].name == "audit-checklist.xlsx"
184
- assert set(result.attachments) == {"att-1", "att-2", "new-attachment"}
185
-
186
- body_path = client.update_page_calls[0]["body_file"]
187
- assert isinstance(body_path, Path)
188
- html = body_path.read_text(encoding="utf-8")
189
- # Always include the attachments macro so Confluence can render the current list.
190
- assert 'ac:name="attachments"' in html
191
-
192
-
193
- @pytest.mark.asyncio
194
- async def test_update_run_page_omits_unchanged_title(tmp_path):
195
- report_dir = tmp_path / "reports"
196
- report_dir.mkdir(parents=True, exist_ok=True)
197
- markdown = report_dir / "report.md"
198
- markdown.write_text("# Report\n\nContent.", encoding="utf-8")
199
-
200
- client = _FakeClient()
201
- client.current_title = "Run 1"
202
- publisher = ConfluencePublisher(client)
203
-
204
- await publisher.update_run_page(
205
- page_id="run-1",
206
- title="Run 1",
207
- report_dir=report_dir,
208
- markdown_path=markdown,
209
- )
210
-
211
- assert len(client.update_page_calls) == 1
212
- assert client.update_page_calls[0]["title"] is None
213
- assert client.get_content_page_expands[-1] == "title,version"
214
-
215
-
216
- @pytest.mark.asyncio
217
- async def test_update_run_page_incremental_omits_unchanged_title(tmp_path):
218
- report_dir = tmp_path / "reports"
219
- report_dir.mkdir(parents=True, exist_ok=True)
220
- markdown = report_dir / "report.md"
221
- markdown.write_text("# Report\n\nContent.", encoding="utf-8")
222
- (report_dir / "workflow-summary.json").write_text(
223
- '{"agent_results":[{"agent":"SecurityAgent","findings":[{"type":"security","description":"X","location":"Y"}]}]}',
224
- encoding="utf-8",
225
- )
226
- (report_dir / "audit-checklist.json").write_text(
227
- json.dumps(
228
- {
229
- "checklist_version": "1.0.0",
230
- "generated_at": "2026-03-11T00:00:00Z",
231
- "template_name": "VDS Checklist",
232
- "template_version": "1.0",
233
- "template_hash": "th",
234
- "template_row_count": 0,
235
- "repository": "test-repo",
236
- "row_llm_mode": "selective",
237
- "evidence_hash": "eh",
238
- "rows": [],
239
- }
240
- ),
241
- encoding="utf-8",
242
- )
243
-
244
- client = _FakeClient()
245
- client.current_title = "Run 1"
246
- publisher = ConfluencePublisher(client)
247
-
248
- updated, reason = await publisher.update_run_page_incremental(
249
- page_id="run-1",
250
- title="Run 1",
251
- report_dir=report_dir,
252
- markdown_path=markdown,
253
- )
254
-
255
- assert updated is True
256
- assert reason is None
257
- assert len(client.update_page_calls) == 1
258
- assert client.update_page_calls[0]["title"] is None
259
- assert client.get_content_page_expands[-1] == "body.storage,version"
260
-
261
-
262
- @pytest.mark.asyncio
263
- async def test_upload_results_defaults_checklist_details_expanded(tmp_path):
264
- report_dir = tmp_path / "reports"
265
- report_dir.mkdir(parents=True, exist_ok=True)
266
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
267
- (report_dir / "audit-checklist.json").write_text(
268
- json.dumps(
269
- {
270
- "checklist_version": "1.0.0",
271
- "generated_at": "2026-03-11T00:00:00Z",
272
- "template_name": "VDS Checklist",
273
- "template_version": "1.0",
274
- "template_hash": "th",
275
- "template_row_count": 1,
276
- "repository": "test-repo",
277
- "row_llm_mode": "selective",
278
- "evidence_hash": "eh",
279
- "rows": [
280
- {
281
- "row_id": "CL-001:row_0",
282
- "row_index": 0,
283
- "check_id": "CL-001",
284
- "requirement_text": "Test requirement",
285
- "weight_raw": 10.0,
286
- "weight_adjusted": 10.0,
287
- "status": "PASS",
288
- "score_breakdown": {"raw_score": 95.0, "final_score": 95.0},
289
- "evidence_refs": [
290
- {
291
- "ref_type": "file_path",
292
- "ref_value": "src/app.py",
293
- "label": "src/app.py",
294
- }
295
- ],
296
- "reason": "OK",
297
- "finding": "Found",
298
- "provenance": {
299
- "row_llm_mode": "selective",
300
- "evaluated_at": "2026-03-11T00:00:00Z",
301
- "template_hash": "th",
302
- "evidence_hash": "eh",
303
- },
304
- }
305
- ],
306
- }
307
- ),
308
- encoding="utf-8",
309
- )
310
-
311
- client = _FakeClient()
312
- publisher = ConfluencePublisher(client)
313
-
314
- await publisher.upload_results(
315
- report_dir=report_dir,
316
- parent_page="parent-1",
317
- page_title="Run 1",
318
- include_attachments=False,
319
- )
320
-
321
- body_path = client.update_page_calls[0]["body_file"]
322
- assert isinstance(body_path, Path)
323
- html = body_path.read_text(encoding="utf-8")
324
- assert "<h2>Chi tiết lý do và minh chứng</h2>" in html
325
- assert 'ac:name="expand"' not in html
326
- assert "<th>Minh chứng</th>" in html
327
-
328
-
329
- @pytest.mark.asyncio
330
- async def test_upload_results_renders_top_findings_table_with_provenance(tmp_path):
331
- report_dir = tmp_path / "reports"
332
- report_dir.mkdir(parents=True, exist_ok=True)
333
- markdown = report_dir / "report.md"
334
- markdown.write_text("# Report\n\nContent.", encoding="utf-8")
335
- (report_dir / "workflow-summary.json").write_text(
336
- """
337
- {
338
- "agent_results": [
339
- {
340
- "agent": "SecurityAgent",
341
- "success": true,
342
- "findings": [
343
- {"type": "security_vulnerability", "description": "Hardcoded credential", "location": "src/app.py"}
344
- ]
345
- }
346
- ],
347
- "synthesis": {"status": "complete"}
348
- }
349
- """.strip(),
350
- encoding="utf-8",
351
- )
352
-
353
- client = _FakeClient()
354
- publisher = ConfluencePublisher(client)
355
-
356
- await publisher.upload_results(
357
- report_dir=report_dir,
358
- parent_page="parent-1",
359
- page_title="Run 1",
360
- include_attachments=True,
361
- )
362
-
363
- assert len(client.update_page_calls) == 1
364
- assert len(client.upload_attachment_calls) == 1
365
- assert client.upload_attachment_calls[0]["file_path"].name == "workflow-summary.json"
366
- body_path = client.update_page_calls[0]["body_file"]
367
- assert isinstance(body_path, Path)
368
- html = body_path.read_text(encoding="utf-8")
369
- assert "Top Findings (Checklist)" in html
370
- assert "Hardcoded credential" in html
371
- assert "SecurityAgent / security_vulnerability" in html
372
- # Provenance references the workflow summary attachment by filename.
373
- assert "workflow-summary.json" in html
374
-
375
-
376
- @pytest.mark.asyncio
377
- async def test_upload_results_extracts_top_findings_from_audit_checklist_xlsx(tmp_path):
378
- from openpyxl import Workbook
379
-
380
- report_dir = tmp_path / "reports"
381
- report_dir.mkdir(parents=True, exist_ok=True)
382
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
383
-
384
- wb = Workbook()
385
- ws = wb.active
386
- ws.title = "Checklist"
387
- ws.append(["Severity", "Status", "Finding", "Location", "Provenance"])
388
- ws.append(["High", "Failed", "Missing threat model", "docs/SECURITY.md", "SecurityAgent"])
389
- xlsx_path = report_dir / "audit-checklist.xlsx"
390
- wb.save(xlsx_path)
391
-
392
- client = _FakeClient()
393
- publisher = ConfluencePublisher(client)
394
-
395
- await publisher.upload_results(
396
- report_dir=report_dir,
397
- parent_page="parent-1",
398
- page_title="Run 1",
399
- include_attachments=True,
400
- )
401
-
402
- assert len(client.update_page_calls) == 1
403
- assert len(client.upload_attachment_calls) == 1
404
- assert client.upload_attachment_calls[0]["file_path"].name == "audit-checklist.xlsx"
405
-
406
- body_path = client.update_page_calls[0]["body_file"]
407
- assert isinstance(body_path, Path)
408
- html = body_path.read_text(encoding="utf-8")
409
- assert "Top Findings (Checklist)" in html
410
- assert "Missing threat model" in html
411
- assert "docs/SECURITY.md" in html
412
- assert "SecurityAgent" in html
413
-
414
-
415
- @pytest.mark.asyncio
416
- async def test_upload_results_extracts_top_findings_from_markdown_when_other_sources_missing(tmp_path):
417
- report_dir = tmp_path / "reports"
418
- report_dir.mkdir(parents=True, exist_ok=True)
419
- (report_dir / "report.md").write_text(
420
- "\n".join(
421
- [
422
- "# Report",
423
- "",
424
- "## Top Findings",
425
- "",
426
- "- `CL-001` `FAIL` `27.00`",
427
- "- `CL-004` `PARTIAL` `76.50`",
428
- "",
429
- "## Critique Summary",
430
- "",
431
- "- enabled: `True`",
432
- ]
433
- ),
434
- encoding="utf-8",
435
- )
436
- (report_dir / "workflow-summary.json").write_text('{"synthesis": {"status": "complete"}}', encoding="utf-8")
437
-
438
- client = _FakeClient()
439
- publisher = ConfluencePublisher(client)
440
-
441
- await publisher.upload_results(
442
- report_dir=report_dir,
443
- parent_page="parent-1",
444
- page_title="Run 1",
445
- include_attachments=True,
446
- )
447
-
448
- body_path = client.update_page_calls[0]["body_file"]
449
- assert isinstance(body_path, Path)
450
- html = body_path.read_text(encoding="utf-8")
451
- assert "Top Findings (Checklist)" in html
452
- assert "CL-001 scored 27.00" in html
453
- assert "report.md" in html
454
-
455
-
456
- @pytest.mark.asyncio
457
- async def test_upload_results_renders_structured_synthesis_tables(tmp_path):
458
- report_dir = tmp_path / "reports"
459
- report_dir.mkdir(parents=True, exist_ok=True)
460
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
461
- (report_dir / "workflow-summary.json").write_text(
462
- """
463
- {
464
- "overall_score": 40.0,
465
- "repository": "demo-repo",
466
- "synthesis": {
467
- "status": "complete",
468
- "gaps": [
469
- {"check_id": "CL-001", "severity": "high", "finding": "Missing auth guard"}
470
- ],
471
- "aligned_practices": [
472
- {"check_id": "CL-020", "severity": "low", "finding": "Health endpoint documented"}
473
- ]
474
- }
475
- }
476
- """.strip(),
477
- encoding="utf-8",
478
- )
479
-
480
- client = _FakeClient()
481
- publisher = ConfluencePublisher(client)
482
-
483
- await publisher.upload_results(
484
- report_dir=report_dir,
485
- parent_page="parent-1",
486
- page_title="Run 1",
487
- include_attachments=True,
488
- )
489
-
490
- body_path = client.update_page_calls[0]["body_file"]
491
- assert isinstance(body_path, Path)
492
- html = body_path.read_text(encoding="utf-8")
493
- assert "Synthesis Critique" in html
494
- assert "<th>Check</th><th>Severity</th><th>Finding</th>" in html
495
- assert "CL-001" in html
496
- assert "Missing auth guard" in html
497
- assert "Health endpoint documented" in html
498
- assert "{&#x27;check_id&#x27;" not in html
499
-
500
-
501
- @pytest.mark.asyncio
502
- async def test_upload_results_renders_summary_from_audit_checklist_json(tmp_path):
503
- """TSK-182: Verify summary section is rendered from AuditChecklist JSON."""
504
- import json
505
-
506
- report_dir = tmp_path / "reports"
507
- report_dir.mkdir(parents=True, exist_ok=True)
508
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
509
-
510
- # Create a minimal AuditChecklist JSON
511
- checklist_data = {
512
- "checklist_version": "1.0.0",
513
- "generated_at": "2026-02-04T10:00:00",
514
- "template_name": "VDS Checklist",
515
- "template_version": "1.0",
516
- "template_hash": "abc123def456",
517
- "template_row_count": 3,
518
- "repository": "test-repo",
519
- "row_llm_mode": "selective",
520
- "evidence_hash": "xyz789abc012",
521
- "rows": [
522
- {
523
- "row_id": "SEC-001:row_0",
524
- "row_index": 0,
525
- "requirement_text": "Security documentation required",
526
- "weight_raw": 10.0,
527
- "weight_adjusted": 10.0,
528
- "status": "PASS",
529
- "score_breakdown": {"raw_score": 95.0, "final_score": 95.0},
530
- "evidence_refs": [],
531
- "reason": "Documentation found",
532
- "finding": "SECURITY.md exists",
533
- "provenance": {
534
- "row_llm_mode": "deterministic",
535
- "evaluated_at": "2026-02-04T10:00:00",
536
- "template_hash": "abc123",
537
- "evidence_hash": "xyz789",
538
- },
539
- },
540
- {
541
- "row_id": "SEC-001:row_1",
542
- "row_index": 1,
543
- "requirement_text": "API docs required",
544
- "weight_raw": 10.0,
545
- "weight_adjusted": 10.0,
546
- "status": "PARTIAL",
547
- "score_breakdown": {"raw_score": 60.0, "final_score": 60.0},
548
- "evidence_refs": [],
549
- "reason": "Partial documentation",
550
- "finding": "API docs incomplete",
551
- "provenance": {
552
- "row_llm_mode": "selective",
553
- "model": "claude-sonnet-4-20250514",
554
- "evaluated_at": "2026-02-04T10:00:00",
555
- "template_hash": "abc123",
556
- "evidence_hash": "xyz789",
557
- },
558
- },
559
- {
560
- "row_id": "SEC-001:row_2",
561
- "row_index": 2,
562
- "requirement_text": "Threat model required",
563
- "weight_raw": 10.0,
564
- "weight_adjusted": 10.0,
565
- "status": "FAIL",
566
- "severity": "high",
567
- "score_breakdown": {"raw_score": 20.0, "final_score": 20.0},
568
- "evidence_refs": [],
569
- "reason": "No threat model found",
570
- "finding": "Missing threat model",
571
- "provenance": {
572
- "row_llm_mode": "selective",
573
- "model": "claude-sonnet-4-20250514",
574
- "evaluated_at": "2026-02-04T10:00:00",
575
- "template_hash": "abc123",
576
- "evidence_hash": "xyz789",
577
- },
578
- },
579
- ],
580
- }
581
- (report_dir / "audit-checklist.json").write_text(json.dumps(checklist_data), encoding="utf-8")
582
-
583
- client = _FakeClient()
584
- publisher = ConfluencePublisher(client)
585
-
586
- await publisher.upload_results(
587
- report_dir=report_dir,
588
- parent_page="parent-1",
589
- page_title="Run 1",
590
- include_attachments=True,
591
- )
592
-
593
- assert len(client.update_page_calls) == 1
594
- body_path = client.update_page_calls[0]["body_file"]
595
- assert isinstance(body_path, Path)
596
- html = body_path.read_text(encoding="utf-8")
597
-
598
- # Verify summary section
599
- assert "Audit Checklist Summary" in html
600
- assert "Overall Score" in html
601
- assert "Maturity Level" in html
602
- assert "Total Checks" in html
603
- assert "Pass" in html
604
- assert "Partial" in html
605
- assert "Fail" in html
606
-
607
-
608
- @pytest.mark.asyncio
609
- async def test_upload_results_renders_provenance_from_audit_checklist_json(tmp_path):
610
- """TSK-182: Verify provenance block is rendered from AuditChecklist JSON."""
611
- import json
612
-
613
- report_dir = tmp_path / "reports"
614
- report_dir.mkdir(parents=True, exist_ok=True)
615
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
616
-
617
- # Create a minimal AuditChecklist JSON with provenance info
618
- checklist_data = {
619
- "checklist_version": "1.0.0",
620
- "generated_at": "2026-02-04T10:00:00",
621
- "template_name": "VDS Checklist",
622
- "template_version": "2.1",
623
- "template_hash": "abc123def456",
624
- "template_row_count": 1,
625
- "repository": "test-repo",
626
- "row_llm_mode": "selective",
627
- "evidence_hash": "xyz789abc012",
628
- "rows": [
629
- {
630
- "row_id": "SEC-001:row_0",
631
- "row_index": 0,
632
- "requirement_text": "Test requirement",
633
- "weight_raw": 10.0,
634
- "weight_adjusted": 10.0,
635
- "status": "PASS",
636
- "score_breakdown": {"raw_score": 95.0, "final_score": 95.0},
637
- "evidence_refs": [],
638
- "reason": "OK",
639
- "finding": "Found",
640
- "provenance": {
641
- "row_llm_mode": "selective",
642
- "model": "claude-sonnet-4-20250514",
643
- "evaluated_at": "2026-02-04T10:00:00",
644
- "template_hash": "abc123",
645
- "evidence_hash": "xyz789",
646
- },
647
- },
648
- ],
649
- }
650
- (report_dir / "audit-checklist.json").write_text(json.dumps(checklist_data), encoding="utf-8")
651
-
652
- client = _FakeClient()
653
- publisher = ConfluencePublisher(client)
654
-
655
- await publisher.upload_results(
656
- report_dir=report_dir,
657
- parent_page="parent-1",
658
- page_title="Run 1",
659
- include_attachments=True,
660
- thread_id="thread-abc-123",
661
- )
662
-
663
- assert len(client.update_page_calls) == 1
664
- body_path = client.update_page_calls[0]["body_file"]
665
- assert isinstance(body_path, Path)
666
- html = body_path.read_text(encoding="utf-8")
667
-
668
- # Verify provenance block
669
- assert "Provenance" in html
670
- assert "thread-abc-123" in html
671
- assert "abc123def456" in html # template_hash
672
- assert "xyz789abc012" in html # evidence_hash
673
- assert "selective" in html # row_llm_mode
674
- assert "VDS Checklist" in html # template_name
675
- assert "claude-sonnet-4-20250514" in html # LLM model
676
-
677
-
678
- @pytest.mark.asyncio
679
- async def test_upload_results_renders_provenance_from_workflow_summary_fallback(tmp_path):
680
- import json
681
-
682
- report_dir = tmp_path / "runs" / "phase109-incremental-20260309040500" / "repos" / "test-repo"
683
- report_dir.mkdir(parents=True, exist_ok=True)
684
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
685
- (report_dir / "workflow-summary.json").write_text(
686
- json.dumps(
687
- {
688
- "summary_score_source": "checklist_artifacts_reconciled",
689
- "merge_level": "repo",
690
- "source_runs": [
691
- "phase109-baseline-20260308-codex-chatgpt",
692
- "phase109-baseline-20260308-alibaba-anthropic",
693
- ],
694
- }
695
- ),
696
- encoding="utf-8",
697
- )
698
-
699
- client = _FakeClient()
700
- publisher = ConfluencePublisher(client)
701
-
702
- await publisher.upload_results(
703
- report_dir=report_dir,
704
- parent_page="parent-1",
705
- page_title="Run 1",
706
- include_attachments=True,
707
- )
708
-
709
- body_path = client.update_page_calls[0]["body_file"]
710
- assert isinstance(body_path, Path)
711
- html = body_path.read_text(encoding="utf-8")
712
-
713
- assert "Provenance" in html
714
- assert "phase109-incremental-20260309040500" in html
715
- assert "checklist_artifacts_reconciled" in html
716
- assert "phase109-baseline-20260308-codex-chatgpt" in html
717
- assert "phase109-baseline-20260308-alibaba-anthropic" in html
718
-
719
-
720
- @pytest.mark.asyncio
721
- async def test_upload_results_renders_top_findings_from_audit_checklist_model(tmp_path):
722
- """TSK-182: Verify top findings uses typed AuditChecklist model with status colors."""
723
- import json
724
-
725
- report_dir = tmp_path / "reports"
726
- report_dir.mkdir(parents=True, exist_ok=True)
727
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
728
-
729
- checklist_data = {
730
- "checklist_version": "1.0.0",
731
- "generated_at": "2026-02-04T10:00:00",
732
- "template_name": "VDS Checklist",
733
- "template_version": "1.0",
734
- "template_hash": "abc123def456",
735
- "template_row_count": 2,
736
- "repository": "test-repo",
737
- "row_llm_mode": "selective",
738
- "evidence_hash": "xyz789abc012",
739
- "rows": [
740
- {
741
- "row_id": "SEC-001:row_0",
742
- "row_index": 0,
743
- "check_id": "SEC-001",
744
- "requirement_text": "Threat model required",
745
- "weight_raw": 10.0,
746
- "weight_adjusted": 10.0,
747
- "status": "FAIL",
748
- "score_breakdown": {"raw_score": 10.0, "final_score": 10.0},
749
- "evidence_refs": [],
750
- "reason": "No threat model documentation found in repository",
751
- "finding": "Missing THREAT_MODEL.md or equivalent documentation",
752
- "provenance": {
753
- "row_llm_mode": "deterministic",
754
- "evaluated_at": "2026-02-04T10:00:00",
755
- "template_hash": "abc123",
756
- "evidence_hash": "xyz789",
757
- },
758
- },
759
- {
760
- "row_id": "SEC-002:row_1",
761
- "row_index": 1,
762
- "check_id": "SEC-002",
763
- "requirement_text": "API documentation",
764
- "weight_raw": 10.0,
765
- "weight_adjusted": 10.0,
766
- "status": "PARTIAL",
767
- "score_breakdown": {"raw_score": 55.0, "final_score": 55.0},
768
- "evidence_refs": [],
769
- "reason": "OpenAPI spec exists but incomplete",
770
- "finding": "API documentation is partially complete",
771
- "provenance": {
772
- "row_llm_mode": "selective",
773
- "evaluated_at": "2026-02-04T10:00:00",
774
- "template_hash": "abc123",
775
- "evidence_hash": "xyz789",
776
- },
777
- },
778
- ],
779
- }
780
- (report_dir / "audit-checklist.json").write_text(json.dumps(checklist_data), encoding="utf-8")
781
-
782
- client = _FakeClient()
783
- publisher = ConfluencePublisher(client)
784
-
785
- await publisher.upload_results(
786
- report_dir=report_dir,
787
- parent_page="parent-1",
788
- page_title="Run 1",
789
- include_attachments=True,
790
- )
791
-
792
- assert len(client.update_page_calls) == 1
793
- body_path = client.update_page_calls[0]["body_file"]
794
- assert isinstance(body_path, Path)
795
- html = body_path.read_text(encoding="utf-8")
796
-
797
- # Verify top findings table uses Vietnamese status and includes key fields
798
- assert "Phát hiện nổi bật (Checklist)" in html # Vietnamese header
799
- assert "Trạng thái" in html # Vietnamese header
800
- assert "SEC-001" in html # Check ID
801
- assert "SEC-002" in html
802
- assert "Missing THREAT_MODEL.md" in html # Finding text
803
- assert "No threat model documentation" in html # Reason text
804
- # Verify status color coding is applied (background-color style)
805
- assert "background-color:" in html
806
-
807
-
808
- # TSK-170B Tests: Publish Mode + Attachments Index
809
- # ==================================================
810
-
811
-
812
- @pytest.mark.asyncio
813
- async def test_create_only_mode_fails_when_page_exists(tmp_path):
814
- """TSK-170B: Test that create-only mode fails when page already exists."""
815
- from vds_audit_orchestrator.publishers.confluence_publisher import PublishMode
816
-
817
- report_dir = tmp_path / "reports"
818
- report_dir.mkdir(parents=True, exist_ok=True)
819
- markdown = report_dir / "report.md"
820
- markdown.write_text("# Report\n\nContent.", encoding="utf-8")
821
-
822
- client = _FakeClient()
823
- publisher = ConfluencePublisher(client)
824
-
825
- with pytest.raises(ValueError, match="already exists"):
826
- await publisher.upload_results(
827
- report_dir=report_dir,
828
- parent_page="parent-1",
829
- page_title="Run 1", # This page exists in _FakeClient
830
- include_attachments=False,
831
- publish_mode=PublishMode.CREATE_ONLY,
832
- )
833
-
834
-
835
- @pytest.mark.asyncio
836
- async def test_create_only_mode_succeeds_for_new_page(tmp_path):
837
- """TSK-170B: Test that create-only mode succeeds when page doesn't exist."""
838
- from vds_audit_orchestrator.publishers.confluence_publisher import PublishMode
839
-
840
- report_dir = tmp_path / "reports"
841
- report_dir.mkdir(parents=True, exist_ok=True)
842
- markdown = report_dir / "report.md"
843
- markdown.write_text("# Report\n\nContent.", encoding="utf-8")
844
-
845
- client = _FakeClient()
846
- publisher = ConfluencePublisher(client)
847
-
848
- result = await publisher.upload_results(
849
- report_dir=report_dir,
850
- parent_page="parent-1",
851
- page_title="New Run", # This page doesn't exist
852
- include_attachments=False,
853
- publish_mode=PublishMode.CREATE_ONLY,
854
- )
855
-
856
- assert result.page_id == "new-page-1"
857
- run_page_creates = [call for call in client.create_page_calls if call.get("title") == "New Run"]
858
- assert len(run_page_creates) == 1
859
-
860
-
861
- @pytest.mark.asyncio
862
- async def test_update_mode_updates_existing_page(tmp_path):
863
- """TSK-170B: Test that update mode updates existing pages."""
864
- from vds_audit_orchestrator.publishers.confluence_publisher import PublishMode
865
-
866
- report_dir = tmp_path / "reports"
867
- report_dir.mkdir(parents=True, exist_ok=True)
868
- markdown = report_dir / "report.md"
869
- markdown.write_text("# Report\n\nContent.", encoding="utf-8")
870
-
871
- client = _FakeClient()
872
- publisher = ConfluencePublisher(client)
873
-
874
- result = await publisher.upload_results(
875
- report_dir=report_dir,
876
- parent_page="parent-1",
877
- page_title="Run 1", # This page exists
878
- include_attachments=False,
879
- publish_mode=PublishMode.UPDATE,
880
- )
881
-
882
- assert result.page_id == "run-1"
883
- assert len(client.update_page_calls) == 1
884
- run_page_creates = [call for call in client.create_page_calls if call.get("title") == "Run 1"]
885
- assert len(run_page_creates) == 0
886
-
887
-
888
- @pytest.mark.asyncio
889
- async def test_attachments_index_returned(tmp_path):
890
- """TSK-170B: Test that attachments_index is populated in result."""
891
- report_dir = tmp_path / "reports"
892
- report_dir.mkdir(parents=True, exist_ok=True)
893
- markdown = report_dir / "report.md"
894
- markdown.write_text("# Report\n\nContent.", encoding="utf-8")
895
- (report_dir / "audit-checklist.xlsx").write_bytes(b"checklist")
896
- (report_dir / "audit-checklist.json").write_text("{}", encoding="utf-8")
897
-
898
- client = _FakeClient()
899
- publisher = ConfluencePublisher(client)
900
-
901
- result = await publisher.upload_results(
902
- report_dir=report_dir,
903
- parent_page="parent-1",
904
- page_title="New Run",
905
- include_attachments=True,
906
- include_attachments_index=False, # Don't add to page, but still track
907
- )
908
-
909
- # Attachments index should be populated
910
- assert len(result.attachments_index) == 2
911
- names = {att["name"] for att in result.attachments_index}
912
- assert "audit-checklist.xlsx" in names
913
- assert "audit-checklist.json" in names
914
-
915
-
916
- def test_render_attachments_index_html():
917
- """TSK-170B: Test attachments index HTML rendering."""
918
- client = _FakeClient()
919
- publisher = ConfluencePublisher(client)
920
-
921
- attachments_index = [
922
- {"name": "audit-checklist.xlsx", "id": "att-1"},
923
- {"name": "report.json", "id": "att-2"},
924
- ]
925
-
926
- html = publisher._render_attachments_index_html(attachments_index)
927
-
928
- assert "📎 Attachments Index" in html
929
- assert "audit-checklist.xlsx" in html
930
- assert "report.json" in html
931
- assert "Excel Spreadsheet" in html
932
- assert "JSON Data" in html
933
- assert "ri:attachment" in html # Confluence attachment link macro
934
-
935
-
936
- def test_render_attachments_index_empty():
937
- """TSK-170B: Test that empty attachments returns empty string."""
938
- client = _FakeClient()
939
- publisher = ConfluencePublisher(client)
940
-
941
- html = publisher._render_attachments_index_html([])
942
-
943
- assert html == ""
944
-
945
-
946
- def test_publish_mode_enum_values():
947
- """TSK-170B: Test PublishMode enum values."""
948
- from vds_audit_orchestrator.publishers.confluence_publisher import PublishMode
949
-
950
- assert PublishMode.UPDATE.value == "update"
951
- assert PublishMode.CREATE_ONLY.value == "create-only"
952
-
953
- # Test case-insensitive parsing
954
- assert PublishMode("update") == PublishMode.UPDATE
955
- assert PublishMode("create-only") == PublishMode.CREATE_ONLY
956
-
957
-
958
- @pytest.mark.asyncio
959
- async def test_publish_project_aggregate_updates_analysis_root_when_titles_collide(tmp_path, monkeypatch):
960
- report_dir = tmp_path / "aggregate"
961
- report_dir.mkdir(parents=True, exist_ok=True)
962
- (report_dir / "project-readiness.json").write_text(
963
- json.dumps(
964
- {
965
- "project_name": "project-1",
966
- "executive_summary": {
967
- "readiness_score_pct": 85.0,
968
- "classification": "in_progress",
969
- "confidence": "HIGH",
970
- "confidence_pct": 90.0,
971
- "general_assessment": "ready",
972
- },
973
- }
974
- ),
975
- encoding="utf-8",
976
- )
977
-
978
- from vds_audit_orchestrator.publishers import project_aggregate_renderer as _renderer_mod
979
-
980
- monkeypatch.setattr(_renderer_mod.ProjectAggregateRenderer, "render_page", lambda self, report: "<p>aggregate</p>")
981
-
982
- client = _FakeClient()
983
- client.pages["analysis-root-1"] = {
984
- "id": "analysis-root-1",
985
- "title": "Project Analysis - project-1",
986
- "parent_id": "parent-1",
987
- "space_key": "VDS",
988
- }
989
- publisher = ConfluencePublisher(client)
990
- publisher.validate_storage_format = lambda html: True # type: ignore[assignment]
991
-
992
- result = await publisher.publish_project_aggregate(
993
- report_dir=report_dir,
994
- parent_page="parent-1",
995
- page_title="Project Analysis - project-1",
996
- include_attachments=False,
997
- project_storage_key="project-1",
998
- )
999
-
1000
- assert result.page_id == "analysis-root-1"
1001
- assert result.reused_existing_page is True
1002
- assert len(client.update_page_calls) == 1
1003
- assert client.update_page_calls[0]["page_id"] == "analysis-root-1"
1004
- assert [call["title"] for call in client.create_page_calls] == []
1005
-
1006
-
1007
- @pytest.mark.asyncio
1008
- async def test_publish_project_aggregate_creates_child_when_missing(tmp_path, monkeypatch):
1009
- report_dir = tmp_path / "aggregate"
1010
- report_dir.mkdir(parents=True, exist_ok=True)
1011
- (report_dir / "project-readiness.json").write_text(
1012
- json.dumps(
1013
- {
1014
- "project_name": "project-1",
1015
- "executive_summary": {
1016
- "readiness_score_pct": 85.0,
1017
- "classification": "in_progress",
1018
- "confidence": "HIGH",
1019
- "confidence_pct": 90.0,
1020
- "general_assessment": "ready",
1021
- },
1022
- }
1023
- ),
1024
- encoding="utf-8",
1025
- )
1026
-
1027
- from vds_audit_orchestrator.publishers import project_aggregate_renderer as _renderer_mod
1028
-
1029
- monkeypatch.setattr(_renderer_mod.ProjectAggregateRenderer, "render_page", lambda self, report: "<p>aggregate</p>")
1030
-
1031
- client = _FakeClient()
1032
- publisher = ConfluencePublisher(client)
1033
- publisher.validate_storage_format = lambda html: True # type: ignore[assignment]
1034
-
1035
- result = await publisher.publish_project_aggregate(
1036
- report_dir=report_dir,
1037
- parent_page="parent-1",
1038
- page_title="Project Aggregate Report",
1039
- include_attachments=False,
1040
- project_storage_key="project-1",
1041
- )
1042
-
1043
- assert result.page_id.startswith("new-page-")
1044
- assert result.reused_existing_page is False
1045
- assert len(client.update_page_calls) == 0
1046
- created_titles = [call["title"] for call in client.create_page_calls]
1047
- assert created_titles == ["Project Analysis - project-1", "Project Aggregate Report"]
1048
-
1049
-
1050
- @pytest.mark.asyncio
1051
- async def test_upload_results_incremental_mode_updates_changed_attachments_only(tmp_path):
1052
- from vds_audit_orchestrator.publishers.confluence_publisher import UpdateMode
1053
-
1054
- report_dir = tmp_path / "reports"
1055
- report_dir.mkdir(parents=True, exist_ok=True)
1056
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
1057
- (report_dir / "audit-checklist.json").write_text(
1058
- json.dumps(
1059
- {
1060
- "checklist_version": "1.0.0",
1061
- "generated_at": "2026-03-11T00:00:00Z",
1062
- "template_name": "VDS Checklist",
1063
- "template_version": "1.0",
1064
- "template_hash": "th",
1065
- "template_row_count": 1,
1066
- "repository": "test-repo",
1067
- "row_llm_mode": "selective",
1068
- "evidence_hash": "eh",
1069
- "rows": [
1070
- {
1071
- "row_id": "CL-001:row_0",
1072
- "row_index": 0,
1073
- "check_id": "CL-001",
1074
- "requirement_text": "Test requirement",
1075
- "weight_raw": 10.0,
1076
- "weight_adjusted": 10.0,
1077
- "status": "PASS",
1078
- "score_breakdown": {"raw_score": 95.0, "final_score": 95.0},
1079
- "evidence_refs": [],
1080
- "reason": "OK",
1081
- "finding": "Found",
1082
- "provenance": {
1083
- "row_llm_mode": "selective",
1084
- "evaluated_at": "2026-03-11T00:00:00Z",
1085
- "template_hash": "th",
1086
- "evidence_hash": "eh",
1087
- },
1088
- }
1089
- ],
1090
- }
1091
- ),
1092
- encoding="utf-8",
1093
- )
1094
- (report_dir / "audit-checklist.xlsx").write_bytes(b"xlsx-content")
1095
- (report_dir / "workflow-summary.json").write_text(
1096
- '{"overall_score": 88.0, "agent_results":[{"agent":"SecurityAgent","findings":[{"type":"security","description":"X","location":"Y"}]}]}',
1097
- encoding="utf-8",
1098
- )
1099
- (report_dir / "audit-checklist.meta.json").write_text(
1100
- '{"template_hash":"th","evidence_hash":"eh","row_count":10}',
1101
- encoding="utf-8",
1102
- )
1103
- (report_dir / "audit-checklist.delta.json").write_text(
1104
- '{"template_hash":"th","evidence_hash":"eh","rows_changed":2,"rows_unchanged":8,"changed_attachments":["audit-checklist.json"]}',
1105
- encoding="utf-8",
1106
- )
1107
-
1108
- client = _FakeClient()
1109
- client.attachments = [
1110
- {"id": "att-json", "title": "audit-checklist.json"},
1111
- {"id": "att-xlsx", "title": "audit-checklist.xlsx"},
1112
- ]
1113
- publisher = ConfluencePublisher(client)
1114
-
1115
- result = await publisher.upload_results(
1116
- report_dir=report_dir,
1117
- parent_page="parent-1",
1118
- page_title="Run 1",
1119
- include_attachments=True,
1120
- update_mode=UpdateMode.INCREMENTAL,
1121
- )
1122
-
1123
- assert result.update_mode == "incremental"
1124
- assert result.effective_update_mode == "incremental"
1125
- assert result.fallback_reason is None
1126
- assert result.counters["rows_changed"] == 2
1127
- assert result.counters["rows_unchanged"] == 8
1128
- assert result.counters["attachments_updated"] == 1
1129
- assert result.counters["attachments_skipped"] >= 1
1130
- assert len(client.update_attachment_calls) == 1
1131
- assert client.update_attachment_calls[0]["file_path"].name == "audit-checklist.json"
1132
-
1133
-
1134
- @pytest.mark.asyncio
1135
- async def test_upload_results_incremental_falls_back_when_artifacts_missing(tmp_path):
1136
- from vds_audit_orchestrator.publishers.confluence_publisher import UpdateMode
1137
-
1138
- report_dir = tmp_path / "reports"
1139
- report_dir.mkdir(parents=True, exist_ok=True)
1140
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
1141
-
1142
- client = _FakeClient()
1143
- publisher = ConfluencePublisher(client)
1144
-
1145
- result = await publisher.upload_results(
1146
- report_dir=report_dir,
1147
- parent_page="parent-1",
1148
- page_title="Run 1",
1149
- include_attachments=False,
1150
- update_mode=UpdateMode.INCREMENTAL,
1151
- )
1152
-
1153
- assert result.update_mode == "incremental"
1154
- assert result.effective_update_mode == "full"
1155
- assert result.fallback_reason == "incremental_missing_meta_or_delta"
1156
-
1157
-
1158
- @pytest.mark.asyncio
1159
- async def test_upload_results_incremental_falls_back_when_page_not_patchable(tmp_path):
1160
- from vds_audit_orchestrator.publishers.confluence_publisher import UpdateMode
1161
-
1162
- report_dir = tmp_path / "reports"
1163
- report_dir.mkdir(parents=True, exist_ok=True)
1164
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
1165
- (report_dir / "audit-checklist.meta.json").write_text(
1166
- '{"template_hash":"th","evidence_hash":"eh","row_count":10}',
1167
- encoding="utf-8",
1168
- )
1169
- (report_dir / "audit-checklist.delta.json").write_text(
1170
- '{"template_hash":"th","evidence_hash":"eh","rows_changed":1,"rows_unchanged":9}',
1171
- encoding="utf-8",
1172
- )
1173
-
1174
- client = _FakeClient()
1175
- client.current_body = "<p>legacy page without markers</p>"
1176
- publisher = ConfluencePublisher(client)
1177
-
1178
- result = await publisher.upload_results(
1179
- report_dir=report_dir,
1180
- parent_page="parent-1",
1181
- page_title="Run 1",
1182
- include_attachments=False,
1183
- update_mode=UpdateMode.INCREMENTAL,
1184
- )
1185
-
1186
- assert result.effective_update_mode == "full"
1187
- assert result.fallback_reason == "incremental_unpatchable_content"
1188
-
1189
-
1190
- @pytest.mark.asyncio
1191
- async def test_upload_results_incremental_patches_unwrapped_live_sections(tmp_path):
1192
- from vds_audit_orchestrator.publishers.confluence_publisher import UpdateMode
1193
-
1194
- report_dir = tmp_path / "reports"
1195
- report_dir.mkdir(parents=True, exist_ok=True)
1196
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
1197
- (report_dir / "audit-checklist.json").write_text(
1198
- json.dumps(
1199
- {
1200
- "checklist_version": "1.0.0",
1201
- "generated_at": "2026-03-11T00:00:00Z",
1202
- "template_name": "VDS Checklist",
1203
- "template_version": "1.0",
1204
- "template_hash": "th",
1205
- "template_row_count": 1,
1206
- "repository": "test-repo",
1207
- "row_llm_mode": "selective",
1208
- "evidence_hash": "eh",
1209
- "rows": [
1210
- {
1211
- "row_id": "CL-001:row_0",
1212
- "row_index": 0,
1213
- "check_id": "CL-001",
1214
- "requirement_text": "Test requirement",
1215
- "weight_raw": 10.0,
1216
- "weight_adjusted": 10.0,
1217
- "status": "PASS",
1218
- "score_breakdown": {"raw_score": 95.0, "final_score": 95.0},
1219
- "evidence_refs": [],
1220
- "reason": "OK",
1221
- "finding": "Found",
1222
- "provenance": {
1223
- "row_llm_mode": "selective",
1224
- "evaluated_at": "2026-03-11T00:00:00Z",
1225
- "template_hash": "th",
1226
- "evidence_hash": "eh",
1227
- },
1228
- }
1229
- ],
1230
- }
1231
- ),
1232
- encoding="utf-8",
1233
- )
1234
- (report_dir / "audit-checklist.xlsx").write_bytes(b"xlsx-content")
1235
- (report_dir / "workflow-summary.json").write_text('{"overall_score": 88.0}', encoding="utf-8")
1236
- (report_dir / "audit-checklist.meta.json").write_text(
1237
- '{"template_hash":"th","evidence_hash":"eh","row_count":1}',
1238
- encoding="utf-8",
1239
- )
1240
- (report_dir / "audit-checklist.delta.json").write_text(
1241
- '{"template_hash":"th","evidence_hash":"eh","rows_changed":1,"rows_unchanged":0,"changed_attachments":["audit-checklist.json"]}',
1242
- encoding="utf-8",
1243
- )
1244
-
1245
- client = _FakeClient()
1246
- client.current_body = (
1247
- "<h2>Audit Checklist Summary</h2><p>old summary</p>"
1248
- "<h2>Top Findings (Checklist) / Phát hiện nổi bật (Checklist)</h2><p>old findings</p>"
1249
- "<h2>Checklist Tổng hợp</h2><p>old checklist core</p>"
1250
- '<ac:structured-macro ac:name="expand" ac:schema-version="1">'
1251
- '<ac:parameter ac:name="title">Chi tiết lý do và minh chứng</ac:parameter>'
1252
- "<ac:rich-text-body><p>old details</p></ac:rich-text-body></ac:structured-macro>"
1253
- "<h2>Provenance</h2><p>old provenance</p>"
1254
- )
1255
- publisher = ConfluencePublisher(client)
1256
-
1257
- result = await publisher.upload_results(
1258
- report_dir=report_dir,
1259
- parent_page="parent-1",
1260
- page_title="Run 1",
1261
- include_attachments=False,
1262
- update_mode=UpdateMode.INCREMENTAL,
1263
- )
1264
-
1265
- assert result.effective_update_mode == "incremental"
1266
- assert result.fallback_reason is None
1267
- assert "<!-- VDS:SECTION:summary:START -->" in client.current_body
1268
- assert "<!-- VDS:SECTION:checklist_core:START -->" in client.current_body
1269
- assert "old summary" not in client.current_body
1270
- assert "old checklist core" not in client.current_body
1271
-
1272
-
1273
- @pytest.mark.asyncio
1274
- async def test_upload_results_incremental_preserves_visible_checklist_details_sections(tmp_path):
1275
- from vds_audit_orchestrator.publishers.confluence_publisher import UpdateMode
1276
-
1277
- report_dir = tmp_path / "reports"
1278
- report_dir.mkdir(parents=True, exist_ok=True)
1279
- markdown_path = report_dir / "report.md"
1280
- markdown_path.write_text("# Report\n\nContent.", encoding="utf-8")
1281
- (report_dir / "audit-checklist.json").write_text(
1282
- json.dumps(
1283
- {
1284
- "checklist_version": "1.0.0",
1285
- "generated_at": "2026-03-11T00:00:00Z",
1286
- "template_name": "VDS Checklist",
1287
- "template_version": "1.0",
1288
- "template_hash": "th",
1289
- "template_row_count": 1,
1290
- "repository": "test-repo",
1291
- "row_llm_mode": "selective",
1292
- "evidence_hash": "eh",
1293
- "rows": [
1294
- {
1295
- "row_id": "CL-001:row_0",
1296
- "row_index": 0,
1297
- "check_id": "CL-001",
1298
- "requirement_text": "Test requirement",
1299
- "weight_raw": 10.0,
1300
- "weight_adjusted": 10.0,
1301
- "status": "PASS",
1302
- "score_breakdown": {"raw_score": 95.0, "final_score": 95.0},
1303
- "evidence_refs": [{"ref_type": "file_path", "ref_value": "src/main.ts"}],
1304
- "reason": "OK",
1305
- "finding": "Found",
1306
- "provenance": {
1307
- "row_llm_mode": "selective",
1308
- "evaluated_at": "2026-03-11T00:00:00Z",
1309
- "template_hash": "th",
1310
- "evidence_hash": "eh",
1311
- },
1312
- }
1313
- ],
1314
- }
1315
- ),
1316
- encoding="utf-8",
1317
- )
1318
- (report_dir / "audit-checklist.xlsx").write_bytes(b"xlsx-content")
1319
- (report_dir / "workflow-summary.json").write_text('{"overall_score": 88.0}', encoding="utf-8")
1320
- (report_dir / "audit-checklist.meta.json").write_text(
1321
- '{"template_hash":"th","evidence_hash":"eh","row_count":1}',
1322
- encoding="utf-8",
1323
- )
1324
- (report_dir / "audit-checklist.delta.json").write_text(
1325
- '{"template_hash":"th","evidence_hash":"eh","rows_changed":1,"rows_unchanged":0,"changed_attachments":["audit-checklist.json"]}',
1326
- encoding="utf-8",
1327
- )
1328
-
1329
- client = _FakeClient()
1330
- client.current_body = (
1331
- "<h2>Audit Checklist Summary</h2><p>old summary</p>"
1332
- "<h2>Top Findings (Checklist) / Phát hiện nổi bật (Checklist)</h2><p>old findings</p>"
1333
- "<h2>Checklist Tổng hợp</h2><p>old checklist core</p>"
1334
- "<h2>Chi tiết lý do và minh chứng</h2><table><tbody><tr><td>old details</td></tr></tbody></table>"
1335
- "<h2>Provenance</h2><p>old provenance</p>"
1336
- )
1337
- publisher = ConfluencePublisher(client)
1338
-
1339
- result = await publisher.upload_results(
1340
- report_dir=report_dir,
1341
- parent_page="parent-1",
1342
- page_title="Run 1",
1343
- include_attachments=False,
1344
- update_mode=UpdateMode.INCREMENTAL,
1345
- )
1346
-
1347
- assert result.effective_update_mode == "incremental"
1348
- assert result.fallback_reason is None
1349
- assert "<h2>Chi tiết lý do và minh chứng</h2>" in client.current_body
1350
- assert "<th>Phát hiện</th>" in client.current_body
1351
- assert "<th>Minh chứng</th>" in client.current_body
1352
- assert "old details" not in client.current_body
1353
- assert "<!-- VDS:SECTION:checklist_details:START -->" in client.current_body
1354
- storage_html = markdown_path.with_suffix(".storage.html").read_text(encoding="utf-8")
1355
- assert "<h2>Chi tiết lý do và minh chứng</h2>" in storage_html
1356
- assert 'ac:name="expand"' not in storage_html
1357
-
1358
-
1359
- @pytest.mark.asyncio
1360
- async def test_upload_results_incremental_reinserts_missing_checklist_details_section(tmp_path):
1361
- from vds_audit_orchestrator.publishers.confluence_publisher import UpdateMode
1362
-
1363
- report_dir = tmp_path / "reports"
1364
- report_dir.mkdir(parents=True, exist_ok=True)
1365
- markdown_path = report_dir / "report.md"
1366
- markdown_path.write_text("# Report\n\nContent.", encoding="utf-8")
1367
- (report_dir / "audit-checklist.json").write_text(
1368
- json.dumps(
1369
- {
1370
- "checklist_version": "1.0.0",
1371
- "generated_at": "2026-03-11T00:00:00Z",
1372
- "template_name": "VDS Checklist",
1373
- "template_version": "1.0",
1374
- "template_hash": "th",
1375
- "template_row_count": 1,
1376
- "repository": "test-repo",
1377
- "row_llm_mode": "selective",
1378
- "evidence_hash": "eh",
1379
- "rows": [
1380
- {
1381
- "row_id": "CL-001:row_0",
1382
- "row_index": 0,
1383
- "check_id": "CL-001",
1384
- "requirement_text": "Test requirement",
1385
- "weight_raw": 10.0,
1386
- "weight_adjusted": 10.0,
1387
- "status": "PASS",
1388
- "score_breakdown": {"raw_score": 95.0, "final_score": 95.0},
1389
- "evidence_refs": [{"ref_type": "file_path", "ref_value": "src/main.ts"}],
1390
- "reason": "OK",
1391
- "finding": "Found",
1392
- "provenance": {
1393
- "row_llm_mode": "selective",
1394
- "evaluated_at": "2026-03-11T00:00:00Z",
1395
- "template_hash": "th",
1396
- "evidence_hash": "eh",
1397
- },
1398
- }
1399
- ],
1400
- }
1401
- ),
1402
- encoding="utf-8",
1403
- )
1404
- (report_dir / "audit-checklist.xlsx").write_bytes(b"xlsx-content")
1405
- (report_dir / "workflow-summary.json").write_text('{"overall_score": 88.0}', encoding="utf-8")
1406
- (report_dir / "audit-checklist.meta.json").write_text(
1407
- '{"template_hash":"th","evidence_hash":"eh","row_count":1}',
1408
- encoding="utf-8",
1409
- )
1410
- (report_dir / "audit-checklist.delta.json").write_text(
1411
- '{"template_hash":"th","evidence_hash":"eh","rows_changed":1,"rows_unchanged":0,"changed_attachments":["audit-checklist.json"]}',
1412
- encoding="utf-8",
1413
- )
1414
-
1415
- client = _FakeClient()
1416
- client.current_body = (
1417
- "<h2>Audit Checklist Summary</h2><p>old summary</p>"
1418
- "<h2>Top Findings (Checklist) / Phát hiện nổi bật (Checklist)</h2><p>old findings</p>"
1419
- "<h2>Checklist Tổng hợp</h2><p>old checklist core</p>"
1420
- )
1421
- publisher = ConfluencePublisher(client)
1422
-
1423
- result = await publisher.upload_results(
1424
- report_dir=report_dir,
1425
- parent_page="parent-1",
1426
- page_title="Run 1",
1427
- include_attachments=False,
1428
- update_mode=UpdateMode.INCREMENTAL,
1429
- )
1430
-
1431
- assert result.effective_update_mode == "incremental"
1432
- assert result.fallback_reason is None
1433
- assert "<!-- VDS:SECTION:checklist_core:START -->" in client.current_body
1434
- assert "<!-- VDS:SECTION:checklist_details:START -->" in client.current_body
1435
- assert "<h2>Chi tiết lý do và minh chứng</h2>" in client.current_body
1436
- assert "<th>Phát hiện</th>" in client.current_body
1437
- assert "<th>Minh chứng</th>" in client.current_body
1438
- assert "<h2>Checklist Tổng hợp</h2>" in markdown_path.with_suffix(".storage.html").read_text(encoding="utf-8")
1439
-
1440
-
1441
- @pytest.mark.asyncio
1442
- async def test_upload_results_incremental_preserves_markdown_between_details_and_provenance(tmp_path):
1443
- from vds_audit_orchestrator.publishers.confluence_publisher import UpdateMode
1444
-
1445
- report_dir = tmp_path / "reports"
1446
- report_dir.mkdir(parents=True, exist_ok=True)
1447
- markdown_path = report_dir / "report.md"
1448
- markdown_path.write_text("# Repo Report\n\nUpdated markdown body.", encoding="utf-8")
1449
- (report_dir / "audit-checklist.json").write_text(
1450
- json.dumps(
1451
- {
1452
- "checklist_version": "1.0.0",
1453
- "generated_at": "2026-03-11T00:00:00Z",
1454
- "template_name": "VDS Checklist",
1455
- "template_version": "1.0",
1456
- "template_hash": "th",
1457
- "template_row_count": 1,
1458
- "repository": "test-repo",
1459
- "row_llm_mode": "selective",
1460
- "evidence_hash": "eh",
1461
- "rows": [
1462
- {
1463
- "row_id": "CL-001:row_0",
1464
- "row_index": 0,
1465
- "check_id": "CL-001",
1466
- "requirement_text": "Test requirement",
1467
- "weight_raw": 10.0,
1468
- "weight_adjusted": 10.0,
1469
- "status": "PASS",
1470
- "score_breakdown": {"raw_score": 95.0, "final_score": 95.0},
1471
- "evidence_refs": [{"ref_type": "file_path", "ref_value": "src/main.ts"}],
1472
- "reason": "OK",
1473
- "finding": "Found",
1474
- "provenance": {
1475
- "row_llm_mode": "selective",
1476
- "evaluated_at": "2026-03-11T00:00:00Z",
1477
- "template_hash": "th",
1478
- "evidence_hash": "eh",
1479
- },
1480
- }
1481
- ],
1482
- }
1483
- ),
1484
- encoding="utf-8",
1485
- )
1486
- (report_dir / "audit-checklist.xlsx").write_bytes(b"xlsx-content")
1487
- (report_dir / "workflow-summary.json").write_text('{"overall_score": 88.0}', encoding="utf-8")
1488
- (report_dir / "audit-checklist.meta.json").write_text(
1489
- '{"template_hash":"th","evidence_hash":"eh","row_count":1}',
1490
- encoding="utf-8",
1491
- )
1492
- (report_dir / "audit-checklist.delta.json").write_text(
1493
- '{"template_hash":"th","evidence_hash":"eh","rows_changed":1,"rows_unchanged":0,"changed_attachments":["audit-checklist.json"]}',
1494
- encoding="utf-8",
1495
- )
1496
-
1497
- client = _FakeClient()
1498
- client.current_body = (
1499
- "<h2>Audit Checklist Summary</h2><p>old summary</p>"
1500
- "<h2>Top Findings (Checklist) / Phát hiện nổi bật (Checklist)</h2><p>old findings</p>"
1501
- "<h2>Checklist Tổng hợp</h2><p>old checklist core</p>"
1502
- "<h2>Chi tiết lý do và minh chứng</h2><table><tbody><tr><td>old details</td></tr></tbody></table>"
1503
- "<h1>Repo Report</h1><p>keep this markdown section</p>"
1504
- "<h2>Provenance</h2><p>old provenance</p>"
1505
- )
1506
- publisher = ConfluencePublisher(client)
1507
-
1508
- result = await publisher.upload_results(
1509
- report_dir=report_dir,
1510
- parent_page="parent-1",
1511
- page_title="Run 1",
1512
- include_attachments=False,
1513
- update_mode=UpdateMode.INCREMENTAL,
1514
- )
1515
-
1516
- assert result.effective_update_mode == "incremental"
1517
- assert result.fallback_reason is None
1518
- assert "<h1>Repo Report</h1><p>keep this markdown section</p>" in client.current_body
1519
- assert "<h2>Chi tiết lý do và minh chứng</h2>" in client.current_body
1520
- assert "old details" not in client.current_body
1521
-
1522
-
1523
- @pytest.mark.asyncio
1524
- async def test_upload_results_incremental_handles_literal_unicode_escape_sequences(tmp_path):
1525
- from vds_audit_orchestrator.publishers.confluence_publisher import UpdateMode
1526
-
1527
- report_dir = tmp_path / "reports"
1528
- report_dir.mkdir(parents=True, exist_ok=True)
1529
- (report_dir / "report.md").write_text("# Repo Report\n\nContent.", encoding="utf-8")
1530
- (report_dir / "audit-checklist.json").write_text(
1531
- json.dumps(
1532
- {
1533
- "checklist_version": "1.0.0",
1534
- "generated_at": "2026-03-11T00:00:00Z",
1535
- "template_name": "VDS Checklist",
1536
- "template_version": "1.0",
1537
- "template_hash": "th",
1538
- "template_row_count": 1,
1539
- "repository": "test-repo",
1540
- "row_llm_mode": "selective",
1541
- "evidence_hash": "eh",
1542
- "rows": [
1543
- {
1544
- "row_id": "CL-001:row_0",
1545
- "row_index": 0,
1546
- "check_id": "CL-001",
1547
- "requirement_text": "Test requirement",
1548
- "weight_raw": 10.0,
1549
- "weight_adjusted": 10.0,
1550
- "status": "FAIL",
1551
- "score_breakdown": {"raw_score": 40.0, "final_score": 40.0},
1552
- "evidence_refs": [
1553
- {
1554
- "ref_type": "doc",
1555
- "ref_value": "chunk:abc",
1556
- "excerpt": '"C\\\\u00f3 grounding"',
1557
- }
1558
- ],
1559
- "reason": "Timeout fallback excerpt kept literal escape text.",
1560
- "finding": "Found",
1561
- "provenance": {
1562
- "row_llm_mode": "selective",
1563
- "evaluated_at": "2026-03-11T00:00:00Z",
1564
- "template_hash": "th",
1565
- "evidence_hash": "eh",
1566
- },
1567
- }
1568
- ],
1569
- }
1570
- ),
1571
- encoding="utf-8",
1572
- )
1573
- (report_dir / "audit-checklist.xlsx").write_bytes(b"xlsx-content")
1574
- (report_dir / "workflow-summary.json").write_text('{"overall_score": 40.0}', encoding="utf-8")
1575
- (report_dir / "audit-checklist.meta.json").write_text(
1576
- '{"template_hash":"th","evidence_hash":"eh","row_count":1}',
1577
- encoding="utf-8",
1578
- )
1579
- (report_dir / "audit-checklist.delta.json").write_text(
1580
- '{"template_hash":"th","evidence_hash":"eh","rows_changed":1,"rows_unchanged":0,"changed_attachments":["audit-checklist.json"]}',
1581
- encoding="utf-8",
1582
- )
1583
-
1584
- client = _FakeClient()
1585
- client.current_body = (
1586
- "<h2>Audit Checklist Summary</h2><p>old summary</p>"
1587
- "<h2>Top Findings (Checklist) / Phát hiện nổi bật (Checklist)</h2><p>old findings</p>"
1588
- "<h2>Checklist Tổng hợp</h2><p>old checklist core</p>"
1589
- "<h2>Chi tiết lý do và minh chứng</h2><table><tbody><tr><td>old details</td></tr></tbody></table>"
1590
- "<h2>Provenance</h2><p>old provenance</p>"
1591
- )
1592
- publisher = ConfluencePublisher(client)
1593
-
1594
- result = await publisher.upload_results(
1595
- report_dir=report_dir,
1596
- parent_page="parent-1",
1597
- page_title="Run 1",
1598
- include_attachments=False,
1599
- update_mode=UpdateMode.INCREMENTAL,
1600
- )
1601
-
1602
- assert result.effective_update_mode == "incremental"
1603
- assert result.fallback_reason is None
1604
- assert "\\u00f3" in client.current_body
1605
-
1606
-
1607
- @pytest.mark.asyncio
1608
- async def test_upload_results_incremental_falls_back_when_existing_checklist_sections_have_no_new_checklist(tmp_path):
1609
- from vds_audit_orchestrator.publishers.confluence_publisher import UpdateMode
1610
-
1611
- report_dir = tmp_path / "reports"
1612
- report_dir.mkdir(parents=True, exist_ok=True)
1613
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
1614
- (report_dir / "audit-checklist.meta.json").write_text(
1615
- '{"template_hash":"th","evidence_hash":"eh","row_count":10}',
1616
- encoding="utf-8",
1617
- )
1618
- (report_dir / "audit-checklist.delta.json").write_text(
1619
- '{"template_hash":"th","evidence_hash":"eh","rows_changed":1,"rows_unchanged":9}',
1620
- encoding="utf-8",
1621
- )
1622
-
1623
- client = _FakeClient()
1624
- client.current_body = (
1625
- "<!-- VDS:SECTION:summary:START --><p>old summary</p><!-- VDS:SECTION:summary:END -->"
1626
- "<!-- VDS:SECTION:checklist_core:START --><p>old checklist core</p><!-- VDS:SECTION:checklist_core:END -->"
1627
- "<!-- VDS:SECTION:checklist_details:START --><p>old checklist details</p><!-- VDS:SECTION:checklist_details:END -->"
1628
- )
1629
- publisher = ConfluencePublisher(client)
1630
-
1631
- result = await publisher.upload_results(
1632
- report_dir=report_dir,
1633
- parent_page="parent-1",
1634
- page_title="Run 1",
1635
- include_attachments=False,
1636
- update_mode=UpdateMode.INCREMENTAL,
1637
- )
1638
-
1639
- assert result.effective_update_mode == "full"
1640
- assert result.fallback_reason == "incremental_missing_checklist_for_existing_sections"
1641
-
1642
-
1643
- @pytest.mark.asyncio
1644
- async def test_upload_results_incremental_skips_attachment_when_remote_hash_matches(tmp_path):
1645
- from vds_audit_orchestrator.publishers.confluence_publisher import UpdateMode
1646
-
1647
- report_dir = tmp_path / "reports"
1648
- report_dir.mkdir(parents=True, exist_ok=True)
1649
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
1650
- payload = json.dumps(
1651
- {
1652
- "checklist_version": "1.0.0",
1653
- "generated_at": "2026-03-11T00:00:00Z",
1654
- "template_name": "VDS Checklist",
1655
- "template_version": "1.0",
1656
- "template_hash": "th",
1657
- "template_row_count": 0,
1658
- "repository": "test-repo",
1659
- "row_llm_mode": "selective",
1660
- "evidence_hash": "eh",
1661
- "rows": [],
1662
- }
1663
- )
1664
- (report_dir / "audit-checklist.json").write_text(payload, encoding="utf-8")
1665
- (report_dir / "workflow-summary.json").write_text('{"overall_score": 85.0}', encoding="utf-8")
1666
- (report_dir / "audit-checklist.meta.json").write_text(
1667
- '{"template_hash":"th","evidence_hash":"eh","row_count":10}',
1668
- encoding="utf-8",
1669
- )
1670
- (report_dir / "audit-checklist.delta.json").write_text(
1671
- '{"template_hash":"th","evidence_hash":"eh","rows_changed":0,"rows_unchanged":10,"changed_attachments":["audit-checklist.json"]}',
1672
- encoding="utf-8",
1673
- )
1674
-
1675
- import hashlib
1676
-
1677
- local_hash = hashlib.sha256(payload.encode("utf-8")).hexdigest()
1678
- client = _FakeClient()
1679
- client.attachments = [
1680
- {"id": "att-json", "title": "audit-checklist.json", "metadata": {"comment": f"sha256:{local_hash}"}}
1681
- ]
1682
- publisher = ConfluencePublisher(client)
1683
-
1684
- result = await publisher.upload_results(
1685
- report_dir=report_dir,
1686
- parent_page="parent-1",
1687
- page_title="Run 1",
1688
- include_attachments=True,
1689
- update_mode=UpdateMode.INCREMENTAL,
1690
- )
1691
-
1692
- assert result.effective_update_mode == "incremental"
1693
- assert result.counters["attachments_updated"] == 0
1694
- assert result.counters["attachments_skipped"] >= 1
1695
- assert client.update_attachment_calls == []
1696
-
1697
-
1698
- @pytest.mark.asyncio
1699
- async def test_update_run_page_incremental_retries_version_conflict(tmp_path):
1700
- class _VersionConflictOnceClient(_FakeClient):
1701
- def __init__(self) -> None:
1702
- super().__init__()
1703
- self._version_number = 5
1704
- self._conflict_raised = False
1705
-
1706
- async def get_content_page(self, page_id: str, *, expand: str | None = None) -> dict[str, object]:
1707
- return {
1708
- "version": {"number": self._version_number},
1709
- "space": {"key": "VDS"},
1710
- "body": {"storage": {"value": self.current_body}},
1711
- }
1712
-
1713
- async def update_page(
1714
- self,
1715
- page_id: str,
1716
- *,
1717
- title: str | None = None,
1718
- body_file: Path | None = None,
1719
- version: int | None = None,
1720
- ) -> dict[str, object]:
1721
- self.update_page_calls.append(
1722
- {"page_id": page_id, "title": title, "body_file": body_file, "version": version}
1723
- )
1724
- if not self._conflict_raised and body_file and str(body_file).endswith(".incremental.storage.html"):
1725
- self._conflict_raised = True
1726
- self._version_number = 6
1727
- raise DataSourceError(
1728
- "Confluence operation failed: update_page",
1729
- context={"error": "409 Conflict: version mismatch"},
1730
- )
1731
- if body_file and body_file.exists():
1732
- self.current_body = body_file.read_text(encoding="utf-8")
1733
- if isinstance(version, int):
1734
- self._version_number = version
1735
- return {"id": page_id}
1736
-
1737
- report_dir = tmp_path / "reports"
1738
- report_dir.mkdir(parents=True, exist_ok=True)
1739
- markdown = report_dir / "report.md"
1740
- markdown.write_text("# Report\n\nContent.", encoding="utf-8")
1741
- (report_dir / "workflow-summary.json").write_text(
1742
- '{"agent_results":[{"agent":"SecurityAgent","findings":[{"type":"security","description":"X","location":"Y"}]}]}',
1743
- encoding="utf-8",
1744
- )
1745
- (report_dir / "audit-checklist.json").write_text(
1746
- json.dumps(
1747
- {
1748
- "checklist_version": "1.0.0",
1749
- "generated_at": "2026-03-11T00:00:00Z",
1750
- "template_name": "VDS Checklist",
1751
- "template_version": "1.0",
1752
- "template_hash": "th",
1753
- "template_row_count": 0,
1754
- "repository": "test-repo",
1755
- "row_llm_mode": "selective",
1756
- "evidence_hash": "eh",
1757
- "rows": [],
1758
- }
1759
- ),
1760
- encoding="utf-8",
1761
- )
1762
-
1763
- client = _VersionConflictOnceClient()
1764
- publisher = ConfluencePublisher(client)
1765
-
1766
- updated, reason = await publisher.update_run_page_incremental(
1767
- page_id="run-1",
1768
- title="Run 1",
1769
- report_dir=report_dir,
1770
- markdown_path=markdown,
1771
- )
1772
-
1773
- assert updated is True
1774
- assert reason is None
1775
- assert len(client.update_page_calls) == 2
1776
- assert client.update_page_calls[0]["version"] == 6
1777
- assert client.update_page_calls[1]["version"] == 7
1778
-
1779
-
1780
- @pytest.mark.asyncio
1781
- async def test_upload_results_incremental_falls_back_when_version_conflicts_exhausted(tmp_path):
1782
- from vds_audit_orchestrator.publishers.confluence_publisher import UpdateMode
1783
-
1784
- class _VersionConflictAlwaysClient(_FakeClient):
1785
- async def update_page(
1786
- self,
1787
- page_id: str,
1788
- *,
1789
- title: str | None = None,
1790
- body_file: Path | None = None,
1791
- version: int | None = None,
1792
- ) -> dict[str, object]:
1793
- self.update_page_calls.append(
1794
- {"page_id": page_id, "title": title, "body_file": body_file, "version": version}
1795
- )
1796
- if body_file and str(body_file).endswith(".incremental.storage.html"):
1797
- raise DataSourceError(
1798
- "Confluence operation failed: update_page",
1799
- context={"error": "HTTP 409 conflict on version"},
1800
- )
1801
- if body_file and body_file.exists():
1802
- self.current_body = body_file.read_text(encoding="utf-8")
1803
- return {"id": page_id}
1804
-
1805
- report_dir = tmp_path / "reports"
1806
- report_dir.mkdir(parents=True, exist_ok=True)
1807
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
1808
- (report_dir / "workflow-summary.json").write_text(
1809
- '{"agent_results":[{"agent":"SecurityAgent","findings":[{"type":"security","description":"X","location":"Y"}]}]}',
1810
- encoding="utf-8",
1811
- )
1812
- (report_dir / "audit-checklist.json").write_text(
1813
- json.dumps(
1814
- {
1815
- "checklist_version": "1.0.0",
1816
- "generated_at": "2026-03-11T00:00:00Z",
1817
- "template_name": "VDS Checklist",
1818
- "template_version": "1.0",
1819
- "template_hash": "th",
1820
- "template_row_count": 0,
1821
- "repository": "test-repo",
1822
- "row_llm_mode": "selective",
1823
- "evidence_hash": "eh",
1824
- "rows": [],
1825
- }
1826
- ),
1827
- encoding="utf-8",
1828
- )
1829
- (report_dir / "audit-checklist.meta.json").write_text(
1830
- '{"template_hash":"th","evidence_hash":"eh","row_count":10}',
1831
- encoding="utf-8",
1832
- )
1833
- (report_dir / "audit-checklist.delta.json").write_text(
1834
- '{"template_hash":"th","evidence_hash":"eh","rows_changed":1,"rows_unchanged":9}',
1835
- encoding="utf-8",
1836
- )
1837
-
1838
- client = _VersionConflictAlwaysClient()
1839
- publisher = ConfluencePublisher(client)
1840
-
1841
- result = await publisher.upload_results(
1842
- report_dir=report_dir,
1843
- parent_page="parent-1",
1844
- page_title="Run 1",
1845
- include_attachments=False,
1846
- update_mode=UpdateMode.INCREMENTAL,
1847
- )
1848
-
1849
- assert result.update_mode == "incremental"
1850
- assert result.effective_update_mode == "full"
1851
- assert result.fallback_reason == "incremental_version_conflict_retry_exhausted"
1852
- assert len(client.update_page_calls) == 4
1853
-
1854
-
1855
- @pytest.mark.asyncio
1856
- async def test_attachments_index_preserves_rich_body_content(tmp_path):
1857
- """Regression: attachments index must not overwrite rich page body (TSK-940.74).
1858
-
1859
- Before the fix, get_page() was called without expand='body.storage', returning
1860
- an empty body. The update_page() then overwrote the rich content with just
1861
- the attachments index table.
1862
- """
1863
- report_dir = tmp_path / "reports"
1864
- report_dir.mkdir(parents=True, exist_ok=True)
1865
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
1866
- (report_dir / "report.json").write_text("{}", encoding="utf-8")
1867
-
1868
- rich_body = (
1869
- "<h1>Score Summary</h1><p>Overall: 85%</p>"
1870
- "<h2>Priority Actions</h2><ul><li>Fix auth</li></ul>"
1871
- "<h2>Checklist</h2><table><tr><td>Row 1</td></tr></table>"
1872
- )
1873
- client = _FakeClient()
1874
- client.current_body = rich_body
1875
- publisher = ConfluencePublisher(client)
1876
-
1877
- result = await publisher.upload_results(
1878
- report_dir=report_dir,
1879
- parent_page="parent-1",
1880
- page_title="Run 1",
1881
- include_attachments=True,
1882
- include_attachments_index=True,
1883
- )
1884
-
1885
- assert result.page_id == "run-1"
1886
- # The update_page call for the main body + the attachments index update = 2 calls
1887
- # The second call (attachments index) must preserve the rich body
1888
- if len(client.update_page_calls) >= 2:
1889
- index_update = client.update_page_calls[-1]
1890
- body_file = index_update.get("body_file")
1891
- if isinstance(body_file, Path) and body_file.exists():
1892
- written_html = body_file.read_text(encoding="utf-8")
1893
- # Rich body content MUST be preserved
1894
- assert "Score Summary" in written_html, "Rich body content was overwritten by attachments index"
1895
- assert "Priority Actions" in written_html, "Priority Actions section was lost"
1896
- assert "Checklist" in written_html, "Checklist section was lost"
1897
-
1898
-
1899
- @pytest.mark.asyncio
1900
- async def test_attachments_index_skips_overwrite_when_body_empty(tmp_path):
1901
- """Regression: if get_page returns empty body despite expand, skip the overwrite."""
1902
- report_dir = tmp_path / "reports"
1903
- report_dir.mkdir(parents=True, exist_ok=True)
1904
- (report_dir / "report.md").write_text("# Report\n\nContent.", encoding="utf-8")
1905
- (report_dir / "report.json").write_text("{}", encoding="utf-8")
1906
-
1907
- class _EmptyBodyClient(_FakeClient):
1908
- """Client that returns empty body from get_page regardless of expand."""
1909
-
1910
- async def get_page(self, page_id: str, *, expand: str | None = None) -> dict[str, object] | None:
1911
- return {"id": page_id, "body": {"storage": {"value": ""}}, "version": {"number": 5}}
1912
-
1913
- client = _EmptyBodyClient()
1914
- publisher = ConfluencePublisher(client)
1915
-
1916
- result = await publisher.upload_results(
1917
- report_dir=report_dir,
1918
- parent_page="parent-1",
1919
- page_title="Run 1",
1920
- include_attachments=True,
1921
- include_attachments_index=True,
1922
- )
1923
-
1924
- assert result.page_id == "run-1"
1925
- # Main body update happens (1 call), but the attachments index update
1926
- # should be skipped because get_page returned an empty body.storage.
1927
- assert len(client.update_page_calls) == 1, (
1928
- "Expected only 1 update_page call (main body); attachments index should be skipped when body is empty"
1929
- )
1930
-
1931
-
1932
- # ---------------------------------------------------------------------------
1933
- # G-4: Section append mode (_append_to_section)
1934
- # ---------------------------------------------------------------------------
1935
-
1936
-
1937
- class TestAppendToSection:
1938
- """G-4: Verify _append_to_section inserts content before the END marker."""
1939
-
1940
- def _publisher(self) -> ConfluencePublisher:
1941
- return ConfluencePublisher(_FakeClient())
1942
-
1943
- def test_append_to_existing_section(self):
1944
- publisher = self._publisher()
1945
- body = "<!-- VDS:SECTION:summary:START -->\n<p>existing content</p>\n<!-- VDS:SECTION:summary:END -->"
1946
- updated, changed = publisher._append_to_section(body, "summary", "<p>new row</p>")
1947
- assert changed is True
1948
- assert "<p>existing content</p>" in updated
1949
- assert "<p>new row</p>" in updated
1950
- # The new content must appear before the END marker
1951
- end_pos = updated.index("<!-- VDS:SECTION:summary:END -->")
1952
- new_pos = updated.index("<p>new row</p>")
1953
- assert new_pos < end_pos
1954
- # The existing content must still precede the new content
1955
- existing_pos = updated.index("<p>existing content</p>")
1956
- assert existing_pos < new_pos
1957
-
1958
- def test_append_preserves_start_marker(self):
1959
- publisher = self._publisher()
1960
- body = "<!-- VDS:SECTION:top_findings:START -->\n<p>old findings</p>\n<!-- VDS:SECTION:top_findings:END -->"
1961
- updated, changed = publisher._append_to_section(body, "top_findings", "<tr><td>new</td></tr>")
1962
- assert changed is True
1963
- assert "<!-- VDS:SECTION:top_findings:START -->" in updated
1964
- assert "<!-- VDS:SECTION:top_findings:END -->" in updated
1965
-
1966
- def test_append_returns_false_when_section_missing(self):
1967
- publisher = self._publisher()
1968
- body = "<p>no sections here</p>"
1969
- updated, changed = publisher._append_to_section(body, "summary", "<p>new</p>")
1970
- assert changed is False
1971
- assert updated == body
1972
-
1973
- def test_append_does_not_affect_other_sections(self):
1974
- publisher = self._publisher()
1975
- body = (
1976
- "<!-- VDS:SECTION:summary:START -->\n<p>summary</p>\n<!-- VDS:SECTION:summary:END -->\n"
1977
- "<!-- VDS:SECTION:top_findings:START -->\n<p>findings</p>\n<!-- VDS:SECTION:top_findings:END -->"
1978
- )
1979
- updated, changed = publisher._append_to_section(body, "summary", "<p>appended</p>")
1980
- assert changed is True
1981
- # top_findings should remain untouched
1982
- assert "<p>findings</p>" in updated
1983
- assert updated.count("<!-- VDS:SECTION:top_findings:START -->") == 1
1984
- assert updated.count("<!-- VDS:SECTION:top_findings:END -->") == 1
1985
-
1986
- def test_append_multiple_times(self):
1987
- publisher = self._publisher()
1988
- body = (
1989
- "<!-- VDS:SECTION:checklist_core:START -->\n<tr><td>row1</td></tr>\n<!-- VDS:SECTION:checklist_core:END -->"
1990
- )
1991
- body, ok1 = publisher._append_to_section(body, "checklist_core", "<tr><td>row2</td></tr>")
1992
- assert ok1 is True
1993
- body, ok2 = publisher._append_to_section(body, "checklist_core", "<tr><td>row3</td></tr>")
1994
- assert ok2 is True
1995
- # All three rows should be present in order
1996
- assert body.index("row1") < body.index("row2") < body.index("row3")
1997
- # Still properly enclosed
1998
- assert "<!-- VDS:SECTION:checklist_core:START -->" in body
1999
- assert "<!-- VDS:SECTION:checklist_core:END -->" in body
2000
-
2001
-
2002
- # ---------------------------------------------------------------------------
2003
- # G-5: Section read-back (_extract_section_content / read_section)
2004
- # ---------------------------------------------------------------------------
2005
-
2006
-
2007
- class TestExtractSectionContent:
2008
- """G-5: Verify _extract_section_content extracts inner content between markers."""
2009
-
2010
- def _publisher(self) -> ConfluencePublisher:
2011
- return ConfluencePublisher(_FakeClient())
2012
-
2013
- def test_extract_simple_section(self):
2014
- publisher = self._publisher()
2015
- body = "<!-- VDS:SECTION:summary:START -->\n<p>summary content</p>\n<!-- VDS:SECTION:summary:END -->"
2016
- result = publisher._extract_section_content(body, "summary")
2017
- assert result is not None
2018
- assert "<p>summary content</p>" in result
2019
-
2020
- def test_extract_returns_none_when_missing(self):
2021
- publisher = self._publisher()
2022
- body = "<p>no sections</p>"
2023
- result = publisher._extract_section_content(body, "summary")
2024
- assert result is None
2025
-
2026
- def test_extract_specific_section_from_multi_section_body(self):
2027
- publisher = self._publisher()
2028
- body = (
2029
- "<!-- VDS:SECTION:summary:START -->\n<p>summary</p>\n<!-- VDS:SECTION:summary:END -->\n"
2030
- "<!-- VDS:SECTION:top_findings:START -->\n<p>findings here</p>\n<!-- VDS:SECTION:top_findings:END -->"
2031
- )
2032
- result = publisher._extract_section_content(body, "top_findings")
2033
- assert result is not None
2034
- assert "<p>findings here</p>" in result
2035
- assert "<p>summary</p>" not in result
2036
-
2037
- def test_extract_multiline_content(self):
2038
- publisher = self._publisher()
2039
- body = (
2040
- "<!-- VDS:SECTION:checklist_details:START -->\n"
2041
- "<table>\n"
2042
- "<tr><td>row 1</td></tr>\n"
2043
- "<tr><td>row 2</td></tr>\n"
2044
- "</table>\n"
2045
- "<!-- VDS:SECTION:checklist_details:END -->"
2046
- )
2047
- result = publisher._extract_section_content(body, "checklist_details")
2048
- assert result is not None
2049
- assert "<tr><td>row 1</td></tr>" in result
2050
- assert "<tr><td>row 2</td></tr>" in result
2051
- assert "<table>" in result
2052
-
2053
- def test_extract_empty_section(self):
2054
- publisher = self._publisher()
2055
- body = "<!-- VDS:SECTION:summary:START --><!-- VDS:SECTION:summary:END -->"
2056
- result = publisher._extract_section_content(body, "summary")
2057
- assert result is not None
2058
- assert result == ""
2059
-
2060
-
2061
- @pytest.mark.asyncio
2062
- async def test_read_section_fetches_and_extracts():
2063
- """G-5: read_section fetches page via API and extracts section content."""
2064
- client = _FakeClient()
2065
- client.current_body = "<!-- VDS:SECTION:summary:START -->\n<p>remote summary</p>\n<!-- VDS:SECTION:summary:END -->"
2066
- publisher = ConfluencePublisher(client)
2067
- result = await publisher.read_section("page-123", "summary")
2068
- assert result is not None
2069
- assert "<p>remote summary</p>" in result
2070
-
2071
-
2072
- @pytest.mark.asyncio
2073
- async def test_read_section_returns_none_when_section_absent():
2074
- """G-5: read_section returns None when section key is not in page body."""
2075
- client = _FakeClient()
2076
- client.current_body = "<p>no sections</p>"
2077
- publisher = ConfluencePublisher(client)
2078
- result = await publisher.read_section("page-123", "nonexistent")
2079
- assert result is None
2080
-
2081
-
2082
- @pytest.mark.asyncio
2083
- async def test_read_section_returns_none_when_body_empty():
2084
- """G-5: read_section returns None when page has empty body."""
2085
-
2086
- class _EmptyBodyClient(_FakeClient):
2087
- async def get_content_page(self, page_id: str, *, expand: str | None = None) -> dict[str, object]:
2088
- return {"version": {"number": 1}, "body": {"storage": {"value": ""}}}
2089
-
2090
- publisher = ConfluencePublisher(_EmptyBodyClient())
2091
- result = await publisher.read_section("page-123", "summary")
2092
- assert result is None
2093
-
2094
-
2095
- # ---------------------------------------------------------------------------
2096
- # FR-172: Degraded-mode skip guards in ConfluencePublisher
2097
- # ---------------------------------------------------------------------------
2098
-
2099
-
2100
- @pytest.mark.asyncio
2101
- async def test_upload_results_skips_when_client_degraded(tmp_path: Path) -> None:
2102
- """upload_results() returns early with fallback_reason='degraded' when client is degraded."""
2103
- report_dir = tmp_path / "reports"
2104
- report_dir.mkdir()
2105
- (report_dir / "report.md").write_text("# Report", encoding="utf-8")
2106
-
2107
- client = _FakeClient()
2108
- client.is_degraded = True
2109
- publisher = ConfluencePublisher(client)
2110
-
2111
- result = await publisher.upload_results(
2112
- report_dir=report_dir,
2113
- parent_page="parent-1",
2114
- page_title="Audit Results - test-repo",
2115
- )
2116
-
2117
- assert result.fallback_reason == "degraded"
2118
- assert result.page_id == ""
2119
- assert result.page_url is None
2120
- # No Confluence API calls were made
2121
- assert client.create_page_calls == []
2122
- assert client.update_page_calls == []
2123
-
2124
-
2125
- @pytest.mark.asyncio
2126
- async def test_upload_results_proceeds_when_not_degraded(tmp_path: Path) -> None:
2127
- """upload_results() proceeds normally when client.is_degraded is False."""
2128
- report_dir = tmp_path / "reports"
2129
- report_dir.mkdir()
2130
- (report_dir / "report.md").write_text("# Report", encoding="utf-8")
2131
-
2132
- client = _FakeClient()
2133
- # is_degraded is False by default
2134
- publisher = ConfluencePublisher(client)
2135
-
2136
- # Should attempt Confluence calls (may raise due to fake client limitations,
2137
- # but must NOT short-circuit to degraded early return)
2138
- try:
2139
- result = await publisher.upload_results(
2140
- report_dir=report_dir,
2141
- parent_page="parent-1",
2142
- page_title="Audit Results - test-repo",
2143
- )
2144
- assert result.fallback_reason != "degraded"
2145
- except Exception:
2146
- # Any error is fine — the key assertion is that degraded guard was NOT triggered
2147
- pass
2148
-
2149
-
2150
- @pytest.mark.asyncio
2151
- async def test_publish_project_aggregate_skips_when_client_degraded(tmp_path: Path) -> None:
2152
- """publish_project_aggregate() returns early with fallback_reason='degraded'."""
2153
- report_dir = tmp_path / "project-reports"
2154
- report_dir.mkdir()
2155
- # No project-readiness.json needed — degraded check fires before file I/O
2156
-
2157
- client = _FakeClient()
2158
- client.is_degraded = True
2159
- publisher = ConfluencePublisher(client)
2160
-
2161
- result = await publisher.publish_project_aggregate(
2162
- report_dir=report_dir,
2163
- parent_page="parent-1",
2164
- page_title="Project Analysis - test-proj",
2165
- )
2166
-
2167
- assert result.fallback_reason == "degraded"
2168
- assert result.page_id == ""
2169
- assert result.page_url is None
2170
- assert client.create_page_calls == []
2171
- assert client.update_page_calls == []