@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,1868 +0,0 @@
|
|
|
1
|
-
"""State commands for vds-audit CLI."""
|
|
2
|
-
|
|
3
|
-
# pyright: reportUnusedVariable=false
|
|
4
|
-
|
|
5
|
-
from __future__ import annotations
|
|
6
|
-
|
|
7
|
-
import importlib
|
|
8
|
-
import json
|
|
9
|
-
import re
|
|
10
|
-
from collections.abc import Callable
|
|
11
|
-
from datetime import UTC, datetime
|
|
12
|
-
from pathlib import Path
|
|
13
|
-
from typing import Any, NoReturn
|
|
14
|
-
|
|
15
|
-
import typer
|
|
16
|
-
from psycopg.errors import UniqueViolation
|
|
17
|
-
from rich.panel import Panel
|
|
18
|
-
from rich.table import Table
|
|
19
|
-
|
|
20
|
-
from vds_audit_orchestrator.config import get_config, get_vds_cache_root
|
|
21
|
-
from vds_audit_orchestrator.engine.confluence_checklist_contract import (
|
|
22
|
-
CANONICAL_CHECKLIST_PAGE_ID,
|
|
23
|
-
compute_stable_row_key,
|
|
24
|
-
)
|
|
25
|
-
from vds_audit_orchestrator.phase151_projection import project_profile_metadata, project_status_summary
|
|
26
|
-
from vds_audit_orchestrator.state.store import PostgresStateStore
|
|
27
|
-
|
|
28
|
-
from .cli_common import _STATE_DSN_ENV_VAR, _cli_state, console, logger, state_app
|
|
29
|
-
from .cli_impl import (
|
|
30
|
-
_emit_json,
|
|
31
|
-
_require_consumer_state_dsn,
|
|
32
|
-
_run_state_command,
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
def _state_api_module() -> Any:
|
|
37
|
-
"""Resolve the state module lazily so tests can monkeypatch sys.modules."""
|
|
38
|
-
return importlib.import_module("vds_audit_orchestrator.state")
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
_RECOVERABLE_STATE_COMMAND_ERRORS: tuple[type[Exception], ...] = (
|
|
42
|
-
RuntimeError,
|
|
43
|
-
ValueError,
|
|
44
|
-
LookupError,
|
|
45
|
-
OSError,
|
|
46
|
-
TypeError,
|
|
47
|
-
AttributeError,
|
|
48
|
-
ImportError,
|
|
49
|
-
)
|
|
50
|
-
_LEGACY_ROW_KEY_PATTERN = re.compile(r"^CL-(\d{1,4}):row[_-](\d+)$", re.IGNORECASE)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
def _average_metric(rows: list[dict[str, Any]], key: str) -> float | None:
|
|
54
|
-
values: list[float] = []
|
|
55
|
-
for row in rows:
|
|
56
|
-
value = row.get(key)
|
|
57
|
-
if value is None or isinstance(value, bool):
|
|
58
|
-
continue
|
|
59
|
-
try:
|
|
60
|
-
values.append(float(value))
|
|
61
|
-
except (TypeError, ValueError):
|
|
62
|
-
continue
|
|
63
|
-
if not values:
|
|
64
|
-
return None
|
|
65
|
-
return sum(values) / len(values)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
def _extract_resilience_metrics(payload: dict[str, Any] | None) -> dict[str, Any]:
|
|
69
|
-
"""Extract resilience metrics from a checklist_run payload (TSK-145.17).
|
|
70
|
-
|
|
71
|
-
Returns a dict with retry_count, retry_successes, failover_hops, and
|
|
72
|
-
error_recovery_rate fields. When resilience_summary is absent (older runs
|
|
73
|
-
or runs without retry activity), all fields are None / null.
|
|
74
|
-
"""
|
|
75
|
-
if not isinstance(payload, dict):
|
|
76
|
-
return {
|
|
77
|
-
"retry_count": None,
|
|
78
|
-
"retry_successes": None,
|
|
79
|
-
"failover_hops": None,
|
|
80
|
-
"error_recovery_rate": None,
|
|
81
|
-
}
|
|
82
|
-
summary = payload.get("resilience_summary")
|
|
83
|
-
if not isinstance(summary, dict):
|
|
84
|
-
return {
|
|
85
|
-
"retry_count": None,
|
|
86
|
-
"retry_successes": None,
|
|
87
|
-
"failover_hops": None,
|
|
88
|
-
"error_recovery_rate": None,
|
|
89
|
-
}
|
|
90
|
-
retry_attempts_raw = summary.get("retry_attempts")
|
|
91
|
-
retry_successes_raw = summary.get("retry_successes")
|
|
92
|
-
failover_hops_raw = summary.get("failover_hops_total")
|
|
93
|
-
|
|
94
|
-
retry_attempts = int(retry_attempts_raw) if isinstance(retry_attempts_raw, (int, float)) else None
|
|
95
|
-
retry_successes = int(retry_successes_raw) if isinstance(retry_successes_raw, (int, float)) else None
|
|
96
|
-
failover_hops = int(failover_hops_raw) if isinstance(failover_hops_raw, (int, float)) else None
|
|
97
|
-
|
|
98
|
-
if retry_attempts is not None and retry_successes is not None:
|
|
99
|
-
error_recovery_rate = round(retry_successes / max(retry_attempts, 1), 4)
|
|
100
|
-
else:
|
|
101
|
-
error_recovery_rate = None
|
|
102
|
-
|
|
103
|
-
return {
|
|
104
|
-
"retry_count": retry_attempts,
|
|
105
|
-
"retry_successes": retry_successes,
|
|
106
|
-
"failover_hops": failover_hops,
|
|
107
|
-
"error_recovery_rate": error_recovery_rate,
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
def _enrich_run_with_resilience_metrics(run: dict[str, Any]) -> dict[str, Any]:
|
|
112
|
-
"""Return a new run dict with resilience metrics merged in (TSK-145.17).
|
|
113
|
-
|
|
114
|
-
Reads resilience_summary from run["payload"] and merges the computed
|
|
115
|
-
metrics into a flat resilience_metrics key on the run row.
|
|
116
|
-
"""
|
|
117
|
-
payload = run.get("payload")
|
|
118
|
-
metrics = _extract_resilience_metrics(payload if isinstance(payload, dict) else None)
|
|
119
|
-
return {**run, "resilience_metrics": metrics}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
def _project_run_row_phase151(run: dict[str, Any]) -> dict[str, Any]:
|
|
123
|
-
payload = run.get("payload") if isinstance(run.get("payload"), dict) else {}
|
|
124
|
-
projected = dict(run)
|
|
125
|
-
projected["status_projection"] = project_status_summary(payload)
|
|
126
|
-
projected["profile_projection"] = project_profile_metadata(payload)
|
|
127
|
-
return projected
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
def _summarize_profile_performance_rows(rows: list[dict[str, Any]]) -> dict[str, Any]:
|
|
131
|
-
grouped: dict[str, list[dict[str, Any]]] = {}
|
|
132
|
-
for row in rows:
|
|
133
|
-
profile_name = str(row.get("profile_name") or "").strip() or "unknown"
|
|
134
|
-
grouped.setdefault(profile_name, []).append(row)
|
|
135
|
-
|
|
136
|
-
by_profile: list[dict[str, Any]] = []
|
|
137
|
-
for profile_name, profile_rows in sorted(grouped.items(), key=lambda item: item[0]):
|
|
138
|
-
by_profile.append(
|
|
139
|
-
{
|
|
140
|
-
"profile_name": profile_name,
|
|
141
|
-
"run_count": len(profile_rows),
|
|
142
|
-
"avg_overall_score": _average_metric(profile_rows, "overall_score"),
|
|
143
|
-
"avg_pass_rate": _average_metric(profile_rows, "pass_rate"),
|
|
144
|
-
"avg_error_rate": _average_metric(profile_rows, "error_rate"),
|
|
145
|
-
"avg_timeout_rate": _average_metric(profile_rows, "timeout_rate"),
|
|
146
|
-
"latest_created_at": max(
|
|
147
|
-
(str(row.get("created_at") or "") for row in profile_rows),
|
|
148
|
-
default=None,
|
|
149
|
-
)
|
|
150
|
-
or None,
|
|
151
|
-
}
|
|
152
|
-
)
|
|
153
|
-
|
|
154
|
-
return {
|
|
155
|
-
"row_count": len(rows),
|
|
156
|
-
"profile_count": len(grouped),
|
|
157
|
-
"project_count": len({str(row.get("project_key") or "").strip() for row in rows if row.get("project_key")}),
|
|
158
|
-
"repo_count": len({str(row.get("repo_key") or "").strip() for row in rows if row.get("repo_key")}),
|
|
159
|
-
"by_profile": by_profile,
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
def _handle_state_command_failure(
|
|
164
|
-
*,
|
|
165
|
-
failure_label: str,
|
|
166
|
-
exc: Exception,
|
|
167
|
-
context: dict[str, Any] | None = None,
|
|
168
|
-
recovery_action: str = "emit_cli_error_and_exit_1",
|
|
169
|
-
) -> NoReturn:
|
|
170
|
-
message = f"State {failure_label} failed: {exc}"
|
|
171
|
-
logger.error(
|
|
172
|
-
"state_command_failed",
|
|
173
|
-
error_type=type(exc).__name__,
|
|
174
|
-
source_module=__name__,
|
|
175
|
-
context=context or {"cli_command": failure_label},
|
|
176
|
-
recovery_action=recovery_action,
|
|
177
|
-
)
|
|
178
|
-
if _cli_state.get("json_only"):
|
|
179
|
-
_emit_json({"error": message})
|
|
180
|
-
else:
|
|
181
|
-
console.print(f"[red]{message}[/red]")
|
|
182
|
-
raise typer.Exit(1) from exc
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
def _execute_state_operation(
|
|
186
|
-
*,
|
|
187
|
-
operation: Callable[[], None],
|
|
188
|
-
failure_label: str,
|
|
189
|
-
context: dict[str, Any] | None = None,
|
|
190
|
-
) -> None:
|
|
191
|
-
try:
|
|
192
|
-
operation()
|
|
193
|
-
except typer.Exit:
|
|
194
|
-
raise
|
|
195
|
-
except _RECOVERABLE_STATE_COMMAND_ERRORS as exc:
|
|
196
|
-
_handle_state_command_failure(
|
|
197
|
-
failure_label=failure_label,
|
|
198
|
-
exc=exc,
|
|
199
|
-
context=context,
|
|
200
|
-
recovery_action="emit_cli_error_and_exit_1",
|
|
201
|
-
)
|
|
202
|
-
except Exception as exc: # Defensive fallback to preserve existing CLI UX.
|
|
203
|
-
_handle_state_command_failure(
|
|
204
|
-
failure_label=failure_label,
|
|
205
|
-
exc=exc,
|
|
206
|
-
context=context,
|
|
207
|
-
recovery_action="emit_cli_error_and_exit_1_unexpected",
|
|
208
|
-
)
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
def _execute_state_command(
|
|
212
|
-
*,
|
|
213
|
-
command: str,
|
|
214
|
-
failure_label: str,
|
|
215
|
-
state_dsn: str | None,
|
|
216
|
-
extra: dict[str, Any] | None = None,
|
|
217
|
-
context: dict[str, Any] | None = None,
|
|
218
|
-
) -> None:
|
|
219
|
-
command_context = {"command": command, "cli_command": failure_label}
|
|
220
|
-
if context:
|
|
221
|
-
command_context.update(context)
|
|
222
|
-
|
|
223
|
-
if command == "query_departments":
|
|
224
|
-
|
|
225
|
-
def _operation() -> None:
|
|
226
|
-
resolved_dsn = _require_consumer_state_dsn(state_dsn, command="state query-departments")
|
|
227
|
-
result = _state_api_module().query_departments(
|
|
228
|
-
state_dsn=resolved_dsn,
|
|
229
|
-
department=(extra or {}).get("department"),
|
|
230
|
-
limit=(extra or {}).get("limit"),
|
|
231
|
-
)
|
|
232
|
-
payload = {
|
|
233
|
-
"status": "ok",
|
|
234
|
-
"operation": "query_departments",
|
|
235
|
-
"selectors": {"department": (extra or {}).get("department")},
|
|
236
|
-
"result": result,
|
|
237
|
-
}
|
|
238
|
-
if _cli_state.get("json_only"):
|
|
239
|
-
_emit_json(payload)
|
|
240
|
-
else:
|
|
241
|
-
table = Table(show_lines=False)
|
|
242
|
-
table.add_column("Department", style="cyan")
|
|
243
|
-
table.add_column("Page ID", style="dim")
|
|
244
|
-
table.add_column("Projects", justify="right")
|
|
245
|
-
table.add_column("Repos", justify="right")
|
|
246
|
-
for row in result:
|
|
247
|
-
table.add_row(
|
|
248
|
-
str(row.get("department") or "—"),
|
|
249
|
-
str(row.get("department_page_id") or "—"),
|
|
250
|
-
str(row.get("project_count") or 0),
|
|
251
|
-
str(row.get("repo_count") or 0),
|
|
252
|
-
)
|
|
253
|
-
console.print(table)
|
|
254
|
-
console.print(f"[green]Departments: {len(result)}[/green]")
|
|
255
|
-
|
|
256
|
-
_execute_state_operation(operation=_operation, failure_label=failure_label, context=command_context)
|
|
257
|
-
return
|
|
258
|
-
|
|
259
|
-
if command == "query_projects":
|
|
260
|
-
|
|
261
|
-
def _operation() -> None:
|
|
262
|
-
resolved_dsn = _require_consumer_state_dsn(state_dsn, command="state query-projects")
|
|
263
|
-
result = _state_api_module().query_projects(
|
|
264
|
-
state_dsn=resolved_dsn,
|
|
265
|
-
project=(extra or {}).get("project"),
|
|
266
|
-
department=(extra or {}).get("department"),
|
|
267
|
-
limit=(extra or {}).get("limit"),
|
|
268
|
-
)
|
|
269
|
-
payload = {
|
|
270
|
-
"status": "ok",
|
|
271
|
-
"operation": "query_projects",
|
|
272
|
-
"selectors": {"project": (extra or {}).get("project"), "department": (extra or {}).get("department")},
|
|
273
|
-
"result": result,
|
|
274
|
-
}
|
|
275
|
-
if _cli_state.get("json_only"):
|
|
276
|
-
_emit_json(payload)
|
|
277
|
-
else:
|
|
278
|
-
table = Table(show_lines=False)
|
|
279
|
-
table.add_column("Key", style="cyan")
|
|
280
|
-
table.add_column("Name", style="green")
|
|
281
|
-
table.add_column("Department", style="dim")
|
|
282
|
-
table.add_column("Repos", justify="right")
|
|
283
|
-
for row in result:
|
|
284
|
-
table.add_row(
|
|
285
|
-
str(row.get("project_storage_key") or "—"),
|
|
286
|
-
str(row.get("project_name") or row.get("project_name_en") or "—"),
|
|
287
|
-
str(row.get("department") or "—"),
|
|
288
|
-
str(row.get("repo_count") or 0),
|
|
289
|
-
)
|
|
290
|
-
console.print(table)
|
|
291
|
-
console.print(f"[green]Projects: {len(result)}[/green]")
|
|
292
|
-
|
|
293
|
-
_execute_state_operation(operation=_operation, failure_label=failure_label, context=command_context)
|
|
294
|
-
return
|
|
295
|
-
|
|
296
|
-
if command == "query_repos":
|
|
297
|
-
|
|
298
|
-
def _operation() -> None:
|
|
299
|
-
resolved_dsn = _require_consumer_state_dsn(state_dsn, command="state query-repos")
|
|
300
|
-
result = _state_api_module().query_repos(
|
|
301
|
-
state_dsn=resolved_dsn,
|
|
302
|
-
project=str((extra or {}).get("project") or ""),
|
|
303
|
-
repo=(extra or {}).get("repo"),
|
|
304
|
-
limit=(extra or {}).get("limit"),
|
|
305
|
-
)
|
|
306
|
-
payload = {
|
|
307
|
-
"status": "ok",
|
|
308
|
-
"operation": "query_repos",
|
|
309
|
-
"selectors": {"project": (extra or {}).get("project"), "repo": (extra or {}).get("repo")},
|
|
310
|
-
"result": result,
|
|
311
|
-
}
|
|
312
|
-
if _cli_state.get("json_only"):
|
|
313
|
-
_emit_json(payload)
|
|
314
|
-
else:
|
|
315
|
-
table = Table(show_lines=False)
|
|
316
|
-
table.add_column("Key", style="cyan")
|
|
317
|
-
table.add_column("Slug", style="green")
|
|
318
|
-
table.add_column("Project", style="dim")
|
|
319
|
-
table.add_column("Role", style="dim")
|
|
320
|
-
for row in result:
|
|
321
|
-
table.add_row(
|
|
322
|
-
str(row.get("repo_storage_key") or "—"),
|
|
323
|
-
str(row.get("repo_slug") or row.get("repo_name") or "—"),
|
|
324
|
-
str(row.get("project_storage_key") or "—"),
|
|
325
|
-
str(row.get("role") or "—"),
|
|
326
|
-
)
|
|
327
|
-
console.print(table)
|
|
328
|
-
console.print(f"[green]Repositories: {len(result)}[/green]")
|
|
329
|
-
|
|
330
|
-
_execute_state_operation(operation=_operation, failure_label=failure_label, context=command_context)
|
|
331
|
-
return
|
|
332
|
-
|
|
333
|
-
if command == "query_summary":
|
|
334
|
-
|
|
335
|
-
def _operation() -> None:
|
|
336
|
-
resolved_dsn = _require_consumer_state_dsn(state_dsn, command="state query-summary")
|
|
337
|
-
result = _state_api_module().query_summary(
|
|
338
|
-
state_dsn=resolved_dsn,
|
|
339
|
-
project=str((extra or {}).get("project") or ""),
|
|
340
|
-
repo=(extra or {}).get("repo"),
|
|
341
|
-
include_completeness=bool((extra or {}).get("include_completeness", True)),
|
|
342
|
-
)
|
|
343
|
-
payload = {
|
|
344
|
-
"status": "ok",
|
|
345
|
-
"operation": "query_summary",
|
|
346
|
-
"selectors": {"project": (extra or {}).get("project"), "repo": (extra or {}).get("repo")},
|
|
347
|
-
"result": result,
|
|
348
|
-
}
|
|
349
|
-
if _cli_state.get("json_only"):
|
|
350
|
-
_emit_json(payload)
|
|
351
|
-
else:
|
|
352
|
-
console.print("[green]State query_summary completed.[/green]")
|
|
353
|
-
|
|
354
|
-
_execute_state_operation(operation=_operation, failure_label=failure_label, context=command_context)
|
|
355
|
-
return
|
|
356
|
-
|
|
357
|
-
_execute_state_operation(
|
|
358
|
-
operation=lambda: _run_state_command(command, state_dsn=state_dsn, extra=extra),
|
|
359
|
-
failure_label=failure_label,
|
|
360
|
-
context=command_context,
|
|
361
|
-
)
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
@state_app.command(name="init")
|
|
365
|
-
def state_init(
|
|
366
|
-
state_dsn: str | None = typer.Option(
|
|
367
|
-
None,
|
|
368
|
-
"--state-dsn",
|
|
369
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
370
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
371
|
-
),
|
|
372
|
-
) -> None:
|
|
373
|
-
"""Initialize state backend schema/storage."""
|
|
374
|
-
_execute_state_command(
|
|
375
|
-
command="init",
|
|
376
|
-
failure_label="init",
|
|
377
|
-
state_dsn=state_dsn,
|
|
378
|
-
)
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
@state_app.command(name="validate")
|
|
382
|
-
def state_validate(
|
|
383
|
-
state_dsn: str | None = typer.Option(
|
|
384
|
-
None,
|
|
385
|
-
"--state-dsn",
|
|
386
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
387
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
388
|
-
),
|
|
389
|
-
) -> None:
|
|
390
|
-
"""Validate state backend connectivity/invariants."""
|
|
391
|
-
_execute_state_command(
|
|
392
|
-
command="validate",
|
|
393
|
-
failure_label="validate",
|
|
394
|
-
state_dsn=state_dsn,
|
|
395
|
-
)
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
@state_app.command(name="export")
|
|
399
|
-
def state_export(
|
|
400
|
-
state_dsn: str | None = typer.Option(
|
|
401
|
-
None,
|
|
402
|
-
"--state-dsn",
|
|
403
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
404
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
405
|
-
),
|
|
406
|
-
output: Path | None = typer.Option(
|
|
407
|
-
None,
|
|
408
|
-
"--output",
|
|
409
|
-
"-o",
|
|
410
|
-
help="Output path for exported state snapshot.",
|
|
411
|
-
),
|
|
412
|
-
) -> None:
|
|
413
|
-
"""Export state backend data."""
|
|
414
|
-
_execute_state_command(
|
|
415
|
-
command="export",
|
|
416
|
-
failure_label="export",
|
|
417
|
-
state_dsn=state_dsn,
|
|
418
|
-
extra={"output": output, "output_path": output},
|
|
419
|
-
)
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
@state_app.command(name="doctor")
|
|
423
|
-
def state_doctor(
|
|
424
|
-
state_dsn: str | None = typer.Option(
|
|
425
|
-
None,
|
|
426
|
-
"--state-dsn",
|
|
427
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
428
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
429
|
-
),
|
|
430
|
-
) -> None:
|
|
431
|
-
"""Run state backend diagnostics."""
|
|
432
|
-
_execute_state_command(
|
|
433
|
-
command="doctor",
|
|
434
|
-
failure_label="doctor",
|
|
435
|
-
state_dsn=state_dsn,
|
|
436
|
-
)
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
@state_app.command(name="repair")
|
|
440
|
-
def state_repair(
|
|
441
|
-
state_dsn: str | None = typer.Option(
|
|
442
|
-
None,
|
|
443
|
-
"--state-dsn",
|
|
444
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
445
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
446
|
-
),
|
|
447
|
-
) -> None:
|
|
448
|
-
"""Repair state backend inconsistencies."""
|
|
449
|
-
_execute_state_command(
|
|
450
|
-
command="repair",
|
|
451
|
-
failure_label="repair",
|
|
452
|
-
state_dsn=state_dsn,
|
|
453
|
-
)
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
@state_app.command(name="list-runs")
|
|
457
|
-
def state_list_runs(
|
|
458
|
-
state_dsn: str | None = typer.Option(
|
|
459
|
-
None,
|
|
460
|
-
"--state-dsn",
|
|
461
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
462
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
463
|
-
),
|
|
464
|
-
project_storage_key: str | None = typer.Option(
|
|
465
|
-
None,
|
|
466
|
-
"--project-storage-key",
|
|
467
|
-
help="Optional project storage key filter.",
|
|
468
|
-
),
|
|
469
|
-
run_type: str | None = typer.Option(
|
|
470
|
-
None,
|
|
471
|
-
"--run-type",
|
|
472
|
-
help="Optional run type filter (workflow|workflow_defaults|workflow_project|upload_results).",
|
|
473
|
-
),
|
|
474
|
-
thread_id: str | None = typer.Option(
|
|
475
|
-
None,
|
|
476
|
-
"--thread-id",
|
|
477
|
-
help="Optional thread ID filter.",
|
|
478
|
-
),
|
|
479
|
-
limit: int = typer.Option(
|
|
480
|
-
100,
|
|
481
|
-
"--limit",
|
|
482
|
-
min=1,
|
|
483
|
-
help="Maximum runs to return.",
|
|
484
|
-
),
|
|
485
|
-
) -> None:
|
|
486
|
-
"""List typed run rows from centralized state with resilience metrics (TSK-145.17)."""
|
|
487
|
-
|
|
488
|
-
def _operation() -> None:
|
|
489
|
-
resolved_dsn = _require_consumer_state_dsn(state_dsn, command="state list-runs")
|
|
490
|
-
store = PostgresStateStore(resolved_dsn)
|
|
491
|
-
raw_rows = store.list_runs(
|
|
492
|
-
project_key=project_storage_key,
|
|
493
|
-
run_type=run_type,
|
|
494
|
-
thread_id=thread_id,
|
|
495
|
-
limit=limit,
|
|
496
|
-
)
|
|
497
|
-
rows = [dict(row) for row in (raw_rows or [])]
|
|
498
|
-
enriched = [_project_run_row_phase151(_enrich_run_with_resilience_metrics(row)) for row in rows]
|
|
499
|
-
if _cli_state.get("json_only"):
|
|
500
|
-
_emit_json({"status": "ok", "operation": "list_runs", "result": enriched})
|
|
501
|
-
else:
|
|
502
|
-
console.print("[green]State list_runs completed.[/green]")
|
|
503
|
-
console.print(f"Runs: {len(enriched)}")
|
|
504
|
-
|
|
505
|
-
_execute_state_operation(
|
|
506
|
-
operation=_operation,
|
|
507
|
-
failure_label="list-runs",
|
|
508
|
-
context={"command": "list_runs", "cli_command": "list-runs"},
|
|
509
|
-
)
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
@state_app.command(name="list-run-roots")
|
|
513
|
-
def state_list_run_roots(
|
|
514
|
-
project_storage_key: str = typer.Option(
|
|
515
|
-
...,
|
|
516
|
-
"--project-storage-key",
|
|
517
|
-
help="Project storage key to list run roots for.",
|
|
518
|
-
),
|
|
519
|
-
state_dsn: str | None = typer.Option(
|
|
520
|
-
None,
|
|
521
|
-
"--state-dsn",
|
|
522
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
523
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
524
|
-
),
|
|
525
|
-
limit: int = typer.Option(
|
|
526
|
-
100,
|
|
527
|
-
"--limit",
|
|
528
|
-
min=1,
|
|
529
|
-
help="Maximum run roots to return.",
|
|
530
|
-
),
|
|
531
|
-
) -> None:
|
|
532
|
-
"""List available run roots for a project, showing thread_id and run_root path."""
|
|
533
|
-
_execute_state_command(
|
|
534
|
-
command="list_run_roots",
|
|
535
|
-
failure_label="list-run-roots",
|
|
536
|
-
state_dsn=state_dsn,
|
|
537
|
-
extra={
|
|
538
|
-
"project_key": project_storage_key,
|
|
539
|
-
"limit": limit,
|
|
540
|
-
},
|
|
541
|
-
)
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
@state_app.command(name="show-run")
|
|
545
|
-
def state_show_run(
|
|
546
|
-
run_id: str = typer.Option(..., "--run-id", help="Run ID to inspect."),
|
|
547
|
-
include_events: bool = typer.Option(
|
|
548
|
-
False,
|
|
549
|
-
"--include-events/--no-include-events",
|
|
550
|
-
help="Include run_events in the response payload.",
|
|
551
|
-
),
|
|
552
|
-
state_dsn: str | None = typer.Option(
|
|
553
|
-
None,
|
|
554
|
-
"--state-dsn",
|
|
555
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
556
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
557
|
-
),
|
|
558
|
-
) -> None:
|
|
559
|
-
"""Show one typed run row by run ID."""
|
|
560
|
-
|
|
561
|
-
def _operation() -> None:
|
|
562
|
-
resolved_dsn = _require_consumer_state_dsn(state_dsn, command="state show-run")
|
|
563
|
-
store = PostgresStateStore(resolved_dsn)
|
|
564
|
-
try:
|
|
565
|
-
result = store.show_run(run_id=run_id)
|
|
566
|
-
payload: dict[str, Any] = {"status": "ok", "operation": "show_run", "result": None}
|
|
567
|
-
if result is not None:
|
|
568
|
-
run_row = _project_run_row_phase151(_enrich_run_with_resilience_metrics(dict(result)))
|
|
569
|
-
result_payload: dict[str, Any] = {"run": run_row}
|
|
570
|
-
if include_events:
|
|
571
|
-
result_payload["events"] = store.list_run_events(run_id=run_id, limit=None)
|
|
572
|
-
payload["result"] = result_payload
|
|
573
|
-
if _cli_state.get("json_only"):
|
|
574
|
-
_emit_json(payload)
|
|
575
|
-
else:
|
|
576
|
-
console.print("[green]State show_run completed.[/green]")
|
|
577
|
-
finally:
|
|
578
|
-
store.close()
|
|
579
|
-
|
|
580
|
-
_execute_state_operation(
|
|
581
|
-
operation=_operation,
|
|
582
|
-
failure_label="show-run",
|
|
583
|
-
context={"command": "show_run", "cli_command": "show-run"},
|
|
584
|
-
)
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
@state_app.command(name="profile-stats")
|
|
588
|
-
def state_profile_stats(
|
|
589
|
-
profile: str | None = typer.Option(
|
|
590
|
-
None,
|
|
591
|
-
"--profile",
|
|
592
|
-
help="Optional profile name filter (for example codex-chatgpt).",
|
|
593
|
-
),
|
|
594
|
-
project_storage_key: str | None = typer.Option(
|
|
595
|
-
None,
|
|
596
|
-
"--project-storage-key",
|
|
597
|
-
help="Optional project storage key filter.",
|
|
598
|
-
),
|
|
599
|
-
repo_storage_key: str | None = typer.Option(
|
|
600
|
-
None,
|
|
601
|
-
"--repo-storage-key",
|
|
602
|
-
help="Optional repo storage key filter (applied after query).",
|
|
603
|
-
),
|
|
604
|
-
last_n: int = typer.Option(
|
|
605
|
-
50,
|
|
606
|
-
"--last-n",
|
|
607
|
-
min=1,
|
|
608
|
-
max=1000,
|
|
609
|
-
help="Maximum number of profile-performance rows to query.",
|
|
610
|
-
),
|
|
611
|
-
state_dsn: str | None = typer.Option(
|
|
612
|
-
None,
|
|
613
|
-
"--state-dsn",
|
|
614
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
615
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
616
|
-
),
|
|
617
|
-
) -> None:
|
|
618
|
-
"""Query profile performance registry rows and summary metrics."""
|
|
619
|
-
resolved_dsn = _require_consumer_state_dsn(state_dsn, command="state profile-stats")
|
|
620
|
-
store = PostgresStateStore(resolved_dsn)
|
|
621
|
-
try:
|
|
622
|
-
rows_raw = store.query_profile_performance(
|
|
623
|
-
profile_name=profile,
|
|
624
|
-
project_key=project_storage_key,
|
|
625
|
-
last_n=last_n,
|
|
626
|
-
)
|
|
627
|
-
rows = [dict(row) for row in rows_raw]
|
|
628
|
-
if repo_storage_key:
|
|
629
|
-
rows = [row for row in rows if str(row.get("repo_key") or "").strip() == repo_storage_key]
|
|
630
|
-
summary = _summarize_profile_performance_rows(rows)
|
|
631
|
-
payload = {
|
|
632
|
-
"status": "ok",
|
|
633
|
-
"operation": "state_profile_stats",
|
|
634
|
-
"filters": {
|
|
635
|
-
"profile": profile,
|
|
636
|
-
"project_storage_key": project_storage_key,
|
|
637
|
-
"repo_storage_key": repo_storage_key,
|
|
638
|
-
"last_n": last_n,
|
|
639
|
-
},
|
|
640
|
-
"summary": summary,
|
|
641
|
-
"rows": rows,
|
|
642
|
-
}
|
|
643
|
-
if _cli_state.get("json_only"):
|
|
644
|
-
_emit_json(payload)
|
|
645
|
-
return
|
|
646
|
-
|
|
647
|
-
console.print(
|
|
648
|
-
Panel.fit(
|
|
649
|
-
f"[bold]Rows:[/bold] {summary['row_count']} "
|
|
650
|
-
f"[bold]Profiles:[/bold] {summary['profile_count']} "
|
|
651
|
-
f"[bold]Projects:[/bold] {summary['project_count']} "
|
|
652
|
-
f"[bold]Repos:[/bold] {summary['repo_count']}",
|
|
653
|
-
title="Profile Performance Stats",
|
|
654
|
-
)
|
|
655
|
-
)
|
|
656
|
-
if not rows:
|
|
657
|
-
console.print("[yellow]No profile performance rows matched the supplied filters.[/yellow]")
|
|
658
|
-
return
|
|
659
|
-
|
|
660
|
-
table = Table(show_lines=False)
|
|
661
|
-
table.add_column("Profile", style="cyan")
|
|
662
|
-
table.add_column("Project", style="green")
|
|
663
|
-
table.add_column("Repo", style="green")
|
|
664
|
-
table.add_column("Run ID", style="dim")
|
|
665
|
-
table.add_column("Score", justify="right")
|
|
666
|
-
table.add_column("Pass", justify="right")
|
|
667
|
-
table.add_column("Error", justify="right")
|
|
668
|
-
table.add_column("Timeout", justify="right")
|
|
669
|
-
table.add_column("Created", style="dim")
|
|
670
|
-
|
|
671
|
-
for row in rows:
|
|
672
|
-
score = row.get("overall_score")
|
|
673
|
-
pass_rate = row.get("pass_rate")
|
|
674
|
-
error_rate = row.get("error_rate")
|
|
675
|
-
timeout_rate = row.get("timeout_rate")
|
|
676
|
-
table.add_row(
|
|
677
|
-
str(row.get("profile_name") or "—"),
|
|
678
|
-
str(row.get("project_key") or "—"),
|
|
679
|
-
str(row.get("repo_key") or "—"),
|
|
680
|
-
str(row.get("run_id") or "—"),
|
|
681
|
-
f"{float(score):.2f}" if score is not None else "—",
|
|
682
|
-
f"{float(pass_rate):.3f}" if pass_rate is not None else "—",
|
|
683
|
-
f"{float(error_rate):.3f}" if error_rate is not None else "—",
|
|
684
|
-
f"{float(timeout_rate):.3f}" if timeout_rate is not None else "—",
|
|
685
|
-
str(row.get("created_at") or "—"),
|
|
686
|
-
)
|
|
687
|
-
console.print(table)
|
|
688
|
-
finally:
|
|
689
|
-
store.close()
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
@state_app.command(name="list-snapshots")
|
|
693
|
-
def state_list_snapshots(
|
|
694
|
-
project_storage_key: str = typer.Option(
|
|
695
|
-
...,
|
|
696
|
-
"--project-storage-key",
|
|
697
|
-
help="Project storage key to list snapshot artifacts for.",
|
|
698
|
-
),
|
|
699
|
-
state_dsn: str | None = typer.Option(
|
|
700
|
-
None,
|
|
701
|
-
"--state-dsn",
|
|
702
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
703
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
704
|
-
),
|
|
705
|
-
limit: int = typer.Option(
|
|
706
|
-
200,
|
|
707
|
-
"--limit",
|
|
708
|
-
min=1,
|
|
709
|
-
help="Maximum snapshot rows to return.",
|
|
710
|
-
),
|
|
711
|
-
) -> None:
|
|
712
|
-
"""List project-scoped artifact snapshots from centralized state."""
|
|
713
|
-
_execute_state_command(
|
|
714
|
-
command="list_snapshots",
|
|
715
|
-
failure_label="list-snapshots",
|
|
716
|
-
state_dsn=state_dsn,
|
|
717
|
-
extra={
|
|
718
|
-
"project_storage_key": project_storage_key,
|
|
719
|
-
"limit": limit,
|
|
720
|
-
},
|
|
721
|
-
)
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
@state_app.command(name="resolve-run-input")
|
|
725
|
-
def state_resolve_run_input(
|
|
726
|
-
project: str = typer.Option(
|
|
727
|
-
...,
|
|
728
|
-
"--project",
|
|
729
|
-
help="Project identifier to resolve (storage key, page ID, or project name).",
|
|
730
|
-
),
|
|
731
|
-
repo: str | None = typer.Option(
|
|
732
|
-
None,
|
|
733
|
-
"--repo",
|
|
734
|
-
help="Optional repository selector (repo key, slug, storage key, or URL).",
|
|
735
|
-
),
|
|
736
|
-
state_dsn: str | None = typer.Option(
|
|
737
|
-
None,
|
|
738
|
-
"--state-dsn",
|
|
739
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
740
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
741
|
-
),
|
|
742
|
-
) -> None:
|
|
743
|
-
"""Resolve canonical project/repo run input from centralized state."""
|
|
744
|
-
_execute_state_command(
|
|
745
|
-
command="resolve_run_input",
|
|
746
|
-
failure_label="resolve-run-input",
|
|
747
|
-
state_dsn=state_dsn,
|
|
748
|
-
extra={
|
|
749
|
-
"project": project,
|
|
750
|
-
"project_identifier": project,
|
|
751
|
-
"repo": repo,
|
|
752
|
-
"repo_identifier": repo,
|
|
753
|
-
},
|
|
754
|
-
)
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
@state_app.command(name="workflow-params")
|
|
758
|
-
def state_resolve_workflow_run_parameters(
|
|
759
|
-
project: str = typer.Option(
|
|
760
|
-
...,
|
|
761
|
-
"--project",
|
|
762
|
-
help="Project identifier to resolve (storage key, page ID, or project name).",
|
|
763
|
-
),
|
|
764
|
-
repo: str | None = typer.Option(
|
|
765
|
-
None,
|
|
766
|
-
"--repo",
|
|
767
|
-
help="Optional repository selector (repo key, slug, storage key, or URL).",
|
|
768
|
-
),
|
|
769
|
-
state_dsn: str | None = typer.Option(
|
|
770
|
-
None,
|
|
771
|
-
"--state-dsn",
|
|
772
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
773
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
774
|
-
),
|
|
775
|
-
) -> None:
|
|
776
|
-
"""Resolve reusable workflow parameters from Postgres run ledger."""
|
|
777
|
-
_execute_state_command(
|
|
778
|
-
command="resolve_workflow_run_parameters",
|
|
779
|
-
failure_label="workflow-params",
|
|
780
|
-
state_dsn=state_dsn,
|
|
781
|
-
extra={
|
|
782
|
-
"project": project,
|
|
783
|
-
"project_identifier": project,
|
|
784
|
-
"repo": repo,
|
|
785
|
-
"repo_identifier": repo,
|
|
786
|
-
},
|
|
787
|
-
)
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
@state_app.command(name="readiness")
|
|
791
|
-
def state_readiness(
|
|
792
|
-
project: str = typer.Option(
|
|
793
|
-
...,
|
|
794
|
-
"--project",
|
|
795
|
-
help="Project identifier to resolve (storage key, page ID, or project name).",
|
|
796
|
-
),
|
|
797
|
-
repo: str | None = typer.Option(
|
|
798
|
-
None,
|
|
799
|
-
"--repo",
|
|
800
|
-
help="Optional repository selector (repo key, slug, storage key, or URL).",
|
|
801
|
-
),
|
|
802
|
-
skip_completeness_check: bool = typer.Option(
|
|
803
|
-
False,
|
|
804
|
-
"--skip-completeness-check",
|
|
805
|
-
help="Skip completeness assessment in readiness check (TSK-126.11).",
|
|
806
|
-
),
|
|
807
|
-
state_dsn: str | None = typer.Option(
|
|
808
|
-
None,
|
|
809
|
-
"--state-dsn",
|
|
810
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
811
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
812
|
-
),
|
|
813
|
-
) -> None:
|
|
814
|
-
"""Return project/repo readiness status from centralized state metadata."""
|
|
815
|
-
_execute_state_command(
|
|
816
|
-
command="readiness",
|
|
817
|
-
failure_label="readiness",
|
|
818
|
-
state_dsn=state_dsn,
|
|
819
|
-
extra={
|
|
820
|
-
"project": project,
|
|
821
|
-
"project_identifier": project,
|
|
822
|
-
"repo": repo,
|
|
823
|
-
"repo_identifier": repo,
|
|
824
|
-
"skip_completeness_check": skip_completeness_check,
|
|
825
|
-
},
|
|
826
|
-
)
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
@state_app.command(name="completeness")
|
|
830
|
-
def state_completeness(
|
|
831
|
-
project: str = typer.Option(
|
|
832
|
-
...,
|
|
833
|
-
"--project",
|
|
834
|
-
help="Project identifier to resolve (storage key, page ID, or project name).",
|
|
835
|
-
),
|
|
836
|
-
deep_check: bool = typer.Option(
|
|
837
|
-
False,
|
|
838
|
-
"--deep-check",
|
|
839
|
-
help="Enable remote signal validation (slower but more accurate).",
|
|
840
|
-
),
|
|
841
|
-
skip_stale: bool = typer.Option(
|
|
842
|
-
False,
|
|
843
|
-
"--skip-stale",
|
|
844
|
-
help="Skip materials that are cached but stale (faster).",
|
|
845
|
-
),
|
|
846
|
-
min_threshold: float = typer.Option(
|
|
847
|
-
80.0,
|
|
848
|
-
"--min-threshold",
|
|
849
|
-
min=0.0,
|
|
850
|
-
max=100.0,
|
|
851
|
-
help="Minimum completeness threshold percentage (default: 80).",
|
|
852
|
-
),
|
|
853
|
-
state_dsn: str | None = typer.Option(
|
|
854
|
-
None,
|
|
855
|
-
"--state-dsn",
|
|
856
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
857
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
858
|
-
),
|
|
859
|
-
) -> None:
|
|
860
|
-
"""Return material completeness assessment from project_preparation.sync_metadata (TSK-126.10).
|
|
861
|
-
|
|
862
|
-
Reads the stored completeness report from the last completeness check run,
|
|
863
|
-
showing metrics like:
|
|
864
|
-
- completeness_pct: Percentage of required materials that are prepared
|
|
865
|
-
- freshness_pct: Percentage of prepared materials that are fresh
|
|
866
|
-
- readiness_status: ready/needs_attention/critical based on thresholds
|
|
867
|
-
|
|
868
|
-
Note: This command reads stored completeness data. To run a fresh completeness
|
|
869
|
-
check with remote signal validation, use the MaterialCompletenessService directly.
|
|
870
|
-
|
|
871
|
-
Example:
|
|
872
|
-
vds-audit state completeness --project 88718940
|
|
873
|
-
vds-audit state completeness --project 88718940 --min-threshold 90
|
|
874
|
-
"""
|
|
875
|
-
_execute_state_command(
|
|
876
|
-
command="completeness",
|
|
877
|
-
failure_label="completeness",
|
|
878
|
-
state_dsn=state_dsn,
|
|
879
|
-
extra={
|
|
880
|
-
"project": project,
|
|
881
|
-
"project_identifier": project,
|
|
882
|
-
"deep_check": deep_check,
|
|
883
|
-
"skip_stale": skip_stale,
|
|
884
|
-
"min_threshold": min_threshold,
|
|
885
|
-
},
|
|
886
|
-
)
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
@state_app.command(name="list-links")
|
|
890
|
-
def state_list_links(
|
|
891
|
-
project: str = typer.Option(
|
|
892
|
-
...,
|
|
893
|
-
"--project",
|
|
894
|
-
help="Project identifier to resolve (storage key, page ID, or project name).",
|
|
895
|
-
),
|
|
896
|
-
repo: str | None = typer.Option(
|
|
897
|
-
None,
|
|
898
|
-
"--repo",
|
|
899
|
-
help="Optional repository selector (repo key, slug, storage key, or URL).",
|
|
900
|
-
),
|
|
901
|
-
state_dsn: str | None = typer.Option(
|
|
902
|
-
None,
|
|
903
|
-
"--state-dsn",
|
|
904
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
905
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
906
|
-
),
|
|
907
|
-
) -> None:
|
|
908
|
-
"""List normalized project/repo links from centralized state snapshots."""
|
|
909
|
-
_execute_state_command(
|
|
910
|
-
command="list_links",
|
|
911
|
-
failure_label="list-links",
|
|
912
|
-
state_dsn=state_dsn,
|
|
913
|
-
extra={
|
|
914
|
-
"project": project,
|
|
915
|
-
"project_identifier": project,
|
|
916
|
-
"repo": repo,
|
|
917
|
-
"repo_identifier": repo,
|
|
918
|
-
},
|
|
919
|
-
)
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
@state_app.command(name="query-departments")
|
|
923
|
-
def state_query_departments(
|
|
924
|
-
department: str | None = typer.Option(None, "--department", help="Optional department selector filter."),
|
|
925
|
-
state_dsn: str | None = typer.Option(
|
|
926
|
-
None,
|
|
927
|
-
"--state-dsn",
|
|
928
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
929
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
930
|
-
),
|
|
931
|
-
limit: int = typer.Option(100, "--limit", min=1, help="Maximum departments to return."),
|
|
932
|
-
) -> None:
|
|
933
|
-
"""Query department-level summaries from centralized state."""
|
|
934
|
-
_execute_state_command(
|
|
935
|
-
command="query_departments",
|
|
936
|
-
failure_label="query-departments",
|
|
937
|
-
state_dsn=state_dsn,
|
|
938
|
-
extra={"department": department, "limit": limit},
|
|
939
|
-
)
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
@state_app.command(name="query-projects")
|
|
943
|
-
def state_query_projects(
|
|
944
|
-
project: str | None = typer.Option(
|
|
945
|
-
None, "--project", help="Optional project selector (storage key, page ID, or project name)."
|
|
946
|
-
),
|
|
947
|
-
department: str | None = typer.Option(None, "--department", help="Optional department selector filter."),
|
|
948
|
-
state_dsn: str | None = typer.Option(
|
|
949
|
-
None,
|
|
950
|
-
"--state-dsn",
|
|
951
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
952
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
953
|
-
),
|
|
954
|
-
limit: int = typer.Option(100, "--limit", min=1, help="Maximum projects to return."),
|
|
955
|
-
) -> None:
|
|
956
|
-
"""Query project-level summaries from centralized state."""
|
|
957
|
-
_execute_state_command(
|
|
958
|
-
command="query_projects",
|
|
959
|
-
failure_label="query-projects",
|
|
960
|
-
state_dsn=state_dsn,
|
|
961
|
-
extra={"project": project, "department": department, "limit": limit},
|
|
962
|
-
)
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
@state_app.command(name="query-repos")
|
|
966
|
-
def state_query_repos(
|
|
967
|
-
project: str = typer.Option(..., "--project", help="Project selector (storage key, page ID, or project name)."),
|
|
968
|
-
repo: str | None = typer.Option(None, "--repo", help="Optional repository selector."),
|
|
969
|
-
state_dsn: str | None = typer.Option(
|
|
970
|
-
None,
|
|
971
|
-
"--state-dsn",
|
|
972
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
973
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
974
|
-
),
|
|
975
|
-
limit: int = typer.Option(200, "--limit", min=1, help="Maximum repositories to return."),
|
|
976
|
-
) -> None:
|
|
977
|
-
"""Query repository-level summaries from centralized state."""
|
|
978
|
-
_execute_state_command(
|
|
979
|
-
command="query_repos",
|
|
980
|
-
failure_label="query-repos",
|
|
981
|
-
state_dsn=state_dsn,
|
|
982
|
-
extra={"project": project, "repo": repo, "limit": limit},
|
|
983
|
-
)
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
@state_app.command(name="query-runs")
|
|
987
|
-
def state_query_runs(
|
|
988
|
-
project: str = typer.Option(..., "--project", help="Project selector (storage key, page ID, or project name)."),
|
|
989
|
-
repo: str | None = typer.Option(None, "--repo", help="Optional repository selector."),
|
|
990
|
-
run_type: str | None = typer.Option(None, "--run-type", help="Optional run type filter."),
|
|
991
|
-
status: str | None = typer.Option(None, "--status", help="Optional lifecycle status filter."),
|
|
992
|
-
state_dsn: str | None = typer.Option(
|
|
993
|
-
None,
|
|
994
|
-
"--state-dsn",
|
|
995
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
996
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
997
|
-
),
|
|
998
|
-
limit: int = typer.Option(100, "--limit", min=1, help="Maximum runs to return."),
|
|
999
|
-
) -> None:
|
|
1000
|
-
"""Query run rows by project/repository hierarchy selectors."""
|
|
1001
|
-
|
|
1002
|
-
def _operation() -> None:
|
|
1003
|
-
resolved_dsn = _require_consumer_state_dsn(state_dsn, command="state query-runs")
|
|
1004
|
-
rows = _state_api_module().query_runs(
|
|
1005
|
-
state_dsn=resolved_dsn,
|
|
1006
|
-
project=project,
|
|
1007
|
-
repo=repo,
|
|
1008
|
-
run_type=run_type,
|
|
1009
|
-
status=status,
|
|
1010
|
-
limit=limit,
|
|
1011
|
-
)
|
|
1012
|
-
enriched = [_project_run_row_phase151(_enrich_run_with_resilience_metrics(dict(row))) for row in rows]
|
|
1013
|
-
payload = {
|
|
1014
|
-
"status": "ok",
|
|
1015
|
-
"operation": "query_runs",
|
|
1016
|
-
"selectors": {"project": project, "repo": repo},
|
|
1017
|
-
"result": enriched,
|
|
1018
|
-
}
|
|
1019
|
-
if _cli_state.get("json_only"):
|
|
1020
|
-
_emit_json(payload)
|
|
1021
|
-
else:
|
|
1022
|
-
console.print("[green]State query_runs completed.[/green]")
|
|
1023
|
-
console.print(f"Runs: {len(enriched)}")
|
|
1024
|
-
|
|
1025
|
-
_execute_state_operation(
|
|
1026
|
-
operation=_operation,
|
|
1027
|
-
failure_label="query-runs",
|
|
1028
|
-
context={"command": "query_runs", "cli_command": "query-runs"},
|
|
1029
|
-
)
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
@state_app.command(name="query-summary")
|
|
1033
|
-
def state_query_summary(
|
|
1034
|
-
project: str = typer.Option(..., "--project", help="Project selector (storage key, page ID, or project name)."),
|
|
1035
|
-
repo: str | None = typer.Option(None, "--repo", help="Optional repository selector."),
|
|
1036
|
-
state_dsn: str | None = typer.Option(
|
|
1037
|
-
None,
|
|
1038
|
-
"--state-dsn",
|
|
1039
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
1040
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
1041
|
-
),
|
|
1042
|
-
no_completeness: bool = typer.Option(
|
|
1043
|
-
False, "--no-completeness", help="Skip completeness calculation in summary output."
|
|
1044
|
-
),
|
|
1045
|
-
) -> None:
|
|
1046
|
-
"""Query a read-only project/repository summary for downstream workflow bootstrap."""
|
|
1047
|
-
_execute_state_command(
|
|
1048
|
-
command="query_summary",
|
|
1049
|
-
failure_label="query-summary",
|
|
1050
|
-
state_dsn=state_dsn,
|
|
1051
|
-
extra={"project": project, "repo": repo, "include_completeness": not no_completeness},
|
|
1052
|
-
)
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
@state_app.command(name="set-repo-analysis")
|
|
1056
|
-
def state_set_repo_analysis(
|
|
1057
|
-
project: str = typer.Option(
|
|
1058
|
-
...,
|
|
1059
|
-
"--project",
|
|
1060
|
-
help="Project identifier to resolve (storage key, page ID, or project name).",
|
|
1061
|
-
),
|
|
1062
|
-
repo: str = typer.Option(
|
|
1063
|
-
...,
|
|
1064
|
-
"--repo",
|
|
1065
|
-
help="Repository selector (canonical repo key preferred; slug/URL supported).",
|
|
1066
|
-
),
|
|
1067
|
-
exclude: bool = typer.Option(
|
|
1068
|
-
True,
|
|
1069
|
-
"--exclude/--include",
|
|
1070
|
-
help="Set repo analysis exclusion (default: exclude). Use --include to clear exclusion.",
|
|
1071
|
-
),
|
|
1072
|
-
reason: str | None = typer.Option(
|
|
1073
|
-
None,
|
|
1074
|
-
"--reason",
|
|
1075
|
-
help="Required when --exclude; ignored when --include.",
|
|
1076
|
-
),
|
|
1077
|
-
state_dsn: str | None = typer.Option(
|
|
1078
|
-
None,
|
|
1079
|
-
"--state-dsn",
|
|
1080
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
1081
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
1082
|
-
),
|
|
1083
|
-
) -> None:
|
|
1084
|
-
"""Set/clear canonical repo analysis exclusion used by readiness/workflow filtering."""
|
|
1085
|
-
_execute_state_command(
|
|
1086
|
-
command="set_repo_analysis_exclusion",
|
|
1087
|
-
failure_label="set-repo-analysis",
|
|
1088
|
-
state_dsn=state_dsn,
|
|
1089
|
-
extra={
|
|
1090
|
-
"project": project,
|
|
1091
|
-
"project_identifier": project,
|
|
1092
|
-
"repo": repo,
|
|
1093
|
-
"repo_identifier": repo,
|
|
1094
|
-
"analysis_excluded": bool(exclude),
|
|
1095
|
-
"analysis_exclusion_reason": reason,
|
|
1096
|
-
},
|
|
1097
|
-
)
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
@state_app.command(name="compact")
|
|
1101
|
-
def state_compact(
|
|
1102
|
-
retention_days: int = typer.Option(
|
|
1103
|
-
30,
|
|
1104
|
-
"--retention-days",
|
|
1105
|
-
min=1,
|
|
1106
|
-
help="Retain run-events newer than this number of days.",
|
|
1107
|
-
),
|
|
1108
|
-
dry_run: bool = typer.Option(
|
|
1109
|
-
True,
|
|
1110
|
-
"--dry-run/--execute",
|
|
1111
|
-
help="Preview deletion counts only; pass --execute to apply deletion.",
|
|
1112
|
-
),
|
|
1113
|
-
state_dsn: str | None = typer.Option(
|
|
1114
|
-
None,
|
|
1115
|
-
"--state-dsn",
|
|
1116
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
1117
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
1118
|
-
),
|
|
1119
|
-
) -> None:
|
|
1120
|
-
"""Compact old run-event rows while preserving live-run events."""
|
|
1121
|
-
_execute_state_command(
|
|
1122
|
-
command="compact",
|
|
1123
|
-
failure_label="compact",
|
|
1124
|
-
state_dsn=state_dsn,
|
|
1125
|
-
extra={"retention_days": retention_days, "dry_run": dry_run},
|
|
1126
|
-
)
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
@state_app.command(name="reconcile-runs")
|
|
1130
|
-
def state_reconcile_runs(
|
|
1131
|
-
stale_after_minutes: int = typer.Option(
|
|
1132
|
-
60,
|
|
1133
|
-
"--stale-after-minutes",
|
|
1134
|
-
min=1,
|
|
1135
|
-
help="Mark running/pending runs older than this threshold as failed.",
|
|
1136
|
-
),
|
|
1137
|
-
target_statuses: list[str] = typer.Option(
|
|
1138
|
-
["running", "pending"],
|
|
1139
|
-
"--status",
|
|
1140
|
-
help="Target run statuses to reconcile (repeatable).",
|
|
1141
|
-
),
|
|
1142
|
-
dry_run: bool = typer.Option(
|
|
1143
|
-
True,
|
|
1144
|
-
"--dry-run/--execute",
|
|
1145
|
-
help="Preview stale run candidates only; pass --execute to persist updates.",
|
|
1146
|
-
),
|
|
1147
|
-
state_dsn: str | None = typer.Option(
|
|
1148
|
-
None,
|
|
1149
|
-
"--state-dsn",
|
|
1150
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
1151
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
1152
|
-
),
|
|
1153
|
-
) -> None:
|
|
1154
|
-
"""Reconcile stale run rows by finalizing abandoned running/pending executions."""
|
|
1155
|
-
_execute_state_command(
|
|
1156
|
-
command="reconcile_runs",
|
|
1157
|
-
failure_label="reconcile-runs",
|
|
1158
|
-
state_dsn=state_dsn,
|
|
1159
|
-
extra={
|
|
1160
|
-
"stale_after_minutes": stale_after_minutes,
|
|
1161
|
-
"target_statuses": target_statuses,
|
|
1162
|
-
"dry_run": dry_run,
|
|
1163
|
-
},
|
|
1164
|
-
)
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
@state_app.command(name="index-health")
|
|
1168
|
-
def state_index_health(
|
|
1169
|
-
state_dsn: str | None = typer.Option(
|
|
1170
|
-
None,
|
|
1171
|
-
"--state-dsn",
|
|
1172
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
1173
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
1174
|
-
),
|
|
1175
|
-
bootstrap: bool = typer.Option(
|
|
1176
|
-
False,
|
|
1177
|
-
"--bootstrap/--no-bootstrap",
|
|
1178
|
-
help="Attempt pgvector extension/index bootstrap before returning diagnostics.",
|
|
1179
|
-
),
|
|
1180
|
-
index_type: str = typer.Option(
|
|
1181
|
-
"hnsw",
|
|
1182
|
-
"--index-type",
|
|
1183
|
-
help="Vector index strategy when bootstrapping: hnsw|ivfflat.",
|
|
1184
|
-
),
|
|
1185
|
-
dimensions: int | None = typer.Option(
|
|
1186
|
-
None,
|
|
1187
|
-
"--dimensions",
|
|
1188
|
-
min=1,
|
|
1189
|
-
help=(
|
|
1190
|
-
"Embedding vector dimensions for bootstrap (for example 1024 for bge-m3). "
|
|
1191
|
-
"When omitted with --bootstrap, defaults to configured embedding dimensions."
|
|
1192
|
-
),
|
|
1193
|
-
),
|
|
1194
|
-
) -> None:
|
|
1195
|
-
"""Show pgvector readiness diagnostics with lexical fallback status."""
|
|
1196
|
-
|
|
1197
|
-
def _operation() -> None:
|
|
1198
|
-
resolved_dimensions = dimensions
|
|
1199
|
-
if bootstrap and resolved_dimensions is None:
|
|
1200
|
-
resolved_dimensions = int(get_config().embedding.dimensions)
|
|
1201
|
-
_run_state_command(
|
|
1202
|
-
"vector_index_health",
|
|
1203
|
-
state_dsn=state_dsn,
|
|
1204
|
-
extra={
|
|
1205
|
-
"bootstrap": bootstrap,
|
|
1206
|
-
"index_type": index_type,
|
|
1207
|
-
"dimensions": resolved_dimensions,
|
|
1208
|
-
},
|
|
1209
|
-
)
|
|
1210
|
-
|
|
1211
|
-
_execute_state_operation(
|
|
1212
|
-
operation=_operation,
|
|
1213
|
-
failure_label="index-health",
|
|
1214
|
-
context={"command": "vector_index_health", "cli_command": "index-health"},
|
|
1215
|
-
)
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
@state_app.command(name="list-retrieval-snapshots")
|
|
1219
|
-
def state_list_retrieval_snapshots(
|
|
1220
|
-
project_storage_key: str = typer.Option(
|
|
1221
|
-
...,
|
|
1222
|
-
"--project-storage-key",
|
|
1223
|
-
help="Project storage key to list retrieval snapshots for.",
|
|
1224
|
-
),
|
|
1225
|
-
repo_storage_key: str | None = typer.Option(
|
|
1226
|
-
None,
|
|
1227
|
-
"--repo-storage-key",
|
|
1228
|
-
help="Optional repo storage key filter.",
|
|
1229
|
-
),
|
|
1230
|
-
state_dsn: str | None = typer.Option(
|
|
1231
|
-
None,
|
|
1232
|
-
"--state-dsn",
|
|
1233
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
1234
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
1235
|
-
),
|
|
1236
|
-
limit: int = typer.Option(
|
|
1237
|
-
200,
|
|
1238
|
-
"--limit",
|
|
1239
|
-
min=1,
|
|
1240
|
-
help="Maximum retrieval snapshot rows to return.",
|
|
1241
|
-
),
|
|
1242
|
-
) -> None:
|
|
1243
|
-
"""List retrieval snapshots with embedding lineage metadata."""
|
|
1244
|
-
_execute_state_command(
|
|
1245
|
-
command="list_retrieval_snapshots",
|
|
1246
|
-
failure_label="list-retrieval-snapshots",
|
|
1247
|
-
state_dsn=state_dsn,
|
|
1248
|
-
extra={
|
|
1249
|
-
"project_key": project_storage_key,
|
|
1250
|
-
"repo_key": repo_storage_key,
|
|
1251
|
-
"limit": limit,
|
|
1252
|
-
},
|
|
1253
|
-
)
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
@state_app.command(name="refresh-retrieval-snapshot")
|
|
1257
|
-
def state_refresh_retrieval_snapshot(
|
|
1258
|
-
project_storage_key: str = typer.Option(
|
|
1259
|
-
...,
|
|
1260
|
-
"--project-storage-key",
|
|
1261
|
-
help="Project storage key for the retrieval snapshot refresh.",
|
|
1262
|
-
),
|
|
1263
|
-
snapshot_key: str = typer.Option(
|
|
1264
|
-
...,
|
|
1265
|
-
"--snapshot-key",
|
|
1266
|
-
help="Deterministic retrieval snapshot key to write.",
|
|
1267
|
-
),
|
|
1268
|
-
chunks_path: Path = typer.Option(
|
|
1269
|
-
...,
|
|
1270
|
-
"--chunks-path",
|
|
1271
|
-
exists=True,
|
|
1272
|
-
file_okay=True,
|
|
1273
|
-
dir_okay=False,
|
|
1274
|
-
help="Path to JSON/JSONL chunk manifest with chunk_id/content_hash/content_text fields.",
|
|
1275
|
-
),
|
|
1276
|
-
repo_storage_key: str | None = typer.Option(
|
|
1277
|
-
None,
|
|
1278
|
-
"--repo-storage-key",
|
|
1279
|
-
help="Optional repo storage key scope.",
|
|
1280
|
-
),
|
|
1281
|
-
model: str = typer.Option(
|
|
1282
|
-
"bge-m3",
|
|
1283
|
-
"--model",
|
|
1284
|
-
help="Embedding model override (default: bge-m3).",
|
|
1285
|
-
),
|
|
1286
|
-
batch_size: int = typer.Option(
|
|
1287
|
-
25,
|
|
1288
|
-
"--batch-size",
|
|
1289
|
-
min=1,
|
|
1290
|
-
max=25,
|
|
1291
|
-
help="Embedding batch size (hard cap: 25 per Ollama call).",
|
|
1292
|
-
),
|
|
1293
|
-
timeout_seconds: float = typer.Option(
|
|
1294
|
-
30.0,
|
|
1295
|
-
"--timeout-seconds",
|
|
1296
|
-
min=1.0,
|
|
1297
|
-
help="Embedding request timeout in seconds.",
|
|
1298
|
-
),
|
|
1299
|
-
embedding_base_url: str = typer.Option(
|
|
1300
|
-
"http://127.0.0.1:11434",
|
|
1301
|
-
"--embedding-base-url",
|
|
1302
|
-
help="Base URL for embedding service endpoint.",
|
|
1303
|
-
),
|
|
1304
|
-
index_type: str = typer.Option(
|
|
1305
|
-
"hnsw",
|
|
1306
|
-
"--index-type",
|
|
1307
|
-
help="Vector index strategy for snapshot diagnostics: hnsw|ivfflat.",
|
|
1308
|
-
),
|
|
1309
|
-
state_dsn: str | None = typer.Option(
|
|
1310
|
-
None,
|
|
1311
|
-
"--state-dsn",
|
|
1312
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
1313
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
1314
|
-
),
|
|
1315
|
-
) -> None:
|
|
1316
|
-
"""Refresh retrieval snapshot with default intelligent changed-only chunk persistence + embedding updates."""
|
|
1317
|
-
_execute_state_command(
|
|
1318
|
-
command="refresh_retrieval_snapshot",
|
|
1319
|
-
failure_label="refresh-retrieval-snapshot",
|
|
1320
|
-
state_dsn=state_dsn,
|
|
1321
|
-
extra={
|
|
1322
|
-
"project_key": project_storage_key,
|
|
1323
|
-
"repo_key": repo_storage_key,
|
|
1324
|
-
"snapshot_key": snapshot_key,
|
|
1325
|
-
"chunks_path": chunks_path,
|
|
1326
|
-
"model": model,
|
|
1327
|
-
"batch_size": batch_size,
|
|
1328
|
-
"timeout_seconds": timeout_seconds,
|
|
1329
|
-
"embedding_base_url": embedding_base_url,
|
|
1330
|
-
"index_type": index_type,
|
|
1331
|
-
},
|
|
1332
|
-
)
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
def _extract_criterion_path(payload: dict[str, Any]) -> list[str]:
|
|
1336
|
-
criterion_path = payload.get("criterion_path")
|
|
1337
|
-
if isinstance(criterion_path, list):
|
|
1338
|
-
return [str(item).strip() for item in criterion_path if str(item).strip()]
|
|
1339
|
-
if isinstance(criterion_path, str):
|
|
1340
|
-
normalized = criterion_path.strip()
|
|
1341
|
-
if not normalized:
|
|
1342
|
-
return []
|
|
1343
|
-
return [part for part in normalized.split("/") if part.strip()]
|
|
1344
|
-
return []
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
def _resolve_row_index(candidate: dict[str, Any]) -> int:
|
|
1348
|
-
row_index = candidate.get("row_index")
|
|
1349
|
-
if isinstance(row_index, int) and row_index >= 0:
|
|
1350
|
-
return row_index
|
|
1351
|
-
legacy_key = str(candidate.get("row_key") or "").strip()
|
|
1352
|
-
if match := _LEGACY_ROW_KEY_PATTERN.match(legacy_key):
|
|
1353
|
-
return int(match.group(2))
|
|
1354
|
-
return 0
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
def _emit_state_migration_payload(payload: dict[str, Any]) -> None:
|
|
1358
|
-
if _cli_state.get("json_only"):
|
|
1359
|
-
_emit_json(payload)
|
|
1360
|
-
return
|
|
1361
|
-
status = str(payload.get("status") or "unknown").upper()
|
|
1362
|
-
operation = str(payload.get("operation") or "state_migrate_row_keys")
|
|
1363
|
-
mode = str(payload.get("mode") or "dry_run")
|
|
1364
|
-
project_scope = str(payload.get("project_selector_used") or "all-projects")
|
|
1365
|
-
console.print(
|
|
1366
|
-
Panel.fit(
|
|
1367
|
-
f"[bold]Operation:[/bold] {operation}\n"
|
|
1368
|
-
f"[bold]Mode:[/bold] {mode}\n"
|
|
1369
|
-
f"[bold]Status:[/bold] {status}\n"
|
|
1370
|
-
f"[bold]Project scope:[/bold] {project_scope}\n"
|
|
1371
|
-
f"[bold]Legacy candidates:[/bold] {payload.get('legacy_candidate_count', 0)}\n"
|
|
1372
|
-
f"[bold]Updated:[/bold] {payload.get('updated_count', 0)}\n"
|
|
1373
|
-
f"[bold]Skipped duplicates:[/bold] {payload.get('skipped_duplicate_count', 0)}\n"
|
|
1374
|
-
f"[bold]Missing criterion_path:[/bold] {payload.get('missing_criterion_path_count', 0)}",
|
|
1375
|
-
title="State Row-Key Migration",
|
|
1376
|
-
)
|
|
1377
|
-
)
|
|
1378
|
-
if payload.get("snapshot_file"):
|
|
1379
|
-
console.print(f"[cyan]Snapshot file:[/cyan] {payload['snapshot_file']}")
|
|
1380
|
-
advisory = str(payload.get("advisory") or "").strip()
|
|
1381
|
-
if advisory:
|
|
1382
|
-
console.print(advisory)
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
@state_app.command(name="migrate-row-keys")
|
|
1386
|
-
def state_migrate_row_keys(
|
|
1387
|
-
project: str | None = typer.Option(
|
|
1388
|
-
None,
|
|
1389
|
-
"--project",
|
|
1390
|
-
help="Optional project storage key scope for migration.",
|
|
1391
|
-
),
|
|
1392
|
-
execute: bool = typer.Option(
|
|
1393
|
-
False,
|
|
1394
|
-
"--execute",
|
|
1395
|
-
help="Apply row-key migration updates (default: dry-run only).",
|
|
1396
|
-
),
|
|
1397
|
-
batch_size: int = typer.Option(
|
|
1398
|
-
500,
|
|
1399
|
-
"--batch-size",
|
|
1400
|
-
min=1,
|
|
1401
|
-
max=5000,
|
|
1402
|
-
help="Batch size for scanning/updating legacy row-key rows.",
|
|
1403
|
-
),
|
|
1404
|
-
verify: bool = typer.Option(
|
|
1405
|
-
False,
|
|
1406
|
-
"--verify",
|
|
1407
|
-
help="Read-only verification of row-key migration status.",
|
|
1408
|
-
),
|
|
1409
|
-
rollback: bool = typer.Option(
|
|
1410
|
-
False,
|
|
1411
|
-
"--rollback",
|
|
1412
|
-
help="Rollback migrated row keys using snapshot JSONL.",
|
|
1413
|
-
),
|
|
1414
|
-
rollback_file: Path | None = typer.Option(
|
|
1415
|
-
None,
|
|
1416
|
-
"--rollback-file",
|
|
1417
|
-
file_okay=True,
|
|
1418
|
-
dir_okay=False,
|
|
1419
|
-
readable=True,
|
|
1420
|
-
help="Snapshot JSONL path generated by migrate-row-keys --execute.",
|
|
1421
|
-
),
|
|
1422
|
-
state_dsn: str | None = typer.Option(
|
|
1423
|
-
None,
|
|
1424
|
-
"--state-dsn",
|
|
1425
|
-
envvar=_STATE_DSN_ENV_VAR,
|
|
1426
|
-
help=f"State backend DSN (fallback: {_STATE_DSN_ENV_VAR}).",
|
|
1427
|
-
),
|
|
1428
|
-
) -> None:
|
|
1429
|
-
"""Migrate legacy CL-NNN:row_N checklist row keys to canonical stable keys."""
|
|
1430
|
-
if verify and rollback:
|
|
1431
|
-
raise typer.BadParameter("--verify and --rollback are mutually exclusive.")
|
|
1432
|
-
if rollback and rollback_file is None:
|
|
1433
|
-
raise typer.BadParameter("--rollback-file is required when --rollback is set.")
|
|
1434
|
-
if rollback and not execute:
|
|
1435
|
-
raise typer.BadParameter("--rollback requires --execute.")
|
|
1436
|
-
resolved_dsn = _require_consumer_state_dsn(state_dsn, command="state migrate-row-keys")
|
|
1437
|
-
store = PostgresStateStore(resolved_dsn)
|
|
1438
|
-
try:
|
|
1439
|
-
if verify:
|
|
1440
|
-
summary = store.verify_row_key_migration(project_key=project)
|
|
1441
|
-
payload = {
|
|
1442
|
-
"status": "pass" if summary["migration_complete"] else "warn",
|
|
1443
|
-
"operation": "state_migrate_row_keys",
|
|
1444
|
-
"mode": "verify",
|
|
1445
|
-
"project_selector_used": project,
|
|
1446
|
-
**summary,
|
|
1447
|
-
"safe_to_proceed": bool(summary["migration_complete"]),
|
|
1448
|
-
"advisory": (
|
|
1449
|
-
"Safe to proceed: no legacy CL-NNN:row_N keys detected."
|
|
1450
|
-
if summary["migration_complete"]
|
|
1451
|
-
else "Legacy row keys still present. Run `vds-audit state migrate-row-keys --execute`."
|
|
1452
|
-
),
|
|
1453
|
-
"warnings": [],
|
|
1454
|
-
"errors": [],
|
|
1455
|
-
}
|
|
1456
|
-
_emit_state_migration_payload(payload)
|
|
1457
|
-
return
|
|
1458
|
-
|
|
1459
|
-
if rollback:
|
|
1460
|
-
assert rollback_file is not None # Narrowing for type-checkers
|
|
1461
|
-
restored_count = 0
|
|
1462
|
-
skipped_duplicate_count = 0
|
|
1463
|
-
skipped_scope_count = 0
|
|
1464
|
-
parse_error_count = 0
|
|
1465
|
-
warnings: list[str] = []
|
|
1466
|
-
errors: list[str] = []
|
|
1467
|
-
with rollback_file.open("r", encoding="utf-8") as handle:
|
|
1468
|
-
for line_number, raw_line in enumerate(handle, start=1):
|
|
1469
|
-
line = raw_line.strip()
|
|
1470
|
-
if not line:
|
|
1471
|
-
continue
|
|
1472
|
-
try:
|
|
1473
|
-
entry = json.loads(line)
|
|
1474
|
-
except json.JSONDecodeError:
|
|
1475
|
-
parse_error_count += 1
|
|
1476
|
-
warnings.append(f"Line {line_number}: invalid JSON skipped.")
|
|
1477
|
-
continue
|
|
1478
|
-
entry_project = str(entry.get("project_key") or "").strip()
|
|
1479
|
-
if project and entry_project and entry_project != project:
|
|
1480
|
-
skipped_scope_count += 1
|
|
1481
|
-
continue
|
|
1482
|
-
row_result_id = entry.get("row_result_id")
|
|
1483
|
-
old_row_key = str(entry.get("old_row_key") or "").strip()
|
|
1484
|
-
if not isinstance(row_result_id, int) or not old_row_key:
|
|
1485
|
-
parse_error_count += 1
|
|
1486
|
-
warnings.append(f"Line {line_number}: missing row_result_id/int or old_row_key; skipped.")
|
|
1487
|
-
continue
|
|
1488
|
-
try:
|
|
1489
|
-
updated = store.update_checklist_row_key_by_id(
|
|
1490
|
-
row_result_id=row_result_id,
|
|
1491
|
-
new_row_key=old_row_key,
|
|
1492
|
-
)
|
|
1493
|
-
if updated:
|
|
1494
|
-
restored_count += 1
|
|
1495
|
-
except UniqueViolation:
|
|
1496
|
-
skipped_duplicate_count += 1
|
|
1497
|
-
warnings.append(f"Row result id {row_result_id}: duplicate row_key '{old_row_key}' skipped.")
|
|
1498
|
-
except Exception as exc:
|
|
1499
|
-
errors.append(f"Row result id {row_result_id}: rollback failed: {exc}")
|
|
1500
|
-
payload = {
|
|
1501
|
-
"status": "fail" if errors else ("warn" if warnings else "pass"),
|
|
1502
|
-
"operation": "state_migrate_row_keys",
|
|
1503
|
-
"mode": "rollback",
|
|
1504
|
-
"project_selector_used": project,
|
|
1505
|
-
"rollback_file": str(rollback_file),
|
|
1506
|
-
"restored_count": restored_count,
|
|
1507
|
-
"skipped_duplicate_count": skipped_duplicate_count,
|
|
1508
|
-
"skipped_scope_count": skipped_scope_count,
|
|
1509
|
-
"parse_error_count": parse_error_count,
|
|
1510
|
-
"warnings": warnings[:100],
|
|
1511
|
-
"errors": errors[:100],
|
|
1512
|
-
"advisory": "Rollback complete." if not errors else "Rollback completed with errors.",
|
|
1513
|
-
}
|
|
1514
|
-
_emit_state_migration_payload(payload)
|
|
1515
|
-
if errors:
|
|
1516
|
-
raise typer.Exit(1)
|
|
1517
|
-
return
|
|
1518
|
-
|
|
1519
|
-
legacy_candidate_count = store.count_legacy_row_key_candidates(project_key=project)
|
|
1520
|
-
warnings: list[str] = []
|
|
1521
|
-
errors: list[str] = []
|
|
1522
|
-
missing_criterion_path_count = 0
|
|
1523
|
-
skipped_duplicate_count = 0
|
|
1524
|
-
updated_count = 0
|
|
1525
|
-
sampled_rows: list[dict[str, Any]] = []
|
|
1526
|
-
snapshot_file: Path | None = None
|
|
1527
|
-
if execute and legacy_candidate_count > 0:
|
|
1528
|
-
migration_dir = get_vds_cache_root().parent / "migrations"
|
|
1529
|
-
migration_dir.mkdir(parents=True, exist_ok=True)
|
|
1530
|
-
timestamp = datetime.now(UTC).strftime("%Y%m%d-%H%M%S")
|
|
1531
|
-
snapshot_file = migration_dir / f"row-key-backfill-{timestamp}.jsonl"
|
|
1532
|
-
with snapshot_file.open("w", encoding="utf-8") as snapshot:
|
|
1533
|
-
after_id = 0
|
|
1534
|
-
while True:
|
|
1535
|
-
rows = store.list_legacy_row_key_candidates(
|
|
1536
|
-
project_key=project,
|
|
1537
|
-
after_id=after_id,
|
|
1538
|
-
limit=batch_size,
|
|
1539
|
-
)
|
|
1540
|
-
if not rows:
|
|
1541
|
-
break
|
|
1542
|
-
for row in rows:
|
|
1543
|
-
after_id = max(after_id, int(row["id"]))
|
|
1544
|
-
payload = dict(row.get("payload") or {})
|
|
1545
|
-
criterion_path = _extract_criterion_path(payload)
|
|
1546
|
-
row_index = _resolve_row_index(row)
|
|
1547
|
-
if not criterion_path:
|
|
1548
|
-
missing_criterion_path_count += 1
|
|
1549
|
-
warnings.append(
|
|
1550
|
-
f"Row result id {row['id']} missing criterion_path; fallback row-{row_index} applied."
|
|
1551
|
-
)
|
|
1552
|
-
new_row_key = compute_stable_row_key(
|
|
1553
|
-
profile_id="default",
|
|
1554
|
-
page_id=CANONICAL_CHECKLIST_PAGE_ID,
|
|
1555
|
-
criterion_path=criterion_path,
|
|
1556
|
-
local_ordinal=row_index,
|
|
1557
|
-
)
|
|
1558
|
-
snapshot.write(
|
|
1559
|
-
json.dumps(
|
|
1560
|
-
{
|
|
1561
|
-
"row_result_id": row["id"],
|
|
1562
|
-
"checklist_run_id": row["checklist_run_id"],
|
|
1563
|
-
"run_id": row["run_id"],
|
|
1564
|
-
"project_key": row["project_key"],
|
|
1565
|
-
"repo_key": row.get("repo_key"),
|
|
1566
|
-
"row_index": row_index,
|
|
1567
|
-
"old_row_key": row["row_key"],
|
|
1568
|
-
"new_row_key": new_row_key,
|
|
1569
|
-
"criterion_path": criterion_path,
|
|
1570
|
-
},
|
|
1571
|
-
ensure_ascii=True,
|
|
1572
|
-
)
|
|
1573
|
-
+ "\n"
|
|
1574
|
-
)
|
|
1575
|
-
try:
|
|
1576
|
-
updated = store.update_checklist_row_key_by_id(
|
|
1577
|
-
row_result_id=int(row["id"]),
|
|
1578
|
-
new_row_key=new_row_key,
|
|
1579
|
-
)
|
|
1580
|
-
if updated:
|
|
1581
|
-
updated_count += 1
|
|
1582
|
-
except UniqueViolation:
|
|
1583
|
-
skipped_duplicate_count += 1
|
|
1584
|
-
warnings.append(
|
|
1585
|
-
f"Row result id {row['id']} duplicate canonical row_key '{new_row_key}' skipped."
|
|
1586
|
-
)
|
|
1587
|
-
except Exception as exc:
|
|
1588
|
-
errors.append(f"Row result id {row['id']} migration failed: {exc}")
|
|
1589
|
-
else:
|
|
1590
|
-
sample_rows = store.list_legacy_row_key_candidates(project_key=project, after_id=0, limit=20)
|
|
1591
|
-
for row in sample_rows:
|
|
1592
|
-
payload = dict(row.get("payload") or {})
|
|
1593
|
-
criterion_path = _extract_criterion_path(payload)
|
|
1594
|
-
row_index = _resolve_row_index(row)
|
|
1595
|
-
if not criterion_path:
|
|
1596
|
-
missing_criterion_path_count += 1
|
|
1597
|
-
sampled_rows.append(
|
|
1598
|
-
{
|
|
1599
|
-
"row_result_id": row["id"],
|
|
1600
|
-
"run_id": row["run_id"],
|
|
1601
|
-
"project_key": row["project_key"],
|
|
1602
|
-
"repo_key": row.get("repo_key"),
|
|
1603
|
-
"old_row_key": row["row_key"],
|
|
1604
|
-
"row_index": row_index,
|
|
1605
|
-
"new_row_key": compute_stable_row_key(
|
|
1606
|
-
profile_id="default",
|
|
1607
|
-
page_id=CANONICAL_CHECKLIST_PAGE_ID,
|
|
1608
|
-
criterion_path=criterion_path,
|
|
1609
|
-
local_ordinal=row_index,
|
|
1610
|
-
),
|
|
1611
|
-
"criterion_path_present": bool(criterion_path),
|
|
1612
|
-
}
|
|
1613
|
-
)
|
|
1614
|
-
|
|
1615
|
-
payload = {
|
|
1616
|
-
"status": "fail" if errors else ("warn" if warnings else "pass"),
|
|
1617
|
-
"operation": "state_migrate_row_keys",
|
|
1618
|
-
"mode": "execute" if execute else "dry_run",
|
|
1619
|
-
"project_selector_used": project,
|
|
1620
|
-
"batch_size": batch_size,
|
|
1621
|
-
"legacy_candidate_count": legacy_candidate_count,
|
|
1622
|
-
"updated_count": updated_count,
|
|
1623
|
-
"skipped_duplicate_count": skipped_duplicate_count,
|
|
1624
|
-
"missing_criterion_path_count": missing_criterion_path_count,
|
|
1625
|
-
"snapshot_file": str(snapshot_file) if snapshot_file is not None else None,
|
|
1626
|
-
"samples": sampled_rows,
|
|
1627
|
-
"warnings": warnings[:100],
|
|
1628
|
-
"errors": errors[:100],
|
|
1629
|
-
"advisory": (
|
|
1630
|
-
"Dry-run complete. Re-run with --execute to apply updates."
|
|
1631
|
-
if not execute
|
|
1632
|
-
else (
|
|
1633
|
-
"Migration complete. Run `vds-audit state migrate-row-keys --verify` to confirm."
|
|
1634
|
-
if not errors
|
|
1635
|
-
else "Migration completed with errors. Review warnings/errors."
|
|
1636
|
-
)
|
|
1637
|
-
),
|
|
1638
|
-
}
|
|
1639
|
-
_emit_state_migration_payload(payload)
|
|
1640
|
-
if errors:
|
|
1641
|
-
raise typer.Exit(1)
|
|
1642
|
-
finally:
|
|
1643
|
-
store.close()
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
@state_app.command("estimate-resources")
|
|
1647
|
-
def state_estimate_resources(
|
|
1648
|
-
chunk_count: int = typer.Option(
|
|
1649
|
-
100000,
|
|
1650
|
-
"--chunk-count",
|
|
1651
|
-
"-c",
|
|
1652
|
-
help="Estimated number of chunks in corpus",
|
|
1653
|
-
),
|
|
1654
|
-
dimensions: int = typer.Option(
|
|
1655
|
-
1024,
|
|
1656
|
-
"--dimensions",
|
|
1657
|
-
"-d",
|
|
1658
|
-
help="Embedding vector dimensions (1024 for bge-m3)",
|
|
1659
|
-
),
|
|
1660
|
-
m_value: int = typer.Option(
|
|
1661
|
-
16,
|
|
1662
|
-
"--m-value",
|
|
1663
|
-
"-m",
|
|
1664
|
-
help="HNSW M parameter (connections per node)",
|
|
1665
|
-
),
|
|
1666
|
-
json_output: bool = typer.Option(False, "--json", help="Output as JSON"),
|
|
1667
|
-
) -> None:
|
|
1668
|
-
"""Estimate PostgreSQL resource requirements for vector corpus.
|
|
1669
|
-
|
|
1670
|
-
Uses formula from PGConf 2025:
|
|
1671
|
-
Memory = (dimensions * 4 + M * 3 * 4) * chunk_count bytes
|
|
1672
|
-
"""
|
|
1673
|
-
# Calculate HNSW index memory
|
|
1674
|
-
bytes_per_vector = (dimensions * 4) + (m_value * 3 * 4)
|
|
1675
|
-
total_memory_bytes = bytes_per_vector * chunk_count
|
|
1676
|
-
total_memory_mb = total_memory_bytes / (1024 * 1024)
|
|
1677
|
-
total_memory_gb = total_memory_bytes / (1024 * 1024 * 1024)
|
|
1678
|
-
|
|
1679
|
-
# Recommended shared_buffers (1.2x index size for headroom)
|
|
1680
|
-
recommended_shared_buffers_mb = total_memory_mb * 1.2
|
|
1681
|
-
|
|
1682
|
-
# Estimate for different scales
|
|
1683
|
-
estimates = {
|
|
1684
|
-
"input": {
|
|
1685
|
-
"chunk_count": chunk_count,
|
|
1686
|
-
"dimensions": dimensions,
|
|
1687
|
-
"m_value": m_value,
|
|
1688
|
-
},
|
|
1689
|
-
"hnsw_index": {
|
|
1690
|
-
"bytes_per_vector": bytes_per_vector,
|
|
1691
|
-
"total_memory_mb": round(total_memory_mb, 2),
|
|
1692
|
-
"total_memory_gb": round(total_memory_gb, 2),
|
|
1693
|
-
},
|
|
1694
|
-
"postgresql": {
|
|
1695
|
-
"recommended_shared_buffers_mb": round(recommended_shared_buffers_mb, 2),
|
|
1696
|
-
"recommended_shared_buffers_gb": round(recommended_shared_buffers_mb / 1024, 2),
|
|
1697
|
-
},
|
|
1698
|
-
"scale_examples": {
|
|
1699
|
-
"100k_chunks": {"memory_gb": round(100000 * bytes_per_vector / (1024**3), 2)},
|
|
1700
|
-
"500k_chunks": {"memory_gb": round(500000 * bytes_per_vector / (1024**3), 2)},
|
|
1701
|
-
"1m_chunks": {"memory_gb": round(1000000 * bytes_per_vector / (1024**3), 2)},
|
|
1702
|
-
},
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
if json_output:
|
|
1706
|
-
_emit_json(estimates)
|
|
1707
|
-
else:
|
|
1708
|
-
console.print(
|
|
1709
|
-
Panel.fit(
|
|
1710
|
-
f"[bold]Resource Estimation[/bold]\n\n"
|
|
1711
|
-
f"Chunks: {chunk_count:,}\n"
|
|
1712
|
-
f"Dimensions: {dimensions}\n"
|
|
1713
|
-
f"HNSW M: {m_value}\n\n"
|
|
1714
|
-
f"[cyan]HNSW Index Memory:[/cyan] {total_memory_gb:.2f} GB\n"
|
|
1715
|
-
f"[cyan]Recommended shared_buffers:[/cyan] {recommended_shared_buffers_mb / 1024:.2f} GB\n\n"
|
|
1716
|
-
f"[dim]Formula: (dims×4 + M×3×4) × chunks[/dim]",
|
|
1717
|
-
title="PostgreSQL Vector Sizing",
|
|
1718
|
-
)
|
|
1719
|
-
)
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
@state_app.command(name="skill-readiness")
|
|
1723
|
-
def state_skill_readiness(
|
|
1724
|
-
project_storage_key: str | None = typer.Option(
|
|
1725
|
-
None,
|
|
1726
|
-
"--project-storage-key",
|
|
1727
|
-
help="Optional project storage key for context.",
|
|
1728
|
-
),
|
|
1729
|
-
repo_path: str | None = typer.Option(
|
|
1730
|
-
None,
|
|
1731
|
-
"--repo-path",
|
|
1732
|
-
help="Optional repository path for graph-skill prerequisites.",
|
|
1733
|
-
),
|
|
1734
|
-
json_output: bool = typer.Option(
|
|
1735
|
-
False,
|
|
1736
|
-
"--json-only",
|
|
1737
|
-
help="Output diagnostics as JSON.",
|
|
1738
|
-
),
|
|
1739
|
-
) -> None:
|
|
1740
|
-
"""Display skill readiness diagnostics (Phase 125 / TSK-125.1).
|
|
1741
|
-
|
|
1742
|
-
Shows configured skill directories, policy-eligible counts, runtime-loaded
|
|
1743
|
-
counts, blocked tools, and effective available-skill inventory.
|
|
1744
|
-
"""
|
|
1745
|
-
from vds_audit_orchestrator.state.skill_readiness import build_skill_readiness_diagnostics
|
|
1746
|
-
|
|
1747
|
-
try:
|
|
1748
|
-
diagnostics = build_skill_readiness_diagnostics(
|
|
1749
|
-
project_storage_key=project_storage_key,
|
|
1750
|
-
repo_path=repo_path,
|
|
1751
|
-
)
|
|
1752
|
-
|
|
1753
|
-
if json_output:
|
|
1754
|
-
_emit_json(diagnostics.to_dict())
|
|
1755
|
-
else:
|
|
1756
|
-
_render_skill_readiness_diagnostics(diagnostics)
|
|
1757
|
-
except Exception as exc:
|
|
1758
|
-
logger.exception("skill_readiness_failed", error=str(exc))
|
|
1759
|
-
raise typer.Exit(1) from exc
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
def _render_skill_readiness_diagnostics(diagnostics: Any) -> None:
|
|
1763
|
-
"""Render skill readiness diagnostics to console."""
|
|
1764
|
-
# Header
|
|
1765
|
-
console.print(
|
|
1766
|
-
Panel.fit(
|
|
1767
|
-
f"[bold]Skill Readiness Diagnostics[/bold]\n\n"
|
|
1768
|
-
f"Policy Mode: {diagnostics.skill_policy_mode}\n"
|
|
1769
|
-
f"Skills Toolset Enabled: {diagnostics.skills_toolset_enabled}\n"
|
|
1770
|
-
f"Project Storage Key: {diagnostics.project_storage_key or 'N/A'}",
|
|
1771
|
-
title="Phase 125 / TSK-125.1",
|
|
1772
|
-
)
|
|
1773
|
-
)
|
|
1774
|
-
|
|
1775
|
-
# Configured directories
|
|
1776
|
-
dir_table = Table(title="Configured Skill Directories", show_header=True)
|
|
1777
|
-
dir_table.add_column("Path", style="cyan")
|
|
1778
|
-
dir_table.add_column("Exists", justify="center")
|
|
1779
|
-
dir_table.add_column("Skill Count", justify="right")
|
|
1780
|
-
dir_table.add_column("Error", style="red")
|
|
1781
|
-
|
|
1782
|
-
for dir_info in diagnostics.configured_directories:
|
|
1783
|
-
exists_str = "✓" if dir_info.exists else "✗"
|
|
1784
|
-
error_str = dir_info.error or ""
|
|
1785
|
-
dir_table.add_row(
|
|
1786
|
-
dir_info.path,
|
|
1787
|
-
exists_str,
|
|
1788
|
-
str(dir_info.skill_count) if dir_info.exists else "-",
|
|
1789
|
-
error_str,
|
|
1790
|
-
)
|
|
1791
|
-
|
|
1792
|
-
console.print(dir_table)
|
|
1793
|
-
|
|
1794
|
-
# Summary statistics
|
|
1795
|
-
console.print(
|
|
1796
|
-
Panel.fit(
|
|
1797
|
-
f"[bold]Summary[/bold]\n\n"
|
|
1798
|
-
f"Policy-Eligible Count: {diagnostics.policy_eligible_count}\n"
|
|
1799
|
-
f"Runtime-Loaded Count: {diagnostics.runtime_loaded_count}\n"
|
|
1800
|
-
f"Effective Available Count: {diagnostics.effective_count}\n"
|
|
1801
|
-
f"Blocked Skills: {len(diagnostics.blocked_skills)}",
|
|
1802
|
-
)
|
|
1803
|
-
)
|
|
1804
|
-
|
|
1805
|
-
# Blocked skills
|
|
1806
|
-
if diagnostics.blocked_skills:
|
|
1807
|
-
blocked_table = Table(title="Blocked Skills", show_header=True)
|
|
1808
|
-
blocked_table.add_column("Skill Name", style="cyan")
|
|
1809
|
-
blocked_table.add_column("Tool Name")
|
|
1810
|
-
blocked_table.add_column("Drop Reason", style="yellow")
|
|
1811
|
-
blocked_table.add_column("Policy Mode")
|
|
1812
|
-
|
|
1813
|
-
for blocked in diagnostics.blocked_skills:
|
|
1814
|
-
blocked_table.add_row(
|
|
1815
|
-
blocked.skill_name,
|
|
1816
|
-
blocked.tool_name,
|
|
1817
|
-
blocked.drop_reason,
|
|
1818
|
-
blocked.policy_mode,
|
|
1819
|
-
)
|
|
1820
|
-
|
|
1821
|
-
console.print(blocked_table)
|
|
1822
|
-
|
|
1823
|
-
# Drop reasons
|
|
1824
|
-
if diagnostics.drop_reasons:
|
|
1825
|
-
drop_table = Table(title="Drop Reason Statistics", show_header=True)
|
|
1826
|
-
drop_table.add_column("Reason", style="yellow")
|
|
1827
|
-
drop_table.add_column("Count", justify="right")
|
|
1828
|
-
|
|
1829
|
-
for reason, count in sorted(diagnostics.drop_reasons.items(), key=lambda x: x[1], reverse=True):
|
|
1830
|
-
drop_table.add_row(reason, str(count))
|
|
1831
|
-
|
|
1832
|
-
console.print(drop_table)
|
|
1833
|
-
|
|
1834
|
-
# Effective available skills
|
|
1835
|
-
if diagnostics.effective_available_skills:
|
|
1836
|
-
skills_panel = Panel.fit(
|
|
1837
|
-
"\n".join(f"• {skill}" for skill in diagnostics.effective_available_skills),
|
|
1838
|
-
title=f"Effective Available Skills ({diagnostics.effective_count})",
|
|
1839
|
-
)
|
|
1840
|
-
console.print(skills_panel)
|
|
1841
|
-
|
|
1842
|
-
# Graph-skill readiness
|
|
1843
|
-
if diagnostics.graph_skills_readiness:
|
|
1844
|
-
graph_table = Table(title="Graph-Review Skill Readiness", show_header=True)
|
|
1845
|
-
graph_table.add_column("Skill Name", style="cyan")
|
|
1846
|
-
graph_table.add_column("Available", justify="center")
|
|
1847
|
-
graph_table.add_column("Policy-Eligible", justify="center")
|
|
1848
|
-
graph_table.add_column("Runtime-Loadable", justify="center")
|
|
1849
|
-
graph_table.add_column("Prerequisites Met", justify="center")
|
|
1850
|
-
graph_table.add_column("Blocked Reason", style="yellow")
|
|
1851
|
-
|
|
1852
|
-
for graph in diagnostics.graph_skills_readiness:
|
|
1853
|
-
available_str = "✓" if graph.available else "✗"
|
|
1854
|
-
policy_str = "✓" if graph.policy_eligible else "✗"
|
|
1855
|
-
runtime_str = "✓" if graph.runtime_loadable else "✗"
|
|
1856
|
-
prereq_str = "✓" if graph.prerequisites_met else "✗"
|
|
1857
|
-
blocked_str = graph.blocked_reason or "-"
|
|
1858
|
-
|
|
1859
|
-
graph_table.add_row(
|
|
1860
|
-
graph.skill_name,
|
|
1861
|
-
available_str,
|
|
1862
|
-
policy_str,
|
|
1863
|
-
runtime_str,
|
|
1864
|
-
prereq_str,
|
|
1865
|
-
blocked_str,
|
|
1866
|
-
)
|
|
1867
|
-
|
|
1868
|
-
console.print(graph_table)
|