@ngocsangairvds/vsaf 3.2.14 → 3.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/vsaf.js +18 -4
- package/package.json +1 -1
- package/src/config.js +167 -0
- package/src/global.js +1 -48
- package/src/project.js +1 -0
- 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,2488 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import json
|
|
4
|
-
import subprocess
|
|
5
|
-
from pathlib import Path
|
|
6
|
-
from types import SimpleNamespace
|
|
7
|
-
|
|
8
|
-
import pytest
|
|
9
|
-
from typer.testing import CliRunner
|
|
10
|
-
from vds_audit_orchestrator import cli, workflow_cmds
|
|
11
|
-
from vds_audit_orchestrator.config import reset_config
|
|
12
|
-
|
|
13
|
-
runner = CliRunner()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@pytest.fixture(autouse=True)
|
|
17
|
-
def _isolate_cli_runtime(monkeypatch: pytest.MonkeyPatch) -> None:
|
|
18
|
-
reset_config()
|
|
19
|
-
cli._cli_state.clear()
|
|
20
|
-
monkeypatch.setattr(
|
|
21
|
-
cli,
|
|
22
|
-
"apply_runtime_profile",
|
|
23
|
-
lambda *args, **kwargs: SimpleNamespace(
|
|
24
|
-
profile_name="test",
|
|
25
|
-
source="test",
|
|
26
|
-
profile_path=Path("/tmp/test-profile.yaml"),
|
|
27
|
-
applied_env_keys=[],
|
|
28
|
-
),
|
|
29
|
-
)
|
|
30
|
-
monkeypatch.setattr(cli, "load_shared_env", lambda *args, **kwargs: {})
|
|
31
|
-
monkeypatch.setenv("VDS_AUDIT_BOOTSTRAP_HOME", "false")
|
|
32
|
-
monkeypatch.delenv("VDS_AUDIT_PROFILE", raising=False)
|
|
33
|
-
monkeypatch.delenv("VDS_AUDIT_ACTIVE_PROFILE", raising=False)
|
|
34
|
-
monkeypatch.setenv("VDS_AUDIT_LANGGRAPH__POSTGRES_DSN", "postgresql://test:test@localhost:5432/test")
|
|
35
|
-
yield
|
|
36
|
-
cli._cli_state.clear()
|
|
37
|
-
reset_config()
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
def _project_payload(
|
|
41
|
-
key: str,
|
|
42
|
-
name: str | None = None,
|
|
43
|
-
department: str | None = None,
|
|
44
|
-
department_page_id: str | None = None,
|
|
45
|
-
) -> dict:
|
|
46
|
-
payload = {
|
|
47
|
-
"project_storage_key": key,
|
|
48
|
-
"page_id": key,
|
|
49
|
-
"project_name": name or key,
|
|
50
|
-
"project_display_name": name or key,
|
|
51
|
-
}
|
|
52
|
-
if department is not None:
|
|
53
|
-
payload["department"] = department
|
|
54
|
-
if department_page_id is not None:
|
|
55
|
-
payload["department_page_id"] = department_page_id
|
|
56
|
-
payload["confluence_ancestry_path"] = [
|
|
57
|
-
{"page_id": department_page_id, "title": department or department_page_id},
|
|
58
|
-
{"page_id": key, "title": name or key},
|
|
59
|
-
]
|
|
60
|
-
return payload
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
def _patch_parent_manifest_updates(monkeypatch: pytest.MonkeyPatch) -> None:
|
|
64
|
-
def _update(*, dispatch_manifest_path: Path, updates: dict) -> None:
|
|
65
|
-
payload = json.loads(dispatch_manifest_path.read_text(encoding="utf-8"))
|
|
66
|
-
payload.update(updates)
|
|
67
|
-
dispatch_manifest_path.write_text(json.dumps(payload, indent=2, default=str), encoding="utf-8")
|
|
68
|
-
|
|
69
|
-
monkeypatch.setattr(workflow_cmds, "_write_dispatch_manifest_update", _update)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
def test_workflow_projects_writes_parent_manifest_and_progress_state(
|
|
73
|
-
tmp_path: Path,
|
|
74
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
75
|
-
) -> None:
|
|
76
|
-
monkeypatch.setattr(workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state")
|
|
77
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
78
|
-
monkeypatch.setattr(
|
|
79
|
-
workflow_cmds,
|
|
80
|
-
"_load_manifest_payload_from_state",
|
|
81
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR", "P.NTTT", "88716694")]},
|
|
82
|
-
)
|
|
83
|
-
monkeypatch.setattr(
|
|
84
|
-
workflow_cmds,
|
|
85
|
-
"_run_parent_prepare_job",
|
|
86
|
-
lambda **kwargs: {"ok": True, "payload": {"ready": True, "readiness_summary": []}},
|
|
87
|
-
)
|
|
88
|
-
monkeypatch.setattr(
|
|
89
|
-
workflow_cmds,
|
|
90
|
-
"_run_parent_workflow_project_job",
|
|
91
|
-
lambda **kwargs: {
|
|
92
|
-
"ok": True,
|
|
93
|
-
"payload": {
|
|
94
|
-
"workflow": "project_completed",
|
|
95
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
96
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
)
|
|
100
|
-
|
|
101
|
-
result = runner.invoke(
|
|
102
|
-
cli.app,
|
|
103
|
-
[
|
|
104
|
-
"workflow-projects",
|
|
105
|
-
"--project-storage-keys",
|
|
106
|
-
"88727304",
|
|
107
|
-
"--report-dir",
|
|
108
|
-
str(tmp_path),
|
|
109
|
-
],
|
|
110
|
-
)
|
|
111
|
-
|
|
112
|
-
assert result.exit_code == 0, result.output
|
|
113
|
-
manifest_path = tmp_path / "dispatch-manifest.json"
|
|
114
|
-
progress_path = tmp_path / "dispatch-progress.state"
|
|
115
|
-
summary_path = tmp_path / "cross-project-summary.json"
|
|
116
|
-
assert manifest_path.exists()
|
|
117
|
-
assert progress_path.exists()
|
|
118
|
-
assert summary_path.exists()
|
|
119
|
-
|
|
120
|
-
manifest = json.loads(manifest_path.read_text(encoding="utf-8"))
|
|
121
|
-
progress = json.loads(progress_path.read_text(encoding="utf-8"))
|
|
122
|
-
summary = json.loads(summary_path.read_text(encoding="utf-8"))
|
|
123
|
-
|
|
124
|
-
assert manifest["schema"] == "workflow-projects.dispatch-manifest.v1"
|
|
125
|
-
assert manifest["max_projects_prepare_concurrent"] == 3
|
|
126
|
-
assert manifest["max_projects_concurrent"] == 3
|
|
127
|
-
assert manifest["child_max_concurrent"] == 6
|
|
128
|
-
assert manifest["pressure_diagnostics"]["selected_projects"] == 1
|
|
129
|
-
assert manifest["pressure_diagnostics"]["effective_prepare_concurrency"] == 1
|
|
130
|
-
assert manifest["pressure_diagnostics"]["effective_analysis_concurrency"] == 1
|
|
131
|
-
assert len(manifest["projects"]) == 1
|
|
132
|
-
assert manifest["projects"][0]["project_title"] == "PAR"
|
|
133
|
-
assert manifest["projects"][0]["project_page"] == {"page_id": "88727304", "title": "PAR"}
|
|
134
|
-
assert manifest["projects"][0]["department_page"] == {"page_id": "88716694", "title": "P.NTTT"}
|
|
135
|
-
assert progress["schema"] == "workflow-projects.dispatch-progress-state.v1"
|
|
136
|
-
assert progress["status"] == "completed"
|
|
137
|
-
assert progress["pressure_diagnostics"]["selected_projects"] == 1
|
|
138
|
-
assert summary["counts"]["completed"] == 1
|
|
139
|
-
assert summary["pressure_diagnostics"]["selected_projects"] == 1
|
|
140
|
-
assert summary["pressure_diagnostics"]["max_parallel_repo_slots"] == 6
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
def test_workflow_projects_explicit_keys_fail_when_subset_missing(
|
|
144
|
-
tmp_path: Path,
|
|
145
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
146
|
-
) -> None:
|
|
147
|
-
monkeypatch.setattr(workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state")
|
|
148
|
-
monkeypatch.setattr(
|
|
149
|
-
workflow_cmds,
|
|
150
|
-
"_load_manifest_payload_from_state",
|
|
151
|
-
lambda state_dsn: {"projects": [_project_payload("88718856", "Participant Management")]},
|
|
152
|
-
)
|
|
153
|
-
|
|
154
|
-
result = runner.invoke(
|
|
155
|
-
cli.app,
|
|
156
|
-
[
|
|
157
|
-
"workflow-projects",
|
|
158
|
-
"--project-storage-keys",
|
|
159
|
-
"88718856,88718877",
|
|
160
|
-
"--report-dir",
|
|
161
|
-
str(tmp_path),
|
|
162
|
-
],
|
|
163
|
-
)
|
|
164
|
-
|
|
165
|
-
assert result.exit_code == 2
|
|
166
|
-
assert "Requested --project-storage-keys missing from current" in result.output
|
|
167
|
-
assert "88718877" in result.output
|
|
168
|
-
assert not (tmp_path / "dispatch-manifest.json").exists()
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
def test_workflow_projects_require_all_materials_blocks_run_and_emits_json(
|
|
172
|
-
tmp_path: Path,
|
|
173
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
174
|
-
) -> None:
|
|
175
|
-
monkeypatch.setattr(workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state")
|
|
176
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
177
|
-
monkeypatch.setattr(
|
|
178
|
-
workflow_cmds,
|
|
179
|
-
"_load_manifest_payload_from_state",
|
|
180
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR"), _project_payload("88718940", "CEP")]},
|
|
181
|
-
)
|
|
182
|
-
|
|
183
|
-
def _prepare(**kwargs):
|
|
184
|
-
if kwargs["project_storage_key"] == "88727304":
|
|
185
|
-
return {"ok": True, "payload": {"ready": True}}
|
|
186
|
-
return {"ok": False, "payload": {"ready": False, "error": "missing_materials"}, "error": "missing_materials"}
|
|
187
|
-
|
|
188
|
-
workflow_calls: list[dict] = []
|
|
189
|
-
monkeypatch.setattr(workflow_cmds, "_run_parent_prepare_job", _prepare)
|
|
190
|
-
monkeypatch.setattr(
|
|
191
|
-
workflow_cmds,
|
|
192
|
-
"_run_parent_workflow_project_job",
|
|
193
|
-
lambda **kwargs: workflow_calls.append(kwargs) or {"ok": True, "payload": {"workflow": "project_completed"}},
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
result = runner.invoke(
|
|
197
|
-
cli.app,
|
|
198
|
-
[
|
|
199
|
-
"--json-only",
|
|
200
|
-
"workflow-projects",
|
|
201
|
-
"--project-storage-keys",
|
|
202
|
-
"88727304,88718940",
|
|
203
|
-
"--report-dir",
|
|
204
|
-
str(tmp_path),
|
|
205
|
-
"--require-all-materials",
|
|
206
|
-
],
|
|
207
|
-
)
|
|
208
|
-
|
|
209
|
-
assert result.exit_code == 0, result.output
|
|
210
|
-
payload = json.loads(result.output)
|
|
211
|
-
assert payload["workflow"] == "workflow_projects_blocked"
|
|
212
|
-
assert payload["counts"]["failed"] >= 1 or payload["counts"]["skipped"] >= 1
|
|
213
|
-
assert payload["pressure_diagnostics"]["selected_projects"] == 2
|
|
214
|
-
assert payload["pressure_diagnostics"]["blocked_projects"] >= 1
|
|
215
|
-
assert workflow_calls == []
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
def test_enrich_selected_projects_with_department_lineage_reuses_sibling_department_page() -> None:
|
|
219
|
-
manifest_payload = {
|
|
220
|
-
"projects": [
|
|
221
|
-
{"project_name": "invalid-row", "department": "3.2.4 Nền tảng thanh toán"},
|
|
222
|
-
_project_payload("88718943", "Core Payment", "3.2.4 Nền tảng thanh toán"),
|
|
223
|
-
_project_payload("88718977", "Auto Payment", "3.2.4 Nền tảng thanh toán", "88716694"),
|
|
224
|
-
]
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
enriched = workflow_cmds._enrich_selected_projects_with_department_lineage(
|
|
228
|
-
selected_projects=[manifest_payload["projects"][0]],
|
|
229
|
-
manifest_payload=manifest_payload,
|
|
230
|
-
)
|
|
231
|
-
|
|
232
|
-
assert enriched[0]["department_page_id"] == "88716694"
|
|
233
|
-
assert enriched[0]["department"] == "3.2.4 Nền tảng thanh toán"
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
def test_prepare_target_projects_from_manifest_skips_polluted_root_rows() -> None:
|
|
237
|
-
manifest_payload = {
|
|
238
|
-
"projects": [
|
|
239
|
-
{
|
|
240
|
-
"project_storage_key": "88716675",
|
|
241
|
-
"page_id": "88716675",
|
|
242
|
-
"project_name": "3.2 Các hệ thống, nền tảng sản phẩm",
|
|
243
|
-
"registry_page_id": "88716675",
|
|
244
|
-
"root_page_id": "88716675",
|
|
245
|
-
"department_assignment_reason": "unassigned:lineage_missing_ancestor",
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"project_storage_key": "legacy-pay",
|
|
249
|
-
"project_name": "legacy-pay",
|
|
250
|
-
"registry_page_id": "88716675",
|
|
251
|
-
"department": "3.2.4 Nền tảng thanh toán",
|
|
252
|
-
"department_page_id": None,
|
|
253
|
-
"root_page_id": None,
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"project_storage_key": "88718943",
|
|
257
|
-
"page_id": "88718943",
|
|
258
|
-
"project_name": "Core Payment",
|
|
259
|
-
"registry_page_id": "88716675",
|
|
260
|
-
"department": "3.2.4 Nền tảng thanh toán",
|
|
261
|
-
"department_page_id": "88716694",
|
|
262
|
-
"root_page_id": "88716675",
|
|
263
|
-
"department_assignment_reason": "derived_from_candidate_root_anchor",
|
|
264
|
-
"confluence_ancestry_path": [
|
|
265
|
-
{"page_id": "88716675", "title": "3.2 Các hệ thống, nền tảng sản phẩm"},
|
|
266
|
-
{"page_id": "88716694", "title": "3.2.4 Nền tảng thanh toán"},
|
|
267
|
-
{"page_id": "88718943", "title": "Core Payment"},
|
|
268
|
-
],
|
|
269
|
-
},
|
|
270
|
-
]
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
selected = workflow_cmds._prepare_target_projects_from_manifest(
|
|
274
|
-
manifest_payload,
|
|
275
|
-
project_selector=None,
|
|
276
|
-
registry_page_selector="88716675",
|
|
277
|
-
)
|
|
278
|
-
|
|
279
|
-
assert [project["project_storage_key"] for project in selected] == ["88718943"]
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
def test_workflow_projects_registry_page_refresh_discovers_projects_and_runs_child_workflow(
|
|
283
|
-
tmp_path: Path,
|
|
284
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
285
|
-
) -> None:
|
|
286
|
-
monkeypatch.setattr(workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state")
|
|
287
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
288
|
-
|
|
289
|
-
state_payloads = [
|
|
290
|
-
{"projects": []},
|
|
291
|
-
{"projects": [_project_payload("88727304", "PAR")]},
|
|
292
|
-
]
|
|
293
|
-
|
|
294
|
-
def _load_manifest(_state_dsn: str) -> dict:
|
|
295
|
-
if len(state_payloads) > 1:
|
|
296
|
-
return state_payloads.pop(0)
|
|
297
|
-
return state_payloads[0]
|
|
298
|
-
|
|
299
|
-
parse_calls: list[dict] = []
|
|
300
|
-
|
|
301
|
-
def _invoke(callback, /, **overrides):
|
|
302
|
-
parse_calls.append({"callback": getattr(callback, "__name__", str(callback)), **overrides})
|
|
303
|
-
|
|
304
|
-
prepare_calls: list[dict] = []
|
|
305
|
-
workflow_calls: list[dict] = []
|
|
306
|
-
|
|
307
|
-
monkeypatch.setattr(workflow_cmds, "_load_manifest_payload_from_state", _load_manifest)
|
|
308
|
-
monkeypatch.setattr(workflow_cmds, "_invoke_typer_callback", _invoke)
|
|
309
|
-
monkeypatch.setattr(
|
|
310
|
-
workflow_cmds,
|
|
311
|
-
"_run_parent_prepare_job",
|
|
312
|
-
lambda **kwargs: prepare_calls.append(kwargs) or {"ok": True, "payload": {"ready": True}},
|
|
313
|
-
)
|
|
314
|
-
monkeypatch.setattr(
|
|
315
|
-
workflow_cmds,
|
|
316
|
-
"_run_parent_workflow_project_job",
|
|
317
|
-
lambda **kwargs: (
|
|
318
|
-
workflow_calls.append(kwargs)
|
|
319
|
-
or {
|
|
320
|
-
"ok": True,
|
|
321
|
-
"payload": {
|
|
322
|
-
"workflow": "project_completed",
|
|
323
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
324
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
325
|
-
},
|
|
326
|
-
}
|
|
327
|
-
),
|
|
328
|
-
)
|
|
329
|
-
|
|
330
|
-
result = runner.invoke(
|
|
331
|
-
cli.app,
|
|
332
|
-
[
|
|
333
|
-
"workflow-projects",
|
|
334
|
-
"--registry-page",
|
|
335
|
-
"88700000",
|
|
336
|
-
"--report-dir",
|
|
337
|
-
str(tmp_path),
|
|
338
|
-
],
|
|
339
|
-
)
|
|
340
|
-
|
|
341
|
-
assert result.exit_code == 0, result.output
|
|
342
|
-
assert parse_calls and parse_calls[0]["registry_page"] == "88700000"
|
|
343
|
-
assert prepare_calls and prepare_calls[0]["project_storage_key"] == "88727304"
|
|
344
|
-
assert workflow_calls and workflow_calls[0]["project_storage_key"] == "88727304"
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
def test_workflow_projects_upload_enabled_passes_child_upload_flags_and_collects_upload_outputs(
|
|
348
|
-
tmp_path: Path,
|
|
349
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
350
|
-
) -> None:
|
|
351
|
-
monkeypatch.setattr(workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state")
|
|
352
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
353
|
-
monkeypatch.setattr(
|
|
354
|
-
workflow_cmds,
|
|
355
|
-
"_load_manifest_payload_from_state",
|
|
356
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR")]},
|
|
357
|
-
)
|
|
358
|
-
monkeypatch.setattr(
|
|
359
|
-
workflow_cmds,
|
|
360
|
-
"_run_parent_prepare_job",
|
|
361
|
-
lambda **kwargs: {"ok": True, "payload": {"ready": True}},
|
|
362
|
-
)
|
|
363
|
-
|
|
364
|
-
workflow_calls: list[dict] = []
|
|
365
|
-
|
|
366
|
-
def _run_child(**kwargs):
|
|
367
|
-
workflow_calls.append(kwargs)
|
|
368
|
-
return {
|
|
369
|
-
"ok": True,
|
|
370
|
-
"payload": {
|
|
371
|
-
"workflow": "project_completed",
|
|
372
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
373
|
-
"upload_summary": {
|
|
374
|
-
"enabled": True,
|
|
375
|
-
"errors": 0,
|
|
376
|
-
"repo_pages_uploaded": 2,
|
|
377
|
-
"aggregate_page_uploaded": True,
|
|
378
|
-
},
|
|
379
|
-
"confluence_repo_page_ids": {"repo-a": "111", "repo-b": "222"},
|
|
380
|
-
"confluence_aggregate_page_id": "333",
|
|
381
|
-
"upload_errors": [],
|
|
382
|
-
},
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
monkeypatch.setattr(workflow_cmds, "_run_parent_workflow_project_job", _run_child)
|
|
386
|
-
|
|
387
|
-
result = runner.invoke(
|
|
388
|
-
cli.app,
|
|
389
|
-
[
|
|
390
|
-
"--json-only",
|
|
391
|
-
"workflow-projects",
|
|
392
|
-
"--project-storage-keys",
|
|
393
|
-
"88727304",
|
|
394
|
-
"--report-dir",
|
|
395
|
-
str(tmp_path),
|
|
396
|
-
"--upload-to-confluence",
|
|
397
|
-
"--upload-attachments",
|
|
398
|
-
"--incremental-upload",
|
|
399
|
-
"--force-rerun",
|
|
400
|
-
"--no-ast-grep",
|
|
401
|
-
"--no-cross-repo-evidence",
|
|
402
|
-
"--no-knowledge-agent",
|
|
403
|
-
"--confluence-parent",
|
|
404
|
-
"999999",
|
|
405
|
-
],
|
|
406
|
-
)
|
|
407
|
-
|
|
408
|
-
assert result.exit_code == 0, result.output
|
|
409
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
410
|
-
assert workflow_calls[0]["upload_to_confluence"] is True
|
|
411
|
-
assert workflow_calls[0]["confluence_parent"] == "999999"
|
|
412
|
-
assert workflow_calls[0]["upload_attachments"] is True
|
|
413
|
-
assert workflow_calls[0]["incremental_upload"] is True
|
|
414
|
-
assert workflow_calls[0]["force_rerun"] is True
|
|
415
|
-
assert workflow_calls[0]["ast_grep"] is False
|
|
416
|
-
assert workflow_calls[0]["cross_repo_evidence"] is False
|
|
417
|
-
assert workflow_calls[0]["knowledge_agent"] is False
|
|
418
|
-
|
|
419
|
-
payload = json.loads(result.output)
|
|
420
|
-
assert payload["workflow"] == "workflow_projects_completed"
|
|
421
|
-
project_payload = payload["projects"][0]
|
|
422
|
-
assert project_payload["upload_summary"]["enabled"] is True
|
|
423
|
-
assert project_payload["confluence_repo_page_ids"] == {"repo-a": "111", "repo-b": "222"}
|
|
424
|
-
assert project_payload["confluence_aggregate_page_id"] == "333"
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
def test_workflow_projects_surfaces_prepare_readiness_completeness_and_pressure_diagnostics(
|
|
428
|
-
tmp_path: Path,
|
|
429
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
430
|
-
) -> None:
|
|
431
|
-
monkeypatch.setattr(workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state")
|
|
432
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
433
|
-
monkeypatch.setattr(
|
|
434
|
-
workflow_cmds,
|
|
435
|
-
"_load_manifest_payload_from_state",
|
|
436
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR")]},
|
|
437
|
-
)
|
|
438
|
-
monkeypatch.setattr(
|
|
439
|
-
workflow_cmds,
|
|
440
|
-
"_run_parent_prepare_job",
|
|
441
|
-
lambda **kwargs: {
|
|
442
|
-
"ok": True,
|
|
443
|
-
"payload": {
|
|
444
|
-
"ready": True,
|
|
445
|
-
"readiness_summary": [{"repo": "merchant-report", "ready": True}],
|
|
446
|
-
"completeness_summary": {"completeness_pct": 95, "readiness_status": "ready"},
|
|
447
|
-
},
|
|
448
|
-
},
|
|
449
|
-
)
|
|
450
|
-
monkeypatch.setattr(
|
|
451
|
-
workflow_cmds,
|
|
452
|
-
"_run_parent_workflow_project_job",
|
|
453
|
-
lambda **kwargs: {
|
|
454
|
-
"ok": True,
|
|
455
|
-
"payload": {
|
|
456
|
-
"workflow": "project_completed",
|
|
457
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
458
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
459
|
-
},
|
|
460
|
-
},
|
|
461
|
-
)
|
|
462
|
-
|
|
463
|
-
result = runner.invoke(
|
|
464
|
-
cli.app,
|
|
465
|
-
[
|
|
466
|
-
"--json-only",
|
|
467
|
-
"workflow-projects",
|
|
468
|
-
"--project-storage-keys",
|
|
469
|
-
"88727304",
|
|
470
|
-
"--report-dir",
|
|
471
|
-
str(tmp_path),
|
|
472
|
-
"--max-projects-prepare-concurrent",
|
|
473
|
-
"4",
|
|
474
|
-
"--max-projects-concurrent",
|
|
475
|
-
"3",
|
|
476
|
-
"--max-concurrent",
|
|
477
|
-
"7",
|
|
478
|
-
],
|
|
479
|
-
)
|
|
480
|
-
|
|
481
|
-
assert result.exit_code == 0, result.output
|
|
482
|
-
payload = json.loads(result.output)
|
|
483
|
-
project_payload = payload["projects"][0]
|
|
484
|
-
assert project_payload["readiness_summary"] == [{"repo": "merchant-report", "ready": True}]
|
|
485
|
-
assert project_payload["completeness_summary"] == {"completeness_pct": 95, "readiness_status": "ready"}
|
|
486
|
-
assert payload["pressure_diagnostics"]["selected_projects"] == 1
|
|
487
|
-
assert payload["pressure_diagnostics"]["effective_prepare_concurrency"] == 1
|
|
488
|
-
assert payload["pressure_diagnostics"]["effective_analysis_concurrency"] == 1
|
|
489
|
-
assert payload["pressure_diagnostics"]["child_max_concurrent"] == 7
|
|
490
|
-
assert payload["pressure_diagnostics"]["max_parallel_repo_slots"] == 7
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
def test_workflow_projects_default_all_parent_preflight_blocks_when_all_profiles_unavailable(
|
|
494
|
-
tmp_path: Path,
|
|
495
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
496
|
-
) -> None:
|
|
497
|
-
monkeypatch.setattr(workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state")
|
|
498
|
-
monkeypatch.setattr(
|
|
499
|
-
workflow_cmds,
|
|
500
|
-
"_load_manifest_payload_from_state",
|
|
501
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR")]},
|
|
502
|
-
)
|
|
503
|
-
monkeypatch.setattr(workflow_cmds, "list_runtime_profile_names", lambda: ["profile-a", "profile-b"])
|
|
504
|
-
monkeypatch.setattr(
|
|
505
|
-
workflow_cmds,
|
|
506
|
-
"_evaluate_profiles_availability",
|
|
507
|
-
lambda **kwargs: {
|
|
508
|
-
"mode": str(kwargs["mode"]),
|
|
509
|
-
"checks": [
|
|
510
|
-
{"profile": "profile-a", "availability_status": "unavailable"},
|
|
511
|
-
{"profile": "profile-b", "availability_status": "unavailable"},
|
|
512
|
-
],
|
|
513
|
-
"available_profiles": [],
|
|
514
|
-
"unavailable_profiles": ["profile-a", "profile-b"],
|
|
515
|
-
},
|
|
516
|
-
)
|
|
517
|
-
|
|
518
|
-
workflow_calls: list[dict[str, object]] = []
|
|
519
|
-
monkeypatch.setattr(
|
|
520
|
-
workflow_cmds,
|
|
521
|
-
"_run_parent_workflow_project_job",
|
|
522
|
-
lambda **kwargs: workflow_calls.append(kwargs) or {"ok": True, "payload": {"workflow": "project_completed"}},
|
|
523
|
-
)
|
|
524
|
-
|
|
525
|
-
result = runner.invoke(
|
|
526
|
-
cli.app,
|
|
527
|
-
[
|
|
528
|
-
"--json-only",
|
|
529
|
-
"workflow-projects",
|
|
530
|
-
"--project-storage-keys",
|
|
531
|
-
"88727304",
|
|
532
|
-
"--report-dir",
|
|
533
|
-
str(tmp_path),
|
|
534
|
-
],
|
|
535
|
-
)
|
|
536
|
-
|
|
537
|
-
assert result.exit_code == 1
|
|
538
|
-
payload = json.loads(result.output)
|
|
539
|
-
assert payload["error"] == "profile_availability_preflight_failed"
|
|
540
|
-
assert payload["scope"] == "workflow-projects"
|
|
541
|
-
assert payload["requested_profiles"] == ["profile-a", "profile-b"]
|
|
542
|
-
assert workflow_calls == []
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
def test_workflow_projects_parent_entries_expose_derived_child_status_fields(
|
|
546
|
-
tmp_path: Path,
|
|
547
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
548
|
-
) -> None:
|
|
549
|
-
monkeypatch.setattr(workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state")
|
|
550
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
551
|
-
monkeypatch.setattr(
|
|
552
|
-
workflow_cmds,
|
|
553
|
-
"_load_manifest_payload_from_state",
|
|
554
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR")]},
|
|
555
|
-
)
|
|
556
|
-
monkeypatch.setattr(
|
|
557
|
-
workflow_cmds,
|
|
558
|
-
"_run_parent_prepare_job",
|
|
559
|
-
lambda **kwargs: {"ok": True, "payload": {"ready": True}},
|
|
560
|
-
)
|
|
561
|
-
monkeypatch.setattr(
|
|
562
|
-
workflow_cmds,
|
|
563
|
-
"_run_parent_workflow_project_job",
|
|
564
|
-
lambda **kwargs: {
|
|
565
|
-
"ok": True,
|
|
566
|
-
"payload": {
|
|
567
|
-
"workflow": "project_completed",
|
|
568
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
569
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
570
|
-
},
|
|
571
|
-
},
|
|
572
|
-
)
|
|
573
|
-
|
|
574
|
-
result = runner.invoke(
|
|
575
|
-
cli.app,
|
|
576
|
-
[
|
|
577
|
-
"--json-only",
|
|
578
|
-
"workflow-projects",
|
|
579
|
-
"--project-storage-keys",
|
|
580
|
-
"88727304",
|
|
581
|
-
"--report-dir",
|
|
582
|
-
str(tmp_path),
|
|
583
|
-
],
|
|
584
|
-
)
|
|
585
|
-
|
|
586
|
-
assert result.exit_code == 0, result.output
|
|
587
|
-
payload = json.loads(result.output)
|
|
588
|
-
project_payload = payload["projects"][0]
|
|
589
|
-
|
|
590
|
-
assert project_payload["child_thread_id"].endswith("--project-88727304")
|
|
591
|
-
assert project_payload["child_report_dir"] == str(tmp_path / "project-88727304")
|
|
592
|
-
assert project_payload["execution_status"] == "completed"
|
|
593
|
-
assert project_payload["recovery_status"] == "completed"
|
|
594
|
-
assert project_payload["execution_status_source"] == "parent_terminal_state_mapping"
|
|
595
|
-
assert project_payload["recovery_status_source"] == "child_payload_or_artifact_classification"
|
|
596
|
-
assert project_payload["upload_status_source"] == "child_upload_summary"
|
|
597
|
-
assert isinstance(project_payload["workflow_result"], dict)
|
|
598
|
-
assert project_payload["workflow_result"]["workflow"] == "project_completed"
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
def test_workflow_projects_rejects_non_parent_resume_manifest(
|
|
602
|
-
tmp_path: Path,
|
|
603
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
604
|
-
) -> None:
|
|
605
|
-
monkeypatch.setattr(workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state")
|
|
606
|
-
bad_manifest = tmp_path / "dispatch-manifest.json"
|
|
607
|
-
bad_manifest.write_text(
|
|
608
|
-
json.dumps({"schema": "workflow-project.dispatch-manifest.v1", "thread_id": "child-thread"}),
|
|
609
|
-
encoding="utf-8",
|
|
610
|
-
)
|
|
611
|
-
|
|
612
|
-
result = runner.invoke(
|
|
613
|
-
cli.app,
|
|
614
|
-
[
|
|
615
|
-
"workflow-projects",
|
|
616
|
-
"--project-storage-keys",
|
|
617
|
-
"88727304",
|
|
618
|
-
"--resume-dispatch-manifest",
|
|
619
|
-
str(bad_manifest),
|
|
620
|
-
],
|
|
621
|
-
)
|
|
622
|
-
|
|
623
|
-
assert result.exit_code != 0
|
|
624
|
-
assert "resume-dispatch-manifest" in result.output or "workflow-projects" in result.output
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
def test_partition_row_keys_by_profile_round_robins_across_profiles() -> None:
|
|
628
|
-
shard_map = workflow_cmds._partition_row_keys_by_profile(
|
|
629
|
-
profiles=["zai-openai", "alibaba-openai", "alibaba-anthropic"],
|
|
630
|
-
row_keys=["rk-1", "rk-2", "rk-3", "rk-4", "rk-5"],
|
|
631
|
-
)
|
|
632
|
-
|
|
633
|
-
assert shard_map == {
|
|
634
|
-
"zai-openai": ["rk-1", "rk-4"],
|
|
635
|
-
"alibaba-openai": ["rk-2", "rk-5"],
|
|
636
|
-
"alibaba-anthropic": ["rk-3"],
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
def test_build_row_sharded_jobs_emits_multiple_jobs_for_one_repo() -> None:
|
|
641
|
-
jobs, assignment, idle_profiles = workflow_cmds._build_row_sharded_jobs(
|
|
642
|
-
profiles=["zai-openai", "alibaba-openai", "alibaba-anthropic"],
|
|
643
|
-
repos=[("par-merchant-billing", Path("/tmp/merchant-billing"))],
|
|
644
|
-
repo_row_keys={
|
|
645
|
-
"par-merchant-billing": ["rk-1", "rk-2", "rk-3", "rk-4"],
|
|
646
|
-
},
|
|
647
|
-
)
|
|
648
|
-
|
|
649
|
-
assert assignment == {"par-merchant-billing": "zai-openai"}
|
|
650
|
-
assert idle_profiles == []
|
|
651
|
-
assert len(jobs) == 3
|
|
652
|
-
assert {job["profile"] for job in jobs} == {"zai-openai", "alibaba-openai", "alibaba-anthropic"}
|
|
653
|
-
assert all(job["repo_key"] == "par-merchant-billing" for job in jobs)
|
|
654
|
-
assert all(job["stage"] == "row_sharded" for job in jobs)
|
|
655
|
-
assert all(job["extra_target"] for job in jobs)
|
|
656
|
-
assert any(job["extra_target"] == "rk-1,rk-4" for job in jobs)
|
|
657
|
-
assert any(job["extra_target"] == "rk-2" for job in jobs)
|
|
658
|
-
assert any(job["extra_target"] == "rk-3" for job in jobs)
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
def test_resolve_repo_row_keys_for_sharding_ignores_stale_default_report_artifacts(
|
|
662
|
-
tmp_path: Path,
|
|
663
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
664
|
-
) -> None:
|
|
665
|
-
stale_report_dir = Path("/Users/vds-ai/.vds/cache/reports/merchant-billing")
|
|
666
|
-
stale_report_dir.mkdir(parents=True, exist_ok=True)
|
|
667
|
-
stale_mapping = stale_report_dir / "audit-checklist.requirement-mapping.preflight.json"
|
|
668
|
-
stale_mapping.write_text(json.dumps({"rows": [{"row_key": "stale:88722450:wrong"}]}), encoding="utf-8")
|
|
669
|
-
|
|
670
|
-
class _FakeRow:
|
|
671
|
-
def __init__(self, row_key: str) -> None:
|
|
672
|
-
self.row_key = row_key
|
|
673
|
-
|
|
674
|
-
def model_dump(self, mode: str = "json") -> dict[str, str]:
|
|
675
|
-
return {"row_key": self.row_key}
|
|
676
|
-
|
|
677
|
-
async def _fake_load_confluence_checklist_rows(**kwargs):
|
|
678
|
-
return ([_FakeRow("default:88722450:live-a"), _FakeRow("default:88722450:live-b")], {"version": 1})
|
|
679
|
-
|
|
680
|
-
monkeypatch.setattr(
|
|
681
|
-
"vds_audit_orchestrator.engine.confluence_checklist_contract.load_confluence_checklist_rows",
|
|
682
|
-
_fake_load_confluence_checklist_rows,
|
|
683
|
-
)
|
|
684
|
-
|
|
685
|
-
try:
|
|
686
|
-
resolved = workflow_cmds._resolve_repo_row_keys_for_sharding(
|
|
687
|
-
confluence_server=None,
|
|
688
|
-
page_id="88722450",
|
|
689
|
-
profile_id="default",
|
|
690
|
-
repos=[("par-merchant-billing", tmp_path / "merchant-billing")],
|
|
691
|
-
)
|
|
692
|
-
finally:
|
|
693
|
-
stale_mapping.unlink(missing_ok=True)
|
|
694
|
-
|
|
695
|
-
assert resolved == {"par-merchant-billing": ["default:88722450:live-a", "default:88722450:live-b"]}
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
def test_resolve_repo_row_keys_for_sharding_filters_rows_by_explicit_target(
|
|
699
|
-
tmp_path: Path,
|
|
700
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
701
|
-
) -> None:
|
|
702
|
-
class _FakeRow:
|
|
703
|
-
def __init__(self, row_key: str, check_id: str) -> None:
|
|
704
|
-
self.row_key = row_key
|
|
705
|
-
self.check_id = check_id
|
|
706
|
-
|
|
707
|
-
def model_dump(self, mode: str = "json") -> dict[str, str]:
|
|
708
|
-
return {"row_key": self.row_key, "check_id": self.check_id}
|
|
709
|
-
|
|
710
|
-
async def _fake_load_confluence_checklist_rows(**kwargs):
|
|
711
|
-
return (
|
|
712
|
-
[
|
|
713
|
-
_FakeRow("default:88722450:security/auth", "CL-001"),
|
|
714
|
-
_FakeRow("default:88722450:security/logging", "CL-003"),
|
|
715
|
-
_FakeRow("default:88722450:security/rate-limit", "CL-005"),
|
|
716
|
-
],
|
|
717
|
-
{"version": 1},
|
|
718
|
-
)
|
|
719
|
-
|
|
720
|
-
monkeypatch.setattr(
|
|
721
|
-
"vds_audit_orchestrator.engine.confluence_checklist_contract.load_confluence_checklist_rows",
|
|
722
|
-
_fake_load_confluence_checklist_rows,
|
|
723
|
-
)
|
|
724
|
-
|
|
725
|
-
resolved = workflow_cmds._resolve_repo_row_keys_for_sharding(
|
|
726
|
-
confluence_server=None,
|
|
727
|
-
page_id="88722450",
|
|
728
|
-
profile_id="default",
|
|
729
|
-
repos=[("par-merchant-billing", tmp_path / "merchant-billing")],
|
|
730
|
-
target="CL-003",
|
|
731
|
-
)
|
|
732
|
-
|
|
733
|
-
assert resolved == {"par-merchant-billing": ["default:88722450:security/logging"]}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
def test_resolve_repo_row_keys_for_sharding_uses_per_repo_topology_page_id(
|
|
737
|
-
tmp_path: Path,
|
|
738
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
739
|
-
) -> None:
|
|
740
|
-
"""Row keys must be fetched using the topology page/profile for each repo.
|
|
741
|
-
|
|
742
|
-
When repo_checklist_topology maps a repo to a different checklist page (e.g. a
|
|
743
|
-
frontend repo maps to page 88729031 rather than the project-level page 88722450),
|
|
744
|
-
the row keys used as --target in the child shard job must come from that topology
|
|
745
|
-
page. Without the fix, the parent fetched all rows from the single project-level
|
|
746
|
-
page, producing keys like "default:88722450:..." while the child built its template
|
|
747
|
-
from the topology page, producing "default:88729031:...", causing all row-key
|
|
748
|
-
lookups to fail with "Row key(s) not found in template".
|
|
749
|
-
"""
|
|
750
|
-
|
|
751
|
-
class _FakeRow:
|
|
752
|
-
def __init__(self, row_key: str) -> None:
|
|
753
|
-
self.row_key = row_key
|
|
754
|
-
|
|
755
|
-
def model_dump(self, mode: str = "json") -> dict[str, str]:
|
|
756
|
-
return {"row_key": self.row_key}
|
|
757
|
-
|
|
758
|
-
backend_rows = [_FakeRow("default:88722450:security/auth"), _FakeRow("default:88722450:performance")]
|
|
759
|
-
frontend_rows = [_FakeRow("default:88729031:ui-accessibility"), _FakeRow("default:88729031:responsive-design")]
|
|
760
|
-
|
|
761
|
-
async def _fake_load_confluence_checklist_rows(**kwargs):
|
|
762
|
-
page_id = kwargs.get("page_id", "")
|
|
763
|
-
if page_id == "88729031":
|
|
764
|
-
return (frontend_rows, {"version": 1})
|
|
765
|
-
return (backend_rows, {"version": 1})
|
|
766
|
-
|
|
767
|
-
monkeypatch.setattr(
|
|
768
|
-
"vds_audit_orchestrator.engine.confluence_checklist_contract.load_confluence_checklist_rows",
|
|
769
|
-
_fake_load_confluence_checklist_rows,
|
|
770
|
-
)
|
|
771
|
-
|
|
772
|
-
repo_checklist_topology = {
|
|
773
|
-
"par-merchant-billing": {
|
|
774
|
-
"repo_type": "backend",
|
|
775
|
-
"checklist_page_id": "88722450",
|
|
776
|
-
"checklist_profile_id": "default",
|
|
777
|
-
},
|
|
778
|
-
"par-product-catalog-cms-fe": {
|
|
779
|
-
"repo_type": "frontend",
|
|
780
|
-
"checklist_page_id": "88729031",
|
|
781
|
-
"checklist_profile_id": "default",
|
|
782
|
-
},
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
resolved = workflow_cmds._resolve_repo_row_keys_for_sharding(
|
|
786
|
-
confluence_server=None,
|
|
787
|
-
page_id="88722450",
|
|
788
|
-
profile_id="default",
|
|
789
|
-
repos=[
|
|
790
|
-
("par-merchant-billing", tmp_path / "merchant-billing"),
|
|
791
|
-
("par-product-catalog-cms-fe", tmp_path / "product-catalog-cms-fe"),
|
|
792
|
-
],
|
|
793
|
-
repo_checklist_topology=repo_checklist_topology,
|
|
794
|
-
)
|
|
795
|
-
|
|
796
|
-
# Backend repo uses the backend page.
|
|
797
|
-
assert resolved["par-merchant-billing"] == [
|
|
798
|
-
"default:88722450:security/auth",
|
|
799
|
-
"default:88722450:performance",
|
|
800
|
-
]
|
|
801
|
-
# Frontend repo uses the topology-specified frontend page, NOT the global backend page.
|
|
802
|
-
assert resolved["par-product-catalog-cms-fe"] == [
|
|
803
|
-
"default:88729031:ui-accessibility",
|
|
804
|
-
"default:88729031:responsive-design",
|
|
805
|
-
]
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
def test_resolve_repo_row_keys_for_sharding_batches_identical_topology_pages(
|
|
809
|
-
tmp_path: Path,
|
|
810
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
811
|
-
) -> None:
|
|
812
|
-
"""Repos that share the same topology page/profile are batched into a single load."""
|
|
813
|
-
|
|
814
|
-
call_log: list[dict] = []
|
|
815
|
-
|
|
816
|
-
class _FakeRow:
|
|
817
|
-
def __init__(self, row_key: str) -> None:
|
|
818
|
-
self.row_key = row_key
|
|
819
|
-
|
|
820
|
-
def model_dump(self, mode: str = "json") -> dict[str, str]:
|
|
821
|
-
return {"row_key": self.row_key}
|
|
822
|
-
|
|
823
|
-
async def _fake_load_confluence_checklist_rows(**kwargs):
|
|
824
|
-
call_log.append({"page_id": kwargs.get("page_id"), "source_profile_id": kwargs.get("source_profile_id")})
|
|
825
|
-
return ([_FakeRow(f"default:{kwargs.get('page_id', '')}:check-a")], {"version": 1})
|
|
826
|
-
|
|
827
|
-
monkeypatch.setattr(
|
|
828
|
-
"vds_audit_orchestrator.engine.confluence_checklist_contract.load_confluence_checklist_rows",
|
|
829
|
-
_fake_load_confluence_checklist_rows,
|
|
830
|
-
)
|
|
831
|
-
|
|
832
|
-
# Three repos all sharing the same topology page — should result in ONE Confluence call.
|
|
833
|
-
repo_checklist_topology = {
|
|
834
|
-
"repo-a": {"repo_type": "backend", "checklist_page_id": "88722450", "checklist_profile_id": "default"},
|
|
835
|
-
"repo-b": {"repo_type": "backend", "checklist_page_id": "88722450", "checklist_profile_id": "default"},
|
|
836
|
-
"repo-c": {"repo_type": "backend", "checklist_page_id": "88722450", "checklist_profile_id": "default"},
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
resolved = workflow_cmds._resolve_repo_row_keys_for_sharding(
|
|
840
|
-
confluence_server=None,
|
|
841
|
-
page_id="88722450",
|
|
842
|
-
profile_id="default",
|
|
843
|
-
repos=[
|
|
844
|
-
("repo-a", tmp_path / "a"),
|
|
845
|
-
("repo-b", tmp_path / "b"),
|
|
846
|
-
("repo-c", tmp_path / "c"),
|
|
847
|
-
],
|
|
848
|
-
repo_checklist_topology=repo_checklist_topology,
|
|
849
|
-
)
|
|
850
|
-
|
|
851
|
-
# All three repos get the same row keys.
|
|
852
|
-
for repo_key in ("repo-a", "repo-b", "repo-c"):
|
|
853
|
-
assert resolved[repo_key] == ["default:88722450:check-a"]
|
|
854
|
-
|
|
855
|
-
# Only ONE Confluence fetch was needed (not three).
|
|
856
|
-
assert len(call_log) == 1
|
|
857
|
-
assert call_log[0]["page_id"] == "88722450"
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
def test_workflow_project_row_sharded_dispatch_summary_routes_into_row_sharded_aggregate_branch(
|
|
861
|
-
tmp_path: Path,
|
|
862
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
863
|
-
) -> None:
|
|
864
|
-
monkeypatch.setattr(workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state")
|
|
865
|
-
monkeypatch.setattr(
|
|
866
|
-
workflow_cmds, "_resolve_workflow_thread_id", lambda thread_id: thread_id or "phase131-rowshard"
|
|
867
|
-
)
|
|
868
|
-
monkeypatch.setattr(workflow_cmds, "list_runtime_profile_names", lambda: ["zai-openai", "alibaba-openai"])
|
|
869
|
-
monkeypatch.setattr(
|
|
870
|
-
workflow_cmds,
|
|
871
|
-
"_evaluate_profiles_availability",
|
|
872
|
-
lambda **kwargs: {
|
|
873
|
-
"mode": "active",
|
|
874
|
-
"checks": [],
|
|
875
|
-
"available_profiles": ["zai-openai", "alibaba-openai"],
|
|
876
|
-
"unavailable_profiles": [],
|
|
877
|
-
},
|
|
878
|
-
)
|
|
879
|
-
monkeypatch.setattr(
|
|
880
|
-
workflow_cmds,
|
|
881
|
-
"_project_repos_from_manifest",
|
|
882
|
-
lambda *args, **kwargs: (
|
|
883
|
-
_project_payload("88727304", "PAR"),
|
|
884
|
-
[("par-merchant-billing", Path("/tmp/merchant-billing"))],
|
|
885
|
-
),
|
|
886
|
-
)
|
|
887
|
-
monkeypatch.setattr(workflow_cmds, "_resolve_project_junction_bitbucket_keys", lambda **kwargs: None)
|
|
888
|
-
monkeypatch.setattr(workflow_cmds, "_classify_repo_checklist_topology", lambda **kwargs: {})
|
|
889
|
-
monkeypatch.setattr(
|
|
890
|
-
workflow_cmds,
|
|
891
|
-
"_check_project_already_completed",
|
|
892
|
-
lambda **kwargs: (
|
|
893
|
-
False,
|
|
894
|
-
{
|
|
895
|
-
"reason": "not_completed",
|
|
896
|
-
"completed_repo_keys": [],
|
|
897
|
-
"pending_repo_keys": ["par-merchant-billing"],
|
|
898
|
-
"completed_run_ids": [],
|
|
899
|
-
"artifact_status": {},
|
|
900
|
-
"require_artifacts": True,
|
|
901
|
-
"retrieval_snapshot_early_exit": False,
|
|
902
|
-
},
|
|
903
|
-
),
|
|
904
|
-
)
|
|
905
|
-
monkeypatch.setattr(workflow_cmds, "_materialize_project_repo_report_dirs", lambda **kwargs: None)
|
|
906
|
-
monkeypatch.setattr(
|
|
907
|
-
workflow_cmds,
|
|
908
|
-
"_generate_project_readiness_from_aggregate",
|
|
909
|
-
lambda **kwargs: {
|
|
910
|
-
"executive_summary": {"readiness_score_pct": 80.0},
|
|
911
|
-
"source": kwargs.get("source"),
|
|
912
|
-
},
|
|
913
|
-
)
|
|
914
|
-
monkeypatch.setattr(workflow_cmds, "_build_evidence_snapshot_binding", lambda **kwargs: {})
|
|
915
|
-
monkeypatch.setattr(workflow_cmds, "_build_retrieval_snapshot_binding", lambda **kwargs: {})
|
|
916
|
-
monkeypatch.setattr(workflow_cmds, "_persist_typed_run_terminal", lambda **kwargs: None)
|
|
917
|
-
monkeypatch.setattr(
|
|
918
|
-
workflow_cmds,
|
|
919
|
-
"_load_manifest_payload_from_state",
|
|
920
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR")]},
|
|
921
|
-
)
|
|
922
|
-
|
|
923
|
-
row_shard_merge_calls: list[dict] = []
|
|
924
|
-
|
|
925
|
-
monkeypatch.setattr(
|
|
926
|
-
workflow_cmds,
|
|
927
|
-
"_dispatch_multi_profile_workflows",
|
|
928
|
-
lambda **kwargs: {
|
|
929
|
-
"completed": 2,
|
|
930
|
-
"errors": 0,
|
|
931
|
-
"timeouts": 0,
|
|
932
|
-
"exceptions": 0,
|
|
933
|
-
"requeued": 0,
|
|
934
|
-
"skipped": 0,
|
|
935
|
-
"results": [
|
|
936
|
-
{
|
|
937
|
-
"status": "ok",
|
|
938
|
-
"repo_key": "par-merchant-billing",
|
|
939
|
-
"thread_id": "child-run-1",
|
|
940
|
-
"row_shard_index": 0,
|
|
941
|
-
"row_shard_count": 2,
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
"status": "ok",
|
|
945
|
-
"repo_key": "par-merchant-billing",
|
|
946
|
-
"thread_id": "child-run-2",
|
|
947
|
-
"row_shard_index": 1,
|
|
948
|
-
"row_shard_count": 2,
|
|
949
|
-
},
|
|
950
|
-
],
|
|
951
|
-
"lane_thread_ids": ["child-run-1", "child-run-2"],
|
|
952
|
-
"fallback_lane_thread_ids": [],
|
|
953
|
-
"jobs": [],
|
|
954
|
-
"resume_stats": {},
|
|
955
|
-
},
|
|
956
|
-
)
|
|
957
|
-
monkeypatch.setattr(
|
|
958
|
-
workflow_cmds,
|
|
959
|
-
"_merge_row_sharded_repo_runs",
|
|
960
|
-
lambda **kwargs: (
|
|
961
|
-
row_shard_merge_calls.append(kwargs)
|
|
962
|
-
or (
|
|
963
|
-
[
|
|
964
|
-
{
|
|
965
|
-
"repository": "par-merchant-billing",
|
|
966
|
-
"overall_score": 80.0,
|
|
967
|
-
"maturity_level": 4,
|
|
968
|
-
"gaps": [],
|
|
969
|
-
"aligned_practices": [],
|
|
970
|
-
}
|
|
971
|
-
],
|
|
972
|
-
["child-run-1", "child-run-2"],
|
|
973
|
-
[
|
|
974
|
-
{
|
|
975
|
-
"repo_storage_key": "par-merchant-billing",
|
|
976
|
-
"source": "row_sharded_merged",
|
|
977
|
-
"source_runs": ["child-run-1", "child-run-2"],
|
|
978
|
-
"overall_score": 80.0,
|
|
979
|
-
"merge_level": "row",
|
|
980
|
-
"critique_summary": {},
|
|
981
|
-
"rows": [
|
|
982
|
-
{
|
|
983
|
-
"check_id": "CL-001",
|
|
984
|
-
"row_id": "r1",
|
|
985
|
-
"row_index": 0,
|
|
986
|
-
"status": "PASS",
|
|
987
|
-
"score": 90.0,
|
|
988
|
-
"source_run_id": "child-run-1",
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
"check_id": "CL-002",
|
|
992
|
-
"row_id": "r2",
|
|
993
|
-
"row_index": 1,
|
|
994
|
-
"status": "PASS",
|
|
995
|
-
"score": 70.0,
|
|
996
|
-
"source_run_id": "child-run-2",
|
|
997
|
-
},
|
|
998
|
-
],
|
|
999
|
-
}
|
|
1000
|
-
],
|
|
1001
|
-
)
|
|
1002
|
-
),
|
|
1003
|
-
)
|
|
1004
|
-
|
|
1005
|
-
result = runner.invoke(
|
|
1006
|
-
cli.app,
|
|
1007
|
-
[
|
|
1008
|
-
"--json-only",
|
|
1009
|
-
"workflow-project",
|
|
1010
|
-
"--checkpointer",
|
|
1011
|
-
"memory",
|
|
1012
|
-
"--project-storage-key",
|
|
1013
|
-
"88727304",
|
|
1014
|
-
"--report-dir",
|
|
1015
|
-
str(tmp_path),
|
|
1016
|
-
"--profiles",
|
|
1017
|
-
"zai-openai,alibaba-openai",
|
|
1018
|
-
"--profile-availability",
|
|
1019
|
-
"active",
|
|
1020
|
-
],
|
|
1021
|
-
)
|
|
1022
|
-
|
|
1023
|
-
assert result.exit_code == 0, result.output
|
|
1024
|
-
payload = json.loads(result.output)
|
|
1025
|
-
assert payload["aggregation_summary"]["mode"] == "row_sharded_aggregate"
|
|
1026
|
-
assert row_shard_merge_calls, "row-sharded merge helper was not invoked"
|
|
1027
|
-
assert row_shard_merge_calls[0]["shard_run_ids_by_repo"] == {"par-merchant-billing": ["child-run-1", "child-run-2"]}
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
def test_rewrite_workflow_summary_as_failed_preserves_run_metadata(tmp_path: Path) -> None:
|
|
1031
|
-
summary_path = tmp_path / "workflow-summary.json"
|
|
1032
|
-
summary_path.write_text(
|
|
1033
|
-
json.dumps(
|
|
1034
|
-
{
|
|
1035
|
-
"status": "running",
|
|
1036
|
-
"thread_id": None,
|
|
1037
|
-
"run_parameters": None,
|
|
1038
|
-
"terminal_status_pending_checklist_artifacts": True,
|
|
1039
|
-
"summary_score_source": "synthesis_pending_checklist_artifacts",
|
|
1040
|
-
"synthesis": {
|
|
1041
|
-
"status": "running",
|
|
1042
|
-
"summary_score_source": "synthesis_pending_checklist_artifacts",
|
|
1043
|
-
"terminal_status_pending_checklist_artifacts": True,
|
|
1044
|
-
},
|
|
1045
|
-
},
|
|
1046
|
-
indent=2,
|
|
1047
|
-
),
|
|
1048
|
-
encoding="utf-8",
|
|
1049
|
-
)
|
|
1050
|
-
|
|
1051
|
-
workflow_cmds._rewrite_workflow_summary_as_failed(
|
|
1052
|
-
report_dir=tmp_path,
|
|
1053
|
-
thread_id="phase131-shard-1",
|
|
1054
|
-
error_message="Canonical checklist failed: boom",
|
|
1055
|
-
target_selector="rk-1,rk-2",
|
|
1056
|
-
target_selector_raw="rk-1,rk-2",
|
|
1057
|
-
prior_run_id="prior-run-1",
|
|
1058
|
-
run_parameters={"dispatch_job_id": "job-1", "row_shard_index": 1, "target": "rk-1,rk-2"},
|
|
1059
|
-
dispatch_context={
|
|
1060
|
-
"dispatch_job_id": "job-1",
|
|
1061
|
-
"origin_profile": "zai-openai",
|
|
1062
|
-
"executed_profile": "alibaba-openai",
|
|
1063
|
-
},
|
|
1064
|
-
)
|
|
1065
|
-
|
|
1066
|
-
payload = json.loads(summary_path.read_text(encoding="utf-8"))
|
|
1067
|
-
assert payload["status"] == "failed"
|
|
1068
|
-
assert payload["thread_id"] == "phase131-shard-1"
|
|
1069
|
-
assert payload["run_parameters"]["dispatch_job_id"] == "job-1"
|
|
1070
|
-
assert payload["dispatch_job_id"] == "job-1"
|
|
1071
|
-
assert payload["origin_profile"] == "zai-openai"
|
|
1072
|
-
assert payload["executed_profile"] == "alibaba-openai"
|
|
1073
|
-
assert payload["target_selector"] == "rk-1,rk-2"
|
|
1074
|
-
assert payload["prior_run_id"] == "prior-run-1"
|
|
1075
|
-
assert payload["terminal_status_pending_checklist_artifacts"] is False
|
|
1076
|
-
assert payload["summary_score_source"] == "canonical_checklist_failure"
|
|
1077
|
-
assert payload["synthesis"]["status"] == "failed"
|
|
1078
|
-
assert payload["synthesis"]["terminal_status_pending_checklist_artifacts"] is False
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
def test_merge_row_sharded_repo_runs_preserves_repo_local_source_runs(monkeypatch: pytest.MonkeyPatch) -> None:
|
|
1082
|
-
class _FakeStore:
|
|
1083
|
-
def __init__(self, dsn: str) -> None:
|
|
1084
|
-
self.dsn = dsn
|
|
1085
|
-
|
|
1086
|
-
def list_checklist_row_results(self, run_id: str) -> list[dict[str, object]]:
|
|
1087
|
-
payloads = {
|
|
1088
|
-
"run-a1": [
|
|
1089
|
-
{
|
|
1090
|
-
"row_key": "rk-a1",
|
|
1091
|
-
"row_index": 0,
|
|
1092
|
-
"status": "PASS",
|
|
1093
|
-
"score": 90.0,
|
|
1094
|
-
"check_id": "CL-001",
|
|
1095
|
-
"payload": {
|
|
1096
|
-
"score_percent": 90.0,
|
|
1097
|
-
"severity": "low",
|
|
1098
|
-
"requirement_text": "req-a1",
|
|
1099
|
-
"evidence_refs": [],
|
|
1100
|
-
},
|
|
1101
|
-
}
|
|
1102
|
-
],
|
|
1103
|
-
"run-a2": [
|
|
1104
|
-
{
|
|
1105
|
-
"row_key": "rk-a2",
|
|
1106
|
-
"row_index": 1,
|
|
1107
|
-
"status": "FAIL",
|
|
1108
|
-
"score": 40.0,
|
|
1109
|
-
"check_id": "CL-002",
|
|
1110
|
-
"payload": {
|
|
1111
|
-
"score_percent": 40.0,
|
|
1112
|
-
"severity": "high",
|
|
1113
|
-
"requirement_text": "req-a2",
|
|
1114
|
-
"evidence_refs": [],
|
|
1115
|
-
},
|
|
1116
|
-
}
|
|
1117
|
-
],
|
|
1118
|
-
"run-b1": [
|
|
1119
|
-
{
|
|
1120
|
-
"row_key": "rk-b1",
|
|
1121
|
-
"row_index": 0,
|
|
1122
|
-
"status": "PASS",
|
|
1123
|
-
"score": 80.0,
|
|
1124
|
-
"check_id": "CL-003",
|
|
1125
|
-
"payload": {
|
|
1126
|
-
"score_percent": 80.0,
|
|
1127
|
-
"severity": "low",
|
|
1128
|
-
"requirement_text": "req-b1",
|
|
1129
|
-
"evidence_refs": [],
|
|
1130
|
-
},
|
|
1131
|
-
}
|
|
1132
|
-
],
|
|
1133
|
-
}
|
|
1134
|
-
return payloads.get(run_id, [])
|
|
1135
|
-
|
|
1136
|
-
def close(self) -> None:
|
|
1137
|
-
return None
|
|
1138
|
-
|
|
1139
|
-
class _Budget:
|
|
1140
|
-
def to_telemetry(self) -> dict[str, object]:
|
|
1141
|
-
return {"mode": "test"}
|
|
1142
|
-
|
|
1143
|
-
@classmethod
|
|
1144
|
-
def from_env(cls) -> _Budget:
|
|
1145
|
-
return cls()
|
|
1146
|
-
|
|
1147
|
-
class _MergeLevel:
|
|
1148
|
-
ROW = "row"
|
|
1149
|
-
|
|
1150
|
-
class _RunInput:
|
|
1151
|
-
def __init__(self, *, run_id: str, repo_key: str, rows: list[dict[str, object]]) -> None:
|
|
1152
|
-
self.run_id = run_id
|
|
1153
|
-
self.repo_key = repo_key
|
|
1154
|
-
self.rows = rows
|
|
1155
|
-
|
|
1156
|
-
class _MergedRow:
|
|
1157
|
-
def __init__(
|
|
1158
|
-
self,
|
|
1159
|
-
*,
|
|
1160
|
-
row_id: str,
|
|
1161
|
-
row_index: int,
|
|
1162
|
-
status: str,
|
|
1163
|
-
score_percent: float,
|
|
1164
|
-
source_run_id: str,
|
|
1165
|
-
row_data: dict[str, object],
|
|
1166
|
-
) -> None:
|
|
1167
|
-
self.row_id = row_id
|
|
1168
|
-
self.row_index = row_index
|
|
1169
|
-
self.status = status
|
|
1170
|
-
self.score_percent = score_percent
|
|
1171
|
-
self.source_run_id = source_run_id
|
|
1172
|
-
self.row_data = row_data
|
|
1173
|
-
|
|
1174
|
-
class _MergedRepo:
|
|
1175
|
-
def __init__(self, *, overall_score: float, rows: list[_MergedRow]) -> None:
|
|
1176
|
-
self.overall_score = overall_score
|
|
1177
|
-
self.rows = rows
|
|
1178
|
-
self.merge_level = "row"
|
|
1179
|
-
|
|
1180
|
-
class _Merged:
|
|
1181
|
-
def __init__(self) -> None:
|
|
1182
|
-
self.repos = {
|
|
1183
|
-
"repo-a": _MergedRepo(
|
|
1184
|
-
overall_score=65.0,
|
|
1185
|
-
rows=[
|
|
1186
|
-
_MergedRow(
|
|
1187
|
-
row_id="rk-a1",
|
|
1188
|
-
row_index=0,
|
|
1189
|
-
status="PASS",
|
|
1190
|
-
score_percent=90.0,
|
|
1191
|
-
source_run_id="run-a1",
|
|
1192
|
-
row_data={"check_id": "CL-001", "finding": "ok", "severity": "low"},
|
|
1193
|
-
),
|
|
1194
|
-
_MergedRow(
|
|
1195
|
-
row_id="rk-a2",
|
|
1196
|
-
row_index=1,
|
|
1197
|
-
status="FAIL",
|
|
1198
|
-
score_percent=40.0,
|
|
1199
|
-
source_run_id="run-a2",
|
|
1200
|
-
row_data={"check_id": "CL-002", "finding": "gap", "severity": "high"},
|
|
1201
|
-
),
|
|
1202
|
-
],
|
|
1203
|
-
),
|
|
1204
|
-
"repo-b": _MergedRepo(
|
|
1205
|
-
overall_score=80.0,
|
|
1206
|
-
rows=[
|
|
1207
|
-
_MergedRow(
|
|
1208
|
-
row_id="rk-b1",
|
|
1209
|
-
row_index=0,
|
|
1210
|
-
status="PASS",
|
|
1211
|
-
score_percent=80.0,
|
|
1212
|
-
source_run_id="run-b1",
|
|
1213
|
-
row_data={"check_id": "CL-003", "finding": "ok", "severity": "low"},
|
|
1214
|
-
),
|
|
1215
|
-
],
|
|
1216
|
-
),
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
monkeypatch.setattr(workflow_cmds, "PostgresStateStore", _FakeStore)
|
|
1220
|
-
monkeypatch.setattr(workflow_cmds, "_active_runtime_profile_name", lambda: "zai-openai")
|
|
1221
|
-
|
|
1222
|
-
monkeypatch.setattr(
|
|
1223
|
-
workflow_cmds,
|
|
1224
|
-
"_score_to_maturity_level",
|
|
1225
|
-
lambda score: 4 if score >= 80 else 3,
|
|
1226
|
-
)
|
|
1227
|
-
|
|
1228
|
-
monkeypatch.setattr(
|
|
1229
|
-
workflow_cmds,
|
|
1230
|
-
"_merge_exploratory_refs_from_trace",
|
|
1231
|
-
lambda retrieval_trace: [],
|
|
1232
|
-
)
|
|
1233
|
-
|
|
1234
|
-
monkeypatch.setitem(
|
|
1235
|
-
workflow_cmds._merge_row_sharded_repo_runs.__globals__,
|
|
1236
|
-
"_extract_row_quality_metrics",
|
|
1237
|
-
lambda row_data: {
|
|
1238
|
-
"citation_retention_rate": 0.0,
|
|
1239
|
-
"final_cited_ref_count": 0,
|
|
1240
|
-
"verified_excerpt_anchors": 0,
|
|
1241
|
-
},
|
|
1242
|
-
)
|
|
1243
|
-
|
|
1244
|
-
monkeypatch.setitem(
|
|
1245
|
-
workflow_cmds._merge_row_sharded_repo_runs.__globals__,
|
|
1246
|
-
"CritiqueBudget",
|
|
1247
|
-
_Budget,
|
|
1248
|
-
)
|
|
1249
|
-
monkeypatch.setitem(
|
|
1250
|
-
workflow_cmds._merge_row_sharded_repo_runs.__globals__,
|
|
1251
|
-
"MergeLevel",
|
|
1252
|
-
_MergeLevel,
|
|
1253
|
-
)
|
|
1254
|
-
monkeypatch.setitem(
|
|
1255
|
-
workflow_cmds._merge_row_sharded_repo_runs.__globals__,
|
|
1256
|
-
"RunInput",
|
|
1257
|
-
_RunInput,
|
|
1258
|
-
)
|
|
1259
|
-
monkeypatch.setitem(
|
|
1260
|
-
workflow_cmds._merge_row_sharded_repo_runs.__globals__,
|
|
1261
|
-
"merge_cross_run_results",
|
|
1262
|
-
lambda *args, **kwargs: _Merged(),
|
|
1263
|
-
)
|
|
1264
|
-
|
|
1265
|
-
_aggregate_inputs, source_run_ids, repo_results_payload = workflow_cmds._merge_row_sharded_repo_runs(
|
|
1266
|
-
state_dsn="postgresql://state",
|
|
1267
|
-
project_key="PAR",
|
|
1268
|
-
shard_run_ids_by_repo={"repo-a": ["run-a1", "run-a2"], "repo-b": ["run-b1"]},
|
|
1269
|
-
)
|
|
1270
|
-
|
|
1271
|
-
assert source_run_ids == ["run-a1", "run-a2", "run-b1"]
|
|
1272
|
-
repo_payloads = {item["repo_storage_key"]: item for item in repo_results_payload}
|
|
1273
|
-
assert repo_payloads["repo-a"]["source_runs"] == ["run-a1", "run-a2"]
|
|
1274
|
-
assert repo_payloads["repo-b"]["source_runs"] == ["run-b1"]
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
def test_merge_row_sharded_repo_runs_ignores_non_targeted_na_placeholders(monkeypatch: pytest.MonkeyPatch) -> None:
|
|
1278
|
-
class _FakeStore:
|
|
1279
|
-
def __init__(self, dsn: str) -> None:
|
|
1280
|
-
self.dsn = dsn
|
|
1281
|
-
|
|
1282
|
-
def list_checklist_row_results(self, run_id: str) -> list[dict[str, object]]:
|
|
1283
|
-
if run_id == "run-na":
|
|
1284
|
-
return [
|
|
1285
|
-
{
|
|
1286
|
-
"row_key": "rk-na",
|
|
1287
|
-
"row_index": 10,
|
|
1288
|
-
"status": "N/A",
|
|
1289
|
-
"score": 0.0,
|
|
1290
|
-
"check_id": "CL-999",
|
|
1291
|
-
"finding": "Hàng checklist không được đánh giá trong lần chạy targeted.",
|
|
1292
|
-
"payload": {
|
|
1293
|
-
"score_percent": 0.0,
|
|
1294
|
-
"severity": "low",
|
|
1295
|
-
"requirement_text": "ignored",
|
|
1296
|
-
"evidence_refs": [],
|
|
1297
|
-
},
|
|
1298
|
-
}
|
|
1299
|
-
]
|
|
1300
|
-
if run_id == "run-real":
|
|
1301
|
-
return [
|
|
1302
|
-
{
|
|
1303
|
-
"row_key": "rk-real",
|
|
1304
|
-
"row_index": 1,
|
|
1305
|
-
"status": "FAIL",
|
|
1306
|
-
"score": 40.0,
|
|
1307
|
-
"check_id": "CL-002",
|
|
1308
|
-
"finding": "real gap",
|
|
1309
|
-
"payload": {
|
|
1310
|
-
"score_percent": 40.0,
|
|
1311
|
-
"severity": "high",
|
|
1312
|
-
"requirement_text": "req-real",
|
|
1313
|
-
"evidence_refs": [],
|
|
1314
|
-
},
|
|
1315
|
-
}
|
|
1316
|
-
]
|
|
1317
|
-
return []
|
|
1318
|
-
|
|
1319
|
-
def close(self) -> None:
|
|
1320
|
-
return None
|
|
1321
|
-
|
|
1322
|
-
class _Budget:
|
|
1323
|
-
def to_telemetry(self) -> dict[str, object]:
|
|
1324
|
-
return {"mode": "test"}
|
|
1325
|
-
|
|
1326
|
-
@classmethod
|
|
1327
|
-
def from_env(cls) -> _Budget:
|
|
1328
|
-
return cls()
|
|
1329
|
-
|
|
1330
|
-
class _MergeLevel:
|
|
1331
|
-
ROW = "row"
|
|
1332
|
-
|
|
1333
|
-
class _RunInput:
|
|
1334
|
-
def __init__(self, *, run_id: str, repo_key: str, rows: list[dict[str, object]]) -> None:
|
|
1335
|
-
self.run_id = run_id
|
|
1336
|
-
self.repo_key = repo_key
|
|
1337
|
-
self.rows = rows
|
|
1338
|
-
|
|
1339
|
-
class _MergedRow:
|
|
1340
|
-
def __init__(
|
|
1341
|
-
self,
|
|
1342
|
-
*,
|
|
1343
|
-
row_id: str,
|
|
1344
|
-
row_index: int,
|
|
1345
|
-
status: str,
|
|
1346
|
-
score_percent: float,
|
|
1347
|
-
source_run_id: str,
|
|
1348
|
-
row_data: dict[str, object],
|
|
1349
|
-
) -> None:
|
|
1350
|
-
self.row_id = row_id
|
|
1351
|
-
self.row_index = row_index
|
|
1352
|
-
self.status = status
|
|
1353
|
-
self.score_percent = score_percent
|
|
1354
|
-
self.source_run_id = source_run_id
|
|
1355
|
-
self.row_data = row_data
|
|
1356
|
-
|
|
1357
|
-
class _MergedRepo:
|
|
1358
|
-
def __init__(self, *, overall_score: float, rows: list[_MergedRow]) -> None:
|
|
1359
|
-
self.overall_score = overall_score
|
|
1360
|
-
self.rows = rows
|
|
1361
|
-
self.merge_level = "row"
|
|
1362
|
-
|
|
1363
|
-
class _Merged:
|
|
1364
|
-
def __init__(self) -> None:
|
|
1365
|
-
self.repos = {
|
|
1366
|
-
"repo-a": _MergedRepo(
|
|
1367
|
-
overall_score=40.0,
|
|
1368
|
-
rows=[
|
|
1369
|
-
_MergedRow(
|
|
1370
|
-
row_id="rk-real",
|
|
1371
|
-
row_index=1,
|
|
1372
|
-
status="FAIL",
|
|
1373
|
-
score_percent=40.0,
|
|
1374
|
-
source_run_id="run-real",
|
|
1375
|
-
row_data={"check_id": "CL-002", "finding": "real gap", "severity": "high"},
|
|
1376
|
-
),
|
|
1377
|
-
],
|
|
1378
|
-
)
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
monkeypatch.setattr(workflow_cmds, "PostgresStateStore", _FakeStore)
|
|
1382
|
-
monkeypatch.setattr(workflow_cmds, "_active_runtime_profile_name", lambda: "zai-openai")
|
|
1383
|
-
monkeypatch.setattr(workflow_cmds, "_score_to_maturity_level", lambda score: 2)
|
|
1384
|
-
monkeypatch.setattr(workflow_cmds, "_merge_exploratory_refs_from_trace", lambda retrieval_trace: [])
|
|
1385
|
-
monkeypatch.setitem(
|
|
1386
|
-
workflow_cmds._merge_row_sharded_repo_runs.__globals__,
|
|
1387
|
-
"_extract_row_quality_metrics",
|
|
1388
|
-
lambda row_data: {
|
|
1389
|
-
"citation_retention_rate": 0.0,
|
|
1390
|
-
"final_cited_ref_count": 0,
|
|
1391
|
-
"verified_excerpt_anchors": 0,
|
|
1392
|
-
},
|
|
1393
|
-
)
|
|
1394
|
-
monkeypatch.setitem(workflow_cmds._merge_row_sharded_repo_runs.__globals__, "CritiqueBudget", _Budget)
|
|
1395
|
-
monkeypatch.setitem(workflow_cmds._merge_row_sharded_repo_runs.__globals__, "MergeLevel", _MergeLevel)
|
|
1396
|
-
monkeypatch.setitem(workflow_cmds._merge_row_sharded_repo_runs.__globals__, "RunInput", _RunInput)
|
|
1397
|
-
monkeypatch.setitem(
|
|
1398
|
-
workflow_cmds._merge_row_sharded_repo_runs.__globals__,
|
|
1399
|
-
"merge_cross_run_results",
|
|
1400
|
-
lambda *args, **kwargs: _Merged(),
|
|
1401
|
-
)
|
|
1402
|
-
|
|
1403
|
-
_aggregate_inputs, _source_run_ids, repo_results_payload = workflow_cmds._merge_row_sharded_repo_runs(
|
|
1404
|
-
state_dsn="postgresql://state",
|
|
1405
|
-
project_key="PAR",
|
|
1406
|
-
shard_run_ids_by_repo={"repo-a": ["run-na", "run-real"]},
|
|
1407
|
-
)
|
|
1408
|
-
|
|
1409
|
-
repo_payload = repo_results_payload[0]
|
|
1410
|
-
row_ids = [row["row_id"] for row in repo_payload["rows"]]
|
|
1411
|
-
assert row_ids == ["rk-real"]
|
|
1412
|
-
assert isinstance(repo_payload["quality_warnings"], list)
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
def test_workflow_project_row_sharded_quality_warning_flows_into_aggregate_and_readiness(
|
|
1416
|
-
tmp_path: Path,
|
|
1417
|
-
monkeypatch: pytest.MonkeyPatch,
|
|
1418
|
-
) -> None:
|
|
1419
|
-
monkeypatch.setattr(workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state")
|
|
1420
|
-
monkeypatch.setattr(workflow_cmds, "_resolve_workflow_thread_id", lambda thread_id: thread_id or "phase131-quality")
|
|
1421
|
-
monkeypatch.setattr(workflow_cmds, "list_runtime_profile_names", lambda: ["zai-openai", "alibaba-openai"])
|
|
1422
|
-
monkeypatch.setattr(
|
|
1423
|
-
workflow_cmds,
|
|
1424
|
-
"_evaluate_profiles_availability",
|
|
1425
|
-
lambda **kwargs: {
|
|
1426
|
-
"mode": "active",
|
|
1427
|
-
"checks": [],
|
|
1428
|
-
"available_profiles": ["zai-openai", "alibaba-openai"],
|
|
1429
|
-
"unavailable_profiles": [],
|
|
1430
|
-
},
|
|
1431
|
-
)
|
|
1432
|
-
monkeypatch.setattr(
|
|
1433
|
-
workflow_cmds,
|
|
1434
|
-
"_project_repos_from_manifest",
|
|
1435
|
-
lambda *args, **kwargs: (
|
|
1436
|
-
_project_payload("88727304", "PAR"),
|
|
1437
|
-
[("par-merchant-billing", Path("/tmp/merchant-billing"))],
|
|
1438
|
-
),
|
|
1439
|
-
)
|
|
1440
|
-
monkeypatch.setattr(workflow_cmds, "_resolve_project_junction_bitbucket_keys", lambda **kwargs: None)
|
|
1441
|
-
monkeypatch.setattr(workflow_cmds, "_classify_repo_checklist_topology", lambda **kwargs: {})
|
|
1442
|
-
monkeypatch.setattr(
|
|
1443
|
-
workflow_cmds,
|
|
1444
|
-
"_check_project_already_completed",
|
|
1445
|
-
lambda **kwargs: (
|
|
1446
|
-
False,
|
|
1447
|
-
{
|
|
1448
|
-
"reason": "not_completed",
|
|
1449
|
-
"completed_repo_keys": [],
|
|
1450
|
-
"pending_repo_keys": ["par-merchant-billing"],
|
|
1451
|
-
"completed_run_ids": [],
|
|
1452
|
-
"artifact_status": {},
|
|
1453
|
-
"require_artifacts": True,
|
|
1454
|
-
"retrieval_snapshot_early_exit": False,
|
|
1455
|
-
},
|
|
1456
|
-
),
|
|
1457
|
-
)
|
|
1458
|
-
monkeypatch.setattr(workflow_cmds, "_materialize_project_repo_report_dirs", lambda **kwargs: None)
|
|
1459
|
-
monkeypatch.setattr(workflow_cmds, "_build_evidence_snapshot_binding", lambda **kwargs: {})
|
|
1460
|
-
monkeypatch.setattr(workflow_cmds, "_build_retrieval_snapshot_binding", lambda **kwargs: {})
|
|
1461
|
-
monkeypatch.setattr(workflow_cmds, "_persist_typed_run_terminal", lambda **kwargs: None)
|
|
1462
|
-
monkeypatch.setattr(
|
|
1463
|
-
workflow_cmds,
|
|
1464
|
-
"_load_manifest_payload_from_state",
|
|
1465
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR")]},
|
|
1466
|
-
)
|
|
1467
|
-
monkeypatch.setattr(
|
|
1468
|
-
workflow_cmds,
|
|
1469
|
-
"_dispatch_multi_profile_workflows",
|
|
1470
|
-
lambda **kwargs: {
|
|
1471
|
-
"completed": 2,
|
|
1472
|
-
"errors": 0,
|
|
1473
|
-
"timeouts": 0,
|
|
1474
|
-
"exceptions": 0,
|
|
1475
|
-
"requeued": 0,
|
|
1476
|
-
"skipped": 0,
|
|
1477
|
-
"results": [
|
|
1478
|
-
{
|
|
1479
|
-
"status": "ok",
|
|
1480
|
-
"repo_key": "par-merchant-billing",
|
|
1481
|
-
"thread_id": "child-run-1",
|
|
1482
|
-
"row_shard_index": 0,
|
|
1483
|
-
"row_shard_count": 2,
|
|
1484
|
-
},
|
|
1485
|
-
{
|
|
1486
|
-
"status": "ok",
|
|
1487
|
-
"repo_key": "par-merchant-billing",
|
|
1488
|
-
"thread_id": "child-run-2",
|
|
1489
|
-
"row_shard_index": 1,
|
|
1490
|
-
"row_shard_count": 2,
|
|
1491
|
-
},
|
|
1492
|
-
],
|
|
1493
|
-
"lane_thread_ids": ["child-run-1", "child-run-2"],
|
|
1494
|
-
"fallback_lane_thread_ids": [],
|
|
1495
|
-
"jobs": [],
|
|
1496
|
-
"resume_stats": {},
|
|
1497
|
-
},
|
|
1498
|
-
)
|
|
1499
|
-
monkeypatch.setattr(
|
|
1500
|
-
workflow_cmds,
|
|
1501
|
-
"_merge_row_sharded_repo_runs",
|
|
1502
|
-
lambda **kwargs: (
|
|
1503
|
-
[
|
|
1504
|
-
{
|
|
1505
|
-
"repository": "par-merchant-billing",
|
|
1506
|
-
"overall_score": 5.97,
|
|
1507
|
-
"maturity_level": 1,
|
|
1508
|
-
"gaps": [
|
|
1509
|
-
{
|
|
1510
|
-
"check_id": "CL-001",
|
|
1511
|
-
"finding": "Evidence shortfall before synthesis: missing_modalities=docs",
|
|
1512
|
-
"severity": "high",
|
|
1513
|
-
}
|
|
1514
|
-
],
|
|
1515
|
-
"aligned_practices": [],
|
|
1516
|
-
"quality_warning": "low_signal_row_sharded_merge",
|
|
1517
|
-
}
|
|
1518
|
-
],
|
|
1519
|
-
["child-run-1", "child-run-2"],
|
|
1520
|
-
[
|
|
1521
|
-
{
|
|
1522
|
-
"repo_storage_key": "par-merchant-billing",
|
|
1523
|
-
"source": "row_sharded_merged",
|
|
1524
|
-
"source_runs": ["child-run-1", "child-run-2"],
|
|
1525
|
-
"overall_score": 5.97,
|
|
1526
|
-
"merge_level": "row",
|
|
1527
|
-
"critique_summary": {},
|
|
1528
|
-
"quality_warnings": [{"kind": "low_signal_row_sharded_merge", "message": "quality degraded"}],
|
|
1529
|
-
"rows": [
|
|
1530
|
-
{
|
|
1531
|
-
"check_id": "CL-001",
|
|
1532
|
-
"row_id": "r1",
|
|
1533
|
-
"row_index": 0,
|
|
1534
|
-
"status": "PARTIAL",
|
|
1535
|
-
"score": 0.0,
|
|
1536
|
-
"source_run_id": "child-run-1",
|
|
1537
|
-
}
|
|
1538
|
-
],
|
|
1539
|
-
}
|
|
1540
|
-
],
|
|
1541
|
-
),
|
|
1542
|
-
)
|
|
1543
|
-
|
|
1544
|
-
result = runner.invoke(
|
|
1545
|
-
cli.app,
|
|
1546
|
-
[
|
|
1547
|
-
"--json-only",
|
|
1548
|
-
"workflow-project",
|
|
1549
|
-
"--checkpointer",
|
|
1550
|
-
"memory",
|
|
1551
|
-
"--project-storage-key",
|
|
1552
|
-
"88727304",
|
|
1553
|
-
"--report-dir",
|
|
1554
|
-
str(tmp_path),
|
|
1555
|
-
"--profiles",
|
|
1556
|
-
"zai-openai,alibaba-openai",
|
|
1557
|
-
"--profile-availability",
|
|
1558
|
-
"active",
|
|
1559
|
-
],
|
|
1560
|
-
)
|
|
1561
|
-
|
|
1562
|
-
assert result.exit_code == 0, result.output
|
|
1563
|
-
aggregate = json.loads((tmp_path / "project-aggregate.json").read_text(encoding="utf-8"))
|
|
1564
|
-
readiness = json.loads((tmp_path / "project-readiness.json").read_text(encoding="utf-8"))
|
|
1565
|
-
assert aggregate["quality_warnings"][0]["kind"] == "low_signal_row_sharded_merge"
|
|
1566
|
-
assert readiness["data_quality_notes"][-1].startswith(
|
|
1567
|
-
"Quality degraded: low-signal row-sharded merged results detected"
|
|
1568
|
-
)
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
def test_dispatch_job_identity_payload_distinguishes_row_shards() -> None:
|
|
1572
|
-
job = {
|
|
1573
|
-
"profile": "zai-openai",
|
|
1574
|
-
"origin_profile": "zai-openai",
|
|
1575
|
-
"repo_path": "/tmp/merchant-billing",
|
|
1576
|
-
"repo_key": "par-merchant-billing",
|
|
1577
|
-
"stage": "row_sharded",
|
|
1578
|
-
"extra_target": "CL-001,CL-004",
|
|
1579
|
-
"row_shard_index": 0,
|
|
1580
|
-
"row_shard_count": 2,
|
|
1581
|
-
}
|
|
1582
|
-
identity_a = workflow_cmds._dispatch_job_identity_payload(thread_id="phase131", job=job)
|
|
1583
|
-
identity_b = workflow_cmds._dispatch_job_identity_payload(
|
|
1584
|
-
thread_id="phase131",
|
|
1585
|
-
job={**job, "extra_target": "CL-002,CL-003", "row_shard_index": 1},
|
|
1586
|
-
)
|
|
1587
|
-
|
|
1588
|
-
assert identity_a["dispatch_job_id"] != identity_b["dispatch_job_id"]
|
|
1589
|
-
assert identity_a["lane_thread_id"] != identity_b["lane_thread_id"]
|
|
1590
|
-
assert identity_a["lane_thread_id"].endswith("-shard-0")
|
|
1591
|
-
assert identity_b["lane_thread_id"].endswith("-shard-1")
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
def test_run_command_json_prefers_terminal_workflow_payload(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
1595
|
-
class _Completed:
|
|
1596
|
-
returncode = 0
|
|
1597
|
-
stderr = ""
|
|
1598
|
-
stdout = "\n".join(
|
|
1599
|
-
[
|
|
1600
|
-
json.dumps({"project": "88718977", "ready": True}),
|
|
1601
|
-
json.dumps(
|
|
1602
|
-
{
|
|
1603
|
-
"workflow": "project_completed",
|
|
1604
|
-
"upload_summary": {"enabled": True, "repo_pages_uploaded": 2},
|
|
1605
|
-
"confluence_aggregate_page_id": "12345",
|
|
1606
|
-
}
|
|
1607
|
-
),
|
|
1608
|
-
]
|
|
1609
|
-
)
|
|
1610
|
-
|
|
1611
|
-
monkeypatch.setattr(subprocess, "run", lambda *args, **kwargs: _Completed())
|
|
1612
|
-
|
|
1613
|
-
payload = workflow_cmds._run_command_json(args=["uv", "run"], cwd=tmp_path)
|
|
1614
|
-
|
|
1615
|
-
assert payload["ok"] is True
|
|
1616
|
-
assert payload["payload"]["workflow"] == "project_completed"
|
|
1617
|
-
assert payload["payload"]["upload_summary"]["enabled"] is True
|
|
1618
|
-
assert payload["payload"]["confluence_aggregate_page_id"] == "12345"
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
def test_rewrite_project_workflow_summary_with_terminal_payload_updates_upload_fields(tmp_path: Path) -> None:
|
|
1622
|
-
summary_path = tmp_path / "workflow-summary.json"
|
|
1623
|
-
md_path = tmp_path / "workflow-summary.md"
|
|
1624
|
-
summary_path.write_text(
|
|
1625
|
-
json.dumps({"status": "completed", "summary": "Dispatch progress only"}, indent=2),
|
|
1626
|
-
encoding="utf-8",
|
|
1627
|
-
)
|
|
1628
|
-
md_path.write_text("# Audit Results - thread\n\n## Summary\nDispatch only\n", encoding="utf-8")
|
|
1629
|
-
|
|
1630
|
-
workflow_cmds._rewrite_project_workflow_summary_with_terminal_payload(
|
|
1631
|
-
run_root=tmp_path,
|
|
1632
|
-
terminal_payload={
|
|
1633
|
-
"workflow": "project_completed",
|
|
1634
|
-
"project_page": {"page_id": "88727304", "title": "PAR"},
|
|
1635
|
-
"department_page": {"page_id": "88716694", "title": "P.NTTT"},
|
|
1636
|
-
"upload_to_confluence": True,
|
|
1637
|
-
"confluence_parent": "88716694",
|
|
1638
|
-
"upload_summary": {"enabled": True, "repo_pages_uploaded": 2, "aggregate_page_uploaded": True},
|
|
1639
|
-
"confluence_repo_page_ids": {"repo-a": "111"},
|
|
1640
|
-
"confluence_aggregate_page_id": "333",
|
|
1641
|
-
"aggregate_report_path": "/tmp/project-aggregate.json",
|
|
1642
|
-
"total_wall_clock_seconds": 12.5,
|
|
1643
|
-
},
|
|
1644
|
-
)
|
|
1645
|
-
|
|
1646
|
-
summary = json.loads(summary_path.read_text(encoding="utf-8"))
|
|
1647
|
-
assert summary["upload_to_confluence"] is True
|
|
1648
|
-
assert summary["project_page"] == {"page_id": "88727304", "title": "PAR"}
|
|
1649
|
-
assert summary["department_page"] == {"page_id": "88716694", "title": "P.NTTT"}
|
|
1650
|
-
assert summary["confluence_parent"] == "88716694"
|
|
1651
|
-
assert summary["upload_summary"]["repo_pages_uploaded"] == 2
|
|
1652
|
-
assert summary["confluence_aggregate_page_id"] == "333"
|
|
1653
|
-
assert summary["aggregate_report_path"] == "/tmp/project-aggregate.json"
|
|
1654
|
-
assert "## Upload" in md_path.read_text(encoding="utf-8")
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
# ---------------------------------------------------------------------------
|
|
1658
|
-
# FR-148 / Phase 146: Passthrough tests for --offline, --target, --generate-pdf
|
|
1659
|
-
# ---------------------------------------------------------------------------
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
class TestWorkflowProjectsOfflinePassthrough:
|
|
1663
|
-
"""Verify --offline propagates to child workflow-project jobs and sets env vars."""
|
|
1664
|
-
|
|
1665
|
-
def _setup_standard_mocks(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
1666
|
-
monkeypatch.setattr(
|
|
1667
|
-
workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state"
|
|
1668
|
-
)
|
|
1669
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
1670
|
-
monkeypatch.setattr(
|
|
1671
|
-
workflow_cmds,
|
|
1672
|
-
"_load_manifest_payload_from_state",
|
|
1673
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR", "P.NTTT", "88716694")]},
|
|
1674
|
-
)
|
|
1675
|
-
monkeypatch.setattr(
|
|
1676
|
-
workflow_cmds,
|
|
1677
|
-
"_run_parent_prepare_job",
|
|
1678
|
-
lambda **kwargs: {"ok": True, "payload": {"ready": True, "readiness_summary": []}},
|
|
1679
|
-
)
|
|
1680
|
-
|
|
1681
|
-
def test_offline_flag_passes_true_to_child(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
1682
|
-
"""--offline should pass offline=True to _run_parent_workflow_project_job."""
|
|
1683
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
1684
|
-
workflow_calls: list[dict] = []
|
|
1685
|
-
monkeypatch.setattr(
|
|
1686
|
-
workflow_cmds,
|
|
1687
|
-
"_run_parent_workflow_project_job",
|
|
1688
|
-
lambda **kwargs: (
|
|
1689
|
-
workflow_calls.append(kwargs)
|
|
1690
|
-
or {
|
|
1691
|
-
"ok": True,
|
|
1692
|
-
"payload": {
|
|
1693
|
-
"workflow": "project_completed",
|
|
1694
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
1695
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
1696
|
-
},
|
|
1697
|
-
}
|
|
1698
|
-
),
|
|
1699
|
-
)
|
|
1700
|
-
|
|
1701
|
-
result = runner.invoke(
|
|
1702
|
-
cli.app,
|
|
1703
|
-
[
|
|
1704
|
-
"workflow-projects",
|
|
1705
|
-
"--project-storage-keys",
|
|
1706
|
-
"88727304",
|
|
1707
|
-
"--report-dir",
|
|
1708
|
-
str(tmp_path),
|
|
1709
|
-
"--offline",
|
|
1710
|
-
],
|
|
1711
|
-
)
|
|
1712
|
-
|
|
1713
|
-
assert result.exit_code == 0, result.output
|
|
1714
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
1715
|
-
assert workflow_calls[0]["offline"] is True
|
|
1716
|
-
|
|
1717
|
-
def test_offline_sets_env_vars(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
1718
|
-
"""--offline should set VDS_AUDIT_OFFLINE_MODE and VDS_AUDIT_SKIP_CHECKLIST_READINESS_PREFLIGHT."""
|
|
1719
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
1720
|
-
monkeypatch.setattr(
|
|
1721
|
-
workflow_cmds,
|
|
1722
|
-
"_run_parent_workflow_project_job",
|
|
1723
|
-
lambda **kwargs: {
|
|
1724
|
-
"ok": True,
|
|
1725
|
-
"payload": {
|
|
1726
|
-
"workflow": "project_completed",
|
|
1727
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
1728
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
1729
|
-
},
|
|
1730
|
-
},
|
|
1731
|
-
)
|
|
1732
|
-
|
|
1733
|
-
# Ensure env vars are not set before invocation
|
|
1734
|
-
monkeypatch.delenv("VDS_AUDIT_OFFLINE_MODE", raising=False)
|
|
1735
|
-
monkeypatch.delenv("VDS_AUDIT_SKIP_CHECKLIST_READINESS_PREFLIGHT", raising=False)
|
|
1736
|
-
|
|
1737
|
-
result = runner.invoke(
|
|
1738
|
-
cli.app,
|
|
1739
|
-
[
|
|
1740
|
-
"workflow-projects",
|
|
1741
|
-
"--project-storage-keys",
|
|
1742
|
-
"88727304",
|
|
1743
|
-
"--report-dir",
|
|
1744
|
-
str(tmp_path),
|
|
1745
|
-
"--offline",
|
|
1746
|
-
],
|
|
1747
|
-
)
|
|
1748
|
-
|
|
1749
|
-
assert result.exit_code == 0, result.output
|
|
1750
|
-
import os
|
|
1751
|
-
|
|
1752
|
-
assert os.environ.get("VDS_AUDIT_OFFLINE_MODE") == "1"
|
|
1753
|
-
assert os.environ.get("VDS_AUDIT_SKIP_CHECKLIST_READINESS_PREFLIGHT") == "1"
|
|
1754
|
-
|
|
1755
|
-
def test_no_offline_flag_defaults_to_false(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
1756
|
-
"""Without --offline, child should receive offline=False."""
|
|
1757
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
1758
|
-
workflow_calls: list[dict] = []
|
|
1759
|
-
monkeypatch.setattr(
|
|
1760
|
-
workflow_cmds,
|
|
1761
|
-
"_run_parent_workflow_project_job",
|
|
1762
|
-
lambda **kwargs: (
|
|
1763
|
-
workflow_calls.append(kwargs)
|
|
1764
|
-
or {
|
|
1765
|
-
"ok": True,
|
|
1766
|
-
"payload": {
|
|
1767
|
-
"workflow": "project_completed",
|
|
1768
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
1769
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
1770
|
-
},
|
|
1771
|
-
}
|
|
1772
|
-
),
|
|
1773
|
-
)
|
|
1774
|
-
|
|
1775
|
-
result = runner.invoke(
|
|
1776
|
-
cli.app,
|
|
1777
|
-
[
|
|
1778
|
-
"workflow-projects",
|
|
1779
|
-
"--project-storage-keys",
|
|
1780
|
-
"88727304",
|
|
1781
|
-
"--report-dir",
|
|
1782
|
-
str(tmp_path),
|
|
1783
|
-
],
|
|
1784
|
-
)
|
|
1785
|
-
|
|
1786
|
-
assert result.exit_code == 0, result.output
|
|
1787
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
1788
|
-
assert workflow_calls[0]["offline"] is False
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
class TestWorkflowProjectsTargetPassthrough:
|
|
1792
|
-
"""Verify --target propagates to child workflow-project jobs."""
|
|
1793
|
-
|
|
1794
|
-
def _setup_standard_mocks(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
1795
|
-
monkeypatch.setattr(
|
|
1796
|
-
workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state"
|
|
1797
|
-
)
|
|
1798
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
1799
|
-
monkeypatch.setattr(
|
|
1800
|
-
workflow_cmds,
|
|
1801
|
-
"_load_manifest_payload_from_state",
|
|
1802
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR", "P.NTTT", "88716694")]},
|
|
1803
|
-
)
|
|
1804
|
-
monkeypatch.setattr(
|
|
1805
|
-
workflow_cmds,
|
|
1806
|
-
"_run_parent_prepare_job",
|
|
1807
|
-
lambda **kwargs: {"ok": True, "payload": {"ready": True, "readiness_summary": []}},
|
|
1808
|
-
)
|
|
1809
|
-
|
|
1810
|
-
def test_target_flag_passes_to_child(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
1811
|
-
"""--target CL-002 should pass target='CL-002' to child."""
|
|
1812
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
1813
|
-
workflow_calls: list[dict] = []
|
|
1814
|
-
monkeypatch.setattr(
|
|
1815
|
-
workflow_cmds,
|
|
1816
|
-
"_run_parent_workflow_project_job",
|
|
1817
|
-
lambda **kwargs: (
|
|
1818
|
-
workflow_calls.append(kwargs)
|
|
1819
|
-
or {
|
|
1820
|
-
"ok": True,
|
|
1821
|
-
"payload": {
|
|
1822
|
-
"workflow": "project_completed",
|
|
1823
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
1824
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
1825
|
-
},
|
|
1826
|
-
}
|
|
1827
|
-
),
|
|
1828
|
-
)
|
|
1829
|
-
|
|
1830
|
-
result = runner.invoke(
|
|
1831
|
-
cli.app,
|
|
1832
|
-
[
|
|
1833
|
-
"workflow-projects",
|
|
1834
|
-
"--project-storage-keys",
|
|
1835
|
-
"88727304",
|
|
1836
|
-
"--report-dir",
|
|
1837
|
-
str(tmp_path),
|
|
1838
|
-
"--target",
|
|
1839
|
-
"CL-002",
|
|
1840
|
-
],
|
|
1841
|
-
)
|
|
1842
|
-
|
|
1843
|
-
assert result.exit_code == 0, result.output
|
|
1844
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
1845
|
-
assert workflow_calls[0]["target"] == "CL-002"
|
|
1846
|
-
|
|
1847
|
-
def test_target_comma_separated_passes_to_child(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
1848
|
-
"""--target CL-002,CL-007 should pass the full string to child."""
|
|
1849
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
1850
|
-
workflow_calls: list[dict] = []
|
|
1851
|
-
monkeypatch.setattr(
|
|
1852
|
-
workflow_cmds,
|
|
1853
|
-
"_run_parent_workflow_project_job",
|
|
1854
|
-
lambda **kwargs: (
|
|
1855
|
-
workflow_calls.append(kwargs)
|
|
1856
|
-
or {
|
|
1857
|
-
"ok": True,
|
|
1858
|
-
"payload": {
|
|
1859
|
-
"workflow": "project_completed",
|
|
1860
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
1861
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
1862
|
-
},
|
|
1863
|
-
}
|
|
1864
|
-
),
|
|
1865
|
-
)
|
|
1866
|
-
|
|
1867
|
-
result = runner.invoke(
|
|
1868
|
-
cli.app,
|
|
1869
|
-
[
|
|
1870
|
-
"workflow-projects",
|
|
1871
|
-
"--project-storage-keys",
|
|
1872
|
-
"88727304",
|
|
1873
|
-
"--report-dir",
|
|
1874
|
-
str(tmp_path),
|
|
1875
|
-
"--target",
|
|
1876
|
-
"CL-002,CL-007",
|
|
1877
|
-
],
|
|
1878
|
-
)
|
|
1879
|
-
|
|
1880
|
-
assert result.exit_code == 0, result.output
|
|
1881
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
1882
|
-
assert workflow_calls[0]["target"] == "CL-002,CL-007"
|
|
1883
|
-
|
|
1884
|
-
def test_no_target_defaults_to_none(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
1885
|
-
"""Without --target, child should receive target=None."""
|
|
1886
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
1887
|
-
workflow_calls: list[dict] = []
|
|
1888
|
-
monkeypatch.setattr(
|
|
1889
|
-
workflow_cmds,
|
|
1890
|
-
"_run_parent_workflow_project_job",
|
|
1891
|
-
lambda **kwargs: (
|
|
1892
|
-
workflow_calls.append(kwargs)
|
|
1893
|
-
or {
|
|
1894
|
-
"ok": True,
|
|
1895
|
-
"payload": {
|
|
1896
|
-
"workflow": "project_completed",
|
|
1897
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
1898
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
1899
|
-
},
|
|
1900
|
-
}
|
|
1901
|
-
),
|
|
1902
|
-
)
|
|
1903
|
-
|
|
1904
|
-
result = runner.invoke(
|
|
1905
|
-
cli.app,
|
|
1906
|
-
[
|
|
1907
|
-
"workflow-projects",
|
|
1908
|
-
"--project-storage-keys",
|
|
1909
|
-
"88727304",
|
|
1910
|
-
"--report-dir",
|
|
1911
|
-
str(tmp_path),
|
|
1912
|
-
],
|
|
1913
|
-
)
|
|
1914
|
-
|
|
1915
|
-
assert result.exit_code == 0, result.output
|
|
1916
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
1917
|
-
assert workflow_calls[0]["target"] is None
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
class TestWorkflowProjectsGeneratePdfPassthrough:
|
|
1921
|
-
"""Verify --generate-pdf/--no-generate-pdf propagates to child workflow-project jobs."""
|
|
1922
|
-
|
|
1923
|
-
def _setup_standard_mocks(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
1924
|
-
monkeypatch.setattr(
|
|
1925
|
-
workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state"
|
|
1926
|
-
)
|
|
1927
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
1928
|
-
monkeypatch.setattr(
|
|
1929
|
-
workflow_cmds,
|
|
1930
|
-
"_load_manifest_payload_from_state",
|
|
1931
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR", "P.NTTT", "88716694")]},
|
|
1932
|
-
)
|
|
1933
|
-
monkeypatch.setattr(
|
|
1934
|
-
workflow_cmds,
|
|
1935
|
-
"_run_parent_prepare_job",
|
|
1936
|
-
lambda **kwargs: {"ok": True, "payload": {"ready": True, "readiness_summary": []}},
|
|
1937
|
-
)
|
|
1938
|
-
|
|
1939
|
-
def test_generate_pdf_default_is_true(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
1940
|
-
"""Without explicit flag, generate_pdf should default to True."""
|
|
1941
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
1942
|
-
workflow_calls: list[dict] = []
|
|
1943
|
-
monkeypatch.setattr(
|
|
1944
|
-
workflow_cmds,
|
|
1945
|
-
"_run_parent_workflow_project_job",
|
|
1946
|
-
lambda **kwargs: (
|
|
1947
|
-
workflow_calls.append(kwargs)
|
|
1948
|
-
or {
|
|
1949
|
-
"ok": True,
|
|
1950
|
-
"payload": {
|
|
1951
|
-
"workflow": "project_completed",
|
|
1952
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
1953
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
1954
|
-
},
|
|
1955
|
-
}
|
|
1956
|
-
),
|
|
1957
|
-
)
|
|
1958
|
-
|
|
1959
|
-
result = runner.invoke(
|
|
1960
|
-
cli.app,
|
|
1961
|
-
[
|
|
1962
|
-
"workflow-projects",
|
|
1963
|
-
"--project-storage-keys",
|
|
1964
|
-
"88727304",
|
|
1965
|
-
"--report-dir",
|
|
1966
|
-
str(tmp_path),
|
|
1967
|
-
],
|
|
1968
|
-
)
|
|
1969
|
-
|
|
1970
|
-
assert result.exit_code == 0, result.output
|
|
1971
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
1972
|
-
assert workflow_calls[0]["generate_pdf"] is True
|
|
1973
|
-
|
|
1974
|
-
def test_no_generate_pdf_passes_false_to_child(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
1975
|
-
"""--no-generate-pdf should pass generate_pdf=False to child."""
|
|
1976
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
1977
|
-
workflow_calls: list[dict] = []
|
|
1978
|
-
monkeypatch.setattr(
|
|
1979
|
-
workflow_cmds,
|
|
1980
|
-
"_run_parent_workflow_project_job",
|
|
1981
|
-
lambda **kwargs: (
|
|
1982
|
-
workflow_calls.append(kwargs)
|
|
1983
|
-
or {
|
|
1984
|
-
"ok": True,
|
|
1985
|
-
"payload": {
|
|
1986
|
-
"workflow": "project_completed",
|
|
1987
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
1988
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
1989
|
-
},
|
|
1990
|
-
}
|
|
1991
|
-
),
|
|
1992
|
-
)
|
|
1993
|
-
|
|
1994
|
-
result = runner.invoke(
|
|
1995
|
-
cli.app,
|
|
1996
|
-
[
|
|
1997
|
-
"workflow-projects",
|
|
1998
|
-
"--project-storage-keys",
|
|
1999
|
-
"88727304",
|
|
2000
|
-
"--report-dir",
|
|
2001
|
-
str(tmp_path),
|
|
2002
|
-
"--no-generate-pdf",
|
|
2003
|
-
],
|
|
2004
|
-
)
|
|
2005
|
-
|
|
2006
|
-
assert result.exit_code == 0, result.output
|
|
2007
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
2008
|
-
assert workflow_calls[0]["generate_pdf"] is False
|
|
2009
|
-
|
|
2010
|
-
def test_explicit_generate_pdf_passes_true_to_child(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2011
|
-
"""Explicit --generate-pdf should pass generate_pdf=True to child."""
|
|
2012
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
2013
|
-
workflow_calls: list[dict] = []
|
|
2014
|
-
monkeypatch.setattr(
|
|
2015
|
-
workflow_cmds,
|
|
2016
|
-
"_run_parent_workflow_project_job",
|
|
2017
|
-
lambda **kwargs: (
|
|
2018
|
-
workflow_calls.append(kwargs)
|
|
2019
|
-
or {
|
|
2020
|
-
"ok": True,
|
|
2021
|
-
"payload": {
|
|
2022
|
-
"workflow": "project_completed",
|
|
2023
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
2024
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
2025
|
-
},
|
|
2026
|
-
}
|
|
2027
|
-
),
|
|
2028
|
-
)
|
|
2029
|
-
|
|
2030
|
-
result = runner.invoke(
|
|
2031
|
-
cli.app,
|
|
2032
|
-
[
|
|
2033
|
-
"workflow-projects",
|
|
2034
|
-
"--project-storage-keys",
|
|
2035
|
-
"88727304",
|
|
2036
|
-
"--report-dir",
|
|
2037
|
-
str(tmp_path),
|
|
2038
|
-
"--generate-pdf",
|
|
2039
|
-
],
|
|
2040
|
-
)
|
|
2041
|
-
|
|
2042
|
-
assert result.exit_code == 0, result.output
|
|
2043
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
2044
|
-
assert workflow_calls[0]["generate_pdf"] is True
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
class TestWorkflowProjectsCombinedPassthrough:
|
|
2048
|
-
"""Verify combined --offline --target --no-generate-pdf passthrough."""
|
|
2049
|
-
|
|
2050
|
-
def test_all_three_new_flags_pass_through_together(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2051
|
-
"""--offline --target CL-003 --no-generate-pdf should all propagate to child."""
|
|
2052
|
-
monkeypatch.setattr(
|
|
2053
|
-
workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state"
|
|
2054
|
-
)
|
|
2055
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
2056
|
-
monkeypatch.setattr(
|
|
2057
|
-
workflow_cmds,
|
|
2058
|
-
"_load_manifest_payload_from_state",
|
|
2059
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR", "P.NTTT", "88716694")]},
|
|
2060
|
-
)
|
|
2061
|
-
monkeypatch.setattr(
|
|
2062
|
-
workflow_cmds,
|
|
2063
|
-
"_run_parent_prepare_job",
|
|
2064
|
-
lambda **kwargs: {"ok": True, "payload": {"ready": True, "readiness_summary": []}},
|
|
2065
|
-
)
|
|
2066
|
-
workflow_calls: list[dict] = []
|
|
2067
|
-
monkeypatch.setattr(
|
|
2068
|
-
workflow_cmds,
|
|
2069
|
-
"_run_parent_workflow_project_job",
|
|
2070
|
-
lambda **kwargs: (
|
|
2071
|
-
workflow_calls.append(kwargs)
|
|
2072
|
-
or {
|
|
2073
|
-
"ok": True,
|
|
2074
|
-
"payload": {
|
|
2075
|
-
"workflow": "project_completed",
|
|
2076
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
2077
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
2078
|
-
},
|
|
2079
|
-
}
|
|
2080
|
-
),
|
|
2081
|
-
)
|
|
2082
|
-
|
|
2083
|
-
result = runner.invoke(
|
|
2084
|
-
cli.app,
|
|
2085
|
-
[
|
|
2086
|
-
"workflow-projects",
|
|
2087
|
-
"--project-storage-keys",
|
|
2088
|
-
"88727304",
|
|
2089
|
-
"--report-dir",
|
|
2090
|
-
str(tmp_path),
|
|
2091
|
-
"--offline",
|
|
2092
|
-
"--target",
|
|
2093
|
-
"CL-003",
|
|
2094
|
-
"--no-generate-pdf",
|
|
2095
|
-
],
|
|
2096
|
-
)
|
|
2097
|
-
|
|
2098
|
-
assert result.exit_code == 0, result.output
|
|
2099
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
2100
|
-
assert workflow_calls[0]["offline"] is True
|
|
2101
|
-
assert workflow_calls[0]["target"] == "CL-003"
|
|
2102
|
-
assert workflow_calls[0]["generate_pdf"] is False
|
|
2103
|
-
# Verify other defaults remain unchanged
|
|
2104
|
-
assert workflow_calls[0]["failover"] is True
|
|
2105
|
-
assert workflow_calls[0]["ast_grep"] is True
|
|
2106
|
-
assert workflow_calls[0]["upload_to_confluence"] is False
|
|
2107
|
-
|
|
2108
|
-
def test_all_new_flags_with_existing_passthrough(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2109
|
-
"""New flags should coexist with existing passthrough flags like --failover, --force-rerun."""
|
|
2110
|
-
monkeypatch.setattr(
|
|
2111
|
-
workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state"
|
|
2112
|
-
)
|
|
2113
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
2114
|
-
monkeypatch.setattr(
|
|
2115
|
-
workflow_cmds,
|
|
2116
|
-
"_load_manifest_payload_from_state",
|
|
2117
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR", "P.NTTT", "88716694")]},
|
|
2118
|
-
)
|
|
2119
|
-
monkeypatch.setattr(
|
|
2120
|
-
workflow_cmds,
|
|
2121
|
-
"_run_parent_prepare_job",
|
|
2122
|
-
lambda **kwargs: {"ok": True, "payload": {"ready": True, "readiness_summary": []}},
|
|
2123
|
-
)
|
|
2124
|
-
workflow_calls: list[dict] = []
|
|
2125
|
-
monkeypatch.setattr(
|
|
2126
|
-
workflow_cmds,
|
|
2127
|
-
"_run_parent_workflow_project_job",
|
|
2128
|
-
lambda **kwargs: (
|
|
2129
|
-
workflow_calls.append(kwargs)
|
|
2130
|
-
or {
|
|
2131
|
-
"ok": True,
|
|
2132
|
-
"payload": {
|
|
2133
|
-
"workflow": "project_completed",
|
|
2134
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
2135
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
2136
|
-
},
|
|
2137
|
-
}
|
|
2138
|
-
),
|
|
2139
|
-
)
|
|
2140
|
-
|
|
2141
|
-
result = runner.invoke(
|
|
2142
|
-
cli.app,
|
|
2143
|
-
[
|
|
2144
|
-
"workflow-projects",
|
|
2145
|
-
"--project-storage-keys",
|
|
2146
|
-
"88727304",
|
|
2147
|
-
"--report-dir",
|
|
2148
|
-
str(tmp_path),
|
|
2149
|
-
"--offline",
|
|
2150
|
-
"--target",
|
|
2151
|
-
"CL-002",
|
|
2152
|
-
"--no-generate-pdf",
|
|
2153
|
-
"--no-failover",
|
|
2154
|
-
"--force-rerun",
|
|
2155
|
-
"--no-ast-grep",
|
|
2156
|
-
],
|
|
2157
|
-
)
|
|
2158
|
-
|
|
2159
|
-
assert result.exit_code == 0, result.output
|
|
2160
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
2161
|
-
# New passthrough
|
|
2162
|
-
assert workflow_calls[0]["offline"] is True
|
|
2163
|
-
assert workflow_calls[0]["target"] == "CL-002"
|
|
2164
|
-
assert workflow_calls[0]["generate_pdf"] is False
|
|
2165
|
-
# Existing passthrough
|
|
2166
|
-
assert workflow_calls[0]["failover"] is False
|
|
2167
|
-
assert workflow_calls[0]["force_rerun"] is True
|
|
2168
|
-
assert workflow_calls[0]["ast_grep"] is False
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
class TestWorkflowProjectsPhase155NamingHarmonization:
|
|
2172
|
-
"""FR-155.3: --checklist-topology, --require-confluence, --project-storage-key forwarding."""
|
|
2173
|
-
|
|
2174
|
-
def _setup_standard_mocks(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2175
|
-
monkeypatch.setattr(
|
|
2176
|
-
workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state"
|
|
2177
|
-
)
|
|
2178
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
2179
|
-
monkeypatch.setattr(
|
|
2180
|
-
workflow_cmds,
|
|
2181
|
-
"_load_manifest_payload_from_state",
|
|
2182
|
-
lambda state_dsn: {"projects": [_project_payload("88727304", "PAR", "P.NTTT", "88716694")]},
|
|
2183
|
-
)
|
|
2184
|
-
monkeypatch.setattr(
|
|
2185
|
-
workflow_cmds,
|
|
2186
|
-
"_run_parent_prepare_job",
|
|
2187
|
-
lambda **kwargs: {"ok": True, "payload": {"ready": True, "readiness_summary": []}},
|
|
2188
|
-
)
|
|
2189
|
-
|
|
2190
|
-
def _make_workflow_capture(self, monkeypatch: pytest.MonkeyPatch) -> list[dict]:
|
|
2191
|
-
"""Patch _run_parent_workflow_project_job to capture kwargs."""
|
|
2192
|
-
workflow_calls: list[dict] = []
|
|
2193
|
-
monkeypatch.setattr(
|
|
2194
|
-
workflow_cmds,
|
|
2195
|
-
"_run_parent_workflow_project_job",
|
|
2196
|
-
lambda **kwargs: (
|
|
2197
|
-
workflow_calls.append(kwargs)
|
|
2198
|
-
or {
|
|
2199
|
-
"ok": True,
|
|
2200
|
-
"payload": {
|
|
2201
|
-
"workflow": "project_completed",
|
|
2202
|
-
"dispatch_summary": {"errors": 0, "timeouts": 0, "exceptions": 0},
|
|
2203
|
-
"upload_summary": {"enabled": False, "errors": 0, "repo_pages_uploaded": 0},
|
|
2204
|
-
},
|
|
2205
|
-
}
|
|
2206
|
-
),
|
|
2207
|
-
)
|
|
2208
|
-
return workflow_calls
|
|
2209
|
-
|
|
2210
|
-
# -- checklist-topology forwarding --
|
|
2211
|
-
|
|
2212
|
-
def test_checklist_topology_auto_forwarded(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2213
|
-
"""--checklist-topology auto should be forwarded to child."""
|
|
2214
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
2215
|
-
workflow_calls = self._make_workflow_capture(monkeypatch)
|
|
2216
|
-
|
|
2217
|
-
result = runner.invoke(
|
|
2218
|
-
cli.app,
|
|
2219
|
-
[
|
|
2220
|
-
"workflow-projects",
|
|
2221
|
-
"--project-storage-keys",
|
|
2222
|
-
"88727304",
|
|
2223
|
-
"--report-dir",
|
|
2224
|
-
str(tmp_path),
|
|
2225
|
-
"--checklist-topology",
|
|
2226
|
-
"auto",
|
|
2227
|
-
],
|
|
2228
|
-
)
|
|
2229
|
-
|
|
2230
|
-
assert result.exit_code == 0, result.output
|
|
2231
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
2232
|
-
assert workflow_calls[0]["checklist_topology"] == "auto"
|
|
2233
|
-
|
|
2234
|
-
def test_checklist_topology_fixed_forwarded(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2235
|
-
"""--checklist-topology fixed should be forwarded to child."""
|
|
2236
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
2237
|
-
workflow_calls = self._make_workflow_capture(monkeypatch)
|
|
2238
|
-
|
|
2239
|
-
result = runner.invoke(
|
|
2240
|
-
cli.app,
|
|
2241
|
-
[
|
|
2242
|
-
"workflow-projects",
|
|
2243
|
-
"--project-storage-keys",
|
|
2244
|
-
"88727304",
|
|
2245
|
-
"--report-dir",
|
|
2246
|
-
str(tmp_path),
|
|
2247
|
-
"--checklist-topology",
|
|
2248
|
-
"fixed",
|
|
2249
|
-
],
|
|
2250
|
-
)
|
|
2251
|
-
|
|
2252
|
-
assert result.exit_code == 0, result.output
|
|
2253
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
2254
|
-
assert workflow_calls[0]["checklist_topology"] == "fixed"
|
|
2255
|
-
|
|
2256
|
-
def test_checklist_topology_omitted_defaults_none(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2257
|
-
"""Without --checklist-topology, child should receive None."""
|
|
2258
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
2259
|
-
workflow_calls = self._make_workflow_capture(monkeypatch)
|
|
2260
|
-
|
|
2261
|
-
result = runner.invoke(
|
|
2262
|
-
cli.app,
|
|
2263
|
-
[
|
|
2264
|
-
"workflow-projects",
|
|
2265
|
-
"--project-storage-keys",
|
|
2266
|
-
"88727304",
|
|
2267
|
-
"--report-dir",
|
|
2268
|
-
str(tmp_path),
|
|
2269
|
-
],
|
|
2270
|
-
)
|
|
2271
|
-
|
|
2272
|
-
assert result.exit_code == 0, result.output
|
|
2273
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
2274
|
-
assert workflow_calls[0]["checklist_topology"] is None
|
|
2275
|
-
|
|
2276
|
-
# -- require-confluence forwarding --
|
|
2277
|
-
|
|
2278
|
-
def test_require_confluence_true_forwarded(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2279
|
-
"""--require-confluence should be forwarded as True to child."""
|
|
2280
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
2281
|
-
workflow_calls = self._make_workflow_capture(monkeypatch)
|
|
2282
|
-
|
|
2283
|
-
result = runner.invoke(
|
|
2284
|
-
cli.app,
|
|
2285
|
-
[
|
|
2286
|
-
"workflow-projects",
|
|
2287
|
-
"--project-storage-keys",
|
|
2288
|
-
"88727304",
|
|
2289
|
-
"--report-dir",
|
|
2290
|
-
str(tmp_path),
|
|
2291
|
-
"--require-confluence",
|
|
2292
|
-
],
|
|
2293
|
-
)
|
|
2294
|
-
|
|
2295
|
-
assert result.exit_code == 0, result.output
|
|
2296
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
2297
|
-
assert workflow_calls[0]["require_confluence"] is True
|
|
2298
|
-
|
|
2299
|
-
def test_no_require_confluence_forwarded(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2300
|
-
"""--no-require-confluence should be forwarded as False to child."""
|
|
2301
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
2302
|
-
workflow_calls = self._make_workflow_capture(monkeypatch)
|
|
2303
|
-
|
|
2304
|
-
result = runner.invoke(
|
|
2305
|
-
cli.app,
|
|
2306
|
-
[
|
|
2307
|
-
"workflow-projects",
|
|
2308
|
-
"--project-storage-keys",
|
|
2309
|
-
"88727304",
|
|
2310
|
-
"--report-dir",
|
|
2311
|
-
str(tmp_path),
|
|
2312
|
-
"--no-require-confluence",
|
|
2313
|
-
],
|
|
2314
|
-
)
|
|
2315
|
-
|
|
2316
|
-
assert result.exit_code == 0, result.output
|
|
2317
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
2318
|
-
assert workflow_calls[0]["require_confluence"] is False
|
|
2319
|
-
|
|
2320
|
-
def test_require_confluence_omitted_defaults_none(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2321
|
-
"""Without --require-confluence, child should receive None."""
|
|
2322
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
2323
|
-
workflow_calls = self._make_workflow_capture(monkeypatch)
|
|
2324
|
-
|
|
2325
|
-
result = runner.invoke(
|
|
2326
|
-
cli.app,
|
|
2327
|
-
[
|
|
2328
|
-
"workflow-projects",
|
|
2329
|
-
"--project-storage-keys",
|
|
2330
|
-
"88727304",
|
|
2331
|
-
"--report-dir",
|
|
2332
|
-
str(tmp_path),
|
|
2333
|
-
],
|
|
2334
|
-
)
|
|
2335
|
-
|
|
2336
|
-
assert result.exit_code == 0, result.output
|
|
2337
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
2338
|
-
assert workflow_calls[0]["require_confluence"] is None
|
|
2339
|
-
|
|
2340
|
-
# -- project-storage-key singular alias --
|
|
2341
|
-
|
|
2342
|
-
def test_singular_project_storage_key_dispatches(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2343
|
-
"""--project-storage-key (singular) should dispatch like --project-storage-keys."""
|
|
2344
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
2345
|
-
workflow_calls = self._make_workflow_capture(monkeypatch)
|
|
2346
|
-
|
|
2347
|
-
result = runner.invoke(
|
|
2348
|
-
cli.app,
|
|
2349
|
-
[
|
|
2350
|
-
"workflow-projects",
|
|
2351
|
-
"--project-storage-key",
|
|
2352
|
-
"88727304",
|
|
2353
|
-
"--report-dir",
|
|
2354
|
-
str(tmp_path),
|
|
2355
|
-
],
|
|
2356
|
-
)
|
|
2357
|
-
|
|
2358
|
-
assert result.exit_code == 0, result.output
|
|
2359
|
-
assert workflow_calls, "child workflow-project was not invoked"
|
|
2360
|
-
assert workflow_calls[0]["project_storage_key"] == "88727304"
|
|
2361
|
-
|
|
2362
|
-
def test_singular_and_plural_keys_merged(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2363
|
-
"""Both --project-storage-key and --project-storage-keys should be merged."""
|
|
2364
|
-
monkeypatch.setattr(
|
|
2365
|
-
workflow_cmds, "_require_consumer_state_dsn", lambda state_dsn, command: "postgresql://state"
|
|
2366
|
-
)
|
|
2367
|
-
_patch_parent_manifest_updates(monkeypatch)
|
|
2368
|
-
monkeypatch.setattr(
|
|
2369
|
-
workflow_cmds,
|
|
2370
|
-
"_load_manifest_payload_from_state",
|
|
2371
|
-
lambda state_dsn: {
|
|
2372
|
-
"projects": [
|
|
2373
|
-
_project_payload("88727304", "PAR", "P.NTTT", "88716694"),
|
|
2374
|
-
_project_payload("91334048", "CEP2", "P.CEP2", "88716694"),
|
|
2375
|
-
]
|
|
2376
|
-
},
|
|
2377
|
-
)
|
|
2378
|
-
monkeypatch.setattr(
|
|
2379
|
-
workflow_cmds,
|
|
2380
|
-
"_run_parent_prepare_job",
|
|
2381
|
-
lambda **kwargs: {"ok": True, "payload": {"ready": True, "readiness_summary": []}},
|
|
2382
|
-
)
|
|
2383
|
-
workflow_calls = self._make_workflow_capture(monkeypatch)
|
|
2384
|
-
|
|
2385
|
-
result = runner.invoke(
|
|
2386
|
-
cli.app,
|
|
2387
|
-
[
|
|
2388
|
-
"workflow-projects",
|
|
2389
|
-
"--project-storage-keys",
|
|
2390
|
-
"88727304",
|
|
2391
|
-
"--project-storage-key",
|
|
2392
|
-
"91334048",
|
|
2393
|
-
"--report-dir",
|
|
2394
|
-
str(tmp_path),
|
|
2395
|
-
],
|
|
2396
|
-
)
|
|
2397
|
-
|
|
2398
|
-
assert result.exit_code == 0, result.output
|
|
2399
|
-
# Both projects should be dispatched
|
|
2400
|
-
dispatched_keys = {call["project_storage_key"] for call in workflow_calls}
|
|
2401
|
-
assert "88727304" in dispatched_keys
|
|
2402
|
-
assert "91334048" in dispatched_keys
|
|
2403
|
-
|
|
2404
|
-
def test_neither_key_form_nor_registry_fails(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
|
2405
|
-
"""Without any project key source or registry, command should fail."""
|
|
2406
|
-
self._setup_standard_mocks(monkeypatch, tmp_path)
|
|
2407
|
-
|
|
2408
|
-
result = runner.invoke(
|
|
2409
|
-
cli.app,
|
|
2410
|
-
[
|
|
2411
|
-
"workflow-projects",
|
|
2412
|
-
"--report-dir",
|
|
2413
|
-
str(tmp_path),
|
|
2414
|
-
],
|
|
2415
|
-
)
|
|
2416
|
-
|
|
2417
|
-
assert result.exit_code != 0
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
class TestRunParentWorkflowProjectJobCmdBuild:
|
|
2421
|
-
"""Direct unit tests for _run_parent_workflow_project_job CLI arg construction (FR-155.3)."""
|
|
2422
|
-
|
|
2423
|
-
_BASE_KWARGS: dict = {
|
|
2424
|
-
"repo_root": Path("/fake/root"),
|
|
2425
|
-
"state_dsn": "postgresql://state",
|
|
2426
|
-
"project_storage_key": "88727304",
|
|
2427
|
-
"child_thread_id": "tid-001",
|
|
2428
|
-
"child_report_dir": Path("/tmp/reports"),
|
|
2429
|
-
"profiles": None,
|
|
2430
|
-
"profile_availability": workflow_cmds.ProfileAvailabilityMode.ACTIVE,
|
|
2431
|
-
"require_all_profiles": False,
|
|
2432
|
-
"upload_to_confluence": False,
|
|
2433
|
-
"confluence_parent": None,
|
|
2434
|
-
"max_concurrent": 6,
|
|
2435
|
-
"upload_attachments": False,
|
|
2436
|
-
"incremental_upload": False,
|
|
2437
|
-
"aggregate": None,
|
|
2438
|
-
"force_rerun": False,
|
|
2439
|
-
"advisory_search_strategy": True,
|
|
2440
|
-
"ast_grep": True,
|
|
2441
|
-
"cross_repo_evidence": True,
|
|
2442
|
-
"knowledge_agent": True,
|
|
2443
|
-
"failover": True,
|
|
2444
|
-
}
|
|
2445
|
-
|
|
2446
|
-
def _capture_args(self, monkeypatch: pytest.MonkeyPatch, **overrides: object) -> list[str]:
|
|
2447
|
-
"""Call _run_parent_workflow_project_job with mocked _run_command_json and return built args."""
|
|
2448
|
-
captured_args: list[list[str]] = []
|
|
2449
|
-
monkeypatch.setattr(
|
|
2450
|
-
workflow_cmds,
|
|
2451
|
-
"_run_command_json",
|
|
2452
|
-
lambda args, cwd: captured_args.append(args) or {"ok": True, "payload": {}},
|
|
2453
|
-
)
|
|
2454
|
-
kwargs = {**self._BASE_KWARGS, **overrides}
|
|
2455
|
-
workflow_cmds._run_parent_workflow_project_job(**kwargs)
|
|
2456
|
-
assert captured_args, "_run_command_json was not called"
|
|
2457
|
-
return captured_args[0]
|
|
2458
|
-
|
|
2459
|
-
def test_checklist_topology_auto_in_args(self, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
2460
|
-
args = self._capture_args(monkeypatch, checklist_topology="auto")
|
|
2461
|
-
idx = args.index("--checklist-topology")
|
|
2462
|
-
assert args[idx + 1] == "auto"
|
|
2463
|
-
|
|
2464
|
-
def test_checklist_topology_fixed_in_args(self, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
2465
|
-
args = self._capture_args(monkeypatch, checklist_topology="fixed")
|
|
2466
|
-
idx = args.index("--checklist-topology")
|
|
2467
|
-
assert args[idx + 1] == "fixed"
|
|
2468
|
-
|
|
2469
|
-
def test_checklist_topology_none_omitted(self, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
2470
|
-
args = self._capture_args(monkeypatch, checklist_topology=None)
|
|
2471
|
-
assert "--checklist-topology" not in args
|
|
2472
|
-
|
|
2473
|
-
def test_require_confluence_true_in_args(self, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
2474
|
-
args = self._capture_args(monkeypatch, require_confluence=True)
|
|
2475
|
-
assert "--require-confluence" in args
|
|
2476
|
-
assert "--no-require-confluence" not in args
|
|
2477
|
-
|
|
2478
|
-
def test_require_confluence_false_in_args(self, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
2479
|
-
args = self._capture_args(monkeypatch, require_confluence=False)
|
|
2480
|
-
assert "--no-require-confluence" in args
|
|
2481
|
-
# Ensure the positive form is not also present as a separate standalone arg
|
|
2482
|
-
non_negated = [a for a in args if a == "--require-confluence"]
|
|
2483
|
-
assert not non_negated, "Should only have --no-require-confluence"
|
|
2484
|
-
|
|
2485
|
-
def test_require_confluence_none_omitted(self, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
2486
|
-
args = self._capture_args(monkeypatch, require_confluence=None)
|
|
2487
|
-
assert "--require-confluence" not in args
|
|
2488
|
-
assert "--no-require-confluence" not in args
|