Damian Galarza
Services About Articles
Get in touch
Home Services About Articles Get in touch
  1. Home
  2. /
  3. Guardrails

Guardrails

3 articles about guardrails - lessons from building and scaling real software.

Jun 26, 2026

Agent Loops vs. Workflows: The Boundary That Makes AI Reliable

Most AI demos hand one agent the whole job. When the output touches reputation, money, or outbound email, use a workflow instead of an agent loop. Here's where the boundary goes, built with Mastra.

May 27, 2026

Human-in-the-Loop Agent Approvals: A Mastra Pattern

Prompt-based approval gates fail because the model decides whether to ask. Mastra's requireApproval primitive removes that decision entirely. Here's how to implement it.

Apr 22, 2026

Governing AI Agents Without Killing Them: What Actually Works in Production

Most AI agent governance advice targets boards, not builders. Three failure patterns, real TypeScript examples, and what a CTO should do Monday morning.

Damian Galarza

I help experienced engineers and teams ship better software with AI, smarter workflows, and real-world decision-making.

Work With Me

  • Foundation Sprint
  • Production AI Retainer
Book an Intro Call

I Can Help With

  • Production AI Engineering
  • AI Agents
  • Fractional CTO
  • Vibe Code Audit
  • Mastra Consulting

Free Resources

  • Practical AI
  • Codebase Readiness
  • Agent-Ready Skill
  • Loops
  • Terminal Cheat Sheet
  • Git Worktree Cheatsheet
  • Articles
  • Videos

Get the Practical AI newsletter.

© 2026 Damian Galarza. All rights reserved.