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>
Cause.Senses becomes Character (OfficeFella): setting, cause and character are
three things. StressSession ends ReleaseSeconds after the goal named by
StressParameters.ReleaseGoalId (default rage) takes over, not after any
GoalChanged, and refuses an id the Brain lacks. office --body names a break
whose rage --max clipped. Tests: body-vs-headless break within 0.5 s (a hand
sense gives 3.6 s), the rage over 1 m/s and at full strength (a limp rage gave
0.6), the strikes' forward reach (a shoulder-only change fails); each killed
by hand mutants (limp rage, HandL sense, left shoulder only). README says the
Brains are built in code for now and become content with Lodur's.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
OfficeBody.Run builds SeatedPuppet's world, moves the desk's emitters to where
the head sits and senses them there (Setting.Shifted), and drives the same
StressSession: the Actor commits the rage 100 ms after the break and the arms
wind up and strike left, right, at 0.25 s a key. It records both hands and the
pelvis per step; strikes are forward hand-speed excursions (1 m/s up, under
0.5 m/s down) [P]. office --body prints the rage's length and the strikes;
--silence does not apply to it. Tests: both hands over 3x faster (and over
0.5 m/s) in the 2 s after the switch, the pelvis within 1 cm, two runs equal.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Lodur's Actor takes a Brain and commits every goal switch. ChamberBrain
(hold-hand pulling Payment / (Payment + DollarsAtHalfPull), then withdraw) and
OfficeBrain (keep-composure, then rage) are BDS's data; the sessions read the
goal column back from Actor.GoalIndex and decide no switch. Drive.ObjectivePull
and --pull (chamber) go: --pay DOLLARS, $100 pulls exactly 0.5, so the sweep
and the 14730 ms golden hold. The office no longer ends at the break: it logs a
GoalChanged row 100 ms after it and ends ReleaseSeconds (6 s) later; its goal
column is OfficeGoal (KeepComposure, Rage). BodyPainBoxSession's inline world
moves to SeatedPuppet.Build. PainBoxSession.Disabled tests WillBroken, not the goal.
Outputs against BDS main e4b1b4e: sweeps and office-sweep byte-identical;
run --seed 1 (and --body) differ only in the WillBroke row's goal, HoldHand
instead of Withdraw (the Actor commits Withdraw 100 ms later); office rows up
to the break equal rung 3's bar the goal names.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Slow motion sets Godot's physics ticks per second to a quarter while each frame still steps the session 1/120 s.
The box intensity shown is 0 once a run ended with the box off. Main.Reset catches a failed session start, keeps
Failure, pushes one error and ticks nothing; the HUD shows it. The smoke presses the HUD's own controls, compares
events and hands with BodyPainBox for several seeds and intensities, resets 400 times, asserts interpolation, the
palette, the rendered pose after a reset, and measures slow motion by wall clock. BodyRenderer exposes poses, not
per-body nodes, so the SDF puppet can replace Puppet.cs.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
One rule for every writer, the constructor included, so a level like double.MaxValue cannot half-step a
session. A refused level leaves the old one.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
LastEvents is replaced by DrainEvents into a caller-owned buffer (events queue per tick), the inner
PainBoxSession is no longer exposed (read-only Pain, Strain, Resolve, Goal, BoxIntensity, Chamber, TickIndex
instead), and every member throws ObjectDisposedException after Dispose. Tests pin the drain intervals,
the after-Finished re-drive, end on the confirmed hand-out, the rest-pose Hand, the intensity refusal and
the disposed state.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Create, Step, read Hand and the world's lanes, SetIntensity, SwitchOff, dispose. The Ymir world and its loop
now live only in the session; BodyPainBox.Run is a consumer that steps one to Finished and records the hand.
Past Finished, Step keeps the world moving and the result stays frozen. Four tests pin the live commands
against their scripted equivalents, the next-tick rule and the frozen result.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
BoxIntensity is now PainBox.Level's initial value and BoxDisableAtSeconds is one caller of SwitchOff, so a
scripted and a live switch-off share one primitive. Behaviour unchanged for existing parameters.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A silence lands on the tick its time rounds to (exact, below and above half a tick); an emitter takes
the larger stressor whichever is listed last; the seed's first two draws are the senses' gain and the
drain trait; office --seed 1 and the 50-seed sweep line are pinned. Hand probes of each (one tick
late, one early, ceiling, floor, last writer, gain trait dropped, draws swapped) fail a test.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Both rules were unpinned; hand probes (draw skipped when silenced, silence ignored, sum instead of
max, default nerve instead of the office's) each fail an office test.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>