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>
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 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>
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>
GoalSpec.EntryResolve sets resolve on the tick the goal takes over (then the
mend check runs); Effort is resolve drained per second to sustain the goal,
paid only once it is voluntary and scaled by (1 - Pull); InvoluntarySeconds
is the onset that runs without will (+infinity throughout). Brain.Validate
refuses out-of-range values naming the goal. The pain-box fixtures mark their
release goal involuntary throughout. The behaviour weight arrives next.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolve keeps evolving through a break. A break fires on each tick resolve
reaches zero while the will is not broken (counted in Breaks); a broken will
mends when resolve climbs back to DriveParameters.WillMendsAt (default 0.25).
WillBroken is now "broken now"; DriveQuantity.Breaks is the one-way "has
broken". Will = Resolve x Attention capped by Consciousness, the two being
slots that read 1.0 until lodur-startle-attention and lodur-physiology.
Reflex suppression and the flinch gate read Will, not a WillBroken special
case. The pain-box fixtures gate their release on Breaks >= 1. The golden
table is untouched and still byte-identical.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
Layers 1-3 and a layer-4 stand-in move in from the pain box (BadDaySimulator
PainBoxSimulation.cs at 9f59764), keeping its double arithmetic and in-tick order.
Actor owns one character's nervous state and runs perception, reflex, drive, behaviour
once per tick from caller-owned spans into caller-owned spans; it allocates only in its
constructor and never touches physics. Quat gains Nlerp.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>