Poster at the NeurIPS 2026 Workshop on AI for Verifiable Coding

When Correctness Feedback Erases EvidencePhase-Separated Completeness Auditing in Verus

Feedback that helps a model fix a program works against an audit that needs wrong programs as evidence. On 12 Verus/Rust tasks, discovery without correctness feedback certified a completeness witness in 85 of 144 outcomes; IntentShield’s feedback loop did so in 39. In a separate 16-task study, contracts repaired from the frozen evidence reached 81.3% implementation success, against 62.5% for contracts repaired from IntentShield’s candidates.

Diagram of two pipelines. IntentShield keeps corrective feedback inside discovery, revising the candidate between calls, and certifies 39 of 144 witnesses. The phase-separated pipeline runs discovery without feedback, freezes the exact candidate at a boundary, certifies 85 of 144 witnesses, then repairs the specification and synthesizes an implementation, succeeding on 39 of 48.
Figure 1. Correctness feedback enters at different times. IntentShield uses it while searching for a witness. Phase uses the same discovery policy as Direct and introduces repair feedback only after the candidate has been frozen. The downstream result is from a separate 16-task study.

Abstract

Correctness feedback can undermine specification-completeness auditing by suppressing programs that satisfy a written contract but violate intended behavior. We evaluate 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 shows that the feedback-content contrast is larger than the independent-restart contrast. The advantage persists across model families and after parser repair. A separate phase-separated execution reproduces the aggregate yield without reusing responses, and most certified witnesses also expose held-out disagreements. Preserving this evidence improves downstream specification repair: Phase-Revised contracts achieve 81.3% implementation success, compared with 62.5% for IS-Revised, while Direct-Revised performs similarly. Both no-feedback witness sources substantially outperform weakened specifications. Available Dafny and Lean evaluations do not reproduce the discovery effect, bounding the finding to the studied Verus/Rust setting. The design rule is clear: freeze and certify evidence of incompleteness before introducing correctness-oriented repair.

Key findings

  • 59.0% vs 27.1%

    Certified-witness yield, Direct against IntentShield, with 144 outcomes per policy. Direct leads on 11 of 12 tasks (exact sign test p = 0.006), and the mean task-level difference is 31.9 points, with a task-bootstrap 95% interval of [21.5, 38.9].

  • 69.6%

    Share of that 31.9-point gap, 22.2 points, that separates IntentShield from a format-matched control. The control keeps IntentShield’s template and candidate history but replaces every feedback field with “[not evaluated]”, and it certifies 49.3%. Independent restarts account for the other 9.7 points. This is an observed-rate decomposition, not a mediation analysis.

  • 92.9%

    Of Direct’s 85 certified witnesses, 79 also disagree on a test case withheld from certification.

  • 85 = 85

    A separate phase-separated run, 48 hours later with fresh requests and no reused responses, certifies the same number of witnesses. Cell-level agreement is 84.7% (Cohen’s κ = 0.68), and 43 of the 74 co-certified cells hold distinct expressions.

  • 81.3% vs 62.5%

    Implementation success with Phase-Revised versus IS-Revised contracts (16 tasks, three attempts each). Phase-Revised wins on nine tasks and ties on seven, with no losses (two-sided sign test p = 0.004); Direct-Revised reaches 77.1%.

Talk slides

Slide 1 of 13: When Correctness Feedback Erases Evidence
Slide 1 of 13 Download PDF

Auditing a contract for what it forgot

A verifier can discharge every obligation in a contract while the program still violates its author’s intent. A completeness witness makes that gap concrete: a program the weakened contract accepts but the task rejects. A candidate counts as a certified witness only if it passes four gates:

  1. Admitted. It verifies under the weakened contract.
  2. Gap-exposing. Restoring the omitted postcondition makes verification fail.
  3. Executable. It compiles and runs as Rust.
  4. Wrong. It disagrees with at least one official test case.

Ordinary synthesis uses compiler, verifier, and test feedback to move a candidate toward intended behavior. In an audit, the same feedback erases the evidence. IntentShield keeps corrective feedback inside discovery. Direct makes three independent calls with nothing carried over. Phase runs Direct’s discovery protocol again as a separate execution, freezes the selected candidate, certifies it, and only then hands it to repair (Figure 1). Every policy gets the same three-call budget on 12 VeriContest tasks across four model families: Claude Sonnet 5, DeepSeek V3.2, Devstral 2, and Qwen3-Coder-480B.

Feedback more than halves witness yield

Direct certifies 85 of 144 outcomes (59.0%) and IntentShield 39 (27.1%). The gap appears in both task strata: 38.3 points on the five residual-contract tasks and 27.4 points on the seven total-omission controls. The only reversal is cf50A, where IntentShield certifies four outcomes to Direct’s two.

Dot plot of certified-witness rates for 12 Verus tasks, Direct against IntentShield. Direct is higher on 11 tasks; cf50A is the only reversal.
Figure 2. Certified-witness rates for each Verus task. Each point summarizes 12 model-run outcomes per policy. The task is the independent unit.

Syntax repair does not close the gap

A parser-repair wrapper closes unmatched brackets, removes semicolons, and extracts the expression before certification. It cuts parse failures from 34.0% to 11.8% for IntentShield and from 10.4% to 4.2% for Direct, yet certified yield stays 27.1 points apart (63.2% versus 36.1%).

Two bar charts. Certified witness yield: Direct raw 59.0%, repaired 63.2%; IntentShield raw 27.1%, repaired 36.1%. Parse failures: Direct raw 10.4%, repaired 4.2%; IntentShield raw 34.0%, repaired 11.8%.
Figure 5. Parser repair before certification lowers parse-failure rates in both policies but retains a 27.1-point certified-yield difference. Bars show observed episode rates without confidence intervals.

Preserved witnesses make better contracts

Incomplete contracts hide real failures: 42 of 48 implementations verify against the weakened contracts, but only 14 still verify once the omitted postcondition is restored. Repairing contracts from preserved witnesses recovers most of that gap. Phase-Revised contracts reach 39 of 48 successful implementations (81.3%), or 88.6% of the True-Spec count, against 30 of 48 (62.5%) for IS-Revised.

Two bar charts. A: 42 of 48 implementations verify under weakened contracts versus 14 of 48 under restored contracts. B: successful implementations by specification: Original 14 of 48, IS-Revised 30, Direct-Revised 37, Phase-Revised 39, True-Spec 44.
Figure 3. Downstream consequences of incomplete and repaired specifications. Panel A compares weakened-contract verification with restored-contract success in the Original condition. Panel B reports successful implementations across all five conditions (16 tasks, three attempts each). True-Spec uses the intended contract. Bars show observed rates, not confidence intervals.

Scope and limitations

Bounded to Verus
Available Dafny and Lean evaluations do not reproduce the discovery effect (Figure 4). In the Dafny Qwen stratum IntentShield leads by 8.3 points, and in Lean the phase-separated policy is lowest.
Narrow benchmark
Twelve competitive-programming functions with expression-level Rust. An eight-task extension agrees (51.0% versus 21.9%) but is preliminary.
Hosted models
Provider-default decoding and non-seeded repeats limit exact replay; all 1,728 primary prompts and responses are archived.
Why Verus may differ
Rust typing, ownership, and arithmetic obligations give feedback a rich correction surface. This is a substrate-specific hypothesis, not a measured mediator.

The paper recommends treating witness reports like fuzzer findings: triage them with the specification author before changing code or contracts.

Three bar charts by proof substrate. Verus: Direct and Phase 85 of 144, IntentShield 39 of 144. Dafny: Direct 21 of 24, IntentShield 23 of 24. Lean: no context 14 of 48, Direct 12, IntentShield 14, Phase 8.
Figure 4. The primary Verus direction does not reproduce in the available Dafny and Lean evaluations. The task matrices differ and should not be compared as measures of absolute difficulty.

Reproducibility

The paper’s supplementary replay archive contains all 1,728 model-facing prompts and raw responses from the primary matrix, the parsed expression for every call, selection scores and rankings, and the outputs of all four certification gates, along with the format-matched and parser-repair logs. Re-executing the experiments also needs the official oracle cases and matching Rust and Verus toolchains, and provider defaults and stochastic hosted models rule out guaranteed response-identical regeneration.

Cite this paper

@inproceedings{agrawal2026intentshield,
  title={When Correctness Feedback Erases Evidence: Phase-Separated Completeness Auditing in Verus},
  author={Agrawal, Adarsh},
  booktitle={NeurIPS 2026 Workshop on AI for Verifiable Coding: Human-Aligned Collaborative Agents for Autoformalization, Proofs, and Heuristics},
  year={2026},
  url={https://openreview.net/pdf?id=N6yfUR70Uu}
}