@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
package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/synthesis_agent.py
DELETED
|
@@ -1,1463 +0,0 @@
|
|
|
1
|
-
"""Synthesis Agent (TSK-049) - PydanticAI Migration.
|
|
2
|
-
|
|
3
|
-
This agent aggregates results from other agents (code, docs, security) and
|
|
4
|
-
synthesizes them into a comprehensive audit report with maturity scoring.
|
|
5
|
-
|
|
6
|
-
Uses PydanticAI patterns from pydantic_base.py for structured outputs
|
|
7
|
-
and dependency injection.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
from __future__ import annotations
|
|
11
|
-
|
|
12
|
-
import json
|
|
13
|
-
import re
|
|
14
|
-
from collections.abc import Callable
|
|
15
|
-
from enum import StrEnum
|
|
16
|
-
from typing import TYPE_CHECKING, Any, Literal
|
|
17
|
-
|
|
18
|
-
from pydantic import BaseModel, Field, ValidationError
|
|
19
|
-
|
|
20
|
-
from vds_audit_orchestrator.agents.base import AgentResult, BaseAgent
|
|
21
|
-
from vds_audit_orchestrator.agents.pydantic_base import (
|
|
22
|
-
GapSummary,
|
|
23
|
-
SynthesisResult,
|
|
24
|
-
build_deps,
|
|
25
|
-
)
|
|
26
|
-
from vds_audit_orchestrator.engine.provider_failure_classifier import (
|
|
27
|
-
SynthesisFallbackCause,
|
|
28
|
-
)
|
|
29
|
-
from vds_audit_orchestrator.errors import AUDIT_ERROR_CODES, AuditError
|
|
30
|
-
from vds_audit_orchestrator.evidence.corpus import EvidenceCorpus, deserialize_evidence_corpus
|
|
31
|
-
from vds_audit_orchestrator.models.evidence import EvidenceBundle
|
|
32
|
-
|
|
33
|
-
if TYPE_CHECKING:
|
|
34
|
-
from vds_audit_orchestrator.models.task import AuditTask
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
class MaturityLevel(StrEnum):
|
|
38
|
-
"""Repository maturity levels based on overall score."""
|
|
39
|
-
|
|
40
|
-
CRITICAL = "Critical" # 0-25: Major gaps, immediate action required
|
|
41
|
-
DEVELOPING = "Developing" # 26-50: Basic practices, significant improvements needed
|
|
42
|
-
ESTABLISHED = "Established" # 51-75: Good practices, some gaps remain
|
|
43
|
-
OPTIMIZING = "Optimizing" # 76-90: Strong practices, continuous improvement
|
|
44
|
-
LEADING = "Leading" # 91-100: Best-in-class, exemplary practices
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
class FindingSeverity(StrEnum):
|
|
48
|
-
"""Severity levels for findings."""
|
|
49
|
-
|
|
50
|
-
CRITICAL = "critical"
|
|
51
|
-
HIGH = "high"
|
|
52
|
-
MEDIUM = "medium"
|
|
53
|
-
LOW = "low"
|
|
54
|
-
INFO = "info"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
# Severity weights for scoring
|
|
58
|
-
SEVERITY_WEIGHTS: dict[str, float] = {
|
|
59
|
-
"critical": 25.0,
|
|
60
|
-
"high": 15.0,
|
|
61
|
-
"medium": 8.0,
|
|
62
|
-
"low": 3.0,
|
|
63
|
-
"info": 0.0,
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
# Finding type to severity mapping
|
|
67
|
-
FINDING_TYPE_SEVERITY: dict[str, str] = {
|
|
68
|
-
"security_vulnerability": "critical",
|
|
69
|
-
"security_risk": "high",
|
|
70
|
-
"technical_debt": "medium",
|
|
71
|
-
"doc_quality": "low",
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
# =============================================================================
|
|
75
|
-
# PydanticAI Agent Output Models
|
|
76
|
-
# =============================================================================
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
class RecommendationOutput(BaseModel):
|
|
80
|
-
"""Structured recommendation output from the LLM."""
|
|
81
|
-
|
|
82
|
-
priority: Literal["critical", "high", "medium", "low"]
|
|
83
|
-
title: str
|
|
84
|
-
description: str
|
|
85
|
-
category: Literal["security", "code", "docs", "process", "cross_cutting"]
|
|
86
|
-
effort: Literal["low", "medium", "high"]
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
class RecommendationsResult(BaseModel):
|
|
90
|
-
"""Wrapper for recommendations list with confidence."""
|
|
91
|
-
|
|
92
|
-
recommendations: list[RecommendationOutput] = Field(default_factory=list)
|
|
93
|
-
confidence: float = Field(
|
|
94
|
-
default=0.8,
|
|
95
|
-
ge=0.0,
|
|
96
|
-
le=1.0,
|
|
97
|
-
description="Confidence level of the recommendations",
|
|
98
|
-
)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
class ExecutiveSummaryResult(BaseModel):
|
|
102
|
-
"""Structured executive summary output with confidence."""
|
|
103
|
-
|
|
104
|
-
summary: str = Field(..., description="Executive summary text")
|
|
105
|
-
confidence: float = Field(
|
|
106
|
-
default=0.8,
|
|
107
|
-
ge=0.0,
|
|
108
|
-
le=1.0,
|
|
109
|
-
description="Confidence level of the summary",
|
|
110
|
-
)
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
# =============================================================================
|
|
114
|
-
# PydanticAI Agents for Synthesis Tasks
|
|
115
|
-
# =============================================================================
|
|
116
|
-
|
|
117
|
-
_RECOMMENDATIONS_SYSTEM_PROMPT = """You are a senior software architect reviewing audit findings.
|
|
118
|
-
Generate actionable recommendations based on the critical gaps identified.
|
|
119
|
-
|
|
120
|
-
Focus on:
|
|
121
|
-
1. Security vulnerabilities first
|
|
122
|
-
2. Technical debt that blocks velocity
|
|
123
|
-
3. Documentation gaps affecting knowledge transfer
|
|
124
|
-
4. Process improvements for sustainability
|
|
125
|
-
|
|
126
|
-
Limit to 5 most impactful recommendations.
|
|
127
|
-
Provide high confidence (>0.7) only when gaps are clear and actionable."""
|
|
128
|
-
|
|
129
|
-
_EXECUTIVE_SUMMARY_SYSTEM_PROMPT = """You are a technical writer creating an executive summary for a software audit.
|
|
130
|
-
Write a concise 3-4 paragraph summary that:
|
|
131
|
-
1. States the overall maturity assessment
|
|
132
|
-
2. Highlights key strengths
|
|
133
|
-
3. Summarizes critical concerns
|
|
134
|
-
4. Provides a forward-looking statement
|
|
135
|
-
|
|
136
|
-
Keep it professional and actionable. Maximum 250 words.
|
|
137
|
-
Provide high confidence (>0.7) when you have sufficient context."""
|
|
138
|
-
|
|
139
|
-
# Create PydanticAI agents using the factory (lazy to avoid import-time side effects)
|
|
140
|
-
_recommendations_agent = None
|
|
141
|
-
_summary_agent = None
|
|
142
|
-
|
|
143
|
-
CODE_QUALITY_FLOOR_CONFIDENCE = 0.6
|
|
144
|
-
CODE_QUALITY_FLOOR_GROUNDEDNESS = 0.5
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
# =============================================================================
|
|
148
|
-
# SynthesisAgent Class
|
|
149
|
-
# =============================================================================
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
class SynthesisAgent(BaseAgent):
|
|
153
|
-
"""Agent for aggregating and synthesizing results from other agents.
|
|
154
|
-
|
|
155
|
-
This agent receives results from CodeAnalysisAgent, DocumentationAgent,
|
|
156
|
-
and SecurityAgent, then produces a comprehensive synthesis including:
|
|
157
|
-
- Overall maturity score
|
|
158
|
-
- Critical gaps requiring immediate attention
|
|
159
|
-
- Aligned practices (what's working well)
|
|
160
|
-
- Prioritized recommendations
|
|
161
|
-
- Executive summary for stakeholders
|
|
162
|
-
|
|
163
|
-
Uses PydanticAI agents for LLM-powered recommendations and summaries
|
|
164
|
-
with structured outputs and confidence validation.
|
|
165
|
-
"""
|
|
166
|
-
|
|
167
|
-
def __init__(self, *args, evidence_corpus: EvidenceCorpus | None = None, **kwargs) -> None:
|
|
168
|
-
super().__init__(*args, **kwargs)
|
|
169
|
-
self._evidence_corpus = evidence_corpus
|
|
170
|
-
|
|
171
|
-
async def analyze(self, evidence: EvidenceBundle | dict | AuditTask) -> AgentResult:
|
|
172
|
-
"""Perform analysis on the evidence bundle.
|
|
173
|
-
|
|
174
|
-
This method maintains interface compatibility with BaseAgent.
|
|
175
|
-
For synthesis operations, use synthesize() which accepts agent results.
|
|
176
|
-
|
|
177
|
-
Args:
|
|
178
|
-
evidence: Evidence bundle (used for context when no agent results available)
|
|
179
|
-
|
|
180
|
-
Returns:
|
|
181
|
-
AgentResult with synthesis metadata
|
|
182
|
-
"""
|
|
183
|
-
# Extract evidence bundle if wrapped in dict
|
|
184
|
-
if isinstance(evidence, dict):
|
|
185
|
-
bundle = evidence.get("evidence_bundle") or evidence.get("evidence")
|
|
186
|
-
agent_results = evidence.get("agent_results", [])
|
|
187
|
-
self._evidence_corpus = deserialize_evidence_corpus(evidence.get("evidence_corpus"))
|
|
188
|
-
if bundle and isinstance(bundle, EvidenceBundle):
|
|
189
|
-
evidence = bundle
|
|
190
|
-
else:
|
|
191
|
-
agent_results = []
|
|
192
|
-
|
|
193
|
-
if not isinstance(evidence, EvidenceBundle):
|
|
194
|
-
return self._result(
|
|
195
|
-
agent_name="SynthesisAgent",
|
|
196
|
-
success=False,
|
|
197
|
-
error=AuditError(
|
|
198
|
-
code=AUDIT_ERROR_CODES["AGENT_EVIDENCE_MISSING"],
|
|
199
|
-
message="Evidence bundle missing",
|
|
200
|
-
template_params={"agent_name": "SynthesisAgent"},
|
|
201
|
-
),
|
|
202
|
-
)
|
|
203
|
-
|
|
204
|
-
# If we have agent results, delegate to synthesize
|
|
205
|
-
if agent_results:
|
|
206
|
-
synthesis = await self.synthesize(
|
|
207
|
-
repository=evidence.repository,
|
|
208
|
-
agent_results=agent_results,
|
|
209
|
-
)
|
|
210
|
-
return self._result(
|
|
211
|
-
agent_name="SynthesisAgent",
|
|
212
|
-
success=True,
|
|
213
|
-
findings=[{"type": "synthesis", "data": self._synthesis_to_dict(synthesis)}],
|
|
214
|
-
metadata={
|
|
215
|
-
"overall_score": synthesis.overall_score,
|
|
216
|
-
"maturity_level": synthesis.maturity_level,
|
|
217
|
-
"critical_gap_count": len(synthesis.gaps),
|
|
218
|
-
"recommendation_count": len(synthesis.recommendations),
|
|
219
|
-
},
|
|
220
|
-
)
|
|
221
|
-
|
|
222
|
-
# Fallback: create minimal synthesis from evidence alone
|
|
223
|
-
return self._result(
|
|
224
|
-
agent_name="SynthesisAgent",
|
|
225
|
-
success=True,
|
|
226
|
-
findings=[],
|
|
227
|
-
metadata={
|
|
228
|
-
"message": "No agent results provided. Use synthesize() for full analysis.",
|
|
229
|
-
"repository": evidence.repository,
|
|
230
|
-
"evidence_count": evidence.total_evidence,
|
|
231
|
-
},
|
|
232
|
-
)
|
|
233
|
-
|
|
234
|
-
async def synthesize(
|
|
235
|
-
self,
|
|
236
|
-
repository: str,
|
|
237
|
-
agent_results: list[AgentResult],
|
|
238
|
-
) -> SynthesisResult:
|
|
239
|
-
"""Synthesize results from multiple agents into a comprehensive report.
|
|
240
|
-
|
|
241
|
-
Args:
|
|
242
|
-
repository: Repository identifier being audited
|
|
243
|
-
agent_results: List of AgentResult from other agents (code, docs, security)
|
|
244
|
-
|
|
245
|
-
Returns:
|
|
246
|
-
SynthesisResult with aggregated findings and recommendations
|
|
247
|
-
"""
|
|
248
|
-
self.logger.info(
|
|
249
|
-
"synthesis_started",
|
|
250
|
-
repository=repository,
|
|
251
|
-
agent_count=len(agent_results),
|
|
252
|
-
)
|
|
253
|
-
|
|
254
|
-
gated_results = self._apply_code_quality_floor(agent_results)
|
|
255
|
-
|
|
256
|
-
# Aggregate all findings
|
|
257
|
-
all_findings = self._aggregate_findings(gated_results)
|
|
258
|
-
|
|
259
|
-
# Calculate agent-specific scores
|
|
260
|
-
agent_scores = self._calculate_agent_scores(gated_results)
|
|
261
|
-
|
|
262
|
-
# Identify cross-cutting concerns
|
|
263
|
-
cross_cutting = self._identify_cross_cutting_concerns(all_findings)
|
|
264
|
-
|
|
265
|
-
# Prioritize findings by severity
|
|
266
|
-
prioritized = self._prioritize_findings(all_findings)
|
|
267
|
-
|
|
268
|
-
# Calculate preliminary overall score (before elevation)
|
|
269
|
-
preliminary_gaps = self._extract_critical_gaps(prioritized)
|
|
270
|
-
preliminary_score = self._calculate_overall_score(agent_scores, preliminary_gaps)
|
|
271
|
-
|
|
272
|
-
# TSK-304: Elevate critical findings based on score
|
|
273
|
-
critical_gaps = self._elevate_critical_findings(prioritized, preliminary_score)
|
|
274
|
-
|
|
275
|
-
# Recalculate final score with elevated gaps
|
|
276
|
-
overall_score = self._calculate_overall_score(agent_scores, critical_gaps)
|
|
277
|
-
|
|
278
|
-
# Extract aligned practices
|
|
279
|
-
aligned_practices = self._extract_aligned_practices(gated_results)
|
|
280
|
-
|
|
281
|
-
# Determine maturity level
|
|
282
|
-
maturity_level = self._determine_maturity_level(overall_score)
|
|
283
|
-
|
|
284
|
-
# Generate recommendations using PydanticAI agent
|
|
285
|
-
recommendations = await self._generate_recommendations(
|
|
286
|
-
repository=repository,
|
|
287
|
-
critical_gaps=critical_gaps,
|
|
288
|
-
cross_cutting=cross_cutting,
|
|
289
|
-
maturity_level=maturity_level,
|
|
290
|
-
)
|
|
291
|
-
|
|
292
|
-
# TSK-304.2: Generate coherent base recommendations
|
|
293
|
-
_, coherent_recs = self._generate_coherent_recommendations(
|
|
294
|
-
score=overall_score,
|
|
295
|
-
critical_gaps=critical_gaps,
|
|
296
|
-
)
|
|
297
|
-
|
|
298
|
-
# Merge coherent recommendations with LLM/rule-based ones
|
|
299
|
-
for crec in coherent_recs:
|
|
300
|
-
if not any(r.get("title") == crec.get("title") for r in recommendations):
|
|
301
|
-
recommendations.insert(0, crec)
|
|
302
|
-
|
|
303
|
-
# Generate executive summary using PydanticAI agent
|
|
304
|
-
executive_summary = await self._generate_executive_summary(
|
|
305
|
-
repository=repository,
|
|
306
|
-
overall_score=overall_score,
|
|
307
|
-
maturity_level=maturity_level,
|
|
308
|
-
critical_gaps=critical_gaps,
|
|
309
|
-
aligned_practices=aligned_practices,
|
|
310
|
-
agent_results=gated_results,
|
|
311
|
-
)
|
|
312
|
-
|
|
313
|
-
# TSK-304.4: Validate synthesis coherence
|
|
314
|
-
coherent_output = self._validate_synthesis_coherence(
|
|
315
|
-
score=overall_score,
|
|
316
|
-
critical_gaps=critical_gaps,
|
|
317
|
-
recommendations=recommendations,
|
|
318
|
-
executive_summary=executive_summary,
|
|
319
|
-
)
|
|
320
|
-
if not coherent_output:
|
|
321
|
-
self.logger.warning(
|
|
322
|
-
"synthesis_summary_replaced_with_template",
|
|
323
|
-
score=overall_score,
|
|
324
|
-
critical_gaps=len(critical_gaps),
|
|
325
|
-
)
|
|
326
|
-
executive_summary = self._get_template_summary(
|
|
327
|
-
repository=repository,
|
|
328
|
-
overall_score=overall_score,
|
|
329
|
-
maturity_level=maturity_level,
|
|
330
|
-
critical_gaps=critical_gaps,
|
|
331
|
-
aligned_practices=aligned_practices,
|
|
332
|
-
)
|
|
333
|
-
|
|
334
|
-
# Convert to SynthesisResult format from pydantic_base
|
|
335
|
-
gaps = [
|
|
336
|
-
GapSummary(
|
|
337
|
-
check_id=f"gap_{i}",
|
|
338
|
-
severity=gap.get("severity", "medium"),
|
|
339
|
-
category=gap.get("type", "unknown"),
|
|
340
|
-
description=gap.get("title", "Unknown issue"),
|
|
341
|
-
recommendation=gap.get("impact", ""),
|
|
342
|
-
location=gap.get("location"),
|
|
343
|
-
)
|
|
344
|
-
for i, gap in enumerate(critical_gaps)
|
|
345
|
-
]
|
|
346
|
-
|
|
347
|
-
result = SynthesisResult(
|
|
348
|
-
overall_score=overall_score,
|
|
349
|
-
maturity_level=maturity_level,
|
|
350
|
-
gaps=gaps,
|
|
351
|
-
aligned_practices=aligned_practices,
|
|
352
|
-
recommendations=recommendations,
|
|
353
|
-
confidence=0.85, # High confidence for deterministic aggregation
|
|
354
|
-
executive_summary=executive_summary,
|
|
355
|
-
component_scores=agent_scores,
|
|
356
|
-
cross_cutting_concerns=cross_cutting,
|
|
357
|
-
)
|
|
358
|
-
|
|
359
|
-
self.logger.info(
|
|
360
|
-
"synthesis_completed",
|
|
361
|
-
repository=repository,
|
|
362
|
-
overall_score=overall_score,
|
|
363
|
-
maturity_level=maturity_level,
|
|
364
|
-
critical_gap_count=len(critical_gaps),
|
|
365
|
-
)
|
|
366
|
-
|
|
367
|
-
return result
|
|
368
|
-
|
|
369
|
-
@staticmethod
|
|
370
|
-
def _is_code_agent_result(result: AgentResult) -> bool:
|
|
371
|
-
return result.agent_name.lower() == "codeanalysisagent"
|
|
372
|
-
|
|
373
|
-
@staticmethod
|
|
374
|
-
def _normalize_location_for_semantic_key(value: Any) -> str:
|
|
375
|
-
location = str(value or "").strip().lower()
|
|
376
|
-
if not location:
|
|
377
|
-
return "unknown"
|
|
378
|
-
if ":" in location:
|
|
379
|
-
return location.split(":", 1)[0]
|
|
380
|
-
return location
|
|
381
|
-
|
|
382
|
-
@staticmethod
|
|
383
|
-
def _is_grounded_location(value: Any) -> bool:
|
|
384
|
-
location = str(value or "").strip().lower()
|
|
385
|
-
return bool(location and location not in {"unknown", "n/a"})
|
|
386
|
-
|
|
387
|
-
def _compute_code_groundedness(self, findings: list[dict[str, Any]]) -> float:
|
|
388
|
-
if not findings:
|
|
389
|
-
return 1.0
|
|
390
|
-
grounded = 0
|
|
391
|
-
for finding in findings:
|
|
392
|
-
location = finding.get("location")
|
|
393
|
-
if self._is_grounded_location(location):
|
|
394
|
-
grounded += 1
|
|
395
|
-
continue
|
|
396
|
-
details = finding.get("details")
|
|
397
|
-
if isinstance(details, dict) and self._is_grounded_location(details.get("file_path")):
|
|
398
|
-
grounded += 1
|
|
399
|
-
return grounded / len(findings)
|
|
400
|
-
|
|
401
|
-
def _apply_code_quality_floor(self, agent_results: list[AgentResult]) -> list[AgentResult]:
|
|
402
|
-
"""Apply FR-76 quality floor before synthesis aggregation."""
|
|
403
|
-
gated_results: list[AgentResult] = []
|
|
404
|
-
for result in agent_results:
|
|
405
|
-
if not result.success or not self._is_code_agent_result(result):
|
|
406
|
-
gated_results.append(result)
|
|
407
|
-
continue
|
|
408
|
-
metadata = result.metadata if isinstance(result.metadata, dict) else {}
|
|
409
|
-
has_quality_signals = any(
|
|
410
|
-
key in metadata for key in ("confidence", "llm_summary", "agentic_tool_efficiency")
|
|
411
|
-
)
|
|
412
|
-
if not has_quality_signals:
|
|
413
|
-
gated_results.append(result)
|
|
414
|
-
continue
|
|
415
|
-
confidence = float(metadata.get("confidence") or 1.0)
|
|
416
|
-
groundedness = self._compute_code_groundedness(result.findings)
|
|
417
|
-
passed = confidence >= CODE_QUALITY_FLOOR_CONFIDENCE and groundedness >= CODE_QUALITY_FLOOR_GROUNDEDNESS
|
|
418
|
-
quality_gate = {
|
|
419
|
-
"passed": passed,
|
|
420
|
-
"confidence": round(confidence, 3),
|
|
421
|
-
"groundedness": round(groundedness, 3),
|
|
422
|
-
"min_confidence": CODE_QUALITY_FLOOR_CONFIDENCE,
|
|
423
|
-
"min_groundedness": CODE_QUALITY_FLOOR_GROUNDEDNESS,
|
|
424
|
-
}
|
|
425
|
-
if passed:
|
|
426
|
-
result.metadata["quality_floor"] = quality_gate
|
|
427
|
-
gated_results.append(result)
|
|
428
|
-
continue
|
|
429
|
-
self.logger.warning(
|
|
430
|
-
"synthesis_code_quality_floor_blocked",
|
|
431
|
-
agent_name=result.agent_name,
|
|
432
|
-
confidence=quality_gate["confidence"],
|
|
433
|
-
groundedness=quality_gate["groundedness"],
|
|
434
|
-
min_confidence=quality_gate["min_confidence"],
|
|
435
|
-
min_groundedness=quality_gate["min_groundedness"],
|
|
436
|
-
)
|
|
437
|
-
gated_results.append(
|
|
438
|
-
AgentResult(
|
|
439
|
-
agent_name=result.agent_name,
|
|
440
|
-
success=False,
|
|
441
|
-
findings=[],
|
|
442
|
-
metadata={**metadata, "quality_floor": quality_gate},
|
|
443
|
-
error=(
|
|
444
|
-
"code-agent quality floor unsatisfied: "
|
|
445
|
-
f"confidence={quality_gate['confidence']} groundedness={quality_gate['groundedness']}"
|
|
446
|
-
),
|
|
447
|
-
)
|
|
448
|
-
)
|
|
449
|
-
return gated_results
|
|
450
|
-
|
|
451
|
-
def _synthesis_to_dict(self, synthesis: SynthesisResult) -> dict[str, Any]:
|
|
452
|
-
"""Convert SynthesisResult to dictionary for backward compatibility."""
|
|
453
|
-
return {
|
|
454
|
-
"overall_score": synthesis.overall_score,
|
|
455
|
-
"maturity_level": synthesis.maturity_level,
|
|
456
|
-
"critical_gaps": [g.model_dump() for g in synthesis.gaps],
|
|
457
|
-
"aligned_practices": synthesis.aligned_practices,
|
|
458
|
-
"recommendations": synthesis.recommendations,
|
|
459
|
-
"executive_summary": synthesis.executive_summary,
|
|
460
|
-
"agent_scores": synthesis.component_scores,
|
|
461
|
-
"cross_cutting_concerns": synthesis.cross_cutting_concerns,
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
def _aggregate_findings(self, agent_results: list[AgentResult]) -> list[dict[str, Any]]:
|
|
465
|
-
"""Aggregate findings from all agents with source attribution."""
|
|
466
|
-
aggregated: list[dict[str, Any]] = []
|
|
467
|
-
|
|
468
|
-
for result in agent_results:
|
|
469
|
-
if not result.success:
|
|
470
|
-
continue
|
|
471
|
-
|
|
472
|
-
for finding in result.findings:
|
|
473
|
-
enriched = {
|
|
474
|
-
**finding,
|
|
475
|
-
"source_agent": result.agent_name,
|
|
476
|
-
"severity": self._normalize_severity(finding),
|
|
477
|
-
}
|
|
478
|
-
aggregated.append(enriched)
|
|
479
|
-
|
|
480
|
-
return self._dedupe_semantic_security_findings(aggregated)
|
|
481
|
-
|
|
482
|
-
@staticmethod
|
|
483
|
-
def _normalize_security_signature_text(finding: dict[str, Any]) -> str:
|
|
484
|
-
raw = " ".join(str(finding.get(part, "") or "") for part in ("title", "description", "summary")).lower()
|
|
485
|
-
raw = re.sub(r"[^a-z0-9\s]+", " ", raw)
|
|
486
|
-
tokens = [token for token in raw.split() if token]
|
|
487
|
-
stopwords = {
|
|
488
|
-
"potential",
|
|
489
|
-
"possible",
|
|
490
|
-
"issue",
|
|
491
|
-
"security",
|
|
492
|
-
"vulnerability",
|
|
493
|
-
"risk",
|
|
494
|
-
"found",
|
|
495
|
-
"detected",
|
|
496
|
-
"via",
|
|
497
|
-
}
|
|
498
|
-
canonical_aliases = {
|
|
499
|
-
"password": "secret",
|
|
500
|
-
"token": "secret",
|
|
501
|
-
"credential": "secret",
|
|
502
|
-
"credentials": "secret",
|
|
503
|
-
"api": "secret",
|
|
504
|
-
"apikey": "secret",
|
|
505
|
-
"concat": "concatenation",
|
|
506
|
-
"concatenated": "concatenation",
|
|
507
|
-
"injected": "injection",
|
|
508
|
-
"inject": "injection",
|
|
509
|
-
}
|
|
510
|
-
normalized: list[str] = []
|
|
511
|
-
for token in tokens:
|
|
512
|
-
if token in stopwords:
|
|
513
|
-
continue
|
|
514
|
-
normalized.append(canonical_aliases.get(token, token))
|
|
515
|
-
return " ".join(sorted(set(normalized)))
|
|
516
|
-
|
|
517
|
-
def _dedupe_semantic_security_findings(self, findings: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
|
518
|
-
"""Apply FR-77 semantic deduplication for security findings before synthesis."""
|
|
519
|
-
if not findings:
|
|
520
|
-
return findings
|
|
521
|
-
deduped: list[dict[str, Any]] = []
|
|
522
|
-
dedupe_index: dict[tuple[str, str, str], int] = {}
|
|
523
|
-
severity_rank = {"critical": 0, "high": 1, "medium": 2, "low": 3, "info": 4}
|
|
524
|
-
semantic_clusters = {
|
|
525
|
-
"secret": {"secret", "password", "credential", "token"},
|
|
526
|
-
"injection": {"injection", "sql", "query", "concatenation"},
|
|
527
|
-
"transport": {"ssl", "tls", "certificate", "verify", "verification"},
|
|
528
|
-
"auth": {"auth", "authentication", "authorization", "bypass"},
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
for finding in findings:
|
|
532
|
-
finding_type = str(finding.get("type", "") or "").lower()
|
|
533
|
-
if "security" not in finding_type:
|
|
534
|
-
deduped.append(finding)
|
|
535
|
-
continue
|
|
536
|
-
location_key = self._normalize_location_for_semantic_key(finding.get("location"))
|
|
537
|
-
signature_text = self._normalize_security_signature_text(finding)
|
|
538
|
-
if not signature_text:
|
|
539
|
-
deduped.append(finding)
|
|
540
|
-
continue
|
|
541
|
-
tokens = set(signature_text.split())
|
|
542
|
-
semantic_cluster = next(
|
|
543
|
-
(cluster_name for cluster_name, cluster_tokens in semantic_clusters.items() if tokens & cluster_tokens),
|
|
544
|
-
signature_text,
|
|
545
|
-
)
|
|
546
|
-
dedupe_key = (location_key, finding_type, semantic_cluster)
|
|
547
|
-
current_index = dedupe_index.get(dedupe_key)
|
|
548
|
-
if current_index is None:
|
|
549
|
-
dedupe_index[dedupe_key] = len(deduped)
|
|
550
|
-
deduped.append(finding)
|
|
551
|
-
continue
|
|
552
|
-
existing = deduped[current_index]
|
|
553
|
-
existing_rank = severity_rank.get(str(existing.get("severity", "medium")).lower(), 2)
|
|
554
|
-
incoming_rank = severity_rank.get(str(finding.get("severity", "medium")).lower(), 2)
|
|
555
|
-
if incoming_rank < existing_rank:
|
|
556
|
-
deduped[current_index] = finding
|
|
557
|
-
|
|
558
|
-
if len(deduped) != len(findings):
|
|
559
|
-
self.logger.info(
|
|
560
|
-
"synthesis_semantic_security_dedup_applied",
|
|
561
|
-
original=len(findings),
|
|
562
|
-
deduped=len(deduped),
|
|
563
|
-
removed=len(findings) - len(deduped),
|
|
564
|
-
)
|
|
565
|
-
return deduped
|
|
566
|
-
|
|
567
|
-
def _determine_severity(self, finding: dict[str, Any]) -> str:
|
|
568
|
-
"""Determine severity of a finding based on its type."""
|
|
569
|
-
finding_type = finding.get("type", "")
|
|
570
|
-
return FINDING_TYPE_SEVERITY.get(finding_type, "medium")
|
|
571
|
-
|
|
572
|
-
def _normalize_severity(self, finding: dict[str, Any]) -> str:
|
|
573
|
-
"""Normalize severity using explicit value or mapped type."""
|
|
574
|
-
raw = finding.get("severity")
|
|
575
|
-
if isinstance(raw, str):
|
|
576
|
-
normalized = raw.lower().strip()
|
|
577
|
-
if normalized in SEVERITY_WEIGHTS:
|
|
578
|
-
return normalized
|
|
579
|
-
mapped = self._determine_severity(finding)
|
|
580
|
-
return mapped.lower() if isinstance(mapped, str) else "medium"
|
|
581
|
-
|
|
582
|
-
def _dedupe_items(
|
|
583
|
-
self,
|
|
584
|
-
items: list[dict[str, Any]],
|
|
585
|
-
key_fn: Callable[[dict[str, Any]], Any],
|
|
586
|
-
label: str,
|
|
587
|
-
) -> list[dict[str, Any]]:
|
|
588
|
-
"""Deduplicate items while preserving order."""
|
|
589
|
-
seen: set[tuple[Any, ...]] = set()
|
|
590
|
-
deduped: list[dict[str, Any]] = []
|
|
591
|
-
for item in items:
|
|
592
|
-
key = key_fn(item)
|
|
593
|
-
if key in seen:
|
|
594
|
-
continue
|
|
595
|
-
seen.add(key)
|
|
596
|
-
deduped.append(item)
|
|
597
|
-
if len(deduped) != len(items):
|
|
598
|
-
self.logger.debug(
|
|
599
|
-
"dedupe_applied",
|
|
600
|
-
label=label,
|
|
601
|
-
original=len(items),
|
|
602
|
-
deduped=len(deduped),
|
|
603
|
-
)
|
|
604
|
-
return deduped
|
|
605
|
-
|
|
606
|
-
def _calculate_agent_scores(self, agent_results: list[AgentResult]) -> dict[str, float]:
|
|
607
|
-
"""Calculate individual scores for each agent's domain."""
|
|
608
|
-
scores: dict[str, float] = {}
|
|
609
|
-
|
|
610
|
-
for result in agent_results:
|
|
611
|
-
if not result.success:
|
|
612
|
-
scores[result.agent_name] = 0.0
|
|
613
|
-
continue
|
|
614
|
-
|
|
615
|
-
# Base score starts at 100, deduct based on findings
|
|
616
|
-
base_score = 100.0
|
|
617
|
-
deductions = 0.0
|
|
618
|
-
|
|
619
|
-
for finding in result.findings:
|
|
620
|
-
severity = self._determine_severity(finding)
|
|
621
|
-
deductions += SEVERITY_WEIGHTS.get(severity, 5.0)
|
|
622
|
-
|
|
623
|
-
# Cap deductions at 100
|
|
624
|
-
final_score = max(0.0, base_score - min(deductions, 100.0))
|
|
625
|
-
scores[result.agent_name] = round(final_score, 2)
|
|
626
|
-
|
|
627
|
-
return scores
|
|
628
|
-
|
|
629
|
-
def _identify_cross_cutting_concerns(self, all_findings: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
|
630
|
-
"""Identify concerns that span multiple agents/domains."""
|
|
631
|
-
cross_cutting: list[dict[str, Any]] = []
|
|
632
|
-
|
|
633
|
-
# Group findings by location
|
|
634
|
-
by_location: dict[str, list[dict[str, Any]]] = {}
|
|
635
|
-
for finding in all_findings:
|
|
636
|
-
location = finding.get("location", "unknown")
|
|
637
|
-
if location not in by_location:
|
|
638
|
-
by_location[location] = []
|
|
639
|
-
by_location[location].append(finding)
|
|
640
|
-
|
|
641
|
-
# Identify locations with findings from multiple agents
|
|
642
|
-
for location, findings in by_location.items():
|
|
643
|
-
agents = {f.get("source_agent") for f in findings}
|
|
644
|
-
if len(agents) > 1:
|
|
645
|
-
agents_str = ", ".join(str(a) for a in agents if a)
|
|
646
|
-
cross_cutting.append(
|
|
647
|
-
{
|
|
648
|
-
"location": location,
|
|
649
|
-
"affected_domains": list(agents),
|
|
650
|
-
"finding_count": len(findings),
|
|
651
|
-
"findings": findings,
|
|
652
|
-
"description": f"Multiple concerns at {location} spanning {agents_str}",
|
|
653
|
-
}
|
|
654
|
-
)
|
|
655
|
-
|
|
656
|
-
# Also check for pattern-based cross-cutting (e.g., security + tech debt)
|
|
657
|
-
security_files = {
|
|
658
|
-
f.get("location") for f in all_findings if f.get("type") in ("security_vulnerability", "security_risk")
|
|
659
|
-
}
|
|
660
|
-
debt_files = {f.get("location") for f in all_findings if f.get("type") == "technical_debt"}
|
|
661
|
-
overlap = security_files & debt_files
|
|
662
|
-
if overlap:
|
|
663
|
-
cross_cutting.append(
|
|
664
|
-
{
|
|
665
|
-
"pattern": "security_debt_overlap",
|
|
666
|
-
"description": "Files with both security issues and technical debt",
|
|
667
|
-
"locations": list(overlap),
|
|
668
|
-
"severity": "high",
|
|
669
|
-
}
|
|
670
|
-
)
|
|
671
|
-
|
|
672
|
-
return cross_cutting
|
|
673
|
-
|
|
674
|
-
def _prioritize_findings(self, findings: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
|
675
|
-
"""Sort findings by severity for prioritization."""
|
|
676
|
-
severity_order = {"critical": 0, "high": 1, "medium": 2, "low": 3, "info": 4}
|
|
677
|
-
|
|
678
|
-
return sorted(
|
|
679
|
-
findings,
|
|
680
|
-
key=lambda f: (
|
|
681
|
-
severity_order.get(f.get("severity", "medium"), 2),
|
|
682
|
-
f.get("source_agent", ""),
|
|
683
|
-
),
|
|
684
|
-
)
|
|
685
|
-
|
|
686
|
-
def _elevate_critical_findings(
|
|
687
|
-
self,
|
|
688
|
-
prioritized_findings: list[dict[str, Any]],
|
|
689
|
-
overall_score: float,
|
|
690
|
-
) -> list[dict[str, Any]]:
|
|
691
|
-
"""Elevate findings to critical_gaps based on severity and score.
|
|
692
|
-
|
|
693
|
-
TSK-304.1: Implements score-aware elevation:
|
|
694
|
-
- CRITICAL severity → always add to critical_gaps
|
|
695
|
-
- HIGH severity with score < 40 → add to critical_gaps
|
|
696
|
-
- Track finding source (agent name) for auditability
|
|
697
|
-
|
|
698
|
-
Args:
|
|
699
|
-
prioritized_findings: Findings sorted by severity.
|
|
700
|
-
overall_score: The calculated overall audit score.
|
|
701
|
-
|
|
702
|
-
Returns:
|
|
703
|
-
List of elevated critical gaps (max 10).
|
|
704
|
-
"""
|
|
705
|
-
elevated: list[dict[str, Any]] = []
|
|
706
|
-
elevated_index: dict[tuple[Any, ...], int] = {}
|
|
707
|
-
source_sets: dict[tuple[Any, ...], set[str]] = {}
|
|
708
|
-
candidate_count = 0
|
|
709
|
-
|
|
710
|
-
for finding in prioritized_findings:
|
|
711
|
-
severity = self._normalize_severity(finding)
|
|
712
|
-
|
|
713
|
-
# CRITICAL always elevated
|
|
714
|
-
should_elevate = severity == "critical"
|
|
715
|
-
|
|
716
|
-
# HIGH elevated when score < 40 (poor audit result)
|
|
717
|
-
if severity == "high" and overall_score < 40:
|
|
718
|
-
should_elevate = True
|
|
719
|
-
|
|
720
|
-
if should_elevate:
|
|
721
|
-
candidate_count += 1
|
|
722
|
-
title = finding.get("title") or finding.get("description") or finding.get("summary") or "Unknown issue"
|
|
723
|
-
normalized_title = self._normalize_title_for_dedupe(title)
|
|
724
|
-
elevated_reason = "critical_severity" if severity == "critical" else "high_with_low_score"
|
|
725
|
-
source_agent = str(finding.get("source_agent", "unknown"))
|
|
726
|
-
key = (
|
|
727
|
-
str(finding.get("type", "unknown")).lower(),
|
|
728
|
-
str(finding.get("location", "unknown")).lower(),
|
|
729
|
-
normalized_title,
|
|
730
|
-
severity,
|
|
731
|
-
elevated_reason,
|
|
732
|
-
)
|
|
733
|
-
source_sets.setdefault(key, set()).add(source_agent)
|
|
734
|
-
|
|
735
|
-
if key in elevated_index:
|
|
736
|
-
continue
|
|
737
|
-
|
|
738
|
-
elevated_index[key] = len(elevated)
|
|
739
|
-
elevated.append(
|
|
740
|
-
{
|
|
741
|
-
"title": title,
|
|
742
|
-
"type": finding.get("type", "unknown"),
|
|
743
|
-
"severity": severity,
|
|
744
|
-
"location": finding.get("location", "unknown"),
|
|
745
|
-
"source_agent": source_agent,
|
|
746
|
-
"impact": self._assess_impact(finding),
|
|
747
|
-
"elevated_reason": elevated_reason,
|
|
748
|
-
}
|
|
749
|
-
)
|
|
750
|
-
|
|
751
|
-
# Keep per-item elevation diagnostics at debug level to avoid
|
|
752
|
-
# flooding run logs when a repository has many similar findings.
|
|
753
|
-
self.logger.debug(
|
|
754
|
-
"synthesis_agent_critical_elevated",
|
|
755
|
-
finding_type=finding.get("type"),
|
|
756
|
-
severity=severity,
|
|
757
|
-
source=source_agent,
|
|
758
|
-
score=overall_score,
|
|
759
|
-
)
|
|
760
|
-
|
|
761
|
-
for item in elevated:
|
|
762
|
-
key = (
|
|
763
|
-
str(item.get("type", "unknown")).lower(),
|
|
764
|
-
str(item.get("location", "unknown")).lower(),
|
|
765
|
-
self._normalize_title_for_dedupe(str(item.get("title", "Unknown issue"))),
|
|
766
|
-
str(item.get("severity", "medium")).lower(),
|
|
767
|
-
str(item.get("elevated_reason", "")),
|
|
768
|
-
)
|
|
769
|
-
item["source_agents"] = sorted(source_sets.get(key, {str(item.get("source_agent", "unknown"))}))
|
|
770
|
-
|
|
771
|
-
# Limit to top 10 by severity + impact
|
|
772
|
-
deduped_count = len(elevated)
|
|
773
|
-
elevated = elevated[:10]
|
|
774
|
-
|
|
775
|
-
self.logger.info(
|
|
776
|
-
"synthesis_agent_elevation_complete",
|
|
777
|
-
total_findings=len(prioritized_findings),
|
|
778
|
-
candidate_count=candidate_count,
|
|
779
|
-
deduped_count=deduped_count,
|
|
780
|
-
elevated_count=len(elevated),
|
|
781
|
-
score=overall_score,
|
|
782
|
-
)
|
|
783
|
-
|
|
784
|
-
return elevated
|
|
785
|
-
|
|
786
|
-
def _normalize_title_for_dedupe(self, value: str) -> str:
|
|
787
|
-
"""Normalize finding title/description for stable deduplication."""
|
|
788
|
-
normalized = str(value or "").strip().lower()
|
|
789
|
-
# Collapse prompt-introduced wrappers that duplicate the same base issue text.
|
|
790
|
-
for prefix in ("potential security issue:", "potential issue:", "issue:"):
|
|
791
|
-
if normalized.startswith(prefix):
|
|
792
|
-
normalized = normalized[len(prefix) :].strip()
|
|
793
|
-
return normalized
|
|
794
|
-
|
|
795
|
-
def _generate_coherent_recommendations(
|
|
796
|
-
self,
|
|
797
|
-
score: float,
|
|
798
|
-
critical_gaps: list[dict[str, Any]],
|
|
799
|
-
) -> tuple[str, list[dict[str, Any]]]:
|
|
800
|
-
"""Generate recommendations that are coherent with the score.
|
|
801
|
-
|
|
802
|
-
TSK-304.2: Ensures recommendations match score severity:
|
|
803
|
-
- Score 0-30: "CRITICAL: Immediate action required..."
|
|
804
|
-
- Score 31-50: "HIGH PRIORITY: Address within 2 weeks..."
|
|
805
|
-
- Score 51-70: "MEDIUM: Schedule for next sprint..."
|
|
806
|
-
- Score 71-100: "MAINTENANCE: Continue monitoring..."
|
|
807
|
-
|
|
808
|
-
Args:
|
|
809
|
-
score: Overall audit score (0-100).
|
|
810
|
-
critical_gaps: List of critical gaps identified.
|
|
811
|
-
|
|
812
|
-
Returns:
|
|
813
|
-
Tuple of (severity_prefix, base_recommendations).
|
|
814
|
-
"""
|
|
815
|
-
# Determine severity prefix based on score
|
|
816
|
-
if score <= 30:
|
|
817
|
-
prefix = "CRITICAL"
|
|
818
|
-
urgency = "Immediate action required. Address these issues before any new development."
|
|
819
|
-
base_priority = "critical"
|
|
820
|
-
elif score <= 50:
|
|
821
|
-
prefix = "HIGH PRIORITY"
|
|
822
|
-
urgency = "Address within 2 weeks. These issues pose significant risk."
|
|
823
|
-
base_priority = "high"
|
|
824
|
-
elif score <= 70:
|
|
825
|
-
prefix = "MEDIUM"
|
|
826
|
-
urgency = "Schedule for next sprint. Plan improvements systematically."
|
|
827
|
-
base_priority = "medium"
|
|
828
|
-
else:
|
|
829
|
-
prefix = "MAINTENANCE"
|
|
830
|
-
urgency = "Continue monitoring. Current practices are working well."
|
|
831
|
-
base_priority = "low"
|
|
832
|
-
|
|
833
|
-
recommendations: list[dict[str, Any]] = []
|
|
834
|
-
|
|
835
|
-
# Generate recommendations based on critical gaps
|
|
836
|
-
if critical_gaps:
|
|
837
|
-
gap_types = {g.get("type", "unknown") for g in critical_gaps}
|
|
838
|
-
|
|
839
|
-
if any("security" in t for t in gap_types):
|
|
840
|
-
recommendations.append(
|
|
841
|
-
{
|
|
842
|
-
"priority": base_priority,
|
|
843
|
-
"title": f"{prefix}: Address security vulnerabilities",
|
|
844
|
-
"description": urgency + " Security issues detected that need remediation.",
|
|
845
|
-
"category": "security",
|
|
846
|
-
"effort": "high" if score <= 50 else "medium",
|
|
847
|
-
}
|
|
848
|
-
)
|
|
849
|
-
|
|
850
|
-
if any(t in ("technical_debt", "code_quality") for t in gap_types):
|
|
851
|
-
recommendations.append(
|
|
852
|
-
{
|
|
853
|
-
"priority": base_priority,
|
|
854
|
-
"title": f"{prefix}: Reduce technical debt",
|
|
855
|
-
"description": urgency + " Code quality issues impacting maintainability.",
|
|
856
|
-
"category": "code",
|
|
857
|
-
"effort": "medium",
|
|
858
|
-
}
|
|
859
|
-
)
|
|
860
|
-
|
|
861
|
-
if any("doc" in t for t in gap_types):
|
|
862
|
-
recommendations.append(
|
|
863
|
-
{
|
|
864
|
-
"priority": base_priority,
|
|
865
|
-
"title": f"{prefix}: Improve documentation",
|
|
866
|
-
"description": urgency + " Documentation gaps affecting team productivity.",
|
|
867
|
-
"category": "docs",
|
|
868
|
-
"effort": "low",
|
|
869
|
-
}
|
|
870
|
-
)
|
|
871
|
-
|
|
872
|
-
self.logger.info(
|
|
873
|
-
"synthesis_agent_recommendations_generated",
|
|
874
|
-
score=score,
|
|
875
|
-
severity_prefix=prefix,
|
|
876
|
-
recommendation_count=len(recommendations),
|
|
877
|
-
)
|
|
878
|
-
|
|
879
|
-
return prefix, recommendations
|
|
880
|
-
|
|
881
|
-
def _validate_synthesis_coherence(
|
|
882
|
-
self,
|
|
883
|
-
score: float,
|
|
884
|
-
critical_gaps: list[dict[str, Any]],
|
|
885
|
-
recommendations: list[dict[str, Any]],
|
|
886
|
-
executive_summary: str,
|
|
887
|
-
) -> bool:
|
|
888
|
-
"""Validate that synthesis output is internally coherent.
|
|
889
|
-
|
|
890
|
-
TSK-304.4: Ensures no contradictory statements:
|
|
891
|
-
- Low score should not have "continue current practices" recommendation
|
|
892
|
-
- High gap count should be reflected in summary
|
|
893
|
-
|
|
894
|
-
Args:
|
|
895
|
-
score: Overall audit score.
|
|
896
|
-
critical_gaps: List of critical gaps.
|
|
897
|
-
recommendations: Generated recommendations.
|
|
898
|
-
executive_summary: Executive summary text.
|
|
899
|
-
|
|
900
|
-
Returns:
|
|
901
|
-
True if coherent, False if contradictions detected.
|
|
902
|
-
"""
|
|
903
|
-
coherent = True
|
|
904
|
-
|
|
905
|
-
# Check 1: Low score should not have positive-only recommendations
|
|
906
|
-
if score <= 30:
|
|
907
|
-
positive_phrases = ["continue current", "maintain existing", "well positioned"]
|
|
908
|
-
summary_lower = executive_summary.lower()
|
|
909
|
-
for phrase in positive_phrases:
|
|
910
|
-
if phrase in summary_lower:
|
|
911
|
-
self.logger.warning(
|
|
912
|
-
"synthesis_coherence_violation",
|
|
913
|
-
issue="positive_summary_with_low_score",
|
|
914
|
-
score=score,
|
|
915
|
-
phrase=phrase,
|
|
916
|
-
)
|
|
917
|
-
coherent = False
|
|
918
|
-
|
|
919
|
-
# Check 2: Many critical gaps should be reflected
|
|
920
|
-
if len(critical_gaps) >= 5 and "critical" not in executive_summary.lower():
|
|
921
|
-
self.logger.warning(
|
|
922
|
-
"synthesis_coherence_violation",
|
|
923
|
-
issue="many_gaps_not_mentioned",
|
|
924
|
-
gap_count=len(critical_gaps),
|
|
925
|
-
)
|
|
926
|
-
# This is a warning, not a failure
|
|
927
|
-
pass
|
|
928
|
-
|
|
929
|
-
self.logger.info(
|
|
930
|
-
"synthesis_agent_output_validated",
|
|
931
|
-
coherence_check="passed" if coherent else "failed",
|
|
932
|
-
score=score,
|
|
933
|
-
critical_gaps=len(critical_gaps),
|
|
934
|
-
)
|
|
935
|
-
|
|
936
|
-
return coherent
|
|
937
|
-
|
|
938
|
-
def _extract_critical_gaps(self, prioritized_findings: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
|
939
|
-
"""Extract findings that represent critical gaps.
|
|
940
|
-
|
|
941
|
-
Note: For score-aware elevation, use _elevate_critical_findings instead.
|
|
942
|
-
This method is kept for backward compatibility.
|
|
943
|
-
"""
|
|
944
|
-
critical_gaps: list[dict[str, Any]] = []
|
|
945
|
-
candidate_count = 0
|
|
946
|
-
|
|
947
|
-
for finding in prioritized_findings:
|
|
948
|
-
severity = self._normalize_severity(finding)
|
|
949
|
-
if severity in ("critical", "high"):
|
|
950
|
-
candidate_count += 1
|
|
951
|
-
title = finding.get("title") or finding.get("description") or finding.get("summary") or "Unknown issue"
|
|
952
|
-
critical_gaps.append(
|
|
953
|
-
{
|
|
954
|
-
"title": title,
|
|
955
|
-
"type": finding.get("type", "unknown"),
|
|
956
|
-
"severity": severity,
|
|
957
|
-
"location": finding.get("location", "unknown"),
|
|
958
|
-
"source_agent": finding.get("source_agent", "unknown"),
|
|
959
|
-
"impact": self._assess_impact(finding),
|
|
960
|
-
}
|
|
961
|
-
)
|
|
962
|
-
|
|
963
|
-
def _gap_key(gap: dict[str, Any]) -> tuple[Any, ...]:
|
|
964
|
-
return (
|
|
965
|
-
str(gap.get("type", "")).lower(),
|
|
966
|
-
str(gap.get("location", "")).lower(),
|
|
967
|
-
str(gap.get("title", "")).lower(),
|
|
968
|
-
)
|
|
969
|
-
|
|
970
|
-
deduped = self._dedupe_items(critical_gaps, _gap_key, label="critical_gaps")
|
|
971
|
-
self.logger.info(
|
|
972
|
-
"critical_gaps_extracted",
|
|
973
|
-
candidate_count=candidate_count,
|
|
974
|
-
deduped_count=len(deduped),
|
|
975
|
-
)
|
|
976
|
-
return deduped
|
|
977
|
-
|
|
978
|
-
def _assess_impact(self, finding: dict[str, Any]) -> str:
|
|
979
|
-
"""Assess the business impact of a finding."""
|
|
980
|
-
finding_type = finding.get("type", "")
|
|
981
|
-
|
|
982
|
-
impact_map = {
|
|
983
|
-
"security_vulnerability": "High risk of security breach or data exposure",
|
|
984
|
-
"security_risk": "Potential security weakness that could be exploited",
|
|
985
|
-
"technical_debt": "Increased maintenance burden and reduced velocity",
|
|
986
|
-
"doc_quality": "Knowledge gaps affecting team productivity",
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
return impact_map.get(finding_type, "Potential quality or compliance issue")
|
|
990
|
-
|
|
991
|
-
def _extract_aligned_practices(self, agent_results: list[AgentResult]) -> list[dict[str, Any]]:
|
|
992
|
-
"""Extract areas where the repository follows good practices."""
|
|
993
|
-
aligned: list[dict[str, Any]] = []
|
|
994
|
-
|
|
995
|
-
for result in agent_results:
|
|
996
|
-
if not result.success:
|
|
997
|
-
continue
|
|
998
|
-
|
|
999
|
-
# Agents with no critical/high findings are aligned
|
|
1000
|
-
critical_count = sum(1 for f in result.findings if self._normalize_severity(f) in ("critical", "high"))
|
|
1001
|
-
|
|
1002
|
-
if critical_count == 0:
|
|
1003
|
-
aligned.append(
|
|
1004
|
-
{
|
|
1005
|
-
"domain": result.agent_name.replace("Agent", ""),
|
|
1006
|
-
"status": "Aligned",
|
|
1007
|
-
"description": f"No critical issues found in {result.agent_name} analysis",
|
|
1008
|
-
"finding_count": len(result.findings),
|
|
1009
|
-
}
|
|
1010
|
-
)
|
|
1011
|
-
|
|
1012
|
-
return aligned
|
|
1013
|
-
|
|
1014
|
-
def _calculate_overall_score(
|
|
1015
|
-
self,
|
|
1016
|
-
agent_scores: dict[str, float],
|
|
1017
|
-
critical_gaps: list[dict[str, Any]],
|
|
1018
|
-
) -> float:
|
|
1019
|
-
"""Calculate overall maturity score."""
|
|
1020
|
-
if not agent_scores:
|
|
1021
|
-
return 0.0
|
|
1022
|
-
|
|
1023
|
-
# Weighted average of agent scores
|
|
1024
|
-
weights = {
|
|
1025
|
-
"SecurityAgent": 0.35,
|
|
1026
|
-
"CodeAnalysisAgent": 0.35,
|
|
1027
|
-
"DocumentationAgent": 0.30,
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
weighted_sum = 0.0
|
|
1031
|
-
total_weight = 0.0
|
|
1032
|
-
|
|
1033
|
-
for agent, score in agent_scores.items():
|
|
1034
|
-
weight = weights.get(agent, 0.25)
|
|
1035
|
-
weighted_sum += score * weight
|
|
1036
|
-
total_weight += weight
|
|
1037
|
-
|
|
1038
|
-
base_score = weighted_sum / total_weight if total_weight > 0 else 0.0
|
|
1039
|
-
|
|
1040
|
-
# Apply penalty for critical gaps
|
|
1041
|
-
critical_count = sum(1 for g in critical_gaps if g.get("severity") == "critical")
|
|
1042
|
-
high_count = sum(1 for g in critical_gaps if g.get("severity") == "high")
|
|
1043
|
-
|
|
1044
|
-
penalty = (critical_count * 10) + (high_count * 5)
|
|
1045
|
-
final_score = max(0.0, base_score - penalty)
|
|
1046
|
-
|
|
1047
|
-
return round(final_score, 2)
|
|
1048
|
-
|
|
1049
|
-
def _determine_maturity_level(self, score: float) -> str:
|
|
1050
|
-
"""Determine maturity level from overall score."""
|
|
1051
|
-
if score <= 25:
|
|
1052
|
-
return MaturityLevel.CRITICAL.value
|
|
1053
|
-
elif score <= 50:
|
|
1054
|
-
return MaturityLevel.DEVELOPING.value
|
|
1055
|
-
elif score <= 75:
|
|
1056
|
-
return MaturityLevel.ESTABLISHED.value
|
|
1057
|
-
elif score <= 90:
|
|
1058
|
-
return MaturityLevel.OPTIMIZING.value
|
|
1059
|
-
else:
|
|
1060
|
-
return MaturityLevel.LEADING.value
|
|
1061
|
-
|
|
1062
|
-
async def _generate_recommendations(
|
|
1063
|
-
self,
|
|
1064
|
-
repository: str,
|
|
1065
|
-
critical_gaps: list[dict[str, Any]],
|
|
1066
|
-
cross_cutting: list[dict[str, Any]],
|
|
1067
|
-
maturity_level: str,
|
|
1068
|
-
) -> list[dict[str, Any]]:
|
|
1069
|
-
"""Generate prioritized recommendations based on findings."""
|
|
1070
|
-
recommendations: list[dict[str, Any]] = []
|
|
1071
|
-
llm_count = 0
|
|
1072
|
-
rule_count = 0
|
|
1073
|
-
cross_cutting_count = 0
|
|
1074
|
-
fallback_cause: SynthesisFallbackCause | None = None
|
|
1075
|
-
|
|
1076
|
-
# Use PydanticAI agent if LLM is available
|
|
1077
|
-
if self.settings.enabled and critical_gaps:
|
|
1078
|
-
try:
|
|
1079
|
-
llm_recommendations = await self._get_llm_recommendations(
|
|
1080
|
-
repository=repository,
|
|
1081
|
-
critical_gaps=critical_gaps,
|
|
1082
|
-
cross_cutting=cross_cutting,
|
|
1083
|
-
maturity_level=maturity_level,
|
|
1084
|
-
)
|
|
1085
|
-
llm_count = len(llm_recommendations)
|
|
1086
|
-
recommendations.extend(llm_recommendations)
|
|
1087
|
-
if not llm_recommendations:
|
|
1088
|
-
fallback_cause = SynthesisFallbackCause.EMPTY_LLM_OUTPUT
|
|
1089
|
-
self.logger.info(
|
|
1090
|
-
"llm_recommendations_empty", repository=repository, fallback_cause=fallback_cause.value
|
|
1091
|
-
)
|
|
1092
|
-
fallback = self._get_rule_based_recommendations(critical_gaps, maturity_level)
|
|
1093
|
-
rule_count = len(fallback)
|
|
1094
|
-
recommendations.extend(fallback)
|
|
1095
|
-
except Exception as e:
|
|
1096
|
-
# Phase 166: Classify the failure cause for structured telemetry.
|
|
1097
|
-
fallback_cause = self._classify_synthesis_fallback_cause(e)
|
|
1098
|
-
self.logger.warning("llm_recommendations_failed", error=str(e), fallback_cause=fallback_cause.value)
|
|
1099
|
-
# Fall back to rule-based recommendations
|
|
1100
|
-
fallback = self._get_rule_based_recommendations(critical_gaps, maturity_level)
|
|
1101
|
-
rule_count = len(fallback)
|
|
1102
|
-
recommendations.extend(fallback)
|
|
1103
|
-
else:
|
|
1104
|
-
# Rule-based recommendations when LLM not available
|
|
1105
|
-
fallback = self._get_rule_based_recommendations(critical_gaps, maturity_level)
|
|
1106
|
-
rule_count = len(fallback)
|
|
1107
|
-
recommendations.extend(fallback)
|
|
1108
|
-
|
|
1109
|
-
# Add cross-cutting concern recommendations
|
|
1110
|
-
for concern in cross_cutting:
|
|
1111
|
-
priority = "high"
|
|
1112
|
-
concern_severity = str(concern.get("severity", "")).lower()
|
|
1113
|
-
if concern_severity not in ("critical", "high"):
|
|
1114
|
-
has_high = any(
|
|
1115
|
-
self._normalize_severity(f) in ("critical", "high")
|
|
1116
|
-
for f in concern.get("findings", [])
|
|
1117
|
-
if isinstance(f, dict)
|
|
1118
|
-
)
|
|
1119
|
-
priority = "high" if has_high else "medium"
|
|
1120
|
-
|
|
1121
|
-
if priority == "high" or critical_gaps:
|
|
1122
|
-
recommendations.append(
|
|
1123
|
-
{
|
|
1124
|
-
"priority": priority,
|
|
1125
|
-
"title": f"Address cross-cutting issues at {concern.get('location', 'multiple locations')}",
|
|
1126
|
-
"description": concern.get("description", ""),
|
|
1127
|
-
"category": "cross_cutting",
|
|
1128
|
-
"effort": "medium",
|
|
1129
|
-
}
|
|
1130
|
-
)
|
|
1131
|
-
cross_cutting_count += 1
|
|
1132
|
-
|
|
1133
|
-
normalized: list[dict[str, Any]] = []
|
|
1134
|
-
dropped = 0
|
|
1135
|
-
for rec in recommendations:
|
|
1136
|
-
normalized_rec = self._normalize_recommendation(rec)
|
|
1137
|
-
if normalized_rec is None:
|
|
1138
|
-
dropped += 1
|
|
1139
|
-
continue
|
|
1140
|
-
normalized.append(normalized_rec)
|
|
1141
|
-
|
|
1142
|
-
def _rec_key(rec: dict[str, Any]) -> tuple[Any, ...]:
|
|
1143
|
-
return (
|
|
1144
|
-
str(rec.get("title", "")).lower(),
|
|
1145
|
-
str(rec.get("category", "")).lower(),
|
|
1146
|
-
)
|
|
1147
|
-
|
|
1148
|
-
normalized = self._dedupe_items(normalized, _rec_key, label="recommendations")
|
|
1149
|
-
|
|
1150
|
-
# Sort by priority
|
|
1151
|
-
priority_order = {"critical": 0, "high": 1, "medium": 2, "low": 3}
|
|
1152
|
-
normalized.sort(key=lambda r: priority_order.get(r.get("priority", "medium"), 2))
|
|
1153
|
-
|
|
1154
|
-
trimmed = 0
|
|
1155
|
-
if len(normalized) > 5:
|
|
1156
|
-
trimmed = len(normalized) - 5
|
|
1157
|
-
normalized = normalized[:5]
|
|
1158
|
-
|
|
1159
|
-
self.logger.info(
|
|
1160
|
-
"recommendations_generated",
|
|
1161
|
-
repository=repository,
|
|
1162
|
-
llm_count=llm_count,
|
|
1163
|
-
rule_count=rule_count,
|
|
1164
|
-
cross_cutting_count=cross_cutting_count,
|
|
1165
|
-
dropped_count=dropped,
|
|
1166
|
-
final_count=len(normalized),
|
|
1167
|
-
trimmed_count=trimmed,
|
|
1168
|
-
fallback_cause=fallback_cause.value if fallback_cause else None,
|
|
1169
|
-
)
|
|
1170
|
-
|
|
1171
|
-
return normalized
|
|
1172
|
-
|
|
1173
|
-
def _normalize_recommendation(self, rec: dict[str, Any]) -> dict[str, Any] | None:
|
|
1174
|
-
"""Normalize recommendation fields and drop invalid entries."""
|
|
1175
|
-
if not isinstance(rec, dict):
|
|
1176
|
-
return None
|
|
1177
|
-
title = str(rec.get("title", "")).strip()
|
|
1178
|
-
description = str(rec.get("description", "")).strip()
|
|
1179
|
-
if not title or not description:
|
|
1180
|
-
return None
|
|
1181
|
-
|
|
1182
|
-
priority = str(rec.get("priority", "medium")).lower()
|
|
1183
|
-
if priority not in ("critical", "high", "medium", "low"):
|
|
1184
|
-
priority = "medium"
|
|
1185
|
-
|
|
1186
|
-
category = str(rec.get("category", "process")).lower()
|
|
1187
|
-
if category not in ("security", "code", "docs", "process", "cross_cutting"):
|
|
1188
|
-
category = "process"
|
|
1189
|
-
|
|
1190
|
-
effort = str(rec.get("effort", "medium")).lower()
|
|
1191
|
-
if effort not in ("low", "medium", "high"):
|
|
1192
|
-
effort = "medium"
|
|
1193
|
-
|
|
1194
|
-
normalized = dict(rec)
|
|
1195
|
-
normalized.update(
|
|
1196
|
-
{
|
|
1197
|
-
"title": title,
|
|
1198
|
-
"description": description,
|
|
1199
|
-
"priority": priority,
|
|
1200
|
-
"category": category,
|
|
1201
|
-
"effort": effort,
|
|
1202
|
-
}
|
|
1203
|
-
)
|
|
1204
|
-
return normalized
|
|
1205
|
-
|
|
1206
|
-
async def _get_llm_recommendations(
|
|
1207
|
-
self,
|
|
1208
|
-
repository: str,
|
|
1209
|
-
critical_gaps: list[dict[str, Any]],
|
|
1210
|
-
cross_cutting: list[dict[str, Any]],
|
|
1211
|
-
maturity_level: str,
|
|
1212
|
-
) -> list[dict[str, Any]]:
|
|
1213
|
-
"""Use PydanticAI agent to generate intelligent recommendations."""
|
|
1214
|
-
evidence_context = ""
|
|
1215
|
-
if self._evidence_corpus:
|
|
1216
|
-
evidence_context = "\n\n" + self._evidence_corpus.get_context_summary(max_chars=2500)
|
|
1217
|
-
|
|
1218
|
-
user_prompt = f"""Repository: {repository}
|
|
1219
|
-
Maturity Level: {maturity_level}
|
|
1220
|
-
|
|
1221
|
-
Critical Gaps:
|
|
1222
|
-
{json.dumps(critical_gaps[:10], indent=2)}
|
|
1223
|
-
|
|
1224
|
-
Cross-Cutting Concerns:
|
|
1225
|
-
{json.dumps(cross_cutting[:5], indent=2)}
|
|
1226
|
-
|
|
1227
|
-
Generate prioritized recommendations to improve this repository.{evidence_context}"""
|
|
1228
|
-
|
|
1229
|
-
# Build dependencies for the agent using AuditDeps
|
|
1230
|
-
deps = build_deps(
|
|
1231
|
-
settings=self.settings,
|
|
1232
|
-
repo_path=repository,
|
|
1233
|
-
project_id=repository,
|
|
1234
|
-
profile={"maturity_level": maturity_level},
|
|
1235
|
-
evidence_corpus=self._evidence_corpus,
|
|
1236
|
-
)
|
|
1237
|
-
|
|
1238
|
-
try:
|
|
1239
|
-
output = await self._run_pydantic_agent(
|
|
1240
|
-
system_prompt=_RECOMMENDATIONS_SYSTEM_PROMPT,
|
|
1241
|
-
user_prompt=user_prompt,
|
|
1242
|
-
result_type=RecommendationsResult,
|
|
1243
|
-
complexity="complex",
|
|
1244
|
-
deps=deps,
|
|
1245
|
-
)
|
|
1246
|
-
return [rec.model_dump() for rec in output.recommendations]
|
|
1247
|
-
except Exception as e:
|
|
1248
|
-
fallback_cause = self._classify_synthesis_fallback_cause(e)
|
|
1249
|
-
self.logger.warning("llm_parse_failed", error=str(e), fallback_cause=fallback_cause.value)
|
|
1250
|
-
return []
|
|
1251
|
-
|
|
1252
|
-
def _get_rule_based_recommendations(
|
|
1253
|
-
self,
|
|
1254
|
-
critical_gaps: list[dict[str, Any]],
|
|
1255
|
-
maturity_level: str,
|
|
1256
|
-
) -> list[dict[str, Any]]:
|
|
1257
|
-
"""Generate rule-based recommendations without LLM."""
|
|
1258
|
-
recommendations: list[dict[str, Any]] = []
|
|
1259
|
-
|
|
1260
|
-
# Security-related recommendations
|
|
1261
|
-
security_gaps = [g for g in critical_gaps if "security" in g.get("type", "").lower()]
|
|
1262
|
-
if security_gaps:
|
|
1263
|
-
sec_count = len(security_gaps)
|
|
1264
|
-
recommendations.append(
|
|
1265
|
-
{
|
|
1266
|
-
"priority": "critical",
|
|
1267
|
-
"title": "Address security vulnerabilities immediately",
|
|
1268
|
-
"description": f"Found {sec_count} security issues requiring immediate attention",
|
|
1269
|
-
"category": "security",
|
|
1270
|
-
"effort": "high",
|
|
1271
|
-
}
|
|
1272
|
-
)
|
|
1273
|
-
|
|
1274
|
-
# Technical debt recommendations
|
|
1275
|
-
debt_gaps = [g for g in critical_gaps if g.get("type") == "technical_debt"]
|
|
1276
|
-
if debt_gaps:
|
|
1277
|
-
recommendations.append(
|
|
1278
|
-
{
|
|
1279
|
-
"priority": "high",
|
|
1280
|
-
"title": "Reduce technical debt",
|
|
1281
|
-
"description": f"Address {len(debt_gaps)} technical debt items to improve maintainability",
|
|
1282
|
-
"category": "code",
|
|
1283
|
-
"effort": "medium",
|
|
1284
|
-
}
|
|
1285
|
-
)
|
|
1286
|
-
|
|
1287
|
-
# Maturity-level specific recommendations
|
|
1288
|
-
if maturity_level in (MaturityLevel.CRITICAL.value, MaturityLevel.DEVELOPING.value):
|
|
1289
|
-
recommendations.append(
|
|
1290
|
-
{
|
|
1291
|
-
"priority": "high",
|
|
1292
|
-
"title": "Establish baseline practices",
|
|
1293
|
-
"description": "Focus on establishing fundamental practices before optimization",
|
|
1294
|
-
"category": "process",
|
|
1295
|
-
"effort": "medium",
|
|
1296
|
-
}
|
|
1297
|
-
)
|
|
1298
|
-
|
|
1299
|
-
return recommendations
|
|
1300
|
-
|
|
1301
|
-
async def _generate_executive_summary(
|
|
1302
|
-
self,
|
|
1303
|
-
repository: str,
|
|
1304
|
-
overall_score: float,
|
|
1305
|
-
maturity_level: str,
|
|
1306
|
-
critical_gaps: list[dict[str, Any]],
|
|
1307
|
-
aligned_practices: list[dict[str, Any]],
|
|
1308
|
-
agent_results: list[AgentResult],
|
|
1309
|
-
) -> str:
|
|
1310
|
-
"""Generate an executive summary of the audit."""
|
|
1311
|
-
# Use PydanticAI agent if available
|
|
1312
|
-
summary_fallback_cause: SynthesisFallbackCause | None = None
|
|
1313
|
-
if self.settings.enabled:
|
|
1314
|
-
try:
|
|
1315
|
-
summary = await self._get_llm_summary(
|
|
1316
|
-
repository=repository,
|
|
1317
|
-
overall_score=overall_score,
|
|
1318
|
-
maturity_level=maturity_level,
|
|
1319
|
-
critical_gaps=critical_gaps,
|
|
1320
|
-
aligned_practices=aligned_practices,
|
|
1321
|
-
agent_results=agent_results,
|
|
1322
|
-
)
|
|
1323
|
-
self.logger.info(
|
|
1324
|
-
"executive_summary_generated",
|
|
1325
|
-
repository=repository,
|
|
1326
|
-
source="llm",
|
|
1327
|
-
fallback_cause=None,
|
|
1328
|
-
)
|
|
1329
|
-
return summary
|
|
1330
|
-
except Exception as e:
|
|
1331
|
-
summary_fallback_cause = self._classify_synthesis_fallback_cause(e)
|
|
1332
|
-
self.logger.warning("llm_summary_failed", error=str(e), fallback_cause=summary_fallback_cause.value)
|
|
1333
|
-
|
|
1334
|
-
# Fallback to template-based summary
|
|
1335
|
-
template_summary = self._get_template_summary(
|
|
1336
|
-
repository=repository,
|
|
1337
|
-
overall_score=overall_score,
|
|
1338
|
-
maturity_level=maturity_level,
|
|
1339
|
-
critical_gaps=critical_gaps,
|
|
1340
|
-
aligned_practices=aligned_practices,
|
|
1341
|
-
)
|
|
1342
|
-
self.logger.info(
|
|
1343
|
-
"executive_summary_generated",
|
|
1344
|
-
repository=repository,
|
|
1345
|
-
source="template",
|
|
1346
|
-
fallback_cause=summary_fallback_cause.value if summary_fallback_cause else None,
|
|
1347
|
-
)
|
|
1348
|
-
return template_summary
|
|
1349
|
-
|
|
1350
|
-
async def _get_llm_summary(
|
|
1351
|
-
self,
|
|
1352
|
-
repository: str,
|
|
1353
|
-
overall_score: float,
|
|
1354
|
-
maturity_level: str,
|
|
1355
|
-
critical_gaps: list[dict[str, Any]],
|
|
1356
|
-
aligned_practices: list[dict[str, Any]],
|
|
1357
|
-
agent_results: list[AgentResult],
|
|
1358
|
-
) -> str:
|
|
1359
|
-
"""Use PydanticAI agent to generate executive summary."""
|
|
1360
|
-
agents_summary = ", ".join(f"{r.agent_name}: {len(r.findings)} findings" for r in agent_results if r.success)
|
|
1361
|
-
evidence_context = ""
|
|
1362
|
-
if self._evidence_corpus:
|
|
1363
|
-
evidence_context = "\n\n" + self._evidence_corpus.get_context_summary(max_chars=2500)
|
|
1364
|
-
|
|
1365
|
-
user_prompt = f"""Repository: {repository}
|
|
1366
|
-
Overall Score: {overall_score}/100
|
|
1367
|
-
Maturity Level: {maturity_level}
|
|
1368
|
-
|
|
1369
|
-
Agents Analyzed: {agents_summary}
|
|
1370
|
-
|
|
1371
|
-
Critical Gaps ({len(critical_gaps)}):
|
|
1372
|
-
{json.dumps([g.get("title") for g in critical_gaps[:5]], indent=2)}
|
|
1373
|
-
|
|
1374
|
-
Aligned Practices ({len(aligned_practices)}):
|
|
1375
|
-
{json.dumps([a.get("domain") for a in aligned_practices], indent=2)}
|
|
1376
|
-
|
|
1377
|
-
Write an executive summary for stakeholders.{evidence_context}"""
|
|
1378
|
-
|
|
1379
|
-
# Build dependencies for the agent using AuditDeps
|
|
1380
|
-
deps = build_deps(
|
|
1381
|
-
settings=self.settings,
|
|
1382
|
-
repo_path=repository,
|
|
1383
|
-
project_id=repository,
|
|
1384
|
-
profile={"maturity_level": maturity_level, "overall_score": overall_score},
|
|
1385
|
-
evidence_corpus=self._evidence_corpus,
|
|
1386
|
-
)
|
|
1387
|
-
|
|
1388
|
-
result = await self._run_pydantic_agent(
|
|
1389
|
-
system_prompt=_EXECUTIVE_SUMMARY_SYSTEM_PROMPT,
|
|
1390
|
-
user_prompt=user_prompt,
|
|
1391
|
-
result_type=ExecutiveSummaryResult,
|
|
1392
|
-
complexity="standard",
|
|
1393
|
-
deps=deps,
|
|
1394
|
-
)
|
|
1395
|
-
return result.summary
|
|
1396
|
-
|
|
1397
|
-
def _classify_synthesis_fallback_cause(self, exc: Exception) -> SynthesisFallbackCause:
|
|
1398
|
-
"""Phase 166: Classify the cause of synthesis fallback for structured telemetry."""
|
|
1399
|
-
# Precise type check before string matching to avoid false positives.
|
|
1400
|
-
if isinstance(exc, ValidationError):
|
|
1401
|
-
return SynthesisFallbackCause.PARSE_VALIDATION_FAILED
|
|
1402
|
-
message = str(exc).lower()
|
|
1403
|
-
# Check for provider-route or failover exhaustion signals
|
|
1404
|
-
if "provider_route_unavailable" in message or "no credentials for provider" in message:
|
|
1405
|
-
return SynthesisFallbackCause.FAILOVER_EXHAUSTED
|
|
1406
|
-
if "failover_exhausted" in message or "timeout_failover_exhausted" in message:
|
|
1407
|
-
return SynthesisFallbackCause.FAILOVER_EXHAUSTED
|
|
1408
|
-
if "retry_exhausted" in message or "provider_retry_exhausted" in message:
|
|
1409
|
-
return SynthesisFallbackCause.RETRY_EXHAUSTED
|
|
1410
|
-
# Check for terminal auth
|
|
1411
|
-
if (
|
|
1412
|
-
"authentication" in message
|
|
1413
|
-
or "unauthorized" in message
|
|
1414
|
-
or "forbidden" in message
|
|
1415
|
-
or "invalid api key" in message
|
|
1416
|
-
):
|
|
1417
|
-
return SynthesisFallbackCause.TERMINAL_AUTH
|
|
1418
|
-
# Check for parse/validation failures via message when not a typed ValidationError
|
|
1419
|
-
if "validationerror" in message or "json decode" in message or "unexpected model" in message:
|
|
1420
|
-
return SynthesisFallbackCause.PARSE_VALIDATION_FAILED
|
|
1421
|
-
# Default: retry exhausted (most common unclassified case)
|
|
1422
|
-
return SynthesisFallbackCause.RETRY_EXHAUSTED
|
|
1423
|
-
|
|
1424
|
-
def _get_template_summary(
|
|
1425
|
-
self,
|
|
1426
|
-
repository: str,
|
|
1427
|
-
overall_score: float,
|
|
1428
|
-
maturity_level: str,
|
|
1429
|
-
critical_gaps: list[dict[str, Any]],
|
|
1430
|
-
aligned_practices: list[dict[str, Any]],
|
|
1431
|
-
) -> str:
|
|
1432
|
-
"""Generate template-based summary without LLM."""
|
|
1433
|
-
gap_count = len(critical_gaps)
|
|
1434
|
-
aligned_count = len(aligned_practices)
|
|
1435
|
-
|
|
1436
|
-
severity_status = (
|
|
1437
|
-
"requires immediate attention"
|
|
1438
|
-
if overall_score < 50
|
|
1439
|
-
else ("shows room for improvement" if overall_score < 75 else "demonstrates strong practices")
|
|
1440
|
-
)
|
|
1441
|
-
|
|
1442
|
-
if gap_count > 0:
|
|
1443
|
-
recommendation = "Prioritize addressing security and high-severity issues."
|
|
1444
|
-
elif overall_score < 50:
|
|
1445
|
-
recommendation = "Investigate low-score drivers and close evidence or coverage gaps before proceeding."
|
|
1446
|
-
elif overall_score < 75:
|
|
1447
|
-
recommendation = "Plan medium-priority improvements and re-evaluate in the next sprint."
|
|
1448
|
-
else:
|
|
1449
|
-
recommendation = "Continue current practices while monitoring for issues."
|
|
1450
|
-
|
|
1451
|
-
summary = f"The repository scored {overall_score}/100, "
|
|
1452
|
-
summary += f"placing it at the **{maturity_level}** maturity level. "
|
|
1453
|
-
summary += f"This assessment {severity_status}."
|
|
1454
|
-
|
|
1455
|
-
return f"""**Audit Summary for {repository}**
|
|
1456
|
-
|
|
1457
|
-
{summary}
|
|
1458
|
-
|
|
1459
|
-
**Key Findings:**
|
|
1460
|
-
- {gap_count} critical gap(s) identified requiring attention
|
|
1461
|
-
- {aligned_count} domain(s) showing aligned practices
|
|
1462
|
-
|
|
1463
|
-
**Recommendation:** {recommendation}"""
|