Month 1 Capstone7 Code Files

Month 1 Capstone Project: SRE Runbook Copilot CLI

Month 1 Capstone Project: SRE Runbook Copilot CLI (capstones/month01_sre_runbook_copilot_cli)

Master Blueprint Milestone #1 Complete! This capstone project integrates everything from Month 1 (Weeks 1–4) into a production-structured, schema-validated, cost-audited SRE Runbook Copilot CLI.


1. Architecture & Data Flow

text
[CLI Incident Queries + Markdown Runbooks] │ ▼ [Prompt Injection Guardrail Scan] (Blocks 'IGNORE PREVIOUS INSTRUCTIONS' & XML breakouts) │ ▼ [XML-Sandboxed Grounded Prompt] (<runbook_context> + Few-Shot JSON Exemplars) │ ▼ [Pydantic v2 Validation Engine] (Enforces `reply`, `cited_section`, `covered_by_doc` consistency) │ ▼ [Token Cost Auditor & SQLite DB] (Computes $0.15/1M input & $0.60/1M output cost + SQL ledger)

2. How to Run the Capstone & Verification Suite

powershell
# 1. Run the SRE Runbook Copilot CLI: python capstones/month01_sre_runbook_copilot_cli/main.py # 2. Run the Automated Capstone Verification Tests: python -m unittest discover -s capstones/month01_sre_runbook_copilot_cli/tests -v
Month 1 Capstone Project: SRE Runbook Copilot CLI | Month 1 AI Engineering Capstone · DataArena