← все видео

Harness Engineering: Why Production AI Agents Are Mostly Code, Not Prompts

The Applied Economic Architect · 2026-05-10 · 9м 8с · 2 043 просмотров · YouTube ↗

Топики: durable-execution

Аудио ещё не скачано.

📝 Summary

Summary ещё не сгенерён.

📜 Transcript

Transcript ещё не сделан.

⚙️ Pipeline jobs

Нет job'ов в очереди.

📄 Описание YouTube

Показать
Are your AI agents working perfectly in testing but failing the moment they hit real-world chaos?
. Most tutorials focus on "prompt-first" design, but the secret to building reliable, enterprise-grade systems isn't smarter prompts—it’s Harness Engineering
.
In this video, we explore the fundamental evolution from "LLM-as-oracle" to "LLM-as-component" within distributed systems
. We break down the core equation that defines modern AI development: Agent = Model + Harness
.
What You’ll Learn: 🔹 The Probabilistic CPU vs. Deterministic Motherboard: Why we must wrap unpredictable model outputs in a rigid, code-defined shell
. 🔹 The Three Durable Layers: A deep dive into the Session (durable history), Harness (orchestration), and Sandbox (safe execution) abstractions
. 🔹 Mathematical Reliability: How a 10-step agent chain with 95% accuracy results in a system that fails 40% of the time—and how deterministic rules break that cycle
. 🔹 Durable Execution & State: Using workflow engines like Temporal to ensure agents survive crashes and resume exactly where they left off
. 🔹 The Evidence Spine: Why standard logging falls short for non-deterministic agents and how to build a durable "evidence spine" for auditability
.
"Prompt engineering gets demos. Harness engineering gets production"
. 🚀
Subscribe to master the scaffolding that makes AI agents reliable, accountable, and scalable.

--------------------------------------------------------------------------------
Technical Deep Dive: The Core Concepts of Harness Engineering
Harness engineering is the rigorous discipline of designing the environment, tooling, and constraints that surround a model to ensure it can perform dependably
. Below is a detailed look at the pillars used to construct this description.
1. The Core Equation: Agent = Model + Harness
A raw large language model (LLM) is not an autonomous agent
. It only becomes one when a harness provides it with state, tool execution capabilities, feedback loops, and enforceable constraints
. The model provides the "cognitive uncertainty" (reasoning and interpretation), while the harness—the deterministic code—handles routing, validation, retries, and policy
.
2. The Deterministic Motherboard
LLMs are probabilistic by design; identical inputs do not always produce identical outputs
. This variability is a structural failure for workflows requiring repeatable outcomes, such as finance or healthcare
. Harness engineering treats the LLM as a probabilistic CPU that must be governed by a deterministic motherboard
. By inserting deterministic steps (rules or finite state machines) into the workflow, engineers can halt the compounding loss of reliability
.
3. Reliability Math: The Case for Determinism
The need for this architecture is proven by the math of compounding error rates
. If an agent operates at a high baseline of 95% accuracy, a 10-step sequential chain results in a total system reliability of just 59.9% (0.95 
10
 )
. Deterministic rules execute with 100% consistency, acting as a circuit breaker for this reliability decay
.
4. Durable Execution and Fault Tolerance
Production-grade agents must move away from all-or-nothing function calls toward observable, recoverable workflows
.
Idempotency: Every action must be safe to retry, typically achieved through idempotency keys derived from input hashes to prevent duplicate side effects (like booking two flights instead of one)
.
Checkpointing: Long-running workflows should persist state at each step
. If a system crashes at step 5 of 8, it should resume from the last saved state rather than restarting from zero, saving both time and expensive tokens
.
Workflow Engines: Platforms like Temporal act as a "brainstem" for AI, automatically persisting event history and replaying it on restart to handle non-deterministic outcomes within a deterministic flow
.
5. The Evidence Spine: A New Observability Paradigm
Traditional observability (metrics and request traces) explains what happened but often fails to explain why a non-deterministic agent made a specific decision
. Harness engineering introduces the "evidence spine"—a durable substrate that captures the entire "agent episode," including retrieval snapshots, tool decisions, memory access, and model reflections
. This makes agent trajectories traceable, evaluable, and auditable, moving observability from a simple dashboard to a decision-grade evidence layer
.


source : https://www.anthropic.com/engineering/harness-design-long-running-apps