Benzene agents execute under standards that verify every output before it counts. When something breaks, the system catches it, learns from it, and rolls back the damage.
This post explains how more than forty verifier types hold each task to measurable checks, and how cycle 2 proved the self-healing loop works on real code — the CTO broke compilation, the cycle rolled back 4 tasks and 5 files, and the CEO was told "maintenance failed".
The three tiers of verification
Every task benzene runs is scored through three layers:
Tier 1 — text checks. Length bounds, JSON schema conformance, required and forbidden patterns, cost and latency limits. Fast, auditable, runnable by a small model.
Tier 2 — the toolchain. A verifier runs the real compiler or linter against the workspace. If tsc --noEmit exits 0, the TypeScript fix is correct by definition — no human reviewer needed. Benzene provides more than forty verifier types (VERIFIER_TYPES in benzene/manifest.py), from compilers (tsc, node) through shell commands, test suites, linters, file pattern matching, size budgets, UI rendering via Playwright, document structure validation, and factual claims cross-referencing. If the project compiles, the fix passes automatically.
Tier 3 — the judge. An LLM scores quality gaps the toolchain cannot see: architecture decisions, tone, design. It lowers a composite score but never rescues a failed hard check. Composite blending weights quantitative scores against the judge verdict.
Benzene's own genome includes verify:compiles added to the CTO cell during cycle 1 (2026-10-10), when a syntax error in benzene/verifiers.py was kept — the test suite had already failed, so the syntax error did not change its verdict. Since then "the code compiles" is its own check, the kind of automatic gate every task gets.
See https://benzene-agent.org/guardrails.html for the full technical reference.
Self-healing in production
Cycle 2 recorded exactly how the loop works. On 2026-10-10 the CTO's attempted fix broke compilation. The cycle detected degradation, rolled back 4 tasks and 5 files to their pre-failure state, and sent the CEO "maintenance failed; the workspace was left as found; retried next cycle." The verifier's output becomes the correction message for the next attempt. The public live graph shows this sequence — you can audit it at https://benzene-agent.org/live.html.
When a verification fails, benzene doesn't stop or hand off to a human. The correction becomes the next iteration's instruction. The best score from any attempt is recorded. A circuit breaker prevents runaway retries when the workspace starts degrading. Benzene's guarantee is simple: a failed task never leaves the workspace worse than it found it. Anything the verifiers can confirm as progress stays; everything else gets rolled back.
Every cycle's record (what ran, what each check said, what was rolled back) is on the live graph: https://benzene-agent.org/live.html
Why this matters
Benzene has six offices (CTO, COO, CMO, CXO, CFO, CIO) each founded on the record, running on a single Python process with local files, no database, no telemetry. You host it yourself on Anthropic, OpenRouter, Ollama, vLLM, LM Studio, llama.cpp, OpenAI, Groq, or Together. Setup takes one CLI command: benzene plugin start --for claude "<purpose>".
Every piece of work benzene touches must pass its verifier first. That means less time debugging unverified outputs and more time shipping what actually works.
Full architecture documentation: https://benzene-agent.org/guardrails.html* Quickstart guide: https://benzene-agent.org/quickstart.html*