一键导入
validate-deployment
Verify that code changes have been successfully deployed to the target environment after CI/CD completes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Verify that code changes have been successfully deployed to the target environment after CI/CD completes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Safe, project-wide remediation of a dangerous or incorrect code pattern using structured search and replace.
Run a multi-faceted code review on uncommitted changes using specialized review subagents.
Create an Architectural Decision Record (ADR) to document a design choice or technical strategy.
Run a multi-faceted code review on uncommitted changes using specialized review subagents.
Commit (if needed), push the current branch to origin, and generate a pull request description in the chat.
Generate a session handoff document capturing the current working state for the next session.
| name | validate-deployment |
| description | Verify that code changes have been successfully deployed to the target environment after CI/CD completes. |
| metadata | {"author":"cascadian-gamers","version":"1.0"} |
Verify that code changes have been successfully deployed to the target environment after CI/CD completes.
Optional: specific components to validate (e.g., "lambda", "ecs", "sql"). Defaults to auto-detecting which components changed.
Before any AWS calls, run: aws sts get-caller-identity --region us-west-2
mwinit (or aws sso login) and try again."git log develop..HEAD --name-only (or check the most recent PR merge) to identify changed file types.src/ai-engagement/ → Lambda deploymentSource/ → ECS/Fargate deploymentDatabase/ → DBSPAutomation deploymentSource/ExtraLife.CDK/ → CloudFormation deploymentSource/ExtraLife.Web.Admin/client/ → ECS deployment (bundled in container)aws lambda get-function --function-name extralife-ai-engagement-agent --region us-west-2
LastModified is after the CI/CD runLAMBDA_URL=$(aws lambda get-function --function-name <name> --region us-west-2 --query 'Code.Location' --output text)
curl -s -o /tmp/lambda-pkg.zip "$LAMBDA_URL"
unzip -o /tmp/lambda-pkg.zip -d /tmp/lambda-pkg
unzip -l /tmp/lambda-pkg.zip | grep "templates/" — all agent prompts must be .md files in templates/prompt_templates/, not .txt files in templates/. See #344.aws ecr describe-images --repository-name <repo> --region us-west-2 — verify imagePushedAt is after CI/CD.aws ecs describe-services --cluster <cluster> --services <service> — verify task definition revision and createdAt timestamp.aws logs describe-log-streams \
--log-group-name "/ecs/ExtraLifeWebAdmin" \
--order-by LastEventTime --descending --limit 3 \
--query "logStreams[].{Name:logStreamName,Last:lastEventTimestamp}" --output table
Then tail the most recently active stream (not just the most recently created one — they differ after rolling deploys).aws elbv2 describe-load-balancer-attributes --load-balancer-arn <arn> \
--query "Attributes[?Key=='idle_timeout.timeout_seconds']"
Don't assume CloudFormation applied the attribute — verify it directly on the resource.aws s3 ls s3://<stored-procedures-bucket>/incoming/
.sql files are present with recent timestamps.aws s3 ls s3://<stored-procedures-bucket>/archive/ — recent timestamped copies confirm DBSPAutomation processed them./aws/lambda/DatabaseAutomationLambda-{environment}) for recent log streams with "Successfully executed stored procedure" messages. If no recent logs, the Lambda may be failing silently (see #336).run-sql-validation skill to verify proc behavior against live data.aws cloudformation list-stacks --region us-west-2 \
--query 'StackSummaries[?contains(StackName,`AIEngagement`) && StackStatus!=`DELETE_COMPLETE`].[StackName,StackStatus,LastUpdatedTime]' \
--output table
Use relevant substrings: AIEngagement, Monitor, Storage, GitHubRunner, etc.UPDATE_COMPLETE or CREATE_COMPLETE state.⚠️ NEVER manually cdk deploy ExtraLifeCdkStack without Lambda build artifacts. The CI/CD pipeline builds Lambda packages (.deps.json, published binaries) before CDK deploy. Manual deploys package raw source files, causing Runtime.ExitError: missing .deps.json on .NET Lambdas. If you need to deploy CDK manually, only deploy independent stacks like GitHubRunnerStack or the AI Engagement stacks.
⚠️ NEVER delete AWS resources (stacks, buckets, tables, etc.) without explicit approval from The Brougham 22. Even ROLLBACK_COMPLETE stacks — always ask first.
aws bedrock-agentcore-control get-agent-runtime --agent-runtime-id <ID> --query 'environmentVariables'
Must contain: ATHENA_WORKGROUP, ATHENA_DATABASE, ASG_NAME, BEDROCK_AGENTCORE_MEMORY_ID.
If missing, re-set via update_agent_runtime (see Docs/Production/agentcore-runtime-deployment.md).aws ssm get-parameter --name "/extralife/ai-engagement/use-agentcore-runtime":cache tag (only if build-and-push-runtime ran with caching enabled):
aws ecr describe-images --repository-name extralife-ai-engagement-runtime \
--query 'imageDetails[?imageTags[?contains(@,`cache`)]].imageTags' --output text
Absence of :cache tag on the first run is expected — buildx silently skips a missing cache source and builds from scratch. The tag is created on first run and reused on subsequent runs. Only flag as an issue if the tag is absent on the second+ run.agentcore invoke '{"message":"hello","sessionId":"test","actorId":"test","context":{"eventId":1,"teamId":1}}'aws logs filter-log-events --log-group-name "aws/spans" --filter-pattern "el_ai_engagement" --limit 3
opentelemetry-instrument. Verify POWERTOOLS_TRACE_DISABLED fix is in deployed image.serviceNames matches {agent_name}.DEFAULTaws logs filter-log-events \
--log-group-name "/aws/bedrock-agentcore/evaluations/results/extralife_ai_chat_eval-91hBCjAdv4" \
--region us-west-2 --limit 5
Verify results have score + label fields — not error.type: LogEventMissingException.
If still LogEventMissingException: check that eval config dataSourceConfig includes BOTH aws/spans AND the Runtime log group (/aws/bedrock-agentcore/runtimes/<runtime-id>-DEFAULT)./health endpoint responds. Check CloudWatch logs for Runtime.ExitError — this indicates the startup script (run.sh) failed (e.g., module not on PATH, missing deps).Present a deployment validation summary:
Also include a trace quality sample if Lambda or ECS changed:
ChatQuery traces from CloudWatch (post-deploy timestamp).eval-chat-traces for deeper analysis.| Component | Status | Evidence |
|-----------|--------|----------|
| Lambda | ✅ | LastModified: <timestamp>, package verified |
| ECS | ✅ | Image pushed: <timestamp>, 2/2 tasks running |
| SQL Procs | ✅ | Archived at <timestamp>, proc returns data |
| CDK | N/A | No infrastructure changes |
Flag any discrepancies (e.g., "ECS image is stale — last pushed 3 days ago").
These resource names are project-specific. Check CDK stack outputs or session handoff for current values:
extralife-ai-engagement-agent, extralife-ops-advisoraws ecs list-clusters / aws ecs list-servicesextralife-web-adminaws s3 ls | grep storedprocedure/aws/lambda/<function-name>, ECS log group from CDKrun-sql-validation for logic verification.ASG_NAME), (2) the IAM permissions for those API calls. Tools deployed without env vars/IAM fail silently at runtime.