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.
Neutral runtime implementation receipt
Date: 2026-09-21. Scope: the bounded P03/P04/P05 runtime foundation approved in the staged design. This is implementation evidence, not completion of the entire category cutover or those three plan tasks.
Implemented behavior
src/requirements-context.tsstrictly validates detached host binding snapshots, current/full semantic hashes, contiguous revision history and the effective requested-policy/advice hashes. No binding yields neutral empty requirements. Legacycategory/intentexecution inputs fail withREQUIREMENTS_MIGRATION_REQUIREDbefore source evaluation. Normal execution never invokes migration or manufactures a prop intent.src/render.tsruns universal and portable-material kernels through category-free inputs. Modelmeta.categoryis descriptivemeta.modelCategory; generated requirements, intent, binding and claimed policy/advice hashes are removed from authoritative result metadata. The actual context is top-levelRenderResult.requirements. Requirements provenance is not inserted into GLB bytes.src/qa/requirements-applicability.tsmaps all 27 actual registered rules, preserving their current modes. Six universal kernels and the portable-material kernel run through the new adapter. Remaining domain checks have explicitnotRequested/notEvaluateddispositions, never a hidden synthetic category.src/qa/requirements-report.tsemits report schema 2 withrequirementReadiness, coverage, hashes and separateaccepted/incomplete/blockedacceptance. Any requested field not covered by a qualified adapter makes acceptance incomplete. Disabling or demoting a mandatory kernel also prevents accepted status. Actual exact blockers remain blocked. Inferred/unknown statements do not become mandatory gates.- Clip existence/targets and the explicit precomputed-tangent requirement use current kernels. Other requested fields remain visibly unevaluated, including fields partially overlapping a universal observation. This intentionally errs toward incomplete acceptance, rather than claiming a domain has been migrated because one measurement exists.
src/evaluator/protocol.tsvalidates current reports against the transported binding and the original host request. Both the generic transport andsrc/evaluator/subprocess.tsreject a self-consistent result from another lineage. The subprocess also binds the response request ID and rejects legacy options before spawning. Isolated execution delegates to this boundary.src/build-cache.tskeys acceptance by separate policy/advice hashes while excluding labels, prose and lineage from semantic identity. A cache hit refreshes current provenance. Wrong-policy, corrupt or fabricated-acceptance entries become misses. A fresh evaluator response with another lineage fails before cache admission. Geometry bytes remain identical under different requirements; existing image/artifact cache keys were not changed.src/requirements-context.tssupplies a versioned source-reference checkpoint, whose decoder yieldshost-binding-required.src/requirements-store.tsnow has an explicit host-only restore operation: validate the saved history, reject an occupied lineage, require restore authority, preserve historical revisions and append the current host decision.src/requirements-identity.tsholds the shared semantic binding hash without a store/validator import cycle.
accepted is acceptance against the declared requirements and currently mandatory kernels. It is not a visual score, a claim that every asset domain has been checked, or a substitute for importer/runtime qualification. Unrequested or unmeasured observations remain visible in rule/dimension coverage.
TDD and verification
Observed focused red failures before the implementation covered source metadata authority/legacy options, policy-sensitive reuse, imported/forged report receipts, restore history, and subprocess request/lineage substitution. The final adversarial cache failures were wrong-policy reuse, fabricated accepted status, and relabeled fresh evaluator output. The final subprocess failures were foreign lineage, foreign request ID and legacy options reaching worker launch. Each passed after its bounded fix.
Final aggregate command:
bun test src/contracts/requirements.test.ts src/requirements-store.test.ts src/requirements-context.test.ts src/qa/requirements-applicability.test.ts src/qa/requirements-report.test.ts src/qa/universal.test.ts src/qa/material.test.ts src/__tests__/neutral-render-runtime.test.ts src/__tests__/build-cache-requirements.test.ts src/__tests__/build-cache.test.ts src/__tests__/build-cache-admission.test.ts src/__tests__/geometry-gains.test.ts src/evaluator --timeout 20000
Result: 157 passed, 0 failed, 558 assertions across 24 files, 11.62 seconds. The optional build-cache-admission.test.ts path matched no file and is not counted; the tested existing cache suite is build-cache.test.ts. Evidence includes actual subprocess transport, cancellation/pipe-order regressions, evaluator production-boundary tests, and the packaged Node worker fixture. That existing worker test rebuilds runtime bundles as part of its own setup; generated dist/ changes are not a deployment.
bun run typecheck passed. Biome checked all 25 touched/new TypeScript files for this lane after formatting with no remaining errors. No live provider, commit, push or publication was performed. Full repository acceptance remains root's integrated gate after the remaining migrations.
Required integration before these plan tasks can close
| Area / task | Exact remaining seams | Required behavior |
|---|---|---|
| P03, P06, P07: registry and CLI | src/tools/registry.ts: KilnToolContext, trustedCategory, evaluator calls around runRenderMetrics/runRenderViews, source inspection helpers, save render options. src/cli.ts: category parsing and render/evaluator options. |
Bind requirements in the host, give source tools only the reader/snapshot, forward the current binding on every evaluation, remove execution categories and return actionable migration errors. Include current requirements and report schema 2 in all output types; casts to AssetQaReportV1 are still present. |
| P03/P05: current references and delivery | src/tools/registry.ts kiln_save and kiln_library restore; persisted asset library manifest/build-options contracts; program-reference lineage selection. |
Save the exact current source reference, requirements checkpoint and report together. On restore, validate and explicitly authorize the host binding before editable source execution; preserve revision provenance across restart. Do not merely copy untrusted imported requirements into execution options. New helpers exist, these consumers are not wired. |
| P03/S01-S10: native agent | src/agent/generate.ts both generation entry points and final artifact render; src/agent/run.ts default intent/category construction and final evaluator call; src/agent/surface.ts, src/agent/tools.ts, src/agent/grade-refine.ts; prompt composition. |
Replace current default prop/intent behavior with host requirements and a canonical program-reference path. A prompt/recipe label is descriptive and cannot establish or clear policy. Native legacy calls now fail explicitly until migrated. |
| P09-P14: all domain measurements | New map records architecture, mobility, rig, foliage, prop/contact, environment/navigation/tiling, VFX/final GLB effects, modular join, scope, reference and geometry observations. Existing old-context QA functions remain available for calibration/migration evidence. | Extract and qualify neutral adapters, preserve exact versus heuristic modes, remove retired old execution exports at coordinated cutover. Restore requirement-driven diagnostic view planning, including character/vehicle captures. New render.ts deliberately does not call those old category selectors. |
| Q03: inspect and view evidence | src/render.ts standalone inspectSceneStructure category advisory, GLB optimize/grade category convenience options; registry mesh/interior/source inspection and category-dependent diagnostics. |
Use current requirement context for applicable evidence while keeping camera/geometry caches independent; record unsupported checker limits separately. Generic render inspection is neutral now; the standalone old convenience APIs need their coordinated clean-cutover disposition. |
| L03/P03: evaluator version cutover | EVALUATOR_REQUEST_VERSION, EVALUATOR_RESULT_VERSION and exported *V1 transport helpers/types; worker, host transports, saved cache envelopes and scripts. |
Nested requirements context/checkpoint and QA schema are versioned now. Outer request/result constants remain v1 only during this staged branch integration, as directed by root. Perform a coordinated outer v2 rename and consumer/fixture update before package acceptance; reject old current-execution envelopes, do not add a fallback decoder. |
| P15/V01: corpus and experiments | Existing category-render tests and src/experiments/w6-material-vegetation.ts, src/experiments/w7-vegetation-lod.ts; old category QA corpora. |
Replace live execution inputs with explicit requirements, preserving intentional old-data migration fixtures. Add mixed-domain/omission/revision/restore consumer regressions once those callers are wired. Existing old intent execution is not silently converted. |
P04's core cache behavior is implemented and verified here, but integrated cache/caller acceptance still depends on P03 and the outer wire cutover. P05's record, validation and host restore foundation is implemented; save/edit/restart wiring remains open. This receipt does not mark P09-P14 or any unsupported obligation complete.