MotherDuck

YouTube

How to Build Reliable AI Agents Without Hardcoding Workflows | Seth Rosen

2026-10-21 17:46 UTC
Length: 52:58

Seth Rosen explains how to build reliable AI agents by using a checkpoint architecture that balances flexibility with guardrails, rather than hardcoding workflows. He contrasts the software factory model with a data factory, showing how teams can scale agent use while maintaining control and auditability. The talk highlights practical patterns such as multi‑surface interfaces (Slack, CLI, IDE) and a spectrum of agent factories from dark to light. These concepts help data engineers and product teams design agent systems that are both powerful and compliant.

Insights

1. Checkpoint Architecture
1.1 A set of verifiable checkpoints that an agent must satisfy before proceeding, enabling flexible reasoning while ensuring compliance.
1.2 Use it when you need agents to perform complex, iterative tasks that may involve security or business approvals. Example: a security review checkpoint that only allows a high‑risk change after a manual audit.
1.3 Tradeoff: too many checkpoints can stifle agent autonomy; too few can lead to unchecked actions. Common mistake: treating checkpoints as hard‑coded steps instead of conditional guardrails.

2. Software Factory vs Data Factory
2.1 Software factory builds reusable systems around code changes; data factory applies the same idea to data pipelines and analytics.
2.2 Use it to standardize how data teams ingest, transform, and serve data, mirroring the reliability and speed of software deployments.
2.3 Benefit: consistent data quality and faster iteration. Pitfall: assuming data pipelines are identical to code pipelines; data often requires more dynamic schema handling.

3. Multi‑Surface Interfaces
3.1 Agents interact through various channels—Slack, CLI, IDE, web UI—to fit user workflows.
3.2 Choose interfaces based on user roles: engineers may prefer CLI or IDE, business users may use Slack or web dashboards.
3.3 Tradeoff: more surfaces increase complexity and require consistent state management. Common mistake: neglecting to sync context across interfaces, leading to stale data.

4. Agent Factory Spectrum
4.1 Dark factory: fully automated, no human oversight; Light factory: humans monitor and intervene; Crawl stage: early experimentation.
4.2 Use the spectrum to assess risk tolerance and regulatory requirements. Example: a light factory for financial data where compliance reviews are mandatory.
4.3 Tradeoff: dark factories risk non‑compliance; light factories can be slow. Misconception: thinking a single model fits all teams; each organization must map its own position.

5. Tracing and Auditability
5.1 Capturing agent actions, decisions, and outputs to provide a verifiable record.
5.2 Implement when regulatory compliance, security, or debugging is critical. Example: logging every checkpoint pass in a security review workflow.
5.3 Pitfall: over‑logging can degrade performance; under‑logging can hide errors. Common mistake: treating logs as optional rather than a core component of the system.

6. Sparse DAG of Checkpoints
6.1 Instead of a rigid workflow DAG, agents follow a sparse graph of checkpoints that can be added or removed dynamically.
6.2 Use it to allow agents to loop and iterate while still meeting required approvals. Example: a triage checkpoint that routes high‑risk changes to a security checkpoint.
6.3 Tradeoff: requires careful design to avoid missing critical checkpoints. Misunderstanding: thinking a sparse DAG eliminates the need for governance; it only shifts guardrails to checkpoints.

Watch on YouTube