From Wish-Based Coding to a Verifiable AI Development Workflow
AI coding assistants can now generate code, edit files, run tests, and iterate on errors from a single prompt. That works well for prototypes, but it breaks down when tasks involve multiple sources of information, conflicting rules, or decisions the model has to make on its own. This article explains why AI coding results are often unpredictable rather than merely imperfect, which risks show up most often, and how to evaluate and structure an AI-assisted workflow so that errors are detected, isolated, and fixed instead of silently propagating. It covers conflicting-information tests, repeated-run metrics, difficulty tiers for test sets, evidence-driven response formats, and a branch-review-merge process that keeps code generation separate from merge authority.
In AI-assisted development today, the experience of “describe the requirement clearly enough and the code writes itself” is becoming common. A developer states a goal, and the system generates code, modifies files, runs tests, and even keeps iterating based on error output. For simple projects, this genuinely reduces repetitive work and speeds up prototyping.
The problems appear once a task involves multiple sources of information, contains mutually contradictory rules, or requires the model to make a judgment call. Can an AI coding system actually complete such tasks reliably?
Real-world experience suggests the answer is not encouraging. Sometimes the model correctly identifies a conflict and says so. Sometimes it ignores an obvious contradiction, picks one piece of information as its basis, and then states its conclusion with complete confidence. Worse, the same prompt and the same input can produce different results on repeated runs. One good run does not mean the next one will be reliable, and one failure may not reproduce at all.
This pattern can be described as wish-based coding: the user states a goal, the model occasionally delivers a striking result, but the developer cannot tell whether the model actually understood the requirement or whether the output was ever properly verified.
1. The real problem is not occasional errors but unpredictable ones
Any software system can fail, and AI models are no exception. What matters in engineering is not whether the model makes mistakes, but these questions:
- Are errors detected promptly?
- Can errors be reproduced reliably?
- Does the model surface its own uncertainty?
- Is there an automated mechanism that stops errors from spreading?
- Can the user quickly locate the source of an error and roll back changes?
If a model, faced with conflicting information, states clearly that “the sources contradict each other and the answer cannot be determined right now,” that is not ideal, but it is acceptable engineering behavior. The user can verify the sources or designate one as authoritative.
The genuinely dangerous case is different: the model ignores the conflicting information, delivers a confident conclusion, and only after being pressed admits the inconsistency and revises its answer. This leads users to believe the task is finished, and the problem surfaces only after the code reaches testing, deployment, or even production.
So AI coding capability cannot be judged by whether a single answer is correct. You also have to observe stability across repeated runs, conflicting information, and boundary conditions.
2. Why models selectively ignore conflicting information
Information in the context does not carry equal weight
A model typically produces an answer by combining user input, prior conversation, document excerpts, and tool results. In practice, though, different pieces of content may receive different attention weights.
For example, a user may state an old rule earlier in the conversation and provide an updated specification later, or a pricing page may conflict with an announcement. The model may favor content that is more complete, appears earlier, or is phrased more assertively, without ever performing a real source check.
This is not the same as “the last assignment overwrites the previous one” in a traditional program. The model generates the most probable text in a probabilistic sense, so it may well have seen the contradiction without elevating it to a core problem that needs resolving.
Fluency can mask factual uncertainty
Models are good at producing well-structured, natural-sounding answers. Even with insufficient factual grounding, they can still output something that reads as highly professional.
This creates a cognitive illusion: the more fluent the answer, the more likely the user is to assume it was carefully reasoned. But language ability and factual judgment are not the same thing. A model’s ability to explain an incorrect conclusion clearly says nothing about whether that conclusion is sound.
Randomness causes variance on the same task
Model output usually has some degree of randomness. Even with the same model version, prompt, and input, the internal sampling process can yield different answers.
In simple question answering, this variance is rarely noticeable. In tasks that require multi-step reasoning, file reads, command execution, and code edits, however, a deviation in any early judgment can affect every subsequent step.
A single success therefore does not prove a system is reliable, and a single failure does not fully describe its capability. What has real value is statistical behavior: run the same task set repeatedly, then look at the error rate, whether errors cluster into particular types, and whether there are high-risk systematic biases.
3. The risk categories AI coding systems hit most often
Misunderstanding the requirement
The model may interpret “implement a feature” as “produce a sample snippet,” ignoring engineering constraints such as authentication, error handling, concurrency, and data consistency.
Incorrect document references
When multiple document versions coexist, the model may cite a deprecated configuration method, an obsolete parameter, or old behavior. In environments where interfaces iterate quickly, building on the model’s memory alone is risky.
Over-interpreting test results
The model may run some tests and then describe “the current tests pass” as “the feature is correct.” Test coverage, boundary conditions, and failure scenarios may never have been exercised at all.
Uncontrolled scope of changes
When editing code automatically, the model may touch several files to fix one local issue, and may even overwrite the user’s existing logic. Without version control and diff review, such changes are hard to trace.
Error conclusions amplified over time
Once the model commits to a wrong premise early on, the code, tests, and explanations that follow tend to build on that premise. On the surface it looks like steady progress; in reality the error is being progressively entrenched.
4. Designing more reliable evaluation
When evaluating AI coding capability, do not prepare only a few examples that finish smoothly. Build a test set that covers normal, exceptional, and conflicting scenarios.
Add conflicting-information tests
Deliberately supply two documents that are similar in content but different in conclusion, and require the model to:
- List the differences between the two documents;
- Identify which content conflicts;
- Explain the basis for adopting a given conclusion;
- State which parts need human confirmation;
- Pause execution when it cannot confirm, rather than guessing.
A reliable system does not have to resolve every conflict automatically, but it should be able to recognize conflicts and express the uncertainty explicitly.
Use repeated runs to gather statistics
Run the same task multiple times and record:
- First-attempt completion rate;
- Accuracy rate;
- Rate of obvious logical errors;
- Whether conflicts were detected proactively;
- Whether unfounded confident statements appeared;
- Whether files outside the task scope were modified;
- Whether feedback led to effective corrections.
The fewer the runs, the more the results are influenced by chance. For a development workflow used over the long term, both average and worst-case behavior matter.
Split tasks into difficulty tiers
Construct the test set in tiers:
- Basic: single file, single feature, no external dependencies;
- Intermediate: multi-file changes, maintenance of existing code;
- Complex: multiple documents and constraints;
- Risk: data migration, access control, payment settlement, or production configuration.
If a model performs well only at the basic tier, it should not be put directly onto high-risk tasks.
5. Build the habit that model output is not fact
Have the model restate the constraints first
Before executing a task, require the model to output:
- What the goal is;
- What is already known;
- Which conditions conflict;
- Which files it plans to modify;
- What verification approach it will use;
- Which items need human confirmation.
This reduces the chance that the model jumps straight into coding, and makes it easier for the developer to correct a misunderstanding early.
Enforce an evidence-driven answer format
For tasks involving documentation, configuration, and rules, require a structure like this:
Conclusion:Evidence:Possible conflicts:Unconfirmed items:Recommended verification:
This format cannot guarantee the model is right, but it reduces the number of answers that give a conclusion without showing the basis.
Separate code generation from code merging
An AI system can produce patches, but it should not hold final merge authority by default. A sounder process is:
- Create a separate branch;
- Record the state before the model’s changes;
- Generate the code diff;
- Run formatting checks and tests automatically;
- Perform human review;
- Merge after approval;
- Keep a rollback-capable version.
For changes to database schemas, permission policies, and production configuration, add an approval step as well.
6. What model vendors need to improve
From a user’s perspective, progress in AI coding should not be measured only by “generates more code” or “answers faster.” Reliability infrastructure matters too.
First, conflict detection should be strengthened. When the context contains mutually contradictory facts, the system should flag the conflict first instead of simply picking an answer.
Second, uncertainty expression needs work. A model should distinguish between “verified by a tool,” “inferred from context,” and “guessed from experience,” and should not package all three as established fact.
Third, results after tool calls need verification. A command succeeding does not mean the business goal is met, and passing tests do not mean nothing was missed. The system should express “command execution status” and “actual task correctness” separately.
Finally, consistency should improve. If multiple runs on the same input produce completely different key conclusions, the system should proactively indicate that results are unstable or recommend additional verification.
7. How to think about the value of AI coding correctly
AI coding is not without value. It typically improves efficiency noticeably for boilerplate generation, interface wrapping, test case supplementation, log analysis, code explanation, and simple refactoring.
The issue is that efficiency gains must rest on controlled risk. A developer should not hand over a complete task just because the model occasionally shows strong coding ability, and should not conclude that the model is entirely useless because one answer was wrong.
A more reasonable framing is to treat the model as a fast, broadly informed development collaborator that needs continuous supervision. It is well suited to high-volume, low-risk, verifiable, rollback-capable work. For tasks involving core business rules or significant production impact, it must be paired with document verification, automated testing, and human review.
In the end, what deserves trust is not one impressive answer but an engineering process that detects, isolates, and fixes errors even when the model gets things wrong. Only when an AI coding system can recognize conflicts, admit uncertainty, provide evidence, and accept verification will “one click and it’s done” stop being promotional imagination and become a development capability you can actually rely on.
