Standard CI linters catch syntax errors and formatting drift, yet two expensive regressions regularly slip through pull request reviews:
- Hidden TypeScript Blast Radius: Editing a shared type signature or utility module can silently ripple across more than a hundred downstream files.
- Accidental AWS Cost & Security Spikes: Terraform and AWS CDK changes routinely add unmanaged NAT Gateways or misconfigured public S3 buckets that go unnoticed until the monthly AWS bill arrives.
For Kiroween 2026 (Frankenstein category), I built BlastGuard solo—a serverless pull request gatekeeper that stitches together a TypeScript Compiler AST dependency crawler, a deterministic us-east-1 Terraform/CDK FinOps pricing and security rule engine, and Amazon Bedrock synthesis on AWS.
- Live App: https://blastguard-pied.vercel.app
- Source Code &
.kiro/Directory: https://github.com/Burry071/blastguard
Why Spec-Driven Development Mattered Here
An LLM alone cannot be trusted as a pull request check: if it hallucinates impacted file paths or fails when an upstream model throttles, developers disable it immediately. To make BlastGuard reliable, generative AI had to stay strictly downstream of deterministic static analyzers.
Engineering a 3-package TypeScript monorepo (infra/, backend/, web/) solo under a hackathon deadline meant keeping strict boundaries between AWS CDK infrastructure, static AST/Terraform parsers, Bedrock fallback logic, and the React dashboard. Kiro IDE kept those invariants intact from day one through four workflows:
1. Spec-Driven Architecture (.kiro/specs/)
Instead of prompting ad-hoc files into existence, I defined formal requirements, system design, and 15 incremental implementation tasks inside .kiro/specs/ before writing application code. Every acceptance criterion—such as bounding AST traversal depth, caching scan results by commit SHA in DynamoDB, and rejecting private IP ranges before outbound fetches—mapped directly to automated tests.
2. Architectural Steering (.kiro/steering/architecture.md)
I used .kiro/steering/architecture.md to enforce hard system boundaries across every Kiro session:
- Split Ingress Paths: Browser traffic routes through Vercel edge rewrites (
/api/*) with strictHSTSandX-Content-Type-Optionsheaders to AWS API Gateway, while GitHub webhooks post directly toPOST /api/webhookso raw request bytes remain intact forX-Hub-Signature-256HMAC verification. - Zero-Failure Synthesis: Amazon Bedrock (
us.amazon.nova-2-lite-v1:0) synthesizes concise review summaries when available, while a deterministic rule-based summary engine guarantees structured output with zero500errors if Bedrock is throttled or disabled. - Least-Privilege IAM: Each Lambda runs with an isolated IAM role scoped strictly to its DynamoDB table/index (
gsi1) and AWS SSMSecureStringparameters.
3. UI Design Steering (.kiro/steering/ui-system.md)
To keep the dashboard fast and scannable rather than cluttered with generic card templates, .kiro/steering/ui-system.md enforced custom dark-mode tokens, tabular numerals (tabular-nums) for cost deltas and impacted file counts, severity noise filtering, keyboard shortcuts (/ to focus PR input, 1–3 to switch

