The Canonical ETCLOVG Architecture & Maturity Ladder

Architecture & Runtimes • 8-12 min read • Reference Standard

Abstract:
As agent harnesses shifted from informal scripts to production-grade runtime systems, academic and industrial researchers formalized their core architecture. In 2026, research by Zhong & Zhu (arXiv:2605.13357) and Meng et al. established the formal mathematical model $H = (E, T, C, S, L, V)$ and the ETCLOVG Seven-Layer Taxonomy (Execution, Tooling, Context, Lifecycle, Observability, Verification, Governance). This article details each layer of the canonical architecture, analyzes the 11 component responsibilities, maps specific failure modes prevented by each layer, dissects the source-code anatomy of production harnesses (Claude Code, OpenAI Codex App Server, OpenHands), and articulates the H0–H3 maturity ladder.


1. Mathematical Formalization: The ETCLOVG Model

In modern agent systems engineering, a harness $H$ is formalized as an integrated tuple of seven distinct subsystems:

$$H = (E, T, C, L, O, V, G)$$

                       THE ETCLOVG SEVEN-LAYER TAXONOMY

  ┌─────────────────────────────────────────────────────────────────────────┐
  │                            G: GOVERNANCE                                │
  │    (Budgets, Approval Policies, Enterprise Compliance, HITL Gates)      │
  ├─────────────────────────────────────────────────────────────────────────┤
  │                     O: OBSERVABILITY & ATTRIBUTION                      │
  │     (Full OpenTelemetry Traces, Failure Attribution, Episode Logs)      │
  ├─────────────────────────────────────────────────────────────────────────┤
  │                            V: VERIFICATION                              │
  │    (Sub-5s Test Sensors, AST Linters, Compilers, Invariant Checkers)    │
  ├─────────────────────────────────────────────────────────────────────────┤
  │                           L: LIFECYCLE & LOOP                           │
  │      (State Machines, Retries, Multi-Agent DAGs, Rollback Handlers)     │
  ├─────────────────────────────────────────────────────────────────────────┤
  │                         C: CONTEXT & MEMORY                             │
  │   (Window Management, ACM Compaction, Symbolic Repo-Maps, Skill Store)  │
  ├─────────────────────────────────────────────────────────────────────────┤
  │                               T: TOOLING                                │
  │        (Model Context Protocol, A2A Protocols, Schema Validators)       │
  ├─────────────────────────────────────────────────────────────────────────┤
  │                         E: EXECUTION & SANDBOX                          │
  │    (Firecracker MicroVMs, gVisor, Ephemeral Worktrees, Resource Caps)   │
  └─────────────────────────────────────────────────────────────────────────┘
                                       ▲
                                       │ Interfaces with
                               ┌───────┴───────┐
                               │ FROZEN MODEL  │
                               │  (LLM Engine) │
                               └───────────────┘

2. Layer-by-Layer Responsibility & Failure Mode Matrix

Each layer of the ETCLOVG architecture exists to eliminate specific, catastrophic failure modes in autonomous operations:

Layer Component Name What It Owns Failure Modes Prevented
E Execution / Sandbox Isolated runtimes (Docker, gVisor, Firecracker microVMs), copy-on-write worktrees, CPU/memory quotas, network egress policy. Unconstrained side effects, host filesystem destruction (rm -rf /), fork bombs, dependency pollution, privilege escalation.
T Tooling Schema definitions, Model Context Protocol (MCP) servers, Agent-to-Agent (A2A) interfaces, tool parameter validation. Hallucinated parameters, malformed CLI calls, crashes from unexpected tool output types, unsafe command injection.
C Context & Memory Token window budgeting, Agentic Context Management (ACM), AST symbol maps, hierarchical AGENTS.md, persistent skill libraries. Context window overflow, "Lost-in-the-Middle" retrieval dropoff, attention dispersion ("The Dumb Zone"), stale dependencies.
L Lifecycle / Loop Finite state machines (FSM), execution hooks, retry policies, subagent spawning, task dependency DAGs, rollback logic. Semantic drift, infinite hallucinated repair loops, unhandled tool timeouts, loss of task state during multi-hour runs.
O Observability & Attribution Distributed tracing (OpenTelemetry), token consumption telemetry, root-cause failure attribution, episode replay logs. Un-debuggable multi-agent failures, silent errors, untraceable hallucinations, lack of operational audit trails.
V Verification Deterministic test sensors, Test Impact Analysis (TIA), custom AST linters, type checkers (tsc, mypy), ArchUnit rules. Silent incorrectness, syntactic hallucinations, architectural boundary erosion, regressions in existing code.
G Governance & Permissions Allow/Ask/Deny security policies, enterprise cost budgets, human-in-the-loop (HITL) review gates, entropy auditing. Unaccountable spending, unauthorized code merges, proprietary data leakage, non-compliant third-party code adoption.

3. The 11 Core Responsibilities (Zhong & Zhu, arXiv:2605.13357)

In AI Harness Engineering: A Runtime Substrate for Foundation-Model Software Agents, Zhong & Zhu define the eleven non-negotiable operational responsibilities of a production harness:

  1. Environmental Virtualization: Providing hermetic, disposable operating system environments for arbitrary execution.
  2. Context Compilation: Dynamically synthesizing prompt tokens from source files, AST symbol tables, and instructions.
  3. Action Space Mediation: Converting high-level model intentions into typed, schema-validated tool invocations.
  4. State Persistence: Recording task graphs, diff histories, and execution checkpoints across multi-session tasks.
  5. Deterministic Sensing: Executing verification checks (compilation, linters, unit tests) and translating exit codes into structured diagnostics.
  6. Error Interception & Formatting: Transforming human terminal stack traces into Agent-Computer Interface (ACI) payload objects.
  7. Execution Supervention: Detecting infinite loops, unresponsive sub-processes, or memory runaway and executing safe aborts.
  8. Permissions Enforcement: Evaluating security policies using an explicit Allow / Ask / Deny state matrix.
  9. Failure Attribution: Determining whether a task failure was caused by model hallucination, ambiguous requirements, or environment faults.
  10. Episode Packaging: Bundling the entire multi-turn execution trace, diffs, tool calls, and test results into an immutable, auditable artifact.
  11. Meta-Optimization: Logging execution metrics to continuously optimize prompts, tools, and harness parameters over time.

4. Source-Code Anatomy of Production Harnesses

Analyzing production harnesses reveals how world-class systems implement the ETCLOVG layers:

┌─────────────────────────────────────────────────────────────────────────────┐
│                    PRODUCTION HARNESS IMPLEMENTATION MATRIX                 │
├─────────────────────┬──────────────────────┬────────────────────────────────┤
│ Production System   │ Architectural Pattern│ Key Technical Mechanism        │
├─────────────────────┼──────────────────────┼────────────────────────────────┤
│ Claude Code         │ CLI-Native Agent     │ Structured streaming parser,   │
│ (Anthropic)         │ Harness              │ terminal pager override,       │
│                     │                      │ strict local permission gates. │
├─────────────────────┼──────────────────────┼────────────────────────────────┤
│ OpenAI Codex        │ Client-Server        │ Decouples reasoning loop from  │
│ App Server          │ Remote Harness       │ container execution; runs AST  │
│                     │                      │ linters in remote microVMs.    │
├─────────────────────┼──────────────────────┼────────────────────────────────┤
│ OpenHands           │ Sandboxed Generalist │ Event-stream architecture with │
│ (All-Hands AI)      │ Agent Runtime        │ Docker runtime, observation-   │
│                     │                      │ action state machines.         │
├─────────────────────┼──────────────────────┼────────────────────────────────┤
│ LangGraph /         │ Graph-State          │ Cyclic graph computation, state│
│ Deep Agents         │ Orchestrator         │ persistence checkpoints,       │
│                     │                      │ human-in-the-loop breakpoints. │
└─────────────────────┴──────────────────────┴────────────────────────────────┘

1. Claude Code (Anthropic)

  • Execution Pattern: Operates directly inside the developer's terminal, employing strict sub-process isolation.
  • Context Handling: Employs windowed file-slice tools rather than dumping full files, preserving token limits during long exploration sessions.
  • Permissions: Uses an explicit allow / ask / deny permission interceptor: read operations are auto-approved, shell executions require explicit user acknowledgement unless flagged as trusted.

2. OpenAI Codex App Server

  • Execution Pattern: Architecture splits the agent into a lightweight local client and a remote Harness App Server.
  • Container Isolation: Tasks run in ephemeral micro-containers where unit test sensors execute within milliseconds.
  • Verification Gate: Code is blocked from the pull request pipeline until custom AST linters confirm zero architectural rule violations.

3. OpenHands (formerly OpenDevin)

  • Execution Pattern: An event-driven runtime substrate where the agent and environment communicate via an append-only event stream.
  • Extensibility: Implements standard Docker and runtime sandboxes, allowing arbitrary programming languages and tools to be executed securely.

5. The H0–H3 Harness Maturity Ladder: Detailed Specification

Organizations can assess their harness readiness across four standardized maturity levels:

┌─────────────────────────────────────────────────────────────────────────────┐
│                       THE H0–H3 MATURITY SPECIFICATION                      │
├───────┬───────────────────┬─────────────────────────────────────────────────┤
│ Level │ Designation       │ Technical Capabilities & Operational Profile    │
├───────┼───────────────────┼─────────────────────────────────────────────────┤
│ **H0**│ Bare Model        │ • Model used via raw web chat or API completion.│
│       │                   │ • Zero execution runtime; user manually pastes. │
│       │                   │ • Zero verification; 100% human-verified.       │
├───────┼───────────────────┼─────────────────────────────────────────────────┤
│ **H1**│ Scripted Runner   │ • Ad-hoc scripts invoking bash or Python tools. │
│       │                   │ • Bare host or unhardened local container.       │
│       │                   │ • Open-loop execution; prone to hanging on stdin│
│       │                   │ • No structured error translation back to agent.│
├───────┼───────────────────┼─────────────────────────────────────────────────┤
│ **H2**│ Cybernetic        │ • Dual-control: Feed-forward Guides + Sensors.  │
│       │ Governor          │ • Sub-5-second Test Impact Analysis (TIA).      │
│       │                   │ • Structured Agent-Computer Interface (ACI).    │
│       │                   │ • Copy-on-Write git worktree isolation.         │
│       │                   │ • 60–80% autonomous task completion rate.       │
├───────┼───────────────────┼─────────────────────────────────────────────────┤
│ **H3**│ Full Enterprise   │ • Complete ETCLOVG implementation.              │
│       │ Runtime Substrate │ • MicroVM isolation (Firecracker / gVisor).     │
│       │                   │ • Verifiable failure attribution & audit trails.│
│       │                   │ • Multi-agent orchestration via A2A / MCP.      │
│       │                   │ • Structured Episode Packages for all PRs.      │
│       │                   │ • Automated meta-harness optimization loops.    │
└───────┴───────────────────┴─────────────────────────────────────────────────┘

6. References & Further Reading

  1. Zhong, L. & Zhu, K. (May 2026). "AI Harness Engineering: A Runtime Substrate for Foundation-Model Software Agents", arXiv:2605.13357.
  2. Meng et al. (2026). "Formalizing Agent Control Planes: The ETCLOVG Architectural Model".
  3. Anthropic (2024–2026). "Claude Code Architecture & The Model Context Protocol (MCP)".
  4. OpenAI Engineering (February 2026). "Harness Engineering: Leveraging Codex in an Agent-First World".
  5. Wang, Xingyao et al. (2024). "OpenHands: An Open Platform for AI Software Developers as Generalist Agents", arXiv:2407.16741.

Subscribe to Future Research Briefings

We haven't launched yet. But leave your email to get notified about exciting things that we will launch.