Repository navigation
examples: add reliable compiler-feedback repair evaluation - #718
Draft
Yezheng Li (yezhengli-Mr9) wants to merge 13 commits into
Draft
Yezheng Li (yezhengli-Mr9) wants to merge 13 commits into
Yezheng Li (yezhengli-Mr9) wants to merge 13 commits into
Conversation
Add isolated C++, Rust, and Java compile/check/repair loops and a paired local Ollama diagnostic-compaction benchmark. Track measured usage, held-out outcomes, and bounded attempts without changing SWE-smith training. Include Windows and Ubuntu validation instructions and focused regression tests.
Record all 12 paired local-model trials, including unresolved Java cases: compact diagnostics used 4,356 reported tokens versus 4,888 with raw diagnostics, with identical 8/12 held-out success. Preserve full traces and Ubuntu replay evidence for all 32 candidate and 24 held-out checks. Surface Docker daemon failures explicitly and retain platform-safe report hashes.
Compare no-feedback, raw, and compact repair policies under reserved total-token budgets. Checkpoint measured attempts and strengthen held-out checks against compile-pass incorrect candidates. Keep the original pilot explicitly historical and document research limitations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Record all 25 completed arms and the unpriced timeout without retrying or treating missing usage as zero. Document eight complete task groups as a potentially biased subset, retain the final compact failure, and avoid full-study effectiveness claims. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Select distinct primary errors with source and caret context under an exact character bound. Keep the existing benchmark policy unchanged and record independently recomputed archived-diagnostic measurements without model-quality claims. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Validate planned coverage, verdict consistency, and measured accounting. Report missing-result bounds and refuse comparative intervals for incomplete designs; average repeated seeds within tasks before reproducible clustered bootstrap analysis. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Reuse identity-verified completed arms in a distinct atomic checkpoint, retain unknown interrupted usage and recovery provenance, and reject malformed or partial replay accounting. Opt-in keep-going preserves failed arms without retrying them and evaluates independent remaining arms while keeping incomplete studies non-successful. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preserve both timeout checkpoints and the independently successful remaining raw arm, with original results and unknown usage intact. Document source-grounded feedback, task-cluster analysis, and 26/27 completed outcomes without a full-study claim. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep execution-time byte hashes and add LF-normalized provenance for portable verification. Preserve archived snapshots unchanged and publish independently verified provenance anchors for the full recovery chain. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add an opt-in repository-bound context index with immutable syntax facts. Recheck tracked bytes and exclusions on every query, rebuild graph edges against current files, and surface parse/read errors rather than serving stale facts. Add edit/tracking/encoding regressions and an identical-retrieval parsing experiment.
|
Yezheng Li (@yezhengli-Mr9) please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
The retained nine-task compiler test checks the same six task objects, byte-identical sources and held-out programs with the same checker and passed assertion, plus public and broken-seed checks. Preserve all seven faulty-repair regressions and support-isolation cases. Validation: source equivalence and pytest collection verified; focused suite 102 passed, 18 skipped. Docker compiler integration (16 cases) and symlink-permission checks (2 cases) were skipped locally.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Alternative-tool counterpart PRs
Incremental graph-context update — 2026-12-04
ContextIndex(root)passed to repeatedselect_context(..., index=index)calls reuses syntax facts only when source bytes are identical. Default one-shot callers and CLI output retain their behavior.Modulenow holds immutable symbols/import candidates instead of an AST. Its CLI JSON remains unchanged; no maintained call sites read the removed internal AST field.Executed incremental-context experiments
DockerCheckerqueryReproduce the deterministic parsing-work experiment with:
The original benchmark command without arguments retains its previous fixture/output shape. The new mode asserts exact retrieval equivalence and exact parse counts, and records descriptive wall-clock timings. Fixed execution order and shared-machine timing mean the timings are not a statistical speedup claim. No model calls, prompt-token savings, or coding-quality improvement are claimed for this update. Graph reconstruction and source-file reads are deliberately not cached.
Direction coverage — not a claim that every direction is complete
Current contribution: three independent directions
This opt-in experiment now has three independently usable engineering contributions. Existing SWE-smith training behavior remains unchanged; the PR remains a draft.
--keep-goingpreserves failed arms, does not retry them, and evaluates independent remaining arms.Latest validation
Actual model experiment and failure isolation
All inference used existing CPU-only Ollama
qwen2.5-coder:3b, the same nine-task manifest, one trial, at most two calls per arm, 512 output tokens per call, and 8,192 total tokens per arm. Historicalraw/compactfeedback policies were preserved during recovery.Final evidence: 26/27 completed arms, 34 returned model calls, 8,877 known prompt-plus-completion tokens, plus unknown usage for two timed-out requests. The final no-feedback arm remains unresolved. It was not converted into a zero-token failure or silently retried by keep-going. The independent final raw arm solved the task with one returned call (173 prompt + 38 completion tokens), passing public and held-out checks.
This remains an incomplete, intervened study, not a clean replication or a completed three-arm effectiveness comparison. The no-feedback success fraction on all nine planned tasks is bounded between 6/9 and 7/9, not reported as a completed 6/8 experiment. No full-study token-saving, billed-cost, novelty, or repository-generalization claim is made. Raw/compact public-test passes that failed held-out checks remain in the reports.
Evidence and reproduction
All inherited arm records, snapshot/accounting totals, task manifests, runtime hashes and LF-normalized Git-blob hashes were independently checked. Recovery snapshots inherit the same calls and must not be summed as separate experiments.
Research scope and remaining blockers
FeedbackEval (https://arxiv.org/abs/2504.06939), EviACT (https://arxiv.org/abs/2605.27238), and the official SWE-bench harness guide (https://www.swebench.com/SWE-bench/guides/evaluation/) motivate evaluation controls; their results are not reproduced here. Research-level effectiveness still requires independently selected real-repository tasks, multiple model families, and adequately powered uncertainty analysis. More synthetic fixtures are not a claim of research novelty.
Azure-hosted inference was not performed: an authorized writable scope and requested budget could not be established. No Azure spending or hosted-model result is claimed. Upstream CI most recently awaited CLA processing; no legal attestation or check bypass was performed.
Everything below describes the earlier pilot, whose reports remain unchanged. Its measurements must not be attributed to the expanded implementation above.
Historical six-task, two-arm pilot
Everything below describes the earlier pilot, whose reports remain unchanged. Its measurements must not be attributed to the expanded three-arm implementation above.
Summary
An opt-in local coding experiment combines model-generated repairs with ordinary compiler/type checks and behavioral tests. It compares raw versus compact compiler feedback, not checking versus no checking. Existing SWE-smith training behavior is unchanged.
Implementation by language
Experiment design
qwen2.5-coder:1.5b; no automatic model downloadMeasured results by language
Token reduction = (raw total - compact total) / raw total. Success requires both public and held-out checks to pass.
Java's lower token count does not establish useful Java repairs: neither arm solved its Java cases. The overall 10.88% reduction is a small synthetic observation, not a general coding-efficiency claim.
Token breakdown
Observed failures
intaccumulatorPlatform and validation results
Windows runs the Python controller; generated C++, Rust, and Java programs execute in Ubuntu Docker, not native Windows compilers. Ubuntu replay performs no new model inference and is not a second token-savings measurement.
Execution boundaries
Evidence and reproduction
Limitations and reviewer notes
Related issues, work items, and PRs
This PR intentionally remains a draft.