Testing Strong Models' Planning Capabilities: Rebuilding a Spreadsheet Application Prototype
When two tasks exhaust a monthly subscription limit, the real concern is not the bill but how well a model plans complex engineering work. Using a complex spreadsheet prototype as the test vehicle, this article discusses placing expensive strong-reasoning models at the planning layer and lower-cost execution models at the coding layer to form a reusable division of labor. It covers task breakdown methods, local documentation conventions, prompt structure examples, and quality evaluation dimensions, helping developers judge whether large models can handle real software engineering within a limited budget rather than stopping at impressive demos.
When two tasks burn through a monthly subscription limit, the real concern is not the bill but the model’s planning capability in complex engineering. This article uses “rebuilding a complex spreadsheet application prototype” as a practical vehicle to discuss how to place expensive strong-reasoning models at the planning layer and lower-cost execution models at the coding layer, forming a reusable division of labor. It provides task breakdown methods, local documentation conventions, prompt structure examples, and quality evaluation dimensions to help developers judge whether large models can handle real software engineering within a limited budget, rather than remaining in awe of demo results.
1. Problem framing: why separate planning from execution
Recent news about strong-reasoning models clusters around two scenarios: one generates a visually exaggerated 3D demo at extremely low cost, and the other claims to produce an operating system prototype within days. The former demonstrates breadth of generation; the latter demonstrates long-chain self-consistency. Neither maps directly to the “maintainable software” that enterprises actually care about.
The cost structure of real production systems means not every stage can be handed to the most expensive model. A pragmatic approach is layering:
- Planning layer: requirement clarification, module decomposition, data models, interface contracts, milestones, and acceptance criteria.
- Execution layer: writing code, adding tests, and fixing defects according to the documents.
- Verification layer: static checks, test pass rates, and performance and accessibility regression.
This yields three benefits: high-value reasoning is concentrated at a few decision points; outputs become versionable documents rather than one-off conversations; and when problems occur, you can locate whether it is a “planning defect” or an “implementation defect.”
2. Choosing the test vehicle: a complex spreadsheet prototype
A complex spreadsheet application was chosen as the rebuild target not because it is flashy, but because it is sufficiently “engineering-oriented.” Such software simultaneously involves:
- A two-dimensional cell model with sparse storage needs;
- Dependency graphs and recalculation order (topological sorting, circular reference detection);
- A formula parser (lexing, parsing, evaluation);
- Rendering and interaction layers (selection, fill, freeze, undo/redo);
- Import/export and format compatibility.
It can produce a “demoable prototype” within a few thousand lines of code, while exposing most architectural problems in real use, making it well suited to probing planning quality. Note that a complete commercial product is on the order of millions of lines; the goal here is only a prototype and architectural feasibility, not an equivalent rebuild.
3. Experiment design: a reproducible process under budget constraints
To avoid the randomness of “one-sentence generation,” the experiment uses these constraints:
- The strong model produces only planning documents and does not write final code directly;
- Execution is done by a lower-cost model, submitted in batches by module;
- Every module must have an acceptance script; the next module does not start until it passes;
- Call counts and failure reasons are recorded throughout to form reviewable data.
Recommended directory and document structure:
/docsrequirements.md # Requirements and scopearchitecture.md # Modules and dependenciesdata-model.md # Cells, styles, formula ASTapi-contract.md # Internal interface signaturesmilestones.md # Milestones and acceptance/srccore/ # Data model and recalculation engineparser/ # Formula lexing and parsingui/ # Rendering and interaction/tests
The key to a planning prompt is not that it “reads well” but that it is “executable.” A reusable template:
You are an architect. Based on the following requirements, output an implementation plan:1) List modules and dependency directions (no circular dependencies);2) Give core data structure definitions and invariants;3) Give acceptance cases for each module (input -> expected output);4) Mark risk points and fallback plans;5) Do not write complete implementation code.Requirements: <paste requirements>
4. Dimensions for evaluating planning quality
To judge whether a plan is “solid,” score it on five dimensions (1–5 each):
- Completeness: does it cover parsing, dependencies, rendering, persistence, and undo;
- Consistency: are interface signatures and data structures consistent throughout;
- Testability: does every module have deterministic acceptance;
- Complexity awareness: does it point out incremental recalculation strategy and worst cases;
- Risk contingency: are there countermeasures for circular references, very large sheets, and floating-point errors.
In practice, strong models usually excel at “dependency graphs and recalculation order,” proactively proposing topological sorting and dirty-region marking; but they tend to miss “interaction details and historical compatibility,” which requires manual completion. This also shows that the value of the planning layer is to move uncertainty forward, not to eliminate it.
5. Key engineering practices for the execution layer
The most common mistake of the execution model is “locally correct, globally drifting.” Contract-first is recommended:
# Core invariant exampleclass Sheet:def set(self, r: int, c: int, raw: str) -> None: ...def value(self, r: int, c: int) -> float | str: ...def recalc(self) -> None: ... # Must converge; detect circular references
Accompanying acceptance scripts should be short and deterministic:
s = Sheet()s.set(0, 0, "1")s.set(0, 1, "=A1+1")s.recalc()assert s.value(0, 1) == 2
When a failure occurs, feed the failing case back to the planning layer to revise the interface, rather than letting the execution layer repeatedly trial-and-error. This significantly reduces total call volume.
6. Cost model and stop-loss strategy
Under subscription or credit-based environments, cost is not unit price but “number of failed retries × context length.” Actionable stop-loss rules:
- Pause after two consecutive acceptance failures on a single module and write back to the risk list;
- Split subproblems when planning documents exceed a threshold to avoid overly long contexts;
- Hand repetitive code generation to templates and scaffolding to reduce model calls;
- For high-uncertainty modules, first build a “minimum runnable slice,” then expand.
The core conclusion is that a model with strong planning ability can reduce total cost because it reduces rework; conversely, skipping planning and generating directly may look cheaper in the short term but costs more during integration later.
7. Extension: the boundary between generative visuals and engineering aesthetics
Generative models also show potential in visual presentation, such as stacking large numbers of basic primitives to approximate a realistic rendering, or reconstructing a layered urban scene in a graphical setting. But engineering must break “looking good” into quantifiable metrics: primitive count, draw time, color-level distribution, occlusion relationships, and frame rate. Only by turning aesthetics into metrics can the planning layer constrain the execution layer and avoid “stunning demos, unmaintainable engineering.”
8. Conclusion
Evaluating strong models should not stop at demo videos; it should examine whether they can produce executable, acceptance-ready, and maintainable engineering plans under budget constraints. Separating planning from execution, recording decisions in documents, and driving iteration with acceptance scripts is the most reliable path today. If an enterprise wants to reproduce a similar process in its own environment, it can use the general container platform, logging service, and monitoring and alerting capabilities provided by Baidu AI Cloud to build an observable, rollback-capable model-assisted R&D pipeline, turning “planning capability” into real engineering efficiency.
