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
- 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.
- Preserve diagnostic locations at the compile-repair boundary. Test unrelated, relevant, locationless and no-op edits.
- 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.
- Match unambiguous project/target/tool, code, source, location and message.
- Use diff mapping or specific symbol/context anchors for moved lines.
- 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.