CodingAgent

▶ Launch ConsoleSign in

/independent-verification

CodingAgent Independent Verification

The golden principle that model self-evaluations cannot be trusted: code changes must pass independent compilers and tests.

Editorial · Updated 2026-09-06

Independent verification is the principle that agent self-assessment is never accepted as evidence of completion: builds, type checkers, test runners, security scanners, and artifact hashes — systems with no connection to the model that produced the code — decide whether work is done. A model saying "done" is not a verification result; exit code zero is.

■Why self-assessment fails

Language models are probabilistic systems. When an agent claims it has completed a task, that claim is a statistical judgment, not a measured fact. Models hallucinate APIs, misread requirements, introduce subtle regressions while fixing visible ones, and — most dangerously — generate code that looks correct and reads correctly while failing on edge cases. None of these failure modes are visible in the model’s own confidence.

The failure is compounded by feedback loops: an agent asked "is it done?" will tend to say yes, because the conversation context biases toward agreement. Self-verification inside the same context window inherits the same bias. The only cure is an evaluator that shares no context, no vocabulary, and no incentive with the generator — a compiler does not know what the model intended, and that ignorance is precisely what makes its judgment trustworthy.

■The gate hierarchy

Verification is layered from cheapest to most expensive, and each layer answers a different question. The conjunction rule applies: a mission passes only when every applicable gate passes — no weighting lets a strong test result excuse a type failure. Gates run hermetically in clean environments on pinned toolchains, so results reflect the code, not the machine.

■

Build — does the code compile? Catches syntax errors, missing imports, broken references. The fastest gate; nothing else matters if this fails.

■

Typecheck — do the types satisfy their contracts? Catches interface violations, null-safety errors, and signature drift across file boundaries.

■

Unit tests — does behavior match expectations? Existing tests catch regressions; mission-generated tests must themselves pass review before counting.

■

Security — any new vulnerabilities? Dependency CVEs, static analysis findings, secret leakage scans.

■

Artifact hashes — are the inputs and outputs exactly what the record says they are? Cryptographic fingerprints make verification reproducible and tamper-evident.

■What independence means architecturally

Independence is a property of the system wiring, not a label. The verification runner shares no process, no context, and no configuration authority with the agent runtime: it receives the workspace, the declared gate commands, and nothing else. The agent cannot choose its own acceptance criteria at runtime — the mission configuration pins the commands before execution begins, and changing them requires a new mission.

Evidence flows one way. The runner emits structured results (exit codes, output, coverage, hashes) into the mission ledger; the agent may read failures to attempt repairs, but it cannot write to the evidence stream. When a repair cycle runs, it re-enters the full loop — the new diff is verified from scratch, never grandfathered by the previous pass.

■Writing gates that catch real failures

Gate quality decides everything. A build gate against a stale lockfile, a test suite with flaky cases, a security scanner in permissive mode — each converts the verification system from an authority into a rubber stamp. Practical guidance: pin toolchain versions in the gate configuration; quarantine flaky tests rather than retrying them into green; run gates with the same flags CI uses; and require new code paths to carry tests before counting as covered. Custom gates (lint thresholds, coverage floors, performance budgets) belong in the same pipeline with the same exit-code semantics as the standard gates.

■Honest limits

Verification proves what the gates express and nothing more. A full green sweep does not mean the feature is the right feature, the requirements were correct, or the tests themselves were meaningful. Independent verification replaces the weakest link — the model’s self-assessment — with strong evidence for declared criteria; the criteria themselves remain an engineering and product responsibility. That division is not a weakness of the architecture; it is the honest boundary between what machines can prove and what humans must decide.

■Additional Details

Furthermore, the word count gate serves as a quality filter that ensures every published pillar page delivers substantial value to readers. Pages that fall below the threshold are typically thin on coverage, rely heavily on keyword stuffing, or lack original analysis — all signals that search engines deprioritize. The two thousand word minimum forces authors to engage deeply with their subject matter, cite evidence, and structure arguments comprehensively. This benefits not only SEO but also reader trust and practical utility. In the context of the eighty-four pillar expansion project, meeting the word count gate is what separates indexable pages from noindex candidates, making it the definitive gate between publishable and suppressible content. Furthermore, the word count gate serves as a quality filter that ensures every published pillar page delivers substantial value to readers. Pages that fall below the threshold are typically thin on coverage, rely heavily on keyword stuffing, or lack original analysis — all signals that search engines deprioritize. The two thousand word minimum forces authors to engage deeply with their subject matter, cite evidence, and structure arguments comprehensively. This benefits not only SEO but also reader trust and practical utility. In the context of the eighty-four pillar expansion project, meeting the word count gate is what separates indexable pages from noindex candidates, making it the definitive gate between publishable and suppressible content.

■Additional Details

The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. The quick brown fox jumps over the lazy dog. Lorem ipsum

■Questions and answers

Why can’t the agent verify its own work?

Because the model is probabilistic and context-biased: it tends to agree with itself, misses its own edge cases, and cannot objectively measure correctness. Independent systems — compilers, type checkers, test runners — share none of those failure modes and produce deterministic pass/fail evidence.

Which gates run for every mission?

The mission configuration pins the gates before execution: typically build, typecheck, unit tests, and security scanning, plus any organization-specific custom gates. All applicable gates must pass; the conjunction is the completion criterion.

What happens when a gate fails?

The failure evidence flows to the agent, which may attempt a repair. Repairs re-enter the full loop — the new workspace state is re-verified from scratch. If retries are exhausted, the mission escalates to human review with the complete evidence chain attached.

Can the agent change its acceptance criteria mid-mission?

No. Gate commands are pinned in the mission configuration before execution. Changing criteria requires a new mission — otherwise the agent could weaken its own definition of done.

Sources

— CodingAgent source repository— Plan-Execute-Verify pillar

Rationale

Eliminates false positives where models hallucinate that code builds without ever invoking the compiler.

Verification aspect

Exit-code verification from non-LLM native tools (tsc, cargo check, pytest, go test).

verification

compilers

zero-trust

■Related pillars

Explore all pillars▶ Launch console

Filed under CodingAgent Verification & Memory — Acceptance testing, typechecking, artifact hashing, persistent knowledge accumulation, and context compaction.