Skip to content

armgit / kiln

Public Imported from GitHub
0

Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.

30.2 KB
Raw Blame

Geometry, parts, and helper audit

Snapshot: 2026-09-21, source HEAD b81cfd4caed64bd90547ff83b4e513e59a1d4913. This is a read-only implementation audit plus offline probes. No engine behavior was changed. Evidence references below use repository-relative paths and one-based lines. The companion catalog census supplies symbol-by-symbol occurrence counts; occurrences are not proof of successful dogfooding.

Assessment

The library already has a useful general-purpose geometry foundation. Its newest custom-mesh, deformation, sweep, semantic-frame, and CSG attribute-preservation work is appreciably more careful than its older convenience functions. The primary packaging risk is inconsistent composition semantics, rather than a shortage of primitives. A caller can confidently compose owned geometry through newer operations, then lose transforms, hierarchy, semantics, winding, or an expected opening through an older convenience helper.

Keep the low-level operations category agnostic. Keep domain scaffolds where they own a tested invariant, such as gable face frames or centered wheel pivots. Do not turn a gable shell into a universal architecture generator or a stylized gear into an engineering component. Discover these as optional construction recipes/capabilities. The existing implementation does not impose a general two-storey geometry limit: rooms, stairs, profiles, arrays and arbitrary meshes can build many floors or a coliseum. Category-specific contracts and prompts are a separate limitation investigated in the main report.

Demonstrated defects and consequential contract gaps

Priority Finding Evidence and consequence
P1 Left wing has reversed orientation src/primitives.ts:724 scales vertex positions by negative Z and recomputes normals without reversing indices. An offline signed-volume probe returns right +0.01800000031292437, left -0.01800000031292437. Recomputed left normals face inward. Repair winding after a baked reflection and test single-sided rendering/CSG as well as volume.
P1 Radial copies discard source scale; orientation semantics are narrower than general repetition src/ops.ts:88 constructs a fresh orbit Euler and passes no scale to createInstance. Probe: source rotation [30,20,10] degrees and scale [2,3,4] becomes [0,90,0], [1,1,1] for the first of four Y copies. Scale loss is a clear copy defect; outward orientation is documented, so preserving arbitrary source orientation needs an explicit mode/compatibility decision rather than a silent behavior change.
P1 Mirror discards source orientation and scale src/ops.ts:138 passes only reflected position and unit reflected scale to createInstance. Same probe becomes rotation zero, scale [1,1,-1]. This mirrors an unrotated unit-scale geometry, not the supplied transformed object. Establish local/parent/world mirror semantics explicitly.
P1 snapTo can silently skip a real gap under a changed parent src/primitives.ts:797 refreshes the part and host descendants but not their ancestors before bounding-box comparison. Independent review and this audit both reproduced a root containing a parent translated X=10 with the part below it and a separate host sibling at X=0: calling snapTo before any root update leaves the part at world X=10. Refresh ancestors before computing world bounds, and test mid-build transformed parents.
P2 General reuse helper is only a single mesh extractor src/primitives.ts:1517 searches the source itself or its first direct Mesh child. It drops other children, mesh-local transforms, source transform unless supplied again, names/semantic extras, and animation hierarchy. This is a documented limitation, not an accidental contract violation; it is a major interchangeability constraint. Wheel assemblies, joint chains, gable shells and reusable authored assemblies are not interchangeable inputs to the same reuse operation. Add a distinct assembly operation rather than silently redefining this one.
P2 Legacy room has a different floor datum src/primitives.ts:1032 promises floor top at ground but sets floor center to +floorThickness/2; direct probe with thickness .2 gives approximately [0,.2]. src/architecture.ts:711 correctly sets center to -floorThickness/2. Mixing the two helpers creates a threshold/height mismatch.
P2 Legacy room silently loses additional openings src/primitives.ts:1054 uses find for each wall even though the public option is an array of openings. Only the first opening on each wall survives. createGableShell filters and builds all openings. Reject unsupported multiplicity or migrate to a shared wall implementation.
P2 Default shared-geometry ownership remains easy to violate src/primitives.ts:1668 memoizes primitive calls by JSON arguments within a sandbox; direct probe translating one boxGeo(1,1,1) changes the next identical call (same object, first vertex x=10.5). This is intended caching, not an accidental cache implementation defect. However direct module calls return fresh objects; sandbox calls share. Deprecated cloneGeometry and cloneMaterial are identity functions (1485, 1493), while stale cache commentary recommends clone-before-edit. Prefer owned results or explicit sharing, or at minimum unmistakable discovery documentation and mutation diagnostics.
P2 Generic animation presets overwrite rest position src/primitives.ts:1424 and 1435 author absolute [0,y,0] tracks. idleBreathing on a torso rooted above ground erases its authored translation unless the user supplies an extra animation pivot. Probe confirms first/last track values zero. Document and require an origin pivot, or accept a base/rest transform. This is a limitation of the current contract, not evidence that every example is broken.
P2 Validation strength is uneven meshGeo, deforms, sweeps and implicit surfaces validate dimensions/data deliberately; many base wrappers simply forward invalid numbers to Three.js. wingGeo accepts dimensions unchecked, gearGeo checks only a subset (src/gears.ts:48), octaGridPlane divides by unchecked tile counts (src/primitives.ts:581). Add bounded finite/integer/domain checks consistently, with clear author-facing messages. Do not claim broad exploitability from this static observation.
P2 Shape-aware unwrap names exceed actual fallback behavior boxUnwrap (src/uv-shapes.ts:37) keeps any existing UV attribute, regardless of whether it is box UVs; absent UVs get XY projection, which collapses side faces. cylinderUnwrap keeps any existing UVs and otherwise assumes origin-centered Y axis; its documented seam limitation is real. Expose preservation separately from true frame-aware reprojection.
P2 Naming/material metrics are not robust semantic APIs getJointNames matches only Joint_; new wheel spin pivots are named WheelPivot_. validateAsset always returns valid and uses unique material count as a draw-call proxy (src/primitives.ts:1599, 1623). A scene can have one material and hundreds of draw calls. Advertise this as advisory metadata, not validation/performance certification.

The P1 geometry/transform findings are independent of research trends and should precede catalog expansion. They survive the current focused passing tests. Two further bounded probes confirmed the input-validation gap: createStairs with steps:1.5, rise/run 3 creates two steps and bounds reaching X=4, Y=4; octaGridPlane({tilesX:0,tilesY:1}) returns UVs containing NaN and Infinity rather than rejecting the invalid grid.

Atomic surface inventory

Each row names every exposed function in that family. Retain means preserve capability, not certify all parameter combinations. Tests named here were inspected; only the explicit execution set below was run in this audit.

Symbols Implementation Contract and quality assessment Action
createRoot src/primitives.ts:121 Empty named Object3D. Agnostic and simple. Retain.
createPivot src/primitives.ts:131 Named Joint_ node with optional parent; translation only. Retain as lightweight node, distinguish pivot from rig joint.
createPart src/primitives.ts:219 Mesh, or pivot wrapping one mesh; transform rotation in degrees, material scalar, semantic metadata stamped on returned node. Useful signature-error recovery. Rotation/scale remain on child when pivoting. Retain; document exact transform split and naming prefix.
boxGeo, sphereGeo src/primitives.ts:314 Three.js wrappers; low-resolution sphere default; no semantic dependence. Retain; bounded validation and quality/resolution guidance.
capsuleGeo, capsuleXGeo, capsuleYGeo, capsuleZGeo src/primitives.ts:267 Three.js capsule length is the straight section; total extent adds two radii. Axis aliases are helpful, not needless duplication. Publish extent contract explicitly; symmetric tests.
cylinderGeo, cylinderXGeo, cylinderYGeo, cylinderZGeo src/primitives.ts:283 Centered axial cylinders/frusta with built-in UVs. Radius argument order top then bottom. Retain; allow controlled longitudinal subdivisions for deformation.
coneGeo, coneXGeo, coneYGeo, coneZGeo src/primitives.ts:326 Apex-only cylinder family; consistent cardinal orientation. Retain as convenience aliases.
cylinderOnAxis, taperConeGeo src/primitives.ts:364, 403 Arbitrary baked axis/center versus cardinal frustum. Taper radius order bottom then top differs from cylinder. Move toward common explicit frame/options contract while retaining aliases.
torusGeo, planeGeo, decalBox src/primitives.ts:416, 425, 455 Torus in XY; plane is open +Z-facing; decal is a box with minimum thickness .002. Units and minima can surprise miniature assets. Retain, document axes/closure/minimum clamp.
foliageCardGeo, crossedQuadsGeo src/primitives.ts:483, 508 Rootable cards, geometry-role metadata; material controls double sidedness, geometry alone does not. Crossed planes are intentionally intersecting surfaces. Retain with foliageMaterial recipe, label surface representation.
octaGridPlane src/primitives.ts:581 One atlas-tile quad, not a complete view-dependent imposter. Comment expects external TIJ shader; ordinary GLB will display one tile. Mark consumer requirement; do not imply turnkey portable imposters.
wingGeo, createWingPair src/primitives.ts:629, 724 Stylized trapezoid, +X forward/+Z span; sweep and dihedral are displacements, not angles; no UVs. Pair has demonstrated reflection bug. Fix pair; rename option documentation to displacement or offer explicit units; recipe tier.
gearGeo, bladeGeo src/gears.ts:48, 218 Stylized mesh parts; gear explicitly not involute/engineering geometry. Blade along +Y, flat or ridge profile. Tests check topology and scale for gear. Keep art-grade label, validate parameter domain, no mechanical claims.
beamBetween, createLadder src/primitives.ts:752, 849 Beam handles arbitrary endpoints; ladder composes beams along fixed X/Z width axis. Ladder width is not automatically perpendicular to arbitrary endpoints. Returns bag of nodes, not root assembly. General frame-based beam; ladder as recipe with a root.
snapTo src/primitives.ts:790 AABB gap closure with optional overlap; parent transform conversion. Overlapping AABBs do not establish actual surface contact. Retain explicitly as bounding-box alignment; add socket mating for exact attachment.
wallWithOpening, room src/primitives.ts:956, 1032 Legacy box segmentation, one opening per wall, +X front, no rich semantic frame contract. Floor datum defect. Consolidate shared validated wall builder; avoid two inconsistent architecture paths.
createRoofPlanes src/primitives.ts:1125; explicit helper src/architecture.ts:401 Compatibility wrapper around richer face-frame implementation, renames meshes and offsets slopes. Deliberate legacy Euler readout patch. Retain compatibility, direct new discovery to explicit gable API.
createGableRoof src/architecture.ts:392 Right-handed live face frames, explicit spans/rise/pitch rules, tested rectangular and square footprints and ridge axes. Strong model for invariant-owning scaffold; retain.
createGableEndPanel src/architecture.ts:444 Thick triangular end panel with optional clipped openings and metadata. Retain with clear gable-specific scope.
createGableShell src/architecture.ts:659 Semantic walls, multiple openings, floor, roof, gables; optional enterability. More robust than room, but intentionally gable-specific. Retain recipe, extract shared wall/frame behavior rather than grow all-building abstraction.
createRoofSurfaceLayout src/architecture.ts:772 Face-frame panels/shingles/seams/corrugations. One box per item; no runtime batching guarantee. Retain measured frame behavior; test partial last rows/edge coverage and report mesh count.
createStairs src/primitives.ts:1171 Straight flight on X/Z, treads plus optional risers. Repetition and scalar count assumptions. Retain recipe; validate integer finite count, expose endpoints/landing sockets.
createVehicleFrame src/vehicle.ts:212 Typed chassis/axle/seat/contact/steering/propulsion sockets in canonical +X/+Y/+Z. Geometry-free and genuinely extensible. Retain; common socket machinery should support non-vehicles too.
createWheelGeometrySet, createWheelAssembly src/vehicle.ts:258, 271 Shared geometries, validated radii/width ordering, centered +Z spin and optional Y steering, semantic relationships/contact. Custom geometry can disagree with declared dimensional metadata. Retain; validate optional geometry bounds or label metadata assertions; preserve whole assembly during reuse.
createJointChain src/character.ts:582 Ordered pivot chain with validated role/rest/axis descriptors; geometry agnostic. Biped/quadruped presets are semantic graphs, not fully generated character meshes (669, 708, 746). Retain; provide branching assembly examples, no humanoid-only positioning assumptions.
meshGeo src/geometry.ts:24 Owned buffers; finite Float32, index/attribute validation, normalized normals, bounds. Degenerate geometry can still be constructed and diagnosed later. Strong general escape hatch; retain and teach before adding narrow helpers.
parametricSurface src/geometry.ts:165 Explicit domains/orientation, periodic seam validation and normals; surface rather than guaranteed solid. Safe integer segment checks but no product/cell cap. Retain; add explicit bounded sampling budget like implicitSurface.
geometryDiagnostics, creaseNormals src/geometry.ts:82, 248 Position-quantized topology diagnostics, angle-limited owned normals preserving corners. No self-intersection certification. Fixed/relative tolerances deserve scale tests. Retain; distinguish diagnosis from proof of solid validity.
bend, twist, taper, displace src/deform.ts:98, 109, 128, 153 Shared rigid degree-based frame, interval/falloff, owned buffers, finite outputs, recomputed normals/bounds, tangent invalidation. Outside interval remains fixed, permitting boundary discontinuity. Retain unified contract; add seam-normal and nonuniform-density dogfood cases.
sweepProfile, loftProfiles src/sweep.ts:165, 141 Simple profiles, transported frames / explicit frames, UVs and optional caps; explicit self-intersection warnings. No holes or automatic correspondence. Tight-turn radius estimate ignores subsequent station scale (warning-quality risk, not proven solid corruption). Retain with scope; add holes/correspondence only after tasks establish need.
implicitSurface src/implicit.ts:20 Async positive-inside Manifold level set; cell and actual callback caps, cleanup, experimental metadata; no UVs. Thin-feature quality resolution-dependent; host must terminate nonreturning callback. Keep experimental, strong bounds and honest limitations.
roundedBoxGeo, extrudeProfile, revolveProfile, circleProfile src/profile.ts:389, 246, 330, 465 Async solids via Manifold; profiles with holes; rounded/chamfered construction; explicit dimensions. Solid revolve uses degrees, surface revolve uses radians. Retain; surface/solid distinction is useful, unify discoverability and units instead of pretending they are equivalent.
boolUnion, boolDiff, boolIntersect, hull src/solids.ts:383, 392, 401, 410 Async Object3D operands to Mesh; transforms baked, material/UV preservation opt-in; cutter owns cut-face attributes; hull provenance explicitly unknown. Keep preservation path visible; integration matrix with new geometry.
cloneGeometry, cloneMaterial, copyGeometry, copyMaterial src/primitives.ts:1485 Legacy clone names share; copy names own. Material texture references remain shared. Hide deprecated clone names from first discovery; keep compatibility with prominent warnings.
createInstance, arrayLinear, arrayRadial, mirror src/primitives.ts:1517; src/ops.ts:35, 88, 138 Mesh reuse rather than hierarchy instantiation. Array result excludes the source (count includes source). Linear preserves source root Euler/scale; radial and mirror do not. Highest-value unification target: explicit mesh reuse plus true assembly copy with shared resources.
mergeVertices, subdivide src/ops.ts:185, 223 Ownership-preserving transformations; position-only weld drops attributes; preserveUV subdivision, unit-normal repair, bounds and provenance invalidation. Retain warnings and tests; cap growth before expensive work.
curveToMesh, pipeAlongPath, bezierCurve src/ops.ts:315, 457, 516 Catmull-Rom tube surface; pipe adds corner waypoints, not exact circular bend-radius fillets. Bezier samples points, then a tube re-interpolates them. Tubes are open at endpoints. One discoverable path-to-surface family with explicit interpolation, cap and frame options; preserve aliases.
lathe, revolveGeo src/ops.ts:377, 408 Three.js revolution surface, arbitrary axis for revolveGeo; normal repair; open profile does not create a watertight solid. Preserve distinct surface/solid semantics and expose degrees in a future consistent API.
autoUnwrap src/uv.ts:110 Async xatlas, arbitrary chart atlas; input validation, owned output. Wrong default for directional tileable material if existing analytic UVs were good. Retain task-based guidance, preservation receipts.
boxUnwrap, cylinderUnwrap, planeUnwrap, panelRemapV src/uv-shapes.ts:37, 54, 145, 174 Owned geometry; preservation/fallback/projection/remap mixed under unwrap vocabulary. panelRemapV actually controls U and V. General remapUV alias plus explicit frame-based projections; preserve old names.
gameMaterial, basicMaterial, glassMaterial, lambertMaterial src/primitives.ts:1266, 1287, 1299, 1314 Simple Standard/Basic/transparent Standard/Lambert factories. gameMaterial defaults flat shading. Glass is alpha-blended approximation, not physical transmission. Retain documented approximations, avoid conflating material choice with category.
pbrMaterial, foliageMaterial src/textures.ts:220, 336 Texture-slot conversion / alpha-tested double-sided foliage. Host texture loader is intentionally distinct from sandbox approved resources. Retain; test materials with every surface-preserving transform.
materialRecipe, compilePortableMaterialSpecV2 src/primitives.ts:1762; src/portable-material-runtime.ts:41 Approved recipe resolution via host closure; versioned procedural material compilation. Bounded portable contract is more durable than free-form opaque presets. Keep IDs inspectable with fallback/capability/quality information.
loadApprovedTexture, proceduralTexture, normalMapFromHeight src/primitives.ts:1749; src/procedural-texture.ts:309, 359 Closed resource ID loading, deterministic procedural texture compilation, height-derived normals. I/O loader is async, procedural generation sync. Retain explicit budgets and usage color spaces; do not expose arbitrary file/network loading as authoring convenience.
rotationTrack, positionTrack, scaleTrack, createClip src/primitives.ts:1341, 1370, 1391, 1412 Rotation degrees to quaternion; absolute TRS tracks; caller supplies target names, time ordering and duration. Retain but improve invariant checks and rest-transform guidance.
idleBreathing, bobbingAnimation, spinAnimation src/primitives.ts:1424, 1435, 1449 Simple fixed patterns; spin has quarter-turn quaternion samples; position presets assume zero origin. Recipe tier; explicit origin/base transforms.
countTriangles, countMaterials, getJointNames, validateAsset src/primitives.ts:1559, 1580, 1599, 1623 Mesh/sprite triangle and unique-material counts; name-prefix joint discovery; category-based material advisory that always returns valid. Rename/clarify advisory; separate draw-call/mesh/instance metrics and semantic joint discovery.

THREE, Math, and console are also sandbox globals (src/primitives.ts:1897 vicinity), not catalog helper functions. The raw Three.js escape hatch means the catalog is not the entire representational capability. Conversely, arbitrary Three.js constructs need not survive the portable export boundary; code acceptance and asset portability remain separate contracts.

Preset parts and reuse are three different things

  1. Geometry/assembly factories include wings, wheels, ladders, rooms, gables, stairs, gears and blades. Their input/output contracts are inconsistent: geometry versus node versus record of nodes versus record with root/frame/socket metadata.
  2. Character presets are semantic joint graphs and recipe text (src/character.ts:669 onward). They do not supply a skinned mesh or animation controller. Treat them as scaffolds, not finished parts.
  3. Material presets are versioned portable recipes (src/material-recipes.ts:17 onward). They can remain a well-defined optional capability independent of asset category.

There is no evidence here that a new reusable-parts DSL is necessary. The existing ordinary-JavaScript trial demonstrates equal geometry/transforms and reduced source size for repeated portal frames, not model-success improvement: docs/experiments/reusable-parts.md:1, scripts/experiment-reusable-parts.ts, and the shipped skills/kiln-author-asset/references/reusable-frame.kiln.js. Build on that with common roots, attachment frames and mutation ownership, then measure real authoring tasks. src/kit.ts is GLB texture/material packaging, not a prefab library; the name should not be mistaken for geometry parts.

Preset enumeration beyond sandbox functions

The ten portable material recipe IDs use the prefix kiln.material. and suffix .v1. Their source is src/material-recipes.ts:243-339. These are baseline material settings with bounded overrides, not complete geometry parts or a guarantee of photographic appearance.

Recipe name Actual default contract Review consequence
bark Brown nonmetal, roughness .93 Texture optional; the name alone does not supply bark relief
leaf Green, roughness .86, MASK cutoff .5, double sided Needs appropriate alpha texture and card/mesh geometry for a leaf silhouette
wood Warm brown nonmetal, roughness .78 Directional grain requires a texture and correct UV orientation
stone Grey nonmetal, roughness .95 No implicit displacement or stone geometry
rubber Dark nonmetal, roughness .88 Reusable beyond wheels; no tire construction implied
painted-metal Red, roughness .38, metalness .18 Art-directed baseline; review physically layered finishes separately
cloth Grey nonmetal, roughness 1 Core PBR approximation; no woven geometry or dedicated sheen model
skin Warm baseline, roughness .62; restricted overrides No subsurface model; does not qualify character realism
glass BLEND alpha .32, roughness .12, double sided Portable transparency fallback, not physical transmission/refraction
emissive Core glTF emissive factor with intensity override Emission does not guarantee scene illumination or bloom in a destination viewer

Approved textures are a separate ID registry with delivery, quality and license metadata. Placeholder resources and production resources are explicitly distinguished (src/material-recipes.ts:114-140). This audit reviewed those boundaries, not the visual quality of every texture image. It would be misleading to call recipe availability a successful material dogfood run.

BIPED_RIG_PRESET_V1 has 15 joint descriptors; QUADRUPED_RIG_PRESET_V1 has 16 (src/character.ts:669-744). expandCharacterRigPreset clones either semantic graph. Both encode fixed illustrative rest dimensions and should be scaled/adapted deliberately. characterBodyPlanRecipe additionally supplies textual guidance for avian, serpentine, multi-limb, wheeled, and custom plans (:746 onward); those are not equivalent to shipped complete mesh/rig presets. These are library/prompt surfaces, not extra functions in the 105-entry sandbox catalog.

The shipped reusable-frame.kiln.js is a parameterized source recipe with attachment pivots, and demonstrates controlled within-program reuse. It is not a cross-project prefab resolver. Shed/hip scaffold candidates remain test-only in architecture-expansion-gate.test.ts; their existence must not be listed as a published helper. These distinctions preserve an accurate inventory of what users can actually invoke.

Evidence and verification

Executed offline with Bun 1.4.2 and KILN_RENDER=cpu: bun test --timeout 20000 against primitives, geometry-authoring, deform, sweep, implicit, profile, vehicle, architecture, gears, ops, and uv-shapes test files in src/__tests__. Result: 194 pass, 0 fail, 6,587 assertions across 11 files. This is a focused gate, not the complete repository suite or a package release gate.

Direct ephemeral bun -e probes measured signed wing volume, radial/mirror transforms, legacy room floor bounds, sandbox primitive sharing, absolute breathing-track values, snapTo under stale ancestors, fractional stair count and zero atlas tile count. Those probes were not added as production tests and did not mutate source. Their numeric results appear above.

Existing tests provide unusually useful structural evidence for new capabilities: profile volume/holes/axis/GLB interop; custom geometry periodic seams and Float32 bounds; deform ownership and local frames; closed sweeps and transport; implicit budgets/determinism; transformed vehicle socket assemblies; gable face frames and enterable shell. None substitutes for randomized composition, single-sided visual inspection, or frontier-model usability measurements. The current 194-test pass alongside the demonstrated wing and transform bugs is direct evidence of missing adversarial composition coverage.

Useful additional checked-in test evidence (not rerun here): csg-preservation.test.ts, csg-uv-integrity.test.ts, geometry-export-contract.test.ts, geometry-export.test.ts, geometry-policy-runtime.test.ts, billboard-primitives.test.ts, animation-textured.test.ts, character.test.ts, instancing.test.ts, architecture-expansion-gate.test.ts, and procedural/material tests. The architecture expansion gate explicitly records a negative result for fixed shed/hip candidates; read that before adding roof presets just because they sound useful.

Recommended next tasks

  1. Before packaging, reproduce the P1 geometry/transform failures in permanent focused tests and fix them with explicit transform composition and ancestor refresh. Add a whole-assembly reuse decision: either a separate operation or an honest mesh-only name. Preserve source geometry/material sharing without deleting subtree structure or semantic identity.
  2. Reconcile room/opening/floor semantics and deprecated copy naming. Remove misleading comments that say clone-before-mutation when clone is identity. Carry the selected ownership rule through direct module and sandbox use.
  3. Define a small contract table attached to every discoverable helper: return kind, ownership, async, units/axes, coordinate space, topology promise, UV/material/provenance preservation, semantic effects, cost bound, maturity. This metadata is more valuable than another broad category switch.
  4. Make geometry-first operations composable with optional frame/socket-aware assemblies. Add general attachment-frame mating only if needed after validating existing semantic socket consumption; do not hard-code a vehicle-only attachment architecture into all assets.
  5. Build a composition matrix covering reflected/scaled/rotated parents, repeated hierarchy, texture seams, UV-preserving booleans, deform-after-sweep, subdivision-after-CSG, exported normals/winding, and exact source-to-GLB dimensions. Use metamorphic properties (rotation/scale equivariance, copy independence, array preservation) instead of only snapshots and triangle counts.
  6. Dogfood narrow representative tasks with held-out prompts: 3-storey facade with repeated arched openings; coliseum annulus with tiered seating and entrances; nonuniformly scaled radial columns; vehicle with reused custom wheel geometry; articulated non-humanoid; foliage with export-portable cutouts; directional-textured swept rail; tiny mechanical asset. Measure successful export, repairs, tool discovery, semantic correctness and blinded visual assessment separately.
  7. Add new helpers only when a measured repeated failure cannot be solved with a clearer existing operation/recipe. Plausible candidates to evaluate are generic wall-with-multiple-openings, frame-aware extrusion/attachment, segmented primitive controls, planar/cylindrical UV projection with explicit frames, and hierarchy-preserving repetition. General beveling, remeshing, arbitrary profile correspondence and robust self-intersection checks are substantial geometry features, not small convenience helpers.

The right unification is common contracts and discovery, not one giant function. Surface revolution and solid revolution, a reusable mesh and an articulated assembly, a bounding-box snap and a mating socket each represent real distinctions that should remain visible.