Modular kit
A modularKit owns its editable assets and generates a live collection display. Put canonical .zblend files in pieces/ (subfolders are supported). Do not register them again in kit.json. Membership comes from the owned files; catalog.json is an automatically maintained dependency/reload cache, not an authored inventory.
Place the kit through an Asset component. The scene records that kit reference and its transform; the generated ground, titles, piece instances, labels and reference boards are temporary children. Adding/removing a piece refreshes the existing display. Source/output changes refresh its layout and queue a new preview. Source data and each zblend's internal output.bundle remain editable. A document awaiting evaluated output is labeled rather than preventing the rest of the kit from displaying.
The manifest contains schema_version 1, title, family, optional plan_id and references. display supports columns (1–8), spacing in metres, ground_material, and optional overrides keyed by piece name with position and label. Layout uses transformed evaluated mesh bounds, grounds each piece, and keeps real scale. Authored parented/rigged geometry needs separate bounds verification. Default placement is stable alphabetical order. Whole-kit positions are owned by the scene; allow room between kits for growth.
Each reference carries reference (texture identity), display_material (unlit material using that texture), and aspect (width/height). Keep kit-specific board materials under display/. Shared ReferencePlane is supplied by the type. Lights and cameras belong to the scene, never each kit.
The inspector, kit.catalog and preview all discover the same pieces. Work tracking remains authoritative in tools.kit: automatic membership does not invent required roles or approve quality. New work must still be attached to the plan. Call ref:refresh() for explicit cache repair; normal piece edits are watched and debounced. The watcher excludes preview/history writes and cleans up when the kit is deleted.
Use the modular_kit_container testSuite for discovery/removal, grounding and layout settings regressions. The user scene is scenes.KitShowcase: one Asset reference per kit plus its shared environment. Runtime building generation remains a separate task.
Scoped to this part · feeds back into the world's score.