| GameCult/Lodur | `1491bed` (read), main now `a048827` | rung 3 sensory load merged to main during this pass (a048827); Lodur anchors below are at 1491bed and move with it |
| GameCult/BadDaySimulator | `a218c55` (main) | |
| Godot client | none | a parallel Imagination maps `client-ready-sim`, `godot-client-v1`; not admitted at 5566 |
In-flight specs this map sequences around (no report unless noted): `rung3-sensory-load` (merged), `rung3-office-stress`, `rung4-goal-flip`, `rung4-office-flip`.
## Body facts (probes)
All probes 2026-11-20, read-only on `F:\Projects`; the C probe is
`scratchpad/imag-mvp/probe/probe.c`, built with StrawberryPerl gcc 13.2
9.**BDS today.** Headless and body pain box only (`src/BadDay.Ymir/BodyPainBox.cs`); the world is built per run
with capacity 15 (58); the puppet is welded to a stool because the PD ragdoll cannot balance for 15 s (59-62).
No session type survives beyond a run, no commands, no level content.
10.**Godot today.** Nothing; no repo under `F:\Projects` matches.
## The systems, by owner
`exists` cites base code; `new` is MVP work and names the cut that builds it (cut order below).
### Ymir (physics facts and actuators; decides nothing about bodies' meaning)
| System | State | Cut |
|---|---|---|
| Contact facts: begin/end/hit per step with stable ids, lanes, point, normal, approach speed, material ids; per-body contact force lane | new; planar session precedent `ymir_box3d.c:694-830` | `ymir-contact-facts` |
| Material id per body (u64, the game's), carried on hit facts | new; Box3D `userMaterialId` on hits (types.h:1131-1161) | `ymir-contact-facts` |
| Raycast (closest hit: lane, stable id, point, normal, fraction) for picking and hitscan | new | `ymir-grab-anchor` |
| Grab anchor: shapeless kinematic body moved by target transform; motor joint (linear/angular spring, max force) | new; probe 6 | `ymir-grab-anchor` |
| Runtime removal of bodies and joints; tombstoned lanes; reuse after a step; removal facts (incl. joints that die with a body); end-touch attribution for dead shapes | new; probe 4 | `ymir-break-and-remove` |
| Placeable joint kinds for building (motor-driven revolute, prismatic, distance/rope, spring) | new | follow-up `ymir-joint-kinds` |
| More shapes (hulls, compounds) for authored props | new | follow-up `ymir-shapes` |
### Lodur (general character middleware; no gore)
| System | Layer | State | Cut |
|---|---|---|---|
| Part tree: the body plan as content (parts, parent, side, max HP, coverage, vital flags, muscles, Ymir lane binding) | 3 data + 5 binding | new; today `Limb`/`Muscle` enums | `lodur-physiology` |
| Reflexes: withdrawal (exists), startle on sensory and touch onsets, flinch-from-touch, brace on impact | 2 | withdrawal exists `WithdrawalReflex.cs`; rest new | `lodur-startle-attention`, `lodur-reflex-set` |
| Physiology as drive state: per-part HP and injuries, body blood fraction, bleeding, pain sum, shock, consciousness, capacities scaling muscle strength, death | 3 | new | `lodur-physiology` |
| Will economy: resolve (exists) times attention (new, startle drains it) is the budget every voluntary layer draws on; reflexes act against it | 3/4 | partial: suppression by resolve `WithdrawalReflex.cs:44` | `lodur-startle-attention`, `lodur-will-mix` |
| Voluntary motor layers: hold pose (exists as `PoseBehaviour`), clip player, IK goals (reach, look, aim), grip; mixed by will | 4 | hold exists; rest new | `lodur-will-mix`, `lodur-ik-goals`, `lodur-clips` |
| Body interface: strengths + joint targets (exists) + IK goals with weights | 5 | partial `HumanoidRagdoll.Drive` | `lodur-ik-goals` |
| Severing: physiology decides; binding removes the joint in Ymir; impairment states derived per part, mirror-symmetric | 3 decides, 5 executes | new | `lodur-sever-impair` |
| Grip: hand holds an object by a breakable weld whose threshold follows grip strength; drop on pain, overload, unconsciousness; the tool frame is an IK end effector | 4/5 | new | `lodur-grip` |
### Bad Day Simulator (content, rules, sandbox; owns the gore)
| System | State | Cut |
|---|---|---|
| Sandbox session: one deterministic world with puppets and objects; command queue (spawn, remove, grab begin/move/end, poke, cut, place joint, wire) | new; today per-run `BodyPainBox.Run` | follow-up `bds-sandbox-session` (after `client-ready-sim`) |
| Damage content: material ids to insult kinds and gains (blade Cut, bat Blunt, spike Pierce), tear from joint overload | new | follow-up `bds-damage-content` |
| Gore presentation data: blood colour, bleed particle rates by wound, decal sets, stump caps, gibs | new; waits on `bds-gore-look` | follow-up `bds-gore-content` |
| Levels and arenas as CultCache: objects, joints, stimulus volumes, emitters, triggers, signal wires; arenas are levels built with the player's commands | new | follow-up `bds-level-content` |
| Contraption logic: signals between objects (switch, timer, sensor volume, motor, emitter) ticked in the session | new | follow-up `bds-contraption-signals` |
| Guns and ballistics: hitscan by Ymir raycast, recoil impulse, damage content | new | follow-up `bds-guns` |
### Godot client
| System | State | Cut |
|---|---|---|
| Render bodies from Ymir lanes by stable id | new, mapped elsewhere | `godot-client-v1` (parallel pass) |
| Bodies added and removed at runtime from Ymir lifecycle facts | new | follow-up `godot-runtime-bodies` |
| Input to commands: ray pick, grab drag, poke, cut, place, wire | new | follow-up `godot-interaction` |
| Blood visuals from BDS gore events (particles at wounds, decals at hits, stump caps) | new | follow-up `godot-blood` |
| Building tools UI over the level commands | new | follow-up `godot-build-tools` |
## Authority map (MVP)
**Owner of each decision, one each.**
- **Whether a body or joint exists in the world:** Ymir, on command only. Ymir never removes anything on its
own; a joint over threshold is a fact, not a removal (probe 5: Box3D itself does the same).
- **What touched what this step, how hard:** Ymir's contact facts and contact-force lane. Nothing else derives
touch from geometry; the box-volume stimuli stay named game stimuli (a heat source is not a contact).
- **What damage an insult does to a part, and whether a part is severed, disabled or dead:** Lodur physiology,
from insults (part, kind, magnitude) the binding builds out of Ymir facts and the game's material table.
**The joint break threshold is no longer an owner; it is a stress sensor** whose facts become Tear insults.
- **What the body tries to do:** Lodur's will mix: voluntary layers weighted by available will, reflexes against
enum and `ReadRegions` as perception's body model (in `lodur-touch`, replaced by parts); the per-run world in
`BodyPainBox.Run` as BDS's only world (in `bds-sandbox-session`, scenario runs become sessions,
follow-up `scenario-session-unify`).
## Model page: identity, lifecycle, authority
| Kind | Named by | Lifecycle | Decides | Persisted |
|---|---|---|---|---|
| Ymir body lane | caller's `stable_id` (u64, unique among live bodies of a world) and its lane while alive | add → live → removed (tombstoned) → lane reusable after the next completed step | Ymir on command | no (the level persists what spawned it) |
| Ymir joint lane | lane while alive; caller may tag | add → live → removed by command or with its body | Ymir on command | no |
| Body part (def) | (body plan content id, part label) | authored content, immutable at runtime | content (game), schema Lodur | CultCache content |
| Body part (state) | (actor, part label) | spawned with the actor → intact → impaired/disabled → severed or dead; never resurrected in MVP (`bds-reattach`) | Lodur physiology | no in MVP (`bds-gore-look` option persist) |
| Wound (injury) | (actor, part, ordinal) | opened by an insult → bleeding → clotting (content rate) → closed; no tending in MVP | Lodur physiology | no |
| Blood (body) | (actor) scalar fraction | 1.0 at spawn, falls by bleeding, recovers only while nothing bleeds (RimWorld, `rw-blood-bleeding`) | Lodur physiology | no |
| Blood visual (pool, decal, spray) | presentation instance | emitted from wound/hit events, fades or stays per `bds-gore-look` | BDS presentation data, Godot draws | no (question) |
| Severed part | the stable ids of its bodies (they survive; only the joint goes) | severed → loose physics prop owned by the session, grabbable, removable by the player | physiology severs; session owns the prop after | no |
| Grab | (session, pointer) handle; anchor's stable id | begin on ray pick → target moved per tick → end on release, or ends when its body is removed (Ymir removal fact) | BDS session | no |
| Impairment state | (actor, limb slot, side) | derived each tick from part states; closed set `Intact, Impaired, Disabled, Severed` per limb slot, mirror-symmetric | derived (physiology) | no |
| IK goal | (actor, chain) for chain in the closed set `ArmL, ArmR, LegL, LegR, Look, Aim` | written every tick by a voluntary layer, weighted by will, consumed by the binding's solver | Lodur will mix | no |
| Held object (grip) | (actor, hand side) → object stable id | grip begins on behaviour or level content → weld joint with threshold = grip strength → released by behaviour, reflex, unconsciousness or overload | Lodur grip state; Ymir weld executes | level may author "starts holding X" (content) |
| Level / arena | content id | authored with player tools, saved, loaded by replaying commands | BDS | CultCache |
| Contact / hit / overload / removal fact | (step, ordinal) | one step | Ymir | no |
| Attention | (actor) scalar | 1.0; startle drops it, recovers in under a second | Lodur drive | no |
## Questions for the operator and Deru (one batch; admitted as `question`s)
1.`bds-gore-look`: what gore looks like and whether it stays. Options: stylised (bright blood, decals and
spurts, capped stumps, no viscera), realistic (wound textures, exposed bone, gibs), stylised with a content
slider. Recommend stylised default with presentation data shaped to take a realism slider later; blood
visuals fade per session and are never saved in levels. Grounds: People Playground reads clearly with
stylised blood (`mvp-prior-art.pp-physiology`); the sim (wounds, blood fraction) is the same for every
option, so only BDS content and Godot change.
2.`bds-death`: what kills a puppet and what death looks like. Options: RimWorld rules (consciousness 0,
blood loss 100%, lethal part destroyed: head, neck, torso, heart), then limp and permanent until reset;
People Playground rules (no hard line; integrity and oxygen fade, revivable by an item); no death in the
MVP (unconscious only). Recommend RimWorld rules with a session reset, revival items later
| - | `rung3-sensory-load` Soul, `rung4-goal-flip`, `rung3-office-stress`, `rung4-office-flip` | Lodur/BDS | in flight | as admitted | - |
| - | `client-ready-sim`, `godot-client-v1` | BDS/Godot | parallel pass | its own | - |
| 3 | `lodur-startle-attention` | Lodur | startle reflex on onsets; attention scales will | rung4-goal-flip | M |
| 4 | `lodur-physiology` | Lodur | part tree content, HP, wounds, blood, pain, shock, consciousness, capacities, death | 3 | L (split core/binding if over budget) |
| 5 | `lodur-touch` | Lodur | per-part touch from contact facts, external-joint pull; insults from material table | 1, 2, 4 | M |