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.
JavaScript 3d3d-assets3d-modelingagent-skillsagent-toolsai-agentsasset-pipelinecligame-assetsglbgltfmcpmcp-servermodel-context-protocolprocedural-generationprocedural-modelingtext-to-3dthreejstypescript
docs(delivery): explain each delivery finding, its tolerance and disposition (#199)
Matt Kissingerc59366fe809e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5e5ec5a7..7851a2d3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,6 +11,10 @@ does not publish a package.`kiln_export_to` is advertised under Codex as under the other harnesses, and Discoverycapabilities report the tool as `assets.exportTo` (`null` when absent, never theabsolute root) ([#207](https://github.com/instruktlabs/kiln/issues/207)).+- The delivery contract explains every delivery finding: what it checks, its tolerance+ and units, and that all are advisory. `DELIVERY_COLLIDER_NO_OVERLAP` is+ collider-to-geometry overlap, not contact between colliders+ ([#199](https://github.com/instruktlabs/kiln/issues/199)).## 1.4.0 (2026-10-23)diff --git a/docs/delivery-contract.md b/docs/delivery-contract.mdindex 616b6ef0..dbad5857 100644--- a/docs/delivery-contract.md+++ b/docs/delivery-contract.md@@ -98,12 +98,34 @@ Transforms are relative to the asset root (the default scene), rotation as an`[x, y, z, w]` quaternion. Paths are `/<scene>[0]/<name>[occurrence]/...` with eachname URI-encoded.-Delivery diagnostic codes: `DELIVERY_COLLIDER_NOT_HIDDEN`,-`DELIVERY_COLLIDER_OUTSIDE_BOUNDS`, `DELIVERY_COLLIDER_NO_OVERLAP`,-`DELIVERY_COLLIDER_OVERLAP_UNMEASURED`, `DELIVERY_KIT_INVALID`,-`DELIVERY_KIT_MULTIPLE`, `DELIVERY_PORT_OUTSIDE_FOOTPRINT`,-`DELIVERY_PORT_WITHOUT_MODULE`, `DELIVERY_ANCHOR_NOT_LEAF`. A box or capsule wholly-inside a closed solid touches no triangle, so it reports `NO_OVERLAP`.+### Delivery findings++Every delivery finding is advisory. It appears in `deliveryDiagnostics` and as a build+warning, and never changes QA acceptance, saving or an exit code. Each one reports what+a check measured on the written GLB, not a judgement about the asset.++Distances are in metres. The collider checks share one tolerance:+`max(0.0001, 0.0001 × d)`, where `d` is the diagonal of the drawn bounds (the same+bounds the manifest reports). Collider checks read the default scene only, so lower+`MSFT_lod` levels, which sit off the scene, are not measured.++| Code | What was checked | Tolerance | Disposition |+| --- | --- | --- | --- |+| `DELIVERY_COLLIDER_NOT_HIDDEN` | The collider's proxy mesh draws, so an importer that ignores roles would show it | None | Advisory |+| `DELIVERY_COLLIDER_OUTSIDE_BOUNDS` | The proxy's world-space vertex box reaches outside the drawn bounds of the asset. Applies to boxes, capsules and hulls | Drawn bounds grown by the shared tolerance | Advisory |+| `DELIVERY_COLLIDER_NO_OVERLAP` | A box or capsule proxy touches none of the asset's drawn triangles. This is collider-to-geometry overlap, not contact between two colliders: colliders are never tested against each other. Hulls are not checked | Box: the shared tolerance along the box's largest side, proportionally less along shorter sides. Capsule: the radius plus the shared tolerance | Advisory |+| `DELIVERY_COLLIDER_OVERLAP_UNMEASURED` | The overlap check stopped before this collider: the asset reached 50,000,000 collider-triangle tests, counted across colliders in scene order | Not measured | Advisory |+| `DELIVERY_KIT_INVALID` | A node with the kit-module role has no valid `kilnKit` extras from `defineModule` | None | Advisory |+| `DELIVERY_KIT_MULTIPLE` | A second kit module; a GLB delivers one, and the manifest lists the first | None | Advisory |+| `DELIVERY_PORT_WITHOUT_MODULE` | A port is not under the delivered kit module | None | Advisory |+| `DELIVERY_PORT_OUTSIDE_FOOTPRINT` | A port lies outside its module's footprint or height | `max(0.0001, 0.00001 × s)`, where `s` is the module's largest of width, depth and height | Advisory |+| `DELIVERY_ANCHOR_NOT_LEAF` | An anchor has children; an anchor is an empty leaf node | None | Advisory |++The overlap test counts drawn triangles of visible meshes, including every+`EXT_mesh_gpu_instancing` copy, and skips other colliders. A box or capsule wholly+inside a closed solid touches no triangle, so it reports `DELIVERY_COLLIDER_NO_OVERLAP`+even though it stands for that solid. Treat the finding as a prompt to check the proxy+against the views; a proxy deliberately inside its surface needs no change.## Texture atlasesdiff --git a/src/__tests__/delivery-contract-doc.test.ts b/src/__tests__/delivery-contract-doc.test.tsnew file mode 100644index 00000000..65efd873--- /dev/null+++ b/src/__tests__/delivery-contract-doc.test.ts@@ -0,0 +1,23 @@+import { expect, test } from 'bun:test';++const read = (path: string) => Bun.file(new URL(path, import.meta.url)).text();++// #199: every delivery finding the inspector can emit has a row in the contract's+// findings table, so its check, tolerance and disposition are written down.+test('docs/delivery-contract.md explains every delivery finding code', async () => {+ const source = await read('../delivery-inspect.ts');+ const emitted = [+ ...new Set(source.match(/'DELIVERY_[A-Z_]+'/g)!.map((code) => code.slice(1, -1))),+ ];+ expect(emitted.length).toBeGreaterThan(0);+ const doc = await read('../../docs/delivery-contract.md');+ const section = doc.split('### Delivery findings')[1]?.split('\n## ')[0] ?? '';+ const rows = new Map(+ section+ .split('\n')+ .filter((line) => line.startsWith('| `DELIVERY_'))+ .map((line) => [line.match(/`(DELIVERY_[A-Z_]+)`/)![1]!, line] as const),+ );+ expect([...rows.keys()].sort()).toEqual(emitted.sort());+ for (const row of rows.values()) expect(row).toContain('Advisory');+});