README: the office's goals include clutch and thrash; the run-end text gives the shipped knife, the arm's 191 s and no end

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-28 01:12:35 +01:00
commit 09ebead9f0

View file

@ -80,6 +80,7 @@ Ymir 1d27114 (its `extern/box3d` submodule initialised).
dotnet build client/BadDay.Client.csproj # Lodur, Ymir (cmake) and BDS, plus ymir_box3d.dll, into client/.godot/mono/temp/bin/Debug
<godot> --path client # play: Blender's navigation: middle-drag orbits the puppet, Shift+middle-drag pans, Ctrl+middle-drag and the wheel zoom; Alt+left-drag stands for the middle button (OrbitCamera.Emulate3ButtonMouse)
<godot> --headless --path client res://tests/Smoke.tscn # the smoke; exit code 0 passes
<godot> --path client res://tests/DrownCapture.tscn -- --frames=<dir> # the throat cut, in a window: the clutch, the thrash, the sag and the limp body as PNGs and frames.tsv; exit code 0 passes
<godot> --path client res://tests/RenderCheck.tscn # the render check, in a window (not headless); exit code 0 passes; -- --frames=<dir> keeps its frames
bash client/tests/render-mutants.sh # breaks the look once per claim; each break must fail its line
```
@ -120,8 +121,8 @@ The scenarios, one owner per decision:
| Owner | Inputs | Outputs | Derived state | Forbidden writers |
|---|---|---|---|---|
| `ChamberBrain`, `OfficeBrain` | `PainBoxParameters` or `StressParameters`, the poses | a Lodur `Brain`: goals and their rules as data, and, for the chamber, the release goal's id (`withdraw`) | none; Lodur's Actor commits each switch | a session choosing a goal; a goal rule outside the Brain |
| `PainBoxSession`, `StressSession` | seed, traits, the box or the cause, the player's commands (`Silence`, box off) | the box's or the emitters' intensities each tick; rows read back from the Actor (the stress column is the drive's arousal, the goal column the Actor's goal); the end of the run | the release goal, found by id at construction (an unknown id refuses the build) | computing load, arousal, resolve or a goal; a goal index hard-coded for the release |
| `ChamberBrain`, `OfficeBrain` | `PainBoxParameters` or `StressParameters`, the poses | a Lodur `Brain`: goals and their rules as data (the office's: keep composure, rage, calm, clutch, thrash), and, for the chamber, the release goal's id (`withdraw`) | none; Lodur's Actor commits each switch | a session choosing a goal; a goal rule outside the Brain |
| `PainBoxSession`, `StressSession` | seed, traits, the box or the cause, the player's commands (`Silence`, box off) | the box's or the emitters' intensities each tick; rows read back from the Actor (the stress column is the drive's arousal, the goal column the Actor's goal); for the chamber, the end of the run | the chamber's release goal, looked up by its id at construction (an unknown id refuses the build) | computing load, arousal, resolve or a goal; for the chamber, a goal index hard-coded for the release |
| Lodur (`Actor`, the drive, the Brain) | the sessions' stimuli, the body's region points | muscle strengths and targets; the events | resolve, strain, pain, arousal, the breaks, the sensory gain in force | BDS writing any of it |
| Lodur's `Physiology` | `Afflict` calls (only from `StressSession.Wound`) and the Actor's step input | blood loss, consciousness, air hunger, death and its cause (`Died` once; a dead body is limp) | tissue integrity, bleed, the motor ceiling | a session or client deciding death, bleed or consciousness; any `Afflict` outside `StressSession.Wound` |
| `SeatedBody` | the scenario's strengths and targets each tick | the world's view, the sense points, the `BodyEvent` queue | the ragdoll and its world, built through `SeatedPuppet.Build` | any `Box3DSoaWorld` or world step in BDS outside it |
@ -201,15 +202,15 @@ the player's lever is `Silence(stressorId)`, from the current tick on. Office Fe
no pull) loops wind-up and strike with each arm at 0.25 s a key. It refills his will on entry, is involuntary for its first second
(`RageOnsetSeconds`) and then costs `RageEffort` (0.05) a second, so the rage drains the will it was given. When that will runs dry
and breaks a second time (5-20 s after the snap) `Calm` takes over: his composed pose at normal strength, involuntary since his will is spent,
terminal as data (it gates on `Breaks >= 2`, which never falls, and nothing outranks it): he throws no further fit
(ruling `lodur:ruling:fella-calm-after-rage`). The Actor commits each switch 100 ms after its break,
terminal as data among the stress goals (it gates on `Breaks >= 2`, which never falls, and only the two air-hunger goals outrank it): he throws no further fit
(ruling `lodur:ruling:fella-calm-after-rage`). Air hunger is physiology, not a fit, so it outranks calm: `Clutch` (priority 3, air hunger at `ClutchAirHunger`, 0.3 [P]; a breath tried and not got reads 0.6) puts both hands at his throat, and `Thrash` (priority 4, the same air hunger and a will that has broken now, `WillBroken`, not `Breaks`) walks four flailing keys at `ThrashKeySeconds` (0.2 s [P]). Both are involuntary throughout, since a will-weighted struggle goes limp (rulings `lodur:ruling:bds-air-hunger-clutch-then-thrash`, `lodur:ruling:bds-thrash-when-will-breaks`). A throat cut at rest clutches at once and thrashes 100 ms after the will breaks; a cut during the rage clutches first and thrashes when the rage runs dry; a Fella cut while his will is still broken (calm, resolve 0) thrashes at once. He weakens as he fades through Lodur's motor ceiling (consciousness), which scales every strength; BDS adds no goal for it. The headless office breathes freely and has neither goal. The Actor commits each switch 100 ms after its break,
the session logs a `GoalChanged` row for each. The office has no end of its own (ruling `lodur:ruling:bds-office-is-a-sandbox-preset`): the break is an event in the scene, the body goes on, and a wound may kill it in its own time; whoever steps the session stops when the player ends it (the headless run, the sweep and `OfficeBody.Run` take a horizon in seconds, the CLI's `--max`, 180 by default).
`TimeToBreakMs` is the first break, the snap; the second `WillBroke` row is the rage running dry.
The chamber's release is declared the same way (`PainBoxParameters.ReleaseGoalId`, `withdraw`), and its withdrawal is one-way: a will that mends does not give the hand back. Who has the day is a `Character` (his senses; `Character.OfficeFella`),
apart from the setting and the cause. Each scenario builds its own Brain from its own parameters; one entry point keyed by character id
waits for Brains as content. Headless the rage moves nothing; `office --body` runs it on the puppet.
On the puppet the office is `OfficeBodySession`, stepped by its caller one 1/120 s step at a time like the chamber's session (`OfficeBody.Run` records one for a horizon). It builds a `SeatedBody`, the one owner of every BDS body world, and attaches a Lodur `Physiology` to the Actor (`StressParameters.SlowScale`, default 20 [P]: ruling `lodur:ruling:bds-physiology-clock`; Acute afflictions such as a cut do not move with it). The player's harm is `Wound(part, tool)`: a `WoundTool` is a depth and a severity; the hit point in the part's frame and Lodur's `PartTissuesDef.Reach` pick the layers, and `StressSession.Wound` binds one Cut affliction on each, the only path harm takes into the body. The knife (`WoundTool.Knife`, 0.02 m at 60 [P]: skin, fat and muscle on limbs and trunk, the larynx at the front of the throat) is the click-cut's content until contacts become afflictions. Lodur decides the rest: blood loss, consciousness, air hunger and death (`lodur:ruling:bds-death`). A cut on the left lower arm bleeds the body out in about 40 s; the Actor reports `Died` once, the body goes limp (it writes no strength from then on), the session logs a `Died` row, ends the run `ReleaseSeconds` later with `Outcome.Died`, and `StressResult` carries `DiedAtMs` and `DeathCause`. An unwounded run is unchanged: nothing in it can die.
On the puppet the office is `OfficeBodySession`, stepped by its caller one 1/120 s step at a time like the chamber's session (`OfficeBody.Run` records one for a horizon). It builds a `SeatedBody`, the one owner of every BDS body world, and attaches a Lodur `Physiology` to the Actor (`StressParameters.SlowScale`, default 20 [P]: ruling `lodur:ruling:bds-physiology-clock`; Acute afflictions such as a cut do not move with it). The player's harm is `Wound(part, tool)`: a `WoundTool` is a depth and a severity; the hit point in the part's frame and Lodur's `PartTissuesDef.Reach` pick the layers, and `StressSession.Wound` binds one Cut affliction on each, the only path harm takes into the body. The knife (`WoundTool.Knife`, 0.02 m at 20 [P]: skin, fat and muscle on limbs and trunk, the larynx at the front of the throat) is the click-cut's content until contacts become afflictions. Lodur decides the rest: blood loss, consciousness, air hunger and death (`lodur:ruling:bds-death`). A cut on the left lower arm bleeds the body out in 191 s (seed 1; the carotids and the femoral artery in 29.7 s; a throat cut drowns him in his own blood in 167 s); the Actor reports `Died` once, the body goes limp (it writes no strength from then on), the session logs a `Died` row, `Outcome.Died` and `StressResult`'s `DiedAtMs` and `DeathCause` record it, and the run goes on: the session has no end. An unwounded run is unchanged: nothing in it can die.
The stress bar is his arousal, how wound up he is right now, and reads **stress (arousal)** (`StressResult.StressBarLabel`; ruling `lodur:ruling:stress-bar-shows-arousal-calm-silences`).
It rises with each stressor and falls in quiet; will is not on it. Entering calm fades his arousal and his senses' gain to nothing over `CalmFadeSeconds` (3 s, the aftershock tail of
@ -235,8 +236,8 @@ dotnet run --project src/BadDay.Cli -- office-sweep --seed 1 --count 50 --scale
Options: `--silence ID@S` (repeatable; `printer`, `ceiling-light`, `desk-phone`, `desktop-interrupt`), `--scale`
(every stressor's intensity), `--pull`, `--max`, `--every`, and `--body` (run the puppet; the summary adds the rage's
length and the strikes counted as forward hand-speed peaks). The rows are `time_ms kind audio visual interrupt
load arousal resolve stress goal`, with kinds Sample, Silenced, WillBroke, GoalChanged and Endured and goals
KeepComposure, Rage and Calm. The sweep prints the
load arousal resolve stress goal`, with kinds Sample, Silenced, WillBroke, GoalChanged and Died (`Endured` is only the outcome "the will held so far") and goals
KeepComposure, Rage, Calm, Clutch and Thrash. The sweep prints the
break-time min/median/max and the lowest resolve among runs that endured. The office breaks near 90 s at pull
0.6 only with the office's own sense nerve (threshold 0.05, no sensitisation, no conduction delay); Lodur's
`NerveParameters` defaults break it near 100 s. **Every number here is a placeholder.**