@ngocsangairvds/vsaf 3.2.13 → 3.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1441) hide show
  1. package/bin/vsaf.js +13 -0
  2. package/package.json +1 -1
  3. package/src/config.js +167 -0
  4. package/src/global.js +34 -51
  5. package/src/utils.js +44 -1
  6. package/tools/vds-scripts/Makefile +9 -31
  7. package/tools/vds-scripts/docker/docker-compose.cli.yml +1 -117
  8. package/tools/vds-scripts/docker/docker-compose.services.yml +1 -40
  9. package/tools/vds-scripts/docker/infrastructure/init-schemas.sql +0 -34
  10. package/tools/vds-scripts/docker/infrastructure/pgbouncer/pgbouncer.ini +2 -6
  11. package/tools/vds-scripts/pyproject.toml +1 -33
  12. package/tools/vds-scripts/uv.lock +80 -1651
  13. package/tools/vds-scripts/vds_cli/pyproject.toml +3 -0
  14. package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +1 -127
  15. package/tools/vds-scripts/vds_cli/src/vds_cli/commands/lint_cli.py +1 -20
  16. package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +0 -100
  17. package/tools/vds-scripts/vds_cli/tests/conftest.py +0 -2
  18. package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +0 -25
  19. package/tools/vds-scripts/vds_cli/tests/unit/test_lint_cli.py +2 -2
  20. package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +0 -2
  21. package/tools/vds-scripts/CLOSURE.md +0 -340
  22. package/tools/vds-scripts/ECOSYSTEM-CHANGELOG.md +0 -52
  23. package/tools/vds-scripts/ECOSYSTEM-DOCS.md +0 -602
  24. package/tools/vds-scripts/ECOSYSTEM_ALIGNMENT.md +0 -133
  25. package/tools/vds-scripts/ENV-HYGIENE-OPS-NOTE.md +0 -65
  26. package/tools/vds-scripts/INVESTIGATION-cloud-401.md +0 -103
  27. package/tools/vds-scripts/MEM0_2.0_API_REFERENCE.md +0 -238
  28. package/tools/vds-scripts/PACKAGE_P125B_IMPLEMENTATION_SUMMARY.md +0 -131
  29. package/tools/vds-scripts/PHASE-MERGE-SUMMARY.md +0 -121
  30. package/tools/vds-scripts/PHASES-3-ARCHIVE.md +0 -59
  31. package/tools/vds-scripts/PROJECT_COMPLETION_SUMMARY.md +0 -45
  32. package/tools/vds-scripts/SEARCH-CRASH-REPRO.md +0 -51
  33. package/tools/vds-scripts/analyze_hexagonal.py +0 -217
  34. package/tools/vds-scripts/analyze_profiles.py +0 -60
  35. package/tools/vds-scripts/audit-checklist.xlsx +0 -0
  36. package/tools/vds-scripts/audit_orchestrator/.audit_approvals/approvals_index.json +0 -1
  37. package/tools/vds-scripts/audit_orchestrator/.env.example +0 -85
  38. package/tools/vds-scripts/audit_orchestrator/.github/workflows/audit.yml +0 -47
  39. package/tools/vds-scripts/audit_orchestrator/Dockerfile +0 -92
  40. package/tools/vds-scripts/audit_orchestrator/GOOGLE_SHEETS_IMPLEMENTATION_SUMMARY.md +0 -218
  41. package/tools/vds-scripts/audit_orchestrator/PHASE3_INTEGRATION_SUMMARY.md +0 -268
  42. package/tools/vds-scripts/audit_orchestrator/PHASE7-MERGE-SUMMARY.md +0 -174
  43. package/tools/vds-scripts/audit_orchestrator/README.md +0 -1573
  44. package/tools/vds-scripts/audit_orchestrator/TSK-168-IMPLEMENTATION-SUMMARY.md +0 -191
  45. package/tools/vds-scripts/audit_orchestrator/TSK-196-IMPLEMENTATION-SUMMARY.md +0 -201
  46. package/tools/vds-scripts/audit_orchestrator/alembic/env.py +0 -37
  47. package/tools/vds-scripts/audit_orchestrator/alembic/script.py.mako +0 -28
  48. package/tools/vds-scripts/audit_orchestrator/alembic/versions/0001_initial_audit_state_schema.py +0 -1260
  49. package/tools/vds-scripts/audit_orchestrator/alembic.ini +0 -68
  50. package/tools/vds-scripts/audit_orchestrator/config/category-mapping.json +0 -81
  51. package/tools/vds-scripts/audit_orchestrator/config/profile-timeouts.yaml +0 -17
  52. package/tools/vds-scripts/audit_orchestrator/create_sample.py +0 -55
  53. package/tools/vds-scripts/audit_orchestrator/data/corpus_accuracy_report.json +0 -17
  54. package/tools/vds-scripts/audit_orchestrator/data/exemplar_quality_report.json +0 -1606
  55. package/tools/vds-scripts/audit_orchestrator/data/instruction_plan_fixtures.json +0 -163
  56. package/tools/vds-scripts/audit_orchestrator/data/requirement_exemplars.json +0 -3443
  57. package/tools/vds-scripts/audit_orchestrator/data/requirement_scope_fixtures.json +0 -172
  58. package/tools/vds-scripts/audit_orchestrator/debug_rg.py +0 -46
  59. package/tools/vds-scripts/audit_orchestrator/demo_code_pack.py +0 -127
  60. package/tools/vds-scripts/audit_orchestrator/docs/AGENT_SDK_SELECTION_SPEC.md +0 -720
  61. package/tools/vds-scripts/audit_orchestrator/docs/API.md +0 -804
  62. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_ANALYSIS_APPROACH.md +0 -1041
  63. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_SCORING_EVOLUTION_SPEC.md +0 -868
  64. package/tools/vds-scripts/audit_orchestrator/docs/DEPLOYMENT.md +0 -778
  65. package/tools/vds-scripts/audit_orchestrator/docs/LLM_AGENT_AUDIT_SPEC.md +0 -721
  66. package/tools/vds-scripts/audit_orchestrator/docs/LLM_CONTENT_ANALYSIS_SPEC.md +0 -1143
  67. package/tools/vds-scripts/audit_orchestrator/docs/LSP_SETUP_GUIDE.md +0 -221
  68. package/tools/vds-scripts/audit_orchestrator/docs/MULTI_REPO_AUDIT_SPEC.md +0 -951
  69. package/tools/vds-scripts/audit_orchestrator/docs/OLLAMA_EMBEDDINGS_SETUP.md +0 -119
  70. package/tools/vds-scripts/audit_orchestrator/docs/PHASE32_REAL_BENCHMARK_2026-02-08.md +0 -66
  71. package/tools/vds-scripts/audit_orchestrator/docs/PHASE_64_TO_92_HISTORICAL_SPEC.md +0 -1772
  72. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-flow-trace.md +0 -201
  73. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-verification.md +0 -124
  74. package/tools/vds-scripts/audit_orchestrator/docs/phase152-hierarchical-query-surface.md +0 -46
  75. package/tools/vds-scripts/audit_orchestrator/examples/bitbucket_metadata_example.json +0 -50
  76. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/README.md +0 -68
  77. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase117_phase118_shared_state.sql +0 -64
  78. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase154_published_pages.sql +0 -28
  79. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_dispatch_tables.sql +0 -94
  80. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_events.sql +0 -91
  81. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_scope_snapshots.sql +0 -24
  82. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_status_view.sql +0 -22
  83. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase169_dispatch_observability.sql +0 -55
  84. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/state_repair_hardening.sql +0 -24
  85. package/tools/vds-scripts/audit_orchestrator/pyproject.toml +0 -211
  86. package/tools/vds-scripts/audit_orchestrator/pyrightconfig.json +0 -51
  87. package/tools/vds-scripts/audit_orchestrator/pytest.ini +0 -37
  88. package/tools/vds-scripts/audit_orchestrator/reproduce_scanner.py +0 -40
  89. package/tools/vds-scripts/audit_orchestrator/scripts/README.md +0 -116
  90. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_crawl_modes.py +0 -455
  91. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_dspy.py +0 -513
  92. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_nlp_accuracy.py +0 -138
  93. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_retrieval_modes.py +0 -176
  94. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_upload_update_mode.py +0 -167
  95. package/tools/vds-scripts/audit_orchestrator/scripts/build_check.py +0 -76
  96. package/tools/vds-scripts/audit_orchestrator/scripts/check_live_progress.py +0 -61
  97. package/tools/vds-scripts/audit_orchestrator/scripts/cli_integration_test.py +0 -400
  98. package/tools/vds-scripts/audit_orchestrator/scripts/index_workspace.py +0 -178
  99. package/tools/vds-scripts/audit_orchestrator/scripts/inspect_route_conformance.py +0 -196
  100. package/tools/vds-scripts/audit_orchestrator/scripts/monitor_postgres.py +0 -145
  101. package/tools/vds-scripts/audit_orchestrator/scripts/optimize_audit.py +0 -462
  102. package/tools/vds-scripts/audit_orchestrator/scripts/verify.py +0 -673
  103. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase111_requirement_analysis.py +0 -375
  104. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase117_cross_repo_evidence.py +0 -77
  105. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase121_short_circuit.py +0 -680
  106. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase122_instruction_handling.py +0 -478
  107. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase125_skill_integration.py +0 -832
  108. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_36.py +0 -394
  109. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_37.py +0 -58
  110. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/__init__.py +0 -17
  111. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/__init__.py +0 -29
  112. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/_langchain_warnings.py +0 -17
  113. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/agentic_investigator.py +0 -4130
  114. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/approval.py +0 -490
  115. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_loop_hooks.py +0 -107
  116. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_state.py +0 -50
  117. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/base.py +0 -4035
  118. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_agent.py +0 -667
  119. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_helpers.py +0 -236
  120. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_prompts.py +0 -146
  121. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/docs_agent.py +0 -1234
  122. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/langgraph_workflow.py +0 -2002
  123. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/pydantic_base.py +0 -1227
  124. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/requirement_analysis_agent.py +0 -593
  125. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_agent.py +0 -1829
  126. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_scanner.py +0 -686
  127. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/skill_tools.py +0 -204
  128. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/synthesis_agent.py +0 -1463
  129. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_efficiency_guard.py +0 -609
  130. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_registry.py +0 -3822
  131. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/__init__.py +0 -52
  132. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/evidence_corpus.py +0 -385
  133. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/filesystem.py +0 -1134
  134. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/lsp.py +0 -458
  135. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/mcp_toolset.py +0 -491
  136. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/skills_toolset.py +0 -997
  137. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/vector_evidence.py +0 -842
  138. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/usage_tracker.py +0 -682
  139. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/visualization.py +0 -303
  140. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/analyze_cmds.py +0 -892
  141. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/__init__.py +0 -15
  142. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/service.py +0 -171
  143. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/__init__.py +0 -20
  144. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/base.py +0 -60
  145. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/__init__.py +0 -6
  146. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/checks.py +0 -257
  147. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/__init__.py +0 -10
  148. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/checks.py +0 -78
  149. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/__init__.py +0 -6
  150. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/file_checks.py +0 -133
  151. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/__init__.py +0 -17
  152. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/api_docs_check.py +0 -80
  153. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/readme_check.py +0 -76
  154. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/security_docs_check.py +0 -78
  155. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/registry.py +0 -402
  156. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/__init__.py +0 -10
  157. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/checks.py +0 -276
  158. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli.py +0 -12
  159. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_common.py +0 -128
  160. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_impl.py +0 -9826
  161. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/bitbucket_cli_client.py +0 -187
  162. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/confluence_cli_client.py +0 -977
  163. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/sonarqube_cli_client.py +0 -28
  164. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/__init__.py +0 -21
  165. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/base.py +0 -25
  166. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_downloader.py +0 -644
  167. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_metadata.py +0 -133
  168. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/checklist_parser.py +0 -180
  169. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/__init__.py +0 -31
  170. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/bitbucket_probe.py +0 -443
  171. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/confluence_probe.py +0 -365
  172. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/freshness_evaluator.py +0 -330
  173. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/material_completeness_service.py +0 -1079
  174. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/confluence_collector.py +0 -259
  175. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/diagram_extractor.py +0 -280
  176. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/enrichment_extractor.py +0 -200
  177. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/evidence_cache.py +0 -35
  178. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/git_collector.py +0 -148
  179. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/graphify_collector.py +0 -171
  180. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/image_extractor.py +0 -359
  181. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/linked_page_tracker.py +0 -120
  182. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/markdown_converter.py +0 -344
  183. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_cache.py +0 -1252
  184. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_downloader.py +0 -1165
  185. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/orchestrator.py +0 -168
  186. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/registry_parser.py +0 -3063
  187. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/requirements.py +0 -70
  188. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/runner.py +0 -119
  189. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/sonarqube_collector.py +0 -113
  190. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config.py +0 -1943
  191. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/__init__.py +0 -23
  192. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/discovery.py +0 -90
  193. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/environment_resolver.py +0 -56
  194. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/evidence.py +0 -78
  195. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/models.py +0 -73
  196. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/precedence.py +0 -10
  197. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/redaction.py +0 -20
  198. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/confluence_connectivity.py +0 -140
  199. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/corpus_cmds.py +0 -278
  200. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/__init__.py +0 -7
  201. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/alembic_filters.py +0 -57
  202. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/__init__.py +0 -29
  203. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/diataxis_validator.py +0 -687
  204. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/doctor_cmds.py +0 -3295
  205. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/__init__.py +0 -5
  206. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/evaluation.py +0 -301
  207. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/modules.py +0 -172
  208. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/runtime.py +0 -836
  209. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/signatures.py +0 -406
  210. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/__init__.py +0 -192
  211. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/ad_hoc_analyzer.py +0 -399
  212. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/aggregator.py +0 -220
  213. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/auditor.py +0 -504
  214. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_evidence_cache.py +0 -111
  215. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_processor.py +0 -4776
  216. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/calibration.py +0 -217
  217. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_generator.py +0 -1201
  218. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_projection.py +0 -192
  219. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_scoping.py +0 -221
  220. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checkpoint.py +0 -159
  221. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cl003_shared_lib_guard.py +0 -194
  222. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/companion_context_service.py +0 -445
  223. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/confluence_checklist_contract.py +0 -7425
  224. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cross_check_rules.py +0 -213
  225. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/deterministic_evaluator.py +0 -237
  226. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/drift_detector.py +0 -157
  227. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/dspy_requirement_classifier.py +0 -640
  228. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_assembler.py +0 -407
  229. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_collector.py +0 -119
  230. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_diversity.py +0 -101
  231. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/gap_analyzer.py +0 -549
  232. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/graduated.py +0 -185
  233. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/grounding_validator.py +0 -287
  234. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_analyzer.py +0 -882
  235. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_compliance.py +0 -172
  236. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/llm_row_evaluator.py +0 -9270
  237. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/loader.py +0 -1070
  238. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/manual_check_config.py +0 -136
  239. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/mapping.py +0 -269
  240. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/multi_judge.py +0 -65
  241. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/phase120_checklist_update.py +0 -416
  242. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/profile_scorer.py +0 -427
  243. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_evidence_context.py +0 -449
  244. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_query_service.py +0 -155
  245. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_store.py +0 -383
  246. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_topology.py +0 -1920
  247. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/provider_failure_classifier.py +0 -778
  248. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_cli_helpers.py +0 -341
  249. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_extractor.py +0 -303
  250. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_synthesizer.py +0 -730
  251. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/regression_guard.py +0 -138
  252. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/repo_type_classifier.py +0 -297
  253. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_analysis.py +0 -1433
  254. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_classification.py +0 -1725
  255. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/result_merger.py +0 -814
  256. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/route_matrix.py +0 -267
  257. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator.py +0 -9437
  258. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_runtime.py +0 -1270
  259. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_types.py +0 -2102
  260. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/rubric.py +0 -592
  261. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/scorer.py +0 -1239
  262. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/section_packs.py +0 -645
  263. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/skill_recommendation.py +0 -1183
  264. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/stability_harness.py +0 -207
  265. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/target_selector.py +0 -841
  266. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/telemetry.py +0 -347
  267. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/template_analyzer.py +0 -469
  268. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/token_tracker.py +0 -111
  269. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/tool_first_planner.py +0 -7905
  270. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/topology_query_service.py +0 -80
  271. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/validator.py +0 -449
  272. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/weight_policy.py +0 -464
  273. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/errors.py +0 -430
  274. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/extract_cmds.py +0 -4887
  275. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/identity.py +0 -146
  276. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/__init__.py +0 -52
  277. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/baseline.py +0 -378
  278. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/change_analyzer.py +0 -407
  279. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/delta_report.py +0 -189
  280. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/diff_detector.py +0 -301
  281. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/integrations/__init__.py +0 -3
  282. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/__init__.py +0 -50
  283. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/audit_schemas.py +0 -459
  284. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/codex_oauth.py +0 -340
  285. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/cost_tracker.py +0 -288
  286. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/engine.py +0 -751
  287. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/evaluator.py +0 -245
  288. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/__init__.py +0 -32
  289. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/api_docs_evaluation.py +0 -25
  290. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/gap_analysis.py +0 -31
  291. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/instruction_templates.py +0 -634
  292. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/readme_evaluation.py +0 -25
  293. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/row_evaluation.py +0 -247
  294. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/security_docs_evaluation.py +0 -25
  295. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/template_analysis.py +0 -25
  296. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts.py +0 -0
  297. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/provider.py +0 -626
  298. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/logging_config.py +0 -577
  299. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/__init__.py +0 -58
  300. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/default_checklist_mapping.json +0 -18
  301. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/vietnamese_checklist_mapping.json +0 -38
  302. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/misc_cmds.py +0 -4689
  303. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/__init__.py +0 -153
  304. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/calibration.py +0 -98
  305. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/checklist.py +0 -921
  306. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/completeness.py +0 -309
  307. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enrichment.py +0 -58
  308. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enums.py +0 -97
  309. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/evidence.py +0 -351
  310. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/findings.py +0 -381
  311. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/gaps.py +0 -299
  312. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/graph.py +0 -42
  313. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/multi_judge.py +0 -50
  314. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/readiness.py +0 -309
  315. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/registry.py +0 -386
  316. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/reporting.py +0 -32
  317. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/task.py +0 -549
  318. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/template.py +0 -477
  319. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/__init__.py +0 -31
  320. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/metrics.py +0 -404
  321. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/parse_cmds.py +0 -608
  322. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/pdf_cmds.py +0 -208
  323. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/performance_gates.py +0 -224
  324. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/phase151_projection.py +0 -84
  325. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/__init__.py +0 -65
  326. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/detection.py +0 -842
  327. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/models.py +0 -474
  328. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/__init__.py +0 -1
  329. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_confluence_macros.py +0 -145
  330. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_field_sanitizer.py +0 -25
  331. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_table_builder.py +0 -63
  332. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_vietnamese_templates.py +0 -103
  333. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/bitbucket_link_resolver.py +0 -34
  334. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/checklist_renderer.py +0 -483
  335. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/confluence_publisher.py +0 -3048
  336. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/hierarchy_publisher.py +0 -213
  337. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/live_data_injector.py +0 -152
  338. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/macro_builder.py +0 -101
  339. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/markdown_converter.py +0 -154
  340. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/priority_renderer.py +0 -133
  341. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/project_aggregate_renderer.py +0 -423
  342. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/readiness_renderer.py +0 -186
  343. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_hierarchy_renderer.py +0 -382
  344. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_renderer.py +0 -683
  345. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/report_cmds.py +0 -788
  346. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/__init__.py +0 -13
  347. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/aggregation_report.py +0 -86
  348. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/checklist_generator.py +0 -425
  349. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/excel_generator.py +0 -599
  350. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/gap_report.py +0 -131
  351. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/json_generator.py +0 -188
  352. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/markdown_generator.py +0 -595
  353. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/__init__.py +0 -154
  354. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/collector.py +0 -61
  355. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/department_builder.py +0 -77
  356. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/errors.py +0 -9
  357. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/md_renderer.py +0 -386
  358. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_models.py +0 -95
  359. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_writer.py +0 -27
  360. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/repo_project_builders.py +0 -274
  361. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/readiness_report.py +0 -447
  362. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/reporting.py +0 -94
  363. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/sarif_generator.py +0 -519
  364. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/runtime_profiles.py +0 -98
  365. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/__init__.py +0 -29
  366. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/seed_loader.py +0 -561
  367. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/__init__.py +0 -5
  368. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/skill_routing.py +0 -312
  369. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/__init__.py +0 -0
  370. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/base.py +0 -110
  371. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/bitbucket.py +0 -129
  372. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/git_url.py +0 -60
  373. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/github.py +0 -75
  374. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/local.py +0 -58
  375. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/spec_sync_validator.py +0 -15
  376. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/__init__.py +0 -6285
  377. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/readiness_helpers.py +0 -74
  378. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/skill_readiness.py +0 -487
  379. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/store.py +0 -12927
  380. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state_cmds.py +0 -1868
  381. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/__init__.py +0 -0
  382. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/repo_sync.py +0 -409
  383. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync_cmds.py +0 -1247
  384. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/__init__.py +0 -3
  385. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/debug_bundle.py +0 -214
  386. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/validators/checklist_validator.py +0 -342
  387. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflow_cmds.py +0 -19147
  388. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/__init__.py +0 -9
  389. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/_test_audit_daily_batch.py +0 -192
  390. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_daily_batch.py +0 -308
  391. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_deep_monthly.py +0 -193
  392. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_drift_scan.py +0 -178
  393. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_security_daily.py +0 -183
  394. package/tools/vds-scripts/audit_orchestrator/templates/sample_audit_template.xlsx +0 -0
  395. package/tools/vds-scripts/audit_orchestrator/tests/__init__.py +0 -0
  396. package/tools/vds-scripts/audit_orchestrator/tests/_helpers.py +0 -32
  397. package/tools/vds-scripts/audit_orchestrator/tests/collectors/__init__.py +0 -0
  398. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/__init__.py +0 -0
  399. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_bitbucket_probe.py +0 -403
  400. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_confluence_probe.py +0 -423
  401. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_bitbucket_downloader.py +0 -289
  402. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_image_extractor.py +0 -260
  403. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_markdown_converter.py +0 -57
  404. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_cache.py +0 -197
  405. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_downloader.py +0 -550
  406. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser.py +0 -3514
  407. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_department_entry.py +0 -214
  408. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_flow.py +0 -200
  409. package/tools/vds-scripts/audit_orchestrator/tests/conftest.py +0 -988
  410. package/tools/vds-scripts/audit_orchestrator/tests/engine/__init__.py +0 -0
  411. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_calibration.py +0 -48
  412. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_confluence_checklist_phase22_helpers.py +0 -6065
  413. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_multi_judge.py +0 -62
  414. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_stability_harness.py +0 -61
  415. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_structured_metadata.py +0 -419
  416. package/tools/vds-scripts/audit_orchestrator/tests/factories/__init__.py +0 -0
  417. package/tools/vds-scripts/audit_orchestrator/tests/factories/models.py +0 -534
  418. package/tools/vds-scripts/audit_orchestrator/tests/factories/templates.py +0 -241
  419. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/__init__.py +0 -0
  420. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/__init__.py +0 -0
  421. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/compressed.drawio +0 -2
  422. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/mockup.bmpr +0 -0
  423. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/simple.drawio +0 -26
  424. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/__init__.py +0 -0
  425. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/__init__.py +0 -0
  426. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_cli.json +0 -26
  427. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_direct.json +0 -24
  428. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_cli.json +0 -14
  429. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_direct.json +0 -12
  430. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/__init__.py +0 -0
  431. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_cli.json +0 -7
  432. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_direct.json +0 -7
  433. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_cli.json +0 -11
  434. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_direct.json +0 -7
  435. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/__init__.py +0 -0
  436. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_cli.json +0 -12
  437. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_direct.json +0 -12
  438. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/requirement_strategy_phase115.json +0 -118
  439. package/tools/vds-scripts/audit_orchestrator/tests/integration/__init__.py +0 -0
  440. package/tools/vds-scripts/audit_orchestrator/tests/integration/conftest.py +0 -107
  441. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/__init__.py +0 -0
  442. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/expected_outcomes.md +0 -50
  443. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/__init__.py +0 -0
  444. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/auth.py +0 -27
  445. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/config.py +0 -16
  446. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/db.py +0 -24
  447. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/main.py +0 -18
  448. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/__init__.py +0 -1
  449. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/utils.py +0 -22
  450. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_checklist_template.json +0 -110
  451. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/__init__.py +0 -0
  452. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/code_evidence_pack.json +0 -40
  453. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/manifest.json +0 -49
  454. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/__init__.py +0 -0
  455. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/__init__.py +0 -0
  456. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/brd.md +0 -19
  457. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/design.md +0 -32
  458. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/security.md +0 -23
  459. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/srs.md +0 -25
  460. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/test.md +0 -30
  461. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_checkpoint_merge.py +0 -1371
  462. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_decoupling_route_p149.py +0 -176
  463. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_gap_analyzer_batch_p149.py +0 -151
  464. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_hybrid_search.py +0 -799
  465. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_mcp_integration.py +0 -741
  466. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_merge_ranking_p149.py +0 -98
  467. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_modality_mismatch_p149.py +0 -171
  468. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase117_118_storage.py +0 -350
  469. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase121_short_circuit.py +0 -732
  470. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase18_workflow.py +0 -223
  471. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase48_e2e_verification.py +0 -763
  472. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase81_doc_anchor_regression.py +0 -252
  473. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_provider_failure_finding_p149.py +0 -339
  474. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_readiness_e2e.py +0 -430
  475. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_refined_workflow.py +0 -1180
  476. package/tools/vds-scripts/audit_orchestrator/tests/pdf/__init__.py +0 -0
  477. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/__init__.py +0 -0
  478. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/department_renderer.md +0 -24
  479. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/project_renderer.md +0 -8
  480. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/repo_renderer.md +0 -10
  481. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_department_pdf.py +0 -112
  482. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_e2e_pdf.py +0 -135
  483. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_idempotency.py +0 -45
  484. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_md_renderer.py +0 -46
  485. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_cmds.py +0 -97
  486. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_snapshot.py +0 -77
  487. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_writer.py +0 -65
  488. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_project_builder.py +0 -199
  489. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_public_api.py +0 -135
  490. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_repo_builder.py +0 -246
  491. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_workflow_pdf_flags.py +0 -36
  492. package/tools/vds-scripts/audit_orchestrator/tests/property/__init__.py +0 -0
  493. package/tools/vds-scripts/audit_orchestrator/tests/property/test_properties.py +0 -807
  494. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/__init__.py +0 -0
  495. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agent_error_compat.py +0 -38
  496. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agentic_skill_policy_skip.py +0 -234
  497. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_event_stream_logging.py +0 -785
  498. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_timeout_policy.py +0 -277
  499. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_trace_payload_sanitization.py +0 -92
  500. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent.py +0 -2311
  501. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent_re_exports.py +0 -25
  502. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_analysis_helpers.py +0 -94
  503. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_create_audit_agent_reasoning_effort.py +0 -69
  504. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_docs_agent.py +0 -2044
  505. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_langgraph_workflow_efficiency_metrics.py +0 -71
  506. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_output_validators.py +0 -317
  507. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_phase41_toolsets.py +0 -6427
  508. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_ai_models.py +0 -1219
  509. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_base_url_resolution.py +0 -84
  510. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_security_agent.py +0 -2069
  511. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_skill_manager_focus.py +0 -439
  512. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_synthesis_agent.py +0 -1195
  513. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_tool_efficiency_guard_fr120.py +0 -683
  514. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_toolsets.py +0 -716
  515. package/tools/vds-scripts/audit_orchestrator/tests/test_aggregator_p149.py +0 -171
  516. package/tools/vds-scripts/audit_orchestrator/tests/test_alembic_migrations.py +0 -287
  517. package/tools/vds-scripts/audit_orchestrator/tests/test_anchor_allowlist_p149.py +0 -273
  518. package/tools/vds-scripts/audit_orchestrator/tests/test_audit_otel.py +0 -283
  519. package/tools/vds-scripts/audit_orchestrator/tests/test_checklist_models.py +0 -583
  520. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/__init__.py +0 -0
  521. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_base_check.py +0 -211
  522. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_llm_checks.py +0 -126
  523. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/__init__.py +0 -0
  524. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_analyze_command.py +0 -400
  525. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_archive_stale_page_cli.py +0 -217
  526. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_bitbucket_metadata_cli.py +0 -354
  527. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_cli_impl_profile_availability.py +0 -114
  528. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_codex_profile.py +0 -174
  529. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_compare_backends_cli.py +0 -449
  530. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_confluence_parent_auto_resolve.py +0 -451
  531. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_corpus_purge_cli.py +0 -290
  532. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_credentials_preflight.py +0 -106
  533. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_debug_bundle.py +0 -37
  534. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_deprecation_phase157.py +0 -484
  535. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_dispatch_concurrency_diagnostics.py +0 -758
  536. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_check_confluence_cli.py +0 -320
  537. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_codex.py +0 -187
  538. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_corpus_status_cli.py +0 -236
  539. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_correlation_cli.py +0 -128
  540. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_crawl_status_cli.py +0 -192
  541. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_credentials_cli.py +0 -86
  542. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_dispatch_status_cli.py +0 -421
  543. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_heartbeat_phase169.py +0 -173
  544. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_hierarchy_status_cli.py +0 -199
  545. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_locks_cli.py +0 -134
  546. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_logs_follow_cli.py +0 -305
  547. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_migration.py +0 -333
  548. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_profile_availability_cli.py +0 -151
  549. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_skills_policy_cli.py +0 -153
  550. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_evidence_quality_cli.py +0 -307
  551. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_debug_bundle_phase36.py +0 -60
  552. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_git_manifest_cli.py +0 -172
  553. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_file_removal_phase157e.py +0 -770
  554. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_grounding_classifier.py +0 -226
  555. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_logging.py +0 -49
  556. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_materials_cli.py +0 -9127
  557. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_metadata_completeness_phase92.py +0 -364
  558. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parent_dispatch_finalization_phase168f.py +0 -111
  559. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parse_cli.py +0 -590
  560. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase117_118_feature_flags.py +0 -219
  561. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase164_control_plane.py +0 -718
  562. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase165_runner_scripts.py +0 -230
  563. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_preparation_classifications.py +0 -146
  564. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_prepare_cli.py +0 -398
  565. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publication_quality_gate.py +0 -126
  566. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publish_system_doc_cli.py +0 -158
  567. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_query_checklist_cli.py +0 -219
  568. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli.py +0 -673
  569. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli_integration.py +0 -689
  570. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_removed_flags_phase92.py +0 -36
  571. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_report_cmds.py +0 -1317
  572. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_history_index.py +0 -57
  573. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_management.py +0 -1194
  574. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_runtime_profiles_cli.py +0 -1658
  575. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_smart_run_selection.py +0 -1562
  576. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_cli.py +0 -2467
  577. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_migration.py +0 -339
  578. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_sync_repos_debug_artifacts.py +0 -1109
  579. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_upload_results_cli.py +0 -809
  580. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist.py +0 -178
  581. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist_cli.py +0 -110
  582. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_spec_sync_cli.py +0 -519
  583. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_default_parameters_baseline.py +0 -101
  584. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_options.py +0 -7896
  585. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_db_modes.py +0 -6516
  586. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_project_scope.py +0 -831
  587. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_target.py +0 -611
  588. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_lifecycle.py +0 -2488
  589. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_scaffolding.py +0 -96
  590. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_row_key_guard.py +0 -78
  591. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_summary_artifacts.py +0 -1872
  592. package/tools/vds-scripts/audit_orchestrator/tests/test_cli_paths_phase2.py +0 -45
  593. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/__init__.py +0 -0
  594. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_bitbucket_cli_client.py +0 -124
  595. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_cli_parity.py +0 -110
  596. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_confluence_cli_client.py +0 -1149
  597. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_sonarqube_cli_client.py +0 -19
  598. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/__init__.py +0 -0
  599. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/test_linked_page_tracker.py +0 -118
  600. package/tools/vds-scripts/audit_orchestrator/tests/test_companion_context_service.py +0 -230
  601. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/__init__.py +0 -0
  602. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/conftest.py +0 -11
  603. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_compile_artifact.py +0 -465
  604. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique.py +0 -120
  605. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique_e2e.py +0 -75
  606. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_evaluation.py +0 -515
  607. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_runtime_loader.py +0 -537
  608. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_signatures_normalization.py +0 -172
  609. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/__init__.py +0 -0
  610. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_auditor_applicability.py +0 -68
  611. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_generator.py +0 -1252
  612. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_projection.py +0 -54
  613. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_confluence_checklist_projection_consistency.py +0 -1696
  614. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_critique_merger_matrix.py +0 -120
  615. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_check_rules.py +0 -459
  616. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_provider_critique.py +0 -55
  617. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_doc_loader.py +0 -73
  618. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_drift_detector.py +0 -34
  619. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_evidence_collectors.py +0 -93
  620. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_lease_timeout.py +0 -114
  621. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader.py +0 -350
  622. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader_parity.py +0 -179
  623. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_low_confidence_reeval.py +0 -691
  624. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase145a_completion.py +0 -209
  625. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase31_row_consistency_retry_benchmark.py +0 -150
  626. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_profile_detector.py +0 -286
  627. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_regression_guard.py +0 -53
  628. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_result_merger.py +0 -619
  629. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_evaluator.py +0 -15783
  630. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_failover.py +0 -215
  631. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_scorer.py +0 -597
  632. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_skill_breakdown_telemetry_fr137.py +0 -421
  633. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_targeted_auto_merge.py +0 -229
  634. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_failover.py +0 -488
  635. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_telemetry.py +0 -73
  636. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_validator.py +0 -419
  637. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/__init__.py +0 -0
  638. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/test_diff_detector.py +0 -111
  639. package/tools/vds-scripts/audit_orchestrator/tests/test_infra_persistence.py +0 -291
  640. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/__init__.py +0 -0
  641. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/test_phase3_integration.py +0 -516
  642. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/__init__.py +0 -0
  643. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cache.py +0 -670
  644. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_model_builder.py +0 -281
  645. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_oauth.py +0 -330
  646. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_streaming.py +0 -433
  647. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cost_tracker.py +0 -27
  648. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_engine.py +0 -876
  649. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_evaluator.py +0 -212
  650. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_instruction_templates.py +0 -639
  651. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompt_metadata.py +0 -97
  652. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompts.py +0 -660
  653. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider.py +0 -330
  654. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider_contract_sync.py +0 -18
  655. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_reasoning_effort_validation.py +0 -565
  656. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_schemas.py +0 -827
  657. package/tools/vds-scripts/audit_orchestrator/tests/test_logging_config.py +0 -297
  658. package/tools/vds-scripts/audit_orchestrator/tests/test_models/__init__.py +0 -0
  659. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_enums.py +0 -185
  660. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_findings.py +0 -1159
  661. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_project_profile.py +0 -307
  662. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_registry.py +0 -532
  663. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_template.py +0 -708
  664. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/__init__.py +0 -0
  665. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/test_metrics.py +0 -60
  666. package/tools/vds-scripts/audit_orchestrator/tests/test_paths_config_phase2.py +0 -21
  667. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/__init__.py +0 -0
  668. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/test_fr79_performance_guardrails.py +0 -199
  669. package/tools/vds-scripts/audit_orchestrator/tests/test_phase156_hardening.py +0 -498
  670. package/tools/vds-scripts/audit_orchestrator/tests/test_phase93_regression_guards.py +0 -123
  671. package/tools/vds-scripts/audit_orchestrator/tests/test_pipeline_integration.py +0 -517
  672. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/__init__.py +0 -0
  673. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/test_detection.py +0 -146
  674. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/__init__.py +0 -0
  675. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_bitbucket_link_resolver.py +0 -55
  676. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer.py +0 -84
  677. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer_projection.py +0 -97
  678. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_macros.py +0 -58
  679. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_publisher.py +0 -2171
  680. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_evidence_links.py +0 -129
  681. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_field_sanitizer.py +0 -108
  682. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_hierarchy_publisher.py +0 -134
  683. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_incremental_plan_parser.py +0 -62
  684. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_live_data_injector.py +0 -48
  685. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_macro_builder.py +0 -22
  686. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_p161_confluence_optimization.py +0 -168
  687. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_priority_renderer.py +0 -96
  688. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_project_aggregate_renderer.py +0 -364
  689. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_storage_validation.py +0 -273
  690. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_summary_refactor.py +0 -118
  691. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_system_doc_hierarchy.py +0 -50
  692. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_table_builder.py +0 -23
  693. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_vietnamese_templates.py +0 -37
  694. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_wiring_integration.py +0 -290
  695. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/__init__.py +0 -0
  696. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_aggregation_report.py +0 -181
  697. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_checklist_generator.py +0 -258
  698. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_gap_report.py +0 -73
  699. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_json_generator.py +0 -317
  700. package/tools/vds-scripts/audit_orchestrator/tests/test_result_merger_p149.py +0 -347
  701. package/tools/vds-scripts/audit_orchestrator/tests/test_route_mode_p149.py +0 -178
  702. package/tools/vds-scripts/audit_orchestrator/tests/test_rubric_parser.py +0 -179
  703. package/tools/vds-scripts/audit_orchestrator/tests/test_scorer.py +0 -110
  704. package/tools/vds-scripts/audit_orchestrator/tests/test_state/__init__.py +0 -0
  705. package/tools/vds-scripts/audit_orchestrator/tests/test_state/test_sparse_coverage.py +0 -117
  706. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/__init__.py +0 -0
  707. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_langgraph_workflow.py +0 -2072
  708. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_p161_runtime_hardening.py +0 -341
  709. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p149.py +0 -112
  710. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p172.py +0 -126
  711. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_guidance_p150.py +0 -95
  712. package/tools/vds-scripts/audit_orchestrator/tests/unit/__init__.py +0 -0
  713. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/__init__.py +0 -0
  714. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_agentic_investigator_phase115.py +0 -42
  715. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_requirement_analysis_agent.py +0 -412
  716. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_agent_updates.py +0 -131
  717. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_scanner.py +0 -397
  718. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_executor.py +0 -316
  719. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_fallback.py +0 -299
  720. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_policy.py +0 -520
  721. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_telemetry.py +0 -306
  722. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_synthesis_fixes.py +0 -761
  723. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_argument_robustness.py +0 -272
  724. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry.py +0 -2548
  725. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_ast_grep.py +0 -87
  726. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase123_scoping.py +0 -353
  727. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase94_ff.py +0 -445
  728. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_vector_search_phase115.py +0 -35
  729. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_utils.py +0 -1007
  730. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_vector_evidence_toolset.py +0 -622
  731. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/__init__.py +0 -0
  732. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/test_workflow_cli.py +0 -123
  733. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/__init__.py +0 -0
  734. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_cache_guard.py +0 -479
  735. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_checklist_parser_phase120.py +0 -55
  736. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_diagram_extractor.py +0 -467
  737. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_enrichment_extractor.py +0 -59
  738. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_graphify_collector.py +0 -158
  739. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/__init__.py +0 -0
  740. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_completeness.py +0 -563
  741. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_freshness_evaluator.py +0 -493
  742. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_cache_metrics.py +0 -365
  743. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_completeness_service.py +0 -2736
  744. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/__init__.py +0 -0
  745. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_discovery.py +0 -47
  746. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_redaction.py +0 -15
  747. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/__init__.py +0 -0
  748. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_ad_hoc_analyzer.py +0 -576
  749. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_agent_loop.py +0 -1896
  750. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_anchor_filter_cl003.py +0 -181
  751. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_evidence_cache.py +0 -155
  752. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_processor.py +0 -3608
  753. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_contract.py +0 -55
  754. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_scoping.py +0 -371
  755. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_companion_phase123.py +0 -142
  756. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_evidence_phase123.py +0 -249
  757. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_confluence_checklist_contract_export_parity.py +0 -813
  758. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_cross_repo_config_phase122.py +0 -613
  759. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_dspy_requirement_classifier.py +0 -517
  760. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_diversity.py +0 -144
  761. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_truncation.py +0 -108
  762. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_grounding_validator.py +0 -127
  763. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_guidance_injection_phase120.py +0 -105
  764. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_analysis_phase122.py +0 -761
  765. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_pre_filter_phase167.py +0 -334
  766. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_llm_row_evaluator_retries.py +0 -3684
  767. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_loader_phase123.py +0 -345
  768. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_manual_check_gating_phase122.py +0 -474
  769. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_parallel_eval.py +0 -263
  770. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase122_verifier_phase122.py +0 -169
  771. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase166_route_failover.py +0 -437
  772. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_post_eval_cl003_shared_lib.py +0 -267
  773. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_postproc_streaming.py +0 -194
  774. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_pre_eval_gating_phase122.py +0 -362
  775. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_prepare_topology_coverage.py +0 -247
  776. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_private_dns_sanitization_phase104.py +0 -397
  777. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_evidence_context.py +0 -450
  778. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_knowledge_store.py +0 -487
  779. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_topology.py +0 -1142
  780. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_provider_failure_classifier.py +0 -195
  781. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_extractor.py +0 -496
  782. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_synthesizer.py +0 -653
  783. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_repo_type_classifier.py +0 -303
  784. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis.py +0 -508
  785. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_execution_scope.py +0 -239
  786. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase114.py +0 -919
  787. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase115.py +0 -97
  788. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_shared_lib.py +0 -340
  789. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_drift.py +0 -729
  790. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_nlp.py +0 -670
  791. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_scope_phase122.py +0 -615
  792. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_matrix.py +0 -258
  793. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_override.py +0 -141
  794. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_routing_precision.py +0 -650
  795. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_dual_evidence.py +0 -2987
  796. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_instruction_runtime_phase122.py +0 -365
  797. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_runtime.py +0 -830
  798. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_runtime_hardening_phase122.py +0 -225
  799. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoped_na_skip.py +0 -107
  800. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoring_enhancements.py +0 -404
  801. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_retrieval_phase123.py +0 -441
  802. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_routing_phase123.py +0 -279
  803. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_resource_indexing_phase122.py +0 -188
  804. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_recommendation.py +0 -225
  805. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_routing_cl003_shared_lib.py +0 -338
  806. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skills_toolset.py +0 -319
  807. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_stability_metric.py +0 -60
  808. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_target_selector.py +0 -958
  809. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_tracker.py +0 -121
  810. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_wiring.py +0 -119
  811. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_tool_first_planner.py +0 -7103
  812. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_knowledge_persistence.py +0 -332
  813. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_query_service.py +0 -55
  814. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_unverified_ref_retry.py +0 -909
  815. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/__init__.py +0 -0
  816. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_evidence.py +0 -515
  817. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_gaps.py +0 -422
  818. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_readiness.py +0 -428
  819. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/__init__.py +0 -0
  820. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_confluence_hierarchy.py +0 -227
  821. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_project_title_generation.py +0 -335
  822. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_helpers.py +0 -290
  823. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_integration.py +0 -557
  824. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_readiness_renderer.py +0 -381
  825. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_repo_title_consistency.py +0 -266
  826. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_upload_hierarchy_integration.py +0 -470
  827. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/__init__.py +0 -0
  828. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_dspy.py +0 -177
  829. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_nlp_accuracy.py +0 -72
  830. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_retrieval_modes.py +0 -123
  831. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_verify_phase111_requirement_analysis.py +0 -409
  832. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/__init__.py +0 -0
  833. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_chain_cli.py +0 -277
  834. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_loader.py +0 -502
  835. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/__init__.py +0 -0
  836. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/test_skill_routing.py +0 -209
  837. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/__init__.py +0 -0
  838. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_bitbucket_source.py +0 -66
  839. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_non_retryable_markers.py +0 -88
  840. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_repo_info.py +0 -212
  841. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/__init__.py +0 -0
  842. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_completeness.py +0 -598
  843. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_events_contract_phase169.py +0 -100
  844. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_hardening_phase158.py +0 -392
  845. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_persistence_phase157.py +0 -914
  846. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_embedding_client.py +0 -64
  847. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_get_latest_completed_run.py +0 -313
  848. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_heartbeat_phase169.py +0 -109
  849. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_hybrid_search.py +0 -398
  850. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_normalize_url.py +0 -262
  851. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase152_query_surface.py +0 -59
  852. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase98_confluence_document_model.py +0 -202
  853. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_published_pages.py +0 -754
  854. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_readiness_helpers.py +0 -193
  855. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_ledger.py +0 -522
  856. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_management.py +0 -378
  857. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_schema_contract_phase170.py +0 -755
  858. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_cmds.py +0 -231
  859. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_loaders.py +0 -2151
  860. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_run_api.py +0 -2226
  861. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store.py +0 -1435
  862. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch.py +0 -646
  863. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch_status_view.py +0 -181
  864. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_scope.py +0 -213
  865. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_utilization_persist_phase169.py +0 -77
  866. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vds_search.py +0 -263
  867. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_api.py +0 -319
  868. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_runtime.py +0 -175
  869. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_store.py +0 -1756
  870. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/__init__.py +0 -0
  871. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/test_repo_sync.py +0 -257
  872. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_artifact_exclusion.py +0 -119
  873. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_auto_promote_phase158.py +0 -337
  874. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_carry_forward_artifact_filtering.py +0 -317
  875. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_checklist_precache_p160a.py +0 -416
  876. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_cli_decomposition_fr219.py +0 -269
  877. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_code_chunk_carry_forward.py +0 -203
  878. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_coherence.py +0 -180
  879. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_secret_policy.py +0 -522
  880. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_project_id_migration.py +0 -318
  881. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_status_diagnostics.py +0 -239
  882. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_department_priority_ordering.py +0 -131
  883. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_coordinator_phase158.py +0 -402
  884. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_job_identity_p167a.py +0 -238
  885. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_ramp_up_phase171.py +0 -434
  886. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatcher.py +0 -911
  887. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_doc_type_en_inference.py +0 -246
  888. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_early_exit_unchunked_repos.py +0 -111
  889. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors.py +0 -237
  890. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors_taxonomy.py +0 -83
  891. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_chunking_config_phase98.py +0 -73
  892. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_cmds_state_helpers.py +0 -33
  893. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_docs_code_chunking.py +0 -260
  894. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_finalize_dispatch_run_phase168.py +0 -341
  895. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_identity.py +0 -221
  896. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_infrastructure_detection.py +0 -441
  897. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_junction_table_phase95.py +0 -259
  898. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_late_binding_assignment_p167c.py +0 -286
  899. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_misc_cmds_fr224_225_hardening.py +0 -194
  900. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_p172_integration.py +0 -306
  901. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_parent_provider_preflight.py +0 -118
  902. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase92.py +0 -141
  903. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase93.py +0 -50
  904. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase115_search_strategy.py +0 -106
  905. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase154_title_consistency.py +0 -117
  906. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase155_param_forwarding.py +0 -304
  907. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase158_concurrency_defaults.py +0 -207
  908. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_doctor_schema.py +0 -319
  909. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_regression.py +0 -334
  910. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase94_corpus_lifecycle.py +0 -307
  911. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase96_repo_key_migration.py +0 -305
  912. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_pipelined_scheduling.py +0 -130
  913. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_availability_probe.py +0 -616
  914. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_aware_row_timeout.py +0 -102
  915. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_timeout_stagger_p160cd.py +0 -205
  916. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_progress_summary_phase169.py +0 -96
  917. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_registry_checklist_diagnostics.py +0 -124
  918. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_resume_manifest_p167b.py +0 -268
  919. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_risk_mitigations_p160e1.py +0 -348
  920. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_single_row_shards_p160b.py +0 -357
  921. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_state_repo_discovery.py +0 -504
  922. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_sync_metadata_entries.py +0 -57
  923. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_task_models.py +0 -1796
  924. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_utilization_telemetry_p167e.py +0 -259
  925. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_vietnamese_fts_hardening.py +0 -160
  926. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_phase98_enrichment.py +0 -92
  927. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_project_merge_materialization.py +0 -322
  928. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_row_key_migration_guard.py +0 -88
  929. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_short_circuit_phase121.py +0 -564
  930. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_single_target_row_context.py +0 -49
  931. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_zero_result_messaging.py +0 -76
  932. package/tools/vds-scripts/bandit-report.json +0 -2974
  933. package/tools/vds-scripts/brd_orchestrator/README.md +0 -29
  934. package/tools/vds-scripts/brd_orchestrator/pyproject.toml +0 -63
  935. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/__init__.py +0 -17
  936. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/cli.py +0 -187
  937. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/validator.py +0 -121
  938. package/tools/vds-scripts/brd_orchestrator/tests/__init__.py +0 -0
  939. package/tools/vds-scripts/brd_orchestrator/tests/test_cli.py +0 -62
  940. package/tools/vds-scripts/brd_orchestrator/tests/test_validator.py +0 -33
  941. package/tools/vds-scripts/circular_dependency_orchestrator/README.md +0 -30
  942. package/tools/vds-scripts/circular_dependency_orchestrator/pyproject.toml +0 -43
  943. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/__init__.py +0 -16
  944. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/cli.py +0 -904
  945. package/tools/vds-scripts/circular_dependency_orchestrator/tests/__init__.py +0 -0
  946. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/__init__.py +0 -0
  947. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/test_cli.py +0 -354
  948. package/tools/vds-scripts/coverage.json +0 -1
  949. package/tools/vds-scripts/create_pr.py +0 -57
  950. package/tools/vds-scripts/diagram_generator/README.md +0 -663
  951. package/tools/vds-scripts/diagram_generator/ci_validate.sh +0 -16
  952. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.png +0 -0
  953. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.puml +0 -23
  954. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.png +0 -0
  955. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.puml +0 -21
  956. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.png +0 -0
  957. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.puml +0 -14
  958. package/tools/vds-scripts/diagram_generator/examples/github-actions-validate.yml +0 -39
  959. package/tools/vds-scripts/diagram_generator/generate_all_diagrams.py +0 -827
  960. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_diagrams.py +0 -261
  961. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_quick.py +0 -486
  962. package/tools/vds-scripts/diagram_generator/pyproject.toml +0 -28
  963. package/tools/vds-scripts/diagram_generator/render_png.py +0 -59
  964. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/__init__.py +0 -3
  965. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/cli.py +0 -50
  966. package/tools/vds-scripts/diagram_generator/test_c4_hierarchical.py +0 -142
  967. package/tools/vds-scripts/diagram_generator/test_c4_quick.py +0 -131
  968. package/tools/vds-scripts/diagram_generator/tests/__init__.py +0 -0
  969. package/tools/vds-scripts/diagram_generator/tests/test_analyzer_completeness.py +0 -260
  970. package/tools/vds-scripts/diagram_generator/tests/test_c4_syntax_correctness.py +0 -138
  971. package/tools/vds-scripts/diagram_generator/tests/test_component_coverage.py +0 -182
  972. package/tools/vds-scripts/diagram_generator/tests/test_mermaid_output.py +0 -80
  973. package/tools/vds-scripts/diagram_generator/tests/test_png_generation.py +0 -112
  974. package/tools/vds-scripts/diagram_generator/tests/test_scenario_templates.py +0 -15
  975. package/tools/vds-scripts/diagram_generator/tests/test_sequence_accuracy.py +0 -93
  976. package/tools/vds-scripts/diagram_generator/tests/test_structurizr_export.py +0 -177
  977. package/tools/vds-scripts/diagram_generator/tests/test_style_consistency.py +0 -174
  978. package/tools/vds-scripts/diagram_generator/tests/test_usecase_generator.py +0 -201
  979. package/tools/vds-scripts/diagram_generator/tests/test_usecase_integration.py +0 -124
  980. package/tools/vds-scripts/docker/compose.phase2-verification.yml +0 -31
  981. package/tools/vds-scripts/docker-compose.openapi-validator.yml +0 -14
  982. package/tools/vds-scripts/excel_orchestrator/README.md +0 -288
  983. package/tools/vds-scripts/excel_orchestrator/RESEARCH_BASED_UPDATES_REPORT.md +0 -261
  984. package/tools/vds-scripts/excel_orchestrator/add_essential_missing_effort.py +0 -255
  985. package/tools/vds-scripts/excel_orchestrator/adjust_effort_complexity.py +0 -184
  986. package/tools/vds-scripts/excel_orchestrator/brd_analysis_and_task_breakdown.py +0 -632
  987. package/tools/vds-scripts/excel_orchestrator/brd_analysis_comprehensive.py +0 -1029
  988. package/tools/vds-scripts/excel_orchestrator/check_overlaps_and_brd_coverage.py +0 -570
  989. package/tools/vds-scripts/excel_orchestrator/clean_remarks_column.py +0 -127
  990. package/tools/vds-scripts/excel_orchestrator/comprehensive_brd_check.py +0 -322
  991. package/tools/vds-scripts/excel_orchestrator/create_buffered_summary.py +0 -119
  992. package/tools/vds-scripts/excel_orchestrator/create_service_totals_sheet.py +0 -118
  993. package/tools/vds-scripts/excel_orchestrator/examples/basic_operations.py +0 -85
  994. package/tools/vds-scripts/excel_orchestrator/expand_all_tasks.py +0 -341
  995. package/tools/vds-scripts/excel_orchestrator/expand_tasks.py +0 -304
  996. package/tools/vds-scripts/excel_orchestrator/fill_brd_references.py +0 -347
  997. package/tools/vds-scripts/excel_orchestrator/fill_remarks_and_colors.py +0 -132
  998. package/tools/vds-scripts/excel_orchestrator/finalize_brd_and_cleanup.py +0 -295
  999. package/tools/vds-scripts/excel_orchestrator/finalize_brd_coverage.py +0 -327
  1000. package/tools/vds-scripts/excel_orchestrator/fix_all_formulas.py +0 -99
  1001. package/tools/vds-scripts/excel_orchestrator/fix_detail_presentation.py +0 -113
  1002. package/tools/vds-scripts/excel_orchestrator/fix_presentation_and_effort.py +0 -116
  1003. package/tools/vds-scripts/excel_orchestrator/fix_presentation_consistency.py +0 -231
  1004. package/tools/vds-scripts/excel_orchestrator/fix_remarks_matching.py +0 -179
  1005. package/tools/vds-scripts/excel_orchestrator/group_tasks_by_service_id.py +0 -210
  1006. package/tools/vds-scripts/excel_orchestrator/increase_brd_coverage.py +0 -497
  1007. package/tools/vds-scripts/excel_orchestrator/increase_effort_complexity.py +0 -155
  1008. package/tools/vds-scripts/excel_orchestrator/organize_and_deduplicate.py +0 -273
  1009. package/tools/vds-scripts/excel_orchestrator/pyproject.toml +0 -64
  1010. package/tools/vds-scripts/excel_orchestrator/rebuild_all_formulas.py +0 -146
  1011. package/tools/vds-scripts/excel_orchestrator/remove_base_multiplier_and_check_duplicates.py +0 -310
  1012. package/tools/vds-scripts/excel_orchestrator/remove_duplicate_brd_tasks.py +0 -137
  1013. package/tools/vds-scripts/excel_orchestrator/research_based_updates.py +0 -457
  1014. package/tools/vds-scripts/excel_orchestrator/restore_e_values.py +0 -172
  1015. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/__init__.py +0 -5
  1016. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/cli.py +0 -746
  1017. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/config.py +0 -74
  1018. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/converters.py +0 -226
  1019. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/errors.py +0 -88
  1020. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/excel_client.py +0 -443
  1021. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/formatters.py +0 -211
  1022. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/logging.py +0 -57
  1023. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/source_contract.py +0 -29
  1024. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/target_state_status.py +0 -837
  1025. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/ulnc_alignment.py +0 -1291
  1026. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/validators.py +0 -164
  1027. package/tools/vds-scripts/excel_orchestrator/sync_detail_and_total_sheets.py +0 -211
  1028. package/tools/vds-scripts/excel_orchestrator/tests/__init__.py +0 -1
  1029. package/tools/vds-scripts/excel_orchestrator/tests/conftest.py +0 -36
  1030. package/tools/vds-scripts/excel_orchestrator/tests/test_cli.py +0 -383
  1031. package/tools/vds-scripts/excel_orchestrator/tests/test_excel_client.py +0 -129
  1032. package/tools/vds-scripts/excel_orchestrator/tests/test_ulnc_alignment.py +0 -373
  1033. package/tools/vds-scripts/excel_orchestrator/tests/test_validators.py +0 -64
  1034. package/tools/vds-scripts/excel_orchestrator/update_api_database_effort.py +0 -261
  1035. package/tools/vds-scripts/excel_orchestrator/update_buffers_inline.py +0 -115
  1036. package/tools/vds-scripts/excel_orchestrator/update_complex_services_and_add_new.py +0 -336
  1037. package/tools/vds-scripts/excel_orchestrator/update_responsibility_and_fix_rows.py +0 -208
  1038. package/tools/vds-scripts/excel_orchestrator/update_task_breakdown_vietnamese.py +0 -309
  1039. package/tools/vds-scripts/excel_orchestrator/update_vietnamese_and_responsibility.py +0 -415
  1040. package/tools/vds-scripts/excel_orchestrator/verify_brd_coverage_comprehensive.py +0 -401
  1041. package/tools/vds-scripts/hexagonal_orchestrator/README.md +0 -530
  1042. package/tools/vds-scripts/hexagonal_orchestrator/pyproject.toml +0 -48
  1043. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/__init__.py +0 -39
  1044. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/__init__.py +0 -19
  1045. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/base.py +0 -95
  1046. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/fallback.py +0 -614
  1047. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/java.py +0 -372
  1048. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/python.py +0 -437
  1049. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cache.py +0 -331
  1050. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/classifier.py +0 -263
  1051. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cli.py +0 -554
  1052. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/config.py +0 -577
  1053. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/models.py +0 -159
  1054. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/profiler.py +0 -451
  1055. package/tools/vds-scripts/hexagonal_orchestrator/test-config.yaml +0 -38
  1056. package/tools/vds-scripts/hexagonal_orchestrator/tests/__init__.py +0 -1
  1057. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/__init__.py +0 -1
  1058. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driven/persistence/InMemoryUserRepository.java +0 -62
  1059. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driving/api/UserController.java +0 -101
  1060. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/EmailService.java +0 -33
  1061. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/UserRepository.java +0 -45
  1062. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/usecase/CreateUser.java +0 -58
  1063. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/Email.java +0 -80
  1064. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/User.java +0 -98
  1065. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-noncompliant/domain/User.java +0 -64
  1066. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Menu.java +0 -13
  1067. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Product.java +0 -16
  1068. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/__init__.py +0 -1
  1069. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/__init__.py +0 -1
  1070. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/__init__.py +0 -1
  1071. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/email_service.py +0 -60
  1072. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/user_repository.py +0 -78
  1073. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/__init__.py +0 -1
  1074. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/__init__.py +0 -1
  1075. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/user.py +0 -56
  1076. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/__init__.py +0 -1
  1077. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/email.py +0 -63
  1078. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/application/user_service.py +0 -1837
  1079. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/domain/user.py +0 -43
  1080. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cache.py +0 -458
  1081. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_integration.py +0 -942
  1082. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_unit.py +0 -557
  1083. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cross_repo_pollution.py +0 -275
  1084. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_foundation.py +0 -129
  1085. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_integration.py +0 -1524
  1086. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_java_analyzer.py +0 -642
  1087. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_timing_unit.py +0 -60
  1088. package/tools/vds-scripts/intellij_orchestrator/README.md +0 -55
  1089. package/tools/vds-scripts/intellij_orchestrator/pyproject.toml +0 -64
  1090. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/__init__.py +0 -17
  1091. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/cli.py +0 -210
  1092. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/core.py +0 -260
  1093. package/tools/vds-scripts/intellij_orchestrator/tests/__init__.py +0 -1
  1094. package/tools/vds-scripts/intellij_orchestrator/tests/test_cli.py +0 -112
  1095. package/tools/vds-scripts/intellij_orchestrator/tests/test_core.py +0 -83
  1096. package/tools/vds-scripts/links_orchestrator/README.md +0 -63
  1097. package/tools/vds-scripts/links_orchestrator/pyproject.toml +0 -64
  1098. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/__init__.py +0 -10
  1099. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/cli.py +0 -254
  1100. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/validator.py +0 -244
  1101. package/tools/vds-scripts/links_orchestrator/tests/__init__.py +0 -0
  1102. package/tools/vds-scripts/links_orchestrator/tests/test_cli.py +0 -128
  1103. package/tools/vds-scripts/links_orchestrator/tests/test_validator.py +0 -76
  1104. package/tools/vds-scripts/lsp_orchestrator/.dockerignore +0 -69
  1105. package/tools/vds-scripts/lsp_orchestrator/ARCHITECTURE.md +0 -383
  1106. package/tools/vds-scripts/lsp_orchestrator/CODE_QUALITY_IMPROVEMENTS.md +0 -196
  1107. package/tools/vds-scripts/lsp_orchestrator/COMMANDS.md +0 -870
  1108. package/tools/vds-scripts/lsp_orchestrator/Dockerfile +0 -59
  1109. package/tools/vds-scripts/lsp_orchestrator/IMPLEMENTATION_SUMMARY.md +0 -490
  1110. package/tools/vds-scripts/lsp_orchestrator/LSP_ISSUES_AND_FINDINGS.md +0 -380
  1111. package/tools/vds-scripts/lsp_orchestrator/README.md +0 -616
  1112. package/tools/vds-scripts/lsp_orchestrator/SETUP.md +0 -143
  1113. package/tools/vds-scripts/lsp_orchestrator/TEST_COVERAGE_SUMMARY.md +0 -255
  1114. package/tools/vds-scripts/lsp_orchestrator/VERIFICATION_CHECKLIST.md +0 -814
  1115. package/tools/vds-scripts/lsp_orchestrator/docker-compose.yml +0 -102
  1116. package/tools/vds-scripts/lsp_orchestrator/docs/FOR_LLMS.md +0 -401
  1117. package/tools/vds-scripts/lsp_orchestrator/docs/explanation/lsp-response-matching.md +0 -79
  1118. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/automate-with-json.md +0 -159
  1119. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/docker-mode.md +0 -256
  1120. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/navigate-code.md +0 -116
  1121. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/parallel-processing.md +0 -179
  1122. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/project-tool-detection.md +0 -320
  1123. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/type-check-code.md +0 -46
  1124. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/use-daemon-mode.md +0 -78
  1125. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/wsl2-optimization.md +0 -227
  1126. package/tools/vds-scripts/lsp_orchestrator/docs/index.md +0 -88
  1127. package/tools/vds-scripts/lsp_orchestrator/docs/operator-hover-definition.md +0 -143
  1128. package/tools/vds-scripts/lsp_orchestrator/docs/reference/commands.md +0 -581
  1129. package/tools/vds-scripts/lsp_orchestrator/docs/reference/configuration.md +0 -422
  1130. package/tools/vds-scripts/lsp_orchestrator/docs/tutorials/00-quick-start.md +0 -169
  1131. package/tools/vds-scripts/lsp_orchestrator/pyproject.toml +0 -63
  1132. package/tools/vds-scripts/lsp_orchestrator/src/test_file.py +0 -5
  1133. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/__init__.py +0 -3
  1134. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/aggregator.py +0 -340
  1135. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/basedpyright_runner.py +0 -167
  1136. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/cli.py +0 -3370
  1137. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/code_actions.py +0 -79
  1138. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/core.py +0 -3295
  1139. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_client.py +0 -672
  1140. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_manager.py +0 -577
  1141. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_server.py +0 -1040
  1142. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/__init__.py +0 -9
  1143. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/project_detector.py +0 -537
  1144. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/formatters.py +0 -141
  1145. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ipc_protocol.py +0 -225
  1146. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_client.py +0 -957
  1147. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_router.py +0 -335
  1148. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mcp_server.py +0 -181
  1149. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/__init__.py +0 -201
  1150. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_detector.py +0 -646
  1151. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_tools.py +0 -114
  1152. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models.py +0 -399
  1153. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mypy_runner.py +0 -209
  1154. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/protocols.py +0 -52
  1155. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_lsp_client.py +0 -109
  1156. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_runner.py +0 -44
  1157. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/utils.py +0 -959
  1158. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/workspace_indexer.py +0 -1037
  1159. package/tools/vds-scripts/lsp_orchestrator/test_workspace_lsp.py +0 -6
  1160. package/tools/vds-scripts/lsp_orchestrator/tests/__init__.py +0 -1
  1161. package/tools/vds-scripts/lsp_orchestrator/tests/conftest.py +0 -6
  1162. package/tools/vds-scripts/lsp_orchestrator/tests/test_aggregator.py +0 -59
  1163. package/tools/vds-scripts/lsp_orchestrator/tests/test_cli.py +0 -111
  1164. package/tools/vds-scripts/lsp_orchestrator/tests/test_detect_tools_command.py +0 -186
  1165. package/tools/vds-scripts/lsp_orchestrator/tests/test_formatter_linter_detection.py +0 -519
  1166. package/tools/vds-scripts/lsp_orchestrator/tests/test_integration_phase9_10_11.py +0 -367
  1167. package/tools/vds-scripts/lsp_orchestrator/tests/test_mypy_runner.py +0 -482
  1168. package/tools/vds-scripts/lsp_orchestrator/tests/test_package_manager_detection.py +0 -399
  1169. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase10.py +0 -389
  1170. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase11.py +0 -327
  1171. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase12_integration.py +0 -634
  1172. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase9.py +0 -196
  1173. package/tools/vds-scripts/lsp_orchestrator/tests/test_project_detector.py +0 -377
  1174. package/tools/vds-scripts/lsp_orchestrator/tests/test_test_runner_detection.py +0 -549
  1175. package/tools/vds-scripts/lsp_orchestrator/tests/test_type_checker_routing.py +0 -362
  1176. package/tools/vds-scripts/lsp_orchestrator/tests/test_workspace_indexer.py +0 -144
  1177. package/tools/vds-scripts/markdown_orchestrator/README.md +0 -72
  1178. package/tools/vds-scripts/markdown_orchestrator/pyproject.toml +0 -39
  1179. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/__init__.py +0 -5
  1180. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/cli.py +0 -102
  1181. package/tools/vds-scripts/multi_agent_orchestrator/Dockerfile +0 -65
  1182. package/tools/vds-scripts/multi_agent_orchestrator/README.md +0 -306
  1183. package/tools/vds-scripts/multi_agent_orchestrator/postman/README.md +0 -264
  1184. package/tools/vds-scripts/multi_agent_orchestrator/postman/TEST_RESULTS_SUMMARY.md +0 -197
  1185. package/tools/vds-scripts/multi_agent_orchestrator/postman/VDS-Multi-Agent-Orchestrator-API.postman_collection.json +0 -1010
  1186. package/tools/vds-scripts/multi_agent_orchestrator/postman/environments/local-development.postman_environment.json +0 -55
  1187. package/tools/vds-scripts/multi_agent_orchestrator/postman/test-results.json +0 -24146
  1188. package/tools/vds-scripts/multi_agent_orchestrator/pyproject.toml +0 -63
  1189. package/tools/vds-scripts/multi_agent_orchestrator/run_api.py +0 -9
  1190. package/tools/vds-scripts/multi_agent_orchestrator/run_mock_api.py +0 -9
  1191. package/tools/vds-scripts/multi_agent_orchestrator/simple_test.py +0 -53
  1192. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/__init__.py +0 -25
  1193. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/agent_pool.py +0 -433
  1194. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/__init__.py +0 -5
  1195. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/main.py +0 -722
  1196. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/mock_main.py +0 -812
  1197. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/change_log.py +0 -515
  1198. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/cli.py +0 -424
  1199. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/config.py +0 -220
  1200. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/conflict_resolver.py +0 -462
  1201. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/coordinator.py +0 -627
  1202. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/models.py +0 -389
  1203. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/progress_dashboard.py +0 -380
  1204. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/redis_client.py +0 -245
  1205. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/scheduler_subscriber.py +0 -272
  1206. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_manager.py +0 -536
  1207. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_tracking.py +0 -550
  1208. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/vds_ai_memory_client.py +0 -352
  1209. package/tools/vds-scripts/multi_agent_orchestrator/test_complete_system.py +0 -149
  1210. package/tools/vds-scripts/multi_agent_orchestrator/test_infrastructure_only.py +0 -194
  1211. package/tools/vds-scripts/multi_agent_orchestrator/test_integration.py +0 -108
  1212. package/tools/vds-scripts/multi_agent_orchestrator/tests/__init__.py +0 -1
  1213. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_agent_registration_credential_validator.py +0 -223
  1214. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_config.py +0 -210
  1215. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_models.py +0 -195
  1216. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_w9_agent_routes.py +0 -321
  1217. package/tools/vds-scripts/openapi_orchestrator/README.md +0 -197
  1218. package/tools/vds-scripts/openapi_orchestrator/pyproject.toml +0 -106
  1219. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/__init__.py +0 -29
  1220. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/cli.py +0 -345
  1221. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/full_validator.py +0 -183
  1222. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/spec_validator.py +0 -197
  1223. package/tools/vds-scripts/openapi_orchestrator/tests/__init__.py +0 -1
  1224. package/tools/vds-scripts/openapi_orchestrator/tests/test_cli.py +0 -234
  1225. package/tools/vds-scripts/openapi_orchestrator/tests/test_full_validator.py +0 -203
  1226. package/tools/vds-scripts/openapi_orchestrator/tests/test_spec_validator.py +0 -295
  1227. package/tools/vds-scripts/pdf_orchestrator/.dockerignore +0 -93
  1228. package/tools/vds-scripts/pdf_orchestrator/.env.example +0 -40
  1229. package/tools/vds-scripts/pdf_orchestrator/.ruff_rules.py +0 -350
  1230. package/tools/vds-scripts/pdf_orchestrator/.yamllint.yml +0 -43
  1231. package/tools/vds-scripts/pdf_orchestrator/DEVELOPMENT_PLAN.md +0 -80
  1232. package/tools/vds-scripts/pdf_orchestrator/Dockerfile +0 -87
  1233. package/tools/vds-scripts/pdf_orchestrator/README.md +0 -608
  1234. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.md +0 -6
  1235. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.pdf +0 -0
  1236. package/tools/vds-scripts/pdf_orchestrator/config/alertmanager.yml +0 -83
  1237. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.prod.yml +0 -98
  1238. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.yml +0 -40
  1239. package/tools/vds-scripts/pdf_orchestrator/config/redis.conf +0 -78
  1240. package/tools/vds-scripts/pdf_orchestrator/docs/COMPETITIVE_ANALYSIS_REPORT.md +0 -309
  1241. package/tools/vds-scripts/pdf_orchestrator/docs/FEATURES_GUIDE.md +0 -518
  1242. package/tools/vds-scripts/pdf_orchestrator/docs/MULTI_USER_DEPLOYMENT_GUIDE.md +0 -615
  1243. package/tools/vds-scripts/pdf_orchestrator/docs/USER_GUIDE.md +0 -829
  1244. package/tools/vds-scripts/pdf_orchestrator/pyproject.toml +0 -87
  1245. package/tools/vds-scripts/pdf_orchestrator/pytest.ini +0 -71
  1246. package/tools/vds-scripts/pdf_orchestrator/ruff.toml +0 -6
  1247. package/tools/vds-scripts/pdf_orchestrator/scripts/debug_security_report.py +0 -59
  1248. package/tools/vds-scripts/pdf_orchestrator/scripts/demo_library_selector.py +0 -109
  1249. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_project_stats.py +0 -52
  1250. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_styled_pdf.py +0 -95
  1251. package/tools/vds-scripts/pdf_orchestrator/scripts/migrate_render_pdfs.py +0 -285
  1252. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.bat +0 -283
  1253. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.sh +0 -324
  1254. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/__init__.py +0 -5
  1255. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/cli.py +0 -542
  1256. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/config.py +0 -33
  1257. package/tools/vds-scripts/pdf_orchestrator/tests/README.md +0 -650
  1258. package/tools/vds-scripts/pdf_orchestrator/tests/__init__.py +0 -0
  1259. package/tools/vds-scripts/pdf_orchestrator/tests/conftest.py +0 -520
  1260. package/tools/vds-scripts/pdf_orchestrator/tests/requirements.txt +0 -51
  1261. package/tools/vds-scripts/pdf_orchestrator/tests/run_tests.py +0 -659
  1262. package/tools/vds-scripts/pdf_orchestrator/tests/test_config.py +0 -36
  1263. package/tools/vds-scripts/progress_report_orchestrator/Dockerfile +0 -77
  1264. package/tools/vds-scripts/progress_report_orchestrator/README.md +0 -39
  1265. package/tools/vds-scripts/progress_report_orchestrator/alembic/env.py +0 -42
  1266. package/tools/vds-scripts/progress_report_orchestrator/alembic/script.py.mako +0 -28
  1267. package/tools/vds-scripts/progress_report_orchestrator/alembic/versions/0001_initial_progress_schema.py +0 -180
  1268. package/tools/vds-scripts/progress_report_orchestrator/alembic.ini +0 -67
  1269. package/tools/vds-scripts/progress_report_orchestrator/pyproject.toml +0 -67
  1270. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/__init__.py +0 -3
  1271. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/__init__.py +0 -1
  1272. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/endpoint_scanner.py +0 -238
  1273. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/git_activity.py +0 -159
  1274. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/hexagonal.py +0 -100
  1275. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/test_scanner.py +0 -136
  1276. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/cli.py +0 -743
  1277. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/config.py +0 -50
  1278. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/__init__.py +0 -12
  1279. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/alembic_filters.py +0 -64
  1280. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/memory.py +0 -82
  1281. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/__init__.py +0 -1
  1282. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/analysis.py +0 -84
  1283. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/report.py +0 -117
  1284. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/topology.py +0 -101
  1285. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/__init__.py +0 -1
  1286. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/kg_parser.py +0 -252
  1287. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/uc_reader.py +0 -159
  1288. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/__init__.py +0 -1
  1289. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/concurrency.py +0 -39
  1290. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/llm_eval.py +0 -570
  1291. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/report.py +0 -1256
  1292. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/structural.py +0 -384
  1293. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/sync.py +0 -143
  1294. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/__init__.py +0 -5
  1295. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/engine.py +0 -105
  1296. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/templates.py +0 -236
  1297. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/scheduler_subscriber.py +0 -238
  1298. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/README.md +0 -56
  1299. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/__init__.py +0 -1
  1300. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-architecture-reviewer/SKILL.md +0 -67
  1301. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-endpoint-matcher/SKILL.md +0 -67
  1302. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/__init__.py +0 -1
  1303. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/schema.py +0 -625
  1304. package/tools/vds-scripts/progress_report_orchestrator/tests/__init__.py +0 -0
  1305. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/__init__.py +0 -0
  1306. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/.gitkeep +0 -0
  1307. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/__init__.py +0 -0
  1308. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/doc-dependencies.yaml +0 -79
  1309. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-docs.yaml +0 -478
  1310. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-services.yaml +0 -18
  1311. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/registry.yaml +0 -346
  1312. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/phase3_baseline_standard.md +0 -564
  1313. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/__init__.py +0 -0
  1314. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/test_checkpoint.py +0 -276
  1315. package/tools/vds-scripts/progress_report_orchestrator/tests/test_alembic_migrations.py +0 -265
  1316. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/__init__.py +0 -0
  1317. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_analyzers.py +0 -267
  1318. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_bounded_gather.py +0 -176
  1319. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_cli_phase_report.py +0 -119
  1320. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_delta.py +0 -169
  1321. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_error_handling.py +0 -150
  1322. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_gate_exit_codes.py +0 -230
  1323. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_git_activity.py +0 -215
  1324. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_kg_parser.py +0 -267
  1325. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_autodetect.py +0 -183
  1326. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_eval.py +0 -529
  1327. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_memory_integration.py +0 -151
  1328. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_migration_contract.py +0 -254
  1329. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_mode_rendering.py +0 -576
  1330. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_models.py +0 -251
  1331. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_progress_llm_config.py +0 -67
  1332. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_recommendations.py +0 -480
  1333. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_report_enhancements.py +0 -415
  1334. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_resume_reload.py +0 -343
  1335. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_trend_regression.py +0 -294
  1336. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_uc_reader.py +0 -169
  1337. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_valence_gap.py +0 -293
  1338. package/tools/vds-scripts/project-cycle-report.json +0 -14
  1339. package/tools/vds-scripts/project-dependency-graph.json +0 -11361
  1340. package/tools/vds-scripts/project-topology.json +0 -99
  1341. package/tools/vds-scripts/public_interface_boundary_orchestrator/pyproject.toml +0 -18
  1342. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/__init__.py +0 -0
  1343. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/cli.py +0 -232
  1344. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/__init__.py +0 -0
  1345. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/test_cli.py +0 -108
  1346. package/tools/vds-scripts/research_orchestrator/README.md +0 -68
  1347. package/tools/vds-scripts/research_orchestrator/py.typed +0 -0
  1348. package/tools/vds-scripts/research_orchestrator/pyproject.toml +0 -95
  1349. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/__init__.py +0 -3
  1350. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/_env.py +0 -11
  1351. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/cli.py +0 -335
  1352. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/config.py +0 -43
  1353. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/__init__.py +0 -0
  1354. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/models.py +0 -89
  1355. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/scoring.py +0 -102
  1356. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/exceptions.py +0 -78
  1357. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/http_client.py +0 -160
  1358. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/logging.py +0 -49
  1359. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/__init__.py +0 -0
  1360. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/formatters.py +0 -93
  1361. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/py.typed +0 -1
  1362. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/__init__.py +0 -0
  1363. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/build.py +0 -156
  1364. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/format.py +0 -147
  1365. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/__init__.py +0 -0
  1366. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health.py +0 -66
  1367. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health_graph.py +0 -52
  1368. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/registry.py +0 -127
  1369. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/search.py +0 -230
  1370. package/tools/vds-scripts/research_orchestrator/tests/__init__.py +0 -0
  1371. package/tools/vds-scripts/research_orchestrator/tests/conftest.py +0 -53
  1372. package/tools/vds-scripts/research_orchestrator/tests/test_cli.py +0 -222
  1373. package/tools/vds-scripts/research_orchestrator/tests/test_config.py +0 -23
  1374. package/tools/vds-scripts/research_orchestrator/tests/test_exceptions.py +0 -62
  1375. package/tools/vds-scripts/research_orchestrator/tests/test_formatters.py +0 -89
  1376. package/tools/vds-scripts/research_orchestrator/tests/test_graph_integration.py +0 -149
  1377. package/tools/vds-scripts/research_orchestrator/tests/test_http_client.py +0 -134
  1378. package/tools/vds-scripts/research_orchestrator/tests/test_report_build.py +0 -128
  1379. package/tools/vds-scripts/research_orchestrator/tests/test_report_format.py +0 -91
  1380. package/tools/vds-scripts/research_orchestrator/tests/test_scoring.py +0 -95
  1381. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/__init__.py +0 -1
  1382. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_health.py +0 -139
  1383. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_registry.py +0 -135
  1384. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_search.py +0 -238
  1385. package/tools/vds-scripts/run-history.json +0 -26
  1386. package/tools/vds-scripts/schema_converter/README.md +0 -109
  1387. package/tools/vds-scripts/schema_converter/pyproject.toml +0 -37
  1388. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/__init__.py +0 -3
  1389. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/cli.py +0 -50
  1390. package/tools/vds-scripts/schema_converter/tests/__init__.py +0 -0
  1391. package/tools/vds-scripts/schema_converter/tests/test_json_schema_generator.py +0 -115
  1392. package/tools/vds-scripts/schema_converter/tests/test_mermaid_generator.py +0 -112
  1393. package/tools/vds-scripts/schema_converter/tests/test_parser.py +0 -111
  1394. package/tools/vds-scripts/schema_converter/tests/test_plantuml_generator.py +0 -112
  1395. package/tools/vds-scripts/schema_converter/tests/test_plantuml_validator.py +0 -69
  1396. package/tools/vds-scripts/schema_converter/tests/test_prisma_generator.py +0 -113
  1397. package/tools/vds-scripts/schema_converter/tests/test_sql_generator.py +0 -138
  1398. package/tools/vds-scripts/schema_converter/tests/test_typeorm_generator.py +0 -110
  1399. package/tools/vds-scripts/schema_converter/tests/test_validators.py +0 -96
  1400. package/tools/vds-scripts/spec_orchestrator/README.md +0 -13
  1401. package/tools/vds-scripts/spec_orchestrator/pyproject.toml +0 -40
  1402. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/__init__.py +0 -5
  1403. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/cli.py +0 -162
  1404. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/core.py +0 -575
  1405. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/sync.py +0 -306
  1406. package/tools/vds-scripts/spec_orchestrator/tests/__init__.py +0 -0
  1407. package/tools/vds-scripts/spec_orchestrator/tests/test_frontmatter_drift.py +0 -243
  1408. package/tools/vds-scripts/spec_orchestrator/tests/test_sync.py +0 -342
  1409. package/tools/vds-scripts/structure_orchestrator/README.md +0 -60
  1410. package/tools/vds-scripts/structure_orchestrator/pyproject.toml +0 -103
  1411. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/__init__.py +0 -13
  1412. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/cli.py +0 -308
  1413. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/validator.py +0 -257
  1414. package/tools/vds-scripts/structure_orchestrator/tests/__init__.py +0 -0
  1415. package/tools/vds-scripts/structure_orchestrator/tests/test_cli.py +0 -161
  1416. package/tools/vds-scripts/structure_orchestrator/tests/test_helpers.py +0 -115
  1417. package/tools/vds-scripts/structure_orchestrator/tests/test_validator.py +0 -104
  1418. package/tools/vds-scripts/task_orchestrator/README.md +0 -50
  1419. package/tools/vds-scripts/task_orchestrator/__init__.py +0 -18
  1420. package/tools/vds-scripts/task_orchestrator/pyproject.toml +0 -43
  1421. package/tools/vds-scripts/task_orchestrator/scripts/run_excel_sync.py +0 -36
  1422. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/__init__.py +0 -13
  1423. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/audit.py +0 -134
  1424. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/cli.py +0 -127
  1425. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/debug.py +0 -133
  1426. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/normalize.py +0 -113
  1427. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/refine.py +0 -201
  1428. package/tools/vds-scripts/task_orchestrator/tests/__init__.py +0 -0
  1429. package/tools/vds-scripts/task_orchestrator/tests/test_task_orchestrator.py +0 -84
  1430. package/tools/vds-scripts/temp_query_projects.py +0 -2
  1431. package/tools/vds-scripts/test_small.md +0 -1
  1432. package/tools/vds-scripts/text_utils_orchestrator/pyproject.toml +0 -20
  1433. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/__init__.py +0 -7
  1434. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/i18n.py +0 -143
  1435. package/tools/vds-scripts/text_utils_orchestrator/tests/__init__.py +0 -0
  1436. package/tools/vds-scripts/text_utils_orchestrator/tests/test_i18n.py +0 -53
  1437. package/tools/vds-scripts/upgrade_major.py +0 -61
  1438. package/tools/vds-scripts/upgrade_major_v2.py +0 -64
  1439. package/tools/vds-scripts/verify_violations.py +0 -57
  1440. package/tools/vds-scripts/workflow-summary.json +0 -325
  1441. package/tools/vds-scripts/workflow-summary.md +0 -8
@@ -1,1772 +0,0 @@
1
- # Audit Orchestrator - Historical Specs (Phases 64-92)
2
-
3
- This document details the completed functional requirements, designs, and tasks from Phase 64 up through 92.
4
-
5
- ### Phase 88 FR Traceability (Closure)
6
-
7
- - FR-177/FR-178: Direct crawl attachments and linked fallback attachments are chunked and appended to corpus with deterministic lineage metadata before retrieval refresh.
8
- - FR-179: Mobile/native source extensions are included in bounded code chunking coverage with max file-count/size and skip-dir guards preserved.
9
- - FR-180: `attachment_conversion_summary` is emitted in extract-docs project payload with status/format/converter diagnostics.
10
- - FR-180 follow-up: extensionless draw.io/XML payloads are inferred to `.xml` and counted in format diagnostics instead of `(unknown)`.
11
- - FR-180 follow-up: `sync_metadata.artifacts[]` persists attachment `resource_metadata` (`source_format`, `converter`, `discovery`, size/timing) so Postgres state diagnostics can inspect conversion quality without rerunning extraction.
12
- - FR-181: Real-run multi-format probes (Miniapp + DOCX-heavy + PDF-heavy) verify conversion/chunk inclusion across `.pdf/.docx/.xlsx/.xls`.
13
- - FR-181 follow-up: HTML conversion fallback preserves readable Vietnamese content when external HTML conversion emits mojibake text.
14
- - FR-182: Retrieval snapshot stale-pruning + dedupe semantics are preserved and regression-hardened, including empty-chunk refresh behavior.
15
- - FR-183: Corpus diagnostics expose deterministic source/discovery composition through `docs_chunk_summary` and `project_chunk_summary`.
16
- - FR-184: AGENTS/spec/docs/guides/skill sync gate remains green via `validate-spec-sync` with aligned version/status/test baseline, backed by durable repo evidence and CI guard (`scripts/verify_phase_88.py`, `tests/unit/scripts/test_phase88_verification_artifacts.py`).
17
-
18
-
19
- ### NFRs for Phase 86
20
-
21
- - **NFR-T1: Non-regression** - Preserve Phase 84 routing payload and Phase 85 readiness artifacts.
22
- - **NFR-T2: Telemetry completeness** - Emit deterministic diagnostics for all effectiveness controls.
23
- - **NFR-T3: Bounded behavior** - Keep depth/context policies under timeout and budget guardrails.
24
-
25
- ### NFRs for Phase 87
26
-
27
- - **NFR-U1: Selector determinism** - URL/page-ID/storage-key selectors for project parsing must resolve to one canonical project identity with explicit diagnostics.
28
- - **NFR-U2: Direct-project UX** - Commands intended for individual project parsing should not require registry-root indirection.
29
- - **NFR-U3: Documentation parity** - Docs/guides/skills must reflect implemented Phase 87 parsing contracts in the same release.
30
- - **NFR-U4: Legacy elimination clarity** - Deprecated parsing paths must be removed with explicit migration diagnostics, not hidden fallback.
31
-
32
- ### NFRs for Phase 88
33
-
34
- - **NFR-V1: Corpus completeness visibility** - Extract/retrieval artifacts must surface deterministic counts for confluence pages, linked pages, attachments, and code chunks.
35
- - **NFR-V2: Format diagnostics** - Attachment conversion/chunking diagnostics must include format-level and converter-level summaries with explicit failure samples.
36
- - **NFR-V3: Coverage boundedness** - Code extension expansion must remain bounded by existing max file-count/size/skip-dir constraints.
37
- - **NFR-V4: Non-regression** - Phase 84..87 behavior/contracts remain stable while Phase 88 enhancements are added.
38
-
39
- ### NFRs for Phase 89
40
-
41
- - **NFR-W1: Score accuracy** - Repo-type-aware N/A marking must not alter scoring for rows that are genuinely applicable; only structurally inapplicable rows are marked N/A.
42
- - **NFR-W2: Performance non-regression** - Caching and parallelism changes must not degrade correctness or determinism of evaluation outputs.
43
- - **NFR-W3: Bounded concurrency** - Parallel row evaluation must respect LLM backend rate limits and remain configurable via CLI options.
44
- - **NFR-W4: Cache safety** - Model digest TTL cache and evidence retrieval cache must invalidate correctly on content changes; stale cache must never produce incorrect embeddings or evidence.
45
- - **NFR-W5: Non-regression** - Phase 84..88 behavior/contracts remain stable while Phase 89 enhancements are added.
46
- - **NFR-W6: Skill efficiency** - Optional-skill rows must avoid discovery/automation churn and prefer minimal high-yield skill reads only when required by evidence gaps.
47
- - **NFR-W7: Telemetry parity** - Skill usage diagnostics must be complete for every row (including timeout/degraded rows) and consistent across tool-first/prompt-backend traces.
48
- - **NFR-W8: Evidence-target compliance visibility** - Docs/code target execution compliance must be measurable and must always include explicit audited skip reasons when a target path is not executed.
49
-
50
- ### NFRs for Phase 90
51
-
52
- - **NFR-X1: Hierarchy determinism** - Department, project, Bitbucket project, and repo keys must be deterministic across parse/extract/state commands.
53
- - **NFR-X2: Hard-cut semantics** - Deprecated flat selector aliases (especially Bitbucket project key -> project resolution) must be removed, not silently preserved.
54
- - **NFR-X3: Migration safety** - Schema/data migration must be idempotent and auditable, with explicit counts for migrated and quarantined records.
55
- - **NFR-X4: Non-regression** - Phase 84..89 workflow, retrieval, and quality contracts remain stable while hierarchy contracts are introduced.
56
-
57
- ### NFRs for Phase 91
58
-
59
- - **NFR-Y1: CLI behavioral non-regression** - CLI decomposition must preserve all existing command behavior, option parsing, and output formatting without any user-visible regression.
60
- - **NFR-Y2: Module isolation** - Each CLI submodule must be independently importable without circular dependencies or shared mutable state.
61
- - **NFR-Y3: Error specificity** - Hardened exception handlers must catch the narrowest applicable exception type and include structured context (error type, source module, recovery action).
62
- - **NFR-Y4: Scoring determinism** - Profile-based weight adjustment, gating conditions, and coverage tracking must produce deterministic outputs for identical inputs.
63
- - **NFR-Y5: Non-regression** - Phase 84..90 workflow, retrieval, hierarchy, and quality contracts remain stable while Phase 91 enhancements are added.
64
-
65
- ## Phase 89 Functional Requirements — Unified Audit Quality + Skill Effectiveness + Performance Optimization (Package W: FR-185..FR-206)
66
-
67
- ### High Priority — Score Quality
68
-
69
- #### FR-185: Repo-Type-Aware Checklist Scoping
70
-
71
- The workflow must classify the target repository by type (frontend, backend, infrastructure, fullstack) based on heuristics (file extensions, framework markers, directory structure) and mark structurally inapplicable checklist rows as N/A with a deterministic reason code.
72
-
73
- **Acceptance Criteria:**
74
- - AC-185.1: Repository classification heuristic assigns one of `frontend`, `backend`, `infrastructure`, `fullstack` based on language/framework markers in the repo file tree.
75
- - AC-185.2: A configurable scoping policy maps repo types to sets of checklist row IDs (or check-category patterns) that are structurally inapplicable (e.g., Docker/Helm/CI-CD/DB-schema/Grafana rows for frontend repos).
76
- - AC-185.3: Rows matched by the scoping policy are marked `status=N/A` with `reason_code=repo_type_excluded` and `repo_type=<detected>` in the checklist output, without invoking LLM evaluation.
77
- - AC-185.4: N/A rows are excluded from aggregate score denominator so they do not deflate the pass rate.
78
- - AC-185.5: A `--repo-type {auto|frontend|backend|infra|fullstack}` CLI option allows manual override of the detected type. Default is `auto`.
79
- - AC-185.6: Scoping diagnostics are emitted in runtime logs and checklist metadata (`repo_type_detected`, `rows_scoped_na`, `scoping_policy_version`).
80
-
81
- ### Medium Priority — Performance
82
-
83
- #### FR-186: Skip Ollama Probe in Lexical-Only Mode
84
-
85
- When `retrieval_mode=lexical` (lexical-only), the embedding pipeline must skip the Ollama connectivity probe (`embed_texts()` test call) that currently executes unconditionally in `vector_index.py`.
86
-
87
- **Acceptance Criteria:**
88
- - AC-186.1: `vector_index.py` initialization skips `embed_texts()` probe call when `lexical_only=True` or `retrieval_mode=lexical`.
89
- - AC-186.2: No Ollama network calls occur during extract-docs when retrieval mode is lexical-only.
90
- - AC-186.3: Hybrid and vector modes continue to execute the probe as before (non-regression).
91
-
92
- #### FR-187: Model Digest TTL Cache
93
-
94
- The embedding pipeline must cache the model digest returned by Ollama `/api/show` with a configurable TTL (default: 5 minutes) to avoid redundant network calls across sequential snapshot operations within the same extract-docs run.
95
-
96
- **Acceptance Criteria:**
97
- - AC-187.1: `_fetch_model_digest` result is cached in-memory with a configurable TTL (default 300s).
98
- - AC-187.2: Subsequent calls within TTL return the cached digest without network I/O.
99
- - AC-187.3: Cache is invalidated when TTL expires or when the model name changes.
100
- - AC-187.4: Cache hit/miss is logged at DEBUG level for diagnostics.
101
-
102
- #### FR-188: Parallel Row Evaluation Within Batches
103
-
104
- The workflow batch executor must support concurrent row evaluation, dispatching up to N rows (configurable, default: 1 for backward compatibility) to the LLM backend simultaneously within a single batch.
105
-
106
- **Acceptance Criteria:**
107
- - AC-188.1: A `--row-concurrency <N>` CLI option controls the maximum number of concurrent row evaluations per batch. Default is `1` (sequential, backward compatible).
108
- - AC-188.2: When `row-concurrency > 1`, rows within a batch are dispatched concurrently using asyncio tasks with a semaphore-bounded concurrency limit.
109
- - AC-188.3: Row-level checkpointing, diagnostics, and error handling remain correct under concurrent execution (no shared mutable state corruption).
110
- - AC-188.4: Batch-level timing diagnostics report both wall-clock and cumulative row times for concurrency efficiency measurement.
111
- - AC-188.5: Rate-limit errors from the LLM backend trigger exponential backoff per-row without failing the entire batch.
112
-
113
- #### FR-189: Evidence Retrieval Cache Within Batches
114
-
115
- The evidence retrieval layer must cache retrieved evidence chunks within a batch scope so that identical evidence pages appearing in top-N results for multiple rows are fetched and parsed only once.
116
-
117
- **Acceptance Criteria:**
118
- - AC-189.1: A batch-scoped evidence cache (keyed by chunk ID or document ID) stores retrieved evidence content.
119
- - AC-189.2: Subsequent rows within the same batch reuse cached evidence instead of re-fetching from Postgres or disk.
120
- - AC-189.3: Cache is cleared between batches to bound memory usage.
121
- - AC-189.4: Cache hit/miss counts are emitted in batch timing diagnostics.
122
-
123
- ### Low Priority — Robustness
124
-
125
- #### FR-190: Configurable Default Batch Size
126
-
127
- The workflow must support a configurable default batch size higher than the current default of 5, with a recommended default of 8.
128
-
129
- **Acceptance Criteria:**
130
- - AC-190.1: Default batch size is changed from 5 to 8.
131
- - AC-190.2: `--batch-size` CLI option continues to override the default.
132
- - AC-190.3: No behavioral regression when explicit `--batch-size 5` is passed.
133
-
134
- #### FR-191: Non-Retryable Confluence Error Marker Expansion
135
-
136
- The Confluence crawl/fetch error classifier must include "not permitted" as a non-retryable error marker in addition to existing markers (403, "forbidden", "unauthorized").
137
-
138
- **Acceptance Criteria:**
139
- - AC-191.1: The non-retryable error classifier regex/set includes `"not permitted"` (case-insensitive).
140
- - AC-191.2: Pages returning "not permitted" errors are marked as permanently failed after the first attempt, skipping retry delays.
141
- - AC-191.3: Existing non-retryable markers continue to function (non-regression).
142
-
143
- #### FR-192: Permission-Denied Page Visibility in Doctor Crawl-Status
144
-
145
- The `doctor crawl-status` diagnostic command must surface pages that failed with permission-denied errors as a distinct category in its output.
146
-
147
- **Acceptance Criteria:**
148
- - AC-192.1: `crawl-status` output includes a `permission_denied_pages` section listing pages with 403/forbidden/unauthorized/not-permitted errors.
149
- - AC-192.2: Count of permission-denied pages is included in the summary totals.
150
- - AC-192.3: Each entry includes `page_id`, `title` (if available), and `error_message`.
151
-
152
- #### FR-193: Streamed Post-Processing Pipeline
153
-
154
- The workflow post-processing phase (Excel export, Postgres upload, report generation) must begin processing completed batches as they finish, rather than waiting for all rows to complete before starting export.
155
-
156
- **Acceptance Criteria:**
157
- - AC-193.1: Post-processing pipeline accepts incremental batch results and begins export/upload for completed batches while remaining batches are still evaluating.
158
- - AC-193.2: Final report assembly waits for all batches and post-processing tasks to complete before producing the aggregate checklist artifact.
159
- - AC-193.3: Post-processing timing diagnostics report overlap savings vs sequential baseline.
160
- - AC-193.4: When `row-concurrency=1` and `batch-size=5` (legacy defaults), behavior is equivalent to current sequential post-processing (non-regression).
161
-
162
- ### High Priority — Skill Effectiveness + Telemetry Parity
163
-
164
- #### FR-194: Optional Skill Hard-Gate for `skills_needed=false`
165
-
166
- Rows interpreted as `skills_needed=false` must default to strict skill suppression so optional skill calls do not add avoidable latency or discovery-only churn.
167
-
168
- **Acceptance Criteria:**
169
- - AC-194.1: For `skills_needed=false`, prompt-tool skill discovery calls (`list_skills`, `load_skill`) are disabled by default.
170
- - AC-194.2: `run_skill_script` is disabled by default for `skills_needed=false`.
171
- - AC-194.3: At most one fallback `read_skill_resource` is allowed only when docs/code evidence targets are not yet grounded and a deterministic gap predicate is met.
172
- - AC-194.4: Suppression mode and fallback trigger reason are emitted in retrieval trace and runtime logs.
173
-
174
- #### FR-195: Minimal Effective Skill Sequence for `skills_needed=true`
175
-
176
- Rows interpreted as `skills_needed=true` must follow a minimal execution-first skill sequence that prioritizes high-yield skill resources over discovery loops.
177
-
178
- **Acceptance Criteria:**
179
- - AC-195.1: The first skill action for `skills_needed=true` is execution-class (`read_skill_resource` preferred) against objective-ranked skills.
180
- - AC-195.2: `list_skills` is only permitted when available-skill metadata is absent in current context.
181
- - AC-195.3: `run_skill_script` is allowed only for explicitly script-oriented objectives (for example `analyze_tooling_automation_guidance`) or explicit operator override.
182
- - AC-195.4: If no effective skill call is produced, policy-corrective retry is attempted once with narrowed skill focus and explicit diagnostics.
183
-
184
- #### FR-196: Low-Yield Skill Churn Guard (Including Execution Calls)
185
-
186
- The non-progress guard must detect and stop low-yield skill churn even when execution calls are present but ineffective.
187
-
188
- **Acceptance Criteria:**
189
- - AC-196.1: Guard policy evaluates skill effective-rate and requirement-coverage contribution, not only raw execution-call presence.
190
- - AC-196.2: Rows with high skill-call volume and low effective-rate trigger `skill_low_yield_churn` stop reason (or equivalent deterministic reason code).
191
- - AC-196.3: Guard output includes observed skill call counts, effective counts, and effective-rate in row diagnostics.
192
- - AC-196.4: Corrective guidance constrains subsequent retries to minimal allowed skill paths.
193
-
194
- #### FR-197: Unified Skill Telemetry Contract and Degraded-Row Completeness
195
-
196
- Skill telemetry must be unified and complete across tool-first and prompt-backend traces, including timeout/degraded rows.
197
-
198
- **Acceptance Criteria:**
199
- - AC-197.1: `row_skill_policy_effectiveness` is emitted for every checklist row, including timeout/degraded paths.
200
- - AC-197.2: `skill_tool_usage` merges all observed skill interactions with explicit source attribution (`tool_first_loop` vs `prompt_tool_telemetry`) and no double counting.
201
- - AC-197.3: `tool_call_summary` falls back to timeout/degraded progress snapshot when main loop trace is unavailable so counters are not silently zeroed.
202
- - AC-197.4: Runtime diagnostics include coverage counters for missing/complete skill-policy events.
203
-
204
- #### FR-198: Evidence-Target Execution Compliance Gate
205
-
206
- When requirement interpretation declares docs/code targets, execution traces must include at least one concrete action per target or an explicit audited skip reason.
207
-
208
- **Acceptance Criteria:**
209
- - AC-198.1: If `docs_target=true`, row trace must include at least one docs path action (`search_docs` or `read_doc_chunk`) or an explicit skip reason code.
210
- - AC-198.2: If `code_target=true`, row trace must include at least one code path action (`search_code` or `read_code_file`) or an explicit skip reason code.
211
- - AC-198.3: Checklist/retrieval diagnostics include aggregate compliance metrics (`docs_target_compliance`, `code_target_compliance`) for the run.
212
- - AC-198.4: Rows lacking both execution and audited skip reason are marked with deterministic quality warning diagnostics.
213
-
214
- #### FR-199: Skill Recommendation Quality Loop
215
-
216
- Skill recommendation ranking must prioritize measured effectiveness and requirement objective fit instead of broad fallback expansion.
217
-
218
- **Acceptance Criteria:**
219
- - AC-199.1: Recommendation ranking combines objective priority with recent effective-rate signals by skill and objective family.
220
- - AC-199.2: Broad fallback expansion is deferred until top-ranked skills fail to produce effective results.
221
- - AC-199.3: Recommendation diagnostics expose chosen skills and ranking rationale in row trace metadata.
222
-
223
- #### FR-200: Default Skill Controls for Canonical Checklist Runs
224
-
225
- Canonical checklist runs must default to a minimal, high-signal skill profile with explicit operator overrides.
226
-
227
- **Acceptance Criteria:**
228
- - AC-200.1: Default canonical checklist mode uses minimal skill policy (`skills_allow_script_execution=false` and constrained allowlist).
229
- - AC-200.2: Operator controls allow mode override (for example minimal/balanced/full) without changing baseline deterministic defaults.
230
- - AC-200.3: Per-row skill budget limits are deterministic and surfaced in diagnostics.
231
- - AC-200.4: Legacy behavior remains available through explicit override flags/env settings for backward compatibility.
232
-
233
- ### High Priority — Evidence Quality + Observability (From Log Analysis)
234
-
235
- #### FR-201: Doc Search Tool Bias for Non-Code Categories
236
-
237
- The agentic tool selection must bias toward `search_docs` for checklist categories that are primarily documentation-oriented (governance, process, compliance, architecture) rather than defaulting to code-first search patterns.
238
-
239
- **Acceptance Criteria:**
240
- - AC-201.1: A category-to-tool-bias mapping classifies checklist categories as `docs_primary`, `code_primary`, or `balanced` based on category semantics.
241
- - AC-201.2: For `docs_primary` categories, the agentic system prompt instructs the LLM to prioritize `search_docs` and `read_doc_chunk` before code tools.
242
- - AC-201.3: `search_docs` call rate for `docs_primary` rows increases from baseline (~18%) to ≥60% without degrading code-category row quality.
243
- - AC-201.4: Tool bias policy is emitted in retrieval trace metadata per row for diagnostics.
244
-
245
- #### FR-202: Evidence Anti-Concentration (Diversity Penalty)
246
-
247
- The evidence retrieval pipeline must prevent the same source file or document from dominating top-k results across multiple rows within a run, ensuring diverse evidence grounding.
248
-
249
- **Acceptance Criteria:**
250
- - AC-202.1: A diversity penalty is applied during evidence ranking when the same document/file ID appears in top-k results for more than a configurable threshold of rows (default: 30% of evaluated rows).
251
- - AC-202.2: The penalty reduces the ranking score of over-represented sources, promoting alternative evidence into top-k positions.
252
- - AC-202.3: Anti-concentration metrics (`top_source_concentration_ratio`, `unique_sources_per_row_avg`) are emitted in run-level retrieval diagnostics.
253
- - AC-202.4: Diversity penalty is configurable and can be disabled via `--no-evidence-diversity` CLI flag for backward compatibility.
254
-
255
- #### FR-203: Evidence Truncation Mitigation
256
-
257
- The evidence context pipeline must use smarter ranking before truncation to ensure the most relevant evidence survives the `max_evidence_chars` budget, rather than relying on naive position-based truncation.
258
-
259
- **Acceptance Criteria:**
260
- - AC-203.1: Evidence chunks are ranked by relevance score before applying the `max_evidence_chars` budget cut, so highest-relevance chunks are preserved.
261
- - AC-203.2: Default `max_evidence_chars` is increased from 8000 to 12000 for canonical checklist runs (operator-overridable).
262
- - AC-203.3: Truncation diagnostics include `pre_truncation_chunk_count`, `post_truncation_chunk_count`, and `relevance_score_range` for truncated vs retained chunks.
263
- - AC-203.4: Rows where truncation removes >50% of evidence chunks by count are flagged with `evidence_truncation_severe` quality warning.
264
-
265
- #### FR-204: Unverified Reference Corrective Retry
266
-
267
- Rows where more than 50% of cited evidence references are unverified (not grounded in retrieved evidence) must trigger a single corrective retry with narrowed evidence focus.
268
-
269
- **Acceptance Criteria:**
270
- - AC-204.1: After initial row evaluation, if `unverified_ref_ratio > 0.5`, one corrective retry is dispatched with explicit instruction to ground citations in available evidence.
271
- - AC-204.2: Corrective retry uses the same evidence context but adds explicit grounding constraint in the LLM prompt.
272
- - AC-204.3: Retry outcome replaces the original evaluation only if the `unverified_ref_ratio` improves; otherwise the original is preserved.
273
- - AC-204.4: Retry diagnostics include `original_unverified_ratio`, `retry_unverified_ratio`, and `retry_accepted` boolean in row trace metadata.
274
-
275
- #### FR-205: Evaluation Stability Metric and Cross-Repo Divergence Flag
276
-
277
- The workflow must compute an evaluation stability metric for checklist rows and flag rows with high cross-repo divergence (>50% score variance when the same checklist is applied to repos within the same project).
278
-
279
- **Acceptance Criteria:**
280
- - AC-205.1: When `--stability-runs N` is used (N ≥ 2), per-row stability is computed as `1 - (std_dev / max_possible_range)` and emitted in checklist metadata.
281
- - AC-205.2: Rows with stability < 0.5 are flagged with `low_stability` quality warning in checklist output.
282
- - AC-205.3: When multi-repo project runs are available, cross-repo divergence is computed for each check ID and rows with >50% score divergence across repos are flagged with `cross_repo_divergent` marker.
283
- - AC-205.4: Stability and divergence metrics are included in the run-level quality summary for trend monitoring.
284
-
285
- #### FR-206: LLM Token Usage Instrumentation
286
-
287
- Runtime log events for LLM calls must include token usage metrics (prompt tokens, completion tokens, total tokens) for cost analysis and budget monitoring.
288
-
289
- **Acceptance Criteria:**
290
- - AC-206.1: Every LLM call event in runtime logs includes `prompt_tokens`, `completion_tokens`, and `total_tokens` fields when available from the LLM backend response.
291
- - AC-206.2: Run-level summary includes aggregate token usage (`total_prompt_tokens`, `total_completion_tokens`, `total_tokens`) across all LLM calls.
292
- - AC-206.3: Per-row token usage is emitted in row diagnostics for cost attribution.
293
- - AC-206.4: Token metrics gracefully degrade to `null` when the LLM backend does not return usage metadata (no errors or crashes).
294
-
295
- #### FR-206A: Bitbucket-Native Repo Identifier Precedence
296
-
297
- Repository identity resolution must prefer Bitbucket-native identifiers over project-prefixed fallback keys for deterministic repo-scoped retrieval and workflow execution.
298
-
299
- **Acceptance Criteria:**
300
- - AC-206A.1: `repo_storage_key` derivation prefers `bitbucket_project_key + bitbucket_repo_key` when available, then explicit `repo_storage_key`, then project-prefixed fallback.
301
- - AC-206A.2: `parse-repo`, `workflow`, and `analyze --repo-path` resolve the same canonical repo key for the same repository.
302
- - AC-206A.3: State-side loader/upsert paths apply the same precedence so persisted repo identity remains consistent across `sync repos`, `extract-docs`, and readiness checks.
303
- - AC-206A.4: Seed repo disambiguation prefers Bitbucket-native identity when multiple equal-rank matches exist.
304
- - AC-206A.5: State manifest/loaders must not retain synthetic `bitbucket.local/projects/local/...` placeholders in project mapping; local placeholders are dropped and non-local placeholders are canonicalized to the project Bitbucket origin when available.
305
-
306
- #### FR-206B: Retrieval Snapshot Compatibility for Repo-Key Migration
307
-
308
- Repo-key migration from legacy project-prefixed identifiers to Bitbucket-native `local-*` keys must preserve retrieval snapshot reuse and avoid unnecessary full re-embedding.
309
-
310
- **Acceptance Criteria:**
311
- - AC-206B.1: Retrieval refresh planning for repo scope must resolve previous snapshots in deterministic order: exact repo key, legacy repo alias key, then project-scope fallback.
312
- - AC-206B.2: When chunk IDs change but chunk content hash is unchanged, planner marks chunks as reusable and avoids re-embedding those chunks.
313
- - AC-206B.3: Snapshot embedding copy path supports reuse by `content_hash` (not only `chunk_id`) for unchanged chunks.
314
- - AC-206B.4: Legacy non-canonical model-digest values (for example old Ollama modelfile payloads) do not force full re-embedding, while canonical hash digest mismatches still force full re-embedding.
315
-
316
- ## Phase 90 Functional Requirements — Hierarchy Model Hard-Cut (Package X: FR-207..FR-216)
317
-
318
- ### High Priority — Canonical Hierarchy Contract
319
-
320
- #### FR-207: Department-First Registry Model
321
-
322
- Registry parsing must produce a first-class department hierarchy where projects are explicit children of departments, not only a flat project list with optional department metadata.
323
-
324
- **Acceptance Criteria:**
325
- - AC-207.1: Registry payload includes `departments[]` with deterministic `department_storage_key`, `department_name`, `department_page_id`, and `projects[]`.
326
- - AC-207.2: Every discovered project belongs to exactly one department node in the payload (or explicit `department=unassigned` bucket with audited reason).
327
- - AC-207.3: Project discovery retains Confluence ancestry path so department assignment is derived from tree structure rather than title-only heuristics.
328
- - AC-207.4: Department assignment is persisted in centralized state and surfaced consistently across `parse-registry`, `parse-project`, and `state` commands.
329
-
330
- #### FR-208: Explicit Project Membership and Identity
331
-
332
- Project identity must be canonicalized independently from Bitbucket project aliases, with deterministic project-level selectors and zero cross-project alias contamination.
333
-
334
- **Acceptance Criteria:**
335
- - AC-208.1: Canonical project selectors are limited to `project_storage_key`, Confluence page ID, and project title/page URL aliases.
336
- - AC-208.2: Bitbucket project keys must not be accepted as project selectors in `parse-project`.
337
- - AC-208.3: Selector collisions produce deterministic error diagnostics rather than auto-selection.
338
- - AC-208.4: Real selector sanity checks verify `parse-project --project MAP|WEBAPPV2|SUPERAPP` no longer resolves implicitly to Mini app.
339
-
340
- #### FR-209: Bitbucket Project as First-Class Entity
341
-
342
- Each project must expose nested Bitbucket-project groupings, with repositories modeled under their owning Bitbucket project.
343
-
344
- **Acceptance Criteria:**
345
- - AC-209.1: Project payload includes `bitbucket_projects[]` where each group has canonical `bitbucket_project_key` and `repos[]`.
346
- - AC-209.2: `repos[]` under each Bitbucket project must carry deterministic `repo_storage_key`, `bitbucket_repo_key/repo_slug`, and lineage metadata.
347
- - AC-209.3: Flat `project.bitbucket[]` output is removed from canonical parse contracts (hard-cut), with all repo consumers switched to grouped structure.
348
- - AC-209.4: Grouping supports both `/projects/<KEY>/repos/<slug>` and `/scm/<key>/<slug>.git` URL forms.
349
-
350
- #### FR-210: Bitbucket-Native Repo Identity Hard-Cut
351
-
352
- Repository keys must be Bitbucket-native by default and reject ambiguous fallback identity as canonical outputs.
353
-
354
- **Acceptance Criteria:**
355
- - AC-210.1: Canonical repo identity format is `<bitbucket_project_key>:<bitbucket_repo_key>` whenever Bitbucket URL/metadata is available.
356
- - AC-210.2: Project-prefixed fallback keys remain only as migration aliases, not canonical emit keys for new parse/extract outputs.
357
- - AC-210.3: Entries missing both `bitbucket_project_key` and `repo_url` are quarantined with deterministic diagnostics instead of silently promoted.
358
- - AC-210.4: `parse-repo --all-repos` reports grouped repos with explicit native keys and migration alias (if present).
359
-
360
- ### Medium Priority — State + CLI Migration
361
-
362
- #### FR-211: Parse Command Contract Isolation
363
-
364
- Parse commands must align to hierarchy boundaries and avoid cross-layer selector mixing.
365
-
366
- **Acceptance Criteria:**
367
- - AC-211.1: `parse-project` resolves project identity only (no Bitbucket project alias acceptance).
368
- - AC-211.2: `parse-repo` supports filtering by explicit `--bitbucket-project <KEY>` within a selected project.
369
- - AC-211.3: A project-level summary includes department and Bitbucket-project counts for operator diagnostics.
370
- - AC-211.4: Error messages include deterministic selector guidance (project selector vs Bitbucket-project selector).
371
-
372
- #### FR-212: Hierarchy Schema Migration in Postgres State
373
-
374
- Centralized state must evolve to persist hierarchy entities and relations explicitly.
375
-
376
- **Acceptance Criteria:**
377
- - AC-212.1: New state entities include `departments` and `bitbucket_projects` (or equivalent normalized relation) with FK links to projects/repos.
378
- - AC-212.2: Migration is idempotent and records migrated row counts and unresolved records.
379
- - AC-212.3: Existing project/repo records are backfilled into hierarchy tables using deterministic mapping rules.
380
- - AC-212.4: Migration diagnostics are available through a state/doctor command for operator verification.
381
-
382
- #### FR-213: Extract-Docs Hierarchy Persistence
383
-
384
- `extract-docs` must persist grouped Bitbucket metadata and department/project hierarchy as first-class artifacts.
385
-
386
- **Acceptance Criteria:**
387
- - AC-213.1: Extracted project artifacts persist `department_storage_key` and grouped `bitbucket_projects[]`.
388
- - AC-213.2: Project-level Bitbucket links and repo-level links are both retained with clear link-role metadata.
389
- - AC-213.3: Synthetic/local placeholder contamination is sanitized before grouping and persistence.
390
- - AC-213.4: Retrieval snapshot refresh consumes grouped repo metadata without flattening regressions.
391
-
392
- #### FR-214: Hierarchy Readiness and Doctor Diagnostics
393
-
394
- Readiness and doctor flows must surface hierarchy completeness/quality explicitly.
395
-
396
- **Acceptance Criteria:**
397
- - AC-214.1: `state readiness` includes `hierarchy_ready` and counters (`departments`, `projects`, `bitbucket_projects`, `repos`).
398
- - AC-214.2: `doctor crawl-status` (or dedicated hierarchy audit command) reports hierarchy anomalies: unassigned projects, ungrouped repos, selector collisions.
399
- - AC-214.3: Diagnostics include deterministic samples for remediation with bounded output size.
400
- - AC-214.4: Workflow preflight fails fast when hierarchy completeness is below configured minimums.
401
-
402
- ### Low Priority — Rollout and Verification
403
-
404
- #### FR-215: Deterministic Hierarchy Keys and Config Boundary
405
-
406
- Hierarchy normalization must be deterministic and follow existing sensitive/non-sensitive config boundaries.
407
-
408
- **Acceptance Criteria:**
409
- - AC-215.1: Key normalization for department/project/bitbucket-project/repo is centralized and reused across parser/state/CLI.
410
- - AC-215.2: Non-sensitive hierarchy tuning stays in `~/.vds/config/*.toml`; sensitive tokens/credentials remain in `~/.vds/.env`.
411
- - AC-215.3: Deterministic defaults are documented for reuse in future project onboarding to avoid remapping rework.
412
-
413
- #### FR-216: Phase 90 Real-Run Verification Gates
414
-
415
- Phase 90 closure includes real-run verification proving hierarchy correctness on production Confluence/Bitbucket mappings.
416
-
417
- **Acceptance Criteria:**
418
- - AC-216.1: Real run on root registry (`pageId=88716675`) persists department/project/bitbucket-project/repo hierarchy with no cross-project contamination.
419
- - AC-216.2: Real run on Mini app (`pageId=88718882`) produces grouped Bitbucket projects (`MAP`, `WEBAPPV2`, `SUPERAPP`) with correct repo assignments.
420
- - AC-216.3: Selector isolation checks pass (`parse-project --project MAP` fails with guidance; project selector still resolves correctly).
421
- - AC-216.4: Spec/docs/tasks alignment checks remain green after hierarchy contract migration.
422
- - AC-216.5: Project-scoped `doctor hierarchy-status` and `state readiness` report `anomaly_count=0` and `hierarchy_ready=true` for closure dataset `3-2-1-4-mini-app`.
423
-
424
- #### FR-31 (Legacy): Row Consistency Corrective Retry
425
-
426
- When a row evaluation response contains reasoning/evidence contradictions, the evaluator must run one corrective retry with contradiction-specific instructions.
427
-
428
- **Acceptance Criteria:**
429
- - AC-31.1: Contradiction detection is based on reasoning text versus cited evidence references.
430
- - AC-31.2: One corrective retry is attempted when contradiction confidence exceeds threshold.
431
- - AC-31.3: Retry behavior is controlled by `--row-consistency-retry-mode {off|auto|always}`.
432
- - AC-31.4: Retry diagnostics include original contradiction marker and whether retry was accepted.
433
-
434
- ## Phase 91 Functional Requirements — CLI Modularization + Scoring Completeness + Error Handling Hardening (Package Y: FR-217..FR-227)
435
-
436
- ### High Priority — CLI Decomposition
437
-
438
- #### FR-217: CLI Command-Group Submodule Extraction
439
-
440
- The monolithic `cli.py` (18,957 lines) must be decomposed into dedicated command-group submodules, each containing the command handlers for a single functional area.
441
-
442
- **Acceptance Criteria:**
443
- - AC-217.1: Command handlers for workflow, parse, state, doctor, sync, extract, and analyze are extracted into dedicated submodule files (`workflow_cmds.py`, `parse_cmds.py`, `state_cmds.py`, `doctor_cmds.py`, `sync_cmds.py`, `extract_cmds.py`, `analyze_cmds.py`).
444
- - AC-217.2: Each submodule is independently importable with no circular dependencies on `cli.py` or other submodules.
445
- - AC-217.3: All existing CLI tests pass without modification against the decomposed structure.
446
-
447
- #### FR-218: CLI Shared Infrastructure Module
448
-
449
- Shared CLI infrastructure (global options, output formatting, callback helpers, error context builders) must be extracted into a common module reusable by all command-group submodules.
450
-
451
- **Acceptance Criteria:**
452
- - AC-218.1: A `cli_common.py` module provides global option decorators, JSON/table output formatters, error context helpers, and callback infrastructure.
453
- - AC-218.2: All command-group submodules import shared infrastructure from `cli_common.py` without duplication.
454
- - AC-218.3: The residual `cli.py` is a thin Typer router (<500 lines) that wires submodule sub-apps.
455
-
456
- #### FR-219: CLI Decomposition Regression Gate
457
-
458
- The CLI decomposition must be verified for behavioral non-regression and import isolation.
459
-
460
- **Acceptance Criteria:**
461
- - AC-219.1: A submodule import isolation test validates each command-group submodule is importable independently.
462
- - AC-219.2: CLI entry-point smoke tests cover every registered command group through the thin router.
463
- - AC-219.3: Full existing CLI test suite passes green with zero behavioral regression.
464
-
465
- ### Medium Priority — Scoring Completeness
466
-
467
- #### FR-220: Profile-Based Weight Adjustment
468
-
469
- Checklist row scoring must apply profile-based weight adjustments sourced from the active audit profile configuration.
470
-
471
- **Acceptance Criteria:**
472
- - AC-220.1: `checklist_generator.py` reads weight scaling factors from the active audit profile.
473
- - AC-220.2: Different profile configurations produce measurably different weight-adjusted scores for the same row.
474
- - AC-220.3: Default profile produces weights identical to current behavior (backward compatibility).
475
-
476
- #### FR-221: Score Gating Conditions
477
-
478
- Checklist row scoring must support configurable gating conditions that cap or floor scores based on evidence quality thresholds.
479
-
480
- **Acceptance Criteria:**
481
- - AC-221.1: A gating condition model defines score cap/floor rules based on configurable predicates (e.g., minimum evidence count, minimum confidence).
482
- - AC-221.2: When a gating condition triggers, the capped/floored score and trigger reason are recorded in row metadata.
483
- - AC-221.3: Gating conditions are opt-in and default to no gating (backward compatibility).
484
-
485
- #### FR-222: Row Coverage Tracking
486
-
487
- Checklist row evaluation must track and report corpus-hit coverage ratio diagnostics.
488
-
489
- **Acceptance Criteria:**
490
- - AC-222.1: Coverage ratio (evidence chunks used / evidence chunks available) is computed per row.
491
- - AC-222.2: Coverage diagnostics are emitted in checklist metadata per row.
492
- - AC-222.3: Aggregate coverage statistics are included in workflow summary.
493
-
494
- ### Medium Priority — Error Handling
495
-
496
- #### FR-223: Exception Audit and Classification
497
-
498
- Broad exception catches across the codebase must be audited and classified as intentional recovery vs. error-swallowing.
499
-
500
- **Acceptance Criteria:**
501
- - AC-223.1: An annotated exception audit identifies all `except Exception` and bare `except:` statements in the top 5 largest source files.
502
- - AC-223.2: Each catch is classified as intentional-recovery (justified), error-swallowing (must fix), or boundary-guard (acceptable at system boundary).
503
- - AC-223.3: The audit is recorded as a durable artifact for tracking remediation progress.
504
-
505
- #### FR-224: Specific Exception Type Replacement
506
-
507
- Error-swallowing broad exception catches must be replaced with specific exception types in the top source files.
508
-
509
- **Acceptance Criteria:**
510
- - AC-224.1: Error-swallowing `except Exception` catches in CLI submodules and `state/store.py` are replaced with specific exception types.
511
- - AC-224.2: Error-swallowing `except Exception` catches in `engine/llm_row_evaluator.py`, `agents/agentic_investigator.py`, and `state/__init__.py` are replaced with specific exception types.
512
- - AC-224.3: Broad exception catches reduced by ≥50% in top 5 largest source files compared to pre-Phase-91 baseline.
513
-
514
- #### FR-225: Structured Error Logging for Hardened Handlers
515
-
516
- All hardened exception handlers must emit structured error logs with error type, context, and recovery action.
517
-
518
- **Acceptance Criteria:**
519
- - AC-225.1: Hardened exception handlers emit structured log entries with `error_type`, `source_module`, `context`, and `recovery_action` fields.
520
- - AC-225.2: Structured error logs are machine-parseable via runtime log infrastructure.
521
- - AC-225.3: Regression tests verify error handling paths emit expected structured log fields.
522
-
523
- ### Medium Priority — Skill Fallback
524
-
525
- #### FR-226: Broad Fallback Skill Expansion
526
-
527
- When top-ranked skills fail or produce insufficient evidence, the skill selection pipeline must expand to effectiveness-ranked fallback candidates.
528
-
529
- **Acceptance Criteria:**
530
- - AC-226.1: Skill fallback triggers when the primary skill read returns insufficient evidence or errors.
531
- - AC-226.2: Fallback candidates are ranked by historical effectiveness scores from skill telemetry.
532
- - AC-226.3: Fallback telemetry records trigger count, candidate ranking, and success rate per row.
533
- - AC-226.4: Fallback depth is bounded (max 2 candidates) to prevent unbounded churn.
534
-
535
- ### Low Priority — Baseline Sync
536
-
537
- #### FR-227: Phase 91 Test Baseline and Spec Sync
538
-
539
- Spec/docs/AGENTS must be updated with Phase 91 version, status, and test baseline.
540
-
541
- **Acceptance Criteria:**
542
- - AC-227.1: Test baseline in spec files matches current `pytest tests --collect-only` count.
543
- - AC-227.2: `validate-spec-sync` and `check-alignment` pass green after all Phase 91 changes.
544
- - AC-227.3: AGENTS.md version/status/test baseline reflects Phase 91 scope.
545
-
546
- ### Package Z - Intelligent Preparation + Metadata Completeness (Phase 92)
547
-
548
- > **Clean-break implementation**: Phase 92 is a hard-cut modernization. Legacy full-scan, force-reembed, and opt-out refresh paths are **removed**, not preserved. All new metadata fields are **required**, not Optional.
549
-
550
- #### High Priority — Incremental Preparation (Clean Break)
551
-
552
- ##### FR-228: DiffDetector-Only Code Chunking
553
-
554
- Extract-docs code chunking must use `DiffDetector` as the **only** code file discovery path, replacing the legacy `_iter_repo_code_files()` full-scan (`cli_impl.py:902-926`). The `_CODE_CORPUS_MAX_FILES_PER_REPO` constant (`cli_impl.py:853`) is removed.
555
-
556
- **Acceptance Criteria:**
557
- - AC-228.1: `_build_repo_code_chunk_records` (`cli_impl.py:928`) is rewritten to use `DiffDetector(repo_root).get_changes_since_commit(head_commit_sha)` as the file discovery path.
558
- - AC-228.2: `head_commit_sha` is stored in a dedicated required TEXT column in `audit_state.repos` and persisted after every successful code chunking run.
559
- - AC-228.3: On first extraction (no stored `head_commit_sha`), DiffDetector diffs against an empty tree (`git diff --name-status 4b825dc642cb6eb9a060e54bf8d69288fbee4904...HEAD`) to enumerate all tracked files.
560
- - AC-228.4: The legacy `_iter_repo_code_files()` function (`cli_impl.py:902-926`) and `_CODE_CORPUS_MAX_FILES_PER_REPO` constant (`cli_impl.py:853`) are **deleted**.
561
- - AC-228.5: Unchanged file chunk records are carried forward from the previous snapshot (lookup from Postgres `corpus_chunks`), not re-chunked.
562
- - AC-228.6: Chunking diagnostics include `diff_based: true`, `skipped_unchanged_count`, `changed_file_count`, and `head_commit_sha` in `code_chunking` stats.
563
-
564
- ##### FR-229: Snapshot-Level Early Exit (Mandatory)
565
-
566
- Retrieval snapshot refresh must short-circuit when the computed content hash of incoming chunks matches the latest snapshot's content hash. There is no opt-out — early exit is the only path when content is unchanged.
567
-
568
- **Acceptance Criteria:**
569
- - AC-229.1: `plan_retrieval_refresh` (`state/store.py:4858`) compares incoming aggregate content hash against latest `retrieval_snapshots.content_hash` for the same `snapshot_key` before planning chunk-level diffs.
570
- - AC-229.2: When content hashes match, plan returns `early_exit: true` with zero changed chunks; `refresh_project_index` (`evidence/vector_index.py:43`) short-circuits before embedding client instantiation (line 100).
571
- - AC-229.3: Early-exit diagnostics are logged with `retrieval_refresh_early_exit` event including `snapshot_key`, `content_hash`, and elapsed time.
572
- - AC-229.4: Early-exit completion time is < 100ms for prepared repos with no content changes.
573
-
574
- ##### FR-230: Document-Level Chunking Skip (Version-Gated)
575
-
576
- Document chunking must track per-document Confluence page version and skip re-chunking for unchanged pages. The `version_tag` column (`store.py:789`) is made NOT NULL and populated for all documents.
577
-
578
- **Acceptance Criteria:**
579
- - AC-230.1: `corpus_documents.version_tag` (`store.py:789`) is changed from `TEXT NULL` to `TEXT NOT NULL DEFAULT ''` and populated with Confluence `page.version.number` (for Confluence docs) or git commit SHA (for code files).
580
- - AC-230.2: Before chunking a document, the pipeline queries `corpus_documents.version_tag` by (`source_type`, `source_uri`) and skips chunking if versions match (`page_id` may be used as a Confluence convenience key only).
581
- - AC-230.3: Skipped documents reuse existing `corpus_chunks` rows without re-processing.
582
- - AC-230.4: Chunking diagnostics include `docs_skipped_unchanged_count` and `docs_rechunked_count`.
583
- - AC-230.5: Migration/backfill for existing NULL/empty versions is deterministic: legacy rows are backfilled to `''` before NOT NULL enforcement, then overwritten with authoritative version values on next successful refresh.
584
-
585
- ##### FR-234: Legacy Code Removal (Clean Break)
586
-
587
- Legacy full-scan, force-reembed, opt-out refresh, and redundant CLI flag code paths are **deleted** from the codebase.
588
-
589
- **Acceptance Criteria:**
590
- - AC-234.1: `force_full_reembed` parameter is removed from `refresh_project_index` (`vector_index.py:56`), `plan_retrieval_refresh` (`store.py:4868`), and all 8+ caller sites in `extract_cmds.py`.
591
- - AC-234.2: The `effective_force_full` computation block (`store.py:4945-5005`) is replaced with: if embedding model changed, treat all chunks as changed (simpler, same outcome).
592
- - AC-234.3: `_iter_repo_code_files()` (`cli_impl.py:902-926`) and `_CODE_CORPUS_MAX_FILES_PER_REPO` constant (`cli_impl.py:853`) are **deleted**.
593
- - AC-234.4: `--refresh-retrieval-snapshot/--no-refresh-retrieval-snapshot` CLI flag (`extract_cmds.py:424-431`) and all downstream skip logic (`extract_cmds.py:2110-2119`, `2394-2415`) are **deleted**.
594
- - AC-234.5: `--incremental/--no-incremental` CLI flag (`extract_cmds.py:187-191`) and all downstream conditional code are **deleted**.
595
- - AC-234.6: `--crawl-mode` CLI flag (`extract_cmds.py:116-120`) and locked validation (`extract_cmds.py:595`) are **deleted** — `bulk` is hardcoded.
596
- - AC-234.7: `--emit-corpus` CLI flag (`extract_cmds.py:121-127`) and auto-force logic (`extract_cmds.py:609-615`) are **deleted** — corpus emission is always on.
597
- - AC-234.8: `--fetch-policy` CLI flag (`extract_cmds.py:159-163`), `--cache-mode` flag (`extract_cmds.py:154-157`), and their validation blocks (`extract_cmds.py:625-630`) are **deleted** — `if-changed` and `read-write` are hardcoded.
598
- - AC-234.9: TOML config `_apply_default_*` overrides for removed options (`extract_cmds.py:548-591`) are cleaned up to remove dead keys.
599
- - AC-234.10: `force-refresh` fetch policy no longer triggers `force_full_reembed` side effect (`extract_cmds.py:2419`) because both concepts are gone.
600
-
601
- #### Medium Priority — Metadata Completeness (Required Fields)
602
-
603
- ##### FR-231: Confluence Metadata Population Completeness (Required Fields)
604
-
605
- Confluence metadata fields (`page_id`, `space_key`, `page_title`, `source_uri`) must flow through the entire extraction pipeline as **required** fields. Legacy aliases (`confluence_url`, `source_url`) must map to canonical `source_uri`. `source_uri` in `corpus_documents` (`store.py:787`) is made NOT NULL.
606
-
607
- **Acceptance Criteria:**
608
- - AC-231.1: `corpus_documents.source_uri` (`store.py:787`) is changed to `TEXT NOT NULL` — every document must have a traceable source URI.
609
- - AC-231.2: Confluence-sourced chunks must include `space_key` and canonical `source_uri` in chunk metadata (legacy aliases normalize to `source_uri` at ingestion boundaries).
610
- - AC-231.3: `CorpusChunk` model (`chunking.py:55-63`) is extended with required first-class fields: `source_type: str`, `source_uri: str`, `version_tag: str`, `content_hash: str` — not buried in `metadata` dict.
611
- - AC-231.4: Code file chunks include `commit_sha` in metadata and `version_tag` set to commit SHA.
612
- - AC-231.5: A verification query confirms zero NULL `page_id` for Confluence-sourced `corpus_documents` and zero NULL `source_uri` for all `corpus_documents`.
613
- - AC-231.6: Migration/backfill for existing NULL `source_uri` is deterministic before NOT NULL enforcement (for example `unknown://legacy/<document_id>`), then corrected to authoritative URIs on subsequent refresh.
614
-
615
- ##### FR-232: Extract-Docs CLI Simplification (Clean Break)
616
-
617
- Extract-docs CLI is aggressively simplified: redundant flags, manual override modes, and stale-data paths are **removed**. The system always checks for changes, always refreshes snapshots, and always produces fresh data.
618
-
619
- **Removed CLI options and modes:**
620
-
621
- | Option | Current Location | Values Removed | Reason |
622
- |--------|-----------------|----------------|--------|
623
- | `--fetch-policy` | `extract_cmds.py:159-163` | `force-refresh`, `offline` | System always checks for changes; no manual staleness override |
624
- | `--cache-mode` | `extract_cmds.py:154-157` | `off`, `read`, `refresh` | Only `read-write` is valid; `off` defeats caching, `read` produces stale data, `refresh` is redundant |
625
- | `--refresh-retrieval-snapshot` | `extract_cmds.py:424-431` | Entire flag removed | Always on during `--execute`; no opt-out |
626
- | `--incremental` | `extract_cmds.py:187-190` | Entire flag removed | Always incremental; no opt-out |
627
- | `--crawl-mode` | `extract_cmds.py:116-120` | Entire flag removed | Already locked to `bulk` only (line 595); option is dead code |
628
- | `--emit-corpus` | `extract_cmds.py:121-127` | Entire flag removed | Auto-forced True when refresh is True (lines 609-615); always True in clean-break |
629
-
630
- **Retained CLI options:**
631
-
632
- | Option | Values | Reason |
633
- |--------|--------|--------|
634
- | `--verify-cache-integrity` | Boolean | Optional diagnostic, keep |
635
- | `--include-bitbucket` | Boolean (default True) | Controls Bitbucket credential requirement, keep |
636
- | `--include-linked-confluence-pages` | Boolean (default True) | Controls link crawl depth, keep |
637
-
638
- **Acceptance Criteria:**
639
- - AC-232.1: `--fetch-policy` is removed from CLI and validation logic; canonical behavior `if-changed` is hardcoded.
640
- - AC-232.2: `--cache-mode` is removed from CLI and validation logic; canonical behavior `read-write` is hardcoded.
641
- - AC-232.3: Removed flags (`--refresh-retrieval-snapshot`, `--incremental`, `--crawl-mode`, `--emit-corpus`, `--fetch-policy`, `--cache-mode`) no longer appear in `--help` output.
642
- - AC-232.4: TOML config overrides for removed options (`~/.vds/config/extract-docs.toml` keys `cache_mode`, `sync_policy`, `fetch_policy`, `refresh_retrieval_snapshot`, `incremental`, `crawl_mode`, `emit_corpus`) are removed from `_apply_default_*` calls (lines 548-591).
643
- - AC-232.5: Running `extract-docs --execute` without any flags always produces fresh snapshots with incremental chunking, read-write caching, and retrieval refresh.
644
- - AC-232.6: Documentation, AGENTS.md, and automation scripts/runbooks are updated to reflect the simplified CLI surface (no removed flag references remain).
645
-
646
- ##### FR-233: Agent Instruction Template Citation Update
647
-
648
- Agent system prompt instructions must direct evaluating agents to cite `page_id` and canonical `source_uri` when recording evidence references from Confluence-sourced evidence (`source_url` accepted as compatibility alias in prompts/tool hints).
649
-
650
- **Acceptance Criteria:**
651
- - AC-233.1: `build_agentic_system_prompt` (`llm/prompts/instruction_templates.py:179`) or `_grounding_rules` include an instruction to cite `page_id` and canonical `source_uri` in evidence references.
652
- - AC-233.2: The instruction specifies using `ref_type='confluence_page'` for Confluence-sourced evidence.
653
- - AC-233.3: `record_evidence_refs` tool usage hint (`instruction_templates.py:81`) is updated to include `page_id` and canonical `source_uri` field guidance (`source_url` alias accepted).
654
-
655
- ### Non-Functional Requirements (Phase 92)
656
-
657
- #### NFR-Y7: Incremental Refresh Performance
658
-
659
- Incremental extract-docs reruns must meet defined performance targets for prepared repos.
660
-
661
- **Acceptance Criteria:**
662
- - AC-Y7.1: No-change rerun of extract-docs completes in < 30 seconds for prepared repos (snapshot early exit + diff-based skip).
663
- - AC-Y7.2: Changed-file-only rerun completes in < 50% of full extraction retrieval-refresh time (`performance.retrieval_refresh_duration_ms`; fallback to total duration when refresh timing is unavailable).
664
- - AC-Y7.3: Performance metrics are emitted in extract-docs `--json-only` output for verification.
665
- - AC-Y7.4: No-change fast-path coverage includes linked-page resolution bypass, cache-first markdown reuse for unchanged Confluence pages, and canonical Bitbucket repo-identity deduplication to minimize fixed pre-refresh overhead.
666
-
667
-
668
-
669
- ## Package T - Evaluation Effectiveness Hardening (Phase 86)
670
-
671
- ### Design Decisions
672
-
673
- - **Decision 61**: Preserve Phase 84/85 contracts; Phase 86 remains additive hardening.
674
- - **Decision 62**: Docs/source balance is intent-aware with explicit docs utilization or audited skip reason.
675
- - **Decision 63**: Investigation depth is adaptive and bounded.
676
- - **Decision 64**: Infra/deployment ranking is intent-sensitive.
677
- - **Decision 65**: Silent synthesis failures are disallowed; explicit failure diagnostics required.
678
- - **Decision 66**: Published evidence refs are precision-filtered to final cited refs.
679
- - **Decision 67**: Evidence-context budgeting is adaptive with truncation diagnostics.
680
- - **Decision 68**: Recommendation completeness and verification coverage are quality gates.
681
- - **Decision 69**: For skills_needed=false rows with strong grounding, prompt-stage tools are suppressed (skills_optional_suppressed_grounded) and synthesis is constrained to existing evidence context/refs with explicit suppression diagnostics.
682
-
683
- ## Package U - Individual Project Parsing + Docs/Guides/Skills Sync + Legacy Cleanup (Phase 87, Complete)
684
-
685
- ### Design Implementation
686
-
687
- - `parse-project` and `parse-repo` accept direct project-page selectors (`pageId` URL and display URL forms) via selector normalization and alias matching.
688
- - `parse-registry` emits explicit project-page-scope guidance diagnostics when no projects are discovered.
689
- - Parse payloads expose deterministic repository coverage summaries (`total/ready/skipped/failed` + category breakdown).
690
- - AGENTS/docs/guides/skills references are synchronized with the hard-cut preparation order and direct parsing workflow.
691
- - Parse-path legacy silent behavior (project-page selector ambiguity) is replaced by explicit operator guidance.
692
-
693
- ### Design Decisions
694
-
695
- - **Decision 70**: Introduce selector-normalization pipeline for project URL -> page_id -> canonical project_storage_key resolution.
696
- - **Decision 71**: Add explicit command-level mode diagnostics to distinguish `registry-root` parsing vs `project-page` parsing.
697
- - **Decision 72**: Add deterministic repo-coverage summary block to parse outputs for direct runbook usage.
698
- - **Decision 73**: Expand Package U scope to `FR-169..FR-176` and bind docs/guides/skills updates as release gates.
699
- - **Decision 74**: Keep AGENTS workflow runbook snippets aligned with direct-project selector contracts.
700
- - **Decision 75**: Enforce spec/docs/guides/skills sync validation before Phase 87 closure.
701
- - **Decision 76**: Remove obsolete parse fallback branches (hard-cut) and emit deterministic replacement guidance.
702
-
703
- ## Package V - Corpus Completeness + Format Coverage (Phase 88, Complete)
704
-
705
- ### Design Implementation
706
-
707
- - Expand repo code chunk extension allowlist for mobile/native ecosystems so canonical code corpus includes Flutter/mobile platform source files when present.
708
- - Append converted attachments from both direct crawl and linked fallback flows into project corpus prior to Postgres retrieval snapshot refresh.
709
- - Preserve chunk dedupe semantics (chunk-id + content-hash) and stale-pruning behavior in Postgres state refresh.
710
- - Emit deterministic chunk diagnostics in extract/retrieval outputs for:
711
- - source-type distribution (`confluence_page`/`confluence_attachment`/`code_file`),
712
- - attachment format distribution (`xlsx`, `pdf`, `docx`, etc.),
713
- - converter usage and conversion failures.
714
- - Resolve extensionless attachment formats before conversion using media-type metadata and byte signatures (`png/jpeg/pdf/json/xml`) so draw.io `mxfile` payloads are classified and chunked.
715
- - For HTML inputs, treat external converter output as best-effort: if mojibake signatures are detected, auto-fallback to deterministic HTML parser output.
716
- - Emit deterministic attachment conversion summary in per-project extract output with:
717
- - status totals (`found`/`partial`/`error`/`unknown`),
718
- - `format_counts`, `converter_counts`, `format_status_counts`,
719
- - bounded `failure_samples` for debugging.
720
- - Persist per-resource attachment diagnostics in `sync_metadata.artifacts[].resource_metadata` (including `source_format`, converter identity, discovery path, size, and conversion timing) for state-first triage and readiness analysis.
721
- - Ensure generated code chunk records carry explicit lineage `discovery=repo_chunking` at top-level + metadata.
722
-
723
- ### Design Decisions
724
-
725
- - **Decision 77**: Treat corpus completeness as a first-class readiness quality dimension, not an implicit side effect.
726
- - **Decision 78**: Attachments are chunked based on converted markdown text with strict lineage propagation into metadata.
727
- - **Decision 79**: Code extension expansion remains bounded by existing file-count/size/skip-dir controls to avoid runtime blow-ups.
728
- - **Decision 80**: Format-level diagnostics are mandatory so operators can validate retrieval corpus quality before row analysis.
729
- - **Decision 81**: Attachment conversion quality is reported in extraction payloads, not inferred from corpus rows only.
730
- - **Decision 82**: Code chunk discovery lineage must be explicit to avoid ambiguous `unknown` diagnostics in downstream readiness/reporting.
731
- - **Decision 83**: Extensionless attachments are inferred before conversion to reduce false `(unknown)` partials and improve retrieval corpus completeness.
732
- - **Decision 84**: External HTML conversion quality is validated heuristically; mojibake output is rejected in favor of deterministic fallback conversion.
733
- - **Decision 85**: Attachment conversion diagnostics must be persisted in `sync_metadata` per artifact (not only aggregated summaries) so future runs can reuse and inspect quality telemetry directly from Postgres state.
734
-
735
- ## Package W - Unified Audit Quality + Skill Effectiveness + Performance Optimization (Phase 89, Complete)
736
-
737
- ### Design Implementation
738
-
739
- Observed run-quality baseline driving this package:
740
- - Miniapp-be run (`miniapp-be-e2e-20260226-171208`) showed optional-skill churn on `CL-028` (`12` skill calls, `3` effective) despite `skills_needed=false`.
741
- - One required-skill row (`CL-047`) missed skill-policy event coverage due timeout/degraded path.
742
- - Docs-target execution compliance remained low (`12/51`) versus code-target compliance (`48/55`), requiring explicit execution/skip controls.
743
-
744
- #### Repo-Type-Aware Checklist Scoping (FR-185)
745
-
746
- - Introduce a `RepoTypeClassifier` component that detects repo type from file-tree heuristics:
747
- - `frontend`: presence of `package.json` + framework markers (React/Vue/Angular/Flutter) + absence of backend markers (Dockerfile, Helm, server frameworks).
748
- - `backend`: presence of server framework files (Spring, Django, FastAPI, Go main), Dockerfiles, database migration scripts.
749
- - `infrastructure`: primarily Terraform, Ansible, Helm charts, CI/CD pipelines.
750
- - `fullstack`: significant presence of both frontend and backend markers.
751
- - Scoping policy is a declarative mapping (configurable YAML/dict) from repo type to sets of check IDs or category patterns that are structurally N/A.
752
- - Default policy for `frontend`: N/A for Docker/Helm/CI-CD pipeline/DB schema/Grafana dashboard/monitoring-infra categories.
753
- - Default policy for `backend`/`fullstack`: no rows scoped out (all applicable).
754
- - Default policy for `infrastructure`: N/A for frontend-specific UI/UX/accessibility categories.
755
- - N/A rows bypass LLM evaluation entirely and are injected into checklist output with `status=N/A`, `reason_code=repo_type_excluded`.
756
- - Aggregate score denominator excludes N/A rows so pass rate reflects only applicable rows.
757
- - CLI `--repo-type` option allows explicit override with `auto` default.
758
-
759
- #### Repo Identifier Consistency (FR-206A Follow-up)
760
-
761
- - Repo identity derivation uses a deterministic precedence chain:
762
- - `bitbucket_project_key + bitbucket_repo_key` (or values parsed from `repo_url`) as primary.
763
- - Explicit `repo_storage_key` when primary Bitbucket identity is unavailable.
764
- - `project_storage_key + repo_slug` fallback only as last resort for non-Bitbucket entries.
765
- - CLI resolver paths (`parse-repo`, workflow repo-path inference, analyze preflight repo resolution) and state loader paths (`_repo_storage_key_from_entry`) must share this precedence contract.
766
- - Seed selector tie-breakers prefer entries with Bitbucket-native identity to prevent fallback project-prefixed keys from winning ambiguous matches.
767
- - Existing legacy project-prefixed keys remain readable for backward state compatibility but are no longer preferred for new run resolution.
768
- - State loaders sanitize synthetic `bitbucket.local/projects/local/...` placeholders during artifact recording and manifest hydration to prevent cross-project mapping contamination; non-local placeholder repo links are canonicalized to the discovered Bitbucket origin when possible.
769
-
770
- #### Retrieval Snapshot Migration Compatibility (FR-206B Follow-up)
771
-
772
- - Repo-scoped retrieval refresh resolves previous snapshot baseline with deterministic precedence:
773
- - exact repo key snapshot (`repo_key == selected repo key`);
774
- - legacy alias snapshot derived from `local-*` key (`<project>-<slug>`);
775
- - project-scope fallback snapshot (`repo_key IS NULL`) only when repo baselines are unavailable.
776
- - Changed-chunk planning reuses prior snapshot hashes in two modes:
777
- - direct match (`chunk_id` + `content_hash`);
778
- - migration-safe match (`content_hash` only) when chunk IDs drift after repo-key normalization.
779
- - Embedding copy SQL for unchanged chunks matches either `chunk_id` or `content_hash`, so reused vectors are preserved across identifier migrations without re-embedding unchanged text.
780
- - Model-digest compatibility gate treats legacy non-canonical digest payloads as compatible to prevent forced full re-embed churn from historical snapshot metadata; canonical hash digest mismatches still trigger `force_full_reembed`.
781
-
782
- #### Embedding Pipeline Optimization (FR-186, FR-187)
783
-
784
- - Guard Ollama probe (`embed_texts()` connectivity check) behind `lexical_only` flag check at `vector_index.py` initialization.
785
- - Wrap `_fetch_model_digest` with an in-memory LRU/TTL cache (default TTL: 300s). Use `functools.lru_cache` with a timestamp wrapper or `cachetools.TTLCache`.
786
- - Cache key: model name string. Cache invalidation: TTL expiry or model name change.
787
-
788
- #### Concurrent Row Evaluation (FR-188)
789
-
790
- - Extend `BatchExecutor` to accept `row_concurrency` parameter.
791
- - When `row_concurrency > 1`, dispatch row evaluation coroutines via `asyncio.Semaphore(row_concurrency)` within the batch loop.
792
- - Row-level state mutations (checkpoint writes, diagnostics accumulation) use per-row isolation; batch-level aggregation occurs after all rows complete.
793
- - Rate-limit errors (429, 529) trigger per-row exponential backoff with jitter; other errors fail the individual row without blocking siblings.
794
- - Batch timing diagnostics emit `wall_clock_ms`, `cumulative_row_ms`, `concurrency_efficiency_ratio`.
795
-
796
- **Detailed Architecture for Parallel Row Evaluation:**
797
-
798
- 1. **Concurrency primitive**: Use `asyncio.Semaphore(N)` where N is `--row-concurrency` (default: 1 for backward compatibility). Rows within `_process_batch()` are dispatched via `asyncio.gather(*[sem_limited_evaluate(row) for row in batch_rows])`.
799
-
800
- 2. **Sync-to-async bridge**: The current synchronous `match_row()` evaluation function is wrapped with `asyncio.to_thread(match_row, row, ...)` to avoid blocking the event loop. Each thread gets its own call context.
801
-
802
- 3. **Connection pooling**: Replace the single `psycopg.connect()` used for checkpoint/state writes with `psycopg_pool.ConnectionPool(min_size=1, max_size=row_concurrency+1)`. The pool is initialized once per workflow run and passed to the batch executor. Each concurrent row evaluation acquires a connection from the pool for checkpoint writes and releases it after completion.
803
-
804
- 4. **Per-row telemetry isolation**: `_last_prompt_tool_telemetry` and other mutable row-level diagnostics accumulators are isolated per-row (thread-local or explicit per-row dict). Batch-level aggregation merges per-row results after `asyncio.gather()` completes. No shared mutable state between concurrent row evaluations.
805
-
806
- 5. **Phased implementation plan**:
807
- - **Phase 1 (Foundation)**: Add `--row-concurrency` CLI option, `asyncio.Semaphore` dispatch in `_process_batch()`, `asyncio.to_thread()` wrapper for `match_row()`, per-row diagnostics isolation. Default concurrency=1 preserves sequential behavior.
808
- - **Phase 2 (Connection pool)**: Replace `psycopg.connect()` with `psycopg_pool.ConnectionPool`. Add pool health diagnostics (acquired/idle/waiting counts) to batch timing output.
809
- - **Phase 3 (Hardening)**: Add per-row exponential backoff for rate-limit errors (429/529) with configurable max retries. Add concurrency efficiency benchmarks for miniapp-core/miniapp-be at concurrency=2 and concurrency=3. Verify checkpoint correctness under concurrent writes.
810
-
811
- 6. **CLI option**: `--row-concurrency <N>` (default: 1). Validate N ≥ 1. When N=1, execution path is identical to current sequential behavior (non-regression).
812
-
813
- #### Evidence Retrieval Cache (FR-189)
814
-
815
- - Introduce `BatchEvidenceCache` (dict keyed by chunk/document ID) initialized at batch start, cleared at batch end.
816
- - Evidence retrieval path checks cache before Postgres/disk fetch; on miss, fetches and stores.
817
- - Cache hit/miss counters are accumulated in batch timing diagnostics.
818
-
819
- #### Batch Size Default (FR-190)
820
-
821
- - Change default `batch_size` from 5 to 8 in CLI option definition.
822
- - No other behavioral changes; `--batch-size` override continues to work.
823
-
824
- #### Non-Retryable Error Expansion (FR-191)
825
-
826
- - Add `"not permitted"` to the non-retryable error marker set in the Confluence fetch error classifier (case-insensitive match).
827
- - Existing markers (`403`, `"forbidden"`, `"unauthorized"`) remain unchanged.
828
-
829
- #### Permission-Denied Crawl Visibility (FR-192)
830
-
831
- - Extend `doctor crawl-status` output model to include a `permission_denied_pages` list.
832
- - Filter state-persisted crawl errors matching permission-denied patterns into this dedicated section.
833
- - Include count in summary totals alongside existing success/error/pending counts.
834
-
835
- #### Streamed Post-Processing (FR-193)
836
-
837
- - Refactor post-processing pipeline to accept batch results incrementally.
838
- - Start Excel row append + Postgres row upload as each batch completes, using an asyncio producer/consumer pattern.
839
- - Final report assembly (aggregate checklist, metadata, delta) waits for all batches and all post-processing tasks.
840
- - Timing diagnostics report `post_processing_overlap_ms` (time saved vs sequential baseline).
841
-
842
- #### Optional Skill Hard-Gate + Minimal Sequence Policy (FR-194, FR-195, FR-200)
843
-
844
- - Extend prompt toolset filtering so `skills_needed=false` defaults to strict skill suppression:
845
- - disable `list_skills`, `load_skill`, `run_skill_script`,
846
- - permit fallback `read_skill_resource` only under deterministic evidence-gap predicate.
847
- - For `skills_needed=true`, enforce execution-first path:
848
- - objective-ranked skill selection,
849
- - direct `read_skill_resource` before discovery expansion,
850
- - `run_skill_script` allowed only for script-oriented objectives or explicit override.
851
- - Add explicit skill operating modes (`minimal`, `balanced`, `full`) with canonical checklist defaulting to `minimal`.
852
- - Keep legacy behavior available through explicit operator override flags/env settings.
853
-
854
- #### Low-Yield Skill Churn Guard (FR-196)
855
-
856
- - Upgrade non-progress guard to evaluate:
857
- - skill effective-rate,
858
- - requirement-coverage contribution of skill turns,
859
- - high-volume low-yield execution patterns (not only discovery-only churn).
860
- - Emit deterministic churn reason code (`skill_low_yield_churn`) and constrain retries to narrower skill plan.
861
- - Include skill counts/effective-rate directly in row diagnostics for verification.
862
-
863
- #### Unified Skill Telemetry Completeness (FR-197)
864
-
865
- - Unify `tool_first_loop` and `prompt_tool_telemetry` skill observations into one `skill_tool_usage` surface with source attribution.
866
- - Emit `row_skill_policy_effectiveness` for every row, including timeout/degraded rows.
867
- - Preserve timeout/degraded counter integrity in projection (`tool_call_summary` fallback to timeout progress snapshot).
868
- - Add run-level diagnostics for skill-policy event coverage completeness.
869
-
870
- #### Evidence-Target Execution Compliance (FR-198)
871
-
872
- - Add compliance gate in row quality layer:
873
- - docs target requires docs-path execution or explicit audited skip reason,
874
- - code target requires code-path execution or explicit audited skip reason.
875
- - Store aggregate run metrics (`docs_target_compliance`, `code_target_compliance`) for trend monitoring.
876
- - Flag rows that miss both execution and audited skip reason with deterministic quality-warning diagnostics.
877
-
878
- #### Effectiveness-Driven Skill Ranking (FR-199)
879
-
880
- - Extend skill recommendation ranking with measured effectiveness signals by objective family and repo type.
881
- - Delay broad fallback skill expansion until top-ranked candidates fail to produce effective contributions.
882
- - Persist ranking rationale in row trace metadata for operator debugging and policy tuning.
883
-
884
- #### Doc Search Tool Bias for Non-Code Categories (FR-201)
885
-
886
- - Introduce a category-to-tool-bias mapping that classifies checklist categories into `docs_primary`, `code_primary`, or `balanced` based on category semantics.
887
- - For `docs_primary` categories (governance, process, compliance, architecture, documentation quality), the agentic system prompt includes explicit instruction to prioritize `search_docs` and `read_doc_chunk` before code-oriented tools.
888
- - For `code_primary` categories (code quality, testing, security implementation), current code-first behavior is preserved.
889
- - For `balanced` categories, no bias is applied (tool selection remains LLM-driven).
890
- - Tool bias policy is emitted per-row in retrieval trace metadata (`tool_bias_policy: docs_primary|code_primary|balanced`).
891
- - Target: increase `search_docs` call rate for `docs_primary` rows from ~18% baseline to ≥60%.
892
-
893
- #### Evidence Anti-Concentration — Diversity Penalty (FR-202)
894
-
895
- - Add a diversity penalty mechanism to the evidence ranking pipeline that reduces ranking scores for source documents/files that appear in top-k results across more than a configurable threshold of rows (default: 30%).
896
- - The penalty is applied at the run level: a `source_frequency_map` is maintained as rows are evaluated, and sources exceeding the threshold receive a multiplicative score penalty (default: 0.7x).
897
- - Anti-concentration metrics (`top_source_concentration_ratio`, `unique_sources_per_row_avg`) are computed at run completion and emitted in run-level retrieval diagnostics.
898
- - A `--no-evidence-diversity` CLI flag disables the penalty for backward compatibility and A/B comparison.
899
-
900
- #### Evidence Truncation Mitigation (FR-203)
901
-
902
- - Refactor evidence context assembly to rank chunks by relevance score before applying the `max_evidence_chars` budget, ensuring highest-relevance chunks survive truncation.
903
- - Increase default `max_evidence_chars` from 8000 to 12000 for canonical checklist runs (existing `--max-evidence-chars` CLI option continues to work as override).
904
- - Emit enhanced truncation diagnostics: `pre_truncation_chunk_count`, `post_truncation_chunk_count`, `relevance_score_range` (min/max of truncated vs retained).
905
- - Flag rows where truncation removes >50% of chunks with `evidence_truncation_severe` quality warning in row diagnostics.
906
-
907
- #### Unverified Reference Corrective Retry (FR-204)
908
-
909
- - After initial row evaluation, compute `unverified_ref_ratio` from evidence verification results.
910
- - When `unverified_ref_ratio > 0.5`, dispatch one corrective retry with the same evidence context but an explicit grounding constraint in the LLM prompt (instruction to cite only from provided evidence chunks).
911
- - The retry result replaces the original only if `unverified_ref_ratio` improves; otherwise the original evaluation is preserved.
912
- - Retry diagnostics (`original_unverified_ratio`, `retry_unverified_ratio`, `retry_accepted`) are recorded in row trace metadata.
913
- - This mechanism is independent of the existing `--row-consistency-retry-mode` (which handles reasoning/evidence contradiction); both can fire on the same row.
914
-
915
- #### Evaluation Stability Metric (FR-205)
916
-
917
- - When `--stability-runs N` (N ≥ 2) is used, compute per-row stability as `1 - (std_dev / max_possible_range)` across repeated evaluations.
918
- - Rows with stability < 0.5 receive `low_stability` quality warning in checklist output.
919
- - When multi-repo project runs are available (same checklist applied to multiple repos in same project), compute cross-repo divergence per check ID. Rows with >50% score divergence are flagged with `cross_repo_divergent` marker.
920
- - Stability and divergence metrics are included in run-level quality summary (`stability_summary`, `cross_repo_divergence_summary`).
921
-
922
- #### LLM Token Usage Instrumentation (FR-206)
923
-
924
- - Extend the LLM call wrapper to capture token usage from backend responses (`prompt_tokens`, `completion_tokens`, `total_tokens`).
925
- - Emit token usage in every LLM call runtime log event under `token_usage` key.
926
- - Compute run-level aggregate token metrics (`total_prompt_tokens`, `total_completion_tokens`, `total_tokens`) and emit in workflow summary.
927
- - Emit per-row token usage in row diagnostics for cost attribution by row/batch.
928
- - Token metrics gracefully degrade to `null` when backend does not return usage metadata (pydanticai model response may not always include usage for all providers).
929
-
930
- ### Design Decisions
931
-
932
- - **Decision 83**: Repo-type classification is heuristic-based (file-tree analysis), not LLM-based, for determinism and zero-cost execution.
933
- - **Decision 84**: Checklist scoping policy is declarative and configurable, not hardcoded, to support evolving checklist templates.
934
- - **Decision 85**: N/A rows are excluded from score denominator to avoid penalizing repos for structurally inapplicable checks.
935
- - **Decision 86**: Parallel row evaluation uses asyncio semaphore (not thread pool) to stay within the existing async runtime model.
936
- - **Decision 87**: Evidence cache scope is per-batch (not per-run) to bound memory usage proportional to batch size.
937
- - **Decision 88**: Post-processing streaming uses producer/consumer pattern for clean separation of evaluation and export concerns.
938
- - **Decision 89**: Default batch size increase (5→8) is conservative; operators can tune higher via CLI option.
939
- - **Decision 90**: Model digest TTL cache is in-memory only; no disk persistence needed for a per-run optimization.
940
- - **Decision 91**: Optional skill paths are fail-closed by default in canonical checklist mode; fallback skill use is evidence-gap driven, not advisory-only.
941
- - **Decision 92**: Required skill rows prioritize execution-first minimal sequence over discovery-first sequence to reduce latency and churn.
942
- - **Decision 93**: Skill churn detection must account for low-yield execution loops, not only discovery-without-execution loops.
943
- - **Decision 94**: Skill telemetry completeness is a first-class quality contract, including timeout/degraded row coverage.
944
- - **Decision 95**: Target compliance enforcement (docs/code execution or audited skip reason) is required for deterministic row-quality diagnostics.
945
- - **Decision 96**: Skill ranking favors measured effectiveness over static fallback priority when runtime evidence is available.
946
- - **Decision 97**: Canonical checklist defaults prioritize deterministic minimal skill usage with explicit operator opt-in for broader skill behavior.
947
- - **Decision 98**: Doc search tool bias uses category-level classification (not per-row LLM reasoning) for deterministic and zero-overhead tool routing.
948
- - **Decision 99**: Evidence anti-concentration uses run-level source frequency tracking with multiplicative penalty, not per-batch, to catch cross-batch concentration patterns.
949
- - **Decision 100**: Evidence truncation mitigation prioritizes relevance-ranked preservation over position-based truncation to maximize signal per evidence budget.
950
- - **Decision 101**: Unverified reference corrective retry is independent of consistency retry (FR-31) — both can fire on the same row for different quality signals.
951
- - **Decision 102**: Evaluation stability metric reuses existing `--stability-runs` infrastructure and adds cross-repo divergence as an optional quality dimension.
952
- - **Decision 103**: LLM token instrumentation is best-effort (graceful null) because not all protocol backends guarantee usage metadata in every response.
953
-
954
- ## Package X - Hierarchy Model Hard-Cut (Phase 90, Complete)
955
-
956
- ### Design Implementation
957
-
958
- Current implementation state (Feb 27, 2026):
959
- - Implemented: `parse-project` selector domain now rejects Bitbucket project keys with boundary-aware diagnostics.
960
- - Implemented: `parse-repo` supports `--bitbucket-project` scoping and emits grouped Bitbucket project summaries.
961
- - Implemented: `parse-registry` output now includes deterministic `departments[]` summary with nested compact project entries.
962
- - Implemented: Confluence ancestry metadata and deterministic lineage-derived department assignment are persisted through parser -> state flows.
963
- - Implemented: normalized hierarchy schema entities (`departments`, `bitbucket_projects`) with FK links and idempotent backfill/mapping diagnostics.
964
- - Implemented: `state readiness` emits hierarchy counters, `hierarchy_ready`, and bounded anomaly samples.
965
- - Implemented: `doctor hierarchy-status` emits bounded hierarchy anomaly diagnostics for operator triage.
966
- - Closure status: project-scoped hierarchy diagnostics now report `anomaly_count=0` and `hierarchy_ready=true` for the closure dataset, with deterministic dedupe/normalization behavior validated in unit tests and real CLI runs.
967
-
968
- #### Canonical Hierarchy Graph (FR-207..FR-210)
969
-
970
- - Introduce explicit hierarchy entities:
971
- - `DepartmentNode` -> `ProjectNode` -> `BitbucketProjectNode` -> `RepoNode`.
972
- - Registry parser records Confluence ancestry and assigns each project to one canonical department bucket.
973
- - Project payload contract migrates from flat `bitbucket[]` to grouped `bitbucket_projects[]`, each containing `repos[]`.
974
- - Repo canonical identity emits Bitbucket-native keys (`<bitbucket_project_key>:<bitbucket_repo_key>`) when URL/metadata is available.
975
-
976
- #### Parse Contract Hard-Cut (FR-208, FR-211)
977
-
978
- - `parse-project` selector domain is restricted to project selectors only:
979
- - `project_storage_key`,
980
- - Confluence page ID/URL aliases,
981
- - canonical project titles.
982
- - Bitbucket project keys are removed from project selector aliases to eliminate collisions (`MAP|WEBAPPV2|SUPERAPP` -> Mini app contamination class).
983
- - `parse-repo` adds explicit Bitbucket-project scoping (`--bitbucket-project`) inside a selected project.
984
- - Error diagnostics become boundary-aware: project selector mismatch vs bitbucket-project selector mismatch.
985
-
986
- #### State Schema Evolution (FR-212, FR-213)
987
-
988
- - Add normalized hierarchy persistence:
989
- - `departments` table/entity for canonical department nodes,
990
- - `bitbucket_projects` table/entity scoped by project,
991
- - deterministic FK links from repos to `bitbucket_projects`.
992
- - Migration/backfill pipeline:
993
- - derive department membership from stored project ancestry/tree signals,
994
- - derive Bitbucket project key from URL + existing metadata fields,
995
- - quarantine unresolved rows with explicit diagnostics.
996
- - Extract-docs state artifact recording persists grouped hierarchy payloads directly (no flattening rewrite stage).
997
-
998
- #### Diagnostics and Readiness Gates (FR-214..FR-216)
999
-
1000
- - Extend readiness payloads with hierarchy counters and `hierarchy_ready` flag.
1001
- - Add hierarchy anomaly diagnostics:
1002
- - unassigned projects,
1003
- - ungrouped repos,
1004
- - selector collision candidates,
1005
- - quarantined unresolved repo links.
1006
- - Closure verification requires real-run proofs on:
1007
- - root registry `pageId=88716675`,
1008
- - Mini app page `pageId=88718882`,
1009
- - selector isolation checks (`parse-project --project MAP` must fail with guidance).
1010
-
1011
- ## Package Y - CLI Modularization + Scoring Completeness + Error Handling Hardening (Phase 91)
1012
-
1013
- Current implementation status:
1014
- - Implemented: FR-217..FR-227 (all Phase 91 requirements complete).
1015
-
1016
- ### CLI Decomposition (FR-217..FR-219)
1017
-
1018
- The monolithic `cli.py` decomposition is complete:
1019
-
1020
- - **Command-group submodules (implemented)**: `workflow_cmds.py`, `parse_cmds.py`, `state_cmds.py`, `doctor_cmds.py`, `sync_cmds.py`, `extract_cmds.py`, `analyze_cmds.py`, `misc_cmds.py`.
1021
- - **Shared infrastructure module (complete)**: `cli_common.py` centralizes shared primitives (`app`, `sync_app`, `doctor_app`, `state_app`, `_cli_state`, `console`, `logger`, DSN/shared-env constants) and command modules consume shared infrastructure without monolithic fallbacks.
1022
- - **Thin router target (complete)**: `cli.py` is now a thin router shim (12 lines) that delegates to `cli_impl.py`.
1023
-
1024
- Import isolation is verified by deterministic wiring coverage in `tests/unit/test_cli_decomposition_fr219.py` (23 passing tests).
1025
-
1026
- ### Checklist Scoring Completeness (FR-220..FR-222)
1027
-
1028
- Three deferred scoring features in `checklist_generator.py` are implemented:
1029
-
1030
- - **Profile-based weight adjustment** (FR-220): Weight scaling factors sourced from the active audit profile, applied during row scoring. Default profile preserves current behavior.
1031
- - **Score gating conditions** (FR-221): Configurable cap/floor rules triggered by evidence quality predicates (min evidence count, min confidence) with persisted `gating_applied`/`gating_reason` metadata in row artifacts. Default config is non-gating for backward-compatible scoring.
1032
- - **Coverage tracking** (FR-222): Per-row coverage factor is persisted in row score breakdown; aggregate coverage diagnostics are emitted in `workflow-summary.json`.
1033
-
1034
- ### Error Handling Hardening (FR-223..FR-225)
1035
-
1036
- This package area is complete:
1037
-
1038
- - **Exception audit** (FR-223): implemented; durable artifacts are available at `reports/verification/phase91_error_handling/phase91-exception-audit-20260227/` and finalize snapshot `.../phase91-exception-audit-20260227-finalize/`.
1039
- - **Specific exception replacement** (FR-224): complete; top-5-file broad-catch count reduced from 117 to 56 (52.14% reduction, gate <=58 passed).
1040
- - **Structured error logging** (FR-225): complete; hardened handlers emit structured fields (`error_type`, `source_module`, `context`, `recovery_action`) and are validated by targeted regression suites.
1041
-
1042
- WP-91.3 depends on WP-91.1 completion — CLI submodules must be split before exception hardening to avoid merge conflicts in the monolithic file.
1043
-
1044
- ### Skill Fallback Robustness (FR-226)
1045
-
1046
- Implemented broad fallback path:
1047
-
1048
- - Fallback triggers when primary skill read returns insufficient evidence or errors.
1049
- - Candidates ranked by historical effectiveness scores from existing skill telemetry.
1050
- - Bounded depth (max 2 fallback candidates) prevents unbounded churn.
1051
- - Telemetry records: trigger count, candidate ranking, success rate per row.
1052
-
1053
- ### Design Decisions
1054
-
1055
- - **Decision 104**: Hierarchy model is first-class and normalized; implicit hierarchy inferred from flat metadata is not accepted as canonical.
1056
- - **Decision 105**: Phase 90 is a hard-cut migration for parse contracts; ambiguous compatibility aliases are removed, not silently preserved.
1057
- - **Decision 106**: Bitbucket-project grouping is canonical output shape for repos; flat project-level repo arrays are deprecated from parse outputs.
1058
- - **Decision 107**: Project selector and Bitbucket-project selector domains must remain isolated to prevent cross-scope mis-resolution.
1059
- - **Decision 108**: Repo identity precedence remains Bitbucket-native first; fallback keys are migration aliases only.
1060
- - **Decision 109**: Schema/data migration must be idempotent and produce auditable diagnostics for migrated and quarantined records.
1061
- - **Decision 110**: Hierarchy readiness is promoted to a preflight quality gate alongside docs/code chunk readiness.
1062
- - **Decision 111**: Non-sensitive hierarchy tuning remains TOML-driven (`~/.vds/config/*`), while credentials stay in `~/.vds/.env`.
1063
- - **Decision 112**: Real-run verification on production Confluence/Bitbucket mappings is mandatory before Phase 90 closure.
1064
- - **Decision 113**: CLI decomposition is complete for Phase 91: `cli.py` remains a thin router and command-group handlers live in dedicated modules.
1065
- - **Decision 114**: CLI submodules are importable and consume shared primitives from `cli_common.py`; regression gates enforce import isolation and command registration parity.
1066
- - **Decision 115**: Profile-based weight adjustment defaults to identity scaling (no change) for backward compatibility; explicit profile config required to activate.
1067
- - **Decision 116**: Error handling hardening targets error-swallowing catches only; intentional-recovery and boundary-guard catches are preserved.
1068
- - **Decision 117**: Skill fallback depth is bounded at max 2 candidates to prevent unbounded churn; effectiveness ranking reuses existing telemetry infrastructure.
1069
-
1070
- ## Package Z - Intelligent Preparation + Metadata Completeness (Phase 92)
1071
-
1072
- > **Clean-break implementation**: Phase 92 removes legacy full-scan, force-reembed, and opt-out refresh paths. All new metadata fields are required. DiffDetector is the only code file discovery path. Incremental refresh is the only mode.
1073
-
1074
- Current implementation status:
1075
- - In progress: FR-232/FR-233 baseline cleanup and NFR-Y7 instrumentation are implemented; FR-228..FR-231/FR-234 remain open for full closure.
1076
-
1077
- ### DiffDetector-Only Code Chunking (FR-228)
1078
-
1079
- The existing `DiffDetector` (`incremental/diff_detector.py:64`) provides a complete git diff API surface:
1080
- - `get_current_commit()` (line 122): returns HEAD SHA.
1081
- - `get_changes_since_commit(base_commit)` (line 136): returns `DiffResult` with `FileChange` list.
1082
- - `_parse_diff_output()` (line 216): parses `--name-status` output with rename/copy detection.
1083
-
1084
- **Clean-break change**: `_iter_repo_code_files()` (`cli_impl.py:902-926`) and `_CODE_CORPUS_MAX_FILES_PER_REPO` (`cli_impl.py:853`) are **deleted**. The replacement:
1085
- 1. Store `head_commit_sha` in a dedicated required TEXT column in `audit_state.repos` (persisted after every extraction).
1086
- 2. On first extraction (no stored SHA), diff against Git empty tree (`4b825dc642cb6eb9a060e54bf8d69288fbee4904...HEAD`) to enumerate all tracked files.
1087
- 3. On subsequent extractions, diff against stored SHA to get only changed/added files.
1088
- 4. Unchanged file chunk records are carried forward from previous Postgres `corpus_chunks` snapshot.
1089
- 5. No fallback to full scan — DiffDetector failure is a hard error with structured logging.
1090
-
1091
- ### Snapshot-Level Early Exit (FR-229, Mandatory)
1092
-
1093
- The retrieval refresh pipeline flows: `refresh_project_index` (`evidence/vector_index.py:43`) → `state_store.plan_retrieval_refresh` (`state/store.py:4858`) → `state_store.apply_retrieval_refresh`.
1094
-
1095
- Early exit is inserted at the `plan_retrieval_refresh` stage:
1096
- 1. Compute aggregate `content_hash` of all incoming chunks.
1097
- 2. Compare against `retrieval_snapshots.content_hash` for the latest snapshot with matching `snapshot_key`.
1098
- 3. If hashes match, return `early_exit: true` plan with zero changed chunks.
1099
- 4. `refresh_project_index` short-circuits before embedding client instantiation (line 100-108) when early exit is signaled.
1100
- 5. **No opt-out** — early exit is the only path when content is unchanged.
1101
-
1102
- Target: < 100ms for no-change reruns on prepared repos.
1103
-
1104
- ### No-Change Preparation Fast Paths (Phase 92 follow-up)
1105
-
1106
- To reduce fixed overhead outside retrieval-refresh early exit, extract-docs now applies additional no-change fast paths:
1107
- 1. Linked Confluence page resolution/download is skipped when resume-state indicates unchanged crawl output (`completed=true`, `pages_fetched=0`, `pages_failed=0`, `pages_skipped_unchanged>0`).
1108
- 2. No-change root/child page handling reuses prepared cached markdown entries in offline mode, avoiding redundant Confluence fetch + reconversion.
1109
- 3. Bitbucket link processing deduplicates by canonical repo identity (`bitbucket_project_key:repo_slug`) so alias URLs are not processed repeatedly.
1110
- 4. Retrieval refresh planning uses exact `snapshot_key` lineage first; project-level fallback snapshots are consulted only when the exact key is absent.
1111
- 5. Repo `head_commit_sha` is persisted eagerly after diff planning (before long embedding refresh) and repo refresh targets are deduplicated by resolved `local_code_path` to avoid duplicate alias processing.
1112
-
1113
- Observed effect (Merchant + Mini App verification bundles): no-change reruns improved but still exceed AC-Y7.1 for full prepared runs. Merchant bundle `merchant-20260228-011021` improved to `34207ms` best selector-scoped run; Mini App remediation bundles reduced missing repo heads from `64 -> 22` (`miniapp-head-backfill-20260228-053449`) and then `22 -> 14` (`miniapp-postfix2-20260228-060821`). Follow-up validation `miniapp-postfix4-20260228-091636` confirmed state-aware repo target ranking + no-baseline skip path removes prior large fallback re-embeds (`repo_refresh.refreshed_repo_snapshots=1`, `repo_refresh.skipped_without_repo_baseline=16`) and removed missing-row head-persist warnings; active synced repos report `active_missing_head=0` (`head-count-active.json`). Remaining aggregate gap is stale/non-repo state rows that still keep `missing_head=14`; cleanup is tracked under TSK-920.41.
1114
-
1115
- ### Document-Level Chunking Skip (FR-230)
1116
-
1117
- `corpus_documents.version_tag` (`store.py:789`) is changed from `TEXT NULL` to `TEXT NOT NULL DEFAULT ''`:
1118
- - For Confluence documents: populated with `page.version.number` from Confluence API.
1119
- - For code files: populated with git commit SHA from DiffDetector.
1120
-
1121
- During document chunking:
1122
- 1. Query `version_tag` by (`source_type`, `source_uri`) for the document (`page_id` is Confluence convenience only).
1123
- 2. Compare against current Confluence page `version` from material metadata.
1124
- 3. Skip chunking if versions match; reuse existing `corpus_chunks`.
1125
- 4. After chunking, update `version_tag` to current page version.
1126
-
1127
- ### Legacy Code Removal (FR-234)
1128
-
1129
- **Deleted code paths** (clean-break inventory):
1130
-
1131
- | Item | Location | Action |
1132
- |------|----------|--------|
1133
- | `_iter_repo_code_files()` full scan | `cli_impl.py:902-926` | **Delete** — replaced by DiffDetector |
1134
- | `_CODE_CORPUS_MAX_FILES_PER_REPO` | `cli_impl.py:853` | **Delete** — DiffDetector returns only changed files |
1135
- | `force_full_reembed` parameter | `vector_index.py:56`, `store.py:4868` | **Delete** from all signatures |
1136
- | `force_full_reembed` callers (8 sites) | `extract_cmds.py:2419,2440,2451,2551,2565,2663,2670,2717` | **Delete** all passthrough |
1137
- | `effective_force_full` logic | `store.py:4945-5005` | **Replace** with: model change = all chunks changed |
1138
- | `--refresh-retrieval-snapshot` flag | `extract_cmds.py:424-431` | **Delete** — always on |
1139
- | `refresh_retrieval_snapshot_enabled` skip | `extract_cmds.py:2110-2119`, `2394-2415` | **Delete** — always refresh |
1140
- | `--incremental/--no-incremental` flag | `extract_cmds.py:187-191` | **Delete** — always incremental |
1141
- | `--fetch-policy` flag | `extract_cmds.py:159-163` | **Delete** — `if-changed` hardcoded |
1142
- | `--cache-mode` flag | `extract_cmds.py:154-157` | **Delete** — `read-write` hardcoded |
1143
- | `--crawl-mode` flag | `extract_cmds.py:116-120` | **Delete** — dead code, locked to `bulk` at line 595 |
1144
- | `--emit-corpus` flag | `extract_cmds.py:121-127` | **Delete** — auto-forced True, always on |
1145
- | Fetch policy validation | `extract_cmds.py:625-630` | **Delete** — no policy to validate |
1146
- | Cache mode validation | `extract_cmds.py:625` | **Delete** — no mode to validate |
1147
- | TOML overrides for removed options | `extract_cmds.py:548-591` | **Clean up** — remove dead `_apply_default_*` keys |
1148
-
1149
- ### Confluence Metadata Flow (FR-231, Required Fields)
1150
-
1151
- Metadata fields are promoted from optional to **required**:
1152
- - `corpus_documents.source_uri` (`store.py:787`): changed to `TEXT NOT NULL`.
1153
- - `CorpusChunk` model (`chunking.py:55-63`): extended with required first-class fields `source_type`, `source_uri`, `version_tag`, `content_hash` instead of burying them in `metadata` dict.
1154
-
1155
- Flow enforcement:
1156
- 1. **Confluence API response** → material download artifacts: `page_id`, `space_key`, `page_title`, canonical `source_uri` preserved (`confluence_url`/`source_url` normalized as aliases).
1157
- 2. **Material artifacts** → chunking stage: all four fields propagated into chunk records.
1158
- 3. **Chunk records** → `ChunkRecord` (`evidence/vector_index.py:18`): `page_id` (line 25) and `source_uri` (line 27) already exist; `space_key` and `page_title` are required metadata.
1159
- 4. **Code file chunks**: `commit_sha` added to metadata; `version_tag` set to commit SHA.
1160
-
1161
- ### Simplified CLI Surface (FR-232, FR-234)
1162
-
1163
- The extract-docs CLI is aggressively simplified. The clean-break removes all manual override modes and opt-out flags:
1164
-
1165
- **Removed CLI options (with rationale):**
1166
-
1167
- | Option | Location | Why Removed |
1168
- |--------|----------|-------------|
1169
- | `--fetch-policy` | `extract_cmds.py:159-163` | Only `if-changed` is valid; `force-refresh` and `offline` allow stale/missing data |
1170
- | `--cache-mode` | `extract_cmds.py:154-157` | Only `read-write` is valid; `off` defeats caching, `read` produces stale, `refresh` is redundant |
1171
- | `--refresh-retrieval-snapshot` | `extract_cmds.py:424-431` | Always on during `--execute`; the opt-out `--no-refresh-retrieval-snapshot` allowed silently stale snapshots |
1172
- | `--incremental` | `extract_cmds.py:187-190` | Always incremental; `--no-incremental` caused full wasteful re-processing |
1173
- | `--crawl-mode` | `extract_cmds.py:116-120` | Dead code — already locked to `bulk` at line 595 |
1174
- | `--emit-corpus` | `extract_cmds.py:121-127` | Dead code — auto-forced True when refresh is on (lines 609-615) |
1175
-
1176
- **TOML config cleanup**: `_apply_default_*` overrides (`extract_cmds.py:548-591`) for removed options are deleted; remaining TOML tuning (e.g., `recursive_depth`, `crawl_max_nodes`, `linked_page_concurrency`) is preserved.
1177
-
1178
- **Retained options**: `--verify-cache-integrity`, `--include-bitbucket`, `--include-linked-confluence-pages`, and operational parameters (depth, concurrency, output paths).
1179
-
1180
- After cleanup, `extract-docs --execute` is the only invocation pattern: always `if-changed`, always `read-write` cache, always incremental, always refresh snapshots, always emit corpus.
1181
-
1182
- ### Agent Instruction Citation Update (FR-233)
1183
-
1184
- Modification target: `_grounding_rules()` and `record_evidence_refs` usage hint in `instruction_templates.py`.
1185
-
1186
- Add explicit citation guidance:
1187
- - When evidence comes from Confluence documents, cite `page_id` and canonical `source_uri` (Confluence page URL); `source_url` remains an accepted alias in tool hints.
1188
- - Use `ref_type='confluence_page'` to distinguish Confluence-sourced evidence from code-sourced evidence.
1189
-
1190
- ### Design Decisions
1191
-
1192
- - **Decision 118**: DiffDetector is the **only** code file discovery path; legacy `_iter_repo_code_files()` full-scan is deleted, not kept as fallback.
1193
- - **Decision 119**: Snapshot early exit comparison uses aggregate content hash, not per-chunk comparison, for O(1) check. No opt-out.
1194
- - **Decision 120**: Document-level chunking skip uses Confluence page version (integer), not content hash, for simplicity and alignment with Confluence API semantics.
1195
- - **Decision 121**: Metadata fields are promoted to required first-class fields on `CorpusChunk` and schema columns, not buried in optional metadata dicts.
1196
- - **Decision 122**: `force_full_reembed` concept is deleted entirely; model changes are handled by treating all chunks as changed (simpler, same outcome).
1197
- - **Decision 123**: Performance gates (NFR-Y7) are verified via extract-docs `--json-only` timing output, not separate benchmarking infrastructure.
1198
- - **Decision 124**: First extraction (no stored `head_commit_sha`) diffs against Git empty tree to enumerate all tracked files, eliminating the need for a separate first-run code path.
1199
- - **Decision 125**: Extract-docs CLI flags that offer only one valid value (`--fetch-policy if-changed`, `--cache-mode read-write`) are deleted entirely; the canonical behavior is hardcoded. Flags that control credential/network scope (`--include-bitbucket`, `--include-linked-confluence-pages`) and operational parameters are retained.
1200
- - **Decision 126**: TOML config overrides (`~/.vds/config/extract-docs.toml`) for removed CLI options are cleaned up; remaining tuning keys (depth, concurrency, linked page settings) are preserved.
1201
- - **Decision 127**: Canonical Confluence URL field is `source_uri`; `confluence_url` and `source_url` are treated as legacy aliases normalized at ingestion and prompt layers.
1202
-
1203
-
1204
-
1205
- ## Relevant Completed Task Index
1206
-
1207
- ### Phase 66/70 Foundation References
1208
-
1209
- | Task ID | FR Coverage | Status | Notes |
1210
- |--------|-------------|--------|-------|
1211
- | TSK-660.70 | FR-83, FR-84, FR-90 | Complete | Agentic analysis quality carry-forward baseline retained for downstream phases. |
1212
- | TSK-700.20 | FR-107..FR-110 | Complete | Phase 70 convergence verification closure artifact retained. |
1213
-
1214
- ### Phase 71/72 Requirement Understanding and Unified Evaluator
1215
-
1216
- | Task ID | FR Coverage | Status | Notes |
1217
- |--------|-------------|--------|-------|
1218
- | TSK-710.12 | FR-111..FR-114 | Complete | Requirement-understanding implementation verification completed. |
1219
- | TSK-710.13 | FR-115 | Complete | Phase 71 verification gate closure artifact retained. |
1220
- | TSK-710.23 | FR-111..FR-115 | Complete | Post-convergence guardrail closure retained. |
1221
- | TSK-720.10 | FR-120 | Complete | Dynamic tool-efficiency extension implemented. |
1222
- | TSK-720.13 | FR-120 | Complete | Phase 72 extension verification closure completed. |
1223
-
1224
- ### Phase 75 Quality Hardening
1225
-
1226
- | Task ID | FR Coverage | Status | Notes |
1227
- |--------|-------------|--------|-------|
1228
- | TSK-750.1 | FR-125..FR-129 | Complete | Non-retryable Confluence permission handling validated. |
1229
- | TSK-750.4 | FR-125..FR-129 | Complete | Docs-evidence hygiene for tool paths implemented and verified. |
1230
- | TSK-750.5 | FR-125..FR-129 | Complete | Docs retrieval quality recovery implemented and verified. |
1231
- | TSK-750.6 | FR-125..FR-129 | Complete | Prompt repair eligibility guard for auth/transport failures implemented. |
1232
- | TSK-750.7 | FR-125..FR-129 | Complete | Retrieval-trace sidecar diagnostics enrichment completed. |
1233
- | TSK-750.8 | FR-125..FR-129 | Complete | Tool-error evidence salvage implemented. |
1234
- | TSK-750.9 | FR-125..FR-129 | Complete | Docs-exhausted fallback quality guard completed. |
1235
- | TSK-750.10 | FR-125..FR-129 | Complete | Verdict contradiction guard implemented. |
1236
- | TSK-750.11 | FR-125..FR-129 | Complete | Final-score status alignment completed. |
1237
- | TSK-750.12 | FR-125..FR-129 | Complete | Hybrid docs-first stagnation/churn reduction completed. |
1238
- | TSK-750.13 | FR-125..FR-129 | Complete | Pricing/SLA route override + recovery closure completed. |
1239
- | TSK-750.14 | FR-125..FR-129 | Complete | Recovery-search relevance precision hardening completed. |
1240
- | TSK-750.15 | FR-125..FR-129 | Complete | Relevance precision matrix verification completed. |
1241
- | TSK-750.16 | FR-125..FR-129 | Complete | Tool-error field normalization in retrieval trace completed. |
1242
-
1243
- ### Phase 83 Evidence-Postgres Migration
1244
-
1245
- | Task ID | FR Coverage | Status | Notes |
1246
- |--------|-------------|--------|-------|
1247
- | TSK-830.1 | FR-143..FR-147 | Complete | MatcherProtocol extraction + Postgres evidence hard-cut path. |
1248
- | TSK-830.9 | FR-143..FR-147 | Complete | Standalone migration verification closure completed. |
1249
- | TSK-830.10 | FR-143..FR-147 | Complete | Removed --evidence-dir from all CLI commands; removed code_evidence_pack.json and local rglob fallbacks; strictly relying on PostgresEvidenceMatcher. |
1250
-
1251
- ## Phase 86 - Evaluation Effectiveness Hardening (Package T: FR-161..FR-168)
1252
-
1253
- ### WP-86.1: Source Balance + Adaptive Depth
1254
-
1255
- | Task ID | FR Coverage | Status | Notes |
1256
- |--------|-------------|--------|-------|
1257
- | TSK-860.1 | FR-161 | Complete | Docs-intent utilization policy + diagnostics implemented. |
1258
- | TSK-860.2 | FR-162 | Complete | Bounded adaptive-depth expansion/stop telemetry implemented. |
1259
- | TSK-860.3 | FR-161, FR-162 | Complete | Unit tests for docs-balance and adaptive-depth behavior passed. |
1260
-
1261
- ### WP-86.2: Infra Ranking + Failure Visibility
1262
-
1263
- | Task ID | FR Coverage | Status | Notes |
1264
- |--------|-------------|--------|-------|
1265
- | TSK-860.4 | FR-163 | Complete | Infra/deployment intent ranking weighting implemented. |
1266
- | TSK-860.5 | FR-163 | Complete | Top-k ranking factor diagnostics emitted in retrieval trace. |
1267
- | TSK-860.6 | FR-164 | Complete | Non-silent failure propagation (`failure_stage`/`reason_code`) implemented. |
1268
- | TSK-860.7 | FR-163, FR-164 | Complete | Regression tests for ranking/failure visibility completed. |
1269
-
1270
- ### WP-86.3: Citation Precision + Context Budgeting
1271
-
1272
- | Task ID | FR Coverage | Status | Notes |
1273
- |--------|-------------|--------|-------|
1274
- | TSK-860.8 | FR-165 | Complete | Exploratory refs vs final cited refs split implemented. |
1275
- | TSK-860.9 | FR-165 | Complete | Citation precision filtering + dedupe implemented. |
1276
- | TSK-860.10 | FR-166 | Complete | Adaptive evidence-context budgeting + truncation telemetry implemented. |
1277
- | TSK-860.11 | FR-165, FR-166 | Complete | Unit tests for citation precision and truncation policy passed. |
1278
-
1279
- ### WP-86.4: Recommendation + Verification Completeness
1280
-
1281
- | Task ID | FR Coverage | Status | Notes |
1282
- |--------|-------------|--------|-------|
1283
- | TSK-860.12 | FR-167 | Complete | Recommendation fallback for non-pass rows enforced. |
1284
- | TSK-860.13 | FR-168 | Complete | Verification taxonomy standardized for evidence anchors. |
1285
- | TSK-860.14 | FR-168 | Complete | Verification coverage diagnostics in row/runtime/report artifacts implemented. |
1286
- | TSK-860.15 | FR-167, FR-168 | Complete | Unit/integration coverage for recommendation + verification completed. |
1287
-
1288
- ### WP-86.5: Verification, Non-Regression, and Spec Sync
1289
-
1290
- | Task ID | FR Coverage | Status | Notes |
1291
- |--------|-------------|--------|-------|
1292
- | TSK-860.16 | FR-161..FR-168 | Complete | Multi-row real verification matrix published with closure reruns. |
1293
- | TSK-860.17 | FR-148..FR-168 | Complete | Phase 84/85 contract non-regression validation completed. |
1294
- | TSK-860.18 | FR-161..FR-168 | Complete | Spec/docs/guides/skills sync after closure completed. |
1295
- | TSK-860.19 | FR-161, FR-164 | Complete | Grounded optional-skill suppression (`skills_needed=false`) policy implemented. |
1296
- | TSK-860.20 | FR-161..FR-168 | Complete | CL-028 timeout-churn follow-up verification closure completed. |
1297
- | TSK-860.21 | FR-153..FR-160 | Complete | `sync repos`/`extract-docs` status-normalization alignment (`synced`/`complete`) and readiness-consistent state persistence hardening. |
1298
- | TSK-860.22 | FR-153..FR-160 | Complete | Retrieval snapshot freshness hardening: stale `corpus_documents`/`corpus_chunks` rows are pruned for stable snapshot keys before reuse/copy logic. |
1299
-
1300
- ### Acceptance Gates (Phase 86)
1301
-
1302
- - [x] Docs-relevant rows show docs-path utilization or explicit audited skip reason.
1303
- - [x] Adaptive depth behavior remains observable and bounded.
1304
- - [x] Infra-intent rows prioritize infra artifacts in ranked candidates.
1305
- - [x] Silent synthesis failure class is eliminated with explicit failure diagnostics.
1306
- - [x] Final checklist evidence refs are precision-filtered.
1307
- - [x] Truncation diagnostics are present with improved prevalence.
1308
- - [x] Recommendation completeness for non-pass rows is deterministic.
1309
- - [x] Verification coverage diagnostics are explicit and deterministic.
1310
- - [x] Grounded `skills_needed=false` rows avoid prompt-stage tool/skill churn and avoid timeout-degraded fallback (`skills_optional_suppressed_grounded`).
1311
-
1312
- ## Phase 87 - Individual Project Parsing + Docs/Guides/Skills Sync + Legacy Cleanup (Package U: FR-169..FR-176, Complete)
1313
-
1314
- | Task ID | FR Coverage | Status | Notes |
1315
- |--------|-------------|--------|-------|
1316
- | TSK-870.1 | FR-169 | Complete | Added selector normalization utility for project URL/page-ID/storage-key canonical resolution. |
1317
- | TSK-870.2 | FR-169, FR-170 | Complete | Extended `parse-project` and `parse-repo` to accept direct Confluence project-page selectors. |
1318
- | TSK-870.3 | FR-171 | Complete | Added explicit `parse-registry` diagnostics when input URL is project-page scope and zero projects are discovered. |
1319
- | TSK-870.4 | FR-172 | Complete | Added deterministic repo coverage summaries to parse payloads (`total/ready/skipped/failed` + category breakdown). |
1320
- | TSK-870.5 | FR-169..FR-172 | Complete | Added/updated unit and CLI tests for selector normalization and parse output contracts. |
1321
- | TSK-870.6 | FR-169..FR-172 | Complete | Verified Miniapp direct project-page parsing against centralized state (`parse-project`/`parse-repo`). |
1322
- | TSK-870.7 | FR-173 | Complete | Updated docs/guides references to align with direct-project selector behavior and hard-cut prep order. |
1323
- | TSK-870.8 | FR-174 | Complete | Updated skills guidance (`skills/vds-scripts-skill/SKILL.md`) to align with direct-project parse workflow. |
1324
- | TSK-870.9 | FR-175 | Complete | Replaced silent project-page ambiguity with explicit parse-registry migration guidance diagnostics. |
1325
- | TSK-870.10 | FR-176 | Complete | Verified closure with targeted tests, lint checks, real direct-project selector runs, and spec sync checks. |
1326
-
1327
- ### Acceptance Gates (Phase 87)
1328
-
1329
- - [x] `parse-project` and `parse-repo` accept project-page URL selectors and resolve deterministic project identity.
1330
- - [x] `parse-registry` surfaces explicit project-page guidance instead of silent empty outputs.
1331
- - [x] Parse outputs include deterministic repo coverage counters for direct readiness interpretation.
1332
- - [x] AGENTS/docs/guides/skills references are synchronized with implemented selector/diagnostic behavior.
1333
- - [x] Legacy parsing fallback paths are replaced by explicit migration diagnostics for project-page selector misuse.
1334
-
1335
- ## Phase 88 - Corpus Completeness + Format Coverage (Package V: FR-177..FR-184, Complete)
1336
-
1337
- | Task ID | FR Coverage | Status | Notes |
1338
- |--------|-------------|--------|-------|
1339
- | TSK-880.1 | FR-177..FR-184 | Complete | Consolidated Phase 88 requirements/design/tasks baseline in central spec. |
1340
- | TSK-880.2 | FR-177, FR-178 | Complete | Verified direct crawl + linked fallback attachment chunk append path in extract-docs corpus pipeline with deterministic lineage metadata. |
1341
- | TSK-880.3 | FR-179 | Complete | Expanded bounded code chunk extension allowlist and language mapping for mobile/native repository files (`.aidl`, `.proto`, `.podspec`, `.pbxproj`, `.xcconfig`, `.plist`, `.storyboard`, `.xib`) with unit coverage in `tests/unit/test_extract_docs_code_chunking.py`. |
1342
- | TSK-880.4 | FR-180, FR-183 | Complete | Added `attachment_conversion_summary` (status/format/converter counts + failure samples) to extract-docs project outputs; added unit coverage. |
1343
- | TSK-880.5 | FR-181 | Complete | Verified deterministic attachment conversion/chunk diagnostics across multi-format real runs and persisted durable evidence in `reports/verification/phase88_corpus_completeness/phase88-corpus-baseline-20260226/phase88-verification-summary.json` (generated by `scripts/verify_phase_88.py`). |
1344
- | TSK-880.6 | FR-182 | Complete | Preserved stale-pruning + dedupe semantics with regression-hardening tests in `tests/unit/state/test_vector_index_store.py` (snapshot prune on empty chunk sets and copy-path exclusion for changed chunks). |
1345
- | TSK-880.7 | FR-177..FR-183 | Complete | Added broader corpus diagnostics coverage for `_summarize_chunk_payload` plus extract-docs `docs_chunk_summary`/`project_chunk_summary` assertions in `tests/unit/test_extract_docs_code_chunking.py` and `tests/test_cli/test_materials_cli.py`. |
1346
- | TSK-880.8 | FR-181 | Complete | Closed PDF/DOCX dataset verification with repo-persisted baseline evidence summary (`reports/verification/phase88_corpus_completeness/phase88-corpus-baseline-20260226/phase88-verification-summary.json`) covering Miniapp + DOCX/XLS/XLSX probe + PDF/DOCX/XLSX probe. |
1347
- | TSK-880.9 | FR-184 | Complete | Synced AGENTS/docs/guides/skills with Phase 88 contracts (`attachment_conversion_summary`, `discovery=repo_chunking`) and kept `validate-spec-sync` green after consolidation updates. |
1348
- | TSK-880.10 | FR-177..FR-184 | Complete | Closed Phase 88 acceptance gates, synchronized requirements/design/tasks version/status/test baselines (`v4.19.1`, 4178 tests), and added durable repo evidence (`reports/verification/phase88_corpus_completeness/phase88-corpus-baseline-20260226/phase88-verification-summary.json`) with CI guard test (`tests/unit/scripts/test_phase88_verification_artifacts.py`). |
1349
- | TSK-880.11 | FR-180, FR-181 | Complete | Extraction quality follow-up: added HTML mojibake detection fallback for external conversion and extensionless attachment format inference (media-type + byte-signature, including draw.io XML). Verified on project `88718856` real run: attachment `found/partial` improved `95/65 -> 120/40`, format diagnostics now include `.xml|found=25`, and `Tổng quan hệ thống PMT.md` Vietnamese text restored. |
1350
- | TSK-880.12 | FR-180, FR-184 | Complete | Persisted attachment-level sync metadata diagnostics in `sync_metadata.artifacts[].resource_metadata` (`source_format`, converter, discovery, size, conversion timing). Real run verification (`88718856`) confirms Postgres state now reports `unknown_source_format_count=0` across 160 attachments and supports deterministic partial-reason triage. |
1351
-
1352
- ### Acceptance Gates (Phase 88)
1353
-
1354
- - [x] Direct crawl attachments with successful conversion are chunked and persisted with `source_type=confluence_attachment`.
1355
- - [x] Linked fallback attachments continue to be chunked with correct lineage and no duplicate churn.
1356
- - [x] Code chunk corpus includes required mobile/native file families while respecting bounded limits.
1357
- - [x] Extract/retrieval outputs expose deterministic format-level diagnostics for operator verification.
1358
- - [x] Miniapp real-run verification demonstrates chunk completeness and retrieval readiness parity.
1359
-
1360
- ## Phase 89 - Unified Audit Quality + Skill Effectiveness + Performance Optimization (Package W: FR-185..FR-206, Complete)
1361
-
1362
- ### Work Package Dependency Map
1363
-
1364
- ```
1365
- WP-89.1 (Scoping) ──┐
1366
- WP-89.2 (Embedding) ─┤── can parallelize (independent)
1367
- WP-89.4 (Robustness) ┘
1368
-
1369
- WP-89.3 (Parallel Eval) ── depends on shared-state isolation understanding; TSK-890.10 before TSK-890.12
1370
- WP-89.5 (Skill Policy) ──→ before WP-89.7 (Verification runs require skill policy changes deployed)
1371
- WP-89.6 (Evidence Quality) ── TSK-890.28 depends on TSK-890.1 (repo type classifier informs category context)
1372
- WP-89.7 (Verification) ── last; depends on all implementation WPs (WP-89.1..WP-89.6)
1373
- ```
1374
-
1375
- ### WP-89.1: Repo-Type-Aware Checklist Scoping (High Priority — Score Quality)
1376
-
1377
- | Task ID | FR Coverage | Status | Notes |
1378
- |--------|-------------|--------|-------|
1379
- | TSK-890.1 | FR-185 | Complete | Implement `RepoTypeClassifier` with file-tree heuristics for frontend/backend/infra/fullstack detection. |
1380
- | TSK-890.2 | FR-185 | Complete | Implement declarative scoping policy (repo type → N/A row IDs/categories) with default frontend exclusion set (Docker/Helm/CI-CD/DB/Grafana). |
1381
- | TSK-890.3 | FR-185 | Complete | Wire scoping into workflow: mark matched rows as `status=N/A`, `reason_code=repo_type_excluded`, exclude from score denominator. |
1382
- | TSK-890.4 | FR-185 | Complete | Add `--repo-type {auto|frontend|backend|infra|fullstack}` CLI option. |
1383
- | TSK-890.5 | FR-185 | Complete | Add unit/integration tests for repo classification, scoping policy application, and N/A score exclusion. |
1384
- | TSK-890.6 | FR-185 | Complete | Verify with miniapp-fe real run: confirm 17 backend-infra rows are marked N/A and score lifts ~12-15pp. |
1385
-
1386
- ### WP-89.2: Embedding Pipeline Optimization (Medium Priority — Performance)
1387
-
1388
- | Task ID | FR Coverage | Status | Notes |
1389
- |--------|-------------|--------|-------|
1390
- | TSK-890.7 | FR-186 | Complete | Guard `embed_texts()` probe behind `lexical_only` flag in `vector_index.py` initialization. |
1391
- | TSK-890.8 | FR-187 | Complete | Add TTL cache (default 300s) to `_fetch_model_digest` for Ollama `/api/show` calls. |
1392
- | TSK-890.9 | FR-186, FR-187 | Complete | Add unit tests for probe skip and digest cache hit/miss/expiry behavior. |
1393
-
1394
- ### WP-89.3: Parallel Row Evaluation + Evidence Caching (Medium Priority — Performance)
1395
-
1396
- | Task ID | FR Coverage | Status | Notes |
1397
- |--------|-------------|--------|-------|
1398
- | TSK-890.10 | FR-188 | Complete | Extend `BatchExecutor` with `row_concurrency` parameter and asyncio semaphore-bounded dispatch. |
1399
- | TSK-890.11 | FR-188 | Complete | Add `--row-concurrency <N>` CLI option (default: 1). |
1400
- | TSK-890.12 | FR-188 | Complete | Implement per-row rate-limit backoff and ensure checkpoint/diagnostics isolation under concurrency. |
1401
- | TSK-890.13 | FR-189 | Complete | Implement `BatchEvidenceCache` with chunk-ID-keyed storage, batch-scoped lifecycle, and hit/miss diagnostics. |
1402
- | TSK-890.14 | FR-188, FR-189 | Complete | Add unit/integration tests for concurrent evaluation correctness and evidence cache behavior. |
1403
- | TSK-890.15 | FR-188 | Complete | Benchmark with miniapp-core/miniapp-be (55-row baseline): measure wall-clock reduction at concurrency=2 and concurrency=3 vs baseline. |
1404
-
1405
- ### WP-89.4: Robustness + Post-Processing (Low Priority)
1406
-
1407
- | Task ID | FR Coverage | Status | Notes |
1408
- |--------|-------------|--------|-------|
1409
- | TSK-890.16 | FR-190 | Complete | Change default `batch_size` from 5 to 8. |
1410
- | TSK-890.17 | FR-191 | Complete | Add `"not permitted"` to non-retryable Confluence error marker set. |
1411
- | TSK-890.18 | FR-192 | Complete | Add `permission_denied_pages` section to `doctor crawl-status` output. |
1412
- | TSK-890.19 | FR-193 | Complete | Refactor post-processing to incremental producer/consumer pattern for batch-level streaming. |
1413
- | TSK-890.20 | FR-190..FR-193 | Complete | Add unit tests for batch size default, error markers, crawl-status visibility, and post-processing overlap. |
1414
-
1415
- ### WP-89.5: Skill Policy + Telemetry + Target Compliance (High Priority — Effectiveness)
1416
-
1417
- | Task ID | FR Coverage | Status | Notes |
1418
- |--------|-------------|--------|-------|
1419
- | TSK-890.21 | FR-194 | Complete | Implement strict optional-skill hard-gate for `skills_needed=false` (disable list/load/script calls by default, controlled fallback read path only). |
1420
- | TSK-890.22 | FR-195, FR-200 | Complete | Implement minimal execution-first required-skill policy with canonical default mode `minimal` and explicit override modes. |
1421
- | TSK-890.23 | FR-196 | Complete | Upgrade non-progress guard to detect high-volume low-yield skill churn even when execution calls are present. |
1422
- | TSK-890.24 | FR-197 | Complete | Unify skill telemetry surfaces (tool-first + prompt telemetry), enforce per-row skill-policy event emission including timeout/degraded rows. |
1423
- | TSK-890.25 | FR-198 | Complete | Implement docs/code target execution compliance gate with explicit audited skip-reason requirement and aggregate compliance metrics. |
1424
- | TSK-890.26 | FR-199 | Complete | Add effectiveness-driven skill ranking/rationale diagnostics (objective fit + observed effective-rate) with deferred broad fallback. |
1425
- | TSK-890.27 | FR-194..FR-200 | Complete | Add unit/integration tests for hard-gate behavior, required-skill sequence, low-yield churn stop, telemetry completeness, and target compliance diagnostics. |
1426
-
1427
- ### WP-89.6: Evidence Quality + Observability (High Priority — From Log Analysis)
1428
-
1429
- | Task ID | FR Coverage | Status | Notes |
1430
- |--------|-------------|--------|-------|
1431
- | TSK-890.28 | FR-201 | Complete | Implement category-to-tool-bias mapping (`docs_primary`/`code_primary`/`balanced`) and wire into agentic system prompt for `docs_primary` categories. Depends on: TSK-890.1 (repo type classifier informs category context). |
1432
- | TSK-890.29 | FR-202 | Complete | Implement run-level `source_frequency_map` and diversity penalty (default 0.7x for sources exceeding 30% row threshold) in evidence ranking pipeline. Add `--no-evidence-diversity` CLI flag. |
1433
- | TSK-890.30 | FR-203 | Complete | Refactor evidence context assembly to rank chunks by relevance score before budget truncation. Increase default `max_evidence_chars` to 12000. Add enhanced truncation diagnostics and `evidence_truncation_severe` warning. |
1434
- | TSK-890.31 | FR-204 | Complete | Implement unverified reference corrective retry: compute `unverified_ref_ratio` post-evaluation, dispatch one grounding-constrained retry when >0.5, replace original only if ratio improves. |
1435
- | TSK-890.32 | FR-205 | Complete | Extend `--stability-runs` to compute per-row stability metric and cross-repo divergence flag. Emit `low_stability` and `cross_repo_divergent` quality warnings. |
1436
- | TSK-890.33 | FR-206 | Complete | Add token usage capture (`prompt_tokens`/`completion_tokens`/`total_tokens`) to LLM call wrapper, per-row diagnostics, and run-level summary. Graceful null for backends without usage metadata. |
1437
- | TSK-890.34 | FR-201..FR-206 | Complete | Add unit/integration tests for tool bias policy, diversity penalty, truncation mitigation, unverified ref retry, stability metric, and token instrumentation. |
1438
-
1439
- ### WP-89.7: Verification + Spec Sync
1440
-
1441
- | Task ID | FR Coverage | Status | Notes |
1442
- |--------|-------------|--------|-------|
1443
- | TSK-890.35 | FR-185..FR-206 | Complete | Run miniapp-fe, miniapp-be, miniapp-core with Phase 89 enhancements enabled; verify score lift, latency improvements, skill-churn reduction, and evidence quality improvements. |
1444
- | TSK-890.36 | FR-194..FR-200 | Complete | Re-run miniapp-be thread parity check to confirm no missing `row_skill_policy_effectiveness` rows (including timeout/degraded rows). |
1445
- | TSK-890.37 | FR-201..FR-206 | Complete | Verify doc-search tool bias rate ≥60% for docs_primary rows, evidence concentration reduction, truncation severity reduction, and token usage completeness. |
1446
- | TSK-890.38 | FR-185..FR-206 | Complete | Sync AGENTS/docs/guides/skills with unified Phase 89 contracts (CLI options, scoping policy, skill modes, evidence quality controls, diagnostics). |
1447
- | TSK-890.39 | FR-185..FR-206 | Complete | Close Phase 89 acceptance gates and update version/status baselines. |
1448
- | TSK-890.40 | FR-206A | Complete | Enforce Bitbucket-native repo identifier precedence across CLI/state/seed repo resolution, add regression tests, and verify `parse-repo` + `analyze` preflight resolve `local-merchant-profile-service` for miniapp merchant-profile-service repo. |
1449
- | TSK-890.41 | FR-206B | Complete | Add retrieval snapshot migration compatibility: legacy alias baseline resolution for `local-*` repo keys, content-hash reuse for chunk-id drift, digest-compatibility guard for legacy non-hash digests, plus real dual-source refresh verification (`chunk_count=8127`, `changed=551`, `reused=7576`, `snapshot_id=278`, `docs_chunk_ready=true`, `code_chunk_ready=true`) for `local-merchant-profile-service`. |
1450
- | TSK-890.42 | FR-206A | Complete | Add state-side synthetic link sanitation for `bitbucket.local/projects/local/...`, canonicalize non-local placeholder repo links to project Bitbucket origin, and verify real root-registry run (`pageId=88716675`) keeps `3-2-1-4-mini-app` free of `merchant-profile-service` contamination in both `parse-project` and `state list-links`. |
1451
-
1452
- ### Acceptance Gates (Phase 89)
1453
-
1454
- - [x] Frontend repos have backend-infra rows marked N/A with deterministic reason code and excluded from score denominator.
1455
- - [x] Repo-type classification is deterministic and overridable via `--repo-type` CLI option.
1456
- - [x] Lexical-only mode skips Ollama probe; model digest is cached with TTL across sequential snapshots.
1457
- - [x] Parallel row evaluation produces identical results to sequential evaluation at concurrency=1.
1458
- - [x] Evidence retrieval cache reduces redundant chunk fetches within batches with observable hit/miss diagnostics.
1459
- - [x] Default batch size is 8; "not permitted" pages are non-retryable; permission-denied pages visible in crawl-status.
1460
- - [x] Post-processing overlaps with batch evaluation; timing diagnostics report overlap savings.
1461
- - [x] Optional-skill rows (`skills_needed=false`) avoid discovery/script churn by default and only use controlled fallback skill reads when evidence-gap predicate is met.
1462
- - [x] Required-skill rows (`skills_needed=true`) execute minimal effective skill sequence without discovery-first loops and with deterministic corrective retry behavior.
1463
- - [x] Low-yield skill churn is detected and stopped even when execution calls are present but ineffective.
1464
- - [x] `row_skill_policy_effectiveness` coverage is 100% across evaluated rows, including timeout/degraded rows.
1465
- - [x] Docs/code target compliance metrics are emitted and rows missing both execution and audited skip reason are explicitly flagged.
1466
- - [x] `search_docs` call rate for `docs_primary` checklist categories is ≥60% (up from ~18% baseline).
1467
- - [x] Evidence anti-concentration metrics are emitted and no single source dominates >30% of rows without penalty.
1468
- - [x] Evidence truncation uses relevance-ranked preservation; rows with severe truncation (>50% chunks removed) are flagged.
1469
- - [x] Rows with >50% unverified refs trigger corrective retry; retry diagnostics are emitted in row trace.
1470
- - [x] Evaluation stability metric is computed when `--stability-runs ≥ 2`; low-stability rows are flagged.
1471
- - [x] LLM token usage is emitted per-call, per-row, and per-run in runtime logs and workflow summary.
1472
- - [x] Repo resolution prefers Bitbucket-native keys across parse/workflow/analyze/state/seed paths; legacy project-prefixed keys remain readable but are not selected as primary.
1473
- - [x] Repo-key migration refresh uses legacy alias baselines before project fallback, preserves unchanged vectors via content-hash reuse, and avoids false full re-embed when legacy non-hash digests are encountered.
1474
- - [x] Root-registry material refresh (`88716675`) preserves project mapping isolation: Mini app manifest/state exclude synthetic local merchant-profile-service links and do not report `bitbucket.local/projects/local/...` in project-level mapping.
1475
- - [x] Miniapp-fe score lifts ~12-15pp from N/A scoping; miniapp-core/miniapp-be wall-clock improves with concurrency>1 and skill-churn-related latency tails are reduced.
1476
-
1477
- ## Phase 90 - Hierarchy Model Hard-Cut (Package X: FR-207..FR-216, Complete)
1478
-
1479
- ### Work Package Dependency Map
1480
-
1481
- ```
1482
- WP-90.1 (Hierarchy Model) ──┐
1483
- WP-90.2 (State Migration) ─┼── foundation first
1484
- WP-90.3 (CLI Contracts) ─┘
1485
-
1486
- WP-90.4 (Extract/Readiness) ── depends on WP-90.1 + WP-90.2
1487
- WP-90.5 (Verification/Sync) ── final, depends on WP-90.1..WP-90.4
1488
- ```
1489
-
1490
- ### WP-90.1: Canonical Hierarchy Contracts (High Priority)
1491
-
1492
- | Task ID | FR Coverage | Status | Notes |
1493
- |--------|-------------|--------|-------|
1494
- | TSK-900.1 | FR-207 | Complete | Added `parse-registry` `departments[]` summary output with nested compact project entries and deterministic ordering. |
1495
- | TSK-900.2 | FR-207, FR-208 | Complete | Persisted `confluence_ancestry_path` and lineage-derived `department` assignment metadata in parser/state payloads with deterministic assignment reasons. |
1496
- | TSK-900.3 | FR-209 | Complete | Introduced grouped `bitbucket_projects[]` contracts in parse/extract outputs with nested `repos[]` and deterministic ordering; canonical parse outputs now omit flat `bitbucket[]` arrays. |
1497
- | TSK-900.4 | FR-210 | Complete | Canonical repo key resolution now prefers Bitbucket-native identity (`<bb_project>:<bb_repo>`) over legacy aliases in parse/workflow key paths. |
1498
- | TSK-900.5 | FR-207..FR-210 | Complete | Added unit/CLI coverage for hierarchy modeling, grouped parse contracts, selector isolation, and quarantine diagnostics. |
1499
-
1500
- ### WP-90.2: State Schema Migration + Backfill (High Priority)
1501
-
1502
- | Task ID | FR Coverage | Status | Notes |
1503
- |--------|-------------|--------|-------|
1504
- | TSK-900.6 | FR-212 | Complete | Added normalized hierarchy entities (`departments`, `bitbucket_projects`) and FK links on `projects.department_id` and `repos.bitbucket_project_id`. |
1505
- | TSK-900.7 | FR-212 | Complete | Implemented idempotent hierarchy backfill (`backfill_hierarchy_entities`) during state bootstrap for existing project/repo metadata. |
1506
- | TSK-900.8 | FR-212, FR-213 | Complete | Added explicit quarantine diagnostics for unresolved/ambiguous hierarchy mappings and surfaced counts in hierarchy diagnostics payloads. |
1507
- | TSK-900.9 | FR-213 | Complete | Updated state record/load paths to persist and hydrate grouped hierarchy payloads (`bitbucket_projects`, `bitbucket_quarantine`). |
1508
- | TSK-900.10 | FR-212..FR-213 | Complete | Added regression coverage for hierarchy schema/backfill/integrity behavior in state store and loader tests. |
1509
-
1510
- ### WP-90.3: Parse Command Hard-Cut + Selector Isolation (High Priority)
1511
-
1512
- | Task ID | FR Coverage | Status | Notes |
1513
- |--------|-------------|--------|-------|
1514
- | TSK-900.11 | FR-208, FR-211 | Complete | Removed Bitbucket project key aliases from `parse-project` selector resolution (`seed.select_project` no longer matches Bitbucket project keys). |
1515
- | TSK-900.12 | FR-211 | Complete | Added explicit Bitbucket-project scoping support to `parse-repo` via `--bitbucket-project <KEY>`. |
1516
- | TSK-900.13 | FR-208, FR-211 | Complete | Added deterministic selector diagnostics for project-vs-Bitbucket-project mismatch classes (actionable guidance + known Bitbucket project keys). |
1517
- | TSK-900.14 | FR-209..FR-211 | Complete | Parse outputs now include department context and grouped Bitbucket project/repo summaries (`bitbucket_projects`, `project_bitbucket_projects`). |
1518
- | TSK-900.15 | FR-208..FR-211 | Complete | Added CLI tests proving `parse-project --project MAP|WEBAPPV2|SUPERAPP` no longer maps to Mini app and emits guidance. |
1519
-
1520
- ### WP-90.4: Extract-Docs + Readiness Hierarchy Enforcement (Medium Priority)
1521
-
1522
- | Task ID | FR Coverage | Status | Notes |
1523
- |--------|-------------|--------|-------|
1524
- | TSK-900.16 | FR-213 | Complete | `extract-docs` now emits grouped Bitbucket project artifacts and persists project hierarchy metadata in state artifact payloads. |
1525
- | TSK-900.17 | FR-213, FR-214 | Complete | Hierarchy pipeline retains placeholder/sanitation protections and surfaces quarantined entries with bounded samples. |
1526
- | TSK-900.18 | FR-214 | Complete | Added hierarchy diagnostics in `state readiness` (`hierarchy_ready`, department/project/bitbucket-project/repo counters, anomaly summaries with bounded samples). |
1527
- | TSK-900.19 | FR-214 | Complete | Added `doctor hierarchy-status` command with bounded anomaly samples and deterministic hierarchy counters/status. |
1528
- | TSK-900.20 | FR-214..FR-215 | Complete | Added/validated hierarchy readiness gate coverage (project-scoped diagnostics + schema auto-repair tests) and config-boundary coverage via extract-config CLI tests (`test_materials_cli.py::test_extract_docs_dry_run_includes_extract_config_metadata`). |
1529
-
1530
- ### WP-90.5: Real-Run Verification + Spec/Docs Sync (Closure)
1531
-
1532
- | Task ID | FR Coverage | Status | Notes |
1533
- |--------|-------------|--------|-------|
1534
- | TSK-900.21 | FR-216 | Complete | Root-registry live verification rerun succeeded (`parse-registry --registry-page 88716675`) with deterministic hierarchy payload persistence (`reports/verification/phase90_hierarchy/phase90-realrun-closure-20260227-101757/`). |
1535
- | TSK-900.22 | FR-216 | Complete | Mini app live verification succeeded (`parse-project --project 3-2-1-4-mini-app` + grouped Bitbucket projects `MAP`,`SUPERAPP`,`WEBAPPV2` and scoped repo extraction for all three groups). |
1536
- | TSK-900.23 | FR-216 | Complete | Selector isolation validated in real run: `parse-project --project MAP` fails with deterministic guidance to use `parse-repo --bitbucket-project`. |
1537
- | TSK-900.24 | FR-215..FR-216 | Complete | Published durable real-run artifacts (`summary.json`, per-command stdout/stderr/exit, `metrics.json`, `README.md`) in `reports/verification/phase90_hierarchy/phase90-realrun-closure-20260227-101757/`. |
1538
- | TSK-900.25 | FR-207..FR-216 | Complete | Synced spec/tasks/design + AGENTS to v4.20.5 and revalidated alignment via `vds-audit --json-only validate-spec-sync` (`valid=true`). |
1539
- | TSK-900.26 | FR-207..FR-216 | Complete | Closed Phase 90 acceptance gates with closure evidence bundle `phase90-realrun-closure-20260227-101757` (`doctor hierarchy-status` + `state readiness` project-scoped anomaly count = 0). |
1540
-
1541
- ### Acceptance Gates (Phase 90)
1542
-
1543
- - [x] `parse-registry` emits `departments[]` summary with nested projects and deterministic ordering.
1544
- - [x] `parse-project` selector domain is isolated from Bitbucket project aliases; ambiguous alias mapping class is eliminated.
1545
- - [x] Project payload contracts expose grouped `bitbucket_projects[]` with nested repos.
1546
- - [x] Flat project-level `bitbucket[]` arrays are removed from canonical parse outputs (strict hard-cut compatibility cleanup).
1547
- - [x] State schema migration/backfill is idempotent with explicit migrated/quarantined diagnostics.
1548
- - [x] Confluence ancestry metadata is persisted and used for deterministic department assignment diagnostics.
1549
- - [x] `state readiness` exposes hierarchy completeness and anomaly counters.
1550
- - [x] doctor diagnostics expose hierarchy completeness and anomaly counters (`doctor hierarchy-status`).
1551
- - [x] Real root-registry + Mini app runs validate hierarchy correctness and no cross-project contamination at closure thresholds (project-scoped anomaly count = 0 for closure dataset).
1552
- - [x] Spec/docs/tasks/AGENTS alignment checks remain green after hierarchy migration.
1553
-
1554
- ## Phase 91 - CLI Modularization + Scoring Completeness + Error Handling Hardening (Package Y: FR-217..FR-227, Complete)
1555
-
1556
- ### Work Package Dependency Map
1557
-
1558
- ```
1559
- WP-91.1 (CLI Decomposition) ─────── foundation first (HIGH)
1560
-
1561
- WP-91.2 (Scoring Completeness) ──── independent (MEDIUM)
1562
-
1563
- WP-91.3 (Error Handling) ────────── depends on WP-91.1 (cli.py must be decomposed first)
1564
-
1565
- WP-91.4 (Skill Fallback) ────────── independent (MEDIUM)
1566
-
1567
- WP-91.5 (Baseline Sync) ─────────── final, depends on WP-91.1..WP-91.4 (LOW)
1568
- ```
1569
-
1570
- ### WP-91.1: CLI Modular Decomposition (High Priority)
1571
-
1572
- | Task ID | FR Coverage | Status | Notes |
1573
- |--------|-------------|--------|-------|
1574
- | TSK-910.1 | FR-217 | Done | Created 8 command-group submodules (`workflow_cmds.py`, `parse_cmds.py`, `state_cmds.py`, `doctor_cmds.py`, `sync_cmds.py`, `extract_cmds.py`, `analyze_cmds.py`, `misc_cmds.py`) extracting command handlers from `cli.py`. |
1575
- | TSK-910.2 | FR-218 | Done | Completed `cli_common.py` shared infrastructure extraction and wired command modules to consume centralized shared primitives. |
1576
- | TSK-910.3 | FR-217, FR-218 | Done | Completed thin-router conversion: `cli.py` reduced to 12-line router shim delegating to `cli_impl.py`. |
1577
- | TSK-910.4 | FR-219 | Done | Added command execution smoke coverage (`--help`) for root/groups/subcommands and verified deterministic router registration. |
1578
- | TSK-910.5 | FR-219 | Done | Decomposition regression coverage validated with import + registration + help execution (`tests/unit/test_cli_decomposition_fr219.py`: 23 passing). |
1579
-
1580
- ### WP-91.2: Checklist Scoring Completeness (Medium Priority)
1581
-
1582
- | Task ID | FR Coverage | Status | Notes |
1583
- |--------|-------------|--------|-------|
1584
- | TSK-910.6 | FR-220 | Done | Implemented profile-based weight adjustment in `checklist_generator.py` using audit profile configuration. |
1585
- | TSK-910.7 | FR-221 | Done | Added configurable gating conditions for score caps in checklist row scoring. |
1586
- | TSK-910.8 | FR-222 | Done | Added coverage tracking to checklist row evaluation with corpus-hit ratio diagnostics. |
1587
- | TSK-910.9 | FR-220..FR-222 | Done | Added unit tests for weight adjustment, gating conditions, and coverage tracking with deterministic assertions. |
1588
-
1589
- ### WP-91.3: Error Handling Hardening (Medium Priority)
1590
-
1591
- | Task ID | FR Coverage | Status | Notes |
1592
- |--------|-------------|--------|-------|
1593
- | TSK-910.10 | FR-223 | Done | Produced durable exception audit artifact at `reports/verification/phase91_error_handling/phase91-exception-audit-20260227/` with line-level classification (`intentional-recovery` / `boundary-guard` / `error-swallowing`). |
1594
- | TSK-910.11 | FR-224 | Done | Hardened high-risk modules and finalized broad-catch reduction in top-5 files to 56 from 117 (52.14% reduction). |
1595
- | TSK-910.12 | FR-224 | Done | Completed recoverable-fallback contracts across `engine/llm_row_evaluator.py`, `agents/agentic_investigator.py`, `state/store.py`, and CLI modules. |
1596
- | TSK-910.13 | FR-225 | Done | Structured error logging fields (`error_type`, `source_module`, `context`, `recovery_action`) emitted consistently across hardened handlers. |
1597
- | TSK-910.14 | FR-223..FR-225 | Done | Hardened-path regression suites pass (`tests/unit/state/test_state_cmds.py`, `tests/unit/state/test_vector_index_store.py`, `tests/unit/test_misc_cmds_fr224_225_hardening.py`, agent skill-policy suites). |
1598
-
1599
- ### WP-91.4: Skill Fallback Robustness (Medium Priority)
1600
-
1601
- | Task ID | FR Coverage | Status | Notes |
1602
- |--------|-------------|--------|-------|
1603
- | TSK-910.15 | FR-226 | Done | Implemented broad fallback skill expansion path with effectiveness-driven ranking when top-ranked skills fail. |
1604
- | TSK-910.16 | FR-226 | Done | Added fallback skill telemetry (fallback trigger count, success rate, ranked candidates) to skill diagnostics. |
1605
- | TSK-910.17 | FR-226 | Done | Added unit and integration tests for skill fallback scenarios including multi-candidate ranking and effectiveness-driven selection. |
1606
-
1607
- ### WP-91.5: Test Baseline Alignment + Spec Sync (Low Priority)
1608
-
1609
- | Task ID | FR Coverage | Status | Notes |
1610
- |--------|-------------|--------|-------|
1611
- | TSK-910.18 | FR-227 | Done | Updated spec/docs/AGENTS test baseline to 4546 and aligned Phase 91 status metadata across authoritative files. |
1612
- | TSK-910.19 | FR-227 | Done | Revalidated green gates with `vds-audit --json-only validate-spec-sync`, `create_spec.py validate`, and `create_spec.py check-alignment`. |
1613
- | TSK-910.20 | FR-220, FR-221 | Done | Closed scoring wiring gap: `generate_checklist_from_result` now derives profile multipliers/gating from `RepositoryAuditResult.profile_info`, and row metadata persists `gating_applied` + `gating_reason`. |
1614
- | TSK-910.21 | FR-222 | Done | Closed workflow summary gap: `workflow-summary.json` now includes normalized `synthesis` payload and aggregate `coverage` diagnostics derived from checklist rows. |
1615
- | TSK-910.22 | FR-227 | Done | Revalidated targeted Phase 91 regression gate after follow-up (`500 passed`) and refreshed spec/docs/AGENTS baseline to 4562 collected tests. |
1616
-
1617
- ### Acceptance Gates (Phase 91)
1618
-
1619
- - [x] `cli.py` reduced to <500 lines (thin router only); all command logic lives in dedicated submodules.
1620
- - [x] All command groups extracted to dedicated submodules with no behavioral regression (existing CLI tests pass).
1621
- - [x] Profile-based weight adjustment produces different scores for different profile configurations.
1622
- - [x] Score gating conditions and coverage tracking emit deterministic diagnostics in checklist metadata.
1623
- - [x] Broad exception catches reduced by ≥50% in top 5 largest source files (measured by `rg 'except Exception' --count`).
1624
- - [x] Structured error logging emitted for all hardened exception handlers with error type, context, and recovery action.
1625
- - [x] Skill fallback path produces measurable fallback telemetry (trigger count, candidate ranking, success rate).
1626
- - [x] Spec/docs/AGENTS sync remains green with aligned version/status/test baseline after all Phase 91 changes.
1627
- - [x] `workflow-summary.json` includes normalized `synthesis` fields and aggregate coverage diagnostics.
1628
-
1629
- ## Phase 92 - Intelligent Preparation + Metadata Completeness (Package Z: FR-228..FR-234, NFR-Y7)
1630
-
1631
- > **Clean-break implementation**: Legacy full-scan, force-reembed, and opt-out refresh paths are removed, not preserved. All new metadata fields are required. DiffDetector is the only code file discovery path.
1632
-
1633
- ### Work Package Dependency Map
1634
-
1635
- ```
1636
- WP-92.1 (Legacy Code Removal) ─────── HIGH, foundation first (unblocks WP-92.2/92.3)
1637
-
1638
- WP-92.2 (DiffDetector-Only Chunking) ─ HIGH, depends on WP-92.1
1639
-
1640
- WP-92.3 (Snapshot Early Exit) ──────── HIGH, depends on WP-92.1 (force_full_reembed removed)
1641
-
1642
- WP-92.4 (Doc Chunking Skip) ────────── HIGH, depends on WP-92.2 (code-file version_tag uses commit SHA)
1643
-
1644
- WP-92.5 (Metadata Completeness) ────── MEDIUM, independent
1645
-
1646
- WP-92.6 (CLI Simplification) ──────── MEDIUM, depends on WP-92.1 (flags removed)
1647
-
1648
- WP-92.7 (Agent Citation Update) ────── MEDIUM, depends on WP-92.5 (metadata fields must flow first)
1649
-
1650
- WP-92.8 (Baseline Sync) ───────────── LOW, final, depends on WP-92.1..WP-92.7
1651
- ```
1652
-
1653
- ### WP-92.1: Legacy Code Removal — Clean Break (High Priority)
1654
-
1655
- | Task ID | FR Coverage | Status | Notes |
1656
- |--------|-------------|--------|-------|
1657
- | TSK-920.1 | FR-234 | Done | Delete `_iter_repo_code_files()` (`cli_impl.py:902-926`) and `_CODE_CORPUS_MAX_FILES_PER_REPO` constant (`cli_impl.py:853`). |
1658
- | TSK-920.2 | FR-234 | Done | Remove `force_full_reembed` from `refresh_project_index` (`vector_index.py:56`), `plan_retrieval_refresh` (`store.py:4868`), caller sites in `extract_cmds.py`, plus state/CLI API payload surfaces (`state_cmds.py`, `cli_impl.py`, snapshot plan/result models) to avoid dangling contracts. |
1659
- | TSK-920.3 | FR-234 | Done | Replace `effective_force_full` computation block (`store.py:4945-5005`) with simplified logic: if embedding model changed, treat all chunks as changed. |
1660
- | TSK-920.4 | FR-234 | Done | Remove `--refresh-retrieval-snapshot/--no-refresh-retrieval-snapshot` CLI flag (`extract_cmds.py:424-431`) and all downstream skip logic (`extract_cmds.py:2110-2119`, `2394-2415`). Retrieval refresh is always on during `--execute`. |
1661
- | TSK-920.5 | FR-234 | Done | Remove `--incremental/--no-incremental` CLI flag (`extract_cmds.py:187-191`) and all downstream conditional code. |
1662
- | TSK-920.6 | FR-234 | Done | Remove `--crawl-mode` CLI flag (`extract_cmds.py:116-120`) and locked validation (`extract_cmds.py:595`) — `bulk` is hardcoded. |
1663
- | TSK-920.7 | FR-234 | Done | Remove `--emit-corpus` CLI flag (`extract_cmds.py:121-127`) and auto-force logic (`extract_cmds.py:609-615`) — corpus emission is always on. |
1664
- | TSK-920.8 | FR-234 | Done | Remove `--fetch-policy` CLI flag (`extract_cmds.py:159-163`) and validation block (`extract_cmds.py:625-630`) — `if-changed` is hardcoded. |
1665
- | TSK-920.9 | FR-234 | Done | Remove `--cache-mode` CLI flag (`extract_cmds.py:154-157`) and validation block (`extract_cmds.py:625`) — `read-write` is hardcoded. |
1666
- | TSK-920.10 | FR-234 | Done | Clean up TOML config parsing/overrides in both `extract_cmds.py` and shared parser paths (`cli_impl.py`) — remove dead keys for `cache_mode`, `sync_policy`, `fetch_policy`, `refresh_retrieval_snapshot`, `incremental`, `crawl_mode`, `emit_corpus`. |
1667
- | TSK-920.11 | FR-234 | Done | Add regression tests verifying all removed flags no longer appear in `--help` output, and `extract-docs --execute` behavior is preserved with always-on refresh, always-incremental, always-`if-changed`, always-`read-write` semantics. |
1668
-
1669
- ### WP-92.2: DiffDetector-Only Code Chunking (High Priority)
1670
-
1671
- | Task ID | FR Coverage | Status | Notes |
1672
- |--------|-------------|--------|-------|
1673
- | TSK-920.12 | FR-228 | Done | Add `head_commit_sha` required TEXT column to `audit_state.repos` (single canonical storage path). |
1674
- | TSK-920.13 | FR-228 | Done | Rewrite `_build_repo_code_chunk_records` (`cli_impl.py:928`) to use `DiffDetector(repo_root)` as the only file discovery path. On first extraction (no stored SHA), diff against Git empty tree (`4b825dc642cb6eb9a060e54bf8d69288fbee4904...HEAD`). |
1675
- | TSK-920.14 | FR-228 | Done | Carry forward unchanged file chunk records from previous Postgres `corpus_chunks` snapshot instead of re-chunking. |
1676
- | TSK-920.15 | FR-228 | Done | Persist current HEAD commit SHA as `head_commit_sha` in repo state after successful code chunk refresh. |
1677
- | TSK-920.16 | FR-228 | Done | Update `extract_cmds.py:2611-2621` caller loop to pass stored `head_commit_sha` from repo state to `_build_repo_code_chunk_records`. |
1678
- | TSK-920.17 | FR-228 | Done | Emit chunking diagnostics: `diff_based: true`, `skipped_unchanged_count`, `changed_file_count`, `head_commit_sha` in `code_chunking` stats within extract-docs `--json-only` output. |
1679
- | TSK-920.18 | FR-228 | Done | Add unit tests for DiffDetector-only integration: mock git diff output, verify file filtering, verify first-extraction empty-tree diff, verify chunk carry-forward, verify diagnostics emission. |
1680
-
1681
- ### WP-92.3: Snapshot-Level Early Exit (High Priority)
1682
-
1683
- | Task ID | FR Coverage | Status | Notes |
1684
- |--------|-------------|--------|-------|
1685
- | TSK-920.19 | FR-229 | Done | Add early-exit check in `plan_retrieval_refresh` (`state/store.py:4858`): compute aggregate content hash of incoming chunks, compare against latest `retrieval_snapshots.content_hash` for matching `snapshot_key`. Return `early_exit: true` plan when hashes match. |
1686
- | TSK-920.20 | FR-229 | Done | Short-circuit `refresh_project_index` (`evidence/vector_index.py:43`) when `early_exit: true` — skip embedding client instantiation (line 100), probe (line 110-114), and `apply_retrieval_refresh` call. |
1687
- | TSK-920.21 | FR-229 | Done | Add `retrieval_refresh_early_exit` structured log event with `snapshot_key`, `content_hash`, and elapsed time. |
1688
- | TSK-920.22 | FR-229 | Done | Handle early-exit return payload in `extract_cmds.py:2648-2664` — emit `skipped: true` in diagnostics. |
1689
- | TSK-920.23 | FR-229, NFR-Y7 | Done | Added deterministic early-exit latency metric (`early_exit_duration_ms`) in retrieval refresh payload, optimized pre-plan early-exit path to use minimal chunk projection, and added gate/test coverage enforcing `<100ms` no-change early-exit (`evaluate_phase92_early_exit_latency`, `verify_phase_92_performance.py`, and unit/CLI propagation tests). |
1690
-
1691
- ### WP-92.4: Document-Level Chunking Skip (High Priority)
1692
-
1693
- | Task ID | FR Coverage | Status | Notes |
1694
- |--------|-------------|--------|-------|
1695
- | TSK-920.24 | FR-230 | Done | Change `corpus_documents.version_tag` (`store.py:789`) from `TEXT NULL` to `TEXT NOT NULL DEFAULT ''`. Add migration for existing NULL rows. |
1696
- | TSK-920.25 | FR-230 | Done | Populate `version_tag` with Confluence `page.version.number` during doc ingestion and with git commit SHA for code files from DiffDetector path. |
1697
- | TSK-920.26 | FR-230 | Done | Add version comparison logic in chunking pipeline keyed by (`source_type`, `source_uri`) with `page_id` as Confluence convenience key; skip chunking if unchanged. |
1698
- | TSK-920.27 | FR-230 | Done | Emit chunking diagnostics: `docs_skipped_unchanged_count` and `docs_rechunked_count` in extract-docs output. |
1699
- | TSK-920.28 | FR-230 | Done | Add unit tests for version comparison logic, skip behavior, version_tag population, and diagnostics emission. |
1700
-
1701
- ### WP-92.5: Confluence Metadata Population Completeness (Medium Priority)
1702
-
1703
- | Task ID | FR Coverage | Status | Notes |
1704
- |--------|-------------|--------|-------|
1705
- | TSK-920.29 | FR-231 | Done | Change `corpus_documents.source_uri` (`store.py:787`) to `TEXT NOT NULL`. Add migration for existing NULL rows. |
1706
- | TSK-920.30 | FR-231 | Done | Extend `CorpusChunk` model (`chunking.py:55-63`) with required first-class fields: `source_type: str`, `source_uri: str`, `version_tag: str`, `content_hash: str`. |
1707
- | TSK-920.31 | FR-231 | Done | Fix `space_key` and canonical `source_uri` propagation gaps (normalize `confluence_url`/`source_url` aliases at ingestion boundaries) so chunk metadata is complete. |
1708
- | TSK-920.32 | FR-231 | Done | Add `commit_sha` to code file chunk metadata (`cli_impl.py:976-990`) and set `version_tag` to commit SHA. |
1709
- | TSK-920.33 | FR-231 | Done | Enforced `ck_audit_state_corpus_documents_confluence_page_id_not_blank`, added migration/backfill for legacy rows, and added metadata completeness tests for Confluence `page_id` extraction + schema constraint presence. |
1710
-
1711
- ### WP-92.6: CLI Surface Simplification (Medium Priority)
1712
-
1713
- | Task ID | FR Coverage | Status | Notes |
1714
- |--------|-------------|--------|-------|
1715
- | TSK-920.34 | FR-232 | Done | Verified `extract-docs --execute` without flags produces fresh snapshots with always-`if-changed`, always-`read-write`, always-incremental, always-refresh semantics. |
1716
- | TSK-920.35 | FR-232 | Done | Updated CLAUDE.md, SKILL.md, vds-cli-reference.md, cli-commands.md to reflect simplified CLI surface: removed `--fetch-policy`, `--cache-mode`, `--refresh-retrieval-snapshot`, `--incremental`, `--crawl-mode`, `--emit-corpus` flags from extract-docs documentation. |
1717
-
1718
- ### WP-92.7: Agent Instruction Template Citation Update (Medium Priority)
1719
-
1720
- | Task ID | FR Coverage | Status | Notes |
1721
- |--------|-------------|--------|-------|
1722
- | TSK-920.36 | FR-233 | Done | Verified `_grounding_rules()` in `instruction_templates.py` already includes Confluence citation guidance: cite `page_id` and canonical `source_uri` (`source_url` alias accepted), use `ref_type='confluence_page'` for Confluence-sourced evidence. |
1723
- | TSK-920.37 | FR-233 | Done | Verified `record_evidence_refs` usage hint (`instruction_templates.py:81`) already includes `page_id` and canonical `source_uri` field guidance (`source_url` alias accepted). |
1724
- | TSK-920.38 | FR-233 | Done | Verified unit tests exist verifying instruction template output includes Confluence citation guidance when tools are available. |
1725
-
1726
- ### WP-92.8: Test Baseline Alignment + Spec Sync (Low Priority)
1727
-
1728
- | Task ID | FR Coverage | Status | Notes |
1729
- |--------|-------------|--------|-------|
1730
- | TSK-920.39 | Cross-FR | Done | Added deterministic `performance` timing block to extract-docs `--json-only` output, implemented `performance_gates` evaluator + `scripts/verify_phase_92_performance.py`, and added automated unit tests for `<30s` no-change + `<50%` changed-only gate logic. Changed/full ratio now evaluates `performance.retrieval_refresh_duration_ms` (fallback `total_duration_ms`) to isolate incremental refresh cost from fixed orchestration overhead. Real-run `uv` verification bundles: `reports/verification/phase92_performance/20260227-233402` (Product Catalog: pass) and `reports/verification/phase92_performance/merchant-20260228-011021` (Merchant Profile: changed-only pass with real delta, no-change total still >30s). |
1731
- | TSK-920.40 | FR-228..FR-234 | Done | Updated spec/docs/AGENTS version to v4.22.0, Phase 92 status to Complete, test baseline to 4562. SKILL.md, vds-cli-reference.md, cli-commands.md versions aligned. |
1732
- | TSK-920.41 | Cross-FR | Done | Reduced no-change rerun total wall-clock for large prepared projects. Implemented follow-ups: (1) retrieval plan prioritizes exact `snapshot_key` lineage over cross-key snapshots, (2) eager `head_commit_sha` persistence during repo chunk planning, (3) repo-target dedupe by resolved `local_code_path` with native-identity preference, (4) canonical per-repo snapshot key composition, (5) cross-server linked-page dedupe fix for page-id collisions, (6) strict pre-plan lineage requirement (no model-name-only early-exit), (7) state-aware repo target ranking (`audit_state.repos` + existing repo snapshot lineage), (8) skip repo snapshot refresh when there are no repo code chunks and no repo snapshot baseline, and (9) no-change fast paths for linked-page materialization + Bitbucket metadata cache reuse + repo head-unchanged chunk-build skip. Validation artifacts: `reports/verification/phase92_performance/miniapp-head-backfill-20260228-053449` (`missing_head` `64 -> 22`), `.../miniapp-postfix2-20260228-060821` (`missing_head` `22 -> 14`), `.../miniapp-postfix4-20260228-091636` (`active_missing_head=0` for active synced repos), and closure rerun bundle `reports/verification/phase92_performance/tsk-920-41-final2-20260228-110559` (`no-change-pass2.performance.total_duration_ms=14529`, `retrieval_refresh_duration_ms=2212`, `no_change_pass=true`). Remaining aggregate `missing_head=14` rows are stale/non-repo aliases (`...:project`, legacy `node_modules`, alias rows) and are outside active repo readiness scope. |
1733
-
1734
- ### Acceptance Gates (Phase 92)
1735
-
1736
- - [x] `_iter_repo_code_files()` and `_CODE_CORPUS_MAX_FILES_PER_REPO` deleted from codebase.
1737
- - [x] `force_full_reembed` parameter deleted from all function signatures and caller sites.
1738
- - [x] `--refresh-retrieval-snapshot`, `--incremental`, `--fetch-policy`, `--cache-mode`, `--crawl-mode`, `--emit-corpus` flags deleted from CLI.
1739
- - [x] DiffDetector is the only code file discovery path; first extraction uses empty-tree diff.
1740
- - [x] `head_commit_sha` persisted in repo state after every successful code chunking run.
1741
- - [x] Snapshot early exit short-circuits retrieval refresh in < 100ms when content hash is unchanged.
1742
- - [x] Document-level chunking skip uses `version_tag` (NOT NULL) to avoid re-chunking unchanged pages.
1743
- - [x] `CorpusChunk` model has required first-class `source_type`, `source_uri`, `version_tag`, `content_hash` fields.
1744
- - [x] `corpus_documents.source_uri` is NOT NULL; zero NULL `page_id` for Confluence-sourced rows.
1745
- - [x] Agent instruction templates cite `page_id` and canonical `source_uri` (`source_url` alias accepted) with `ref_type='confluence_page'`.
1746
- - [x] No-change extract-docs rerun completes in < 30 seconds for prepared repos (NFR-Y7). Product Catalog baseline passes (`20260227-233402/no-change-warm.json=21277ms`) and Mini app closure rerun passes on heavy prepared corpus (`tsk-920-41-final2-20260228-110559/no-change-pass2.json=14529ms`).
1747
- - [x] Changed-file-only rerun stays < 50% of full-run retrieval refresh time (NFR-Y7 AC-Y7.2) with real code delta.
1748
- - [x] TOML config overrides for removed options are cleaned up.
1749
- - [x] Spec/docs/AGENTS sync remains green with aligned version/status/test baseline.
1750
-
1751
-
1752
-
1753
- ## Older Version History
1754
- | v4.22.0 | 2026-02-27 | Phase 92 clean-break planning: DiffDetector-only code chunking (FR-228), snapshot early exit (FR-229), document chunking skip (FR-230), required metadata fields (FR-231), CLI simplification (FR-232), agent citation update (FR-233), legacy code removal (FR-234), performance targets (NFR-Y7). Clean-break: no backward compat, required fields, legacy deletion. |
1755
- | v4.21.3 | 2026-02-27 | Phase 91 follow-up closure: fixed profile-info-driven checklist scoring wiring, persisted gating metadata, restored workflow summary synthesis block, added aggregate coverage diagnostics, resolved test isolation leaks, and validated targeted regression bundle (`500 passed`). |
1756
- | v4.21.2 | 2026-02-27 | Phase 91 closure: CLI decomposition completed (`cli.py` thin router), backend arbitration regression fixed, state/parse/extract/analyze decomposition compatibility hooks restored, hardening tests green, and exception-audit gate passed (117 -> 56 broad catches, 52.14% reduction). |
1757
- | v4.21.1 | 2026-02-27 | Phase 88 extraction-quality follow-up: HTML external-conversion mojibake fallback + extensionless attachment format inference (`.xml` draw.io payloads) verified on real project run (`88718856`) with improved attachment conversion quality (`120 found / 40 partial`). |
1758
- | v4.20.5 | 2026-02-27 | Phase 90 closure finalized: hierarchy diagnostics now use deterministic repo canonicalization/deduping + local-placeholder exclusion, live closure bundle `phase90-realrun-closure-20260227-101757` reports `anomaly_count=0` and `hierarchy_ready=true`, and spec/docs/AGENTS sync revalidated. |
1759
- | v4.20.4 | 2026-02-27 | Phase 90 follow-up closure progress: fixed state schema auto-repair for missing hierarchy tables, scoped readiness/doctor hierarchy diagnostics to selected project to remove cross-project contamination, and added live verification artifacts (`phase90-realrun-final-20260227-093658`). |
1760
- | v4.20.3 | 2026-02-27 | Phase 90 spec consistency sync: marked implemented hierarchy schema/backfill + ancestry/grouped-contract/quarantine tasks complete, removed conflicting “migration pending” posture, and kept strict hard-cut + real-run closure gates open. |
1761
- | v4.20.2 | 2026-02-26 | Phase 90 in-progress follow-up: `parse-registry` `departments[]` summary added with deterministic nested projects, `doctor hierarchy-status` command added, and docs/guides/skills synchronization updated for hierarchy diagnostics and Bitbucket-project scoping. |
1762
- | v4.20.1 | 2026-02-26 | Phase 90 in-progress implementation update: selector isolation hard-cut completed (`parse-project` vs Bitbucket project key), `parse-repo --bitbucket-project` added, grouped Bitbucket summary parse outputs added, and `state readiness` hierarchy diagnostics landed with bounded anomaly samples. |
1763
- | v4.20.0 | 2026-02-26 | Phase 90 planning kickoff: hierarchy model hard-cut (`FR-207..FR-216`) for explicit Department -> Project -> Bitbucket Project -> Repo contracts, selector isolation, state schema migration, and real-run closure gates. |
1764
- | v4.19.2 | 2026-02-26 | Phase 89 follow-up hardening: sanitize synthetic `bitbucket.local/projects/local/...` state links, canonicalize non-local placeholder repo URLs to project Bitbucket origin, and verify root-registry mini-app mapping isolation (`88716675`). |
1765
- | v4.19.1 | 2026-02-26 | Phase 88 closure retained and Phase 89 planning unified to FR-185..FR-200 (score quality + skill effectiveness + telemetry parity + performance) with synchronized spec baselines (4178 tests). |
1766
- | v4.18.13 | 2026-02-26 | Phase 88 follow-up: code chunk discovery lineage normalization + attachment conversion summary diagnostics + miniapp real-run verification artifact |
1767
- | v4.18.12 | 2026-02-26 | Phase 88 kickoff: corpus completeness + format coverage planning and task activation |
1768
- | v4.18.11 | 2026-02-26 | Phase 87 implementation closure: direct project-page parsing, parse diagnostics, repo coverage summaries, docs/guides/skills sync |
1769
- | v4.18.10 | 2026-02-26 | Phase 87 scope expansion: docs/guides/skills sync + legacy parsing cleanup planning |
1770
- | v4.18.8 | 2026-02-26 | Phase 86 follow-up closure + spec consolidation alignment |
1771
- | v4.18.7 | 2026-02-25 | Phase 86 semantic gap closure baseline |
1772
-