7 views
This guide focuses on AI on-call copilot for production systems, with practical trade-offs for reliability, security, and cost.
PagerDuty at 3am is the wrong time to discover your agent can kubectl delete. This project ships a copilot that reads runbooks and metrics, proposes fixes, and cannot mutate production without dual control.
⚡ TL;DR: IAM deny on mutating APIs for the agent role. Read-only tools only by default. propose_patch opens PRs/CRs. Break-glass assumes a separate role after two human approvals via Step Functions.
AI on-call copilot: production guidance
- Runbook KB with Day 26 citations
- Read-only CloudWatch/Logs tools
propose_patch→ branch/PR only- Optional break-glass behind dual approval
- Day 39 traces on every turn
IAM posture
json
{
"Effect": "Deny",
"Action": ["ecs:UpdateService", "eks:*", "ssm:SendCommand", "ec2:TerminateInstances", "rds:Delete*"],
"Resource": "*"
}
python
def propose_patch(repo: str, path: str, diff: str, idem: str) -> dict:
branch = f"oncall-bot/{idem[:8]}"
gh.create_branch(repo, branch)
gh.commit(repo, branch, path, diff, message="oncall suggestion")
pr = gh.open_pr(repo, branch, title=f"On-call suggestion {idem[:8]}")
return {"prUrl": pr.html_url, "applied": False}
Project idea: game day
Inject a fake CPU alert. Require the copilot to cite the runbook span, pull the dashboard link, and open a PR changing only a feature-flag default — reviewed by a human. Time the dual-control break-glass path once without applying it to real prod.Deliverables checklist
- [ ] Deny-by-default IAM for agent role
- [ ] Runbook RAG with fail-closed citations
- [ ] propose_patch → PR only
- [ ] Dual-control break-glass documented
- [ ] Traces on every turn
- [ ] Game-day script committed
Series navigation
← Day 39 · Day 41 → Last updated September 11, 2026 Related: AI On-Call Copilots: Suggest Runbooks Without Mutating Production; Day 80: Project: Platform AI Gateway; Day 90: Project: Incident Timeline Summarizer.Watch: 100 Days of AI on YouTube
Short videos from CheatCoders, one AI engineering topic per day.
Most viewed
- Python Decorators Explained: From Simple Wrappers to Production Patterns
- Claude Code vs Cursor vs GitHub Copilot: Choose by Workflow, and Set Up One Repo That Works With All Three
- AI Agent Frameworks in 2025: LangGraph vs CrewAI vs AutoGen vs Raw API
- Python String Methods: Every str Method With Real Production Examples
- Css Animation Performance: Performance-Optimized Motion for Modern UIs
Newly added
- AWS Systems Manager Parameter Store: Hierarchical Runtime Config for Coding Agents
- Amazon Cognito Identity Pools: Federate Coding-Agent Tool Callers Without Long-Lived Keys
- Amazon Athena for Coding Agents: Query Tool Audit Logs and Eval Traces on S3 Without a Warehouse
- AWS Batch for Coding Agents: Parallel Overnight PR Reviews and Long-Running Jobs Without Lambda Timeouts
- Amazon Bedrock Prompt Management: Version and A/B Test Coding-Agent System Prompts
Deep-dive PDF
Get the expanded guide for this post — extra diagrams-style checklists, failure modes, and a production walkthrough. Free when you subscribe to CheatCoders.
Already subscribed? or open the subscribe page.
Discover more from CheatCoders
Subscribe to get the latest posts sent to your email.
