Docs: PhysiologyPlan owns the tissue stack material; Resolve is the one join

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-25 22:24:46 +01:00
commit e2a2fa4703
2 changed files with 9 additions and 7 deletions

View file

@ -24,10 +24,12 @@ lodur-exposed-tube-chains).
| UpperArm, LowerArm, Thigh, Shin (L, R) | yes | yes | fat, bone; vessels, tendons contained |
| Foot, Palm, Thumb, Fingers (L, R) | yes | no | bone, tendons contained |
Authority: the BodyPlan owns each part's tissue stack (layer kind, thickness, and for a sheet layer: spacing, edge and
attachment compliance, tensile strength). Lodur.Core derives the sheet geometry (rest points in the part frame, edges, bends,
joint stitches) from the part's shape and stack, deterministically, at build. Derived geometry is never stored: a stored copy
would be a cache that could disagree with the stack. The plan lives in BodyPlans.Humanoid until lodur-body-plan-cultcache.
Authority: `PhysiologyPlan.Parts` owns each part's tissue stack (`PartTissuesDef`: `TissueDef` Thickness and `SheetDef`: spacing,
edge and attachment compliance, tensile strength), joined to the `BodyPlan` only by `PhysiologyPlan.Resolve`, the one
(label, side) join. The sheet builder reads (`BodyPlan`, `PhysiologyPlan`). Lodur.Core derives the sheet geometry (rest points
in the part frame, edges, bends, joint stitches) from the part's shape and stack, deterministically, at build. Derived
geometry is never stored: a stored copy would be a cache that could disagree with the stack. The content lives in
`PhysiologyPlans.Humanoid` until lodur-body-plan-cultcache.
## Authority map
@ -125,8 +127,8 @@ bends 0.028, bodies 0.014. Those are walks over dormant lanes that active lists
5. cut-ymir-particle-pinning-dormant (ABI 18): set_pinned; dormant particles out of every substep walk through command-time
active lists and a derived solve inverse mass; pinned particles bordering live ones are kinematic per substep; wake writes
position and velocity from the anchor. After 2, 3 and 4.
6. lodur-tissue-stack (plan data and the deterministic sheet builder; can start any time).
7. lodur-body-sheets-graph (binding: build dormant, wake per part, re-pin, wounds and severs as commands), after lodur-physiology.
6. lodur-tissue-sheet-material (stack material in PhysiologyPlan, Resolve), then lodur-sheet-builder (the deterministic sheet builder).
7. lodur-body-sheets-graph (binding: build dormant, wake per part, re-pin, wounds and severs as commands), after lodur-physiology and lodur-sheet-builder.
8. bds-flesh-render-embedding; then lodur-organ-release-rope and lodur-exposed-tube-chains.
Budget reading: at rest flesh must cost nothing per tick (P2 B, H); one hurt part costs about 0.2 ms; a whole live Fella about

View file

@ -109,7 +109,7 @@ commits a goal already writes under it.
| Drive (`DriveState`) | afferent sum, strain load, `Load`, the goal's pull and effort | pain, strain, arousal, resolve, `Breaks`, `Will` (= min(resolve x attention, consciousness)), the break and mend events | `Will` is derived and never stored; the break recurs (it mends at `WillMendsAt`) | the Brain, a session or the body writing resolve, arousal or `Will`; the one sanctioned jumps are `Enter` (a goal's entry resolve) and the Actor's entry ramp (arousal) |
| Attention slot | nothing yet: reads 1 (startle is the writer to come) | a factor of `Will` | none | anything but the startle reflex (`lodur-startle-attention`); the Actor's test seam `SetAttention` is internal |
| Consciousness slot | `Physiology.Consciousness`, written by the Actor each tick; 1 for an actor with no physiology | the cap of `Will` | derived from the physiology each tick | anything but the Actor reading its Physiology; no test seam: tests lower it through a Physiology |
| `Physiology` | its `BodyPlan` and `PhysiologyPlan` (tissue stacks by part label and side, afflictions with data effects, blood) at construction; `Afflict` (the one entry for harm); `Step(dt)` from the Actor; the slow scale at construction | capacities (`Consciousness`, `BloodPumping`), `Bleed` per part, `BloodVolume` and `BloodLoss`, `MotorCeiling` per joint, `Integrity` per tissue, `Dead`, `Cause`, `Refused` | integrity (from Injures afflictions: part HP is never stored), capacities, bleed and the ceiling, recomputed each step; death is judged once at the end of a step (vital tissue, blood loss, consciousness: `lodur:ruling:bds-death`) and is permanent | anything else writing tissue, blood or the slot; a game writing integrity, volume or severity (harm enters through `Afflict`); an effect writing state; an affliction killing by its own severity; tissue, organ or affliction labels outside content (`PhysiologyPlans`) |
| `Physiology` | its `BodyPlan` and `PhysiologyPlan` (tissue stacks, joined to the `BodyPlan` by `PhysiologyPlan.Resolve`, the one (label, side) join; a stack also carries thickness and sheet material that Physiology does not read; afflictions with data effects, blood) at construction; `Afflict` (the one entry for harm); `Step(dt)` from the Actor; the slow scale at construction | capacities (`Consciousness`, `BloodPumping`), `Bleed` per part, `BloodVolume` and `BloodLoss`, `MotorCeiling` per joint, `Integrity` per tissue, `Dead`, `Cause`, `Refused` | integrity (from Injures afflictions: part HP is never stored), capacities, bleed and the ceiling, recomputed each step; death is judged once at the end of a step (vital tissue, blood loss, consciousness: `lodur:ruling:bds-death`) and is permanent | anything else writing tissue, blood or the slot; a game writing integrity, volume or severity (harm enters through `Afflict`); an effect writing state; an affliction killing by its own severity; tissue, organ or affliction labels outside content (`PhysiologyPlans`) |
| Brain (`Brain`, `GoalSpec`) | the drive state it reads through conditions | the wanted goal; each goal's pull, priority, dwell, entry effects (`EntryResolve`, `EntryArousal`, `SensoryGain`, `EntrySeconds`), `Effort`, `InvoluntarySeconds` and behaviour | none: it is data, copied at build and read back read-only | a flip rule anywhere else (`lodur:ruling:npc-brain-authors-goals`) |
| `Actor` | all of the above, one tick | the committed goal; `DriveState.SensoryGain`; arousal during a goal's `EntrySeconds`; the events | the pending decision and its tick, the dwell, the ramp's start values, the onset in whole ticks | a consumer setting the goal or the gain from outside |
| Behaviour (`PoseBehaviour`) | the weight (the will's `Will^WillCurve` once the goal's involuntary onset is over, else 1), the leak, strain, time | strengths and targets into caller arrays: `HoldStrength x min(1, weight + leak x FlinchGain)` | none | writing a joint or a force (`body-one-interface`); any strength not under the will mix |