ReadRegions becomes ReadSensePoints; strength and target arrays index by plan joint ordinal.
Ymir limb lane is now the plan part ordinal, so HandTests.BaseHash is re-pinned (the only pin moved).
Proof, BaseCreationHash with the Limb term removed, seed 1, Ymir cdf79b1:
Lodur d7a626b: 0x65216f91ffc63d24 this cut: 0x65216f91ffc63d24 (equal)
Full function: d7a626b 0xccf5cedb0df1b2e8 (old pin) -> this cut 0xbbcc7aff6c088398 (new pin).
Tests: Core 182/182, Lodur.Tests 46/46; the connected pain box replay is unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Hand gains are bounded by each body's own inertia and every hand joint keeps
passive damping. The pain-box hold point is re-measured at the palm. Three
ConnectedPainBox tests (strain shake bar, hand-in-box until the break, the
recorded replay) are red here and move with the next commit.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A lerp need not land on a nonzero target (0.8 + (0.15 - 0.8) is not 0.15), so the last tick,
which is also the takeover tick of a zero-length ramp, assigns the target itself. Brain, Actor and
lodur-target.md say a gain change reaches Load one tick after the Actor sets it. A huge finite
EntrySeconds is pinned as an unending ramp.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
GoalSpec.EntryArousal (double?, in [0,1]) and GoalSpec.EntrySeconds (finite, not negative, default 0,
rounded to ticks once like the onset). On takeover the Actor records the arousal and gain, and for
the ramp's ticks, after the drive steps, sets them to start + (target - start) x k / ticks (1 when
ticks is 0), so calm's stress bar and flinch drive tail off rather than cut; after it the drive owns
arousal again. EntryResolve stays a snap; the Start goal's targets apply at construction.
lodur:ruling:flinch-tail-after-stimulus
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
GoalSpec.SensoryGain (default 1, in [0,1]) is held in DriveState.SensoryGain, written only by the
Actor at takeover (at construction for the Start goal) and handed to Perception.Sense. The gain
multiplies each channel's afferent as it leaves the conduction ring, so sensitisation still follows
the world; Load is built from the gated afferents; ChannelStimulus stays the world's; the
nociceptive region afferents, the withdrawal reflex and its flinch are not gated.
lodur:ruling:stress-bar-shows-arousal-calm-silences
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A case whose quotient sits just under an integer (0.29 s at dt 0.01 is
28.999999999999996 ticks) kills Round -> Floor. An onset whose tick count is
past the long range, +infinity included, is now one guard (>= long.MaxValue)
rather than a cast that is undefined across runtimes and could go negative on
one that wraps; huge finite onsets (1e300, 1e19) are tested.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A rage with EntryResolve 1 and Effort drains the will it was given (resolve
below 0.3 after the onset), and a calm/rage pair entered twice sets resolve to
the entry value twice and not again inside the goal. Mutants: Enter applied
every tick instead of on the takeover (2 tests fail); mend made strict in
Enter and in Step (1 test fails each). A goal with EntryResolve equal to
WillMendsAt mends; recovery landing exactly on WillMendsAt mends on that tick.
Addresses findings entry-once-unpinned and mend-boundary-unpinned.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Attention and Consciousness get internal setters, Actor.SetWillSlots and an
InternalsVisibleTo for Lodur.Core.Tests; nothing public changes and the slots
still start at 1. Tests assert Will = min(resolve x attention, consciousness)
and that reflex suppression, the flinch gate and the voluntary weight each
move when a slot drops with resolve full. Each of six mutants (reflex, weight
or gate reading Resolve; Will as Resolve, without Attention, without the
Consciousness cap) fails the suite. Addresses finding will-slots-unpinned.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A puppet started in rage (Start = a goal with EntryResolve) began at resolve
1.0 because only goal changes applied the entry effect. The pain-box golden
and the seed-1 body hashes are unchanged (no fixture Start goal carries an
entry resolve). Addresses finding start-goal-entry-ignored.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Compared as (tick - goalSince) x dt >= seconds in floating point, an onset of
1.85 s at dt 1/120 lasted 223 ticks, not 222. It is now precomputed per goal
beside the dwell and compared as integers (+infinity stays involuntary
throughout); effort and weight read the same count. Addresses finding
onset-boundary-float.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A NaN or negative rate (a NaN DrainTrait made Resolve NaN and Tick threw from
PoseBehaviour.Write after the drive had half-stepped) is now a construction
error. DriveParameters.Validate owns the checks, WillMendsAt and WillCurve
included. Addresses finding nan-drive-throws-after-step.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Layer 3 (Breaks, WillMendsAt, Will with its Attention and Consciousness
slots) and layer 4 (EntryResolve, Effort, InvoluntarySeconds, the strength
rule) in docs/lodur-target.md, and the README's one sentence.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A goal that is voluntary (past its InvoluntarySeconds) writes each muscle at
HoldStrength x min(1, Will^WillCurve + leak x FlinchGain); an involuntary one
writes HoldStrength. PoseBehaviour.Write takes the weight first and throws
outside [0, 1]; targets (Blend) are unchanged. DriveParameters.WillCurve
(default 0.25) is validated in the Actor constructor.
Body tests re-pinned, with the reason:
- seed-1 replay: break tick 1770, switch tick 1782 and 16 flinches are
unchanged; the arm's track and world hash moved (hand e283e3615b6b2cbc ->
a0fafe85c80e98f7, world cd1902f3dd65af64 -> 83155f2abf0e7e91) because the
hold now weakens as resolve falls. Renamed from "pre_brain_base".
- "the movement is the leak": a leak-free arm now also sags as the will
fails, and loses the last flinch (1750 ms) because it leaves the box sooner.
The leak is isolated with WillCurve 0.001 (weight ~1), the claim unchanged;
a new test pins the sag itself.
The golden table is untouched.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>