@ngocsangairvds/vsaf 3.2.13 → 3.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/vsaf.js +13 -0
- package/package.json +1 -1
- package/src/config.js +167 -0
- package/src/global.js +34 -51
- 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,1256 +0,0 @@
|
|
|
1
|
-
"""Structural report generator — Phase 5 of the progress pipeline.
|
|
2
|
-
|
|
3
|
-
Produces a ProgressReport from a completed list of FRAssessments and
|
|
4
|
-
renders it to either Markdown or JSON, saved under
|
|
5
|
-
``output_dir/<project_key>/YYYY-MM-DD[.md|.json]``.
|
|
6
|
-
|
|
7
|
-
Covers spec §3 report structure:
|
|
8
|
-
sections 1-6 (FR-level assessment table)
|
|
9
|
-
executive summary
|
|
10
|
-
risk register
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
from __future__ import annotations
|
|
14
|
-
|
|
15
|
-
import json
|
|
16
|
-
from datetime import UTC, datetime
|
|
17
|
-
from pathlib import Path
|
|
18
|
-
from typing import Literal
|
|
19
|
-
|
|
20
|
-
import structlog
|
|
21
|
-
|
|
22
|
-
from progress_report_orchestrator.models.analysis import FRAssessment, RepoAnalysis
|
|
23
|
-
from progress_report_orchestrator.models.report import (
|
|
24
|
-
ClusterAnalysis,
|
|
25
|
-
DimensionCoverageRecord,
|
|
26
|
-
FRDelta,
|
|
27
|
-
ProgressReport,
|
|
28
|
-
ReportDelta,
|
|
29
|
-
ReportSection,
|
|
30
|
-
RiskItem,
|
|
31
|
-
)
|
|
32
|
-
from progress_report_orchestrator.models.topology import FRModule, ProjectTopology
|
|
33
|
-
from progress_report_orchestrator.recommendations import (
|
|
34
|
-
RecommendationContext,
|
|
35
|
-
RecommendationEngine,
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
log = structlog.get_logger(__name__)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
# ---------------------------------------------------------------------------
|
|
42
|
-
# Risk identification
|
|
43
|
-
# ---------------------------------------------------------------------------
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
def _identify_risks(a: FRAssessment) -> list[RiskItem]:
|
|
47
|
-
"""Derive RiskItems from a completed FRAssessment."""
|
|
48
|
-
risks: list[RiskItem] = []
|
|
49
|
-
|
|
50
|
-
if not a.service_exists:
|
|
51
|
-
risks.append(
|
|
52
|
-
RiskItem(
|
|
53
|
-
fr_id=a.fr_id,
|
|
54
|
-
dimension="service_existence",
|
|
55
|
-
severity="high",
|
|
56
|
-
description=(
|
|
57
|
-
f"{a.fr_id}: No service implementation found in cache "
|
|
58
|
-
f"(repos: {[r.repo_slug for r in a.repo_analyses] or 'none'})."
|
|
59
|
-
),
|
|
60
|
-
)
|
|
61
|
-
)
|
|
62
|
-
|
|
63
|
-
if not a.doc_chain_complete:
|
|
64
|
-
risks.append(
|
|
65
|
-
RiskItem(
|
|
66
|
-
fr_id=a.fr_id,
|
|
67
|
-
dimension="doc_coverage",
|
|
68
|
-
severity="medium",
|
|
69
|
-
description=(
|
|
70
|
-
f"{a.fr_id}: Incomplete documentation chain — "
|
|
71
|
-
"one or more of BRD / PRD / SRS / Architecture docs is missing."
|
|
72
|
-
),
|
|
73
|
-
)
|
|
74
|
-
)
|
|
75
|
-
|
|
76
|
-
if not a.brd_traced:
|
|
77
|
-
risks.append(
|
|
78
|
-
RiskItem(
|
|
79
|
-
fr_id=a.fr_id,
|
|
80
|
-
dimension="brd_traceability",
|
|
81
|
-
severity="medium",
|
|
82
|
-
description=(
|
|
83
|
-
f"{a.fr_id}: BRD traceability missing — no BRD section entry with a valid line range found."
|
|
84
|
-
),
|
|
85
|
-
)
|
|
86
|
-
)
|
|
87
|
-
|
|
88
|
-
if a.code_activity_score < 30:
|
|
89
|
-
severity = "low" if a.code_activity_score >= 10 else "medium"
|
|
90
|
-
risks.append(
|
|
91
|
-
RiskItem(
|
|
92
|
-
fr_id=a.fr_id,
|
|
93
|
-
dimension="code_activity",
|
|
94
|
-
severity=severity,
|
|
95
|
-
description=(
|
|
96
|
-
f"{a.fr_id}: Low code activity score ({a.code_activity_score:.1f}/100) over the last 30 days."
|
|
97
|
-
),
|
|
98
|
-
)
|
|
99
|
-
)
|
|
100
|
-
|
|
101
|
-
if a.test_coverage_score < 20:
|
|
102
|
-
risks.append(
|
|
103
|
-
RiskItem(
|
|
104
|
-
fr_id=a.fr_id,
|
|
105
|
-
dimension="test_coverage",
|
|
106
|
-
severity="medium",
|
|
107
|
-
description=(f"{a.fr_id}: Low test coverage score ({a.test_coverage_score:.1f}/100)."),
|
|
108
|
-
)
|
|
109
|
-
)
|
|
110
|
-
|
|
111
|
-
# Dim 7 — architecture compliance (only present in full mode)
|
|
112
|
-
if a.architecture_compliance is not None and a.architecture_compliance < 50:
|
|
113
|
-
severity = "high" if a.architecture_compliance < 25 else "medium"
|
|
114
|
-
risks.append(
|
|
115
|
-
RiskItem(
|
|
116
|
-
fr_id=a.fr_id,
|
|
117
|
-
dimension="architecture_compliance",
|
|
118
|
-
severity=severity,
|
|
119
|
-
description=(
|
|
120
|
-
f"{a.fr_id}: Low architecture compliance score "
|
|
121
|
-
f"({a.architecture_compliance:.1f}/100) — hexagonal/clean architecture "
|
|
122
|
-
"violations detected. Review domain/infrastructure layer separation."
|
|
123
|
-
),
|
|
124
|
-
)
|
|
125
|
-
)
|
|
126
|
-
|
|
127
|
-
# Dim 8 — endpoint coverage (only present in full mode)
|
|
128
|
-
if a.endpoint_coverage is not None and a.endpoint_coverage < 60:
|
|
129
|
-
severity = "high" if a.endpoint_coverage < 30 else "medium"
|
|
130
|
-
risks.append(
|
|
131
|
-
RiskItem(
|
|
132
|
-
fr_id=a.fr_id,
|
|
133
|
-
dimension="endpoint_coverage",
|
|
134
|
-
severity=severity,
|
|
135
|
-
description=(
|
|
136
|
-
f"{a.fr_id}: Low endpoint coverage score "
|
|
137
|
-
f"({a.endpoint_coverage:.1f}/100) — SRS-specified endpoints are not "
|
|
138
|
-
"all implemented. Check use-case specifications against controller mappings."
|
|
139
|
-
),
|
|
140
|
-
)
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
return risks
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
# ---------------------------------------------------------------------------
|
|
147
|
-
# Report assembly
|
|
148
|
-
# ---------------------------------------------------------------------------
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
def build_report(
|
|
152
|
-
assessments: list[FRAssessment],
|
|
153
|
-
topology: ProjectTopology,
|
|
154
|
-
run_id: str,
|
|
155
|
-
project_key: str,
|
|
156
|
-
bmad_repo: str,
|
|
157
|
-
) -> ProgressReport:
|
|
158
|
-
"""Assemble a ProgressReport from completed FRAssessments."""
|
|
159
|
-
overall = sum(a.overall_score for a in assessments) / len(assessments) if assessments else 0.0
|
|
160
|
-
|
|
161
|
-
# Build FR module lookup for recommendation context
|
|
162
|
-
fr_module_map: dict[str, FRModule] = {m.fr_id: m for m in topology.fr_modules}
|
|
163
|
-
engine = RecommendationEngine()
|
|
164
|
-
|
|
165
|
-
sections: list[ReportSection] = []
|
|
166
|
-
all_risks: list[RiskItem] = []
|
|
167
|
-
|
|
168
|
-
for a in assessments:
|
|
169
|
-
risks = _identify_risks(a)
|
|
170
|
-
fr_module = fr_module_map.get(a.fr_id)
|
|
171
|
-
ctx = RecommendationContext(
|
|
172
|
-
assessment=a,
|
|
173
|
-
fr=fr_module,
|
|
174
|
-
)
|
|
175
|
-
recs = engine.generate(ctx)
|
|
176
|
-
sections.append(
|
|
177
|
-
ReportSection(
|
|
178
|
-
fr_id=a.fr_id,
|
|
179
|
-
assessment=a,
|
|
180
|
-
risks=risks,
|
|
181
|
-
recommendations=recs,
|
|
182
|
-
)
|
|
183
|
-
)
|
|
184
|
-
all_risks.extend(risks)
|
|
185
|
-
|
|
186
|
-
return ProgressReport(
|
|
187
|
-
run_id=run_id,
|
|
188
|
-
project_key=project_key,
|
|
189
|
-
bmad_repo=bmad_repo,
|
|
190
|
-
generated_at=datetime.now(UTC).isoformat(),
|
|
191
|
-
overall_score=round(overall, 2),
|
|
192
|
-
sections=sections,
|
|
193
|
-
risks=all_risks,
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
# ---------------------------------------------------------------------------
|
|
198
|
-
# TSK-D.1: Delta computation
|
|
199
|
-
# ---------------------------------------------------------------------------
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
def compute_delta(
|
|
203
|
-
assessments: list[FRAssessment],
|
|
204
|
-
current_overall: float,
|
|
205
|
-
previous_scores: dict[str, float],
|
|
206
|
-
previous_run_id: str | None,
|
|
207
|
-
) -> ReportDelta | None:
|
|
208
|
-
"""Compute per-FR and overall deltas between this run and the previous one.
|
|
209
|
-
|
|
210
|
-
Returns ``None`` when *previous_scores* is empty (first run or no prior
|
|
211
|
-
completed run found in the DB).
|
|
212
|
-
"""
|
|
213
|
-
if not previous_scores:
|
|
214
|
-
return None
|
|
215
|
-
|
|
216
|
-
current_ids = {a.fr_id for a in assessments}
|
|
217
|
-
prev_ids = set(previous_scores)
|
|
218
|
-
|
|
219
|
-
fr_deltas: list[FRDelta] = [
|
|
220
|
-
FRDelta(
|
|
221
|
-
fr_id=a.fr_id,
|
|
222
|
-
previous_score=previous_scores[a.fr_id],
|
|
223
|
-
current_score=a.overall_score,
|
|
224
|
-
change=round(a.overall_score - previous_scores[a.fr_id], 2),
|
|
225
|
-
)
|
|
226
|
-
for a in assessments
|
|
227
|
-
if a.fr_id in previous_scores
|
|
228
|
-
]
|
|
229
|
-
|
|
230
|
-
prev_overall = round(sum(previous_scores.values()) / len(previous_scores), 2)
|
|
231
|
-
overall_change = round(current_overall - prev_overall, 2)
|
|
232
|
-
|
|
233
|
-
# TSK-M.3: Populate regression / improvement buckets (FR-Q9)
|
|
234
|
-
regressed = [d for d in fr_deltas if d.change <= REGRESSION_MINOR]
|
|
235
|
-
improved = [d for d in fr_deltas if d.change >= -REGRESSION_MINOR]
|
|
236
|
-
critical = [d for d in regressed if d.change <= REGRESSION_CRITICAL]
|
|
237
|
-
|
|
238
|
-
return ReportDelta(
|
|
239
|
-
previous_run_id=previous_run_id,
|
|
240
|
-
previous_overall=prev_overall,
|
|
241
|
-
current_overall=current_overall,
|
|
242
|
-
overall_change=overall_change,
|
|
243
|
-
fr_deltas=fr_deltas,
|
|
244
|
-
new_frs=sorted(current_ids - prev_ids),
|
|
245
|
-
removed_frs=sorted(prev_ids - current_ids),
|
|
246
|
-
regressed_frs=regressed,
|
|
247
|
-
improved_frs=improved,
|
|
248
|
-
critical_regressions=critical,
|
|
249
|
-
)
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
# ---------------------------------------------------------------------------
|
|
253
|
-
# Markdown renderer
|
|
254
|
-
# ---------------------------------------------------------------------------
|
|
255
|
-
|
|
256
|
-
_SEVERITY_ICON: dict[str, str] = {"high": "🔴", "medium": "🟡", "low": "🟢"}
|
|
257
|
-
_SEVERITY_SORT: dict[str, int] = {"high": 0, "medium": 1, "low": 2}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
def _severity_icon(severity: str) -> str:
|
|
261
|
-
return _SEVERITY_ICON.get(severity, "⚪")
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
def _score_bar(score: float, width: int = 10) -> str:
|
|
265
|
-
filled = min(int(score / (100 / width)), width)
|
|
266
|
-
return "█" * filled + "░" * (width - filled)
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
def _render_trend_section(delta: ReportDelta) -> list[str]:
|
|
270
|
-
"""Render the '## Trend vs Previous Run' markdown section (TSK-D.1)."""
|
|
271
|
-
lines: list[str] = ["## Trend vs Previous Run", ""]
|
|
272
|
-
|
|
273
|
-
if delta.overall_change is not None and delta.previous_overall is not None:
|
|
274
|
-
arrow = "↑" if delta.overall_change > 0.0 else ("↓" if delta.overall_change < 0.0 else "→")
|
|
275
|
-
change_str = f"{arrow} {abs(delta.overall_change):.1f}"
|
|
276
|
-
lines += [
|
|
277
|
-
"| Metric | Previous | Current | Change |",
|
|
278
|
-
"|--------|----------|---------|--------|",
|
|
279
|
-
f"| Overall score | {delta.previous_overall:.1f} | {delta.current_overall:.1f} | {change_str} |",
|
|
280
|
-
"",
|
|
281
|
-
]
|
|
282
|
-
|
|
283
|
-
improved = sorted([d for d in delta.fr_deltas if d.change > 1.0], key=lambda d: -d.change)
|
|
284
|
-
regressed = sorted([d for d in delta.fr_deltas if d.change < -1.0], key=lambda d: d.change)
|
|
285
|
-
|
|
286
|
-
if improved or regressed:
|
|
287
|
-
lines += ["**FR Score Changes:**", ""]
|
|
288
|
-
for d in improved:
|
|
289
|
-
lines.append(f"- ↑ `{d.fr_id}`: {d.previous_score:.1f} → {d.current_score:.1f} (+{d.change:.1f})")
|
|
290
|
-
for d in regressed:
|
|
291
|
-
lines.append(f"- ↓ `{d.fr_id}`: {d.previous_score:.1f} → {d.current_score:.1f} ({d.change:.1f})")
|
|
292
|
-
lines.append("")
|
|
293
|
-
|
|
294
|
-
if delta.new_frs:
|
|
295
|
-
lines.append(f"**New FRs (not in previous run):** {', '.join(f'`{f}`' for f in delta.new_frs)}")
|
|
296
|
-
lines.append("")
|
|
297
|
-
if delta.removed_frs:
|
|
298
|
-
lines.append(f"**Removed FRs:** {', '.join(f'`{f}`' for f in delta.removed_frs)}")
|
|
299
|
-
lines.append("")
|
|
300
|
-
|
|
301
|
-
# TSK-M.4: Regression subsections (FR-Q9)
|
|
302
|
-
if delta.critical_regressions:
|
|
303
|
-
lines += ["### 🔴 Critical Regressions (Δ ≤ −15)", ""]
|
|
304
|
-
for d in delta.critical_regressions:
|
|
305
|
-
lines.append(f"- `{d.fr_id}`: {d.previous_score:.1f} → {d.current_score:.1f} (Δ {d.change:.1f})")
|
|
306
|
-
lines.append("")
|
|
307
|
-
|
|
308
|
-
critical_ids = {d.fr_id for d in delta.critical_regressions}
|
|
309
|
-
minor_only = [d for d in delta.regressed_frs if d.fr_id not in critical_ids]
|
|
310
|
-
if minor_only:
|
|
311
|
-
lines += ["### 🟡 Minor Regressions (−15 < Δ ≤ −5)", ""]
|
|
312
|
-
for d in minor_only:
|
|
313
|
-
lines.append(f"- `{d.fr_id}`: {d.previous_score:.1f} → {d.current_score:.1f} (Δ {d.change:.1f})")
|
|
314
|
-
lines.append("")
|
|
315
|
-
|
|
316
|
-
if delta.improved_frs:
|
|
317
|
-
lines += ["### 🟢 Improvements (Δ ≥ +5)", ""]
|
|
318
|
-
for d in delta.improved_frs:
|
|
319
|
-
lines.append(f"- `{d.fr_id}`: {d.previous_score:.1f} → {d.current_score:.1f} (Δ +{d.change:.1f})")
|
|
320
|
-
lines.append("")
|
|
321
|
-
|
|
322
|
-
lines += ["---", ""]
|
|
323
|
-
return lines
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
# ---------------------------------------------------------------------------
|
|
327
|
-
# TSK-J.3: Dimension coverage + score distribution (shared by markdown & JSON)
|
|
328
|
-
# ---------------------------------------------------------------------------
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
_COVERAGE_THRESHOLD: float = 60.0 # numeric dim pass threshold
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
def _dim_status(pass_rate: float) -> str:
|
|
335
|
-
"""Map pass_rate in [0,1] to a status label for DimensionCoverageRecord."""
|
|
336
|
-
if pass_rate >= 0.8:
|
|
337
|
-
return "green"
|
|
338
|
-
if pass_rate > 0.5:
|
|
339
|
-
return "yellow"
|
|
340
|
-
return "red"
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
def _compute_dimension_coverage(assessments: list[FRAssessment]) -> list[DimensionCoverageRecord]:
|
|
344
|
-
"""Compute per-dimension dual-metric (avg score + pass rate) across all FRs.
|
|
345
|
-
|
|
346
|
-
Boolean dims (service, docs, brd): pass = True; avg_score = pass_rate * 100.
|
|
347
|
-
Numeric dims (activity, test_coverage): pass = score >= 60; avg_score = mean.
|
|
348
|
-
LLM dims (architecture, endpoint): only included when ≥ 1 FR has non-None value;
|
|
349
|
-
total_count = count of non-None values.
|
|
350
|
-
|
|
351
|
-
Returns records in _DIMENSION_LABELS order for stable rendering.
|
|
352
|
-
"""
|
|
353
|
-
n = len(assessments)
|
|
354
|
-
if n == 0:
|
|
355
|
-
return []
|
|
356
|
-
|
|
357
|
-
records: list[DimensionCoverageRecord] = []
|
|
358
|
-
|
|
359
|
-
# Boolean dims
|
|
360
|
-
for key, label in [
|
|
361
|
-
("service_exists", _DIMENSION_LABELS["service_exists"]),
|
|
362
|
-
("doc_chain_complete", _DIMENSION_LABELS["doc_chain_complete"]),
|
|
363
|
-
("brd_traced", _DIMENSION_LABELS["brd_traced"]),
|
|
364
|
-
]:
|
|
365
|
-
pass_count = sum(1 for a in assessments if getattr(a, key))
|
|
366
|
-
pass_rate = round(pass_count / n, 3)
|
|
367
|
-
records.append(
|
|
368
|
-
DimensionCoverageRecord(
|
|
369
|
-
key=key,
|
|
370
|
-
label=label,
|
|
371
|
-
avg_score=round(pass_rate * 100, 2),
|
|
372
|
-
pass_count=pass_count,
|
|
373
|
-
total_count=n,
|
|
374
|
-
pass_rate=pass_rate,
|
|
375
|
-
status=_dim_status(pass_rate),
|
|
376
|
-
)
|
|
377
|
-
)
|
|
378
|
-
|
|
379
|
-
# Numeric dims
|
|
380
|
-
for key, attr, label in [
|
|
381
|
-
("code_activity_avg", "code_activity_score", _DIMENSION_LABELS["code_activity_avg"]),
|
|
382
|
-
("test_coverage_avg", "test_coverage_score", _DIMENSION_LABELS["test_coverage_avg"]),
|
|
383
|
-
]:
|
|
384
|
-
scores = [getattr(a, attr) for a in assessments]
|
|
385
|
-
avg = round(sum(scores) / n, 2)
|
|
386
|
-
pass_count = sum(1 for s in scores if s >= _COVERAGE_THRESHOLD)
|
|
387
|
-
pass_rate = round(pass_count / n, 3)
|
|
388
|
-
records.append(
|
|
389
|
-
DimensionCoverageRecord(
|
|
390
|
-
key=key,
|
|
391
|
-
label=label,
|
|
392
|
-
avg_score=avg,
|
|
393
|
-
pass_count=pass_count,
|
|
394
|
-
total_count=n,
|
|
395
|
-
pass_rate=pass_rate,
|
|
396
|
-
status=_dim_status(pass_rate),
|
|
397
|
-
)
|
|
398
|
-
)
|
|
399
|
-
|
|
400
|
-
# LLM dims (optional — only when data present)
|
|
401
|
-
for key, attr, label in [
|
|
402
|
-
("architecture_compliance_avg", "architecture_compliance", _DIMENSION_LABELS["architecture_compliance_avg"]),
|
|
403
|
-
("endpoint_coverage_avg", "endpoint_coverage", _DIMENSION_LABELS["endpoint_coverage_avg"]),
|
|
404
|
-
]:
|
|
405
|
-
values = [getattr(a, attr) for a in assessments if getattr(a, attr) is not None]
|
|
406
|
-
if not values:
|
|
407
|
-
continue
|
|
408
|
-
avg = round(sum(values) / len(values), 2)
|
|
409
|
-
pass_count = sum(1 for v in values if v >= _COVERAGE_THRESHOLD)
|
|
410
|
-
pass_rate = round(pass_count / len(values), 3)
|
|
411
|
-
records.append(
|
|
412
|
-
DimensionCoverageRecord(
|
|
413
|
-
key=key,
|
|
414
|
-
label=label,
|
|
415
|
-
avg_score=avg,
|
|
416
|
-
pass_count=pass_count,
|
|
417
|
-
total_count=len(values),
|
|
418
|
-
pass_rate=pass_rate,
|
|
419
|
-
status=_dim_status(pass_rate),
|
|
420
|
-
)
|
|
421
|
-
)
|
|
422
|
-
|
|
423
|
-
return records
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
def _coverage_records_to_dict(records: list[DimensionCoverageRecord]) -> dict[str, float]:
|
|
427
|
-
"""Convert DimensionCoverageRecord list to flat dict for JSON backward compatibility.
|
|
428
|
-
|
|
429
|
-
Boolean dims emit pass_rate (in [0,1]); numeric/LLM dims emit avg_score.
|
|
430
|
-
Keys match the pre-TSK-L.4 format produced by the old _compute_dimension_coverage.
|
|
431
|
-
"""
|
|
432
|
-
_BOOL_KEYS = {"service_exists", "doc_chain_complete", "brd_traced"}
|
|
433
|
-
return {rec.key: round(rec.pass_rate, 3) if rec.key in _BOOL_KEYS else round(rec.avg_score, 2) for rec in records}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
def _compute_score_distribution(assessments: list[FRAssessment]) -> dict[str, int]:
|
|
437
|
-
"""Bucket FRs into 🟢 high (≥60), 🟡 medium (30-60), 🔴 low (<30)."""
|
|
438
|
-
high = medium = low = 0
|
|
439
|
-
for a in assessments:
|
|
440
|
-
if a.overall_score >= 60:
|
|
441
|
-
high += 1
|
|
442
|
-
elif a.overall_score >= 30:
|
|
443
|
-
medium += 1
|
|
444
|
-
else:
|
|
445
|
-
low += 1
|
|
446
|
-
return {"high": high, "medium": medium, "low": low}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
# ---------------------------------------------------------------------------
|
|
450
|
-
# TSK-L.1: Valence gap heuristic — NOT statistical bimodality. See ADR-Q7.
|
|
451
|
-
# ---------------------------------------------------------------------------
|
|
452
|
-
|
|
453
|
-
MIN_N_FOR_VALENCE_GAP: int = 10
|
|
454
|
-
MIN_PEAK_SHARE: float = 0.25
|
|
455
|
-
|
|
456
|
-
# ---------------------------------------------------------------------------
|
|
457
|
-
# TSK-M.1: Trend regression thresholds (FR-Q9)
|
|
458
|
-
# Negative values so bucket comparisons read as: d.change <= REGRESSION_CRITICAL
|
|
459
|
-
# ---------------------------------------------------------------------------
|
|
460
|
-
|
|
461
|
-
REGRESSION_CRITICAL: int = -15 # change ≤ -15 → critical regression
|
|
462
|
-
REGRESSION_MINOR: int = -5 # -15 < change ≤ -5 → minor regression
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
def _check_quality_gate(
|
|
466
|
-
score: float,
|
|
467
|
-
*,
|
|
468
|
-
fail_under: float | None,
|
|
469
|
-
has_critical_regression: bool,
|
|
470
|
-
fail_on_regression: bool,
|
|
471
|
-
) -> int:
|
|
472
|
-
"""Return exit code for quality gate: 0 (pass/no gates) or 2 (gate FAILED).
|
|
473
|
-
|
|
474
|
-
Exit 2 distinguishes gate failures from runtime errors (exit 1).
|
|
475
|
-
Callers should ``raise typer.Exit(code)`` when code == 2. FR-Q10.
|
|
476
|
-
"""
|
|
477
|
-
if fail_under is not None and score < fail_under:
|
|
478
|
-
return 2
|
|
479
|
-
if fail_on_regression and has_critical_regression:
|
|
480
|
-
return 2
|
|
481
|
-
return 0
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
def _detect_valence_gap(distribution: dict[str, int]) -> bool:
|
|
485
|
-
"""Return True when score distribution has a valence gap.
|
|
486
|
-
|
|
487
|
-
Rules (all must hold):
|
|
488
|
-
1. total_frs >= 10 (minimum-N — below this, claim is statistically meaningless)
|
|
489
|
-
2. medium == 0
|
|
490
|
-
3. high > 0 AND low > 0
|
|
491
|
-
4. min(high, low) / total >= 0.25 (dominance guard)
|
|
492
|
-
|
|
493
|
-
This is a UX heuristic for two-population detection, NOT statistical
|
|
494
|
-
bimodality. See ADR-Q7 for rationale and terminology decision.
|
|
495
|
-
"""
|
|
496
|
-
high = distribution.get("high", 0)
|
|
497
|
-
medium = distribution.get("medium", 0)
|
|
498
|
-
low = distribution.get("low", 0)
|
|
499
|
-
total = high + medium + low
|
|
500
|
-
if total < MIN_N_FOR_VALENCE_GAP:
|
|
501
|
-
return False
|
|
502
|
-
if medium != 0:
|
|
503
|
-
return False
|
|
504
|
-
if high == 0 or low == 0:
|
|
505
|
-
return False
|
|
506
|
-
return min(high, low) / total >= MIN_PEAK_SHARE
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
# Human-readable labels for dimension_coverage keys (matches order in _compute_dimension_coverage)
|
|
510
|
-
_DIMENSION_LABELS: dict[str, str] = {
|
|
511
|
-
"service_exists": "Service existence",
|
|
512
|
-
"doc_chain_complete": "Doc chain complete",
|
|
513
|
-
"brd_traced": "BRD traced",
|
|
514
|
-
"code_activity_avg": "Code activity (avg)",
|
|
515
|
-
"test_coverage_avg": "Test coverage (avg)",
|
|
516
|
-
"architecture_compliance_avg": "Architecture compliance (avg)",
|
|
517
|
-
"endpoint_coverage_avg": "Endpoint coverage (avg)",
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
# ---------------------------------------------------------------------------
|
|
522
|
-
# TSK-L.6: Valence-gap cluster stratification
|
|
523
|
-
# ---------------------------------------------------------------------------
|
|
524
|
-
|
|
525
|
-
# Dimension names for blocker analysis — match RiskItem.dimension naming convention.
|
|
526
|
-
_BLOCKER_DIMS: dict[str, str] = {
|
|
527
|
-
"service_existence": "service_exists",
|
|
528
|
-
"doc_coverage": "doc_chain_complete",
|
|
529
|
-
"brd_traceability": "brd_traced",
|
|
530
|
-
}
|
|
531
|
-
_BLOCKER_NUMERIC: dict[str, str] = {
|
|
532
|
-
"code_activity": "code_activity_score",
|
|
533
|
-
"test_coverage": "test_coverage_score",
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
def _stratify_bimodal(
|
|
538
|
-
assessments: list[FRAssessment],
|
|
539
|
-
recommendations_by_fr: dict[str, list],
|
|
540
|
-
) -> dict[str, ClusterAnalysis]:
|
|
541
|
-
"""Stratify FRs into high (≥60) and low (<30) score clusters.
|
|
542
|
-
|
|
543
|
-
Returns dict with ``"high"`` and ``"low"`` ClusterAnalysis entries.
|
|
544
|
-
Each cluster's dominant_blocker is the dimension with the lowest
|
|
545
|
-
pass-rate within that population (threshold = _COVERAGE_THRESHOLD for
|
|
546
|
-
numeric dims, True for boolean dims).
|
|
547
|
-
"""
|
|
548
|
-
high_group = [a for a in assessments if a.overall_score >= 60]
|
|
549
|
-
low_group = [a for a in assessments if a.overall_score < 30]
|
|
550
|
-
|
|
551
|
-
def _blocker(group: list[FRAssessment]) -> str:
|
|
552
|
-
if not group:
|
|
553
|
-
return ""
|
|
554
|
-
n = len(group)
|
|
555
|
-
pass_rates: dict[str, float] = {}
|
|
556
|
-
for dim_name, attr in _BLOCKER_DIMS.items():
|
|
557
|
-
pass_rates[dim_name] = sum(1 for a in group if getattr(a, attr)) / n
|
|
558
|
-
for dim_name, attr in _BLOCKER_NUMERIC.items():
|
|
559
|
-
pass_rates[dim_name] = sum(1 for a in group if getattr(a, attr) >= _COVERAGE_THRESHOLD) / n
|
|
560
|
-
return min(pass_rates, key=pass_rates.__getitem__)
|
|
561
|
-
|
|
562
|
-
def _top_rec_fr(group: list[FRAssessment]) -> str | None:
|
|
563
|
-
best_score = -1.0
|
|
564
|
-
best_fr: str | None = None
|
|
565
|
-
for a in group:
|
|
566
|
-
for rec in recommendations_by_fr.get(a.fr_id, []):
|
|
567
|
-
if rec.impact_score > best_score:
|
|
568
|
-
best_score = rec.impact_score
|
|
569
|
-
best_fr = a.fr_id
|
|
570
|
-
return best_fr
|
|
571
|
-
|
|
572
|
-
return {
|
|
573
|
-
"high": ClusterAnalysis(
|
|
574
|
-
label="high",
|
|
575
|
-
fr_ids=[a.fr_id for a in high_group],
|
|
576
|
-
avg_score=round(sum(a.overall_score for a in high_group) / len(high_group), 2) if high_group else 0.0,
|
|
577
|
-
dominant_blocker=_blocker(high_group),
|
|
578
|
-
top_recommendation_fr=_top_rec_fr(high_group),
|
|
579
|
-
),
|
|
580
|
-
"low": ClusterAnalysis(
|
|
581
|
-
label="low",
|
|
582
|
-
fr_ids=[a.fr_id for a in low_group],
|
|
583
|
-
avg_score=round(sum(a.overall_score for a in low_group) / len(low_group), 2) if low_group else 0.0,
|
|
584
|
-
dominant_blocker=_blocker(low_group),
|
|
585
|
-
top_recommendation_fr=_top_rec_fr(low_group),
|
|
586
|
-
),
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
_BOOL_DIM_KEYS: frozenset[str] = frozenset({"service_exists", "doc_chain_complete", "brd_traced"})
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
# ---------------------------------------------------------------------------
|
|
594
|
-
# TSK-L.8: Unicode sparkline helper
|
|
595
|
-
# ---------------------------------------------------------------------------
|
|
596
|
-
|
|
597
|
-
_SPARK_CHARS = "▁▂▃▄▅▆▇█" # U+2581 – U+2588
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
def _render_sparkline(values: list[float], max_value: float = 100.0) -> str:
|
|
601
|
-
"""Render a unicode sparkline from a list of values.
|
|
602
|
-
|
|
603
|
-
Returns ``"—"`` when fewer than 2 values are present (no trend to show).
|
|
604
|
-
Clamps negative values to 0 before scaling.
|
|
605
|
-
"""
|
|
606
|
-
if len(values) < 2:
|
|
607
|
-
return "—"
|
|
608
|
-
n = len(_SPARK_CHARS) - 1
|
|
609
|
-
return "".join(_SPARK_CHARS[min(n, int(round(max(0.0, v) / max_value * n)))] for v in values)
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
_STATUS_ICON: dict[str, str] = {"green": "🟢", "yellow": "🟡", "red": "🔴"}
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
def _render_dimension_coverage(
|
|
616
|
-
coverage: list[DimensionCoverageRecord],
|
|
617
|
-
trend_data: dict[str, list[float]] | None = None,
|
|
618
|
-
) -> list[str]:
|
|
619
|
-
"""Render the Dimension Coverage markdown table (5-column dual-metric, TSK-L.5/L.8).
|
|
620
|
-
|
|
621
|
-
Columns: Dimension | Avg Score | Pass Rate (≥60) | Status | Trend
|
|
622
|
-
Boolean dims: avg_score = pass_rate*100 shown as percentage;
|
|
623
|
-
numeric/LLM dims: avg_score shown as X.X/100 and pass_rate shown as X/Y (Z%).
|
|
624
|
-
Trend column shows a unicode sparkline when ≥2 historical values exist, else ``—``.
|
|
625
|
-
"""
|
|
626
|
-
if not coverage:
|
|
627
|
-
return []
|
|
628
|
-
lines: list[str] = [
|
|
629
|
-
"### Dimension Coverage",
|
|
630
|
-
"",
|
|
631
|
-
"| Dimension | Avg Score | Pass Rate (≥60) | Status | Trend |",
|
|
632
|
-
"|:----------|----------:|----------------:|:------:|:-----:|",
|
|
633
|
-
]
|
|
634
|
-
for rec in coverage:
|
|
635
|
-
icon = _STATUS_ICON.get(rec.status, "⚪")
|
|
636
|
-
if rec.key in _BOOL_DIM_KEYS:
|
|
637
|
-
pct = int(round(rec.pass_rate * 100))
|
|
638
|
-
avg_display = f"{pct}%"
|
|
639
|
-
rate_display = f"{rec.pass_count}/{rec.total_count} ({pct}%)"
|
|
640
|
-
else:
|
|
641
|
-
avg_display = f"{rec.avg_score:.1f}/100"
|
|
642
|
-
rate_pct = int(round(rec.pass_rate * 100))
|
|
643
|
-
rate_display = f"{rec.pass_count}/{rec.total_count} ({rate_pct}%)"
|
|
644
|
-
history = (trend_data or {}).get(rec.key, [])
|
|
645
|
-
spark = _render_sparkline(history)
|
|
646
|
-
lines.append(f"| {rec.label} | {avg_display} | {rate_display} | {icon} | {spark} |")
|
|
647
|
-
lines.append("")
|
|
648
|
-
return lines
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
def _render_dimension_coverage_phase3(coverage: list[DimensionCoverageRecord]) -> list[str]:
|
|
652
|
-
"""Render the Phase 3 compatible 2-column Dimension Coverage table.
|
|
653
|
-
|
|
654
|
-
Used by mode='standard' to maintain byte-identical output vs the Phase 3 baseline.
|
|
655
|
-
Format: | Dimension | Value |
|
|
656
|
-
Boolean dims: "{pct}% ({pct}/100)"; numeric dims: "{avg:.1f}/100"
|
|
657
|
-
"""
|
|
658
|
-
if not coverage:
|
|
659
|
-
return []
|
|
660
|
-
lines: list[str] = [
|
|
661
|
-
"### Dimension Coverage",
|
|
662
|
-
"",
|
|
663
|
-
"| Dimension | Value |",
|
|
664
|
-
"|-----------|-------|",
|
|
665
|
-
]
|
|
666
|
-
for rec in coverage:
|
|
667
|
-
if rec.key in _BOOL_DIM_KEYS:
|
|
668
|
-
pct = int(round(rec.pass_rate * 100))
|
|
669
|
-
value = f"{pct}% ({pct}/100)"
|
|
670
|
-
else:
|
|
671
|
-
value = f"{rec.avg_score:.1f}/100"
|
|
672
|
-
lines.append(f"| {rec.label} | {value} |")
|
|
673
|
-
lines.append("")
|
|
674
|
-
return lines
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
def _render_score_distribution(distribution: dict[str, int], total: int) -> list[str]:
|
|
678
|
-
"""Render the ## Score Distribution markdown table with 🟢🟡🔴 tiers."""
|
|
679
|
-
if total == 0:
|
|
680
|
-
return []
|
|
681
|
-
high = distribution.get("high", 0)
|
|
682
|
-
medium = distribution.get("medium", 0)
|
|
683
|
-
low = distribution.get("low", 0)
|
|
684
|
-
return [
|
|
685
|
-
"### Score Distribution",
|
|
686
|
-
"",
|
|
687
|
-
"| Tier | Threshold | FRs | Share |",
|
|
688
|
-
"|------|-----------|-----|-------|",
|
|
689
|
-
f"| 🟢 High | ≥ 60 | {high} | {high / total * 100:.0f}% |",
|
|
690
|
-
f"| 🟡 Medium | 30 – 60 | {medium} | {medium / total * 100:.0f}% |",
|
|
691
|
-
f"| 🔴 Low | < 30 | {low} | {low / total * 100:.0f}% |",
|
|
692
|
-
"",
|
|
693
|
-
]
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
# ---------------------------------------------------------------------------
|
|
697
|
-
# TSK-J.1: FR × Dimension heatmap
|
|
698
|
-
# ---------------------------------------------------------------------------
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
def _render_heatmap(assessments: list[FRAssessment]) -> str:
|
|
702
|
-
"""Render a markdown FR × Dimension heatmap table.
|
|
703
|
-
|
|
704
|
-
Boolean dimensions use ✅/❌; numeric dimensions show rounded values;
|
|
705
|
-
``None`` (structural-mode skipped) shows ``N/A``.
|
|
706
|
-
"""
|
|
707
|
-
if not assessments:
|
|
708
|
-
return ""
|
|
709
|
-
|
|
710
|
-
lines: list[str] = [
|
|
711
|
-
"## Dimension Heatmap",
|
|
712
|
-
"",
|
|
713
|
-
"| FR | Service | Doc Chain | BRD | Code Activity | Test Coverage | Arch | Endpoints |",
|
|
714
|
-
"|----|---------|-----------|-----|---------------|---------------|------|-----------|",
|
|
715
|
-
]
|
|
716
|
-
for a in assessments:
|
|
717
|
-
arch = f"`{a.architecture_compliance:.0f}`" if a.architecture_compliance is not None else "N/A"
|
|
718
|
-
ep = f"`{a.endpoint_coverage:.0f}`" if a.endpoint_coverage is not None else "N/A"
|
|
719
|
-
lines.append(
|
|
720
|
-
f"| {a.fr_id} "
|
|
721
|
-
f"| {'✅' if a.service_exists else '❌'} "
|
|
722
|
-
f"| {'✅' if a.doc_chain_complete else '❌'} "
|
|
723
|
-
f"| {'✅' if a.brd_traced else '❌'} "
|
|
724
|
-
f"| `{a.code_activity_score:.0f}` "
|
|
725
|
-
f"| `{a.test_coverage_score:.0f}` "
|
|
726
|
-
f"| {arch} "
|
|
727
|
-
f"| {ep} |"
|
|
728
|
-
)
|
|
729
|
-
return "\n".join(lines)
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
# ---------------------------------------------------------------------------
|
|
733
|
-
# TSK-J.2: Per-repo health summary
|
|
734
|
-
# ---------------------------------------------------------------------------
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
def _render_repo_health(assessments: list[FRAssessment]) -> str:
|
|
738
|
-
"""Render a markdown per-repo health table, deduplicating shared repos.
|
|
739
|
-
|
|
740
|
-
Health indicator:
|
|
741
|
-
🟢 test_files / (java_files + ts_files) >= 0.3
|
|
742
|
-
🔴 ratio < 0.1 (or no source files at all)
|
|
743
|
-
🟡 otherwise
|
|
744
|
-
"""
|
|
745
|
-
seen: set[str] = set()
|
|
746
|
-
repos_ordered: list[RepoAnalysis] = []
|
|
747
|
-
for a in assessments:
|
|
748
|
-
for repo in a.repo_analyses:
|
|
749
|
-
if repo.repo_slug not in seen:
|
|
750
|
-
seen.add(repo.repo_slug)
|
|
751
|
-
repos_ordered.append(repo)
|
|
752
|
-
|
|
753
|
-
if not repos_ordered:
|
|
754
|
-
return ""
|
|
755
|
-
|
|
756
|
-
lines: list[str] = [
|
|
757
|
-
"## Repository Health",
|
|
758
|
-
"",
|
|
759
|
-
"| Repository | Java | TS | Tests | Ratio | Health |",
|
|
760
|
-
"|------------|------|----|-------|-------|--------|",
|
|
761
|
-
]
|
|
762
|
-
for repo in repos_ordered:
|
|
763
|
-
total_files = repo.java_files + repo.ts_files
|
|
764
|
-
ratio = repo.test_files / total_files if total_files > 0 else 0.0
|
|
765
|
-
if ratio >= 0.3:
|
|
766
|
-
health = "🟢"
|
|
767
|
-
elif ratio < 0.1:
|
|
768
|
-
health = "🔴"
|
|
769
|
-
else:
|
|
770
|
-
health = "🟡"
|
|
771
|
-
lines.append(
|
|
772
|
-
f"| `{repo.repo_slug}` "
|
|
773
|
-
f"| {repo.java_files} "
|
|
774
|
-
f"| {repo.ts_files} "
|
|
775
|
-
f"| {repo.test_files} "
|
|
776
|
-
f"| `{ratio:.2f}` "
|
|
777
|
-
f"| {health} |"
|
|
778
|
-
)
|
|
779
|
-
return "\n".join(lines)
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
def _render_exec_mode(report: ProgressReport) -> str:
|
|
783
|
-
"""Render exec mode: ≤20 non-blank lines — score + FR count + top risks (FR-Q11)."""
|
|
784
|
-
high = sum(1 for r in report.risks if r.severity == "high")
|
|
785
|
-
medium = sum(1 for r in report.risks if r.severity == "medium")
|
|
786
|
-
total = len(report.sections)
|
|
787
|
-
lines: list[str] = [
|
|
788
|
-
f"# {report.project_key} — Score: {report.overall_score:.1f}/100",
|
|
789
|
-
"",
|
|
790
|
-
f"FRs assessed: {total} | 🔴 High risks: {high} | 🟡 Medium risks: {medium}",
|
|
791
|
-
"",
|
|
792
|
-
]
|
|
793
|
-
all_recs = sorted(
|
|
794
|
-
(rec for sec in report.sections for rec in sec.recommendations),
|
|
795
|
-
key=lambda r: r.impact_score,
|
|
796
|
-
reverse=True,
|
|
797
|
-
)
|
|
798
|
-
for i, rec in enumerate(all_recs[:3], 1):
|
|
799
|
-
lines.append(f"{i}. [{rec.dimension}] {rec.summary}")
|
|
800
|
-
return "\n".join(lines)
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
def _render_summary_mode(report: ProgressReport) -> str:
|
|
804
|
-
"""Render summary mode: ≤100 non-blank lines — header + distribution + FR table (FR-Q11)."""
|
|
805
|
-
assessments = [sec.assessment for sec in report.sections]
|
|
806
|
-
distribution = _compute_score_distribution(assessments)
|
|
807
|
-
total = len(assessments)
|
|
808
|
-
high = distribution.get("high", 0)
|
|
809
|
-
medium = distribution.get("medium", 0)
|
|
810
|
-
low = distribution.get("low", 0)
|
|
811
|
-
high_risks = sum(1 for r in report.risks if r.severity == "high")
|
|
812
|
-
med_risks = sum(1 for r in report.risks if r.severity == "medium")
|
|
813
|
-
lines: list[str] = [
|
|
814
|
-
f"# Progress Report — {report.project_key}",
|
|
815
|
-
"",
|
|
816
|
-
f"**Generated**: {report.generated_at} ",
|
|
817
|
-
f"**Run ID**: `{report.run_id}` ",
|
|
818
|
-
"",
|
|
819
|
-
"## Executive Summary",
|
|
820
|
-
"",
|
|
821
|
-
"| Metric | Value |",
|
|
822
|
-
"|--------|-------|",
|
|
823
|
-
f"| FRs assessed | {total} |",
|
|
824
|
-
f"| Overall score | **{report.overall_score:.1f} / 100** |",
|
|
825
|
-
f"| 🔴 High risks | {high_risks} |",
|
|
826
|
-
f"| 🟡 Medium risks | {med_risks} |",
|
|
827
|
-
"",
|
|
828
|
-
"### Score Distribution",
|
|
829
|
-
"",
|
|
830
|
-
"| Tier | FRs | Share |",
|
|
831
|
-
"|------|-----|-------|",
|
|
832
|
-
f"| 🟢 High (≥ 60) | {high} | {high / total * 100:.0f}% |" if total else "| 🟢 High (≥ 60) | 0 | 0% |",
|
|
833
|
-
f"| 🟡 Medium (30–60) | {medium} | {medium / total * 100:.0f}% |"
|
|
834
|
-
if total
|
|
835
|
-
else "| 🟡 Medium (30–60) | 0 | 0% |",
|
|
836
|
-
f"| 🔴 Low (< 30) | {low} | {low / total * 100:.0f}% |" if total else "| 🔴 Low (< 30) | 0 | 0% |",
|
|
837
|
-
"",
|
|
838
|
-
"## FR Overview",
|
|
839
|
-
"",
|
|
840
|
-
"| FR | Score | Service | Top Risk |",
|
|
841
|
-
"|----|-------|---------|----------|",
|
|
842
|
-
]
|
|
843
|
-
for sec in report.sections:
|
|
844
|
-
a = sec.assessment
|
|
845
|
-
svc = "✅" if a.service_exists else "❌"
|
|
846
|
-
top_risk = sec.risks[0].description[:60] + "…" if sec.risks else "—"
|
|
847
|
-
lines.append(f"| {a.fr_id} | {a.overall_score:.1f} | {svc} | {top_risk} |")
|
|
848
|
-
return "\n".join(lines)
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
def render_markdown(
|
|
852
|
-
report: ProgressReport,
|
|
853
|
-
trend_data: dict[str, list[float]] | None = None,
|
|
854
|
-
mode: str = "full",
|
|
855
|
-
) -> str:
|
|
856
|
-
"""Render a ProgressReport to a markdown string.
|
|
857
|
-
|
|
858
|
-
Args:
|
|
859
|
-
report: The completed progress report.
|
|
860
|
-
trend_data: Optional pre-fetched dimension trend history mapping
|
|
861
|
-
``DimensionCoverageRecord.key`` to a list of historical avg scores
|
|
862
|
-
(oldest first). Pass ``None`` (default) when no DB is available;
|
|
863
|
-
the Trend column will render ``—`` for all dimensions.
|
|
864
|
-
mode: Progressive disclosure tier — "exec" (≤20 lines), "summary" (≤100 lines),
|
|
865
|
-
"standard" (Phase 3 byte-identical, default), "full" (all Phase 4 sections).
|
|
866
|
-
"""
|
|
867
|
-
if mode == "exec":
|
|
868
|
-
return _render_exec_mode(report)
|
|
869
|
-
if mode == "summary":
|
|
870
|
-
return _render_summary_mode(report)
|
|
871
|
-
|
|
872
|
-
lines: list[str] = []
|
|
873
|
-
|
|
874
|
-
high = sum(1 for r in report.risks if r.severity == "high")
|
|
875
|
-
medium = sum(1 for r in report.risks if r.severity == "medium")
|
|
876
|
-
total_recs = sum(len(sec.recommendations) for sec in report.sections)
|
|
877
|
-
|
|
878
|
-
lines += [
|
|
879
|
-
f"# Progress Report — {report.project_key}",
|
|
880
|
-
"",
|
|
881
|
-
f"**Generated**: {report.generated_at} ",
|
|
882
|
-
f"**Run ID**: `{report.run_id}` ",
|
|
883
|
-
f"**Source**: `{report.bmad_repo}` ",
|
|
884
|
-
"",
|
|
885
|
-
"---",
|
|
886
|
-
"",
|
|
887
|
-
"## Executive Summary",
|
|
888
|
-
"",
|
|
889
|
-
"| Metric | Value |",
|
|
890
|
-
"|--------|-------|",
|
|
891
|
-
f"| FRs assessed | {len(report.sections)} |",
|
|
892
|
-
f"| Overall score | **{report.overall_score:.1f} / 100** |",
|
|
893
|
-
f"| 🔴 High risks | {high} |",
|
|
894
|
-
f"| 🟡 Medium risks | {medium} |",
|
|
895
|
-
f"| Recommendations | {total_recs} |",
|
|
896
|
-
"",
|
|
897
|
-
]
|
|
898
|
-
|
|
899
|
-
# Top-3 actionable items — cross-FR, sorted by impact_score descending
|
|
900
|
-
all_recs = sorted(
|
|
901
|
-
(rec for sec in report.sections for rec in sec.recommendations),
|
|
902
|
-
key=lambda r: r.impact_score,
|
|
903
|
-
reverse=True,
|
|
904
|
-
)
|
|
905
|
-
top3 = all_recs[:3]
|
|
906
|
-
if top3:
|
|
907
|
-
lines += ["### Top 3 Actionable Items", ""]
|
|
908
|
-
for i, rec in enumerate(top3, 1):
|
|
909
|
-
lines.append(f"{i}. **[{rec.dimension}]** {rec.summary} _(+{rec.impact_score:.1f} pts)_")
|
|
910
|
-
lines.append("")
|
|
911
|
-
|
|
912
|
-
# --- TSK-J.3a/b: Dimension coverage + score distribution ---
|
|
913
|
-
assessments = [sec.assessment for sec in report.sections]
|
|
914
|
-
coverage = _compute_dimension_coverage(assessments)
|
|
915
|
-
if mode == "full":
|
|
916
|
-
coverage_lines = _render_dimension_coverage(coverage, trend_data)
|
|
917
|
-
else:
|
|
918
|
-
coverage_lines = _render_dimension_coverage_phase3(coverage)
|
|
919
|
-
if coverage_lines:
|
|
920
|
-
lines += coverage_lines
|
|
921
|
-
|
|
922
|
-
distribution = _compute_score_distribution(assessments)
|
|
923
|
-
dist_lines = _render_score_distribution(distribution, len(assessments))
|
|
924
|
-
if dist_lines:
|
|
925
|
-
lines += dist_lines
|
|
926
|
-
|
|
927
|
-
# --- TSK-L.2 + TSK-L.7: Valence gap callout + stratified cluster sub-reports (full only) ---
|
|
928
|
-
if mode == "full" and _detect_valence_gap(distribution):
|
|
929
|
-
high_n = distribution.get("high", 0)
|
|
930
|
-
low_n = distribution.get("low", 0)
|
|
931
|
-
lines += [
|
|
932
|
-
"> **⚠ Bimodal distribution detected**",
|
|
933
|
-
">",
|
|
934
|
-
f"> Score splits into high-performers ({high_n} FRs ≥ 60) and low-performers ({low_n} FRs < 30) with no medium tier.",
|
|
935
|
-
">",
|
|
936
|
-
"> **Remediation**: Stratify the analysis by service-exists before",
|
|
937
|
-
"> interpreting dimension averages. The mean hides the split.",
|
|
938
|
-
"",
|
|
939
|
-
]
|
|
940
|
-
# TSK-L.7: cluster sub-reports
|
|
941
|
-
recs_by_fr: dict[str, list] = {sec.fr_id: sec.recommendations for sec in report.sections}
|
|
942
|
-
clusters = _stratify_bimodal(assessments, recs_by_fr)
|
|
943
|
-
for label, icon, cluster in [
|
|
944
|
-
("high", "🟢", clusters["high"]),
|
|
945
|
-
("low", "🔴", clusters["low"]),
|
|
946
|
-
]:
|
|
947
|
-
if not cluster.fr_ids:
|
|
948
|
-
continue
|
|
949
|
-
top_fr_note = f" | Top rec: `{cluster.top_recommendation_fr}`" if cluster.top_recommendation_fr else ""
|
|
950
|
-
lines += [
|
|
951
|
-
f"### {icon} {label.capitalize()}-Cluster Analysis",
|
|
952
|
-
"",
|
|
953
|
-
f"**FRs ({len(cluster.fr_ids)}):** {', '.join(f'`{f}`' for f in cluster.fr_ids)}",
|
|
954
|
-
f"**Avg score:** {cluster.avg_score:.1f}/100 | **Dominant blocker:** `{cluster.dominant_blocker}`{top_fr_note}",
|
|
955
|
-
"",
|
|
956
|
-
]
|
|
957
|
-
|
|
958
|
-
# --- TSK-J.1: Dimension heatmap (cross-FR overview) ---
|
|
959
|
-
heatmap_md = _render_heatmap(assessments)
|
|
960
|
-
if heatmap_md:
|
|
961
|
-
lines += ["---", "", heatmap_md, ""]
|
|
962
|
-
|
|
963
|
-
# --- TSK-J.2: Per-repo health summary ---
|
|
964
|
-
repo_health_md = _render_repo_health(assessments)
|
|
965
|
-
if repo_health_md:
|
|
966
|
-
lines += ["---", "", repo_health_md, ""]
|
|
967
|
-
|
|
968
|
-
lines += [
|
|
969
|
-
"---",
|
|
970
|
-
"",
|
|
971
|
-
"## FR Assessments",
|
|
972
|
-
"",
|
|
973
|
-
]
|
|
974
|
-
|
|
975
|
-
# --- Trend section (TSK-D.1) ---
|
|
976
|
-
if report.delta is not None:
|
|
977
|
-
lines += _render_trend_section(report.delta)
|
|
978
|
-
|
|
979
|
-
for sec in report.sections:
|
|
980
|
-
a = sec.assessment
|
|
981
|
-
lines += [
|
|
982
|
-
f"### {a.fr_id}",
|
|
983
|
-
"",
|
|
984
|
-
f"**Score**: `{a.overall_score:.1f}/100` `[{_score_bar(a.overall_score)}]`",
|
|
985
|
-
"",
|
|
986
|
-
"| # | Dimension | Status |",
|
|
987
|
-
"|---|-----------|--------|",
|
|
988
|
-
f"| 1 | Service existence | {'✅' if a.service_exists else '❌'} |",
|
|
989
|
-
f"| 2 | Doc chain complete | {'✅' if a.doc_chain_complete else '❌'} |",
|
|
990
|
-
f"| 3 | BRD traced | {'✅' if a.brd_traced else '❌'} |",
|
|
991
|
-
f"| 4 | Code activity | `{a.code_activity_score:.1f}/100` |",
|
|
992
|
-
"| 5 | Code size | _(informational only)_ |",
|
|
993
|
-
f"| 6 | Test coverage | `{a.test_coverage_score:.1f}/100` |",
|
|
994
|
-
]
|
|
995
|
-
|
|
996
|
-
if a.architecture_compliance is not None:
|
|
997
|
-
lines.append(f"| 7 | Architecture compliance | `{a.architecture_compliance:.1f}/100` |")
|
|
998
|
-
else:
|
|
999
|
-
lines.append("| 7 | Architecture compliance | _(skipped — structural mode)_ |")
|
|
1000
|
-
|
|
1001
|
-
if a.endpoint_coverage is not None:
|
|
1002
|
-
lines.append(f"| 8 | Endpoint coverage | `{a.endpoint_coverage:.1f}/100` |")
|
|
1003
|
-
else:
|
|
1004
|
-
lines.append("| 8 | Endpoint coverage | _(skipped — structural mode)_ |")
|
|
1005
|
-
|
|
1006
|
-
lines.append("")
|
|
1007
|
-
|
|
1008
|
-
if a.repo_analyses:
|
|
1009
|
-
lines += ["**Repositories:**", ""]
|
|
1010
|
-
for repo in a.repo_analyses:
|
|
1011
|
-
icon = "✅" if repo.has_code else ("⚠️" if repo.exists else "❌")
|
|
1012
|
-
lines.append(f"- {icon} `{repo.repo_slug}` (Java: {repo.java_files}, TS: {repo.ts_files})")
|
|
1013
|
-
lines.append("")
|
|
1014
|
-
|
|
1015
|
-
if sec.risks:
|
|
1016
|
-
lines += ["**Risks:**", ""]
|
|
1017
|
-
for risk in sec.risks:
|
|
1018
|
-
lines.append(f"- {_severity_icon(risk.severity)} {risk.description}")
|
|
1019
|
-
lines.append("")
|
|
1020
|
-
|
|
1021
|
-
if sec.recommendations:
|
|
1022
|
-
lines += ["**Recommendations:**", ""]
|
|
1023
|
-
for rec in sec.recommendations:
|
|
1024
|
-
lines.append(f"- {rec.summary}")
|
|
1025
|
-
lines.append("")
|
|
1026
|
-
|
|
1027
|
-
lines += ["---", ""]
|
|
1028
|
-
|
|
1029
|
-
if report.risks:
|
|
1030
|
-
lines += [
|
|
1031
|
-
"## Risk Register",
|
|
1032
|
-
"",
|
|
1033
|
-
"| FR | Dimension | Severity | Description |",
|
|
1034
|
-
"|----|-----------|----------|-------------|",
|
|
1035
|
-
]
|
|
1036
|
-
for risk in sorted(report.risks, key=lambda r: _SEVERITY_SORT.get(r.severity, 9)):
|
|
1037
|
-
icon = _severity_icon(risk.severity)
|
|
1038
|
-
lines.append(f"| {risk.fr_id} | {risk.dimension} | {icon} {risk.severity} | {risk.description} |")
|
|
1039
|
-
lines.append("")
|
|
1040
|
-
|
|
1041
|
-
return "\n".join(lines)
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
# ---------------------------------------------------------------------------
|
|
1045
|
-
# JSON renderer
|
|
1046
|
-
# ---------------------------------------------------------------------------
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
def render_json(report: ProgressReport) -> str:
|
|
1050
|
-
"""Render a ProgressReport to a JSON string."""
|
|
1051
|
-
|
|
1052
|
-
def _section_dict(sec: ReportSection) -> dict:
|
|
1053
|
-
a = sec.assessment
|
|
1054
|
-
return {
|
|
1055
|
-
"fr_id": sec.fr_id,
|
|
1056
|
-
"overall_score": a.overall_score,
|
|
1057
|
-
"dimensions": {
|
|
1058
|
-
"service_exists": a.service_exists,
|
|
1059
|
-
"service_has_code": a.service_has_code,
|
|
1060
|
-
"doc_chain_complete": a.doc_chain_complete,
|
|
1061
|
-
"brd_traced": a.brd_traced,
|
|
1062
|
-
"code_activity_score": a.code_activity_score,
|
|
1063
|
-
"test_coverage_score": a.test_coverage_score,
|
|
1064
|
-
"architecture_compliance": a.architecture_compliance,
|
|
1065
|
-
"endpoint_coverage": a.endpoint_coverage,
|
|
1066
|
-
},
|
|
1067
|
-
"risks": [
|
|
1068
|
-
{
|
|
1069
|
-
"dimension": r.dimension,
|
|
1070
|
-
"severity": r.severity,
|
|
1071
|
-
"description": r.description,
|
|
1072
|
-
}
|
|
1073
|
-
for r in sec.risks
|
|
1074
|
-
],
|
|
1075
|
-
"recommendations": [
|
|
1076
|
-
{
|
|
1077
|
-
"dimension": r.dimension,
|
|
1078
|
-
"severity": r.severity,
|
|
1079
|
-
"impact_score": r.impact_score,
|
|
1080
|
-
"summary": r.summary,
|
|
1081
|
-
"detail": r.detail,
|
|
1082
|
-
"target_value": r.target_value,
|
|
1083
|
-
"current_value": r.current_value,
|
|
1084
|
-
}
|
|
1085
|
-
for r in sec.recommendations
|
|
1086
|
-
],
|
|
1087
|
-
"repos": [
|
|
1088
|
-
{
|
|
1089
|
-
"slug": repo.repo_slug,
|
|
1090
|
-
"exists": repo.exists,
|
|
1091
|
-
"has_code": repo.has_code,
|
|
1092
|
-
"java_files": repo.java_files,
|
|
1093
|
-
"ts_files": repo.ts_files,
|
|
1094
|
-
}
|
|
1095
|
-
for repo in a.repo_analyses
|
|
1096
|
-
],
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
top_actions = sorted(
|
|
1100
|
-
(rec for sec in report.sections for rec in sec.recommendations),
|
|
1101
|
-
key=lambda r: r.impact_score,
|
|
1102
|
-
reverse=True,
|
|
1103
|
-
)[:3]
|
|
1104
|
-
|
|
1105
|
-
assessments = [s.assessment for s in report.sections]
|
|
1106
|
-
|
|
1107
|
-
# TSK-J.4: heatmap records — one dict per FR
|
|
1108
|
-
heatmap_records = [
|
|
1109
|
-
{
|
|
1110
|
-
"fr_id": a.fr_id,
|
|
1111
|
-
"service_exists": a.service_exists,
|
|
1112
|
-
"doc_chain_complete": a.doc_chain_complete,
|
|
1113
|
-
"brd_traced": a.brd_traced,
|
|
1114
|
-
"code_activity_score": a.code_activity_score,
|
|
1115
|
-
"test_coverage_score": a.test_coverage_score,
|
|
1116
|
-
"architecture_compliance": a.architecture_compliance,
|
|
1117
|
-
"endpoint_coverage": a.endpoint_coverage,
|
|
1118
|
-
}
|
|
1119
|
-
for a in assessments
|
|
1120
|
-
]
|
|
1121
|
-
|
|
1122
|
-
# TSK-J.4: repo_health records — deduplicated per repo slug
|
|
1123
|
-
seen_slugs: set[str] = set()
|
|
1124
|
-
repo_health_records: list[dict] = []
|
|
1125
|
-
for a in assessments:
|
|
1126
|
-
for repo in a.repo_analyses:
|
|
1127
|
-
if repo.repo_slug in seen_slugs:
|
|
1128
|
-
continue
|
|
1129
|
-
seen_slugs.add(repo.repo_slug)
|
|
1130
|
-
total_files = repo.java_files + repo.ts_files
|
|
1131
|
-
ratio = repo.test_files / total_files if total_files > 0 else 0.0
|
|
1132
|
-
repo_health_records.append(
|
|
1133
|
-
{
|
|
1134
|
-
"slug": repo.repo_slug,
|
|
1135
|
-
"java_files": repo.java_files,
|
|
1136
|
-
"ts_files": repo.ts_files,
|
|
1137
|
-
"test_files": repo.test_files,
|
|
1138
|
-
"test_ratio": round(ratio, 3),
|
|
1139
|
-
"health": "green" if ratio >= 0.3 else ("red" if ratio < 0.1 else "yellow"),
|
|
1140
|
-
}
|
|
1141
|
-
)
|
|
1142
|
-
|
|
1143
|
-
# TSK-J.4 + J.3: shared helpers for dimension_coverage and score_distribution
|
|
1144
|
-
coverage_records = _compute_dimension_coverage(assessments)
|
|
1145
|
-
dimension_coverage = _coverage_records_to_dict(coverage_records)
|
|
1146
|
-
score_distribution = _compute_score_distribution(assessments)
|
|
1147
|
-
|
|
1148
|
-
# TSK-L.3: valence-gap warning dict — always present, detected key is bool
|
|
1149
|
-
# Per FR-Q7, when detected the JSON payload includes stratified cluster data.
|
|
1150
|
-
_gap_detected = _detect_valence_gap(score_distribution)
|
|
1151
|
-
_high_n = score_distribution.get("high", 0)
|
|
1152
|
-
_low_n = score_distribution.get("low", 0)
|
|
1153
|
-
bimodal_warning: dict = {
|
|
1154
|
-
"detected": _gap_detected,
|
|
1155
|
-
"high_count": _high_n if _gap_detected else None,
|
|
1156
|
-
"low_count": _low_n if _gap_detected else None,
|
|
1157
|
-
"interpretation": (
|
|
1158
|
-
f"Score splits into high-performers ({_high_n} FRs ≥ 60) and "
|
|
1159
|
-
f"low-performers ({_low_n} FRs < 30) with no medium tier."
|
|
1160
|
-
)
|
|
1161
|
-
if _gap_detected
|
|
1162
|
-
else None,
|
|
1163
|
-
}
|
|
1164
|
-
if _gap_detected:
|
|
1165
|
-
# Compute stratified sub-reports (mirrors markdown rendering path)
|
|
1166
|
-
recs_by_fr: dict[str, list] = {sec.fr_id: sec.recommendations for sec in report.sections}
|
|
1167
|
-
clusters = _stratify_bimodal(assessments, recs_by_fr)
|
|
1168
|
-
bimodal_warning["stratification_variable"] = "service_exists"
|
|
1169
|
-
bimodal_warning["high_cluster"] = {
|
|
1170
|
-
"label": clusters["high"].label,
|
|
1171
|
-
"fr_ids": list(clusters["high"].fr_ids),
|
|
1172
|
-
"avg_score": clusters["high"].avg_score,
|
|
1173
|
-
"dominant_blocker": clusters["high"].dominant_blocker,
|
|
1174
|
-
"top_recommendation_fr": clusters["high"].top_recommendation_fr,
|
|
1175
|
-
}
|
|
1176
|
-
bimodal_warning["low_cluster"] = {
|
|
1177
|
-
"label": clusters["low"].label,
|
|
1178
|
-
"fr_ids": list(clusters["low"].fr_ids),
|
|
1179
|
-
"avg_score": clusters["low"].avg_score,
|
|
1180
|
-
"dominant_blocker": clusters["low"].dominant_blocker,
|
|
1181
|
-
"top_recommendation_fr": clusters["low"].top_recommendation_fr,
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
payload = {
|
|
1185
|
-
"run_id": report.run_id,
|
|
1186
|
-
"project_key": report.project_key,
|
|
1187
|
-
"bmad_repo": report.bmad_repo,
|
|
1188
|
-
"generated_at": report.generated_at,
|
|
1189
|
-
"overall_score": report.overall_score,
|
|
1190
|
-
"fr_count": len(report.sections),
|
|
1191
|
-
"top_actions": [
|
|
1192
|
-
{
|
|
1193
|
-
"dimension": r.dimension,
|
|
1194
|
-
"severity": r.severity,
|
|
1195
|
-
"impact_score": r.impact_score,
|
|
1196
|
-
"summary": r.summary,
|
|
1197
|
-
"detail": r.detail,
|
|
1198
|
-
"target_value": r.target_value,
|
|
1199
|
-
"current_value": r.current_value,
|
|
1200
|
-
}
|
|
1201
|
-
for r in top_actions
|
|
1202
|
-
],
|
|
1203
|
-
"heatmap": heatmap_records,
|
|
1204
|
-
"repo_health": repo_health_records,
|
|
1205
|
-
"dimension_coverage": dimension_coverage,
|
|
1206
|
-
"score_distribution": score_distribution,
|
|
1207
|
-
"bimodal_warning": bimodal_warning,
|
|
1208
|
-
"sections": [_section_dict(s) for s in report.sections],
|
|
1209
|
-
"risks": [
|
|
1210
|
-
{
|
|
1211
|
-
"fr_id": r.fr_id,
|
|
1212
|
-
"dimension": r.dimension,
|
|
1213
|
-
"severity": r.severity,
|
|
1214
|
-
"description": r.description,
|
|
1215
|
-
}
|
|
1216
|
-
for r in report.risks
|
|
1217
|
-
],
|
|
1218
|
-
}
|
|
1219
|
-
return json.dumps(payload, indent=2, ensure_ascii=False)
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
# ---------------------------------------------------------------------------
|
|
1223
|
-
# File output
|
|
1224
|
-
# ---------------------------------------------------------------------------
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
def write_report(
|
|
1228
|
-
report: ProgressReport,
|
|
1229
|
-
output_dir: Path,
|
|
1230
|
-
project_key: str,
|
|
1231
|
-
fmt: Literal["markdown", "json"] = "markdown",
|
|
1232
|
-
mode: str = "standard",
|
|
1233
|
-
) -> Path:
|
|
1234
|
-
"""Write the report to ``output_dir/<project_key>/YYYY-MM-DD[.md|.json]``.
|
|
1235
|
-
|
|
1236
|
-
Updates ``report.output_path`` in-place and returns the destination path.
|
|
1237
|
-
"""
|
|
1238
|
-
date_str = report.generated_at[:10]
|
|
1239
|
-
dest_dir = output_dir / project_key
|
|
1240
|
-
dest_dir.mkdir(parents=True, exist_ok=True)
|
|
1241
|
-
|
|
1242
|
-
ext = ".md" if fmt == "markdown" else ".json"
|
|
1243
|
-
dest = dest_dir / f"{date_str}{ext}"
|
|
1244
|
-
|
|
1245
|
-
content = render_markdown(report, mode=mode) if fmt == "markdown" else render_json(report)
|
|
1246
|
-
dest.write_text(content, encoding="utf-8")
|
|
1247
|
-
report.output_path = str(dest)
|
|
1248
|
-
|
|
1249
|
-
log.info(
|
|
1250
|
-
"report_written",
|
|
1251
|
-
path=str(dest),
|
|
1252
|
-
format=fmt,
|
|
1253
|
-
fr_count=len(report.sections),
|
|
1254
|
-
overall_score=report.overall_score,
|
|
1255
|
-
)
|
|
1256
|
-
return dest
|