How to Evaluate LLM Planning Capabilities: A Reproducible Framework with Engineering and Visual Scenarios

    This article presents a reproducible framework for evaluating large language model planning capabilities, covering two scenarios: architectural planning for a spreadsheet application and pure code-based visual generation. It explains how to separate planning from execution, how to score planning documents, how to estimate per-task costs, and when to trigger human review—so teams can compare models under the same standard without relying on unverified benchmarks.

    Why a Reproducible Evaluation Method Matters

    LLMs can already participate in architecture design and full-stack development. However, most public cases only show final results, making it hard to tell where a model fails or whether costs are under control. This article provides an evaluation framework you can use to design your own tests and compare models under the same standard. It does not rank models or cite unverified test data.

    1. Evaluation Goals and Assumptions

    The evaluation focuses on three questions:

    1. Can the model decompose complex requirements into implementable modules?
    2. Can the planning documents it produces be reliably executed by downstream models?
    3. Is the cost of completing a task within budget?

    The assumptions are as follows. First, all tests use the same requirement specification and the same set of prompts. Second, every test records the model name, version, context length, and sampling parameters. Third, conclusions apply only to the model version tested at that time.

    2. Test Design: Separating Planning from Execution

    Asking a model to “generate a complete system in one shot” makes it hard to locate problems. A more robust approach splits the work into two layers:

    • Planning layer: A strong reasoning model outputs requirement specifications, interface definitions, and data structure designs, saved as local documents.
    • Execution layer: A lower-cost code model reads the planning documents and implements the concrete modules.

    The planning document is the contract between the two layers. Its quality determines whether the execution layer can work smoothly, so it must be reviewed first. The table below lists the acceptance criteria.

    Acceptance Item Check Question Pass Criteria
    Requirement specification Can features be listed item by item Each feature has an ID and acceptance conditions
    Interface definitions How do modules call each other Inputs, outputs, and error codes are all listed
    Data structures How are cells stored Rationale for sparse storage or graph structure is explained
    Dependencies How do formulas trigger updates Dependency graph construction and topological sorting rules are given, with circular reference handling explained
    Rendering strategy How are large datasets displayed Visible-region calculation and buffer row count for virtual scrolling are specified

    3. Scenario One: Planning Evaluation for a Spreadsheet Prototype

    The first scenario asks the model to design the architecture for an office spreadsheet application. The target scale is large, and the test focuses on whether the planning document is complete, self-consistent, and implementable—not on visual appearance.

    Reviewers score four dimensions, each from 0 to 5:

    • Completeness: Are all core modules designed, including the cell engine, formula parser, and persistence layer?
    • Consistency: Is the same concept defined identically across sections?
    • Implementability: Can the design map to concrete languages and libraries, without unbuildable assumptions?
    • Testability: Does each module provide verifiable input/output examples?

    Common failure modes include: interfaces with names but no parameters; circular formula dependencies with no handling rules; ignored concurrent writes; and tight coupling between rendering and computation.

    Steps to reproduce:

    1. Fix the requirement specification and prompt version.
    2. Record the model name, version, context length, and sampling parameters.
    3. Save the complete output without manual edits.
    4. Have two reviewers score independently.
    5. If their scores differ by more than 2 points on an item, discuss together and record the rationale.

    4. Scenario Two: Pure Code-Based Visual Generation

    The second scenario asks the model to generate a 2D side-view city scene using only drawing code, without any external image assets.

    The pseudocode in this article is for illustration only and cannot run directly. A real test must specify: the drawing library and version, canvas size, random seed, stroke count, and output format.

    Suggested review dimensions:

    • Structural correctness: Are building perspective, horizon position, and foreground/background layering reasonable?
    • Lighting consistency: Under a single time-of-day setting, are light direction and shadows consistent?
    • Reproducibility: Do the same seed and parameters produce the same image?
    • Code maintainability: Are drawing functions well separated and parameters adjustable?
    • Runtime: Rendering time on fixed hardware.

    Results in this category are highly subjective. Reviewers should write down judgment criteria in advance and score independently, rather than relying on gut impressions.

    For copyright, check the model provider’s terms of service to confirm the permitted use of generated content. If third-party images were referenced, verify their licensing as well.

    5. Cost Accounting and Model Role Assignment

    Cost must be estimated by call volume, not just unit price. Use this formula:

    Per-task cost = (input tokens × input unit price + output tokens × output unit price) × number of calls × (1 + retry rate)

    Token counts should be measured with the provider’s tokenizer, and the retry rate should be measured from actual runs.

    Role Suitable Tasks Cost Profile Main Risks
    Heavy reasoning model Architecture planning, dependency analysis High token volume and unit price per call Subtle logical errors in plans
    Lightweight code model Module implementation, comment generation Low per-call cost, frequent calls Inconsistent cross-module interfaces
    Human review Plan acceptance, interface confirmation Consumes staff time Review depth depends on individual experience

    Two cost-reduction measures are worth prioritizing. First, once a planning document is confirmed, summarize it and pass only incremental changes in subsequent calls. Second, delegate routine syntax completion and comments to the lightweight model, reserving the heavy model for architecture questions.

    6. When to Trigger Human Review

    Pause automatic generation and hand off to human judgment when:

    • The planning document lacks interface definitions or data structure specifications.
    • The same task fails acceptance after two consecutive retries.
    • The output involves concurrency, data persistence, or access control.
    • Monthly cost has reached 80% of the budget.

    7. Conclusion and Selection Advice

    At the current stage, this kind of method suits design reviews and prototype validation. Without human review, model outputs should not go directly into production. For model selection, first run a small-scale test using the acceptance table and scoring rubric in this article, then decide whether to expand. Final model performance depends on version, budget, and business scenario, and must be verified in your own environment.

    FAQ

    How do I choose a model? First define the difficulty of your planning tasks, then test two or three candidate models against the same requirements and compare their planning document acceptance scores.

    How do I control budget? Estimate per-task cost with the formula above and set threshold alerts.

    How should planning documents be written? Fill in each of the five acceptance items from Section 2, and make every item directly referenceable by downstream models.

    What are common failures? Missing interfaces, unhandled dependency cycles, overlooked concurrency scenarios, and cost overruns.