agent-devkit 0.1.6 → 0.3.0
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/README.md +59 -5
- package/bin/agent.mjs +133 -7
- package/package.json +1 -1
- package/runtime/README.md +239 -5
- package/runtime/agent +36 -5
- package/runtime/agents/README.md +44 -0
- package/runtime/agents/agent-devkit-agent-builder/AGENTS.md +24 -0
- package/runtime/agents/agent-devkit-agent-builder/README.md +37 -0
- package/runtime/agents/agent-devkit-agent-builder/agent.yaml +46 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/capability.yaml +29 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/decision-rules.md +7 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/runner.py +33 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/workflow.md +8 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/capability.yaml +31 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/decision-rules.md +9 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/runner.py +39 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/workflow.md +8 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/capability.yaml +28 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/decision-rules.md +6 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/runner.py +33 -0
- package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/workflow.md +7 -0
- package/runtime/agents/agent-devkit-agent-builder/infra/integrations/agent-devkit/agent_builder_repository.py +527 -0
- package/runtime/agents/agent-devkit-agent-builder/knowledge/context.md +15 -0
- package/runtime/agents/agent-devkit-agent-builder/knowledge/policies.yaml +11 -0
- package/runtime/agents/agent-devkit-agent-builder/knowledge/system.md +11 -0
- package/runtime/agents/agent-devkit-agent-builder/templates/agent-plan-output.md +20 -0
- package/runtime/agents/agent-devkit-agent-builder/templates/scaffold-plan-output.md +13 -0
- package/runtime/agents/agent-devkit-agent-builder/templates/validation-report-output.md +13 -0
- package/runtime/agents/agent-devkit-agent-builder/tests/test_runners.py +188 -0
- package/runtime/agents/automation-architect/AGENTS.md +11 -0
- package/runtime/agents/automation-architect/README.md +27 -0
- package/runtime/agents/automation-architect/agent.yaml +57 -0
- package/runtime/agents/automation-architect/capabilities/classify-automation-request/capability.yaml +35 -0
- package/runtime/agents/automation-architect/capabilities/classify-automation-request/decision-rules.md +10 -0
- package/runtime/agents/automation-architect/capabilities/classify-automation-request/runner.py +37 -0
- package/runtime/agents/automation-architect/capabilities/classify-automation-request/workflow.md +7 -0
- package/runtime/agents/automation-architect/capabilities/delegate-automation-build/capability.yaml +34 -0
- package/runtime/agents/automation-architect/capabilities/delegate-automation-build/decision-rules.md +7 -0
- package/runtime/agents/automation-architect/capabilities/delegate-automation-build/runner.py +37 -0
- package/runtime/agents/automation-architect/capabilities/delegate-automation-build/workflow.md +6 -0
- package/runtime/agents/automation-architect/capabilities/plan-automation-solution/capability.yaml +35 -0
- package/runtime/agents/automation-architect/capabilities/plan-automation-solution/decision-rules.md +7 -0
- package/runtime/agents/automation-architect/capabilities/plan-automation-solution/runner.py +37 -0
- package/runtime/agents/automation-architect/capabilities/plan-automation-solution/workflow.md +7 -0
- package/runtime/agents/automation-architect/capabilities/review-automation-solution/capability.yaml +36 -0
- package/runtime/agents/automation-architect/capabilities/review-automation-solution/decision-rules.md +7 -0
- package/runtime/agents/automation-architect/capabilities/review-automation-solution/runner.py +39 -0
- package/runtime/agents/automation-architect/capabilities/review-automation-solution/workflow.md +7 -0
- package/runtime/agents/automation-architect/infra/integrations/automation-architecture/automation_architecture_repository.py +481 -0
- package/runtime/agents/automation-architect/knowledge/context.md +22 -0
- package/runtime/agents/automation-architect/knowledge/policies.yaml +20 -0
- package/runtime/agents/automation-architect/knowledge/system.md +8 -0
- package/runtime/agents/automation-architect/templates/automation-classification.md +6 -0
- package/runtime/agents/automation-architect/templates/automation-plan.md +5 -0
- package/runtime/agents/automation-architect/tests/test_runners.py +135 -0
- package/runtime/agents/aws-architecture-analyst/agent.yaml +17 -4
- package/runtime/agents/aws-cloudwatch-log-analyzer/agent.yaml +12 -2
- package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/analyze-service-error/capability.yaml +16 -0
- package/runtime/agents/aws-lambda-builder/AGENTS.md +27 -0
- package/runtime/agents/aws-lambda-builder/README.md +21 -0
- package/runtime/agents/aws-lambda-builder/agent.yaml +46 -0
- package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/capability.yaml +18 -0
- package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/decision-rules.md +6 -0
- package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/runner.py +33 -0
- package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/workflow.md +6 -0
- package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/capability.yaml +20 -0
- package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/decision-rules.md +6 -0
- package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/runner.py +39 -0
- package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/workflow.md +7 -0
- package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/capability.yaml +22 -0
- package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/decision-rules.md +6 -0
- package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/runner.py +41 -0
- package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/workflow.md +6 -0
- package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/capability.yaml +18 -0
- package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/decision-rules.md +7 -0
- package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/runner.py +33 -0
- package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/workflow.md +6 -0
- package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/capability.yaml +18 -0
- package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/decision-rules.md +7 -0
- package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/runner.py +33 -0
- package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/workflow.md +5 -0
- package/runtime/agents/aws-lambda-builder/infra/integrations/aws-lambda/aws_lambda_repository.py +688 -0
- package/runtime/agents/aws-lambda-builder/knowledge/context.md +12 -0
- package/runtime/agents/aws-lambda-builder/knowledge/policies.yaml +23 -0
- package/runtime/agents/aws-lambda-builder/knowledge/system.md +10 -0
- package/runtime/agents/aws-lambda-builder/templates/lambda-deploy-plan.md +3 -0
- package/runtime/agents/aws-lambda-builder/templates/lambda-package.md +3 -0
- package/runtime/agents/aws-lambda-builder/templates/lambda-plan.md +3 -0
- package/runtime/agents/aws-lambda-builder/templates/lambda-readme.md +3 -0
- package/runtime/agents/aws-lambda-builder/templates/lambda-security-review.md +3 -0
- package/runtime/agents/aws-lambda-builder/tests/test_runners.py +355 -0
- package/runtime/agents/aws-operations-operator/agent.yaml +18 -6
- package/runtime/agents/aws-security-governance-auditor/agent.yaml +17 -5
- package/runtime/agents/azure-devops-orchestrator/agent.yaml +15 -2
- package/runtime/agents/azure-devops-orchestrator/capabilities/read-card/capability.yaml +29 -0
- package/runtime/agents/bpo-analyser/agent.yaml +12 -2
- package/runtime/agents/bpo-analyser/knowledge/policies.yaml +2 -2
- package/runtime/agents/contribution-reviewer/AGENTS.md +8 -0
- package/runtime/agents/contribution-reviewer/README.md +8 -0
- package/runtime/agents/contribution-reviewer/agent.yaml +40 -0
- package/runtime/agents/contribution-reviewer/capabilities/plan-contribution-pr/capability.yaml +27 -0
- package/runtime/agents/contribution-reviewer/capabilities/plan-contribution-pr/decision-rules.md +5 -0
- package/runtime/agents/contribution-reviewer/capabilities/plan-contribution-pr/workflow.md +6 -0
- package/runtime/agents/contribution-reviewer/capabilities/review-contribution/capability.yaml +25 -0
- package/runtime/agents/contribution-reviewer/capabilities/review-contribution/decision-rules.md +5 -0
- package/runtime/agents/contribution-reviewer/capabilities/review-contribution/workflow.md +5 -0
- package/runtime/agents/contribution-reviewer/capabilities/validate-local-contribution/capability.yaml +26 -0
- package/runtime/agents/contribution-reviewer/capabilities/validate-local-contribution/decision-rules.md +5 -0
- package/runtime/agents/contribution-reviewer/capabilities/validate-local-contribution/workflow.md +6 -0
- package/runtime/agents/contribution-reviewer/infra/README.md +6 -0
- package/runtime/agents/contribution-reviewer/knowledge/context.md +8 -0
- package/runtime/agents/contribution-reviewer/knowledge/system.md +8 -0
- package/runtime/agents/contribution-reviewer/templates/README.md +3 -0
- package/runtime/agents/data-scientist-analyst/agent.yaml +16 -4
- package/runtime/agents/data-scientist-analyst/capabilities/generate-data-report/capability.yaml +1 -1
- package/runtime/agents/data-scientist-analyst/capabilities/generate-reconciliation-report/capability.yaml +1 -1
- package/runtime/agents/data-scientist-analyst/capabilities/run-data-pipeline/capability.yaml +1 -1
- package/runtime/agents/data-scientist-analyst/infra/integrations/agent-bridge/methods/analyze-sql-source.yaml +1 -1
- package/runtime/agents/data-scientist-analyst/knowledge/policies.yaml +4 -4
- package/runtime/agents/data-scientist-analyst/knowledge/system.md +1 -1
- package/runtime/agents/data-scientist-analyst/tests/test_runners.py +1 -1
- package/runtime/agents/database-change-operator/agent.yaml +12 -1
- package/runtime/agents/docker-container-builder/AGENTS.md +27 -0
- package/runtime/agents/docker-container-builder/README.md +21 -0
- package/runtime/agents/docker-container-builder/agent.yaml +52 -0
- package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/capability.yaml +18 -0
- package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/decision-rules.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/runner.py +32 -0
- package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/workflow.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-compose/capability.yaml +18 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-compose/decision-rules.md +7 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-compose/runner.py +32 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-compose/workflow.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/capability.yaml +20 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/decision-rules.md +7 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/runner.py +38 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/workflow.md +7 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/capability.yaml +18 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/decision-rules.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/runner.py +32 -0
- package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/workflow.md +7 -0
- package/runtime/agents/docker-container-builder/capabilities/plan-image-build/capability.yaml +18 -0
- package/runtime/agents/docker-container-builder/capabilities/plan-image-build/decision-rules.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/plan-image-build/runner.py +32 -0
- package/runtime/agents/docker-container-builder/capabilities/plan-image-build/workflow.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/review-docker-security/capability.yaml +21 -0
- package/runtime/agents/docker-container-builder/capabilities/review-docker-security/decision-rules.md +6 -0
- package/runtime/agents/docker-container-builder/capabilities/review-docker-security/runner.py +43 -0
- package/runtime/agents/docker-container-builder/capabilities/review-docker-security/workflow.md +5 -0
- package/runtime/agents/docker-container-builder/infra/integrations/docker-container/docker_container_repository.py +837 -0
- package/runtime/agents/docker-container-builder/knowledge/context.md +21 -0
- package/runtime/agents/docker-container-builder/knowledge/policies.yaml +13 -0
- package/runtime/agents/docker-container-builder/knowledge/system.md +21 -0
- package/runtime/agents/docker-container-builder/templates/container-plan.md +4 -0
- package/runtime/agents/docker-container-builder/templates/container-review.md +4 -0
- package/runtime/agents/docker-container-builder/templates/docker-compose.md +5 -0
- package/runtime/agents/docker-container-builder/templates/docker-readme.md +3 -0
- package/runtime/agents/docker-container-builder/templates/dockerfile.md +5 -0
- package/runtime/agents/docker-container-builder/tests/test_runners.py +255 -0
- package/runtime/agents/drawio-diagram-builder/agent.yaml +11 -2
- package/runtime/agents/drawio-diagram-builder/capabilities/execute-diagram-delivery/capability.yaml +1 -1
- package/runtime/agents/drawio-diagram-builder/capabilities/read-azure-card-context/capability.yaml +1 -1
- package/runtime/agents/elasticsearch-log-analyzer/agent.yaml +14 -2
- package/runtime/agents/elasticsearch-log-analyzer/capabilities/analyze-service-errors/capability.yaml +14 -0
- package/runtime/agents/excel-workbook-builder/agent.yaml +10 -0
- package/runtime/agents/excel-workbook-builder/capabilities/create-template/capability.yaml +1 -1
- package/runtime/agents/excel-workbook-builder/capabilities/create-template/workflow.md +1 -1
- package/runtime/agents/excel-workbook-builder/capabilities/create-template-version/capability.yaml +1 -1
- package/runtime/agents/excel-workbook-builder/capabilities/generate-template-input-file/capability.yaml +1 -2
- package/runtime/agents/excel-workbook-builder/capabilities/refine-template/capability.yaml +1 -1
- package/runtime/agents/excel-workbook-builder/capabilities/register-template/capability.yaml +1 -2
- package/runtime/agents/excel-workbook-builder/capabilities/register-template/workflow.md +1 -1
- package/runtime/agents/execution-loop-builder/AGENTS.md +24 -0
- package/runtime/agents/execution-loop-builder/README.md +19 -0
- package/runtime/agents/execution-loop-builder/agent.yaml +49 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/capability.yaml +20 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/decision-rules.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/runner.py +38 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/workflow.md +7 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/capability.yaml +18 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/decision-rules.md +5 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/runner.py +32 -0
- package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/workflow.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/capability.yaml +18 -0
- package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/decision-rules.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/runner.py +32 -0
- package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/workflow.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/capability.yaml +19 -0
- package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/decision-rules.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/runner.py +36 -0
- package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/workflow.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/capability.yaml +19 -0
- package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/decision-rules.md +6 -0
- package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/runner.py +39 -0
- package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/workflow.md +5 -0
- package/runtime/agents/execution-loop-builder/infra/integrations/execution-loop/execution_loop_repository.py +608 -0
- package/runtime/agents/execution-loop-builder/knowledge/context.md +26 -0
- package/runtime/agents/execution-loop-builder/knowledge/policies.yaml +13 -0
- package/runtime/agents/execution-loop-builder/knowledge/system.md +19 -0
- package/runtime/agents/execution-loop-builder/templates/loop-plan.md +3 -0
- package/runtime/agents/execution-loop-builder/templates/loop-readme.md +3 -0
- package/runtime/agents/execution-loop-builder/templates/loop-review.md +3 -0
- package/runtime/agents/execution-loop-builder/templates/loop-runner.py +2 -0
- package/runtime/agents/execution-loop-builder/tests/test_runners.py +274 -0
- package/runtime/agents/execution-reviewer/agent.yaml +6 -4
- package/runtime/agents/execution-reviewer/capabilities/review-agent-result/capability.yaml +1 -2
- package/runtime/agents/execution-reviewer/capabilities/review-final-output/capability.yaml +1 -2
- package/runtime/agents/execution-reviewer/capabilities/review-plan/capability.yaml +1 -2
- package/runtime/agents/figma-ui-ux-product-designer/agent.yaml +17 -5
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/analyze-product-context/capability.yaml +1 -1
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-interview/capability.yaml +1 -1
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-review-session/capability.yaml +1 -1
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-dev-handoff/capability.yaml +1 -1
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-user-journey-diagram/capability.yaml +1 -1
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/ingest-design-source/capability.yaml +1 -1
- package/runtime/agents/figma-ui-ux-product-designer/capabilities/triage-design-feedback/capability.yaml +1 -1
- package/runtime/agents/generic-agent-builder/AGENTS.md +20 -0
- package/runtime/agents/generic-agent-builder/README.md +40 -0
- package/runtime/agents/generic-agent-builder/agent.yaml +43 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/capability.yaml +18 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/decision-rules.md +5 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/runner.py +33 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/workflow.md +6 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/capability.yaml +20 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/decision-rules.md +6 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/runner.py +39 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/workflow.md +7 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-skill/capability.yaml +18 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-skill/decision-rules.md +5 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-skill/runner.py +33 -0
- package/runtime/agents/generic-agent-builder/capabilities/generate-skill/workflow.md +5 -0
- package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/capability.yaml +18 -0
- package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/decision-rules.md +6 -0
- package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/runner.py +33 -0
- package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/workflow.md +6 -0
- package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/capability.yaml +20 -0
- package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/decision-rules.md +6 -0
- package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/runner.py +40 -0
- package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/workflow.md +7 -0
- package/runtime/agents/generic-agent-builder/infra/integrations/generic-agent/generic_agent_repository.py +445 -0
- package/runtime/agents/generic-agent-builder/knowledge/context.md +11 -0
- package/runtime/agents/generic-agent-builder/knowledge/policies.yaml +12 -0
- package/runtime/agents/generic-agent-builder/knowledge/system.md +17 -0
- package/runtime/agents/generic-agent-builder/templates/generic-agent-instructions.md +17 -0
- package/runtime/agents/generic-agent-builder/templates/generic-review-report.md +13 -0
- package/runtime/agents/generic-agent-builder/templates/generic-skill.md +14 -0
- package/runtime/agents/generic-agent-builder/tests/test_runners.py +220 -0
- package/runtime/agents/github-pr-reviewer/agent.yaml +17 -5
- package/runtime/agents/github-pr-reviewer/capabilities/create-review-automation/capability.yaml +1 -1
- package/runtime/agents/github-pr-reviewer/capabilities/inspect-pr/capability.yaml +1 -1
- package/runtime/agents/github-pr-reviewer/capabilities/list-review-requests/capability.yaml +1 -1
- package/runtime/agents/github-pr-reviewer/capabilities/review-pr-diff/capability.yaml +1 -1
- package/runtime/agents/knowledge-author/AGENTS.md +7 -0
- package/runtime/agents/knowledge-author/README.md +7 -0
- package/runtime/agents/knowledge-author/agent.yaml +37 -0
- package/runtime/agents/knowledge-author/capabilities/create-knowledge-snapshot/capability.yaml +30 -0
- package/runtime/agents/knowledge-author/capabilities/create-knowledge-snapshot/decision-rules.md +6 -0
- package/runtime/agents/knowledge-author/capabilities/create-knowledge-snapshot/workflow.md +7 -0
- package/runtime/agents/knowledge-author/infra/.gitkeep +1 -0
- package/runtime/agents/knowledge-author/knowledge/context.md +4 -0
- package/runtime/agents/knowledge-author/knowledge/system.md +4 -0
- package/runtime/agents/knowledge-author/templates/.gitkeep +1 -0
- package/runtime/agents/knowledge-curator/AGENTS.md +7 -0
- package/runtime/agents/knowledge-curator/README.md +6 -0
- package/runtime/agents/knowledge-curator/agent.yaml +37 -0
- package/runtime/agents/knowledge-curator/capabilities/curate-knowledge-base/capability.yaml +29 -0
- package/runtime/agents/knowledge-curator/capabilities/curate-knowledge-base/decision-rules.md +6 -0
- package/runtime/agents/knowledge-curator/capabilities/curate-knowledge-base/workflow.md +7 -0
- package/runtime/agents/knowledge-curator/infra/.gitkeep +1 -0
- package/runtime/agents/knowledge-curator/knowledge/context.md +4 -0
- package/runtime/agents/knowledge-curator/knowledge/system.md +4 -0
- package/runtime/agents/knowledge-curator/templates/.gitkeep +1 -0
- package/runtime/agents/knowledge-generator/agent.yaml +13 -3
- package/runtime/agents/knowledge-generator/capabilities/generate-knowledge/capability.yaml +1 -1
- package/runtime/agents/knowledge-infra-builder/AGENTS.md +8 -0
- package/runtime/agents/knowledge-infra-builder/README.md +8 -0
- package/runtime/agents/knowledge-infra-builder/agent.yaml +38 -0
- package/runtime/agents/knowledge-infra-builder/capabilities/create-knowledge-base/capability.yaml +30 -0
- package/runtime/agents/knowledge-infra-builder/capabilities/create-knowledge-base/decision-rules.md +6 -0
- package/runtime/agents/knowledge-infra-builder/capabilities/create-knowledge-base/workflow.md +7 -0
- package/runtime/agents/knowledge-infra-builder/infra/.gitkeep +1 -0
- package/runtime/agents/knowledge-infra-builder/knowledge/context.md +4 -0
- package/runtime/agents/knowledge-infra-builder/knowledge/system.md +4 -0
- package/runtime/agents/knowledge-infra-builder/templates/.gitkeep +1 -0
- package/runtime/agents/knowledge-owner/AGENTS.md +7 -0
- package/runtime/agents/knowledge-owner/README.md +6 -0
- package/runtime/agents/knowledge-owner/agent.yaml +37 -0
- package/runtime/agents/knowledge-owner/capabilities/publish-knowledge-snapshot/capability.yaml +28 -0
- package/runtime/agents/knowledge-owner/capabilities/publish-knowledge-snapshot/decision-rules.md +6 -0
- package/runtime/agents/knowledge-owner/capabilities/publish-knowledge-snapshot/workflow.md +7 -0
- package/runtime/agents/knowledge-owner/infra/.gitkeep +1 -0
- package/runtime/agents/knowledge-owner/knowledge/context.md +4 -0
- package/runtime/agents/knowledge-owner/knowledge/system.md +4 -0
- package/runtime/agents/knowledge-owner/templates/.gitkeep +1 -0
- package/runtime/agents/knowledge-reviewer/AGENTS.md +7 -0
- package/runtime/agents/knowledge-reviewer/README.md +7 -0
- package/runtime/agents/knowledge-reviewer/agent.yaml +36 -0
- package/runtime/agents/knowledge-reviewer/capabilities/review-knowledge-snapshot/capability.yaml +26 -0
- package/runtime/agents/knowledge-reviewer/capabilities/review-knowledge-snapshot/decision-rules.md +6 -0
- package/runtime/agents/knowledge-reviewer/capabilities/review-knowledge-snapshot/workflow.md +7 -0
- package/runtime/agents/knowledge-reviewer/infra/.gitkeep +1 -0
- package/runtime/agents/knowledge-reviewer/knowledge/context.md +4 -0
- package/runtime/agents/knowledge-reviewer/knowledge/system.md +4 -0
- package/runtime/agents/knowledge-reviewer/templates/.gitkeep +1 -0
- package/runtime/agents/local-llm-operator/agent.yaml +6 -4
- package/runtime/agents/local-llm-operator/capabilities/delegate-operational-task/capability.yaml +1 -2
- package/runtime/agents/local-llm-operator/capabilities/inspect-local-models/capability.yaml +1 -2
- package/runtime/agents/local-llm-operator/capabilities/select-local-worker/capability.yaml +1 -2
- package/runtime/agents/local-memory-manager/AGENTS.md +5 -0
- package/runtime/agents/local-memory-manager/README.md +7 -0
- package/runtime/agents/local-memory-manager/agent.yaml +38 -0
- package/runtime/agents/local-memory-manager/capabilities/curate-local-memory/capability.yaml +19 -0
- package/runtime/agents/local-memory-manager/capabilities/curate-local-memory/decision-rules.md +5 -0
- package/runtime/agents/local-memory-manager/capabilities/curate-local-memory/workflow.md +6 -0
- package/runtime/agents/local-memory-manager/capabilities/inspect-local-memory/capability.yaml +19 -0
- package/runtime/agents/local-memory-manager/capabilities/inspect-local-memory/decision-rules.md +5 -0
- package/runtime/agents/local-memory-manager/capabilities/inspect-local-memory/workflow.md +5 -0
- package/runtime/agents/local-memory-manager/infra/.gitkeep +1 -0
- package/runtime/agents/local-memory-manager/knowledge/context.md +4 -0
- package/runtime/agents/local-memory-manager/knowledge/system.md +4 -0
- package/runtime/agents/local-memory-manager/templates/.gitkeep +1 -0
- package/runtime/agents/memory-sync-manager/AGENTS.md +7 -0
- package/runtime/agents/memory-sync-manager/README.md +7 -0
- package/runtime/agents/memory-sync-manager/agent.yaml +37 -0
- package/runtime/agents/memory-sync-manager/capabilities/plan-memory-backup/capability.yaml +29 -0
- package/runtime/agents/memory-sync-manager/capabilities/plan-memory-backup/decision-rules.md +6 -0
- package/runtime/agents/memory-sync-manager/capabilities/plan-memory-backup/workflow.md +7 -0
- package/runtime/agents/memory-sync-manager/infra/.gitkeep +1 -0
- package/runtime/agents/memory-sync-manager/knowledge/context.md +4 -0
- package/runtime/agents/memory-sync-manager/knowledge/system.md +4 -0
- package/runtime/agents/memory-sync-manager/templates/.gitkeep +1 -0
- package/runtime/agents/n1-support-agent/agent.yaml +40 -1
- package/runtime/agents/n2-support-agent/agent.yaml +41 -2
- package/runtime/agents/n2-support-agent/knowledge/policies.yaml +2 -2
- package/runtime/agents/notification-operator/AGENTS.md +11 -0
- package/runtime/agents/notification-operator/README.md +15 -0
- package/runtime/agents/notification-operator/agent.yaml +43 -0
- package/runtime/agents/notification-operator/capabilities/configure-notification-channel/capability.yaml +19 -0
- package/runtime/agents/notification-operator/capabilities/configure-notification-channel/decision-rules.md +6 -0
- package/runtime/agents/notification-operator/capabilities/configure-notification-channel/runner.py +33 -0
- package/runtime/agents/notification-operator/capabilities/configure-notification-channel/workflow.md +6 -0
- package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/capability.yaml +25 -0
- package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/decision-rules.md +7 -0
- package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/runner.py +49 -0
- package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/workflow.md +6 -0
- package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/capability.yaml +27 -0
- package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/decision-rules.md +6 -0
- package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/runner.py +68 -0
- package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/workflow.md +7 -0
- package/runtime/agents/notification-operator/infra/README.md +6 -0
- package/runtime/agents/notification-operator/knowledge/context.md +10 -0
- package/runtime/agents/notification-operator/knowledge/policies.yaml +9 -0
- package/runtime/agents/notification-operator/knowledge/system.md +7 -0
- package/runtime/agents/notification-operator/templates/README.md +6 -0
- package/runtime/agents/notification-operator/tests/test_runners.py +108 -0
- package/runtime/agents/playwright-automation-builder/AGENTS.md +23 -0
- package/runtime/agents/playwright-automation-builder/README.md +43 -0
- package/runtime/agents/playwright-automation-builder/agent.yaml +48 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/capability.yaml +20 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/decision-rules.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/runner.py +38 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/workflow.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/capability.yaml +18 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/decision-rules.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/runner.py +32 -0
- package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/workflow.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/capability.yaml +18 -0
- package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/decision-rules.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/runner.py +32 -0
- package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/workflow.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/capability.yaml +19 -0
- package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/decision-rules.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/runner.py +33 -0
- package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/workflow.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/capability.yaml +22 -0
- package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/decision-rules.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/runner.py +40 -0
- package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/workflow.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/capability.yaml +22 -0
- package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/decision-rules.md +6 -0
- package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/runner.py +42 -0
- package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/workflow.md +6 -0
- package/runtime/agents/playwright-automation-builder/infra/integrations/playwright-automation/playwright_automation_repository.py +865 -0
- package/runtime/agents/playwright-automation-builder/knowledge/context.md +19 -0
- package/runtime/agents/playwright-automation-builder/knowledge/policies.yaml +25 -0
- package/runtime/agents/playwright-automation-builder/knowledge/system.md +19 -0
- package/runtime/agents/playwright-automation-builder/templates/capability-wrapper.md +4 -0
- package/runtime/agents/playwright-automation-builder/templates/playwright-automation.py +12 -0
- package/runtime/agents/playwright-automation-builder/templates/playwright-readme.md +13 -0
- package/runtime/agents/playwright-automation-builder/templates/playwright-review-report.md +9 -0
- package/runtime/agents/playwright-automation-builder/templates/playwright-test.py +2 -0
- package/runtime/agents/playwright-automation-builder/tests/test_runners.py +261 -0
- package/runtime/agents/postgres-data-analyzer/agent.yaml +13 -2
- package/runtime/agents/presentation-deck-builder/agent.yaml +14 -3
- package/runtime/agents/presentation-deck-builder/capabilities/create-template/capability.yaml +1 -1
- package/runtime/agents/presentation-deck-builder/capabilities/create-template-version/capability.yaml +1 -1
- package/runtime/agents/presentation-deck-builder/capabilities/generate-template-input-file/capability.yaml +1 -1
- package/runtime/agents/presentation-deck-builder/capabilities/refine-template/capability.yaml +1 -1
- package/runtime/agents/presentation-deck-builder/capabilities/register-template/capability.yaml +1 -1
- package/runtime/agents/presentation-deck-builder/knowledge/prompts/create-template.md +1 -1
- package/runtime/agents/presentation-deck-builder/knowledge/prompts/generate-template-input-file.md +1 -1
- package/runtime/agents/provider-configurator/agent.yaml +6 -4
- package/runtime/agents/provider-configurator/capabilities/collect-provider-credentials/capability.yaml +1 -2
- package/runtime/agents/provider-configurator/capabilities/configure-provider-source/capability.yaml +1 -2
- package/runtime/agents/provider-configurator/capabilities/validate-provider-readiness/capability.yaml +1 -2
- package/runtime/agents/pyautogui-automation-builder/AGENTS.md +32 -0
- package/runtime/agents/pyautogui-automation-builder/README.md +44 -0
- package/runtime/agents/pyautogui-automation-builder/agent.yaml +45 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/capability.yaml +20 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/decision-rules.md +6 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/runner.py +39 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/workflow.md +7 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/capability.yaml +18 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/decision-rules.md +7 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/runner.py +33 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/workflow.md +7 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/capability.yaml +18 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/decision-rules.md +8 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/runner.py +33 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/workflow.md +9 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/capability.yaml +20 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/decision-rules.md +8 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/runner.py +43 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/workflow.md +7 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/capability.yaml +22 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/decision-rules.md +6 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/runner.py +43 -0
- package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/workflow.md +7 -0
- package/runtime/agents/pyautogui-automation-builder/infra/integrations/pyautogui-automation/pyautogui_automation_repository.py +856 -0
- package/runtime/agents/pyautogui-automation-builder/knowledge/context.md +17 -0
- package/runtime/agents/pyautogui-automation-builder/knowledge/policies.yaml +24 -0
- package/runtime/agents/pyautogui-automation-builder/knowledge/system.md +13 -0
- package/runtime/agents/pyautogui-automation-builder/templates/capability-wrapper.md +3 -0
- package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-automation.py +12 -0
- package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-readme.md +3 -0
- package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-review-report.md +3 -0
- package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-test.py +2 -0
- package/runtime/agents/pyautogui-automation-builder/tests/test_runners.py +376 -0
- package/runtime/agents/python-automation-builder/AGENTS.md +25 -0
- package/runtime/agents/python-automation-builder/README.md +43 -0
- package/runtime/agents/python-automation-builder/agent.yaml +45 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/capability.yaml +20 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/decision-rules.md +6 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/runner.py +39 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/workflow.md +7 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/capability.yaml +18 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/decision-rules.md +5 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/runner.py +33 -0
- package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/workflow.md +5 -0
- package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/capability.yaml +18 -0
- package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/decision-rules.md +6 -0
- package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/runner.py +33 -0
- package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/workflow.md +6 -0
- package/runtime/agents/python-automation-builder/capabilities/review-python-automation/capability.yaml +20 -0
- package/runtime/agents/python-automation-builder/capabilities/review-python-automation/decision-rules.md +6 -0
- package/runtime/agents/python-automation-builder/capabilities/review-python-automation/runner.py +43 -0
- package/runtime/agents/python-automation-builder/capabilities/review-python-automation/workflow.md +5 -0
- package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/capability.yaml +22 -0
- package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/decision-rules.md +6 -0
- package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/runner.py +43 -0
- package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/workflow.md +6 -0
- package/runtime/agents/python-automation-builder/infra/integrations/python-automation/python_automation_repository.py +717 -0
- package/runtime/agents/python-automation-builder/knowledge/context.md +15 -0
- package/runtime/agents/python-automation-builder/knowledge/policies.yaml +12 -0
- package/runtime/agents/python-automation-builder/knowledge/system.md +19 -0
- package/runtime/agents/python-automation-builder/templates/automation-readme.md +13 -0
- package/runtime/agents/python-automation-builder/templates/automation-review-report.md +13 -0
- package/runtime/agents/python-automation-builder/templates/automation-test.py +9 -0
- package/runtime/agents/python-automation-builder/templates/automation.py +19 -0
- package/runtime/agents/python-automation-builder/templates/capability-wrapper.md +4 -0
- package/runtime/agents/python-automation-builder/tests/test_runners.py +292 -0
- package/runtime/agents/selenium-automation-builder/AGENTS.md +27 -0
- package/runtime/agents/selenium-automation-builder/README.md +40 -0
- package/runtime/agents/selenium-automation-builder/agent.yaml +45 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/capability.yaml +20 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/decision-rules.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/runner.py +39 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/workflow.md +7 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/capability.yaml +18 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/decision-rules.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/runner.py +33 -0
- package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/workflow.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/capability.yaml +18 -0
- package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/decision-rules.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/runner.py +33 -0
- package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/workflow.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/capability.yaml +20 -0
- package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/decision-rules.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/runner.py +40 -0
- package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/workflow.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/capability.yaml +22 -0
- package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/decision-rules.md +6 -0
- package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/runner.py +43 -0
- package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/workflow.md +6 -0
- package/runtime/agents/selenium-automation-builder/infra/integrations/selenium-automation/selenium_automation_repository.py +793 -0
- package/runtime/agents/selenium-automation-builder/knowledge/context.md +15 -0
- package/runtime/agents/selenium-automation-builder/knowledge/policies.yaml +17 -0
- package/runtime/agents/selenium-automation-builder/knowledge/system.md +18 -0
- package/runtime/agents/selenium-automation-builder/templates/capability-wrapper.md +4 -0
- package/runtime/agents/selenium-automation-builder/templates/selenium-automation.py +20 -0
- package/runtime/agents/selenium-automation-builder/templates/selenium-readme.md +13 -0
- package/runtime/agents/selenium-automation-builder/templates/selenium-review-report.md +13 -0
- package/runtime/agents/selenium-automation-builder/templates/selenium-test.py +9 -0
- package/runtime/agents/selenium-automation-builder/tests/test_runners.py +282 -0
- package/runtime/agents/shared-memory-curator/AGENTS.md +5 -0
- package/runtime/agents/shared-memory-curator/README.md +6 -0
- package/runtime/agents/shared-memory-curator/agent.yaml +38 -0
- package/runtime/agents/shared-memory-curator/capabilities/create-shared-memory/capability.yaml +19 -0
- package/runtime/agents/shared-memory-curator/capabilities/create-shared-memory/decision-rules.md +5 -0
- package/runtime/agents/shared-memory-curator/capabilities/create-shared-memory/workflow.md +5 -0
- package/runtime/agents/shared-memory-curator/capabilities/publish-shared-submission/capability.yaml +19 -0
- package/runtime/agents/shared-memory-curator/capabilities/publish-shared-submission/decision-rules.md +5 -0
- package/runtime/agents/shared-memory-curator/capabilities/publish-shared-submission/workflow.md +5 -0
- package/runtime/agents/shared-memory-curator/capabilities/review-shared-submission/capability.yaml +19 -0
- package/runtime/agents/shared-memory-curator/capabilities/review-shared-submission/decision-rules.md +5 -0
- package/runtime/agents/shared-memory-curator/capabilities/review-shared-submission/workflow.md +5 -0
- package/runtime/agents/shared-memory-curator/infra/.gitkeep +1 -0
- package/runtime/agents/shared-memory-curator/knowledge/context.md +5 -0
- package/runtime/agents/shared-memory-curator/knowledge/system.md +4 -0
- package/runtime/agents/shared-memory-curator/templates/.gitkeep +1 -0
- package/runtime/agents/software-specification-analyst/agent.yaml +17 -4
- package/runtime/agents/software-specification-analyst/capabilities/analyze-multiple-projects/capability.yaml +1 -1
- package/runtime/agents/software-specification-analyst/capabilities/analyze-project-context/capability.yaml +1 -1
- package/runtime/agents/software-specification-analyst/capabilities/conduct-requirements-interview/capability.yaml +1 -1
- package/runtime/agents/software-specification-analyst/capabilities/create-complete-spec/capability.yaml +1 -1
- package/runtime/agents/software-specification-analyst/capabilities/create-final-spec-from-analysis/capability.yaml +1 -1
- package/runtime/agents/software-specification-analyst/capabilities/create-functional-spec/capability.yaml +11 -0
- package/runtime/agents/software-specification-analyst/capabilities/create-technical-spec/capability.yaml +12 -0
- package/runtime/agents/software-specification-analyst/capabilities/refine-analysis-with-feedback/capability.yaml +1 -1
- package/runtime/agents/software-specification-analyst/capabilities/write-user-stories/capability.yaml +12 -0
- package/runtime/agents/sqlserver-change-operator/agent.yaml +12 -1
- package/runtime/agents/sqlserver-data-analyzer/agent.yaml +13 -2
- package/runtime/agents/supabase-project-analyst/AGENTS.md +29 -0
- package/runtime/agents/supabase-project-analyst/README.md +23 -0
- package/runtime/agents/supabase-project-analyst/agent.yaml +53 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/capability.yaml +18 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/decision-rules.md +5 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/runner.py +32 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/workflow.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/capability.yaml +18 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/decision-rules.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/runner.py +32 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/workflow.md +7 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/capability.yaml +18 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/decision-rules.md +5 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/runner.py +32 -0
- package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/workflow.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/capability.yaml +18 -0
- package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/decision-rules.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/runner.py +32 -0
- package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/workflow.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/capability.yaml +19 -0
- package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/decision-rules.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/runner.py +36 -0
- package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/workflow.md +7 -0
- package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/capability.yaml +18 -0
- package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/decision-rules.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/runner.py +32 -0
- package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/workflow.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/capability.yaml +18 -0
- package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/decision-rules.md +6 -0
- package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/runner.py +32 -0
- package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/workflow.md +5 -0
- package/runtime/agents/supabase-project-analyst/infra/integrations/supabase-project/supabase_project_repository.py +589 -0
- package/runtime/agents/supabase-project-analyst/knowledge/context.md +11 -0
- package/runtime/agents/supabase-project-analyst/knowledge/policies.yaml +24 -0
- package/runtime/agents/supabase-project-analyst/knowledge/system.md +10 -0
- package/runtime/agents/supabase-project-analyst/templates/supabase-audit.md +3 -0
- package/runtime/agents/supabase-project-analyst/templates/supabase-fix-plan.md +3 -0
- package/runtime/agents/supabase-project-analyst/templates/supabase-inspection.md +3 -0
- package/runtime/agents/supabase-project-analyst/templates/supabase-report.md +3 -0
- package/runtime/agents/supabase-project-analyst/tests/test_runners.py +239 -0
- package/runtime/agents/task-orchestrator/agent.yaml +25 -3
- package/runtime/agents/task-orchestrator/capabilities/plan-task/capability.yaml +1 -2
- package/runtime/agents/task-orchestrator/capabilities/select-specialists/capability.yaml +1 -2
- package/runtime/agents/technical-integration-analyst/agent.yaml +15 -2
- package/runtime/agents/topdesk-orchestrator/agent.yaml +10 -2
- package/runtime/cli/README.md +35 -4
- package/runtime/cli/aikit/__init__.py +1 -1
- package/runtime/cli/aikit/acceptance.py +166 -0
- package/runtime/cli/aikit/agent_executor.py +26 -3
- package/runtime/cli/aikit/agent_registry.py +247 -6
- package/runtime/cli/aikit/agentic_commands.py +158 -0
- package/runtime/cli/aikit/app_home.py +1 -0
- package/runtime/cli/aikit/architecture.py +84 -0
- package/runtime/cli/aikit/audit.py +187 -8
- package/runtime/cli/aikit/autonomy.py +237 -0
- package/runtime/cli/aikit/capability_runtime.py +522 -0
- package/runtime/cli/aikit/catalog.py +516 -0
- package/runtime/cli/aikit/cli_dispatch.py +1554 -0
- package/runtime/cli/aikit/cli_parser.py +547 -0
- package/runtime/cli/aikit/collaboration.py +359 -0
- package/runtime/cli/aikit/configuration_orchestrator.py +52 -26
- package/runtime/cli/aikit/contribution.py +235 -0
- package/runtime/cli/aikit/core/__init__.py +1 -0
- package/runtime/cli/aikit/core/capability_contract.py +112 -0
- package/runtime/cli/aikit/core/requests.py +69 -0
- package/runtime/cli/aikit/core/runtime.py +64 -0
- package/runtime/cli/aikit/diagnostics.py +8 -2
- package/runtime/cli/aikit/doctor_runtime.py +164 -0
- package/runtime/cli/aikit/errors.py +7 -0
- package/runtime/cli/aikit/eval.py +504 -0
- package/runtime/cli/aikit/execution_reviewer.py +21 -0
- package/runtime/cli/aikit/extensions.py +140 -0
- package/runtime/cli/aikit/fallback.py +1 -0
- package/runtime/cli/aikit/github_pr.py +23 -0
- package/runtime/cli/aikit/guardrails.py +25 -10
- package/runtime/cli/aikit/human_output.py +1332 -0
- package/runtime/cli/aikit/impact_map.py +294 -0
- package/runtime/cli/aikit/interactive_wizard.py +227 -0
- package/runtime/cli/aikit/knowledge_base.py +1067 -0
- package/runtime/cli/aikit/llm.py +12 -4
- package/runtime/cli/aikit/local_artifacts.py +444 -0
- package/runtime/cli/aikit/local_llm.py +161 -0
- package/runtime/cli/aikit/local_llm_operator.py +35 -1
- package/runtime/cli/aikit/main.py +23 -2833
- package/runtime/cli/aikit/mcp_manifest.py +1027 -0
- package/runtime/cli/aikit/mcp_server.py +132 -0
- package/runtime/cli/aikit/mcp_tools.py +900 -0
- package/runtime/cli/aikit/memory.py +405 -0
- package/runtime/cli/aikit/mini_brain.py +246 -0
- package/runtime/cli/aikit/model_router.py +182 -18
- package/runtime/cli/aikit/module_controller.py +335 -0
- package/runtime/cli/aikit/natural_prompt_runtime.py +662 -0
- package/runtime/cli/aikit/notifications.py +716 -2
- package/runtime/cli/aikit/ollama.py +64 -14
- package/runtime/cli/aikit/onboarding.py +551 -0
- package/runtime/cli/aikit/orchestrator.py +809 -119
- package/runtime/cli/aikit/output.py +130 -2
- package/runtime/cli/aikit/permissions.py +14 -4
- package/runtime/cli/aikit/prompt_injection.py +68 -0
- package/runtime/cli/aikit/review_gate.py +38 -6
- package/runtime/cli/aikit/roadmap.py +195 -0
- package/runtime/cli/aikit/roadmap_cli.py +70 -0
- package/runtime/cli/aikit/router.py +41 -12
- package/runtime/cli/aikit/router_explain.py +152 -0
- package/runtime/cli/aikit/runtime_paths.py +11 -0
- package/runtime/cli/aikit/secrets.py +114 -0
- package/runtime/cli/aikit/sessions.py +88 -2
- package/runtime/cli/aikit/setup_wizard_payload.py +35 -0
- package/runtime/cli/aikit/shared_memory.py +415 -0
- package/runtime/cli/aikit/sources.py +298 -50
- package/runtime/cli/aikit/specialist_readiness.py +152 -0
- package/runtime/cli/aikit/tasks.py +553 -22
- package/runtime/cli/aikit/team.py +380 -0
- package/runtime/cli/aikit/toolchain.py +7 -2
- package/runtime/cli/aikit/wizard_state.py +15 -1
- package/runtime/cli/aikit/workflows.py +216 -0
- package/runtime/cli/aikit/write_policy.py +108 -0
- package/runtime/plugins/claude-code-ai-devkit/README.md +17 -0
- package/runtime/plugins/claude-code-ai-devkit/agents/README.md +29 -2
- package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-db-analyst.md +44 -0
- package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-execution-reviewer.md +38 -0
- package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-pr-reviewer.md +42 -0
- package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-repo-explorer.md +40 -0
- package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-support-triage.md +43 -0
- package/runtime/plugins/claude-code-ai-devkit/plugin.json +1 -1
- package/runtime/plugins/claude-code-ai-devkit/skills/ai-devkit-router/SKILL.md +16 -0
- package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/SKILL.md +1 -0
- package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/references/subagents.md +21 -0
- package/runtime/plugins/claude-skill-ai-devkit/plugin.json +1 -1
- package/runtime/providers/azure-devops.yaml +9 -0
- package/runtime/providers/github.yaml +4 -0
- package/runtime/providers/knowledge-github.yaml +40 -0
- package/runtime/providers/knowledge-google-drive.yaml +32 -0
- package/runtime/providers/knowledge-local.yaml +26 -0
- package/runtime/providers/knowledge-notion.yaml +32 -0
- package/runtime/providers/knowledge-obsidian.yaml +24 -0
- package/runtime/providers/knowledge-onedrive.yaml +36 -0
- package/runtime/providers/knowledge-s3.yaml +45 -0
- package/runtime/providers/knowledge-sharepoint.yaml +39 -0
- package/runtime/providers/knowledge-supabase.yaml +43 -0
- package/runtime/providers/knowledge-vector.yaml +39 -0
- package/runtime/providers/local-notification.yaml +5 -2
- package/runtime/providers/local-scheduler.yaml +1 -1
- package/runtime/providers/supabase.yaml +46 -0
- package/runtime/requirements.txt +6 -0
- package/runtime/scripts/docker-cli-qa.sh +453 -0
- package/runtime/scripts/release-catalog-snapshot.json +594 -0
- package/runtime/scripts/release-gate.py +189 -8
- package/runtime/scripts/validate-repo.py +312 -0
- package/runtime/tooling/toolchain.yaml +92 -0
- package/runtime/vendor/skills/napkin/napkin.md +32 -12
- package/runtime/workflows/azure-card-analysis/README.md +3 -0
- package/runtime/workflows/azure-card-analysis/workflow.yaml +30 -0
- package/runtime/workflows/daily-pr-review/README.md +3 -0
- package/runtime/workflows/daily-pr-review/workflow.yaml +31 -0
- package/runtime/workflows/incident-analysis/README.md +3 -0
- package/runtime/workflows/incident-analysis/workflow.yaml +33 -0
- package/runtime/workflows/release-prep/README.md +3 -0
- package/runtime/workflows/release-prep/workflow.yaml +30 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
import errno
|
|
5
6
|
import getpass
|
|
6
7
|
import json
|
|
7
8
|
import re
|
|
@@ -11,12 +12,18 @@ from pathlib import Path
|
|
|
11
12
|
from typing import Any
|
|
12
13
|
|
|
13
14
|
from cli.aikit.app_home import audit_home, ensure_app_home
|
|
15
|
+
from cli.aikit.autonomy import summarize_autonomy_contract
|
|
14
16
|
from cli.aikit.memory import normalize_prompt, redact_secrets
|
|
17
|
+
from cli.aikit.mini_brain import summarize_mini_brain
|
|
15
18
|
|
|
16
19
|
|
|
17
20
|
AUDIT_VERSION = 1
|
|
18
21
|
|
|
19
22
|
|
|
23
|
+
class AuditRedactionError(RuntimeError):
|
|
24
|
+
"""Raised when an audit payload cannot be safely redacted."""
|
|
25
|
+
|
|
26
|
+
|
|
20
27
|
def now_utc() -> datetime:
|
|
21
28
|
return datetime.now(timezone.utc)
|
|
22
29
|
|
|
@@ -45,22 +52,30 @@ def record_audit(
|
|
|
45
52
|
args: dict[str, Any],
|
|
46
53
|
result: dict[str, Any] | None = None,
|
|
47
54
|
error: str | None = None,
|
|
55
|
+
origin: str = "unknown",
|
|
48
56
|
) -> dict[str, Any]:
|
|
49
57
|
created_at = now_iso()
|
|
50
58
|
execution_id = f"exec_{now_utc().strftime('%Y%m%d%H%M%S')}_{uuid.uuid4().hex[:8]}"
|
|
51
59
|
prompt = extract_prompt(args)
|
|
52
|
-
|
|
60
|
+
try:
|
|
61
|
+
safe_result = redact_value(result or {}, redact_access_keys=True)
|
|
62
|
+
safe_prompt = redact_secrets(prompt) if prompt else None
|
|
63
|
+
safe_error = redact_secrets(error) if error else None
|
|
64
|
+
except Exception as exc: # noqa: BLE001 - never write an unredacted audit fallback.
|
|
65
|
+
raise AuditRedactionError("audit redaction failed") from exc
|
|
53
66
|
entry = {
|
|
54
67
|
"version": AUDIT_VERSION,
|
|
55
68
|
"id": execution_id,
|
|
56
69
|
"created_at": created_at,
|
|
70
|
+
"origin": normalize_origin(origin),
|
|
57
71
|
"user": safe_user(),
|
|
58
72
|
"command": command,
|
|
59
|
-
"prompt":
|
|
73
|
+
"prompt": safe_prompt,
|
|
60
74
|
"prompt_normalized": normalize_prompt(prompt) if prompt else None,
|
|
61
75
|
"session": extract_session(safe_result),
|
|
62
76
|
"route": safe_result.get("route"),
|
|
63
77
|
"orchestration": extract_orchestration(safe_result),
|
|
78
|
+
"autonomy": summarize_autonomy_contract(safe_result.get("autonomy_contract")),
|
|
64
79
|
"agent": extract_agent(safe_result, args),
|
|
65
80
|
"providers": extract_providers(safe_result),
|
|
66
81
|
"sources": extract_sources(safe_result),
|
|
@@ -70,7 +85,7 @@ def record_audit(
|
|
|
70
85
|
"token_estimate": extract_token_estimate(safe_result),
|
|
71
86
|
"external_actions": extract_external_actions(safe_result),
|
|
72
87
|
"result": summarize_result(safe_result),
|
|
73
|
-
"error":
|
|
88
|
+
"error": safe_error,
|
|
74
89
|
"redaction_applied": True,
|
|
75
90
|
}
|
|
76
91
|
day_home = audit_day_home(created_at[:10])
|
|
@@ -81,6 +96,64 @@ def record_audit(
|
|
|
81
96
|
return {"id": execution_id, "json_path": str(json_path), "markdown_path": str(md_path)}
|
|
82
97
|
|
|
83
98
|
|
|
99
|
+
def try_record_audit(
|
|
100
|
+
*,
|
|
101
|
+
command: str | None,
|
|
102
|
+
args: dict[str, Any],
|
|
103
|
+
result: dict[str, Any] | None = None,
|
|
104
|
+
error: str | None = None,
|
|
105
|
+
origin: str = "unknown",
|
|
106
|
+
required: bool = False,
|
|
107
|
+
recorder: Any | None = None,
|
|
108
|
+
) -> dict[str, Any]:
|
|
109
|
+
"""Record an audit trail and return a safe success or warning envelope."""
|
|
110
|
+
|
|
111
|
+
audit_recorder = recorder or record_audit
|
|
112
|
+
try:
|
|
113
|
+
audit = audit_recorder(command=command, args=args, result=result, error=error, origin=origin)
|
|
114
|
+
except TypeError as exc:
|
|
115
|
+
if recorder is None:
|
|
116
|
+
return {"audit_warning": audit_warning(exc, required=required)}
|
|
117
|
+
try:
|
|
118
|
+
audit = audit_recorder(command=command, args=args, result=result, error=error)
|
|
119
|
+
except Exception as fallback_exc: # noqa: BLE001 - audit remains best-effort.
|
|
120
|
+
return {"audit_warning": audit_warning(fallback_exc, required=required)}
|
|
121
|
+
except Exception as exc: # noqa: BLE001 - audit remains best-effort.
|
|
122
|
+
return {"audit_warning": audit_warning(exc, required=required)}
|
|
123
|
+
return {"audit": audit}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def audit_warning(exc: Exception, *, required: bool = False) -> dict[str, Any]:
|
|
127
|
+
return {
|
|
128
|
+
"kind": "audit-warning",
|
|
129
|
+
"code": "audit_record_failed",
|
|
130
|
+
"status": "not-recorded",
|
|
131
|
+
"reason": classify_audit_error(exc),
|
|
132
|
+
"message": "Audit trail could not be written.",
|
|
133
|
+
"required": bool(required),
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
def classify_audit_error(exc: Exception) -> str:
|
|
138
|
+
if isinstance(exc, AuditRedactionError):
|
|
139
|
+
return "redaction-error"
|
|
140
|
+
if isinstance(exc, PermissionError):
|
|
141
|
+
return "permission-denied"
|
|
142
|
+
if isinstance(exc, FileNotFoundError):
|
|
143
|
+
return "path-not-found"
|
|
144
|
+
if isinstance(exc, OSError) and getattr(exc, "errno", None) == errno.ENOSPC:
|
|
145
|
+
return "disk-full"
|
|
146
|
+
if isinstance(exc, (TypeError, ValueError)):
|
|
147
|
+
return "serialization-error"
|
|
148
|
+
return "unknown-audit-error"
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
def normalize_origin(origin: str | None) -> str:
|
|
152
|
+
allowed = {"cli", "mcp", "scheduler", "wizard", "agent-prompt", "plugin", "core", "unknown"}
|
|
153
|
+
value = str(origin or "unknown").strip()
|
|
154
|
+
return value if value in allowed else "unknown"
|
|
155
|
+
|
|
156
|
+
|
|
84
157
|
def list_audits(limit: int = 20) -> dict[str, Any]:
|
|
85
158
|
items: list[dict[str, Any]] = []
|
|
86
159
|
for path in sorted(ensure_audit_home().glob("*/*.json"), reverse=True):
|
|
@@ -154,25 +227,35 @@ def find_audit_json(execution_id: str) -> Path:
|
|
|
154
227
|
return matches[0]
|
|
155
228
|
|
|
156
229
|
|
|
157
|
-
def redact_value(value: Any) -> Any:
|
|
230
|
+
def redact_value(value: Any, *, redact_access_keys: bool = False, parent_key: str | None = None) -> Any:
|
|
158
231
|
if isinstance(value, str):
|
|
159
232
|
return redact_secrets(value)
|
|
160
233
|
if isinstance(value, list):
|
|
161
|
-
return [redact_value(item) for item in value]
|
|
234
|
+
return [redact_value(item, redact_access_keys=redact_access_keys, parent_key=parent_key) for item in value]
|
|
162
235
|
if isinstance(value, tuple):
|
|
163
|
-
return [redact_value(item) for item in value]
|
|
236
|
+
return [redact_value(item, redact_access_keys=redact_access_keys, parent_key=parent_key) for item in value]
|
|
164
237
|
if isinstance(value, dict):
|
|
165
238
|
redacted: dict[str, Any] = {}
|
|
166
239
|
for key, item in value.items():
|
|
167
240
|
key_text = str(key)
|
|
168
|
-
if secret_key(key_text):
|
|
241
|
+
if secret_key(key_text) or access_key(key_text, parent_key=parent_key, enabled=redact_access_keys):
|
|
169
242
|
redacted[key_text] = "[REDACTED_SECRET]"
|
|
170
243
|
else:
|
|
171
|
-
redacted[key_text] = redact_value(item)
|
|
244
|
+
redacted[key_text] = redact_value(item, redact_access_keys=redact_access_keys, parent_key=key_text)
|
|
172
245
|
return redacted
|
|
173
246
|
return value
|
|
174
247
|
|
|
175
248
|
|
|
249
|
+
def access_key(key: str, *, parent_key: str | None, enabled: bool) -> bool:
|
|
250
|
+
if not enabled:
|
|
251
|
+
return False
|
|
252
|
+
normalized = key.lower().replace("-", "_")
|
|
253
|
+
if normalized in {"owner_key", "contributor_key", "shared_key"}:
|
|
254
|
+
return True
|
|
255
|
+
parent = (parent_key or "").lower().replace("-", "_")
|
|
256
|
+
return normalized == "key" and parent in {"owner_access", "contributor_access", "shared_access"}
|
|
257
|
+
|
|
258
|
+
|
|
176
259
|
def secret_key(key: str) -> bool:
|
|
177
260
|
normalized = key.lower().replace("-", "_")
|
|
178
261
|
if normalized in {"token_estimate", "tokens", "prompt_tokens", "completion_tokens", "total_tokens"}:
|
|
@@ -232,6 +315,17 @@ def extract_sources(result: dict[str, Any]) -> list[Any]:
|
|
|
232
315
|
source = result.get("source")
|
|
233
316
|
if source:
|
|
234
317
|
return [source]
|
|
318
|
+
if result.get("kind") == "source-configure" and result.get("status") == "blocked":
|
|
319
|
+
return [
|
|
320
|
+
{
|
|
321
|
+
"id": result.get("source_id"),
|
|
322
|
+
"provider": result.get("provider"),
|
|
323
|
+
"status": result.get("status"),
|
|
324
|
+
"field": result.get("field"),
|
|
325
|
+
"reason": result.get("reason"),
|
|
326
|
+
"stored_secret": False,
|
|
327
|
+
}
|
|
328
|
+
]
|
|
235
329
|
return []
|
|
236
330
|
|
|
237
331
|
|
|
@@ -294,8 +388,11 @@ def extract_orchestration(result: dict[str, Any]) -> dict[str, Any] | None:
|
|
|
294
388
|
"domain_agent": (plan.get("domain_agent") or {}).get("id") if isinstance(plan.get("domain_agent"), dict) else None,
|
|
295
389
|
"specialist_tasks": [
|
|
296
390
|
{
|
|
391
|
+
"task_id": task.get("task_id") or task.get("id"),
|
|
297
392
|
"agent_id": task.get("agent_id"),
|
|
298
393
|
"capability_id": task.get("capability_id"),
|
|
394
|
+
"role": task.get("role"),
|
|
395
|
+
"depends_on": list(task.get("depends_on") or []),
|
|
299
396
|
"status": task.get("status"),
|
|
300
397
|
}
|
|
301
398
|
for task in plan.get("specialist_tasks") or []
|
|
@@ -303,23 +400,104 @@ def extract_orchestration(result: dict[str, Any]) -> dict[str, Any] | None:
|
|
|
303
400
|
],
|
|
304
401
|
"configuration_tasks": [
|
|
305
402
|
{
|
|
403
|
+
"task_id": task.get("task_id") or task.get("id"),
|
|
306
404
|
"agent_id": task.get("agent_id"),
|
|
307
405
|
"provider": task.get("provider"),
|
|
406
|
+
"role": task.get("role"),
|
|
407
|
+
"depends_on": list(task.get("depends_on") or []),
|
|
308
408
|
"status": task.get("status"),
|
|
309
409
|
}
|
|
310
410
|
for task in plan.get("configuration_tasks") or []
|
|
311
411
|
if isinstance(task, dict)
|
|
312
412
|
],
|
|
313
413
|
"review_task": {
|
|
414
|
+
"task_id": (plan.get("review_task") or {}).get("task_id") or (plan.get("review_task") or {}).get("id"),
|
|
314
415
|
"agent_id": (plan.get("review_task") or {}).get("agent_id"),
|
|
416
|
+
"role": (plan.get("review_task") or {}).get("role"),
|
|
417
|
+
"depends_on": list((plan.get("review_task") or {}).get("depends_on") or []),
|
|
315
418
|
"status": (plan.get("review_task") or {}).get("status"),
|
|
316
419
|
}
|
|
317
420
|
if isinstance(plan.get("review_task"), dict)
|
|
318
421
|
else None,
|
|
422
|
+
"collaboration_enabled": plan.get("collaboration_enabled") is True,
|
|
423
|
+
"collaboration_graph": summarize_collaboration_graph(plan.get("collaboration_graph")),
|
|
424
|
+
"model_plan": summarize_model_plan(plan.get("model_plan")),
|
|
425
|
+
"execution_model": summarize_execution_model(plan.get("execution_model")),
|
|
426
|
+
"autonomy_contract": summarize_autonomy_contract(plan.get("autonomy_contract")),
|
|
427
|
+
"human_escalations": len(plan.get("human_escalations") or []),
|
|
428
|
+
"shared_context": summarize_shared_context(plan.get("shared_context")),
|
|
319
429
|
"trace": result.get("orchestration_trace") or plan.get("trace") or [],
|
|
320
430
|
}
|
|
321
431
|
|
|
322
432
|
|
|
433
|
+
def summarize_collaboration_graph(value: Any) -> dict[str, Any] | None:
|
|
434
|
+
if not isinstance(value, dict):
|
|
435
|
+
return None
|
|
436
|
+
nodes = value.get("nodes") if isinstance(value.get("nodes"), list) else []
|
|
437
|
+
edges = value.get("edges") if isinstance(value.get("edges"), list) else []
|
|
438
|
+
return {
|
|
439
|
+
"schema_version": value.get("schema_version"),
|
|
440
|
+
"nodes": len(nodes),
|
|
441
|
+
"edges": len(edges),
|
|
442
|
+
"parallel_groups": len(value.get("parallel_groups") or []),
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
def summarize_shared_context(value: Any) -> dict[str, int] | None:
|
|
447
|
+
if not isinstance(value, dict):
|
|
448
|
+
return None
|
|
449
|
+
return {
|
|
450
|
+
key: len(value.get(key) or [])
|
|
451
|
+
for key in (
|
|
452
|
+
"facts",
|
|
453
|
+
"inferences",
|
|
454
|
+
"artifacts",
|
|
455
|
+
"blockers",
|
|
456
|
+
"decisions",
|
|
457
|
+
"risks",
|
|
458
|
+
"questions",
|
|
459
|
+
"handoffs",
|
|
460
|
+
"conflicts",
|
|
461
|
+
"human_escalations",
|
|
462
|
+
)
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
def summarize_execution_model(value: Any) -> dict[str, Any] | None:
|
|
467
|
+
if not isinstance(value, dict):
|
|
468
|
+
return None
|
|
469
|
+
return {
|
|
470
|
+
"schema_version": value.get("schema_version"),
|
|
471
|
+
"decision_owner": value.get("decision_owner"),
|
|
472
|
+
"review_required": value.get("review_required"),
|
|
473
|
+
"model_strategy": value.get("model_strategy"),
|
|
474
|
+
"model_risk": value.get("model_risk"),
|
|
475
|
+
"model_confidence": value.get("model_confidence"),
|
|
476
|
+
"autonomy_level": value.get("autonomy_level"),
|
|
477
|
+
"autonomy_level_id": value.get("autonomy_level_id"),
|
|
478
|
+
"autonomy_status": value.get("autonomy_status"),
|
|
479
|
+
"execution_allowed": value.get("execution_allowed"),
|
|
480
|
+
"requires_human": value.get("requires_human"),
|
|
481
|
+
"limits": value.get("limits") if isinstance(value.get("limits"), dict) else {},
|
|
482
|
+
"stop_conditions": list(value.get("stop_conditions") or []),
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
def summarize_model_plan(value: Any) -> dict[str, Any] | None:
|
|
487
|
+
if not isinstance(value, dict):
|
|
488
|
+
return None
|
|
489
|
+
return {
|
|
490
|
+
"strategy": value.get("strategy"),
|
|
491
|
+
"risk": value.get("risk"),
|
|
492
|
+
"confidence": value.get("confidence"),
|
|
493
|
+
"fallback": value.get("fallback"),
|
|
494
|
+
"local_llm_selected": value.get("local_llm_selected") is True,
|
|
495
|
+
"local_llm_recommended": value.get("local_llm_recommended") is True,
|
|
496
|
+
"mini_brain": summarize_mini_brain(value.get("mini_brain")),
|
|
497
|
+
"max_llm_calls": value.get("max_llm_calls"),
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
|
|
323
501
|
def summarize_result(result: dict[str, Any]) -> dict[str, Any]:
|
|
324
502
|
return {
|
|
325
503
|
"kind": result.get("kind"),
|
|
@@ -343,6 +521,7 @@ def render_audit_md(entry: dict[str, Any]) -> str:
|
|
|
343
521
|
f"# Audit {entry.get('id')}",
|
|
344
522
|
"",
|
|
345
523
|
f"- Created at: `{entry.get('created_at')}`",
|
|
524
|
+
f"- Origin: `{entry.get('origin') or 'unknown'}`",
|
|
346
525
|
f"- User: `{entry.get('user')}`",
|
|
347
526
|
f"- Command: `{entry.get('command')}`",
|
|
348
527
|
f"- Status: `{(entry.get('result') or {}).get('status')}`",
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
"""Controlled autonomy contracts for Agent DevKit plans and tasks."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
AUTONOMY_SCHEMA_VERSION = "ai-devkit.autonomy/v1"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
LEVELS = {
|
|
12
|
+
0: ("manual", "User runs commands or capabilities directly."),
|
|
13
|
+
1: ("assisted", "Agent DevKit suggests, asks, or delegates reasoning before execution."),
|
|
14
|
+
2: ("deterministic", "Known read-only or dry-run capabilities can execute without external LLM."),
|
|
15
|
+
3: ("supervised", "Side-effecting work requires explicit human confirmation."),
|
|
16
|
+
4: ("scheduled", "Recurring local tasks execute with limits, audit, and notifications."),
|
|
17
|
+
5: ("collaborative", "Multiple specialist agents are coordinated by the runtime."),
|
|
18
|
+
6: ("controlled-autonomy", "Composed workflows execute inside policy, budget, audit, and stop conditions."),
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def build_autonomy_contract(
|
|
23
|
+
*,
|
|
24
|
+
model_plan: dict[str, Any],
|
|
25
|
+
routing_decision: dict[str, Any],
|
|
26
|
+
specialist_tasks: list[dict[str, Any]],
|
|
27
|
+
configuration_tasks: list[dict[str, Any]],
|
|
28
|
+
review_gate: dict[str, Any],
|
|
29
|
+
execution_model: dict[str, Any],
|
|
30
|
+
policy_summary: dict[str, Any],
|
|
31
|
+
collaboration_enabled: bool,
|
|
32
|
+
controller_enabled: bool,
|
|
33
|
+
scheduled: bool = False,
|
|
34
|
+
) -> dict[str, Any]:
|
|
35
|
+
reasons: list[str] = []
|
|
36
|
+
blockers: list[str] = []
|
|
37
|
+
requires_human = False
|
|
38
|
+
model_strategy = str(model_plan.get("strategy") or "")
|
|
39
|
+
routing_status = str(routing_decision.get("status") or "")
|
|
40
|
+
has_specialists = bool(specialist_tasks)
|
|
41
|
+
has_multiple_specialists = len(specialist_tasks) > 1
|
|
42
|
+
supervised_side_effect_count = sum(1 for task in specialist_tasks if task_requires_supervision(task))
|
|
43
|
+
|
|
44
|
+
if routing_status in {"ambiguous", "low-confidence"}:
|
|
45
|
+
requires_human = True
|
|
46
|
+
blockers.append("routing-confirmation-required")
|
|
47
|
+
reasons.append("Routing requires human confirmation.")
|
|
48
|
+
if configuration_tasks:
|
|
49
|
+
requires_human = True
|
|
50
|
+
blockers.append("provider-configuration-required")
|
|
51
|
+
reasons.append("Provider/source configuration is required.")
|
|
52
|
+
if model_strategy == "human":
|
|
53
|
+
requires_human = True
|
|
54
|
+
blockers.append("human-model-strategy")
|
|
55
|
+
reasons.append("Model strategy selected human input.")
|
|
56
|
+
if supervised_side_effect_count:
|
|
57
|
+
requires_human = True
|
|
58
|
+
blockers.append("write-policy-confirmation-required")
|
|
59
|
+
reasons.append("One or more tasks require explicit confirmation by write policy.")
|
|
60
|
+
|
|
61
|
+
if scheduled:
|
|
62
|
+
level = 4
|
|
63
|
+
reasons.append("Execution is scheduled.")
|
|
64
|
+
elif requires_human and supervised_side_effect_count:
|
|
65
|
+
level = 3
|
|
66
|
+
elif requires_human:
|
|
67
|
+
level = 1
|
|
68
|
+
elif controller_enabled and collaboration_enabled and has_multiple_specialists:
|
|
69
|
+
level = 6
|
|
70
|
+
reasons.append("Controller can execute a composed specialist workflow within declared limits.")
|
|
71
|
+
elif collaboration_enabled and has_multiple_specialists:
|
|
72
|
+
level = 5
|
|
73
|
+
reasons.append("Plan coordinates multiple specialist agents.")
|
|
74
|
+
elif model_strategy == "automation" and has_specialists:
|
|
75
|
+
level = 2
|
|
76
|
+
reasons.append("Plan maps to deterministic autonomous-safe capability execution.")
|
|
77
|
+
elif has_specialists:
|
|
78
|
+
level = 2 if int(policy_summary.get("autonomous_safe") or 0) > 0 else 1
|
|
79
|
+
reasons.append("Plan selected known capability contracts.")
|
|
80
|
+
else:
|
|
81
|
+
level = 1
|
|
82
|
+
reasons.append("Plan needs reasoning, user input, or a configured LLM before autonomous execution.")
|
|
83
|
+
|
|
84
|
+
level_id, level_description = LEVELS[level]
|
|
85
|
+
limits = execution_model.get("limits") if isinstance(execution_model.get("limits"), dict) else {}
|
|
86
|
+
allowed_side_effects = (
|
|
87
|
+
execution_model.get("allowed_side_effects")
|
|
88
|
+
if isinstance(execution_model.get("allowed_side_effects"), dict)
|
|
89
|
+
else {}
|
|
90
|
+
)
|
|
91
|
+
execution_allowed = not blockers and level in {2, 4, 5, 6}
|
|
92
|
+
if model_strategy == "external-llm" and int(limits.get("max_llm_calls") or 0) > 0:
|
|
93
|
+
execution_allowed = True
|
|
94
|
+
if any(task_is_blocked_by_default(task) for task in specialist_tasks):
|
|
95
|
+
execution_allowed = False
|
|
96
|
+
|
|
97
|
+
status = "allowed" if execution_allowed else "needs-input" if requires_human else "planned"
|
|
98
|
+
if any(task_is_blocked_by_default(task) for task in specialist_tasks):
|
|
99
|
+
status = "blocked"
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
"kind": "autonomy-contract",
|
|
103
|
+
"schema_version": AUTONOMY_SCHEMA_VERSION,
|
|
104
|
+
"level": level,
|
|
105
|
+
"level_id": level_id,
|
|
106
|
+
"level_description": level_description,
|
|
107
|
+
"status": status,
|
|
108
|
+
"execution_allowed": execution_allowed,
|
|
109
|
+
"requires_human": requires_human,
|
|
110
|
+
"requires_review": bool(review_gate.get("required")),
|
|
111
|
+
"can_call_capabilities": bool(allowed_side_effects.get("can_call_capabilities")),
|
|
112
|
+
"can_call_llm": allowed_side_effects.get("can_call_llm"),
|
|
113
|
+
"can_schedule": level in {2, 4, 5, 6} and not requires_human,
|
|
114
|
+
"audit_required": True,
|
|
115
|
+
"model_strategy": model_strategy or None,
|
|
116
|
+
"model_risk": model_plan.get("risk"),
|
|
117
|
+
"routing_status": routing_status or None,
|
|
118
|
+
"controller_enabled": bool(controller_enabled),
|
|
119
|
+
"collaboration_enabled": bool(collaboration_enabled),
|
|
120
|
+
"limits": limits,
|
|
121
|
+
"policy_summary": policy_summary,
|
|
122
|
+
"allowed_actions": allowed_actions_for_level(level, execution_allowed),
|
|
123
|
+
"blocked_actions": blocked_actions_for(level, blockers, model_plan),
|
|
124
|
+
"blockers": blockers,
|
|
125
|
+
"reasons": reasons,
|
|
126
|
+
"fallback": model_plan.get("fallback"),
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def build_task_autonomy_contract(
|
|
131
|
+
task: dict[str, Any],
|
|
132
|
+
*,
|
|
133
|
+
origin: str,
|
|
134
|
+
dry_run: bool = False,
|
|
135
|
+
permission: dict[str, Any] | None = None,
|
|
136
|
+
) -> dict[str, Any]:
|
|
137
|
+
action = task.get("action") if isinstance(task.get("action"), dict) else {}
|
|
138
|
+
schedule = task.get("schedule") if isinstance(task.get("schedule"), dict) else {}
|
|
139
|
+
notify = task.get("notify") if isinstance(task.get("notify"), dict) else {}
|
|
140
|
+
permission = permission if isinstance(permission, dict) else {}
|
|
141
|
+
scheduled = origin == "scheduler" or schedule.get("type") not in {None, "manual"}
|
|
142
|
+
external_writes = action.get("external_writes") is True
|
|
143
|
+
permission_ok = permission.get("ok") is not False
|
|
144
|
+
requires_human = external_writes and not permission_ok
|
|
145
|
+
level = 4 if scheduled else 0
|
|
146
|
+
if requires_human:
|
|
147
|
+
level = 3
|
|
148
|
+
level_id, level_description = LEVELS[level]
|
|
149
|
+
execution_allowed = dry_run or not requires_human
|
|
150
|
+
status = "allowed" if execution_allowed else "needs-input"
|
|
151
|
+
blockers = ["external-write-permission-required"] if requires_human else []
|
|
152
|
+
return {
|
|
153
|
+
"kind": "autonomy-contract",
|
|
154
|
+
"schema_version": AUTONOMY_SCHEMA_VERSION,
|
|
155
|
+
"level": level,
|
|
156
|
+
"level_id": level_id,
|
|
157
|
+
"level_description": level_description,
|
|
158
|
+
"status": status,
|
|
159
|
+
"execution_allowed": execution_allowed,
|
|
160
|
+
"requires_human": requires_human,
|
|
161
|
+
"requires_review": external_writes,
|
|
162
|
+
"can_call_capabilities": action.get("type") == "capability",
|
|
163
|
+
"can_call_llm": action.get("type") == "prompt",
|
|
164
|
+
"can_schedule": scheduled,
|
|
165
|
+
"audit_required": origin == "scheduler",
|
|
166
|
+
"scheduled": scheduled,
|
|
167
|
+
"notification_required": bool(task.get("notifications") or notify),
|
|
168
|
+
"allowed_actions": allowed_actions_for_level(level, execution_allowed),
|
|
169
|
+
"blocked_actions": blocked_actions_for(level, blockers, {}),
|
|
170
|
+
"blockers": blockers,
|
|
171
|
+
"reasons": task_autonomy_reasons(scheduled=scheduled, external_writes=external_writes, dry_run=dry_run),
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def task_requires_supervision(task: dict[str, Any]) -> bool:
|
|
176
|
+
metadata = task.get("write_policy_metadata") if isinstance(task.get("write_policy_metadata"), dict) else {}
|
|
177
|
+
return bool(metadata.get("requires_confirmation") or metadata.get("blocked_by_default"))
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
def task_is_blocked_by_default(task: dict[str, Any]) -> bool:
|
|
181
|
+
metadata = task.get("write_policy_metadata") if isinstance(task.get("write_policy_metadata"), dict) else {}
|
|
182
|
+
return bool(metadata.get("blocked_by_default"))
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
def allowed_actions_for_level(level: int, execution_allowed: bool) -> list[str]:
|
|
186
|
+
if not execution_allowed:
|
|
187
|
+
return ["dry-run", "ask-human"]
|
|
188
|
+
actions = ["audit", "notify"]
|
|
189
|
+
if level >= 2:
|
|
190
|
+
actions.append("run-autonomous-safe-capability")
|
|
191
|
+
if level >= 4:
|
|
192
|
+
actions.append("run-scheduled-task")
|
|
193
|
+
if level >= 5:
|
|
194
|
+
actions.append("coordinate-specialists")
|
|
195
|
+
if level >= 6:
|
|
196
|
+
actions.append("run-controlled-workflow")
|
|
197
|
+
return actions
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
def blocked_actions_for(level: int, blockers: list[str], model_plan: dict[str, Any]) -> list[str]:
|
|
201
|
+
blocked = set(model_plan.get("forbidden_actions") or [])
|
|
202
|
+
if blockers:
|
|
203
|
+
blocked.update({"execute-without-human-input", "external-write"})
|
|
204
|
+
if level < 4:
|
|
205
|
+
blocked.add("unbounded-loop")
|
|
206
|
+
blocked.add("destructive-action-without-confirmation")
|
|
207
|
+
return sorted(blocked)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
def task_autonomy_reasons(*, scheduled: bool, external_writes: bool, dry_run: bool) -> list[str]:
|
|
211
|
+
reasons = []
|
|
212
|
+
if scheduled:
|
|
213
|
+
reasons.append("Task is managed by the local scheduler contract.")
|
|
214
|
+
else:
|
|
215
|
+
reasons.append("Task is a manual local task run.")
|
|
216
|
+
if external_writes:
|
|
217
|
+
reasons.append("Task declares external write effects.")
|
|
218
|
+
if dry_run:
|
|
219
|
+
reasons.append("Dry-run permits planning without external effects.")
|
|
220
|
+
return reasons
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
def summarize_autonomy_contract(value: Any) -> dict[str, Any] | None:
|
|
224
|
+
if not isinstance(value, dict):
|
|
225
|
+
return None
|
|
226
|
+
return {
|
|
227
|
+
"schema_version": value.get("schema_version"),
|
|
228
|
+
"level": value.get("level"),
|
|
229
|
+
"level_id": value.get("level_id"),
|
|
230
|
+
"status": value.get("status"),
|
|
231
|
+
"execution_allowed": value.get("execution_allowed") is True,
|
|
232
|
+
"requires_human": value.get("requires_human") is True,
|
|
233
|
+
"requires_review": value.get("requires_review") is True,
|
|
234
|
+
"model_strategy": value.get("model_strategy"),
|
|
235
|
+
"model_risk": value.get("model_risk"),
|
|
236
|
+
"blockers": list(value.get("blockers") or []),
|
|
237
|
+
}
|