Programmable Brick Assembly: Usable Builds Are Easy, Striking Ones Are Not
Programmable brick design looks like assembling a shape from a description, but it is a constrained generation problem: huge part libraries, discrete connections, simultaneous pose and color choices, and stability under gravity. This article explains why “usable” and “striking” must be scored separately, why a general coding agent with a repair loop can beat one-shot specialist models on alignment without producing memorable designs, and how evaluation and engineering should treat form decisions as first-class goals.
Programmable brick design looks like “assembling a shape from a description.” In engineering terms it is a hard-constraint generation problem: there are many part types, connections are discrete, pose and color must be chosen together, and the finished model must stay stable under gravity. Given a prompt such as “a water bird riding a bicycle,” the system must retrieve parts, place coordinates and orientations, check mating, and leave a result that can take a light nudge on a table. The common outcome today is a structure that works and looks ordinary. Explaining that gap is more useful than another demo that only produces images.
Where the Task Is Actually Hard
A brick library often contains tens of thousands of geometry types, and sizes, hole positions, and clip directions are not uniform. A design cannot jump from “draw an outline” to a finished model. It has to pass through four steps:
- Structure the intent: split natural language into the main body, attachments, proportions, pose, and primary colors.
- Select parts: search a large discrete library for elements that can express curves, slender structures, and supports, rather than filling volume with generic blocks.
- Place poses: give every part a position, rotation, and color, and respect the discrete angles of connectors.
- Accept physically: no intersections, valid connections, center of mass inside the support region, and no collapse after a small disturbance.
The first three steps decide whether it looks right. The fourth decides whether it can be used. Those two standards often conflict. To stay standing, a system thickens supports, reduces overhangs, and smears the silhouette with large parts. Semantics then match and collisions disappear, but the outline is dull and the proportions are off. It looks like an emergency brace, not a design.
Do Not Collapse Two Scores into One
Merging “usable” and “good-looking” into a single total hides failure modes. A safer approach is to score them on separate tracks.
The physical track asks only whether the model can be built and placed:
- Collision: whether solid parts intersect, and whether connection tolerance is treated as a free pass for interpenetration.
- Connection: whether clips land on legal contact faces, not merely near each other in coordinates.
- Stability: whether the projected center of mass falls inside the support polygon, and whether critical cantilevers have a load path.
- Assemblability: whether there is an obvious deadlock that cannot be inserted, and whether at least one reasonable build order exists.
The visual track cannot rely only on “part overlap with a reference answer.” Two designs can both be collision-free and match the description: one has a clear silhouette and rhythm, the other is only volume fill. Visual quality should at least consider whether the outline is readable, whether primary and secondary forms are distinct, whether color serves structure rather than random paint, and whether details use the right part scale. Text alignment only shows that the prompt was answered. It does not show that the design holds together.
A schematic acceptance flow, independent of any particular model, can be written as pseudocode:
def evaluate(design, brief):phys = {"collision": collision_free(design),"joints": valid_connections(design),"stability": stands_under_gravity(design),"order": has_build_order(design),}look = {"silhouette": readable_outline(design, brief),"proportion": proportion_score(design, brief),"color": color_supports_form(design),"detail": part_scale_fit(design),}return phys, look # do not hide a failed track behind one average
If any physical check fails, the result should not be called usable. A high visual score cannot turn an interpenetrating structure into a piece worth showing.
Specialist Models and General Coding Agents
An earlier path trained generative models specifically on brick data so the network emitted a part sequence directly. That works for small structures inside the training distribution. As the library grows and descriptions become more open, one-shot generation tends to fall apart in the later stages: local parts look reasonable, but the whole model cannot mate.
Another path does not train the model into a “brick expert.” A general coding agent writes programs to look up parts, place them, and simulate, then edits the code from failure information. Its advantage is not an innate sense of form. It is the loop: generate, check, roll back, and redo locally across multiple rounds. A specialist model that can only emit one forward result has no “taste and revise” mechanism. An agent can start from a mediocre layout and still repair collisions and instability until the build is usable.
That explains a counterintuitive result: a coding agent that was not fine-tuned on bricks can approach human references on alignment metrics and clearly beat specialist models that generate only once. The analogy is not that the apprentice has more talent. The apprentice is allowed to build, measure, and revise. The difference is tools and feedback, not a mysterious aesthetic module.
Simple test items can also be overfit. If the set uses short forms, few parts, frontal poses, and ample support, closing the loop on physical errors is enough to inflate the score. Alignment can then nearly match the reference while the system still cannot produce a build that makes someone stop and look. A gap of a few hundredths on alignment means semantics and coarse geometry are close. It does not mean the design is finished.
Why “Usable” Systematically Beats “Striking”
A striking result usually comes from active form decisions: where to leave space, where to taper, which angle creates the silhouette, and which color appears only at joints. Those decisions are rarely rewarded by a physical loss. Optimizers prefer to:
- Use fewer, larger parts to lower the chance of failure.
- Turn floating sections into supports that reach the ground.
- Drop asymmetric poses for frontal, symmetric poses whose center of mass is easy to compute.
- Leave colors at part defaults instead of following the masses.
The result is a safe solution. Safe solutions score well in evaluation and look dull on display. If the “good work” in the data mostly comes from the tidy forms of official sets, the model also learns an average shape and further erases character.
Visual quality is hard to label automatically. Collision can be decided by a geometry kernel, and stability by rigid-body simulation or a simplified static estimate. Outline readability depends on viewpoint, cultural habit, and task context. Without multi-view renders and a calibration set reviewed by people or models, the system treats “it does not fall” as the end of optimization.
What a Harder Evaluation Should Measure
Once a closed-loop agent can handle beginner items, evaluation has to break “lucky guesses.” At least these dimensions should be reported, not a single alignment score:
- Scale: raise part counts from tens to hundreds or even thousands, and see whether failure grows faster than linearly.
- Open descriptions: rare combinations, non-frontal poses, and partial openwork, not only “house, car, animal, front view.”
- Repeated perturbation: sample the same description many times and report variance in stability and appearance, instead of keeping the best run.
- Tighter constraints: limited colors, limited part types, a height cap, or a requirement that the model be handheld, so the system must trade off.
- Ablation: turn off collision feedback, stability feedback, and multi-round edits, and measure what the loop contributes, so tool scores are not counted as model taste.
- Dual-track reporting: publish physical pass rate and the visual distribution separately, with failure cases, not only the best render.
Reference answers should also change from “the one correct build” to “a feasible set.” Brick design is naturally one problem with many solutions. Part-by-part alignment against one human build punishes equally good designs that use different parts, and it can pass a lookalike whose connections are illegal. Alignment is a useful auxiliary metric. It should not be the final judge.
How to Make the Loop Solid in Engineering
If the goal is internal design assistance, not a public claim of artist-level ability, a minimal loop can be implemented without tying it to any proprietary interface:
- Parse the description into a mass-level sketch: body, limbs or attachments, supports, and primary colors.
- Retrieve parts with both geometry tags and connection tags, not by name keywords alone.
- Place the load-bearing skeleton first, then outline parts, then decoration. Reversing that order makes supports hard to insert later.
- Each round edits only the failed region: colliding pairs, unstable joints, or subassemblies with broken proportions. Do not tear down the whole model.
- Run physical checks in deterministic code. Do not let a large model decide that something “feels stable.”
- Check appearance with multi-view screenshots and explicit rubrics: silhouette, proportion, negative space, and color, each with its own written reason.
- Log the diff and failure type of every round so you can tell retrieval errors, coordinate errors, and conflicting goals apart.
A schematic loop:
skeleton = plan_masses(brief)for step in range(max_steps):design = place_parts(skeleton, library)phys, look = evaluate(design, brief)if all(phys.values()) and look_above_bar(look):return designskeleton = revise(skeleton, failures(phys, look))return best_so_far # mark it as not meeting the bar, not as a success
The key is that failure information must be actionable. “It looks bad” has to become statements such as “the head is too large relative to the body,” “the wheel axis is not level,” or “the support breaks the silhouette.” Vague comments cannot drive the next round.
Capability Limits and How to Use the System
This kind of system is suited to early design sketches, structural feasibility screening, and a first-pass parts list. It is not a substitute for an experienced form designer. In a product workflow, output should default to three grades: physics failed; physics passed but appearance failed; both tracks passed. Only the third grade should go to human refinement or display. If the job is only structural validation, do not wrap capability in a visual score. If the job is public display, a human aesthetic review must remain the final gate.
In a cloud setup, the part library and renders fit object storage, assembly jobs can be smoothed with a queue, geometry checks can run on elastic compute or a container platform, and logs plus monitoring alerts can track failure types and timeouts. Those are general capabilities. They do not replace evaluation design. No amount of compute changes the outcome if the reward still only encourages “it does not fall.” Output will stop at usable.
Conclusion
The uncomfortable point in intelligent brick design is not that models cannot write placement code. It is that “usable” has a hard test and “striking” has not been put into the same serious evaluation. Specialist generators without a revision loop fail easily on complex connections. General coding agents, by checking and reworking, can bring simple items close to reference alignment and still systematically choose safe, stiff structures. The next step is not another alignment score that is close to human work. It is to split the physical track from the visual track, raise scale, openness, and constraint difficulty, and drive multiple revisions with actionable failure feedback. Building a car that works only shows that constraint solving has started. Building a car that someone wants to look at twice requires evaluation, data, and revision targets that treat form decisions as first-class, not as decoration after the physics checks pass.
