Artificial Quirks
← all posts
Grounding Is Not Proof: 100% Code, 0% Plan QualityGrounding Is Not Proof: 100% Code, 0% Plan Quality

It’s easy to assume that if an AI finishes a task without crashing, it did a good job. But what if it confidently hands you a finished blueprint that cites nonexistent materials? In the world of AI agents, evaluating systems purely by whether they finish a task creates dangerous illusions of competence. An AI can execute perfectly, hit no errors, and yet submit a plan full of fabricated file paths and unverified claims.

In this study, we tested several top-tier AI models—including Gemini 3.6 and DeepSeek v4—and discovered why a 100% completion rate means nothing if the AI’s work isn’t strictly “grounded” in reality. More importantly, we show how to build safeguards that force the AI to double-check its facts before submitting its final answer.


1. The Execution vs. Quality Paradox#

During matrix benchmarks, Gemini 3.6 model tiers consistently achieved 100% execution completion (0 runtime crashes, 0 budget pauses). However, when evaluated against strict quality gates checking whether cited file paths were actually read via view_file() or grep_search(), all provider groups failed the quality gate (BLOCKED (0%)).

Benchmark Study Matrix#

Provider GroupCompletion RateMean ScoreGrounding RatioQuality Gate StatusMean TokensMean Elapsed (s)
cliproxyapi-gemini-3.6-flash-high100%1.0075%BLOCKED (0%)44,080222.8s
cliproxyapi-gemini-3.6-flash-medium100%1.000%BLOCKED (0%)17,64238.0s
cliproxyapi-gemini-3.6-flash-low100%1.00N/ABLOCKED (0%)18,35464.7s
deepseek-v4-flash33%0.33100%BLOCKED (0%)84,847316.3s

Key Takeaway: Gemini models ran fast and completed 100% of tasks, but cited file paths they had never inspected. DeepSeek achieved 100% path verification on the 33% of runs that completed, but consumed 4.8x more tokens and hit step ceilings.


2. Pre-Finalization Intercept & Self-Correction#

To eliminate ungrounded answers without forcing full trajectory reruns, we implemented a Pre-Finalization Quality Intercept in our orchestration framework.

Quality Gate Flow

Intercept Implementation#

When a model attempts to emit FINAL(answer), our orchestration framework extracts path claims and checks them against check_grounding(). If unverified paths are found:


3. Counterfactuals & Falsification#

Counterfactual: LLM-as-a-Judge Evaluation#

  • Why Rejected: Prompting a secondary LLM to judge plan quality frequently scores plausible-sounding, well-formatted markdown plans as 10/10, even when the cited file paths do not exist. Deterministic path resolution against the real host filesystem is non-gameable.

4. Key Takeaways#

  1. Completion Rate \neq Quality: Never rely on binary task completion as proof of model capability.
  2. Pre-Finalization Intercepts Work: Pausing finalization to report ungrounded paths forces self-correction without wasting prior trajectory steps.
  3. Deterministic Evaluation: Grounding ratio and required-finding checks provide unambiguous quality signals for agent benchmarks.
Grounding Is Not Proof: 100% Code, 0% Plan Quality
https://www.artificialquirks.com/blog/grounding-is-not-proof-plan-quality/
Author Artificial Quirks
Published at July 23, 2026
Previous

Catching Hallucinated Paths in RLM Trajectories

Next

Inside the Sandbox: Unconstrained Shell Execution