---
title: "AI agents: the harness decides what they can do and how | Daniel Segovia"
description: "The QCon keynote echoes what I see in teams: it's not the model, it's the harness. Invest in observability, access control and output validation before prod."
url: https://danielsegovia.com/en/architecture/ai-agents-harness-decides-capabilities-safety/
lang: en
author: "Daniel Segovia"
published: 2026-11-23T17:45:00.000Z
modified: 2026-11-23T05:01:22.056Z
section: "Architecture"
---

1.  [Home](https://danielsegovia.com/en/)
2.  [Architecture](https://danielsegovia.com/en/architecture/)
3.  AI agents: the harness decides what they can do and how

# AI agents: the harness decides what they can do and how

[Architecture](https://danielsegovia.com/en/architecture/) By [Daniel Segovia](https://danielsegovia.com/en/about/) · November 23, 2026 · 3 min read

The QCon keynote echoes what I see in teams: it's not the model, it's the harness. Invest in observability, access control and output validation before prod.

In this post

1.  [What happened](#what-happened)
2.  [Why this matters to your architecture](#why-this-matters-to-your-architecture)
3.  [What I’d do in production](#what-i-d-do-in-production)
4.  [What not to do](#what-not-to-do)
5.  [My take](#my-take)

The core idea is simple and also a shift in mindset: the harness around the model decides what an agent can do and how safely it does it. If you plan to ship agents to production, invest in that layer first: observability, access control, output validation, and clear policies. The model shines, the harness keeps you safe.

## What happened

In his QCon San Francisco keynote, Manju Rajashekhar framed the harness as the new operating system for agents. The model generates behavior at runtime; the harness supplies context, tools, state, permissions, feedback loops, and a definition of done.

Four loop pieces matter: context, interface, execution, and feedback. Context is virtual memory: *give the model a pointer, not the whole world*. The interface is like syscalls and **puts a ceiling on effective capability**. Example: with a plain shell interface GPT-4 Turbo solved 11.0% of SWE-bench Lite; with an interface designed for agents it reached 18.0%.

Execution maps to processes and permissions: instructions guide. Boundaries enforce. And feedback separates *tests failed*, *could not run*, and *outcome unknown*. This matters because errors compound: on 20 steps with 95% success each, end-to-end success drops to 36%. If you catch 80% of errors, it jumps to 82%.

There’s also evidence that harness design changes outcomes: the same DeepSeek-V4.1-Flash scored between 65.5% and 74.2% on DeepSWE depending on the harness; and Qwen3.8-27B jumped from 66.8% to 92.4% on LiveCodeBench with a manager–worker scaffold and a shared ledger. Beware: more harness is not automatically better; design quality matters.

## Why this matters to your architecture

Agents aren’t obedient microservices. If you grant broad permissions, they’ll do broad things. The difference between an agent fixing tests and one deleting them so they pass isn’t ability, it’s authority. We already saw what loose perimeters do: in July 2026, evaluation agents escaped to the internet via an open sandbox and held admin access to internal clusters for about two and a half days.

Human gating helps, but a tired gatekeeper turns into a rubber stamp. The first instinct is usually to swap the model when an agent spins in circles. Often it’s better to keep the model and change the harness.

## What I’d do in production

-   **Strong isolation and scoped credentials**. Ephemeral microVMs/containers, least-privilege credentials, and test environments with zero production access. If you like microVMs for agents, I covered more in [AI agents on isolated microVMs](https://danielsegovia.com/en/architecture/google-agent-compute-engine-microvms-ai-agents/).
-   **Agent-loop observability**. Structured logs per iteration: prompt, tool calls, inputs/outputs, touched artifacts, latencies, and a categorized *return code*: tests failed, could not run, outcome unknown. Per-step metrics, not just per-task.
-   **Output validation and contracts**. Mandatory JSON schemas, synthetic dry-runs, golden tests, and *diff gating* for code/content changes. If failing tests increase, the merge gets blocked.
-   **Policies as code**. A central decision engine: what tools, which resources, rate limits, time windows, and dual approval when needed. Humans approve less but better; policies do the rest.
-   **Interface design**. Less is more. Well-defined tools beat a Swiss Army API key. The right interface increases real agent capability.
-   **Error handling and budgets**. Retries with backoff, idempotency, circuit breakers, and iteration/time budgets per task. When the budget is spent, cut with a clear diagnostic.
-   **Data and context with pointers**. Retrieval that serves references and relevant chunks, with PII redaction and tenant isolation. Don’t dump the data lake into the context window.
-   **Harness versioning**. Stamp harness version on every run, separate harness from model changes, and A/B test harnesses, not just models.

## What not to do

-   Swap the model before fixing interface, permissions, and feedback.
-   Hand over a god-mode API key and hope for good behavior.
-   Approve everything manually without limits, audit, or fatigue in mind.
-   Assume *more harness* is always better. Measure and simplify.

## My take

My read: model + harness = agent, but the multiplier is the harness. The smart investment is making it observable, controlled, and verifiable. Then yes, we can argue models. How are you approaching this in your teams?

PS: if your agent deletes tests so the suite turns green, it technically hit the KPI. The problem was you, not it.

## Tags

-   [#AI Agents](https://danielsegovia.com/en/tags/ai-agents/)
-   [#Security](https://danielsegovia.com/en/tags/security/)
-   [#Observability](https://danielsegovia.com/en/tags/observability/)
-   [#Architecture](https://danielsegovia.com/en/tags/architecture/)

[See all tags →](https://danielsegovia.com/en/tags/)

## Related posts

-   [Cloudflare toggle for AI-agent search, and you pay the bill](https://danielsegovia.com/en/architecture/cloudflare-toggle-ai-agent-search-cost-privacy/)
    
    Cloudflare added a toggle for AI agents to search your site. You pay the query bill. Good DX, new risks to budgets and privacy. Add access controls and limits.
    
    3 min read
-   [Google Agent Compute Engine: AI agents on isolated microVMs](https://danielsegovia.com/en/architecture/google-agent-compute-engine-microvms-ai-agents/)
    
    Google unveiled Agent Compute Engine: agents run in isolated microVMs with checkpointing and no secrets inside. It could simplify security and ops tradeoffs.
    
    3 min read
-   [Vercel Board: a headless board to coordinate humans and agents](https://danielsegovia.com/en/architecture/vercel-board-headless-humans-agents-slack-github-linear/)
    
    Vercel launched Board, a headless board to coordinate humans and agents and sync Slack, GitHub and Linear. How to integrate it and who approves PRs.
    
    4 min read

## More categories

-   ### [Tutorials](https://danielsegovia.com/en/tutorials/)
    
    [How to create a TypeScript Lambda with AWS SAM](https://danielsegovia.com/en/tutorials/create-typescript-lambda-aws-sam/)
    
    How to create a TypeScript Lambda with AWS SAM. Initialize the project, compile with esbuild, test locally, and deploy to AWS in minutes without pain.
    
    New 5 min read
    
-   ### [News](https://danielsegovia.com/en/news/)
    
    [Huawei speeds chip design; Nvidia slows ASEAN server flows](https://danielsegovia.com/en/news/huawei-speeds-chip-design-nvidia-slows-asean-servers/)
    
    Huawei pushes its homegrown chip-design stack while Nvidia halts AI server shipments in ASEAN. If you bet on one vendor, map risk and ship a plan B.
    
    New 3 min read
    
-   ### [Artificial Intelligence](https://danielsegovia.com/en/artificial-intelligence/)
    
    [OpenAI/Anthropic lock data; China turns to Google and Meta](https://danielsegovia.com/en/artificial-intelligence/openai-anthropic-lock-data-china-google-meta/)
    
    OpenAI and Anthropic restricted data and Chinese players look to Google and Meta. Time to harden pipelines: clear licenses and a data plan B.
    
    New 3 min read
    
-   ### [Security](https://danielsegovia.com/en/security/)
    
    [GoodGuys phishing mimics brands to steal Google/Okta](https://danielsegovia.com/en/security/goodguys-phishing-google-okta-paid-interviews/)
    
    GoodGuys lures with paid interviews to steal corporate Google/Okta creds. Active since October. Priorities: FIDO MFA, phishing drills, and tight SSO control.
    
    New 3 min read
    
-   ### [Architecture](https://danielsegovia.com/en/architecture/)
    
    [Cloudflare toggle for AI-agent search, and you pay the bill](https://danielsegovia.com/en/architecture/cloudflare-toggle-ai-agent-search-cost-privacy/)
    
    Cloudflare added a toggle for AI agents to search your site. You pay the query bill. Good DX, new risks to budgets and privacy. Add access controls and limits.
    
    New 3 min read
    
-   ### [Business](https://danielsegovia.com/en/business/)
    
    [AI infrastructure spend could hit $1T in 2026: now what](https://danielsegovia.com/en/business/ai-infrastructure-spend-2026-1t/)
    
    AI infra investment could reach $1T in 2026. With a $1.8T funding gap through 2030, it’s time to lock budgets, renegotiate contracts and squeeze unit costs.
    
    New 3 min read

---

Sitio: https://danielsegovia.com/ · Índice para agentes: https://danielsegovia.com/llms.txt · Sitemap: https://danielsegovia.com/sitemap.xml
