@ngocsangairvds/vsaf 3.2.14 → 3.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/vsaf.js +13 -0
- package/package.json +1 -1
- package/src/config.js +167 -0
- package/src/global.js +1 -48
- package/src/utils.js +44 -1
- package/tools/vds-scripts/Makefile +9 -31
- package/tools/vds-scripts/docker/docker-compose.cli.yml +1 -117
- package/tools/vds-scripts/docker/docker-compose.services.yml +1 -40
- package/tools/vds-scripts/docker/infrastructure/init-schemas.sql +0 -34
- package/tools/vds-scripts/docker/infrastructure/pgbouncer/pgbouncer.ini +2 -6
- package/tools/vds-scripts/pyproject.toml +1 -33
- package/tools/vds-scripts/uv.lock +80 -1651
- package/tools/vds-scripts/vds_cli/pyproject.toml +3 -0
- package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +1 -127
- package/tools/vds-scripts/vds_cli/src/vds_cli/commands/lint_cli.py +1 -20
- package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +0 -100
- package/tools/vds-scripts/vds_cli/tests/conftest.py +0 -2
- package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +0 -25
- package/tools/vds-scripts/vds_cli/tests/unit/test_lint_cli.py +2 -2
- package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +0 -2
- package/tools/vds-scripts/CLOSURE.md +0 -340
- package/tools/vds-scripts/ECOSYSTEM-CHANGELOG.md +0 -52
- package/tools/vds-scripts/ECOSYSTEM-DOCS.md +0 -602
- package/tools/vds-scripts/ECOSYSTEM_ALIGNMENT.md +0 -133
- package/tools/vds-scripts/ENV-HYGIENE-OPS-NOTE.md +0 -65
- package/tools/vds-scripts/INVESTIGATION-cloud-401.md +0 -103
- package/tools/vds-scripts/MEM0_2.0_API_REFERENCE.md +0 -238
- package/tools/vds-scripts/PACKAGE_P125B_IMPLEMENTATION_SUMMARY.md +0 -131
- package/tools/vds-scripts/PHASE-MERGE-SUMMARY.md +0 -121
- package/tools/vds-scripts/PHASES-3-ARCHIVE.md +0 -59
- package/tools/vds-scripts/PROJECT_COMPLETION_SUMMARY.md +0 -45
- package/tools/vds-scripts/SEARCH-CRASH-REPRO.md +0 -51
- package/tools/vds-scripts/analyze_hexagonal.py +0 -217
- package/tools/vds-scripts/analyze_profiles.py +0 -60
- package/tools/vds-scripts/audit-checklist.xlsx +0 -0
- package/tools/vds-scripts/audit_orchestrator/.audit_approvals/approvals_index.json +0 -1
- package/tools/vds-scripts/audit_orchestrator/.env.example +0 -85
- package/tools/vds-scripts/audit_orchestrator/.github/workflows/audit.yml +0 -47
- package/tools/vds-scripts/audit_orchestrator/Dockerfile +0 -92
- package/tools/vds-scripts/audit_orchestrator/GOOGLE_SHEETS_IMPLEMENTATION_SUMMARY.md +0 -218
- package/tools/vds-scripts/audit_orchestrator/PHASE3_INTEGRATION_SUMMARY.md +0 -268
- package/tools/vds-scripts/audit_orchestrator/PHASE7-MERGE-SUMMARY.md +0 -174
- package/tools/vds-scripts/audit_orchestrator/README.md +0 -1573
- package/tools/vds-scripts/audit_orchestrator/TSK-168-IMPLEMENTATION-SUMMARY.md +0 -191
- package/tools/vds-scripts/audit_orchestrator/TSK-196-IMPLEMENTATION-SUMMARY.md +0 -201
- package/tools/vds-scripts/audit_orchestrator/alembic/env.py +0 -37
- package/tools/vds-scripts/audit_orchestrator/alembic/script.py.mako +0 -28
- package/tools/vds-scripts/audit_orchestrator/alembic/versions/0001_initial_audit_state_schema.py +0 -1260
- package/tools/vds-scripts/audit_orchestrator/alembic.ini +0 -68
- package/tools/vds-scripts/audit_orchestrator/config/category-mapping.json +0 -81
- package/tools/vds-scripts/audit_orchestrator/config/profile-timeouts.yaml +0 -17
- package/tools/vds-scripts/audit_orchestrator/create_sample.py +0 -55
- package/tools/vds-scripts/audit_orchestrator/data/corpus_accuracy_report.json +0 -17
- package/tools/vds-scripts/audit_orchestrator/data/exemplar_quality_report.json +0 -1606
- package/tools/vds-scripts/audit_orchestrator/data/instruction_plan_fixtures.json +0 -163
- package/tools/vds-scripts/audit_orchestrator/data/requirement_exemplars.json +0 -3443
- package/tools/vds-scripts/audit_orchestrator/data/requirement_scope_fixtures.json +0 -172
- package/tools/vds-scripts/audit_orchestrator/debug_rg.py +0 -46
- package/tools/vds-scripts/audit_orchestrator/demo_code_pack.py +0 -127
- package/tools/vds-scripts/audit_orchestrator/docs/AGENT_SDK_SELECTION_SPEC.md +0 -720
- package/tools/vds-scripts/audit_orchestrator/docs/API.md +0 -804
- package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_ANALYSIS_APPROACH.md +0 -1041
- package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_SCORING_EVOLUTION_SPEC.md +0 -868
- package/tools/vds-scripts/audit_orchestrator/docs/DEPLOYMENT.md +0 -778
- package/tools/vds-scripts/audit_orchestrator/docs/LLM_AGENT_AUDIT_SPEC.md +0 -721
- package/tools/vds-scripts/audit_orchestrator/docs/LLM_CONTENT_ANALYSIS_SPEC.md +0 -1143
- package/tools/vds-scripts/audit_orchestrator/docs/LSP_SETUP_GUIDE.md +0 -221
- package/tools/vds-scripts/audit_orchestrator/docs/MULTI_REPO_AUDIT_SPEC.md +0 -951
- package/tools/vds-scripts/audit_orchestrator/docs/OLLAMA_EMBEDDINGS_SETUP.md +0 -119
- package/tools/vds-scripts/audit_orchestrator/docs/PHASE32_REAL_BENCHMARK_2026-02-08.md +0 -66
- package/tools/vds-scripts/audit_orchestrator/docs/PHASE_64_TO_92_HISTORICAL_SPEC.md +0 -1772
- package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-flow-trace.md +0 -201
- package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-verification.md +0 -124
- package/tools/vds-scripts/audit_orchestrator/docs/phase152-hierarchical-query-surface.md +0 -46
- package/tools/vds-scripts/audit_orchestrator/examples/bitbucket_metadata_example.json +0 -50
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/README.md +0 -68
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase117_phase118_shared_state.sql +0 -64
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase154_published_pages.sql +0 -28
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_dispatch_tables.sql +0 -94
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_events.sql +0 -91
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_scope_snapshots.sql +0 -24
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_status_view.sql +0 -22
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase169_dispatch_observability.sql +0 -55
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/state_repair_hardening.sql +0 -24
- package/tools/vds-scripts/audit_orchestrator/pyproject.toml +0 -211
- package/tools/vds-scripts/audit_orchestrator/pyrightconfig.json +0 -51
- package/tools/vds-scripts/audit_orchestrator/pytest.ini +0 -37
- package/tools/vds-scripts/audit_orchestrator/reproduce_scanner.py +0 -40
- package/tools/vds-scripts/audit_orchestrator/scripts/README.md +0 -116
- package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_crawl_modes.py +0 -455
- package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_dspy.py +0 -513
- package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_nlp_accuracy.py +0 -138
- package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_retrieval_modes.py +0 -176
- package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_upload_update_mode.py +0 -167
- package/tools/vds-scripts/audit_orchestrator/scripts/build_check.py +0 -76
- package/tools/vds-scripts/audit_orchestrator/scripts/check_live_progress.py +0 -61
- package/tools/vds-scripts/audit_orchestrator/scripts/cli_integration_test.py +0 -400
- package/tools/vds-scripts/audit_orchestrator/scripts/index_workspace.py +0 -178
- package/tools/vds-scripts/audit_orchestrator/scripts/inspect_route_conformance.py +0 -196
- package/tools/vds-scripts/audit_orchestrator/scripts/monitor_postgres.py +0 -145
- package/tools/vds-scripts/audit_orchestrator/scripts/optimize_audit.py +0 -462
- package/tools/vds-scripts/audit_orchestrator/scripts/verify.py +0 -673
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase111_requirement_analysis.py +0 -375
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase117_cross_repo_evidence.py +0 -77
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase121_short_circuit.py +0 -680
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase122_instruction_handling.py +0 -478
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase125_skill_integration.py +0 -832
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_36.py +0 -394
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_37.py +0 -58
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/__init__.py +0 -17
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/__init__.py +0 -29
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/_langchain_warnings.py +0 -17
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/agentic_investigator.py +0 -4130
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/approval.py +0 -490
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_loop_hooks.py +0 -107
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_state.py +0 -50
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/base.py +0 -4035
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_agent.py +0 -667
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_helpers.py +0 -236
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_prompts.py +0 -146
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/docs_agent.py +0 -1234
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/langgraph_workflow.py +0 -2002
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/pydantic_base.py +0 -1227
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/requirement_analysis_agent.py +0 -593
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_agent.py +0 -1829
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_scanner.py +0 -686
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/skill_tools.py +0 -204
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/synthesis_agent.py +0 -1463
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_efficiency_guard.py +0 -609
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_registry.py +0 -3822
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/__init__.py +0 -52
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/evidence_corpus.py +0 -385
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/filesystem.py +0 -1134
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/lsp.py +0 -458
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/mcp_toolset.py +0 -491
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/skills_toolset.py +0 -997
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/vector_evidence.py +0 -842
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/usage_tracker.py +0 -682
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/visualization.py +0 -303
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/analyze_cmds.py +0 -892
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/__init__.py +0 -15
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/service.py +0 -171
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/__init__.py +0 -20
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/base.py +0 -60
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/__init__.py +0 -6
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/checks.py +0 -257
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/__init__.py +0 -10
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/checks.py +0 -78
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/__init__.py +0 -6
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/file_checks.py +0 -133
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/__init__.py +0 -17
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/api_docs_check.py +0 -80
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/readme_check.py +0 -76
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/security_docs_check.py +0 -78
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/registry.py +0 -402
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/__init__.py +0 -10
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/checks.py +0 -276
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli.py +0 -12
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_common.py +0 -128
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_impl.py +0 -9826
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/bitbucket_cli_client.py +0 -187
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/confluence_cli_client.py +0 -977
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/sonarqube_cli_client.py +0 -28
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/__init__.py +0 -21
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/base.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_downloader.py +0 -644
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_metadata.py +0 -133
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/checklist_parser.py +0 -180
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/__init__.py +0 -31
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/bitbucket_probe.py +0 -443
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/confluence_probe.py +0 -365
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/freshness_evaluator.py +0 -330
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/material_completeness_service.py +0 -1079
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/confluence_collector.py +0 -259
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/diagram_extractor.py +0 -280
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/enrichment_extractor.py +0 -200
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/evidence_cache.py +0 -35
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/git_collector.py +0 -148
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/graphify_collector.py +0 -171
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/image_extractor.py +0 -359
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/linked_page_tracker.py +0 -120
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/markdown_converter.py +0 -344
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_cache.py +0 -1252
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_downloader.py +0 -1165
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/orchestrator.py +0 -168
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/registry_parser.py +0 -3063
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/requirements.py +0 -70
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/runner.py +0 -119
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/sonarqube_collector.py +0 -113
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config.py +0 -1943
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/__init__.py +0 -23
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/discovery.py +0 -90
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/environment_resolver.py +0 -56
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/evidence.py +0 -78
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/models.py +0 -73
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/precedence.py +0 -10
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/redaction.py +0 -20
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/confluence_connectivity.py +0 -140
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/corpus_cmds.py +0 -278
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/__init__.py +0 -7
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/alembic_filters.py +0 -57
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/__init__.py +0 -29
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/diataxis_validator.py +0 -687
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/doctor_cmds.py +0 -3295
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/__init__.py +0 -5
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/evaluation.py +0 -301
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/modules.py +0 -172
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/runtime.py +0 -836
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/signatures.py +0 -406
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/__init__.py +0 -192
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/ad_hoc_analyzer.py +0 -399
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/aggregator.py +0 -220
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/auditor.py +0 -504
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_evidence_cache.py +0 -111
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_processor.py +0 -4776
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/calibration.py +0 -217
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_generator.py +0 -1201
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_projection.py +0 -192
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_scoping.py +0 -221
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checkpoint.py +0 -159
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cl003_shared_lib_guard.py +0 -194
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/companion_context_service.py +0 -445
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/confluence_checklist_contract.py +0 -7425
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cross_check_rules.py +0 -213
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/deterministic_evaluator.py +0 -237
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/drift_detector.py +0 -157
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/dspy_requirement_classifier.py +0 -640
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_assembler.py +0 -407
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_collector.py +0 -119
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_diversity.py +0 -101
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/gap_analyzer.py +0 -549
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/graduated.py +0 -185
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/grounding_validator.py +0 -287
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_analyzer.py +0 -882
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_compliance.py +0 -172
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/llm_row_evaluator.py +0 -9270
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/loader.py +0 -1070
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/manual_check_config.py +0 -136
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/mapping.py +0 -269
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/multi_judge.py +0 -65
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/phase120_checklist_update.py +0 -416
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/profile_scorer.py +0 -427
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_evidence_context.py +0 -449
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_query_service.py +0 -155
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_store.py +0 -383
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_topology.py +0 -1920
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/provider_failure_classifier.py +0 -778
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_cli_helpers.py +0 -341
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_extractor.py +0 -303
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_synthesizer.py +0 -730
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/regression_guard.py +0 -138
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/repo_type_classifier.py +0 -297
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_analysis.py +0 -1433
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_classification.py +0 -1725
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/result_merger.py +0 -814
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/route_matrix.py +0 -267
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator.py +0 -9437
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_runtime.py +0 -1270
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_types.py +0 -2102
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/rubric.py +0 -592
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/scorer.py +0 -1239
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/section_packs.py +0 -645
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/skill_recommendation.py +0 -1183
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/stability_harness.py +0 -207
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/target_selector.py +0 -841
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/telemetry.py +0 -347
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/template_analyzer.py +0 -469
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/token_tracker.py +0 -111
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/tool_first_planner.py +0 -7905
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/topology_query_service.py +0 -80
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/validator.py +0 -449
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/weight_policy.py +0 -464
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/errors.py +0 -430
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/extract_cmds.py +0 -4887
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/identity.py +0 -146
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/__init__.py +0 -52
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/baseline.py +0 -378
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/change_analyzer.py +0 -407
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/delta_report.py +0 -189
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/diff_detector.py +0 -301
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/integrations/__init__.py +0 -3
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/__init__.py +0 -50
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/audit_schemas.py +0 -459
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/codex_oauth.py +0 -340
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/cost_tracker.py +0 -288
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/engine.py +0 -751
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/evaluator.py +0 -245
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/__init__.py +0 -32
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/api_docs_evaluation.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/gap_analysis.py +0 -31
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/instruction_templates.py +0 -634
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/readme_evaluation.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/row_evaluation.py +0 -247
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/security_docs_evaluation.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/template_analysis.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/provider.py +0 -626
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/logging_config.py +0 -577
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/__init__.py +0 -58
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/default_checklist_mapping.json +0 -18
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/vietnamese_checklist_mapping.json +0 -38
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/misc_cmds.py +0 -4689
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/__init__.py +0 -153
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/calibration.py +0 -98
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/checklist.py +0 -921
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/completeness.py +0 -309
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enrichment.py +0 -58
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enums.py +0 -97
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/evidence.py +0 -351
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/findings.py +0 -381
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/gaps.py +0 -299
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/graph.py +0 -42
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/multi_judge.py +0 -50
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/readiness.py +0 -309
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/registry.py +0 -386
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/reporting.py +0 -32
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/task.py +0 -549
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/template.py +0 -477
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/__init__.py +0 -31
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/metrics.py +0 -404
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/parse_cmds.py +0 -608
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/pdf_cmds.py +0 -208
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/performance_gates.py +0 -224
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/phase151_projection.py +0 -84
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/__init__.py +0 -65
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/detection.py +0 -842
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/models.py +0 -474
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/__init__.py +0 -1
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_confluence_macros.py +0 -145
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_field_sanitizer.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_table_builder.py +0 -63
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_vietnamese_templates.py +0 -103
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/bitbucket_link_resolver.py +0 -34
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/checklist_renderer.py +0 -483
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/confluence_publisher.py +0 -3048
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/hierarchy_publisher.py +0 -213
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/live_data_injector.py +0 -152
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/macro_builder.py +0 -101
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/markdown_converter.py +0 -154
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/priority_renderer.py +0 -133
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/project_aggregate_renderer.py +0 -423
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/readiness_renderer.py +0 -186
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_hierarchy_renderer.py +0 -382
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_renderer.py +0 -683
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/report_cmds.py +0 -788
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/__init__.py +0 -13
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/aggregation_report.py +0 -86
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/checklist_generator.py +0 -425
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/excel_generator.py +0 -599
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/gap_report.py +0 -131
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/json_generator.py +0 -188
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/markdown_generator.py +0 -595
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/__init__.py +0 -154
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/collector.py +0 -61
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/department_builder.py +0 -77
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/errors.py +0 -9
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/md_renderer.py +0 -386
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_models.py +0 -95
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_writer.py +0 -27
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/repo_project_builders.py +0 -274
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/readiness_report.py +0 -447
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/reporting.py +0 -94
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/sarif_generator.py +0 -519
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/runtime_profiles.py +0 -98
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/__init__.py +0 -29
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/seed_loader.py +0 -561
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/__init__.py +0 -5
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/skill_routing.py +0 -312
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/base.py +0 -110
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/bitbucket.py +0 -129
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/git_url.py +0 -60
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/github.py +0 -75
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/local.py +0 -58
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/spec_sync_validator.py +0 -15
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/__init__.py +0 -6285
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/readiness_helpers.py +0 -74
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/skill_readiness.py +0 -487
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/store.py +0 -12927
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state_cmds.py +0 -1868
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/repo_sync.py +0 -409
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync_cmds.py +0 -1247
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/__init__.py +0 -3
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/debug_bundle.py +0 -214
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/validators/checklist_validator.py +0 -342
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflow_cmds.py +0 -19147
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/__init__.py +0 -9
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/_test_audit_daily_batch.py +0 -192
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_daily_batch.py +0 -308
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_deep_monthly.py +0 -193
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_drift_scan.py +0 -178
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_security_daily.py +0 -183
- package/tools/vds-scripts/audit_orchestrator/templates/sample_audit_template.xlsx +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/_helpers.py +0 -32
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_bitbucket_probe.py +0 -403
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_confluence_probe.py +0 -423
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_bitbucket_downloader.py +0 -289
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_image_extractor.py +0 -260
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_markdown_converter.py +0 -57
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_cache.py +0 -197
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_downloader.py +0 -550
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser.py +0 -3514
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_department_entry.py +0 -214
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_flow.py +0 -200
- package/tools/vds-scripts/audit_orchestrator/tests/conftest.py +0 -988
- package/tools/vds-scripts/audit_orchestrator/tests/engine/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/engine/test_calibration.py +0 -48
- package/tools/vds-scripts/audit_orchestrator/tests/engine/test_confluence_checklist_phase22_helpers.py +0 -6065
- package/tools/vds-scripts/audit_orchestrator/tests/engine/test_multi_judge.py +0 -62
- package/tools/vds-scripts/audit_orchestrator/tests/engine/test_stability_harness.py +0 -61
- package/tools/vds-scripts/audit_orchestrator/tests/engine/test_structured_metadata.py +0 -419
- package/tools/vds-scripts/audit_orchestrator/tests/factories/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/factories/models.py +0 -534
- package/tools/vds-scripts/audit_orchestrator/tests/factories/templates.py +0 -241
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/compressed.drawio +0 -2
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/mockup.bmpr +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/simple.drawio +0 -26
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_cli.json +0 -26
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_direct.json +0 -24
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_cli.json +0 -14
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_direct.json +0 -12
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_cli.json +0 -7
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_direct.json +0 -7
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_cli.json +0 -11
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_direct.json +0 -7
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_cli.json +0 -12
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_direct.json +0 -12
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/requirement_strategy_phase115.json +0 -118
- package/tools/vds-scripts/audit_orchestrator/tests/integration/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/integration/conftest.py +0 -107
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/expected_outcomes.md +0 -50
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/auth.py +0 -27
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/config.py +0 -16
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/db.py +0 -24
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/main.py +0 -18
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/__init__.py +0 -1
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/utils.py +0 -22
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_checklist_template.json +0 -110
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/code_evidence_pack.json +0 -40
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/manifest.json +0 -49
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/brd.md +0 -19
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/design.md +0 -32
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/security.md +0 -23
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/srs.md +0 -25
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/test.md +0 -30
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_checkpoint_merge.py +0 -1371
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_decoupling_route_p149.py +0 -176
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_gap_analyzer_batch_p149.py +0 -151
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_hybrid_search.py +0 -799
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_mcp_integration.py +0 -741
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_merge_ranking_p149.py +0 -98
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_modality_mismatch_p149.py +0 -171
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase117_118_storage.py +0 -350
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase121_short_circuit.py +0 -732
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase18_workflow.py +0 -223
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase48_e2e_verification.py +0 -763
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase81_doc_anchor_regression.py +0 -252
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_provider_failure_finding_p149.py +0 -339
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_readiness_e2e.py +0 -430
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_refined_workflow.py +0 -1180
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/department_renderer.md +0 -24
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/project_renderer.md +0 -8
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/repo_renderer.md +0 -10
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_department_pdf.py +0 -112
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_e2e_pdf.py +0 -135
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_idempotency.py +0 -45
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_md_renderer.py +0 -46
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_cmds.py +0 -97
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_snapshot.py +0 -77
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_writer.py +0 -65
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_project_builder.py +0 -199
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_public_api.py +0 -135
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_repo_builder.py +0 -246
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_workflow_pdf_flags.py +0 -36
- package/tools/vds-scripts/audit_orchestrator/tests/property/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/property/test_properties.py +0 -807
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agent_error_compat.py +0 -38
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agentic_skill_policy_skip.py +0 -234
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_event_stream_logging.py +0 -785
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_timeout_policy.py +0 -277
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_trace_payload_sanitization.py +0 -92
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent.py +0 -2311
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent_re_exports.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_analysis_helpers.py +0 -94
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_create_audit_agent_reasoning_effort.py +0 -69
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_docs_agent.py +0 -2044
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_langgraph_workflow_efficiency_metrics.py +0 -71
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_output_validators.py +0 -317
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_phase41_toolsets.py +0 -6427
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_ai_models.py +0 -1219
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_base_url_resolution.py +0 -84
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_security_agent.py +0 -2069
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_skill_manager_focus.py +0 -439
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_synthesis_agent.py +0 -1195
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_tool_efficiency_guard_fr120.py +0 -683
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_toolsets.py +0 -716
- package/tools/vds-scripts/audit_orchestrator/tests/test_aggregator_p149.py +0 -171
- package/tools/vds-scripts/audit_orchestrator/tests/test_alembic_migrations.py +0 -287
- package/tools/vds-scripts/audit_orchestrator/tests/test_anchor_allowlist_p149.py +0 -273
- package/tools/vds-scripts/audit_orchestrator/tests/test_audit_otel.py +0 -283
- package/tools/vds-scripts/audit_orchestrator/tests/test_checklist_models.py +0 -583
- package/tools/vds-scripts/audit_orchestrator/tests/test_checks/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_base_check.py +0 -211
- package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_llm_checks.py +0 -126
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_analyze_command.py +0 -400
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_archive_stale_page_cli.py +0 -217
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_bitbucket_metadata_cli.py +0 -354
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_cli_impl_profile_availability.py +0 -114
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_codex_profile.py +0 -174
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_compare_backends_cli.py +0 -449
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_confluence_parent_auto_resolve.py +0 -451
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_corpus_purge_cli.py +0 -290
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_credentials_preflight.py +0 -106
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_debug_bundle.py +0 -37
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_deprecation_phase157.py +0 -484
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_dispatch_concurrency_diagnostics.py +0 -758
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_check_confluence_cli.py +0 -320
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_codex.py +0 -187
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_corpus_status_cli.py +0 -236
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_correlation_cli.py +0 -128
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_crawl_status_cli.py +0 -192
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_credentials_cli.py +0 -86
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_dispatch_status_cli.py +0 -421
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_heartbeat_phase169.py +0 -173
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_hierarchy_status_cli.py +0 -199
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_locks_cli.py +0 -134
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_logs_follow_cli.py +0 -305
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_migration.py +0 -333
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_profile_availability_cli.py +0 -151
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_skills_policy_cli.py +0 -153
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_evidence_quality_cli.py +0 -307
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_debug_bundle_phase36.py +0 -60
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_git_manifest_cli.py +0 -172
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_file_removal_phase157e.py +0 -770
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_grounding_classifier.py +0 -226
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_logging.py +0 -49
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_materials_cli.py +0 -9127
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_metadata_completeness_phase92.py +0 -364
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parent_dispatch_finalization_phase168f.py +0 -111
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parse_cli.py +0 -590
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase117_118_feature_flags.py +0 -219
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase164_control_plane.py +0 -718
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase165_runner_scripts.py +0 -230
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_preparation_classifications.py +0 -146
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_prepare_cli.py +0 -398
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publication_quality_gate.py +0 -126
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publish_system_doc_cli.py +0 -158
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_query_checklist_cli.py +0 -219
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli.py +0 -673
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli_integration.py +0 -689
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_removed_flags_phase92.py +0 -36
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_report_cmds.py +0 -1317
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_history_index.py +0 -57
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_management.py +0 -1194
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_runtime_profiles_cli.py +0 -1658
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_smart_run_selection.py +0 -1562
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_cli.py +0 -2467
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_migration.py +0 -339
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_sync_repos_debug_artifacts.py +0 -1109
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_upload_results_cli.py +0 -809
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist.py +0 -178
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist_cli.py +0 -110
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_spec_sync_cli.py +0 -519
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_default_parameters_baseline.py +0 -101
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_options.py +0 -7896
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_db_modes.py +0 -6516
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_project_scope.py +0 -831
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_target.py +0 -611
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_lifecycle.py +0 -2488
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_scaffolding.py +0 -96
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_row_key_guard.py +0 -78
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_summary_artifacts.py +0 -1872
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli_paths_phase2.py +0 -45
- package/tools/vds-scripts/audit_orchestrator/tests/test_clients/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_bitbucket_cli_client.py +0 -124
- package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_cli_parity.py +0 -110
- package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_confluence_cli_client.py +0 -1149
- package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_sonarqube_cli_client.py +0 -19
- package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/test_linked_page_tracker.py +0 -118
- package/tools/vds-scripts/audit_orchestrator/tests/test_companion_context_service.py +0 -230
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/conftest.py +0 -11
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_compile_artifact.py +0 -465
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique.py +0 -120
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique_e2e.py +0 -75
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_evaluation.py +0 -515
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_runtime_loader.py +0 -537
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_signatures_normalization.py +0 -172
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_auditor_applicability.py +0 -68
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_generator.py +0 -1252
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_projection.py +0 -54
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_confluence_checklist_projection_consistency.py +0 -1696
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_critique_merger_matrix.py +0 -120
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_check_rules.py +0 -459
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_provider_critique.py +0 -55
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_doc_loader.py +0 -73
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_drift_detector.py +0 -34
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_evidence_collectors.py +0 -93
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_lease_timeout.py +0 -114
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader.py +0 -350
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader_parity.py +0 -179
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_low_confidence_reeval.py +0 -691
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase145a_completion.py +0 -209
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase31_row_consistency_retry_benchmark.py +0 -150
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_profile_detector.py +0 -286
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_regression_guard.py +0 -53
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_result_merger.py +0 -619
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_evaluator.py +0 -15783
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_failover.py +0 -215
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_scorer.py +0 -597
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_skill_breakdown_telemetry_fr137.py +0 -421
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_targeted_auto_merge.py +0 -229
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_failover.py +0 -488
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_telemetry.py +0 -73
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_validator.py +0 -419
- package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/test_diff_detector.py +0 -111
- package/tools/vds-scripts/audit_orchestrator/tests/test_infra_persistence.py +0 -291
- package/tools/vds-scripts/audit_orchestrator/tests/test_integration/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_integration/test_phase3_integration.py +0 -516
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cache.py +0 -670
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_model_builder.py +0 -281
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_oauth.py +0 -330
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_streaming.py +0 -433
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cost_tracker.py +0 -27
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_engine.py +0 -876
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_evaluator.py +0 -212
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_instruction_templates.py +0 -639
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompt_metadata.py +0 -97
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompts.py +0 -660
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider.py +0 -330
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider_contract_sync.py +0 -18
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_reasoning_effort_validation.py +0 -565
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_schemas.py +0 -827
- package/tools/vds-scripts/audit_orchestrator/tests/test_logging_config.py +0 -297
- package/tools/vds-scripts/audit_orchestrator/tests/test_models/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_enums.py +0 -185
- package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_findings.py +0 -1159
- package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_project_profile.py +0 -307
- package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_registry.py +0 -532
- package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_template.py +0 -708
- package/tools/vds-scripts/audit_orchestrator/tests/test_observability/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_observability/test_metrics.py +0 -60
- package/tools/vds-scripts/audit_orchestrator/tests/test_paths_config_phase2.py +0 -21
- package/tools/vds-scripts/audit_orchestrator/tests/test_performance/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_performance/test_fr79_performance_guardrails.py +0 -199
- package/tools/vds-scripts/audit_orchestrator/tests/test_phase156_hardening.py +0 -498
- package/tools/vds-scripts/audit_orchestrator/tests/test_phase93_regression_guards.py +0 -123
- package/tools/vds-scripts/audit_orchestrator/tests/test_pipeline_integration.py +0 -517
- package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/test_detection.py +0 -146
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_bitbucket_link_resolver.py +0 -55
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer.py +0 -84
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer_projection.py +0 -97
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_macros.py +0 -58
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_publisher.py +0 -2171
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_evidence_links.py +0 -129
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_field_sanitizer.py +0 -108
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_hierarchy_publisher.py +0 -134
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_incremental_plan_parser.py +0 -62
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_live_data_injector.py +0 -48
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_macro_builder.py +0 -22
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_p161_confluence_optimization.py +0 -168
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_priority_renderer.py +0 -96
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_project_aggregate_renderer.py +0 -364
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_storage_validation.py +0 -273
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_summary_refactor.py +0 -118
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_system_doc_hierarchy.py +0 -50
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_table_builder.py +0 -23
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_vietnamese_templates.py +0 -37
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_wiring_integration.py +0 -290
- package/tools/vds-scripts/audit_orchestrator/tests/test_reports/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_aggregation_report.py +0 -181
- package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_checklist_generator.py +0 -258
- package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_gap_report.py +0 -73
- package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_json_generator.py +0 -317
- package/tools/vds-scripts/audit_orchestrator/tests/test_result_merger_p149.py +0 -347
- package/tools/vds-scripts/audit_orchestrator/tests/test_route_mode_p149.py +0 -178
- package/tools/vds-scripts/audit_orchestrator/tests/test_rubric_parser.py +0 -179
- package/tools/vds-scripts/audit_orchestrator/tests/test_scorer.py +0 -110
- package/tools/vds-scripts/audit_orchestrator/tests/test_state/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_state/test_sparse_coverage.py +0 -117
- package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_langgraph_workflow.py +0 -2072
- package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_p161_runtime_hardening.py +0 -341
- package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p149.py +0 -112
- package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p172.py +0 -126
- package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_guidance_p150.py +0 -95
- package/tools/vds-scripts/audit_orchestrator/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_agentic_investigator_phase115.py +0 -42
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_requirement_analysis_agent.py +0 -412
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_agent_updates.py +0 -131
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_scanner.py +0 -397
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_executor.py +0 -316
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_fallback.py +0 -299
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_policy.py +0 -520
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_telemetry.py +0 -306
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_synthesis_fixes.py +0 -761
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_argument_robustness.py +0 -272
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry.py +0 -2548
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_ast_grep.py +0 -87
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase123_scoping.py +0 -353
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase94_ff.py +0 -445
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_vector_search_phase115.py +0 -35
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_utils.py +0 -1007
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_vector_evidence_toolset.py +0 -622
- package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/test_workflow_cli.py +0 -123
- package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_cache_guard.py +0 -479
- package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_checklist_parser_phase120.py +0 -55
- package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_diagram_extractor.py +0 -467
- package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_enrichment_extractor.py +0 -59
- package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_graphify_collector.py +0 -158
- package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_completeness.py +0 -563
- package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_freshness_evaluator.py +0 -493
- package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_cache_metrics.py +0 -365
- package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_completeness_service.py +0 -2736
- package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_discovery.py +0 -47
- package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_redaction.py +0 -15
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_ad_hoc_analyzer.py +0 -576
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_agent_loop.py +0 -1896
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_anchor_filter_cl003.py +0 -181
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_evidence_cache.py +0 -155
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_processor.py +0 -3608
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_contract.py +0 -55
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_scoping.py +0 -371
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_companion_phase123.py +0 -142
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_evidence_phase123.py +0 -249
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_confluence_checklist_contract_export_parity.py +0 -813
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_cross_repo_config_phase122.py +0 -613
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_dspy_requirement_classifier.py +0 -517
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_diversity.py +0 -144
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_truncation.py +0 -108
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_grounding_validator.py +0 -127
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_guidance_injection_phase120.py +0 -105
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_analysis_phase122.py +0 -761
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_pre_filter_phase167.py +0 -334
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_llm_row_evaluator_retries.py +0 -3684
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_loader_phase123.py +0 -345
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_manual_check_gating_phase122.py +0 -474
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_parallel_eval.py +0 -263
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase122_verifier_phase122.py +0 -169
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase166_route_failover.py +0 -437
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_post_eval_cl003_shared_lib.py +0 -267
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_postproc_streaming.py +0 -194
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_pre_eval_gating_phase122.py +0 -362
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_prepare_topology_coverage.py +0 -247
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_private_dns_sanitization_phase104.py +0 -397
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_evidence_context.py +0 -450
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_knowledge_store.py +0 -487
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_topology.py +0 -1142
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_provider_failure_classifier.py +0 -195
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_extractor.py +0 -496
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_synthesizer.py +0 -653
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_repo_type_classifier.py +0 -303
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis.py +0 -508
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_execution_scope.py +0 -239
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase114.py +0 -919
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase115.py +0 -97
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_shared_lib.py +0 -340
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_drift.py +0 -729
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_nlp.py +0 -670
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_scope_phase122.py +0 -615
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_matrix.py +0 -258
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_override.py +0 -141
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_routing_precision.py +0 -650
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_dual_evidence.py +0 -2987
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_instruction_runtime_phase122.py +0 -365
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_runtime.py +0 -830
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_runtime_hardening_phase122.py +0 -225
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoped_na_skip.py +0 -107
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoring_enhancements.py +0 -404
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_retrieval_phase123.py +0 -441
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_routing_phase123.py +0 -279
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_resource_indexing_phase122.py +0 -188
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_recommendation.py +0 -225
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_routing_cl003_shared_lib.py +0 -338
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skills_toolset.py +0 -319
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_stability_metric.py +0 -60
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_target_selector.py +0 -958
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_tracker.py +0 -121
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_wiring.py +0 -119
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_tool_first_planner.py +0 -7103
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_knowledge_persistence.py +0 -332
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_query_service.py +0 -55
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_unverified_ref_retry.py +0 -909
- package/tools/vds-scripts/audit_orchestrator/tests/unit/models/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_evidence.py +0 -515
- package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_gaps.py +0 -422
- package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_readiness.py +0 -428
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_confluence_hierarchy.py +0 -227
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_project_title_generation.py +0 -335
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_helpers.py +0 -290
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_integration.py +0 -557
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_readiness_renderer.py +0 -381
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_repo_title_consistency.py +0 -266
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_upload_hierarchy_integration.py +0 -470
- package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_dspy.py +0 -177
- package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_nlp_accuracy.py +0 -72
- package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_retrieval_modes.py +0 -123
- package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_verify_phase111_requirement_analysis.py +0 -409
- package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_chain_cli.py +0 -277
- package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_loader.py +0 -502
- package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/test_skill_routing.py +0 -209
- package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_bitbucket_source.py +0 -66
- package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_non_retryable_markers.py +0 -88
- package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_repo_info.py +0 -212
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_completeness.py +0 -598
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_events_contract_phase169.py +0 -100
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_hardening_phase158.py +0 -392
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_persistence_phase157.py +0 -914
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_embedding_client.py +0 -64
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_get_latest_completed_run.py +0 -313
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_heartbeat_phase169.py +0 -109
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_hybrid_search.py +0 -398
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_normalize_url.py +0 -262
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase152_query_surface.py +0 -59
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase98_confluence_document_model.py +0 -202
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_published_pages.py +0 -754
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_readiness_helpers.py +0 -193
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_ledger.py +0 -522
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_management.py +0 -378
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_schema_contract_phase170.py +0 -755
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_cmds.py +0 -231
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_loaders.py +0 -2151
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_run_api.py +0 -2226
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store.py +0 -1435
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch.py +0 -646
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch_status_view.py +0 -181
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_scope.py +0 -213
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_utilization_persist_phase169.py +0 -77
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vds_search.py +0 -263
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_api.py +0 -319
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_runtime.py +0 -175
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_store.py +0 -1756
- package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/test_repo_sync.py +0 -257
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_artifact_exclusion.py +0 -119
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_auto_promote_phase158.py +0 -337
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_carry_forward_artifact_filtering.py +0 -317
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_checklist_precache_p160a.py +0 -416
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_cli_decomposition_fr219.py +0 -269
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_code_chunk_carry_forward.py +0 -203
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_coherence.py +0 -180
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_secret_policy.py +0 -522
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_project_id_migration.py +0 -318
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_status_diagnostics.py +0 -239
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_department_priority_ordering.py +0 -131
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_coordinator_phase158.py +0 -402
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_job_identity_p167a.py +0 -238
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_ramp_up_phase171.py +0 -434
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatcher.py +0 -911
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_doc_type_en_inference.py +0 -246
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_early_exit_unchunked_repos.py +0 -111
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors.py +0 -237
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors_taxonomy.py +0 -83
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_chunking_config_phase98.py +0 -73
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_cmds_state_helpers.py +0 -33
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_docs_code_chunking.py +0 -260
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_finalize_dispatch_run_phase168.py +0 -341
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_identity.py +0 -221
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_infrastructure_detection.py +0 -441
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_junction_table_phase95.py +0 -259
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_late_binding_assignment_p167c.py +0 -286
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_misc_cmds_fr224_225_hardening.py +0 -194
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_p172_integration.py +0 -306
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_parent_provider_preflight.py +0 -118
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase92.py +0 -141
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase93.py +0 -50
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase115_search_strategy.py +0 -106
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase154_title_consistency.py +0 -117
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase155_param_forwarding.py +0 -304
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase158_concurrency_defaults.py +0 -207
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_doctor_schema.py +0 -319
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_regression.py +0 -334
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase94_corpus_lifecycle.py +0 -307
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase96_repo_key_migration.py +0 -305
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_pipelined_scheduling.py +0 -130
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_availability_probe.py +0 -616
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_aware_row_timeout.py +0 -102
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_timeout_stagger_p160cd.py +0 -205
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_progress_summary_phase169.py +0 -96
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_registry_checklist_diagnostics.py +0 -124
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_resume_manifest_p167b.py +0 -268
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_risk_mitigations_p160e1.py +0 -348
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_single_row_shards_p160b.py +0 -357
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_state_repo_discovery.py +0 -504
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_sync_metadata_entries.py +0 -57
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_task_models.py +0 -1796
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_utilization_telemetry_p167e.py +0 -259
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_vietnamese_fts_hardening.py +0 -160
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_phase98_enrichment.py +0 -92
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_project_merge_materialization.py +0 -322
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_row_key_migration_guard.py +0 -88
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_short_circuit_phase121.py +0 -564
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_single_target_row_context.py +0 -49
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_zero_result_messaging.py +0 -76
- package/tools/vds-scripts/bandit-report.json +0 -2974
- package/tools/vds-scripts/brd_orchestrator/README.md +0 -29
- package/tools/vds-scripts/brd_orchestrator/pyproject.toml +0 -63
- package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/__init__.py +0 -17
- package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/cli.py +0 -187
- package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/validator.py +0 -121
- package/tools/vds-scripts/brd_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/brd_orchestrator/tests/test_cli.py +0 -62
- package/tools/vds-scripts/brd_orchestrator/tests/test_validator.py +0 -33
- package/tools/vds-scripts/circular_dependency_orchestrator/README.md +0 -30
- package/tools/vds-scripts/circular_dependency_orchestrator/pyproject.toml +0 -43
- package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/__init__.py +0 -16
- package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/cli.py +0 -904
- package/tools/vds-scripts/circular_dependency_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/test_cli.py +0 -354
- package/tools/vds-scripts/coverage.json +0 -1
- package/tools/vds-scripts/create_pr.py +0 -57
- package/tools/vds-scripts/diagram_generator/README.md +0 -663
- package/tools/vds-scripts/diagram_generator/ci_validate.sh +0 -16
- package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.png +0 -0
- package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.puml +0 -23
- package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.png +0 -0
- package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.puml +0 -21
- package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.png +0 -0
- package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.puml +0 -14
- package/tools/vds-scripts/diagram_generator/examples/github-actions-validate.yml +0 -39
- package/tools/vds-scripts/diagram_generator/generate_all_diagrams.py +0 -827
- package/tools/vds-scripts/diagram_generator/generate_insurance_c4_diagrams.py +0 -261
- package/tools/vds-scripts/diagram_generator/generate_insurance_c4_quick.py +0 -486
- package/tools/vds-scripts/diagram_generator/pyproject.toml +0 -28
- package/tools/vds-scripts/diagram_generator/render_png.py +0 -59
- package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/__init__.py +0 -3
- package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/cli.py +0 -50
- package/tools/vds-scripts/diagram_generator/test_c4_hierarchical.py +0 -142
- package/tools/vds-scripts/diagram_generator/test_c4_quick.py +0 -131
- package/tools/vds-scripts/diagram_generator/tests/__init__.py +0 -0
- package/tools/vds-scripts/diagram_generator/tests/test_analyzer_completeness.py +0 -260
- package/tools/vds-scripts/diagram_generator/tests/test_c4_syntax_correctness.py +0 -138
- package/tools/vds-scripts/diagram_generator/tests/test_component_coverage.py +0 -182
- package/tools/vds-scripts/diagram_generator/tests/test_mermaid_output.py +0 -80
- package/tools/vds-scripts/diagram_generator/tests/test_png_generation.py +0 -112
- package/tools/vds-scripts/diagram_generator/tests/test_scenario_templates.py +0 -15
- package/tools/vds-scripts/diagram_generator/tests/test_sequence_accuracy.py +0 -93
- package/tools/vds-scripts/diagram_generator/tests/test_structurizr_export.py +0 -177
- package/tools/vds-scripts/diagram_generator/tests/test_style_consistency.py +0 -174
- package/tools/vds-scripts/diagram_generator/tests/test_usecase_generator.py +0 -201
- package/tools/vds-scripts/diagram_generator/tests/test_usecase_integration.py +0 -124
- package/tools/vds-scripts/docker/compose.phase2-verification.yml +0 -31
- package/tools/vds-scripts/docker-compose.openapi-validator.yml +0 -14
- package/tools/vds-scripts/excel_orchestrator/README.md +0 -288
- package/tools/vds-scripts/excel_orchestrator/RESEARCH_BASED_UPDATES_REPORT.md +0 -261
- package/tools/vds-scripts/excel_orchestrator/add_essential_missing_effort.py +0 -255
- package/tools/vds-scripts/excel_orchestrator/adjust_effort_complexity.py +0 -184
- package/tools/vds-scripts/excel_orchestrator/brd_analysis_and_task_breakdown.py +0 -632
- package/tools/vds-scripts/excel_orchestrator/brd_analysis_comprehensive.py +0 -1029
- package/tools/vds-scripts/excel_orchestrator/check_overlaps_and_brd_coverage.py +0 -570
- package/tools/vds-scripts/excel_orchestrator/clean_remarks_column.py +0 -127
- package/tools/vds-scripts/excel_orchestrator/comprehensive_brd_check.py +0 -322
- package/tools/vds-scripts/excel_orchestrator/create_buffered_summary.py +0 -119
- package/tools/vds-scripts/excel_orchestrator/create_service_totals_sheet.py +0 -118
- package/tools/vds-scripts/excel_orchestrator/examples/basic_operations.py +0 -85
- package/tools/vds-scripts/excel_orchestrator/expand_all_tasks.py +0 -341
- package/tools/vds-scripts/excel_orchestrator/expand_tasks.py +0 -304
- package/tools/vds-scripts/excel_orchestrator/fill_brd_references.py +0 -347
- package/tools/vds-scripts/excel_orchestrator/fill_remarks_and_colors.py +0 -132
- package/tools/vds-scripts/excel_orchestrator/finalize_brd_and_cleanup.py +0 -295
- package/tools/vds-scripts/excel_orchestrator/finalize_brd_coverage.py +0 -327
- package/tools/vds-scripts/excel_orchestrator/fix_all_formulas.py +0 -99
- package/tools/vds-scripts/excel_orchestrator/fix_detail_presentation.py +0 -113
- package/tools/vds-scripts/excel_orchestrator/fix_presentation_and_effort.py +0 -116
- package/tools/vds-scripts/excel_orchestrator/fix_presentation_consistency.py +0 -231
- package/tools/vds-scripts/excel_orchestrator/fix_remarks_matching.py +0 -179
- package/tools/vds-scripts/excel_orchestrator/group_tasks_by_service_id.py +0 -210
- package/tools/vds-scripts/excel_orchestrator/increase_brd_coverage.py +0 -497
- package/tools/vds-scripts/excel_orchestrator/increase_effort_complexity.py +0 -155
- package/tools/vds-scripts/excel_orchestrator/organize_and_deduplicate.py +0 -273
- package/tools/vds-scripts/excel_orchestrator/pyproject.toml +0 -64
- package/tools/vds-scripts/excel_orchestrator/rebuild_all_formulas.py +0 -146
- package/tools/vds-scripts/excel_orchestrator/remove_base_multiplier_and_check_duplicates.py +0 -310
- package/tools/vds-scripts/excel_orchestrator/remove_duplicate_brd_tasks.py +0 -137
- package/tools/vds-scripts/excel_orchestrator/research_based_updates.py +0 -457
- package/tools/vds-scripts/excel_orchestrator/restore_e_values.py +0 -172
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/__init__.py +0 -5
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/cli.py +0 -746
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/config.py +0 -74
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/converters.py +0 -226
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/errors.py +0 -88
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/excel_client.py +0 -443
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/formatters.py +0 -211
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/logging.py +0 -57
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/source_contract.py +0 -29
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/target_state_status.py +0 -837
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/ulnc_alignment.py +0 -1291
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/validators.py +0 -164
- package/tools/vds-scripts/excel_orchestrator/sync_detail_and_total_sheets.py +0 -211
- package/tools/vds-scripts/excel_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/excel_orchestrator/tests/conftest.py +0 -36
- package/tools/vds-scripts/excel_orchestrator/tests/test_cli.py +0 -383
- package/tools/vds-scripts/excel_orchestrator/tests/test_excel_client.py +0 -129
- package/tools/vds-scripts/excel_orchestrator/tests/test_ulnc_alignment.py +0 -373
- package/tools/vds-scripts/excel_orchestrator/tests/test_validators.py +0 -64
- package/tools/vds-scripts/excel_orchestrator/update_api_database_effort.py +0 -261
- package/tools/vds-scripts/excel_orchestrator/update_buffers_inline.py +0 -115
- package/tools/vds-scripts/excel_orchestrator/update_complex_services_and_add_new.py +0 -336
- package/tools/vds-scripts/excel_orchestrator/update_responsibility_and_fix_rows.py +0 -208
- package/tools/vds-scripts/excel_orchestrator/update_task_breakdown_vietnamese.py +0 -309
- package/tools/vds-scripts/excel_orchestrator/update_vietnamese_and_responsibility.py +0 -415
- package/tools/vds-scripts/excel_orchestrator/verify_brd_coverage_comprehensive.py +0 -401
- package/tools/vds-scripts/hexagonal_orchestrator/README.md +0 -530
- package/tools/vds-scripts/hexagonal_orchestrator/pyproject.toml +0 -48
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/__init__.py +0 -39
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/__init__.py +0 -19
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/base.py +0 -95
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/fallback.py +0 -614
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/java.py +0 -372
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/python.py +0 -437
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cache.py +0 -331
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/classifier.py +0 -263
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cli.py +0 -554
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/config.py +0 -577
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/models.py +0 -159
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/profiler.py +0 -451
- package/tools/vds-scripts/hexagonal_orchestrator/test-config.yaml +0 -38
- package/tools/vds-scripts/hexagonal_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driven/persistence/InMemoryUserRepository.java +0 -62
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driving/api/UserController.java +0 -101
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/EmailService.java +0 -33
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/UserRepository.java +0 -45
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/usecase/CreateUser.java +0 -58
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/Email.java +0 -80
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/User.java +0 -98
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-noncompliant/domain/User.java +0 -64
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Menu.java +0 -13
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Product.java +0 -16
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/email_service.py +0 -60
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/user_repository.py +0 -78
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/user.py +0 -56
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/email.py +0 -63
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/application/user_service.py +0 -1837
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/domain/user.py +0 -43
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cache.py +0 -458
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_integration.py +0 -942
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_unit.py +0 -557
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cross_repo_pollution.py +0 -275
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_foundation.py +0 -129
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_integration.py +0 -1524
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_java_analyzer.py +0 -642
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_timing_unit.py +0 -60
- package/tools/vds-scripts/intellij_orchestrator/README.md +0 -55
- package/tools/vds-scripts/intellij_orchestrator/pyproject.toml +0 -64
- package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/__init__.py +0 -17
- package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/cli.py +0 -210
- package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/core.py +0 -260
- package/tools/vds-scripts/intellij_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/intellij_orchestrator/tests/test_cli.py +0 -112
- package/tools/vds-scripts/intellij_orchestrator/tests/test_core.py +0 -83
- package/tools/vds-scripts/links_orchestrator/README.md +0 -63
- package/tools/vds-scripts/links_orchestrator/pyproject.toml +0 -64
- package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/__init__.py +0 -10
- package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/cli.py +0 -254
- package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/validator.py +0 -244
- package/tools/vds-scripts/links_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/links_orchestrator/tests/test_cli.py +0 -128
- package/tools/vds-scripts/links_orchestrator/tests/test_validator.py +0 -76
- package/tools/vds-scripts/lsp_orchestrator/.dockerignore +0 -69
- package/tools/vds-scripts/lsp_orchestrator/ARCHITECTURE.md +0 -383
- package/tools/vds-scripts/lsp_orchestrator/CODE_QUALITY_IMPROVEMENTS.md +0 -196
- package/tools/vds-scripts/lsp_orchestrator/COMMANDS.md +0 -870
- package/tools/vds-scripts/lsp_orchestrator/Dockerfile +0 -59
- package/tools/vds-scripts/lsp_orchestrator/IMPLEMENTATION_SUMMARY.md +0 -490
- package/tools/vds-scripts/lsp_orchestrator/LSP_ISSUES_AND_FINDINGS.md +0 -380
- package/tools/vds-scripts/lsp_orchestrator/README.md +0 -616
- package/tools/vds-scripts/lsp_orchestrator/SETUP.md +0 -143
- package/tools/vds-scripts/lsp_orchestrator/TEST_COVERAGE_SUMMARY.md +0 -255
- package/tools/vds-scripts/lsp_orchestrator/VERIFICATION_CHECKLIST.md +0 -814
- package/tools/vds-scripts/lsp_orchestrator/docker-compose.yml +0 -102
- package/tools/vds-scripts/lsp_orchestrator/docs/FOR_LLMS.md +0 -401
- package/tools/vds-scripts/lsp_orchestrator/docs/explanation/lsp-response-matching.md +0 -79
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/automate-with-json.md +0 -159
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/docker-mode.md +0 -256
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/navigate-code.md +0 -116
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/parallel-processing.md +0 -179
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/project-tool-detection.md +0 -320
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/type-check-code.md +0 -46
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/use-daemon-mode.md +0 -78
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/wsl2-optimization.md +0 -227
- package/tools/vds-scripts/lsp_orchestrator/docs/index.md +0 -88
- package/tools/vds-scripts/lsp_orchestrator/docs/operator-hover-definition.md +0 -143
- package/tools/vds-scripts/lsp_orchestrator/docs/reference/commands.md +0 -581
- package/tools/vds-scripts/lsp_orchestrator/docs/reference/configuration.md +0 -422
- package/tools/vds-scripts/lsp_orchestrator/docs/tutorials/00-quick-start.md +0 -169
- package/tools/vds-scripts/lsp_orchestrator/pyproject.toml +0 -63
- package/tools/vds-scripts/lsp_orchestrator/src/test_file.py +0 -5
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/__init__.py +0 -3
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/aggregator.py +0 -340
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/basedpyright_runner.py +0 -167
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/cli.py +0 -3370
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/code_actions.py +0 -79
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/core.py +0 -3295
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_client.py +0 -672
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_manager.py +0 -577
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_server.py +0 -1040
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/__init__.py +0 -9
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/project_detector.py +0 -537
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/formatters.py +0 -141
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ipc_protocol.py +0 -225
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_client.py +0 -957
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_router.py +0 -335
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mcp_server.py +0 -181
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/__init__.py +0 -201
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_detector.py +0 -646
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_tools.py +0 -114
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models.py +0 -399
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mypy_runner.py +0 -209
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/protocols.py +0 -52
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_lsp_client.py +0 -109
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_runner.py +0 -44
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/utils.py +0 -959
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/workspace_indexer.py +0 -1037
- package/tools/vds-scripts/lsp_orchestrator/test_workspace_lsp.py +0 -6
- package/tools/vds-scripts/lsp_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/lsp_orchestrator/tests/conftest.py +0 -6
- package/tools/vds-scripts/lsp_orchestrator/tests/test_aggregator.py +0 -59
- package/tools/vds-scripts/lsp_orchestrator/tests/test_cli.py +0 -111
- package/tools/vds-scripts/lsp_orchestrator/tests/test_detect_tools_command.py +0 -186
- package/tools/vds-scripts/lsp_orchestrator/tests/test_formatter_linter_detection.py +0 -519
- package/tools/vds-scripts/lsp_orchestrator/tests/test_integration_phase9_10_11.py +0 -367
- package/tools/vds-scripts/lsp_orchestrator/tests/test_mypy_runner.py +0 -482
- package/tools/vds-scripts/lsp_orchestrator/tests/test_package_manager_detection.py +0 -399
- package/tools/vds-scripts/lsp_orchestrator/tests/test_phase10.py +0 -389
- package/tools/vds-scripts/lsp_orchestrator/tests/test_phase11.py +0 -327
- package/tools/vds-scripts/lsp_orchestrator/tests/test_phase12_integration.py +0 -634
- package/tools/vds-scripts/lsp_orchestrator/tests/test_phase9.py +0 -196
- package/tools/vds-scripts/lsp_orchestrator/tests/test_project_detector.py +0 -377
- package/tools/vds-scripts/lsp_orchestrator/tests/test_test_runner_detection.py +0 -549
- package/tools/vds-scripts/lsp_orchestrator/tests/test_type_checker_routing.py +0 -362
- package/tools/vds-scripts/lsp_orchestrator/tests/test_workspace_indexer.py +0 -144
- package/tools/vds-scripts/markdown_orchestrator/README.md +0 -72
- package/tools/vds-scripts/markdown_orchestrator/pyproject.toml +0 -39
- package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/__init__.py +0 -5
- package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/cli.py +0 -102
- package/tools/vds-scripts/multi_agent_orchestrator/Dockerfile +0 -65
- package/tools/vds-scripts/multi_agent_orchestrator/README.md +0 -306
- package/tools/vds-scripts/multi_agent_orchestrator/postman/README.md +0 -264
- package/tools/vds-scripts/multi_agent_orchestrator/postman/TEST_RESULTS_SUMMARY.md +0 -197
- package/tools/vds-scripts/multi_agent_orchestrator/postman/VDS-Multi-Agent-Orchestrator-API.postman_collection.json +0 -1010
- package/tools/vds-scripts/multi_agent_orchestrator/postman/environments/local-development.postman_environment.json +0 -55
- package/tools/vds-scripts/multi_agent_orchestrator/postman/test-results.json +0 -24146
- package/tools/vds-scripts/multi_agent_orchestrator/pyproject.toml +0 -63
- package/tools/vds-scripts/multi_agent_orchestrator/run_api.py +0 -9
- package/tools/vds-scripts/multi_agent_orchestrator/run_mock_api.py +0 -9
- package/tools/vds-scripts/multi_agent_orchestrator/simple_test.py +0 -53
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/__init__.py +0 -25
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/agent_pool.py +0 -433
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/__init__.py +0 -5
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/main.py +0 -722
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/mock_main.py +0 -812
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/change_log.py +0 -515
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/cli.py +0 -424
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/config.py +0 -220
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/conflict_resolver.py +0 -462
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/coordinator.py +0 -627
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/models.py +0 -389
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/progress_dashboard.py +0 -380
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/redis_client.py +0 -245
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/scheduler_subscriber.py +0 -272
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_manager.py +0 -536
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_tracking.py +0 -550
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/vds_ai_memory_client.py +0 -352
- package/tools/vds-scripts/multi_agent_orchestrator/test_complete_system.py +0 -149
- package/tools/vds-scripts/multi_agent_orchestrator/test_infrastructure_only.py +0 -194
- package/tools/vds-scripts/multi_agent_orchestrator/test_integration.py +0 -108
- package/tools/vds-scripts/multi_agent_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/multi_agent_orchestrator/tests/test_agent_registration_credential_validator.py +0 -223
- package/tools/vds-scripts/multi_agent_orchestrator/tests/test_config.py +0 -210
- package/tools/vds-scripts/multi_agent_orchestrator/tests/test_models.py +0 -195
- package/tools/vds-scripts/multi_agent_orchestrator/tests/test_w9_agent_routes.py +0 -321
- package/tools/vds-scripts/openapi_orchestrator/README.md +0 -197
- package/tools/vds-scripts/openapi_orchestrator/pyproject.toml +0 -106
- package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/__init__.py +0 -29
- package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/cli.py +0 -345
- package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/full_validator.py +0 -183
- package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/spec_validator.py +0 -197
- package/tools/vds-scripts/openapi_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/openapi_orchestrator/tests/test_cli.py +0 -234
- package/tools/vds-scripts/openapi_orchestrator/tests/test_full_validator.py +0 -203
- package/tools/vds-scripts/openapi_orchestrator/tests/test_spec_validator.py +0 -295
- package/tools/vds-scripts/pdf_orchestrator/.dockerignore +0 -93
- package/tools/vds-scripts/pdf_orchestrator/.env.example +0 -40
- package/tools/vds-scripts/pdf_orchestrator/.ruff_rules.py +0 -350
- package/tools/vds-scripts/pdf_orchestrator/.yamllint.yml +0 -43
- package/tools/vds-scripts/pdf_orchestrator/DEVELOPMENT_PLAN.md +0 -80
- package/tools/vds-scripts/pdf_orchestrator/Dockerfile +0 -87
- package/tools/vds-scripts/pdf_orchestrator/README.md +0 -608
- package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.md +0 -6
- package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.pdf +0 -0
- package/tools/vds-scripts/pdf_orchestrator/config/alertmanager.yml +0 -83
- package/tools/vds-scripts/pdf_orchestrator/config/prometheus.prod.yml +0 -98
- package/tools/vds-scripts/pdf_orchestrator/config/prometheus.yml +0 -40
- package/tools/vds-scripts/pdf_orchestrator/config/redis.conf +0 -78
- package/tools/vds-scripts/pdf_orchestrator/docs/COMPETITIVE_ANALYSIS_REPORT.md +0 -309
- package/tools/vds-scripts/pdf_orchestrator/docs/FEATURES_GUIDE.md +0 -518
- package/tools/vds-scripts/pdf_orchestrator/docs/MULTI_USER_DEPLOYMENT_GUIDE.md +0 -615
- package/tools/vds-scripts/pdf_orchestrator/docs/USER_GUIDE.md +0 -829
- package/tools/vds-scripts/pdf_orchestrator/pyproject.toml +0 -87
- package/tools/vds-scripts/pdf_orchestrator/pytest.ini +0 -71
- package/tools/vds-scripts/pdf_orchestrator/ruff.toml +0 -6
- package/tools/vds-scripts/pdf_orchestrator/scripts/debug_security_report.py +0 -59
- package/tools/vds-scripts/pdf_orchestrator/scripts/demo_library_selector.py +0 -109
- package/tools/vds-scripts/pdf_orchestrator/scripts/generate_project_stats.py +0 -52
- package/tools/vds-scripts/pdf_orchestrator/scripts/generate_styled_pdf.py +0 -95
- package/tools/vds-scripts/pdf_orchestrator/scripts/migrate_render_pdfs.py +0 -285
- package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.bat +0 -283
- package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.sh +0 -324
- package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/__init__.py +0 -5
- package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/cli.py +0 -542
- package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/config.py +0 -33
- package/tools/vds-scripts/pdf_orchestrator/tests/README.md +0 -650
- package/tools/vds-scripts/pdf_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/pdf_orchestrator/tests/conftest.py +0 -520
- package/tools/vds-scripts/pdf_orchestrator/tests/requirements.txt +0 -51
- package/tools/vds-scripts/pdf_orchestrator/tests/run_tests.py +0 -659
- package/tools/vds-scripts/pdf_orchestrator/tests/test_config.py +0 -36
- package/tools/vds-scripts/progress_report_orchestrator/Dockerfile +0 -77
- package/tools/vds-scripts/progress_report_orchestrator/README.md +0 -39
- package/tools/vds-scripts/progress_report_orchestrator/alembic/env.py +0 -42
- package/tools/vds-scripts/progress_report_orchestrator/alembic/script.py.mako +0 -28
- package/tools/vds-scripts/progress_report_orchestrator/alembic/versions/0001_initial_progress_schema.py +0 -180
- package/tools/vds-scripts/progress_report_orchestrator/alembic.ini +0 -67
- package/tools/vds-scripts/progress_report_orchestrator/pyproject.toml +0 -67
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/__init__.py +0 -3
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/__init__.py +0 -1
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/endpoint_scanner.py +0 -238
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/git_activity.py +0 -159
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/hexagonal.py +0 -100
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/test_scanner.py +0 -136
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/cli.py +0 -743
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/config.py +0 -50
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/__init__.py +0 -12
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/alembic_filters.py +0 -64
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/memory.py +0 -82
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/__init__.py +0 -1
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/analysis.py +0 -84
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/report.py +0 -117
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/topology.py +0 -101
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/__init__.py +0 -1
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/kg_parser.py +0 -252
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/uc_reader.py +0 -159
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/__init__.py +0 -1
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/concurrency.py +0 -39
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/llm_eval.py +0 -570
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/report.py +0 -1256
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/structural.py +0 -384
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/sync.py +0 -143
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/__init__.py +0 -5
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/engine.py +0 -105
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/templates.py +0 -236
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/scheduler_subscriber.py +0 -238
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/README.md +0 -56
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/__init__.py +0 -1
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-architecture-reviewer/SKILL.md +0 -67
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-endpoint-matcher/SKILL.md +0 -67
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/__init__.py +0 -1
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/schema.py +0 -625
- package/tools/vds-scripts/progress_report_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/__init__.py +0 -0
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/.gitkeep +0 -0
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/__init__.py +0 -0
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/doc-dependencies.yaml +0 -79
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-docs.yaml +0 -478
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-services.yaml +0 -18
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/registry.yaml +0 -346
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/phase3_baseline_standard.md +0 -564
- package/tools/vds-scripts/progress_report_orchestrator/tests/integration/__init__.py +0 -0
- package/tools/vds-scripts/progress_report_orchestrator/tests/integration/test_checkpoint.py +0 -276
- package/tools/vds-scripts/progress_report_orchestrator/tests/test_alembic_migrations.py +0 -265
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_analyzers.py +0 -267
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_bounded_gather.py +0 -176
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_cli_phase_report.py +0 -119
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_delta.py +0 -169
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_error_handling.py +0 -150
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_gate_exit_codes.py +0 -230
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_git_activity.py +0 -215
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_kg_parser.py +0 -267
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_autodetect.py +0 -183
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_eval.py +0 -529
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_memory_integration.py +0 -151
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_migration_contract.py +0 -254
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_mode_rendering.py +0 -576
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_models.py +0 -251
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_progress_llm_config.py +0 -67
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_recommendations.py +0 -480
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_report_enhancements.py +0 -415
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_resume_reload.py +0 -343
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_trend_regression.py +0 -294
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_uc_reader.py +0 -169
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_valence_gap.py +0 -293
- package/tools/vds-scripts/project-cycle-report.json +0 -14
- package/tools/vds-scripts/project-dependency-graph.json +0 -11361
- package/tools/vds-scripts/project-topology.json +0 -99
- package/tools/vds-scripts/public_interface_boundary_orchestrator/pyproject.toml +0 -18
- package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/__init__.py +0 -0
- package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/cli.py +0 -232
- package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/test_cli.py +0 -108
- package/tools/vds-scripts/research_orchestrator/README.md +0 -68
- package/tools/vds-scripts/research_orchestrator/py.typed +0 -0
- package/tools/vds-scripts/research_orchestrator/pyproject.toml +0 -95
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/__init__.py +0 -3
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/_env.py +0 -11
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/cli.py +0 -335
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/config.py +0 -43
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/__init__.py +0 -0
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/models.py +0 -89
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/scoring.py +0 -102
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/exceptions.py +0 -78
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/http_client.py +0 -160
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/logging.py +0 -49
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/__init__.py +0 -0
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/formatters.py +0 -93
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/py.typed +0 -1
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/__init__.py +0 -0
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/build.py +0 -156
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/format.py +0 -147
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/__init__.py +0 -0
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health.py +0 -66
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health_graph.py +0 -52
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/registry.py +0 -127
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/search.py +0 -230
- package/tools/vds-scripts/research_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/research_orchestrator/tests/conftest.py +0 -53
- package/tools/vds-scripts/research_orchestrator/tests/test_cli.py +0 -222
- package/tools/vds-scripts/research_orchestrator/tests/test_config.py +0 -23
- package/tools/vds-scripts/research_orchestrator/tests/test_exceptions.py +0 -62
- package/tools/vds-scripts/research_orchestrator/tests/test_formatters.py +0 -89
- package/tools/vds-scripts/research_orchestrator/tests/test_graph_integration.py +0 -149
- package/tools/vds-scripts/research_orchestrator/tests/test_http_client.py +0 -134
- package/tools/vds-scripts/research_orchestrator/tests/test_report_build.py +0 -128
- package/tools/vds-scripts/research_orchestrator/tests/test_report_format.py +0 -91
- package/tools/vds-scripts/research_orchestrator/tests/test_scoring.py +0 -95
- package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/__init__.py +0 -1
- package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_health.py +0 -139
- package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_registry.py +0 -135
- package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_search.py +0 -238
- package/tools/vds-scripts/run-history.json +0 -26
- package/tools/vds-scripts/schema_converter/README.md +0 -109
- package/tools/vds-scripts/schema_converter/pyproject.toml +0 -37
- package/tools/vds-scripts/schema_converter/src/vds_schema_converter/__init__.py +0 -3
- package/tools/vds-scripts/schema_converter/src/vds_schema_converter/cli.py +0 -50
- package/tools/vds-scripts/schema_converter/tests/__init__.py +0 -0
- package/tools/vds-scripts/schema_converter/tests/test_json_schema_generator.py +0 -115
- package/tools/vds-scripts/schema_converter/tests/test_mermaid_generator.py +0 -112
- package/tools/vds-scripts/schema_converter/tests/test_parser.py +0 -111
- package/tools/vds-scripts/schema_converter/tests/test_plantuml_generator.py +0 -112
- package/tools/vds-scripts/schema_converter/tests/test_plantuml_validator.py +0 -69
- package/tools/vds-scripts/schema_converter/tests/test_prisma_generator.py +0 -113
- package/tools/vds-scripts/schema_converter/tests/test_sql_generator.py +0 -138
- package/tools/vds-scripts/schema_converter/tests/test_typeorm_generator.py +0 -110
- package/tools/vds-scripts/schema_converter/tests/test_validators.py +0 -96
- package/tools/vds-scripts/spec_orchestrator/README.md +0 -13
- package/tools/vds-scripts/spec_orchestrator/pyproject.toml +0 -40
- package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/__init__.py +0 -5
- package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/cli.py +0 -162
- package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/core.py +0 -575
- package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/sync.py +0 -306
- package/tools/vds-scripts/spec_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/spec_orchestrator/tests/test_frontmatter_drift.py +0 -243
- package/tools/vds-scripts/spec_orchestrator/tests/test_sync.py +0 -342
- package/tools/vds-scripts/structure_orchestrator/README.md +0 -60
- package/tools/vds-scripts/structure_orchestrator/pyproject.toml +0 -103
- package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/__init__.py +0 -13
- package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/cli.py +0 -308
- package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/validator.py +0 -257
- package/tools/vds-scripts/structure_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/structure_orchestrator/tests/test_cli.py +0 -161
- package/tools/vds-scripts/structure_orchestrator/tests/test_helpers.py +0 -115
- package/tools/vds-scripts/structure_orchestrator/tests/test_validator.py +0 -104
- package/tools/vds-scripts/task_orchestrator/README.md +0 -50
- package/tools/vds-scripts/task_orchestrator/__init__.py +0 -18
- package/tools/vds-scripts/task_orchestrator/pyproject.toml +0 -43
- package/tools/vds-scripts/task_orchestrator/scripts/run_excel_sync.py +0 -36
- package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/__init__.py +0 -13
- package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/audit.py +0 -134
- package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/cli.py +0 -127
- package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/debug.py +0 -133
- package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/normalize.py +0 -113
- package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/refine.py +0 -201
- package/tools/vds-scripts/task_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/task_orchestrator/tests/test_task_orchestrator.py +0 -84
- package/tools/vds-scripts/temp_query_projects.py +0 -2
- package/tools/vds-scripts/test_small.md +0 -1
- package/tools/vds-scripts/text_utils_orchestrator/pyproject.toml +0 -20
- package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/__init__.py +0 -7
- package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/i18n.py +0 -143
- package/tools/vds-scripts/text_utils_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/text_utils_orchestrator/tests/test_i18n.py +0 -53
- package/tools/vds-scripts/upgrade_major.py +0 -61
- package/tools/vds-scripts/upgrade_major_v2.py +0 -64
- package/tools/vds-scripts/verify_violations.py +0 -57
- package/tools/vds-scripts/workflow-summary.json +0 -325
- package/tools/vds-scripts/workflow-summary.md +0 -8
|
@@ -1,1247 +0,0 @@
|
|
|
1
|
-
"""Sync commands for vds-audit CLI (Phase 91 decomposition)."""
|
|
2
|
-
|
|
3
|
-
# pyright: reportUnusedVariable=false
|
|
4
|
-
|
|
5
|
-
from __future__ import annotations
|
|
6
|
-
|
|
7
|
-
import asyncio
|
|
8
|
-
import re
|
|
9
|
-
from dataclasses import replace
|
|
10
|
-
from pathlib import Path
|
|
11
|
-
from typing import Any
|
|
12
|
-
from urllib.parse import urlparse
|
|
13
|
-
|
|
14
|
-
import click
|
|
15
|
-
import structlog
|
|
16
|
-
import typer
|
|
17
|
-
from click.core import ParameterSource
|
|
18
|
-
from github import Github
|
|
19
|
-
from rich.progress import Progress, SpinnerColumn, TextColumn
|
|
20
|
-
from vds_git_orchestrator.orchestrator import GitOperation
|
|
21
|
-
|
|
22
|
-
from vds_audit_orchestrator.cli_common import _STATE_DSN_ENV_VAR, _get_cli_ctx, console, sync_app
|
|
23
|
-
from vds_audit_orchestrator.cli_impl import (
|
|
24
|
-
_DEFAULT_SYNC_WORKSPACE,
|
|
25
|
-
_build_repo_project_key_indexes,
|
|
26
|
-
_DebugArtifactsCollector,
|
|
27
|
-
_emit_json,
|
|
28
|
-
_emit_sync_decision,
|
|
29
|
-
_filter_auxiliary_repositories,
|
|
30
|
-
_load_manifest_payload_from_state,
|
|
31
|
-
_normalize_storage_key,
|
|
32
|
-
_normalize_sync_result,
|
|
33
|
-
_parse_auxiliary_project_selector,
|
|
34
|
-
_record_state_artifacts,
|
|
35
|
-
_require_producer_state_dsn,
|
|
36
|
-
_resolve_repo_sync_local_code_path,
|
|
37
|
-
_resolve_repo_sync_project_storage_key,
|
|
38
|
-
_sync_decision_from_status,
|
|
39
|
-
_validate_required_credentials,
|
|
40
|
-
)
|
|
41
|
-
from vds_audit_orchestrator.clients.bitbucket_cli_client import BitbucketCliClient
|
|
42
|
-
from vds_audit_orchestrator.errors import DataSourceError
|
|
43
|
-
from vds_audit_orchestrator.sources.base import ManifestFilters, RepoInfo, RepoSource
|
|
44
|
-
from vds_audit_orchestrator.sources.bitbucket import BitbucketProjectSource
|
|
45
|
-
from vds_audit_orchestrator.sources.git_url import GitUrlSource
|
|
46
|
-
from vds_audit_orchestrator.sources.github import GitHubOrgSource
|
|
47
|
-
from vds_audit_orchestrator.sources.local import LocalRepoSource
|
|
48
|
-
from vds_audit_orchestrator.state.store import PostgresStateStore
|
|
49
|
-
from vds_audit_orchestrator.sync.repo_sync import RepoSynchronizer
|
|
50
|
-
|
|
51
|
-
logger = structlog.get_logger(__name__)
|
|
52
|
-
_STORAGE_KEY_LIKE_BITBUCKET_PROJECT_RE = re.compile(r"^\d+(?:-\d+)+-[a-z0-9-]+$")
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
def _dt_now_utc_iso() -> str:
|
|
56
|
-
return datetime.now(timezone.utc).isoformat()
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
def _is_storage_key_like_bitbucket_project_key(project_key: str) -> bool:
|
|
60
|
-
return bool(_STORAGE_KEY_LIKE_BITBUCKET_PROJECT_RE.fullmatch(str(project_key or "").strip().lower()))
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
def _is_numeric_page_id(value: str) -> bool:
|
|
64
|
-
return str(value or "").strip().isdigit()
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
def _resolve_project_links_with_legacy_fallback(
|
|
68
|
-
*,
|
|
69
|
-
store: Any,
|
|
70
|
-
bitbucket_key: str,
|
|
71
|
-
) -> list[dict[str, Any]]:
|
|
72
|
-
"""Resolve junction links while remaining compatible with legacy store doubles.
|
|
73
|
-
|
|
74
|
-
Current runtime prefers ``resolve_project_links_from_bitbucket_key()`` so
|
|
75
|
-
repo-filter-aware multi-project junctions can be honored. Older tests and
|
|
76
|
-
lightweight store stubs may still expose only
|
|
77
|
-
``resolve_project_from_bitbucket_key()``. Support both so the junction guard
|
|
78
|
-
logic keeps working during the migration.
|
|
79
|
-
"""
|
|
80
|
-
|
|
81
|
-
normalized_key = _normalize_storage_key(bitbucket_key)
|
|
82
|
-
|
|
83
|
-
resolve_links = getattr(store, "resolve_project_links_from_bitbucket_key", None)
|
|
84
|
-
if callable(resolve_links):
|
|
85
|
-
raw_links = resolve_links(normalized_key)
|
|
86
|
-
if isinstance(raw_links, list):
|
|
87
|
-
links: list[dict[str, Any]] = []
|
|
88
|
-
for raw_link in raw_links:
|
|
89
|
-
if not isinstance(raw_link, dict):
|
|
90
|
-
continue
|
|
91
|
-
project_key = str(raw_link.get("project_key", "") or "").strip()
|
|
92
|
-
if not project_key:
|
|
93
|
-
continue
|
|
94
|
-
links.append(
|
|
95
|
-
{
|
|
96
|
-
"project_key": project_key,
|
|
97
|
-
"repo_filter": raw_link.get("repo_filter"),
|
|
98
|
-
}
|
|
99
|
-
)
|
|
100
|
-
if links:
|
|
101
|
-
return links
|
|
102
|
-
|
|
103
|
-
resolve_single = getattr(store, "resolve_project_from_bitbucket_key", None)
|
|
104
|
-
if callable(resolve_single):
|
|
105
|
-
resolved_project_key = resolve_single(normalized_key)
|
|
106
|
-
project_key = str(resolved_project_key or "").strip()
|
|
107
|
-
if project_key:
|
|
108
|
-
return [{"project_key": project_key, "repo_filter": None}]
|
|
109
|
-
|
|
110
|
-
return []
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
def _parse_ops_repo_url(*, repo_url: str, fallback_project: str) -> tuple[str, str] | None:
|
|
114
|
-
parsed = urlparse(repo_url)
|
|
115
|
-
if parsed.scheme not in {"http", "https", "ssh", "git"}:
|
|
116
|
-
return None
|
|
117
|
-
segments = [segment for segment in parsed.path.split("/") if segment]
|
|
118
|
-
project_key = fallback_project
|
|
119
|
-
repo_name = ""
|
|
120
|
-
if "projects" in segments and "repos" in segments:
|
|
121
|
-
try:
|
|
122
|
-
project_idx = segments.index("projects")
|
|
123
|
-
repo_idx = segments.index("repos")
|
|
124
|
-
if project_idx + 1 < len(segments):
|
|
125
|
-
project_key = segments[project_idx + 1]
|
|
126
|
-
if repo_idx + 1 < len(segments):
|
|
127
|
-
repo_name = segments[repo_idx + 1]
|
|
128
|
-
except ValueError:
|
|
129
|
-
pass
|
|
130
|
-
if not repo_name and segments:
|
|
131
|
-
repo_name = segments[-1]
|
|
132
|
-
repo_name = repo_name.removesuffix(".git")
|
|
133
|
-
normalized_repo_name = _normalize_storage_key(repo_name)
|
|
134
|
-
if not normalized_repo_name:
|
|
135
|
-
return None
|
|
136
|
-
project_key_value = str(project_key or "OPS").strip() or "OPS"
|
|
137
|
-
return project_key_value, normalized_repo_name
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
def _is_branch_option_explicitly_set() -> bool:
|
|
141
|
-
ctx = click.get_current_context(silent=True)
|
|
142
|
-
if ctx is None:
|
|
143
|
-
return False
|
|
144
|
-
return ctx.get_parameter_source("branch") == ParameterSource.COMMANDLINE
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
def _apply_branch_override(*, repos: list[RepoInfo], branch: str, enabled: bool) -> list[RepoInfo]:
|
|
148
|
-
if not enabled:
|
|
149
|
-
return repos
|
|
150
|
-
normalized_branch = str(branch or "").strip()
|
|
151
|
-
if not normalized_branch:
|
|
152
|
-
return repos
|
|
153
|
-
|
|
154
|
-
updated: list[RepoInfo] = []
|
|
155
|
-
for repo in repos:
|
|
156
|
-
if isinstance(repo, RepoInfo):
|
|
157
|
-
updated.append(replace(repo, branch=normalized_branch))
|
|
158
|
-
continue
|
|
159
|
-
try:
|
|
160
|
-
repo.branch = normalized_branch # type: ignore[attr-defined]
|
|
161
|
-
updated.append(repo)
|
|
162
|
-
continue
|
|
163
|
-
except Exception:
|
|
164
|
-
# Fallback for non-standard RepoInfo-like objects in tests or wrappers.
|
|
165
|
-
updated.append(
|
|
166
|
-
RepoInfo(
|
|
167
|
-
name=str(getattr(repo, "name", "") or ""),
|
|
168
|
-
path=Path(getattr(repo, "path", Path.cwd())),
|
|
169
|
-
project=str(getattr(repo, "project", "") or ""),
|
|
170
|
-
branch=normalized_branch,
|
|
171
|
-
url=getattr(repo, "url", None),
|
|
172
|
-
tags=set(getattr(repo, "tags", set()) or set()),
|
|
173
|
-
metadata=dict(getattr(repo, "metadata", {}) or {}),
|
|
174
|
-
)
|
|
175
|
-
)
|
|
176
|
-
return updated
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
@sync_app.command(name="repos")
|
|
180
|
-
def sync_repos(
|
|
181
|
-
repo_path: Path = typer.Option(None, "--local", "-l", help="Path to local repository or local workspace root"),
|
|
182
|
-
bitbucket_project: str = typer.Option(
|
|
183
|
-
None, "--bitbucket-project", "-b", help="Bitbucket project key (e.g., 'VDS')"
|
|
184
|
-
),
|
|
185
|
-
github_org: str = typer.Option(None, "--github-org", "-g", help="GitHub organization name"),
|
|
186
|
-
git_url: str = typer.Option(
|
|
187
|
-
None, "--git-url", help="Direct Git URL to a repository (e.g., https://github.com/org/repo.git)"
|
|
188
|
-
),
|
|
189
|
-
repo_name_match: str = typer.Option(
|
|
190
|
-
"*", "--name-match", "-n", help="Glob pattern to match repository names (e.g., 'insurance-*')"
|
|
191
|
-
),
|
|
192
|
-
branch: str = typer.Option("main", "--branch", "-B", help="Default branch to clone/pull"),
|
|
193
|
-
local_workspace: Path = typer.Option(
|
|
194
|
-
_DEFAULT_SYNC_WORKSPACE,
|
|
195
|
-
"--workspace",
|
|
196
|
-
"-w",
|
|
197
|
-
help=f"Local directory to clone/sync repositories into (default: {_DEFAULT_SYNC_WORKSPACE})",
|
|
198
|
-
),
|
|
199
|
-
operation: GitOperation = typer.Option(
|
|
200
|
-
GitOperation.PULL,
|
|
201
|
-
"--operation",
|
|
202
|
-
"-o",
|
|
203
|
-
help="Git operation to perform (for example: pull, fetch, clone, status).",
|
|
204
|
-
case_sensitive=False,
|
|
205
|
-
),
|
|
206
|
-
concurrency: int = typer.Option(5, "--concurrency", "-c", min=1, help="Number of concurrent git operations"),
|
|
207
|
-
dry_run: bool = typer.Option(False, "--dry-run", help="Simulate operations without making changes"),
|
|
208
|
-
overwrite_local_with_remote: bool = typer.Option(
|
|
209
|
-
False,
|
|
210
|
-
"--overwrite-local/--no-overwrite-local",
|
|
211
|
-
help="When operation is pull, force local branch to match origin/<branch> and discard local divergence.",
|
|
212
|
-
),
|
|
213
|
-
debug_artifacts: bool = typer.Option(
|
|
214
|
-
False,
|
|
215
|
-
"--debug-artifacts/--no-debug-artifacts",
|
|
216
|
-
help="Write optional debug artifacts: cache_trace.jsonl, sync_plan.json, state_diff.json.",
|
|
217
|
-
),
|
|
218
|
-
debug_artifacts_dir: Path | None = typer.Option(
|
|
219
|
-
None,
|
|
220
|
-
"--debug-artifacts-dir",
|
|
221
|
-
help="Directory for debug artifacts (defaults to --workspace).",
|
|
222
|
-
),
|
|
223
|
-
state_dsn: str | None = typer.Option(
|
|
224
|
-
None,
|
|
225
|
-
"--state-dsn",
|
|
226
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
227
|
-
help=f"Persist repository sync state to backend DSN (required; fallback: {_STATE_DSN_ENV_VAR}).",
|
|
228
|
-
),
|
|
229
|
-
target_project_storage_key: str | None = typer.Option(
|
|
230
|
-
None,
|
|
231
|
-
"--project-storage-key",
|
|
232
|
-
help="Explicit canonical Confluence page_id project key for binding synced repos.",
|
|
233
|
-
),
|
|
234
|
-
auxiliary_project: list[str] | None = typer.Option(
|
|
235
|
-
None,
|
|
236
|
-
"--auxiliary-project",
|
|
237
|
-
help="Additional auxiliary Bitbucket selectors (repeatable), format PROJECT[:repo1,repo2]. "
|
|
238
|
-
"Repos from 'DOPS' get role='auxiliary_config'; others get role='auxiliary_lib'.",
|
|
239
|
-
),
|
|
240
|
-
include_ops_repo: list[str] | None = typer.Option(
|
|
241
|
-
None,
|
|
242
|
-
"--include-ops-repo",
|
|
243
|
-
help="Additional ops repo URL (repeatable). Synced with repo_type='ops'.",
|
|
244
|
-
),
|
|
245
|
-
) -> None:
|
|
246
|
-
"""Synchronize repositories from various sources."""
|
|
247
|
-
resolved_state_dsn = _require_producer_state_dsn(state_dsn, command="sync repos")
|
|
248
|
-
|
|
249
|
-
async def _sync_impl():
|
|
250
|
-
ctx = _get_cli_ctx()
|
|
251
|
-
json_only = ctx.json_only
|
|
252
|
-
forced_project_storage_key = ""
|
|
253
|
-
if isinstance(target_project_storage_key, str) and target_project_storage_key.strip():
|
|
254
|
-
forced_project_storage_key = _normalize_storage_key(target_project_storage_key)
|
|
255
|
-
if not _is_numeric_page_id(forced_project_storage_key):
|
|
256
|
-
error_msg = (
|
|
257
|
-
"Invalid --project-storage-key. Expected canonical numeric Confluence page_id "
|
|
258
|
-
f"but got '{target_project_storage_key}'."
|
|
259
|
-
)
|
|
260
|
-
if json_only:
|
|
261
|
-
_emit_json({"error": error_msg})
|
|
262
|
-
else:
|
|
263
|
-
console.print(f"[red]Error:[/red] {error_msg}")
|
|
264
|
-
raise typer.Exit(1)
|
|
265
|
-
|
|
266
|
-
# Phase 95 (DD-150 hard-cut): If no --project-storage-key is provided,
|
|
267
|
-
# resolve from junction table only. No bitbucket-key auto-derive fallback.
|
|
268
|
-
junction_resolved_key = ""
|
|
269
|
-
# When a BB project is linked to multiple audit projects with repo_filter,
|
|
270
|
-
# store the full links list for per-repo resolution in the sync loop.
|
|
271
|
-
_junction_links: list[dict[str, Any]] = []
|
|
272
|
-
_junction_multi_project = False
|
|
273
|
-
# repo_filter for the forced project — used to skip repos that don't belong
|
|
274
|
-
# even when --project-storage-key is explicit (e.g., from prepare).
|
|
275
|
-
_forced_repo_filter: str = ""
|
|
276
|
-
if forced_project_storage_key and bitbucket_project and resolved_state_dsn:
|
|
277
|
-
try:
|
|
278
|
-
_store = PostgresStateStore(resolved_state_dsn)
|
|
279
|
-
try:
|
|
280
|
-
_all_links = _resolve_project_links_with_legacy_fallback(
|
|
281
|
-
store=_store,
|
|
282
|
-
bitbucket_key=bitbucket_project,
|
|
283
|
-
)
|
|
284
|
-
for _link in _all_links:
|
|
285
|
-
if str(_link.get("project_key", "")) == forced_project_storage_key:
|
|
286
|
-
_forced_repo_filter = str(_link.get("repo_filter") or "")
|
|
287
|
-
break
|
|
288
|
-
if _forced_repo_filter:
|
|
289
|
-
logger.info(
|
|
290
|
-
"sync_repos_forced_project_repo_filter_applied",
|
|
291
|
-
project_storage_key=forced_project_storage_key,
|
|
292
|
-
repo_filter=_forced_repo_filter,
|
|
293
|
-
)
|
|
294
|
-
finally:
|
|
295
|
-
_store.close()
|
|
296
|
-
except Exception:
|
|
297
|
-
pass
|
|
298
|
-
if not forced_project_storage_key and bitbucket_project:
|
|
299
|
-
try:
|
|
300
|
-
store = PostgresStateStore(resolved_state_dsn)
|
|
301
|
-
try:
|
|
302
|
-
_junction_links = _resolve_project_links_with_legacy_fallback(
|
|
303
|
-
store=store,
|
|
304
|
-
bitbucket_key=bitbucket_project,
|
|
305
|
-
)
|
|
306
|
-
if len(_junction_links) == 1:
|
|
307
|
-
junction_resolved_key = str(_junction_links[0].get("project_key", ""))
|
|
308
|
-
elif len(_junction_links) > 1:
|
|
309
|
-
# Multiple projects share this BB key — per-repo resolution needed
|
|
310
|
-
_junction_multi_project = True
|
|
311
|
-
# Pick first link as default for project-level logging
|
|
312
|
-
junction_resolved_key = str(_junction_links[0].get("project_key", ""))
|
|
313
|
-
has_filters = any(link.get("repo_filter") for link in _junction_links)
|
|
314
|
-
if not has_filters:
|
|
315
|
-
logger.warning(
|
|
316
|
-
"shared_bitbucket_project_no_repo_filters",
|
|
317
|
-
bitbucket_project_key=bitbucket_project,
|
|
318
|
-
linked_project_keys=[str(link.get("project_key", "")) for link in _junction_links],
|
|
319
|
-
hint="Set repo_filter on junction links to partition repos across projects",
|
|
320
|
-
)
|
|
321
|
-
finally:
|
|
322
|
-
store.close()
|
|
323
|
-
except Exception:
|
|
324
|
-
junction_resolved_key = ""
|
|
325
|
-
if junction_resolved_key and not _is_numeric_page_id(junction_resolved_key):
|
|
326
|
-
logger.error(
|
|
327
|
-
"sync_repos_project_resolution_invalid_linked_key",
|
|
328
|
-
bitbucket_project_key=bitbucket_project,
|
|
329
|
-
resolved_project_key=junction_resolved_key,
|
|
330
|
-
reason="non_numeric_page_id",
|
|
331
|
-
)
|
|
332
|
-
junction_resolved_key = ""
|
|
333
|
-
if junction_resolved_key:
|
|
334
|
-
if not _junction_multi_project:
|
|
335
|
-
forced_project_storage_key = junction_resolved_key
|
|
336
|
-
logger.info(
|
|
337
|
-
"sync_repos_project_resolution",
|
|
338
|
-
decision="linked_multi_project" if _junction_multi_project else "linked_existing",
|
|
339
|
-
bitbucket_project_key=bitbucket_project,
|
|
340
|
-
resolved_project_key=junction_resolved_key,
|
|
341
|
-
multi_project=_junction_multi_project,
|
|
342
|
-
link_count=len(_junction_links),
|
|
343
|
-
)
|
|
344
|
-
else:
|
|
345
|
-
logger.error(
|
|
346
|
-
"sync_repos_project_resolution",
|
|
347
|
-
decision="missing_link_requires_page_id",
|
|
348
|
-
bitbucket_project_key=bitbucket_project,
|
|
349
|
-
hint=(
|
|
350
|
-
"No junction link found. Provide canonical --project-storage-key "
|
|
351
|
-
"<Confluence page_id> or run parse-registry + prepare first."
|
|
352
|
-
),
|
|
353
|
-
)
|
|
354
|
-
error_msg = (
|
|
355
|
-
f"No project link found for Bitbucket project '{bitbucket_project}'. "
|
|
356
|
-
"Provide canonical --project-storage-key <Confluence page_id> "
|
|
357
|
-
"or run parse-registry + prepare first."
|
|
358
|
-
)
|
|
359
|
-
if json_only:
|
|
360
|
-
_emit_json({"error": error_msg})
|
|
361
|
-
else:
|
|
362
|
-
console.print(f"[red]Error:[/red] {error_msg}")
|
|
363
|
-
raise typer.Exit(1)
|
|
364
|
-
|
|
365
|
-
provided_sources: list[str] = []
|
|
366
|
-
if repo_path is not None:
|
|
367
|
-
provided_sources.append("local")
|
|
368
|
-
if bitbucket_project:
|
|
369
|
-
provided_sources.append("bitbucket-project")
|
|
370
|
-
if github_org:
|
|
371
|
-
provided_sources.append("github-org")
|
|
372
|
-
if git_url:
|
|
373
|
-
provided_sources.append("git-url")
|
|
374
|
-
|
|
375
|
-
if not provided_sources:
|
|
376
|
-
error_msg = (
|
|
377
|
-
"At least one source must be specified: --local, --bitbucket-project, --github-org, or --git-url."
|
|
378
|
-
)
|
|
379
|
-
if json_only:
|
|
380
|
-
_emit_json({"error": error_msg})
|
|
381
|
-
else:
|
|
382
|
-
console.print(f"[red]Error:[/red] {error_msg}")
|
|
383
|
-
raise typer.Exit(1)
|
|
384
|
-
|
|
385
|
-
selected_source = provided_sources[0]
|
|
386
|
-
if len(provided_sources) > 1:
|
|
387
|
-
logger.warning(
|
|
388
|
-
"sync_repos_multiple_sources_provided",
|
|
389
|
-
provided_sources=provided_sources,
|
|
390
|
-
selected_source=selected_source,
|
|
391
|
-
precedence=["local", "bitbucket-project", "github-org", "git-url"],
|
|
392
|
-
)
|
|
393
|
-
|
|
394
|
-
if bitbucket_project:
|
|
395
|
-
_validate_required_credentials(command="sync repos", require_bitbucket=True)
|
|
396
|
-
|
|
397
|
-
# Initialize RepoSource with deterministic selector precedence.
|
|
398
|
-
source: RepoSource | None = None
|
|
399
|
-
if selected_source == "local":
|
|
400
|
-
assert repo_path is not None
|
|
401
|
-
source = LocalRepoSource(repo_path)
|
|
402
|
-
elif selected_source == "bitbucket-project":
|
|
403
|
-
bitbucket_client = BitbucketCliClient()
|
|
404
|
-
source = BitbucketProjectSource(bitbucket_client)
|
|
405
|
-
elif selected_source == "github-org":
|
|
406
|
-
assert github_org is not None
|
|
407
|
-
github_client = Github()
|
|
408
|
-
source = GitHubOrgSource(github_client, github_org)
|
|
409
|
-
elif selected_source == "git-url":
|
|
410
|
-
assert git_url is not None
|
|
411
|
-
source = GitUrlSource() # GitUrlSource doesn't need external client initially
|
|
412
|
-
|
|
413
|
-
if not source:
|
|
414
|
-
error_msg = "Could not initialize a repository source."
|
|
415
|
-
if json_only:
|
|
416
|
-
_emit_json({"error": error_msg})
|
|
417
|
-
else:
|
|
418
|
-
console.print(f"[red]Error:[/red] {error_msg}")
|
|
419
|
-
raise typer.Exit(1)
|
|
420
|
-
|
|
421
|
-
filters = ManifestFilters(
|
|
422
|
-
project=bitbucket_project or github_org, # Project applies to Bitbucket/GitHub
|
|
423
|
-
name_match=repo_name_match,
|
|
424
|
-
)
|
|
425
|
-
|
|
426
|
-
try:
|
|
427
|
-
branch_override_enabled = _is_branch_option_explicitly_set()
|
|
428
|
-
debug_trace = (
|
|
429
|
-
_DebugArtifactsCollector((debug_artifacts_dir or local_workspace).resolve())
|
|
430
|
-
if debug_artifacts
|
|
431
|
-
else None
|
|
432
|
-
)
|
|
433
|
-
try:
|
|
434
|
-
if not json_only:
|
|
435
|
-
with Progress(
|
|
436
|
-
SpinnerColumn(),
|
|
437
|
-
TextColumn("[progress.description]{task.description}"),
|
|
438
|
-
transient=True,
|
|
439
|
-
) as progress:
|
|
440
|
-
progress.add_task(f"Discovering repositories from {type(source).__name__}...", total=None)
|
|
441
|
-
repos_to_sync = await source.get_repositories(filters)
|
|
442
|
-
else:
|
|
443
|
-
repos_to_sync = await source.get_repositories(filters)
|
|
444
|
-
except DataSourceError as exc:
|
|
445
|
-
error_context = exc.context if isinstance(exc.context, dict) else {}
|
|
446
|
-
project_hint = str(error_context.get("project_key") or bitbucket_project or github_org or "").strip()
|
|
447
|
-
diagnostic_parts = [
|
|
448
|
-
f"Repository discovery failed via {type(source).__name__}",
|
|
449
|
-
]
|
|
450
|
-
if project_hint:
|
|
451
|
-
diagnostic_parts.append(f"for project '{project_hint}'")
|
|
452
|
-
diagnostic_parts.append(":")
|
|
453
|
-
discovery_error = str(error_context.get("error") or str(exc)).strip()
|
|
454
|
-
diagnostic_parts.append(discovery_error or str(exc))
|
|
455
|
-
attempt = error_context.get("attempt")
|
|
456
|
-
max_attempts = error_context.get("max_attempts")
|
|
457
|
-
if attempt is not None and max_attempts is not None:
|
|
458
|
-
diagnostic_parts.append(f"(attempt {attempt}/{max_attempts})")
|
|
459
|
-
error_msg = " ".join(part for part in diagnostic_parts if part)
|
|
460
|
-
logger.exception(
|
|
461
|
-
"sync_repos_discovery_failed",
|
|
462
|
-
source_type=type(source).__name__,
|
|
463
|
-
project_key=project_hint or None,
|
|
464
|
-
operation=error_context.get("operation"),
|
|
465
|
-
attempt=attempt,
|
|
466
|
-
max_attempts=max_attempts,
|
|
467
|
-
error=discovery_error or str(exc),
|
|
468
|
-
)
|
|
469
|
-
if json_only:
|
|
470
|
-
_emit_json(
|
|
471
|
-
{
|
|
472
|
-
"error": error_msg,
|
|
473
|
-
"source_type": type(source).__name__,
|
|
474
|
-
"project_key": project_hint or None,
|
|
475
|
-
"discovery_error": discovery_error or str(exc),
|
|
476
|
-
"attempt": attempt,
|
|
477
|
-
"max_attempts": max_attempts,
|
|
478
|
-
}
|
|
479
|
-
)
|
|
480
|
-
else:
|
|
481
|
-
console.print(f"[red]Error:[/red] {error_msg}")
|
|
482
|
-
raise typer.Exit(1) from exc
|
|
483
|
-
|
|
484
|
-
if not repos_to_sync:
|
|
485
|
-
msg = "No repositories found matching the criteria."
|
|
486
|
-
if json_only:
|
|
487
|
-
_emit_json({"message": msg, "repositories_synced": []})
|
|
488
|
-
else:
|
|
489
|
-
console.print(f"[yellow]{msg}[/yellow]")
|
|
490
|
-
return
|
|
491
|
-
|
|
492
|
-
repos_to_sync = _apply_branch_override(
|
|
493
|
-
repos=repos_to_sync,
|
|
494
|
-
branch=branch,
|
|
495
|
-
enabled=branch_override_enabled,
|
|
496
|
-
)
|
|
497
|
-
|
|
498
|
-
if debug_trace is not None:
|
|
499
|
-
for repo in sorted(repos_to_sync, key=lambda item: str(getattr(item, "name", ""))):
|
|
500
|
-
debug_trace.add_sync_plan(
|
|
501
|
-
project_storage_key=None,
|
|
502
|
-
resource_type="repository",
|
|
503
|
-
resource_id=str(getattr(repo, "name", "")) or None,
|
|
504
|
-
decision="sync",
|
|
505
|
-
reason="selected_by_filters",
|
|
506
|
-
)
|
|
507
|
-
|
|
508
|
-
synchronizer = RepoSynchronizer(workspace_path=local_workspace)
|
|
509
|
-
|
|
510
|
-
if not json_only:
|
|
511
|
-
with Progress(
|
|
512
|
-
SpinnerColumn(),
|
|
513
|
-
TextColumn("[progress.description]{task.description}"),
|
|
514
|
-
transient=True,
|
|
515
|
-
) as progress:
|
|
516
|
-
progress.add_task(f"Synchronizing {len(repos_to_sync)} repositories...", total=None)
|
|
517
|
-
summary = await synchronizer.synchronize_repos(
|
|
518
|
-
repos_to_sync=repos_to_sync,
|
|
519
|
-
operation=operation,
|
|
520
|
-
concurrency=concurrency,
|
|
521
|
-
dry_run=dry_run,
|
|
522
|
-
overwrite_local_with_remote=overwrite_local_with_remote,
|
|
523
|
-
)
|
|
524
|
-
else:
|
|
525
|
-
summary = await synchronizer.synchronize_repos(
|
|
526
|
-
repos_to_sync=repos_to_sync,
|
|
527
|
-
operation=operation,
|
|
528
|
-
concurrency=concurrency,
|
|
529
|
-
dry_run=dry_run,
|
|
530
|
-
overwrite_local_with_remote=overwrite_local_with_remote,
|
|
531
|
-
)
|
|
532
|
-
|
|
533
|
-
if debug_trace is not None:
|
|
534
|
-
for result in sorted(
|
|
535
|
-
getattr(summary, "results", {}).values(),
|
|
536
|
-
key=lambda entry: str(getattr(getattr(entry, "repository", None), "name", "")),
|
|
537
|
-
):
|
|
538
|
-
normalized = _normalize_sync_result(result, fallback_repo_name="")
|
|
539
|
-
repo_name = normalized["repository_name"] or None
|
|
540
|
-
status = str(normalized["status"])
|
|
541
|
-
decision = _sync_decision_from_status(status)
|
|
542
|
-
reason = str(
|
|
543
|
-
normalized["operator_diagnostic"] or normalized["error"] or normalized["message"] or status
|
|
544
|
-
)
|
|
545
|
-
_emit_sync_decision(
|
|
546
|
-
logger,
|
|
547
|
-
trace=debug_trace,
|
|
548
|
-
command="sync-repos",
|
|
549
|
-
project_storage_key=None,
|
|
550
|
-
resource_type="repository",
|
|
551
|
-
resource_id=repo_name,
|
|
552
|
-
decision=decision,
|
|
553
|
-
reason=reason,
|
|
554
|
-
token_before=normalized["token_before"],
|
|
555
|
-
token_after=normalized["token_after"],
|
|
556
|
-
duration_ms=normalized["duration_ms"],
|
|
557
|
-
bytes_downloaded=None,
|
|
558
|
-
cache_mode=None,
|
|
559
|
-
)
|
|
560
|
-
|
|
561
|
-
state_diff_payload = {
|
|
562
|
-
"total": int(getattr(summary, "total", 0)),
|
|
563
|
-
"successes": int(getattr(summary, "successes", 0)),
|
|
564
|
-
"failures": int(getattr(summary, "failures", 0)),
|
|
565
|
-
"operation": operation.value,
|
|
566
|
-
"dry_run": bool(dry_run),
|
|
567
|
-
"overwrite_local_with_remote": bool(overwrite_local_with_remote),
|
|
568
|
-
}
|
|
569
|
-
debug_paths = debug_trace.write(command="sync-repos", state_diff=state_diff_payload)
|
|
570
|
-
else:
|
|
571
|
-
debug_paths = None
|
|
572
|
-
|
|
573
|
-
# Phase 36 hard-cutover: persist synchronized repository entities into centralized state.
|
|
574
|
-
repo_url_project_index: dict[str, set[str]] = {}
|
|
575
|
-
repo_slug_project_index: dict[str, set[str]] = {}
|
|
576
|
-
repo_tuple_slug_project_index: dict[tuple[str, str], set[str]] = {}
|
|
577
|
-
repo_tuple_url_project_index: dict[tuple[str, str], set[str]] = {}
|
|
578
|
-
try:
|
|
579
|
-
manifest_payload = _load_manifest_payload_from_state(resolved_state_dsn)
|
|
580
|
-
except Exception:
|
|
581
|
-
manifest_payload = None
|
|
582
|
-
if isinstance(manifest_payload, dict):
|
|
583
|
-
(
|
|
584
|
-
repo_url_project_index,
|
|
585
|
-
repo_slug_project_index,
|
|
586
|
-
repo_tuple_slug_project_index,
|
|
587
|
-
repo_tuple_url_project_index,
|
|
588
|
-
) = _build_repo_project_key_indexes(manifest_payload)
|
|
589
|
-
results_map = getattr(summary, "results", {})
|
|
590
|
-
state_projects: dict[str, dict[str, Any]] = {}
|
|
591
|
-
for repo in repos_to_sync:
|
|
592
|
-
repo_name = str(getattr(repo, "name", "") or "").strip()
|
|
593
|
-
if not repo_name:
|
|
594
|
-
continue
|
|
595
|
-
# Skip repos that don't match the forced project's repo_filter
|
|
596
|
-
if _forced_repo_filter:
|
|
597
|
-
import fnmatch as _fnmatch_filter
|
|
598
|
-
|
|
599
|
-
if not _fnmatch_filter.fnmatch(repo_name, _forced_repo_filter):
|
|
600
|
-
logger.info(
|
|
601
|
-
"sync_repos_skipped_by_repo_filter",
|
|
602
|
-
repo_name=repo_name,
|
|
603
|
-
repo_filter=_forced_repo_filter,
|
|
604
|
-
project_storage_key=forced_project_storage_key,
|
|
605
|
-
)
|
|
606
|
-
continue
|
|
607
|
-
project_name = str(getattr(repo, "project", "") or "").strip() or "unknown"
|
|
608
|
-
bitbucket_project_key = project_name
|
|
609
|
-
repo_result = results_map.get(repo_name) if isinstance(results_map, dict) else None
|
|
610
|
-
normalized_result = (
|
|
611
|
-
_normalize_sync_result(repo_result, fallback_repo_name=repo_name)
|
|
612
|
-
if repo_result is not None
|
|
613
|
-
else None
|
|
614
|
-
)
|
|
615
|
-
status = str((normalized_result or {}).get("status") or "unknown")
|
|
616
|
-
error = (normalized_result or {}).get("error")
|
|
617
|
-
repo_url = str(getattr(repo, "url", "") or "").strip()
|
|
618
|
-
default_branch = str(getattr(repo, "branch", "") or "").strip() or "main"
|
|
619
|
-
local_path_raw = getattr(repo, "path", None)
|
|
620
|
-
local_code_path = str(local_path_raw) if isinstance(local_path_raw, Path) else None
|
|
621
|
-
local_code_path = _resolve_repo_sync_local_code_path(
|
|
622
|
-
repo=repo,
|
|
623
|
-
repo_name=repo_name,
|
|
624
|
-
project_key=bitbucket_project_key,
|
|
625
|
-
workspace_path=local_workspace,
|
|
626
|
-
hinted_local_code_path=local_code_path,
|
|
627
|
-
)
|
|
628
|
-
repo_metadata = getattr(repo, "metadata", {})
|
|
629
|
-
if not isinstance(repo_metadata, dict):
|
|
630
|
-
repo_metadata = {}
|
|
631
|
-
if not repo_url:
|
|
632
|
-
repo_url = str(
|
|
633
|
-
repo_metadata.get("repo_url")
|
|
634
|
-
or repo_metadata.get("clone_url")
|
|
635
|
-
or repo_metadata.get("http_url")
|
|
636
|
-
or ""
|
|
637
|
-
).strip()
|
|
638
|
-
if repo_url:
|
|
639
|
-
parsed_repo_url = urlparse(repo_url)
|
|
640
|
-
if parsed_repo_url.scheme not in {"http", "https"} or not parsed_repo_url.netloc:
|
|
641
|
-
repo_url = ""
|
|
642
|
-
fallback_project_storage_key = ""
|
|
643
|
-
# Multi-project junction: resolve per-repo via repo_filter
|
|
644
|
-
if _junction_multi_project and _junction_links and not forced_project_storage_key:
|
|
645
|
-
import fnmatch as _fnmatch
|
|
646
|
-
|
|
647
|
-
_matched_pk = ""
|
|
648
|
-
_catchall_pk = ""
|
|
649
|
-
for _link in _junction_links:
|
|
650
|
-
_pattern = _link.get("repo_filter")
|
|
651
|
-
_pk = str(_link.get("project_key", ""))
|
|
652
|
-
if _pattern:
|
|
653
|
-
if _fnmatch.fnmatch(repo_name, _pattern):
|
|
654
|
-
_matched_pk = _pk
|
|
655
|
-
break
|
|
656
|
-
elif not _catchall_pk:
|
|
657
|
-
_catchall_pk = _pk
|
|
658
|
-
project_storage_key = _matched_pk or _catchall_pk or junction_resolved_key
|
|
659
|
-
else:
|
|
660
|
-
project_storage_key = (
|
|
661
|
-
forced_project_storage_key
|
|
662
|
-
if forced_project_storage_key
|
|
663
|
-
else _resolve_repo_sync_project_storage_key(
|
|
664
|
-
fallback_project_storage_key=fallback_project_storage_key,
|
|
665
|
-
bitbucket_project_key=bitbucket_project_key,
|
|
666
|
-
repo_name=repo_name,
|
|
667
|
-
repo_url=repo_url,
|
|
668
|
-
repo_url_index=repo_url_project_index,
|
|
669
|
-
repo_slug_index=repo_slug_project_index,
|
|
670
|
-
repo_tuple_slug_index=repo_tuple_slug_project_index,
|
|
671
|
-
repo_tuple_url_index=repo_tuple_url_project_index,
|
|
672
|
-
)
|
|
673
|
-
)
|
|
674
|
-
if not _is_numeric_page_id(project_storage_key):
|
|
675
|
-
error_msg = (
|
|
676
|
-
"Cannot resolve canonical numeric project page_id for synchronized repository "
|
|
677
|
-
f"'{repo_name}' (resolved '{project_storage_key or '<empty>'}'). "
|
|
678
|
-
"Provide --project-storage-key <Confluence page_id> or run parse-registry + prepare first."
|
|
679
|
-
)
|
|
680
|
-
if json_only:
|
|
681
|
-
_emit_json({"error": error_msg})
|
|
682
|
-
else:
|
|
683
|
-
console.print(f"[red]Error:[/red] {error_msg}")
|
|
684
|
-
raise typer.Exit(1)
|
|
685
|
-
project_payload = state_projects.setdefault(
|
|
686
|
-
project_storage_key,
|
|
687
|
-
{
|
|
688
|
-
"project_storage_key": project_storage_key,
|
|
689
|
-
"page_id": project_storage_key,
|
|
690
|
-
"project_name": project_name,
|
|
691
|
-
"bitbucket_links": [],
|
|
692
|
-
"bitbucket": [],
|
|
693
|
-
"sync_metadata": {
|
|
694
|
-
"source": "sync-repos",
|
|
695
|
-
"operation": operation.value,
|
|
696
|
-
"dry_run": bool(dry_run),
|
|
697
|
-
"overwrite_local_with_remote": bool(overwrite_local_with_remote),
|
|
698
|
-
},
|
|
699
|
-
},
|
|
700
|
-
)
|
|
701
|
-
if repo_url and repo_url not in project_payload["bitbucket_links"]:
|
|
702
|
-
project_payload["bitbucket_links"].append(repo_url)
|
|
703
|
-
project_payload["bitbucket"].append(
|
|
704
|
-
{
|
|
705
|
-
"repo": repo_name,
|
|
706
|
-
"repo_slug": repo_name,
|
|
707
|
-
"repo_key": repo_name,
|
|
708
|
-
"project": bitbucket_project_key,
|
|
709
|
-
"bitbucket_repo_key": repo_name,
|
|
710
|
-
"bitbucket_project_key": bitbucket_project_key,
|
|
711
|
-
"repo_url": repo_url or None,
|
|
712
|
-
"default_branch": default_branch,
|
|
713
|
-
"status": status,
|
|
714
|
-
"status_classification": normalized_result.get("status_classification"),
|
|
715
|
-
"sync_decision": _sync_decision_from_status(status),
|
|
716
|
-
"error": str(error) if error else None,
|
|
717
|
-
"operator_diagnostic": normalized_result.get("operator_diagnostic"),
|
|
718
|
-
"remote_default_branch_hint": normalized_result.get("remote_default_branch_hint"),
|
|
719
|
-
"discovered_remote_branches": normalized_result.get("discovered_remote_branches"),
|
|
720
|
-
"discovered_remote_branch_count": normalized_result.get("discovered_remote_branch_count"),
|
|
721
|
-
"branch_hint_probe_error": normalized_result.get("branch_hint_probe_error"),
|
|
722
|
-
"local_code_path": local_code_path,
|
|
723
|
-
"repo_type": "primary",
|
|
724
|
-
"last_commit": repo_metadata.get("last_commit"),
|
|
725
|
-
"default_branch_ref": repo_metadata.get("default_branch_ref"),
|
|
726
|
-
"clone_verified_at": (
|
|
727
|
-
_dt_now_utc_iso() if local_code_path and Path(local_code_path).is_dir() else None
|
|
728
|
-
),
|
|
729
|
-
}
|
|
730
|
-
)
|
|
731
|
-
|
|
732
|
-
ops_sync_summary: dict[str, Any] | None = None
|
|
733
|
-
if include_ops_repo:
|
|
734
|
-
ops_urls = [str(value or "").strip() for value in include_ops_repo if str(value or "").strip()]
|
|
735
|
-
seen_ops_urls: set[str] = set()
|
|
736
|
-
ops_urls = [url for url in ops_urls if not (url in seen_ops_urls or seen_ops_urls.add(url))]
|
|
737
|
-
fallback_ops_project = bitbucket_project or "OPS"
|
|
738
|
-
ops_repos_to_sync: list[RepoInfo] = []
|
|
739
|
-
for ops_url in ops_urls:
|
|
740
|
-
parsed = _parse_ops_repo_url(repo_url=ops_url, fallback_project=fallback_ops_project)
|
|
741
|
-
if parsed is None:
|
|
742
|
-
logger.warning("sync_repos_include_ops_repo_invalid_url", repo_url=ops_url)
|
|
743
|
-
continue
|
|
744
|
-
ops_project_key, ops_repo_name = parsed
|
|
745
|
-
ops_repos_to_sync.append(
|
|
746
|
-
RepoInfo(
|
|
747
|
-
name=ops_repo_name,
|
|
748
|
-
path=local_workspace / f"{ops_project_key}-project" / ops_repo_name,
|
|
749
|
-
project=ops_project_key,
|
|
750
|
-
branch=branch,
|
|
751
|
-
url=ops_url,
|
|
752
|
-
tags={"ops"},
|
|
753
|
-
metadata={"repo_type": "ops", "role": "ops"},
|
|
754
|
-
)
|
|
755
|
-
)
|
|
756
|
-
if ops_repos_to_sync:
|
|
757
|
-
if not json_only:
|
|
758
|
-
with Progress(
|
|
759
|
-
SpinnerColumn(),
|
|
760
|
-
TextColumn("[progress.description]{task.description}"),
|
|
761
|
-
transient=True,
|
|
762
|
-
) as ops_progress:
|
|
763
|
-
ops_progress.add_task(
|
|
764
|
-
f"Syncing {len(ops_repos_to_sync)} ops repos...",
|
|
765
|
-
total=None,
|
|
766
|
-
)
|
|
767
|
-
ops_summary = await synchronizer.synchronize_repos(
|
|
768
|
-
repos_to_sync=ops_repos_to_sync,
|
|
769
|
-
operation=operation,
|
|
770
|
-
concurrency=concurrency,
|
|
771
|
-
dry_run=dry_run,
|
|
772
|
-
overwrite_local_with_remote=overwrite_local_with_remote,
|
|
773
|
-
)
|
|
774
|
-
else:
|
|
775
|
-
ops_summary = await synchronizer.synchronize_repos(
|
|
776
|
-
repos_to_sync=ops_repos_to_sync,
|
|
777
|
-
operation=operation,
|
|
778
|
-
concurrency=concurrency,
|
|
779
|
-
dry_run=dry_run,
|
|
780
|
-
overwrite_local_with_remote=overwrite_local_with_remote,
|
|
781
|
-
)
|
|
782
|
-
ops_results_map = getattr(ops_summary, "results", {})
|
|
783
|
-
ops_project_storage_key = (
|
|
784
|
-
forced_project_storage_key
|
|
785
|
-
if forced_project_storage_key
|
|
786
|
-
else (sorted(state_projects.keys())[0] if state_projects else "")
|
|
787
|
-
)
|
|
788
|
-
if not _is_numeric_page_id(ops_project_storage_key):
|
|
789
|
-
error_msg = (
|
|
790
|
-
"Cannot bind --include-ops-repo entries without a canonical numeric project page_id. "
|
|
791
|
-
"Provide --project-storage-key <Confluence page_id>."
|
|
792
|
-
)
|
|
793
|
-
if json_only:
|
|
794
|
-
_emit_json({"error": error_msg})
|
|
795
|
-
else:
|
|
796
|
-
console.print(f"[red]Error:[/red] {error_msg}")
|
|
797
|
-
raise typer.Exit(1)
|
|
798
|
-
ops_project_payload = state_projects.setdefault(
|
|
799
|
-
ops_project_storage_key,
|
|
800
|
-
{
|
|
801
|
-
"project_storage_key": ops_project_storage_key,
|
|
802
|
-
"page_id": ops_project_storage_key,
|
|
803
|
-
"project_name": bitbucket_project or "ops",
|
|
804
|
-
"bitbucket_links": [],
|
|
805
|
-
"bitbucket": [],
|
|
806
|
-
"sync_metadata": {
|
|
807
|
-
"source": "sync-repos",
|
|
808
|
-
"operation": operation.value,
|
|
809
|
-
"dry_run": bool(dry_run),
|
|
810
|
-
"overwrite_local_with_remote": bool(overwrite_local_with_remote),
|
|
811
|
-
},
|
|
812
|
-
},
|
|
813
|
-
)
|
|
814
|
-
for ops_repo in ops_repos_to_sync:
|
|
815
|
-
ops_repo_name = str(getattr(ops_repo, "name", "") or "").strip()
|
|
816
|
-
if not ops_repo_name:
|
|
817
|
-
continue
|
|
818
|
-
ops_result = ops_results_map.get(ops_repo_name) if isinstance(ops_results_map, dict) else None
|
|
819
|
-
ops_normalized = (
|
|
820
|
-
_normalize_sync_result(ops_result, fallback_repo_name=ops_repo_name)
|
|
821
|
-
if ops_result is not None
|
|
822
|
-
else None
|
|
823
|
-
)
|
|
824
|
-
ops_status = str((ops_normalized or {}).get("status") or "unknown")
|
|
825
|
-
ops_error = (ops_normalized or {}).get("error")
|
|
826
|
-
ops_repo_url = str(getattr(ops_repo, "url", "") or "").strip()
|
|
827
|
-
ops_default_branch = str(getattr(ops_repo, "branch", "") or "").strip() or "main"
|
|
828
|
-
ops_local_path_raw = getattr(ops_repo, "path", None)
|
|
829
|
-
ops_local_code_path = str(ops_local_path_raw) if isinstance(ops_local_path_raw, Path) else None
|
|
830
|
-
ops_local_code_path = _resolve_repo_sync_local_code_path(
|
|
831
|
-
repo=ops_repo,
|
|
832
|
-
repo_name=ops_repo_name,
|
|
833
|
-
project_key=str(getattr(ops_repo, "project", "") or "OPS"),
|
|
834
|
-
workspace_path=local_workspace,
|
|
835
|
-
hinted_local_code_path=ops_local_code_path,
|
|
836
|
-
)
|
|
837
|
-
ops_project_key = str(getattr(ops_repo, "project", "") or "OPS").strip() or "OPS"
|
|
838
|
-
if ops_repo_url and ops_repo_url not in ops_project_payload["bitbucket_links"]:
|
|
839
|
-
ops_project_payload["bitbucket_links"].append(ops_repo_url)
|
|
840
|
-
ops_project_payload["bitbucket"].append(
|
|
841
|
-
{
|
|
842
|
-
"repo": ops_repo_name,
|
|
843
|
-
"repo_slug": ops_repo_name,
|
|
844
|
-
"repo_key": ops_repo_name,
|
|
845
|
-
"project": ops_project_key,
|
|
846
|
-
"bitbucket_repo_key": ops_repo_name,
|
|
847
|
-
"bitbucket_project_key": ops_project_key,
|
|
848
|
-
"repo_url": ops_repo_url or None,
|
|
849
|
-
"default_branch": ops_default_branch,
|
|
850
|
-
"status": ops_status,
|
|
851
|
-
"status_classification": ops_normalized.get("status_classification"),
|
|
852
|
-
"sync_decision": _sync_decision_from_status(ops_status),
|
|
853
|
-
"error": str(ops_error) if ops_error else None,
|
|
854
|
-
"operator_diagnostic": ops_normalized.get("operator_diagnostic"),
|
|
855
|
-
"remote_default_branch_hint": ops_normalized.get("remote_default_branch_hint"),
|
|
856
|
-
"discovered_remote_branches": ops_normalized.get("discovered_remote_branches"),
|
|
857
|
-
"discovered_remote_branch_count": ops_normalized.get("discovered_remote_branch_count"),
|
|
858
|
-
"branch_hint_probe_error": ops_normalized.get("branch_hint_probe_error"),
|
|
859
|
-
"local_code_path": ops_local_code_path,
|
|
860
|
-
"role": "ops",
|
|
861
|
-
"repo_type": "ops",
|
|
862
|
-
}
|
|
863
|
-
)
|
|
864
|
-
ops_sync_summary = {
|
|
865
|
-
"total": int(getattr(ops_summary, "total", 0)),
|
|
866
|
-
"successes": int(getattr(ops_summary, "successes", 0)),
|
|
867
|
-
"failures": int(getattr(ops_summary, "failures", 0)),
|
|
868
|
-
"repos": [repo.name for repo in ops_repos_to_sync],
|
|
869
|
-
}
|
|
870
|
-
repo_sync_payload = {
|
|
871
|
-
"kind": "repo_sync",
|
|
872
|
-
"operation": operation.value,
|
|
873
|
-
"dry_run": bool(dry_run),
|
|
874
|
-
"overwrite_local_with_remote": bool(overwrite_local_with_remote),
|
|
875
|
-
"projects": sorted(
|
|
876
|
-
state_projects.values(),
|
|
877
|
-
key=lambda item: (
|
|
878
|
-
str(item.get("project_name") or ""),
|
|
879
|
-
str(item.get("project_storage_key") or ""),
|
|
880
|
-
),
|
|
881
|
-
),
|
|
882
|
-
}
|
|
883
|
-
invalid_project_identities: list[dict[str, Any]] = []
|
|
884
|
-
for project_key, project_payload in state_projects.items():
|
|
885
|
-
if not isinstance(project_payload, dict):
|
|
886
|
-
invalid_project_identities.append(
|
|
887
|
-
{"project_key": str(project_key or ""), "reason": "payload_not_dict"}
|
|
888
|
-
)
|
|
889
|
-
continue
|
|
890
|
-
canonical_project_key = str(
|
|
891
|
-
project_payload.get("project_storage_key") or project_key or forced_project_storage_key
|
|
892
|
-
).strip()
|
|
893
|
-
if canonical_project_key:
|
|
894
|
-
project_payload["project_storage_key"] = canonical_project_key
|
|
895
|
-
page_id = str(project_payload.get("page_id") or "").strip()
|
|
896
|
-
if not page_id and canonical_project_key:
|
|
897
|
-
project_payload["page_id"] = canonical_project_key
|
|
898
|
-
page_id = canonical_project_key
|
|
899
|
-
if not page_id and forced_project_storage_key:
|
|
900
|
-
project_payload["page_id"] = forced_project_storage_key
|
|
901
|
-
page_id = forced_project_storage_key
|
|
902
|
-
if not page_id:
|
|
903
|
-
invalid_project_identities.append(
|
|
904
|
-
{
|
|
905
|
-
"project_key": str(project_key or ""),
|
|
906
|
-
"project_storage_key": canonical_project_key,
|
|
907
|
-
"project_name": str(project_payload.get("project_name") or ""),
|
|
908
|
-
"reason": "missing_page_id",
|
|
909
|
-
}
|
|
910
|
-
)
|
|
911
|
-
continue
|
|
912
|
-
if not _is_numeric_page_id(page_id):
|
|
913
|
-
invalid_project_identities.append(
|
|
914
|
-
{
|
|
915
|
-
"project_key": str(project_key or ""),
|
|
916
|
-
"project_storage_key": canonical_project_key,
|
|
917
|
-
"project_name": str(project_payload.get("project_name") or ""),
|
|
918
|
-
"page_id": page_id,
|
|
919
|
-
"reason": "invalid_page_id",
|
|
920
|
-
}
|
|
921
|
-
)
|
|
922
|
-
if invalid_project_identities:
|
|
923
|
-
logger.error(
|
|
924
|
-
"sync_repos_invalid_project_identity_payload",
|
|
925
|
-
invalid_project_identities=invalid_project_identities,
|
|
926
|
-
)
|
|
927
|
-
raise ValueError(
|
|
928
|
-
"Cannot record repo_sync artifacts: invalid project page_id in sync payload "
|
|
929
|
-
f"for {len(invalid_project_identities)} project(s)."
|
|
930
|
-
)
|
|
931
|
-
logger.info(
|
|
932
|
-
"sync_repos_state_payload_project_identities",
|
|
933
|
-
projects=[
|
|
934
|
-
{
|
|
935
|
-
"project_storage_key": str(project_payload.get("project_storage_key") or ""),
|
|
936
|
-
"page_id": str(project_payload.get("page_id") or ""),
|
|
937
|
-
"project_name": str(project_payload.get("project_name") or ""),
|
|
938
|
-
}
|
|
939
|
-
for project_payload in state_projects.values()
|
|
940
|
-
if isinstance(project_payload, dict)
|
|
941
|
-
],
|
|
942
|
-
)
|
|
943
|
-
_record_state_artifacts(state_dsn=resolved_state_dsn, payload=repo_sync_payload)
|
|
944
|
-
|
|
945
|
-
# Phase 95 (AC-264.4): upsert junction link after sync
|
|
946
|
-
if bitbucket_project and state_projects:
|
|
947
|
-
try:
|
|
948
|
-
store = PostgresStateStore(resolved_state_dsn)
|
|
949
|
-
try:
|
|
950
|
-
normalized_bb_key = _normalize_storage_key(bitbucket_project)
|
|
951
|
-
if _is_storage_key_like_bitbucket_project_key(normalized_bb_key):
|
|
952
|
-
logger.warning(
|
|
953
|
-
"sync_repos_junction_link_rejected_storage_key_like_bitbucket_project",
|
|
954
|
-
raw_bitbucket_project_key=bitbucket_project,
|
|
955
|
-
normalized_bitbucket_project_key=normalized_bb_key,
|
|
956
|
-
)
|
|
957
|
-
else:
|
|
958
|
-
for pkey in state_projects:
|
|
959
|
-
store.upsert_project_bitbucket_link_by_keys(
|
|
960
|
-
project_key=pkey,
|
|
961
|
-
bitbucket_project_key=normalized_bb_key,
|
|
962
|
-
source="sync_repos",
|
|
963
|
-
)
|
|
964
|
-
cleanup_result = store.cleanup_spurious_project_bitbucket_links()
|
|
965
|
-
logger.info(
|
|
966
|
-
"sync_repos_runtime_spurious_junction_cleanup",
|
|
967
|
-
links_removed=int((cleanup_result or {}).get("links_removed", 0)),
|
|
968
|
-
)
|
|
969
|
-
finally:
|
|
970
|
-
store.close()
|
|
971
|
-
except Exception as exc:
|
|
972
|
-
logger.warning(
|
|
973
|
-
"sync_repos_junction_link_failed",
|
|
974
|
-
bitbucket_project=bitbucket_project,
|
|
975
|
-
error=str(exc),
|
|
976
|
-
)
|
|
977
|
-
|
|
978
|
-
# Phase 81: sync auxiliary Bitbucket projects and register with role tags.
|
|
979
|
-
auxiliary_summaries: list[dict[str, Any]] = []
|
|
980
|
-
for aux_selector in auxiliary_project or []:
|
|
981
|
-
aux_selector_value = str(aux_selector or "").strip()
|
|
982
|
-
if not aux_selector_value:
|
|
983
|
-
continue
|
|
984
|
-
try:
|
|
985
|
-
aux_project_key, aux_repo_filters = _parse_auxiliary_project_selector(aux_selector_value)
|
|
986
|
-
except ValueError as exc:
|
|
987
|
-
logger.warning(
|
|
988
|
-
"auxiliary_project_selector_invalid",
|
|
989
|
-
selector=aux_selector_value,
|
|
990
|
-
error=str(exc),
|
|
991
|
-
)
|
|
992
|
-
continue
|
|
993
|
-
|
|
994
|
-
role = "auxiliary_config" if aux_project_key.upper() == "DOPS" else "auxiliary_lib"
|
|
995
|
-
try:
|
|
996
|
-
_validate_required_credentials(command="sync repos", require_bitbucket=True)
|
|
997
|
-
aux_bb_client = BitbucketCliClient()
|
|
998
|
-
aux_source: RepoSource = BitbucketProjectSource(aux_bb_client)
|
|
999
|
-
aux_filters = ManifestFilters(project=aux_project_key, name_match=repo_name_match)
|
|
1000
|
-
if not json_only:
|
|
1001
|
-
with Progress(
|
|
1002
|
-
SpinnerColumn(),
|
|
1003
|
-
TextColumn("[progress.description]{task.description}"),
|
|
1004
|
-
transient=True,
|
|
1005
|
-
) as aux_progress:
|
|
1006
|
-
aux_progress.add_task(f"Discovering auxiliary repos from {aux_project_key}...", total=None)
|
|
1007
|
-
aux_repos = await aux_source.get_repositories(aux_filters)
|
|
1008
|
-
else:
|
|
1009
|
-
aux_repos = await aux_source.get_repositories(aux_filters)
|
|
1010
|
-
aux_repos = _filter_auxiliary_repositories(
|
|
1011
|
-
aux_repos,
|
|
1012
|
-
selected_repo_slugs=aux_repo_filters,
|
|
1013
|
-
)
|
|
1014
|
-
aux_repos = _apply_branch_override(
|
|
1015
|
-
repos=aux_repos,
|
|
1016
|
-
branch=branch,
|
|
1017
|
-
enabled=branch_override_enabled,
|
|
1018
|
-
)
|
|
1019
|
-
if not aux_repos:
|
|
1020
|
-
logger.info(
|
|
1021
|
-
"auxiliary_project_empty",
|
|
1022
|
-
project=aux_project_key,
|
|
1023
|
-
selected_repos=list(aux_repo_filters),
|
|
1024
|
-
)
|
|
1025
|
-
continue
|
|
1026
|
-
aux_synchronizer = RepoSynchronizer(workspace_path=local_workspace)
|
|
1027
|
-
if not json_only:
|
|
1028
|
-
with Progress(
|
|
1029
|
-
SpinnerColumn(),
|
|
1030
|
-
TextColumn("[progress.description]{task.description}"),
|
|
1031
|
-
transient=True,
|
|
1032
|
-
) as aux_progress:
|
|
1033
|
-
aux_progress.add_task(
|
|
1034
|
-
f"Syncing {len(aux_repos)} auxiliary repos ({aux_project_key})...",
|
|
1035
|
-
total=None,
|
|
1036
|
-
)
|
|
1037
|
-
aux_summary = await aux_synchronizer.synchronize_repos(
|
|
1038
|
-
repos_to_sync=aux_repos,
|
|
1039
|
-
operation=operation,
|
|
1040
|
-
concurrency=concurrency,
|
|
1041
|
-
dry_run=dry_run,
|
|
1042
|
-
overwrite_local_with_remote=overwrite_local_with_remote,
|
|
1043
|
-
)
|
|
1044
|
-
else:
|
|
1045
|
-
aux_summary = await aux_synchronizer.synchronize_repos(
|
|
1046
|
-
repos_to_sync=aux_repos,
|
|
1047
|
-
operation=operation,
|
|
1048
|
-
concurrency=concurrency,
|
|
1049
|
-
dry_run=dry_run,
|
|
1050
|
-
overwrite_local_with_remote=overwrite_local_with_remote,
|
|
1051
|
-
)
|
|
1052
|
-
# Build state entries for auxiliary repos with role tag.
|
|
1053
|
-
aux_results_map = getattr(aux_summary, "results", {})
|
|
1054
|
-
aux_state_repos: list[dict[str, Any]] = []
|
|
1055
|
-
for aux_repo in aux_repos:
|
|
1056
|
-
aux_repo_name = str(getattr(aux_repo, "name", "") or "").strip()
|
|
1057
|
-
if not aux_repo_name:
|
|
1058
|
-
continue
|
|
1059
|
-
aux_repo_result = (
|
|
1060
|
-
aux_results_map.get(aux_repo_name) if isinstance(aux_results_map, dict) else None
|
|
1061
|
-
)
|
|
1062
|
-
aux_normalized = (
|
|
1063
|
-
_normalize_sync_result(aux_repo_result, fallback_repo_name=aux_repo_name)
|
|
1064
|
-
if aux_repo_result is not None
|
|
1065
|
-
else None
|
|
1066
|
-
)
|
|
1067
|
-
aux_status = str((aux_normalized or {}).get("status") or "unknown")
|
|
1068
|
-
aux_error = (aux_normalized or {}).get("error")
|
|
1069
|
-
aux_repo_url = str(getattr(aux_repo, "url", "") or "").strip()
|
|
1070
|
-
aux_repo_metadata = getattr(aux_repo, "metadata", {})
|
|
1071
|
-
if not isinstance(aux_repo_metadata, dict):
|
|
1072
|
-
aux_repo_metadata = {}
|
|
1073
|
-
if not aux_repo_url:
|
|
1074
|
-
aux_repo_url = str(
|
|
1075
|
-
aux_repo_metadata.get("repo_url")
|
|
1076
|
-
or aux_repo_metadata.get("clone_url")
|
|
1077
|
-
or aux_repo_metadata.get("http_url")
|
|
1078
|
-
or ""
|
|
1079
|
-
).strip()
|
|
1080
|
-
aux_default_branch = str(getattr(aux_repo, "branch", "") or "").strip() or "main"
|
|
1081
|
-
aux_local_path_raw = getattr(aux_repo, "path", None)
|
|
1082
|
-
aux_local_code_path = str(aux_local_path_raw) if isinstance(aux_local_path_raw, Path) else None
|
|
1083
|
-
aux_local_code_path = _resolve_repo_sync_local_code_path(
|
|
1084
|
-
repo=aux_repo,
|
|
1085
|
-
repo_name=aux_repo_name,
|
|
1086
|
-
project_key=aux_project_key,
|
|
1087
|
-
workspace_path=local_workspace,
|
|
1088
|
-
hinted_local_code_path=aux_local_code_path,
|
|
1089
|
-
)
|
|
1090
|
-
aux_state_repos.append(
|
|
1091
|
-
{
|
|
1092
|
-
"repo": aux_repo_name,
|
|
1093
|
-
"repo_slug": aux_repo_name,
|
|
1094
|
-
"repo_key": aux_repo_name,
|
|
1095
|
-
"project": aux_project_key,
|
|
1096
|
-
"bitbucket_project_key": aux_project_key,
|
|
1097
|
-
"repo_url": aux_repo_url or None,
|
|
1098
|
-
"default_branch": aux_default_branch,
|
|
1099
|
-
"status": aux_status,
|
|
1100
|
-
"status_classification": aux_normalized.get("status_classification"),
|
|
1101
|
-
"sync_decision": _sync_decision_from_status(aux_status),
|
|
1102
|
-
"error": str(aux_error) if aux_error else None,
|
|
1103
|
-
"operator_diagnostic": aux_normalized.get("operator_diagnostic"),
|
|
1104
|
-
"remote_default_branch_hint": aux_normalized.get("remote_default_branch_hint"),
|
|
1105
|
-
"discovered_remote_branches": aux_normalized.get("discovered_remote_branches"),
|
|
1106
|
-
"discovered_remote_branch_count": aux_normalized.get("discovered_remote_branch_count"),
|
|
1107
|
-
"branch_hint_probe_error": aux_normalized.get("branch_hint_probe_error"),
|
|
1108
|
-
"local_code_path": aux_local_code_path,
|
|
1109
|
-
"role": role,
|
|
1110
|
-
"repo_type": "primary",
|
|
1111
|
-
"last_commit": aux_repo_metadata.get("last_commit"),
|
|
1112
|
-
"default_branch_ref": aux_repo_metadata.get("default_branch_ref"),
|
|
1113
|
-
}
|
|
1114
|
-
)
|
|
1115
|
-
aux_project_storage_key = forced_project_storage_key if forced_project_storage_key else ""
|
|
1116
|
-
if not _is_numeric_page_id(aux_project_storage_key):
|
|
1117
|
-
raise ValueError(
|
|
1118
|
-
"Cannot bind --auxiliary-project entries without a canonical numeric project page_id. "
|
|
1119
|
-
"Provide --project-storage-key <Confluence page_id>."
|
|
1120
|
-
)
|
|
1121
|
-
aux_state_payload: dict[str, Any] = {
|
|
1122
|
-
"kind": "repo_sync",
|
|
1123
|
-
"operation": operation.value,
|
|
1124
|
-
"dry_run": bool(dry_run),
|
|
1125
|
-
"overwrite_local_with_remote": bool(overwrite_local_with_remote),
|
|
1126
|
-
"auxiliary": True,
|
|
1127
|
-
"projects": [
|
|
1128
|
-
{
|
|
1129
|
-
"project_storage_key": aux_project_storage_key,
|
|
1130
|
-
"page_id": aux_project_storage_key,
|
|
1131
|
-
"project_name": aux_project_key,
|
|
1132
|
-
"bitbucket_links": [r["repo_url"] for r in aux_state_repos if r.get("repo_url")],
|
|
1133
|
-
"bitbucket": aux_state_repos,
|
|
1134
|
-
"sync_metadata": {
|
|
1135
|
-
"source": "sync-repos-auxiliary",
|
|
1136
|
-
"operation": operation.value,
|
|
1137
|
-
"dry_run": bool(dry_run),
|
|
1138
|
-
"overwrite_local_with_remote": bool(overwrite_local_with_remote),
|
|
1139
|
-
"role": role,
|
|
1140
|
-
},
|
|
1141
|
-
}
|
|
1142
|
-
],
|
|
1143
|
-
}
|
|
1144
|
-
_record_state_artifacts(state_dsn=resolved_state_dsn, payload=aux_state_payload)
|
|
1145
|
-
auxiliary_summaries.append(
|
|
1146
|
-
{
|
|
1147
|
-
"project": aux_project_key,
|
|
1148
|
-
"role": role,
|
|
1149
|
-
"total": int(getattr(aux_summary, "total", 0)),
|
|
1150
|
-
"successes": int(getattr(aux_summary, "successes", 0)),
|
|
1151
|
-
"failures": int(getattr(aux_summary, "failures", 0)),
|
|
1152
|
-
"repos": [r.name for r in aux_repos],
|
|
1153
|
-
}
|
|
1154
|
-
)
|
|
1155
|
-
if not json_only:
|
|
1156
|
-
console.print(
|
|
1157
|
-
f"[green]Auxiliary project {aux_project_key} ({role}): "
|
|
1158
|
-
f"{getattr(aux_summary, 'successes', 0)}/{getattr(aux_summary, 'total', 0)} synced.[/green]"
|
|
1159
|
-
)
|
|
1160
|
-
except Exception as aux_err:
|
|
1161
|
-
logger.warning("auxiliary_sync_failed", project=aux_project_key, error=str(aux_err))
|
|
1162
|
-
if not json_only:
|
|
1163
|
-
console.print(
|
|
1164
|
-
f"[yellow]Warning: auxiliary project {aux_project_key} sync failed: {aux_err}[/yellow]"
|
|
1165
|
-
)
|
|
1166
|
-
|
|
1167
|
-
if json_only:
|
|
1168
|
-
if hasattr(summary, "model_dump"):
|
|
1169
|
-
summary_payload = summary.model_dump() # type: ignore[attr-defined]
|
|
1170
|
-
else:
|
|
1171
|
-
summary_payload = {
|
|
1172
|
-
"total": int(getattr(summary, "total", 0)),
|
|
1173
|
-
"successes": int(getattr(summary, "successes", 0)),
|
|
1174
|
-
"updates": int(getattr(summary, "updates", 0)),
|
|
1175
|
-
"failures": int(getattr(summary, "failures", 0)),
|
|
1176
|
-
"results": {
|
|
1177
|
-
str(key): {
|
|
1178
|
-
"status": normalized["status"],
|
|
1179
|
-
"status_classification": normalized["status_classification"],
|
|
1180
|
-
"sync_decision": _sync_decision_from_status(normalized["status"]),
|
|
1181
|
-
"updated": bool(normalized["updated"]),
|
|
1182
|
-
"error": normalized["error"],
|
|
1183
|
-
"operator_diagnostic": normalized["operator_diagnostic"],
|
|
1184
|
-
"remote_default_branch_hint": normalized["remote_default_branch_hint"],
|
|
1185
|
-
"discovered_remote_branches": normalized["discovered_remote_branches"],
|
|
1186
|
-
"discovered_remote_branch_count": normalized["discovered_remote_branch_count"],
|
|
1187
|
-
"branch_hint_probe_error": normalized["branch_hint_probe_error"],
|
|
1188
|
-
"repository": str(normalized["repository_name"] or key),
|
|
1189
|
-
"message": normalized["message"] or None,
|
|
1190
|
-
}
|
|
1191
|
-
for key, value in (getattr(summary, "results", {}) or {}).items()
|
|
1192
|
-
for normalized in [_normalize_sync_result(value, fallback_repo_name=str(key))]
|
|
1193
|
-
},
|
|
1194
|
-
}
|
|
1195
|
-
payload: dict[str, Any] = {
|
|
1196
|
-
"action": "sync_repos",
|
|
1197
|
-
"selected_source": selected_source,
|
|
1198
|
-
"overwrite_local_with_remote": bool(overwrite_local_with_remote),
|
|
1199
|
-
"summary": summary_payload,
|
|
1200
|
-
"repositories_synced": [r.name for r in repos_to_sync],
|
|
1201
|
-
}
|
|
1202
|
-
if auxiliary_summaries:
|
|
1203
|
-
payload["auxiliary_projects"] = auxiliary_summaries
|
|
1204
|
-
if ops_sync_summary is not None:
|
|
1205
|
-
payload["ops_repos"] = ops_sync_summary
|
|
1206
|
-
if debug_paths is not None:
|
|
1207
|
-
payload["debug_artifacts"] = debug_paths
|
|
1208
|
-
_emit_json(payload)
|
|
1209
|
-
else:
|
|
1210
|
-
console.print("[green]Repository synchronization complete.[/green]")
|
|
1211
|
-
console.print(f"Source: {selected_source}")
|
|
1212
|
-
console.print(f"Total: {summary.total}, Successes: {summary.successes}, Failures: {summary.failures}")
|
|
1213
|
-
if ops_sync_summary is not None:
|
|
1214
|
-
console.print(f"Ops repos: {ops_sync_summary['successes']}/{ops_sync_summary['total']} synced")
|
|
1215
|
-
if debug_paths is not None:
|
|
1216
|
-
console.print(f"Debug artifacts: {debug_paths['cache_trace_path']}")
|
|
1217
|
-
if summary.failures > 0:
|
|
1218
|
-
console.print("[red]Some repositories failed to synchronize.[/red]")
|
|
1219
|
-
for key, result in (getattr(summary, "results", {}) or {}).items():
|
|
1220
|
-
normalized = _normalize_sync_result(result, fallback_repo_name=str(key))
|
|
1221
|
-
if _sync_decision_from_status(normalized["status"]) == "failed":
|
|
1222
|
-
repo_name = str(normalized["repository_name"] or key)
|
|
1223
|
-
reason = str(
|
|
1224
|
-
normalized["operator_diagnostic"]
|
|
1225
|
-
or normalized["error"]
|
|
1226
|
-
or normalized["message"]
|
|
1227
|
-
or "failed"
|
|
1228
|
-
)
|
|
1229
|
-
status_classification = str(normalized["status_classification"] or "").strip()
|
|
1230
|
-
if status_classification:
|
|
1231
|
-
reason = f"{status_classification}: {reason}"
|
|
1232
|
-
console.print(f" [red]- {repo_name}: {reason}[/red]")
|
|
1233
|
-
else:
|
|
1234
|
-
console.print("[green]All repositories synchronized successfully.[/green]")
|
|
1235
|
-
|
|
1236
|
-
except typer.Exit:
|
|
1237
|
-
raise
|
|
1238
|
-
except Exception as e:
|
|
1239
|
-
error_msg = f"Repository synchronization failed: {e}"
|
|
1240
|
-
if json_only:
|
|
1241
|
-
_emit_json({"error": error_msg})
|
|
1242
|
-
else:
|
|
1243
|
-
console.print(f"[red]Error:[/red] {error_msg}")
|
|
1244
|
-
logger.exception("repo_sync_failed")
|
|
1245
|
-
raise typer.Exit(1) from e
|
|
1246
|
-
|
|
1247
|
-
asyncio.run(_sync_impl())
|