@ngocsangairvds/vsaf 4.1.9 → 4.1.11
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/package.json +1 -1
- package/packages/cli/dist/commands/install.d.ts +1 -1
- package/packages/cli/dist/commands/install.d.ts.map +1 -1
- package/packages/cli/dist/commands/install.js +25 -13
- package/packages/cli/dist/commands/install.js.map +1 -1
- package/packages/cli/dist/commands/skill.d.ts.map +1 -1
- package/packages/cli/dist/commands/skill.js +5 -1
- package/packages/cli/dist/commands/skill.js.map +1 -1
- package/skills/vds-skill/install-deps.mjs +252 -0
- package/skills/vds-skill/pack.yaml +8 -0
- package/skills/vds-skill/runtime/.claude/phase7-CLOSURE.md +100 -0
- package/skills/vds-skill/runtime/.dockerignore +62 -0
- package/skills/vds-skill/runtime/.github/ISSUE_TEMPLATE/cli-change.md +92 -0
- package/skills/vds-skill/runtime/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +48 -0
- package/skills/vds-skill/runtime/.github/workflows/chaos-smoke.yml +266 -0
- package/skills/vds-skill/runtime/.github/workflows/confluence-sync.yml +44 -0
- package/skills/vds-skill/runtime/.github/workflows/docs-confluence-evidence.yml +170 -0
- package/skills/vds-skill/runtime/.github/workflows/docs-quality.yml +59 -0
- package/skills/vds-skill/runtime/.github/workflows/lint-and-test.yml +90 -0
- package/skills/vds-skill/runtime/.github/workflows/scheduler-load-smoke.yml +104 -0
- package/skills/vds-skill/runtime/.github/workflows/telegram-bridge-ci.yml +131 -0
- package/skills/vds-skill/runtime/.graphifyignore +29 -0
- package/skills/vds-skill/runtime/.importlinter +86 -0
- package/skills/vds-skill/runtime/.mcp.json +11 -0
- package/skills/vds-skill/runtime/.pre-commit-config.yaml +62 -0
- package/skills/vds-skill/runtime/.ruffignore +3 -0
- package/skills/vds-skill/runtime/AGENTS.md +250 -0
- package/skills/vds-skill/runtime/AGENTS.vi.md +92 -0
- package/skills/vds-skill/runtime/ECOSYSTEM-CHANGELOG.md +52 -0
- package/skills/vds-skill/runtime/ECOSYSTEM-DOCS.md +602 -0
- package/skills/vds-skill/runtime/ECOSYSTEM_ALIGNMENT.md +133 -0
- package/skills/vds-skill/runtime/Makefile +119 -0
- package/skills/vds-skill/runtime/README.md +103 -0
- package/skills/vds-skill/runtime/bitbucket_manifest_mapping.toml +34 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/ARCHITECTURE_ANALYSIS.md +258 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/BITBUCKET_API_PRACTICES.md +393 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/EVALUATION_REPORT.md +61 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/FEATURES.md +908 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/README.md +817 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/pyproject.toml +49 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/__init__.py +50 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/async_client.py +641 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/cli.py +2271 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/client.py +2693 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/config.py +185 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/errors.py +34 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/factory.py +185 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/parsers.py +113 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/protocols.py +244 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/repo_ops.py +325 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/__init__.py +8 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/conftest.py +65 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_advanced_search.py +155 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_async_client.py +505 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_branch_permissions.py +172 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_cli.py +113 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_cli_archive.py +122 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_cli_clone.py +131 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_client.py +207 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_client_archive.py +73 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_client_branch_conditions.py +101 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_client_code_advanced.py +180 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_client_code_file.py +33 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_client_deployment_environments.py +193 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_client_issues.py +163 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_client_pipelines_advanced.py +171 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_client_pr_blockers.py +118 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_client_repository_variables.py +155 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_code.py +98 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_code_advanced.py +279 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_code_insights.py +334 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_conditions.py +149 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_config.py +297 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_deployment_env.py +352 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_errors.py +67 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_factory.py +352 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_fork_operations.py +203 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_issue_cli.py +262 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_pipeline_advanced.py +265 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_pr_blocker.py +206 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_protocols.py +336 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_repo_ops_archive.py +169 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_repo_ops_clone.py +115 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_repo_ops_parsing.py +149 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_repo_settings.py +336 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_repo_variables.py +266 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_webhooks.py +188 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/test_workspace.py +234 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/unit/__init__.py +0 -0
- package/skills/vds-skill/runtime/bitbucket_orchestrator/tests/unit/test_parsers.py +254 -0
- package/skills/vds-skill/runtime/brd_orchestrator/README.md +29 -0
- package/skills/vds-skill/runtime/brd_orchestrator/pyproject.toml +63 -0
- package/skills/vds-skill/runtime/brd_orchestrator/src/vds_brd_orchestrator/__init__.py +17 -0
- package/skills/vds-skill/runtime/brd_orchestrator/src/vds_brd_orchestrator/cli.py +187 -0
- package/skills/vds-skill/runtime/brd_orchestrator/src/vds_brd_orchestrator/validator.py +121 -0
- package/skills/vds-skill/runtime/brd_orchestrator/tests/__init__.py +0 -0
- package/skills/vds-skill/runtime/brd_orchestrator/tests/test_cli.py +62 -0
- package/skills/vds-skill/runtime/brd_orchestrator/tests/test_validator.py +33 -0
- package/skills/vds-skill/runtime/code/code_evidence_pack.json +435 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/Dockerfile +19 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/README.md +479 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/SYNC_SCRIPTS.md +127 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/SYNC_STANDARDIZATION.md +108 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/pyproject.toml +50 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/__init__.py +56 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/async_client.py +100 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/cli.py +3160 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/config.py +213 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/content.py +368 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/content_v2.py +144 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/crawl_tree.py +1833 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/errors.py +44 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/eventing.py +111 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/http.py +1850 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/orchestration.py +166 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/protocols.py +61 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/reporting.py +78 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/tree.py +122 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/src/confluence_orchestrator/tree_copier.py +431 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/sync_pdfs_from_markdown.py +203 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/sync_pdfs_to_confluence.py +299 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/sync_png_attachments.py +299 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/conftest.py +46 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_advanced_content.py +252 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_advanced_search.py +193 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_async_client.py +104 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_cache_management.py +246 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_cli.py +716 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_config.py +130 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_content.py +192 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_content_flags.py +27 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_content_labels.py +94 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_crawl_tree.py +2252 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_degraded_write_safety.py +176 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_draft_management.py +225 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_errors.py +75 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_eventing.py +73 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_eventing_chaos.py +37 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_eventing_rate_limit.py +44 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_eventing_timeout.py +49 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_export.py +231 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_history.py +217 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_http.py +375 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_orchestration.py +93 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_reporting.py +24 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_search_cql.py +36 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_space_management.py +236 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_space_permissions.py +384 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_tree_copier.py +644 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_tree_copier_remap.py +289 -0
- package/skills/vds-skill/runtime/confluence_orchestrator/tests/test_user_group_management.py +387 -0
- package/skills/vds-skill/runtime/diagram_generator/README.md +663 -0
- package/skills/vds-skill/runtime/diagram_generator/ci_validate.sh +16 -0
- package/skills/vds-skill/runtime/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.png +0 -0
- package/skills/vds-skill/runtime/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.puml +23 -0
- package/skills/vds-skill/runtime/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.png +0 -0
- package/skills/vds-skill/runtime/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.puml +21 -0
- package/skills/vds-skill/runtime/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.png +0 -0
- package/skills/vds-skill/runtime/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.puml +14 -0
- package/skills/vds-skill/runtime/diagram_generator/examples/github-actions-validate.yml +39 -0
- package/skills/vds-skill/runtime/diagram_generator/generate_all_diagrams.py +827 -0
- package/skills/vds-skill/runtime/diagram_generator/generate_insurance_c4_diagrams.py +261 -0
- package/skills/vds-skill/runtime/diagram_generator/generate_insurance_c4_quick.py +486 -0
- package/skills/vds-skill/runtime/diagram_generator/pyproject.toml +28 -0
- package/skills/vds-skill/runtime/diagram_generator/render_png.py +59 -0
- package/skills/vds-skill/runtime/diagram_generator/src/vds_diagram_generator/__init__.py +3 -0
- package/skills/vds-skill/runtime/diagram_generator/src/vds_diagram_generator/cli.py +50 -0
- package/skills/vds-skill/runtime/diagram_generator/test_c4_hierarchical.py +142 -0
- package/skills/vds-skill/runtime/diagram_generator/test_c4_quick.py +131 -0
- package/skills/vds-skill/runtime/diagram_generator/tests/__init__.py +0 -0
- package/skills/vds-skill/runtime/diagram_generator/tests/test_analyzer_completeness.py +260 -0
- package/skills/vds-skill/runtime/diagram_generator/tests/test_c4_syntax_correctness.py +138 -0
- package/skills/vds-skill/runtime/diagram_generator/tests/test_component_coverage.py +182 -0
- package/skills/vds-skill/runtime/diagram_generator/tests/test_mermaid_output.py +80 -0
- package/skills/vds-skill/runtime/diagram_generator/tests/test_png_generation.py +112 -0
- package/skills/vds-skill/runtime/diagram_generator/tests/test_scenario_templates.py +15 -0
- package/skills/vds-skill/runtime/diagram_generator/tests/test_sequence_accuracy.py +93 -0
- package/skills/vds-skill/runtime/diagram_generator/tests/test_structurizr_export.py +177 -0
- package/skills/vds-skill/runtime/diagram_generator/tests/test_style_consistency.py +174 -0
- package/skills/vds-skill/runtime/diagram_generator/tests/test_usecase_generator.py +201 -0
- package/skills/vds-skill/runtime/diagram_generator/tests/test_usecase_integration.py +124 -0
- package/skills/vds-skill/runtime/docker/.dockerignore +38 -0
- package/skills/vds-skill/runtime/docker/ADR.md +392 -0
- package/skills/vds-skill/runtime/docker/Dockerfile +68 -0
- package/skills/vds-skill/runtime/docker/MIGRATION.md +453 -0
- package/skills/vds-skill/runtime/docker/README.md +347 -0
- package/skills/vds-skill/runtime/docker/ROLLBACK.md +596 -0
- package/skills/vds-skill/runtime/docker/compose.phase2-verification.yml +31 -0
- package/skills/vds-skill/runtime/docker/docker-compose.cli.yml +206 -0
- package/skills/vds-skill/runtime/docker/docker-compose.infra.yml +276 -0
- package/skills/vds-skill/runtime/docker/docker-compose.services.yml +425 -0
- package/skills/vds-skill/runtime/docker/infrastructure/init-schemas.sql +177 -0
- package/skills/vds-skill/runtime/docker/infrastructure/pgbouncer/pgbouncer.ini +75 -0
- package/skills/vds-skill/runtime/docker/infrastructure/pgbouncer/userlist.txt +50 -0
- package/skills/vds-skill/runtime/docker/infrastructure/pgbouncer/userlist.txt.template +36 -0
- package/skills/vds-skill/runtime/docs/.confluence-evidence/.gitkeep +0 -0
- package/skills/vds-skill/runtime/docs/.confluence-evidence/PREFLIGHT.md +132 -0
- package/skills/vds-skill/runtime/docs/.confluence-evidence/README.md +84 -0
- package/skills/vds-skill/runtime/docs/.confluence.yaml +156 -0
- package/skills/vds-skill/runtime/docs/.freshness.yaml +54 -0
- package/skills/vds-skill/runtime/docs/README.md +235 -0
- package/skills/vds-skill/runtime/docs/agents/README.md +33 -0
- package/skills/vds-skill/runtime/docs/agents/explanation/data-flow.md +132 -0
- package/skills/vds-skill/runtime/docs/agents/explanation/development-roadmap.md +49 -0
- package/skills/vds-skill/runtime/docs/agents/explanation/features-overview.md +62 -0
- package/skills/vds-skill/runtime/docs/agents/explanation/index.md +36 -0
- package/skills/vds-skill/runtime/docs/agents/explanation/runtime-verification-and-gap-reporting.md +127 -0
- package/skills/vds-skill/runtime/docs/agents/explanation/system-architecture.md +139 -0
- package/skills/vds-skill/runtime/docs/agents/explanation/whats-new.md +75 -0
- package/skills/vds-skill/runtime/docs/agents/explanation/who-ecosystem-introduction.md +65 -0
- package/skills/vds-skill/runtime/docs/agents/explanation/who-ecosystem-model.md +41 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/02-using-vds-ai-memory.md +98 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/03-memory-cross-agent.md +241 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/04-using-progress-reports.md +240 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/08-semantic-search.md +46 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/apply-phase3-migration.md +148 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/choose-the-right-command-or-skill.md +34 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/contribute-new-orchestrator.md +149 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/decision-tree.md +63 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/first-audit-run.md +83 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/index.md +49 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/install-and-bootstrap-who-scripts-and-skills.md +314 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/orchestrator-workflows/analytics-pipeline-workflow.md +165 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/orchestrator-workflows/code-quality-gate-workflow.md +138 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/orchestrator-workflows/confluence-bitbucket-sync-workflow.md +130 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/orchestrator-workflows/document-delivery-workflow.md +142 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/orchestrator-workflows/memory-progress-workflow.md +140 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/orchestrator-workflows/research-spec-audit-workflow.md +135 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/phase131-all-project-preparation.md +211 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/phase131-bounded-parallel-analysis.md +123 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/phase131-confluence-upload-recovery.md +204 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/phase132-department-preparation.md +144 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/run-ecosystem-daily-report.md +213 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/tips-and-tricks.md +138 -0
- package/skills/vds-skill/runtime/docs/agents/how-to/troubleshooting-guide.md +221 -0
- package/skills/vds-skill/runtime/docs/agents/reference/agent-operational-contract.md +162 -0
- package/skills/vds-skill/runtime/docs/agents/reference/alignment-phase179-report.md +144 -0
- package/skills/vds-skill/runtime/docs/agents/reference/audit-triage-playbook.md +256 -0
- package/skills/vds-skill/runtime/docs/agents/reference/backup-restore.md +132 -0
- package/skills/vds-skill/runtime/docs/agents/reference/bitbucket-orchestrator.md +56 -0
- package/skills/vds-skill/runtime/docs/agents/reference/brd-orchestrator.md +52 -0
- package/skills/vds-skill/runtime/docs/agents/reference/capability-coverage-review.md +51 -0
- package/skills/vds-skill/runtime/docs/agents/reference/ci-workflows.md +98 -0
- package/skills/vds-skill/runtime/docs/agents/reference/circular-dependency-orchestrator.md +55 -0
- package/skills/vds-skill/runtime/docs/agents/reference/cli-commands.md +583 -0
- package/skills/vds-skill/runtime/docs/agents/reference/cli-development-standards.md +41 -0
- package/skills/vds-skill/runtime/docs/agents/reference/cli-help-matrix.md +84 -0
- package/skills/vds-skill/runtime/docs/agents/reference/common-errors.md +126 -0
- package/skills/vds-skill/runtime/docs/agents/reference/configuration-reference.md +128 -0
- package/skills/vds-skill/runtime/docs/agents/reference/confluence-orchestrator.md +56 -0
- package/skills/vds-skill/runtime/docs/agents/reference/confluence-sync-target.md +111 -0
- package/skills/vds-skill/runtime/docs/agents/reference/confluence-sync.md +46 -0
- package/skills/vds-skill/runtime/docs/agents/reference/db-query-orchestrator.md +93 -0
- package/skills/vds-skill/runtime/docs/agents/reference/diagrams-orchestrator.md +52 -0
- package/skills/vds-skill/runtime/docs/agents/reference/ecosystem-daily-report.md +229 -0
- package/skills/vds-skill/runtime/docs/agents/reference/elastic-orchestrator.md +57 -0
- package/skills/vds-skill/runtime/docs/agents/reference/env-git-helper.md +216 -0
- package/skills/vds-skill/runtime/docs/agents/reference/evolution-orchestrator.md +113 -0
- package/skills/vds-skill/runtime/docs/agents/reference/excel-orchestrator.md +51 -0
- package/skills/vds-skill/runtime/docs/agents/reference/git-orchestrator.md +62 -0
- package/skills/vds-skill/runtime/docs/agents/reference/google-sheets-orchestrator.md +51 -0
- package/skills/vds-skill/runtime/docs/agents/reference/grafana-orchestrator.md +52 -0
- package/skills/vds-skill/runtime/docs/agents/reference/hexagonal-orchestrator.md +64 -0
- package/skills/vds-skill/runtime/docs/agents/reference/index.md +36 -0
- package/skills/vds-skill/runtime/docs/agents/reference/infrastructure-v2.15.md +67 -0
- package/skills/vds-skill/runtime/docs/agents/reference/intellij-orchestrator.md +50 -0
- package/skills/vds-skill/runtime/docs/agents/reference/jira-orchestrator.md +60 -0
- package/skills/vds-skill/runtime/docs/agents/reference/links-orchestrator.md +57 -0
- package/skills/vds-skill/runtime/docs/agents/reference/lint-cli.md +99 -0
- package/skills/vds-skill/runtime/docs/agents/reference/lsp-orchestrator.md +51 -0
- package/skills/vds-skill/runtime/docs/agents/reference/markdown-orchestrator.md +53 -0
- package/skills/vds-skill/runtime/docs/agents/reference/mcp-orchestrator.md +88 -0
- package/skills/vds-skill/runtime/docs/agents/reference/memory-orchestrator.md +53 -0
- package/skills/vds-skill/runtime/docs/agents/reference/metabase-orchestrator.md +51 -0
- package/skills/vds-skill/runtime/docs/agents/reference/migration-playbook.md +71 -0
- package/skills/vds-skill/runtime/docs/agents/reference/multi-agent-orchestrator.md +52 -0
- package/skills/vds-skill/runtime/docs/agents/reference/openapi-orchestrator.md +57 -0
- package/skills/vds-skill/runtime/docs/agents/reference/orchestrator-architecture.md +194 -0
- package/skills/vds-skill/runtime/docs/agents/reference/orchestrator-comparison-matrix.md +79 -0
- package/skills/vds-skill/runtime/docs/agents/reference/orchestrator-index.md +73 -0
- package/skills/vds-skill/runtime/docs/agents/reference/pdf-orchestrator.md +57 -0
- package/skills/vds-skill/runtime/docs/agents/reference/portable-paths-and-config.md +0 -0
- package/skills/vds-skill/runtime/docs/agents/reference/portable-paths-validation-matrix.md +129 -0
- package/skills/vds-skill/runtime/docs/agents/reference/progress-orchestrator.md +51 -0
- package/skills/vds-skill/runtime/docs/agents/reference/progress-report-cli.md +215 -0
- package/skills/vds-skill/runtime/docs/agents/reference/public-interface-orchestrator.md +73 -0
- package/skills/vds-skill/runtime/docs/agents/reference/research-orchestrator.md +53 -0
- package/skills/vds-skill/runtime/docs/agents/reference/schema-orchestrator.md +57 -0
- package/skills/vds-skill/runtime/docs/agents/reference/search-tools.md +34 -0
- package/skills/vds-skill/runtime/docs/agents/reference/skills-commands.md +256 -0
- package/skills/vds-skill/runtime/docs/agents/reference/skills-reference.md +32 -0
- package/skills/vds-skill/runtime/docs/agents/reference/sonarqube-orchestrator.md +62 -0
- package/skills/vds-skill/runtime/docs/agents/reference/spec-orchestrator.md +56 -0
- package/skills/vds-skill/runtime/docs/agents/reference/structure-orchestrator.md +69 -0
- package/skills/vds-skill/runtime/docs/agents/reference/system-requirements.md +76 -0
- package/skills/vds-skill/runtime/docs/agents/reference/tasks-orchestrator.md +53 -0
- package/skills/vds-skill/runtime/docs/agents/reference/validation-and-sync-notes.md +54 -0
- package/skills/vds-skill/runtime/docs/agents/reference/vds-ai-memory-api.md +51 -0
- package/skills/vds-skill/runtime/docs/agents/reference/vds-cli-reference.md +34 -0
- package/skills/vds-skill/runtime/docs/agents/reference/who-capability-inventory.md +96 -0
- package/skills/vds-skill/runtime/docs/agents/reference/who-capability-routing-matrix.md +14 -0
- package/skills/vds-skill/runtime/docs/agents/tutorials/feature-progression-guide.md +112 -0
- package/skills/vds-skill/runtime/docs/agents/tutorials/index.md +36 -0
- package/skills/vds-skill/runtime/docs/agents/tutorials/quick-start.md +50 -0
- package/skills/vds-skill/runtime/docs/agents/tutorials/who-skills-and-scripts-onboarding.md +47 -0
- package/skills/vds-skill/runtime/docs/agents/tutorials/zero-to-productive-developer.md +339 -0
- package/skills/vds-skill/runtime/docs/confluence/IMPLEMENTATION-SUMMARY.md +78 -0
- package/skills/vds-skill/runtime/docs/confluence/SYNC-GUIDE.md +47 -0
- package/skills/vds-skill/runtime/docs/deployment/offline-docker-image-load.md +59 -0
- package/skills/vds-skill/runtime/docs/evolution-auto-run-rollout.md +325 -0
- package/skills/vds-skill/runtime/docs/evolution-loop-deep-integration.md +496 -0
- package/skills/vds-skill/runtime/docs/evolution-loop-integration-guide.md +359 -0
- package/skills/vds-skill/runtime/docs/openspace-schema-snapshot.md +73 -0
- package/skills/vds-skill/runtime/docs/operations/sla-mttr-policy.md +44 -0
- package/skills/vds-skill/runtime/docs/p0-closure-evidence/SUMMARY.md +58 -0
- package/skills/vds-skill/runtime/docs/p4-closure-evidence/.gitkeep +0 -0
- package/skills/vds-skill/runtime/docs/p4-closure-evidence/smoke-20260427T024137Z-b95b586b.json +15 -0
- package/skills/vds-skill/runtime/docs/p8-preflight-evidence/alembic-and-runtime-advisory-locks.md +45 -0
- package/skills/vds-skill/runtime/docs/p8-preflight-evidence/dbos-listen-notify.md +54 -0
- package/skills/vds-skill/runtime/docs/p8-preflight-evidence/pgbouncer-search-path-empirical.md +110 -0
- package/skills/vds-skill/runtime/docs/p8-preflight-evidence/pgvector-set-local-audit.md +51 -0
- package/skills/vds-skill/runtime/docs/p8-preflight-evidence/topology-decision-session-mode.md +57 -0
- package/skills/vds-skill/runtime/docs/phases/CHANGELOG.md +103 -0
- package/skills/vds-skill/runtime/docs/phases/PHASE_125_COMPLETION_AND_MERGE.md +212 -0
- package/skills/vds-skill/runtime/docs/phases/phase125/IMPLEMENTATION_REPORT.md +227 -0
- package/skills/vds-skill/runtime/docs/phases/phase125/TSK-125.10-11-implementation-summary.md +196 -0
- package/skills/vds-skill/runtime/docs/phases/phase125/profile-patch-ollama-local-anthropic.md +122 -0
- package/skills/vds-skill/runtime/docs/phases/phase125_completion_summary.md +369 -0
- package/skills/vds-skill/runtime/docs/phases/phase125_llm_analysis_skill.md +164 -0
- package/skills/vds-skill/runtime/docs/phases/phase125_merge_complete.md +147 -0
- package/skills/vds-skill/runtime/docs/phases/phase125_skill_runtime_closure_20260321.md +91 -0
- package/skills/vds-skill/runtime/docs/phases/phase2-portable-paths/closure-handoff-summary-2026-03-23.md +290 -0
- package/skills/vds-skill/runtime/docs/phases/phase2-portable-paths/remaining-risk-register-2026-03-25.md +143 -0
- package/skills/vds-skill/runtime/docs/phases/phase2-portable-paths/verification-evidence-2026-03-23.md +135 -0
- package/skills/vds-skill/runtime/docs/v0-sunset-known-issues.md +88 -0
- package/skills/vds-skill/runtime/docs/vi/TRANSLATION-BACKLOG.md +72 -0
- package/skills/vds-skill/runtime/docs/vi/agents/README.md +41 -0
- package/skills/vds-skill/runtime/docs/vi/agents/explanation/features-overview.md +29 -0
- package/skills/vds-skill/runtime/docs/vi/agents/explanation/index.md +14 -0
- package/skills/vds-skill/runtime/docs/vi/agents/explanation/runtime-verification-and-gap-reporting.md +129 -0
- package/skills/vds-skill/runtime/docs/vi/agents/explanation/whats-new.md +37 -0
- package/skills/vds-skill/runtime/docs/vi/agents/explanation/who-ecosystem-introduction.md +21 -0
- package/skills/vds-skill/runtime/docs/vi/agents/explanation/who-ecosystem-model.md +36 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/02-using-vds-ai-memory.md +100 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/03-memory-cross-agent.md +243 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/04-using-progress-reports.md +242 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/08-semantic-search.md +16 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/choose-the-right-command-or-skill.md +36 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/decision-tree.md +77 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/first-audit-run.md +85 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/index.md +21 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/install-and-bootstrap-who-scripts-and-skills.md +156 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/orchestrator-workflows/analytics-pipeline-workflow.md +174 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/orchestrator-workflows/code-quality-gate-workflow.md +147 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/orchestrator-workflows/confluence-bitbucket-sync-workflow.md +139 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/orchestrator-workflows/document-delivery-workflow.md +151 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/orchestrator-workflows/memory-progress-workflow.md +149 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/orchestrator-workflows/research-spec-audit-workflow.md +144 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/phase131-all-project-preparation.md +213 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/phase131-bounded-parallel-analysis.md +125 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/phase131-confluence-upload-recovery.md +206 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/phase132-department-preparation.md +146 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/tips-and-tricks.md +34 -0
- package/skills/vds-skill/runtime/docs/vi/agents/how-to/troubleshooting-guide.md +36 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/agent-operational-contract.md +98 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/audit-triage-playbook.md +258 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/bitbucket-orchestrator.md +30 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/brd-orchestrator.md +29 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/capability-coverage-review.md +46 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/circular-dependency-orchestrator.md +29 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/cli-commands.md +409 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/cli-development-standards.md +19 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/cli-help-matrix.md +71 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/common-errors.md +133 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/configuration-reference.md +25 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/confluence-orchestrator.md +30 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/db-query-orchestrator.md +34 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/diagrams-orchestrator.md +31 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/elastic-orchestrator.md +30 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/evolution-orchestrator.md +31 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/excel-orchestrator.md +60 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/git-orchestrator.md +31 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/google-sheets-orchestrator.md +60 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/grafana-orchestrator.md +30 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/hexagonal-orchestrator.md +73 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/index.md +25 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/intellij-orchestrator.md +59 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/jira-orchestrator.md +32 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/links-orchestrator.md +66 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/lsp-orchestrator.md +60 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/markdown-orchestrator.md +62 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/mcp-orchestrator.md +34 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/memory-orchestrator.md +45 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/metabase-orchestrator.md +30 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/multi-agent-orchestrator.md +61 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/openapi-orchestrator.md +66 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/orchestrator-architecture.md +24 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/orchestrator-index.md +73 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/pdf-orchestrator.md +30 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/portable-paths-and-config.md +123 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/portable-paths-validation-matrix.md +131 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/progress-orchestrator.md +43 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/progress-report-cli.md +217 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/public-interface-orchestrator.md +82 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/research-orchestrator.md +45 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/schema-orchestrator.md +66 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/search-tools.md +19 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/skills-reference.md +27 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/sonarqube-orchestrator.md +71 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/spec-orchestrator.md +56 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/structure-orchestrator.md +78 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/system-requirements.md +30 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/tasks-orchestrator.md +45 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/validation-and-sync-notes.md +26 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/vds-ai-memory-api.md +53 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/vds-cli-reference.md +34 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/who-capability-inventory.md +98 -0
- package/skills/vds-skill/runtime/docs/vi/agents/reference/who-capability-routing-matrix.md +16 -0
- package/skills/vds-skill/runtime/docs/vi/agents/tutorials/feature-progression-guide.md +124 -0
- package/skills/vds-skill/runtime/docs/vi/agents/tutorials/index.md +13 -0
- package/skills/vds-skill/runtime/docs/vi/agents/tutorials/quick-start.md +30 -0
- package/skills/vds-skill/runtime/docs/vi/agents/tutorials/who-skills-and-scripts-onboarding.md +42 -0
- package/skills/vds-skill/runtime/docs/vi/agents/tutorials/zero-to-productive-developer.md +137 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/README.md +450 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/pyproject.toml +97 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/src/vds_elastic_orchestrator/__init__.py +81 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/src/vds_elastic_orchestrator/cli.py +652 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/src/vds_elastic_orchestrator/client.py +743 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/src/vds_elastic_orchestrator/config.py +208 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/src/vds_elastic_orchestrator/errors.py +34 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/src/vds_elastic_orchestrator/py.typed +0 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/tests/__init__.py +0 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/tests/conftest.py +227 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/tests/test_client.py +990 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/tests/test_config.py +268 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/tests/test_e2e_verification.py +272 -0
- package/skills/vds-skill/runtime/elastic_orchestrator/tests/test_errors.py +78 -0
- package/skills/vds-skill/runtime/excel_orchestrator/README.md +288 -0
- package/skills/vds-skill/runtime/excel_orchestrator/RESEARCH_BASED_UPDATES_REPORT.md +261 -0
- package/skills/vds-skill/runtime/excel_orchestrator/add_essential_missing_effort.py +255 -0
- package/skills/vds-skill/runtime/excel_orchestrator/adjust_effort_complexity.py +184 -0
- package/skills/vds-skill/runtime/excel_orchestrator/brd_analysis_and_task_breakdown.py +632 -0
- package/skills/vds-skill/runtime/excel_orchestrator/brd_analysis_comprehensive.py +1029 -0
- package/skills/vds-skill/runtime/excel_orchestrator/check_overlaps_and_brd_coverage.py +570 -0
- package/skills/vds-skill/runtime/excel_orchestrator/clean_remarks_column.py +127 -0
- package/skills/vds-skill/runtime/excel_orchestrator/comprehensive_brd_check.py +322 -0
- package/skills/vds-skill/runtime/excel_orchestrator/create_buffered_summary.py +119 -0
- package/skills/vds-skill/runtime/excel_orchestrator/create_service_totals_sheet.py +118 -0
- package/skills/vds-skill/runtime/excel_orchestrator/examples/basic_operations.py +85 -0
- package/skills/vds-skill/runtime/excel_orchestrator/expand_all_tasks.py +341 -0
- package/skills/vds-skill/runtime/excel_orchestrator/expand_tasks.py +304 -0
- package/skills/vds-skill/runtime/excel_orchestrator/fill_brd_references.py +347 -0
- package/skills/vds-skill/runtime/excel_orchestrator/fill_remarks_and_colors.py +132 -0
- package/skills/vds-skill/runtime/excel_orchestrator/finalize_brd_and_cleanup.py +295 -0
- package/skills/vds-skill/runtime/excel_orchestrator/finalize_brd_coverage.py +327 -0
- package/skills/vds-skill/runtime/excel_orchestrator/fix_all_formulas.py +99 -0
- package/skills/vds-skill/runtime/excel_orchestrator/fix_detail_presentation.py +113 -0
- package/skills/vds-skill/runtime/excel_orchestrator/fix_presentation_and_effort.py +116 -0
- package/skills/vds-skill/runtime/excel_orchestrator/fix_presentation_consistency.py +231 -0
- package/skills/vds-skill/runtime/excel_orchestrator/fix_remarks_matching.py +179 -0
- package/skills/vds-skill/runtime/excel_orchestrator/group_tasks_by_service_id.py +210 -0
- package/skills/vds-skill/runtime/excel_orchestrator/increase_brd_coverage.py +497 -0
- package/skills/vds-skill/runtime/excel_orchestrator/increase_effort_complexity.py +155 -0
- package/skills/vds-skill/runtime/excel_orchestrator/organize_and_deduplicate.py +273 -0
- package/skills/vds-skill/runtime/excel_orchestrator/pyproject.toml +64 -0
- package/skills/vds-skill/runtime/excel_orchestrator/rebuild_all_formulas.py +146 -0
- package/skills/vds-skill/runtime/excel_orchestrator/remove_base_multiplier_and_check_duplicates.py +310 -0
- package/skills/vds-skill/runtime/excel_orchestrator/remove_duplicate_brd_tasks.py +137 -0
- package/skills/vds-skill/runtime/excel_orchestrator/research_based_updates.py +457 -0
- package/skills/vds-skill/runtime/excel_orchestrator/restore_e_values.py +172 -0
- package/skills/vds-skill/runtime/excel_orchestrator/src/vds_excel_orchestrator/__init__.py +5 -0
- package/skills/vds-skill/runtime/excel_orchestrator/src/vds_excel_orchestrator/cli.py +746 -0
- package/skills/vds-skill/runtime/excel_orchestrator/src/vds_excel_orchestrator/config.py +74 -0
- package/skills/vds-skill/runtime/excel_orchestrator/src/vds_excel_orchestrator/converters.py +226 -0
- package/skills/vds-skill/runtime/excel_orchestrator/src/vds_excel_orchestrator/errors.py +88 -0
- package/skills/vds-skill/runtime/excel_orchestrator/src/vds_excel_orchestrator/excel_client.py +443 -0
- package/skills/vds-skill/runtime/excel_orchestrator/src/vds_excel_orchestrator/formatters.py +211 -0
- package/skills/vds-skill/runtime/excel_orchestrator/src/vds_excel_orchestrator/logging.py +57 -0
- package/skills/vds-skill/runtime/excel_orchestrator/src/vds_excel_orchestrator/source_contract.py +29 -0
- package/skills/vds-skill/runtime/excel_orchestrator/src/vds_excel_orchestrator/target_state_status.py +837 -0
- package/skills/vds-skill/runtime/excel_orchestrator/src/vds_excel_orchestrator/ulnc_alignment.py +1291 -0
- package/skills/vds-skill/runtime/excel_orchestrator/src/vds_excel_orchestrator/validators.py +164 -0
- package/skills/vds-skill/runtime/excel_orchestrator/sync_detail_and_total_sheets.py +211 -0
- package/skills/vds-skill/runtime/excel_orchestrator/tests/__init__.py +1 -0
- package/skills/vds-skill/runtime/excel_orchestrator/tests/conftest.py +36 -0
- package/skills/vds-skill/runtime/excel_orchestrator/tests/test_cli.py +383 -0
- package/skills/vds-skill/runtime/excel_orchestrator/tests/test_excel_client.py +129 -0
- package/skills/vds-skill/runtime/excel_orchestrator/tests/test_ulnc_alignment.py +373 -0
- package/skills/vds-skill/runtime/excel_orchestrator/tests/test_validators.py +64 -0
- package/skills/vds-skill/runtime/excel_orchestrator/update_api_database_effort.py +261 -0
- package/skills/vds-skill/runtime/excel_orchestrator/update_buffers_inline.py +115 -0
- package/skills/vds-skill/runtime/excel_orchestrator/update_complex_services_and_add_new.py +336 -0
- package/skills/vds-skill/runtime/excel_orchestrator/update_responsibility_and_fix_rows.py +208 -0
- package/skills/vds-skill/runtime/excel_orchestrator/update_task_breakdown_vietnamese.py +309 -0
- package/skills/vds-skill/runtime/excel_orchestrator/update_vietnamese_and_responsibility.py +415 -0
- package/skills/vds-skill/runtime/excel_orchestrator/verify_brd_coverage_comprehensive.py +401 -0
- package/skills/vds-skill/runtime/git_orchestrator/ENHANCEMENT_SUMMARY.md +119 -0
- package/skills/vds-skill/runtime/git_orchestrator/README.md +286 -0
- package/skills/vds-skill/runtime/git_orchestrator/VERIFICATION_REPORT.md +152 -0
- package/skills/vds-skill/runtime/git_orchestrator/pyproject.toml +37 -0
- package/skills/vds-skill/runtime/git_orchestrator/src/vds_git_orchestrator/__init__.py +30 -0
- package/skills/vds-skill/runtime/git_orchestrator/src/vds_git_orchestrator/__main__.py +4 -0
- package/skills/vds-skill/runtime/git_orchestrator/src/vds_git_orchestrator/branch_probe.py +271 -0
- package/skills/vds-skill/runtime/git_orchestrator/src/vds_git_orchestrator/cli.py +892 -0
- package/skills/vds-skill/runtime/git_orchestrator/src/vds_git_orchestrator/logging_config.py +63 -0
- package/skills/vds-skill/runtime/git_orchestrator/src/vds_git_orchestrator/manifest.py +249 -0
- package/skills/vds-skill/runtime/git_orchestrator/src/vds_git_orchestrator/orchestrator.py +1647 -0
- package/skills/vds-skill/runtime/git_orchestrator/src/vds_git_orchestrator/protocols.py +35 -0
- package/skills/vds-skill/runtime/git_orchestrator/src/vds_git_orchestrator/reporting.py +55 -0
- package/skills/vds-skill/runtime/git_orchestrator/tests/__init__.py +0 -0
- package/skills/vds-skill/runtime/git_orchestrator/tests/test_cli_settings.py +19 -0
- package/skills/vds-skill/runtime/git_orchestrator/tests/test_integration.py +79 -0
- package/skills/vds-skill/runtime/git_orchestrator/tests/test_manifest.py +79 -0
- package/skills/vds-skill/runtime/git_orchestrator/tests/test_orchestrator.py +207 -0
- package/skills/vds-skill/runtime/git_orchestrator/tests/test_public_api.py +235 -0
- package/skills/vds-skill/runtime/git_orchestrator/tests/test_resilience.py +343 -0
- package/skills/vds-skill/runtime/git_orchestrator/tests/unit/__init__.py +0 -0
- package/skills/vds-skill/runtime/git_orchestrator/tests/unit/test_branch_probe.py +327 -0
- package/skills/vds-skill/runtime/git_orchestrator/tests/unit/test_protocols.py +132 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/README.md +241 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/pyproject.toml +45 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/__init__.py +69 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/cli.py +568 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/client.py +186 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/config.py +46 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/errors.py +41 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/tests/__init__.py +1 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/tests/conftest.py +1 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/tests/unit/__init__.py +1 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/tests/unit/test_cli.py +212 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/tests/unit/test_client.py +24 -0
- package/skills/vds-skill/runtime/google_sheets_orchestrator/tests/unit/test_config.py +16 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/README.md +572 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/pyproject.toml +102 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/src/vds_grafana_orchestrator/__init__.py +78 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/src/vds_grafana_orchestrator/cli.py +455 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/src/vds_grafana_orchestrator/client.py +700 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/src/vds_grafana_orchestrator/config.py +243 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/src/vds_grafana_orchestrator/errors.py +34 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/src/vds_grafana_orchestrator/py.typed +1 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/tests/__init__.py +1 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/tests/conftest.py +308 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/tests/test_client.py +458 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/tests/test_config.py +203 -0
- package/skills/vds-skill/runtime/grafana_orchestrator/tests/test_errors.py +78 -0
- package/skills/vds-skill/runtime/jira_orchestrator/README.md +864 -0
- package/skills/vds-skill/runtime/jira_orchestrator/pyproject.toml +43 -0
- package/skills/vds-skill/runtime/jira_orchestrator/src/vds_jira_orchestrator/__init__.py +65 -0
- package/skills/vds-skill/runtime/jira_orchestrator/src/vds_jira_orchestrator/adapter.py +1685 -0
- package/skills/vds-skill/runtime/jira_orchestrator/src/vds_jira_orchestrator/cli.py +2806 -0
- package/skills/vds-skill/runtime/jira_orchestrator/src/vds_jira_orchestrator/config.py +168 -0
- package/skills/vds-skill/runtime/jira_orchestrator/src/vds_jira_orchestrator/errors.py +34 -0
- package/skills/vds-skill/runtime/jira_orchestrator/src/vds_jira_orchestrator/reporting.py +66 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/__init__.py +1 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/conftest.py +86 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_agile_list_payloads.py +54 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_bulk_operations.py +91 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_components.py +56 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_createmeta.py +45 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_dashboard.py +119 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_issue_properties.py +53 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_permissions_compat.py +41 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_reindex.py +42 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_remote_links.py +75 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_transitions.py +90 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_user_management.py +116 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_version_management.py +181 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_adapter_watchers.py +43 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_advanced_search.py +179 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_agile.py +304 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_application_properties.py +243 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_backlog.py +91 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_bulk_operations.py +403 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_cli.py +108 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_components.py +119 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_config.py +166 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_dashboard.py +122 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_discover_fields.py +207 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_errors.py +72 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_filter_management.py +411 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_issue_archiving.py +179 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_issue_links.py +257 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_issue_properties.py +189 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_link_types.py +407 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_parse_set.py +37 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_permissions.py +343 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_reindex.py +81 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_remote_links.py +269 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_security_schemes.py +202 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_transitions_changelog.py +109 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_user_management.py +246 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_version_management.py +503 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_watchers.py +116 -0
- package/skills/vds-skill/runtime/jira_orchestrator/tests/test_worklog.py +243 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/README.md +864 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/pyproject.toml +43 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/__init__.py +65 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/adapter.py +1689 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/cli.py +2799 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/config.py +135 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/errors.py +34 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/reporting.py +65 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/__init__.py +1 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/conftest.py +86 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_agile_list_payloads.py +54 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_bulk_operations.py +101 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_components.py +64 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_createmeta.py +45 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_dashboard.py +135 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_issue_properties.py +63 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_permissions_compat.py +42 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_reindex.py +42 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_remote_links.py +89 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_transitions.py +91 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_user_management.py +130 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_version_management.py +189 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_adapter_watchers.py +49 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_advanced_search.py +213 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_agile.py +334 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_application_properties.py +261 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_backlog.py +91 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_bulk_operations.py +443 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_cli.py +106 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_components.py +133 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_config.py +166 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_dashboard.py +130 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_discover_fields.py +207 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_errors.py +61 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_filter_management.py +478 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_issue_archiving.py +181 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_issue_links.py +257 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_issue_properties.py +203 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_link_types.py +426 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_parse_set.py +37 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_permissions.py +358 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_reindex.py +81 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_remote_links.py +292 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_security_schemes.py +218 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_transitions_changelog.py +121 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_user_management.py +283 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_version_management.py +561 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_watchers.py +128 -0
- package/skills/vds-skill/runtime/jira_viettelmoney_orchestrator/tests/test_worklog.py +265 -0
- package/skills/vds-skill/runtime/llms.txt +159 -0
- package/skills/vds-skill/runtime/markdown_orchestrator/README.md +72 -0
- package/skills/vds-skill/runtime/markdown_orchestrator/pyproject.toml +39 -0
- package/skills/vds-skill/runtime/markdown_orchestrator/src/vds_markdown_orchestrator/__init__.py +5 -0
- package/skills/vds-skill/runtime/markdown_orchestrator/src/vds_markdown_orchestrator/cli.py +102 -0
- package/skills/vds-skill/runtime/mcp_server/Dockerfile +63 -0
- package/skills/vds-skill/runtime/mcp_server/README.md +140 -0
- package/skills/vds-skill/runtime/mcp_server/pyproject.toml +41 -0
- package/skills/vds-skill/runtime/mcp_server/src/vds_mcp_server/__init__.py +3 -0
- package/skills/vds-skill/runtime/mcp_server/src/vds_mcp_server/config.py +36 -0
- package/skills/vds-skill/runtime/mcp_server/src/vds_mcp_server/server.py +111 -0
- package/skills/vds-skill/runtime/mcp_server/src/vds_mcp_server/tools/__init__.py +15 -0
- package/skills/vds-skill/runtime/mcp_server/src/vds_mcp_server/tools/bitbucket_tools.py +47 -0
- package/skills/vds-skill/runtime/mcp_server/src/vds_mcp_server/tools/confluence_tools.py +53 -0
- package/skills/vds-skill/runtime/mcp_server/src/vds_mcp_server/tools/git_tools.py +71 -0
- package/skills/vds-skill/runtime/mcp_server/src/vds_mcp_server/tools/jira_tools.py +63 -0
- package/skills/vds-skill/runtime/mcp_server/src/vds_mcp_server/tools/vidp_tools.py +64 -0
- package/skills/vds-skill/runtime/mcp_server/tests/__init__.py +1 -0
- package/skills/vds-skill/runtime/mcp_server/tests/conftest.py +31 -0
- package/skills/vds-skill/runtime/mcp_server/tests/unit/__init__.py +1 -0
- package/skills/vds-skill/runtime/mcp_server/tests/unit/test_bitbucket_tools.py +28 -0
- package/skills/vds-skill/runtime/mcp_server/tests/unit/test_confluence_tools.py +28 -0
- package/skills/vds-skill/runtime/mcp_server/tests/unit/test_git_tools.py +35 -0
- package/skills/vds-skill/runtime/mcp_server/tests/unit/test_jira_tools.py +35 -0
- package/skills/vds-skill/runtime/mcp_server/tests/verification/__init__.py +6 -0
- package/skills/vds-skill/runtime/mcp_server/tests/verification/conftest.py +51 -0
- package/skills/vds-skill/runtime/mcp_server/tests/verification/test_mcp_confluence_tools.py +40 -0
- package/skills/vds-skill/runtime/mcp_server/tests/verification/test_mcp_jira_tools.py +39 -0
- package/skills/vds-skill/runtime/mcp_server/tests/verification/test_mcp_tool_registration.py +50 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/.dockerignore +93 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/.env.example +40 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/.ruff_rules.py +350 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/.yamllint.yml +43 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/DEVELOPMENT_PLAN.md +80 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/Dockerfile +87 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/README.md +608 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/cli_verification_test/test.md +6 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/cli_verification_test/test.pdf +0 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/config/alertmanager.yml +83 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/config/prometheus.prod.yml +98 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/config/prometheus.yml +40 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/config/redis.conf +78 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/docs/COMPETITIVE_ANALYSIS_REPORT.md +309 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/docs/FEATURES_GUIDE.md +518 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/docs/MULTI_USER_DEPLOYMENT_GUIDE.md +615 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/docs/USER_GUIDE.md +829 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/pyproject.toml +87 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/pytest.ini +71 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/ruff.toml +6 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/scripts/debug_security_report.py +59 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/scripts/demo_library_selector.py +109 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/scripts/generate_project_stats.py +52 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/scripts/generate_styled_pdf.py +95 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/scripts/migrate_render_pdfs.py +285 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/scripts/setup_team.bat +283 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/scripts/setup_team.sh +324 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/src/vds_pdf_orchestrator/__init__.py +5 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/src/vds_pdf_orchestrator/cli.py +542 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/src/vds_pdf_orchestrator/config.py +33 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/tests/README.md +650 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/tests/__init__.py +0 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/tests/conftest.py +520 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/tests/requirements.txt +51 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/tests/run_tests.py +659 -0
- package/skills/vds-skill/runtime/pdf_orchestrator/tests/test_config.py +36 -0
- package/skills/vds-skill/runtime/platform_core/pyproject.toml +49 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/__init__.py +16 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/alembic/__init__.py +18 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/alembic/runtime.py +139 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/config.py +88 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/credentials.py +40 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/env.py +24 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/errors.py +127 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/http/__init__.py +18 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/http/auth.py +32 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/http/errors.py +47 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/http/pagination.py +65 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/http/retry.py +62 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/http/stack.py +61 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/logging.py +132 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/protocols.py +77 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/serialization.py +80 -0
- package/skills/vds-skill/runtime/platform_core/src/vds_platform_core/severity.py +175 -0
- package/skills/vds-skill/runtime/platform_core/tests/__init__.py +0 -0
- package/skills/vds-skill/runtime/platform_core/tests/conftest.py +1 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_alembic_runtime.py +300 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_auth.py +84 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_config.py +83 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_credentials.py +73 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_env.py +56 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_errors.py +201 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_errors_http.py +74 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_http_settings.py +116 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_logging.py +148 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_pagination.py +153 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_protocols.py +132 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_retry.py +151 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_serialization.py +92 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_severity.py +178 -0
- package/skills/vds-skill/runtime/platform_core/tests/test_stack.py +130 -0
- package/skills/vds-skill/runtime/platform_core/uv.lock +341 -0
- package/skills/vds-skill/runtime/pyproject.toml +145 -0
- package/skills/vds-skill/runtime/pyrightconfig.json +82 -0
- package/skills/vds-skill/runtime/repo-manifest.yaml +380 -0
- package/skills/vds-skill/runtime/repo-manifest.yaml.example +25 -0
- package/skills/vds-skill/runtime/ruff.toml +100 -0
- package/skills/vds-skill/runtime/scripts/BRD-Validation-API.postman_collection.json +706 -0
- package/skills/vds-skill/runtime/scripts/BRD-Validation-README.md +308 -0
- package/skills/vds-skill/runtime/scripts/README.md +271 -0
- package/skills/vds-skill/runtime/scripts/_validate_alias_phase2.py +137 -0
- package/skills/vds-skill/runtime/scripts/audit-cli-patterns.sh +135 -0
- package/skills/vds-skill/runtime/scripts/audit-dashboard.sh +525 -0
- package/skills/vds-skill/runtime/scripts/backup.sh +123 -0
- package/skills/vds-skill/runtime/scripts/bootstrap_uv.sh +69 -0
- package/skills/vds-skill/runtime/scripts/brd-validation-environment.json +51 -0
- package/skills/vds-skill/runtime/scripts/brd-validation-test-results.json +13023 -0
- package/skills/vds-skill/runtime/scripts/brd_coverage_report.json +276 -0
- package/skills/vds-skill/runtime/scripts/check-future-annotations.py +22 -0
- package/skills/vds-skill/runtime/scripts/check-invalid-symlinks.py +183 -0
- package/skills/vds-skill/runtime/scripts/check-no-debug-markers.py +21 -0
- package/skills/vds-skill/runtime/scripts/check-no-unittest.py +21 -0
- package/skills/vds-skill/runtime/scripts/ci/assert_no_openspace_commits.sh +37 -0
- package/skills/vds-skill/runtime/scripts/ci/verify_branch_protection.sh +64 -0
- package/skills/vds-skill/runtime/scripts/closure/phase1_check.sh +483 -0
- package/skills/vds-skill/runtime/scripts/closure/phase2_check.sh +500 -0
- package/skills/vds-skill/runtime/scripts/create_memory_session.py +36 -0
- package/skills/vds-skill/runtime/scripts/deploy-bootstrap.sh +201 -0
- package/skills/vds-skill/runtime/scripts/deployment/load_docker_images_offline.sh +90 -0
- package/skills/vds-skill/runtime/scripts/dev/cli_smoke.sh +259 -0
- package/skills/vds-skill/runtime/scripts/final_completion_report.md +139 -0
- package/skills/vds-skill/runtime/scripts/folder_structure_report.json +321 -0
- package/skills/vds-skill/runtime/scripts/generate_completion_report.py +132 -0
- package/skills/vds-skill/runtime/scripts/generate_intellij_modules.py +154 -0
- package/skills/vds-skill/runtime/scripts/init-pgbouncer-userlist.sh +154 -0
- package/skills/vds-skill/runtime/scripts/link_integrity_report.json +807 -0
- package/skills/vds-skill/runtime/scripts/move_audit_artifact_pages.py +252 -0
- package/skills/vds-skill/runtime/scripts/move_audit_artifact_pages_rest.py +165 -0
- package/skills/vds-skill/runtime/scripts/move_wrong_dept_pages.py +235 -0
- package/skills/vds-skill/runtime/scripts/openspace_bootstrap.sh +56 -0
- package/skills/vds-skill/runtime/scripts/openspace_common.sh +75 -0
- package/skills/vds-skill/runtime/scripts/openspace_doctor.sh +61 -0
- package/skills/vds-skill/runtime/scripts/openspace_sync_shadow.sh +65 -0
- package/skills/vds-skill/runtime/scripts/phase7-baseline.sh +77 -0
- package/skills/vds-skill/runtime/scripts/preflight/env_check.sh +102 -0
- package/skills/vds-skill/runtime/scripts/repair_autopay_reports.sh +173 -0
- package/skills/vds-skill/runtime/scripts/rollback_drill.sh +659 -0
- package/skills/vds-skill/runtime/scripts/run-audit-in-tmux.sh +286 -0
- package/skills/vds-skill/runtime/scripts/run-department-audit.sh +495 -0
- package/skills/vds-skill/runtime/scripts/run-project-audit.sh +267 -0
- package/skills/vds-skill/runtime/scripts/save_intellij_memories.py +112 -0
- package/skills/vds-skill/runtime/scripts/save_memories_to_vds_ai.py +81 -0
- package/skills/vds-skill/runtime/scripts/save_memories_vds_style.py +133 -0
- package/skills/vds-skill/runtime/scripts/search_intellij_memories.py +48 -0
- package/skills/vds-skill/runtime/scripts/setup_intellij_workspace.py +71 -0
- package/skills/vds-skill/runtime/scripts/smoke-test-deploy.sh +137 -0
- package/skills/vds-skill/runtime/scripts/smoke_deploy_lib.py +205 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/README.md +89 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/confluence_sync_coordinator.sh +27 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/coordination.sh +114 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/diagram_coordinator.sh +25 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/docs_root.sh +22 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/generate_diagrams.sh +22 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/markdown_coordinator.sh +25 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/progress_dashboard.sh +17 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/schema_coordinator.sh +25 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/sync_confluence.sh +30 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/update_dependencies.sh +19 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/validate_links.sh +86 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/validate_markdown.sh +52 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/validate_schemas.sh +26 -0
- package/skills/vds-skill/runtime/scripts/target-state-automation/validate_structure.sh +98 -0
- package/skills/vds-skill/runtime/scripts/tests/__init__.py +1 -0
- package/skills/vds-skill/runtime/scripts/tests/test_dockerfile_correctness.py +815 -0
- package/skills/vds-skill/runtime/scripts/tests/test_makefile_loadouts.py +560 -0
- package/skills/vds-skill/runtime/scripts/tests/test_smoke_deploy.py +313 -0
- package/skills/vds-skill/runtime/scripts/tests/test_verify_alembic.py +581 -0
- package/skills/vds-skill/runtime/scripts/tests/test_verify_infra_topology.py +254 -0
- package/skills/vds-skill/runtime/scripts/update_modules_xml.py +194 -0
- package/skills/vds-skill/runtime/scripts/uv-workspace-alignment-verification-2026-03-25.md +128 -0
- package/skills/vds-skill/runtime/scripts/uv-workspace-alignment-verification-2026-04-18.md +100 -0
- package/skills/vds-skill/runtime/scripts/validate-cli-standardization.sh +188 -0
- package/skills/vds-skill/runtime/scripts/validate_brd_coverage.py +197 -0
- package/skills/vds-skill/runtime/scripts/validate_folder_structure.py +234 -0
- package/skills/vds-skill/runtime/scripts/validate_link_integrity.py +274 -0
- package/skills/vds-skill/runtime/scripts/vami017-caller-compat-report.md +62 -0
- package/skills/vds-skill/runtime/scripts/vami017-phase-b-scaffold-notes.md +79 -0
- package/skills/vds-skill/runtime/scripts/vds_sh_helpers.sh +180 -0
- package/skills/vds-skill/runtime/scripts/verification/phase2_portable_paths_ubuntu_docker.sh +26 -0
- package/skills/vds-skill/runtime/scripts/verify-infra-topology.py +868 -0
- package/skills/vds-skill/runtime/scripts/verify-memory-cli-e2e.sh +598 -0
- package/skills/vds-skill/runtime/scripts/verify-worktree-features.sh +306 -0
- package/skills/vds-skill/runtime/scripts/worktree-add.sh +128 -0
- package/skills/vds-skill/runtime/scripts/worktree-remove.sh +112 -0
- package/skills/vds-skill/runtime/scripts/worktree_compose.sh +269 -0
- package/skills/vds-skill/runtime/scripts/worktree_uv.sh +77 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/IMPLEMENTATION_AUDIT.md +376 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/README.md +507 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/pyproject.toml +106 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/scripts/ensure_symlink.sh +38 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/__init__.py +164 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/batch.py +212 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/cli.py +1407 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/client.py +608 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/config.py +260 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/diff.py +220 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/errors.py +34 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/external_sca.py +932 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/portfolio.py +225 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/pr.py +505 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/reports.py +342 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/scanner.py +351 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/webhooks.py +269 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/tests/__init__.py +0 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/tests/conftest.py +134 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/tests/test_batch.py +419 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/tests/test_config.py +145 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/tests/test_errors.py +78 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/tests/test_external_sca.py +466 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/tests/test_pr.py +471 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/tests/test_reports.py +511 -0
- package/skills/vds-skill/runtime/sonarqube_orchestrator/tests/test_webhooks.py +660 -0
- package/skills/vds-skill/runtime/uv.lock +5046 -0
- package/skills/vds-skill/runtime/vds_agent_core/CHANGELOG.md +36 -0
- package/skills/vds-skill/runtime/vds_agent_core/README.md +453 -0
- package/skills/vds-skill/runtime/vds_agent_core/docs/PHASE9A_ASSESSMENT.md +50 -0
- package/skills/vds-skill/runtime/vds_agent_core/docs/embedding.md +468 -0
- package/skills/vds-skill/runtime/vds_agent_core/pyproject.toml +51 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/__init__.py +29 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/agents/__init__.py +26 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/agents/hooks.py +119 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/agents/loop.py +864 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/agents/tools.py +41 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/config.py +252 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/llm/__init__.py +55 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/llm/_cascade.py +143 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/llm/budget.py +353 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/llm/cache.py +373 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/llm/embedding.py +815 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/llm/provider.py +173 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/llm/schemas.py +45 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/observability/__init__.py +77 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/observability/decorators.py +258 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/observability/jsonl_exporter.py +236 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/observability/tracer.py +497 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/profiles.py +2015 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/runtime/__init__.py +0 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/runtime/agent_id.py +60 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/security/__init__.py +13 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/security/credentials.py +106 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/skills/__init__.py +1 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/skills/executor.py +238 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/skills/manager.py +381 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/skills/policy.py +568 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/workflows/__init__.py +19 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/workflows/langgraph_runner.py +102 -0
- package/skills/vds-skill/runtime/vds_agent_core/src/vds_agent_core/workflows/protocols.py +81 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/__init__.py +0 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/conftest.py +62 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/integration/__init__.py +0 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/integration/test_audit_loop_hooks_integration.py +135 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/integration/test_audit_observability_integration.py +246 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/integration/test_public_api_stability.py +91 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/__init__.py +0 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/llm/__init__.py +0 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/llm/test_call_site_parallelism.py +30 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/llm/test_dimension_guardrail.py +25 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/llm/test_drop_in_provider_extensibility.py +76 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/llm/test_embedding.py +393 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/llm/test_embedding_cache.py +302 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/llm/test_embedding_extra.py +696 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/llm/test_embedding_subclass.py +49 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/llm/test_no_provider_leakage_in_env.py +34 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/llm/test_provider_auto_route.py +48 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/llm/test_runtime_log_clean.py +111 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/llm/test_w7_logic_fixes.py +219 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/profiles/__init__.py +0 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/profiles/test_embedding_block_parser.py +194 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/profiles/test_env_resolver_allowlist.py +141 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/profiles/test_profile_authorization.py +158 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/profiles/test_profiles_w3_extra.py +547 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/profiles/test_real_audit_profile_compat.py +129 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/runtime/__init__.py +0 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/runtime/test_for_agent.py +322 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/runtime/test_w9_cascade_edges.py +369 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/security/__init__.py +0 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/security/test_credentials.py +132 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_agent_loop.py +663 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_agent_loop_coverage.py +429 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_agents_hooks_defaults.py +22 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_budget.py +155 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_budget_coverage.py +264 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_budget_tracking_only.py +71 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_cache.py +251 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_cache_context.py +62 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_config.py +155 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_langgraph_runner.py +45 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_langgraph_runner_coverage.py +98 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_llm_cache_deep.py +113 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_observability_decorators.py +697 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_observability_hooks.py +217 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_observability_jsonl_exporter.py +542 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_observability_jsonl_wiring.py +313 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_observability_tracer.py +896 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_profiles.py +1571 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_profiles_coverage.py +444 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_provider.py +316 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_schemas.py +63 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_skill_executor.py +297 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_skill_manager.py +370 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_skill_manager_coverage.py +364 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_skill_policy.py +402 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_skill_rubric.py +47 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_tools.py +51 -0
- package/skills/vds-skill/runtime/vds_agent_core/tests/unit/test_workflow_protocols.py +136 -0
- package/skills/vds-skill/runtime/vds_cli/README.md +201 -0
- package/skills/vds-skill/runtime/vds_cli/VERIFICATION_REPORT.md +41 -0
- package/skills/vds-skill/runtime/vds_cli/pyproject.toml +50 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/__init__.py +3 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/assets/git-credential-helper.py +235 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/cli.py +1126 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/commands/__init__.py +1 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/commands/lint_cli.py +389 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/confluence_sync.py +855 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/docs/consumption/__init__.py +7 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/docs/consumption/funnel.py +105 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/docs/consumption/scanner.py +211 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/docs/freshness/report.py +90 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/docs/types.py +27 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/docs_cmd.py +672 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/docs_metrics.py +75 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/docs_sync.py +1171 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/ecosystem/__init__.py +39 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/ecosystem/report.py +439 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/ecosystem_docs.py +164 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/env.py +111 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/env_git_helper.py +281 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/google_sheets_orchestrator/__init__.py +3 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/google_sheets_orchestrator/google_sheets_orchestrator.py +173 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/router.py +232 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/skills_cmd.py +274 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/sync_api.py +613 -0
- package/skills/vds-skill/runtime/vds_cli/src/vds_cli/sync_service.py +283 -0
- package/skills/vds-skill/runtime/vds_cli/tests/conftest.py +62 -0
- package/skills/vds-skill/runtime/vds_cli/tests/test_env_git_helper_lifecycle.py +261 -0
- package/skills/vds-skill/runtime/vds_cli/tests/test_git_credential_helper.py +240 -0
- package/skills/vds-skill/runtime/vds_cli/tests/test_router_help_proxy.py +43 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_cli.py +241 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_cli_DOC004.py +110 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_confluence_sync.py +315 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_confluence_sync_wave7.py +375 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_consumption_funnel.py +106 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_consumption_scanner.py +144 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_docs_cmd.py +89 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_docs_cmd_wave8.py +161 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_docs_metrics.py +16 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_docs_quality_score.py +61 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_docs_sync.py +417 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_ecosystem_cli_dashboard.py +667 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_ecosystem_cli_dashboard_rendering.py +143 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_ecosystem_docs.py +63 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_env.py +85 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_freshness_report.py +125 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_lint_cli.py +224 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_router.py +101 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_skills_cmd.py +419 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_sync_api.py +357 -0
- package/skills/vds-skill/runtime/vds_cli/tests/unit/test_sync_service.py +170 -0
- package/skills/vds-skill/runtime/vds_cli/tests/verification/conftest.py +51 -0
- package/skills/vds-skill/runtime/vds_cli/tests/verification/test_bitbucket_real.py +32 -0
- package/skills/vds-skill/runtime/vds_cli/tests/verification/test_confluence_real.py +32 -0
- package/skills/vds-skill/runtime/vds_cli/tests/verification/test_jira_real.py +40 -0
- package/skills/vds-skill/runtime/vds_cli_common/README.md +190 -0
- package/skills/vds-skill/runtime/vds_cli_common/pyproject.toml +96 -0
- package/skills/vds-skill/runtime/vds_cli_common/src/vds_cli_common/__init__.py +36 -0
- package/skills/vds-skill/runtime/vds_cli_common/src/vds_cli_common/app.py +55 -0
- package/skills/vds-skill/runtime/vds_cli_common/src/vds_cli_common/completers.py +139 -0
- package/skills/vds-skill/runtime/vds_cli_common/src/vds_cli_common/context.py +201 -0
- package/skills/vds-skill/runtime/vds_cli_common/src/vds_cli_common/env.py +163 -0
- package/skills/vds-skill/runtime/vds_cli_common/src/vds_cli_common/errors.py +440 -0
- package/skills/vds-skill/runtime/vds_cli_common/src/vds_cli_common/output.py +284 -0
- package/skills/vds-skill/runtime/vds_cli_common/src/vds_cli_common/paths.py +78 -0
- package/skills/vds-skill/runtime/vds_cli_common/src/vds_cli_common/testing.py +211 -0
- package/skills/vds-skill/runtime/vds_cli_common/src/vds_cli_common/version.py +85 -0
- package/skills/vds-skill/runtime/vds_cli_common/tests/__init__.py +0 -0
- package/skills/vds-skill/runtime/vds_cli_common/tests/test_app.py +126 -0
- package/skills/vds-skill/runtime/vds_cli_common/tests/test_completers.py +148 -0
- package/skills/vds-skill/runtime/vds_cli_common/tests/test_context.py +192 -0
- package/skills/vds-skill/runtime/vds_cli_common/tests/test_env.py +235 -0
- package/skills/vds-skill/runtime/vds_cli_common/tests/test_errors.py +275 -0
- package/skills/vds-skill/runtime/vds_cli_common/tests/test_output.py +229 -0
- package/skills/vds-skill/runtime/vds_cli_common/tests/test_paths.py +61 -0
- package/skills/vds-skill/runtime/vds_cli_common/tests/test_testing.py +138 -0
- package/skills/vds-skill/runtime/vds_cli_common/tests/test_version.py +64 -0
- package/skills/vds-skill/runtime/vidp_orchestrator/README.md +31 -0
- package/skills/vds-skill/runtime/vidp_orchestrator/pyproject.toml +50 -0
- package/skills/vds-skill/runtime/vidp_orchestrator/src/vds_vidp_orchestrator/__init__.py +26 -0
- package/skills/vds-skill/runtime/vidp_orchestrator/src/vds_vidp_orchestrator/cli.py +246 -0
- package/skills/vds-skill/runtime/vidp_orchestrator/src/vds_vidp_orchestrator/client.py +104 -0
- package/skills/vds-skill/runtime/vidp_orchestrator/src/vds_vidp_orchestrator/config.py +82 -0
- package/skills/vds-skill/runtime/vidp_orchestrator/src/vds_vidp_orchestrator/workflows.json +3 -0
- package/skills/vds-skill/runtime/vidp_orchestrator/src/vds_vidp_orchestrator/workflows.py +130 -0
- package/skills/vds-skill/vds-scripts-skill/SKILL.md +129 -0
- package/skills/vds-skill/vds-scripts-skill/references/audit-commands.md +171 -0
- package/skills/vds-skill/vds-scripts-skill/references/capability-index.md +34 -0
- package/skills/vds-skill/vds-scripts-skill/references/development-commands.md +12 -0
- package/skills/vds-skill/vds-scripts-skill/references/google-sheets.md +71 -0
- package/skills/vds-skill/vds-scripts-skill/references/integration-commands.md +17 -0
- package/skills/vds-skill/vds-scripts-skill/references/platform-bootstrap.md +25 -0
- package/skills/vds-skill/vds-scripts-skill/references/specialist-routing.md +14 -0
- package/skills/vds-skill/vds-scripts-skill/references/validation-commands.md +15 -0
|
@@ -0,0 +1,864 @@
|
|
|
1
|
+
"""Bounded autonomy loop for tool-first analysis (generic, extracted from audit).
|
|
2
|
+
|
|
3
|
+
The loop is intentionally conservative and deterministic:
|
|
4
|
+
- hard bounds on steps, timeout, and budget
|
|
5
|
+
- strict termination reason taxonomy for observability
|
|
6
|
+
- tool calls delegated through centralized ToolRegistry
|
|
7
|
+
- orchestrator-specific behavior injected via LoopBehaviorHooks
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
import hashlib
|
|
13
|
+
import json
|
|
14
|
+
import time
|
|
15
|
+
from collections.abc import Callable
|
|
16
|
+
from contextlib import contextmanager
|
|
17
|
+
from dataclasses import dataclass, field
|
|
18
|
+
from enum import StrEnum
|
|
19
|
+
from typing import TYPE_CHECKING, Any
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
|
|
23
|
+
from vds_agent_core.agents.hooks import LoopBehaviorHooks, NoOpHooks
|
|
24
|
+
from vds_agent_core.observability import AgentTracer
|
|
25
|
+
|
|
26
|
+
if TYPE_CHECKING:
|
|
27
|
+
from vds_agent_core.agents.tools import ToolRegistry
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@contextmanager
|
|
31
|
+
def _nullcontext():
|
|
32
|
+
"""No-op context manager for when tracing is disabled."""
|
|
33
|
+
yield
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
_REQUIREMENT_ANALYSIS_DIAGNOSTIC_KEYS: tuple[str, ...] = (
|
|
37
|
+
"analysis_mode",
|
|
38
|
+
"analysis_reason_codes",
|
|
39
|
+
"required_anchor_modalities",
|
|
40
|
+
"project_scope_required",
|
|
41
|
+
"generic_anchor_exemption",
|
|
42
|
+
"minimum_substantive_code_anchors",
|
|
43
|
+
"finalization_policy",
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class _StrictModel(BaseModel):
|
|
48
|
+
model_config = ConfigDict(extra="forbid", strict=True)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class LoopTerminationReason(StrEnum):
|
|
52
|
+
"""Canonical loop termination reasons."""
|
|
53
|
+
|
|
54
|
+
COMPLETED = "completed"
|
|
55
|
+
MAX_STEPS = "max_steps"
|
|
56
|
+
TIMEOUT = "timeout"
|
|
57
|
+
BUDGET_EXHAUSTED = "budget_exhausted"
|
|
58
|
+
INSUFFICIENT_EVIDENCE = "insufficient_evidence"
|
|
59
|
+
TOOL_ERROR = "tool_error"
|
|
60
|
+
STAGNATION = "stagnation"
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
@dataclass(slots=True)
|
|
64
|
+
class AgentLoopConfig:
|
|
65
|
+
"""Execution bounds for the autonomy loop."""
|
|
66
|
+
|
|
67
|
+
max_steps: int = 15
|
|
68
|
+
timeout_seconds: float = 10.0
|
|
69
|
+
budget_units: int = 15
|
|
70
|
+
tool_calls_limit: int = 12
|
|
71
|
+
require_evidence: bool = False
|
|
72
|
+
min_evidence_refs: int = 1
|
|
73
|
+
stagnation_threshold: int = 3
|
|
74
|
+
"""Number of consecutive steps without progress before stagnation termination."""
|
|
75
|
+
checkpoint_key: str | None = None
|
|
76
|
+
"""Optional state checkpoint key for persistence/resume."""
|
|
77
|
+
checkpoint_manager: Any | None = field(default=None, repr=False)
|
|
78
|
+
"""Optional CheckpointManager for state persistence (opt-in)."""
|
|
79
|
+
evidence_overrides: dict[str, dict[str, int]] = field(default_factory=dict)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class AgentLoopAction(_StrictModel):
|
|
83
|
+
"""Planner-selected action for the next step."""
|
|
84
|
+
|
|
85
|
+
tool: str
|
|
86
|
+
payload: dict[str, Any] = Field(default_factory=dict)
|
|
87
|
+
budget_cost: int = Field(default=1, ge=1)
|
|
88
|
+
route_id: str | None = None
|
|
89
|
+
route_reason: str | None = None
|
|
90
|
+
route_confidence: float = Field(default=0.0, ge=0.0, le=1.0)
|
|
91
|
+
ambiguity_reason_codes: list[str] = Field(default_factory=list)
|
|
92
|
+
required_steps: list[str] = Field(default_factory=list)
|
|
93
|
+
required_tools: list[str] = Field(default_factory=list)
|
|
94
|
+
override_source: str | None = None
|
|
95
|
+
override_reason: str | None = None
|
|
96
|
+
depth_level: int = Field(default=1, ge=1)
|
|
97
|
+
depth_increase_reason: str | None = None
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class AgentLoopStep(_StrictModel):
|
|
101
|
+
"""Per-step execution trace."""
|
|
102
|
+
|
|
103
|
+
step: int = Field(ge=1)
|
|
104
|
+
tool: str
|
|
105
|
+
budget_cost: int = Field(ge=1)
|
|
106
|
+
budget_remaining: int = Field(ge=0)
|
|
107
|
+
output: dict[str, Any] = Field(default_factory=dict)
|
|
108
|
+
route_id: str | None = None
|
|
109
|
+
route_reason: str | None = None
|
|
110
|
+
route_confidence: float = Field(default=0.0, ge=0.0, le=1.0)
|
|
111
|
+
ambiguity_reason_codes: list[str] = Field(default_factory=list)
|
|
112
|
+
required_steps: list[str] = Field(default_factory=list)
|
|
113
|
+
required_tools: list[str] = Field(default_factory=list)
|
|
114
|
+
override_source: str | None = None
|
|
115
|
+
override_reason: str | None = None
|
|
116
|
+
depth_level: int = Field(default=1, ge=1)
|
|
117
|
+
depth_increase_reason: str | None = None
|
|
118
|
+
payload: dict[str, Any] = Field(default_factory=dict)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class AgentLoopResult(_StrictModel):
|
|
122
|
+
"""Bounded loop result with trace metadata hooks."""
|
|
123
|
+
|
|
124
|
+
termination_reason: LoopTerminationReason
|
|
125
|
+
steps_executed: int = Field(ge=0)
|
|
126
|
+
budget_remaining: int = Field(ge=0)
|
|
127
|
+
elapsed_seconds: float = Field(ge=0.0)
|
|
128
|
+
evidence_refs: list[str] = Field(default_factory=list)
|
|
129
|
+
trace_steps: list[AgentLoopStep] = Field(default_factory=list)
|
|
130
|
+
tool_error: str | None = None
|
|
131
|
+
docs_intent_utilization: dict[str, Any] = Field(default_factory=dict)
|
|
132
|
+
code_ranking_diagnostics: dict[str, Any] = Field(default_factory=dict)
|
|
133
|
+
project_artifact_refs: list[dict[str, Any]] = Field(default_factory=list)
|
|
134
|
+
cross_repo_evidence_refs: list[dict[str, Any]] = Field(default_factory=list)
|
|
135
|
+
config_repo_companion_refs: list[dict[str, Any]] = Field(default_factory=list)
|
|
136
|
+
prior_knowledge_refs: list[dict[str, Any]] = Field(default_factory=list)
|
|
137
|
+
max_depth_level: int = Field(default=0, ge=0)
|
|
138
|
+
depth_stop_reason: str | None = None
|
|
139
|
+
|
|
140
|
+
def to_trace_metadata(self) -> dict[str, Any]:
|
|
141
|
+
"""Serialize stable metadata payload for row evaluator passthrough."""
|
|
142
|
+
normalized_tool_error: str | bool = False
|
|
143
|
+
raw_tool_error = self.tool_error
|
|
144
|
+
if isinstance(raw_tool_error, str):
|
|
145
|
+
normalized_text = raw_tool_error.strip()
|
|
146
|
+
if normalized_text:
|
|
147
|
+
normalized_tool_error = normalized_text
|
|
148
|
+
normalized_depth_stop_reason: str | bool = False
|
|
149
|
+
raw_depth_stop_reason = self.depth_stop_reason
|
|
150
|
+
if isinstance(raw_depth_stop_reason, str):
|
|
151
|
+
normalized_depth_text = raw_depth_stop_reason.strip()
|
|
152
|
+
if normalized_depth_text:
|
|
153
|
+
normalized_depth_stop_reason = normalized_depth_text
|
|
154
|
+
return {
|
|
155
|
+
"termination_reason": self.termination_reason.value,
|
|
156
|
+
"steps_executed": self.steps_executed,
|
|
157
|
+
"budget_remaining": self.budget_remaining,
|
|
158
|
+
"elapsed_seconds": self.elapsed_seconds,
|
|
159
|
+
"evidence_refs": list(self.evidence_refs),
|
|
160
|
+
"trace_steps": [step.model_dump() for step in self.trace_steps],
|
|
161
|
+
"tool_error": normalized_tool_error,
|
|
162
|
+
"docs_intent_utilization": dict(self.docs_intent_utilization),
|
|
163
|
+
"code_ranking_diagnostics": dict(self.code_ranking_diagnostics),
|
|
164
|
+
"project_artifact_refs": list(self.project_artifact_refs),
|
|
165
|
+
"cross_repo_evidence_refs": list(self.cross_repo_evidence_refs),
|
|
166
|
+
"config_repo_companion_refs": list(self.config_repo_companion_refs),
|
|
167
|
+
"prior_knowledge_refs": list(self.prior_knowledge_refs),
|
|
168
|
+
"max_depth_level": int(self.max_depth_level or 0),
|
|
169
|
+
"depth_stop_reason": normalized_depth_stop_reason,
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
PlannerFn = Callable[[int, dict[str, Any], list[AgentLoopStep]], AgentLoopAction | None]
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
class BoundedAgentLoop:
|
|
177
|
+
"""Deterministic, bounded autonomy loop over typed tool calls.
|
|
178
|
+
|
|
179
|
+
Orchestrator-specific behavior is injected via ``hooks``. The default
|
|
180
|
+
``NoOpHooks`` makes the loop fully generic (no audit coupling).
|
|
181
|
+
"""
|
|
182
|
+
|
|
183
|
+
def __init__(
|
|
184
|
+
self,
|
|
185
|
+
registry: ToolRegistry,
|
|
186
|
+
config: AgentLoopConfig,
|
|
187
|
+
*,
|
|
188
|
+
planner: PlannerFn | None = None,
|
|
189
|
+
clock: Callable[[], float] | None = None,
|
|
190
|
+
hooks: LoopBehaviorHooks | None = None,
|
|
191
|
+
) -> None:
|
|
192
|
+
self.registry = registry
|
|
193
|
+
self.config = config
|
|
194
|
+
self._planner = planner
|
|
195
|
+
self._clock = clock or time.monotonic
|
|
196
|
+
self._hooks = hooks or NoOpHooks()
|
|
197
|
+
self._call_history: set[str] = set()
|
|
198
|
+
self._stagnation_counter: int = 0
|
|
199
|
+
self._tracer = AgentTracer()
|
|
200
|
+
|
|
201
|
+
def run(
|
|
202
|
+
self,
|
|
203
|
+
*,
|
|
204
|
+
initial_context: dict[str, Any] | None = None,
|
|
205
|
+
reset_stagnation_counter: bool = False,
|
|
206
|
+
) -> AgentLoopResult:
|
|
207
|
+
self._call_history.clear()
|
|
208
|
+
self._stagnation_counter = 0
|
|
209
|
+
|
|
210
|
+
context = dict(initial_context or {})
|
|
211
|
+
context["_loop_behavior_hooks"] = self._hooks
|
|
212
|
+
evidence_refs = list(context.get("evidence_refs") or [])
|
|
213
|
+
if "seed_evidence_refs" not in context:
|
|
214
|
+
context["seed_evidence_refs"] = list(evidence_refs)
|
|
215
|
+
if self.config.evidence_overrides:
|
|
216
|
+
context.setdefault("_evidence_overrides", self.config.evidence_overrides)
|
|
217
|
+
|
|
218
|
+
budget_remaining = max(0, int(self.config.budget_units))
|
|
219
|
+
_max_steps = max(0, int(self.config.max_steps))
|
|
220
|
+
timeout_seconds = max(0.0, float(self.config.timeout_seconds))
|
|
221
|
+
_tool_calls_limit = max(0, int(self.config.tool_calls_limit))
|
|
222
|
+
tool_calls_used = 0
|
|
223
|
+
trace: list[AgentLoopStep] = []
|
|
224
|
+
step_count = 0
|
|
225
|
+
max_depth_level = 0
|
|
226
|
+
|
|
227
|
+
started = self._clock()
|
|
228
|
+
|
|
229
|
+
if timeout_seconds == 0.0:
|
|
230
|
+
return self._build_result(
|
|
231
|
+
termination_reason=LoopTerminationReason.TIMEOUT,
|
|
232
|
+
steps_executed=0,
|
|
233
|
+
budget_remaining=budget_remaining,
|
|
234
|
+
elapsed_seconds=0.0,
|
|
235
|
+
evidence_refs=evidence_refs,
|
|
236
|
+
trace_steps=trace,
|
|
237
|
+
context=context,
|
|
238
|
+
max_depth_level=max_depth_level,
|
|
239
|
+
)
|
|
240
|
+
|
|
241
|
+
if budget_remaining <= 0:
|
|
242
|
+
return self._build_result(
|
|
243
|
+
termination_reason=LoopTerminationReason.BUDGET_EXHAUSTED,
|
|
244
|
+
steps_executed=0,
|
|
245
|
+
budget_remaining=0,
|
|
246
|
+
elapsed_seconds=max(0.0, self._clock() - started),
|
|
247
|
+
evidence_refs=evidence_refs,
|
|
248
|
+
trace_steps=trace,
|
|
249
|
+
context=context,
|
|
250
|
+
max_depth_level=max_depth_level,
|
|
251
|
+
)
|
|
252
|
+
|
|
253
|
+
trace_context = self._hooks.get_trace_context()
|
|
254
|
+
tracing_active = bool(trace_context) and self._tracer.is_enabled
|
|
255
|
+
|
|
256
|
+
if tracing_active:
|
|
257
|
+
config_for_tracer = {
|
|
258
|
+
"max_steps": self.config.max_steps,
|
|
259
|
+
"timeout_seconds": self.config.timeout_seconds,
|
|
260
|
+
"budget_units": self.config.budget_units,
|
|
261
|
+
}
|
|
262
|
+
loop_id = trace_context.get("loop_id", "unknown")
|
|
263
|
+
with self._tracer.trace_loop(loop_id, config_for_tracer) as loop_span:
|
|
264
|
+
if loop_span:
|
|
265
|
+
for key, value in trace_context.items():
|
|
266
|
+
if key != "loop_id" and value is not None:
|
|
267
|
+
loop_span.set_attribute(f"trace.context.{key}", str(value))
|
|
268
|
+
result = self._run_loop(
|
|
269
|
+
context=context,
|
|
270
|
+
started=started,
|
|
271
|
+
trace=trace,
|
|
272
|
+
step_count=step_count,
|
|
273
|
+
max_depth_level=max_depth_level,
|
|
274
|
+
budget_remaining=budget_remaining,
|
|
275
|
+
tool_calls_used=tool_calls_used,
|
|
276
|
+
tracing_active=tracing_active,
|
|
277
|
+
evidence_refs=evidence_refs,
|
|
278
|
+
)
|
|
279
|
+
else:
|
|
280
|
+
result = self._run_loop(
|
|
281
|
+
context=context,
|
|
282
|
+
started=started,
|
|
283
|
+
trace=trace,
|
|
284
|
+
step_count=step_count,
|
|
285
|
+
max_depth_level=max_depth_level,
|
|
286
|
+
budget_remaining=budget_remaining,
|
|
287
|
+
tool_calls_used=tool_calls_used,
|
|
288
|
+
tracing_active=tracing_active,
|
|
289
|
+
evidence_refs=evidence_refs,
|
|
290
|
+
)
|
|
291
|
+
return result
|
|
292
|
+
|
|
293
|
+
def _run_loop(
|
|
294
|
+
self,
|
|
295
|
+
*,
|
|
296
|
+
context: dict[str, Any],
|
|
297
|
+
started: float,
|
|
298
|
+
trace: list[AgentLoopStep],
|
|
299
|
+
step_count: int,
|
|
300
|
+
max_depth_level: int,
|
|
301
|
+
budget_remaining: int,
|
|
302
|
+
tool_calls_used: int,
|
|
303
|
+
tracing_active: bool,
|
|
304
|
+
evidence_refs: list[str],
|
|
305
|
+
) -> AgentLoopResult:
|
|
306
|
+
"""Inner loop implementation (extracted for tracing integration)."""
|
|
307
|
+
max_steps = max(0, int(self.config.max_steps))
|
|
308
|
+
timeout_seconds = max(0.0, float(self.config.timeout_seconds))
|
|
309
|
+
tool_calls_limit = max(0, int(self.config.tool_calls_limit))
|
|
310
|
+
|
|
311
|
+
while step_count < max_steps:
|
|
312
|
+
elapsed = max(0.0, self._clock() - started)
|
|
313
|
+
if elapsed >= timeout_seconds:
|
|
314
|
+
return self._build_result(
|
|
315
|
+
termination_reason=LoopTerminationReason.TIMEOUT,
|
|
316
|
+
steps_executed=step_count,
|
|
317
|
+
budget_remaining=budget_remaining,
|
|
318
|
+
elapsed_seconds=elapsed,
|
|
319
|
+
evidence_refs=evidence_refs,
|
|
320
|
+
trace_steps=trace,
|
|
321
|
+
context=context,
|
|
322
|
+
max_depth_level=max_depth_level,
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
action = self._next_action(step_count + 1, context, trace)
|
|
326
|
+
if action is None:
|
|
327
|
+
return self._finish_without_next_action(
|
|
328
|
+
started=started,
|
|
329
|
+
steps_executed=step_count,
|
|
330
|
+
budget_remaining=budget_remaining,
|
|
331
|
+
evidence_refs=evidence_refs,
|
|
332
|
+
trace=trace,
|
|
333
|
+
context=context,
|
|
334
|
+
max_depth_level=max_depth_level,
|
|
335
|
+
)
|
|
336
|
+
|
|
337
|
+
if action.budget_cost > budget_remaining:
|
|
338
|
+
return self._build_result(
|
|
339
|
+
termination_reason=LoopTerminationReason.BUDGET_EXHAUSTED,
|
|
340
|
+
steps_executed=step_count,
|
|
341
|
+
budget_remaining=budget_remaining,
|
|
342
|
+
elapsed_seconds=max(0.0, self._clock() - started),
|
|
343
|
+
evidence_refs=evidence_refs,
|
|
344
|
+
trace_steps=trace,
|
|
345
|
+
context=context,
|
|
346
|
+
max_depth_level=max_depth_level,
|
|
347
|
+
)
|
|
348
|
+
|
|
349
|
+
with self._tracer.trace_tool_call(action.tool, dict(action.payload)) if tracing_active else _nullcontext():
|
|
350
|
+
try:
|
|
351
|
+
response = self.registry.invoke(action.tool, action.payload)
|
|
352
|
+
except Exception as exc:
|
|
353
|
+
return self._build_result(
|
|
354
|
+
termination_reason=LoopTerminationReason.TOOL_ERROR,
|
|
355
|
+
steps_executed=step_count,
|
|
356
|
+
budget_remaining=budget_remaining,
|
|
357
|
+
elapsed_seconds=max(0.0, self._clock() - started),
|
|
358
|
+
evidence_refs=evidence_refs,
|
|
359
|
+
trace_steps=trace,
|
|
360
|
+
tool_error=f"{type(exc).__name__}: {exc}",
|
|
361
|
+
context=context,
|
|
362
|
+
max_depth_level=max_depth_level,
|
|
363
|
+
)
|
|
364
|
+
|
|
365
|
+
step_count += 1
|
|
366
|
+
tool_calls_used += 1
|
|
367
|
+
budget_remaining = max(0, budget_remaining - action.budget_cost)
|
|
368
|
+
output_payload = response.payload
|
|
369
|
+
trace.append(
|
|
370
|
+
AgentLoopStep(
|
|
371
|
+
step=step_count,
|
|
372
|
+
tool=action.tool,
|
|
373
|
+
budget_cost=action.budget_cost,
|
|
374
|
+
budget_remaining=budget_remaining,
|
|
375
|
+
output=output_payload,
|
|
376
|
+
route_id=action.route_id,
|
|
377
|
+
route_reason=action.route_reason,
|
|
378
|
+
route_confidence=float(action.route_confidence or 0.0),
|
|
379
|
+
ambiguity_reason_codes=list(action.ambiguity_reason_codes),
|
|
380
|
+
required_steps=list(action.required_steps),
|
|
381
|
+
required_tools=list(action.required_tools),
|
|
382
|
+
override_source=action.override_source,
|
|
383
|
+
override_reason=action.override_reason,
|
|
384
|
+
depth_level=int(action.depth_level or 1),
|
|
385
|
+
depth_increase_reason=action.depth_increase_reason,
|
|
386
|
+
payload=dict(action.payload),
|
|
387
|
+
)
|
|
388
|
+
)
|
|
389
|
+
max_depth_level = max(max_depth_level, int(action.depth_level or 1))
|
|
390
|
+
context[f"tool_{action.tool}_output"] = output_payload
|
|
391
|
+
|
|
392
|
+
# Hook: wire context from first-step context query output
|
|
393
|
+
if (
|
|
394
|
+
self._hooks.should_skip_first_step(action.tool, context)
|
|
395
|
+
and step_count == 1
|
|
396
|
+
and "control_objective" not in context
|
|
397
|
+
):
|
|
398
|
+
_grc_ctx = output_payload.get("context", {}) if isinstance(output_payload, dict) else {}
|
|
399
|
+
_interp = _grc_ctx.get("requirement_interpretation", {}) if isinstance(_grc_ctx, dict) else {}
|
|
400
|
+
_control_obj = (
|
|
401
|
+
str(_interp.get("control_objective") or "").strip() if isinstance(_interp, dict) else ""
|
|
402
|
+
) or (str(_grc_ctx.get("requirement_category") or "").strip() if isinstance(_grc_ctx, dict) else "")
|
|
403
|
+
if _control_obj:
|
|
404
|
+
context["control_objective"] = _control_obj
|
|
405
|
+
|
|
406
|
+
if action.route_id:
|
|
407
|
+
context["route_id"] = action.route_id
|
|
408
|
+
context["route_reason"] = action.route_reason
|
|
409
|
+
context["route_confidence"] = float(action.route_confidence or 0.0)
|
|
410
|
+
context["ambiguity_reason_codes"] = list(action.ambiguity_reason_codes)
|
|
411
|
+
context["required_steps"] = list(action.required_steps)
|
|
412
|
+
context["required_tools"] = list(action.required_tools)
|
|
413
|
+
context["override_source"] = action.override_source
|
|
414
|
+
context["override_reason"] = action.override_reason
|
|
415
|
+
|
|
416
|
+
prev_evidence_count = len(evidence_refs)
|
|
417
|
+
|
|
418
|
+
# Hook: check if this tool records evidence
|
|
419
|
+
if self._hooks.is_evidence_recording(action.tool):
|
|
420
|
+
rows = output_payload.get("refs") or []
|
|
421
|
+
evidence_refs = [str(row.get("ref_value", "")) for row in rows if row.get("ref_value")]
|
|
422
|
+
context["evidence_refs"] = evidence_refs
|
|
423
|
+
|
|
424
|
+
# Stagnation detection
|
|
425
|
+
_is_breadth_enforcement = action.route_reason == "breadth_enforcement"
|
|
426
|
+
call_hash = self._compute_call_hash(action.tool, action.payload)
|
|
427
|
+
if _is_breadth_enforcement:
|
|
428
|
+
self._call_history.add(call_hash)
|
|
429
|
+
self._stagnation_counter = 0
|
|
430
|
+
elif call_hash in self._call_history:
|
|
431
|
+
self._stagnation_counter += 1
|
|
432
|
+
else:
|
|
433
|
+
self._call_history.add(call_hash)
|
|
434
|
+
self._stagnation_counter = 0
|
|
435
|
+
|
|
436
|
+
# Hook: use is_context_query instead of hardcoded ToolName.GET_ROW_CONTEXT
|
|
437
|
+
if (
|
|
438
|
+
not _is_breadth_enforcement
|
|
439
|
+
and len(evidence_refs) == prev_evidence_count
|
|
440
|
+
and not self._hooks.is_context_query(action.tool)
|
|
441
|
+
):
|
|
442
|
+
self._stagnation_counter += 1
|
|
443
|
+
|
|
444
|
+
effective_stagnation_threshold = self._effective_stagnation_threshold(
|
|
445
|
+
context,
|
|
446
|
+
self.config.stagnation_threshold,
|
|
447
|
+
step_count,
|
|
448
|
+
)
|
|
449
|
+
|
|
450
|
+
if self._stagnation_counter >= effective_stagnation_threshold:
|
|
451
|
+
return self._build_result(
|
|
452
|
+
termination_reason=LoopTerminationReason.STAGNATION,
|
|
453
|
+
steps_executed=step_count,
|
|
454
|
+
budget_remaining=budget_remaining,
|
|
455
|
+
elapsed_seconds=max(0.0, self._clock() - started),
|
|
456
|
+
evidence_refs=evidence_refs,
|
|
457
|
+
trace_steps=trace,
|
|
458
|
+
context=context,
|
|
459
|
+
max_depth_level=max_depth_level,
|
|
460
|
+
)
|
|
461
|
+
|
|
462
|
+
if tool_calls_limit > 0 and tool_calls_used >= tool_calls_limit:
|
|
463
|
+
return self._build_result(
|
|
464
|
+
termination_reason=LoopTerminationReason.BUDGET_EXHAUSTED,
|
|
465
|
+
steps_executed=step_count,
|
|
466
|
+
budget_remaining=budget_remaining,
|
|
467
|
+
elapsed_seconds=max(0.0, self._clock() - started),
|
|
468
|
+
evidence_refs=evidence_refs,
|
|
469
|
+
trace_steps=trace,
|
|
470
|
+
context=context,
|
|
471
|
+
max_depth_level=max_depth_level,
|
|
472
|
+
)
|
|
473
|
+
|
|
474
|
+
# Hook: use has_read_activity instead of hardcoded ToolName check
|
|
475
|
+
if self._hooks.has_read_activity(trace):
|
|
476
|
+
next_action = self._next_action(step_count + 1, context, trace)
|
|
477
|
+
if next_action is None:
|
|
478
|
+
return self._finish_without_next_action(
|
|
479
|
+
started=started,
|
|
480
|
+
steps_executed=step_count,
|
|
481
|
+
budget_remaining=budget_remaining,
|
|
482
|
+
evidence_refs=evidence_refs,
|
|
483
|
+
trace=trace,
|
|
484
|
+
context=context,
|
|
485
|
+
max_depth_level=max_depth_level,
|
|
486
|
+
)
|
|
487
|
+
|
|
488
|
+
return self._build_result(
|
|
489
|
+
termination_reason=LoopTerminationReason.MAX_STEPS,
|
|
490
|
+
steps_executed=step_count,
|
|
491
|
+
budget_remaining=budget_remaining,
|
|
492
|
+
elapsed_seconds=max(0.0, self._clock() - started),
|
|
493
|
+
evidence_refs=evidence_refs,
|
|
494
|
+
trace_steps=trace,
|
|
495
|
+
context=context,
|
|
496
|
+
max_depth_level=max_depth_level,
|
|
497
|
+
)
|
|
498
|
+
|
|
499
|
+
def _next_action(
|
|
500
|
+
self,
|
|
501
|
+
step_number: int,
|
|
502
|
+
context: dict[str, Any],
|
|
503
|
+
trace: list[AgentLoopStep],
|
|
504
|
+
) -> AgentLoopAction | None:
|
|
505
|
+
if self._planner is None:
|
|
506
|
+
return None
|
|
507
|
+
return self._planner(step_number, context, trace)
|
|
508
|
+
|
|
509
|
+
def _finish_without_next_action(
|
|
510
|
+
self,
|
|
511
|
+
*,
|
|
512
|
+
started: float,
|
|
513
|
+
steps_executed: int,
|
|
514
|
+
budget_remaining: int,
|
|
515
|
+
evidence_refs: list[str],
|
|
516
|
+
trace: list[AgentLoopStep],
|
|
517
|
+
context: dict[str, Any],
|
|
518
|
+
max_depth_level: int,
|
|
519
|
+
) -> AgentLoopResult:
|
|
520
|
+
if self.config.require_evidence and len(evidence_refs) < max(1, self.config.min_evidence_refs):
|
|
521
|
+
reason = LoopTerminationReason.INSUFFICIENT_EVIDENCE
|
|
522
|
+
else:
|
|
523
|
+
reason = self._apply_evidence_gate(evidence_refs=evidence_refs, trace=trace, context=context)
|
|
524
|
+
|
|
525
|
+
return self._build_result(
|
|
526
|
+
termination_reason=reason,
|
|
527
|
+
steps_executed=steps_executed,
|
|
528
|
+
budget_remaining=budget_remaining,
|
|
529
|
+
elapsed_seconds=max(0.0, self._clock() - started),
|
|
530
|
+
evidence_refs=evidence_refs,
|
|
531
|
+
trace_steps=trace,
|
|
532
|
+
context=context,
|
|
533
|
+
max_depth_level=max_depth_level,
|
|
534
|
+
)
|
|
535
|
+
|
|
536
|
+
def _apply_evidence_gate(
|
|
537
|
+
self,
|
|
538
|
+
*,
|
|
539
|
+
evidence_refs: list[str],
|
|
540
|
+
trace: list[AgentLoopStep],
|
|
541
|
+
context: dict[str, Any],
|
|
542
|
+
) -> LoopTerminationReason:
|
|
543
|
+
"""Control-objective evidence gate — delegates to hooks for requirements lookup."""
|
|
544
|
+
if int(context.get("evidence_gate_retry_count") or 0) >= 1:
|
|
545
|
+
return LoopTerminationReason.COMPLETED
|
|
546
|
+
|
|
547
|
+
requirements = self._hooks.lookup_evidence_requirements(context)
|
|
548
|
+
|
|
549
|
+
# Only orchestrator-specific rows have stricter requirements.
|
|
550
|
+
# If requirements dict is empty or explicitly marked as default, skip the gate.
|
|
551
|
+
# Non-default requirements (e.g., architecture rows) must have min_evidence_refs.
|
|
552
|
+
if not requirements or requirements.get("is_default", False):
|
|
553
|
+
return LoopTerminationReason.COMPLETED
|
|
554
|
+
|
|
555
|
+
search_pattern_count = sum(1 for step in trace if step.tool == "search_code")
|
|
556
|
+
evidence_count = len(evidence_refs)
|
|
557
|
+
min_refs: int = requirements.get("min_evidence_refs", 1)
|
|
558
|
+
min_searches: int = requirements.get("min_search_patterns", 1)
|
|
559
|
+
|
|
560
|
+
if evidence_count < min_refs or search_pattern_count < min_searches:
|
|
561
|
+
context["control_objective_evidence_gate_applied"] = True
|
|
562
|
+
context["required_min_evidence_refs"] = min_refs
|
|
563
|
+
context["required_min_search_patterns"] = min_searches
|
|
564
|
+
context["observed_evidence_refs"] = evidence_count
|
|
565
|
+
context["observed_search_patterns"] = search_pattern_count
|
|
566
|
+
context["evidence_gate_reason_code"] = "evidence_gate_failed"
|
|
567
|
+
return LoopTerminationReason.INSUFFICIENT_EVIDENCE
|
|
568
|
+
|
|
569
|
+
return LoopTerminationReason.COMPLETED
|
|
570
|
+
|
|
571
|
+
@staticmethod
|
|
572
|
+
def _effective_stagnation_threshold(
|
|
573
|
+
context: dict[str, Any],
|
|
574
|
+
base_threshold: int,
|
|
575
|
+
current_step: int,
|
|
576
|
+
) -> int:
|
|
577
|
+
"""Raise stagnation threshold for cross-repo exploration rows."""
|
|
578
|
+
_CROSS_REPO_GRACE_STEPS = 10
|
|
579
|
+
_CROSS_REPO_TAGS = {"shared_library", "config_pattern", "architecture"}
|
|
580
|
+
|
|
581
|
+
scope_hint = str(context.get("scope_hint") or "").strip().lower()
|
|
582
|
+
requirement_type_tag = str(context.get("requirement_type_tag") or "").strip().lower()
|
|
583
|
+
|
|
584
|
+
is_cross_repo = (
|
|
585
|
+
scope_hint in {"all", "lib", "config"}
|
|
586
|
+
or requirement_type_tag in _CROSS_REPO_TAGS
|
|
587
|
+
or bool(context.get("shared_library_routing_activated"))
|
|
588
|
+
or bool(context.get("config_repo_companion_applied"))
|
|
589
|
+
)
|
|
590
|
+
|
|
591
|
+
if is_cross_repo and current_step <= _CROSS_REPO_GRACE_STEPS:
|
|
592
|
+
return max(base_threshold, base_threshold * 2)
|
|
593
|
+
|
|
594
|
+
return base_threshold
|
|
595
|
+
|
|
596
|
+
@staticmethod
|
|
597
|
+
def _compute_call_hash(tool_name: str, payload: dict[str, Any]) -> str:
|
|
598
|
+
"""Compute a deterministic hash for a tool call to detect repetition."""
|
|
599
|
+
normalized = json.dumps({"tool": tool_name, "args": payload}, sort_keys=True, separators=(",", ":"))
|
|
600
|
+
return hashlib.sha256(normalized.encode("utf-8")).hexdigest()[:16]
|
|
601
|
+
|
|
602
|
+
def _count_docs_tool_steps(self, trace_steps: list[AgentLoopStep]) -> int:
|
|
603
|
+
"""Count doc-related tool steps using hooks."""
|
|
604
|
+
return self._hooks.count_doc_reads(trace_steps)
|
|
605
|
+
|
|
606
|
+
@staticmethod
|
|
607
|
+
def _count_docs_tool_steps_from_trace(
|
|
608
|
+
*,
|
|
609
|
+
context: dict[str, Any],
|
|
610
|
+
trace_steps: list[AgentLoopStep],
|
|
611
|
+
) -> int:
|
|
612
|
+
hooks = context.get("_loop_behavior_hooks")
|
|
613
|
+
count_doc_reads = getattr(hooks, "count_doc_reads", None)
|
|
614
|
+
if callable(count_doc_reads):
|
|
615
|
+
return int(count_doc_reads(trace_steps))
|
|
616
|
+
return 0
|
|
617
|
+
|
|
618
|
+
@staticmethod
|
|
619
|
+
def _count_doc_search_steps_from_trace(
|
|
620
|
+
*,
|
|
621
|
+
context: dict[str, Any],
|
|
622
|
+
trace_steps: list[AgentLoopStep],
|
|
623
|
+
) -> int:
|
|
624
|
+
hooks = context.get("_loop_behavior_hooks")
|
|
625
|
+
is_doc_search = getattr(hooks, "is_doc_search", None)
|
|
626
|
+
if not callable(is_doc_search):
|
|
627
|
+
return 0
|
|
628
|
+
return sum(1 for step in trace_steps if is_doc_search(str(step.tool)))
|
|
629
|
+
|
|
630
|
+
@classmethod
|
|
631
|
+
def _docs_intent_utilization(
|
|
632
|
+
cls,
|
|
633
|
+
*,
|
|
634
|
+
context: dict[str, Any],
|
|
635
|
+
trace_steps: list[AgentLoopStep],
|
|
636
|
+
) -> dict[str, Any]:
|
|
637
|
+
def _route_mode(value: Any, *, route_id_value: str) -> str:
|
|
638
|
+
mode = str(value or "").strip()
|
|
639
|
+
if mode:
|
|
640
|
+
return mode
|
|
641
|
+
normalized_route_id = str(route_id_value or "").strip().lower()
|
|
642
|
+
if normalized_route_id.startswith("docs_"):
|
|
643
|
+
return "docs_only"
|
|
644
|
+
if normalized_route_id.startswith("code_"):
|
|
645
|
+
return "code_only"
|
|
646
|
+
if normalized_route_id.startswith("hybrid_docs_first"):
|
|
647
|
+
return "hybrid_docs_first"
|
|
648
|
+
if normalized_route_id.startswith("hybrid_code_first"):
|
|
649
|
+
return "hybrid_code_first"
|
|
650
|
+
return ""
|
|
651
|
+
|
|
652
|
+
route_decision = context.get("tool_first_route_decision")
|
|
653
|
+
route_payload = route_decision if isinstance(route_decision, dict) else {}
|
|
654
|
+
route_id = str(route_payload.get("route_id") or context.get("route_id") or "").strip()
|
|
655
|
+
route_mode = _route_mode(route_payload.get("route_mode"), route_id_value=route_id)
|
|
656
|
+
docs_target = bool(route_payload.get("docs_target"))
|
|
657
|
+
code_target = bool(route_payload.get("code_target"))
|
|
658
|
+
is_hybrid_route = route_id.startswith("hybrid_")
|
|
659
|
+
docs_path_expected = bool(route_id.startswith("docs_") or is_hybrid_route or docs_target)
|
|
660
|
+
docs_step_count = cls._count_docs_tool_steps_from_trace(context=context, trace_steps=trace_steps)
|
|
661
|
+
docs_search_step_count = cls._count_doc_search_steps_from_trace(context=context, trace_steps=trace_steps)
|
|
662
|
+
docs_read_step_count = max(0, docs_step_count - docs_search_step_count)
|
|
663
|
+
docs_hit_count = 0
|
|
664
|
+
hooks = context.get("_loop_behavior_hooks")
|
|
665
|
+
is_doc_search = getattr(hooks, "is_doc_search", None)
|
|
666
|
+
for step in trace_steps:
|
|
667
|
+
if not callable(is_doc_search) or not is_doc_search(str(step.tool)):
|
|
668
|
+
continue
|
|
669
|
+
output_payload = step.output if isinstance(step.output, dict) else {}
|
|
670
|
+
hits = output_payload.get("hits")
|
|
671
|
+
if isinstance(hits, list):
|
|
672
|
+
docs_hit_count += len(hits)
|
|
673
|
+
docs_path_executed = docs_step_count > 0
|
|
674
|
+
docs_path_effective = docs_read_step_count > 0
|
|
675
|
+
docs_skip_reason: str | bool = False
|
|
676
|
+
if docs_path_expected and not docs_path_effective:
|
|
677
|
+
explicit_reason = str(context.get("tool_first_docs_skip_reason") or "").strip()
|
|
678
|
+
if explicit_reason:
|
|
679
|
+
docs_skip_reason = explicit_reason
|
|
680
|
+
elif docs_search_step_count > 0 and docs_hit_count == 0:
|
|
681
|
+
docs_skip_reason = "docs_search_no_hits"
|
|
682
|
+
elif docs_search_step_count > 0 and docs_hit_count > 0 and docs_read_step_count == 0:
|
|
683
|
+
docs_skip_reason = "docs_search_hits_not_read"
|
|
684
|
+
else:
|
|
685
|
+
runtime_context = (
|
|
686
|
+
context.get("tool_get_row_context_output", {}).get("context", {}).get("runtime_context", {})
|
|
687
|
+
)
|
|
688
|
+
state_ready = bool(runtime_context.get("state_dsn")) and bool(runtime_context.get("project_key"))
|
|
689
|
+
if not state_ready:
|
|
690
|
+
docs_skip_reason = "docs_state_unavailable"
|
|
691
|
+
elif is_hybrid_route and code_target:
|
|
692
|
+
docs_skip_reason = "hybrid_route_prioritized_code_path"
|
|
693
|
+
elif docs_path_executed and docs_read_step_count == 0:
|
|
694
|
+
docs_skip_reason = "docs_path_executed_without_read"
|
|
695
|
+
else:
|
|
696
|
+
docs_skip_reason = "docs_path_not_executed"
|
|
697
|
+
|
|
698
|
+
db_family_payload = context.get("tool_first_db_family_coverage")
|
|
699
|
+
db_family_requirement = bool(
|
|
700
|
+
db_family_payload.get("db_requirement") if isinstance(db_family_payload, dict) else False
|
|
701
|
+
)
|
|
702
|
+
route_escalation_required = bool(route_mode == "docs_only" and (code_target or db_family_requirement))
|
|
703
|
+
route_escalation_applied = False
|
|
704
|
+
route_escalation_reason: str | bool = False
|
|
705
|
+
route_escalation_step_index: int | bool = False
|
|
706
|
+
if route_escalation_required:
|
|
707
|
+
transitions = context.get("tool_first_route_transitions")
|
|
708
|
+
if isinstance(transitions, list):
|
|
709
|
+
for entry in transitions:
|
|
710
|
+
if not isinstance(entry, dict):
|
|
711
|
+
continue
|
|
712
|
+
from_mode = _route_mode(
|
|
713
|
+
entry.get("from_route_mode"),
|
|
714
|
+
route_id_value=str(entry.get("from_route_id") or ""),
|
|
715
|
+
)
|
|
716
|
+
to_mode = _route_mode(
|
|
717
|
+
entry.get("to_route_mode"),
|
|
718
|
+
route_id_value=str(entry.get("to_route_id") or ""),
|
|
719
|
+
)
|
|
720
|
+
if from_mode != "docs_only" or to_mode not in {"hybrid_code_first", "code_only"}:
|
|
721
|
+
continue
|
|
722
|
+
route_escalation_applied = True
|
|
723
|
+
transition_reason = str(entry.get("reason") or "").strip()
|
|
724
|
+
route_escalation_reason = transition_reason or "docs_only_route_code_fallback"
|
|
725
|
+
try:
|
|
726
|
+
step_index = int(entry.get("step_number") or 0)
|
|
727
|
+
except (TypeError, ValueError):
|
|
728
|
+
step_index = 0
|
|
729
|
+
route_escalation_step_index = step_index if step_index > 0 else False
|
|
730
|
+
break
|
|
731
|
+
if not route_escalation_applied:
|
|
732
|
+
explicit_reason = str(context.get("tool_first_docs_skip_reason") or "").strip()
|
|
733
|
+
if explicit_reason:
|
|
734
|
+
route_escalation_reason = explicit_reason
|
|
735
|
+
elif docs_path_effective:
|
|
736
|
+
route_escalation_reason = "docs_path_effective"
|
|
737
|
+
elif docs_search_step_count > 0 and docs_hit_count == 0:
|
|
738
|
+
route_escalation_reason = "docs_search_no_hits"
|
|
739
|
+
elif docs_search_step_count > 0 and docs_hit_count > 0 and docs_read_step_count == 0:
|
|
740
|
+
route_escalation_reason = "docs_search_hits_not_read"
|
|
741
|
+
elif not docs_path_executed:
|
|
742
|
+
route_escalation_reason = "docs_path_not_executed"
|
|
743
|
+
else:
|
|
744
|
+
route_escalation_reason = "route_escalation_not_applied"
|
|
745
|
+
return {
|
|
746
|
+
"route_id": route_id,
|
|
747
|
+
"route_mode": route_mode or False,
|
|
748
|
+
"docs_target": docs_target,
|
|
749
|
+
"code_target": code_target,
|
|
750
|
+
"is_hybrid_route": is_hybrid_route,
|
|
751
|
+
"docs_path_expected": docs_path_expected,
|
|
752
|
+
"docs_path_executed": docs_path_executed,
|
|
753
|
+
"docs_path_effective": docs_path_effective,
|
|
754
|
+
"docs_step_count": docs_step_count,
|
|
755
|
+
"docs_search_step_count": docs_search_step_count,
|
|
756
|
+
"docs_read_step_count": docs_read_step_count,
|
|
757
|
+
"docs_hit_count": docs_hit_count,
|
|
758
|
+
"docs_skip_reason": docs_skip_reason,
|
|
759
|
+
"docs_path_skip_reason": docs_skip_reason,
|
|
760
|
+
"db_family_requirement": db_family_requirement,
|
|
761
|
+
"route_escalation_required": route_escalation_required,
|
|
762
|
+
"route_escalation_applied": route_escalation_applied,
|
|
763
|
+
"route_escalation_reason": route_escalation_reason,
|
|
764
|
+
"route_escalation_step_index": route_escalation_step_index,
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
@staticmethod
|
|
768
|
+
def _resolve_depth_stop_reason(
|
|
769
|
+
*,
|
|
770
|
+
context: dict[str, Any],
|
|
771
|
+
termination_reason: LoopTerminationReason,
|
|
772
|
+
max_depth_level: int,
|
|
773
|
+
) -> str | None:
|
|
774
|
+
if max_depth_level <= 1:
|
|
775
|
+
return None
|
|
776
|
+
explicit = str(context.get("tool_first_depth_stop_reason") or "").strip()
|
|
777
|
+
if explicit:
|
|
778
|
+
return explicit
|
|
779
|
+
reason_map: dict[LoopTerminationReason, str] = {
|
|
780
|
+
LoopTerminationReason.COMPLETED: "planner_converged",
|
|
781
|
+
LoopTerminationReason.INSUFFICIENT_EVIDENCE: "planner_converged",
|
|
782
|
+
LoopTerminationReason.MAX_STEPS: "max_steps_reached",
|
|
783
|
+
LoopTerminationReason.TIMEOUT: "timeout_reached",
|
|
784
|
+
LoopTerminationReason.BUDGET_EXHAUSTED: "budget_exhausted",
|
|
785
|
+
LoopTerminationReason.STAGNATION: "stagnation_guardrail",
|
|
786
|
+
LoopTerminationReason.TOOL_ERROR: "tool_error",
|
|
787
|
+
}
|
|
788
|
+
return reason_map.get(termination_reason)
|
|
789
|
+
|
|
790
|
+
def _build_result(
|
|
791
|
+
self,
|
|
792
|
+
*,
|
|
793
|
+
termination_reason: LoopTerminationReason,
|
|
794
|
+
steps_executed: int,
|
|
795
|
+
budget_remaining: int,
|
|
796
|
+
elapsed_seconds: float,
|
|
797
|
+
evidence_refs: list[str],
|
|
798
|
+
trace_steps: list[AgentLoopStep],
|
|
799
|
+
context: dict[str, Any],
|
|
800
|
+
max_depth_level: int,
|
|
801
|
+
tool_error: str | None = None,
|
|
802
|
+
) -> AgentLoopResult:
|
|
803
|
+
docs_intent_utilization = self._docs_intent_utilization(context=context, trace_steps=trace_steps)
|
|
804
|
+
raw_code_ranking = context.get("tool_first_code_ranking_diagnostics")
|
|
805
|
+
code_ranking_diagnostics = dict(raw_code_ranking) if isinstance(raw_code_ranking, dict) else {}
|
|
806
|
+
requirement_analysis_snapshot: dict[str, Any] = {}
|
|
807
|
+
raw_requirement_analysis = context.get("requirement_analysis")
|
|
808
|
+
if isinstance(raw_requirement_analysis, dict):
|
|
809
|
+
requirement_analysis_snapshot = dict(raw_requirement_analysis)
|
|
810
|
+
else:
|
|
811
|
+
requirement_analysis_snapshot = {
|
|
812
|
+
key: context.get(key) for key in _REQUIREMENT_ANALYSIS_DIAGNOSTIC_KEYS if key in context
|
|
813
|
+
}
|
|
814
|
+
if requirement_analysis_snapshot:
|
|
815
|
+
existing_snapshot = code_ranking_diagnostics.get("requirement_analysis")
|
|
816
|
+
if not isinstance(existing_snapshot, dict) or not existing_snapshot:
|
|
817
|
+
code_ranking_diagnostics["requirement_analysis"] = requirement_analysis_snapshot
|
|
818
|
+
if context.get("control_objective_evidence_gate_applied"):
|
|
819
|
+
code_ranking_diagnostics["evidence_gate"] = {
|
|
820
|
+
"applied": True,
|
|
821
|
+
"control_objective": context.get("control_objective"),
|
|
822
|
+
"required_min_evidence_refs": context.get("required_min_evidence_refs"),
|
|
823
|
+
"required_min_search_patterns": context.get("required_min_search_patterns"),
|
|
824
|
+
"observed_evidence_refs": context.get("observed_evidence_refs"),
|
|
825
|
+
"observed_search_patterns": context.get("observed_search_patterns"),
|
|
826
|
+
"reason_code": context.get("evidence_gate_reason_code"),
|
|
827
|
+
}
|
|
828
|
+
for _p172_key in (
|
|
829
|
+
"skill_first_loaded_at_step",
|
|
830
|
+
"search_pattern_diversity_count",
|
|
831
|
+
"breadth_enforcement_applied",
|
|
832
|
+
"control_objective_evidence_gate_applied",
|
|
833
|
+
"required_min_evidence_refs",
|
|
834
|
+
"required_min_search_patterns",
|
|
835
|
+
"diversity_gate_waived",
|
|
836
|
+
"skill_content_hash",
|
|
837
|
+
):
|
|
838
|
+
if _p172_key in context:
|
|
839
|
+
code_ranking_diagnostics[_p172_key] = context[_p172_key]
|
|
840
|
+
normalized_max_depth = max_depth_level
|
|
841
|
+
if normalized_max_depth <= 0 and trace_steps:
|
|
842
|
+
normalized_max_depth = max(int(step.depth_level or 1) for step in trace_steps)
|
|
843
|
+
depth_stop_reason = self._resolve_depth_stop_reason(
|
|
844
|
+
context=context,
|
|
845
|
+
termination_reason=termination_reason,
|
|
846
|
+
max_depth_level=normalized_max_depth,
|
|
847
|
+
)
|
|
848
|
+
return AgentLoopResult(
|
|
849
|
+
termination_reason=termination_reason,
|
|
850
|
+
steps_executed=steps_executed,
|
|
851
|
+
budget_remaining=budget_remaining,
|
|
852
|
+
elapsed_seconds=elapsed_seconds,
|
|
853
|
+
evidence_refs=evidence_refs,
|
|
854
|
+
trace_steps=trace_steps,
|
|
855
|
+
tool_error=tool_error,
|
|
856
|
+
docs_intent_utilization=docs_intent_utilization,
|
|
857
|
+
code_ranking_diagnostics=code_ranking_diagnostics,
|
|
858
|
+
project_artifact_refs=list(context.get("project_artifact_refs") or []),
|
|
859
|
+
cross_repo_evidence_refs=list(context.get("cross_repo_evidence_refs") or []),
|
|
860
|
+
config_repo_companion_refs=list(context.get("config_repo_companion_refs") or []),
|
|
861
|
+
prior_knowledge_refs=list(context.get("prior_knowledge_refs") or []),
|
|
862
|
+
max_depth_level=normalized_max_depth,
|
|
863
|
+
depth_stop_reason=depth_stop_reason,
|
|
864
|
+
)
|