AI Agents and the Building Block Gap: Why "Functional" Is Easy but "Impressive" Is Hard
This article examines why general-purpose AI coding agents can outperform specialized models on constrained brick-building generation, and why visual quality remains the hardest part. It breaks the task into feasibility, stability, and aesthetics layers, explains the engineering reasons behind weak aesthetic output, walks through a generate-validate-repair loop, and proposes harder benchmarks with fine-grained scoring. It closes with reusable practices for building verifiable constrained-generation systems.
1. The Problem: Turning One Sentence into a Structure of Hundreds of Parts
Ask a machine to take a natural language description such as “a pelican riding a bicycle” and autonomously produce a brick model made of hundreds to thousands of pieces. It sounds like a toy task. In practice, it is a highly composite constraint satisfaction problem that demands semantic understanding, part retrieval, spatial layout, connection validation, and aesthetic judgment at the same time. Miss any one of these, and the result degrades.
The size of the parts catalog is the first practical hurdle. Common catalogs contain roughly fourteen thousand part types, spanning different shapes, dimensions, stud layouts, and connection methods. A model cannot simply “draw something that looks right.” It must select real, purchasable, physically interlocking part IDs and assign each one a position, orientation, and color.
This naturally splits the task into three progressive goals:
- Feasibility: no physical interpenetration between parts, valid connections, and no floating orphan pieces.
- Stability: no collapse or disassembly under gravity and minor external force, with a sensible center of mass and support base.
- Aesthetics: a recognizable silhouette, balanced proportions, a coherent color scheme, and a sense of intentional design.
The first two layers can be judged strictly with programmatic rules. The third has no single correct answer, and that is precisely where today’s generative agents are weakest.
2. Why “Functional” Comes Easily but “Impressive” Does Not
Feasibility can be decided through geometric intersection tests and connectivity checks on the connection graph. Stability can be tested with rigid body dynamics simulation under static and small perturbation loads. Both are closed problems with objective labels. An agent that closes the loop of generate, validate, and repair can satisfy these hard constraints through repeated iteration.
Aesthetics is different. Two builds may both match the text description and both pass physical validation, yet one has a clear structural language and well-defined massing, while the other is full of compromise: fussy steps stacked up to dodge collisions, filler blocks repeated at random to hit a target height, colors drifting so the visual focus disappears. None of this violates a hard rule, but a human will judge it as lazy at a glance.
In engineering terms, this gap comes down to three factors:
- Sparse feedback signals. Hard constraints point to a specific error location; aesthetic problems yield only a vague overall score, so gradient-style correction struggles to localize the issue.
- A flat search space. Many legal solutions are physically equivalent, and without a preference ordering the search stops at the first feasible hit.
- Missing global intent. Locally legal connections can wreck the overall massing when there is no top-down plan of shape first, structure second, detail last.
3. A Counterintuitive but Important Observation
Specialized approaches trained only on brick data, modeling part sequences as text or graph structures, have long been treated as the orthodox solution. Yet in actual evaluation, a general-purpose coding agent with no brick-specific training, paired with external validation tools and multiple rounds of self-correction, pushed alignment scores on the existing benchmark to within about 0.02 points of the human reference, nearly a tie, and clearly ahead of the specialized approaches.
The reason is not mysterious. Specialized approaches typically emit a complete sequence in one shot, so errors can only be absorbed by the training distribution. The general-purpose agent treats the task as a debuggable engineering problem:
while not (feasible and stable and acceptable):draft = plan_from_spec(spec, parts_catalog) # top-down: massing first, detail laterreport = validate(draft) # collision / connectivity / center of mass / coverageif report.hard_errors:draft = repair(draft, report.hard_errors) # targeted repair of hard constraintselse:draft = refine(draft, aesthetic_critique) # proportions, palette, massingcache(draft, report) # reuse validated substructures
What matters in this pseudocode is not the syntax but the verifiable intermediate state. As long as the validator is reliable enough, iteration converges monotonically toward a feasible solution. Once the aesthetic stage introduces explainable review dimensions, it too moves from random drift to controlled optimization.
4. Why Existing Benchmarks Fall Short
When a general-purpose agent approaches the reference solution on a traditional benchmark, it signals that the benchmark has exhausted its information content. It mainly tests whether a recognizable object can be assembled, not whether a good design can be produced. Harder, more speculation-resistant tasks and finer scoring dimensions are needed:
- Task level: add composite constraints such as thin-wall cantilevers, long-span bridging, asymmetric center of mass, a limited palette size, and a cap on part count, all of which shrink the brute-force search space.
- Metric level: score feasibility, stability, semantic alignment, structural simplicity, color consistency, and part efficiency separately, so a single aggregate score cannot hide defects.
- Process level: record iteration counts, validator calls, and repair success rates to measure whether the agent can self-correct, not just the final outcome.
- Generalization level: hold out unseen semantic categories and unseen part subsets to test genuine compositional generalization.
An illustrative score aggregation can be written as:
def score(result, spec):hard = 0.0 if result.collisions or not result.connected else 1.0stability = result.min_margin() # anti-overturning margin, higher is betteralignment = semantic_similarity(result.render, spec)simplicity = 1.0 - len(result.parts) / spec.part_budgetpalette = color_consistency(result.parts, spec.palette)return 0.35*hard + 0.2*stability + 0.2*alignment + 0.15*simplicity + 0.1*palette
Weights can be tuned per scenario, but hard constraints must retain veto power. Otherwise a build that looks good but falls apart will earn an inflated score.
5. Reusable Engineering Practices
To build similar constrained-generation capability in a real product, the following practices apply:
- Formalize the domain first. Compile natural language requirements into a structured spec that pins down the parts list, budget, and constraint priorities, so the model does not improvise on vague requirements.
- Prioritize the validator over the generator. Collision detection, connection graph analysis, and center-of-mass and support-base computation should run as independent services, decoupled asynchronously through a message queue for horizontal scaling and result caching.
- Generate in layers. The first layer fixes massing and silhouette, the second adds structural support and load paths, the third fills in detail and color, with separate acceptance criteria at each layer.
- Build a preference data loop. Capture human review feedback as searchable preference samples used to rank candidate builds; logging services and monitoring alerts track the iteration convergence curve and the distribution of failure modes.
- Decouple compute from storage. Rendering and simulation are bursty workloads suited to elastic scaling on a container platform, while static data such as models and the parts catalog belong in object storage to reduce cold-start cost.
6. Conclusion
The value of the brick-building task is that it forces “generating something recognizable” and “designing something good” to be assessed separately. Physical feasibility and structural stability are hard metrics that an engineering feedback loop can conquer. Visual aesthetics depends on global planning, preference ranking, and explainable review. The general-purpose agent overtakes specialized approaches not through a stronger prior over parts, but by treating generation as verifiable, iterable, debuggable systems engineering. Once evaluation adds composite constraints and fine-grained metrics, the real dividing line will no longer be whether something can be assembled, but whether a striking structure can be delivered under a limited parts budget and strict constraints.
