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(skills): refresh scene export receipts after a revision change (#180)
Matt Kissinger6a9d55d74a4e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 946161a8..56b75cdd 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -20,6 +20,12 @@ does not publish a package.`@instruktlabs/kiln/render` and `/composer` fail with `ERR_MODULE_NOT_FOUND` until theauthor installs `@instruktlabs/kiln` pinned to the runtime version in use; CLI/MCP-onlyauthoring is unchanged ([#179](https://github.com/instruktlabs/kiln/issues/179)).+- The optional compose-scene workflow now says how a scene's aggregate export receipt follows+ a changed asset revision: regenerate it from fresh `kiln export … --json` receipts, check+ revision id, GLB bytes and hash and sidecar hash against the emitted files before claiming+ delivery, and keep superseded entries as immutable `history[]` rather than rewriting them.+ Guidance only; standalone assets and the engine surface are unchanged+ ([#180](https://github.com/instruktlabs/kiln/issues/180)).## 1.4.0 (2026-10-23)diff --git a/skills/kiln-compose-scene/SKILL.md b/skills/kiln-compose-scene/SKILL.mdindex 14ad95b7..78d4cfca 100644--- a/skills/kiln-compose-scene/SKILL.md+++ b/skills/kiln-compose-scene/SKILL.md@@ -41,4 +41,6 @@ through a supported part/variant rather than burying the whole plant or prop.For a scene GLB, export with `composeSceneGLB(parts, options)`. Select material optimization and animation retention deliberately. Review skipped-part warnings and confirm required inputs survived. For an application, retain the individual inputs and reproducible placement/runtime configuration. Inspect either result in its destination scene, including traversal, collision, contact, and relevant camera paths.+When a selected asset's revision changes and is re-exported, regenerate the scene's aggregate export receipt from fresh `kiln export … --json` receipts and verify it before claiming delivery; keep superseded entries as history ([export receipts](references/runtime-scenes.md#export-receipts-after-a-revision-changes)).+Report input assets, important transforms, intentional intersections, exporter warnings, and interactions actually checked. Do not infer playability from an overlap-free layout alone.diff --git a/skills/kiln-compose-scene/references/runtime-scenes.md b/skills/kiln-compose-scene/references/runtime-scenes.mdindex 4eae30e6..c3d80272 100644--- a/skills/kiln-compose-scene/references/runtime-scenes.md+++ b/skills/kiln-compose-scene/references/runtime-scenes.md@@ -380,3 +380,22 @@ shader is not automatically portable through a GLB export. Check the deliveredconsumer path and portable resource closure; an older sealed archive does notcontain later development-scene changes. Keep technical qualification separatefrom the owner's visual acceptance.++### Export receipts after a revision changes++A scene that records its selected assets in an aggregate export receipt must+regenerate that receipt whenever a selected asset's revision changes and is+re-exported. Never edit the old entry in place or carry its hashes forward.+Re-run `kiln export <id> <revision> --profile runtime --out <file>.glb --json`+and build each entry from that fresh output: `revisionId`, and for the GLB and+metadata entries of `files[]` their `bytes` and `sha256`. The sidecar's `source`+(`revisionId`, `glbSha256`, `sourceSha256`) names the saved revision it came+from; `glbSha256` there is the saved editable GLB, not the runtime GLB.++Before claiming delivery, check each entry against the files on disk: the+revision id equals the scene's selection, the GLB bytes and hash equal the+emitted file, and the sidecar hash equals both the file and the+`kilnProvenanceV1.metadata.sha256` stamped in the runtime GLB. Move a superseded+entry into immutable `history[]` with its revision id and hashes, so earlier proof+stays visible without posing as current. Dependent manifests that quote the same+revision or hashes are regenerated with the receipt.diff --git a/src/__tests__/scene-delivery-guidance.test.ts b/src/__tests__/scene-delivery-guidance.test.tsnew file mode 100644index 00000000..4693a29a--- /dev/null+++ b/src/__tests__/scene-delivery-guidance.test.ts@@ -0,0 +1,24 @@+import { expect, test } from 'bun:test';+import { readFileSync } from 'node:fs';++const skill = (path: string) =>+ readFileSync(new URL(`../../skills/kiln-compose-scene/${path}`, import.meta.url), 'utf8');++test('scene delivery regenerates the aggregate export receipt from fresh export receipts (#180)', () => {+ const text = skill('references/runtime-scenes.md').split('## Delivery')[1]!;+ // The fields are those `kiln export --json` and the runtime sidecar actually emit.+ for (const field of ['revisionId', 'files[]', 'sha256', 'sourceSha256', 'history[]'])+ expect(text).toContain(field);+ expect(text).toContain('kiln export');+ expect(text).toMatch(/regenerat/);+ expect(text).toMatch(/immutable/);+ expect(text).toMatch(/before (claiming|reporting) delivery/i);+});++test('the scene skill points at that receipt rule without adding it to standalone assets (#180)', () => {+ expect(skill('SKILL.md')).toContain('export receipt');+ for (const name of ['kiln-author-asset', 'kiln-refine-asset', 'kiln-qa-asset'])+ expect(+ readFileSync(new URL(`../../skills/${name}/SKILL.md`, import.meta.url), 'utf8'),+ ).not.toContain('aggregate export receipt');+});