Manuscript Offprint

arXiv:2610.20676

When Correctness Feedback Erases Evidence: Phase-Separated Completeness Auditing in Verus

Adarsh Agrawal

Adarsh Agrawal

Independent Researcher

Accepted at the NeurIPS 2026 Workshop on AI for Verifiable Coding.

Abstract: Correctness feedback suppresses the very evidence that specification-completeness auditing is designed to uncover: programs that satisfy a written contract but violate intended behavior. We demonstrate this objective reversal on 12 Verus/Rust tasks across four model families under matched call budgets. Independent no-feedback discovery more than doubles certified-witness yield relative to INTENTSHIELD's corrective-feedback loop (59.0% versus 27.1%). A format-matched iterative control places the larger share of this gap in feedback content, not independent restarts. The advantage holds in every model family and survives parser repair. A separate phase-separated execution matches the aggregate yield without reusing responses; most certified witnesses also fail held-out cases. Preserving these witnesses delivers stronger specification repair: Phase-Revised contracts achieve 81.3% implementation success, versus 62.5% for IS-Revised, with Direct-Revised close behind. Both no-feedback witness sources substantially outperform weakened contracts. The effect does not reproduce in the available Dafny and Lean evaluations, establishing an empirical boundary around the studied Verus/Rust workflow. Completeness auditing and correctness repair have opposing immediate objectives. Preserve and certify the admitted failure before repairing it.

Keywords: formal verification; specification completeness; Verus; large language models; adversarial testing; program synthesis; correctness feedback

1. Introduction

Verification success does not establish specification completeness. A verifier can discharge every written obligation while the resulting program still violates its author's intent. The proof is valid; the contract is missing a requirement.

A completeness audit must therefore find a program that the contract accepts but the task rejects. We call it a specification-completeness witness. The wrong program is not an unsuccessful implementation to discard: it is concrete evidence of what the contract forgot to forbid.

Correctness feedback changes roles under this objective. In ordinary synthesis, a failed proof or test tells the model what to repair. During completeness auditing, correcting an admitted wrong program removes the evidence the audit needs. We call this conflict the objective reversal. Our experiments show that a conventional feedback loop incurs a large discovery penalty in Verus, even though the prompt continues to request a counterexample.

Our primary comparison covers three policies. DIRECT makes independent adversarial attempts without corrective feedback. INTENTSHIELD feeds compilation, verifier, and visible-test results back into discovery. PHASE is a separate execution of the same discovery protocol as DIRECT, followed by a frozen handoff to certification and repair. To separate feedback content from iterative conditioning, we also evaluate a Format-Matched Iterative control (FMI), which retains candidate history and the INTENTSHIELD prompt template but replaces semantic feedback with fixed, unevaluated feedback fields. Model-Judgment adds model self-assessment and is a secondary policy. Downstream, we compare three repaired-specification conditions with the weakened and fully specified intended contracts.

The primary comparison tests two practical deployment strategies: fresh independent sampling and feedback-loop refinement. The matched iterative control then separates the feedback-content contrast from the independent-restart contrast while retaining prompt structure and candidate history. The no-feedback advantage holds across all four model families, survives parser repair, and carries into downstream contract repair. It does not reproduce in the available Dafny or Lean evaluations: the established result is specific to the studied Verus/Rust workflow.

2 of 16

We make three contributions:

• We demonstrate that corrective feedback suppresses certified witnesses in Verus, with matched iterative controls and per-model evidence separating feedback-content and independent-restart contrasts;

• We establish a preserve-before-repair workflow whose separate execution retains aggregate discovery yield, with cell-level correspondence and held-out counterexamples; and

• We show that preserved witnesses produce stronger specification repairs, with Direct-Revised and True-Spec controls and explicit cross-substrate tests.

References (26)