The Next Generation of LLMs: From Correct Code to Appropriate Code
This article examines why code that compiles cleanly is often still unusable in real projects, using a game-development example of jump grace-period logic. It explains why increasing model size or context length does not close the reliability gap, breaks "appropriateness" into machine-checkable constraints, and outlines context engineering and a generate-validate-replay loop that give coding tools access to project-level runtime contracts, interfaces, budgets, and style baselines.
1. Where the Problem Starts: “Textbook” Code That Cannot Ship
Asking an AI coding tool to implement a “jump grace period after leaving a platform” is not difficult. Give it a timing window, state machine branches, and boundary checks, and you get code with a clear structure, consistent naming, and almost nothing to criticize syntactically. Run it, though, and the problem surfaces immediately: it assumes a fixed grace duration, has no idea why that value exists, and does not know it should vary with the project’s positioning.
This exposes a fact that is easy to overlook: correctness is not the same as engineering appropriateness. Correctness is a formal constraint. Appropriateness is a stack of constraints — experience, performance, and team conventions. In game development, for example, game feel is a set of coupled parameters. If the grace window is too short, players think “I pressed the button and it did not jump”; if it is too long, the sense of challenge is diluted. The model does not know whether your project is hardcore or casual, so it can only produce a statistical average.
2. Why “Bigger” Does Not Fix “More Reliable”
Industry discussion about the next generation of models tends to focus on parameter counts and context windows. But if you look at day-to-day development, the reason people abandon AI coding tools is rarely “not smart enough” — it is “not reliable enough.” The reliability gap comes from three places:
- No runtime feedback. The model predicts the shape of the next span of text, not the timing behavior of that code once it runs. Putting frame-delta increments into a fixed-timestep callback, or placing interpolation in the wrong update phase, compiles fine but shows up as characters that “slide like they are on ice” when the frame rate fluctuates.
- No domain tacit knowledge. How many frames a hit should freeze for impact, how light and heavy attacks should be weighted, whether different hit-reaction states should behave consistently — these are results that art and design leads converge on after repeated playtesting. They are implicit experience and do not appear as high-frequency patterns in general-purpose corpora.
- No project-level constraints. Naming conventions, module boundaries, available internal libraries, performance budgets, target platforms — these live only in your repository and documentation.
So scaling up further yields marginal gains in “smoother expression,” not in “less rework.” The real lever is wiring external constraints and feedback loops into the generation process.
3. Turning “Appropriate” into Computable Constraints
To make a tool produce an appropriate implementation, first translate “appropriate” into conditions a machine can evaluate. Using the jump grace period as the example:
Constraint example (pseudo-config)jump.coyoteTime ∈ [0.08s, 0.15s] # determined by the project's game-feel baselinejump.bufferTime ∈ [0.10s, 0.20s] # pre-landing input bufferphysics.step = fixed # fixed timestep; never read variable frame delta hereinput.poll = perRenderFrame # input sampling aligned with the render frame
With explicit constraints, the prompt is no longer “write me a grace-period jump.” It becomes “implement input buffering and a grace period under fixed-timestep physics, take the parameters from the ranges above, and show how to expose them in a parameter panel.” This step converts implicit experience into explicit input, and it is where stability improves most noticeably.
4. Context Engineering: Let the Model See “Your Project”
What you feed the model matters more than its size. Actionable context includes at least five categories:
- Execution contract: update phase breakdown, timestep rules, input sampling timing;
- Interface signatures: internal APIs and data structures that actually exist, to avoid invented ones;
- Performance budget: target frame rate, per-frame time ceiling, memory and draw call limits;
- Style baseline: naming, directory structure, comment and logging conventions;
- Negative examples: incorrect usages that have occurred before, used as negative constraints.
A schematic context layout can be written as a structured snippet, which makes it reusable and versionable:
context:runtime_contract:fixed_step: truedelta_time_source: fixed_step_onlybudget:target_fps: 60frame_ms_max: 16.6negative_examples:- "Reading variable frame delta inside a fixed-timestep callback"- "Loading resources inside the render loop"
5. The Reliability Loop: Generate, Validate, Replay
Reliability cannot be guaranteed by a single generation pass
