Commit graph

63 commits

Author SHA1 Message Date
Meta Vens
fbc3501d71 Map: BodyPlan authority, derived tree, consumers, verification; drop stale 12-muscle and Region lines
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 01:12:11 +01:00
Meta Vens
28c6a0dfae Sense tolerance comment: weakest mutant reads 0.5
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 00:26:45 +01:00
Meta Vens
30aefa8da7 BodyPlan: refuse fields a shape cannot carry, drop the unreachable root clause; pin sense-point offset, box depth, rotation finiteness; docs name BodyPlan and Ragdoll
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 00:22:51 +01:00
Meta Vens
d9a721611b Ragdoll builds a BodyPlan; Limb, Muscle, Region and the hard-coded Build are deleted
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>
2026-11-25 00:03:21 +01:00
Meta Vens
f04ad22371 BodyPlan: parts, joints that are the tree, sense points by label and side; Humanoid() carries the old numbers; HumanoidRagdoll.cs renamed Ragdoll.cs (content unchanged)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 00:03:21 +01:00
Meta Vens
d7a626b20a Flail test: seeds 1-20 x three cadences, measured bars (hands 60 mm, body joints 45 mm), ruling flail-bar-honest-multiseed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 22:38:27 +01:00
Meta Vens
bf9ea69457 Hand geometry pinned by behaviour: rest curl, finger limit window, wrist and thumb cones each fail a named test, not only the replay
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 22:31:32 +01:00
Meta Vens
be7102dcaa StrainShake 0.03 -> 0.08 (3-7 cm shake at the palm), pain-box half 0.12 -> 0.125 (hand in the box until the break), measured numbers and the recorded replay re-pinned
Core golden tsv byte-identical.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:25:17 +01:00
Meta Vens
5d269eccb9 Ragdoll hands: palm, thumb and fingers per arm (19 bodies, 18 joints, appended); hand region at the palm; shoulder and elbow damping carry the hand mass
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>
2026-11-20 21:13:45 +01:00
Meta Vens
e3fb0a8582 PdMuscle: Passive damping floor (tissue viscosity); Drive no longer skips limp muscles, PdMuscle decides
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:02:00 +01:00
Meta Vens
dedf391699 Docs: who writes what per tick; the MVP map's state columns, cut order and landed state refreshed (will-mix landed before startle-attention)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:26:10 +01:00
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
378febf354 Actor: the ramp's last tick assigns the declared target; the Load lag is documented
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>
2026-11-20 06:53:37 +01:00
Meta Vens
a9136cbcdd Tests: the entry ramp's length is rounded, not floored
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 06:18:14 +01:00
Meta Vens
1e00157dfe Actor: a goal's entry arousal and sensory gain are reached over EntrySeconds
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>
2026-11-20 06:14:50 +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
e5a66bbc54 Actor: pin the onset's rounding; clamp an out-of-range onset instead of casting it
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>
2026-11-20 05:21:45 +01:00
Meta Vens
72fc3425ac Tests: an entry effect fires once per entry; the mend is inclusive in Step and Enter
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>
2026-11-20 05:04:48 +01:00
Meta Vens
f8f88f53c0 Will: a test seam lowers the Attention and Consciousness slots; tests pin every reader of Will
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>
2026-11-20 05:02:18 +01:00
Meta Vens
9c26a5509a Actor: the Start goal's entry resolve applies at construction
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>
2026-11-20 04:59:15 +01:00
Meta Vens
91a3c6ffd0 Actor: the involuntary onset is rounded to whole ticks once
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>
2026-11-20 04:58:19 +01:00
Meta Vens
c7d5fc9917 Drive: every DriveParameters value is validated at construction
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>
2026-11-20 04:56:59 +01:00
Meta Vens
7ec8d42465 Docs: the will breaks and mends, goals carry entry effects, the will mix
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>
2026-11-20 04:19:12 +01:00
Meta Vens
afb8df397a Will mix: every voluntary pose is weighted by the available will
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>
2026-11-20 04:18:55 +01:00
Meta Vens
c93bdb7e1f Brain: goals carry an entry effect, an effort and an involuntary onset
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>
2026-11-20 04:13:27 +01:00
Meta Vens
74883f85e5 Drive: the will breaks and mends as a recurring event; reflex and flinch read Will
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>
2026-11-20 04:11:51 +01:00
Meta Vens
fe8d2b3781 Docs: commitment is soft; a built Brain owns its data
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:48:04 +01:00
Meta Vens
6305bd843c Brain: soft commitment (a higher priority preempts the dwell), read-only getters, pinned dwell edges
A goal's minimum dwell now gates only decisions whose target does not strictly outrank it; a strictly
higher-priority goal preempts after the latency. GoalSpec.When, PoseBehaviour.Keys and FlinchPose read back as
read-only views (the Actor's path keeps its own arrays). Infinite dwell is refused. Tests pin the exact
boundary tick, the dwell index, the rounding rule, time-in-goal from takeover, preemption both ways and that
writing through a getter is impossible.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:48:04 +01:00
Meta Vens
d19fbc0794 Docs: name PoseBehaviour and GoalChanged; state that goal pull defaults to 0
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:48:04 +01:00
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
29f7a158b6 Docs: layer 4 is the Brain; pull and latency follow the goal
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 03:48:03 +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
58c2201a1c Target r5: narrow the SIMBICON exclusion to the upright path; stepping strategies that re-plan targets are in scope
Operator, 2026-11-20 (lodur:ruling:lodur-locomotion-rosen-style).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:15:58 +01:00
Meta Vens
5d0fec8c94 Target r4: one severance owner, will is the budget, sandbox is content; topology scope narrowed to the authored part tree; MVP map
Operator rulings lodur:ruling:bds-mvp-scope and bds-sandbox-arenas-will-economy (2026-11-20).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:52:02 +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
3579521d56 lodur-target: layers 1 and 3 name the emitters, the load and arousal
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 00:18:42 +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
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
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
7a82ce1fcf gitattributes: shell scripts keep LF on Windows checkouts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 21:12:21 +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
9c07f42545 Actor: a flinch is a suppressed-reflex leak, so none after the will breaks
Corrects the stated reason: the gate is the intended semantics, not seed 1 parity.

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
4dc827083b docs: connect-rungs map (body facts, model page, rationale, Ymir cut draft)
Imagination's map for the nervous-layers cut, committed from the scratchpad so it is
durable.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 20:49:13 +01:00