We gave Qwen3.8-27B three small Python bugs and a harness that could send back a failing test. The harness never got to send one. Four first replies produced a patch that passed every check. The other 14 spent their entire 3,072-token generation budget on reasoning and returned no diff.
The one-shot group passed 1 of 9 trials. The group with retries available passed 3 of 9, all on the first reply. We observed no repairs after feedback because neither group used a retry. Matching the seeds still produced different first replies.

We ran both groups on Lucy, the 128 GB AMD machine in the Kingy Local AI Scoreboard. The Scoreboard compares models. Here we kept the model file and runtime fixed and changed what the harness could do after a failed test.
What each setup delivered
| Final outcome | One shot | Retries allowed |
|---|---|---|
| Passed all hidden checks and kept edits on task | 1 of 9 | 3 of 9 |
| Hit the generation cap with no patch | 8 of 9 | 6 of 9 |
| Used a retry | 0 of 9 | 0 of 9 |
| Applied a patch with unrelated edits | 0 of 1 | 0 of 3 |
| Median time to a clean patch, among passes | 3 min 38 sec | 3 min 23 sec |
No matched pair passed in both groups. Three pairs passed only in the retry-enabled group, one passed only in the one-shot group, and five failed in both. The timing row compares different successful trials, so it cannot tell us how much time a retry would add or save.
The settings migration produced two clean patches, both in the retry-enabled group. Those patches preserved a legacy zero value and kept the new key when both keys were present. Pagination produced two clean patches, one in each group. Both continued past an empty page and rejected a repeated cursor. All six CSV-export replies stopped at the token limit, so we never got a patch to test on that bug.
How the test-feedback loop works
The harness asks for a Git-style diff and applies it to a fresh copy. It runs the original public tests in an offline sandbox. If one fails, the harness can send the model its applied diff and the failure, then ask for a replacement diff against the same starting files. The loop allows two revisions and stops when the public tests pass, the patch cannot be applied, or the budget runs out.
Tejas Kumar’s AI Engineer Code Summit workshop inspired this pilot. His workshop covers tools, context management, guardrails and verification. We tested the point where a patch must be ready to run before a test can give the model anything to work with. Workshop schedule · Workshop recording
Try the loop on a Python project
- Write one test that fails on the starting code. Run it again on a known fix. Keep a second check outside the prompt, especially for edge cases the public test skips.
- Check that your model can deliver a patch within its budget. Give it the bug, relevant source and public test. Run a few fresh tries and count how often you get an applicable diff. A model can use its reply allowance on reasoning before it writes the patch.
- Reserve room for a revision. Set a per-reply cap and a total cap, then measure whether a failed public test actually leaves room for another call. Apply each diff in a disposable copy. Run a fixed test command with a timeout and keep the original tests outside the patch’s control.
- Send back the failure you can act on. A failing test name, assertion and applied diff usually give the model a concrete place to start. Keep a record of format failures, public test failures and hidden test failures. Each calls for a different change to the loop.
How Kingy tested
On December 5, 2026, we ran three seeds per bug per group on the Lucy AI Studio, with an AMD Ryzen AI Max+ 395, Radeon 8060S graphics and 128 GB of shared memory. Both groups used Unsloth’s 16.5 GB Qwen3.8-27B UD-Q4_K_M file, fingerprint 322e194ff797, in llama.cpp build 11538 on Radeon Vulkan. All 66 layers were offloaded, and thinking was enabled.
Both groups got the same files, prompt and initial seed within each pair. The server context was 8,192 tokens. Each trial also had a separate cumulative ceiling of 8,192 prompt and completion tokens, including repeated prompts, and at most 3,072 generated tokens across calls. That output ceiling included reasoning. Only the retry-enabled group could see test output, and only after the harness had applied a patch and run the public tests. All 14 cutoffs used the full generation allowance, leaving no generated tokens for another call.
We ran hidden checks separately and reread the four applied diffs for unrelated edits. Time starts before the first request and ends when the public tests accept the patch. It excludes model loading and hidden grading. There were no paid API calls. Cephalon sent Kingy the Lucy AI Studio free of charge and paid for an earlier Kingy AI video.
- Tested
- Three Python bugs, three seeds per bug in each of two groups. 18 trials in all.
- Machine
- Lucy AI Studio. AMD Ryzen AI Max+ 395, Radeon 8060S, 128 GB shared memory.
- Runner
- llama.cpp build 11538, commit 79e2e74eb, Radeon Vulkan with 66 of 66 layers offloaded.
- Files
- Unsloth Qwen3.8-27B UD-Q4_K_M, 16.5 GB. SHA-256 starts 322e194ff797 and matched the Scoreboard file.
- Settings
- Thinking on. 8,192-token context and 8,192 cumulative tokens per trial, of which up to 3,072 could be generated.
- Grading
- Original public tests and separate hidden checks. Regraded all four applied patches and inspected each diff for unrelated edits.
- Cost
- No paid API calls. Lucy was supplied by Cephalon.
- Retry allowance
- Up to two revisions after a failing public test. No trial used a retry.
- Dates
- run 2026-12-05 · checked 2026-12-05
Limits
This is a three-bug pilot on one model and one configuration. No trial produced an applicable patch that failed the public tests, so the experiment measured how often the model got far enough for verification to matter. A follow-up can hold the first patch constant and give a failing patch the same revision allowance with and without the test output. That would let us compare feedback itself.
Sources
- Kingy Local AI Scoreboard for the machine and exact model-file baseline.
- Tejas Kumar’s workshop transcript for the harness design that inspired the pilot.
- llama.cpp server documentation at commit 79e2e74eb for the context setting and chat endpoint.
