Wish-Style Programming in Practice: From Requirements Description to Engineering Acceptance
This article explains how to turn "wish-style programming"—describing goals in natural language and letting an AI coding system handle analysis, code generation, environment setup, testing, and fixes—into reliable engineering delivery. It breaks down the technical stages from a one-line request to a complete project, explains why self-feedback loops help but cannot replace independent acceptance, and shows how to evaluate capability across multiple dimensions rather than a single score. It also covers how to calculate real task cost, a reusable testing workflow, and the security and governance controls enterprises need before production use.
1. Rethinking “Wish-Style Programming”: Lowering the Expression Barrier, Not Removing Engineering Constraints
“Wish-style programming” can be understood as developers describing a goal in natural language, while an AI coding system performs requirements analysis, code generation, environment operations, test verification, and bug fixing. What sets it apart from traditional code completion is that the delivery target expands from a local function to a project with a certain degree of completeness.
For example, instead of specifying page structure, interaction events, and data-handling logic one by one, a user might say: “Build a browser racing game that runs directly, with timing, collision detection, and a restart feature.” The system must turn that sentence into a series of engineering tasks and attempt to produce a runnable result.
This interaction style genuinely lowers the barrier to prototyping, but a “short description” does not mean “simple requirements.” A single sentence usually hides many unspecified conditions:
- Is the game 2D or 3D?
- Does the control scheme need to support touchscreens?
- After a collision, does the car slow down, reset position, or end the game?
- Does the timing result need to be saved?
- Is data retained after the page is closed?
- Which devices and runtime environments must the project work in?
So evaluating this kind of capability should not focus only on whether the system generated a large amount of code. It should assess whether the system can identify key constraints, handle uncertainty reasonably, and produce verifiable results. Automation with real engineering value reduces repetitive work; it does not hide requirement ambiguity and quality risk.
2. From One Sentence to a Complete Project: The Technical Stages Involved
2.1 Structuring Requirements: Turning a Wish into Acceptance Conditions
Natural-language requirements usually mix functionality, experience, and implementation preferences. An AI coding system must first break them into a clear set of tasks.
Take a lightweight task-management page as an example. The requirements can be organized as:
| Dimension | What needs to be clarified |
|---|---|
| Core functionality | Create, edit, mark complete, and delete tasks |
| Data constraints | Title cannot be empty; status values must be valid |
| Interaction behavior | Clear feedback after actions; errors must not break the page |
| Persistence | Whether data survives a refresh, and its scope |
| Runtime environment | Whether external dependencies are allowed; whether offline operation is required |
| Acceptance conditions | Successful first launch; main operation flows can be executed end to end |
Structuring requirements serves another important purpose: limiting the system from expanding scope on its own. Adding an account system, remote sync, or complex permission management that was never requested can significantly raise implementation cost and introduce new security issues.
When requirements are incomplete, distinguish two cases: for low-risk choices such as colors and spacing, reasonable defaults are acceptable; for high-risk choices such as data storage location, paid operations, or writes to external systems, the user should be asked to confirm first.
2.2 Task Planning: Breaking a Large Goal into Verifiable Steps
Asking the system to generate the entire project in one shot easily leads to missing files, dependency conflicts, and inconsistent module interfaces. A more robust approach is a phased execution flow:
Requirements confirmation → minimum runnable version → core feature implementation → automated testing → bug fixing → delivery notes.
The “minimum runnable version” is especially important. The system should first verify the environment, entry point, and basic interaction, then add features incrementally. This surfaces foundational problems such as runtime incompatibility or unavailable dependencies early, avoiding the generation of large amounts of code on a false premise.
Task breakdown should also include stopping conditions. For example, if repeated fixes still cannot pass tests, the system should not retry indefinitely; instead it should summarize the confirmed problems, the approaches already tried, and the items that need human judgment.
2.3 Tool Execution: Bringing Code Generation into a Real Environment
Delivering a complete project depends not only on model reasoning but also on real feedback from external tools. Typical actions include reading project files, modifying code, running builds, executing tests, checking logs, and looking up necessary technical references.
Tool capability and model capability must be evaluated separately. The same model can behave noticeably differently across execution environments: if the system cannot run tests, view the page, or access required dependencies, it is hard to confirm whether the project is truly usable.
Therefore, evaluation should record tool permissions, available resources, time limits, and network conditions. Otherwise, results may reflect environment differences rather than the model’s own engineering ability.
3. Why Self-Feedback Works, and Why It Cannot Replace External Acceptance
The feedback loop in AI coding can be summarized as “generate—execute—observe—fix.” Correcting code based on runtime results is closer to a real development workflow than generating and delivering directly.
Note that using feedback to optimize the model during training and reading logs and fixing errors during project execution are mechanisms at different levels. The former shapes the model’s behavioral tendencies; the latter determines whether the current task forms an effective closed loop. The two should not be conflated.
Effective feedback should come from observable evidence, such as:
- Errors reported by the compiler or runtime;
- Assertion failures in automated tests;
- The actual state after page interaction;
- Performance sampling results;
- Potential issues found by static checks.
If the system merely rereads its own code and then declares “the problem is fixed,” that self-confirmation is not reliable verification. The model may misunderstand the requirement, or it may mask implementation defects by modifying the tests.
A practical principle: the system executing the task may propose tests, but key acceptance conditions should be defined in advance by the requester, and important tests should remain independent. For high-risk features such as financial operations, access control, and data deletion, human review is also required.
4. How to Evaluate Capability Improvement: Not by a Single Score
4.1 Standardized Benchmarks and Real Projects Answer Different Questions
Standardized tests help compare how systems perform on a specific set of tasks, but scores can only be interpreted under the given test conditions. Task type, execution budget, tool configuration, and scoring method all affect results.
Real projects also involve problems that standard tests rarely cover, such as:
- Whether the system can understand an existing project’s directory structure and historical constraints;
- Whether modifying a local feature breaks other modules;
- Whether it follows the team’s coding conventions;
- Whether it can handle vague requirements and last-minute changes;
- Whether the delivery notes are sufficient to support later maintenance.
So a system that performs well on code-fixing tasks is not necessarily good at building a 3D interactive project from scratch; being skilled at terminal operations does not mean its visual layout and interaction design are reliable.
4.2 Build a Multidimensional Evaluation, Not a Search for a Single Ranking
It is recommended to evaluate AI coding systems across at least the following dimensions:
| Evaluation dimension | Recommended metrics to observe |
|---|---|
| Functional correctness | Acceptance-condition pass rate; completion of key paths |
| Runtime reliability | First-launch success; recovery from exceptions |
| Code quality | Module separation, duplicated logic, readability, and testability |
| Execution efficiency | Completion time, number of fix rounds, number of tool calls |
| Security | Permission usage, handling of sensitive data, control of dangerous operations |
| Maintainability | Documentation completeness, scope of change impact, reasonableness of dependencies |
For exploratory prototypes, the weight on speed can be raised appropriately; for enterprise production systems, correctness, security, and maintenance cost should take priority. Different business goals require different scoring rules, and one composite score should not replace all judgment.
5. How to Calculate Performance and Cost Together
5.1 API Unit Price Is Not Task Cost
The cost of AI coding is determined by multiple stages, including model inference, reference retrieval, tool execution, environment runtime, failed retries, and human review.
A more meaningful metric is the “average cost per successfully delivered task”:
Average cost per successful task = total cost of all attempts ÷ number of tasks that passed acceptance.
The total cost here should include the cost consumed by failed tasks; otherwise actual spending is easily underestimated. When calculating an enterprise’s overall investment, human review, subsequent rework, and runtime maintenance costs should also be included.
A system may be cheaper per call, yet end up more expensive if it frequently falls into repeated fixing. Conversely, a system with higher inference consumption per call may have better overall economics if it significantly reduces failures and human intervention.
5.2 Understanding “Pareto Improvement” Rigorously
In multi-objective evaluation, a Pareto improvement means at least one objective gets better while none of the others gets worse.
For AI coding, the objectives can be set as task success rate, completion time, and average cost. But if you observe only a rising success rate and falling cost, without measuring completion time and security risk, you cannot further claim that “everything is better.”
Comparisons also require fixing the task set, runtime environment, resource budget, and acceptance criteria, and running repeated tests multiple times. For systems with randomness, report the variation as well, and avoid treating a single successful demo as a stable capability.
6. A Reusable Practical Testing Workflow
Step 1: Choose Representative Tasks
Cover three kinds of work: generating a small project from scratch, modifying an existing project, and fixing a project with clear defects.
Tasks need not be complex, but they should have a verifiable business flow. For example, an interactive mini-game can check launch, input response, collision handling, scoring, and restart; a data-management page can check CRUD operations, input validation, and persistence behavior.
Step 2: Unify Inputs and Environment
Fix the requirement description, initial files, runtime resources, accessible network scope, and maximum execution time. When comparing different systems, keep tool capabilities as consistent as possible; for parts that cannot be made consistent, note them separately.
Also distinguish “success on the first attempt” from “success after multiple rounds of human prompting.” The two correspond to different levels of automation and should not be mixed in the statistics.
Step 3: Define the Acceptance Checklist in Advance
The acceptance checklist should describe observable behavior, not subjective impressions. For example:
- Can be launched in a clean environment following the delivery notes;
- All main feature flows can be executed;
- Invalid input does not crash the program;
- Core logic has the necessary tests;
- No irrelevant remote requests are included;
- No unauthorized directories or sensitive files are read;
- Original functionality shows no obvious regression after changes.
Visual effects can serve as a supplementary metric but should not mask functional defects. For 3D projects, also check coordinate relationships, collision boundaries, asset loading, and smoothness on the target device.
Step 4: Record the Complete Execution Trace
Each test should retain the requirements, code changes, execution logs, test results, and cost records. Failure cases are especially important: they reveal whether the system repeatedly misjudges the cause of errors, whether it tends to bypass tests, and when human takeover is needed.
The final report should clearly distinguish “generation complete,” “able to launch,” “passed functional acceptance,” and “ready for production.” These four states are not equivalent.
7. Security and Governance Enterprises Must Add
Once an AI coding system has the ability to modify files and execute commands, the risk is no longer limited to generating incorrect code; it may also involve data leakage, dependency risk, and environment damage.
Adopt the principle of least privilege: by default allow access only to the current task directory, execute code in an isolated environment, and set clear approval for external network access, reading sensitive files, and writing to production.
Retrieved web pages, documents, and code comments should be treated as external data, not as higher-priority operating instructions. External content may contain text that induces the system to leak information or perform dangerous operations, so its influence on tool calls must be limited.
The release process should also retain independent quality gates, including code review, dependency checks, automated testing, configuration verification, and a rollback plan. For applications involving user data, further check whether logs record sensitive information, whether access control is effective, and whether the data retention policy meets actual requirements.
8. Conclusion: A More Reasonable Goal Is “Verifiable Automated Delivery”
The value of wish-style programming lies not in removing developers from the process entirely, but in handing large amounts of repetitive implementation and mechanical debugging to the system, so people can focus their energy on requirement judgment, architecture trade-offs, and risk control.
It is best suited to tasks with clear requirement boundaries, easily obtained feedback, and controllable failure costs, such as interactive prototypes, internal small tools, and local feature modifications. For complex production systems, adopt phased delivery and human review rather than treating a single generated result as the final product.
To judge whether this kind of technology is genuinely improving, ultimately answer three questions: Is the delivered result reliable? Is the process controllable? Is the overall cost reasonable? Only by passing repeatable tests under unified conditions, and being able to explain failure causes and applicability boundaries, will natural-language-driven programming move from a surprising demo to an engineering practice worth trusting.
