# AGENTS.md — AI Coding Agent Instructions (Cursor · Claude Code · Codex) ## Overview - **Stack:** Python 3.12 FastAPI + Amazon Bedrock Converse API (Prompt Caching + Guardrails) + AWS ECS Fargate (ARM64 Graviton) + Terraform + GitHub Actions OIDC. - **Architecture Principle:** Zero long-lived AWS keys, least-privilege IAM, FinOps-by-default (ARM64 Graviton + CloudWatch Logs Infrequent Access + 14-day retention). ## Validation Commands - Run integrity tests before finishing any task: `python3 -m unittest app/test_payload.py` - Validate Terraform syntax when Terraform CLI is installed: `cd terraform && terraform fmt -check && terraform validate` ## Guardrails & Boundaries - Never hardcode AWS credentials or secrets in `app/` or `terraform/`. - Never change `cpu_architecture = "ARM64"` back to `X86_64` without explicit user approval. - Keep IAM policies scoped to explicit `bedrock:*` actions and specific resource ARNs (never `Action: "*"` + `Resource: "*"`).