Validation gates ​
mloforge validate runs every gate and returns one report; build stops when a gate fails. The gates are pure
TypeScript in packages/core and read only the project spec, so they run in milliseconds and without Blender or GTA.
| Gate | Checks |
|---|---|
| Portal winding & planarity | The primary gate. Every portal is a non-degenerate, planar, convex quad whose corner winding gives a normal pointing out of its room. An inverted portal culls the wrong side |
| Room containment & sealing | Exactly one limbo room at index 0, unique indices, well-formed boxes, every room inside limbo, portals that reference real rooms, and no room without a portal |
| Asset-reference integrity | Every reference inside the spec resolves to a declared id. Checking archetypes against the GTA catalog comes with Phase 2 |
| JOAAT / name collisions | No duplicate archetype or room names, and no two names with the same JOAAT hash |
| Performance budgets | Triangles, draw calls, texture memory and entities stay within the project's tier. Always reported; a counter that isn't known yet shows as pending instead of passing at 0 |
Budgets ​
The tier is set per project (budgets in mlo.project.json). The build fails when a limit is exceeded.
| Tier | Triangles | Draw calls | Texture memory | Entities |
|---|---|---|---|---|
strict |
120,000 | 60 | 24 MB | 150 |
balanced |
250,000 | 120 | 48 MB | 300 |
quality |
450,000 | 220 | 96 MB | 500 |
Beta
These are starting numbers. They will be tuned against real Resmon readings, and the collision gates (watertight bounds, openings that match the render mesh) are not in the beta yet.