Commit graph Lodur/src/Lodur.Core/Perception.cs
Author SHA1 Message Date
Meta Vens
f9e302ef96 Perception: Sense refuses a gain outside [0, 1]
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 06:54:42 +01:00
Meta Vens
f2f5a10226 Perception: a goal's sensory gain gates the sense channels' afferents
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>
2026-11-20 06:11:38 +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
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
981b941e49 NerveParameters: NociceptorThreshold becomes Threshold
The record is the one transduction for every channel from the sensory-load cut on, noxious or not.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:15:32 +01:00
Meta Vens
fd7afc1174 Lodur.Core: perception, withdrawal reflex, drive and a hold-against-reflex stand-in, run by Actor
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>
2026-11-19 20:42:36 +01:00