@ngocsangairvds/vsaf 3.2.14 → 3.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/vsaf.js +18 -4
- package/package.json +1 -1
- package/src/config.js +167 -0
- package/src/global.js +1 -48
- package/src/project.js +1 -0
- package/src/utils.js +44 -1
- package/tools/vds-scripts/Makefile +9 -31
- package/tools/vds-scripts/docker/docker-compose.cli.yml +1 -117
- package/tools/vds-scripts/docker/docker-compose.services.yml +1 -40
- package/tools/vds-scripts/docker/infrastructure/init-schemas.sql +0 -34
- package/tools/vds-scripts/docker/infrastructure/pgbouncer/pgbouncer.ini +2 -6
- package/tools/vds-scripts/pyproject.toml +1 -33
- package/tools/vds-scripts/uv.lock +80 -1651
- package/tools/vds-scripts/vds_cli/pyproject.toml +3 -0
- package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +1 -127
- package/tools/vds-scripts/vds_cli/src/vds_cli/commands/lint_cli.py +1 -20
- package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +0 -100
- package/tools/vds-scripts/vds_cli/tests/conftest.py +0 -2
- package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +0 -25
- package/tools/vds-scripts/vds_cli/tests/unit/test_lint_cli.py +2 -2
- package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +0 -2
- package/tools/vds-scripts/CLOSURE.md +0 -340
- package/tools/vds-scripts/ECOSYSTEM-CHANGELOG.md +0 -52
- package/tools/vds-scripts/ECOSYSTEM-DOCS.md +0 -602
- package/tools/vds-scripts/ECOSYSTEM_ALIGNMENT.md +0 -133
- package/tools/vds-scripts/ENV-HYGIENE-OPS-NOTE.md +0 -65
- package/tools/vds-scripts/INVESTIGATION-cloud-401.md +0 -103
- package/tools/vds-scripts/MEM0_2.0_API_REFERENCE.md +0 -238
- package/tools/vds-scripts/PACKAGE_P125B_IMPLEMENTATION_SUMMARY.md +0 -131
- package/tools/vds-scripts/PHASE-MERGE-SUMMARY.md +0 -121
- package/tools/vds-scripts/PHASES-3-ARCHIVE.md +0 -59
- package/tools/vds-scripts/PROJECT_COMPLETION_SUMMARY.md +0 -45
- package/tools/vds-scripts/SEARCH-CRASH-REPRO.md +0 -51
- package/tools/vds-scripts/analyze_hexagonal.py +0 -217
- package/tools/vds-scripts/analyze_profiles.py +0 -60
- package/tools/vds-scripts/audit-checklist.xlsx +0 -0
- package/tools/vds-scripts/audit_orchestrator/.audit_approvals/approvals_index.json +0 -1
- package/tools/vds-scripts/audit_orchestrator/.env.example +0 -85
- package/tools/vds-scripts/audit_orchestrator/.github/workflows/audit.yml +0 -47
- package/tools/vds-scripts/audit_orchestrator/Dockerfile +0 -92
- package/tools/vds-scripts/audit_orchestrator/GOOGLE_SHEETS_IMPLEMENTATION_SUMMARY.md +0 -218
- package/tools/vds-scripts/audit_orchestrator/PHASE3_INTEGRATION_SUMMARY.md +0 -268
- package/tools/vds-scripts/audit_orchestrator/PHASE7-MERGE-SUMMARY.md +0 -174
- package/tools/vds-scripts/audit_orchestrator/README.md +0 -1573
- package/tools/vds-scripts/audit_orchestrator/TSK-168-IMPLEMENTATION-SUMMARY.md +0 -191
- package/tools/vds-scripts/audit_orchestrator/TSK-196-IMPLEMENTATION-SUMMARY.md +0 -201
- package/tools/vds-scripts/audit_orchestrator/alembic/env.py +0 -37
- package/tools/vds-scripts/audit_orchestrator/alembic/script.py.mako +0 -28
- package/tools/vds-scripts/audit_orchestrator/alembic/versions/0001_initial_audit_state_schema.py +0 -1260
- package/tools/vds-scripts/audit_orchestrator/alembic.ini +0 -68
- package/tools/vds-scripts/audit_orchestrator/config/category-mapping.json +0 -81
- package/tools/vds-scripts/audit_orchestrator/config/profile-timeouts.yaml +0 -17
- package/tools/vds-scripts/audit_orchestrator/create_sample.py +0 -55
- package/tools/vds-scripts/audit_orchestrator/data/corpus_accuracy_report.json +0 -17
- package/tools/vds-scripts/audit_orchestrator/data/exemplar_quality_report.json +0 -1606
- package/tools/vds-scripts/audit_orchestrator/data/instruction_plan_fixtures.json +0 -163
- package/tools/vds-scripts/audit_orchestrator/data/requirement_exemplars.json +0 -3443
- package/tools/vds-scripts/audit_orchestrator/data/requirement_scope_fixtures.json +0 -172
- package/tools/vds-scripts/audit_orchestrator/debug_rg.py +0 -46
- package/tools/vds-scripts/audit_orchestrator/demo_code_pack.py +0 -127
- package/tools/vds-scripts/audit_orchestrator/docs/AGENT_SDK_SELECTION_SPEC.md +0 -720
- package/tools/vds-scripts/audit_orchestrator/docs/API.md +0 -804
- package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_ANALYSIS_APPROACH.md +0 -1041
- package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_SCORING_EVOLUTION_SPEC.md +0 -868
- package/tools/vds-scripts/audit_orchestrator/docs/DEPLOYMENT.md +0 -778
- package/tools/vds-scripts/audit_orchestrator/docs/LLM_AGENT_AUDIT_SPEC.md +0 -721
- package/tools/vds-scripts/audit_orchestrator/docs/LLM_CONTENT_ANALYSIS_SPEC.md +0 -1143
- package/tools/vds-scripts/audit_orchestrator/docs/LSP_SETUP_GUIDE.md +0 -221
- package/tools/vds-scripts/audit_orchestrator/docs/MULTI_REPO_AUDIT_SPEC.md +0 -951
- package/tools/vds-scripts/audit_orchestrator/docs/OLLAMA_EMBEDDINGS_SETUP.md +0 -119
- package/tools/vds-scripts/audit_orchestrator/docs/PHASE32_REAL_BENCHMARK_2026-02-08.md +0 -66
- package/tools/vds-scripts/audit_orchestrator/docs/PHASE_64_TO_92_HISTORICAL_SPEC.md +0 -1772
- package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-flow-trace.md +0 -201
- package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-verification.md +0 -124
- package/tools/vds-scripts/audit_orchestrator/docs/phase152-hierarchical-query-surface.md +0 -46
- package/tools/vds-scripts/audit_orchestrator/examples/bitbucket_metadata_example.json +0 -50
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/README.md +0 -68
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase117_phase118_shared_state.sql +0 -64
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase154_published_pages.sql +0 -28
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_dispatch_tables.sql +0 -94
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_events.sql +0 -91
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_scope_snapshots.sql +0 -24
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_status_view.sql +0 -22
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase169_dispatch_observability.sql +0 -55
- package/tools/vds-scripts/audit_orchestrator/legacy/migrations/state_repair_hardening.sql +0 -24
- package/tools/vds-scripts/audit_orchestrator/pyproject.toml +0 -211
- package/tools/vds-scripts/audit_orchestrator/pyrightconfig.json +0 -51
- package/tools/vds-scripts/audit_orchestrator/pytest.ini +0 -37
- package/tools/vds-scripts/audit_orchestrator/reproduce_scanner.py +0 -40
- package/tools/vds-scripts/audit_orchestrator/scripts/README.md +0 -116
- package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_crawl_modes.py +0 -455
- package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_dspy.py +0 -513
- package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_nlp_accuracy.py +0 -138
- package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_retrieval_modes.py +0 -176
- package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_upload_update_mode.py +0 -167
- package/tools/vds-scripts/audit_orchestrator/scripts/build_check.py +0 -76
- package/tools/vds-scripts/audit_orchestrator/scripts/check_live_progress.py +0 -61
- package/tools/vds-scripts/audit_orchestrator/scripts/cli_integration_test.py +0 -400
- package/tools/vds-scripts/audit_orchestrator/scripts/index_workspace.py +0 -178
- package/tools/vds-scripts/audit_orchestrator/scripts/inspect_route_conformance.py +0 -196
- package/tools/vds-scripts/audit_orchestrator/scripts/monitor_postgres.py +0 -145
- package/tools/vds-scripts/audit_orchestrator/scripts/optimize_audit.py +0 -462
- package/tools/vds-scripts/audit_orchestrator/scripts/verify.py +0 -673
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase111_requirement_analysis.py +0 -375
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase117_cross_repo_evidence.py +0 -77
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase121_short_circuit.py +0 -680
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase122_instruction_handling.py +0 -478
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase125_skill_integration.py +0 -832
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_36.py +0 -394
- package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_37.py +0 -58
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/__init__.py +0 -17
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/__init__.py +0 -29
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/_langchain_warnings.py +0 -17
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/agentic_investigator.py +0 -4130
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/approval.py +0 -490
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_loop_hooks.py +0 -107
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_state.py +0 -50
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/base.py +0 -4035
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_agent.py +0 -667
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_helpers.py +0 -236
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_prompts.py +0 -146
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/docs_agent.py +0 -1234
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/langgraph_workflow.py +0 -2002
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/pydantic_base.py +0 -1227
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/requirement_analysis_agent.py +0 -593
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_agent.py +0 -1829
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_scanner.py +0 -686
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/skill_tools.py +0 -204
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/synthesis_agent.py +0 -1463
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_efficiency_guard.py +0 -609
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_registry.py +0 -3822
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/__init__.py +0 -52
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/evidence_corpus.py +0 -385
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/filesystem.py +0 -1134
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/lsp.py +0 -458
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/mcp_toolset.py +0 -491
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/skills_toolset.py +0 -997
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/vector_evidence.py +0 -842
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/usage_tracker.py +0 -682
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/visualization.py +0 -303
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/analyze_cmds.py +0 -892
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/__init__.py +0 -15
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/service.py +0 -171
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/__init__.py +0 -20
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/base.py +0 -60
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/__init__.py +0 -6
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/checks.py +0 -257
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/__init__.py +0 -10
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/checks.py +0 -78
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/__init__.py +0 -6
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/file_checks.py +0 -133
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/__init__.py +0 -17
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/api_docs_check.py +0 -80
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/readme_check.py +0 -76
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/security_docs_check.py +0 -78
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/registry.py +0 -402
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/__init__.py +0 -10
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/checks.py +0 -276
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli.py +0 -12
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_common.py +0 -128
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_impl.py +0 -9826
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/bitbucket_cli_client.py +0 -187
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/confluence_cli_client.py +0 -977
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/sonarqube_cli_client.py +0 -28
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/__init__.py +0 -21
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/base.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_downloader.py +0 -644
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_metadata.py +0 -133
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/checklist_parser.py +0 -180
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/__init__.py +0 -31
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/bitbucket_probe.py +0 -443
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/confluence_probe.py +0 -365
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/freshness_evaluator.py +0 -330
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/material_completeness_service.py +0 -1079
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/confluence_collector.py +0 -259
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/diagram_extractor.py +0 -280
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/enrichment_extractor.py +0 -200
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/evidence_cache.py +0 -35
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/git_collector.py +0 -148
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/graphify_collector.py +0 -171
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/image_extractor.py +0 -359
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/linked_page_tracker.py +0 -120
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/markdown_converter.py +0 -344
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_cache.py +0 -1252
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_downloader.py +0 -1165
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/orchestrator.py +0 -168
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/registry_parser.py +0 -3063
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/requirements.py +0 -70
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/runner.py +0 -119
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/sonarqube_collector.py +0 -113
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config.py +0 -1943
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/__init__.py +0 -23
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/discovery.py +0 -90
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/environment_resolver.py +0 -56
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/evidence.py +0 -78
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/models.py +0 -73
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/precedence.py +0 -10
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/redaction.py +0 -20
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/confluence_connectivity.py +0 -140
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/corpus_cmds.py +0 -278
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/__init__.py +0 -7
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/alembic_filters.py +0 -57
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/__init__.py +0 -29
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/diataxis_validator.py +0 -687
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/doctor_cmds.py +0 -3295
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/__init__.py +0 -5
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/evaluation.py +0 -301
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/modules.py +0 -172
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/runtime.py +0 -836
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/signatures.py +0 -406
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/__init__.py +0 -192
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/ad_hoc_analyzer.py +0 -399
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/aggregator.py +0 -220
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/auditor.py +0 -504
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_evidence_cache.py +0 -111
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_processor.py +0 -4776
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/calibration.py +0 -217
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_generator.py +0 -1201
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_projection.py +0 -192
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_scoping.py +0 -221
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checkpoint.py +0 -159
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cl003_shared_lib_guard.py +0 -194
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/companion_context_service.py +0 -445
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/confluence_checklist_contract.py +0 -7425
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cross_check_rules.py +0 -213
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/deterministic_evaluator.py +0 -237
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/drift_detector.py +0 -157
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/dspy_requirement_classifier.py +0 -640
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_assembler.py +0 -407
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_collector.py +0 -119
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_diversity.py +0 -101
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/gap_analyzer.py +0 -549
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/graduated.py +0 -185
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/grounding_validator.py +0 -287
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_analyzer.py +0 -882
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_compliance.py +0 -172
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/llm_row_evaluator.py +0 -9270
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/loader.py +0 -1070
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/manual_check_config.py +0 -136
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/mapping.py +0 -269
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/multi_judge.py +0 -65
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/phase120_checklist_update.py +0 -416
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/profile_scorer.py +0 -427
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_evidence_context.py +0 -449
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_query_service.py +0 -155
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_store.py +0 -383
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_topology.py +0 -1920
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/provider_failure_classifier.py +0 -778
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_cli_helpers.py +0 -341
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_extractor.py +0 -303
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_synthesizer.py +0 -730
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/regression_guard.py +0 -138
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/repo_type_classifier.py +0 -297
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_analysis.py +0 -1433
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_classification.py +0 -1725
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/result_merger.py +0 -814
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/route_matrix.py +0 -267
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator.py +0 -9437
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_runtime.py +0 -1270
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_types.py +0 -2102
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/rubric.py +0 -592
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/scorer.py +0 -1239
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/section_packs.py +0 -645
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/skill_recommendation.py +0 -1183
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/stability_harness.py +0 -207
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/target_selector.py +0 -841
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/telemetry.py +0 -347
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/template_analyzer.py +0 -469
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/token_tracker.py +0 -111
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/tool_first_planner.py +0 -7905
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/topology_query_service.py +0 -80
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/validator.py +0 -449
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/weight_policy.py +0 -464
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/errors.py +0 -430
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/extract_cmds.py +0 -4887
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/identity.py +0 -146
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/__init__.py +0 -52
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/baseline.py +0 -378
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/change_analyzer.py +0 -407
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/delta_report.py +0 -189
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/diff_detector.py +0 -301
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/integrations/__init__.py +0 -3
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/__init__.py +0 -50
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/audit_schemas.py +0 -459
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/codex_oauth.py +0 -340
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/cost_tracker.py +0 -288
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/engine.py +0 -751
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/evaluator.py +0 -245
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/__init__.py +0 -32
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/api_docs_evaluation.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/gap_analysis.py +0 -31
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/instruction_templates.py +0 -634
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/readme_evaluation.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/row_evaluation.py +0 -247
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/security_docs_evaluation.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/template_analysis.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/provider.py +0 -626
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/logging_config.py +0 -577
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/__init__.py +0 -58
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/default_checklist_mapping.json +0 -18
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/vietnamese_checklist_mapping.json +0 -38
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/misc_cmds.py +0 -4689
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/__init__.py +0 -153
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/calibration.py +0 -98
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/checklist.py +0 -921
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/completeness.py +0 -309
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enrichment.py +0 -58
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enums.py +0 -97
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/evidence.py +0 -351
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/findings.py +0 -381
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/gaps.py +0 -299
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/graph.py +0 -42
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/multi_judge.py +0 -50
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/readiness.py +0 -309
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/registry.py +0 -386
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/reporting.py +0 -32
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/task.py +0 -549
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/template.py +0 -477
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/__init__.py +0 -31
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/metrics.py +0 -404
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/parse_cmds.py +0 -608
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/pdf_cmds.py +0 -208
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/performance_gates.py +0 -224
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/phase151_projection.py +0 -84
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/__init__.py +0 -65
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/detection.py +0 -842
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/models.py +0 -474
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/__init__.py +0 -1
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_confluence_macros.py +0 -145
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_field_sanitizer.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_table_builder.py +0 -63
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_vietnamese_templates.py +0 -103
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/bitbucket_link_resolver.py +0 -34
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/checklist_renderer.py +0 -483
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/confluence_publisher.py +0 -3048
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/hierarchy_publisher.py +0 -213
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/live_data_injector.py +0 -152
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/macro_builder.py +0 -101
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/markdown_converter.py +0 -154
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/priority_renderer.py +0 -133
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/project_aggregate_renderer.py +0 -423
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/readiness_renderer.py +0 -186
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_hierarchy_renderer.py +0 -382
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_renderer.py +0 -683
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/report_cmds.py +0 -788
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/__init__.py +0 -13
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/aggregation_report.py +0 -86
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/checklist_generator.py +0 -425
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/excel_generator.py +0 -599
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/gap_report.py +0 -131
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/json_generator.py +0 -188
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/markdown_generator.py +0 -595
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/__init__.py +0 -154
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/collector.py +0 -61
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/department_builder.py +0 -77
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/errors.py +0 -9
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/md_renderer.py +0 -386
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_models.py +0 -95
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_writer.py +0 -27
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/repo_project_builders.py +0 -274
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/readiness_report.py +0 -447
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/reporting.py +0 -94
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/sarif_generator.py +0 -519
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/runtime_profiles.py +0 -98
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/__init__.py +0 -29
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/seed_loader.py +0 -561
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/__init__.py +0 -5
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/skill_routing.py +0 -312
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/base.py +0 -110
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/bitbucket.py +0 -129
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/git_url.py +0 -60
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/github.py +0 -75
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/local.py +0 -58
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/spec_sync_validator.py +0 -15
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/__init__.py +0 -6285
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/readiness_helpers.py +0 -74
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/skill_readiness.py +0 -487
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/store.py +0 -12927
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state_cmds.py +0 -1868
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/repo_sync.py +0 -409
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync_cmds.py +0 -1247
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/__init__.py +0 -3
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/debug_bundle.py +0 -214
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/validators/checklist_validator.py +0 -342
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflow_cmds.py +0 -19147
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/__init__.py +0 -9
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/_test_audit_daily_batch.py +0 -192
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_daily_batch.py +0 -308
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_deep_monthly.py +0 -193
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_drift_scan.py +0 -178
- package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_security_daily.py +0 -183
- package/tools/vds-scripts/audit_orchestrator/templates/sample_audit_template.xlsx +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/_helpers.py +0 -32
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_bitbucket_probe.py +0 -403
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_confluence_probe.py +0 -423
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_bitbucket_downloader.py +0 -289
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_image_extractor.py +0 -260
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_markdown_converter.py +0 -57
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_cache.py +0 -197
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_downloader.py +0 -550
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser.py +0 -3514
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_department_entry.py +0 -214
- package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_flow.py +0 -200
- package/tools/vds-scripts/audit_orchestrator/tests/conftest.py +0 -988
- package/tools/vds-scripts/audit_orchestrator/tests/engine/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/engine/test_calibration.py +0 -48
- package/tools/vds-scripts/audit_orchestrator/tests/engine/test_confluence_checklist_phase22_helpers.py +0 -6065
- package/tools/vds-scripts/audit_orchestrator/tests/engine/test_multi_judge.py +0 -62
- package/tools/vds-scripts/audit_orchestrator/tests/engine/test_stability_harness.py +0 -61
- package/tools/vds-scripts/audit_orchestrator/tests/engine/test_structured_metadata.py +0 -419
- package/tools/vds-scripts/audit_orchestrator/tests/factories/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/factories/models.py +0 -534
- package/tools/vds-scripts/audit_orchestrator/tests/factories/templates.py +0 -241
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/compressed.drawio +0 -2
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/mockup.bmpr +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/simple.drawio +0 -26
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_cli.json +0 -26
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_direct.json +0 -24
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_cli.json +0 -14
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_direct.json +0 -12
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_cli.json +0 -7
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_direct.json +0 -7
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_cli.json +0 -11
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_direct.json +0 -7
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_cli.json +0 -12
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_direct.json +0 -12
- package/tools/vds-scripts/audit_orchestrator/tests/fixtures/requirement_strategy_phase115.json +0 -118
- package/tools/vds-scripts/audit_orchestrator/tests/integration/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/integration/conftest.py +0 -107
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/expected_outcomes.md +0 -50
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/auth.py +0 -27
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/config.py +0 -16
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/db.py +0 -24
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/main.py +0 -18
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/__init__.py +0 -1
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/utils.py +0 -22
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_checklist_template.json +0 -110
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/code_evidence_pack.json +0 -40
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/manifest.json +0 -49
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/brd.md +0 -19
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/design.md +0 -32
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/security.md +0 -23
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/srs.md +0 -25
- package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/test.md +0 -30
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_checkpoint_merge.py +0 -1371
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_decoupling_route_p149.py +0 -176
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_gap_analyzer_batch_p149.py +0 -151
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_hybrid_search.py +0 -799
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_mcp_integration.py +0 -741
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_merge_ranking_p149.py +0 -98
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_modality_mismatch_p149.py +0 -171
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase117_118_storage.py +0 -350
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase121_short_circuit.py +0 -732
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase18_workflow.py +0 -223
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase48_e2e_verification.py +0 -763
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase81_doc_anchor_regression.py +0 -252
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_provider_failure_finding_p149.py +0 -339
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_readiness_e2e.py +0 -430
- package/tools/vds-scripts/audit_orchestrator/tests/integration/test_refined_workflow.py +0 -1180
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/department_renderer.md +0 -24
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/project_renderer.md +0 -8
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/repo_renderer.md +0 -10
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_department_pdf.py +0 -112
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_e2e_pdf.py +0 -135
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_idempotency.py +0 -45
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_md_renderer.py +0 -46
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_cmds.py +0 -97
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_snapshot.py +0 -77
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_writer.py +0 -65
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_project_builder.py +0 -199
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_public_api.py +0 -135
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_repo_builder.py +0 -246
- package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_workflow_pdf_flags.py +0 -36
- package/tools/vds-scripts/audit_orchestrator/tests/property/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/property/test_properties.py +0 -807
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agent_error_compat.py +0 -38
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agentic_skill_policy_skip.py +0 -234
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_event_stream_logging.py +0 -785
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_timeout_policy.py +0 -277
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_trace_payload_sanitization.py +0 -92
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent.py +0 -2311
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent_re_exports.py +0 -25
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_analysis_helpers.py +0 -94
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_create_audit_agent_reasoning_effort.py +0 -69
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_docs_agent.py +0 -2044
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_langgraph_workflow_efficiency_metrics.py +0 -71
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_output_validators.py +0 -317
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_phase41_toolsets.py +0 -6427
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_ai_models.py +0 -1219
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_base_url_resolution.py +0 -84
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_security_agent.py +0 -2069
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_skill_manager_focus.py +0 -439
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_synthesis_agent.py +0 -1195
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_tool_efficiency_guard_fr120.py +0 -683
- package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_toolsets.py +0 -716
- package/tools/vds-scripts/audit_orchestrator/tests/test_aggregator_p149.py +0 -171
- package/tools/vds-scripts/audit_orchestrator/tests/test_alembic_migrations.py +0 -287
- package/tools/vds-scripts/audit_orchestrator/tests/test_anchor_allowlist_p149.py +0 -273
- package/tools/vds-scripts/audit_orchestrator/tests/test_audit_otel.py +0 -283
- package/tools/vds-scripts/audit_orchestrator/tests/test_checklist_models.py +0 -583
- package/tools/vds-scripts/audit_orchestrator/tests/test_checks/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_base_check.py +0 -211
- package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_llm_checks.py +0 -126
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_analyze_command.py +0 -400
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_archive_stale_page_cli.py +0 -217
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_bitbucket_metadata_cli.py +0 -354
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_cli_impl_profile_availability.py +0 -114
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_codex_profile.py +0 -174
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_compare_backends_cli.py +0 -449
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_confluence_parent_auto_resolve.py +0 -451
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_corpus_purge_cli.py +0 -290
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_credentials_preflight.py +0 -106
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_debug_bundle.py +0 -37
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_deprecation_phase157.py +0 -484
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_dispatch_concurrency_diagnostics.py +0 -758
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_check_confluence_cli.py +0 -320
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_codex.py +0 -187
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_corpus_status_cli.py +0 -236
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_correlation_cli.py +0 -128
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_crawl_status_cli.py +0 -192
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_credentials_cli.py +0 -86
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_dispatch_status_cli.py +0 -421
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_heartbeat_phase169.py +0 -173
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_hierarchy_status_cli.py +0 -199
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_locks_cli.py +0 -134
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_logs_follow_cli.py +0 -305
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_migration.py +0 -333
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_profile_availability_cli.py +0 -151
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_skills_policy_cli.py +0 -153
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_evidence_quality_cli.py +0 -307
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_debug_bundle_phase36.py +0 -60
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_git_manifest_cli.py +0 -172
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_file_removal_phase157e.py +0 -770
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_grounding_classifier.py +0 -226
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_logging.py +0 -49
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_materials_cli.py +0 -9127
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_metadata_completeness_phase92.py +0 -364
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parent_dispatch_finalization_phase168f.py +0 -111
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parse_cli.py +0 -590
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase117_118_feature_flags.py +0 -219
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase164_control_plane.py +0 -718
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase165_runner_scripts.py +0 -230
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_preparation_classifications.py +0 -146
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_prepare_cli.py +0 -398
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publication_quality_gate.py +0 -126
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publish_system_doc_cli.py +0 -158
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_query_checklist_cli.py +0 -219
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli.py +0 -673
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli_integration.py +0 -689
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_removed_flags_phase92.py +0 -36
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_report_cmds.py +0 -1317
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_history_index.py +0 -57
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_management.py +0 -1194
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_runtime_profiles_cli.py +0 -1658
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_smart_run_selection.py +0 -1562
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_cli.py +0 -2467
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_migration.py +0 -339
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_sync_repos_debug_artifacts.py +0 -1109
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_upload_results_cli.py +0 -809
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist.py +0 -178
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist_cli.py +0 -110
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_spec_sync_cli.py +0 -519
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_default_parameters_baseline.py +0 -101
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_options.py +0 -7896
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_db_modes.py +0 -6516
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_project_scope.py +0 -831
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_target.py +0 -611
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_lifecycle.py +0 -2488
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_scaffolding.py +0 -96
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_row_key_guard.py +0 -78
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_summary_artifacts.py +0 -1872
- package/tools/vds-scripts/audit_orchestrator/tests/test_cli_paths_phase2.py +0 -45
- package/tools/vds-scripts/audit_orchestrator/tests/test_clients/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_bitbucket_cli_client.py +0 -124
- package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_cli_parity.py +0 -110
- package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_confluence_cli_client.py +0 -1149
- package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_sonarqube_cli_client.py +0 -19
- package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/test_linked_page_tracker.py +0 -118
- package/tools/vds-scripts/audit_orchestrator/tests/test_companion_context_service.py +0 -230
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/conftest.py +0 -11
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_compile_artifact.py +0 -465
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique.py +0 -120
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique_e2e.py +0 -75
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_evaluation.py +0 -515
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_runtime_loader.py +0 -537
- package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_signatures_normalization.py +0 -172
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_auditor_applicability.py +0 -68
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_generator.py +0 -1252
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_projection.py +0 -54
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_confluence_checklist_projection_consistency.py +0 -1696
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_critique_merger_matrix.py +0 -120
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_check_rules.py +0 -459
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_provider_critique.py +0 -55
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_doc_loader.py +0 -73
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_drift_detector.py +0 -34
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_evidence_collectors.py +0 -93
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_lease_timeout.py +0 -114
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader.py +0 -350
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader_parity.py +0 -179
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_low_confidence_reeval.py +0 -691
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase145a_completion.py +0 -209
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase31_row_consistency_retry_benchmark.py +0 -150
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_profile_detector.py +0 -286
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_regression_guard.py +0 -53
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_result_merger.py +0 -619
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_evaluator.py +0 -15783
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_failover.py +0 -215
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_scorer.py +0 -597
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_skill_breakdown_telemetry_fr137.py +0 -421
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_targeted_auto_merge.py +0 -229
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_failover.py +0 -488
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_telemetry.py +0 -73
- package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_validator.py +0 -419
- package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/test_diff_detector.py +0 -111
- package/tools/vds-scripts/audit_orchestrator/tests/test_infra_persistence.py +0 -291
- package/tools/vds-scripts/audit_orchestrator/tests/test_integration/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_integration/test_phase3_integration.py +0 -516
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cache.py +0 -670
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_model_builder.py +0 -281
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_oauth.py +0 -330
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_streaming.py +0 -433
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cost_tracker.py +0 -27
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_engine.py +0 -876
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_evaluator.py +0 -212
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_instruction_templates.py +0 -639
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompt_metadata.py +0 -97
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompts.py +0 -660
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider.py +0 -330
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider_contract_sync.py +0 -18
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_reasoning_effort_validation.py +0 -565
- package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_schemas.py +0 -827
- package/tools/vds-scripts/audit_orchestrator/tests/test_logging_config.py +0 -297
- package/tools/vds-scripts/audit_orchestrator/tests/test_models/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_enums.py +0 -185
- package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_findings.py +0 -1159
- package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_project_profile.py +0 -307
- package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_registry.py +0 -532
- package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_template.py +0 -708
- package/tools/vds-scripts/audit_orchestrator/tests/test_observability/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_observability/test_metrics.py +0 -60
- package/tools/vds-scripts/audit_orchestrator/tests/test_paths_config_phase2.py +0 -21
- package/tools/vds-scripts/audit_orchestrator/tests/test_performance/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_performance/test_fr79_performance_guardrails.py +0 -199
- package/tools/vds-scripts/audit_orchestrator/tests/test_phase156_hardening.py +0 -498
- package/tools/vds-scripts/audit_orchestrator/tests/test_phase93_regression_guards.py +0 -123
- package/tools/vds-scripts/audit_orchestrator/tests/test_pipeline_integration.py +0 -517
- package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/test_detection.py +0 -146
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_bitbucket_link_resolver.py +0 -55
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer.py +0 -84
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer_projection.py +0 -97
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_macros.py +0 -58
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_publisher.py +0 -2171
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_evidence_links.py +0 -129
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_field_sanitizer.py +0 -108
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_hierarchy_publisher.py +0 -134
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_incremental_plan_parser.py +0 -62
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_live_data_injector.py +0 -48
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_macro_builder.py +0 -22
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_p161_confluence_optimization.py +0 -168
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_priority_renderer.py +0 -96
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_project_aggregate_renderer.py +0 -364
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_storage_validation.py +0 -273
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_summary_refactor.py +0 -118
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_system_doc_hierarchy.py +0 -50
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_table_builder.py +0 -23
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_vietnamese_templates.py +0 -37
- package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_wiring_integration.py +0 -290
- package/tools/vds-scripts/audit_orchestrator/tests/test_reports/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_aggregation_report.py +0 -181
- package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_checklist_generator.py +0 -258
- package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_gap_report.py +0 -73
- package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_json_generator.py +0 -317
- package/tools/vds-scripts/audit_orchestrator/tests/test_result_merger_p149.py +0 -347
- package/tools/vds-scripts/audit_orchestrator/tests/test_route_mode_p149.py +0 -178
- package/tools/vds-scripts/audit_orchestrator/tests/test_rubric_parser.py +0 -179
- package/tools/vds-scripts/audit_orchestrator/tests/test_scorer.py +0 -110
- package/tools/vds-scripts/audit_orchestrator/tests/test_state/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_state/test_sparse_coverage.py +0 -117
- package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_langgraph_workflow.py +0 -2072
- package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_p161_runtime_hardening.py +0 -341
- package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p149.py +0 -112
- package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p172.py +0 -126
- package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_guidance_p150.py +0 -95
- package/tools/vds-scripts/audit_orchestrator/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_agentic_investigator_phase115.py +0 -42
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_requirement_analysis_agent.py +0 -412
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_agent_updates.py +0 -131
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_scanner.py +0 -397
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_executor.py +0 -316
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_fallback.py +0 -299
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_policy.py +0 -520
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_telemetry.py +0 -306
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_synthesis_fixes.py +0 -761
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_argument_robustness.py +0 -272
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry.py +0 -2548
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_ast_grep.py +0 -87
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase123_scoping.py +0 -353
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase94_ff.py +0 -445
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_vector_search_phase115.py +0 -35
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_utils.py +0 -1007
- package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_vector_evidence_toolset.py +0 -622
- package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/test_workflow_cli.py +0 -123
- package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_cache_guard.py +0 -479
- package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_checklist_parser_phase120.py +0 -55
- package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_diagram_extractor.py +0 -467
- package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_enrichment_extractor.py +0 -59
- package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_graphify_collector.py +0 -158
- package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_completeness.py +0 -563
- package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_freshness_evaluator.py +0 -493
- package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_cache_metrics.py +0 -365
- package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_completeness_service.py +0 -2736
- package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_discovery.py +0 -47
- package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_redaction.py +0 -15
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_ad_hoc_analyzer.py +0 -576
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_agent_loop.py +0 -1896
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_anchor_filter_cl003.py +0 -181
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_evidence_cache.py +0 -155
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_processor.py +0 -3608
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_contract.py +0 -55
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_scoping.py +0 -371
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_companion_phase123.py +0 -142
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_evidence_phase123.py +0 -249
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_confluence_checklist_contract_export_parity.py +0 -813
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_cross_repo_config_phase122.py +0 -613
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_dspy_requirement_classifier.py +0 -517
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_diversity.py +0 -144
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_truncation.py +0 -108
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_grounding_validator.py +0 -127
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_guidance_injection_phase120.py +0 -105
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_analysis_phase122.py +0 -761
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_pre_filter_phase167.py +0 -334
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_llm_row_evaluator_retries.py +0 -3684
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_loader_phase123.py +0 -345
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_manual_check_gating_phase122.py +0 -474
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_parallel_eval.py +0 -263
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase122_verifier_phase122.py +0 -169
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase166_route_failover.py +0 -437
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_post_eval_cl003_shared_lib.py +0 -267
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_postproc_streaming.py +0 -194
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_pre_eval_gating_phase122.py +0 -362
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_prepare_topology_coverage.py +0 -247
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_private_dns_sanitization_phase104.py +0 -397
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_evidence_context.py +0 -450
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_knowledge_store.py +0 -487
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_topology.py +0 -1142
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_provider_failure_classifier.py +0 -195
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_extractor.py +0 -496
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_synthesizer.py +0 -653
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_repo_type_classifier.py +0 -303
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis.py +0 -508
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_execution_scope.py +0 -239
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase114.py +0 -919
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase115.py +0 -97
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_shared_lib.py +0 -340
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_drift.py +0 -729
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_nlp.py +0 -670
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_scope_phase122.py +0 -615
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_matrix.py +0 -258
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_override.py +0 -141
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_routing_precision.py +0 -650
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_dual_evidence.py +0 -2987
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_instruction_runtime_phase122.py +0 -365
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_runtime.py +0 -830
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_runtime_hardening_phase122.py +0 -225
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoped_na_skip.py +0 -107
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoring_enhancements.py +0 -404
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_retrieval_phase123.py +0 -441
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_routing_phase123.py +0 -279
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_resource_indexing_phase122.py +0 -188
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_recommendation.py +0 -225
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_routing_cl003_shared_lib.py +0 -338
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skills_toolset.py +0 -319
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_stability_metric.py +0 -60
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_target_selector.py +0 -958
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_tracker.py +0 -121
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_wiring.py +0 -119
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_tool_first_planner.py +0 -7103
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_knowledge_persistence.py +0 -332
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_query_service.py +0 -55
- package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_unverified_ref_retry.py +0 -909
- package/tools/vds-scripts/audit_orchestrator/tests/unit/models/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_evidence.py +0 -515
- package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_gaps.py +0 -422
- package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_readiness.py +0 -428
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_confluence_hierarchy.py +0 -227
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_project_title_generation.py +0 -335
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_helpers.py +0 -290
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_integration.py +0 -557
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_readiness_renderer.py +0 -381
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_repo_title_consistency.py +0 -266
- package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_upload_hierarchy_integration.py +0 -470
- package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_dspy.py +0 -177
- package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_nlp_accuracy.py +0 -72
- package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_retrieval_modes.py +0 -123
- package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_verify_phase111_requirement_analysis.py +0 -409
- package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_chain_cli.py +0 -277
- package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_loader.py +0 -502
- package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/test_skill_routing.py +0 -209
- package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_bitbucket_source.py +0 -66
- package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_non_retryable_markers.py +0 -88
- package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_repo_info.py +0 -212
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_completeness.py +0 -598
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_events_contract_phase169.py +0 -100
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_hardening_phase158.py +0 -392
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_persistence_phase157.py +0 -914
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_embedding_client.py +0 -64
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_get_latest_completed_run.py +0 -313
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_heartbeat_phase169.py +0 -109
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_hybrid_search.py +0 -398
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_normalize_url.py +0 -262
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase152_query_surface.py +0 -59
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase98_confluence_document_model.py +0 -202
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_published_pages.py +0 -754
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_readiness_helpers.py +0 -193
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_ledger.py +0 -522
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_management.py +0 -378
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_schema_contract_phase170.py +0 -755
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_cmds.py +0 -231
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_loaders.py +0 -2151
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_run_api.py +0 -2226
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store.py +0 -1435
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch.py +0 -646
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch_status_view.py +0 -181
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_scope.py +0 -213
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_utilization_persist_phase169.py +0 -77
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vds_search.py +0 -263
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_api.py +0 -319
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_runtime.py +0 -175
- package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_store.py +0 -1756
- package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/__init__.py +0 -0
- package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/test_repo_sync.py +0 -257
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_artifact_exclusion.py +0 -119
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_auto_promote_phase158.py +0 -337
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_carry_forward_artifact_filtering.py +0 -317
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_checklist_precache_p160a.py +0 -416
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_cli_decomposition_fr219.py +0 -269
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_code_chunk_carry_forward.py +0 -203
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_coherence.py +0 -180
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_secret_policy.py +0 -522
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_project_id_migration.py +0 -318
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_status_diagnostics.py +0 -239
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_department_priority_ordering.py +0 -131
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_coordinator_phase158.py +0 -402
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_job_identity_p167a.py +0 -238
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_ramp_up_phase171.py +0 -434
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatcher.py +0 -911
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_doc_type_en_inference.py +0 -246
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_early_exit_unchunked_repos.py +0 -111
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors.py +0 -237
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors_taxonomy.py +0 -83
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_chunking_config_phase98.py +0 -73
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_cmds_state_helpers.py +0 -33
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_docs_code_chunking.py +0 -260
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_finalize_dispatch_run_phase168.py +0 -341
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_identity.py +0 -221
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_infrastructure_detection.py +0 -441
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_junction_table_phase95.py +0 -259
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_late_binding_assignment_p167c.py +0 -286
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_misc_cmds_fr224_225_hardening.py +0 -194
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_p172_integration.py +0 -306
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_parent_provider_preflight.py +0 -118
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase92.py +0 -141
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase93.py +0 -50
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase115_search_strategy.py +0 -106
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase154_title_consistency.py +0 -117
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase155_param_forwarding.py +0 -304
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase158_concurrency_defaults.py +0 -207
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_doctor_schema.py +0 -319
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_regression.py +0 -334
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase94_corpus_lifecycle.py +0 -307
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase96_repo_key_migration.py +0 -305
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_pipelined_scheduling.py +0 -130
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_availability_probe.py +0 -616
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_aware_row_timeout.py +0 -102
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_timeout_stagger_p160cd.py +0 -205
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_progress_summary_phase169.py +0 -96
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_registry_checklist_diagnostics.py +0 -124
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_resume_manifest_p167b.py +0 -268
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_risk_mitigations_p160e1.py +0 -348
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_single_row_shards_p160b.py +0 -357
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_state_repo_discovery.py +0 -504
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_sync_metadata_entries.py +0 -57
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_task_models.py +0 -1796
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_utilization_telemetry_p167e.py +0 -259
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_vietnamese_fts_hardening.py +0 -160
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_phase98_enrichment.py +0 -92
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_project_merge_materialization.py +0 -322
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_row_key_migration_guard.py +0 -88
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_short_circuit_phase121.py +0 -564
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_single_target_row_context.py +0 -49
- package/tools/vds-scripts/audit_orchestrator/tests/unit/test_zero_result_messaging.py +0 -76
- package/tools/vds-scripts/bandit-report.json +0 -2974
- package/tools/vds-scripts/brd_orchestrator/README.md +0 -29
- package/tools/vds-scripts/brd_orchestrator/pyproject.toml +0 -63
- package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/__init__.py +0 -17
- package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/cli.py +0 -187
- package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/validator.py +0 -121
- package/tools/vds-scripts/brd_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/brd_orchestrator/tests/test_cli.py +0 -62
- package/tools/vds-scripts/brd_orchestrator/tests/test_validator.py +0 -33
- package/tools/vds-scripts/circular_dependency_orchestrator/README.md +0 -30
- package/tools/vds-scripts/circular_dependency_orchestrator/pyproject.toml +0 -43
- package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/__init__.py +0 -16
- package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/cli.py +0 -904
- package/tools/vds-scripts/circular_dependency_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/test_cli.py +0 -354
- package/tools/vds-scripts/coverage.json +0 -1
- package/tools/vds-scripts/create_pr.py +0 -57
- package/tools/vds-scripts/diagram_generator/README.md +0 -663
- package/tools/vds-scripts/diagram_generator/ci_validate.sh +0 -16
- package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.png +0 -0
- package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.puml +0 -23
- package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.png +0 -0
- package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.puml +0 -21
- package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.png +0 -0
- package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.puml +0 -14
- package/tools/vds-scripts/diagram_generator/examples/github-actions-validate.yml +0 -39
- package/tools/vds-scripts/diagram_generator/generate_all_diagrams.py +0 -827
- package/tools/vds-scripts/diagram_generator/generate_insurance_c4_diagrams.py +0 -261
- package/tools/vds-scripts/diagram_generator/generate_insurance_c4_quick.py +0 -486
- package/tools/vds-scripts/diagram_generator/pyproject.toml +0 -28
- package/tools/vds-scripts/diagram_generator/render_png.py +0 -59
- package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/__init__.py +0 -3
- package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/cli.py +0 -50
- package/tools/vds-scripts/diagram_generator/test_c4_hierarchical.py +0 -142
- package/tools/vds-scripts/diagram_generator/test_c4_quick.py +0 -131
- package/tools/vds-scripts/diagram_generator/tests/__init__.py +0 -0
- package/tools/vds-scripts/diagram_generator/tests/test_analyzer_completeness.py +0 -260
- package/tools/vds-scripts/diagram_generator/tests/test_c4_syntax_correctness.py +0 -138
- package/tools/vds-scripts/diagram_generator/tests/test_component_coverage.py +0 -182
- package/tools/vds-scripts/diagram_generator/tests/test_mermaid_output.py +0 -80
- package/tools/vds-scripts/diagram_generator/tests/test_png_generation.py +0 -112
- package/tools/vds-scripts/diagram_generator/tests/test_scenario_templates.py +0 -15
- package/tools/vds-scripts/diagram_generator/tests/test_sequence_accuracy.py +0 -93
- package/tools/vds-scripts/diagram_generator/tests/test_structurizr_export.py +0 -177
- package/tools/vds-scripts/diagram_generator/tests/test_style_consistency.py +0 -174
- package/tools/vds-scripts/diagram_generator/tests/test_usecase_generator.py +0 -201
- package/tools/vds-scripts/diagram_generator/tests/test_usecase_integration.py +0 -124
- package/tools/vds-scripts/docker/compose.phase2-verification.yml +0 -31
- package/tools/vds-scripts/docker-compose.openapi-validator.yml +0 -14
- package/tools/vds-scripts/excel_orchestrator/README.md +0 -288
- package/tools/vds-scripts/excel_orchestrator/RESEARCH_BASED_UPDATES_REPORT.md +0 -261
- package/tools/vds-scripts/excel_orchestrator/add_essential_missing_effort.py +0 -255
- package/tools/vds-scripts/excel_orchestrator/adjust_effort_complexity.py +0 -184
- package/tools/vds-scripts/excel_orchestrator/brd_analysis_and_task_breakdown.py +0 -632
- package/tools/vds-scripts/excel_orchestrator/brd_analysis_comprehensive.py +0 -1029
- package/tools/vds-scripts/excel_orchestrator/check_overlaps_and_brd_coverage.py +0 -570
- package/tools/vds-scripts/excel_orchestrator/clean_remarks_column.py +0 -127
- package/tools/vds-scripts/excel_orchestrator/comprehensive_brd_check.py +0 -322
- package/tools/vds-scripts/excel_orchestrator/create_buffered_summary.py +0 -119
- package/tools/vds-scripts/excel_orchestrator/create_service_totals_sheet.py +0 -118
- package/tools/vds-scripts/excel_orchestrator/examples/basic_operations.py +0 -85
- package/tools/vds-scripts/excel_orchestrator/expand_all_tasks.py +0 -341
- package/tools/vds-scripts/excel_orchestrator/expand_tasks.py +0 -304
- package/tools/vds-scripts/excel_orchestrator/fill_brd_references.py +0 -347
- package/tools/vds-scripts/excel_orchestrator/fill_remarks_and_colors.py +0 -132
- package/tools/vds-scripts/excel_orchestrator/finalize_brd_and_cleanup.py +0 -295
- package/tools/vds-scripts/excel_orchestrator/finalize_brd_coverage.py +0 -327
- package/tools/vds-scripts/excel_orchestrator/fix_all_formulas.py +0 -99
- package/tools/vds-scripts/excel_orchestrator/fix_detail_presentation.py +0 -113
- package/tools/vds-scripts/excel_orchestrator/fix_presentation_and_effort.py +0 -116
- package/tools/vds-scripts/excel_orchestrator/fix_presentation_consistency.py +0 -231
- package/tools/vds-scripts/excel_orchestrator/fix_remarks_matching.py +0 -179
- package/tools/vds-scripts/excel_orchestrator/group_tasks_by_service_id.py +0 -210
- package/tools/vds-scripts/excel_orchestrator/increase_brd_coverage.py +0 -497
- package/tools/vds-scripts/excel_orchestrator/increase_effort_complexity.py +0 -155
- package/tools/vds-scripts/excel_orchestrator/organize_and_deduplicate.py +0 -273
- package/tools/vds-scripts/excel_orchestrator/pyproject.toml +0 -64
- package/tools/vds-scripts/excel_orchestrator/rebuild_all_formulas.py +0 -146
- package/tools/vds-scripts/excel_orchestrator/remove_base_multiplier_and_check_duplicates.py +0 -310
- package/tools/vds-scripts/excel_orchestrator/remove_duplicate_brd_tasks.py +0 -137
- package/tools/vds-scripts/excel_orchestrator/research_based_updates.py +0 -457
- package/tools/vds-scripts/excel_orchestrator/restore_e_values.py +0 -172
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/__init__.py +0 -5
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/cli.py +0 -746
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/config.py +0 -74
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/converters.py +0 -226
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/errors.py +0 -88
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/excel_client.py +0 -443
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/formatters.py +0 -211
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/logging.py +0 -57
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/source_contract.py +0 -29
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/target_state_status.py +0 -837
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/ulnc_alignment.py +0 -1291
- package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/validators.py +0 -164
- package/tools/vds-scripts/excel_orchestrator/sync_detail_and_total_sheets.py +0 -211
- package/tools/vds-scripts/excel_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/excel_orchestrator/tests/conftest.py +0 -36
- package/tools/vds-scripts/excel_orchestrator/tests/test_cli.py +0 -383
- package/tools/vds-scripts/excel_orchestrator/tests/test_excel_client.py +0 -129
- package/tools/vds-scripts/excel_orchestrator/tests/test_ulnc_alignment.py +0 -373
- package/tools/vds-scripts/excel_orchestrator/tests/test_validators.py +0 -64
- package/tools/vds-scripts/excel_orchestrator/update_api_database_effort.py +0 -261
- package/tools/vds-scripts/excel_orchestrator/update_buffers_inline.py +0 -115
- package/tools/vds-scripts/excel_orchestrator/update_complex_services_and_add_new.py +0 -336
- package/tools/vds-scripts/excel_orchestrator/update_responsibility_and_fix_rows.py +0 -208
- package/tools/vds-scripts/excel_orchestrator/update_task_breakdown_vietnamese.py +0 -309
- package/tools/vds-scripts/excel_orchestrator/update_vietnamese_and_responsibility.py +0 -415
- package/tools/vds-scripts/excel_orchestrator/verify_brd_coverage_comprehensive.py +0 -401
- package/tools/vds-scripts/hexagonal_orchestrator/README.md +0 -530
- package/tools/vds-scripts/hexagonal_orchestrator/pyproject.toml +0 -48
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/__init__.py +0 -39
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/__init__.py +0 -19
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/base.py +0 -95
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/fallback.py +0 -614
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/java.py +0 -372
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/python.py +0 -437
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cache.py +0 -331
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/classifier.py +0 -263
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cli.py +0 -554
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/config.py +0 -577
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/models.py +0 -159
- package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/profiler.py +0 -451
- package/tools/vds-scripts/hexagonal_orchestrator/test-config.yaml +0 -38
- package/tools/vds-scripts/hexagonal_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driven/persistence/InMemoryUserRepository.java +0 -62
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driving/api/UserController.java +0 -101
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/EmailService.java +0 -33
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/UserRepository.java +0 -45
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/usecase/CreateUser.java +0 -58
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/Email.java +0 -80
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/User.java +0 -98
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-noncompliant/domain/User.java +0 -64
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Menu.java +0 -13
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Product.java +0 -16
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/email_service.py +0 -60
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/user_repository.py +0 -78
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/user.py +0 -56
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/__init__.py +0 -1
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/email.py +0 -63
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/application/user_service.py +0 -1837
- package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/domain/user.py +0 -43
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cache.py +0 -458
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_integration.py +0 -942
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_unit.py +0 -557
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cross_repo_pollution.py +0 -275
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_foundation.py +0 -129
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_integration.py +0 -1524
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_java_analyzer.py +0 -642
- package/tools/vds-scripts/hexagonal_orchestrator/tests/test_timing_unit.py +0 -60
- package/tools/vds-scripts/intellij_orchestrator/README.md +0 -55
- package/tools/vds-scripts/intellij_orchestrator/pyproject.toml +0 -64
- package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/__init__.py +0 -17
- package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/cli.py +0 -210
- package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/core.py +0 -260
- package/tools/vds-scripts/intellij_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/intellij_orchestrator/tests/test_cli.py +0 -112
- package/tools/vds-scripts/intellij_orchestrator/tests/test_core.py +0 -83
- package/tools/vds-scripts/links_orchestrator/README.md +0 -63
- package/tools/vds-scripts/links_orchestrator/pyproject.toml +0 -64
- package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/__init__.py +0 -10
- package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/cli.py +0 -254
- package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/validator.py +0 -244
- package/tools/vds-scripts/links_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/links_orchestrator/tests/test_cli.py +0 -128
- package/tools/vds-scripts/links_orchestrator/tests/test_validator.py +0 -76
- package/tools/vds-scripts/lsp_orchestrator/.dockerignore +0 -69
- package/tools/vds-scripts/lsp_orchestrator/ARCHITECTURE.md +0 -383
- package/tools/vds-scripts/lsp_orchestrator/CODE_QUALITY_IMPROVEMENTS.md +0 -196
- package/tools/vds-scripts/lsp_orchestrator/COMMANDS.md +0 -870
- package/tools/vds-scripts/lsp_orchestrator/Dockerfile +0 -59
- package/tools/vds-scripts/lsp_orchestrator/IMPLEMENTATION_SUMMARY.md +0 -490
- package/tools/vds-scripts/lsp_orchestrator/LSP_ISSUES_AND_FINDINGS.md +0 -380
- package/tools/vds-scripts/lsp_orchestrator/README.md +0 -616
- package/tools/vds-scripts/lsp_orchestrator/SETUP.md +0 -143
- package/tools/vds-scripts/lsp_orchestrator/TEST_COVERAGE_SUMMARY.md +0 -255
- package/tools/vds-scripts/lsp_orchestrator/VERIFICATION_CHECKLIST.md +0 -814
- package/tools/vds-scripts/lsp_orchestrator/docker-compose.yml +0 -102
- package/tools/vds-scripts/lsp_orchestrator/docs/FOR_LLMS.md +0 -401
- package/tools/vds-scripts/lsp_orchestrator/docs/explanation/lsp-response-matching.md +0 -79
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/automate-with-json.md +0 -159
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/docker-mode.md +0 -256
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/navigate-code.md +0 -116
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/parallel-processing.md +0 -179
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/project-tool-detection.md +0 -320
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/type-check-code.md +0 -46
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/use-daemon-mode.md +0 -78
- package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/wsl2-optimization.md +0 -227
- package/tools/vds-scripts/lsp_orchestrator/docs/index.md +0 -88
- package/tools/vds-scripts/lsp_orchestrator/docs/operator-hover-definition.md +0 -143
- package/tools/vds-scripts/lsp_orchestrator/docs/reference/commands.md +0 -581
- package/tools/vds-scripts/lsp_orchestrator/docs/reference/configuration.md +0 -422
- package/tools/vds-scripts/lsp_orchestrator/docs/tutorials/00-quick-start.md +0 -169
- package/tools/vds-scripts/lsp_orchestrator/pyproject.toml +0 -63
- package/tools/vds-scripts/lsp_orchestrator/src/test_file.py +0 -5
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/__init__.py +0 -3
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/aggregator.py +0 -340
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/basedpyright_runner.py +0 -167
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/cli.py +0 -3370
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/code_actions.py +0 -79
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/core.py +0 -3295
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_client.py +0 -672
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_manager.py +0 -577
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_server.py +0 -1040
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/__init__.py +0 -9
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/project_detector.py +0 -537
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/formatters.py +0 -141
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ipc_protocol.py +0 -225
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_client.py +0 -957
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_router.py +0 -335
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mcp_server.py +0 -181
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/__init__.py +0 -201
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_detector.py +0 -646
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_tools.py +0 -114
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models.py +0 -399
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mypy_runner.py +0 -209
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/protocols.py +0 -52
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_lsp_client.py +0 -109
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_runner.py +0 -44
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/utils.py +0 -959
- package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/workspace_indexer.py +0 -1037
- package/tools/vds-scripts/lsp_orchestrator/test_workspace_lsp.py +0 -6
- package/tools/vds-scripts/lsp_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/lsp_orchestrator/tests/conftest.py +0 -6
- package/tools/vds-scripts/lsp_orchestrator/tests/test_aggregator.py +0 -59
- package/tools/vds-scripts/lsp_orchestrator/tests/test_cli.py +0 -111
- package/tools/vds-scripts/lsp_orchestrator/tests/test_detect_tools_command.py +0 -186
- package/tools/vds-scripts/lsp_orchestrator/tests/test_formatter_linter_detection.py +0 -519
- package/tools/vds-scripts/lsp_orchestrator/tests/test_integration_phase9_10_11.py +0 -367
- package/tools/vds-scripts/lsp_orchestrator/tests/test_mypy_runner.py +0 -482
- package/tools/vds-scripts/lsp_orchestrator/tests/test_package_manager_detection.py +0 -399
- package/tools/vds-scripts/lsp_orchestrator/tests/test_phase10.py +0 -389
- package/tools/vds-scripts/lsp_orchestrator/tests/test_phase11.py +0 -327
- package/tools/vds-scripts/lsp_orchestrator/tests/test_phase12_integration.py +0 -634
- package/tools/vds-scripts/lsp_orchestrator/tests/test_phase9.py +0 -196
- package/tools/vds-scripts/lsp_orchestrator/tests/test_project_detector.py +0 -377
- package/tools/vds-scripts/lsp_orchestrator/tests/test_test_runner_detection.py +0 -549
- package/tools/vds-scripts/lsp_orchestrator/tests/test_type_checker_routing.py +0 -362
- package/tools/vds-scripts/lsp_orchestrator/tests/test_workspace_indexer.py +0 -144
- package/tools/vds-scripts/markdown_orchestrator/README.md +0 -72
- package/tools/vds-scripts/markdown_orchestrator/pyproject.toml +0 -39
- package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/__init__.py +0 -5
- package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/cli.py +0 -102
- package/tools/vds-scripts/multi_agent_orchestrator/Dockerfile +0 -65
- package/tools/vds-scripts/multi_agent_orchestrator/README.md +0 -306
- package/tools/vds-scripts/multi_agent_orchestrator/postman/README.md +0 -264
- package/tools/vds-scripts/multi_agent_orchestrator/postman/TEST_RESULTS_SUMMARY.md +0 -197
- package/tools/vds-scripts/multi_agent_orchestrator/postman/VDS-Multi-Agent-Orchestrator-API.postman_collection.json +0 -1010
- package/tools/vds-scripts/multi_agent_orchestrator/postman/environments/local-development.postman_environment.json +0 -55
- package/tools/vds-scripts/multi_agent_orchestrator/postman/test-results.json +0 -24146
- package/tools/vds-scripts/multi_agent_orchestrator/pyproject.toml +0 -63
- package/tools/vds-scripts/multi_agent_orchestrator/run_api.py +0 -9
- package/tools/vds-scripts/multi_agent_orchestrator/run_mock_api.py +0 -9
- package/tools/vds-scripts/multi_agent_orchestrator/simple_test.py +0 -53
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/__init__.py +0 -25
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/agent_pool.py +0 -433
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/__init__.py +0 -5
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/main.py +0 -722
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/mock_main.py +0 -812
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/change_log.py +0 -515
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/cli.py +0 -424
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/config.py +0 -220
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/conflict_resolver.py +0 -462
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/coordinator.py +0 -627
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/models.py +0 -389
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/progress_dashboard.py +0 -380
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/redis_client.py +0 -245
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/scheduler_subscriber.py +0 -272
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_manager.py +0 -536
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_tracking.py +0 -550
- package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/vds_ai_memory_client.py +0 -352
- package/tools/vds-scripts/multi_agent_orchestrator/test_complete_system.py +0 -149
- package/tools/vds-scripts/multi_agent_orchestrator/test_infrastructure_only.py +0 -194
- package/tools/vds-scripts/multi_agent_orchestrator/test_integration.py +0 -108
- package/tools/vds-scripts/multi_agent_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/multi_agent_orchestrator/tests/test_agent_registration_credential_validator.py +0 -223
- package/tools/vds-scripts/multi_agent_orchestrator/tests/test_config.py +0 -210
- package/tools/vds-scripts/multi_agent_orchestrator/tests/test_models.py +0 -195
- package/tools/vds-scripts/multi_agent_orchestrator/tests/test_w9_agent_routes.py +0 -321
- package/tools/vds-scripts/openapi_orchestrator/README.md +0 -197
- package/tools/vds-scripts/openapi_orchestrator/pyproject.toml +0 -106
- package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/__init__.py +0 -29
- package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/cli.py +0 -345
- package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/full_validator.py +0 -183
- package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/spec_validator.py +0 -197
- package/tools/vds-scripts/openapi_orchestrator/tests/__init__.py +0 -1
- package/tools/vds-scripts/openapi_orchestrator/tests/test_cli.py +0 -234
- package/tools/vds-scripts/openapi_orchestrator/tests/test_full_validator.py +0 -203
- package/tools/vds-scripts/openapi_orchestrator/tests/test_spec_validator.py +0 -295
- package/tools/vds-scripts/pdf_orchestrator/.dockerignore +0 -93
- package/tools/vds-scripts/pdf_orchestrator/.env.example +0 -40
- package/tools/vds-scripts/pdf_orchestrator/.ruff_rules.py +0 -350
- package/tools/vds-scripts/pdf_orchestrator/.yamllint.yml +0 -43
- package/tools/vds-scripts/pdf_orchestrator/DEVELOPMENT_PLAN.md +0 -80
- package/tools/vds-scripts/pdf_orchestrator/Dockerfile +0 -87
- package/tools/vds-scripts/pdf_orchestrator/README.md +0 -608
- package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.md +0 -6
- package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.pdf +0 -0
- package/tools/vds-scripts/pdf_orchestrator/config/alertmanager.yml +0 -83
- package/tools/vds-scripts/pdf_orchestrator/config/prometheus.prod.yml +0 -98
- package/tools/vds-scripts/pdf_orchestrator/config/prometheus.yml +0 -40
- package/tools/vds-scripts/pdf_orchestrator/config/redis.conf +0 -78
- package/tools/vds-scripts/pdf_orchestrator/docs/COMPETITIVE_ANALYSIS_REPORT.md +0 -309
- package/tools/vds-scripts/pdf_orchestrator/docs/FEATURES_GUIDE.md +0 -518
- package/tools/vds-scripts/pdf_orchestrator/docs/MULTI_USER_DEPLOYMENT_GUIDE.md +0 -615
- package/tools/vds-scripts/pdf_orchestrator/docs/USER_GUIDE.md +0 -829
- package/tools/vds-scripts/pdf_orchestrator/pyproject.toml +0 -87
- package/tools/vds-scripts/pdf_orchestrator/pytest.ini +0 -71
- package/tools/vds-scripts/pdf_orchestrator/ruff.toml +0 -6
- package/tools/vds-scripts/pdf_orchestrator/scripts/debug_security_report.py +0 -59
- package/tools/vds-scripts/pdf_orchestrator/scripts/demo_library_selector.py +0 -109
- package/tools/vds-scripts/pdf_orchestrator/scripts/generate_project_stats.py +0 -52
- package/tools/vds-scripts/pdf_orchestrator/scripts/generate_styled_pdf.py +0 -95
- package/tools/vds-scripts/pdf_orchestrator/scripts/migrate_render_pdfs.py +0 -285
- package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.bat +0 -283
- package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.sh +0 -324
- package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/__init__.py +0 -5
- package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/cli.py +0 -542
- package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/config.py +0 -33
- package/tools/vds-scripts/pdf_orchestrator/tests/README.md +0 -650
- package/tools/vds-scripts/pdf_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/pdf_orchestrator/tests/conftest.py +0 -520
- package/tools/vds-scripts/pdf_orchestrator/tests/requirements.txt +0 -51
- package/tools/vds-scripts/pdf_orchestrator/tests/run_tests.py +0 -659
- package/tools/vds-scripts/pdf_orchestrator/tests/test_config.py +0 -36
- package/tools/vds-scripts/progress_report_orchestrator/Dockerfile +0 -77
- package/tools/vds-scripts/progress_report_orchestrator/README.md +0 -39
- package/tools/vds-scripts/progress_report_orchestrator/alembic/env.py +0 -42
- package/tools/vds-scripts/progress_report_orchestrator/alembic/script.py.mako +0 -28
- package/tools/vds-scripts/progress_report_orchestrator/alembic/versions/0001_initial_progress_schema.py +0 -180
- package/tools/vds-scripts/progress_report_orchestrator/alembic.ini +0 -67
- package/tools/vds-scripts/progress_report_orchestrator/pyproject.toml +0 -67
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/__init__.py +0 -3
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/__init__.py +0 -1
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/endpoint_scanner.py +0 -238
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/git_activity.py +0 -159
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/hexagonal.py +0 -100
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/test_scanner.py +0 -136
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/cli.py +0 -743
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/config.py +0 -50
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/__init__.py +0 -12
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/alembic_filters.py +0 -64
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/memory.py +0 -82
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/__init__.py +0 -1
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/analysis.py +0 -84
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/report.py +0 -117
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/topology.py +0 -101
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/__init__.py +0 -1
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/kg_parser.py +0 -252
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/uc_reader.py +0 -159
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/__init__.py +0 -1
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/concurrency.py +0 -39
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/llm_eval.py +0 -570
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/report.py +0 -1256
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/structural.py +0 -384
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/sync.py +0 -143
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/__init__.py +0 -5
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/engine.py +0 -105
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/templates.py +0 -236
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/scheduler_subscriber.py +0 -238
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/README.md +0 -56
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/__init__.py +0 -1
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-architecture-reviewer/SKILL.md +0 -67
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-endpoint-matcher/SKILL.md +0 -67
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/__init__.py +0 -1
- package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/schema.py +0 -625
- package/tools/vds-scripts/progress_report_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/__init__.py +0 -0
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/.gitkeep +0 -0
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/__init__.py +0 -0
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/doc-dependencies.yaml +0 -79
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-docs.yaml +0 -478
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-services.yaml +0 -18
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/registry.yaml +0 -346
- package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/phase3_baseline_standard.md +0 -564
- package/tools/vds-scripts/progress_report_orchestrator/tests/integration/__init__.py +0 -0
- package/tools/vds-scripts/progress_report_orchestrator/tests/integration/test_checkpoint.py +0 -276
- package/tools/vds-scripts/progress_report_orchestrator/tests/test_alembic_migrations.py +0 -265
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/__init__.py +0 -0
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_analyzers.py +0 -267
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_bounded_gather.py +0 -176
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_cli_phase_report.py +0 -119
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_delta.py +0 -169
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_error_handling.py +0 -150
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_gate_exit_codes.py +0 -230
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_git_activity.py +0 -215
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_kg_parser.py +0 -267
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_autodetect.py +0 -183
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_eval.py +0 -529
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_memory_integration.py +0 -151
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_migration_contract.py +0 -254
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_mode_rendering.py +0 -576
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_models.py +0 -251
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_progress_llm_config.py +0 -67
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_recommendations.py +0 -480
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_report_enhancements.py +0 -415
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_resume_reload.py +0 -343
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_trend_regression.py +0 -294
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_uc_reader.py +0 -169
- package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_valence_gap.py +0 -293
- package/tools/vds-scripts/project-cycle-report.json +0 -14
- package/tools/vds-scripts/project-dependency-graph.json +0 -11361
- package/tools/vds-scripts/project-topology.json +0 -99
- package/tools/vds-scripts/public_interface_boundary_orchestrator/pyproject.toml +0 -18
- package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/__init__.py +0 -0
- package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/cli.py +0 -232
- package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/test_cli.py +0 -108
- package/tools/vds-scripts/research_orchestrator/README.md +0 -68
- package/tools/vds-scripts/research_orchestrator/py.typed +0 -0
- package/tools/vds-scripts/research_orchestrator/pyproject.toml +0 -95
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/__init__.py +0 -3
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/_env.py +0 -11
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/cli.py +0 -335
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/config.py +0 -43
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/__init__.py +0 -0
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/models.py +0 -89
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/scoring.py +0 -102
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/exceptions.py +0 -78
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/http_client.py +0 -160
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/logging.py +0 -49
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/__init__.py +0 -0
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/formatters.py +0 -93
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/py.typed +0 -1
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/__init__.py +0 -0
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/build.py +0 -156
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/format.py +0 -147
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/__init__.py +0 -0
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health.py +0 -66
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health_graph.py +0 -52
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/registry.py +0 -127
- package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/search.py +0 -230
- package/tools/vds-scripts/research_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/research_orchestrator/tests/conftest.py +0 -53
- package/tools/vds-scripts/research_orchestrator/tests/test_cli.py +0 -222
- package/tools/vds-scripts/research_orchestrator/tests/test_config.py +0 -23
- package/tools/vds-scripts/research_orchestrator/tests/test_exceptions.py +0 -62
- package/tools/vds-scripts/research_orchestrator/tests/test_formatters.py +0 -89
- package/tools/vds-scripts/research_orchestrator/tests/test_graph_integration.py +0 -149
- package/tools/vds-scripts/research_orchestrator/tests/test_http_client.py +0 -134
- package/tools/vds-scripts/research_orchestrator/tests/test_report_build.py +0 -128
- package/tools/vds-scripts/research_orchestrator/tests/test_report_format.py +0 -91
- package/tools/vds-scripts/research_orchestrator/tests/test_scoring.py +0 -95
- package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/__init__.py +0 -1
- package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_health.py +0 -139
- package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_registry.py +0 -135
- package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_search.py +0 -238
- package/tools/vds-scripts/run-history.json +0 -26
- package/tools/vds-scripts/schema_converter/README.md +0 -109
- package/tools/vds-scripts/schema_converter/pyproject.toml +0 -37
- package/tools/vds-scripts/schema_converter/src/vds_schema_converter/__init__.py +0 -3
- package/tools/vds-scripts/schema_converter/src/vds_schema_converter/cli.py +0 -50
- package/tools/vds-scripts/schema_converter/tests/__init__.py +0 -0
- package/tools/vds-scripts/schema_converter/tests/test_json_schema_generator.py +0 -115
- package/tools/vds-scripts/schema_converter/tests/test_mermaid_generator.py +0 -112
- package/tools/vds-scripts/schema_converter/tests/test_parser.py +0 -111
- package/tools/vds-scripts/schema_converter/tests/test_plantuml_generator.py +0 -112
- package/tools/vds-scripts/schema_converter/tests/test_plantuml_validator.py +0 -69
- package/tools/vds-scripts/schema_converter/tests/test_prisma_generator.py +0 -113
- package/tools/vds-scripts/schema_converter/tests/test_sql_generator.py +0 -138
- package/tools/vds-scripts/schema_converter/tests/test_typeorm_generator.py +0 -110
- package/tools/vds-scripts/schema_converter/tests/test_validators.py +0 -96
- package/tools/vds-scripts/spec_orchestrator/README.md +0 -13
- package/tools/vds-scripts/spec_orchestrator/pyproject.toml +0 -40
- package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/__init__.py +0 -5
- package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/cli.py +0 -162
- package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/core.py +0 -575
- package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/sync.py +0 -306
- package/tools/vds-scripts/spec_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/spec_orchestrator/tests/test_frontmatter_drift.py +0 -243
- package/tools/vds-scripts/spec_orchestrator/tests/test_sync.py +0 -342
- package/tools/vds-scripts/structure_orchestrator/README.md +0 -60
- package/tools/vds-scripts/structure_orchestrator/pyproject.toml +0 -103
- package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/__init__.py +0 -13
- package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/cli.py +0 -308
- package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/validator.py +0 -257
- package/tools/vds-scripts/structure_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/structure_orchestrator/tests/test_cli.py +0 -161
- package/tools/vds-scripts/structure_orchestrator/tests/test_helpers.py +0 -115
- package/tools/vds-scripts/structure_orchestrator/tests/test_validator.py +0 -104
- package/tools/vds-scripts/task_orchestrator/README.md +0 -50
- package/tools/vds-scripts/task_orchestrator/__init__.py +0 -18
- package/tools/vds-scripts/task_orchestrator/pyproject.toml +0 -43
- package/tools/vds-scripts/task_orchestrator/scripts/run_excel_sync.py +0 -36
- package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/__init__.py +0 -13
- package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/audit.py +0 -134
- package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/cli.py +0 -127
- package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/debug.py +0 -133
- package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/normalize.py +0 -113
- package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/refine.py +0 -201
- package/tools/vds-scripts/task_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/task_orchestrator/tests/test_task_orchestrator.py +0 -84
- package/tools/vds-scripts/temp_query_projects.py +0 -2
- package/tools/vds-scripts/test_small.md +0 -1
- package/tools/vds-scripts/text_utils_orchestrator/pyproject.toml +0 -20
- package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/__init__.py +0 -7
- package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/i18n.py +0 -143
- package/tools/vds-scripts/text_utils_orchestrator/tests/__init__.py +0 -0
- package/tools/vds-scripts/text_utils_orchestrator/tests/test_i18n.py +0 -53
- package/tools/vds-scripts/upgrade_major.py +0 -61
- package/tools/vds-scripts/upgrade_major_v2.py +0 -64
- package/tools/vds-scripts/verify_violations.py +0 -57
- package/tools/vds-scripts/workflow-summary.json +0 -325
- package/tools/vds-scripts/workflow-summary.md +0 -8
|
@@ -1,1658 +0,0 @@
|
|
|
1
|
-
"""Tests for Phase 45 runtime protocol profile CLI wiring."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import os
|
|
6
|
-
from pathlib import Path
|
|
7
|
-
|
|
8
|
-
import pytest
|
|
9
|
-
from typer.testing import CliRunner
|
|
10
|
-
from vds_audit_orchestrator import cli
|
|
11
|
-
|
|
12
|
-
runner = CliRunner()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
@pytest.fixture(autouse=True)
|
|
16
|
-
def _clear_legacy_runtime_env(monkeypatch: pytest.MonkeyPatch) -> None:
|
|
17
|
-
"""Isolate runtime profile tests from host ~/.vds/.env legacy values."""
|
|
18
|
-
keys = (
|
|
19
|
-
"VDS_AUDIT_BOOTSTRAP_HOME",
|
|
20
|
-
"VDS_AUDIT_LLM_ENABLED",
|
|
21
|
-
"VDS_AUDIT_LLM_PROTOCOL",
|
|
22
|
-
"VDS_AUDIT_LLM__MODEL_SIMPLE",
|
|
23
|
-
"VDS_AUDIT_LLM__MODEL_STANDARD",
|
|
24
|
-
"VDS_AUDIT_LLM__MODEL_COMPLEX",
|
|
25
|
-
"VDS_AUDIT_LLM__STREAM",
|
|
26
|
-
"VDS_AUDIT_LLM__REASONING_EFFORT",
|
|
27
|
-
"VDS_AUDIT_LLM__API_KEY",
|
|
28
|
-
"VDS_AUDIT_LLM__MAX_TOKENS_PER_REQUEST",
|
|
29
|
-
"VDS_AUDIT_LLM__AGENT_RETRIES",
|
|
30
|
-
"VDS_AUDIT_LLM__OUTPUT_RETRIES",
|
|
31
|
-
"VDS_AUDIT_DSPY_MODEL",
|
|
32
|
-
"VDS_AUDIT_DSPY_PROTOCOL",
|
|
33
|
-
"VDS_AUDIT_DSPY_API_KEY",
|
|
34
|
-
"VDS_AUDIT_DSPY_MAX_TOKENS",
|
|
35
|
-
"VDS_AUDIT_DSPY_TEMPERATURE",
|
|
36
|
-
"VDS_AUDIT_DSPY_BASE_URL",
|
|
37
|
-
"VDS_AUDIT_DSPY_SYSTEM_ROLE_COMPAT",
|
|
38
|
-
"VDS_AUDIT_EMBEDDING__BASE_URL",
|
|
39
|
-
"VDS_AUDIT_EMBEDDING__MODEL",
|
|
40
|
-
"VDS_AUDIT_EMBEDDING__API_KEY",
|
|
41
|
-
"VDS_AUDIT_LLM__BASE_URL",
|
|
42
|
-
"VDS_AUDIT_LLM_PROTOCOL",
|
|
43
|
-
"VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND_OVERRIDE",
|
|
44
|
-
"VDS_AUDIT_ACTIVE_PROFILE",
|
|
45
|
-
"VDS_AUDIT_LLM__AGENT_RUNTIME_MODE",
|
|
46
|
-
"VDS_AUDIT_AGENTIC_TOOL_ALLOWLISTS",
|
|
47
|
-
"VDS_AUDIT_AGENTIC_NON_PROGRESS_POLICY",
|
|
48
|
-
"VDS_AUDIT_AGENTIC_NON_PROGRESS_PRESET",
|
|
49
|
-
"VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_STEPS",
|
|
50
|
-
"VDS_AUDIT_AGENTIC_TOOL_FIRST_TIMEOUT_SECONDS",
|
|
51
|
-
"VDS_AUDIT_AGENTIC_TOOL_FIRST_BUDGET_UNITS",
|
|
52
|
-
"VDS_AUDIT_AGENTIC_SECURITY_TOOL_CALLS_LIMIT",
|
|
53
|
-
"VDS_AUDIT_AGENTIC_STRICT_NO_FALLBACK",
|
|
54
|
-
"VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_ROUTE_TRANSITIONS",
|
|
55
|
-
"VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_ROUTE_TRANSITIONS_PER_PAIR",
|
|
56
|
-
"VDS_AUDIT_LLM__CODE_REVIEW_MAX_TOTAL_CHARS",
|
|
57
|
-
"VDS_AUDIT_AGENTIC_CODE_REVIEW_MAX_TOTAL_CHARS",
|
|
58
|
-
"VDS_AUDIT_LLM__SKILLS_TOOLSET_ENABLED",
|
|
59
|
-
"VDS_AUDIT_AGENTIC_ENABLE_SKILLS_TOOLSET",
|
|
60
|
-
"VDS_AUDIT_AGENTIC_SECURITY_ENABLE_SKILLS_TOOLSET",
|
|
61
|
-
"VDS_AUDIT_AGENTIC_STRICT_REQUIRE_EFFECTIVE_SKILL",
|
|
62
|
-
"VDS_AUDIT_ROW_TIMEOUT_MS",
|
|
63
|
-
"VDS_AUDIT_BATCH_TIMEOUT_MS",
|
|
64
|
-
"VDS_AUDIT_TIMEOUT_POLICY__ROW_PROGRESS_LEASE_SECONDS",
|
|
65
|
-
"VDS_AUDIT_TIMEOUT_POLICY__ROW_STALL_DETECTION_SECONDS",
|
|
66
|
-
"VDS_AUDIT_TIMEOUT_POLICY__ROW_ABSOLUTE_TIMEOUT_MS",
|
|
67
|
-
"VDS_AUDIT_ROW_TIMEOUT_PROGRESS_EXTENSION_ENABLED",
|
|
68
|
-
"VDS_AUDIT_ROW_TIMEOUT_PROGRESS_RETRY_ATTEMPTS",
|
|
69
|
-
"VDS_AUDIT_ROW_TIMEOUT_PROGRESS_EXTENSION_MS",
|
|
70
|
-
"VDS_AUDIT_ROW_TIMEOUT_PROGRESS_MAX_MS",
|
|
71
|
-
"VDS_AUDIT_CLAUDE_AGENT_SDK__SETTING_SOURCES",
|
|
72
|
-
"VDS_AUDIT_CLAUDE_AGENT_SDK__ALLOWED_TOOLS",
|
|
73
|
-
"VDS_AUDIT_CLAUDE_AGENT_SDK__WORKING_DIRECTORY",
|
|
74
|
-
"VDS_AUDIT_CLAUDE_AGENT_SDK__SKILLS_DIRECTORY",
|
|
75
|
-
"VDS_AUDIT_CLAUDE_AGENT_SDK__MCP_CONFIG_PATH",
|
|
76
|
-
"VDS_AUDIT_PROFILE",
|
|
77
|
-
"VDS_AUDIT_AGENTIC_TOOL_TIMEOUT_SEC",
|
|
78
|
-
)
|
|
79
|
-
for key in keys:
|
|
80
|
-
monkeypatch.delenv(key, raising=False)
|
|
81
|
-
monkeypatch.setenv("VDS_AUDIT_BOOTSTRAP_HOME", "false")
|
|
82
|
-
monkeypatch.setenv("VDS_AUDIT_LLM_ENABLED", "false")
|
|
83
|
-
# Pre-set to a small value so load_shared_env inside _core_apply cannot load the
|
|
84
|
-
# host ~/.vds/.env value (120) which would violate the CC-02 coherence constraint
|
|
85
|
-
# when batch_timeout_ms / batch_size (52.5s) < tool_timeout_sec.
|
|
86
|
-
monkeypatch.setenv("VDS_AUDIT_AGENTIC_TOOL_TIMEOUT_SEC", "30")
|
|
87
|
-
yield
|
|
88
|
-
for key in keys:
|
|
89
|
-
monkeypatch.delenv(key, raising=False)
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
def _write_profiles(path: Path) -> None:
|
|
93
|
-
path.write_text(
|
|
94
|
-
"""
|
|
95
|
-
default_profile: openai-default
|
|
96
|
-
profiles:
|
|
97
|
-
openai-default:
|
|
98
|
-
env:
|
|
99
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
100
|
-
model:
|
|
101
|
-
llm:
|
|
102
|
-
simple: gpt-4o-mini
|
|
103
|
-
standard: gpt-4o
|
|
104
|
-
complex: gpt-4.1
|
|
105
|
-
openai-local:
|
|
106
|
-
model:
|
|
107
|
-
llm:
|
|
108
|
-
api_key: sk-llm-profile
|
|
109
|
-
simple: qwen3-coder:8b
|
|
110
|
-
standard: qwen3-coder:30b
|
|
111
|
-
complex: qwen3-coder:32b
|
|
112
|
-
dspy:
|
|
113
|
-
api_key: sk-dspy-profile
|
|
114
|
-
model: openai/qwen3-coder:30b
|
|
115
|
-
max_tokens: 2048
|
|
116
|
-
temperature: 0.1
|
|
117
|
-
embedding:
|
|
118
|
-
base_url: http://localhost:11434
|
|
119
|
-
model: bge-m3:latest
|
|
120
|
-
api_key: sk-embed-profile
|
|
121
|
-
env:
|
|
122
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
123
|
-
VDS_AUDIT_LLM__BASE_URL: http://localhost:11434
|
|
124
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
125
|
-
timeout_policy:
|
|
126
|
-
agent_timeout_seconds: 900
|
|
127
|
-
agent_timeout_max_seconds: 3600
|
|
128
|
-
agent_timeout_extension_seconds: 300
|
|
129
|
-
agent_timeout_extension_attempts: 4
|
|
130
|
-
agent_timeout_heartbeat_seconds: 20
|
|
131
|
-
agent_idle_timeout_seconds: 150
|
|
132
|
-
row_timeout_ms: 60000
|
|
133
|
-
batch_timeout_ms: 420000
|
|
134
|
-
row_progress_lease_seconds: 60
|
|
135
|
-
row_stall_detection_seconds: 30
|
|
136
|
-
row_absolute_timeout_ms: 600000
|
|
137
|
-
row_timeout_progress_extension_enabled: true
|
|
138
|
-
row_timeout_progress_retry_attempts: 2
|
|
139
|
-
row_timeout_progress_extension_ms: 45000
|
|
140
|
-
row_timeout_progress_max_ms: 180000
|
|
141
|
-
skill_policy:
|
|
142
|
-
enabled: true
|
|
143
|
-
directories:
|
|
144
|
-
- /tmp/vds-skills
|
|
145
|
-
allow_script_execution: true
|
|
146
|
-
default_trust_tier: external-verified
|
|
147
|
-
allowed_trust_tiers:
|
|
148
|
-
- internal
|
|
149
|
-
- external-verified
|
|
150
|
-
strict_require_effective_skill: false
|
|
151
|
-
allowlist:
|
|
152
|
-
- safe-skill
|
|
153
|
-
trust_tiers:
|
|
154
|
-
safe-skill: internal
|
|
155
|
-
backend_policy:
|
|
156
|
-
backend: prompt_evaluator
|
|
157
|
-
locked: false
|
|
158
|
-
allow_override: false
|
|
159
|
-
agent_runtime_policy:
|
|
160
|
-
mode: pydanticai
|
|
161
|
-
tool_allowlists:
|
|
162
|
-
code: [grep_search, read_file]
|
|
163
|
-
docs: [search_evidence, read_evidence_document]
|
|
164
|
-
non_progress_policy:
|
|
165
|
-
search_only_burst_min_tool_calls: 5
|
|
166
|
-
search_only_burst_min_search_calls: 4
|
|
167
|
-
search_only_burst_max_read_calls: 0
|
|
168
|
-
gemini:
|
|
169
|
-
model:
|
|
170
|
-
llm:
|
|
171
|
-
simple: gemini-3-pro-high
|
|
172
|
-
standard: gemini-3-pro-high
|
|
173
|
-
complex: gemini-3-pro-high
|
|
174
|
-
dspy:
|
|
175
|
-
model: gemini/gemini-3-pro-high
|
|
176
|
-
base_url: http://127.0.0.1:8045
|
|
177
|
-
system_role_compat: true
|
|
178
|
-
env:
|
|
179
|
-
VDS_AUDIT_LLM_PROTOCOL: gemini
|
|
180
|
-
VDS_AUDIT_LLM__API_KEY: "sk-test"
|
|
181
|
-
VDS_AUDIT_LLM__BASE_URL: "http://127.0.0.1:8045"
|
|
182
|
-
backend_policy:
|
|
183
|
-
backend: prompt_evaluator
|
|
184
|
-
locked: false
|
|
185
|
-
allow_override: false
|
|
186
|
-
agent_runtime_policy:
|
|
187
|
-
mode: pydanticai
|
|
188
|
-
tool_allowlists:
|
|
189
|
-
security: [search_evidence, read_evidence_document]
|
|
190
|
-
non_progress_policy:
|
|
191
|
-
search_only_burst_min_tool_calls: 5
|
|
192
|
-
nvidia-glm-anthropic:
|
|
193
|
-
model:
|
|
194
|
-
llm:
|
|
195
|
-
type: anthropic
|
|
196
|
-
base_url: http://localhost:8082
|
|
197
|
-
api_key: sk-nvidia-anthropic
|
|
198
|
-
stream: false
|
|
199
|
-
agent_stream: false
|
|
200
|
-
model: z-ai/glm5
|
|
201
|
-
dspy:
|
|
202
|
-
type: anthropic
|
|
203
|
-
model: anthropic/z-ai/glm5
|
|
204
|
-
nvidia-glm-anthropic-streaming:
|
|
205
|
-
model:
|
|
206
|
-
llm:
|
|
207
|
-
type: anthropic
|
|
208
|
-
base_url: http://localhost:8082
|
|
209
|
-
api_key: sk-nvidia-anthropic
|
|
210
|
-
stream: true
|
|
211
|
-
agent_stream: true
|
|
212
|
-
model: z-ai/glm5
|
|
213
|
-
dspy:
|
|
214
|
-
type: anthropic
|
|
215
|
-
model: anthropic/z-ai/glm5
|
|
216
|
-
""".strip()
|
|
217
|
-
+ "\n",
|
|
218
|
-
encoding="utf-8",
|
|
219
|
-
)
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
def test_runtime_profile_applies_default_when_no_cli_override(monkeypatch, tmp_path: Path) -> None:
|
|
223
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
224
|
-
_write_profiles(profiles_file)
|
|
225
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
226
|
-
monkeypatch.delenv("VDS_AUDIT_LLM_PROTOCOL", raising=False)
|
|
227
|
-
|
|
228
|
-
result = runner.invoke(cli.app, ["--json-only", "status"])
|
|
229
|
-
assert result.exit_code == 0
|
|
230
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == "openai"
|
|
231
|
-
assert cli._cli_state.get("runtime_profile", {}).get("name") == "openai-default"
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
def test_runtime_profile_cli_override_wins(monkeypatch, tmp_path: Path) -> None:
|
|
235
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
236
|
-
_write_profiles(profiles_file)
|
|
237
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
238
|
-
monkeypatch.delenv("VDS_AUDIT_LLM_PROTOCOL", raising=False)
|
|
239
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__BASE_URL", raising=False)
|
|
240
|
-
|
|
241
|
-
result = runner.invoke(cli.app, ["--profile", "openai-local", "--json-only", "status"])
|
|
242
|
-
assert result.exit_code == 0
|
|
243
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == "openai"
|
|
244
|
-
assert os.environ.get("VDS_AUDIT_LLM__API_KEY") == "sk-llm-profile"
|
|
245
|
-
assert os.environ.get("VDS_AUDIT_LLM__BASE_URL") == "http://localhost:11434"
|
|
246
|
-
assert os.environ.get("VDS_AUDIT_DSPY_API_KEY") == "sk-dspy-profile"
|
|
247
|
-
assert os.environ.get("VDS_AUDIT_EMBEDDING__BASE_URL") == "http://localhost:11434"
|
|
248
|
-
assert os.environ.get("VDS_AUDIT_EMBEDDING__MODEL") == "bge-m3:latest"
|
|
249
|
-
assert os.environ.get("VDS_AUDIT_EMBEDDING__API_KEY") == "sk-embed-profile"
|
|
250
|
-
assert cli._cli_state.get("runtime_profile", {}).get("name") == "openai-local"
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
def test_runtime_profile_invalid_embedding_model_policy_key_fails_fast(monkeypatch, tmp_path: Path) -> None:
|
|
254
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
255
|
-
profiles_file.write_text(
|
|
256
|
-
"""
|
|
257
|
-
profiles:
|
|
258
|
-
broken:
|
|
259
|
-
model:
|
|
260
|
-
embedding:
|
|
261
|
-
base_url: http://localhost:11434
|
|
262
|
-
model: bge-m3
|
|
263
|
-
dimensions: 1024
|
|
264
|
-
""".strip()
|
|
265
|
-
+ "\n",
|
|
266
|
-
encoding="utf-8",
|
|
267
|
-
)
|
|
268
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
269
|
-
|
|
270
|
-
result = runner.invoke(cli.app, ["--profile", "broken", "status"])
|
|
271
|
-
assert result.exit_code != 0
|
|
272
|
-
assert "model.embedding keys" in result.output
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
def test_runtime_profile_structured_model_supports_model_base_url_api_key(monkeypatch, tmp_path: Path) -> None:
|
|
276
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
277
|
-
profiles_file.write_text(
|
|
278
|
-
"""
|
|
279
|
-
profiles:
|
|
280
|
-
protocol-complete:
|
|
281
|
-
model:
|
|
282
|
-
llm:
|
|
283
|
-
type: openai
|
|
284
|
-
base_url: http://localhost:11434
|
|
285
|
-
api_key: sk-llm-complete
|
|
286
|
-
stream: true
|
|
287
|
-
reasoning_effort: HIGH
|
|
288
|
-
model: glm-4.7-flash
|
|
289
|
-
dspy:
|
|
290
|
-
type: anthropic
|
|
291
|
-
base_url: https://chat.example.com
|
|
292
|
-
api_key: sk-dspy-complete
|
|
293
|
-
model: anthropic/claude-sonnet-4-20250514
|
|
294
|
-
embedding:
|
|
295
|
-
base_url: http://localhost:11434
|
|
296
|
-
api_key: sk-embedding-complete
|
|
297
|
-
model: bge-m3
|
|
298
|
-
""".strip()
|
|
299
|
-
+ "\n",
|
|
300
|
-
encoding="utf-8",
|
|
301
|
-
)
|
|
302
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
303
|
-
|
|
304
|
-
result = runner.invoke(cli.app, ["--profile", "protocol-complete", "--json-only", "status"])
|
|
305
|
-
assert result.exit_code == 0
|
|
306
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == "openai"
|
|
307
|
-
assert os.environ.get("VDS_AUDIT_LLM__BASE_URL") == "http://localhost:11434"
|
|
308
|
-
assert os.environ.get("VDS_AUDIT_LLM__API_KEY") == "sk-llm-complete"
|
|
309
|
-
assert os.environ.get("VDS_AUDIT_LLM__STREAM") == "true"
|
|
310
|
-
assert os.environ.get("VDS_AUDIT_LLM__REASONING_EFFORT") == "high"
|
|
311
|
-
assert os.environ.get("VDS_AUDIT_LLM__MODEL_SIMPLE") == "glm-4.7-flash"
|
|
312
|
-
assert os.environ.get("VDS_AUDIT_LLM__MODEL_STANDARD") == "glm-4.7-flash"
|
|
313
|
-
assert os.environ.get("VDS_AUDIT_LLM__MODEL_COMPLEX") == "glm-4.7-flash"
|
|
314
|
-
assert os.environ.get("VDS_AUDIT_DSPY_PROTOCOL") == "anthropic"
|
|
315
|
-
assert os.environ.get("VDS_AUDIT_DSPY_BASE_URL") == "https://chat.example.com"
|
|
316
|
-
assert os.environ.get("VDS_AUDIT_DSPY_API_KEY") == "sk-dspy-complete"
|
|
317
|
-
assert os.environ.get("VDS_AUDIT_DSPY_MODEL") == "anthropic/claude-sonnet-4-20250514"
|
|
318
|
-
assert os.environ.get("VDS_AUDIT_EMBEDDING__BASE_URL") == "http://localhost:11434"
|
|
319
|
-
assert os.environ.get("VDS_AUDIT_EMBEDDING__API_KEY") == "sk-embedding-complete"
|
|
320
|
-
assert os.environ.get("VDS_AUDIT_EMBEDDING__MODEL") == "bge-m3"
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
@pytest.mark.parametrize(
|
|
324
|
-
("profile_name", "expected_protocol", "expected_base_url", "expected_dspy_protocol", "expected_dspy_model"),
|
|
325
|
-
[
|
|
326
|
-
(
|
|
327
|
-
"alibaba-openai",
|
|
328
|
-
"openai",
|
|
329
|
-
"https://coding-intl.dashscope.aliyuncs.com/v1",
|
|
330
|
-
"openai",
|
|
331
|
-
"openai/qwen3.5-plus",
|
|
332
|
-
),
|
|
333
|
-
(
|
|
334
|
-
"alibaba-anthropic",
|
|
335
|
-
"anthropic",
|
|
336
|
-
"https://coding-intl.dashscope.aliyuncs.com/apps/anthropic",
|
|
337
|
-
"anthropic",
|
|
338
|
-
"anthropic/qwen3.5-plus",
|
|
339
|
-
),
|
|
340
|
-
],
|
|
341
|
-
)
|
|
342
|
-
def test_runtime_profile_supports_alibaba_qwen35_baseline_without_reasoning_effort(
|
|
343
|
-
monkeypatch,
|
|
344
|
-
tmp_path: Path,
|
|
345
|
-
profile_name: str,
|
|
346
|
-
expected_protocol: str,
|
|
347
|
-
expected_base_url: str,
|
|
348
|
-
expected_dspy_protocol: str,
|
|
349
|
-
expected_dspy_model: str,
|
|
350
|
-
) -> None:
|
|
351
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
352
|
-
profiles_file.write_text(
|
|
353
|
-
"""
|
|
354
|
-
profiles:
|
|
355
|
-
alibaba-openai:
|
|
356
|
-
model:
|
|
357
|
-
llm:
|
|
358
|
-
type: openai
|
|
359
|
-
base_url: https://coding-intl.dashscope.aliyuncs.com/v1
|
|
360
|
-
api_key: ${ALIBABA_API_KEY}
|
|
361
|
-
simple: qwen3.5-plus
|
|
362
|
-
standard: qwen3.5-plus
|
|
363
|
-
complex: qwen3.5-plus
|
|
364
|
-
dspy:
|
|
365
|
-
type: openai
|
|
366
|
-
model: openai/qwen3.5-plus
|
|
367
|
-
env:
|
|
368
|
-
VDS_AUDIT_LLM_ENABLED: "true"
|
|
369
|
-
VDS_AUDIT_LLM__API_KEY: ${ALIBABA_API_KEY}
|
|
370
|
-
VDS_AUDIT_LLM__MAX_TOKENS_PER_REQUEST: "12000"
|
|
371
|
-
VDS_AUDIT_LLM__AGENT_RETRIES: "2"
|
|
372
|
-
VDS_AUDIT_LLM__OUTPUT_RETRIES: "4"
|
|
373
|
-
|
|
374
|
-
alibaba-anthropic:
|
|
375
|
-
model:
|
|
376
|
-
llm:
|
|
377
|
-
type: anthropic
|
|
378
|
-
base_url: https://coding-intl.dashscope.aliyuncs.com/apps/anthropic
|
|
379
|
-
api_key: ${ALIBABA_API_KEY}
|
|
380
|
-
simple: qwen3.5-plus
|
|
381
|
-
standard: qwen3.5-plus
|
|
382
|
-
complex: qwen3.5-plus
|
|
383
|
-
dspy:
|
|
384
|
-
type: anthropic
|
|
385
|
-
model: anthropic/qwen3.5-plus
|
|
386
|
-
env:
|
|
387
|
-
VDS_AUDIT_LLM_ENABLED: "true"
|
|
388
|
-
VDS_AUDIT_LLM__API_KEY: ${ALIBABA_API_KEY}
|
|
389
|
-
VDS_AUDIT_LLM__MAX_TOKENS_PER_REQUEST: "12000"
|
|
390
|
-
VDS_AUDIT_LLM__AGENT_RETRIES: "2"
|
|
391
|
-
VDS_AUDIT_LLM__OUTPUT_RETRIES: "4"
|
|
392
|
-
""".strip()
|
|
393
|
-
+ "\n",
|
|
394
|
-
encoding="utf-8",
|
|
395
|
-
)
|
|
396
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
397
|
-
monkeypatch.setenv("ALIBABA_API_KEY", "sk-alibaba")
|
|
398
|
-
|
|
399
|
-
result = runner.invoke(cli.app, ["--profile", profile_name, "--json-only", "status"])
|
|
400
|
-
|
|
401
|
-
assert result.exit_code == 0
|
|
402
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == expected_protocol
|
|
403
|
-
assert os.environ.get("VDS_AUDIT_LLM__BASE_URL") == expected_base_url
|
|
404
|
-
assert os.environ.get("VDS_AUDIT_LLM__API_KEY") == "sk-alibaba"
|
|
405
|
-
assert os.environ.get("VDS_AUDIT_LLM_ENABLED") == "true"
|
|
406
|
-
assert os.environ.get("VDS_AUDIT_LLM__MAX_TOKENS_PER_REQUEST") == "12000"
|
|
407
|
-
assert os.environ.get("VDS_AUDIT_LLM__AGENT_RETRIES") == "2"
|
|
408
|
-
assert os.environ.get("VDS_AUDIT_LLM__OUTPUT_RETRIES") == "4"
|
|
409
|
-
assert os.environ.get("VDS_AUDIT_LLM__MODEL_SIMPLE") == "qwen3.5-plus"
|
|
410
|
-
assert os.environ.get("VDS_AUDIT_LLM__MODEL_STANDARD") == "qwen3.5-plus"
|
|
411
|
-
assert os.environ.get("VDS_AUDIT_LLM__MODEL_COMPLEX") == "qwen3.5-plus"
|
|
412
|
-
assert os.environ.get("VDS_AUDIT_DSPY_PROTOCOL") == expected_dspy_protocol
|
|
413
|
-
assert os.environ.get("VDS_AUDIT_DSPY_MODEL") == expected_dspy_model
|
|
414
|
-
assert os.environ.get("VDS_AUDIT_LLM__REASONING_EFFORT") is None
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
def test_runtime_profile_rejects_invalid_llm_reasoning_effort(monkeypatch, tmp_path: Path) -> None:
|
|
418
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
419
|
-
profiles_file.write_text(
|
|
420
|
-
"""
|
|
421
|
-
profiles:
|
|
422
|
-
bad-reasoning:
|
|
423
|
-
model:
|
|
424
|
-
llm:
|
|
425
|
-
type: openai
|
|
426
|
-
base_url: http://localhost:11434
|
|
427
|
-
api_key: sk-llm-complete
|
|
428
|
-
reasoning_effort: extreme
|
|
429
|
-
model: glm-4.7-flash
|
|
430
|
-
""".strip()
|
|
431
|
-
+ "\n",
|
|
432
|
-
encoding="utf-8",
|
|
433
|
-
)
|
|
434
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
435
|
-
|
|
436
|
-
result = runner.invoke(cli.app, ["--profile", "bad-reasoning", "status"])
|
|
437
|
-
assert result.exit_code != 0
|
|
438
|
-
assert "model.llm.reasoning_effort" in result.output
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
@pytest.mark.parametrize(
|
|
442
|
-
("profile_name", "expected_stream", "expected_agent_stream"),
|
|
443
|
-
[
|
|
444
|
-
("nvidia-glm-anthropic", "false", "false"),
|
|
445
|
-
("nvidia-glm-anthropic-streaming", "true", "true"),
|
|
446
|
-
],
|
|
447
|
-
)
|
|
448
|
-
def test_runtime_profile_nvidia_glm_anthropic_stream_mapping(
|
|
449
|
-
monkeypatch,
|
|
450
|
-
tmp_path: Path,
|
|
451
|
-
profile_name: str,
|
|
452
|
-
expected_stream: str,
|
|
453
|
-
expected_agent_stream: str,
|
|
454
|
-
) -> None:
|
|
455
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
456
|
-
_write_profiles(profiles_file)
|
|
457
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
458
|
-
monkeypatch.delenv("VDS_AUDIT_LLM_PROTOCOL", raising=False)
|
|
459
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__BASE_URL", raising=False)
|
|
460
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__STREAM", raising=False)
|
|
461
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__AGENT_STREAM", raising=False)
|
|
462
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__MODEL_SIMPLE", raising=False)
|
|
463
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__MODEL_STANDARD", raising=False)
|
|
464
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__MODEL_COMPLEX", raising=False)
|
|
465
|
-
|
|
466
|
-
result = runner.invoke(cli.app, ["--profile", profile_name, "--json-only", "status"])
|
|
467
|
-
|
|
468
|
-
assert result.exit_code == 0
|
|
469
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == "anthropic"
|
|
470
|
-
assert os.environ.get("VDS_AUDIT_LLM__BASE_URL") == "http://localhost:8082"
|
|
471
|
-
assert os.environ.get("VDS_AUDIT_LLM__STREAM") == expected_stream
|
|
472
|
-
assert os.environ.get("VDS_AUDIT_LLM__AGENT_STREAM") == expected_agent_stream
|
|
473
|
-
assert os.environ.get("VDS_AUDIT_LLM__MODEL_SIMPLE") == "z-ai/glm5"
|
|
474
|
-
assert os.environ.get("VDS_AUDIT_LLM__MODEL_STANDARD") == "z-ai/glm5"
|
|
475
|
-
assert os.environ.get("VDS_AUDIT_LLM__MODEL_COMPLEX") == "z-ai/glm5"
|
|
476
|
-
assert cli._cli_state.get("runtime_profile", {}).get("name") == profile_name
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
def test_runtime_profile_resolves_api_key_from_env_reference(monkeypatch, tmp_path: Path) -> None:
|
|
480
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
481
|
-
profiles_file.write_text(
|
|
482
|
-
"""
|
|
483
|
-
profiles:
|
|
484
|
-
env-key-profile:
|
|
485
|
-
model:
|
|
486
|
-
llm:
|
|
487
|
-
type: openai
|
|
488
|
-
base_url: http://localhost:11434
|
|
489
|
-
api_key: ${TROLLLLM_API_KEY}
|
|
490
|
-
model: glm-4.7-flash
|
|
491
|
-
env:
|
|
492
|
-
VDS_AUDIT_LLM__API_KEY: ${TROLLLLM_API_KEY}
|
|
493
|
-
""".strip()
|
|
494
|
-
+ "\n",
|
|
495
|
-
encoding="utf-8",
|
|
496
|
-
)
|
|
497
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
498
|
-
monkeypatch.setenv("TROLLLLM_API_KEY", "sk-env-ref-123")
|
|
499
|
-
|
|
500
|
-
result = runner.invoke(cli.app, ["--profile", "env-key-profile", "--json-only", "status"])
|
|
501
|
-
|
|
502
|
-
assert result.exit_code == 0
|
|
503
|
-
assert os.environ.get("VDS_AUDIT_LLM__API_KEY") == "sk-env-ref-123"
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
def test_runtime_profile_resolves_env_reference_from_process_env(monkeypatch, tmp_path: Path) -> None:
|
|
507
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
508
|
-
profiles_file.write_text(
|
|
509
|
-
"""
|
|
510
|
-
profiles:
|
|
511
|
-
env-key-profile:
|
|
512
|
-
model:
|
|
513
|
-
llm:
|
|
514
|
-
type: anthropic
|
|
515
|
-
base_url: http://127.0.0.1:8045
|
|
516
|
-
api_key: ${ANTHROPIC_API_KEY}
|
|
517
|
-
model: claude-sonnet-4-20250514
|
|
518
|
-
""".strip()
|
|
519
|
-
+ "\n",
|
|
520
|
-
encoding="utf-8",
|
|
521
|
-
)
|
|
522
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
523
|
-
monkeypatch.setenv("VDS_AUDIT_BOOTSTRAP_HOME", "true")
|
|
524
|
-
monkeypatch.setenv("ANTHROPIC_API_KEY", "sk-from-shared-env")
|
|
525
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__API_KEY", raising=False)
|
|
526
|
-
|
|
527
|
-
result = runner.invoke(cli.app, ["--profile", "env-key-profile", "--json-only", "status"])
|
|
528
|
-
|
|
529
|
-
assert result.exit_code == 0
|
|
530
|
-
assert os.environ.get("VDS_AUDIT_LLM__API_KEY") == "sk-from-shared-env"
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
def test_runtime_profile_missing_env_reference_fails_fast(monkeypatch, tmp_path: Path) -> None:
|
|
534
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
535
|
-
profiles_file.write_text(
|
|
536
|
-
"""
|
|
537
|
-
profiles:
|
|
538
|
-
missing-env-profile:
|
|
539
|
-
model:
|
|
540
|
-
llm:
|
|
541
|
-
type: openai
|
|
542
|
-
base_url: http://localhost:11434
|
|
543
|
-
api_key: ${MISSING_PROFILE_KEY}
|
|
544
|
-
model: glm-4.7-flash
|
|
545
|
-
""".strip()
|
|
546
|
-
+ "\n",
|
|
547
|
-
encoding="utf-8",
|
|
548
|
-
)
|
|
549
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
550
|
-
monkeypatch.delenv("MISSING_PROFILE_KEY", raising=False)
|
|
551
|
-
|
|
552
|
-
result = runner.invoke(cli.app, ["--profile", "missing-env-profile", "status"])
|
|
553
|
-
|
|
554
|
-
assert result.exit_code != 0
|
|
555
|
-
assert "MISSING_PROFILE_KEY" in result.output
|
|
556
|
-
assert "not set or empty" in result.output
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
def test_runtime_profile_gemini_provider_switch(monkeypatch, tmp_path: Path) -> None:
|
|
560
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
561
|
-
_write_profiles(profiles_file)
|
|
562
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
563
|
-
monkeypatch.delenv("VDS_AUDIT_LLM_PROTOCOL", raising=False)
|
|
564
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__API_KEY", raising=False)
|
|
565
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__BASE_URL", raising=False)
|
|
566
|
-
|
|
567
|
-
result = runner.invoke(cli.app, ["--profile", "gemini", "--json-only", "status"])
|
|
568
|
-
assert result.exit_code == 0
|
|
569
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == "gemini"
|
|
570
|
-
assert os.environ.get("VDS_AUDIT_LLM__API_KEY") == "sk-test"
|
|
571
|
-
assert os.environ.get("VDS_AUDIT_LLM__BASE_URL") == "http://127.0.0.1:8045"
|
|
572
|
-
assert os.environ.get("VDS_AUDIT_LLM__MODEL_STANDARD") == "gemini-3-pro-high"
|
|
573
|
-
assert os.environ.get("VDS_AUDIT_DSPY_MODEL") == "gemini/gemini-3-pro-high"
|
|
574
|
-
assert os.environ.get("VDS_AUDIT_DSPY_BASE_URL") == "http://127.0.0.1:8045"
|
|
575
|
-
assert os.environ.get("VDS_AUDIT_DSPY_SYSTEM_ROLE_COMPAT") == "1"
|
|
576
|
-
assert cli._cli_state.get("runtime_profile", {}).get("name") == "gemini"
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
def test_runtime_profile_auto_derives_dspy_model_from_provider_and_standard_tier(monkeypatch, tmp_path: Path) -> None:
|
|
580
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
581
|
-
profiles_file.write_text(
|
|
582
|
-
"""
|
|
583
|
-
profiles:
|
|
584
|
-
openai-derived:
|
|
585
|
-
env:
|
|
586
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
587
|
-
VDS_AUDIT_LLM__API_KEY: sk-test
|
|
588
|
-
model:
|
|
589
|
-
llm:
|
|
590
|
-
simple: gpt-4o-mini
|
|
591
|
-
standard: gpt-4o
|
|
592
|
-
complex: gpt-4.1
|
|
593
|
-
""".strip()
|
|
594
|
-
+ "\n",
|
|
595
|
-
encoding="utf-8",
|
|
596
|
-
)
|
|
597
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
598
|
-
monkeypatch.delenv("VDS_AUDIT_DSPY_MODEL", raising=False)
|
|
599
|
-
|
|
600
|
-
result = runner.invoke(cli.app, ["--profile", "openai-derived", "--json-only", "status"])
|
|
601
|
-
assert result.exit_code == 0
|
|
602
|
-
assert os.environ.get("VDS_AUDIT_DSPY_MODEL") == "openai/gpt-4o"
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
def test_runtime_profile_explicit_dspy_model_wins_over_auto_derivation(monkeypatch, tmp_path: Path) -> None:
|
|
606
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
607
|
-
profiles_file.write_text(
|
|
608
|
-
"""
|
|
609
|
-
profiles:
|
|
610
|
-
openai-explicit:
|
|
611
|
-
env:
|
|
612
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
613
|
-
VDS_AUDIT_LLM__API_KEY: sk-test
|
|
614
|
-
model:
|
|
615
|
-
llm:
|
|
616
|
-
simple: gpt-4o-mini
|
|
617
|
-
standard: gpt-4o
|
|
618
|
-
complex: gpt-4.1
|
|
619
|
-
dspy:
|
|
620
|
-
model: openai/o3-mini
|
|
621
|
-
""".strip()
|
|
622
|
-
+ "\n",
|
|
623
|
-
encoding="utf-8",
|
|
624
|
-
)
|
|
625
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
626
|
-
monkeypatch.delenv("VDS_AUDIT_DSPY_MODEL", raising=False)
|
|
627
|
-
|
|
628
|
-
result = runner.invoke(cli.app, ["--profile", "openai-explicit", "--json-only", "status"])
|
|
629
|
-
assert result.exit_code == 0
|
|
630
|
-
assert os.environ.get("VDS_AUDIT_DSPY_MODEL") == "openai/o3-mini"
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
def test_runtime_profile_split_protocol_does_not_auto_derive_dspy_model(monkeypatch, tmp_path: Path) -> None:
|
|
634
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
635
|
-
profiles_file.write_text(
|
|
636
|
-
"""
|
|
637
|
-
profiles:
|
|
638
|
-
split-protocol:
|
|
639
|
-
model:
|
|
640
|
-
llm:
|
|
641
|
-
simple: qwen3-coder:8b
|
|
642
|
-
standard: qwen3-coder:30b
|
|
643
|
-
complex: qwen3-coder:32b
|
|
644
|
-
dspy:
|
|
645
|
-
type: anthropic
|
|
646
|
-
env:
|
|
647
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
648
|
-
""".strip()
|
|
649
|
-
+ "\n",
|
|
650
|
-
encoding="utf-8",
|
|
651
|
-
)
|
|
652
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
653
|
-
monkeypatch.delenv("VDS_AUDIT_DSPY_MODEL", raising=False)
|
|
654
|
-
|
|
655
|
-
result = runner.invoke(cli.app, ["--profile", "split-protocol", "status"])
|
|
656
|
-
assert result.exit_code != 0
|
|
657
|
-
assert "CC-08 CONFIG_COHERENCE_VIOLATION" in result.output
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
def test_runtime_profile_trollllm_split_protocol_uses_independent_openai_endpoints(monkeypatch, tmp_path: Path) -> None:
|
|
661
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
662
|
-
profiles_file.write_text(
|
|
663
|
-
"""
|
|
664
|
-
profiles:
|
|
665
|
-
trollllm-split:
|
|
666
|
-
env:
|
|
667
|
-
VDS_AUDIT_LLM_ENABLED: "true"
|
|
668
|
-
VDS_AUDIT_LLM__API_KEY: sk-trollllm-test
|
|
669
|
-
model:
|
|
670
|
-
llm:
|
|
671
|
-
type: openai
|
|
672
|
-
base_url: https://chat.trollllm.xyz
|
|
673
|
-
simple: claude-opus-4-6
|
|
674
|
-
standard: claude-opus-4-6
|
|
675
|
-
complex: claude-opus-4-6
|
|
676
|
-
dspy:
|
|
677
|
-
type: openai
|
|
678
|
-
base_url: http://localhost:11434
|
|
679
|
-
model: ollama/glm-4.7-flash
|
|
680
|
-
backend_policy:
|
|
681
|
-
backend: dspy
|
|
682
|
-
""".strip()
|
|
683
|
-
+ "\n",
|
|
684
|
-
encoding="utf-8",
|
|
685
|
-
)
|
|
686
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
687
|
-
monkeypatch.delenv("VDS_AUDIT_LLM_PROTOCOL", raising=False)
|
|
688
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__BASE_URL", raising=False)
|
|
689
|
-
monkeypatch.delenv("VDS_AUDIT_DSPY_PROTOCOL", raising=False)
|
|
690
|
-
monkeypatch.delenv("VDS_AUDIT_DSPY_BASE_URL", raising=False)
|
|
691
|
-
monkeypatch.delenv("VDS_AUDIT_DSPY_MODEL", raising=False)
|
|
692
|
-
|
|
693
|
-
result = runner.invoke(cli.app, ["--profile", "trollllm-split", "--json-only", "status"])
|
|
694
|
-
assert result.exit_code == 0
|
|
695
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == "openai"
|
|
696
|
-
assert os.environ.get("VDS_AUDIT_LLM__BASE_URL") == "https://chat.trollllm.xyz"
|
|
697
|
-
assert os.environ.get("VDS_AUDIT_LLM__API_KEY") == "sk-trollllm-test"
|
|
698
|
-
assert os.environ.get("VDS_AUDIT_DSPY_PROTOCOL") == "openai"
|
|
699
|
-
assert os.environ.get("VDS_AUDIT_DSPY_BASE_URL") == "http://localhost:11434"
|
|
700
|
-
assert os.environ.get("VDS_AUDIT_DSPY_MODEL") == "ollama/glm-4.7-flash"
|
|
701
|
-
assert os.environ.get("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND") == "dspy"
|
|
702
|
-
assert cli._cli_state.get("runtime_profile", {}).get("name") == "trollllm-split"
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
def test_runtime_profile_anthropic_gemini_split_protocol_uses_separate_credentials_and_base_urls(
|
|
706
|
-
monkeypatch, tmp_path: Path
|
|
707
|
-
) -> None:
|
|
708
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
709
|
-
profiles_file.write_text(
|
|
710
|
-
"""
|
|
711
|
-
profiles:
|
|
712
|
-
anthropic-gemini-split:
|
|
713
|
-
env:
|
|
714
|
-
VDS_AUDIT_LLM_ENABLED: "true"
|
|
715
|
-
VDS_AUDIT_LLM__API_KEY: sk-anthropic-test
|
|
716
|
-
VDS_AUDIT_DSPY_API_KEY: sk-gemini-test
|
|
717
|
-
model:
|
|
718
|
-
llm:
|
|
719
|
-
type: anthropic
|
|
720
|
-
base_url: https://api.anthropic.com
|
|
721
|
-
simple: claude-sonnet-4-20250514
|
|
722
|
-
standard: claude-sonnet-4-20250514
|
|
723
|
-
complex: claude-opus-4-20250414
|
|
724
|
-
dspy:
|
|
725
|
-
type: gemini
|
|
726
|
-
base_url: https://generativelanguage.googleapis.com/v1beta
|
|
727
|
-
model: gemini/gemini-2.0-flash
|
|
728
|
-
system_role_compat: true
|
|
729
|
-
backend_policy:
|
|
730
|
-
backend: dspy
|
|
731
|
-
""".strip()
|
|
732
|
-
+ "\n",
|
|
733
|
-
encoding="utf-8",
|
|
734
|
-
)
|
|
735
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
736
|
-
monkeypatch.delenv("VDS_AUDIT_LLM_PROTOCOL", raising=False)
|
|
737
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__BASE_URL", raising=False)
|
|
738
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__API_KEY", raising=False)
|
|
739
|
-
monkeypatch.delenv("VDS_AUDIT_DSPY_PROTOCOL", raising=False)
|
|
740
|
-
monkeypatch.delenv("VDS_AUDIT_DSPY_BASE_URL", raising=False)
|
|
741
|
-
monkeypatch.delenv("VDS_AUDIT_DSPY_API_KEY", raising=False)
|
|
742
|
-
monkeypatch.delenv("VDS_AUDIT_DSPY_MODEL", raising=False)
|
|
743
|
-
|
|
744
|
-
result = runner.invoke(cli.app, ["--profile", "anthropic-gemini-split", "--json-only", "status"])
|
|
745
|
-
assert result.exit_code == 0
|
|
746
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == "anthropic"
|
|
747
|
-
assert os.environ.get("VDS_AUDIT_LLM__BASE_URL") == "https://api.anthropic.com"
|
|
748
|
-
assert os.environ.get("VDS_AUDIT_LLM__API_KEY") == "sk-anthropic-test"
|
|
749
|
-
assert os.environ.get("VDS_AUDIT_DSPY_PROTOCOL") == "gemini"
|
|
750
|
-
assert os.environ.get("VDS_AUDIT_DSPY_BASE_URL") == "https://generativelanguage.googleapis.com/v1beta"
|
|
751
|
-
assert os.environ.get("VDS_AUDIT_DSPY_API_KEY") == "sk-gemini-test"
|
|
752
|
-
assert os.environ.get("VDS_AUDIT_DSPY_MODEL") == "gemini/gemini-2.0-flash"
|
|
753
|
-
assert os.environ.get("VDS_AUDIT_DSPY_SYSTEM_ROLE_COMPAT") == "1"
|
|
754
|
-
assert os.environ.get("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND") == "dspy"
|
|
755
|
-
assert cli._cli_state.get("runtime_profile", {}).get("name") == "anthropic-gemini-split"
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
def test_runtime_profile_fail_fast_on_dspy_provider_model_mismatch(monkeypatch, tmp_path: Path) -> None:
|
|
759
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
760
|
-
profiles_file.write_text(
|
|
761
|
-
"""
|
|
762
|
-
profiles:
|
|
763
|
-
broken:
|
|
764
|
-
env:
|
|
765
|
-
VDS_AUDIT_LLM_PROTOCOL: gemini
|
|
766
|
-
VDS_AUDIT_LLM__API_KEY: sk-test
|
|
767
|
-
model:
|
|
768
|
-
llm:
|
|
769
|
-
simple: gemini-3-pro-high
|
|
770
|
-
standard: gemini-3-pro-high
|
|
771
|
-
complex: gemini-3-pro-high
|
|
772
|
-
dspy:
|
|
773
|
-
model: anthropic/claude-sonnet-4-20250514
|
|
774
|
-
""".strip()
|
|
775
|
-
+ "\n",
|
|
776
|
-
encoding="utf-8",
|
|
777
|
-
)
|
|
778
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
779
|
-
|
|
780
|
-
result = runner.invoke(cli.app, ["--profile", "broken", "status"])
|
|
781
|
-
assert result.exit_code != 0
|
|
782
|
-
assert "incoherent" in result.output
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
def test_runtime_profile_env_override_wins(monkeypatch, tmp_path: Path) -> None:
|
|
786
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
787
|
-
_write_profiles(profiles_file)
|
|
788
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
789
|
-
monkeypatch.setenv("VDS_AUDIT_PROFILE", "openai-local")
|
|
790
|
-
monkeypatch.delenv("VDS_AUDIT_LLM_PROTOCOL", raising=False)
|
|
791
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__BASE_URL", raising=False)
|
|
792
|
-
|
|
793
|
-
result = runner.invoke(cli.app, ["--json-only", "status"])
|
|
794
|
-
assert result.exit_code == 0
|
|
795
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == "openai"
|
|
796
|
-
assert os.environ.get("VDS_AUDIT_LLM__BASE_URL") == "http://localhost:11434"
|
|
797
|
-
assert cli._cli_state.get("runtime_profile", {}).get("name") == "openai-local"
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
def test_runtime_profile_cli_override_replaces_existing_env(monkeypatch, tmp_path: Path) -> None:
|
|
801
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
802
|
-
_write_profiles(profiles_file)
|
|
803
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
804
|
-
monkeypatch.setenv("VDS_AUDIT_LLM_PROTOCOL", "openai")
|
|
805
|
-
|
|
806
|
-
result = runner.invoke(cli.app, ["--profile", "openai-local", "--json-only", "status"])
|
|
807
|
-
assert result.exit_code == 0
|
|
808
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == "openai"
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
def test_runtime_profile_cli_override_allows_explicit_model_and_base_url_under_openai_protocol(
|
|
812
|
-
monkeypatch, tmp_path: Path
|
|
813
|
-
) -> None:
|
|
814
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
815
|
-
_write_profiles(profiles_file)
|
|
816
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
817
|
-
monkeypatch.setenv("VDS_AUDIT_LLM__MODEL_STANDARD", "gemini-3-pro-high")
|
|
818
|
-
monkeypatch.setenv("VDS_AUDIT_DSPY_MODEL", "gemini/gemini-3-pro-high")
|
|
819
|
-
monkeypatch.setenv("VDS_AUDIT_LLM__BASE_URL", "http://127.0.0.1:8045")
|
|
820
|
-
|
|
821
|
-
result = runner.invoke(cli.app, ["--profile", "openai-local", "--json-only", "status"])
|
|
822
|
-
assert result.exit_code == 0
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
def test_runtime_profile_cli_override_allows_prefixed_dspy_model_for_openai_protocol(
|
|
826
|
-
monkeypatch, tmp_path: Path
|
|
827
|
-
) -> None:
|
|
828
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
829
|
-
_write_profiles(profiles_file)
|
|
830
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
831
|
-
monkeypatch.setenv("VDS_AUDIT_DSPY_MODEL", "gemini/gemini-3-pro-high")
|
|
832
|
-
|
|
833
|
-
result = runner.invoke(cli.app, ["--profile", "openai-local", "--json-only", "status"])
|
|
834
|
-
assert result.exit_code == 0
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
def test_runtime_profile_cli_override_preserves_explicit_dspy_temperature(monkeypatch, tmp_path: Path) -> None:
|
|
838
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
839
|
-
_write_profiles(profiles_file)
|
|
840
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
841
|
-
monkeypatch.setenv("VDS_AUDIT_DSPY_TEMPERATURE", "0.7")
|
|
842
|
-
|
|
843
|
-
result = runner.invoke(cli.app, ["--profile", "openai-local", "--json-only", "status"])
|
|
844
|
-
assert result.exit_code == 0
|
|
845
|
-
assert os.environ.get("VDS_AUDIT_DSPY_TEMPERATURE") == "0.7"
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
def test_runtime_profile_default_does_not_override_existing_env(monkeypatch, tmp_path: Path) -> None:
|
|
849
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
850
|
-
_write_profiles(profiles_file)
|
|
851
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
852
|
-
monkeypatch.setenv("VDS_AUDIT_LLM_PROTOCOL", "openai")
|
|
853
|
-
monkeypatch.setenv("VDS_AUDIT_LLM__MODEL_SIMPLE", "existing-simple")
|
|
854
|
-
monkeypatch.setenv("VDS_AUDIT_LLM__MODEL_STANDARD", "existing-standard")
|
|
855
|
-
monkeypatch.setenv("VDS_AUDIT_LLM__MODEL_COMPLEX", "existing-complex")
|
|
856
|
-
|
|
857
|
-
result = runner.invoke(cli.app, ["--json-only", "status"])
|
|
858
|
-
assert result.exit_code == 0
|
|
859
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == "openai"
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
def test_runtime_profile_applies_timeout_policy(monkeypatch, tmp_path: Path) -> None:
|
|
863
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
864
|
-
_write_profiles(profiles_file)
|
|
865
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
866
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_SECONDS", raising=False)
|
|
867
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_MAX_SECONDS", raising=False)
|
|
868
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_EXTENSION_SECONDS", raising=False)
|
|
869
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_EXTENSION_ATTEMPTS", raising=False)
|
|
870
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__AGENT_TIMEOUT_HEARTBEAT_SECONDS", raising=False)
|
|
871
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__AGENT_IDLE_TIMEOUT_SECONDS", raising=False)
|
|
872
|
-
monkeypatch.delenv("VDS_AUDIT_ROW_TIMEOUT_MS", raising=False)
|
|
873
|
-
monkeypatch.delenv("VDS_AUDIT_BATCH_TIMEOUT_MS", raising=False)
|
|
874
|
-
monkeypatch.delenv("VDS_AUDIT_TIMEOUT_POLICY__ROW_PROGRESS_LEASE_SECONDS", raising=False)
|
|
875
|
-
monkeypatch.delenv("VDS_AUDIT_TIMEOUT_POLICY__ROW_STALL_DETECTION_SECONDS", raising=False)
|
|
876
|
-
monkeypatch.delenv("VDS_AUDIT_TIMEOUT_POLICY__ROW_ABSOLUTE_TIMEOUT_MS", raising=False)
|
|
877
|
-
monkeypatch.delenv("VDS_AUDIT_ROW_TIMEOUT_PROGRESS_EXTENSION_ENABLED", raising=False)
|
|
878
|
-
monkeypatch.delenv("VDS_AUDIT_ROW_TIMEOUT_PROGRESS_RETRY_ATTEMPTS", raising=False)
|
|
879
|
-
monkeypatch.delenv("VDS_AUDIT_ROW_TIMEOUT_PROGRESS_EXTENSION_MS", raising=False)
|
|
880
|
-
monkeypatch.delenv("VDS_AUDIT_ROW_TIMEOUT_PROGRESS_MAX_MS", raising=False)
|
|
881
|
-
|
|
882
|
-
result = runner.invoke(cli.app, ["--profile", "openai-local", "--json-only", "status"])
|
|
883
|
-
assert result.exit_code == 0
|
|
884
|
-
assert os.environ.get("VDS_AUDIT_LLM__AGENT_TIMEOUT_SECONDS") == "900.0"
|
|
885
|
-
assert os.environ.get("VDS_AUDIT_LLM__AGENT_TIMEOUT_MAX_SECONDS") == "3600.0"
|
|
886
|
-
assert os.environ.get("VDS_AUDIT_LLM__AGENT_TIMEOUT_EXTENSION_SECONDS") == "300.0"
|
|
887
|
-
assert os.environ.get("VDS_AUDIT_LLM__AGENT_TIMEOUT_EXTENSION_ATTEMPTS") == "4"
|
|
888
|
-
assert os.environ.get("VDS_AUDIT_LLM__AGENT_TIMEOUT_HEARTBEAT_SECONDS") == "20.0"
|
|
889
|
-
assert os.environ.get("VDS_AUDIT_LLM__AGENT_IDLE_TIMEOUT_SECONDS") == "150.0"
|
|
890
|
-
assert os.environ.get("VDS_AUDIT_ROW_TIMEOUT_MS") == "60000"
|
|
891
|
-
assert os.environ.get("VDS_AUDIT_BATCH_TIMEOUT_MS") == "420000"
|
|
892
|
-
assert os.environ.get("VDS_AUDIT_TIMEOUT_POLICY__ROW_PROGRESS_LEASE_SECONDS") == "60"
|
|
893
|
-
assert os.environ.get("VDS_AUDIT_TIMEOUT_POLICY__ROW_STALL_DETECTION_SECONDS") == "30"
|
|
894
|
-
assert os.environ.get("VDS_AUDIT_TIMEOUT_POLICY__ROW_ABSOLUTE_TIMEOUT_MS") == "600000"
|
|
895
|
-
assert os.environ.get("VDS_AUDIT_ROW_TIMEOUT_PROGRESS_EXTENSION_ENABLED") == "1"
|
|
896
|
-
assert os.environ.get("VDS_AUDIT_ROW_TIMEOUT_PROGRESS_RETRY_ATTEMPTS") == "2"
|
|
897
|
-
assert os.environ.get("VDS_AUDIT_ROW_TIMEOUT_PROGRESS_EXTENSION_MS") == "45000"
|
|
898
|
-
assert os.environ.get("VDS_AUDIT_ROW_TIMEOUT_PROGRESS_MAX_MS") == "180000"
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
def test_runtime_profile_missing_name_fails_fast(monkeypatch, tmp_path: Path) -> None:
|
|
902
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
903
|
-
_write_profiles(profiles_file)
|
|
904
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
905
|
-
|
|
906
|
-
result = runner.invoke(cli.app, ["--profile", "missing-profile", "status"])
|
|
907
|
-
assert result.exit_code != 0
|
|
908
|
-
assert "missing-profile" in result.output
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
def test_runtime_profile_invalid_timeout_policy_fails_fast(monkeypatch, tmp_path: Path) -> None:
|
|
912
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
913
|
-
profiles_file.write_text(
|
|
914
|
-
"""
|
|
915
|
-
profiles:
|
|
916
|
-
broken:
|
|
917
|
-
env:
|
|
918
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
919
|
-
timeout_policy:
|
|
920
|
-
agent_timeout_extension_attempts: -1
|
|
921
|
-
""".strip()
|
|
922
|
-
+ "\n",
|
|
923
|
-
encoding="utf-8",
|
|
924
|
-
)
|
|
925
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
926
|
-
|
|
927
|
-
result = runner.invoke(cli.app, ["--profile", "broken", "status"])
|
|
928
|
-
assert result.exit_code != 0
|
|
929
|
-
assert "timeout_policy.agent_timeout_extension_attempts" in result.output
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
def test_runtime_profile_applies_skill_policy(monkeypatch, tmp_path: Path) -> None:
|
|
933
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
934
|
-
_write_profiles(profiles_file)
|
|
935
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
936
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__SKILLS_TOOLSET_ENABLED", raising=False)
|
|
937
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__SKILLS_DIRECTORIES", raising=False)
|
|
938
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__SKILLS_ALLOW_SCRIPT_EXECUTION", raising=False)
|
|
939
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__SKILLS_DEFAULT_TRUST_TIER", raising=False)
|
|
940
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__SKILLS_ALLOWED_TRUST_TIERS", raising=False)
|
|
941
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__SKILLS_ALLOWLIST", raising=False)
|
|
942
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__SKILLS_TRUST_TIERS", raising=False)
|
|
943
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_STRICT_REQUIRE_EFFECTIVE_SKILL", raising=False)
|
|
944
|
-
|
|
945
|
-
result = runner.invoke(cli.app, ["--profile", "openai-local", "--json-only", "status"])
|
|
946
|
-
assert result.exit_code == 0
|
|
947
|
-
assert os.environ.get("VDS_AUDIT_LLM__SKILLS_TOOLSET_ENABLED") == "true"
|
|
948
|
-
import json as _json
|
|
949
|
-
|
|
950
|
-
assert os.environ.get("VDS_AUDIT_LLM__SKILLS_DIRECTORIES") == _json.dumps([os.path.realpath("/tmp/vds-skills")])
|
|
951
|
-
assert os.environ.get("VDS_AUDIT_LLM__SKILLS_ALLOW_SCRIPT_EXECUTION") == "true"
|
|
952
|
-
assert os.environ.get("VDS_AUDIT_LLM__SKILLS_DEFAULT_TRUST_TIER") == "external-verified"
|
|
953
|
-
assert os.environ.get("VDS_AUDIT_LLM__SKILLS_ALLOWED_TRUST_TIERS") == '["internal", "external-verified"]'
|
|
954
|
-
assert os.environ.get("VDS_AUDIT_LLM__SKILLS_ALLOWLIST") == '["safe-skill"]'
|
|
955
|
-
assert os.environ.get("VDS_AUDIT_LLM__SKILLS_TRUST_TIERS") == '{"safe-skill": "internal"}'
|
|
956
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_STRICT_REQUIRE_EFFECTIVE_SKILL") == "false"
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
def test_runtime_profile_cli_override_preserves_explicit_skill_policy_env(monkeypatch, tmp_path: Path) -> None:
|
|
960
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
961
|
-
_write_profiles(profiles_file)
|
|
962
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
963
|
-
monkeypatch.setenv("VDS_AUDIT_AGENTIC_STRICT_REQUIRE_EFFECTIVE_SKILL", "true")
|
|
964
|
-
|
|
965
|
-
result = runner.invoke(cli.app, ["--profile", "openai-local", "--json-only", "status"])
|
|
966
|
-
assert result.exit_code == 0
|
|
967
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_STRICT_REQUIRE_EFFECTIVE_SKILL") == "true"
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
def test_runtime_profile_cli_override_switches_profiles_in_same_process(monkeypatch, tmp_path: Path) -> None:
|
|
971
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
972
|
-
_write_profiles(profiles_file)
|
|
973
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
974
|
-
cli._cli_state.clear()
|
|
975
|
-
|
|
976
|
-
first = runner.invoke(cli.app, ["--profile", "openai-local", "--json-only", "status"])
|
|
977
|
-
assert first.exit_code == 0
|
|
978
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == "openai"
|
|
979
|
-
assert os.environ.get("VDS_AUDIT_LLM__BASE_URL") == "http://localhost:11434"
|
|
980
|
-
assert os.environ.get("VDS_AUDIT_LLM__MODEL_STANDARD") == "qwen3-coder:30b"
|
|
981
|
-
|
|
982
|
-
second = runner.invoke(cli.app, ["--profile", "gemini", "--json-only", "status"])
|
|
983
|
-
assert second.exit_code == 0
|
|
984
|
-
assert os.environ.get("VDS_AUDIT_LLM_PROTOCOL") == "gemini"
|
|
985
|
-
assert os.environ.get("VDS_AUDIT_LLM__BASE_URL") == "http://127.0.0.1:8045"
|
|
986
|
-
assert os.environ.get("VDS_AUDIT_LLM__MODEL_STANDARD") == "gemini-3-pro-high"
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
def test_runtime_profile_invalid_skill_policy_fails_fast(monkeypatch, tmp_path: Path) -> None:
|
|
990
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
991
|
-
profiles_file.write_text(
|
|
992
|
-
"""
|
|
993
|
-
profiles:
|
|
994
|
-
broken:
|
|
995
|
-
env:
|
|
996
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
997
|
-
skill_policy:
|
|
998
|
-
default_trust_tier: unknown-tier
|
|
999
|
-
""".strip()
|
|
1000
|
-
+ "\n",
|
|
1001
|
-
encoding="utf-8",
|
|
1002
|
-
)
|
|
1003
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1004
|
-
|
|
1005
|
-
result = runner.invoke(cli.app, ["--profile", "broken", "status"])
|
|
1006
|
-
assert result.exit_code != 0
|
|
1007
|
-
assert "skill_policy.default_trust_tier" in result.output
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
def test_runtime_profile_invalid_skill_policy_directories_fails_fast(monkeypatch, tmp_path: Path) -> None:
|
|
1011
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1012
|
-
profiles_file.write_text(
|
|
1013
|
-
"""
|
|
1014
|
-
profiles:
|
|
1015
|
-
broken:
|
|
1016
|
-
env:
|
|
1017
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1018
|
-
skill_policy:
|
|
1019
|
-
directories: not-a-list
|
|
1020
|
-
""".strip()
|
|
1021
|
-
+ "\n",
|
|
1022
|
-
encoding="utf-8",
|
|
1023
|
-
)
|
|
1024
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1025
|
-
|
|
1026
|
-
result = runner.invoke(cli.app, ["--profile", "broken", "status"])
|
|
1027
|
-
assert result.exit_code != 0
|
|
1028
|
-
assert "skill_policy.directories" in result.output
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
def test_runtime_profile_applies_backend_policy(monkeypatch, tmp_path: Path) -> None:
|
|
1032
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1033
|
-
_write_profiles(profiles_file)
|
|
1034
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1035
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND", raising=False)
|
|
1036
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND_SOURCE", raising=False)
|
|
1037
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND_LOCKED", raising=False)
|
|
1038
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND_ALLOW_OVERRIDE", raising=False)
|
|
1039
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND_OVERRIDE", raising=False)
|
|
1040
|
-
|
|
1041
|
-
result = runner.invoke(cli.app, ["--profile", "openai-local", "--json-only", "status"])
|
|
1042
|
-
assert result.exit_code == 0
|
|
1043
|
-
assert os.environ.get("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND") == "prompt_evaluator"
|
|
1044
|
-
assert os.environ.get("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND_SOURCE") == "profile"
|
|
1045
|
-
assert os.environ.get("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND_LOCKED") == "false"
|
|
1046
|
-
assert os.environ.get("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND_ALLOW_OVERRIDE") == "false"
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
def test_runtime_profile_applies_agent_runtime_policy(monkeypatch, tmp_path: Path) -> None:
|
|
1050
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1051
|
-
_write_profiles(profiles_file)
|
|
1052
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1053
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__AGENT_RUNTIME_MODE", raising=False)
|
|
1054
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_TOOL_ALLOWLISTS", raising=False)
|
|
1055
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_NON_PROGRESS_POLICY", raising=False)
|
|
1056
|
-
|
|
1057
|
-
result = runner.invoke(cli.app, ["--profile", "openai-local", "--json-only", "status"])
|
|
1058
|
-
assert result.exit_code == 0
|
|
1059
|
-
assert os.environ.get("VDS_AUDIT_LLM__AGENT_RUNTIME_MODE") == "pydanticai"
|
|
1060
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_TOOL_ALLOWLISTS") is not None
|
|
1061
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_NON_PROGRESS_POLICY") is not None
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
def test_runtime_profile_fail_fast_when_pydantic_mode_has_sdk_settings(monkeypatch, tmp_path: Path) -> None:
|
|
1065
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1066
|
-
profiles_file.write_text(
|
|
1067
|
-
"""
|
|
1068
|
-
profiles:
|
|
1069
|
-
mixed:
|
|
1070
|
-
env:
|
|
1071
|
-
VDS_AUDIT_LLM_PROTOCOL: anthropic
|
|
1072
|
-
VDS_AUDIT_LLM__AGENT_RUNTIME_MODE: pydanticai
|
|
1073
|
-
VDS_AUDIT_CLAUDE_AGENT_SDK__SETTING_SOURCES: '["user","project"]'
|
|
1074
|
-
VDS_AUDIT_CLAUDE_AGENT_SDK__ALLOWED_TOOLS: '["Skill"]'
|
|
1075
|
-
VDS_AUDIT_CLAUDE_AGENT_SDK__WORKING_DIRECTORY: /tmp
|
|
1076
|
-
VDS_AUDIT_CLAUDE_AGENT_SDK__SKILLS_DIRECTORY: /tmp
|
|
1077
|
-
""".strip()
|
|
1078
|
-
+ "\n",
|
|
1079
|
-
encoding="utf-8",
|
|
1080
|
-
)
|
|
1081
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1082
|
-
|
|
1083
|
-
result = runner.invoke(cli.app, ["--profile", "mixed", "status"])
|
|
1084
|
-
assert result.exit_code != 0
|
|
1085
|
-
assert "VDS_AUDIT_CLAUDE_AGENT_SDK" in result.output
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
def test_runtime_profile_fail_fast_when_legacy_mode_requested(monkeypatch, tmp_path: Path) -> None:
|
|
1089
|
-
"""FR-37: Legacy runtime mode (claude-agent-sdk) must be rejected at config load."""
|
|
1090
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1091
|
-
profiles_file.write_text(
|
|
1092
|
-
"""
|
|
1093
|
-
profiles:
|
|
1094
|
-
sdk-broken:
|
|
1095
|
-
env:
|
|
1096
|
-
VDS_AUDIT_LLM_PROTOCOL: anthropic
|
|
1097
|
-
VDS_AUDIT_LLM__AGENT_RUNTIME_MODE: claude-agent-sdk
|
|
1098
|
-
""".strip()
|
|
1099
|
-
+ "\n",
|
|
1100
|
-
encoding="utf-8",
|
|
1101
|
-
)
|
|
1102
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1103
|
-
monkeypatch.delenv("VDS_AUDIT_CLAUDE_AGENT_SDK__SETTING_SOURCES", raising=False)
|
|
1104
|
-
monkeypatch.delenv("VDS_AUDIT_CLAUDE_AGENT_SDK__ALLOWED_TOOLS", raising=False)
|
|
1105
|
-
monkeypatch.delenv("VDS_AUDIT_CLAUDE_AGENT_SDK__WORKING_DIRECTORY", raising=False)
|
|
1106
|
-
monkeypatch.delenv("VDS_AUDIT_CLAUDE_AGENT_SDK__SKILLS_DIRECTORY", raising=False)
|
|
1107
|
-
|
|
1108
|
-
result = runner.invoke(cli.app, ["--profile", "sdk-broken", "status"])
|
|
1109
|
-
# FR-37: Hard-cut rejection - invalid mode must fail, not fallback
|
|
1110
|
-
assert result.exit_code != 0
|
|
1111
|
-
# The rejection surfaces as a ValueError exception, not stdout output
|
|
1112
|
-
assert result.exception is not None
|
|
1113
|
-
assert "claude-agent-sdk" in str(result.exception)
|
|
1114
|
-
assert "pydanticai" in str(result.exception)
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
def test_runtime_profile_fail_fast_on_official_anthropic_model_policy_mismatch(monkeypatch, tmp_path: Path) -> None:
|
|
1118
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1119
|
-
profiles_file.write_text(
|
|
1120
|
-
"""
|
|
1121
|
-
profiles:
|
|
1122
|
-
endpoint-mismatch:
|
|
1123
|
-
env:
|
|
1124
|
-
VDS_AUDIT_LLM_PROTOCOL: anthropic
|
|
1125
|
-
VDS_AUDIT_LLM__BASE_URL: https://api.anthropic.com
|
|
1126
|
-
VDS_AUDIT_LLM__MODEL_STANDARD: gpt-4o-mini
|
|
1127
|
-
""".strip()
|
|
1128
|
-
+ "\n",
|
|
1129
|
-
encoding="utf-8",
|
|
1130
|
-
)
|
|
1131
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1132
|
-
|
|
1133
|
-
result = runner.invoke(cli.app, ["--profile", "endpoint-mismatch", "status"])
|
|
1134
|
-
assert result.exit_code != 0
|
|
1135
|
-
assert "Endpoint/model compatibility check failed" in result.output
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
def test_runtime_profile_fail_fast_when_llm_enabled_and_model_tiers_missing(monkeypatch, tmp_path: Path) -> None:
|
|
1139
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1140
|
-
profiles_file.write_text(
|
|
1141
|
-
"""
|
|
1142
|
-
profiles:
|
|
1143
|
-
missing-tiers:
|
|
1144
|
-
env:
|
|
1145
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1146
|
-
VDS_AUDIT_LLM_ENABLED: "true"
|
|
1147
|
-
VDS_AUDIT_LLM__API_KEY: sk-test
|
|
1148
|
-
VDS_AUDIT_LLM__MODEL_SIMPLE: "__VDS_MODEL_REQUIRED__"
|
|
1149
|
-
VDS_AUDIT_LLM__MODEL_STANDARD: "__VDS_MODEL_REQUIRED__"
|
|
1150
|
-
VDS_AUDIT_LLM__MODEL_COMPLEX: "__VDS_MODEL_REQUIRED__"
|
|
1151
|
-
""".strip()
|
|
1152
|
-
+ "\n",
|
|
1153
|
-
encoding="utf-8",
|
|
1154
|
-
)
|
|
1155
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1156
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__MODEL_SIMPLE", raising=False)
|
|
1157
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__MODEL_STANDARD", raising=False)
|
|
1158
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__MODEL_COMPLEX", raising=False)
|
|
1159
|
-
|
|
1160
|
-
result = runner.invoke(cli.app, ["--profile", "missing-tiers", "status"])
|
|
1161
|
-
assert result.exit_code != 0
|
|
1162
|
-
assert "LLM model tier configuration is required when LLM is enabled" in result.output
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
def test_runtime_profile_backend_policy_override_request(monkeypatch, tmp_path: Path) -> None:
|
|
1166
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1167
|
-
profiles_file.write_text(
|
|
1168
|
-
"""
|
|
1169
|
-
profiles:
|
|
1170
|
-
open:
|
|
1171
|
-
env:
|
|
1172
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1173
|
-
backend_policy:
|
|
1174
|
-
backend: prompt_evaluator
|
|
1175
|
-
allow_override: true
|
|
1176
|
-
""".strip()
|
|
1177
|
-
+ "\n",
|
|
1178
|
-
encoding="utf-8",
|
|
1179
|
-
)
|
|
1180
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1181
|
-
monkeypatch.setenv("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND_OVERRIDE", "dspy")
|
|
1182
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND", raising=False)
|
|
1183
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND_SOURCE", raising=False)
|
|
1184
|
-
|
|
1185
|
-
result = runner.invoke(cli.app, ["--profile", "open", "--json-only", "status"])
|
|
1186
|
-
assert result.exit_code == 0
|
|
1187
|
-
assert os.environ.get("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND") == "dspy"
|
|
1188
|
-
assert os.environ.get("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND_SOURCE") == "override_request"
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
def test_runtime_profile_backend_policy_locked_rejects_override_request(monkeypatch, tmp_path: Path) -> None:
|
|
1192
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1193
|
-
profiles_file.write_text(
|
|
1194
|
-
"""
|
|
1195
|
-
profiles:
|
|
1196
|
-
locked:
|
|
1197
|
-
env:
|
|
1198
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1199
|
-
backend_policy:
|
|
1200
|
-
backend: prompt_evaluator
|
|
1201
|
-
locked: true
|
|
1202
|
-
""".strip()
|
|
1203
|
-
+ "\n",
|
|
1204
|
-
encoding="utf-8",
|
|
1205
|
-
)
|
|
1206
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1207
|
-
monkeypatch.setenv("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND_OVERRIDE", "dspy")
|
|
1208
|
-
|
|
1209
|
-
result = runner.invoke(cli.app, ["--profile", "locked", "status"])
|
|
1210
|
-
assert result.exit_code != 0
|
|
1211
|
-
assert "ROW_EVALUATION_BACKEND_OVERRIDE" in result.output
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
def test_runtime_profile_backend_policy_invalid_backend_fails_fast(monkeypatch, tmp_path: Path) -> None:
|
|
1215
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1216
|
-
profiles_file.write_text(
|
|
1217
|
-
"""
|
|
1218
|
-
profiles:
|
|
1219
|
-
broken:
|
|
1220
|
-
backend_policy:
|
|
1221
|
-
backend: invalid-backend
|
|
1222
|
-
""".strip()
|
|
1223
|
-
+ "\n",
|
|
1224
|
-
encoding="utf-8",
|
|
1225
|
-
)
|
|
1226
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1227
|
-
|
|
1228
|
-
result = runner.invoke(cli.app, ["--profile", "broken", "status"])
|
|
1229
|
-
assert result.exit_code != 0
|
|
1230
|
-
assert "backend_policy.backend" in result.output
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
def test_runtime_profile_backend_policy_anthropic_direct_rejected(monkeypatch, tmp_path: Path) -> None:
|
|
1234
|
-
"""FR-37: anthropic-direct backend must be rejected at profile validation (hard-cut)."""
|
|
1235
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1236
|
-
profiles_file.write_text(
|
|
1237
|
-
"""
|
|
1238
|
-
profiles:
|
|
1239
|
-
legacy-anthropic:
|
|
1240
|
-
backend_policy:
|
|
1241
|
-
backend: anthropic-direct
|
|
1242
|
-
""".strip()
|
|
1243
|
-
+ "\n",
|
|
1244
|
-
encoding="utf-8",
|
|
1245
|
-
)
|
|
1246
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1247
|
-
|
|
1248
|
-
result = runner.invoke(cli.app, ["--profile", "legacy-anthropic", "status"])
|
|
1249
|
-
assert result.exit_code != 0
|
|
1250
|
-
assert "backend_policy.backend" in result.output
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
def test_runtime_profile_agent_runtime_policy_invalid_mode_fails_fast(monkeypatch, tmp_path: Path) -> None:
|
|
1254
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1255
|
-
profiles_file.write_text(
|
|
1256
|
-
"""
|
|
1257
|
-
profiles:
|
|
1258
|
-
broken:
|
|
1259
|
-
agent_runtime_policy:
|
|
1260
|
-
mode: unsupported
|
|
1261
|
-
""".strip()
|
|
1262
|
-
+ "\n",
|
|
1263
|
-
encoding="utf-8",
|
|
1264
|
-
)
|
|
1265
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1266
|
-
|
|
1267
|
-
result = runner.invoke(cli.app, ["--profile", "broken", "status"])
|
|
1268
|
-
assert result.exit_code != 0
|
|
1269
|
-
assert "agent_runtime_policy.mode" in result.output
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
def test_runtime_profile_agent_runtime_policy_invalid_allowlist_fails_fast(monkeypatch, tmp_path: Path) -> None:
|
|
1273
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1274
|
-
profiles_file.write_text(
|
|
1275
|
-
"""
|
|
1276
|
-
profiles:
|
|
1277
|
-
broken:
|
|
1278
|
-
env:
|
|
1279
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1280
|
-
agent_runtime_policy:
|
|
1281
|
-
mode: pydanticai
|
|
1282
|
-
tool_allowlists:
|
|
1283
|
-
docs: [search_evidence, ""]
|
|
1284
|
-
""".strip()
|
|
1285
|
-
+ "\n",
|
|
1286
|
-
encoding="utf-8",
|
|
1287
|
-
)
|
|
1288
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1289
|
-
|
|
1290
|
-
result = runner.invoke(cli.app, ["--profile", "broken", "status"])
|
|
1291
|
-
assert result.exit_code != 0
|
|
1292
|
-
assert "agent_runtime_policy.tool_allowlists.docs[1]" in result.output
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
def test_project_profile_flag_renamed_in_command_help() -> None:
|
|
1296
|
-
result = runner.invoke(cli.app, ["analyze-template", "--help"])
|
|
1297
|
-
assert result.exit_code == 0
|
|
1298
|
-
assert "--project-profile" in result.output
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
def test_normalize_run_parameters_injects_runtime_profile_and_mode(monkeypatch) -> None:
|
|
1302
|
-
cli._cli_state["runtime_profile"] = {"name": "openai-local"}
|
|
1303
|
-
|
|
1304
|
-
class _RuntimeMode:
|
|
1305
|
-
value = "pydanticai"
|
|
1306
|
-
|
|
1307
|
-
class _LlmConfig:
|
|
1308
|
-
agent_runtime_mode = _RuntimeMode()
|
|
1309
|
-
|
|
1310
|
-
class _Config:
|
|
1311
|
-
llm = _LlmConfig()
|
|
1312
|
-
|
|
1313
|
-
monkeypatch.setattr(cli, "get_config", _Config)
|
|
1314
|
-
|
|
1315
|
-
normalized = cli._normalize_run_parameters({"command": "workflow"})
|
|
1316
|
-
assert normalized["runtime_profile"] == "openai-local"
|
|
1317
|
-
assert normalized["agent_runtime_mode"] == "pydanticai"
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
def test_runtime_profile_supports_agentic_non_progress_preset(monkeypatch, tmp_path: Path) -> None:
|
|
1321
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1322
|
-
profiles_file.write_text(
|
|
1323
|
-
"""
|
|
1324
|
-
profiles:
|
|
1325
|
-
preset-profile:
|
|
1326
|
-
env:
|
|
1327
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1328
|
-
VDS_AUDIT_LLM__API_KEY: sk-test
|
|
1329
|
-
model:
|
|
1330
|
-
llm:
|
|
1331
|
-
simple: gpt-4o-mini
|
|
1332
|
-
standard: gpt-4o
|
|
1333
|
-
complex: gpt-4.1
|
|
1334
|
-
agentic:
|
|
1335
|
-
non_progress_preset: permissive
|
|
1336
|
-
""".strip()
|
|
1337
|
-
+ "\n",
|
|
1338
|
-
encoding="utf-8",
|
|
1339
|
-
)
|
|
1340
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1341
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_NON_PROGRESS_PRESET", raising=False)
|
|
1342
|
-
|
|
1343
|
-
result = runner.invoke(cli.app, ["--profile", "preset-profile", "--json-only", "status"])
|
|
1344
|
-
assert result.exit_code == 0
|
|
1345
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_NON_PROGRESS_PRESET") == "permissive"
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
def test_cli_non_progress_preset_overrides_profile(monkeypatch, tmp_path: Path) -> None:
|
|
1349
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1350
|
-
profiles_file.write_text(
|
|
1351
|
-
"""
|
|
1352
|
-
profiles:
|
|
1353
|
-
preset-profile:
|
|
1354
|
-
env:
|
|
1355
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1356
|
-
VDS_AUDIT_LLM__API_KEY: sk-test
|
|
1357
|
-
model:
|
|
1358
|
-
llm:
|
|
1359
|
-
simple: gpt-4o-mini
|
|
1360
|
-
standard: gpt-4o
|
|
1361
|
-
complex: gpt-4.1
|
|
1362
|
-
agentic:
|
|
1363
|
-
non_progress_preset: strict
|
|
1364
|
-
""".strip()
|
|
1365
|
-
+ "\n",
|
|
1366
|
-
encoding="utf-8",
|
|
1367
|
-
)
|
|
1368
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1369
|
-
|
|
1370
|
-
result = runner.invoke(
|
|
1371
|
-
cli.app,
|
|
1372
|
-
["--profile", "preset-profile", "--non-progress-preset", "permissive", "--json-only", "status"],
|
|
1373
|
-
)
|
|
1374
|
-
assert result.exit_code == 0
|
|
1375
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_NON_PROGRESS_PRESET") == "permissive"
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
def test_runtime_profile_fails_fast_on_coherence_violation(monkeypatch, tmp_path: Path) -> None:
|
|
1379
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1380
|
-
profiles_file.write_text(
|
|
1381
|
-
"""
|
|
1382
|
-
profiles:
|
|
1383
|
-
incoherent:
|
|
1384
|
-
env:
|
|
1385
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1386
|
-
VDS_AUDIT_LLM__API_KEY: sk-test
|
|
1387
|
-
VDS_AUDIT_LLM__MODEL_SIMPLE: gpt-4o-mini
|
|
1388
|
-
VDS_AUDIT_LLM__MODEL_STANDARD: gpt-4o
|
|
1389
|
-
VDS_AUDIT_LLM__MODEL_COMPLEX: gpt-4.1
|
|
1390
|
-
VDS_AUDIT_AGENTIC_NON_PROGRESS_POLICY: '{"high_repeat_min_tool_calls": 4, "fallback_single_tool_min_tool_calls": 6}'
|
|
1391
|
-
""".strip()
|
|
1392
|
-
+ "\n",
|
|
1393
|
-
encoding="utf-8",
|
|
1394
|
-
)
|
|
1395
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1396
|
-
|
|
1397
|
-
result = runner.invoke(cli.app, ["--profile", "incoherent", "status"])
|
|
1398
|
-
assert result.exit_code != 0
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
# ── Agentic tool-first scalar policy tests ─────────────────────────
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
def test_runtime_profile_supports_agentic_tool_first_max_steps(monkeypatch, tmp_path: Path) -> None:
|
|
1405
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1406
|
-
profiles_file.write_text(
|
|
1407
|
-
"""
|
|
1408
|
-
profiles:
|
|
1409
|
-
steps-profile:
|
|
1410
|
-
env:
|
|
1411
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1412
|
-
VDS_AUDIT_LLM__API_KEY: sk-test
|
|
1413
|
-
model:
|
|
1414
|
-
llm:
|
|
1415
|
-
simple: gpt-4o-mini
|
|
1416
|
-
standard: gpt-4o
|
|
1417
|
-
complex: gpt-4.1
|
|
1418
|
-
agentic:
|
|
1419
|
-
tool_first_max_steps: 25
|
|
1420
|
-
tool_first_timeout_seconds: 30.0
|
|
1421
|
-
tool_first_budget_units: 40
|
|
1422
|
-
""".strip()
|
|
1423
|
-
+ "\n",
|
|
1424
|
-
encoding="utf-8",
|
|
1425
|
-
)
|
|
1426
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1427
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_STEPS", raising=False)
|
|
1428
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_TOOL_FIRST_TIMEOUT_SECONDS", raising=False)
|
|
1429
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_TOOL_FIRST_BUDGET_UNITS", raising=False)
|
|
1430
|
-
|
|
1431
|
-
result = runner.invoke(cli.app, ["--profile", "steps-profile", "--json-only", "status"])
|
|
1432
|
-
assert result.exit_code == 0
|
|
1433
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_STEPS") == "25"
|
|
1434
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_TOOL_FIRST_TIMEOUT_SECONDS") == "30.0"
|
|
1435
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_TOOL_FIRST_BUDGET_UNITS") == "40"
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
def test_runtime_profile_agentic_tool_first_out_of_range_fails(monkeypatch, tmp_path: Path) -> None:
|
|
1439
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1440
|
-
profiles_file.write_text(
|
|
1441
|
-
"""
|
|
1442
|
-
profiles:
|
|
1443
|
-
bad-steps:
|
|
1444
|
-
env:
|
|
1445
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1446
|
-
VDS_AUDIT_LLM__API_KEY: sk-test
|
|
1447
|
-
model:
|
|
1448
|
-
llm:
|
|
1449
|
-
simple: gpt-4o-mini
|
|
1450
|
-
standard: gpt-4o
|
|
1451
|
-
complex: gpt-4.1
|
|
1452
|
-
agentic:
|
|
1453
|
-
tool_first_max_steps: 999
|
|
1454
|
-
""".strip()
|
|
1455
|
-
+ "\n",
|
|
1456
|
-
encoding="utf-8",
|
|
1457
|
-
)
|
|
1458
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1459
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_STEPS", raising=False)
|
|
1460
|
-
|
|
1461
|
-
result = runner.invoke(cli.app, ["--profile", "bad-steps", "status"])
|
|
1462
|
-
assert result.exit_code != 0
|
|
1463
|
-
assert "out-of-range" in result.output
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
def test_runtime_profile_env_var_overrides_agentic_tool_first(monkeypatch, tmp_path: Path) -> None:
|
|
1467
|
-
"""Process env var wins over default profile YAML value (force_override=False)."""
|
|
1468
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1469
|
-
profiles_file.write_text(
|
|
1470
|
-
"""
|
|
1471
|
-
default_profile: steps-profile
|
|
1472
|
-
profiles:
|
|
1473
|
-
steps-profile:
|
|
1474
|
-
env:
|
|
1475
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1476
|
-
VDS_AUDIT_LLM__API_KEY: sk-test
|
|
1477
|
-
model:
|
|
1478
|
-
llm:
|
|
1479
|
-
simple: gpt-4o-mini
|
|
1480
|
-
standard: gpt-4o
|
|
1481
|
-
complex: gpt-4.1
|
|
1482
|
-
agentic:
|
|
1483
|
-
tool_first_max_steps: 25
|
|
1484
|
-
""".strip()
|
|
1485
|
-
+ "\n",
|
|
1486
|
-
encoding="utf-8",
|
|
1487
|
-
)
|
|
1488
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1489
|
-
# Pre-set the env var — it should win over default profile value
|
|
1490
|
-
monkeypatch.setenv("VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_STEPS", "10")
|
|
1491
|
-
|
|
1492
|
-
result = runner.invoke(cli.app, ["--json-only", "status"])
|
|
1493
|
-
assert result.exit_code == 0
|
|
1494
|
-
# Env var wins over default profile (force_override=False)
|
|
1495
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_STEPS") == "10"
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
def test_runtime_profile_supports_agentic_security_tool_calls_limit(monkeypatch, tmp_path: Path) -> None:
|
|
1499
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1500
|
-
profiles_file.write_text(
|
|
1501
|
-
"""
|
|
1502
|
-
profiles:
|
|
1503
|
-
security-budget:
|
|
1504
|
-
env:
|
|
1505
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1506
|
-
VDS_AUDIT_LLM__API_KEY: sk-test
|
|
1507
|
-
model:
|
|
1508
|
-
llm:
|
|
1509
|
-
simple: gpt-4o-mini
|
|
1510
|
-
standard: gpt-4o
|
|
1511
|
-
complex: gpt-4.1
|
|
1512
|
-
agentic:
|
|
1513
|
-
security_tool_calls_limit: 11
|
|
1514
|
-
""".strip()
|
|
1515
|
-
+ "\n",
|
|
1516
|
-
encoding="utf-8",
|
|
1517
|
-
)
|
|
1518
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1519
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_SECURITY_TOOL_CALLS_LIMIT", raising=False)
|
|
1520
|
-
|
|
1521
|
-
result = runner.invoke(cli.app, ["--profile", "security-budget", "--json-only", "status"])
|
|
1522
|
-
assert result.exit_code == 0
|
|
1523
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_SECURITY_TOOL_CALLS_LIMIT") == "11"
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
def test_runtime_profile_supports_agentic_tool_calls_limit_zero_sentinel(monkeypatch, tmp_path: Path) -> None:
|
|
1527
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1528
|
-
profiles_file.write_text(
|
|
1529
|
-
"""
|
|
1530
|
-
profiles:
|
|
1531
|
-
zero-budget:
|
|
1532
|
-
env:
|
|
1533
|
-
VDS_AUDIT_LLM_PROTOCOL: openai
|
|
1534
|
-
VDS_AUDIT_LLM__API_KEY: sk-test
|
|
1535
|
-
model:
|
|
1536
|
-
llm:
|
|
1537
|
-
simple: gpt-4o-mini
|
|
1538
|
-
standard: gpt-4o
|
|
1539
|
-
complex: gpt-4.1
|
|
1540
|
-
agentic:
|
|
1541
|
-
tool_calls_limit: 0
|
|
1542
|
-
""".strip()
|
|
1543
|
-
+ "\n",
|
|
1544
|
-
encoding="utf-8",
|
|
1545
|
-
)
|
|
1546
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1547
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_TOOL_CALLS_LIMIT", raising=False)
|
|
1548
|
-
|
|
1549
|
-
result = runner.invoke(cli.app, ["--profile", "zero-budget", "--json-only", "status"])
|
|
1550
|
-
assert result.exit_code == 0
|
|
1551
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_TOOL_CALLS_LIMIT") == "0"
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
def test_runtime_profile_supports_agentic_strict_no_fallback_route_caps_and_code_review_budget(
|
|
1555
|
-
monkeypatch, tmp_path: Path
|
|
1556
|
-
) -> None:
|
|
1557
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1558
|
-
profiles_file.write_text(
|
|
1559
|
-
"""
|
|
1560
|
-
profiles:
|
|
1561
|
-
codex-policy:
|
|
1562
|
-
model:
|
|
1563
|
-
llm:
|
|
1564
|
-
type: openai-codex
|
|
1565
|
-
base_url: https://chatgpt.com/backend-api/codex
|
|
1566
|
-
api_key: sk-codex
|
|
1567
|
-
simple: gpt-5.3-codex
|
|
1568
|
-
standard: gpt-5.3-codex
|
|
1569
|
-
complex: gpt-5.3-codex
|
|
1570
|
-
code_review_max_total_chars: 210000
|
|
1571
|
-
agentic:
|
|
1572
|
-
strict_no_fallback: true
|
|
1573
|
-
tool_first_max_route_transitions: 6
|
|
1574
|
-
tool_first_max_route_transitions_per_pair: 2
|
|
1575
|
-
""".strip()
|
|
1576
|
-
+ "\n",
|
|
1577
|
-
encoding="utf-8",
|
|
1578
|
-
)
|
|
1579
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1580
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_STRICT_NO_FALLBACK", raising=False)
|
|
1581
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_ROUTE_TRANSITIONS", raising=False)
|
|
1582
|
-
monkeypatch.delenv("VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_ROUTE_TRANSITIONS_PER_PAIR", raising=False)
|
|
1583
|
-
monkeypatch.delenv("VDS_AUDIT_LLM__CODE_REVIEW_MAX_TOTAL_CHARS", raising=False)
|
|
1584
|
-
|
|
1585
|
-
result = runner.invoke(cli.app, ["--profile", "codex-policy", "--json-only", "status"])
|
|
1586
|
-
assert result.exit_code == 0
|
|
1587
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_STRICT_NO_FALLBACK") == "true"
|
|
1588
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_ROUTE_TRANSITIONS") == "6"
|
|
1589
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_ROUTE_TRANSITIONS_PER_PAIR") == "2"
|
|
1590
|
-
assert os.environ.get("VDS_AUDIT_LLM__CODE_REVIEW_MAX_TOTAL_CHARS") == "210000"
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
def test_codex_chatgpt_profile_applies_deterministic_baseline_defaults(monkeypatch, tmp_path: Path) -> None:
|
|
1594
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1595
|
-
profiles_file.write_text(
|
|
1596
|
-
"""
|
|
1597
|
-
profiles:
|
|
1598
|
-
codex-chatgpt:
|
|
1599
|
-
model:
|
|
1600
|
-
llm:
|
|
1601
|
-
type: openai-codex
|
|
1602
|
-
base_url: https://chatgpt.com/backend-api/codex
|
|
1603
|
-
api_key: sk-codex
|
|
1604
|
-
simple: gpt-5.3-codex
|
|
1605
|
-
standard: gpt-5.3-codex
|
|
1606
|
-
complex: gpt-5.3-codex
|
|
1607
|
-
dspy:
|
|
1608
|
-
type: openai
|
|
1609
|
-
model: openai/gpt-5.3-codex
|
|
1610
|
-
""".strip()
|
|
1611
|
-
+ "\n",
|
|
1612
|
-
encoding="utf-8",
|
|
1613
|
-
)
|
|
1614
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1615
|
-
|
|
1616
|
-
result = runner.invoke(cli.app, ["--profile", "codex-chatgpt", "--json-only", "status"])
|
|
1617
|
-
assert result.exit_code == 0
|
|
1618
|
-
assert os.environ.get("VDS_AUDIT_LLM__SKILLS_TOOLSET_ENABLED") == "false"
|
|
1619
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_ENABLE_SKILLS_TOOLSET") == "false"
|
|
1620
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_SECURITY_ENABLE_SKILLS_TOOLSET") == "false"
|
|
1621
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_STRICT_REQUIRE_EFFECTIVE_SKILL") == "false"
|
|
1622
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_STRICT_NO_FALLBACK") == "true"
|
|
1623
|
-
assert os.environ.get("VDS_AUDIT_LLM__ROW_EVALUATION_BACKEND") == "prompt_evaluator"
|
|
1624
|
-
assert os.environ.get("VDS_AUDIT_LLM__AGENT_RETRIES") == "2"
|
|
1625
|
-
assert os.environ.get("VDS_AUDIT_LLM__OUTPUT_RETRIES") == "4"
|
|
1626
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_ROUTE_TRANSITIONS") == "6"
|
|
1627
|
-
assert os.environ.get("VDS_AUDIT_AGENTIC_TOOL_FIRST_MAX_ROUTE_TRANSITIONS_PER_PAIR") == "2"
|
|
1628
|
-
assert os.environ.get("VDS_AUDIT_LLM__CODE_REVIEW_MAX_TOTAL_CHARS") == "200000"
|
|
1629
|
-
assert os.environ.get("VDS_AUDIT_DSPY_BASE_URL") is None
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
def test_codex_chatgpt_profile_keeps_explicit_overrides_over_baseline_defaults(monkeypatch, tmp_path: Path) -> None:
|
|
1633
|
-
profiles_file = tmp_path / "audit.profiles.yaml"
|
|
1634
|
-
profiles_file.write_text(
|
|
1635
|
-
"""
|
|
1636
|
-
profiles:
|
|
1637
|
-
codex-chatgpt:
|
|
1638
|
-
model:
|
|
1639
|
-
llm:
|
|
1640
|
-
type: openai-codex
|
|
1641
|
-
base_url: https://chatgpt.com/backend-api/codex
|
|
1642
|
-
api_key: sk-codex
|
|
1643
|
-
simple: gpt-5.3-codex
|
|
1644
|
-
standard: gpt-5.3-codex
|
|
1645
|
-
complex: gpt-5.3-codex
|
|
1646
|
-
env:
|
|
1647
|
-
VDS_AUDIT_LLM__AGENT_RETRIES: "5"
|
|
1648
|
-
VDS_AUDIT_LLM__CODE_REVIEW_MAX_TOTAL_CHARS: "150000"
|
|
1649
|
-
""".strip()
|
|
1650
|
-
+ "\n",
|
|
1651
|
-
encoding="utf-8",
|
|
1652
|
-
)
|
|
1653
|
-
monkeypatch.setenv("VDS_AUDIT_RUNTIME_PROFILES_FILE", str(profiles_file))
|
|
1654
|
-
|
|
1655
|
-
result = runner.invoke(cli.app, ["--profile", "codex-chatgpt", "--json-only", "status"])
|
|
1656
|
-
assert result.exit_code == 0
|
|
1657
|
-
assert os.environ.get("VDS_AUDIT_LLM__AGENT_RETRIES") == "5"
|
|
1658
|
-
assert os.environ.get("VDS_AUDIT_LLM__CODE_REVIEW_MAX_TOTAL_CHARS") == "150000"
|