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
fix(skills): canonical LF bytes, and correct the SEP-2640 record (#97)
Matthew Kissinger1c1abe87a5db
diff --git a/.gitattributes b/.gitattributesindex 35dee8d3..f67424d6 100644--- a/.gitattributes+++ b/.gitattributes@@ -19,7 +19,6 @@ bun.lock -diff linguist-generated=true*.kiln.js -textsrc/** -textdist/** -text-skills/** -textscripts/create-workspace.mjs -textpackage.json -textplugin.json -textdiff --git a/CHANGELOG.md b/CHANGELOG.mdindex da2483f2..4609062a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,6 +3,47 @@Changes to `@kiln/engine`. Source and installable packages are distributed throughGitHub. The package is not published on the npm registry.+## Skill bytes are canonical, and the SEP-2640 record is corrected — 2026-09-12++- Re-read SEP-2640 from the spec text on its PR branch and the working group's own+ repository, rather than from a page about it. Three things this project had recorded+ were wrong.+- **The design changed, and not cosmetically.** The extension defines `skills/list`,+ `skills/get`, and an optional `resources/directory/read`. **`skills/activate` is+ gone**, and with it the bundle, the scoped tools revealed on activation, and+ progressive disclosure inside the protocol. The SEP now "defines only the transport+ binding" and delegates the format and disclosure model to the Agent Skills+ specification.+- **The status heuristic was backwards.** The note here said "read the labels, not the+ prose", after a summary twice reported the SEP as Final. The SEP document's own+ `Status:` field *does* read Final; the pull request's label still reads `draft`, and+ under the SEP process the document is the status of record. The note pointed at the+ weaker signal.+- **"Nothing to build against" is no longer true.** The spec depends on nothing beyond+ base Resources, capability declaration rides SEP-2133, and the pinned+ `@modelcontextprotocol/[email protected]` already carries `extensions` in+ `ServerCapabilitiesSchema` while `setRequestHandler` takes any schema. Conformance+ tests merged 2026-09-11.+- 7.12 still waits, for a different and checkable reason: **nothing public consumes it.**+ The TypeScript SDK's convenience wrappers PR is closed unmerged, every public host is a+ prototype in one contributor's forks, Claude Code's is internal and not public, and the+ GitHub MCP server prototype is closed. Shipping it now adds a third transport no host+ can call. **Re-check the TypeScript SDK, not the SEP's status.**+- The re-read found one real gap. `skills/list` publishes a per-file `digest` and `size`+ over raw bytes, and this project already publishes sha256 digests of skill artifacts at+ `/.well-known/agent-skills/index.json` — but `skills/**` was `-text` in+ `.gitattributes` and carried the same accidental line-ending mix found in+ `render-service/src`: five files fully CRLF, two mixed, seven LF. It went unnoticed+ because the frontmatter parser is tolerant of both. Tolerant parsing is right;+ publishing a digest over whichever ending an editor happened to write is not.+- Normalized to LF across `skills/` and both registry copies, and `check:skills` now+ rejects CRLF in any skill file. Verified by reintroducing one — and then by `git+ checkout` restoring the pre-normalization bytes and the gate firing on that too, which+ is the regression path that actually happens.+- Two pieces of the eventual work are already in place: the digest derivation extends+ 7.13's rather than being invented, and `check:skills` has enforced the SEP's+ name-equals-directory rule since Phase 7.+## The published tool reference is correct again — 2026-09-12- `docs/tools.md` is generated from the tool registry, and `docs/` is in the package'sdiff --git a/docs/plans/repo-size-and-r2-migration-2026-09-10.md b/docs/plans/repo-size-and-r2-migration-2026-09-10.mdindex 07da6db0..a1e49bec 100644--- a/docs/plans/repo-size-and-r2-migration-2026-09-10.md+++ b/docs/plans/repo-size-and-r2-migration-2026-09-10.md@@ -962,11 +962,13 @@ building by hand.### SEP-2640, the Skills ExtensionExtension identifier `io.modelcontextprotocol/skills`. It serves Agent Skills-over MCP on the existing Resources primitive under a `skill://` URI scheme, with-`skills/list` returning lightweight discovery metadata and `skills/activate`-returning the full bundle plus scoped tools, prompts, resources and nested-skills. Scoped primitives stay out of the top-level lists until activation, so-progressive disclosure moves into the protocol itself.+over MCP on the existing Resources primitive under a `skill://` URI scheme.++**This paragraph originally described `skills/activate` returning a bundle plus+scoped tools, prompts, resources and nested skills, with progressive disclosure+moving into the protocol itself. That design is gone -- see Phase 14's re-read+(14.9), which replaces this description.** The record is kept because the plan+below was decided against it.Ratified, this would collapse most of Phase 7: no per-harness directories, nofilesystem copies, no registration step, and the ad-hoc path served by the same@@ -1679,6 +1681,7 @@ the installed tree.| 14.1 | Re-ground 7.12 / SEP-2640 against an authoritative source | **Done 2026-09-12.** Deferred still, for a stronger reason. See below || 14.2 | Establish what actually blocks the `ai` 7 family, and gate it | **Done 2026-09-12.** `@strands-agents/[email protected]` is latest, declares peer `@ai-sdk/provider: ^3.0.0`, and its `VercelModel` is typed on `LanguageModelV3` in 21 places. `@openrouter/[email protected]` requires `ai: ^7.0.0`; `[email protected]` depends on `@ai-sdk/[email protected]`. The family cannot be taken until Strands ships a release accepting the v4 spec -- no budget changes that. `scripts/peer-ranges.test.mjs` now fails on a peer range the version beside it does not meet, verified by patching the installed `@openrouter/ai-sdk-provider` manifest to peer `ai: ^7.0.0` and watching it report `installed 6.0.282` || 14.3 | Assert the prompt-cache breakpoint on the wire, offline | **Done 2026-09-12.** Both native transports captured in `src/agent/providers.test.ts`, both differential. See below |+| 14.9 | Re-read SEP-2640 from primary sources; correct the record and close the readiness gap it exposed | **Done 2026-09-12.** The recorded design was two mechanisms out of date, the recorded status heuristic was backwards, and "nothing to build against" is no longer true. Still not implemented, for a different reason. See below || 14.8 | Regenerate `docs/tools.md` and wire its drift check into the suite | **Done 2026-09-12.** 128 insertions of understated schema, published since 13.2. The check is a test now, verified by dropping one `minItems` line and watching it name the file || 14.7 | The rest of `scripts/` under the formatter, now that 14.5 made it free | **Done 2026-09-12.** 480 files where 442 were; every directory holding code is in the surface. Turned up two findings nothing else would have: two `any` in the evaluation host, and a stale generated doc -- see 14.8 || 14.6 | `render-service/` into the lint surface, which needed its line endings settled first | **Done 2026-09-12.** 442 files where 416 were. See below |@@ -1962,3 +1965,103 @@ Compared whole rather than section by section, because the drift that shipped wafour added lines inside one nested schema and any summary comparison would havemissed it. Verified by dropping a single `minItems` line and watching the test namethe file with the command that fixes it.++### 14.9 -- SEP-2640, read from the spec instead of from a page about it++Re-checked 2026-09-12 against the SEP text on the PR branch+(`seps/2640-skills-extension.md`) and the working group's own repository+(`modelcontextprotocol/experimental-ext-skills`), which carries the spec at+`specification/stable/skills.mdx` plus eighteen design documents. Three things this+ledger recorded are wrong.++**The design changed, and not cosmetically.** The extension now defines+`skills/list`, **`skills/get`**, and an optional `resources/directory/read`.+`skills/activate` is gone. So is everything that hung off it: no bundle, no scoped+tools or prompts revealed on activation, no progressive disclosure in the protocol.+The SEP is explicit that it "defines only the transport binding" and delegates the+format and the progressive-disclosure model entirely to the Agent Skills+specification. A `skills/list` entry is+`{uri, frontmatter, resources: [{uri, digest, size}] | "dynamic"}`, where+`frontmatter` is the verbatim YAML rendered as JSON, and `resources` is the unit a+host verifies and a user's approval binds to.++**The status heuristic recorded here was backwards.** This ledger told a future+session to "read the labels, not the prose", after a page summary twice reported the+SEP as Final. The SEP document's own `Status:` field now reads **Final**, while the+pull request's label still reads `draft`. Under the SEP process the document is the+status of record and the label lags it, so the note was pointing at the weaker+signal. What made the summaries untrustworthy was that they narrated merge state and+implementation state as if they were the same thing; the fix is to read the SEP's own+header and the individual implementation PRs, which is what this entry does.++**"Nothing to build against" is no longer true.** The spec's Dependencies section:+"This extension has no dependencies beyond the base MCP Resources primitive." The+2026-07-28 list-caching attributes are additive. Capability declaration rides SEP-2133+extension negotiation, and `@modelcontextprotocol/[email protected]` -- the pinned version --+already carries `extensions` in `ServerCapabilitiesSchema`, while `setRequestHandler`+accepts any schema, so `skills/list` and `skills/get` are registerable today. The+conformance tests **merged** on 2026-09-11 (`conformance#330`).++### Why 7.12 still waits, stated correctly++Not the SDK, and not the spec. **Nothing public consumes it.**++| Implementation | State, 2026-09-12 |+| --- | --- |+| TypeScript SDK convenience wrappers (`ext-skills#71`) | **Closed, unmerged** (2026-08-19) |+| Python SDK (`python-sdk#3485`) | Open |+| C# SDK (`csharp-sdk#1856`) | Open |+| Go SDK (`go-sdk#1238`) | Open |+| Conformance tests (`conformance#330`) | **Merged** 2026-09-11 |+| gemini-cli, fast-agent, goose, codex | Prototypes, all in one contributor's forks |+| Claude Code | "prototyped internally at Anthropic; not yet public" |+| GitHub MCP Server (`github-mcp-server#2360`) | **Closed, unmerged** |++Shipping the extension now would add a third transport of the tool-and-skill surface+that no host can call. This repository's central claim is that the registry drives+skins which are actually exercised, and a surface nobody calls is the opposite of+that. **The thing to re-check is the TypeScript SDK**: the published package gaining+skills helpers, or `ext-skills#71` reopening and landing, is the signal that a host+is expected to call this. Not the SEP's status, which is already Final.++### What the re-read is worth having done++Two pieces of the eventual work turn out to be already in place, and one gap was+open.++`skills/list` publishes, per file, `{uri, digest, size}` where the digest is+`sha256:{hex}` over raw bytes. 7.13's `/.well-known/agent-skills/index.json` already+derives sha256 over skill artifacts, so that derivation extends rather than gets+invented -- per file instead of per archive.++The SEP requires the final `<skill-path>` segment to equal the frontmatter `name`,+"so the skill name is always recoverable from the URI alone, without reading+frontmatter". `check:skills` has enforced exactly that -- `name` matches the+directory, and the Agent Skills naming rules -- since Phase 7. Nothing to add.++**The gap: skill bytes were not canonical.** `skills/**` was `-text` in+`.gitattributes` and carried the same accidental mix 14.6 found in+`render-service/src`: five files fully CRLF, two mixed, seven LF. It went unnoticed+because `check-skills.mjs` parses frontmatter with `\r?\n` and splits lines the same+way -- tolerant parsing, which is correct, over an artifact whose *bytes* this+repository publishes a digest of. Under `skills/list` those bytes become an+addressable resource with a published `digest` and `size`; under 7.13 they already+are. A digest is only a property of the content if the line endings are canonical.++Normalized to LF across `skills/` and both registry copies, the attribute removed,+and `check:skills` now rejects CRLF in any skill file with the reason in its header.+Verified by reintroducing one CRLF and watching it name the file -- and then, more+usefully, by `git checkout` restoring HEAD's pre-normalization bytes and the gate+firing on that too, which is the regression path that actually happens.++**Archives are on the record as removed, which bears on 7.13.** An earlier revision+of the SEP let an entry advertise pre-packed tar and ZIP archives; the Core+Maintainers removed them, for unpacking attack surface (decompression bombs, path+traversal, symlinks escaping the directory, normalization collisions overwriting+`SKILL.md`, setuid bits, device nodes) and because two encodings of one skill puts a+compatibility hazard in every host. 7.13's archives are not invalidated -- they are+Cloudflare's discovery RFC, fetched over HTTPS from this project's own origin, not+supplied by an arbitrary connected server -- but if archives ever come back to MCP,+the SEP names the conditions: no symlinks, no non-regular entries, a declared+uncompressed size, never the sole retrieval form, and unpacking to exactly the file+set the entry enumerates.diff --git a/scripts/check-skills.mjs b/scripts/check-skills.mjsindex 8ed3a752..e63821c2 100644--- a/scripts/check-skills.mjs+++ b/scripts/check-skills.mjs@@ -7,7 +7,17 @@* load-bearing for every harness that reads them. A violation is silent -- the* harness simply skips the skill -- so the constraints are asserted here.*- * Second, `skills/` is the maintained copy, but a bare clone registers nothing+ * Second, a skill's bytes are becoming an addressable artifact rather than a local+ * file. SEP-2640 serves each file of a skill as an MCP resource and publishes a+ * per-file `{digest, size}` in `skills/list`, and this repository already publishes+ * sha256 digests of skill artifacts at `/.well-known/agent-skills/index.json` (7.13).+ * A digest is only a property of the content if the line endings are canonical, so+ * CRLF is rejected here. It had arrived by accident in seven files -- five fully+ * CRLF, two mixed -- and went unnoticed because the frontmatter parser below is+ * tolerant of both. Tolerant parsing is right; silently publishing a digest over+ * whichever ending an editor happened to write is not.+ *+ * Third, `skills/` is the maintained copy, but a bare clone registers nothing* from it: Claude Code scans only `.claude/skills/`, while codex, opencode,* hermes and agy scan `.agents/skills/`. Those copies exist so a fresh clone has* a working loadout, and copies drift. Symlinks would avoid the duplication but@@ -93,6 +103,14 @@ async function validate(label, dir, name) {if (lines > 500) errors.push(`${label}: SKILL.md is ${lines} lines, over the recommended 500`);}+/** Every file of a skill, rejected if its bytes are not canonically LF. */+async function checkLineEndings(label, dir) {+ for (const file of await tree(dir)) {+ const bytes = await readFile(join(dir, file));+ if (bytes.includes('\r\n')) errors.push(`${label}/${file}: CRLF; skill bytes must be LF`);+ }+}+const canonicalDir = join(repo, CANONICAL);const names = (await readdir(canonicalDir, { withFileTypes: true })).filter((entry) => entry.isDirectory())@@ -100,7 +118,10 @@ const names = (await readdir(canonicalDir, { withFileTypes: true })).sort();if (names.length === 0) errors.push(`${CANONICAL}/ contains no skills`);-for (const name of names) await validate(`${CANONICAL}/${name}`, join(canonicalDir, name), name);+for (const name of names) {+ await validate(`${CANONICAL}/${name}`, join(canonicalDir, name), name);+ await checkLineEndings(`${CANONICAL}/${name}`, join(canonicalDir, name));+}for (const registry of REGISTRIES) {const dir = join(repo, registry);@@ -123,6 +144,7 @@ for (const registry of REGISTRIES) {for (const name of expected) {if (!present.includes(name)) continue;await validate(`${registry}/${name}`, join(dir, name), name);+ await checkLineEndings(`${registry}/${name}`, join(dir, name));const from = join(canonicalDir, name);const to = join(dir, name);const [a, b] = await Promise.all([tree(from), tree(to)]);diff --git a/skills/kiln-author-asset/references/geometry-recipes.md b/skills/kiln-author-asset/references/geometry-recipes.mdindex 05101113..81c40d00 100644--- a/skills/kiln-author-asset/references/geometry-recipes.md+++ b/skills/kiln-author-asset/references/geometry-recipes.md@@ -1,74 +1,74 @@-# Choose geometry by the shape you need--Read current catalog entries before using a helper. Useful filters are `geometry`, `mesh-ops`, `curves`, `csg`, `uv`, and `instancing`. Each recipe below lives in `build()` with a named root and suitable material.--## Surfaces from equations--An asymmetric canopy or corrugated sheet can be much shorter as a function than as many primitives:--```js-const canopy = parametricSurface(- (u, v) => [u, 0.35 * Math.sin(u * 2) + 0.12 * v * v, v],- { u: [-2, 2], v: [-1, 1], uSegments: 48, vSegments: 24 },-);-createPart('Canopy', canopy, metal, { parent: root });-```--Domains and segment counts are explicit. `orientation: 'uv'` follows increasing-U cross increasing-V; `'vu'` reverses winding. `periodicU`/`periodicV` require matching endpoints and retain wrapped UV seams. A sampled surface has no automatic thickness or caps.--For authored topology, `meshGeo({ positions, indices, normals?, uvs?, tangents? })` uses flat numeric arrays. Triangle winding is counterclockwise. An open sheet is valid geometry; do not label it a watertight solid.--## Shape an existing mesh--```js-const twisted = twist(column, { angle: 90 });-const narrowed = taper(column, { endScale: [0.4, 0.7] });-const curved = bend(rib, { angle: 60 });-const rippled = displace(sheet, ([x, y, z]) => [0, 0.04 * Math.sin(x * 16), 0]);-```--All return owned geometry. They work along local +Y; bend turns +Y toward +X. Set `frame: { origin, rotation }` for another local frame; rotations are degrees. `interval: [minY,maxY]` selects local Y distances, with outside vertices unchanged. An optional `falloff(t)` returns 0..1. Displacement returns an offset, not a replacement position.--Add enough segments before shaping. UVs remain, normals/bounds are recomputed, and stale tangents are removed. `creaseNormals(geometry, { angle: 45 })` then gives controlled hard/smooth boundaries. `subdivide(geometry, 1, { preserveUV: true })` preserves UV charts; legacy subdivision can discard them. Topology-changing subdivision drops old CSG face provenance rather than guessing.--## Vary the cross-section--```js-const profile = [[-.12,-.2],[.12,-.2],[.12,.2],[-.12,.2]];-const rail = sweepProfile(profile, [[0,0,0],[0,1,0],[.5,2,0]], {- twist: 20, scale: [[1,1],[.9,.9],[.7,.7]],-});-const housing = loftProfiles([- { profile },- { profile: [[-.2,-.1],[.3,-.1],[.2,.15],[-.2,.15]],- frame: { origin: [0,1,0], rotation: [0,15,0] } },-]);-```--Profiles use local `[x,z]`; loft sections lie in local XZ planes. A sweep follows supplied polyline stations using transported frames. Sample a curve first if you need smooth curvature. `up` sets initial profile +Z and must not parallel the path.--Caps default on. Closed sweeps omit the repeated path endpoint and require total twist to be a multiple of 360. Loft sections require matching point counts and deliberate index correspondence. These versions accept a simple outline without holes; use `extrudeProfile` for straight sections with holes. Review tight turns and nearby surfaces for self-intersections.--## Preserve useful Boolean surfaces--```js-const housing = await boolDiff('Housing', body, portCutter, { preserveAttributes: true });-```--Preservation mode carries UV0 and material groups; exposed cuts inherit the cutter's UVs/material. Missing input UVs produce a warning. Normals are regenerated; tangents are not retained. Without the option, legacy calls keep the first material and discard UVs. Use `autoUnwrap` afterward for a new atlas. Convex hulls create new faces and cannot promise source UV/material provenance.--`roundedBoxGeo` rounds a box's twelve edges. Profile beveling rounds profile corners; extrusion cap edges remain sharp. Subdivision is smoothing, not a dimension-preserving general bevel.--## Reuse structure without a new language--Put repeated assemblies in ordinary functions with JSDoc parameters and named return values. Pass parent/material explicitly; return the assembly root and attachment markers. Change one parameter at the call site for a variant. The runnable [reusable-frame recipe](reusable-frame.kiln.js) demonstrates this without imports or hidden dependencies.--## Implicit fields are experimental--```js-const blob = await implicitSurface(([x,y,z]) => 1 - Math.hypot(x,y,z), {- bounds: { min: [-1.2,-1.2,-1.2], max: [1.2,1.2,1.2] }, edgeLength: 0.15,-});-```--Positive values are inside. Bounds/resolution are required; smaller cells cost more and thin features can disappear. Explicit grid/evaluation limits apply. Output has no UVs. Use this for a deliberate organic/cellular experiment, not an unsupported promise of general shelling, remeshing, or CAD accuracy.+# Choose geometry by the shape you need++Read current catalog entries before using a helper. Useful filters are `geometry`, `mesh-ops`, `curves`, `csg`, `uv`, and `instancing`. Each recipe below lives in `build()` with a named root and suitable material.++## Surfaces from equations++An asymmetric canopy or corrugated sheet can be much shorter as a function than as many primitives:++```js+const canopy = parametricSurface(+ (u, v) => [u, 0.35 * Math.sin(u * 2) + 0.12 * v * v, v],+ { u: [-2, 2], v: [-1, 1], uSegments: 48, vSegments: 24 },+);+createPart('Canopy', canopy, metal, { parent: root });+```++Domains and segment counts are explicit. `orientation: 'uv'` follows increasing-U cross increasing-V; `'vu'` reverses winding. `periodicU`/`periodicV` require matching endpoints and retain wrapped UV seams. A sampled surface has no automatic thickness or caps.++For authored topology, `meshGeo({ positions, indices, normals?, uvs?, tangents? })` uses flat numeric arrays. Triangle winding is counterclockwise. An open sheet is valid geometry; do not label it a watertight solid.++## Shape an existing mesh++```js+const twisted = twist(column, { angle: 90 });+const narrowed = taper(column, { endScale: [0.4, 0.7] });+const curved = bend(rib, { angle: 60 });+const rippled = displace(sheet, ([x, y, z]) => [0, 0.04 * Math.sin(x * 16), 0]);+```++All return owned geometry. They work along local +Y; bend turns +Y toward +X. Set `frame: { origin, rotation }` for another local frame; rotations are degrees. `interval: [minY,maxY]` selects local Y distances, with outside vertices unchanged. An optional `falloff(t)` returns 0..1. Displacement returns an offset, not a replacement position.++Add enough segments before shaping. UVs remain, normals/bounds are recomputed, and stale tangents are removed. `creaseNormals(geometry, { angle: 45 })` then gives controlled hard/smooth boundaries. `subdivide(geometry, 1, { preserveUV: true })` preserves UV charts; legacy subdivision can discard them. Topology-changing subdivision drops old CSG face provenance rather than guessing.++## Vary the cross-section++```js+const profile = [[-.12,-.2],[.12,-.2],[.12,.2],[-.12,.2]];+const rail = sweepProfile(profile, [[0,0,0],[0,1,0],[.5,2,0]], {+ twist: 20, scale: [[1,1],[.9,.9],[.7,.7]],+});+const housing = loftProfiles([+ { profile },+ { profile: [[-.2,-.1],[.3,-.1],[.2,.15],[-.2,.15]],+ frame: { origin: [0,1,0], rotation: [0,15,0] } },+]);+```++Profiles use local `[x,z]`; loft sections lie in local XZ planes. A sweep follows supplied polyline stations using transported frames. Sample a curve first if you need smooth curvature. `up` sets initial profile +Z and must not parallel the path.++Caps default on. Closed sweeps omit the repeated path endpoint and require total twist to be a multiple of 360. Loft sections require matching point counts and deliberate index correspondence. These versions accept a simple outline without holes; use `extrudeProfile` for straight sections with holes. Review tight turns and nearby surfaces for self-intersections.++## Preserve useful Boolean surfaces++```js+const housing = await boolDiff('Housing', body, portCutter, { preserveAttributes: true });+```++Preservation mode carries UV0 and material groups; exposed cuts inherit the cutter's UVs/material. Missing input UVs produce a warning. Normals are regenerated; tangents are not retained. Without the option, legacy calls keep the first material and discard UVs. Use `autoUnwrap` afterward for a new atlas. Convex hulls create new faces and cannot promise source UV/material provenance.++`roundedBoxGeo` rounds a box's twelve edges. Profile beveling rounds profile corners; extrusion cap edges remain sharp. Subdivision is smoothing, not a dimension-preserving general bevel.++## Reuse structure without a new language++Put repeated assemblies in ordinary functions with JSDoc parameters and named return values. Pass parent/material explicitly; return the assembly root and attachment markers. Change one parameter at the call site for a variant. The runnable [reusable-frame recipe](reusable-frame.kiln.js) demonstrates this without imports or hidden dependencies.++## Implicit fields are experimental++```js+const blob = await implicitSurface(([x,y,z]) => 1 - Math.hypot(x,y,z), {+ bounds: { min: [-1.2,-1.2,-1.2], max: [1.2,1.2,1.2] }, edgeLength: 0.15,+});+```++Positive values are inside. Bounds/resolution are required; smaller cells cost more and thin features can disappear. Explicit grid/evaluation limits apply. Output has no UVs. Use this for a deliberate organic/cellular experiment, not an unsupported promise of general shelling, remeshing, or CAD accuracy.diff --git a/skills/kiln-batch-dispatch/SKILL.md b/skills/kiln-batch-dispatch/SKILL.mdindex cd9a0d98..81930caf 100644--- a/skills/kiln-batch-dispatch/SKILL.md+++ b/skills/kiln-batch-dispatch/SKILL.md@@ -1,20 +1,20 @@-----name: kiln-batch-dispatch-description: Run requested Kiln asset batches or compare coding-agent harnesses and models in isolated workspaces. Use for repeatable trials, source-reference workflow checks, and distinguishing provider, tool, and asset-quality failures.-license: MIT------# Run comparable asset trials--Use the user's requested harness and exact model identifier. Verify what the provider actually ran; do not silently substitute a default or older model.--1. Create a fresh project for each candidate using [clean-room evaluation](references/clean-room-evaluation.md). Keep the engine checkout and example collection outside the agent's task context.-2. Give each candidate the same brief, installed skills, image budget, time limit, and starting asset where applicable. Record inherited tools, instructions, memory, and permissions.-3. Verify tool access and actual image delivery with one small run before dispatching a batch. Model vision support and harness image forwarding are separate checks.-4. Exercise the whole revision loop: render source once, use the returned `programRef`, read a source window, edit an exact anchor, inspect a part, and export the same revision. Check that later calls do not resend the program and that unrelated source survives the edit.-5. Retain the brief, exact model, harness version, transcript, source, images, package/skill hashes, and outcome. Rebuild the saved source independently of the agent's success claim.-6. Review shapes under consistent cameras and lighting. Separate provider outages or quota limits, harness failures, tool/schema failures, engine failures, and visual quality. An interrupted run is not a completed asset.--After a shared package or skill change, rerun the affected workflow with the final candidate. A successful earlier revision does not validate later instructions. Record manual repairs separately from model output.--Adding a reviewed asset to a gallery is a separate task. Do it only when that addition is requested, retaining model provenance and later edits.+---+name: kiln-batch-dispatch+description: Run requested Kiln asset batches or compare coding-agent harnesses and models in isolated workspaces. Use for repeatable trials, source-reference workflow checks, and distinguishing provider, tool, and asset-quality failures.+license: MIT+---++# Run comparable asset trials++Use the user's requested harness and exact model identifier. Verify what the provider actually ran; do not silently substitute a default or older model.++1. Create a fresh project for each candidate using [clean-room evaluation](references/clean-room-evaluation.md). Keep the engine checkout and example collection outside the agent's task context.+2. Give each candidate the same brief, installed skills, image budget, time limit, and starting asset where applicable. Record inherited tools, instructions, memory, and permissions.+3. Verify tool access and actual image delivery with one small run before dispatching a batch. Model vision support and harness image forwarding are separate checks.+4. Exercise the whole revision loop: render source once, use the returned `programRef`, read a source window, edit an exact anchor, inspect a part, and export the same revision. Check that later calls do not resend the program and that unrelated source survives the edit.+5. Retain the brief, exact model, harness version, transcript, source, images, package/skill hashes, and outcome. Rebuild the saved source independently of the agent's success claim.+6. Review shapes under consistent cameras and lighting. Separate provider outages or quota limits, harness failures, tool/schema failures, engine failures, and visual quality. An interrupted run is not a completed asset.++After a shared package or skill change, rerun the affected workflow with the final candidate. A successful earlier revision does not validate later instructions. Record manual repairs separately from model output.++Adding a reviewed asset to a gallery is a separate task. Do it only when that addition is requested, retaining model provenance and later edits.diff --git a/skills/kiln-compose-scene/SKILL.md b/skills/kiln-compose-scene/SKILL.mdindex 3e5afa2d..9ac89ff3 100644--- a/skills/kiln-compose-scene/SKILL.md+++ b/skills/kiln-compose-scene/SKILL.md@@ -1,19 +1,19 @@-----name: kiln-compose-scene-description: Arrange existing GLB assets into a scene with explicit placement, integration manifests, overlap checks, and a reviewed scene export.-license: MIT------# Compose a scene from existing assets--Use this optional workflow when the task concerns several assets. Keep placement separate from individual source authoring so moving an object does not regenerate its geometry.--Read the [composition API notes](references/composition-api.md) when using the library. These are host/project APIs, not tools automatically added to the Kiln MCP surface.--Inspect each GLB with `inspectGlbIntegration(bytes)` and confirm it returned a usable manifest. Use units, axes, bounds, and ground information to place the object deliberately. Give instances stable names and explicit transforms.--Start with the layout's major structures, routes and useful sightlines, then place smaller objects. Use world-space AABB checks to find candidate collisions; inspect reported intersections instead of treating every overlap as an error. Intentional embedding and empty space inside bounds both matter.--Export with `composeSceneGLB(parts, options)`. Select material optimization and animation retention deliberately. Review skipped-part warnings and confirm required inputs survived. Inspect the result in its destination scene, including traversal, collision, contact, and relevant camera paths.--Report input assets, important transforms, intentional intersections, exporter warnings, and interactions actually checked. Do not infer playability from an overlap-free layout alone.+---+name: kiln-compose-scene+description: Arrange existing GLB assets into a scene with explicit placement, integration manifests, overlap checks, and a reviewed scene export.+license: MIT+---++# Compose a scene from existing assets++Use this optional workflow when the task concerns several assets. Keep placement separate from individual source authoring so moving an object does not regenerate its geometry.++Read the [composition API notes](references/composition-api.md) when using the library. These are host/project APIs, not tools automatically added to the Kiln MCP surface.++Inspect each GLB with `inspectGlbIntegration(bytes)` and confirm it returned a usable manifest. Use units, axes, bounds, and ground information to place the object deliberately. Give instances stable names and explicit transforms.++Start with the layout's major structures, routes and useful sightlines, then place smaller objects. Use world-space AABB checks to find candidate collisions; inspect reported intersections instead of treating every overlap as an error. Intentional embedding and empty space inside bounds both matter.++Export with `composeSceneGLB(parts, options)`. Select material optimization and animation retention deliberately. Review skipped-part warnings and confirm required inputs survived. Inspect the result in its destination scene, including traversal, collision, contact, and relevant camera paths.++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/composition-api.md b/skills/kiln-compose-scene/references/composition-api.mdindex f0a82813..f3e7edc7 100644--- a/skills/kiln-compose-scene/references/composition-api.md+++ b/skills/kiln-compose-scene/references/composition-api.md@@ -1,22 +1,22 @@-# Composition API notes--Use these through the destination project's TypeScript toolchain. `inspectGlbIntegration` and `composeSceneGLB` are exported from `@kiln/engine/render`; overlap helpers are exported from `@kiln/engine/composer`. Generated Kiln source itself still has no imports.--```ts-const composed = await composeSceneGLB([- { name: 'MarketStall', bytes: stallBytes,- transform: { pos: [2,0,1], rotDeg: [0,90,0], scale: [1,1,1] } },- { name: 'Lamp', bytes: lampBytes,- transform: { pos: [3,0,1], rotDeg: [0,0,0], scale: [1,1,1] } },-], { sceneName: 'Market', optimize: 'off', keepAnimations: false });-```--`pos` uses metres; `rotDeg` is Euler XYZ degrees; `scale` is a three-component scale. The result includes `bytes`, `tris`, `draws`, `materials`, `warnings`, and the final GLB validation report. A corrupt part may be skipped with a warning rather than fail the whole export.--The default optimizer is `palette`; `off` is useful when first checking authored material fidelity. `keepAnimations` defaults to false. Set it true only when the scene should retain asset clips and then verify their playback.--Call `inspectGlbIntegration(bytes)` for actual bounds and integration metadata. It may return `undefined`; do not invent a manifest for an empty/unusable input.--`findOverlaps(boxes, options)` returns candidate AABB intersections; `isOverlapFree` returns a boolean, and `summarizeOverlaps(violations)` formats findings. Options select `mode: 'footprint'` (default, ignores Y) or `'volume'`, with optional tolerance. Use world-space boxes and stable instance IDs. Footprint checks are insufficient for stacked or overhead objects.--The simpler `worldAabbFromLocal` path assumes uniform scale and Y rotation. For arbitrary rotated/nonuniform placements, compute world bounds from all eight local corners with the full transform rather than forcing that shape into a narrower helper.+# Composition API notes++Use these through the destination project's TypeScript toolchain. `inspectGlbIntegration` and `composeSceneGLB` are exported from `@kiln/engine/render`; overlap helpers are exported from `@kiln/engine/composer`. Generated Kiln source itself still has no imports.++```ts+const composed = await composeSceneGLB([+ { name: 'MarketStall', bytes: stallBytes,+ transform: { pos: [2,0,1], rotDeg: [0,90,0], scale: [1,1,1] } },+ { name: 'Lamp', bytes: lampBytes,+ transform: { pos: [3,0,1], rotDeg: [0,0,0], scale: [1,1,1] } },+], { sceneName: 'Market', optimize: 'off', keepAnimations: false });+```++`pos` uses metres; `rotDeg` is Euler XYZ degrees; `scale` is a three-component scale. The result includes `bytes`, `tris`, `draws`, `materials`, `warnings`, and the final GLB validation report. A corrupt part may be skipped with a warning rather than fail the whole export.++The default optimizer is `palette`; `off` is useful when first checking authored material fidelity. `keepAnimations` defaults to false. Set it true only when the scene should retain asset clips and then verify their playback.++Call `inspectGlbIntegration(bytes)` for actual bounds and integration metadata. It may return `undefined`; do not invent a manifest for an empty/unusable input.++`findOverlaps(boxes, options)` returns candidate AABB intersections; `isOverlapFree` returns a boolean, and `summarizeOverlaps(violations)` formats findings. Options select `mode: 'footprint'` (default, ignores Y) or `'volume'`, with optional tolerance. Use world-space boxes and stable instance IDs. Footprint checks are insufficient for stacked or overhead objects.++The simpler `worldAabbFromLocal` path assumes uniform scale and Y rotation. For arbitrary rotated/nonuniform placements, compute world bounds from all eight local corners with the full transform rather than forcing that shape into a narrower helper.diff --git a/skills/kiln-qa-asset/SKILL.md b/skills/kiln-qa-asset/SKILL.mdindex c22d0ed4..c8275b09 100644--- a/skills/kiln-qa-asset/SKILL.md+++ b/skills/kiln-qa-asset/SKILL.md@@ -1,27 +1,27 @@-----name: kiln-qa-asset-description: Check a Kiln asset's geometry, views, export fidelity, and behavior in its destination project. Use for delivery review, loading, materials, animation, collision, or runtime defects.-license: MIT------# Verify an asset for its intended use--Match the checks to the requested delivery. A source build, an image review, a GLB export, and a working asset in a game are different pieces of evidence.--## Before integration-+---+name: kiln-qa-asset+description: Check a Kiln asset's geometry, views, export fidelity, and behavior in its destination project. Use for delivery review, loading, materials, animation, collision, or runtime defects.+license: MIT+---++# Verify an asset for its intended use++Match the checks to the requested delivery. A source build, an image review, a GLB export, and a working asset in a game are different pieces of evidence.++## Before integration+Read validation/build findings and export warnings. `kiln_validate` only checks source; render and inspect the actual geometry when that is the task. Choose broad or part-specific views that reveal the suspected defect. Copy the returned `programRef` exactly for every view, whether it is a short `p_` handle or a full SHA-256 reference; request source text only when a repair needs it. A handle identifies a revision in its store; use full source and artifact hashes for integrity evidence.--Distinguish expected open sheets from invalid solid topology. `geometryDiagnostics` reports boundary edges, non-manifold edges, orientation conflicts and degenerates; it does not prove absence of self-intersection. A capped loft, shell-like surface, or sampled field is not automatically a manufacturing-grade solid.--Check material and camera fidelity independently. A fallback image may still answer a geometry question, but it cannot establish faithful PBR appearance. Keep unresolved export or material findings visible in the delivery report.--## In the destination--Use the project's existing loader and renderer. Read the [integration checks](references/integration-checks.md) for manifests, frames, composition options, and limits.--Confirm scale alongside existing objects, forward direction, ground contact, placement, and useful viewing distance. Check textures and lighting in the destination renderer. Exercise relevant animation, interaction, and collision; sample intermediate poses when checking motion. For web projects use the actual browser view, and for native projects use the destination runtime.--Reproduce defects before fixing them. Correct placement/loader/lighting problems in integration code; change asset source for a geometry or rig defect. Recheck the affected behavior after a repair.--Report the exact artifacts tested, what you ran and saw, repaired defects, and checks left unperformed. Validation, `visualQa: not_assessed`, an AABB overlap test, or a low triangle count is not a substitute for visual or runtime verification.++Distinguish expected open sheets from invalid solid topology. `geometryDiagnostics` reports boundary edges, non-manifold edges, orientation conflicts and degenerates; it does not prove absence of self-intersection. A capped loft, shell-like surface, or sampled field is not automatically a manufacturing-grade solid.++Check material and camera fidelity independently. A fallback image may still answer a geometry question, but it cannot establish faithful PBR appearance. Keep unresolved export or material findings visible in the delivery report.++## In the destination++Use the project's existing loader and renderer. Read the [integration checks](references/integration-checks.md) for manifests, frames, composition options, and limits.++Confirm scale alongside existing objects, forward direction, ground contact, placement, and useful viewing distance. Check textures and lighting in the destination renderer. Exercise relevant animation, interaction, and collision; sample intermediate poses when checking motion. For web projects use the actual browser view, and for native projects use the destination runtime.++Reproduce defects before fixing them. Correct placement/loader/lighting problems in integration code; change asset source for a geometry or rig defect. Recheck the affected behavior after a repair.++Report the exact artifacts tested, what you ran and saw, repaired defects, and checks left unperformed. Validation, `visualQa: not_assessed`, an AABB overlap test, or a low triangle count is not a substitute for visual or runtime verification.diff --git a/skills/kiln-qa-asset/references/integration-checks.md b/skills/kiln-qa-asset/references/integration-checks.mdindex 3d79f978..3e61b1e6 100644--- a/skills/kiln-qa-asset/references/integration-checks.md+++ b/skills/kiln-qa-asset/references/integration-checks.md@@ -1,24 +1,24 @@-# Integration checks--These library APIs run in the destination project's TypeScript toolchain, not inside generated `.kiln.js` source. Use the project's installed Kiln package; do not copy engine implementation into the asset workspace.--`inspectGlbIntegration(bytes)` from `@kiln/engine/render` reads the actual GLB and returns an integration manifest or `undefined` when no usable scene bounds exist. Check that result before using bounds, axes, ground correction, structural findings, or artifact hash.--Kiln authors metres, +X forward, +Y up, +Z right. Confirm importer conversion in the destination. Ground correction must be applied in the frame it describes, especially under rotated/scaled parents. Bounds alone cannot prove that feet, wheels, or collision geometry make the intended contact.--## What to measure--| Question | Evidence |-|---|---|-| Did the intended file load? | Resolved asset path, parsed GLB, content hash/manifest |-| Does its size and orientation fit? | Scene comparison, importer transform, world-space bounds |-| Are materials correct? | Destination lighting and texture review; material-faithful Kiln view where available |-| Does it move correctly? | Named clip, intermediate poses, transitions, attachments and relevant controls |-| Can it be used in the scene? | Collision, reachability, interactions and contact under real placement |-| What does it cost? | Loading, geometry, draw calls, textures and representative-device measurements |--Source refs name source revisions. They do not identify arbitrary externally modified GLB bytes. Track the exact exported file used for integration.--`composeSceneGLB` defaults to static composition (`keepAnimations: false`). Explicitly keep animations when required. Its material optimization policy can change scene material organization; choose it deliberately, then inspect the result. Warnings can report skipped inputs, so successful export alone does not prove every required asset was included.--Do not invent a universal performance cap. State the destination, tested conditions, and material limits of the evidence.+# Integration checks++These library APIs run in the destination project's TypeScript toolchain, not inside generated `.kiln.js` source. Use the project's installed Kiln package; do not copy engine implementation into the asset workspace.++`inspectGlbIntegration(bytes)` from `@kiln/engine/render` reads the actual GLB and returns an integration manifest or `undefined` when no usable scene bounds exist. Check that result before using bounds, axes, ground correction, structural findings, or artifact hash.++Kiln authors metres, +X forward, +Y up, +Z right. Confirm importer conversion in the destination. Ground correction must be applied in the frame it describes, especially under rotated/scaled parents. Bounds alone cannot prove that feet, wheels, or collision geometry make the intended contact.++## What to measure++| Question | Evidence |+|---|---|+| Did the intended file load? | Resolved asset path, parsed GLB, content hash/manifest |+| Does its size and orientation fit? | Scene comparison, importer transform, world-space bounds |+| Are materials correct? | Destination lighting and texture review; material-faithful Kiln view where available |+| Does it move correctly? | Named clip, intermediate poses, transitions, attachments and relevant controls |+| Can it be used in the scene? | Collision, reachability, interactions and contact under real placement |+| What does it cost? | Loading, geometry, draw calls, textures and representative-device measurements |++Source refs name source revisions. They do not identify arbitrary externally modified GLB bytes. Track the exact exported file used for integration.++`composeSceneGLB` defaults to static composition (`keepAnimations: false`). Explicitly keep animations when required. Its material optimization policy can change scene material organization; choose it deliberately, then inspect the result. Warnings can report skipped inputs, so successful export alone does not prove every required asset was included.++Do not invent a universal performance cap. State the destination, tested conditions, and material limits of the evidence.diff --git a/skills/kiln-refine-asset/references/revision-and-views.md b/skills/kiln-refine-asset/references/revision-and-views.mdindex 581d7e5a..8b02c5f2 100644--- a/skills/kiln-refine-asset/references/revision-and-views.md+++ b/skills/kiln-refine-asset/references/revision-and-views.md@@ -1,76 +1,76 @@-# Saved revisions and focused views-+# Saved revisions and focused views+Replace `REF` and `PART_PATH` with values returned by Kiln, copied exactly. `REF` may be a short `p_` handle or a canonical SHA-256 reference; do not derive it from a displayed hash. Each handle maps permanently to one revision in its store. Edits return a new reference rather than moving a global current asset.--```js-kiln_source({ programRef: REF, query: 'POST_WIDTH', limit: 3000 });-kiln_edit({ programRef: REF,- edits: [{ oldString: 'const POST_WIDTH = 0.13;', newString: 'const POST_WIDTH = 0.18;' }],- capture: { preset: '2x1', cells: [- { azimuthDeg: 0, elevationDeg: 0, name: 'Front' },- { azimuthDeg: 90, elevationDeg: 0, name: 'Right' },- ] },-});-```--`kiln_source` defaults to 8,000 characters and allows up to 16,000 per page. Follow `nextOffset` for more text; search again from `matchOffset + 1` for a later occurrence. `found: false` is a search result, not missing source. The returned `code` has no line prefixes.--Edits are ordered and atomic, up to 20 replacements per call. Empty/no-op replacements are rejected. `ok: true` means the edits applied; inspect `render.ok` for build/render success. `parentRef` records the base. Reference-based edit replies omit full code unless `includeCode: true`; legacy inline-code replies retain their old default.--## An exact local close-up--```js-kiln_inspect({ programRef: REF, shot: {- name: 'Hinge seam', subject: { path: PART_PATH }, visibility: 'context',- camera: { type: 'orbit', relativeTo: 'part', azimuthDeg: 100, elevationDeg: 15, padding: 1.3 },-} });-```--Use either `shot` or the legacy `part`/`view`/orbit fields. Exact names can be ambiguous; returned paths identify a particular node. `visibility: 'isolate'` removes neighboring geometry for this view without changing the asset.--For multiple subjects in one call, use `kiln_render` or edit `capture`:--```js-{ version: 'kiln.capture.v1', cols: 2, size: 512, output: 'separate', shots: [- { name: 'Context', subject: { path: PART_PATH }, camera: { type: 'orbit', relativeTo: 'asset', azimuthDeg: 45 } },- { name: 'Behind', subject: { path: PART_PATH }, visibility: 'isolate',- camera: { type: 'orbit', relativeTo: 'part', azimuthDeg: 180, elevationDeg: 0 } },-] }-```--Versioned capture has 1–9 shots, columns 1–3, and size 128–1024; output is `grid` or `separate`. Legacy presets use `COLSxROWS`, and each optional cell has `azimuthDeg`, `elevationDeg`, `zoom`, and `name`. Do not combine the two capture shapes.--Explicit cameras use `{ type: 'explicit', projection: 'perspective', position, target, up?, fovDeg? }` or `projection: 'orthographic'` with optional `halfHeight`. Their vectors are world-space. Orbit `relativeTo` supports world/asset/part frames. Use returned camera records to verify how a request resolved.--## Motion and interiors--```js-kiln_screenshot_animation({ programRef: REF, clip: 'Open',- frameTimes: [0, 0.35, 0.7, 1], framing: 'locked',- shot: { subject: { path: PART_PATH }, camera: { type: 'orbit', relativeTo: 'asset', azimuthDeg: 90 } },-});-```--`frameTimes` contains phase fractions 0..1 in the order you want (1–9 entries). Alternatively use `frames` (2–6); the two are mutually exclusive. `framing: 'locked'` supports comparisons across motion; `follow` reframes the changing subject. `perFrame: true` returns separate frames. A sampled sheet cannot prove everything between sampled phases.--`kiln_view_interior` accepts optional versioned `capture` for roof-off shots. Normally roof semantics/name are resolved automatically; `nodeName` selects a roof explicitly. Review `roofsHidden` and warnings rather than assuming every obstructing surface disappeared.--Read fidelity and fallback receipts before drawing conclusions. Geometry-flat images do not verify texture/roughness/metalness, and bounds/anchor measurements do not establish visual quality.--## Named anchors and measurements--Use ordinary named child groups or pivots for attachment points. Select their exact returned paths; no extra anchor language is needed. `createPivot` adds a `Joint_` prefix.--```json-{- "programRef": "RETURNED_REFERENCE",- "measure": {- "from": {"subject": {"path": "RETURNED_ANCHOR_PATH"}},- "to": {"subject": {"path": "RETURNED_PART_PATH"}, "point": [0, 0.2, 0]}- }-}-```--This is a `kiln_inspect` request. Each point is local to its selected node; omitting it selects that node's origin. The returned measurement contains both world points and their straight-line distance in asset units. It is not a surface-distance or clearance test.--Exact-shot inspection also returns `subjectFrame`: local/world bounds, a column-major world matrix, origin, and world-space axes. Use these receipts to place explicit world-space cameras or check an attachment. Camera suggestions are an authoring decision; there is no `suggestViews` request field.++```js+kiln_source({ programRef: REF, query: 'POST_WIDTH', limit: 3000 });+kiln_edit({ programRef: REF,+ edits: [{ oldString: 'const POST_WIDTH = 0.13;', newString: 'const POST_WIDTH = 0.18;' }],+ capture: { preset: '2x1', cells: [+ { azimuthDeg: 0, elevationDeg: 0, name: 'Front' },+ { azimuthDeg: 90, elevationDeg: 0, name: 'Right' },+ ] },+});+```++`kiln_source` defaults to 8,000 characters and allows up to 16,000 per page. Follow `nextOffset` for more text; search again from `matchOffset + 1` for a later occurrence. `found: false` is a search result, not missing source. The returned `code` has no line prefixes.++Edits are ordered and atomic, up to 20 replacements per call. Empty/no-op replacements are rejected. `ok: true` means the edits applied; inspect `render.ok` for build/render success. `parentRef` records the base. Reference-based edit replies omit full code unless `includeCode: true`; legacy inline-code replies retain their old default.++## An exact local close-up++```js+kiln_inspect({ programRef: REF, shot: {+ name: 'Hinge seam', subject: { path: PART_PATH }, visibility: 'context',+ camera: { type: 'orbit', relativeTo: 'part', azimuthDeg: 100, elevationDeg: 15, padding: 1.3 },+} });+```++Use either `shot` or the legacy `part`/`view`/orbit fields. Exact names can be ambiguous; returned paths identify a particular node. `visibility: 'isolate'` removes neighboring geometry for this view without changing the asset.++For multiple subjects in one call, use `kiln_render` or edit `capture`:++```js+{ version: 'kiln.capture.v1', cols: 2, size: 512, output: 'separate', shots: [+ { name: 'Context', subject: { path: PART_PATH }, camera: { type: 'orbit', relativeTo: 'asset', azimuthDeg: 45 } },+ { name: 'Behind', subject: { path: PART_PATH }, visibility: 'isolate',+ camera: { type: 'orbit', relativeTo: 'part', azimuthDeg: 180, elevationDeg: 0 } },+] }+```++Versioned capture has 1–9 shots, columns 1–3, and size 128–1024; output is `grid` or `separate`. Legacy presets use `COLSxROWS`, and each optional cell has `azimuthDeg`, `elevationDeg`, `zoom`, and `name`. Do not combine the two capture shapes.++Explicit cameras use `{ type: 'explicit', projection: 'perspective', position, target, up?, fovDeg? }` or `projection: 'orthographic'` with optional `halfHeight`. Their vectors are world-space. Orbit `relativeTo` supports world/asset/part frames. Use returned camera records to verify how a request resolved.++## Motion and interiors++```js+kiln_screenshot_animation({ programRef: REF, clip: 'Open',+ frameTimes: [0, 0.35, 0.7, 1], framing: 'locked',+ shot: { subject: { path: PART_PATH }, camera: { type: 'orbit', relativeTo: 'asset', azimuthDeg: 90 } },+});+```++`frameTimes` contains phase fractions 0..1 in the order you want (1–9 entries). Alternatively use `frames` (2–6); the two are mutually exclusive. `framing: 'locked'` supports comparisons across motion; `follow` reframes the changing subject. `perFrame: true` returns separate frames. A sampled sheet cannot prove everything between sampled phases.++`kiln_view_interior` accepts optional versioned `capture` for roof-off shots. Normally roof semantics/name are resolved automatically; `nodeName` selects a roof explicitly. Review `roofsHidden` and warnings rather than assuming every obstructing surface disappeared.++Read fidelity and fallback receipts before drawing conclusions. Geometry-flat images do not verify texture/roughness/metalness, and bounds/anchor measurements do not establish visual quality.++## Named anchors and measurements++Use ordinary named child groups or pivots for attachment points. Select their exact returned paths; no extra anchor language is needed. `createPivot` adds a `Joint_` prefix.++```json+{+ "programRef": "RETURNED_REFERENCE",+ "measure": {+ "from": {"subject": {"path": "RETURNED_ANCHOR_PATH"}},+ "to": {"subject": {"path": "RETURNED_PART_PATH"}, "point": [0, 0.2, 0]}+ }+}+```++This is a `kiln_inspect` request. Each point is local to its selected node; omitting it selects that node's origin. The returned measurement contains both world points and their straight-line distance in asset units. It is not a surface-distance or clearance test.++Exact-shot inspection also returns `subjectFrame`: local/world bounds, a column-major world matrix, origin, and world-space axes. Use these receipts to place explicit world-space cameras or check an attachment. Camera suggestions are an authoring decision; there is no `suggestViews` request field.