The pixels the glaze lights most must reflect, by the drawn normal and the pixel's ray, a direction inside Look's key box or a rim strip; the crease pooling off must change at least 3% of the bisque's pixels; the glaze clips at most 30% from behind (20.4% measured).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The ruling is camera, so StudioFollowsCamera, the shader's studio_in_view and its world-space branch are deleted: the lights are the camera's children and the glaze reads view-space directions, nothing else.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The clip, spread and glow-lift bounds measure the bisque (glaze off). The glaze check turns it on at the close view from the front and from behind on main's own camera, whose rig turns with it: the bisque stays lit from both sides, the glaze changes at least 3% of the puppet's pixels, and from the front clips at most 12%. The frame capture is one helper. Smoke asserts the camera carries a shadowing key and two rims and the environment is linear with no sky or glow.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Look.Environment and Look.Sun are deleted; Look.Studio gives the scene a linear colour environment and a shadowing key and two rims carried by the camera, and Look.Glaze feeds the puppet shader the bisque and the same studio the lights come from, so the lights and the glaze's reflections cannot drift. Main builds the studio on its orbit camera. Puppet.Glazed switches the glaze for RenderCheck. StudioFollowsCamera is the open question lodur❓bds-porcelain-studio-follows-camera's one constant (recommended: camera).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The studio function (studio.gdshaderinc) and the puppet's bisque and glaze uniforms, defaulting to the matte it replaces: ROUGHNESS 1 and SPECULAR 0 are no longer hard-coded, the albedo pools in creases, and the glaze is emission (Fresnel times the studio in the reflected direction), skipped under show_normals, which also forces the bisque unlit.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The reference skins the shape's vertices from the carriers, welds the corners by position, matches edges, derives facets, creases,
area-weighted vertex normals, altitudes, the screen width (finite differences of the edge distance to the pixel's +x and +y neighbours on the
triangle's plane) and the corner blend itself; it reads neither PuppetSkin nor shape.Across. Fails on p90 over 2 deg (measured 0.96 close, 0.76
far), band median over 0.6 deg (0.24), median over 1.5 deg on triangles whose width the smallest altitude caps (0.58), and, across triangle
boundaries at the close camera, over 0.6% of adjacent pairs past 30 deg (0.25%) or a p90 over 6 deg (3.42), with vacuity floors for each. The far
view exists because at the close camera the width is the 3 mm floor and the screen-relative width is never in play.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
GPU skinning (bones[] and the CUSTOM1 skin) and the bind-time crease are deleted: 51% of the creased edges touch a blended vertex, so a bind
crease went stale at every joint. Puppet._Process skins through PuppetSkin and writes the vertex and attribute streams in place (12 and 52 bytes
per corner, lengths asserted at build); the mesh bounds are the skinned bounds, so PuppetShape.Reach is gone. puppet.gdshader takes the facet
normal, creases, altitudes and vertex normal as attributes, sizes the bevel from Look.BevelScreen and BevelMin (question
lodur❓bds-puppet-bevel-look-width, recommended option) and blends corners to the vertex normal. PuppetChecks measures the skin at bends
of 0, 45 and 90 degrees against geometry computed from the bones alone.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PuppetField.Creases() and the bind-time crease are deleted before PuppetSkin derives creases per frame, so between this commit and the next
the shader's creases are zero and the bevel does nothing; RenderCheck's NormalCheck, which read shape.Crease, is deleted with them and
returns in the last commit against an independent reference. PuppetChecks gains Across == the weld-by-position edge match; Pieces,
Stretch and Resolved read the welded arrays.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The per-triangle flip by the centroid gradient turned the 4 net triangles that face against the field into folds. The nets wind every
quad outward, so each triangle is emitted reversed for Godot's clockwise front, and a triangle against the field is a defect the
untangle removes (halving the Newton displacement of its vertices, at most 12 rounds). On the shipped cell: 12 vertices pulled back,
worst 10.45 mm off the isosurface, 0 folds, 0 inward triangles, smallest 5.04 mm2. PuppetChecks pins those, and the fold ceiling
(folds < shared / 100) is gone.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Renders the torso close up with ShowNormals, reads the view-space normal raw, and compares
it per pixel with the shader's formula evaluated on a depth raster of the skinned triangles
(creases from PuppetShape, distances from bind altitudes and barycentrics). p90 error over
interior pixels and the median over the bevel band are bounded, with floors on the pixels
reached and on the band's reference tilt so a bevel that is off cannot pass. Closes the
gap that an unskinned NORMAL passed the silhouette check.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The shader gets the edge-distance basis (CUSTOM0, from Positions) and the triangle's three
creases (CUSTOM2, PuppetShape.Crease); the in-plane direction to each edge comes from screen
derivatives, so no SDF is evaluated and no uniform beyond bones[] is added. At an edge the
tilt is the bisector from both sides: the normal is continuous across it. Look.BevelWidth is
4 mm (open question bds-puppet-bevel-width, recommended option); show_normals/ShowNormals
draws the shading normal for RenderCheck.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PuppetField.Mesh keeps net-vertex indices per emitted triangle, matches each edge by its
two indices and gives each side half the turn to the neighbour's normal (atan2 of the
bisector in the facet's frame), positive where convex. Edges not shared by exactly two
triangles, and folds where the two sides disagree on which way the edge turns, get 0.
PuppetChecks measures it independently by welding corners by position: symmetric on both
sides, half the facet angle, signed by convexity, zero on loose edges and folds.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Rulings lodur:ruling:stress-bar-shows-arousal-calm-silences and flinch-tail-after-stimulus: the stress column is the arousal column (was 1 - resolve), labelled "stress (arousal)"; the calm goal declares EntryArousal 0, SensoryGain 0 over StressParameters.CalmFadeSeconds (3 s) while the stressors keep sounding. Rung-3 rows re-derived with the old column; the run's own hash re-captured. The terminal-calm test now presses on the goal with a fade longer than the run, since a default calm leaves no load to break the will a third time.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Reverting the withdraw gate to WillBroken switched back only DeliberateLatency (10 ticks)
after the mend, so a test that stopped at the first mended tick missed it; both mutants
(gate and Disabled to WillBroken) now fail. BodyPainBox's comment states the real reason
its first break is the only one: the withdraw pose is terminal and nothing moves the hand
back.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Base and head give byte-identical body pain box runs on this Lodur (hand out 0-50 ms after
the break), so the spec's changed-bytes sentence does not hold; the pin is the 300 ms bound.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
BodyPainBoxSession ends within 1 s of the withdrawal and a mend takes about 60 s, so no
second break occurs in its flow and no test can reach one. The guard was dead defence
(finding body-pain-box-first-break-guard-unpinned, the drop option); PainBoxSession, which
can be ticked past a mend, holds the real guard.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The result reported a break 63 s after its own run's end when the session was ticked
through a mend and a second break (probe: break 77740 ms, end 14830 ms).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
At 6 s seeds 55 and 100 ended with a hand at 0.0512 and 0.0521 m/s, over the 0.05 m/s
stillness limit; 7 s gives 0.0259, 8 s gives 0.0124 (seed 100) over seeds 1-100. The limit
is unchanged; the test asserts under 0.025 (half of it). The suite runs the tight seeds;
BDS_SETTLE_SWEEP=1 runs all 100 (about a minute). The office golden is re-captured for the
two extra seconds of rows.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The rage goal gates on Breaks >= 1, refills his will on entry (EntryResolve 1.0), is
involuntary for RageOnsetSeconds (1 s) and then costs RageEffort (0.05) a second. When
that will runs dry and breaks a second time, the calm goal (priority 2, Breaks >= 2,
involuntary for good, his composed pose at normal strength) takes over and is terminal as
data (ruling lodur:ruling:fella-calm-after-rage). ReleaseGoalId defaults to calm and the
run ends ReleaseSeconds (6 s, the settle) after it, headless and body alike.
StressSession keeps the first break as the time to break (a second WillBroke is a row);
OfficeBody.RageTick reads the Rage row by goal; the CLI summary names the rage's span, its
end (calm, or clipped by --max) and the calm time.
Tests: the arc over seeds 1..20, calm is terminal (through a third break, on a bursty
cause), release by id, the rage weakening and the body settling. The office run's own
golden is re-captured (the run now has the arc); rung 3's rows up to the break and the pain
box golden and parity hashes pass unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PainBoxSession read any GoalChanged as the withdrawal; PainBoxParameters.ReleaseGoalId
(default ChamberBrain.WithdrawId) now names the goal, resolved at construction and refused
if the Brain lacks it. The withdraw goal gates on Breaks >= 1 (never falls) and is
involuntary for good, so the will mending neither gives the hand back nor weakens the
withdrawal. Disabled() reads Breaks, BodyPainBox keeps the first break as the snap.
Tests: the one-way chamber, release by id, and the flinch-gain-0 control run with a will
that costs no strength (its premise, that the arm does not feed back into the drive, fails
once strength follows will). Pain box golden and parity hashes unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Findings gpu-skin-path-untested and puppet-must-sit-at-identity. RenderCheck.tscn (not headless,
gl_compatibility) poses the carriers in a bent pose under a moved and turned BodyRenderer, renders
the puppet alone, and compares the silhouette with the mesh skinned on the CPU from the carriers
and the spread bind: IoU at least 0.95 (correct 1.000; a flipped shader weight 0.61, no inverse bind
0.10, creation-pose bind 0.43, inverted CUSTOM1 weight 0.61, ignoring the parent 0.22). It also
bounds the clipped share and the facet spread. Puppet._Process now takes the bones into the skin's
global transform, so the puppet is right under any parent.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Finding facets-saturated. At the shipped sun 0.5 plus ambient 0.2, 30% of the puppet's pixels
were clipped; with the chamber's omni light (3 x glow) near full glow, 56%. Sun 0.25 and
Look.GlowLightEnergy 0.1 leave 0.2% clipped and a 89-level facet spread (before: frame 149 of the
movie render, after: the same frame).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Findings minimum-resolution-unmeasured and stretch-bound-narrow. Resolved is stated: the thinnest
limb spans two cells, one piece, every body owns 48 triangle corners. The sweep over 50 to 100 mm
shows none resolves, so 40 mm stays. Soul's all-joint random bend is committed (200 poses at 45 and
90 degrees) with an explicit ratio and length bound; SminRadius must not exceed the thinnest limb.
The stretch and piece helpers live in PuppetChecks, once, and the smoke uses them.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Findings topology-rebuild-untested and build-count-check-late. PuppetModel owns the
first-sight bind, the signature and the one build; Puppet takes its shape. PuppetChecks
(run by the smoke, no scene) drive one rebuild per changed signature (joint removed,
body added or removed, size, kind, joint kind, identity), none for an unchanged one or a
body that only moved, and the bone cap. A rebuild per Reset now fails at the third Reset.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Finding cultlib-reference-unpinned: the sibling is refused unless it is a clean
checkout of Ymir's admitted revision; the comment and README no longer say 'or main'.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PuppetField (engine-free, CultMath): primitives from the shape lanes, a joint
ball and smooth-min per qualifying joint (Revolute, Spherical, Weld), the
bind pose spread 20 degrees at each Spherical joint, surface nets at a 40 mm
cell, two Newton steps onto the isosurface, flatter-diagonal quad split,
two-bone skin weights from the winning term. Puppet builds it once, on a
topology signature change only, and skins it in puppet.gdshader from the pose
carriers' interpolated transforms.
Smoke: triangle count, one connected piece, no skinned edge past 4x its bind
length at the intensity-6 run's end and with each Spherical joint swung 90
degrees, one build across 400 resets.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
MeshFor, FlatShaded, the per-body MeshInstance3D and the StandardMaterial3D go.
The node-per-StableId reconcile survives as Node3D carriers. BodyRenderer
exposes PuppetColor; the smoke's look check reads it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Hud.cs reads BadDay.Core.Goal.Withdraw (the session's goal type). Main's
ShownBoxIntensity special case is deleted: the chamber draws session.BoxIntensity
and the HUD adds 'off' from session.BoxOn. The smoke gains the probe the finding
asks for: Box off after the will broke darkens the chamber and the readout.
The event log prints GoalChanged where it printed Withdrew (a flag's name).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
BoxOn is on until a SwitchOff or the disable time, counted from the call even
after the run has ended, so a run that ended on the will breaking still takes
the switch. BoxIntensity is the written intensity while on and 0 off.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>