Commit graph Lodur/tests
Author SHA1 Message Date
Meta Vens
c52d67bcfd Lodur.Core.Tests: pain-box golden table (420 runs), resolve recovery, flinch gate; generator committed
pain-box-golden.tsv holds BadDaySimulator 9f59764's PainBoxSimulation for 7 intensity/pull
settings x seeds 1-60: outcome, break and end ms, flinch count and a hash of the per-tick
stimulus/pain/strain/resolve/goal stream. The Actor reproduces it exactly.
tools/pain-box-golden regenerates it from that commit. New tests kill 'resolve recovery
off' and 'flinch reported after the break'.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:12:14 +01:00
Meta Vens
af83eee8a5 Lodur.Core.Tests: csproj comment names no engine
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:49:20 +01:00
Meta Vens
83eb5afdca Lodur.Tests: connected pain box on the ragdoll, region readout, native worlds serialised
The Actor drives the ragdoll (pelvis welded to a static stool) through strengths and
targets only: the hand stays in the stimulus box until the will breaks, flinches pull it
away from a leak-free control, the broken will takes it out within 300 ms, same seed gives
the same events and world hash. Classes that build native worlds share one xunit
collection: two live Box3D worlds on different threads crashed the host (0xC000001D).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:48:36 +01:00
Meta Vens
5e0e8c4866 Lodur.Core.Tests: behaviour tests for the nervous layers, core-engine-free
References only Lodur.Core. Covers conduction delay, sensitisation, containment,
reflex gain set from the previous tick's resolve, suppression cost, broken will,
ordered break times, stand-in output, zero allocation, no shared state, and parity
with the pain box (seed 1: will breaks at 14730 ms, withdraws at 14830 ms, 16 flinches).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:42:37 +01:00
Nibu
ef7386a35d First slice: PD-muscle humanoid ragdoll on Ymir's SoA world
Lodur.Core: engine-free PD law with per-muscle strength. Lodur.Body.Ymir: 13-body, 12-joint ragdoll
driven through the world's torque lanes from caller-owned strength and target arrays. Tests: stand, fall,
rest, per-muscle strength, torque conservation, no allocation, same seed gives the same state hash.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 04:07:37 +00:00