Skip to content
DevToLead
Area 1.1 · 7 Lessons · ~54 min reading

AI Architecture & Guardrails

RAG evals, tool schemas, prompt injection & audit pipelines.

0 of 7 lessons completed
Start: AI Design Review
  1. 1AI Design Reviews: When Someone Wants to Fine-TuneDecide how an AI feature should be built: measure first, try the cheap options in order, and write the decision down.7 min readUpdated 6 Dec 2026Case study
  2. 2Production RAG & Automated Evaluation PipelinesReplace brittle cosine-only prototypes with a five-stage Postgres pgvector hybrid retrieval pipeline, database-level tenant isolation, and CI faithfulness quality gates.8 min read
  3. 3Schema-Constrained Multi-Agent Workflows & Human-in-the-Loop Safety GatesReplace fragile open-ended agent loops with deterministic state machines, Pydantic tool contracts, step budgets, immutable audit logs, and risk-tiered human approval gates.7 min read
  4. 4LLM Security & Compliance GuardrailsDefend multi-tenant AI gateways against indirect prompt injection, PII leakage, insecure outputs, and denial-of-wallet spikes with a four-layer runtime architecture.8 min read
  5. 5Lightweight STRIDE Threat Modeling, SOC 2 & APRA CPS 234 Compliance AutomationReplace frantic quarterly audit scrambles with 30-minute STRIDE design checks, short-lived OIDC CI pipelines, strict CVE SLAs, and automated change-management evidence.8 min read
  6. 6Writing a 1-Page Safe AI Coding & Review Guardrails RFC Across SquadsAlign multiple engineering squads around AI coding assistants without triggering shadow IT or 800-line pull request bloat using a pre-wired, metric-backed one-page RFC.8 min read
  7. 7Running Deep Critical-Path PR Architectural Audits Without Becoming a BottleneckEscape the code-review manager trap by stepping off routine feature PRs and auditing three high-blast-radius changes per month using a six-point architectural checklist.8 min read