Commit graph Lodur/tests
Author SHA1 Message Date
Meta Vens
4f421f42cc Brain: optional minimum dwell per goal; a built Brain owns copies; pin condition reads, latency and phase
GoalSpec.MinDwellSeconds (default 0) holds a goal until it has been active that many ticks, so a condition
hovering at its threshold no longer chatters. Brain, GoalSpec and PoseBehaviour copy the lists and arrays
they are given. New tests pin every drive quantity a condition reads, Below's strictness, the one-tick latency
floor and negative refusal, that the pending goal's behaviour is not written during the latency, that a
behaviour's phase restarts from the time in the goal, and the dwell and copy rules. Defaults leave the
golden table and the connected world hash unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:48:04 +01:00
Meta Vens
c26c15c11c The Brain: authored goals selected by conditions over drive state, one pose behaviour
The Actor takes a Brain (goals with id, priority, pull, conditions and a behaviour) and switches to the
highest-priority eligible goal after the Brain's deliberate latency, firing GoalChanged. Lodur no longer
has a hold/withdraw rule: Goal, Actor.Goal, TickEvents.Withdrew, ObjectivePull and
WithdrawalParameters.LatencySeconds are deleted; resolve drain takes the active goal's pull.
HoldAgainstReflex becomes PoseBehaviour (a pose held or a loop of keys). The pain box is a two-goal
Brain whose golden table (420 rows) and connected world hash are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:48:03 +01:00
Meta Vens
978202009c Body regions: Head, the head body's centre
Office emitters are sensed at the head. RegionCount is 3; the connected pain box still replays the base world hash, break tick and hand track.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:48:03 +01:00
Meta Vens
2026b7cb63 Pin the connected pain box seed 1 timeline at the pre-Brain base
Break tick, deliberate switch tick, flinch count, hand track hash and world hash recorded at 5d0fec8, so the Brain cut can show it drives the body with the same bits.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:48:03 +01:00
Meta Vens
a0488275c6 Pin that arousal updates before it drains resolve on the same tick
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:45:30 +01:00
Meta Vens
9842cec85f Perception: refuse an emitter with an unknown channel before any state steps
Pins the sense point as the sense region's own, on every axis, with three regions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:45:29 +01:00
Meta Vens
c6a1208aa2 Drive: arousal from sensory load drains resolve; Actor takes senses and emitters
Arousal rises under load and decays when quiet, drains resolve beside pain and strain
(scaled by pull and trait), and resolve recovers only when pain and arousal are both low.
Actor.Tick gains a trailing emitter span; the pain box's expressions keep their operand order
and the 420-row golden table passes unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:18:33 +01:00
Meta Vens
f052a36f2c Perception: point emitters on audio, visual and interrupt channels, combined into one load
Per channel the largest emitter intensity at the sense region's point goes through the same
threshold, sensitisation and conduction delay as noxious input; the channels saturate as
1 - prod(1 - afferent). Without senses the loop does nothing and the pain box is untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:16:45 +01:00
Meta Vens
1491bed18d Pin the shake's upper bound, the golden table's line endings, and a clean BDS tree for regeneration
Soul lows on cut-nervous-layers.s2: shake-test-has-no-upper-bound (0.06 and
0.15 now fail at 7.7 and 14 cm), golden-tsv-eol-unpinned,
golden-generator-trusts-head.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:06:34 +01:00
Meta Vens
05b74e864e Lodur.Body.Ymir: HumanoidRagdoll, Muscle and Limb public; friend grant and native-world collection gone
Ymir 0b0321a makes the SoA world public and locks world create/destroy. The ragdoll's
Build takes the caller's Box3DSoaWorld and Lodur still never creates one. Deleted
AssemblyInfo.cs (InternalsVisibleTo), NativeWorld.cs and the collection attributes; first-slice.md
now records that no DLL rename is needed under MinGW.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:51:28 +01:00
Meta Vens
ca2c02e67f Lodur.Tests: pin the strain shake on the body; name the Ymir defect on the native-world collection
At the shipped StrainShake 0.03 the hand's height moves over 3 cm peak to peak per second
in seconds 8-13; at StrainShake 0 it moves under 1.5 cm. NativeWorld.cs now names
lodur:finding:cut-nervous-layers.s1.ymir-concurrent-world-create and says to remove it
once Ymir's lock lands.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:12:14 +01:00
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