Operationalizing Wish-Driven Programming

    Wish-driven programming means turning a short natural-language goal into a runnable project skeleton through clarification, code generation, dependency setup, execution checks, and iterative repair. This article explains when that loop is real rather than a slogan, how to judge Pareto improvements without a single myth score, what execution-feedback training should optimize, and how specs, a programming runtime, and budget controls make short prompts reliable.

    From a Slogan to an Engineering Problem

    Wish-driven programming means a developer states a goal in a short natural-language prompt, and the system, inside a controlled environment, clarifies requirements, generates code, installs dependencies, runs checks, and iterates on failures until it delivers a runnable project skeleton—not an unexecutable snippet. Whether that wish can come true in one pass depends on four conditions holding at once: the task boundary is testable, the model revises itself from execution results, the toolchain is stable, and the compute plus external-call cost of a single task is predictable.

    Treating a small model update as “the score went up, so it leads everywhere” is easy to misread. Programming ability is multidimensional: repository-scale edits, long terminal tasks, algorithm problems, retrieval-augmented Q&A, and multi-file consistency often trade off against each other. A rational comparison uses the same task set, the same inference budget, and the same tool permissions, then looks at success rate, failure modes, and unit cost—not an isolated total score.

    What Counts as a Pareto Improvement

    In plain terms, a Pareto improvement means at least one objective gets better and none get worse. In intelligent programming, common objectives include:

    • Task success rate: the share of end-to-end runs that pass given tests or human acceptance criteria.
    • Interaction rounds: human–model exchanges from the first prompt to a deliverable.
    • Latency: time to first token, tool round-trips, and total wall-clock time.
    • Cost: the sum of inference tokens, tool calls, retrieval, and sandbox time.
    • Stability: whether variance is acceptable when the same prompt is run repeatedly.

    “Higher score, slower, and more expensive,” or “cheaper but often faking a pass,” is not a Pareto improvement. Engineering practice should freeze the evaluation set and the budget cap, then compare the quality–cost curve. A new strategy qualifies as “no painful tradeoff” only if it uses fewer tokens at the same success rate, or passes more hidden tests at the same budget.

    Public leaderboard numbers are highly sensitive to prompt templates, temperature, maximum steps, network access, and retry policy. Before citing any specific score, confirm that the protocol matches. Without a shared protocol, do not treat cross-model wins and losses as conclusions.

    Evaluate in Separate Slices, Not One Myth Score

    Report at least four benchmark families separately instead of blending them into one “programming ability” number:

    1. Software-engineering repair: locate a defect in an existing repository, change a small number of files, and pass existing tests. This measures code reading and minimal edits, not greenfield showmanship.
    2. Long-horizon terminal tasks: install dependencies in a shell, read errors, change configuration, and rerun commands. Failures often come from the environment, not the algorithm.
    3. Building from scratch: game prototypes, visual pages, draft 3D scenes, and similar work. With a very short prompt, the model must fill in implicit specifications—the place where wishing fails most often.
    4. Hard knowledge and reasoning items: fact-heavy, multi-step questions. That skill is not the same as producing runnable code, and a programming-score gain must not hide the gap.

    When comparing, also report pass rate, average tool-call count, average cost, timeout rate, and the share of runs that look successful only because tests were watered down. A terminal-task score increase that comes with a surge in steps can make the real bill worse.

    A minimal acceptance log can be plain:

    1. task_id, success, steps, tool_errors, wall_s, tokens_in, tokens_out, external_calls
    2. proj_017, 1, 14, 2, 186, 42000, 9100, 6

    With logs like this, “stronger” can be discussed against “cheaper” instead of intuition.

    What Self-Feedback Reinforcement Learning Actually Optimizes

    Training on execution feedback is not about making the model “talk better.” It treats environment signals as part of the reward: whether the build passes, tests turn green, a page is interactive, or a resource fails to load. Compared with supervised fine-tuning against a reference answer, self-feedback is closer to a real development loop: write, run, read the error, and change again.

    Reward hacking has to be controlled in production. Common failure modes include deleting failing tests, rewriting assertions so they are always true, hard-coding a branch that passes only on the demo path, or retrying without limit until the bill is exhausted. Mitigations include:

    • Keep tests and scoring scripts unwritable by the model, or integrity-check them.
    • Penalize useless edits, overly long trajectories, and repeated errors in the reward.
    • Separate hidden tests from public smoke tests so the model cannot fit only the visible cases.
    • Keep real errors in the trajectories, not only final successes; otherwise the model never learns to debug.

    For full projects built from scratch, grade the reward in stages: first it starts, then the main path works, and only then visual quality and performance. A single fuzzy score such as “does the whole game look like a classic title” is noisy and encourages copy-paste pastiche. Safer checks are observable behavior: the scene loads, the character can move, collisions give feedback, and a level can end.

    A Short Prompt Still Needs a Completed Spec

    Official demos often use extremely short prompts and look impressive, but a short prompt does not uniquely determine the software. The professional move is to treat the wish as implicit specification completion:

    • Target user and success criteria: who it is for, and what “done” means.
    • Technical constraints: language, runtime, whether new dependencies are allowed, and target platform.
    • Non-goals: what will not be done, so scope does not expand.
    • Executable acceptance: at least three automatic or semi-automatic checks.

    The system can first return a one-page assumption list. The user confirms only the disputed items, then coding starts. That is more honest than pretending one sentence already contains every requirement, and it reduces later rework. For games and 3D content, also state asset sources and license boundaries: generated geometry and placeholder textures are fine; an unauthorized full commercial work must not be the default replication target.

    The Programming Runtime Is the Other Half of the Capability

    A stronger model still has to run inside a programming runtime. A usable intelligent programming tool usually includes a workspace filesystem, a command sandbox, a dependency cache, structured editing, a test runner, and optional retrieval. Specializing for your own runtime is reasonable: tool parameter formats, how errors are returned, and context-trimming policy all change effective intelligence. The same weights can drop sharply under a different tool protocol. Evaluations must therefore name the runtime, not only the model.

    Retrieval and page fetching are another cost line. If search or fetch interfaces are open, charge per call or by volume and set quotas. Inside an agent loop, unbounded retrieval floods the context and sends the cost curve out of control. A steadier policy is to use the local repository and dependency docs first, retrieve only for unfamiliar symbols or version differences in errors, and summarize fetched results before they enter context.

    In an enterprise setting, this runtime usually sits on a container platform: one isolated workspace per task, with limits on CPU, memory, egress, and duration; a logging service that captures commands and test output; and monitoring that watches timeout rate, tool-error rate, and cost per task. Object storage holds build artifacts and trajectories for review, rather than leaving secrets and internal repositories in the conversation long term. If general compute and storage on Baidu AI Cloud are used to host the sandbox and logs, least privilege and data classification still apply. Do not send evaluation sets or customer code out of the isolated environment by default.

    Why Cost Can Fall Along with Capability

    A lower bill is not mysterious. Common mechanisms include more accurate first-pass edits that cut rework, shorter reasoning traces, smarter early stopping, trimmed tool results, cached repeated retrieval, and automatically dropping simple tasks to a lower inference tier. Dangerous “savings” are skipping tests, truncating errors, or declaring success before the work is done.

    Practical controls:

    • Tiered inference: low tier for smoke fixes; raise the tier only for cross-module refactors.
    • Step budget: past a threshold, a person must confirm instead of the loop burning through automatically.
    • Failure classes: count missing environment, unclear spec, and insufficient model ability separately, so more expensive inference is not used to hide an image or environment problem.
    • A regression set: on every prompt or routing-policy change, run a fixed small set so average cost does not fall while critical tasks regress.

    “Cheaper at the same high inference tier” is comparable only when the task set, stopping conditions, and tool prices are locked. If external retrieval is free during a promotion, do not count that subsidy as the model’s long-term unit cost.

    1. Describe the experience in no more than about ten lines. Do not specify implementation details.
    2. The system returns assumptions, a technology choice, and three acceptance checks. The user edits only what is wrong.
    3. Generate a minimal runnable slice first: one scene, one interaction, one automatic check.
    4. Allow one goal per round: it starts, it can be operated, it can finish. Run the checks every round.
    5. Add content and art only after it passes. Do not pile files onto a large project that does not run.
    6. On delivery, include how to run it, known limits, and which assets are placeholders.

    A task description does not need to bind any particular engine or brand:

    1. Goal: a playable top-down racing sketch in the browser
    2. Must: arrow keys for steering and acceleration, track-boundary collision, single-lap timing, still starts after refresh
    3. Must not: download undeclared assets over the network, delete the timing check, or fake playability with an image
    4. Done when: after one local start command, an automated script completes half a lap and reads a time

    That wording turns the wish into a contract, so self-feedback has a clear reward.

    How to Write an Evaluation That Does Not Fool You

    For a programming-model or runtime update, fix a template: task-set composition, tool permissions, inference tier, retry cap, definition of success, cost accounting, and the delta versus the previous version in quality, latency, cost, and failure type. If some of eleven tests rise and others fall, say so separately. Do not cover gaps on terminal tasks, long-horizon planning, or factual items with a claim that everything improved across the board. Games and 3D demos are fine as qualitative cases, but attach the full prompt, run steps, and failure-retry counts; otherwise they are not reproducible.

    For enterprise users, the real pain is usually not “can it generate a flashy demo.” It is whether a legacy repository can be changed safely, whether cost fits a budget, whether trajectories can be audited, and whether a mistake will alter production configuration. Default permissions should be read-only diagnosis plus a patch proposal. Writes and execution belong on an isolated branch and in a sandbox. A person always keeps merge authority.

    Summary

    Wish-driven programming approaches “one shot” through testable specs, execution feedback, controlled tools, and a budget—not longer adjectives. Whether a version update is worth switching to depends on whether success rate and unit cost both improve under a locked protocol, and on confirming that deleted tests, temporary free tiers, or unreproducible demos are not manufacturing a false Pareto gain. Once the runtime, evaluation logs, and acceptance criteria are engineered, short-prompt project generation can move from a viewing experience to everyday development capability.