[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75V5ZJ8SC0VEMPT2VKCFG0J":3,"skill-same:01M75V5ZJ8SC0VEMPT2VKCFG0J":352},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M75V5ZJ8SC0VEMPT2VKCFG0J","rendering",null,"Maps Puck's SDF renderer and GPU code: mapCore, mesh bake, HLSL kernels, sdf-isa.hlsli, SdfOp, C#\u002FHLSL layouts, world.shaders.reload, field scopes, GPU cost and occupancy. Sculpting: sdf-authoring.","ByteTerrace\u002FPuck","ByteTerrace","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F18753984?v=4","01M75V2WCB9PGGC3H7RZC7AXPS","01M75V2WD0NJPRNP5HJ75VZGD0",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: rendering\ndescription: \"Maps Puck's SDF renderer and GPU code: mapCore, mesh bake, HLSL kernels, sdf-isa.hlsli, SdfOp, C#\u002FHLSL layouts, world.shaders.reload, field scopes, GPU cost and occupancy. Sculpting: sdf-authoring.\"\n---\n\n# Rendering\n\nA map of Puck's GPU presentation code: where each part lives, the contracts\nthat bite when you change it, and how to see a change. [Rendering](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002FREADME.md)\nand its handbook explain the renderer; package READMEs own the detail. When this\nfile and the code disagree, the code wins and this file is corrected in the\nsame change.\n\nRendering is presentation: floats are legal, and nothing here may feed back\ninto simulation state. The deterministic contract lives with the fixed-point\nquery evaluator (`SdfFieldEvaluator`) and `maths-usage`.\n\n## Authored shading\n\nRead [authored shading](references\u002Fauthored-shading.md) for `SdfShadeProgram`,\nthe op table, CPU admission, slice ownership, helper-closed cost, shadow demand\nand generated interpreter\u002Femitter semantics, shared GPU phase invocation, the\nbounded dispatch planner, and the three views and glass kernels (plain,\ninterpreter, specialized set) with their one publication door. CPU admission\nproves neither driver spill behavior nor the measured dispatch margin; those\nremain in the author-shader plan. A views or glass register reading names its\nkernel: `[pipeline-statistics]` lines (Vulkan) print `sdf-world-views`,\n`sdf-world-views-plain` and `sdf-world-views.shade-\u003Cset>` apart.\n\n## Camera bloom\n\nThe [bloom decision](..\u002F..\u002F..\u002Fdocs\u002Fdecisions\u002Frendering.md#bloom-is-a-cameras-scatter-applied-once-before-tonemapping)\nowns the design; the [frame handbook](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fframe-rendering.md#camera-bloom)\nowns authoring and pass order. `SdfWorldPackage.WithBloom` declares the endpoint's\noptional output-relative pyramid; `SdfBloomRecorder` records its down\u002Fup passes.\n`SdfWorldPasses.Entry.OpticalBloom` gates transport, diagnostic, full screen\nfidelity and disabled views before allocating. Keep that gate and `world.bloom`'s\nreported bypass reasons aligned. Direct root views export the named `bloom` image\nfor `place.bloom`; filmed cameras use `bloom-apply`. The direct image\n`BloomDirect` binds the composite's output member. A named image publication\nmust retain its storage through graph replacement and carry its readable layout,\njust as the default image does. Optional absent bloom binds the shared stand-in.\nKeep root placement's optional input stable across enable\u002Fdisable: a graph still\nrendering while its replacement builds must not lose its per-frame leased binding.\nNever bloom portal\u002Fwindow\u002Fmirror transport or raw screen textures. Never sharpen\nthe scatter. Every diagnostic except the bloom-only view bypasses optical scatter.\n\n`Shared\u002Fbloom-filter.hlsli` uses cell-edge reflection and conservative cell\nintegration. Unit-sum taps alone only preserve constants: edge clamping duplicated\na corner impulse's energy, and point resampling odd levels changed their mean.\nKeep the constant, impulse and odd-grid witnesses in `BloomEnergyLawTests`; include\nthe final placement tent and FP16 storage. Fractional radii blend symmetric kernels\nat adjacent integer widths, rather than combining their interpolation with the\nresampling. Placement can minify the retained source envelope during a shrinking\nlayout transition. Integrate its entire footprint, including edge hats; the axis's\nthree cached pairs are not a tap limit. Keep the 2×, 4×, 10× and one-pixel placement\nconstant\u002Fimpulse witnesses. Renormalizing truncated taps still discards energy.\n`CameraBloom` is a value; `WorldBloomLawTests` covers on\u002Foff allocation.\nSeat lens selection happens beside pose selection from the active endpoint's program.\n`PlaceViews` derives optical placement from the resulting snapshots, including routed\nseats and camera-mode overrides. Never infer it from unused boot-world programs.\nPublish that demand for the next `BeginFrame` reconciliation. Reconfiguring from\nplacement mixes newly selected capture-fill\u002Fenvironment reads with footprints\nalready formed for the current frame and can make a capture refuse or crash.\n\nPin exposure (`world.exposure pin`, which also stops local adaptation) for on\u002Foff captures, and record each EV with\n`world.exposure`. Use `world.rate pause` to hold one simulation tick for the pair.\n\nFor a motion burst, arm it inside a sustained pan and inspect its reported ticks:\nan eight-tick pan can finish before the first of eight asynchronous captures lands.\nMotion still runs publish an Operator attachment, as sweep and motion routes do.\nUse it to inspect a stalled run; for shadow-only diagnostics, disabling indirect\nlighting avoids an unrelated probe-convergence wait. Keep lighting enabled for\nnormal frame measurements. `world.cull frustum` changes camera selection too;\nuse `world.cull camera` to isolate cascade culling with camera occlusion unchanged.\n`world.wait residency` follows the latest render schedule through\n`SdfWorldPasses.PendingMeshesIn`: newly scheduled renders, standing and deferred\ncontributors owe their geometry, including before the first submission. The host\nresidency is checked directly. Unread views and waiting views with no produced image\ndo not contribute. Readiness reads the schedule on the host pump, without looking\nits names up in a potentially replaced node set.\nA refusal names what the residency owes (`SdfWorldTables.MeshResidencyPending`):\nthe staged list's owed bytes and meshes, how many restore from the store or are\nin landing, whether background work may bind, and the arena's relocations, or the\nrequired upload against those submitted and completed and its fence. Landing runs\nat `SdfGpuWork.UploadBytesPerSecond` of wall time, so a boot owes the debug\nworld's 1.75 GB region for some seconds whatever the frame rate.\nWaiting on every allocated residency\ndeadlocks on hidden routed scenes whose GPU work correctly never starts.\n\n## Mesh pipeline limits\n\nGlass shadow extinction is authored by `SdfGlass.ShadowDensity` (zero by\ndefault; standard water opts in). Cascade selection's optical indirect phase\nroutes glass to `SdfMeshRasterPass.ShadowGlassKey`; opaque entry\u002Fexit stay in\ntheir own phases. Count glass vertices once and each executed opaque phase.\nOnly a program with a drawn positive-density glass shape adds optical storage\nthrough `WithGlassShadows`; the graph's ports govern its allocation, clear and\nsurface reads. Each texel holds three words (signed depth and nearest entry).\n`pipeline.inspect world` (or a session node named by `world.counters gpu`)\nreads the installed graph's named allocations and actual bytes. Read it beside\n`world.residency` and `host.memory`; those broader reports alone do not identify\nan optical buffer. A document reload clears the exposure pin, so pin the same\nEV again before comparing density-only reload stills.\nThe glass vertex variant clips zero-density triangles before rasterization;\nopaque vertices export only position and clip distance. Density has its own\ncadence signature, shared by cascades and surface, including palette-only uploads.\nThe cascade's optical-depth buffer integrates to its first opaque depth with\nthe shared `frame\u002Fsdf-optical-depth.hlsli` accumulator. Surface shadow taps\nread extinction and nearest glass entry beside the opaque depths. Glass is\nstill absent from the irradiance trace. Keep the separate glass descriptor\nset: binding the sampled entry depth while it is an attachment is invalid on\nVulkan even when an earlier shader does not read that binding. Return the\nentry depth to its attachment layout before the graph's outgoing transition.\nMaterial row 25.w carries shadow density beside cel ink RGB; keep its C# pack\nand HLSL load together without changing the row stride.\nFor a neutral-default comparison, omit density from both prototype palettes\nand field materials in `state.world`; changing only the prototypes leaves\nfield water shadowing. Compare fresh base and head processes with lockstep and\npause enabled before startup, identical camera, tick and pinned exposure. A\nsurface-only hot swap cannot establish the complete renderer's neutral default.\nThe glass fragment returns zero depth, which fails the pipeline's Greater test\nagainst non-negative opaque exit depth while preserving its optical side effects.\n`world.shaders.reload` replaces that kernel but not `SdfMeshRasterPass`'s\nocclusion\u002Fselection pipeline; a selection diagnostic needs a rebuilt host.\nFor an independent vertex check, `world.cull off` and one fixed `world.detail`\nlevel make the mesh, glass and cascades select the same geometry: each cascade\nmust count twice the mesh vertices plus exactly the glass vertices.\n\nDraw selection reads the retained `SdfWorldTables` staged draw span, the same\nrecords whose boxes and GPU records were uploaded. Never borrow the frame source's\nmutable draw list across staging: a portal handoff can clear it while the retained\ncount still names the previous records.\n\n\nThe frame rasterizes baked geometry. `SdfCompositionFrameSource` allocates the\nlive transform table and reports an actual `[world.render] envelope`; it builds\nno worst-case probe. `WorldRigidAssets` emits local creation templates once and\nsupplies `SdfMeshInstance` roots and identities. `SdfMeshDresser.Dress` expands\nthe shared mesh into copies without program or palette duplication. Fixed placements\nreuse the ordinary static emitter in prototype-local ranges (`SdfMeshTemplateRange`),\nincluding its per-shape bounds, detail regions and separate groups. The largest\noccurrence bakes at ordinary authored scale; copies use relative matrices. Do not\nreplace that partition with one dynamic whole-object range or promote the default\nbake spacing into explicit detail: both increase tessellation. `IsDynamic` selects\nstatic lighting membership; `UsesRootMaterialFrame` independently selects material\ncoordinates while retaining the root slot for skinning and portals. Dressing retains\ngroup\u002Fcopy topology and immutable per-surface picking metadata across pose changes.\nIts flat reverse binding indexes consume the frame's captured transform changes;\nthe output draw journal and GPU tables retain independent consumer cursors. Keep\nthe source identity, captured serial, roster and row count together. Never use a\nlater producer serial for a borrowed frame, map landing-filtered indices back to\nthe full roster, or skip the final GPU history settle because no draw changed.\n`GpuChangedRows` owns the bounded history for both transform and draw changes;\nmissing\u002Ffull\u002Fexpired history and active portal clipping refresh conservatively.\n`world.residency` reports logical journal\u002Fscratch array bytes separately from\nmesh residency and the overlapping process\u002Faccount\u002Fbackend memory readings.\nPending bake demand reads the same occurrence index and transformed copy boxes;\nprototype-origin boxes and a union of far-apart copies misprice both priority and\nnear-residency diagnostics. Animated\ncreation fields use root and motion-owner deltas; CPU pose scratch remains per\nactual shape. Bake groups keep separate bounds and detail even when they share\na motion slot; the lattice frame and instance selector are independent. Use\n`boundInSlotFrame` for rest-pose offsets on a moving owner's slot; a world-axis\noffset would move the bake's box away from the geometry when that owner starts turned. A skin\npast 255 members throws before queuing, instead of attaching excess members\nto the root. Volume overflow is explicit. Scope depth is 4, screen bindings 32,\nand derived faces follow authored screen indices. `SDF_MAX_INSTANCES` bounds\none bake program, not a per-world render budget.\n\nA retained separate bake group must still ride the newly planned `Slot`, even\nwhen its instance selector and local geometry stay unchanged. Rigid draw poses\nare picking metadata; `SdfMeshDraw.MotionIdentity` names the stable body\u002Fsurface\nfor both whole-list and changed-record uploads. Rigid copies include the entity\naddress and pose-discontinuity epoch in that identity, so teleports and reseats\nseed the previous mesh matrix at the new pose, including authored meshes.\nNoncopy groups consume the same captured transform-reseat journal at mesh staging.\nA root or vertex-used skin-member cut advances the draw generation and seeds its\ncompact previous matrix, even when packed pose bytes are unchanged. Keep this\nconsumer cursor independent of dynamic-table and draw-change cursors; unknown\nhistory cuts transform-dependent draws conservatively. Ordinary continuous motion\ndoes not trigger a reseat roster scan. `SdfMovedTransforms.Commit` retains explicit\nequal-pose cuts during both incremental updates and repacks.\nRigid root followers observe\nportal carry history, reseeding when it expires. Isolation also filters rigid\ntemplates, parented paints and volumes, text and authored meshes.\n\n`SdfMeshLibrary` retains an age-ordered byte budget derived from available\nmachine memory, evicting oldest geometries rather than clearing the library.\nMeasure draw\u002Fvertex\ncounts, actual transform rows, program\u002Fmaterial bytes, region residency and\nbakes; the lead measures frame times and edit-to-running on a quiet machine.\n\n## GPU residency\n\nA table the host writes each frame is a `GpuRegion` (`Puck.Abstractions\u002FGpu\u002FResidency`). Create it with the\nprofile constructor so it chooses ring, in place or staged by `GpuResidency.Select`, and grow it only through\n`Grow`, which chooses again and restages a region past a ring's share of the aperture; never select a policy or\nreplace a region in the owner. A fixed policy (the always-staged mesh region, uniform frame blocks) uses the policy\nconstructor. Round a constant-buffer block with `IGpuBindings.ConstantBufferBytes`. What `Grow` returns retires\nafter the submissions that read the old buffers (`SdfWorldTables.Retire`).\n\nA growing table picks its next size with `GpuCapacity`: `Grown` (a fraction of the current size, for amortized growth)\nor `Headroom` (a fraction over the need, for a table fitted to its need). An object replaced while a queue may still\nread it waits in a `GpuRetirementQueue` keyed by a completion point counted on one queue (an upload's sequence, a native\nfence value). A package recorder never sees a fence: a result its recording captured (a readback, a publication, a\nsubmission's shading identities) lives in a `RenderGraphSlotResults` and is read only when the node reports the slot\ncomplete (`IRenderGraphPackageReadback.Completed`), which the node does from `WaitSlot` as it reuses the slot or as\nsoon as an owed slot's fence reads signaled (`ShaderPipelineRenderNode.PollReadbacks`), and before it disposes a\nretired graph whose submissions completed. Buffers a recording replaced retire at that slot's next completion\n(`SdfMeshOcclusion.Completed`). A reusable slot fence reads signaled after an abandoned submission and after a loss's\ndrain, so polling one is never a proof.\n\n## Far-cascade caster selection\n\n`SdfMeshOcclusion` and `sdf-mesh-occlusion.comp.hlsl` are the one classification\ndoor for camera and cascade draws. The far cascade reads the current mesh target\nthrough a graph dependency. `sdf-caster-receivers.hlsli` reprojects every covered\ncamera sample with its render grid and jitter into light-space occupancy cells;\nOR-reduced parents conservatively cover a query rectangle. Expand caster boxes\nby `SdfMeshCull.ShadowFilterTexels`, the complete search\u002Ffilter and normal-offset\nreach, before querying. Keep unboxed draws. Camera invisibility of a caster is\nnever evidence that it cannot cast a visible shadow.\n\nEntry depth uses the camera pass's two-phase mechanism in the light's orthographic\nprojection: draw previous survivors at current transforms, build the maximum\nforward-depth pyramid with infinity for holes, then draw new survivors. Phase\nindices have one meaning: early entry, late entry, solid exit, thin exit, optical.\nExit (and a future identity peel) and glass lists depend only on box\u002Freceiver\nselection, never entry visibility. They execute after entry depth is final.\nNever use an earlier exit\u002Fpeel image to reject a caster.\n\nA receiver-conditioned cascade retains a coverage identity with each submitted\nlayer (`SdfWorldPasses.ReceiverSignatureOf`): the sample grid its receivers were\nclassified on (cull level, detail, extent, scale, cut, bindings), excluding the\nlight, the camera, the geometry and the jitter. The far rate can hold or split\nwhile both layers cover that grid; a changed grid refreshes both. The hold's own\ncamera tolerances and the receiver cells' neighbouring-cell margin cover the\ndrift the identity leaves out; a receiver a moving caster uncovers lags by the\nsame refresh its shadow does. Hashing the geometry signature or the jitter here\nends the hold on every frame anything moves, so a receiver-conditioned cascade\nthen pays a whole refresh each frame (`sdf.rates` shows `rendered` on every\nframe and no `split` or `held`). Readers use each layer's committed light\ncamera. The graph keeps the sampling barrier, while the package projects its\ncadence dependency onto the consumed receiver inputs, so unrelated mesh writes do\nnot invalidate it. `world.cull camera` removes the receiver input and disables cascade\ndepth occlusion, retaining the original far rate and camera occlusion. Count held\nonly when the pass stands, and rendered\u002Fsplit only on successful submission.\nFor a complete-refresh cost comparison, set `world.rates shadow-far off` on\nboth sides. Also measure ordinary cadence: replacing a split refresh with two\nculled layers can cost more in a view with little rejection even when a whole\nrefresh costs less. Report those separately and read `sdf.rates` beside the\ndraw\u002Fvertex counters; a split frame's counts cover only its submitted layer.\nCompare counts beside time and shadow diagnostic captures on both backends;\ninclude a moving camera and reduced\u002Ftemporal render grids. The receiver scratch\nshares the depth allocation and its existing slot-fence retirement; early\ncompute samples camera depth, late compute samples light depth, in separate sets.\n\n## Evidence-preserving diagnostics\n\n`world.debug-view colliders|contacts` uses the beauty path through temporal\nresolve, sky, glass, fog, exposure and the root tonemap\u002Fsharpen. Keep\n`DebugViewModes.PreservesScene`, `sdfDebugPreservesScene` and the temporal epoch\nkey together. Diagnostic marks belong only to `AnnotationWriter.EmitDiagnostics`'s separately\nreserved overlay channel; its masks protect every causal footprint, including\noverflow beyond the sixteen visible pins. Focus removes chroma outside those\nfootprints without changing luminance. Keep masks exact rather than coalescing\nthem into spatial bins: those bins show as rectangular chroma islands in focus.\nBeyond the mask reservation, conservatively protect overflow and leave focus\noff. Place badges beside witnesses with short leaders; collisions overflow to\nthe report rather than forming a screen-wide leader band. Never paint a diagnostic into history,\nthe visibility buffer or lighting.\n\n`WorldDiagnostics` separates collision-versus-authored-field from\nfield-versus-baked-mesh. The latter reuses the irradiance scene's retained\ntriangle hierarchy only when its exact draw records and delivered document\nversion match and the bake has settled. The client document is not necessarily\nthe server's object: compare `WorldDocumentVersion` by value, never their\ndefinition references. `SdfMesh.BakeCell` comes from the actual\ncontour lattice, survives cache storage and material renumbering, and supplies\nthe hit triangle's half-cell-diagonal budget. No saved baseline or allowlist is\ninvolved. A second `SdfWorldPicker` per instance asynchronously reads cluster\ndepth without stealing pointer requests; discard results across camera, mesh,\nprogram or view changes.\n\n`WorldDiagnosticGeometry` must read each compiled collider as physics does.\nFor `RoundedBox`, `Extent` is the inner box and `Radius` is its spherical\noffset: sample its faces, edge fillets and corner fillets, then apply `Rotation`.\nDistance queries inverse-rotate and subtract the radius after measuring the\ninner box. Treating this kind as an unrotated sharp box creates metre-scale\nfalse findings and also misclassifies buried union surfaces. Compare witnesses\nwith `FixedSurfaceQuery` and the contact narrowphase. Chamfered authored Boxes\ncan still yield real inward discrepancies from their conservative inside\ncolliders; neither the fillet nor the chamfer is an error-budget allowance.\n\nOpposing planar face interiors of touching boxes are inside their union, not exposed collision boundaries; certify that local relation before comparing them with the exterior mesh. Edges and corners stay measured, except against the mesh where no free ball of the hit triangle's half diagonal reaches the witness (`WorldDiagnosticGeometry.OpensOnto`): the fillet groove along an edge three filleted boxes share is in the field and the colliders but under the bake's cell, and counts `enclosed`. Only exact collider distances may close such a void; a bound's blocks a ball only when its centre lies inside. Mesh diagnostics use `WorldDiagnosticMeshQuery` and the retained scene's\n`TryNearestSurface`, not normal-ray hits. The nearest query reuses both levels\nof the trace hierarchy and tests world-space triangle distances (object-space\nnearest points are wrong under nonuniform scaling). It includes edges and\nzero-distance witnesses. The search radius is four times the sum of\ncollision\u002Farithmetic precision and the scene's largest bake half diagonal; only the returned\ntriangle's own precision enters its budget. A miss is unknown. Grounded checks\nrequire the nearest retained support surface to be walkable; a missing or\nunqualified hit is unknown too. `coverage.comparisons` counts red, clean and\nunknown witnesses separately from causal findings. Never add a fillet, bound\nor snap-reach allowance, or suppress authored-field findings to quiet the mesh\naudit. The owning decision is [diagnostic evidence](..\u002F..\u002F..\u002Fdocs\u002Fdecisions\u002Frendering.md#a-diagnostic-view-never-covers-its-evidence).\n\nCaptures on the synthesized overlaid root retain the beauty image, annotated\nimage and JSON together. Attach the companion to `WorldRootGraph.OverlayInstance`,\nwhich serves the screenshot, not `ComparisonLiveRoot`, which is the beauty\nsource. The capture companion waits for both display encoders;\nits closure owns pixels and JSON before background encoding starts. Custom\nauthored roots need an equivalent beauty\u002Foverlay split before they can supply\na triplet. See [scene diagnostics](..\u002F..\u002F..\u002Fdocs\u002Freference\u002Fcommands.md#scene-diagnostics)\nfor commands, coverage and the GPU handoff checks.\n\n## Where things live\n\n| Area | Code | Explanation |\n|---|---|---|\n| Program model and ISA | `src\u002FPuck.SignedDistance` (`SdfOp`, `SdfShapeType`, `SdfBlendOp`, `SdfDomainOp`, `SdfProgram*.cs`, `SdfProgramBuilder*.cs`, `SdfOpRoles`) | [program model](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fprogram-model.md), [Lipschitz](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Freference\u002Flipschitz-and-field-correctness.md) |\n| CPU interpreter and queries | `src\u002FPuck.SignedDistance\u002FQueries` (`SdfFieldEvaluator`, its `Bounds`, `Cull` and `Certificates` partials, `BakedWorldQuery`) | [queries and determinism](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fqueries-and-determinism.md) |\n| Mesh bake | `src\u002FPuck.SdfVm` (`SdfMeshPathBake`, `SdfMeshLibrary`, `SdfMeshStore`, `SdfMeshRegionArena`); `src\u002FPuck.SignedDistance\u002FBaking` (`SdfSampledLattice`, `SdfDualContouring`) | [mesh bake](references\u002Fmesh-bake.md) |\n| GPU engine | `src\u002FPuck.SdfVm` (`SdfWorldResidency`, `SdfWorldTables.*.cs`, `SdfWorldPasses`, `SdfWorldPassRecorder`, `SdfWorldPipelines`) | [`Puck.SdfVm` README](..\u002F..\u002F..\u002Fsrc\u002FPuck.SdfVm\u002FREADME.md), [frame rendering](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fframe-rendering.md) |\n| Kernels | `src\u002FPuck.SdfVm\u002FAssets\u002FShaders\u002FSdf`: `isa\u002F` (generated), `field\u002F` (the interpreter the bake samples through: `mapCore` in `sdf-map.hlsli`, the part walk in `sdf-parts.hlsli`), `frame\u002F` (the visibility record, the mesh tables, reprojection), `shade\u002F`, `sky\u002F`, `debug\u002F`, and under `passes\u002F` one `*.comp.hlsl` wrapper per dispatch plus the stage modules | [kernels](references\u002Fkernels.md) |\n| Generated kernel declarations | `src\u002FPuck.SdfVm.Model` (`SdfIsaHlsl`, `SdfRenderHlsl`, `SdfKernelInterfaces`, `SdfSkyKindsHlsl`) and `src\u002FPuck.Shaders.Model` (`ShaderDeclarations`); written by `src\u002FPuck.Shaders.Generator` before any kernel compiles | [sync pairs](references\u002Fsync-pairs.md) |\n| Cameras and views | `src\u002FPuck.SdfVm\u002FViews`; `WorldViewInstances`, `WorldScreenBinder.*` | [motion and views](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fmotion-and-views.md) |\n| World data into frames | `src\u002FPuck.World.Client` (`WorldFramePresenter`, `WorldSceneEmitter`, `WorldPlacementStamper`, `WorldCreationInstances`); `CreationStampEmitter` | `puck-world` skill |\n| Shader packages, pipelines, render graph | `src\u002FPuck.Shaders` (`RenderGraphRuntime`, `ShaderPipelineRenderNode`, `ShaderPipelineCompiler`), `build\u002FShaders.targets` | [shaders reference](..\u002F..\u002F..\u002Fdocs\u002Freference\u002Fshaders.md), [runtime contracts](references\u002Fruntime-contracts.md) |\n| Backends | `src\u002FPuck.Vulkan`, `src\u002FPuck.DirectX` and their `.Presentation` projects | [contributing: GPU support](..\u002F..\u002F..\u002Fdocs\u002Fdevelopment\u002Fcontributing.md#gpu-support-and-shader-builds) |\n\nFind the existing mechanism before adding one: `puck references`,\n`puck declarations` and `puck search -M 0` (the `symbol-analysis` and\n`content-search` skills).\n\n## What already does it\n\nThe map above answers \"where is symbol X\". A duplicate is written when the\nquestion is \"what does X\" and no index answers it, so this table is by\ncapability. When your capability is in it, read the home before writing a line;\nwhen it is not, search by what the code does, not by the name you expect, and\nadd the row you found.\n\n| You need to | Existing mechanism | Home |\n|---|---|---|\n| Evaluate the field on the CPU, deterministically (contact, picking, bounds, cull certificates) | `SdfFieldEvaluator`; its GPU partner is `mapCore` | `src\u002FPuck.SignedDistance\u002FQueries`; [sync pairs](references\u002Fsync-pairs.md#instruction-semantics-shared-by-both-interpreters) |\n| Bake a mesh from the field, or find the one already baked | `SdfMeshPathBake` (the path), `SdfSampledLattice` and `SdfDualContouring` (the sampling and contouring), `SdfMeshStore` (the shared on-disk cache of baked meshes, one set per bake identity) | `src\u002FPuck.SdfVm`, `src\u002FPuck.SignedDistance\u002FBaking`; [mesh bake](references\u002Fmesh-bake.md) |\n| Make coarser levels of a baked mesh, or choose a draw's level | `SdfMeshCollapse` (half-edge collapse, every level a subset of the mesh's own vertices), `SdfMeshDetail` (the level a draw takes) | `src\u002FPuck.SdfVm` |\n| Contour a group's field again at a coarser cell, or measure any level's error against the field (bracketed both ways, enclosure, material and normal runs) | `SdfMeshPathBake.ContourLevel`, `SdfMeshFieldLevels` (offline, `puck mesh audit --cpu --field-levels`) | `src\u002FPuck.SdfVm`; [mesh bake](references\u002Fmesh-bake.md) |\n| Skip drawing what a view, a cascade or the previous frame hides | `SdfMeshBox` and `SdfMeshCull` (host boxes), `SdfMeshOcclusion` (the depth pyramid test) | `src\u002FPuck.SdfVm`; [the dispatch bullets](#which-dispatch-owns-the-code) |\n| Put the world's placements into the program a frame draws | `WorldPlacementStamper` (static placements), `WorldCreationInstances` (animated, attached and inhabited creations), `CreationStampEmitter` (a creation's shapes) | `src\u002FPuck.World.Client`, `src\u002FPuck.World.Authoring\u002FAuthoring` |\n| Decide when a frame rebuilds and how it presents | `WorldSceneEmitter` (the composed revision), `WorldFramePresenter` (the `ISdfFrameSource` that delivers it) | `src\u002FPuck.World.Client` |\n| Add a camera or another view of the world | the view types in `src\u002FPuck.SdfVm\u002FViews`, `WorldViewInstances` | [motion and views](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fmotion-and-views.md) |\n| Run GPU work off the frame (a bake, a relight) | `SdfGpuWork` and its clients, `SdfMeshBakeGpuWork` | `src\u002FPuck.SdfVm`; [the bake's dispatch](#which-dispatch-owns-the-code) |\n| Compute irradiance, and check it on the CPU | `SdfMeshIrradiance`, whose CPU reference shares one probe lookup with the relight and the views shader | `src\u002FPuck.SdfVm`; [mesh GI](references\u002Fmesh-gi.md) |\n| Convert an image source's color or encode a display output | `ImageSourceConversion` and the display encode, each paired with its HLSL | `src\u002FPuck.Abstractions\u002FSources`; [sync pairs](references\u002Fsync-pairs.md#image-sources) |\n| Share a constant or a layout between C# and HLSL | a generated declaration (`SdfIsaHlsl`, `ShaderDeclarations`) first; a hand pair only where the table lists one | [sync pairs](references\u002Fsync-pairs.md) |\n| Add a pipeline variant to a pass | `GpuPassPipelineKey`: a field that changes the pipeline enters the key, or leases share the wrong pipeline | `src\u002FPuck.Shaders\u002FPipeline` |\n| Let an author program how a surface shades | `SdfShadeProgram` (the op table, admission, cost) | `src\u002FPuck.SignedDistance\u002FShading`; [authored shading](references\u002Fauthored-shading.md) |\n| Read where frame time goes | `world.counters gpu`, `world.gpu-timing`, the bake's `gpu-work=[…]` line | [performance and cost](#performance-and-cost) |\n| Divide by a fixed divisor, mix or hash packed keys, or compare keys, inside bake or presentation code | not rendering: the `Puck.Maths` primitives, which `maths-usage`'s Choose table lists | [`maths-usage`](..\u002Fmaths-usage\u002FSKILL.md#choose); `puck scan --only duplicates --against \u003Cbase>` before landing |\n\n## Which dispatch owns the code\n\nA view is a chain of separate dispatches: `mesh` (graphics, in two occlusion\nphases with the occlusion kernel between them, `SdfMeshOcclusion`) →\n`shadow-near`, `shadow-far`, `shadow-second` (graphics, the far cascade reading\ncurrent camera receivers) → `pyramid` (the ambient occlusion's\ndepth pyramid from the mesh target) → `surface` (each pixel's visibility record from the mesh\ntarget: normal, screen-space AO, the cascades' soft shadows into K;\n`passes\u002Fsdf-surface-stage.hlsli`) → `views` (materials and lighting) →\n`resolve` (reduced or temporal views) → `sky` → `composite`. A view of a\nprogram with a glass shape (`SdfProgram.HasGlass`) inserts `glass-clear` →\n`glass` (graphics, the glass draws alone) → `glass-shade` after `views`\n(`SdfWorldPackage.WithGlass`), and every later pass reads `glassLit` in the\nlit image's place. A view of a frame that runs authored programs inserts\n`views-filter` → `views-bins` before `views`, which then shades in bins\n(`SdfWorldPackage.WithBins`, [authored shading](references\u002Fauthored-shading.md#the-three-views-and-glass-kernels)). The surface and\nviews passes share one head and entry (`passes\u002Fsdf-pixel-pass.hlsli`,\n`passes\u002Fsdf-pixel-entry.hlsli`) and call no field query. The table in\n[kernels](references\u002Fkernels.md#the-frame) says what each writes.\n\nThe mesh bake's two kernels (`sdf-mesh-bake-mask`, `sdf-mesh-bake`, the one\n`mapCore` call site) are no pass of a view: they run as the residency's\nbackground GPU work (`SdfGpuWork`, its bake client `SdfMeshBakeGpuWork`), a\nring of slots each submitted on its own fence and refilled when a slot's job\ncompletes and its readback is released, pumped on the frame thread at the top\nof each frame and after each upload. A job binds the latest upload's World set\nwith its own point table and runs only while the tables' uploaded program is\nthe bake's (`SdfWorldTables.BindsBackgroundWork`, `BackgroundProgram`).\n`world.gpu-timing` does not see it; the bake's done line carries its\n`gpu-work=[…]` counts, each job's GPU time measured by its own timestamps.\n\n- **AO and soft shadows are estimated in the surface pass and filtered in\n  views.** The estimates (`sdfMeshAmbient`, `sdfMeshShadow` and their shared\n  4×4 tap pattern `sdfMeshPattern`, `passes\u002Fsdf-surface-stage.hlsli`) are the\n  surface pass's, written into the visibility record; views only averages them\n  over a 4×4 window (`sdfViewsFilter`, `passes\u002Fsdf-views-filter.hlsli`) before\n  shading. A wrong occlusion or shadow value (a dark band, a missing crease,\n  acne) is the estimate's, so an edit to the views lighting code changes\n  nothing; the window and the pattern's tile are a pair. A side is queried\n  wherever the light's diffuse response is non-zero, which for a wrapped\n  material reaches past the terminator to `n·l > -wrap` (`sdfMaterialShadowDemand`);\n  such a side reads the cascade's exit layer (below), or the wrap would shadow\n  itself away in the open. A side the response does not reach is never queried: its slot holds `SDF_SHADOW_UNQUERIED`\n  (`frame\u002Fsdf-shadow-visibility.hlsli`), which decodes as fully visible, and\n  the window's shadow average takes only queried pixels (`sdfShadowQueried`).\n  An unmeasured slot averaged in lights a one-pixel line along every\n  terminator and rounded edge the cascades shadow (indoors, a cosine just\n  above zero under the 100 klx sun), and no debug view shows it, since\n  `shadow` shows the average without its cosine. The average also leaves out neighbours whose normal\n  turns away, so a crease's two lit faces keep their own shadows. A sunlit spot on a wall's top under a slab is the\n  filter's (`sdfMeshShadowGap`): a tap counts the light hidden only inside the\n  light's cone over the point, and the penumbra is the nearest in-cone\n  blocker's. `world.debug-view ao`\n  and `world.debug-view shadow` show the filtered values, and `world.ao` toggles\n  the occlusion live.\n- **A cascade has two layers.** Each cascade pass draws its depth (every face,\n  `SdfMeshRasterPass.ShadowDescription`) and its exit layer (faces toward the\n  light culled, `ShadowExitDescription`) into its two outputs. A triangle the\n  surface pass sees turned from the light compares against the exit layer, so\n  its own body lets a wrapped material's light through while any other solid in\n  front shadows it; one facing the light keeps the depth, which holds no wall's\n  far face to leak light along the wall's foot. Winding says where light leaves\n  only for a draw that encloses a solid (`SdfMeshDraw.EnclosesSolid`); any other\n  draw (an open authored sheet, a portal-clipped body, a mirrored draw) enters\n  the exit layer whole, through the depth's cull-none pipeline, so it still\n  shadows a wrapped side behind it. A receiver turned from the light offsets\n  straight toward the light: an offset along its reversed face normal reaches\n  `1 \u002F (n·l)` times as far and passes a near blocker. A pipeline description field\n  that changes the pipeline must enter `GpuPassPipelineKey`: the cache shares one\n  pipeline per key, so a lease differing only in an unkeyed field silently gets\n  the other's pipeline (the exit layer then holds the depth's faces).\n- **Every raster pass culls draws by a host box** (`SdfMeshBox`, `SdfMeshCull`,\n  tested by `frame\u002Fsdf-mesh-selection.hlsli` through `SdfMeshOcclusion`): a\n  view's frustum, a\n  cascade's light box and the receivers it shadows. A box is the mesh's\n  position bounds through the draw's matrix and carry, so a draw whose vertex\n  stage moves vertices any other way (members' slots, a displacement) must have\n  no box (`SdfMeshBox.TryOf` returns false) or it vanishes while visible. A\n  missing object that `world.cull off` brings back is the cull's;\n  `gpu.vertices` in `world.counters gpu` counts what each pass draws. The same\n  box chooses each kept draw's level of detail (`SdfMeshDetail`): the view's by\n  its error in display pixels over the box's nearest depth, with the 1.1-pixel\n  band kept per draw in the GPU state, a cascade's by its texel. The residency\n  uploads bounds and level metadata once\n  in each changed mesh record; every raster pass uploads 224 bytes of controls\n  and records one counted indirect draw per phase. A draw with no\n  box draws its merged mesh, so a skinned body never coarsens. A shape that\n  changes when `world.detail 0` is set is the level's.\n- **The mesh pass also culls by occlusion** (`SdfMeshOcclusion`,\n  `passes\u002Fsdf-mesh-occlusion.comp.hlsl`, the default `world.cull occlusion`):\n  phase one draws the previous frame's visible set through a counted indirect\n  draw (`IGpuRecorder.DrawIndirectCount`), the kernel builds a farthest-depth\n  pyramid from the target's fourth channel (forward depth) and tests every kept\n  box, phase two draws the newly visible over phase one's target and depth. The\n  recorder moves the mesh target between the phases itself and returns it in\n  its attachment layout. The early occlusion dispatch binds a sampled filler;\n  only the late set binds the target after its transition. Vulkan requires the\n  descriptor's image layout even when the selected kernel branch never samples\n  it, and rewriting one shared set changes both recorded dispatches.\n  Draws a kernel issues are counted on the GPU past the\n  counter rows (`GpuKernelCounters.DrawnWords`), so `gpu.draws` and\n  `gpu.vertices` include them. Cascade selection emits entry and exactly one\n  exit command per kept opaque draw: solid exits use front-face culling, thin\u002Fclipped\n  exits the unculled pipeline. Glass emits once in its extinction phase.\n  Count those emitted commands, without another\n  selection or history write. Count entry and exit with separate wave reductions:\n  64 lanes of a maximum mesh's vertices fit a uint sum, twice that does not;\n  `puckAddWork` carries each addition into the 64-bit accumulator.\n  `CountingRecorder.DrawIndirectCount` counts the API call,\n  not its unknown draw\u002Fvertex totals. An object `world.cull frustum` brings back is the\n  occlusion's. The identity is a root constant on Direct3D 12. Vulkan reads it\n  from the\n  argument buffer through its pushed word base plus `DrawIndex`\n  (`sdfMeshRasterIdentity`); first instance stays zero. When\n  `CanDrawIndirectCount` is false, the recorder issues those same initialized\n  slots in one fixed `vkCmdDrawIndirect` when multi-draw is available; otherwise\n  it advances the word base for each individual slot, including empty rejected slots;\n  no raster CPU cull or level path remains. Keep command-to-vertex read barriers and\n  preserve level state when buffers grow. Compute binds the read-only command\n  alias to the dummy, while raster binds its real command buffer; binding it\n  alongside the compute writer would demand conflicting resource states.\n  `SdfMeshCull.Keeps` remains a live host query: `WorldCreationInstances.Rates.Shown`\n  uses it to keep an off-camera body's pose updating when its shadow is visible.\n  It does not select raster arguments. Include that downstream World consumer\n  when checking references; the SdfVm test project's dependency closure alone\n  cannot establish that a helper is unused.\n- **Reprojection interpolates displacement.** `sdfPreviousPoint` in\n  `frame\u002Fsdf-reprojection.hlsli` adds the triangle's weighted vertex movements\n  to the current hit. Unchanged vertices return that hit exactly before any\n  barycentric calculation: a long, thin triangle's float Gram determinant can\n  cancel to zero, and rebuilding a second world position can invent motion on\n  a still surface. `SdfReprojectionDeviceLawTests` includes this thin-triangle\n  witness on both backends. Check the static `motion` view when history fails\n  to accumulate; unchanged geometry must show valid, zero object motion.\n- **A receiver's depth belongs to the output ray.** Different jittered rays\n  hitting one grazing plane can have very different ray distances. Project each\n  tap's tangent plane onto the output pixel's unjittered ray before storing or\n  validating its receiver depth (`sdfHistoryReceiverDistance`). Identity and the\n  relative depth tolerance stay unchanged. The reprojection device witness\n  maps two samples at distances 64 and 32 onto the same receiver depth 128.\n- **Stationary reconstruction keeps a complete jitter window.** The resolve's\n  history surface retains each phase's color, coverage, transport and weight.\n  Replacing one phase and summing in fixed order removes periodic newest-phase\n  bias and keeps samples the current neighborhood misses. Moving and reactive\n  pixels use the clipped resolve while their window fills. A stationary window\n  keeps its validated receiver while the footprint still sees it; choosing a\n  new thin adjoining face each phase can reject the window on the next phase.\n  The window describes an output footprint, which can sample different receiver\n  identities on opposite jitter phases at a static silhouette. If ordinary\n  receiver validation rejects it, retain the bounded window only after proving\n  the unjittered camera is exactly unchanged, every tap is nonreactive, and each\n  visible tap's previous point equals its current point. This extra motion check\n  runs only for rejected footprints. A displaced camera keeps ordinary receiver\n  rejection; a stationary current receiver alone does not prove no disocclusion.\n  The package owns\n  `TemporalPeriod` and `HistorySurfaceWords`; the generator carries both into\n  HLSL. A layout change needs a host with the matching history allocation before\n  loading its kernels. Account for this output-sized history in GPU memory.\n  Keep the surface planar, every access through `sdfHistoryWord`: interleaved,\n  its 47 words a pixel put each lane of each access on its own sector and held\n  the resolve at L2 bandwidth. A complete window shows its own mean, so only an\n  incomplete one reads the reprojected Catmull-Rom history.\n  Preserve a constant coverage component exactly before half packing and after\n  averaging the phases: bound the convex mean by its samples. A rounded value\n  just below one becomes 0.9995 in half storage and invents a background share\n  on an opaque surface. The analytic resolve device witness checks full coverage.\n- **Coincident exposed faces cannot accumulate a stable receiver.** Check\n  `world.debug-view material-id` when a static patch changes identity or never\n  completes its phase window. Separate meshes sharing an exposed plane can\n  alternate winners as jitter or a refresh changes rasterization. Fix the\n  authored overlap, rather than weakening receiver rejection. A slab owns its\n  horizontal finish; a wall or lintel meeting it ends at the slab's underside.\n- **A seat's character fade is view-local.** `SdfViewSnapshot.StampFade` supplies\n  a transform-slot range and opacity through `SdfFrameBlock`; the mesh and glass\n  fragments call `frame\u002Fsdf-stamp-fade.hlsli` before writing depth or glass sums.\n  Keep view-only offsets in `SdfFrameBlock`, separate from the bake-only\n  `SdfMeshBakeBlock` initializer, so view edits do not invalidate meshes.\n  Keep the opaque fragment free of `earlydepthstencil`: discarded pixels must\n  reveal the room. Shadow passes and independently filmed mirror\u002Fportal views\n  receive no fade. Vulkan requires `shaderDemoteToHelperInvocation` at device\n  creation and capability 5379 in `VulkanShaderCapabilities`; `clip` compiles to\n  that feature even when the live opacity is one.\n- **Every light answers through one interface,** `shade\u002Fsdf-light.hlsli`; a new\n  light kind is a branch there and nowhere else. Views and glass visit lights\n  through one walk (`sdfLightWalkStart`, `sdfLightNext`): the set bits of the\n  view's light mask, then the bound screens, so a light the view leaves out\n  costs no iteration. Index a vector at run time only through `sdfComponent`.\n- **Cel shading is a style per material, not a whole-image filter.** A palette\n  row's `toon` (`SdfMaterial.Toon`, material rows 22 to 25) shades that material;\n  every other material inherits the world's default (`render.toon`, which\n  `world.toon` overrides live) through the pass block's toon members. Both are\n  written by `SdfToon.WriteRows` and read by `sdfToonStyle`\n  (`shade\u002Fsdf-toon.hlsli`): keep the row layout and the pass block's alike.\n  The band keeps visibility apart (`band(cosine) × visibility`) unless the style\n  says `band: Combined`; rim lights, the environment reflection and ambient\n  occlusion stay in the cel response. `sdf-toon-outline.hlsli` reads\n  depth\u002Fnormal edges in views, before temporal resolve, at the pixel's own\n  style's width. Keep screen pictures, portal pictures, sky and self-emission\n  out of both the banding and ink. Nested worlds take the live enable override\n  but retain their own document styles. The tuning belongs to the lighting\n  cadence signature, never the bake closure.\n- **The frame shades luminance in nits, and each view's composite applies its\n  exposure** (`SdfPhotometry`, `SdfViewExposures`, the pass block's `exposure`).\n  A light record carries illuminance or intensity over π; emission, sky layers\n  and displays are nits. A new constant meant as a display colour (an outline,\n  a grid, a placeholder glass) is divided by `passGroup.exposure` or it vanishes\n  outdoors and blows out indoors. A window's view and a sky layer's view publish\n  nits under the window share of their exposure (`SdfViewSnapshot.Unexposed`,\n  `SdfPhotometry.WindowAdaptation`), and the opening applies the rest of the\n  viewer's. A point or spot light's falloff is exactly zero at its range, each\n  view shades only the lights its frustum may reach (`SdfLightSelection`, the\n  pass block's `lightMask`), and a static one is occluded by the irradiance\n  volume's visibility bits (`SdfLight.IsTraced`, `sdfMeshLightVisibility`): a\n  fixture that lights through a slab is an anchored light or a volume that\n  holds no probe there. `world.exposure` reads each view's EV and meter.\n- **The irradiance volume is read once a pixel** (`sdfMeshProbesAt`), and that\n  gather supplies indirect light, reflections and traced static-light visibility.\n  Each probe publishes its own measured cubes, without neighbour filtering.\n  Visibility uses a 12×12 octahedral first-hit surface map, one bounded ray\n  per texel. Each word packs ray distance and two signed normal bytes;\n  negative distance marks a measured miss. Four reflected angular taps reconstruct compatible surface patches before\n  testing signed receiver gaps and blocked coverage. Radial depth interpolation rejects\n  coplanar receivers at grazing angles, so no mean\u002Fsquared-distance pair remains.\n  Keep `SdfMeshProbeDepth.Visibility` and `sdfMeshProbeDepthVisibility` together.\n  The sky cube comes from the same full-reach radiance rays as bounced light.\n  Surface support stays within the angular taps; no neighbour vetoes or suspect sets return.\n  The first sweep caches FP16 normal gradients from each texel's local angular\n  neighbourhood. Interpolate compatible quadratic coefficients and intersect\n  their entering root; a tangent alone shadowed\n  the visible side of sparsely sampled curved geometry. The sparse-curve law\n  checks against exact mesh segments. No triangle-footprint clipping is used.\n  Gather weights are trilinear share × a half-spacing smooth distance fade in front of the receiver × depth\n  visibility. The actual receiver is biased by `NormalBias` metres, never by\n  spacing; clamping the lookup must not move the visibility-test receiver.\n  The volume has three nested levels, a table per tier with a spacing per axis\n  (`SdfMeshIrradiance.LevelsOf`: the tier's window, 4×2×4 m storey cells, 32 m\n  cells); a receiver's stages run finest first (finer levels within their\n  surface maps' reach, the holding level bounded, the same probes unbounded,\n  the finest level's boundary probes), and the first that answers counts only in\n  its share, its weight over the cage's front weight before visibility (a finer\n  level past its window easing out over its reach's outer half), the rest\n  coming from the next stage over another cage. Sixteen pre-scaled slots, named by\n  each stage's cage word (`sdfMeshProbeCageWord`) rather than sixteen addresses;\n  a corner answers where its weight is positive, and `sdfMeshProbeAt` is the one\n  door to its probe. One\n  closing rule at every level: taps on solids close as a majority, taps a coarse\n  level's trace marked sheets (the curvature half's low bit) at almost any share.\n  Only the finest level keeps the behind-plane floor. Nothing a camera sees reads\n  an unmeasured surface as black. A view with no cascade (a session view, or\n  `world.shadows off`) reads a shadowing directional's visibility from the probes'\n  light bits. `SdfMeshIrradianceGatherDeviceLawTests` holds the GPU and CPU\n  gathers to the same slots, weights, share and sun visibility.\n  Relocation (`SdfMeshIrradiance.PlaceBatch`) keeps a probe clear of geometry within\n  its own cell; every lookup uses its recorded offset. Placement takes the nearest clear exit; its short rejection rays\n  stop at one spacing, with no openness score. Debug with `world.probe` after bakes and GI settle;\n  its exact reference segment distinguishes sampling errors from cube content.\n  Local adaptation consumes this same gather, so an irradiance error also\n  changes exposure. See [mesh GI](references\u002Fmesh-gi.md) for sampling, storage,\n  boundary behavior and the fixed-camera checks on both backends.\n- **Glass is a material, a group and a pass, never a blend.** A palette slot's\n  `glass` (`SdfGlass`, material row 21) makes its shapes bake into groups of\n  their own (`SdfMeshBakeGroup.Glass`; the stampers emit them as instances\n  apart from the opaque ones) and draw in the glass raster pass over the opaque\n  image (`passes\u002Fsdf-mesh-glass.frag.hlsl`, `passes\u002Fsdf-glass.comp.hlsl`). The\n  opaque mesh pass and the irradiance trace skip glass draws\n  (`SdfMeshDraw.Glass`); cascades select their extinction pipeline. Thickness and RGB optical depth are the glass sums,\n  integers the raster accumulates with atomics (`frame\u002Fsdf-glass.hlsli`,\n  `sdfGlassAccumulate`): never read a glass shape's thickness from its mesh, and\n  never accumulate a sum in floats, whose rounding follows raster order and whose\n  per-face terms cancel badly against the far sky. Transmission integrates every\n  glass material before the opaque hit; two interfaces reflect, refract and\n  scatter: the target's nearest front face and the second the sums' second\n  record names (`sdfGlassSecondInterface`, exact up to three front faces), each\n  shaded by the one loop body, the far one composed inside the near one's\n  transmission. `SdfGlassSumsDeviceLawTests` runs the accumulation in many orders on\n  both backends. The glass pass reuses the opaque path's mechanisms, never a copy:\n  one probe gather an interface (`sdfMeshProbesAt`) for its reflection (`worldEnvironmentReflection`,\n  `shade\u002Fsdf-sky-reflection.hlsli`, then `sdfMeshReflection`, the sky alone where\n  `probes.share` is zero), the light walk (`sdfLightResponse`, uncascaded, probe\n  shadowing) for its highlights and the light its medium receives, and the flow\n  layer (`sdfShadeFlow`). The glass, sky and resolve recorders get the common\n  frame values (`SdfWorldPackage.Values`) only by copy from\n  `SdfFrameBlock.WriteInto`, which writes the irradiance volume beside the frame:\n  a common value it leaves out reads zero in those passes (the glass gather once\n  read the volume as off that way). A medium (`SdfGlass.Scatter`, `Scattering`, material row\n  31) and a contact (`ContactReach`, `ContactCoverage`, row 20.w's halves) are\n  functions of the thickness, `opaque - t` and that light alone: the pass reads\n  the lit image once (`sdfGlassLitAt`, or the frost's disc). The handbook's\n  [glass section](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fframe-rendering.md#glass-after-the-opaque-image)\n  states the limits. A frame in which no glass draw's host box meets the view's\n  frustum (`SdfWorldPasses.GlassSeen`, decided once per instance and frame for\n  the three passes) skips the sums clear and the raster and answers\n  `DrewNothing` from the shading pass, whose `glassLit` then stands for the\n  opaque image; the sky, composite and resolve recorders key their cached lit\n  binding on the image they are handed. The sums and the glass target are never\n  read on such a frame, so a new reader of either must not run on one. A timing\n  window keeps a skipped pass's last samples: toggle `world.gpu-timing off` and\n  `on` before reading the trio at a stop.\n- **A flow moves shading, never geometry, and never reads a clock.** A palette\n  slot's `flow` (`SdfFlow`, material rows 27 to 30) runs `sdfApplyFlow`\n  through `sdfShadeFlow` (`shade\u002Fshade-flow.hlsli`) in the light stage after the\n  weathering and in the glass pass: two\n  half-cycle layers of the lattice noise advected along the velocity's\n  tangential part, revealing a surface and tilting the shading normal. Its\n  phase enters only through the pass block's `flowClock`, which\n  `SdfFrameBlock` integrates from `SdfFrame.Clock` and writes zero for a program\n  without flow (`SdfAppearance.ResolveShadeReads`), so a still world's views keep standing;\n  the clock is a lighting value of the cadence signature, so only the shading\n  passes rerun as the flow moves. No `sdf-*` kernel reads the Frame group's\n  `time` or `timeDelta`: `puck search -M 0 \"frameGroup\\.(time|timeDelta)\"\n  src\u002FPuck.SdfVm\u002FAssets\u002FShaders\u002FSdf` finds nothing. An `Object` velocity on a\n  draw shading in world space (a static copy) turns by the draw's matrix;\n  `World` keeps the velocity and the pattern in world space. On glass the\n  revealed coverage covers the glass as a diffusely lit surface.\n- **A shading-time lane is a slot's or the world's.** Lanes 0 to 3 are the\n  draw's frame-slot lanes (a body's look lanes; zero on a static copy or an\n  animated placement), lanes 4 to 7 the world's `render.lanes`, which\n  `WorldEnvironmentResolve` resolves at the presented tick into\n  `SdfFrame.WorldLanes` and the pass block carries as `worldLanes`\n  (`SdfLanes`). Every consumer (emission, weathering, a flow's velocity and\n  coverage, a volume's intensity) reads a lane through `sdfLane`\n  (`frame\u002Fsdf-lanes.hlsli`), the one reader of `worldLanes`; never index\n  `s.lanes` directly. `SdfFrameBlock.WorldLanesOf` writes zero for a frame\n  that reads no world lane, so a still world stands. Erosion and morph are\n  bake-time and read slot lanes only.\n- **Camera history uses the camera's sample grid.** The first recorder can be\n  a shadow cascade, so `TemporalOf` receives the recording's `RenderWidth` and\n  `RenderHeight`, never its pass-local `Width` and `Height`. A still camera's\n  `world.debug-view motion` stays stationary with shadows both on and off.\n- **A settled capture holds its residency's frame.** Under\n  `world.debug-view motion` the held frame keeps the motion it was presented\n  with (`SdfWorldTables.HoldsFrame`, the `held` argument of\n  `SdfTemporalHistory.Prepare`); every other view settles it as a still frame,\n  so a temporal view converges over the held renders. Settling motion history\n  on a held upload makes every capture of the motion view read still. A frame\n  held for a settled capture rates no work (`WorldFramePresenter.RatesOf`),\n  but preserves the selected culler: the second phase resolves disocclusion\n  in the same frame, and a capture must exercise the mode being diagnosed. Under\n  `world.lockstep` every frame also presents the completed tick and advances\n  presentation by the ticks completed, and its frames (`SdfFrame.TickLocked`)\n  have the residency trace the irradiance window to the end before rendering\n  (`SdfMeshIrradiance.Stage`; the asynchronous trace otherwise lands probes at\n  wall-clock moments as the window follows the first view's camera) and adapt\n  exposure over the frame's own presentation time\n  (`SdfViewExposures.SecondsOf`); an ordinary settled still under lockstep\n  converges over one fresh jitter period (`FrameCaptureRequest.ConvergeOver`),\n  since without it a temporally resolved view's still depends on how many\n  frames the display rendered before the hold. Together these make stills\n  of one tick repeat across Worlds to a 1-level per-render residue.\n- **A named-camera layout slot reconstructs; a screen's camera does not.**\n  `world.temporal` reaches every view `WorldFramePresenter.ViewQuality()`\n  dresses: seat views, the operator pose and `views.layouts` slots that name a\n  camera. A camera view a screen films and a session view take a reduced\n  quality (`WorldScreenBinder.CameraViewQuality`,\n  `WorldSessionSceneEmitter.ReducedQuality`) whose `Temporal` is off, and\n  `SdfViewQuality.Restrict` ANDs it, so they never jitter.\n- **A settled capture cannot show what changes between frames.** Flicker\n  (jitter moiré on a screen, a still scene whose pixels change), ghosting and\n  trails show only in a presented capture (`FrameCaptureMode.Presented`:\n  `puck_capture_frame` with `mode: \"presented\"`, `frames: 8`, or\n  `world.screenshot \u003Cpath.png> presented 8`), which holds and settles nothing\n  and reports each frame's changed pixels and luma change against the one\n  before. A still scene with `world.temporal on` that changes in a presented\n  burst is flickering; a clean settled still proves nothing about it.\n- **A `views.graphs` pane is not an SDF image.** It is a render-graph instance\n  with its own shader; it reloads with `pipeline.reload`, not\n  `world.shaders.reload`.\n\n## Editing kernels\n\n- **Check screen eligibility before reading a screen table.** A material is\n  not a screen index: `sdfScreenSurfaceShades` checks the sentinel, bounds and\n  source before `material - SDF_SCREEN_MATERIAL - 1` names a screen. Temporal\n  ray helpers need that check before their own table reads too; a later sample\n  function's guard cannot protect them. An ordinary material becomes a huge\n  unsigned index otherwise, which can lose the Vulkan device while Direct3D 12\n  returns zero for the out-of-bounds read.\n- **One `mapCore` call site.** The bake (`passes\u002Fsdf-mesh-bake.comp.hlsl`) is\n  the only GPU kernel that walks the field, and it does so through one rolled\n  `[loop]` over its samples. Every call site is a full inlined copy of the\n  interpreter, costing register pressure, compile time and a driver translation\n  on every cold boot, so more samples go through that loop, never through a new\n  call. Never add `[noinline]`: a real SPIR-V call loses the device on NVIDIA's\n  Vulkan driver.\n- **Keep each pixel kernel's include closure its own.** A pixel kernel includes\n  the common head (`passes\u002Fsdf-pixel-pass.hlsli`), only its own stage module,\n  then the entry; a stage module includes what it reads beyond\n  `passes\u002Fsdf-world.hlsli` itself. The shader cache keys, and a reload\n  recompiles, by include closure, so routing a stage module through another\n  wrapper makes an edit to it recompile both kernels.\n- **The bake kernels include `passes\u002Fsdf-bake-world.hlsli`, never\n  `sdf-world.hlsli`.** Their compiled bytecode keys the stored meshes\n  (`SdfMeshBakeIdentity`), so their closure holds only what the bake reads:\n  their own interface (`isa\u002Fsdf-mesh-bake.interface.hlsli`: a pass block of\n  `SdfWorldPackage.BakeValues` alone, stamped with the field's fingerprint), the\n  field interpreter and the field's generated vocabulary (`isa\u002Fsdf-isa.hlsli`).\n  A light, exposure, view, pass-block value, pass resource or World table goes\n  in `isa\u002Fsdf-render.hlsli`, the world interface or after\n  `SdfWorldPackage.FieldTables`, and leaves the bake's bytecode byte for byte as\n  it was on both backends. SPIR-V orders its constants by first use in the whole\n  source, dead code included, so a lighting, screen or view module in the\n  closure would move a stored mesh's key. Add to the bake's closure only what\n  the bake reads, and check with `puck mesh identity --against`.\n- **Keep control flow uniform around barriers and groupshared gathers.**\n  Inactive lanes still reach the barriers.\n- **Hot reload compiles kernel sources only.** With `Puck.World` running:\n  `world.shaders.reload src\u002FPuck.SdfVm\u002FAssets\u002FShaders\u002FSdf`, then\n  `world.shaders.status` (`unchanged` means no shipped kernel compiles the code\n  you edited). A host ABI, buffer-layout or C# ISA change needs a rebuild: the\n  reload keeps the previous kernels when a tree's kernels do not match the\n  host's interface, so a kernel reading a field the C# side just gained keeps\n  running its previous build. The instruction-set stamp covers layout, so a value only\n  the shader reads is declared `Tuning` in `SdfIsaHlsl.DeclareRender` and changing it\n  reloads; a real the host packs, decodes or shares with the CPU evaluator stays an\n  ordinary `Real` ([classification](..\u002F..\u002F..\u002Fdocs\u002Freference\u002Fshaders.md#pass-interfaces)).\n  Change the C# layout and the HLSL layout together\n  ([sync pairs](references\u002Fsync-pairs.md)).\n  Mesh raster and cascade vertex\u002Ffragment stages are composition-owned (`SdfMeshRasterPass`), so\n  edits to them need a rebuilt boot too. A shared `frame\u002Fsdf-mesh.hlsli` edit can reload its compute\n  readers while the raster stages keep their deployed bytecode; a successful reload is no proof\n  that a vertex-stage performance experiment took effect.\n- **No signed `%` of a value that can be negative.** NVIDIA's Vulkan driver\n  answers a signed remainder (`OpSRem`, which DXC emits for `%` on `int`) of a\n  negative operand wrongly where Direct3D 12 answers it right: lift the value to\n  non-negative and wrap it as `uint`, as `sdfMeshIrradianceSlot` does.\n- **One walk in `mapCore`.** NVIDIA's Direct3D 12 driver on Turing (the RTX\n  2060) takes a second walk chosen by a program-uniform flag (a linear\n  all-segment walk beside the instance merge) for instanced programs too, so\n  every bake group samples the whole program; Vulkan on the same card does not.\n  A program with no instance lists every segment as a world segment, so the\n  merge covers it. When one backend's bake disagrees, compare\n  `[sdf.mesh-bake] done` on both: a group that empties on one backend alone (an\n  axis line under the floor) is the walk ignoring its mask.\n- **Index local arrays by constants only.** NVIDIA's Vulkan compiler keeps a\n  dynamically indexed local array, a `static const` table included, in\n  per-thread local memory. Unroll the loop to the array's length and guard the\n  body (`if (i \u003C count)`), or pick the element by comparison; DXC's SPIR-V\n  unroller leaves a loop with a `break` rolled. RenderDoc's pipeline-executable\n  statistics show the spill as \"Local Memory Size\" (the low 32 bits).\n- **Bindings are generated.** No kernel declares a binding or register by hand;\n  a new resource is a member of `SdfKernelInterfaces`.\n\n## Changing the instruction set\n\nFirst ask whether the new op, shape or blend composes from existing vocabulary;\nif it does, ship it as a `SdfProgramBuilder` method emitting existing\ninstructions. A real new instruction touches every partner in one change, and a\nGPU parity pass alone does not finish it:\n\n1. **C# model.** The enum, `SdfProgramBuilder` (its `RequireDefined` maximum),\n   `SdfProgram` validation and packing, the Lipschitz analysis, its row in\n   `SdfOpRoles.Of`, and the part-program key for a new parameter.\n2. **Cull margins.** `MaxSmoothBlendRadius` (blend halo), `MaxScopedFieldReach`\n   or `HasUnmaskableInfluence`.\n3. **Generated declarations.** `isa\u002Fsdf-isa.hlsli` is generated from the C#\n   model by `SdfIsaHlsl`; building `Puck.SdfVm` regenerates it, and\n   `puck shaders generate` writes it on demand. The define's name is the enum's\n   prefix plus the member in upper snake case (`SdfOp.CellDisplace` is\n   `SDF_OP_CELL_DISPLACE`), and its value is the member's: members are numbered\n   densely in declaration order. Never hand-write a `#define` for an ISA value;\n   add the enum member and regenerate. Give the instruction a call in\n   `SdfEncodingProbe` that passes every field it packs\n   (`SdfEncodingProbeLawTests` refuses one that is missing). Regenerating also\n   rewrites `SdfIsaFingerprint.cs`. `sdf-isa.hlsli` is the field's vocabulary\n   alone, and its fingerprint keys the bake: a constant only the renderer reads\n   (a light, the exposure, the visibility record, mesh records, the debug views)\n   is declared in `SdfIsaHlsl.DeclareRender`, which writes `isa\u002Fsdf-render.hlsli`.\n4. **Every GPU call site.** `mapCore` (rigid-leaf fast paths included) and the\n   compiled part walk in `sdf-parts.hlsli`; a blend also needs `blendShape` and\n   the material-winner rules in `sdfComposeCandidate`.\n5. **CPU interpreter.** `SdfFieldEvaluator` interprets it or refuses it by name.\n   Its blend switch falls through to union, so a missing arm silently turns a\n   new blend into a union in contact and queries. Add its bounds rule\n   (`SdfFieldEvaluator.Bounds.cs`) and cull rule (`SdfFieldEvaluator.Cull.cs`).\n6. **Document surface.** Carry the parameters through `CreationCanonicalizer`\n   and the stamp emitters or refuse the value there, then `puck schema`.\n\nWhen two lanes both add an instruction, the merge conflicts in generated files\n(`sdf-isa.hlsli`, `sdf-render.hlsli`, `SdfIsaFingerprint.cs`): resolve the C# model, then\nregenerate with `puck shaders generate` or a build of `Puck.SdfVm`. Never\nhand-merge a generated file; `puck shaders generate --check` (and CI) only\ncompares and fails naming the file that drifted, it writes nothing.\n\n## Field contracts that bite\n\n- **One accumulator.** `mapCore` carries one running distance for the whole\n  program. An intersection-family blend annihilates every earlier shape it does\n  not overlap; field ops (`Onion`, `Dilate`, `Displace`) grow every earlier\n  solid once the accumulator holds more than one object.\n- **A subtraction is exact only where its subject is nearest.** Inside a carved\n  void the contact field reads phantom surfaces; extend the carve past every\n  point a body can reach, or build the void from union geometry.\n- **An instance bound is an influence sphere** tested per sample. It must cover\n  the primitive's reach, its field ops and its blend halo, or the bake clips the\n  geometry at the sphere.\n- **A field scope is a real per-sample cost.** Scoped segments skip the segment\n  early-out and rigid planning. Never wrap one primitive in a scope for its\n  Lipschitz factor; make the primitive 1-Lipschitz. Scope clamps\n  (`SdfProgram.FieldScopeClamps`, `world.budget`) are field bounds, not measured\n  GPU cost.\n- **The CPU evaluator's rounding is part of its Lipschitz bound.** A product of\n  two lengths rounded to the carrier keeps `2⁻¹⁶` of its value, a few bits at\n  centimetre sizes, so a ratio, projection or nearest-sample comparison built on\n  one reads a millimetre of noise and the field overstates its own distance\n  (the Moth's spine joints read 26 times it). Round such quotients once\n  (`maths-usage`'s Choose table). `SdfPrimitiveLipschitzLawTests` samples every\n  door primitive at a centimetre and a metre; run it after changing a shape, and\n  read `puck mesh audit --cpu --field-levels`' `lower\u002Fupper` witness (value and\n  bracketed upper bound) to trace a group whose step scale fails.\n- **Unbounded is a state, not a number** (`SdfBoundAlgebra.Unbounded`); bounds\n  compose through the set operations in `SdfBoundAlgebra`.\n- **An interval rule whose width compounds shrinks the whole evaluator.** The\n  CPU evaluator's frame (`SdfFieldEvaluator.Frame`) is the widest cube its box\n  walk keeps bounded, and every query outside it is refused, which a sphere\n  cast reads as an obstruction at its origin. A blend rule that reads its\n  operands twice grows geometrically along a chain on one accumulator: unscoped\n  smooth unions across a few trees once collapsed the presentation field's\n  frame to half a metre, so the chase camera sat on its target valley-wide.\n  Bound a monotone blend by its corners instead (`SmoothUnionBounds`), and\n  read `Frame` when every query far from geometry fails.\n- **Deterministic versus presentation geometry:** use\n  [sdf-authoring](..\u002Fsdf-authoring\u002FSKILL.md#render-only-versus-deterministic);\n  the fixed-point evaluator supports `SdfShapeType.Path` through `SdfPathSolid`.\n\n## Capacity and emission\n\n- Program words and instances grow on upload, and the dynamic-transform region\n  grows to the frame's table, whose rows are the program's slots plus one root\n  per rigid copy (a body), so a `world.reload` or a new body grows it mid-run.\n  A frame that supplies fewer transforms than\n  `RequiredDynamicTransformCapacity` throws, because a slot rendering at\n  identity is a bug. Fix the emission so the frame supplies the transforms it\n  needs; increasing a reserve cannot supply missing transform rows.\n- A `GpuRegion` grows under whichever policy `GpuResidency.Select` gave it\n  (`GpuRegion.Grow`): a staged region carries its destination on the GPU, and a\n  ring or in-place region replaces its host-visible buffers and owes each the\n  whole region; the owner retires what it returns after the following upload's\n  fence, which also covers earlier readers and a staged carry. Create replacement\n  buffers, retirement bookkeeping and the CPU shadow before publishing growth;\n  a failed allocation preserves the old buffers, contents, capacity and bindings.\n  `SdfWorldTables.EnsureDynamicTransformCapacity` prepares motion history before\n  growing the region and publishes capacity only after both succeed.\n  A Direct3D 12 buffer or image placed by `DirectXHeapArena` keeps its range\n  until its owner calls `DirectXDeviceMemory.CountReleased` before the last\n  `Release`; an owner that only releases the resource leaks its range and\n  keeps the heap for the run. A device with\n  a large host-visible device-local heap (resizable BAR) gives a small per-frame table a ring, while the CPU fake\n  device's default profile stages every region, so a region path written or\n  tested for one policy alone passes the device-free suites and fails on such\n  a device. Test a region path under every policy, as\n  `GpuResidencyLawTests.ARegionGrowsUnderEveryPolicyAndEverySlotReadsItExact`\n  does.\n- Large GPU buffers give their memory back. Both arenas (`DirectXHeapArena`,\n  `VulkanMemoryArena`) free a resource's own heap (one past half a shared\n  heap) as it empties and keep only a shared one spare; a kept large heap takes\n  later small buffers and is pinned for the run. A staged `GpuRegion` slot's\n  staging buffer shrinks to twice its flush (`GpuRegion.StagingFloorBytes`\n  floor) once it holds four times more, and a relocated mesh region shrinks to\n  its need (`GpuRegion.Shrink`). Upload heaps are system memory: a staging\n  buffer kept at a whole region's size costs the process that much working set.\n- The mesh region keeps no host copy of its meshes. Its host copy is the draw\n  records alone (`GpuRegion.Shadow`); a placed mesh's words are owed without a\n  compare (`GpuRegion.OweSourced`) and the upload's flush writes them from the\n  `SdfMesh` buffers (`SdfWorldTables.WriteSourcedMeshWords`, an\n  `IGpuRegionSource`). The irradiance scene likewise reads its triangles through\n  each mesh's positions and indices, never a copy. A new consumer of baked\n  triangles reads the `SdfMesh` buffers rather than copying them: the debug\n  world's published meshes are native payloads with explicit consumer claims, and every copy costs that\n  much again in working set. A mesh the library published from its store lets its normals and coarser\n  levels' indices go once no region needs its words, and brings them back from the store before they are\n  read again (`SdfMesh.Restore.cs`). `SdfMeshRegion.WriteMesh` takes an `SdfMesh.Held`, which only\n  `SdfMesh.Hold` makes (a need, waiting for or running the restore), so every region write, a coarsened\n  copy run's included, reads resident parts; the owed set (`OwedMeshes`) holds a need for the owed meshes\n  the latest list names so landing never waits on the frame thread. A new reader of those parts takes a\n  hold. A published chunked mesh keeps no joined indices: read its chunks.\n- A scoped creation emits one instance, a scope-free one an instance per shape\n  (`CreationStampEmitter.PerCopyInstanceCount`). `world.budget` prints the live\n  cost sheet.\n\n## The baked mesh\n\nEvery view renders meshes the program is baked into, with no field walk in the\nframe. Read [mesh bake](references\u002Fmesh-bake.md) before changing the bake, the\ncontour, grouping, the mesh region or the store, or when a baked mesh looks\nwrong. The contracts that bite most often:\n\n- **One contouring:** `SdfSampledLattice` through `SdfDualContouring`; never\n  write a second mesher.\n- **A landed mesh is its planar polygons** (`SdfMeshPlanarMerge`, in\n  `SdfMeshPathBake.Land`): a flat face's interior vertices go and every outline\n  vertex stays, so no pixel changes. A change that moves or renormals a vertex\n  there, or drops an outline vertex, does change pixels.\n- **A landed mesh carries two coarser levels** (`SdfMeshCollapse`, after the\n  merge in `Land`; `SdfMesh.Levels`): half-edge collapses over the mesh's own\n  vertices, each with its measured error. The region lays a level's indices and\n  materials after the merged ones', so its triangles are numbered after them. A\n  draw pushes its level above its index (`SdfKernelInterfaces.MeshLevelShift`,\n  in a counted indirect draw's identity too), its record points at the mesh's\n  shared level table (`SdfMeshRecord.LevelTableWord`), and both raster vertex\n  stages add it to the vertex id (`sdfMeshLevelIndex`). Never pass the level as\n  a first vertex: Direct3D 12's `SV_VertexID` counts from zero whatever the\n  draw's first vertex, so the draw fetches the merged mesh's first triangles and\n  objects go missing. The surface pass reads the triangle the pixel names with\n  no level of its own. Everything that reads `SdfMesh.Indices` (the\n  irradiance trace, the audit, the diagnostics' nearest query) reads the merged\n  mesh, level zero. Each pass's choice runs beside the box cull in\n  `frame\u002Fsdf-mesh-selection.hlsli`, from `SdfMeshDetail`'s packed controls;\n  `world.detail 0|1|2` forces one level\n  everywhere, and `world.detail auto` restores the choice.\n- **Large static unions have independently drawn chunks** (`SdfMeshChunks`, before the merge). Their contour edges\n  partition the surface, and every seam edge stays fixed at every level. The store holds the pieces; only those pieces\n  enter the region. See the [mesh bake](references\u002Fmesh-bake.md#groups-poses-and-materials).\n- **A field diagnostic is a bake lattice, never a pixel-kernel walk.**\n  `SdfFieldSlice` (`world.slice`) queues points lattices with gradients on the\n  bake and draws the distance bands and `|grad d|` on the CPU from the answers.\n  A per-pixel field view would put a second interpreter copy in a pixel kernel.\n- **Winding is one contract across three places.** The bake winds outward\n  faces counter-clockwise (`SdfDualContouring`), both backends declare a\n  counter-clockwise face front (`GpuGraphicsPipelineDescription`, the two\n  pipeline factories), and the opaque mesh pass culls back faces\n  (`SdfMeshRasterPass.Description`; a cascade's exit layer culls front faces\n  seen from the light, and its depth and the glass pipeline cull nothing). An\n  authored mesh whose triangles close a volume is wound outward like the bake's;\n  any other authored mesh is drawn in both windings and does not enclose\n  (`WorldPlacementStamper.MeshOf`, `SdfMesh.Encloses`). Probe facing with `SV_IsFrontFace` in the\n  mesh fragment stage and `world.debug-view depth`, on both backends.\n- **A sampled field moves without a program rebuild.** `SdfProgramBuilder.SampledValues`\n  names an `SdfSampledField` by handle; the frame carries its snapshots (`SdfFrame.Sampled`),\n  the geometry hashes them, and the bake compares only `SdfSampledSet.Baked` (the handles an\n  instruction samples), so a height field's heights moving restart nothing. A moved baked snapshot\n  resamples only the reader groups (`SdfMeshPathBake.Resample`, replanned from each group's\n  planned box); a reader still baking keeps its bake and the newest plan waits as its\n  `Successor`, so a field republished every frame still lands. Never compare the whole set\n  in the bake, and never replan from `Low`\u002F`High`, which the lattices narrow. Batch tickets\n  leave `Taken` once through `SdfMeshPathBake.Settle`, which both `Complete` and `Abandon`\n  call, so a partial answer returns exactly its unanswered lattices. Each bake job writes the snapshots its groups sealed into\n  its own `sdfSampledValues` table, so a lattice never samples a newer publication; never\n  put sampled values back into program words or a shared GPU buffer the bake reads\n  ([sampled fields](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fsampled-fields.md)).\n- **A height field moves as it is drawn.** `SdfHeightField` bakes a reference (every raised\n  column at `ReferenceCells` above the origin) and names its heights as the instance's\n  displacement; the frame's sampled table (`sdfFrameSampled`) carries the heights, and every\n  vertex read (`sdfMeshWorldPosition`, `sdfMeshWorldNormal`, `sdfMeshPreviousPosition`)\n  displaces through `sdfMeshDisplaced`. A new reader of mesh vertices goes through that\n  resolver, or it draws the reference; a draw's box spans `SdfMeshDisplacement.Low`\u002F`High`,\n  and a displaced draw is `IsDynamic`, out of the irradiance volume's static scene.\n- **A mesh is a function of its geometry.** Groups are keyed by\n  `SdfMeshGeometryBuilder`; anything the bake samples that the instructions do\n  not hold leaves a stale mesh drawing after an edit until the builder hashes\n  it.\n- **Baked meshes persist across runs** (`SdfMeshStore`), keyed by geometry and\n  the bake's identity: the bake kernels' bytecode and the IL of every method\n  the bake's code reaches, across the `Puck` assemblies, read from the build\n  (`SdfMeshBakeClosure`). No list names the bake's files: code it calls is\n  covered, code it does not call is not, a checkout's path is not, and a miss\n  logs the part that changed (`[sdf.mesh-bake] miss …`). A hot-reload update to\n  a type the closure declares members of folds into the code identity\n  (`SdfMeshBakeClosure.Reads`, `CodeRevision.AppliedTo`), and the residency\n  follows it before each plan and stage; an update anywhere else keeps the\n  store. `puck mesh identity\n  --build \u003Cdir> --against \u003Cdir>` names the members that differ between two\n  builds before any boot.\n- **`puck mesh audit --world \u003Cfile>` checks a bake without a GPU or a person\n  looking**, against the CPU field; `--cpu` bakes offline so a contour or field\n  change shows with no boot. Run it before calling a bake change done.\n\n## Performance and cost\n\nJudge cost by counted work, code and disassembly; a wall-clock or GPU-timestamp\nreading is evidence beside the counts of the same run on a quiet machine, never\nthe verdict alone. What a kernel costs on the hardware (registers, occupancy,\nbanks, coalescing, waits) and how to read it is\n[gpu cost](references\u002Fgpu-cost.md).\n\n```text\nworld.cadence off      # a still scene otherwise skips frames and reads near zero\nworld.rates off        # far or small work (far cascade, small windows, screens, bodies) otherwise updates at least 30 or 15 times a second, far bodies down to 5\nworld.debug-view rates # tint each rated item by its tier; world.rates lists each one's size and tier (worlds\u002Fdebug\u002Frange.md)\nworld.counters gpu     # per-pass counted work: dispatches, shape evaluations, texels, uploads\nworld.gpu-timing on    # per-pass timestamps; `world.gpu-timing timeline` orders each node's latest span on the queue's clock with the idle gap before it\nworld.budget           # program words, instances, scopes, segments\nworld.counters gpu.queue      # native executes, lists, signals and presents by category and split cause\nworld.counters render.record  # record jobs' host time per phase, serial sum and per-frame critical path\n```\n\nDivide `gpu.queue` and `render.record` deltas by their `frames` deltas; [gpu\ncost](references\u002Fgpu-cost.md#count-queue-work-and-record-jobs) reads them, and\n[runtime contracts](references\u002Fruntime-contracts.md#1-image-lifetime-is-leased-per-image-and-per-reader)\nowns the record job (`gpu.faults record \u003Cn>` fails one to exercise abandonment).\n\n`world.counters gpu` runs to hundreds of kilobytes in a world with many graph\ninstances, past the 1 MiB an MCP result carries, so ask for what you need:\n`world.counters gpu summary` (one `draws vertices texels dispatches` line per\nnode), `node sdf:world` (a node and the nodes under it), `pass sdf.world$mesh`\n(a pass label, or its prefix by whole segments, in every node that has it; it\ndrops the lifetime, owned-bytes and outside lines) and `counter vertices` (a\ncount-name prefix). They combine, and `--json` takes them too. A text reading\npast `WorldCountersCommandModule.GpuTextBudget` characters prints the summary\nunder a note. A pass label is not a node name: `node sdf.world$mesh` is refused\nwith a hint to use `pass`. The counts are read back a few frames late: the first\nreading after a camera pose or a lever change can still show the previous\nframes' work, so read twice and keep the second. A settled capture disables rated\nupdates but retains two-phase occlusion. Staged order is preserved within each\nphase; an exact coplanar depth tie across phases can depend on prior visibility.\n\nAttribute shading cost by toggling the live levers (`world.shadows`, `world.ao`,\n`world.indirect`, `world.render-scale`) and isolate the raster with\n`world.debug-view depth`. Compare the whole frame, not one pass. `puck counters`\nboots a workload on both backends and `puck counters compare \u003Cbefore> \u003Cafter>`\nholds two reports to each other; a deterministic count must agree on both\nbackends. `world.debug-view` lists the diagnostic images. For a frame-time bar,\n`host.frames` on the windowed host gives produce, simulate and their sum per\niteration (avg, p50, p99, max) and the worst iterations split into their\nphases (simulate, begin, produce, present, wait) with their collections and the\npacer's lateness ([Puck.Launcher](..\u002F..\u002F..\u002Fsrc\u002FPuck.Launcher\u002FREADME.md)).\nProduce is split into `produce-work`, the frame thread's own work, and\n`produce-fence`, its time blocked on submission fences (`GpuFenceBlocking`,\ncounted in `GpuBatchedSubmissionFence`'s one wait door): a produce that grows\nby its fence share is GPU back-pressure, not CPU work.\n\n- **The far cascade is the frame's largest variable pass; read whether it\n  holds.** With box-only selection it draws nearly every caster in a 280 m box out to 200 m toward the\n  sun, at each mesh's coarsest level whose error fits a texel, in two layers,\n  so a view facing the debug world's lawn, forest and studio draws many times\n  the mesh pass's vertices there (`world.counters gpu pass sdf.world$shadow-far\n  counter vertices`, which counts only the layers a frame draws).\n  `world.counters sdf.rates` counts `shadow-far.rendered` (both layers),\n  `.split` (one layer of a split refresh) and `.held`: a 60 Hz view that splits\n  shows `.split` on every frame; one that shows `.rendered` on every frame pays\n  a whole refresh each frame. The hold tolerates the light turning by\n  `SdfUpdateRateTiers.ShadowFarLightTurnRadians` (a day clock's sun turns every\n  frame); a timed refresh always draws the depth on one frame and the exit\n  layer on the next (`SdfFarLayers`), so no frame draws both layers for the\n  rate's sake and a slow frame is never held slow by its own cascade. The pass\n  asks `SdfWorldPasses.RecordFar`, which answers both for a layer its graph has\n  not drawn, and `SubmittedFar` commits each drawn layer's camera; the surface\n  pass reads the exit layer through the pass block's fourth camera. Compare\n  `world.gpu-timing`'s `sdf.world$shadow-far` with `world.debug-view indirect`,\n  which keeps the cascades but drops the views shading's cost and the temporal\n  resolve.\n- **A window whose extent swings rebuilds on a backoff.** A window a moving\n  camera crosses (the endless fall's floor and ceiling paintings) requests a new\n  extent every few frames; a resize build the request outran is discarded, and\n  each discard doubles the advances the node waits before the next resize build\n  (at most 32), cleared by an install (`ShaderPipelineRenderNode.Build.cs`,\n  `AnExtentSwingingFasterThanItsBuildsBacksOffAndASettledOneInstallsAtOnce`).\n  Without the backoff such a window builds and discards a graph every frame.\n  Holding a window's larger allocation instead (a shrink delay in the\n  scheduler's footprint quantisation) keeps full-resolution windows rendering\n  and makes the fall GPU-bound at 30 Hz.\n- **One decision schedules a session view.** `WorldViewGraphHost.PortalSightOf` decides every\n  session footprint and every root a filming camera gives a session it films (`RootFilmedViews`):\n  the frustum test (`WorldPortalVisibility.Sees`, no facing test, since a slab's back and sides\n  sample its image) against the consumer's current composed camera, then the views lever's hold of a glass\n  whose width and height are both at or below `SdfUpdateRateTiers.ViewHeldPixels` of the consumer's image.\n  `PublishPanes` finishes demand after camera placement; display shares are measured before small-glass pruning.\n  A reappearing view releases its rate floor immediately. Visibility reads `IWorldViewScenes.TryVisibilityCamera`,\n  never the last-rendered camera retained for picking; an unknown current camera keeps demand conservatively.\n  A session rendering\n  where nothing shows it is a demand that bypasses this decision: `world.budget`'s live frame line\n  names each instance's demand (`root` for a filmed root), and `world.rates` lists held views as\n  `@held`. A settled capture (`IRenderGraphInstances.SettledCapturePath`) turns the graph host's\n  levers off. `SdfPortalSight` supplies completed per-consumer slab tests from the mesh pass's existing\n  farthest-depth pyramid. `SdfMeshOcclusion` dispatches one additional workgroup through `sdfOcclusionMaySee`\n  and reads its result only once its node proves the frame slot complete. A changed camera or slab, unknown result, or replaced\n  view\u002Fprogram retains demand. Occlusion is presentation evidence from an earlier completed frame;\n  moving occluders carry that delay. Settled captures and non-occlusion cull modes bypass it.\n- **A program's bake plan is made on its build thread.** The composition\n  source hands each program its background build finishes to\n  `ISdfFrameSource.ObserveBuilds`, the residency plans it there\n  (`SdfMeshPathBake.PlanAhead`), and the first frame that draws it re-plans only\n  the groups it cannot keep (`SdfMeshBakeGroup.Refresh`). Editing either file\n  changes the bake identity: check `puck mesh identity` before booting.\n- **Static placement emissions survive program rebuilds.** `WorldStaticPalettes`\n  keeps each immutable row's `SdfProgramBuilder.Emission`: instructions and\n  profile tables, plus its volumes and mesh draws. A response emits the swapped\n  rows alone. The cache also checks the prototype, palette ids and extent,\n  resolved frame, text catalog and isolation mask. Retained recolor windows\n  bind to the new builder's material scope; never retain the old builder through\n  a scope. A same-sized mesh draw list stages changed records even when meshes\n  swap, while the arena leaves existing mesh addresses standing.\n\n## Seeing a change\n\n- A lockstep frame waits for its composition's program build and its mesh bake.\n  A completed mesh is still pending until `Dress` includes it: a load can finish\n  between dressing and preparation, and testing only the worker would certify\n  the partial mesh list. `IRenderGraphPackageFactory.WaitingOf` keeps a rendered\n  package incomplete while its residency's bake is pending. The host\n  holds that tick; exposure adapts once the complete frame supplies its meter.\n  A capture freezes the authored frame, then dresses newly completed meshes.\n- Lockstep irradiance waits for both the current static scene's build and its\n  probe trace (`SdfMeshIrradiance.Stage`). Waiting only for the trace can render\n  no volume on the first frame, or the preceding scene on a replacement frame.\n  The CPU irradiance law compares the first staging of each against a completed\n  trace; looping staging calls until a write appears would hide that defect.\n- An image source owns its extent even when a buffer graph consumes it. Propagate\n  its demand without multiplying by the buffer consumer's zero pixel footprint\n  (`RenderGraphScheduler`), or a cold conversion can finish building and never\n  install. A package whose last frame is incomplete cannot stand unchanged\n  (`RenderGraphRuntime.WithUnchanged`): its pending sources still need renders.\n  A retained \"building\" reason alone does not prove a worker is still building;\n  inspect the live schedule and completed build as well.\n- Screen-light reproduction must compare source bytes, not just graph publication\n  numbers. `MachineVideoSourceUpload` numbers uploads, while a queued machine's\n  video read takes its latest completed native frame. Equal publications can\n  therefore feed different images to `ScreenEmission`. Lockstep uses the existing\n  synchronous machine advance before rendering. A fence wait, readback or GPU\n  validation can mask this worker race by changing pacing; diagnose the CPU\n  video bytes and native frame version before changing GPU barriers.\n- Build: `dotnet build src\u002FPuck.SdfVm -c Release -nodeReuse:false` runs DXC\n  (needs `dxc` on `PATH`). A Windows build of one project builds DXIL only, and\n  a World run of it refuses `--backend vulkan`; run Vulkan from a solution\n  build or with `-p:PuckShaderSpirvEnabled=true`. A build of one suite under\n  `tests\u002F` builds SPIR-V (`tests\u002FDirectory.Build.rsp`). Shader outputs come\n  from the per-user shader cache; never copy bytecode between trees.\n- Run it and look: start a World with `puck_world_start`\n  ([puck-world](..\u002Fpuck-world\u002FSKILL.md#the-live-world-is-shared); `windowed: true`\n  only for a granted GPU leg), edit, `world.shaders.reload`, capture, and end it\n  with `puck_world_stop`. A claim about\n  how something renders rests on an inspected capture; say which backends you\n  looked at. A boot bakes the groups the mesh store does not hold; a reboot of\n  an unchanged world loads its completed meshes, and an empty `--cache-dir`\n  bakes all of them. A cold debug-world bake can span thousands of rendered\n  frames, while simulation advances many ticks per frame. Before capturing the\n  finished scene, use `world.wait bakes \u003Cseconds>` and require its settled\n  result, then check for `[sdf.mesh-gi] done` in the log. A tick wait or\n  `world.wait ready` alone does not establish that all meshes are present.\n  The debug world's full probe convergence takes minutes after the bakes\n  settle, and before it a view shows the sky-only ambient: whites and shadowed\n  faces read blue-grey where the converged lawn bounce reads warm green-yellow.\n  A backend pair captured without lockstep at different convergence states\n  looks like a colour divergence between backends; it is not one (`world.indirect off`\n  reproduces the unconverged look). Compare backends under lockstep, which waits for the trace.\n  A byte comparison sets `world.lockstep on` before the first tick in both legs,\n  then waits for bake settlement before requesting the still. An ordinary settled screenshot converges temporal views\n  but does not request `SdfFrame.ConvergesLighting`; it can capture before a background GI\n  trace finishes. Pin the camera and tick in both legs and use lockstep's\n  synchronous scene\u002Frefill\u002Ftrace drain for the comparison.\n  Keep each code build's completed private mesh store for warm comparison\n  legs: sharing one directory does not share payloads across changed bake\n  identities, and silently turns the second leg into another cold bake.\n  `world.rate pause` also stops tick waits: several timing reads separated by\n  `world.wait` then repeat the same completed GPU window. Use separate control\n  requests spaced in wall time when measuring a paused scene.\n- Device-free suites: `dotnet test tests\u002FPuck.SignedDistance.Tests -c Release --no-build`\n  after a `-nodeReuse:false` build (ISA packing, Lipschitz, bakes) and `tests\u002FPuck.Shaders.Tests`.\n  Anything that answers a bake lattice on the CPU (`MeshCpuBake`, the SdfVm laws' kernel stand-ins) places\n  each sample with `SdfMeshBakeRequest.SampleAt`, as the kernel does: a slab keeps its final lattice's\n  origin and counts its planes from `Slab`, so a copied grid formula answers a slab at the wrong planes. Cross-backend\n  parity (`puck parity --world \u003Cfile>`) needs a parity world with its contract\n  beside it, and none exists while the debug world is the one live world; until\n  one does, compare the two backends' captures and counts yourself.\n- Capture fixtures in a sandbox without a desktop monitor must replace both\n  the debug desktop graph and its screen producer with `source.color`, and\n  remove that screen's `padPointer`. Offscreen hosting alone still tries to\n  open the authored capture source. Use a private copy of the whole package\n  with the same entry filenames: a renamed wrapper changes document identity,\n  so garden\u002Fnight back-references can instantiate another debug world. Keep\n  device-machine screens intact and disclose the desktop substitution in the\n  capture report. After a suit change, allow its rule to run and check the\n  residency's `[sdf.mesh-bake] done` log before capturing with\n  `world.wait bakes \u003Cseconds>`: a tick wait alone can show the old mesh\n  stretched over the new rig. Clear an operator camera with\n  `view.override camera auto` before switching to a following motion layout.\n- GPU captures, device faults and the validation layers:\n  [kernels](references\u002Fkernels.md#captures-faults-and-validation).\n\n## References\n\n| File | Read it for |\n|---|---|\n| [references\u002Fkernels.md](references\u002Fkernels.md) | The shader build, hot reload, the frame's passes, the visibility record, bindings, diagnostics, captures and device faults |\n| [references\u002Fsync-pairs.md](references\u002Fsync-pairs.md) | Every C#↔HLSL coupling and which side is generated |\n| [references\u002Fmesh-bake.md](references\u002Fmesh-bake.md) | The bake's contouring, groups, mesh region, store and `puck mesh audit` |\n| [references\u002Fmesh-gi.md](references\u002Fmesh-gi.md) | Probe visibility, the volume boundary, CPU bounce sampling and exposure |\n| [references\u002Fgpu-cost.md](references\u002Fgpu-cost.md) | A kernel's registers and occupancy (Nsight GPU Trace, PIX, RenderDoc), divergence, coalescing, groupshared banks, wave intrinsics, half precision, dispatch limits, CPU↔GPU waits and GPU allocation |\n| [references\u002Fruntime-contracts.md](references\u002Fruntime-contracts.md) | The render-graph runtime's invariants, before changing `RenderGraphRuntime`, a recorder, a capture path or pacing |\n\n## Route adjacent work\n\n| Skill | Route there for |\n|---|---|\n| `sdf-authoring` | Sculpting creations: primitives, blends, palette, rigs, bake work and bytes. |\n| `puck-world` | What world-document sections mean and console verbs' semantics. |\n| `puck-dsl` | `.puck` grammar and the compile\u002Flint verbs. |\n| `maths-usage` | Fixed-point primitives for the query evaluator. |\n| `dotnet-performance` | Host-side C# hot paths. |\n| `platform` | Native windows, display facts (VRR, colour space, display power), precision waits, camera rings that feed shared textures. |\n| `physics` | Contact against the authored field, which the drawn mesh must agree with. |\n| `verification` | The landing bar, GPU legs and how to read a failed check. |\n","# Rendering\n\nA map of Puck's GPU presentation code: where each part lives, the contracts\nthat bite when you change it, and how to see a change. [Rendering](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002FREADME.md)\nand its handbook explain the renderer; package READMEs own the detail. When this\nfile and the code disagree, the code wins and this file is corrected in the\nsame change.\n\nRendering is presentation: floats are legal, and nothing here may feed back\ninto simulation state. The deterministic contract lives with the fixed-point\nquery evaluator (`SdfFieldEvaluator`) and `maths-usage`.\n\n## Authored shading\n\nRead [authored shading](references\u002Fauthored-shading.md) for `SdfShadeProgram`,\nthe op table, CPU admission, slice ownership, helper-closed cost, shadow demand\nand generated interpreter\u002Femitter semantics, shared GPU phase invocation, the\nbounded dispatch planner, and the three views and glass kernels (plain,\ninterpreter, specialized set) with their one publication door. CPU admission\nproves neither driver spill behavior nor the measured dispatch margin; those\nremain in the author-shader plan. A views or glass register reading names its\nkernel: `[pipeline-statistics]` lines (Vulkan) print `sdf-world-views`,\n`sdf-world-views-plain` and `sdf-world-views.shade-\u003Cset>` apart.\n\n## Camera bloom\n\nThe [bloom decision](..\u002F..\u002F..\u002Fdocs\u002Fdecisions\u002Frendering.md#bloom-is-a-cameras-scatter-applied-once-before-tonemapping)\nowns the design; the [frame handbook](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fframe-rendering.md#camera-bloom)\nowns authoring and pass order. `SdfWorldPackage.WithBloom` declares the endpoint's\noptional output-relative pyramid; `SdfBloomRecorder` records its down\u002Fup passes.\n`SdfWorldPasses.Entry.OpticalBloom` gates transport, diagnostic, full screen\nfidelity and disabled views before allocating. Keep that gate and `world.bloom`'s\nreported bypass reasons aligned. Direct root views export the named `bloom` image\nfor `place.bloom`; filmed cameras use `bloom-apply`. The direct image\n`BloomDirect` binds the composite's output member. A named image publication\nmust retain its storage through graph replacement and carry its readable layout,\njust as the default image does. Optional absent bloom binds the shared stand-in.\nKeep root placement's optional input stable across enable\u002Fdisable: a graph still\nrendering while its replacement builds must not lose its per-frame leased binding.\nNever bloom portal\u002Fwindow\u002Fmirror transport or raw screen textures. Never sharpen\nthe scatter. Every diagnostic except the bloom-only view bypasses optical scatter.\n\n`Shared\u002Fbloom-filter.hlsli` uses cell-edge reflection and conservative cell\nintegration. Unit-sum taps alone only preserve constants: edge clamping duplicated\na corner impulse's energy, and point resampling odd levels changed their mean.\nKeep the constant, impulse and odd-grid witnesses in `BloomEnergyLawTests`; include\nthe final placement tent and FP16 storage. Fractional radii blend symmetric kernels\nat adjacent integer widths, rather than combining their interpolation with the\nresampling. Placement can minify the retained source envelope during a shrinking\nlayout transition. Integrate its entire footprint, including edge hats; the axis's\nthree cached pairs are not a tap limit. Keep the 2×, 4×, 10× and one-pixel placement\nconstant\u002Fimpulse witnesses. Renormalizing truncated taps still discards energy.\n`CameraBloom` is a value; `WorldBloomLawTests` covers on\u002Foff allocation.\nSeat lens selection happens beside pose selection from the active endpoint's program.\n`PlaceViews` derives optical placement from the resulting snapshots, including routed\nseats and camera-mode overrides. Never infer it from unused boot-world programs.\nPublish that demand for the next `BeginFrame` reconciliation. Reconfiguring from\nplacement mixes newly selected capture-fill\u002Fenvironment reads with footprints\nalready formed for the current frame and can make a capture refuse or crash.\n\nPin exposure (`world.exposure pin`, which also stops local adaptation) for on\u002Foff captures, and record each EV with\n`world.exposure`. Use `world.rate pause` to hold one simulation tick for the pair.\n\nFor a motion burst, arm it inside a sustained pan and inspect its reported ticks:\nan eight-tick pan can finish before the first of eight asynchronous captures lands.\nMotion still runs publish an Operator attachment, as sweep and motion routes do.\nUse it to inspect a stalled run; for shadow-only diagnostics, disabling indirect\nlighting avoids an unrelated probe-convergence wait. Keep lighting enabled for\nnormal frame measurements. `world.cull frustum` changes camera selection too;\nuse `world.cull camera` to isolate cascade culling with camera occlusion unchanged.\n`world.wait residency` follows the latest render schedule through\n`SdfWorldPasses.PendingMeshesIn`: newly scheduled renders, standing and deferred\ncontributors owe their geometry, including before the first submission. The host\nresidency is checked directly. Unread views and waiting views with no produced image\ndo not contribute. Readiness reads the schedule on the host pump, without looking\nits names up in a potentially replaced node set.\nA refusal names what the residency owes (`SdfWorldTables.MeshResidencyPending`):\nthe staged list's owed bytes and meshes, how many restore from the store or are\nin landing, whether background work may bind, and the arena's relocations, or the\nrequired upload against those submitted and completed and its fence. Landing runs\nat `SdfGpuWork.UploadBytesPerSecond` of wall time, so a boot owes the debug\nworld's 1.75 GB region for some seconds whatever the frame rate.\nWaiting on every allocated residency\ndeadlocks on hidden routed scenes whose GPU work correctly never starts.\n\n## Mesh pipeline limits\n\nGlass shadow extinction is authored by `SdfGlass.ShadowDensity` (zero by\ndefault; standard water opts in). Cascade selection's optical indirect phase\nroutes glass to `SdfMeshRasterPass.ShadowGlassKey`; opaque entry\u002Fexit stay in\ntheir own phases. Count glass vertices once and each executed opaque phase.\nOnly a program with a drawn positive-density glass shape adds optical storage\nthrough `WithGlassShadows`; the graph's ports govern its allocation, clear and\nsurface reads. Each texel holds three words (signed depth and nearest entry).\n`pipeline.inspect world` (or a session node named by `world.counters gpu`)\nreads the installed graph's named allocations and actual bytes. Read it beside\n`world.residency` and `host.memory`; those broader reports alone do not identify\nan optical buffer. A document reload clears the exposure pin, so pin the same\nEV again before comparing density-only reload stills.\nThe glass vertex variant clips zero-density triangles before rasterization;\nopaque vertices export only position and clip distance. Density has its own\ncadence signature, shared by cascades and surface, including palette-only uploads.\nThe cascade's optical-depth buffer integrates to its first opaque depth with\nthe shared `frame\u002Fsdf-optical-depth.hlsli` accumulator. Surface shadow taps\nread extinction and nearest glass entry beside the opaque depths. Glass is\nstill absent from the irradiance trace. Keep the separate glass descriptor\nset: binding the sampled entry depth while it is an attachment is invalid on\nVulkan even when an earlier shader does not read that binding. Return the\nentry depth to its attachment layout before the graph's outgoing transition.\nMaterial row 25.w carries shadow density beside cel ink RGB; keep its C# pack\nand HLSL load together without changing the row stride.\nFor a neutral-default comparison, omit density from both prototype palettes\nand field materials in `state.world`; changing only the prototypes leaves\nfield water shadowing. Compare fresh base and head processes with lockstep and\npause enabled before startup, identical camera, tick and pinned exposure. A\nsurface-only hot swap cannot establish the complete renderer's neutral default.\nThe glass fragment returns zero depth, which fails the pipeline's Greater test\nagainst non-negative opaque exit depth while preserving its optical side effects.\n`world.shaders.reload` replaces that kernel but not `SdfMeshRasterPass`'s\nocclusion\u002Fselection pipeline; a selection diagnostic needs a rebuilt host.\nFor an independent vertex check, `world.cull off` and one fixed `world.detail`\nlevel make the mesh, glass and cascades select the same geometry: each cascade\nmust count twice the mesh vertices plus exactly the glass vertices.\n\nDraw selection reads the retained `SdfWorldTables` staged draw span, the same\nrecords whose boxes and GPU records were uploaded. Never borrow the frame source's\nmutable draw list across staging: a portal handoff can clear it while the retained\ncount still names the previous records.\n\n\nThe frame rasterizes baked geometry. `SdfCompositionFrameSource` allocates the\nlive transform table and reports an actual `[world.render] envelope`; it builds\nno worst-case probe. `WorldRigidAssets` emits local creation templates once and\nsupplies `SdfMeshInstance` roots and identities. `SdfMeshDresser.Dress` expands\nthe shared mesh into copies without program or palette duplication. Fixed placements\nreuse the ordinary static emitter in prototype-local ranges (`SdfMeshTemplateRange`),\nincluding its per-shape bounds, detail regions and separate groups. The largest\noccurrence bakes at ordinary authored scale; copies use relative matrices. Do not\nreplace that partition with one dynamic whole-object range or promote the default\nbake spacing into explicit detail: both increase tessellation. `IsDynamic` selects\nstatic lighting membership; `UsesRootMaterialFrame` independently selects material\ncoordinates while retaining the root slot for skinning and portals. Dressing retains\ngroup\u002Fcopy topology and immutable per-surface picking metadata across pose changes.\nIts flat reverse binding indexes consume the frame's captured transform changes;\nthe output draw journal and GPU tables retain independent consumer cursors. Keep\nthe source identity, captured serial, roster and row count together. Never use a\nlater producer serial for a borrowed frame, map landing-filtered indices back to\nthe full roster, or skip the final GPU history settle because no draw changed.\n`GpuChangedRows` owns the bounded history for both transform and draw changes;\nmissing\u002Ffull\u002Fexpired history and active portal clipping refresh conservatively.\n`world.residency` reports logical journal\u002Fscratch array bytes separately from\nmesh residency and the overlapping process\u002Faccount\u002Fbackend memory readings.\nPending bake demand reads the same occurrence index and transformed copy boxes;\nprototype-origin boxes and a union of far-apart copies misprice both priority and\nnear-residency diagnostics. Animated\ncreation fields use root and motion-owner deltas; CPU pose scratch remains per\nactual shape. Bake groups keep separate bounds and detail even when they share\na motion slot; the lattice frame and instance selector are independent. Use\n`boundInSlotFrame` for rest-pose offsets on a moving owner's slot; a world-axis\noffset would move the bake's box away from the geometry when that owner starts turned. A skin\npast 255 members throws before queuing, instead of attaching excess members\nto the root. Volume overflow is explicit. Scope depth is 4, screen bindings 32,\nand derived faces follow authored screen indices. `SDF_MAX_INSTANCES` bounds\none bake program, not a per-world render budget.\n\nA retained separate bake group must still ride the newly planned `Slot`, even\nwhen its instance selector and local geometry stay unchanged. Rigid draw poses\nare picking metadata; `SdfMeshDraw.MotionIdentity` names the stable body\u002Fsurface\nfor both whole-list and changed-record uploads. Rigid copies include the entity\naddress and pose-discontinuity epoch in that identity, so teleports and reseats\nseed the previous mesh matrix at the new pose, including authored meshes.\nNoncopy groups consume the same captured transform-reseat journal at mesh staging.\nA root or vertex-used skin-member cut advances the draw generation and seeds its\ncompact previous matrix, even when packed pose bytes are unchanged. Keep this\nconsumer cursor independent of dynamic-table and draw-change cursors; unknown\nhistory cuts transform-dependent draws conservatively. Ordinary continuous motion\ndoes not trigger a reseat roster scan. `SdfMovedTransforms.Commit` retains explicit\nequal-pose cuts during both incremental updates and repacks.\nRigid root followers observe\nportal carry history, reseeding when it expires. Isolation also filters rigid\ntemplates, parented paints and volumes, text and authored meshes.\n\n`SdfMeshLibrary` retains an age-ordered byte budget derived from available\nmachine memory, evicting oldest geometries rather than clearing the library.\nMeasure draw\u002Fvertex\ncounts, actual transform rows, program\u002Fmaterial bytes, region residency and\nbakes; the lead measures frame times and edit-to-running on a quiet machine.\n\n## GPU residency\n\nA table the host writes each frame is a `GpuRegion` (`Puck.Abstractions\u002FGpu\u002FResidency`). Create it with the\nprofile constructor so it chooses ring, in place or staged by `GpuResidency.Select`, and grow it only through\n`Grow`, which chooses again and restages a region past a ring's share of the aperture; never select a policy or\nreplace a region in the owner. A fixed policy (the always-staged mesh region, uniform frame blocks) uses the policy\nconstructor. Round a constant-buffer block with `IGpuBindings.ConstantBufferBytes`. What `Grow` returns retires\nafter the submissions that read the old buffers (`SdfWorldTables.Retire`).\n\nA growing table picks its next size with `GpuCapacity`: `Grown` (a fraction of the current size, for amortized growth)\nor `Headroom` (a fraction over the need, for a table fitted to its need). An object replaced while a queue may still\nread it waits in a `GpuRetirementQueue` keyed by a completion point counted on one queue (an upload's sequence, a native\nfence value). A package recorder never sees a fence: a result its recording captured (a readback, a publication, a\nsubmission's shading identities) lives in a `RenderGraphSlotResults` and is read only when the node reports the slot\ncomplete (`IRenderGraphPackageReadback.Completed`), which the node does from `WaitSlot` as it reuses the slot or as\nsoon as an owed slot's fence reads signaled (`ShaderPipelineRenderNode.PollReadbacks`), and before it disposes a\nretired graph whose submissions completed. Buffers a recording replaced retire at that slot's next completion\n(`SdfMeshOcclusion.Completed`). A reusable slot fence reads signaled after an abandoned submission and after a loss's\ndrain, so polling one is never a proof.\n\n## Far-cascade caster selection\n\n`SdfMeshOcclusion` and `sdf-mesh-occlusion.comp.hlsl` are the one classification\ndoor for camera and cascade draws. The far cascade reads the current mesh target\nthrough a graph dependency. `sdf-caster-receivers.hlsli` reprojects every covered\ncamera sample with its render grid and jitter into light-space occupancy cells;\nOR-reduced parents conservatively cover a query rectangle. Expand caster boxes\nby `SdfMeshCull.ShadowFilterTexels`, the complete search\u002Ffilter and normal-offset\nreach, before querying. Keep unboxed draws. Camera invisibility of a caster is\nnever evidence that it cannot cast a visible shadow.\n\nEntry depth uses the camera pass's two-phase mechanism in the light's orthographic\nprojection: draw previous survivors at current transforms, build the maximum\nforward-depth pyramid with infinity for holes, then draw new survivors. Phase\nindices have one meaning: early entry, late entry, solid exit, thin exit, optical.\nExit (and a future identity peel) and glass lists depend only on box\u002Freceiver\nselection, never entry visibility. They execute after entry depth is final.\nNever use an earlier exit\u002Fpeel image to reject a caster.\n\nA receiver-conditioned cascade retains a coverage identity with each submitted\nlayer (`SdfWorldPasses.ReceiverSignatureOf`): the sample grid its receivers were\nclassified on (cull level, detail, extent, scale, cut, bindings), excluding the\nlight, the camera, the geometry and the jitter. The far rate can hold or split\nwhile both layers cover that grid; a changed grid refreshes both. The hold's own\ncamera tolerances and the receiver cells' neighbouring-cell margin cover the\ndrift the identity leaves out; a receiver a moving caster uncovers lags by the\nsame refresh its shadow does. Hashing the geometry signature or the jitter here\nends the hold on every frame anything moves, so a receiver-conditioned cascade\nthen pays a whole refresh each frame (`sdf.rates` shows `rendered` on every\nframe and no `split` or `held`). Readers use each layer's committed light\ncamera. The graph keeps the sampling barrier, while the package projects its\ncadence dependency onto the consumed receiver inputs, so unrelated mesh writes do\nnot invalidate it. `world.cull camera` removes the receiver input and disables cascade\ndepth occlusion, retaining the original far rate and camera occlusion. Count held\nonly when the pass stands, and rendered\u002Fsplit only on successful submission.\nFor a complete-refresh cost comparison, set `world.rates shadow-far off` on\nboth sides. Also measure ordinary cadence: replacing a split refresh with two\nculled layers can cost more in a view with little rejection even when a whole\nrefresh costs less. Report those separately and read `sdf.rates` beside the\ndraw\u002Fvertex counters; a split frame's counts cover only its submitted layer.\nCompare counts beside time and shadow diagnostic captures on both backends;\ninclude a moving camera and reduced\u002Ftemporal render grids. The receiver scratch\nshares the depth allocation and its existing slot-fence retirement; early\ncompute samples camera depth, late compute samples light depth, in separate sets.\n\n## Evidence-preserving diagnostics\n\n`world.debug-view colliders|contacts` uses the beauty path through temporal\nresolve, sky, glass, fog, exposure and the root tonemap\u002Fsharpen. Keep\n`DebugViewModes.PreservesScene`, `sdfDebugPreservesScene` and the temporal epoch\nkey together. Diagnostic marks belong only to `AnnotationWriter.EmitDiagnostics`'s separately\nreserved overlay channel; its masks protect every causal footprint, including\noverflow beyond the sixteen visible pins. Focus removes chroma outside those\nfootprints without changing luminance. Keep masks exact rather than coalescing\nthem into spatial bins: those bins show as rectangular chroma islands in focus.\nBeyond the mask reservation, conservatively protect overflow and leave focus\noff. Place badges beside witnesses with short leaders; collisions overflow to\nthe report rather than forming a screen-wide leader band. Never paint a diagnostic into history,\nthe visibility buffer or lighting.\n\n`WorldDiagnostics` separates collision-versus-authored-field from\nfield-versus-baked-mesh. The latter reuses the irradiance scene's retained\ntriangle hierarchy only when its exact draw records and delivered document\nversion match and the bake has settled. The client document is not necessarily\nthe server's object: compare `WorldDocumentVersion` by value, never their\ndefinition references. `SdfMesh.BakeCell` comes from the actual\ncontour lattice, survives cache storage and material renumbering, and supplies\nthe hit triangle's half-cell-diagonal budget. No saved baseline or allowlist is\ninvolved. A second `SdfWorldPicker` per instance asynchronously reads cluster\ndepth without stealing pointer requests; discard results across camera, mesh,\nprogram or view changes.\n\n`WorldDiagnosticGeometry` must read each compiled collider as physics does.\nFor `RoundedBox`, `Extent` is the inner box and `Radius` is its spherical\noffset: sample its faces, edge fillets and corner fillets, then apply `Rotation`.\nDistance queries inverse-rotate and subtract the radius after measuring the\ninner box. Treating this kind as an unrotated sharp box creates metre-scale\nfalse findings and also misclassifies buried union surfaces. Compare witnesses\nwith `FixedSurfaceQuery` and the contact narrowphase. Chamfered authored Boxes\ncan still yield real inward discrepancies from their conservative inside\ncolliders; neither the fillet nor the chamfer is an error-budget allowance.\n\nOpposing planar face interiors of touching boxes are inside their union, not exposed collision boundaries; certify that local relation before comparing them with the exterior mesh. Edges and corners stay measured, except against the mesh where no free ball of the hit triangle's half diagonal reaches the witness (`WorldDiagnosticGeometry.OpensOnto`): the fillet groove along an edge three filleted boxes share is in the field and the colliders but under the bake's cell, and counts `enclosed`. Only exact collider distances may close such a void; a bound's blocks a ball only when its centre lies inside. Mesh diagnostics use `WorldDiagnosticMeshQuery` and the retained scene's\n`TryNearestSurface`, not normal-ray hits. The nearest query reuses both levels\nof the trace hierarchy and tests world-space triangle distances (object-space\nnearest points are wrong under nonuniform scaling). It includes edges and\nzero-distance witnesses. The search radius is four times the sum of\ncollision\u002Farithmetic precision and the scene's largest bake half diagonal; only the returned\ntriangle's own precision enters its budget. A miss is unknown. Grounded checks\nrequire the nearest retained support surface to be walkable; a missing or\nunqualified hit is unknown too. `coverage.comparisons` counts red, clean and\nunknown witnesses separately from causal findings. Never add a fillet, bound\nor snap-reach allowance, or suppress authored-field findings to quiet the mesh\naudit. The owning decision is [diagnostic evidence](..\u002F..\u002F..\u002Fdocs\u002Fdecisions\u002Frendering.md#a-diagnostic-view-never-covers-its-evidence).\n\nCaptures on the synthesized overlaid root retain the beauty image, annotated\nimage and JSON together. Attach the companion to `WorldRootGraph.OverlayInstance`,\nwhich serves the screenshot, not `ComparisonLiveRoot`, which is the beauty\nsource. The capture companion waits for both display encoders;\nits closure owns pixels and JSON before background encoding starts. Custom\nauthored roots need an equivalent beauty\u002Foverlay split before they can supply\na triplet. See [scene diagnostics](..\u002F..\u002F..\u002Fdocs\u002Freference\u002Fcommands.md#scene-diagnostics)\nfor commands, coverage and the GPU handoff checks.\n\n## Where things live\n\n| Area | Code | Explanation |\n|---|---|---|\n| Program model and ISA | `src\u002FPuck.SignedDistance` (`SdfOp`, `SdfShapeType`, `SdfBlendOp`, `SdfDomainOp`, `SdfProgram*.cs`, `SdfProgramBuilder*.cs`, `SdfOpRoles`) | [program model](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fprogram-model.md), [Lipschitz](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Freference\u002Flipschitz-and-field-correctness.md) |\n| CPU interpreter and queries | `src\u002FPuck.SignedDistance\u002FQueries` (`SdfFieldEvaluator`, its `Bounds`, `Cull` and `Certificates` partials, `BakedWorldQuery`) | [queries and determinism](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fqueries-and-determinism.md) |\n| Mesh bake | `src\u002FPuck.SdfVm` (`SdfMeshPathBake`, `SdfMeshLibrary`, `SdfMeshStore`, `SdfMeshRegionArena`); `src\u002FPuck.SignedDistance\u002FBaking` (`SdfSampledLattice`, `SdfDualContouring`) | [mesh bake](references\u002Fmesh-bake.md) |\n| GPU engine | `src\u002FPuck.SdfVm` (`SdfWorldResidency`, `SdfWorldTables.*.cs`, `SdfWorldPasses`, `SdfWorldPassRecorder`, `SdfWorldPipelines`) | [`Puck.SdfVm` README](..\u002F..\u002F..\u002Fsrc\u002FPuck.SdfVm\u002FREADME.md), [frame rendering](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fframe-rendering.md) |\n| Kernels | `src\u002FPuck.SdfVm\u002FAssets\u002FShaders\u002FSdf`: `isa\u002F` (generated), `field\u002F` (the interpreter the bake samples through: `mapCore` in `sdf-map.hlsli`, the part walk in `sdf-parts.hlsli`), `frame\u002F` (the visibility record, the mesh tables, reprojection), `shade\u002F`, `sky\u002F`, `debug\u002F`, and under `passes\u002F` one `*.comp.hlsl` wrapper per dispatch plus the stage modules | [kernels](references\u002Fkernels.md) |\n| Generated kernel declarations | `src\u002FPuck.SdfVm.Model` (`SdfIsaHlsl`, `SdfRenderHlsl`, `SdfKernelInterfaces`, `SdfSkyKindsHlsl`) and `src\u002FPuck.Shaders.Model` (`ShaderDeclarations`); written by `src\u002FPuck.Shaders.Generator` before any kernel compiles | [sync pairs](references\u002Fsync-pairs.md) |\n| Cameras and views | `src\u002FPuck.SdfVm\u002FViews`; `WorldViewInstances`, `WorldScreenBinder.*` | [motion and views](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fmotion-and-views.md) |\n| World data into frames | `src\u002FPuck.World.Client` (`WorldFramePresenter`, `WorldSceneEmitter`, `WorldPlacementStamper`, `WorldCreationInstances`); `CreationStampEmitter` | `puck-world` skill |\n| Shader packages, pipelines, render graph | `src\u002FPuck.Shaders` (`RenderGraphRuntime`, `ShaderPipelineRenderNode`, `ShaderPipelineCompiler`), `build\u002FShaders.targets` | [shaders reference](..\u002F..\u002F..\u002Fdocs\u002Freference\u002Fshaders.md), [runtime contracts](references\u002Fruntime-contracts.md) |\n| Backends | `src\u002FPuck.Vulkan`, `src\u002FPuck.DirectX` and their `.Presentation` projects | [contributing: GPU support](..\u002F..\u002F..\u002Fdocs\u002Fdevelopment\u002Fcontributing.md#gpu-support-and-shader-builds) |\n\nFind the existing mechanism before adding one: `puck references`,\n`puck declarations` and `puck search -M 0` (the `symbol-analysis` and\n`content-search` skills).\n\n## What already does it\n\nThe map above answers \"where is symbol X\". A duplicate is written when the\nquestion is \"what does X\" and no index answers it, so this table is by\ncapability. When your capability is in it, read the home before writing a line;\nwhen it is not, search by what the code does, not by the name you expect, and\nadd the row you found.\n\n| You need to | Existing mechanism | Home |\n|---|---|---|\n| Evaluate the field on the CPU, deterministically (contact, picking, bounds, cull certificates) | `SdfFieldEvaluator`; its GPU partner is `mapCore` | `src\u002FPuck.SignedDistance\u002FQueries`; [sync pairs](references\u002Fsync-pairs.md#instruction-semantics-shared-by-both-interpreters) |\n| Bake a mesh from the field, or find the one already baked | `SdfMeshPathBake` (the path), `SdfSampledLattice` and `SdfDualContouring` (the sampling and contouring), `SdfMeshStore` (the shared on-disk cache of baked meshes, one set per bake identity) | `src\u002FPuck.SdfVm`, `src\u002FPuck.SignedDistance\u002FBaking`; [mesh bake](references\u002Fmesh-bake.md) |\n| Make coarser levels of a baked mesh, or choose a draw's level | `SdfMeshCollapse` (half-edge collapse, every level a subset of the mesh's own vertices), `SdfMeshDetail` (the level a draw takes) | `src\u002FPuck.SdfVm` |\n| Contour a group's field again at a coarser cell, or measure any level's error against the field (bracketed both ways, enclosure, material and normal runs) | `SdfMeshPathBake.ContourLevel`, `SdfMeshFieldLevels` (offline, `puck mesh audit --cpu --field-levels`) | `src\u002FPuck.SdfVm`; [mesh bake](references\u002Fmesh-bake.md) |\n| Skip drawing what a view, a cascade or the previous frame hides | `SdfMeshBox` and `SdfMeshCull` (host boxes), `SdfMeshOcclusion` (the depth pyramid test) | `src\u002FPuck.SdfVm`; [the dispatch bullets](#which-dispatch-owns-the-code) |\n| Put the world's placements into the program a frame draws | `WorldPlacementStamper` (static placements), `WorldCreationInstances` (animated, attached and inhabited creations), `CreationStampEmitter` (a creation's shapes) | `src\u002FPuck.World.Client`, `src\u002FPuck.World.Authoring\u002FAuthoring` |\n| Decide when a frame rebuilds and how it presents | `WorldSceneEmitter` (the composed revision), `WorldFramePresenter` (the `ISdfFrameSource` that delivers it) | `src\u002FPuck.World.Client` |\n| Add a camera or another view of the world | the view types in `src\u002FPuck.SdfVm\u002FViews`, `WorldViewInstances` | [motion and views](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fmotion-and-views.md) |\n| Run GPU work off the frame (a bake, a relight) | `SdfGpuWork` and its clients, `SdfMeshBakeGpuWork` | `src\u002FPuck.SdfVm`; [the bake's dispatch](#which-dispatch-owns-the-code) |\n| Compute irradiance, and check it on the CPU | `SdfMeshIrradiance`, whose CPU reference shares one probe lookup with the relight and the views shader | `src\u002FPuck.SdfVm`; [mesh GI](references\u002Fmesh-gi.md) |\n| Convert an image source's color or encode a display output | `ImageSourceConversion` and the display encode, each paired with its HLSL | `src\u002FPuck.Abstractions\u002FSources`; [sync pairs](references\u002Fsync-pairs.md#image-sources) |\n| Share a constant or a layout between C# and HLSL | a generated declaration (`SdfIsaHlsl`, `ShaderDeclarations`) first; a hand pair only where the table lists one | [sync pairs](references\u002Fsync-pairs.md) |\n| Add a pipeline variant to a pass | `GpuPassPipelineKey`: a field that changes the pipeline enters the key, or leases share the wrong pipeline | `src\u002FPuck.Shaders\u002FPipeline` |\n| Let an author program how a surface shades | `SdfShadeProgram` (the op table, admission, cost) | `src\u002FPuck.SignedDistance\u002FShading`; [authored shading](references\u002Fauthored-shading.md) |\n| Read where frame time goes | `world.counters gpu`, `world.gpu-timing`, the bake's `gpu-work=[…]` line | [performance and cost](#performance-and-cost) |\n| Divide by a fixed divisor, mix or hash packed keys, or compare keys, inside bake or presentation code | not rendering: the `Puck.Maths` primitives, which `maths-usage`'s Choose table lists | [`maths-usage`](..\u002Fmaths-usage\u002FSKILL.md#choose); `puck scan --only duplicates --against \u003Cbase>` before landing |\n\n## Which dispatch owns the code\n\nA view is a chain of separate dispatches: `mesh` (graphics, in two occlusion\nphases with the occlusion kernel between them, `SdfMeshOcclusion`) →\n`shadow-near`, `shadow-far`, `shadow-second` (graphics, the far cascade reading\ncurrent camera receivers) → `pyramid` (the ambient occlusion's\ndepth pyramid from the mesh target) → `surface` (each pixel's visibility record from the mesh\ntarget: normal, screen-space AO, the cascades' soft shadows into K;\n`passes\u002Fsdf-surface-stage.hlsli`) → `views` (materials and lighting) →\n`resolve` (reduced or temporal views) → `sky` → `composite`. A view of a\nprogram with a glass shape (`SdfProgram.HasGlass`) inserts `glass-clear` →\n`glass` (graphics, the glass draws alone) → `glass-shade` after `views`\n(`SdfWorldPackage.WithGlass`), and every later pass reads `glassLit` in the\nlit image's place. A view of a frame that runs authored programs inserts\n`views-filter` → `views-bins` before `views`, which then shades in bins\n(`SdfWorldPackage.WithBins`, [authored shading](references\u002Fauthored-shading.md#the-three-views-and-glass-kernels)). The surface and\nviews passes share one head and entry (`passes\u002Fsdf-pixel-pass.hlsli`,\n`passes\u002Fsdf-pixel-entry.hlsli`) and call no field query. The table in\n[kernels](references\u002Fkernels.md#the-frame) says what each writes.\n\nThe mesh bake's two kernels (`sdf-mesh-bake-mask`, `sdf-mesh-bake`, the one\n`mapCore` call site) are no pass of a view: they run as the residency's\nbackground GPU work (`SdfGpuWork`, its bake client `SdfMeshBakeGpuWork`), a\nring of slots each submitted on its own fence and refilled when a slot's job\ncompletes and its readback is released, pumped on the frame thread at the top\nof each frame and after each upload. A job binds the latest upload's World set\nwith its own point table and runs only while the tables' uploaded program is\nthe bake's (`SdfWorldTables.BindsBackgroundWork`, `BackgroundProgram`).\n`world.gpu-timing` does not see it; the bake's done line carries its\n`gpu-work=[…]` counts, each job's GPU time measured by its own timestamps.\n\n- **AO and soft shadows are estimated in the surface pass and filtered in\n  views.** The estimates (`sdfMeshAmbient`, `sdfMeshShadow` and their shared\n  4×4 tap pattern `sdfMeshPattern`, `passes\u002Fsdf-surface-stage.hlsli`) are the\n  surface pass's, written into the visibility record; views only averages them\n  over a 4×4 window (`sdfViewsFilter`, `passes\u002Fsdf-views-filter.hlsli`) before\n  shading. A wrong occlusion or shadow value (a dark band, a missing crease,\n  acne) is the estimate's, so an edit to the views lighting code changes\n  nothing; the window and the pattern's tile are a pair. A side is queried\n  wherever the light's diffuse response is non-zero, which for a wrapped\n  material reaches past the terminator to `n·l > -wrap` (`sdfMaterialShadowDemand`);\n  such a side reads the cascade's exit layer (below), or the wrap would shadow\n  itself away in the open. A side the response does not reach is never queried: its slot holds `SDF_SHADOW_UNQUERIED`\n  (`frame\u002Fsdf-shadow-visibility.hlsli`), which decodes as fully visible, and\n  the window's shadow average takes only queried pixels (`sdfShadowQueried`).\n  An unmeasured slot averaged in lights a one-pixel line along every\n  terminator and rounded edge the cascades shadow (indoors, a cosine just\n  above zero under the 100 klx sun), and no debug view shows it, since\n  `shadow` shows the average without its cosine. The average also leaves out neighbours whose normal\n  turns away, so a crease's two lit faces keep their own shadows. A sunlit spot on a wall's top under a slab is the\n  filter's (`sdfMeshShadowGap`): a tap counts the light hidden only inside the\n  light's cone over the point, and the penumbra is the nearest in-cone\n  blocker's. `world.debug-view ao`\n  and `world.debug-view shadow` show the filtered values, and `world.ao` toggles\n  the occlusion live.\n- **A cascade has two layers.** Each cascade pass draws its depth (every face,\n  `SdfMeshRasterPass.ShadowDescription`) and its exit layer (faces toward the\n  light culled, `ShadowExitDescription`) into its two outputs. A triangle the\n  surface pass sees turned from the light compares against the exit layer, so\n  its own body lets a wrapped material's light through while any other solid in\n  front shadows it; one facing the light keeps the depth, which holds no wall's\n  far face to leak light along the wall's foot. Winding says where light leaves\n  only for a draw that encloses a solid (`SdfMeshDraw.EnclosesSolid`); any other\n  draw (an open authored sheet, a portal-clipped body, a mirrored draw) enters\n  the exit layer whole, through the depth's cull-none pipeline, so it still\n  shadows a wrapped side behind it. A receiver turned from the light offsets\n  straight toward the light: an offset along its reversed face normal reaches\n  `1 \u002F (n·l)` times as far and passes a near blocker. A pipeline description field\n  that changes the pipeline must enter `GpuPassPipelineKey`: the cache shares one\n  pipeline per key, so a lease differing only in an unkeyed field silently gets\n  the other's pipeline (the exit layer then holds the depth's faces).\n- **Every raster pass culls draws by a host box** (`SdfMeshBox`, `SdfMeshCull`,\n  tested by `frame\u002Fsdf-mesh-selection.hlsli` through `SdfMeshOcclusion`): a\n  view's frustum, a\n  cascade's light box and the receivers it shadows. A box is the mesh's\n  position bounds through the draw's matrix and carry, so a draw whose vertex\n  stage moves vertices any other way (members' slots, a displacement) must have\n  no box (`SdfMeshBox.TryOf` returns false) or it vanishes while visible. A\n  missing object that `world.cull off` brings back is the cull's;\n  `gpu.vertices` in `world.counters gpu` counts what each pass draws. The same\n  box chooses each kept draw's level of detail (`SdfMeshDetail`): the view's by\n  its error in display pixels over the box's nearest depth, with the 1.1-pixel\n  band kept per draw in the GPU state, a cascade's by its texel. The residency\n  uploads bounds and level metadata once\n  in each changed mesh record; every raster pass uploads 224 bytes of controls\n  and records one counted indirect draw per phase. A draw with no\n  box draws its merged mesh, so a skinned body never coarsens. A shape that\n  changes when `world.detail 0` is set is the level's.\n- **The mesh pass also culls by occlusion** (`SdfMeshOcclusion`,\n  `passes\u002Fsdf-mesh-occlusion.comp.hlsl`, the default `world.cull occlusion`):\n  phase one draws the previous frame's visible set through a counted indirect\n  draw (`IGpuRecorder.DrawIndirectCount`), the kernel builds a farthest-depth\n  pyramid from the target's fourth channel (forward depth) and tests every kept\n  box, phase two draws the newly visible over phase one's target and depth. The\n  recorder moves the mesh target between the phases itself and returns it in\n  its attachment layout. The early occlusion dispatch binds a sampled filler;\n  only the late set binds the target after its transition. Vulkan requires the\n  descriptor's image layout even when the selected kernel branch never samples\n  it, and rewriting one shared set changes both recorded dispatches.\n  Draws a kernel issues are counted on the GPU past the\n  counter rows (`GpuKernelCounters.DrawnWords`), so `gpu.draws` and\n  `gpu.vertices` include them. Cascade selection emits entry and exactly one\n  exit command per kept opaque draw: solid exits use front-face culling, thin\u002Fclipped\n  exits the unculled pipeline. Glass emits once in its extinction phase.\n  Count those emitted commands, without another\n  selection or history write. Count entry and exit with separate wave reductions:\n  64 lanes of a maximum mesh's vertices fit a uint sum, twice that does not;\n  `puckAddWork` carries each addition into the 64-bit accumulator.\n  `CountingRecorder.DrawIndirectCount` counts the API call,\n  not its unknown draw\u002Fvertex totals. An object `world.cull frustum` brings back is the\n  occlusion's. The identity is a root constant on Direct3D 12. Vulkan reads it\n  from the\n  argument buffer through its pushed word base plus `DrawIndex`\n  (`sdfMeshRasterIdentity`); first instance stays zero. When\n  `CanDrawIndirectCount` is false, the recorder issues those same initialized\n  slots in one fixed `vkCmdDrawIndirect` when multi-draw is available; otherwise\n  it advances the word base for each individual slot, including empty rejected slots;\n  no raster CPU cull or level path remains. Keep command-to-vertex read barriers and\n  preserve level state when buffers grow. Compute binds the read-only command\n  alias to the dummy, while raster binds its real command buffer; binding it\n  alongside the compute writer would demand conflicting resource states.\n  `SdfMeshCull.Keeps` remains a live host query: `WorldCreationInstances.Rates.Shown`\n  uses it to keep an off-camera body's pose updating when its shadow is visible.\n  It does not select raster arguments. Include that downstream World consumer\n  when checking references; the SdfVm test project's dependency closure alone\n  cannot establish that a helper is unused.\n- **Reprojection interpolates displacement.** `sdfPreviousPoint` in\n  `frame\u002Fsdf-reprojection.hlsli` adds the triangle's weighted vertex movements\n  to the current hit. Unchanged vertices return that hit exactly before any\n  barycentric calculation: a long, thin triangle's float Gram determinant can\n  cancel to zero, and rebuilding a second world position can invent motion on\n  a still surface. `SdfReprojectionDeviceLawTests` includes this thin-triangle\n  witness on both backends. Check the static `motion` view when history fails\n  to accumulate; unchanged geometry must show valid, zero object motion.\n- **A receiver's depth belongs to the output ray.** Different jittered rays\n  hitting one grazing plane can have very different ray distances. Project each\n  tap's tangent plane onto the output pixel's unjittered ray before storing or\n  validating its receiver depth (`sdfHistoryReceiverDistance`). Identity and the\n  relative depth tolerance stay unchanged. The reprojection device witness\n  maps two samples at distances 64 and 32 onto the same receiver depth 128.\n- **Stationary reconstruction keeps a complete jitter window.** The resolve's\n  history surface retains each phase's color, coverage, transport and weight.\n  Replacing one phase and summing in fixed order removes periodic newest-phase\n  bias and keeps samples the current neighborhood misses. Moving and reactive\n  pixels use the clipped resolve while their window fills. A stationary window\n  keeps its validated receiver while the footprint still sees it; choosing a\n  new thin adjoining face each phase can reject the window on the next phase.\n  The window describes an output footprint, which can sample different receiver\n  identities on opposite jitter phases at a static silhouette. If ordinary\n  receiver validation rejects it, retain the bounded window only after proving\n  the unjittered camera is exactly unchanged, every tap is nonreactive, and each\n  visible tap's previous point equals its current point. This extra motion check\n  runs only for rejected footprints. A displaced camera keeps ordinary receiver\n  rejection; a stationary current receiver alone does not prove no disocclusion.\n  The package owns\n  `TemporalPeriod` and `HistorySurfaceWords`; the generator carries both into\n  HLSL. A layout change needs a host with the matching history allocation before\n  loading its kernels. Account for this output-sized history in GPU memory.\n  Keep the surface planar, every access through `sdfHistoryWord`: interleaved,\n  its 47 words a pixel put each lane of each access on its own sector and held\n  the resolve at L2 bandwidth. A complete window shows its own mean, so only an\n  incomplete one reads the reprojected Catmull-Rom history.\n  Preserve a constant coverage component exactly before half packing and after\n  averaging the phases: bound the convex mean by its samples. A rounded value\n  just below one becomes 0.9995 in half storage and invents a background share\n  on an opaque surface. The analytic resolve device witness checks full coverage.\n- **Coincident exposed faces cannot accumulate a stable receiver.** Check\n  `world.debug-view material-id` when a static patch changes identity or never\n  completes its phase window. Separate meshes sharing an exposed plane can\n  alternate winners as jitter or a refresh changes rasterization. Fix the\n  authored overlap, rather than weakening receiver rejection. A slab owns its\n  horizontal finish; a wall or lintel meeting it ends at the slab's underside.\n- **A seat's character fade is view-local.** `SdfViewSnapshot.StampFade` supplies\n  a transform-slot range and opacity through `SdfFrameBlock`; the mesh and glass\n  fragments call `frame\u002Fsdf-stamp-fade.hlsli` before writing depth or glass sums.\n  Keep view-only offsets in `SdfFrameBlock`, separate from the bake-only\n  `SdfMeshBakeBlock` initializer, so view edits do not invalidate meshes.\n  Keep the opaque fragment free of `earlydepthstencil`: discarded pixels must\n  reveal the room. Shadow passes and independently filmed mirror\u002Fportal views\n  receive no fade. Vulkan requires `shaderDemoteToHelperInvocation` at device\n  creation and capability 5379 in `VulkanShaderCapabilities`; `clip` compiles to\n  that feature even when the live opacity is one.\n- **Every light answers through one interface,** `shade\u002Fsdf-light.hlsli`; a new\n  light kind is a branch there and nowhere else. Views and glass visit lights\n  through one walk (`sdfLightWalkStart`, `sdfLightNext`): the set bits of the\n  view's light mask, then the bound screens, so a light the view leaves out\n  costs no iteration. Index a vector at run time only through `sdfComponent`.\n- **Cel shading is a style per material, not a whole-image filter.** A palette\n  row's `toon` (`SdfMaterial.Toon`, material rows 22 to 25) shades that material;\n  every other material inherits the world's default (`render.toon`, which\n  `world.toon` overrides live) through the pass block's toon members. Both are\n  written by `SdfToon.WriteRows` and read by `sdfToonStyle`\n  (`shade\u002Fsdf-toon.hlsli`): keep the row layout and the pass block's alike.\n  The band keeps visibility apart (`band(cosine) × visibility`) unless the style\n  says `band: Combined`; rim lights, the environment reflection and ambient\n  occlusion stay in the cel response. `sdf-toon-outline.hlsli` reads\n  depth\u002Fnormal edges in views, before temporal resolve, at the pixel's own\n  style's width. Keep screen pictures, portal pictures, sky and self-emission\n  out of both the banding and ink. Nested worlds take the live enable override\n  but retain their own document styles. The tuning belongs to the lighting\n  cadence signature, never the bake closure.\n- **The frame shades luminance in nits, and each view's composite applies its\n  exposure** (`SdfPhotometry`, `SdfViewExposures`, the pass block's `exposure`).\n  A light record carries illuminance or intensity over π; emission, sky layers\n  and displays are nits. A new constant meant as a display colour (an outline,\n  a grid, a placeholder glass) is divided by `passGroup.exposure` or it vanishes\n  outdoors and blows out indoors. A window's view and a sky layer's view publish\n  nits under the window share of their exposure (`SdfViewSnapshot.Unexposed`,\n  `SdfPhotometry.WindowAdaptation`), and the opening applies the rest of the\n  viewer's. A point or spot light's falloff is exactly zero at its range, each\n  view shades only the lights its frustum may reach (`SdfLightSelection`, the\n  pass block's `lightMask`), and a static one is occluded by the irradiance\n  volume's visibility bits (`SdfLight.IsTraced`, `sdfMeshLightVisibility`): a\n  fixture that lights through a slab is an anchored light or a volume that\n  holds no probe there. `world.exposure` reads each view's EV and meter.\n- **The irradiance volume is read once a pixel** (`sdfMeshProbesAt`), and that\n  gather supplies indirect light, reflections and traced static-light visibility.\n  Each probe publishes its own measured cubes, without neighbour filtering.\n  Visibility uses a 12×12 octahedral first-hit surface map, one bounded ray\n  per texel. Each word packs ray distance and two signed normal bytes;\n  negative distance marks a measured miss. Four reflected angular taps reconstruct compatible surface patches before\n  testing signed receiver gaps and blocked coverage. Radial depth interpolation rejects\n  coplanar receivers at grazing angles, so no mean\u002Fsquared-distance pair remains.\n  Keep `SdfMeshProbeDepth.Visibility` and `sdfMeshProbeDepthVisibility` together.\n  The sky cube comes from the same full-reach radiance rays as bounced light.\n  Surface support stays within the angular taps; no neighbour vetoes or suspect sets return.\n  The first sweep caches FP16 normal gradients from each texel's local angular\n  neighbourhood. Interpolate compatible quadratic coefficients and intersect\n  their entering root; a tangent alone shadowed\n  the visible side of sparsely sampled curved geometry. The sparse-curve law\n  checks against exact mesh segments. No triangle-footprint clipping is used.\n  Gather weights are trilinear share × a half-spacing smooth distance fade in front of the receiver × depth\n  visibility. The actual receiver is biased by `NormalBias` metres, never by\n  spacing; clamping the lookup must not move the visibility-test receiver.\n  The volume has three nested levels, a table per tier with a spacing per axis\n  (`SdfMeshIrradiance.LevelsOf`: the tier's window, 4×2×4 m storey cells, 32 m\n  cells); a receiver's stages run finest first (finer levels within their\n  surface maps' reach, the holding level bounded, the same probes unbounded,\n  the finest level's boundary probes), and the first that answers counts only in\n  its share, its weight over the cage's front weight before visibility (a finer\n  level past its window easing out over its reach's outer half), the rest\n  coming from the next stage over another cage. Sixteen pre-scaled slots, named by\n  each stage's cage word (`sdfMeshProbeCageWord`) rather than sixteen addresses;\n  a corner answers where its weight is positive, and `sdfMeshProbeAt` is the one\n  door to its probe. One\n  closing rule at every level: taps on solids close as a majority, taps a coarse\n  level's trace marked sheets (the curvature half's low bit) at almost any share.\n  Only the finest level keeps the behind-plane floor. Nothing a camera sees reads\n  an unmeasured surface as black. A view with no cascade (a session view, or\n  `world.shadows off`) reads a shadowing directional's visibility from the probes'\n  light bits. `SdfMeshIrradianceGatherDeviceLawTests` holds the GPU and CPU\n  gathers to the same slots, weights, share and sun visibility.\n  Relocation (`SdfMeshIrradiance.PlaceBatch`) keeps a probe clear of geometry within\n  its own cell; every lookup uses its recorded offset. Placement takes the nearest clear exit; its short rejection rays\n  stop at one spacing, with no openness score. Debug with `world.probe` after bakes and GI settle;\n  its exact reference segment distinguishes sampling errors from cube content.\n  Local adaptation consumes this same gather, so an irradiance error also\n  changes exposure. See [mesh GI](references\u002Fmesh-gi.md) for sampling, storage,\n  boundary behavior and the fixed-camera checks on both backends.\n- **Glass is a material, a group and a pass, never a blend.** A palette slot's\n  `glass` (`SdfGlass`, material row 21) makes its shapes bake into groups of\n  their own (`SdfMeshBakeGroup.Glass`; the stampers emit them as instances\n  apart from the opaque ones) and draw in the glass raster pass over the opaque\n  image (`passes\u002Fsdf-mesh-glass.frag.hlsl`, `passes\u002Fsdf-glass.comp.hlsl`). The\n  opaque mesh pass and the irradiance trace skip glass draws\n  (`SdfMeshDraw.Glass`); cascades select their extinction pipeline. Thickness and RGB optical depth are the glass sums,\n  integers the raster accumulates with atomics (`frame\u002Fsdf-glass.hlsli`,\n  `sdfGlassAccumulate`): never read a glass shape's thickness from its mesh, and\n  never accumulate a sum in floats, whose rounding follows raster order and whose\n  per-face terms cancel badly against the far sky. Transmission integrates every\n  glass material before the opaque hit; two interfaces reflect, refract and\n  scatter: the target's nearest front face and the second the sums' second\n  record names (`sdfGlassSecondInterface`, exact up to three front faces), each\n  shaded by the one loop body, the far one composed inside the near one's\n  transmission. `SdfGlassSumsDeviceLawTests` runs the accumulation in many orders on\n  both backends. The glass pass reuses the opaque path's mechanisms, never a copy:\n  one probe gather an interface (`sdfMeshProbesAt`) for its reflection (`worldEnvironmentReflection`,\n  `shade\u002Fsdf-sky-reflection.hlsli`, then `sdfMeshReflection`, the sky alone where\n  `probes.share` is zero), the light walk (`sdfLightResponse`, uncascaded, probe\n  shadowing) for its highlights and the light its medium receives, and the flow\n  layer (`sdfShadeFlow`). The glass, sky and resolve recorders get the common\n  frame values (`SdfWorldPackage.Values`) only by copy from\n  `SdfFrameBlock.WriteInto`, which writes the irradiance volume beside the frame:\n  a common value it leaves out reads zero in those passes (the glass gather once\n  read the volume as off that way). A medium (`SdfGlass.Scatter`, `Scattering`, material row\n  31) and a contact (`ContactReach`, `ContactCoverage`, row 20.w's halves) are\n  functions of the thickness, `opaque - t` and that light alone: the pass reads\n  the lit image once (`sdfGlassLitAt`, or the frost's disc). The handbook's\n  [glass section](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fframe-rendering.md#glass-after-the-opaque-image)\n  states the limits. A frame in which no glass draw's host box meets the view's\n  frustum (`SdfWorldPasses.GlassSeen`, decided once per instance and frame for\n  the three passes) skips the sums clear and the raster and answers\n  `DrewNothing` from the shading pass, whose `glassLit` then stands for the\n  opaque image; the sky, composite and resolve recorders key their cached lit\n  binding on the image they are handed. The sums and the glass target are never\n  read on such a frame, so a new reader of either must not run on one. A timing\n  window keeps a skipped pass's last samples: toggle `world.gpu-timing off` and\n  `on` before reading the trio at a stop.\n- **A flow moves shading, never geometry, and never reads a clock.** A palette\n  slot's `flow` (`SdfFlow`, material rows 27 to 30) runs `sdfApplyFlow`\n  through `sdfShadeFlow` (`shade\u002Fshade-flow.hlsli`) in the light stage after the\n  weathering and in the glass pass: two\n  half-cycle layers of the lattice noise advected along the velocity's\n  tangential part, revealing a surface and tilting the shading normal. Its\n  phase enters only through the pass block's `flowClock`, which\n  `SdfFrameBlock` integrates from `SdfFrame.Clock` and writes zero for a program\n  without flow (`SdfAppearance.ResolveShadeReads`), so a still world's views keep standing;\n  the clock is a lighting value of the cadence signature, so only the shading\n  passes rerun as the flow moves. No `sdf-*` kernel reads the Frame group's\n  `time` or `timeDelta`: `puck search -M 0 \"frameGroup\\.(time|timeDelta)\"\n  src\u002FPuck.SdfVm\u002FAssets\u002FShaders\u002FSdf` finds nothing. An `Object` velocity on a\n  draw shading in world space (a static copy) turns by the draw's matrix;\n  `World` keeps the velocity and the pattern in world space. On glass the\n  revealed coverage covers the glass as a diffusely lit surface.\n- **A shading-time lane is a slot's or the world's.** Lanes 0 to 3 are the\n  draw's frame-slot lanes (a body's look lanes; zero on a static copy or an\n  animated placement), lanes 4 to 7 the world's `render.lanes`, which\n  `WorldEnvironmentResolve` resolves at the presented tick into\n  `SdfFrame.WorldLanes` and the pass block carries as `worldLanes`\n  (`SdfLanes`). Every consumer (emission, weathering, a flow's velocity and\n  coverage, a volume's intensity) reads a lane through `sdfLane`\n  (`frame\u002Fsdf-lanes.hlsli`), the one reader of `worldLanes`; never index\n  `s.lanes` directly. `SdfFrameBlock.WorldLanesOf` writes zero for a frame\n  that reads no world lane, so a still world stands. Erosion and morph are\n  bake-time and read slot lanes only.\n- **Camera history uses the camera's sample grid.** The first recorder can be\n  a shadow cascade, so `TemporalOf` receives the recording's `RenderWidth` and\n  `RenderHeight`, never its pass-local `Width` and `Height`. A still camera's\n  `world.debug-view motion` stays stationary with shadows both on and off.\n- **A settled capture holds its residency's frame.** Under\n  `world.debug-view motion` the held frame keeps the motion it was presented\n  with (`SdfWorldTables.HoldsFrame`, the `held` argument of\n  `SdfTemporalHistory.Prepare`); every other view settles it as a still frame,\n  so a temporal view converges over the held renders. Settling motion history\n  on a held upload makes every capture of the motion view read still. A frame\n  held for a settled capture rates no work (`WorldFramePresenter.RatesOf`),\n  but preserves the selected culler: the second phase resolves disocclusion\n  in the same frame, and a capture must exercise the mode being diagnosed. Under\n  `world.lockstep` every frame also presents the completed tick and advances\n  presentation by the ticks completed, and its frames (`SdfFrame.TickLocked`)\n  have the residency trace the irradiance window to the end before rendering\n  (`SdfMeshIrradiance.Stage`; the asynchronous trace otherwise lands probes at\n  wall-clock moments as the window follows the first view's camera) and adapt\n  exposure over the frame's own presentation time\n  (`SdfViewExposures.SecondsOf`); an ordinary settled still under lockstep\n  converges over one fresh jitter period (`FrameCaptureRequest.ConvergeOver`),\n  since without it a temporally resolved view's still depends on how many\n  frames the display rendered before the hold. Together these make stills\n  of one tick repeat across Worlds to a 1-level per-render residue.\n- **A named-camera layout slot reconstructs; a screen's camera does not.**\n  `world.temporal` reaches every view `WorldFramePresenter.ViewQuality()`\n  dresses: seat views, the operator pose and `views.layouts` slots that name a\n  camera. A camera view a screen films and a session view take a reduced\n  quality (`WorldScreenBinder.CameraViewQuality`,\n  `WorldSessionSceneEmitter.ReducedQuality`) whose `Temporal` is off, and\n  `SdfViewQuality.Restrict` ANDs it, so they never jitter.\n- **A settled capture cannot show what changes between frames.** Flicker\n  (jitter moiré on a screen, a still scene whose pixels change), ghosting and\n  trails show only in a presented capture (`FrameCaptureMode.Presented`:\n  `puck_capture_frame` with `mode: \"presented\"`, `frames: 8`, or\n  `world.screenshot \u003Cpath.png> presented 8`), which holds and settles nothing\n  and reports each frame's changed pixels and luma change against the one\n  before. A still scene with `world.temporal on` that changes in a presented\n  burst is flickering; a clean settled still proves nothing about it.\n- **A `views.graphs` pane is not an SDF image.** It is a render-graph instance\n  with its own shader; it reloads with `pipeline.reload`, not\n  `world.shaders.reload`.\n\n## Editing kernels\n\n- **Check screen eligibility before reading a screen table.** A material is\n  not a screen index: `sdfScreenSurfaceShades` checks the sentinel, bounds and\n  source before `material - SDF_SCREEN_MATERIAL - 1` names a screen. Temporal\n  ray helpers need that check before their own table reads too; a later sample\n  function's guard cannot protect them. An ordinary material becomes a huge\n  unsigned index otherwise, which can lose the Vulkan device while Direct3D 12\n  returns zero for the out-of-bounds read.\n- **One `mapCore` call site.** The bake (`passes\u002Fsdf-mesh-bake.comp.hlsl`) is\n  the only GPU kernel that walks the field, and it does so through one rolled\n  `[loop]` over its samples. Every call site is a full inlined copy of the\n  interpreter, costing register pressure, compile time and a driver translation\n  on every cold boot, so more samples go through that loop, never through a new\n  call. Never add `[noinline]`: a real SPIR-V call loses the device on NVIDIA's\n  Vulkan driver.\n- **Keep each pixel kernel's include closure its own.** A pixel kernel includes\n  the common head (`passes\u002Fsdf-pixel-pass.hlsli`), only its own stage module,\n  then the entry; a stage module includes what it reads beyond\n  `passes\u002Fsdf-world.hlsli` itself. The shader cache keys, and a reload\n  recompiles, by include closure, so routing a stage module through another\n  wrapper makes an edit to it recompile both kernels.\n- **The bake kernels include `passes\u002Fsdf-bake-world.hlsli`, never\n  `sdf-world.hlsli`.** Their compiled bytecode keys the stored meshes\n  (`SdfMeshBakeIdentity`), so their closure holds only what the bake reads:\n  their own interface (`isa\u002Fsdf-mesh-bake.interface.hlsli`: a pass block of\n  `SdfWorldPackage.BakeValues` alone, stamped with the field's fingerprint), the\n  field interpreter and the field's generated vocabulary (`isa\u002Fsdf-isa.hlsli`).\n  A light, exposure, view, pass-block value, pass resource or World table goes\n  in `isa\u002Fsdf-render.hlsli`, the world interface or after\n  `SdfWorldPackage.FieldTables`, and leaves the bake's bytecode byte for byte as\n  it was on both backends. SPIR-V orders its constants by first use in the whole\n  source, dead code included, so a lighting, screen or view module in the\n  closure would move a stored mesh's key. Add to the bake's closure only what\n  the bake reads, and check with `puck mesh identity --against`.\n- **Keep control flow uniform around barriers and groupshared gathers.**\n  Inactive lanes still reach the barriers.\n- **Hot reload compiles kernel sources only.** With `Puck.World` running:\n  `world.shaders.reload src\u002FPuck.SdfVm\u002FAssets\u002FShaders\u002FSdf`, then\n  `world.shaders.status` (`unchanged` means no shipped kernel compiles the code\n  you edited). A host ABI, buffer-layout or C# ISA change needs a rebuild: the\n  reload keeps the previous kernels when a tree's kernels do not match the\n  host's interface, so a kernel reading a field the C# side just gained keeps\n  running its previous build. The instruction-set stamp covers layout, so a value only\n  the shader reads is declared `Tuning` in `SdfIsaHlsl.DeclareRender` and changing it\n  reloads; a real the host packs, decodes or shares with the CPU evaluator stays an\n  ordinary `Real` ([classification](..\u002F..\u002F..\u002Fdocs\u002Freference\u002Fshaders.md#pass-interfaces)).\n  Change the C# layout and the HLSL layout together\n  ([sync pairs](references\u002Fsync-pairs.md)).\n  Mesh raster and cascade vertex\u002Ffragment stages are composition-owned (`SdfMeshRasterPass`), so\n  edits to them need a rebuilt boot too. A shared `frame\u002Fsdf-mesh.hlsli` edit can reload its compute\n  readers while the raster stages keep their deployed bytecode; a successful reload is no proof\n  that a vertex-stage performance experiment took effect.\n- **No signed `%` of a value that can be negative.** NVIDIA's Vulkan driver\n  answers a signed remainder (`OpSRem`, which DXC emits for `%` on `int`) of a\n  negative operand wrongly where Direct3D 12 answers it right: lift the value to\n  non-negative and wrap it as `uint`, as `sdfMeshIrradianceSlot` does.\n- **One walk in `mapCore`.** NVIDIA's Direct3D 12 driver on Turing (the RTX\n  2060) takes a second walk chosen by a program-uniform flag (a linear\n  all-segment walk beside the instance merge) for instanced programs too, so\n  every bake group samples the whole program; Vulkan on the same card does not.\n  A program with no instance lists every segment as a world segment, so the\n  merge covers it. When one backend's bake disagrees, compare\n  `[sdf.mesh-bake] done` on both: a group that empties on one backend alone (an\n  axis line under the floor) is the walk ignoring its mask.\n- **Index local arrays by constants only.** NVIDIA's Vulkan compiler keeps a\n  dynamically indexed local array, a `static const` table included, in\n  per-thread local memory. Unroll the loop to the array's length and guard the\n  body (`if (i \u003C count)`), or pick the element by comparison; DXC's SPIR-V\n  unroller leaves a loop with a `break` rolled. RenderDoc's pipeline-executable\n  statistics show the spill as \"Local Memory Size\" (the low 32 bits).\n- **Bindings are generated.** No kernel declares a binding or register by hand;\n  a new resource is a member of `SdfKernelInterfaces`.\n\n## Changing the instruction set\n\nFirst ask whether the new op, shape or blend composes from existing vocabulary;\nif it does, ship it as a `SdfProgramBuilder` method emitting existing\ninstructions. A real new instruction touches every partner in one change, and a\nGPU parity pass alone does not finish it:\n\n1. **C# model.** The enum, `SdfProgramBuilder` (its `RequireDefined` maximum),\n   `SdfProgram` validation and packing, the Lipschitz analysis, its row in\n   `SdfOpRoles.Of`, and the part-program key for a new parameter.\n2. **Cull margins.** `MaxSmoothBlendRadius` (blend halo), `MaxScopedFieldReach`\n   or `HasUnmaskableInfluence`.\n3. **Generated declarations.** `isa\u002Fsdf-isa.hlsli` is generated from the C#\n   model by `SdfIsaHlsl`; building `Puck.SdfVm` regenerates it, and\n   `puck shaders generate` writes it on demand. The define's name is the enum's\n   prefix plus the member in upper snake case (`SdfOp.CellDisplace` is\n   `SDF_OP_CELL_DISPLACE`), and its value is the member's: members are numbered\n   densely in declaration order. Never hand-write a `#define` for an ISA value;\n   add the enum member and regenerate. Give the instruction a call in\n   `SdfEncodingProbe` that passes every field it packs\n   (`SdfEncodingProbeLawTests` refuses one that is missing). Regenerating also\n   rewrites `SdfIsaFingerprint.cs`. `sdf-isa.hlsli` is the field's vocabulary\n   alone, and its fingerprint keys the bake: a constant only the renderer reads\n   (a light, the exposure, the visibility record, mesh records, the debug views)\n   is declared in `SdfIsaHlsl.DeclareRender`, which writes `isa\u002Fsdf-render.hlsli`.\n4. **Every GPU call site.** `mapCore` (rigid-leaf fast paths included) and the\n   compiled part walk in `sdf-parts.hlsli`; a blend also needs `blendShape` and\n   the material-winner rules in `sdfComposeCandidate`.\n5. **CPU interpreter.** `SdfFieldEvaluator` interprets it or refuses it by name.\n   Its blend switch falls through to union, so a missing arm silently turns a\n   new blend into a union in contact and queries. Add its bounds rule\n   (`SdfFieldEvaluator.Bounds.cs`) and cull rule (`SdfFieldEvaluator.Cull.cs`).\n6. **Document surface.** Carry the parameters through `CreationCanonicalizer`\n   and the stamp emitters or refuse the value there, then `puck schema`.\n\nWhen two lanes both add an instruction, the merge conflicts in generated files\n(`sdf-isa.hlsli`, `sdf-render.hlsli`, `SdfIsaFingerprint.cs`): resolve the C# model, then\nregenerate with `puck shaders generate` or a build of `Puck.SdfVm`. Never\nhand-merge a generated file; `puck shaders generate --check` (and CI) only\ncompares and fails naming the file that drifted, it writes nothing.\n\n## Field contracts that bite\n\n- **One accumulator.** `mapCore` carries one running distance for the whole\n  program. An intersection-family blend annihilates every earlier shape it does\n  not overlap; field ops (`Onion`, `Dilate`, `Displace`) grow every earlier\n  solid once the accumulator holds more than one object.\n- **A subtraction is exact only where its subject is nearest.** Inside a carved\n  void the contact field reads phantom surfaces; extend the carve past every\n  point a body can reach, or build the void from union geometry.\n- **An instance bound is an influence sphere** tested per sample. It must cover\n  the primitive's reach, its field ops and its blend halo, or the bake clips the\n  geometry at the sphere.\n- **A field scope is a real per-sample cost.** Scoped segments skip the segment\n  early-out and rigid planning. Never wrap one primitive in a scope for its\n  Lipschitz factor; make the primitive 1-Lipschitz. Scope clamps\n  (`SdfProgram.FieldScopeClamps`, `world.budget`) are field bounds, not measured\n  GPU cost.\n- **The CPU evaluator's rounding is part of its Lipschitz bound.** A product of\n  two lengths rounded to the carrier keeps `2⁻¹⁶` of its value, a few bits at\n  centimetre sizes, so a ratio, projection or nearest-sample comparison built on\n  one reads a millimetre of noise and the field overstates its own distance\n  (the Moth's spine joints read 26 times it). Round such quotients once\n  (`maths-usage`'s Choose table). `SdfPrimitiveLipschitzLawTests` samples every\n  door primitive at a centimetre and a metre; run it after changing a shape, and\n  read `puck mesh audit --cpu --field-levels`' `lower\u002Fupper` witness (value and\n  bracketed upper bound) to trace a group whose step scale fails.\n- **Unbounded is a state, not a number** (`SdfBoundAlgebra.Unbounded`); bounds\n  compose through the set operations in `SdfBoundAlgebra`.\n- **An interval rule whose width compounds shrinks the whole evaluator.** The\n  CPU evaluator's frame (`SdfFieldEvaluator.Frame`) is the widest cube its box\n  walk keeps bounded, and every query outside it is refused, which a sphere\n  cast reads as an obstruction at its origin. A blend rule that reads its\n  operands twice grows geometrically along a chain on one accumulator: unscoped\n  smooth unions across a few trees once collapsed the presentation field's\n  frame to half a metre, so the chase camera sat on its target valley-wide.\n  Bound a monotone blend by its corners instead (`SmoothUnionBounds`), and\n  read `Frame` when every query far from geometry fails.\n- **Deterministic versus presentation geometry:** use\n  [sdf-authoring](..\u002Fsdf-authoring\u002FSKILL.md#render-only-versus-deterministic);\n  the fixed-point evaluator supports `SdfShapeType.Path` through `SdfPathSolid`.\n\n## Capacity and emission\n\n- Program words and instances grow on upload, and the dynamic-transform region\n  grows to the frame's table, whose rows are the program's slots plus one root\n  per rigid copy (a body), so a `world.reload` or a new body grows it mid-run.\n  A frame that supplies fewer transforms than\n  `RequiredDynamicTransformCapacity` throws, because a slot rendering at\n  identity is a bug. Fix the emission so the frame supplies the transforms it\n  needs; increasing a reserve cannot supply missing transform rows.\n- A `GpuRegion` grows under whichever policy `GpuResidency.Select` gave it\n  (`GpuRegion.Grow`): a staged region carries its destination on the GPU, and a\n  ring or in-place region replaces its host-visible buffers and owes each the\n  whole region; the owner retires what it returns after the following upload's\n  fence, which also covers earlier readers and a staged carry. Create replacement\n  buffers, retirement bookkeeping and the CPU shadow before publishing growth;\n  a failed allocation preserves the old buffers, contents, capacity and bindings.\n  `SdfWorldTables.EnsureDynamicTransformCapacity` prepares motion history before\n  growing the region and publishes capacity only after both succeed.\n  A Direct3D 12 buffer or image placed by `DirectXHeapArena` keeps its range\n  until its owner calls `DirectXDeviceMemory.CountReleased` before the last\n  `Release`; an owner that only releases the resource leaks its range and\n  keeps the heap for the run. A device with\n  a large host-visible device-local heap (resizable BAR) gives a small per-frame table a ring, while the CPU fake\n  device's default profile stages every region, so a region path written or\n  tested for one policy alone passes the device-free suites and fails on such\n  a device. Test a region path under every policy, as\n  `GpuResidencyLawTests.ARegionGrowsUnderEveryPolicyAndEverySlotReadsItExact`\n  does.\n- Large GPU buffers give their memory back. Both arenas (`DirectXHeapArena`,\n  `VulkanMemoryArena`) free a resource's own heap (one past half a shared\n  heap) as it empties and keep only a shared one spare; a kept large heap takes\n  later small buffers and is pinned for the run. A staged `GpuRegion` slot's\n  staging buffer shrinks to twice its flush (`GpuRegion.StagingFloorBytes`\n  floor) once it holds four times more, and a relocated mesh region shrinks to\n  its need (`GpuRegion.Shrink`). Upload heaps are system memory: a staging\n  buffer kept at a whole region's size costs the process that much working set.\n- The mesh region keeps no host copy of its meshes. Its host copy is the draw\n  records alone (`GpuRegion.Shadow`); a placed mesh's words are owed without a\n  compare (`GpuRegion.OweSourced`) and the upload's flush writes them from the\n  `SdfMesh` buffers (`SdfWorldTables.WriteSourcedMeshWords`, an\n  `IGpuRegionSource`). The irradiance scene likewise reads its triangles through\n  each mesh's positions and indices, never a copy. A new consumer of baked\n  triangles reads the `SdfMesh` buffers rather than copying them: the debug\n  world's published meshes are native payloads with explicit consumer claims, and every copy costs that\n  much again in working set. A mesh the library published from its store lets its normals and coarser\n  levels' indices go once no region needs its words, and brings them back from the store before they are\n  read again (`SdfMesh.Restore.cs`). `SdfMeshRegion.WriteMesh` takes an `SdfMesh.Held`, which only\n  `SdfMesh.Hold` makes (a need, waiting for or running the restore), so every region write, a coarsened\n  copy run's included, reads resident parts; the owed set (`OwedMeshes`) holds a need for the owed meshes\n  the latest list names so landing never waits on the frame thread. A new reader of those parts takes a\n  hold. A published chunked mesh keeps no joined indices: read its chunks.\n- A scoped creation emits one instance, a scope-free one an instance per shape\n  (`CreationStampEmitter.PerCopyInstanceCount`). `world.budget` prints the live\n  cost sheet.\n\n## The baked mesh\n\nEvery view renders meshes the program is baked into, with no field walk in the\nframe. Read [mesh bake](references\u002Fmesh-bake.md) before changing the bake, the\ncontour, grouping, the mesh region or the store, or when a baked mesh looks\nwrong. The contracts that bite most often:\n\n- **One contouring:** `SdfSampledLattice` through `SdfDualContouring`; never\n  write a second mesher.\n- **A landed mesh is its planar polygons** (`SdfMeshPlanarMerge`, in\n  `SdfMeshPathBake.Land`): a flat face's interior vertices go and every outline\n  vertex stays, so no pixel changes. A change that moves or renormals a vertex\n  there, or drops an outline vertex, does change pixels.\n- **A landed mesh carries two coarser levels** (`SdfMeshCollapse`, after the\n  merge in `Land`; `SdfMesh.Levels`): half-edge collapses over the mesh's own\n  vertices, each with its measured error. The region lays a level's indices and\n  materials after the merged ones', so its triangles are numbered after them. A\n  draw pushes its level above its index (`SdfKernelInterfaces.MeshLevelShift`,\n  in a counted indirect draw's identity too), its record points at the mesh's\n  shared level table (`SdfMeshRecord.LevelTableWord`), and both raster vertex\n  stages add it to the vertex id (`sdfMeshLevelIndex`). Never pass the level as\n  a first vertex: Direct3D 12's `SV_VertexID` counts from zero whatever the\n  draw's first vertex, so the draw fetches the merged mesh's first triangles and\n  objects go missing. The surface pass reads the triangle the pixel names with\n  no level of its own. Everything that reads `SdfMesh.Indices` (the\n  irradiance trace, the audit, the diagnostics' nearest query) reads the merged\n  mesh, level zero. Each pass's choice runs beside the box cull in\n  `frame\u002Fsdf-mesh-selection.hlsli`, from `SdfMeshDetail`'s packed controls;\n  `world.detail 0|1|2` forces one level\n  everywhere, and `world.detail auto` restores the choice.\n- **Large static unions have independently drawn chunks** (`SdfMeshChunks`, before the merge). Their contour edges\n  partition the surface, and every seam edge stays fixed at every level. The store holds the pieces; only those pieces\n  enter the region. See the [mesh bake](references\u002Fmesh-bake.md#groups-poses-and-materials).\n- **A field diagnostic is a bake lattice, never a pixel-kernel walk.**\n  `SdfFieldSlice` (`world.slice`) queues points lattices with gradients on the\n  bake and draws the distance bands and `|grad d|` on the CPU from the answers.\n  A per-pixel field view would put a second interpreter copy in a pixel kernel.\n- **Winding is one contract across three places.** The bake winds outward\n  faces counter-clockwise (`SdfDualContouring`), both backends declare a\n  counter-clockwise face front (`GpuGraphicsPipelineDescription`, the two\n  pipeline factories), and the opaque mesh pass culls back faces\n  (`SdfMeshRasterPass.Description`; a cascade's exit layer culls front faces\n  seen from the light, and its depth and the glass pipeline cull nothing). An\n  authored mesh whose triangles close a volume is wound outward like the bake's;\n  any other authored mesh is drawn in both windings and does not enclose\n  (`WorldPlacementStamper.MeshOf`, `SdfMesh.Encloses`). Probe facing with `SV_IsFrontFace` in the\n  mesh fragment stage and `world.debug-view depth`, on both backends.\n- **A sampled field moves without a program rebuild.** `SdfProgramBuilder.SampledValues`\n  names an `SdfSampledField` by handle; the frame carries its snapshots (`SdfFrame.Sampled`),\n  the geometry hashes them, and the bake compares only `SdfSampledSet.Baked` (the handles an\n  instruction samples), so a height field's heights moving restart nothing. A moved baked snapshot\n  resamples only the reader groups (`SdfMeshPathBake.Resample`, replanned from each group's\n  planned box); a reader still baking keeps its bake and the newest plan waits as its\n  `Successor`, so a field republished every frame still lands. Never compare the whole set\n  in the bake, and never replan from `Low`\u002F`High`, which the lattices narrow. Batch tickets\n  leave `Taken` once through `SdfMeshPathBake.Settle`, which both `Complete` and `Abandon`\n  call, so a partial answer returns exactly its unanswered lattices. Each bake job writes the snapshots its groups sealed into\n  its own `sdfSampledValues` table, so a lattice never samples a newer publication; never\n  put sampled values back into program words or a shared GPU buffer the bake reads\n  ([sampled fields](..\u002F..\u002F..\u002Fdocs\u002Frendering\u002Fsdf\u002Fhandbook\u002Fsampled-fields.md)).\n- **A height field moves as it is drawn.** `SdfHeightField` bakes a reference (every raised\n  column at `ReferenceCells` above the origin) and names its heights as the instance's\n  displacement; the frame's sampled table (`sdfFrameSampled`) carries the heights, and every\n  vertex read (`sdfMeshWorldPosition`, `sdfMeshWorldNormal`, `sdfMeshPreviousPosition`)\n  displaces through `sdfMeshDisplaced`. A new reader of mesh vertices goes through that\n  resolver, or it draws the reference; a draw's box spans `SdfMeshDisplacement.Low`\u002F`High`,\n  and a displaced draw is `IsDynamic`, out of the irradiance volume's static scene.\n- **A mesh is a function of its geometry.** Groups are keyed by\n  `SdfMeshGeometryBuilder`; anything the bake samples that the instructions do\n  not hold leaves a stale mesh drawing after an edit until the builder hashes\n  it.\n- **Baked meshes persist across runs** (`SdfMeshStore`), keyed by geometry and\n  the bake's identity: the bake kernels' bytecode and the IL of every method\n  the bake's code reaches, across the `Puck` assemblies, read from the build\n  (`SdfMeshBakeClosure`). No list names the bake's files: code it calls is\n  covered, code it does not call is not, a checkout's path is not, and a miss\n  logs the part that changed (`[sdf.mesh-bake] miss …`). A hot-reload update to\n  a type the closure declares members of folds into the code identity\n  (`SdfMeshBakeClosure.Reads`, `CodeRevision.AppliedTo`), and the residency\n  follows it before each plan and stage; an update anywhere else keeps the\n  store. `puck mesh identity\n  --build \u003Cdir> --against \u003Cdir>` names the members that differ between two\n  builds before any boot.\n- **`puck mesh audit --world \u003Cfile>` checks a bake without a GPU or a person\n  looking**, against the CPU field; `--cpu` bakes offline so a contour or field\n  change shows with no boot. Run it before calling a bake change done.\n\n## Performance and cost\n\nJudge cost by counted work, code and disassembly; a wall-clock or GPU-timestamp\nreading is evidence beside the counts of the same run on a quiet machine, never\nthe verdict alone. What a kernel costs on the hardware (registers, occupancy,\nbanks, coalescing, waits) and how to read it is\n[gpu cost](references\u002Fgpu-cost.md).\n\n```text\nworld.cadence off      # a still scene otherwise skips frames and reads near zero\nworld.rates off        # far or small work (far cascade, small windows, screens, bodies) otherwise updates at least 30 or 15 times a second, far bodies down to 5\nworld.debug-view rates # tint each rated item by its tier; world.rates lists each one's size and tier (worlds\u002Fdebug\u002Frange.md)\nworld.counters gpu     # per-pass counted work: dispatches, shape evaluations, texels, uploads\nworld.gpu-timing on    # per-pass timestamps; `world.gpu-timing timeline` orders each node's latest span on the queue's clock with the idle gap before it\nworld.budget           # program words, instances, scopes, segments\nworld.counters gpu.queue      # native executes, lists, signals and presents by category and split cause\nworld.counters render.record  # record jobs' host time per phase, serial sum and per-frame critical path\n```\n\nDivide `gpu.queue` and `render.record` deltas by their `frames` deltas; [gpu\ncost](references\u002Fgpu-cost.md#count-queue-work-and-record-jobs) reads them, and\n[runtime contracts](references\u002Fruntime-contracts.md#1-image-lifetime-is-leased-per-image-and-per-reader)\nowns the record job (`gpu.faults record \u003Cn>` fails one to exercise abandonment).\n\n`world.counters gpu` runs to hundreds of kilobytes in a world with many graph\ninstances, past the 1 MiB an MCP result carries, so ask for what you need:\n`world.counters gpu summary` (one `draws vertices texels dispatches` line per\nnode), `node sdf:world` (a node and the nodes under it), `pass sdf.world$mesh`\n(a pass label, or its prefix by whole segments, in every node that has it; it\ndrops the lifetime, owned-bytes and outside lines) and `counter vertices` (a\ncount-name prefix). They combine, and `--json` takes them too. A text reading\npast `WorldCountersCommandModule.GpuTextBudget` characters prints the summary\nunder a note. A pass label is not a node name: `node sdf.world$mesh` is refused\nwith a hint to use `pass`. The counts are read back a few frames late: the first\nreading after a camera pose or a lever change can still show the previous\nframes' work, so read twice and keep the second. A settled capture disables rated\nupdates but retains two-phase occlusion. Staged order is preserved within each\nphase; an exact coplanar depth tie across phases can depend on prior visibility.\n\nAttribute shading cost by toggling the live levers (`world.shadows`, `world.ao`,\n`world.indirect`, `world.render-scale`) and isolate the raster with\n`world.debug-view depth`. Compare the whole frame, not one pass. `puck counters`\nboots a workload on both backends and `puck counters compare \u003Cbefore> \u003Cafter>`\nholds two reports to each other; a deterministic count must agree on both\nbackends. `world.debug-view` lists the diagnostic images. For a frame-time bar,\n`host.frames` on the windowed host gives produce, simulate and their sum per\niteration (avg, p50, p99, max) and the worst iterations split into their\nphases (simulate, begin, produce, present, wait) with their collections and the\npacer's lateness ([Puck.Launcher](..\u002F..\u002F..\u002Fsrc\u002FPuck.Launcher\u002FREADME.md)).\nProduce is split into `produce-work`, the frame thread's own work, and\n`produce-fence`, its time blocked on submission fences (`GpuFenceBlocking`,\ncounted in `GpuBatchedSubmissionFence`'s one wait door): a produce that grows\nby its fence share is GPU back-pressure, not CPU work.\n\n- **The far cascade is the frame's largest variable pass; read whether it\n  holds.** With box-only selection it draws nearly every caster in a 280 m box out to 200 m toward the\n  sun, at each mesh's coarsest level whose error fits a texel, in two layers,\n  so a view facing the debug world's lawn, forest and studio draws many times\n  the mesh pass's vertices there (`world.counters gpu pass sdf.world$shadow-far\n  counter vertices`, which counts only the layers a frame draws).\n  `world.counters sdf.rates` counts `shadow-far.rendered` (both layers),\n  `.split` (one layer of a split refresh) and `.held`: a 60 Hz view that splits\n  shows `.split` on every frame; one that shows `.rendered` on every frame pays\n  a whole refresh each frame. The hold tolerates the light turning by\n  `SdfUpdateRateTiers.ShadowFarLightTurnRadians` (a day clock's sun turns every\n  frame); a timed refresh always draws the depth on one frame and the exit\n  layer on the next (`SdfFarLayers`), so no frame draws both layers for the\n  rate's sake and a slow frame is never held slow by its own cascade. The pass\n  asks `SdfWorldPasses.RecordFar`, which answers both for a layer its graph has\n  not drawn, and `SubmittedFar` commits each drawn layer's camera; the surface\n  pass reads the exit layer through the pass block's fourth camera. Compare\n  `world.gpu-timing`'s `sdf.world$shadow-far` with `world.debug-view indirect`,\n  which keeps the cascades but drops the views shading's cost and the temporal\n  resolve.\n- **A window whose extent swings rebuilds on a backoff.** A window a moving\n  camera crosses (the endless fall's floor and ceiling paintings) requests a new\n  extent every few frames; a resize build the request outran is discarded, and\n  each discard doubles the advances the node waits before the next resize build\n  (at most 32), cleared by an install (`ShaderPipelineRenderNode.Build.cs`,\n  `AnExtentSwingingFasterThanItsBuildsBacksOffAndASettledOneInstallsAtOnce`).\n  Without the backoff such a window builds and discards a graph every frame.\n  Holding a window's larger allocation instead (a shrink delay in the\n  scheduler's footprint quantisation) keeps full-resolution windows rendering\n  and makes the fall GPU-bound at 30 Hz.\n- **One decision schedules a session view.** `WorldViewGraphHost.PortalSightOf` decides every\n  session footprint and every root a filming camera gives a session it films (`RootFilmedViews`):\n  the frustum test (`WorldPortalVisibility.Sees`, no facing test, since a slab's back and sides\n  sample its image) against the consumer's current composed camera, then the views lever's hold of a glass\n  whose width and height are both at or below `SdfUpdateRateTiers.ViewHeldPixels` of the consumer's image.\n  `PublishPanes` finishes demand after camera placement; display shares are measured before small-glass pruning.\n  A reappearing view releases its rate floor immediately. Visibility reads `IWorldViewScenes.TryVisibilityCamera`,\n  never the last-rendered camera retained for picking; an unknown current camera keeps demand conservatively.\n  A session rendering\n  where nothing shows it is a demand that bypasses this decision: `world.budget`'s live frame line\n  names each instance's demand (`root` for a filmed root), and `world.rates` lists held views as\n  `@held`. A settled capture (`IRenderGraphInstances.SettledCapturePath`) turns the graph host's\n  levers off. `SdfPortalSight` supplies completed per-consumer slab tests from the mesh pass's existing\n  farthest-depth pyramid. `SdfMeshOcclusion` dispatches one additional workgroup through `sdfOcclusionMaySee`\n  and reads its result only once its node proves the frame slot complete. A changed camera or slab, unknown result, or replaced\n  view\u002Fprogram retains demand. Occlusion is presentation evidence from an earlier completed frame;\n  moving occluders carry that delay. Settled captures and non-occlusion cull modes bypass it.\n- **A program's bake plan is made on its build thread.** The composition\n  source hands each program its background build finishes to\n  `ISdfFrameSource.ObserveBuilds`, the residency plans it there\n  (`SdfMeshPathBake.PlanAhead`), and the first frame that draws it re-plans only\n  the groups it cannot keep (`SdfMeshBakeGroup.Refresh`). Editing either file\n  changes the bake identity: check `puck mesh identity` before booting.\n- **Static placement emissions survive program rebuilds.** `WorldStaticPalettes`\n  keeps each immutable row's `SdfProgramBuilder.Emission`: instructions and\n  profile tables, plus its volumes and mesh draws. A response emits the swapped\n  rows alone. The cache also checks the prototype, palette ids and extent,\n  resolved frame, text catalog and isolation mask. Retained recolor windows\n  bind to the new builder's material scope; never retain the old builder through\n  a scope. A same-sized mesh draw list stages changed records even when meshes\n  swap, while the arena leaves existing mesh addresses standing.\n\n## Seeing a change\n\n- A lockstep frame waits for its composition's program build and its mesh bake.\n  A completed mesh is still pending until `Dress` includes it: a load can finish\n  between dressing and preparation, and testing only the worker would certify\n  the partial mesh list. `IRenderGraphPackageFactory.WaitingOf` keeps a rendered\n  package incomplete while its residency's bake is pending. The host\n  holds that tick; exposure adapts once the complete frame supplies its meter.\n  A capture freezes the authored frame, then dresses newly completed meshes.\n- Lockstep irradiance waits for both the current static scene's build and its\n  probe trace (`SdfMeshIrradiance.Stage`). Waiting only for the trace can render\n  no volume on the first frame, or the preceding scene on a replacement frame.\n  The CPU irradiance law compares the first staging of each against a completed\n  trace; looping staging calls until a write appears would hide that defect.\n- An image source owns its extent even when a buffer graph consumes it. Propagate\n  its demand without multiplying by the buffer consumer's zero pixel footprint\n  (`RenderGraphScheduler`), or a cold conversion can finish building and never\n  install. A package whose last frame is incomplete cannot stand unchanged\n  (`RenderGraphRuntime.WithUnchanged`): its pending sources still need renders.\n  A retained \"building\" reason alone does not prove a worker is still building;\n  inspect the live schedule and completed build as well.\n- Screen-light reproduction must compare source bytes, not just graph publication\n  numbers. `MachineVideoSourceUpload` numbers uploads, while a queued machine's\n  video read takes its latest completed native frame. Equal publications can\n  therefore feed different images to `ScreenEmission`. Lockstep uses the existing\n  synchronous machine advance before rendering. A fence wait, readback or GPU\n  validation can mask this worker race by changing pacing; diagnose the CPU\n  video bytes and native frame version before changing GPU barriers.\n- Build: `dotnet build src\u002FPuck.SdfVm -c Release -nodeReuse:false` runs DXC\n  (needs `dxc` on `PATH`). A Windows build of one project builds DXIL only, and\n  a World run of it refuses `--backend vulkan`; run Vulkan from a solution\n  build or with `-p:PuckShaderSpirvEnabled=true`. A build of one suite under\n  `tests\u002F` builds SPIR-V (`tests\u002FDirectory.Build.rsp`). Shader outputs come\n  from the per-user shader cache; never copy bytecode between trees.\n- Run it and look: start a World with `puck_world_start`\n  ([puck-world](..\u002Fpuck-world\u002FSKILL.md#the-live-world-is-shared); `windowed: true`\n  only for a granted GPU leg), edit, `world.shaders.reload`, capture, and end it\n  with `puck_world_stop`. A claim about\n  how something renders rests on an inspected capture; say which backends you\n  looked at. A boot bakes the groups the mesh store does not hold; a reboot of\n  an unchanged world loads its completed meshes, and an empty `--cache-dir`\n  bakes all of them. A cold debug-world bake can span thousands of rendered\n  frames, while simulation advances many ticks per frame. Before capturing the\n  finished scene, use `world.wait bakes \u003Cseconds>` and require its settled\n  result, then check for `[sdf.mesh-gi] done` in the log. A tick wait or\n  `world.wait ready` alone does not establish that all meshes are present.\n  The debug world's full probe convergence takes minutes after the bakes\n  settle, and before it a view shows the sky-only ambient: whites and shadowed\n  faces read blue-grey where the converged lawn bounce reads warm green-yellow.\n  A backend pair captured without lockstep at different convergence states\n  looks like a colour divergence between backends; it is not one (`world.indirect off`\n  reproduces the unconverged look). Compare backends under lockstep, which waits for the trace.\n  A byte comparison sets `world.lockstep on` before the first tick in both legs,\n  then waits for bake settlement before requesting the still. An ordinary settled screenshot converges temporal views\n  but does not request `SdfFrame.ConvergesLighting`; it can capture before a background GI\n  trace finishes. Pin the camera and tick in both legs and use lockstep's\n  synchronous scene\u002Frefill\u002Ftrace drain for the comparison.\n  Keep each code build's completed private mesh store for warm comparison\n  legs: sharing one directory does not share payloads across changed bake\n  identities, and silently turns the second leg into another cold bake.\n  `world.rate pause` also stops tick waits: several timing reads separated by\n  `world.wait` then repeat the same completed GPU window. Use separate control\n  requests spaced in wall time when measuring a paused scene.\n- Device-free suites: `dotnet test tests\u002FPuck.SignedDistance.Tests -c Release --no-build`\n  after a `-nodeReuse:false` build (ISA packing, Lipschitz, bakes) and `tests\u002FPuck.Shaders.Tests`.\n  Anything that answers a bake lattice on the CPU (`MeshCpuBake`, the SdfVm laws' kernel stand-ins) places\n  each sample with `SdfMeshBakeRequest.SampleAt`, as the kernel does: a slab keeps its final lattice's\n  origin and counts its planes from `Slab`, so a copied grid formula answers a slab at the wrong planes. Cross-backend\n  parity (`puck parity --world \u003Cfile>`) needs a parity world with its contract\n  beside it, and none exists while the debug world is the one live world; until\n  one does, compare the two backends' captures and counts yourself.\n- Capture fixtures in a sandbox without a desktop monitor must replace both\n  the debug desktop graph and its screen producer with `source.color`, and\n  remove that screen's `padPointer`. Offscreen hosting alone still tries to\n  open the authored capture source. Use a private copy of the whole package\n  with the same entry filenames: a renamed wrapper changes document identity,\n  so garden\u002Fnight back-references can instantiate another debug world. Keep\n  device-machine screens intact and disclose the desktop substitution in the\n  capture report. After a suit change, allow its rule to run and check the\n  residency's `[sdf.mesh-bake] done` log before capturing with\n  `world.wait bakes \u003Cseconds>`: a tick wait alone can show the old mesh\n  stretched over the new rig. Clear an operator camera with\n  `view.override camera auto` before switching to a following motion layout.\n- GPU captures, device faults and the validation layers:\n  [kernels](references\u002Fkernels.md#captures-faults-and-validation).\n\n## References\n\n| File | Read it for |\n|---|---|\n| [references\u002Fkernels.md](references\u002Fkernels.md) | The shader build, hot reload, the frame's passes, the visibility record, bindings, diagnostics, captures and device faults |\n| [references\u002Fsync-pairs.md](references\u002Fsync-pairs.md) | Every C#↔HLSL coupling and which side is generated |\n| [references\u002Fmesh-bake.md](references\u002Fmesh-bake.md) | The bake's contouring, groups, mesh region, store and `puck mesh audit` |\n| [references\u002Fmesh-gi.md](references\u002Fmesh-gi.md) | Probe visibility, the volume boundary, CPU bounce sampling and exposure |\n| [references\u002Fgpu-cost.md](references\u002Fgpu-cost.md) | A kernel's registers and occupancy (Nsight GPU Trace, PIX, RenderDoc), divergence, coalescing, groupshared banks, wave intrinsics, half precision, dispatch limits, CPU↔GPU waits and GPU allocation |\n| [references\u002Fruntime-contracts.md](references\u002Fruntime-contracts.md) | The render-graph runtime's invariants, before changing `RenderGraphRuntime`, a recorder, a capture path or pacing |\n\n## Route adjacent work\n\n| Skill | Route there for |\n|---|---|\n| `sdf-authoring` | Sculpting creations: primitives, blends, palette, rigs, bake work and bytes. |\n| `puck-world` | What world-document sections mean and console verbs' semantics. |\n| `puck-dsl` | `.puck` grammar and the compile\u002Flint verbs. |\n| `maths-usage` | Fixed-point primitives for the query evaluator. |\n| `dotnet-performance` | Host-side C# hot paths. |\n| `platform` | Native windows, display facts (VRR, colour space, display power), precision waits, camera rings that feed shared textures. |\n| `physics` | Contact against the authored field, which the drawn mesh must agree with. |\n| `verification` | The landing bar, GPU legs and how to read a failed check. |\n",{"name":5,"description":7},"main","2ef814b84c9595144e052c6dcd300badb619ee2f",".claude\u002Fskills\u002Frendering",0,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck","https:\u002F\u002Fgithub.com\u002FByteTerrace","https:\u002F\u002Fbyteterrace.com","2026-11-12 13:59:16",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ByteTerrace\u002FPuck --skill rendering",{"tool":37,"command":38},"bunx","bunx skills add ByteTerrace\u002FPuck --skill rendering",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ByteTerrace\u002FPuck --skill rendering","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002FSKILL.md",true,[45,51,55,59,63,67,71,75,79,83,87,91,95,98,102,106,110,114,118,121,125,129,133,136,140,143,147,151,155,159,162,166,170,173,177,181,184,188,191,194,198,202,205,209,213,216,220,224,228,231,235,238,241,245,249,253,257,260,264,268,272,275,279,283,287,290,294,298,302,305,308,312,316,320,324,328,332,336,340,344,348],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"evals\u002Fg02-ao-edit-has-no-effect\u002Fgraders\u002Fambient-is-a-separate-dispatch.md","REFERENCE","参考文档",140,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg02-ao-edit-has-no-effect\u002Fgraders\u002Fambient-is-a-separate-dispatch.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"evals\u002Fg02-ao-edit-has-no-effect\u002Fgraders\u002Fisolate.md",84,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg02-ao-edit-has-no-effect\u002Fgraders\u002Fisolate.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"evals\u002Fg02-ao-edit-has-no-effect\u002Fgraders\u002Freload-loop.md",79,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg02-ao-edit-has-no-effect\u002Fgraders\u002Freload-loop.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"evals\u002Fg02-ao-edit-has-no-effect\u002Fgraders\u002Fright-file.md",96,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg02-ao-edit-has-no-effect\u002Fgraders\u002Fright-file.md",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"evals\u002Fg02-ao-edit-has-no-effect\u002Fgraders\u002Fskill-fired.md",36,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg02-ao-edit-has-no-effect\u002Fgraders\u002Fskill-fired.md",{"path":68,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":69,"sourceHtmlUrl":70},"evals\u002Fg02-ao-edit-has-no-effect\u002Fgraders\u002Fviews-only-reads.md",287,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg02-ao-edit-has-no-effect\u002Fgraders\u002Fviews-only-reads.md",{"path":72,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fg02-ao-edit-has-no-effect\u002Fprompt.md",413,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg02-ao-edit-has-no-effect\u002Fprompt.md",{"path":76,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fg03-framerate-after-placements\u002Fgraders\u002Fbudget.md",70,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg03-framerate-after-placements\u002Fgraders\u002Fbudget.md",{"path":80,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fg03-framerate-after-placements\u002Fgraders\u002Fcapacity-growth.md",132,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg03-framerate-after-placements\u002Fgraders\u002Fcapacity-growth.md",{"path":84,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fg03-framerate-after-placements\u002Fgraders\u002Fcounted-work-not-wall-clock.md",215,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg03-framerate-after-placements\u002Fgraders\u002Fcounted-work-not-wall-clock.md",{"path":88,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fg03-framerate-after-placements\u002Fgraders\u002Fcounters-gpu.md",72,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg03-framerate-after-placements\u002Fgraders\u002Fcounters-gpu.md",{"path":92,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Fg03-framerate-after-placements\u002Fgraders\u002Fquality-knobs.md",119,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg03-framerate-after-placements\u002Fgraders\u002Fquality-knobs.md",{"path":96,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":97},"evals\u002Fg03-framerate-after-placements\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg03-framerate-after-placements\u002Fgraders\u002Fskill-fired.md",{"path":99,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fg03-framerate-after-placements\u002Fprompt.md",371,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg03-framerate-after-placements\u002Fprompt.md",{"path":103,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fg04-hand-written-isa-define\u002Fgraders\u002Fencoding-probe.md",73,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg04-hand-written-isa-define\u002Fgraders\u002Fencoding-probe.md",{"path":107,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fg04-hand-written-isa-define\u002Fgraders\u002Fgenerated-from-the-csharp-model.md",138,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg04-hand-written-isa-define\u002Fgraders\u002Fgenerated-from-the-csharp-model.md",{"path":111,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fg04-hand-written-isa-define\u002Fgraders\u002Fname-follows-the-enum-member.md",135,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg04-hand-written-isa-define\u002Fgraders\u002Fname-follows-the-enum-member.md",{"path":115,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fg04-hand-written-isa-define\u002Fgraders\u002Fregenerate-verb.md",98,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg04-hand-written-isa-define\u002Fgraders\u002Fregenerate-verb.md",{"path":119,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":120},"evals\u002Fg04-hand-written-isa-define\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg04-hand-written-isa-define\u002Fgraders\u002Fskill-fired.md",{"path":122,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":123,"sourceHtmlUrl":124},"evals\u002Fg04-hand-written-isa-define\u002Fprompt.md",201,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg04-hand-written-isa-define\u002Fprompt.md",{"path":126,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":127,"sourceHtmlUrl":128},"evals\u002Fg06-extra-map-call-sites\u002Fgraders\u002Feach-site-is-an-inlined-copy.md",110,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg06-extra-map-call-sites\u002Fgraders\u002Feach-site-is-an-inlined-copy.md",{"path":130,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":131,"sourceHtmlUrl":132},"evals\u002Fg06-extra-map-call-sites\u002Fgraders\u002Fregister-pressure.md",74,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg06-extra-map-call-sites\u002Fgraders\u002Fregister-pressure.md",{"path":134,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":93,"sourceHtmlUrl":135},"evals\u002Fg06-extra-map-call-sites\u002Fgraders\u002Freuse-through-a-loop.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg06-extra-map-call-sites\u002Fgraders\u002Freuse-through-a-loop.md",{"path":137,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":138,"sourceHtmlUrl":139},"evals\u002Fg06-extra-map-call-sites\u002Fgraders\u002Frolled-loop.md",65,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg06-extra-map-call-sites\u002Fgraders\u002Frolled-loop.md",{"path":141,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":142},"evals\u002Fg06-extra-map-call-sites\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg06-extra-map-call-sites\u002Fgraders\u002Fskill-fired.md",{"path":144,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":145,"sourceHtmlUrl":146},"evals\u002Fg06-extra-map-call-sites\u002Fprompt.md",234,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg06-extra-map-call-sites\u002Fprompt.md",{"path":148,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":149,"sourceHtmlUrl":150},"evals\u002Fg07-abi-change-with-reload\u002Fgraders\u002Fboth-sides-change-together.md",103,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg07-abi-change-with-reload\u002Fgraders\u002Fboth-sides-change-together.md",{"path":152,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":153,"sourceHtmlUrl":154},"evals\u002Fg07-abi-change-with-reload\u002Fgraders\u002Fneeds-a-rebuild.md",113,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg07-abi-change-with-reload\u002Fgraders\u002Fneeds-a-rebuild.md",{"path":156,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":157,"sourceHtmlUrl":158},"evals\u002Fg07-abi-change-with-reload\u002Fgraders\u002Freload-compiles-kernel-sources-only.md",118,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg07-abi-change-with-reload\u002Fgraders\u002Freload-compiles-kernel-sources-only.md",{"path":160,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":161},"evals\u002Fg07-abi-change-with-reload\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg07-abi-change-with-reload\u002Fgraders\u002Fskill-fired.md",{"path":163,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":164,"sourceHtmlUrl":165},"evals\u002Fg07-abi-change-with-reload\u002Fgraders\u002Fsync-pairs.md",252,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg07-abi-change-with-reload\u002Fgraders\u002Fsync-pairs.md",{"path":167,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":168,"sourceHtmlUrl":169},"evals\u002Fg07-abi-change-with-reload\u002Fprompt.md",192,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg07-abi-change-with-reload\u002Fprompt.md",{"path":171,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":108,"sourceHtmlUrl":172},"evals\u002Fg08-dynamic-transform-capacity\u002Fgraders\u002Fcapacity-does-not-grow.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg08-dynamic-transform-capacity\u002Fgraders\u002Fcapacity-does-not-grow.md",{"path":174,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":175,"sourceHtmlUrl":176},"evals\u002Fg08-dynamic-transform-capacity\u002Fgraders\u002Ffix-the-emission.md",124,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg08-dynamic-transform-capacity\u002Fgraders\u002Ffix-the-emission.md",{"path":178,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":179,"sourceHtmlUrl":180},"evals\u002Fg08-dynamic-transform-capacity\u002Fgraders\u002Fidentity-slot-is-a-bug.md",117,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg08-dynamic-transform-capacity\u002Fgraders\u002Fidentity-slot-is-a-bug.md",{"path":182,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":183},"evals\u002Fg08-dynamic-transform-capacity\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg08-dynamic-transform-capacity\u002Fgraders\u002Fskill-fired.md",{"path":185,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":186,"sourceHtmlUrl":187},"evals\u002Fg08-dynamic-transform-capacity\u002Fprompt.md",238,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg08-dynamic-transform-capacity\u002Fprompt.md",{"path":189,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":131,"sourceHtmlUrl":190},"evals\u002Fg10-hard-op-in-one-kernel-only\u002Fgraders\u002Fcpu-interpreter.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg10-hard-op-in-one-kernel-only\u002Fgraders\u002Fcpu-interpreter.md",{"path":192,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":104,"sourceHtmlUrl":193},"evals\u002Fg10-hard-op-in-one-kernel-only\u002Fgraders\u002Fencoding-probe.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg10-hard-op-in-one-kernel-only\u002Fgraders\u002Fencoding-probe.md",{"path":195,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":196,"sourceHtmlUrl":197},"evals\u002Fg10-hard-op-in-one-kernel-only\u002Fgraders\u002Fnot-done.md",71,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg10-hard-op-in-one-kernel-only\u002Fgraders\u002Fnot-done.md",{"path":199,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":200,"sourceHtmlUrl":201},"evals\u002Fg10-hard-op-in-one-kernel-only\u002Fgraders\u002Fparts-walk.md",66,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg10-hard-op-in-one-kernel-only\u002Fgraders\u002Fparts-walk.md",{"path":203,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":204},"evals\u002Fg10-hard-op-in-one-kernel-only\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg10-hard-op-in-one-kernel-only\u002Fgraders\u002Fskill-fired.md",{"path":206,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":207,"sourceHtmlUrl":208},"evals\u002Fg10-hard-op-in-one-kernel-only\u002Fprompt.md",144,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg10-hard-op-in-one-kernel-only\u002Fprompt.md",{"path":210,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":211,"sourceHtmlUrl":212},"evals\u002Fg12-hard-carve-reads-phantom-surfaces\u002Fgraders\u002Fextend-the-carve-or-use-union.md",141,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg12-hard-carve-reads-phantom-surfaces\u002Fgraders\u002Fextend-the-carve-or-use-union.md",{"path":214,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":215},"evals\u002Fg12-hard-carve-reads-phantom-surfaces\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg12-hard-carve-reads-phantom-surfaces\u002Fgraders\u002Fskill-fired.md",{"path":217,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":218,"sourceHtmlUrl":219},"evals\u002Fg12-hard-carve-reads-phantom-surfaces\u002Fgraders\u002Fsubtraction-exact-only-near-its-subject.md",115,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg12-hard-carve-reads-phantom-surfaces\u002Fgraders\u002Fsubtraction-exact-only-near-its-subject.md",{"path":221,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":222,"sourceHtmlUrl":223},"evals\u002Fg12-hard-carve-reads-phantom-surfaces\u002Fprompt.md",217,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg12-hard-carve-reads-phantom-surfaces\u002Fprompt.md",{"path":225,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":226,"sourceHtmlUrl":227},"evals\u002Fg13-hard-wrap-each-primitive-in-a-scope\u002Fgraders\u002Fclamps-are-bounds-not-cost.md",101,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg13-hard-wrap-each-primitive-in-a-scope\u002Fgraders\u002Fclamps-are-bounds-not-cost.md",{"path":229,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":108,"sourceHtmlUrl":230},"evals\u002Fg13-hard-wrap-each-primitive-in-a-scope\u002Fgraders\u002Fmake-the-primitive-lipschitz.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg13-hard-wrap-each-primitive-in-a-scope\u002Fgraders\u002Fmake-the-primitive-lipschitz.md",{"path":232,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":233,"sourceHtmlUrl":234},"evals\u002Fg13-hard-wrap-each-primitive-in-a-scope\u002Fgraders\u002Fscope-is-a-per-sample-cost.md",88,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg13-hard-wrap-each-primitive-in-a-scope\u002Fgraders\u002Fscope-is-a-per-sample-cost.md",{"path":236,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":237},"evals\u002Fg13-hard-wrap-each-primitive-in-a-scope\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg13-hard-wrap-each-primitive-in-a-scope\u002Fgraders\u002Fskill-fired.md",{"path":239,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":127,"sourceHtmlUrl":240},"evals\u002Fg13-hard-wrap-each-primitive-in-a-scope\u002Fgraders\u002Fskips-early-out-and-rigid-planning.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg13-hard-wrap-each-primitive-in-a-scope\u002Fgraders\u002Fskips-early-out-and-rigid-planning.md",{"path":242,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":243,"sourceHtmlUrl":244},"evals\u002Fg13-hard-wrap-each-primitive-in-a-scope\u002Fprompt.md",167,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg13-hard-wrap-each-primitive-in-a-scope\u002Fprompt.md",{"path":246,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":247,"sourceHtmlUrl":248},"evals\u002Fg14-hard-two-lanes-both-added-an-op\u002Fgraders\u002Fci-checks-only.md",122,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg14-hard-two-lanes-both-added-an-op\u002Fgraders\u002Fci-checks-only.md",{"path":250,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":251,"sourceHtmlUrl":252},"evals\u002Fg14-hard-two-lanes-both-added-an-op\u002Fgraders\u002Ffingerprint-rewritten.md",100,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg14-hard-two-lanes-both-added-an-op\u002Fgraders\u002Ffingerprint-rewritten.md",{"path":254,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":255,"sourceHtmlUrl":256},"evals\u002Fg14-hard-two-lanes-both-added-an-op\u002Fgraders\u002Fgenerate-verb-or-build.md",116,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg14-hard-two-lanes-both-added-an-op\u002Fgraders\u002Fgenerate-verb-or-build.md",{"path":258,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":259},"evals\u002Fg14-hard-two-lanes-both-added-an-op\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg14-hard-two-lanes-both-added-an-op\u002Fgraders\u002Fskill-fired.md",{"path":261,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":262,"sourceHtmlUrl":263},"evals\u002Fg14-hard-two-lanes-both-added-an-op\u002Fprompt.md",207,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg14-hard-two-lanes-both-added-an-op\u002Fprompt.md",{"path":265,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":266,"sourceHtmlUrl":267},"evals\u002Fg15-signed-modulo-on-vulkan\u002Fgraders\u002Fdriver-answers-wrongly.md",172,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg15-signed-modulo-on-vulkan\u002Fgraders\u002Fdriver-answers-wrongly.md",{"path":269,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":270,"sourceHtmlUrl":271},"evals\u002Fg15-signed-modulo-on-vulkan\u002Fgraders\u002Flift-and-wrap-as-uint.md",121,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg15-signed-modulo-on-vulkan\u002Fgraders\u002Flift-and-wrap-as-uint.md",{"path":273,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":274},"evals\u002Fg15-signed-modulo-on-vulkan\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg15-signed-modulo-on-vulkan\u002Fgraders\u002Fskill-fired.md",{"path":276,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":277,"sourceHtmlUrl":278},"evals\u002Fg15-signed-modulo-on-vulkan\u002Fprompt.md",353,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg15-signed-modulo-on-vulkan\u002Fprompt.md",{"path":280,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":281,"sourceHtmlUrl":282},"evals\u002Fg16-per-pixel-field-view\u002Fgraders\u002Fno-field-walk-in-a-pixel-kernel.md",203,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg16-per-pixel-field-view\u002Fgraders\u002Fno-field-walk-in-a-pixel-kernel.md",{"path":284,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":285,"sourceHtmlUrl":286},"evals\u002Fg16-per-pixel-field-view\u002Fgraders\u002Fsample-a-lattice-through-the-bake.md",164,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg16-per-pixel-field-view\u002Fgraders\u002Fsample-a-lattice-through-the-bake.md",{"path":288,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":289},"evals\u002Fg16-per-pixel-field-view\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg16-per-pixel-field-view\u002Fgraders\u002Fskill-fired.md",{"path":291,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":292,"sourceHtmlUrl":293},"evals\u002Fg16-per-pixel-field-view\u002Fgraders\u002Fslice-verb.md",83,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg16-per-pixel-field-view\u002Fgraders\u002Fslice-verb.md",{"path":295,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":296,"sourceHtmlUrl":297},"evals\u002Fg16-per-pixel-field-view\u002Fprompt.md",311,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg16-per-pixel-field-view\u002Fprompt.md",{"path":299,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":300,"sourceHtmlUrl":301},"evals\u002Fg17-new-bake-source-stale-meshes\u002Fgraders\u002Fidentity-follows-the-calls.md",436,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg17-new-bake-source-stale-meshes\u002Fgraders\u002Fidentity-follows-the-calls.md",{"path":303,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":77,"sourceHtmlUrl":304},"evals\u002Fg17-new-bake-source-stale-meshes\u002Fgraders\u002Fnames-mesh-identity.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg17-new-bake-source-stale-meshes\u002Fgraders\u002Fnames-mesh-identity.md",{"path":306,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":307},"evals\u002Fg17-new-bake-source-stale-meshes\u002Fgraders\u002Fskill-fired.md","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg17-new-bake-source-stale-meshes\u002Fgraders\u002Fskill-fired.md",{"path":309,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":310,"sourceHtmlUrl":311},"evals\u002Fg17-new-bake-source-stale-meshes\u002Fgraders\u002Fstore-keyed-by-bake-identity.md",175,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg17-new-bake-source-stale-meshes\u002Fgraders\u002Fstore-keyed-by-bake-identity.md",{"path":313,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":314,"sourceHtmlUrl":315},"evals\u002Fg17-new-bake-source-stale-meshes\u002Fprompt.md",293,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fg17-new-bake-source-stale-meshes\u002Fprompt.md",{"path":317,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":318,"sourceHtmlUrl":319},"evals\u002Fshade-helper-cost\u002Fgraders\u002Fone-admission-contract.md",419,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fshade-helper-cost\u002Fgraders\u002Fone-admission-contract.md",{"path":321,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":322,"sourceHtmlUrl":323},"evals\u002Fshade-helper-cost\u002Fprompt.md",312,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Fevals\u002Fshade-helper-cost\u002Fprompt.md",{"path":325,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":326,"sourceHtmlUrl":327},"references\u002Fauthored-shading.md",17497,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Freferences\u002Fauthored-shading.md",{"path":329,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":330,"sourceHtmlUrl":331},"references\u002Fgpu-cost.md",36000,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Freferences\u002Fgpu-cost.md",{"path":333,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":334,"sourceHtmlUrl":335},"references\u002Fkernels.md",33602,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Freferences\u002Fkernels.md",{"path":337,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":338,"sourceHtmlUrl":339},"references\u002Fmesh-bake.md",83701,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Freferences\u002Fmesh-bake.md",{"path":341,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":342,"sourceHtmlUrl":343},"references\u002Fmesh-gi.md",48893,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Freferences\u002Fmesh-gi.md",{"path":345,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":346,"sourceHtmlUrl":347},"references\u002Fruntime-contracts.md",23638,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Freferences\u002Fruntime-contracts.md",{"path":349,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":350,"sourceHtmlUrl":351},"references\u002Fsync-pairs.md",65453,"https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frendering\u002Freferences\u002Fsync-pairs.md",[353,360,367,374,381,388],{"skillNo":354,"name":355,"nameZh":6,"description":356,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":357,"categories":358,"keywords":359,"publishedAt":18},"01M75V6X1GBYDMSMJC8VXXPFAP","verification","Verifies Puck changes: landing bar, builds, stale DLLs, flaky tests, GPU\u002Fheavy leases, coverage, source-scan or regex laws versus type\u002Fcompiler enforcement, and writing tests.","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fverification\u002FSKILL.md",[],[],{"skillNo":361,"name":362,"nameZh":6,"description":363,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":364,"categories":365,"keywords":366,"publishedAt":18},"01M75V6TM3F9A7ZMA0Q43RVJSF","tooling","Maps shared build\u002FCLI architecture, compiler assembly identity, candidate installation, generated sections, and host admission.","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftooling\u002FSKILL.md",[],[],{"skillNo":368,"name":369,"nameZh":6,"description":370,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":371,"categories":372,"keywords":373,"publishedAt":18},"01M75V6R4E6AY73X27MC6EE5X5","tooling-files","Maps shared repository tooling for files, paths, Git queries, project ownership and Markdown fences. Load before adding or changing a helper in these areas.","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftooling-files\u002FSKILL.md",[],[],{"skillNo":375,"name":376,"nameZh":6,"description":377,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":378,"categories":379,"keywords":380,"publishedAt":18},"01M75V6N2P9XWWPH7EHRKMBTEC","symbol-analysis","Answers C# structure questions with puck references and declarations: which types derive from, implement or override a symbol, who references it, safe to delete or rename. Text: content-search.","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsymbol-analysis\u002FSKILL.md",[],[],{"skillNo":382,"name":383,"nameZh":6,"description":384,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":385,"categories":386,"keywords":387,"publishedAt":18},"01M75V6HRKM57BD8Q7A4N8QN0C","state","Maps Puck's state and rule engine (Puck.State, .Rules, .Search, .Topology, .Vectors, .Generators): arena, journal scopes, undo, hashing, rule compiler, faults, transforms, search, draws.","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fstate\u002FSKILL.md",[],[],{"skillNo":389,"name":390,"nameZh":6,"description":391,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":392,"categories":393,"keywords":394,"publishedAt":18},"01M75V6CE3X73KNZYFRT9A5W8F","sdf-authoring","Authors creations: shape rows, primitives, blends, folds, palettes, paints, render lanes, rigs, bake work and bytes, creation stats. Use to sculpt or fix a part. Grammar: puck-dsl; GPU: rendering.","https:\u002F\u002Fgithub.com\u002FByteTerrace\u002FPuck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsdf-authoring\u002FSKILL.md",[],[]]