AVC: seeking help with local coding agent repair failures

I’m the maintainer of AVC, an experimental Windows-first coding harness developed with substantial AI assistance, including Codex. I’m also using AI assistance for the English wording of this post.

The goal is to make small changes to existing projects while preserving unrelated behavior: inspect sources, prepare an isolated candidate, run host checks, return actionable feedback, and require a human decision before applying changes. WPF is our most exercised technology; this is not a claim of general autonomous development.

I’m looking for help with one boundary: how should a harness distinguish its own routing/validation failures from an unsuccessful code repair, and return the right evidence for the next attempt?

What is actually public

The public repository is an Apache-2.0 historical snapshot from November 10, 2026, pinned at:

4998868e9d4a4560d18ec510948e693a1a900108

It includes the Python harness, web UI, tests, architecture documentation and known limitations. Its documented full-suite baseline is 740 tests: 729 passing, 6 failures and 5 errors. That is historical evidence, not a fresh full-suite run or an application success rate.

A small public reproduction — no model or GPU required

On November 28 I reran an existing regression test on an unchanged checkout of that commit, using Windows 11 and Python 3.12.14. Builds, editor calls, model judgments and captures in this fixture are simulated; it does not compile or inspect a real desktop application.

Clone the repository linked above using its green Code button and the HTTPS clone address. Then run the following from PowerShell in the parent folder, with Git and Python 3.12 installed:

cd AVC-Local-Harness
git checkout --detach 4998868e9d4a4560d18ec510948e693a1a900108
py -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r aider_vision_code\requirements.txt
.\.venv\Scripts\python.exe -m unittest discover -s aider_vision_code -p test_edit_inspection.py -k test_favorable_model_cannot_hide_squashed_controls -v

The fixture supplies a favorable simulated model judgment and an after-observation with button height reduced from 50 to 25. It expects the host’s measurement check to produce no_cumple_medicion, leave the job in the error phase, and record one edit.

Observed: one test, one error, exit code 1. The test receives None as its verification report and raises:

self.assertEqual(report['estado'], 'no_cumple_medicion')
TypeError: 'NoneType' object is not subscriptable

Source: test_edit_inspection.py (under aider_vision_code/, line 153). Tracking: issue #1.

Running that entire test module produced 17 tests: 11 passing, 3 failures and 3 errors. This exposes a broken orchestration/test contract; it does not prove that AVC accepted a bad real application, or that any model caused this failure. A mismatch between newer routing and legacy fixtures is a hypothesis to investigate, not an established root cause.

What we tried later — not available in that public checkout

In local, unpublished experiments we tried isolated candidates, differential compiler diagnostics, bounded repair attempts, and Codex giving advice to a local coder. One recorded WPF repair run used Strata serving the local model alias qwen3.8-flash-next-iq3_s, a 32768-token context, reasoning_effort=none, temperature 0 and up to 8000 output tokens per repair. Its two repairs went 14 → 10 → 10 compiler errors, without reaching a build. Errors changed even when the count stayed constant.

An archived audit also found that some useful changes were rejected by the harness, while other proposed changes were genuinely incorrect. Later Codex intervention recovered the sample app; that was supervised application repair, not evidence of local autonomy. These pilots, model responses and sample projects are not published. Cloning AVC will not reproduce them, and they are not Aider bug reports or a controlled comparison of inference engines.

The review I’m asking for

  1. For the public fixture, should the routing or fixture change, or does the harness need an explicit failure report before the verification stage? Which existing contract would you preserve?
  2. When a code proposal is rejected before compilation, how do you keep protocol/scope rejection distinct from compiler and behavioral feedback, while retaining a candidate for diagnosis without authorizing its application?
  3. Is there an existing implementation or small benchmark for keeping repair feedback tied to the exact current candidate, stopping repeated ineffective edits, and comparing diagnostic identities rather than counts?

A focused explanation, code pointer or small regression-backed PR would help more than another broad rewrite. I am not claiming this cycle is solved or asking anyone to debug an unpublished project. The public fixture above is the starting point available for independent inspection.

For the fixture, the harness needs the explicit failure report: a verification stage that can return None has no way to say which kind of failure happened, so make every stage total — it always returns a report carrying a class (routing, protocol/scope, compiler, measurement, behavior), the identity of the candidate it judged (a hash of the exact candidate), and the evidence behind the class. The distinction you want then falls out on its own: a routing-class report from a stage that never received the candidate is a harness failure, while a measurement report tied to the candidate’s hash is a repair failure, and the test asserts on the class instead of crashing on None. The same identity tag carries the rest: feedback is only ever read against the candidate whose hash it carries, a candidate rejected before compilation keeps its report and stays available for diagnosis in a slot that cannot apply it, and repeated-edit detection compares (candidate hash, class, evidence) across attempts — an edit that changes the error count without changing the diagnostic identity counts as no progress and stops the loop.

Thanks, this gives us a concrete direction. We have experimented locally with candidate hashes and differential diagnostics, but we haven’t verified that every stage preserves that identity and returns an explicit failure report.

One detail I’d like to clarify: if a candidate changes but the same compiler diagnostics remain, would you stop immediately, or allow a bounded retry? An unchanged diagnostic set does not always mean the edit made no useful progress.

Do you have a small implementation or reference for this report contract that we could study?

Bounded retry — key the bound to progress, not to the diagnostic set alone: beside the diagnostics, keep a small progress tuple for each attempt (checks passed, distinct diagnostic locations left, whether the failing check’s own evidence changed), and let a changed candidate keep retrying while any element of that tuple improves, even when the diagnostics are identical. Stop only when a changed candidate moves nothing in the tuple — that is the real loop signature, and that attempt’s report should name the unchanged tuple as its evidence. Your fixture is the natural test for the contract (one record per attempt: candidate hash, class, diagnostic identities, progress tuple, verdict): a candidate that holds the diagnostics but moves one check must continue, and one that moves nothing must stop.

Thanks for clarifying. A bounded retry based on observed progress makes sense. We’ll distinguish evidence that merely changed from evidence that actually improved, and keep the hard limit of two repairs.

We implemented part of the report contract locally and reproduced an A → B → A bug where the final copy was A but the reported diagnostics still belonged to B. That association is now corrected in our experimental adapter; it is not published yet.

Our next live-model run was blocked before inference: including the new reports expanded the context to 66,699 characters against a 64,000-character limit. No repair attempts were consumed. We need to remove duplicated evidence from the model-facing context while retaining the full reports and candidate bindings on the host.

For the progress tuple, how would you determine that a failing check’s evidence improved rather than merely changed? A small example would help us implement that distinction without introducing task-specific rules.

For now, I tried reproducing some of the public tests on my side:


What I reproduced, and what I would keep

I would keep AVC’s separation of model proposals, isolated candidates, host validation and human approval. Two fairly local changes seem worth investigating.

I used the public issue #1 snapshot (commit 4998868) on Linux CPU (Python 3.13.18, Flask 3.1.3), not your Windows 11/Python 3.12.14 setup. These are mocked tests, with restricted process/network access; no Ollama, real compiler or native WPF. I ran two modules, not all 740 tests.

Original test module Tests Passed Failures Errors
test_edit_inspection 17 11 3 3
test_visual_acceptance 35 30 3 2
Total 52 41 6 5

No skips. The 6 failures and 5 errors match the historical full-suite totals, not necessarily every failing test ID. Four traced cases reached the external-candidate route and stopped at localization before mocked build/capture, with verification=None. Direct legacy calls passed the same four assertions but changed the disposable original fixture files. That is a diagnostic contrast, not a routing fix.

Nine selected staged tests and 74 existing source-editor/lineage tests passed. Separately, fixed proposals and mock validation through the real external-job orchestration showed that preserving diagnostic locations lets an existing guard reject an unrelated edit.

  • Routing: keep staged-only routing for eligible existing projects. Separate route, legacy measurement and staged acceptance tests without deleting, skipping, masking or weakening tests; preserve the geometry oracle even when model judgment is favorable.
  • Pre-compile rejection: record an attempt even without a candidate. Separate stage, outcome and attribution; verification=None may correctly mean not run. Retention is not execution or apply permission.
  • Repair feedback: retain location-bearing host evidence separately from compact prompts, bind it to the current candidate, compare diagnostic occurrences rather than counts, and build on CandidateLineage.

The private 14/10/10 error counts alone cannot distinguish stagnation, partly successful repair, newly exposed errors or a build/environment change. The public reproduction does not diagnose that pilot.

The smallest next steps I would try

  1. Keep the staged routing assertion. Separate one visual oracle fixture and a valid staged positive/negative pair; assert that locator refusal never triggers build/capture.
  2. Preserve diagnostic locations at the compile-repair boundary. Test unrelated, relevant, locationless and no-op edits.
  3. Associate attempt failures and validation evidence with candidate revisions; distinguish environment faults from repairable diagnostics and bound retries.

For a well-specified supported project with locator failure, improve target evidence or allow safe explicit selection, not a legacy fallback. If staged measurement is reached, investigate its observation/criterion contract instead.

1. Reproduction and the routing/visual-test boundary

Reproduction and a route-only diagnostic control

Suggested Windows reproduction in a fresh disposable checkout of the pinned revision (not run on Windows by me):

py -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r aider_vision_code\requirements.txt
.\.venv\Scripts\python.exe -m unittest discover -s aider_vision_code -p test_edit_inspection.py -v
.\.venv\Scripts\python.exe -m unittest discover -s aider_vision_code -p test_visual_acceptance.py -v

To isolate one representative test:

.\.venv\Scripts\python.exe -m unittest discover -s aider_vision_code -p test_edit_inspection.py -k test_favorable_model_cannot_hide_squashed_controls -v

The Linux worker used the original methods/assertions; all 141 source files matched the supplied archive and remained unchanged. No independent remote byte comparison. The worker denied some git subprocess attempts; its audit hook was not an OS sandbox.

The eleven observed failing/erroring IDs (only four were traced individually):

test_edit_inspection / EditCycleTests
  ERROR   test_disabled_measurement_does_not_request_native_observation
  ERROR   test_failed_retry_does_not_reuse_prior_uia
  ERROR   test_favorable_model_cannot_hide_squashed_controls
  FAIL    test_missing_button_blocks_and_retries_with_measured_feedback
  FAIL    test_preserving_square_bounds_does_not_require_unrequested_geometry_change
  FAIL    test_successful_measurement_stays_review_and_backup_precedes_edit

test_visual_acceptance / VisualAcceptanceIntegrationTests
  ERROR   test_cosmetic_only_edit_is_not_published_as_layout_success
  FAIL    test_failed_baseline_cannot_be_upgraded_to_visual_success
  FAIL    test_failed_retry_does_not_reuse_previous_attempt_verification_or_capture
  FAIL    test_visible_candidate_finishes_in_review_not_done
  ERROR   test_wrong_requested_grid_order_does_not_reach_post_edit_publication

The squashed-controls test uses a mocked height reduction from 50 to 25 to override a favorable model verdict. Accepting None instead of no_cumple_medicion would no longer test that oracle.

What the dispatcher actually did

run_job prioritizes eligible existing external snapshots (not read-only/suggest, managed catalog, image or applicable persistent-reference requests). WPF mode alone does not bypass this deliberately staged branch.

The staged-route test requires isolation even in automatic WPF mode; a blanket fallback would risk breaking it.

run_external_job clears verification/visual evidence; prepare localizes if no recognized explicit file mention is available. All four traces:

run_job
  selected route: external candidate
    run_external_job
      verification = None
      prepare
        locate_source
          SourceLocationError
          method: bounded_lexical
          inventory_files: 1
          candidates: []
      job phase: error
      build calls: 0
      capture calls: 0

A MainWindow.xaml plus legacy mocks need not constitute a valid staged localization/adapter fixture. This refusal precedes measurement.

Indexing None raises TypeError; expecting review fails against error. A null check improves reporting, not geometry coverage.

Representative test (short name) Dispatcher result Direct legacy control
favorable_model_cannot_hide_squashed_controls Error before validation Assertions pass; phase error, no_cumple_medicion
successful_measurement_stays_review_and_backup_precedes_edit Failure, phase error Assertions pass; phase review, cambio_observado_pendiente_revision
cosmetic_only_edit_is_not_published_as_layout_success Error before validation Assertions pass; phase error, sin_evidencia_cumplimiento
visible_candidate_finishes_in_review_not_done Failure, phase error Assertions pass; phase review, cambio_observado_pendiente_revision

Direct legacy mock build/capture counts were 2/2, 2/2, 1/1 and 2/2 respectively; dispatcher counts were all 0/0 with no publication. Dispatcher originals stayed unchanged; each direct control changed its temporary original. A passing negative test means expected refusal.

Three separate test responsibilities would make sense here

A. Legacy oracle. Exercise the measurement policy directly in disposable fixtures; preserve positive and negative assertions. If the old route is no longer supported, transfer the invariants rather than reinstate in-place routing.

B. Dispatcher/early failure. Keep staged-route, read-only, locator-refusal, no downstream calls and unchanged-source assertions.

C. Staged acceptance. If external WPF edits must meet the same visual criteria, use a valid supported project/target and mock the staged host boundaries, preserving geometry and original-source invariants.

The early external call does not forward inspection_criteria. Other staged visual-planning mechanisms exist, so this is not proof of lost criteria in real projects. Verify the authoritative criterion reaches the intended acceptance gate.

Proposed regression matrix (not a tested patch):

Staged fixture Required result
Eligible existing source Staged route, no legacy editor
Unresolved target Refusal, no validation, original unchanged
Correct requested layout Fresh evidence, technical review, no apply
Squashed controls despite favorable verdict Reject measured violation
Cosmetic-only edit for layout request No layout success
Failed baseline / missing retry capture No reuse of invalid or stale evidence
Unrelated geometry already correct Preserve it; no unrequested change
No valid target: localization / route / input contract
Target but no valid candidate: proposal / scope / materialization
Candidate but no visual acceptance: build / capture / criteria handoff
Fresh visual evidence: compare observation with actual criterion

Aider #5875 reports a different failure where file preparation causes a correctly formatted edit to be rejected. Its fixed-response reproduction illustrates host/model separation, not the same AVC defect.

2. A failure record even when no candidate reaches compilation

Separate stage, outcome and attribution

Observed injected failures in the synthetic external-job experiment:

Injected condition Candidate/report outcome Mock validation calls Repair proposal calls
Source locator refusal No manifest/report available in that case 0 0
Initial proposal rejected before compile rejected 0 0
Environment-related validation failure blocked 1 0
Persistent compile failure blocked 2 1

The last two made no preview call. These are synthetic cases, not real compiler evidence or a full state catalogue. Preserve the useful behavior that the injected environment failure requested no repair.

Keep verification=None for unperformed inspection; add a distinct attempt record even without a candidate or report directory.

  • Stage: localization, parse/anchor/scope, materialization, restore/environment, compile, behavior/visual, technical review, approval/apply.
  • Outcome: not run, unavailable/indeterminate, rejected, executed and failed, or passed that criterion. A correct refusal can be a successful safety check.
  • Attribution: proposal, host, environment, requirement ambiguity, mixed or unknown. Stage alone does not establish cause.

A minimal attempt envelope

Illustrative envelope, not an existing API:

{
  "job_id": "job-42",
  "attempt_id": "attempt-1",
  "parent_attempt_id": null,
  "base_hash": "base-identity-if-known",
  "candidate_hash": null,
  "stage": "locate_source",
  "outcome": "rejected",
  "reason_code": "no_verifiable_target",
  "attribution": "unknown",
  "validation_started": false,
  "coverage": {"compile": "not_run", "visual": "not_run"},
  "evidence_ref": "local-attempt-record",
  "next_safe_action": "resolve_target",
  "approval_status": "not_eligible"
}

Retaining rejected material without promoting it

Retain rejected proposals as inert text/diffs or quarantined evidence, without granting execution or apply permission. An attempt ID is not a content hash: some proposals create no candidate; the same bytes may be revalidated after environment recovery.

Material or status Allowed operation
Rejected raw proposal Inspect as evidence, subject to local data-handling policy
Admissible isolated source candidate Perform only the authorized validation operations
Candidate with successful technical checks Present exact candidate and associated evidence for review
Candidate with human approval and unchanged base Apply only the authorized change to the intended project

Recheck base, exact candidate, current evidence and approval before apply. Changed bytes require requalification. Evidence-save failure must not turn refusal into acceptance.

git apply --check is a useful analogy for checking applicability without applying, not a proof of behavior or authorization.

A worktree is not an execution sandbox: restore, build tasks, analyzers and tests may execute code. Separate permissions, network, secrets and filesystem boundaries from candidate isolation (MSBuild security). Keep raw evidence local; share sanitized views.

3. A concrete diagnostic handoff that seems worth preserving

Where the location information gets lost

compile_diagnostics() compacts paths, repeats and noise for prompts. Host checks need not consume that same representation.

The external compile-repair caller passes compact diagnostics to the location parser/progress guard. Original and compact text:

C:/trial/View.cs(15,9): error CS0103: MissingCall [C:/trial/App.csproj]

error CS0103: MissingCall

Two occurrences with identical messages at different locations plus a repeated summary collapsed to one item in a parser check. Display deduplication need not destroy occurrence records.

The guard rejects no-ops and checks proximity or identifiers related to implicated locations. Without recognized locations the latter check returns early; anchor/scope/no-op checks still apply. Relevance is heuristic.

A paired test with fixed proposals

Actual run_external_job, preparation and repair functions; synthetic C# fixture, fixed responses, mocked validation, visual applicability and preview. No real compiler, LLM or UI.

Both start with Blue and unresolved MissingCall. Proposal one changes Blue to LightBlue; proposal two replaces MissingCall with Existing using the current anchor.

Only the diagnostic transformation was replaced with identity in the location-bearing control. Prompt text also changed, but responses were fixed. No live-model comparison or production split was implemented.

Observed step Compact diagnostics Location-bearing control
Initial candidate and failed mock validation Same Same
First repair proposal Unrelated color change Same
Guard No usable location; reaches validation Rejects before validation
Second proposal Not used Requested against current candidate
Final validation Missing call remains Relevant repair accepted by mock
Final phase / manifest error / blocked review / technical_review, applied=false
Repair calls 1 2
Mock validations 2 2
Mock previews 0 1

Both conditions used two mock validations. Location evidence changed which proposal reached validation. The second request carried the refusal and current-candidate anchor instruction. No demonstrated speedup or reduction in build count.

Other fixed-proposal controls gave the following results:

Other synthetic controls Repairs Mock validations Mock previews Manifest
Compact, relevant first 1 2 1 technical_review
Location-bearing, relevant first 1 2 1 technical_review
Compact, no-op then relevant 2 2 1 technical_review
Location-bearing, stale anchor then relevant 2 2 1 technical_review

The four injected failure cases in section 2 complete the ten-case set.

Relevant-first controls ended at the same repaired hash. All ten synthetic cases preserved original files and met eleven experiment checks, not eleven upstream fixes. Successful mocks reached review, not apply.

Avoid changing the parser globally; inspect other compile, visual and chained callers separately (not qualified here).

validation result for candidate C
    raw diagnostic evidence / structured occurrences
        retained locally, associated with C and the tool invocation
        passed to deterministic repair checks
    compact, bounded diagnostic view
        derived from the above evidence
        passed to the editor / displayed to the user

Retain the raw log and relative locations for deterministic checks; derive a bounded prompt, with omitted occurrences traceable locally. Both belong to the same candidate/invocation. Treat log instructions as untrusted data.

Relevance is not correctness: a fix may need another permitted declaration, or project-reference errors may lack a line. Mark uncertain locations; do not fabricate relevance or expand authorization.

  • Preserve distinct occurrences with identical text; compact repeats only for display.
  • Reject unrelated edits when location evidence suffices; keep the relevant-edit positive control.
  • Reject exact no-ops regardless of locations.
  • Missing/ambiguous/out-of-scope locations must not fabricate relevance or grant permission.
  • Reject stale candidate/evidence associations even if error strings match.
4. Comparing diagnostics between two candidate revisions

Why 14, 10 and 10 do not determine whether a repair is progressing

The reported 14/10/10 sequence can represent quite different changes:

Earlier versus later build Interpretation
Same ten logical occurrences, no relevant change Possible stagnation
Six retained, four no longer observed, four new Partial change; investigate new errors
Same code at different sites Distinct occurrences
Different project reached Coverage changed; counts not comparable
Line moved after insertion Possibly same logical problem

Earlier failures can hide later diagnostics; fixing one root may reveal more. A falling count is not a count of independent repairs. Record comparable coverage.

Occurrences and logical identity

candidate / validation attempt identity
producer and phase (compiler, analyzer, restore, MSBuild, XAML, test, ...)
project identity and target framework / configuration
severity and diagnostic code
project-relative source path and span
message and, where possible, implicated symbol or source context
raw evidence reference

An occurrence belongs to one validation; logical identity matches across revisions. Do not include the changing candidate hash in that matching key.

Preserve distinct same-message locations; deduplicate duplicate renderings only with provenance.

  1. Match unambiguous project/target/tool, code, source, location and message.
  2. Use diff mapping or specific symbol/context anchors for moved lines.
  3. Leave ambiguous or unobserved occurrences uncertain; retain the matching basis.

Normalize temporary roots to project-relative identity, not basename alone; distinguish generated files and project/target contexts.

Illustrative comparable build: parent A and current B each have 10 errors; 6 matched, 4 no longer observed, 4 new. An incomplete build cannot establish that unobserved errors are resolved.

Compare to the baseline for pre-existing issues and to the parent for progress. Pre-existing failures need not be the agent’s fault, but cannot make an incomplete required build successful. Report out-of-scope blockers.

Existing approaches that can serve as references

SARIF 2.1.0 (3.27.16/17/24, Appendix B) defines fingerprints and baseline states new, unchanged, updated, absent, not universal compiler matching. absent is not proof of repair; distinguish incomplete comparisons.

SWE-agent #560 and merged PR #593 address existing versus introduced lint failures, including shifted lines. A precedent, not an MSBuild implementation.

LSP publishDiagnostics can carry document version: another analogy for revision-bound evidence.

Collecting more structured information from .NET, if needed

Start with raw adapter output, invocation and source identity. C# ErrorLog supports SARIF (documented default version 1; explicit 2.1):

<PropertyGroup>
  <ErrorLog>compiler-diagnostics.sarif,version=2.1</ErrorLog>
</PropertyGroup>

Documentation example, not tested with AVC. Use unique attempt/project/target paths and check freshness. Compiler/analyzer output is not complete restore/MSBuild/XAML evidence.

MSBuild options and build logging help establish coverage. Retain command, status, stdout/stderr, SDK, project/configuration; use structured events/binlog if needed.

5. Bounded retries, current-candidate evidence and stop conditions

Build on the candidate lineage which is already there

CandidateLineage already records baseline-relative changes, parent/content hashes, repeated-state rejection and a candidate limit. repair_proposal uses current source and exact anchors with bounded reintegration. Extend those rather than replace them.

The successful location-bearing case saved lineage; blocked unrelated/persistent-failure cases lacked it. Persisted candidate history need not cover all attempted proposals.

Base B0 (protected original)
  Candidate C1 (permitted initial edit)
    Validation V1: compile failed, diagnostics for C1
    Proposal P2: rejected, no new admissible candidate
    Proposal P3: accepted, creates C2 from C1
  Candidate C2 (parent C1)
    Validation V2: result for C2
    Technical review of C2, if the required checks pass

Rejected P2 leaves C1 unchanged. Send its refusal with C1 diagnostics. Parent diff explains the last repair; baseline diff checks cumulative scope. Regenerating from baseline may undo a valid staged change.

Bind validation to exact bytes and invocation; a source hash identifies an inventory, not runtime equivalence. Include relevant references/tools/configuration/generated files and fresh observations of the running candidate.

Task and nonrequested behavior to preserve
Allowed files and permitted operation
Current candidate identity
Exact current source excerpt/anchors for the relevant occurrence
Current compiler or behavioral evidence for this candidate
Previous proposal disposition, if helpful
  (e.g. rejected before compile because the anchor was stale)
Expected edit format and remaining budget

The host controls state and scope. Send the actual refusal reason; allow a limitation response instead of unauthorized edits.

A retry decision tree

Illustrative policy, not a required state machine:

Current admissible candidate?
  No: resolve target or return proposal refusal;
      bounded exact-anchor retry if useful; no compile.
  Yes: current evidence for this candidate?
    No: obtain it or mark unavailable.
    Yes:
      Environment/restore/tool failure: recover permitted operation or stop.
      Actionable compile failure: current source and diagnostics;
        check scope, anchors, relevance before validating a new candidate.
      Behavioral/visual failure: violated criterion and fresh observation;
        targeted repair if meaningful.
      Required checks pass: present exact candidate for human review.

Every branch: cancellation, scope/permission and proposal/validation/resource bounds; never apply stale or unapproved candidates.

A project-reference failure may be repairable, a missing SDK may not. Attribution can remain unknown.

Stop conditions that do not rely on a falling count

Exact no-op/repeated hash/cycle identifies candidate-state repetition. Diagnostic repetition is different: different bytes can share errors; a real fix can expose new ones.

Observation Possible next action
Same bytes/evidence, no environment change Stop or reject duplicate
Different bytes, same comparable diagnostics, unrelated change Reject if established; otherwise bounded nudge or stop
Same count, different identities Inspect delta; no automatic accept/stop
Same bytes after environment recovery Bounded revalidation, not a new revision
Newly reached target Inspect new diagnostics, not count alone
Missing/stale behavior evidence No technical success
Required checks pass Exact candidate for human approval

Bound proposals, validations and elapsed work separately. A rejected proposal consumes model work without a build; environment recovery may justify revalidating unchanged bytes.

For uncertain stagnation, combine comparable delta, relevant change and remaining permitted action. Keep a stop reason; never promote the best failed candidate.

OpenHands StuckDetector complements hashes with action/observation history; repeated actions/results can matter despite incidental metadata.

Agentless separates localization and repair; ChatRepair uses validation feedback; DrRepair relates diagnostics to source symbols. Background, not demonstrated AVC solutions.

6. Optional Windows checks and related validation boundaries

If the next question is native WPF behavior rather than routing

For native qualification use a small known-good Windows project and positive/wrong geometry edits. Hold window size, DPI, layout, visibility and control identity comparable; verify the running candidate and fresh baseline/after observations. Failed baseline/build cannot establish measurement success.

Requested Height, actual layout size and screen bounds differ (WPF layout). Specify coordinate conventions and observe after layout. Relevant to native testing, not the pre-measurement failure here. A small failing-source canary with unrelated/relevant edits can test the real SDK guard; full-suite checks qualify a patch.

If the private 14/10/10 sequence is the main concern

Two consecutive sanitized private attempts could be enough to start:

base / parent / current candidate identity
what changed in the permitted repair (small sanitized diff or equivalent fixture)
validation stage, project/target/configuration, toolchain and observed coverage
current diagnostic occurrences (relative file, code, location, message)
previous candidate's corresponding diagnostic occurrences
what the host sent as feedback and the actual stop/retry reason

No private code, full prompts or unsanitized binlog needed; a synthetic reproduction may suffice. Binary logger options embed project imports by default; disabling that is not a privacy guarantee.

If a known-correct proposal is refused, inspect host checks/input first. If it validates but the live model rarely proposes it, compare model/prompt variants with task, source, format, feedback, toolchain and budgets fixed. The reported counts alone do not justify quantization or reasoning-budget changes.

In short

I would keep AVC’s isolation, geometry oracle and human approval. The four traced cases point to routing/localization; the fixed-proposal experiment identifies a separate diagnostic handoff. Neither establishes all eleven failures fixed or the private pilot’s cause. The existing guard and lineage offer concrete starting points without weakening assertions or changing models.

Thanks, John. This is a very helpful investigation, especially the fixed-proposal comparison showing how losing diagnostic locations can let an unrelated edit reach validation. Thank you for documenting the limits of the experiment so carefully.

We’ll check that handoff against our current local version: deterministic host checks should receive complete, location-bearing evidence, while the model receives a compact view tied to the same candidate. We’ll also preserve staged isolation and the geometry assertions rather than restore the legacy route just to make tests pass.

Our latest unpublished run removed duplicated evidence from the model context and completed both permitted repairs, but still ended at 14 → 10 → 10 compiler errors. Comparing identities showed that the second repair replaced an invented-method error with the previous inaccessible-setter error; it did not resolve the remaining failures.

That does not establish the cause of the public failures you reproduced. We’ll investigate those separately.

Do you have a patch or a small reproducible script for your location-bearing versus compact-diagnostic comparison? It would help us reproduce your finding without changing the test expectations.

Improved means the evidence moves closer to passing — and a check can define “closer” from its own evidence before any repair runs, so no task-specific rules creep in. Take the shortfall: how far the evidence sits from the passing condition. In your fixture, the height fell from 50 to 25, a shortfall of 25; a candidate that reaches 40 carries the same diagnostic, but its shortfall is 10, so it improved — while a candidate that leaves the shortfall at 25 on a different control has only changed. Your 14 → 10 → 10 run reads the same way: the first step improved (fewer unsatisfied checks), the second only changed, because the shortfall stayed at 10 even though the error’s identity swapped. So record the shortfall beside the diagnostic in each report, and let the retry bound follow it: retry while the shortfall falls, stop when an attempt changes the evidence without moving it.

Thanks, the shortfall example makes the distinction much clearer. Defining the progress measure before repairs run seems useful for checks with a measurable passing condition, such as control height.

For compilation, we’d be cautious about treating error count as that distance: one fix can expose additional errors, and different diagnostics can have different causes. In our latest 14 → 10 → 10 run, the second repair restored a previous inaccessible-setter error after removing an invented-method error, so we have concrete evidence that this part was not resolved.

We’ll distinguish checks with a meaningful predefined shortfall from checks where progress remains uncertain, while retaining the hard limit of two repairs. A lower count alone will not qualify a candidate as successful.

For compiler failures without a reliable distance-to-pass measure, would you keep progress explicitly unknown and allow the remaining bounded attempt, rather than stop solely because the count stayed unchanged?

Yes — keep it explicitly unknown, and let the budget, not the count, bound those attempts. Unknown is a third state, different from no progress: the stop rule should fire only on measured no-progress, where a shortfall was defined before the repair ran and an attempt leaves it unchanged. Where no distance-to-pass can be defined in advance, record progress as unknown in the report and spend the remaining bounded attempt — an unchanged count there is not evidence of a loop, since one fix can expose the next error underneath, and your 10 → 10 swap cuts both ways: the invented-method error left and the setter error returned, a real change a flat count cannot grade. What the unknown attempt still owes is the diagnostic identities before and after, so the swap stays visible as a swap instead of hiding inside the count; and if the last budgeted attempt also lands unknown, stop on the budget and report the pair as unresolved with progress unknown — an honest outcome the next run can pick up, not a silent pass or a false stop.

One test that keeps the two failure kinds apart: inject a fault into the harness itself, such as a validator that crashes or a route to a missing project, while the candidate patch is known to be correct. Assert that the attempt is recorded as a harness failure, that no repair feedback reaches the model, and that the retry budget is not spent. Then run the reverse: a working harness with a known-bad patch, where the result must be a repair failure carrying file and line diagnostics. If both cases produce the same status, the next attempt gets the wrong evidence. I use AiEnsured agentest, an Agentic AI Testing platform (165 tests) for checks like this on recorded runs: GitHub - srpadmanabhuni/agentest: AiEnsured agentest, an Agentic AI Testing platform: catch agents that claim success their recorded run never earned. 165 tests, open source, offline, deterministic, no LLM judge. Reads OpenTelemetry GenAI traces, A2A and MCP. CI-ready. pip install agentest-ai · GitHub Glad to hear what it caught or missed.

Thanks—this gave us a concrete test to add. In our unpublished experimental adapter, we checked both directions using controlled fixtures and mocked validation:

  • A corrected fixture with a crashing validator produces an infrastructure/unavailable report, makes no coder call and consumes no repair attempt.
  • A bad fixture with functioning validation retains a compiler-failure report with file and line diagnostics.

We also tested a validator crash after one repair delivery. That exposed a bug: the loop stopped, but still created a repair ticket that could misleadingly treat missing diagnostics as resolved. We corrected that boundary. It now retains the already-consumed attempt, creates no compiler-repair ticket and requests no further repair.

The scoped suite passes 256 tests, including 18 new checks. These are local, unpublished results; they do not establish that the historical public snapshot is fixed.

We haven’t evaluated agentest yet. Is there a small recorded-run example showing how to express this distinction in it? Thanks for the useful suggestion.