bootstrap_validation_loop
Guides interactive deployment validation workflow: detects target platform, verifies environment connectivity, and iteratively executes commands with human approval for secure CI/CD deployment and teardown.
Instructions
GUIDED EXECUTION MODE: This tool guides you through an interactive, step-by-step deployment validation workflow. It does NOT execute commands internally - instead, it tells YOU what commands to run and processes the results iteratively. Workflow: (1) First call with iteration=0: Detects platform (OpenShift/K8s/Docker), validates environment connection, and requests human approval for target platform. (2) Subsequent calls: After running each command and reporting back with output, the tool provides next steps. Environment Validation: Before deployment, the tool verifies connection to the target platform (e.g., oc status for OpenShift, kubectl cluster-info for K8s) and requires explicit human confirmation. Validated Patterns Integration: Automatically identifies base code repositories (e.g., validatedpatterns/common for OpenShift) and guides you to merge them into your project. Deployment Cleanup: Supports CI/CD-style workflows with deployment teardown/restart guidance. Call this tool iteratively, passing previous command output back each time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | No | Path to the project directory | . |
| adrDirectory | No | Directory where ADRs are stored | docs/adrs |
| targetEnvironment | No | Target deployment environment | development |
| maxIterations | No | Maximum validation/fix iterations | |
| autoFix | No | Whether to generate auto-fix suggestions in guidance | |
| updateAdrsWithLearnings | No | Update ADRs with deployment learnings (non-sensitive) | |
| currentIteration | No | Current iteration number (0 for initial call, then increment). Used to track workflow progress. | |
| previousExecutionOutput | No | Output from the previous command execution. Paste the stdout/stderr from running the command that was recommended in the previous iteration. | |
| previousExecutionSuccess | No | Whether the previous command execution succeeded (exit code 0). Set to true if command succeeded, false if it failed. | |
| deploymentCleanupRequested | No | Set to true to request deployment cleanup/teardown guidance (for CI/CD workflows that need to delete and restart deployments). | |
| conversationContext | No | Rich context from the calling LLM about user goals and discussion history |