Commit graph

156 commits

Author SHA1 Message Date
Meta Vens
20bbe616ca Lodur tests: the dead-flow Actor test gets an airway so its zero checks bite
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 01:08:12 +01:00
Meta Vens
f3d7dd34ff Lodur tests: the allocation test measures in an AggressiveOptimization helper; TieredPGO is back on for the core tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 01:04:54 +01:00
Meta Vens
c324570dbd Actor.Tick steps a dead physiology so its flows read zero; allocation tests run with TieredPGO off; Nose comment
A dead physiology's Step zeroes Bleed, AirwayBleed, Coughed, Drained, DrawnLive and
DrawnPooled, but the Actor skipped it, so the flows stood at the dying step's values
for every tick after. The Actor now steps it; the drive is still written only on
ticks the physiology was alive at entry. Folds vessel-sites-s2-lows: the Core tests
run with TieredPGO off (the instrumented tier allocates when the background tier-up
lands), and the Nose pin comment reads 20.8 degrees plus 1.11 per mm.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 23:12:45 +01:00
Meta Vens
192fc1582c Soul s1 fixes: Coughed is capped at removed so Drained is never negative; Reach has one gate; the vessel fixture is the spec's clutch; bounds at the rule's midpoints
Drained read -5e-23 at a cough of 0.3 (removed x cough / total can exceed removed by an ulp), which BDS refuses: cap Coughed at removed, with a sweep over cough rates and drains pinning every airway flow at or above 0. Reach gates every tissue by the shells listed before it (the unsited total pre-loop was a dead second authority). The vessel fixture clutches at hold 0.8, priority 3 (the probe's), blood-loss bound re-derived 0.5443; the cough test now fails cough 2.0 (quarter-time bound); death, occlusion and coughed bounds at their geometric midpoints; the Nose pin says why its separation is 1.20.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 20:13:58 +01:00
Meta Vens
5a43458689 Major vessels are sited tissues among the shells: carotids at the side of the neck, femoral at the inner thigh
Reach gates a sited tissue by the shells listed before it (stack order is depth order); an unsited core keeps the total, and the validator refuses a shell only after an unsited core. Every shipped sited core follows all its shells, so its reach is unchanged (831,060-case sweep: only the Femoral differs).
Content: VesselV 3.5, CarotidLeft/Right on the head, Femoral on each thigh; LarynxV 1.0 -> 0.7 and the airway's cough 2.0 -> 0.3 so the front of the throat drowns him before it bleeds him out.
Pins: the vessel and throat bands on a real Actor at severity 20 and gain 10, the cough bound re-derived, and LowestHysteresis pinned by its own margin (1 mm and 10 mm fail).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 19:05:27 +01:00
Meta Vens
15c955bda7 LowestOpening holds its answer through a 5 mm margin (face down it no longer swaps nose and mouth at -5.8 degrees of pitch); pin TakeDrawn's guard and LowestOpening's first-on-a-tie rule
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 06:42:42 +01:00
Meta Vens
a1028222d3 Ragdoll keeps its airway sensor handles: TakeDrawn splits a breath's pooled draw by each opening's reading and LowestOpening names where liquid leaves
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 06:31:41 +01:00
Meta Vens
ab6e07cd90 Pin the dry-sample guard, DrawnLive zeroed after death, and the dying step into a full airway
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 04:52:17 +01:00
Meta Vens
5a91ad60b9 Physiology reports what each breath drew into the airway, live and pooled, in world m^3
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 04:43:20 +01:00
Meta Vens
a0c46a0011 Pin the site surface's strictness, the point check on every axis, and the Trachea and KidneyLeft sites
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 04:16:09 +01:00
Meta Vens
22e753617c A wound reaches the tissues under its point: PartTissuesDef.Reach by shell depth and core sites
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 04:00:58 +01:00
Meta Vens
5eb97dc5d0 Pin the gain applied once and the exact-zero spill of a draw into a full airway
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 03:42:44 +01:00
Meta Vens
1fe6606fa8 Airway tissue bleeds into the airway at the caller's blood gain; a full airway spills through the mouth
TissueDef.AirwayShare splits each wound's bleed into Bleed (surface) and AirwayBleed (airway). Physiology takes bloodGain (default 1). Bleeding runs before the airway; a breath draws only into the room left; the dying step reports its flows and the next step zeroes them. Larynx and Trachea tissues added; lungs share 0.5.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 03:28:04 +01:00
Meta Vens
47605e1e68 bds-mvp-map: airway internal bleed (gain owner, conservation, drown-vs-bleed-out timing)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:20:29 +01:00
Meta Vens
cb20b37717 bds-mvp-map: wound blood probe facts (bleed rate, settle cost, slot reuse)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:52:32 +01:00
Meta Vens
23591429e2 Only a touch outside a joint's subtree supports it: each body's weight is carried from the common ancestor of it and what it touches
Ragdoll.Drive deposits each body's weight at the lowest common ancestor of it and every
body it touches in this ragdoll (a touch outside the ragdoll deposits nowhere), reading
Facts.Touching, and throws when the world dropped touching pairs. The ContactCount gate
is deleted (ruling gravity-support-subtree-external). Hold pose -0.68, -0.25, box half
0.155, bounds re-derived by the margin rule, replay golden re-recorded.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 17:43:32 +01:00
Meta Vens
002f6f6165 Every muscle carries its unsupported subtree's weight times its strength; the pain-box hold is re-solved into the box
Drive adds a gravity feedforward to the PD term (ruling gravity-feedforward-all-muscles):
per joint, minus the gravity torque of the child's subtree about the joint origin, times
the strength, kept to the joint-frame axes the muscle has gains for. Mass, ContactCount,
JointOrigin and Gravity are read from Ymir; a body in contact carries no load (ruling
gravity-feedforward-count-gate); a zero-gravity world skips it. Core is untouched.

Re-derived by their rules, with base values kept in the comments: the hold pose (-0.70,
-0.36), BoxHalf 0.145, the replay golden, the wrist cone overshoot bound, the gravity reach
and ward bounds (now claimed), the hinge test. New pins: zero-gravity hashes, half-strength
sag, the feedforward about a hinge's axis only, the settled palm on the box centre.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 17:15:54 +01:00
Meta Vens
93e85a5a33 Record the zero-gravity readings before the gravity feedforward: the 2 s ragdoll hashes and the reach hashes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 17:15:54 +01:00
Meta Vens
f959226bb3 Map: subtree-external gravity support (facts 32-34, cut-order row 3d)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 07:35:41 +01:00
Meta Vens
e47e3d30ce Map: the frustration bar does not lift on changed facts (ruling frustration-lifts-without-fact-changes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 05:27:23 +01:00
Meta Vens
a1564bbb55 Frustration bar: a changed fact no longer lifts it; it ends on target forgotten or RetrySeconds, or the pair planning (ruling lodur:ruling:frustration-lifts-without-fact-changes)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 05:27:14 +01:00
Meta Vens
2081373fa7 Brain.Validate: RetrySeconds must be positive; a bar that lifts the next tick is no bar
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 05:27:14 +01:00
Meta Vens
425fbd285e Planner frustration: a futile direct try is barred after FrustrationSeconds, reported as Frustrated, and decided again past the dwell; the bar lifts on a change or after RetrySeconds
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 05:27:14 +01:00
Meta Vens
52c89b4e81 Airway tests: the drain ramp is pinned, the side and upright bounds are re-derived by measurement
The_drain_is_linear_in_drop_up_to_DrainDrop reads the drained share at drop 0, 0.0125, 0.025, 0.05, 0.1 (0, 1/4, 1/2, 1, 1); the binary-drain and
doubled-slope mutants now die. SideDropBound 0.0036 -> 0.0110 m (shipped worst 0.01323, least claimed mutant 0.00914) and UprightBound -0.0206 -> -0.0408 m
(shipped 0.04615, least claimed 0.03615) from the measured readings of Soul's 19 mutants, geometric midpoints, separation 1.45 and 1.28.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 05:22:54 +01:00
Meta Vens
b725a975a3 Physiology: Afflict over a span of layers is all or none; the single-layer call is its one-layer case
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 05:08:52 +01:00
Meta Vens
1986520bec Planner select: the commit tick checks the plan, an exhausted replan keeps the plan in force, one buffer for the pending plan, a Self goal's plan shared after the budget is gone, carried paths pinned, crowd rate as a margin
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:43:53 +01:00
Meta Vens
e94fc96680 Tests: the pending plan is the plan in force on the commit tick
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:25:59 +01:00
Meta Vens
7be39b2b41 Docs: deepening and the decision's plan (fact 31 measured, target shape, rationale); a crowded-room allocation test
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:22:58 +01:00
Meta Vens
8cfd4d743d The plan is the decision's: made by the Select that chose or re-chose the pair, carried with it, checked on carried ticks; the per-tick Derive is deleted
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:22:06 +01:00
Meta Vens
f2669847fe Select: pass 2 deepens across the want pairs (round k asks for exactly k steps, a bound per pair), so short plans are found first and one dead end cannot starve the budget
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:21:57 +01:00
Meta Vens
237f3346aa Planner.Plan: a first depth, so a call can search for a plan of exactly k steps
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:21:57 +01:00
Meta Vens
861b4cb270 Docs: the planner gate as built, cut order row 2c, fact 28 (crowded room and cost measured)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:21:57 +01:00
Meta Vens
f073350e6d Tests: Soul's planner-move probes as tests (wide and deep fuzz against a forward oracle, budget boundary, reach radii, non-moves, determinism and allocation)
Folds lodur:follow_up:planner-moves-s1-lows: the deep generator makes plans of 3 to 5 steps through several movers, with asserted counts; a gives-then-move oracle is told apart from the move-then-gives one.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:21:57 +01:00
Meta Vens
dedd232d7b Select: wants on goals, the planner gate (satisfied not offered, planned scored by length, unplanned tried direct), one think budget per Select, the plan on the Actor
A GoalSpec.Want and a PlanSteps consideration; Brain.PlanDepth, DirectDiscount, ThinkBudget, ReachMeters; a Deliberation per Actor owning the planner, the want-pair heap and the budget; Select with no pair lets go of the target (stale-target-without-pair); Actor.PlanLength and PlanStep derived each tick.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:21:57 +01:00
Meta Vens
412aa50b05 SeatedOrientTests: NearWardBound at the geometric midpoint its comment states, sqrt(4.34 x 7.65) = 5.76 cm
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:18:45 +01:00
Meta Vens
5657766f2e Map: the hand-off slew bounds the arm layer's contribution under a constant base, not a goal switch
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:17:21 +01:00
Meta Vens
c846e216ed Seated ward bounds at the geometric midpoint of shipped and the least claimed mutant
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:17:21 +01:00
Meta Vens
f46f0a5b13 Pin the hand path's shape and state: segment hand-off, re-engage from releasing, Restart keeping the swivel, the quintic, the blocked radius
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:17:20 +01:00
Meta Vens
811bac5d8f Arms reach across the body through a clearance via point, and the arm hand-off is slewed both ways
ArmChain owns the arm's whole motion across ticks. Drive and Release replace
the Toward blends in OrientRig.Drive: an engaging arm slews from the base pose,
a released arm slews back and then writes the base untouched, and Compose runs
on every tick of an Actor with a rig. A reach the trunk blocks (decided once per
path start) follows a minimum-jerk hand path through a via point ahead of the
trunk; any other reach solves directly, slewed. Actor commits restart the path.
FarArmWedgedFloor is retired for FarArmBound; the ward bounds are re-derived.
Slew renormalisation and sign-flip are pinned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 04:15:02 +01:00
Meta Vens
2cc6099570 Airway drain follows the drop of each opening's rim below the deepest airway sump; the facing cosine and DrainFacingStart are deleted
ReadAirway writes per opening how far its lowest rim point lies below the deepest BodyPlan.AirwaySumps point along gravity; AirwaySample.Drop and
AirwayDef.DrainDrop replace Facing and DrainFacingStart. A side-lying body now drains and an upright one does not; the humanoid pose path is pinned by
creation-pose, rotated-head, side-lying fall, welded-stool and seated-fall tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 03:58:30 +01:00
Meta Vens
66d96ac3eb ReadAirway also writes each opening's facing against the caller's down, from the body's pose; the two-span form is deleted
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 03:58:30 +01:00
Meta Vens
ba35236726 Map: gravity feedforward on supported bodies, pain-box hold re-solved, what moves (facts 28-30)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:39:25 +01:00
Meta Vens
fa3c50b9d2 Map: the planner move rule replaces the reach-optimism sentence
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 03:38:05 +01:00
Meta Vens
df92dce668 Planner: a step that gives its This reach is a move; other things are in reach after it only if near it
Regress refuses a move that leaves a needed reach literal wrong and meets the ones it makes right; Meets broadens a reach literal to every This near its thing. The forward oracle applies the same rule from three x positions; reach literals are drawn more often so the rule changes 69 of 4000 worlds. A verb that also gives reach to a Tool keeps that give: gives stand over the derived reach.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 03:38:05 +01:00
Meta Vens
6f6bfe91a9 Planner: a budget per Plan call and LastExhausted
Plan takes the most groundings the call may regress (default NodeBudget, at least 1); Search, Try and the depth loop compare against it, and LastExhausted says a -1 was a spent budget, not an absent plan.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 03:38:05 +01:00
Meta Vens
06d20596a7 Map: reach path and gravity feedforward facts 23-27 (cited as 19-23 in their records), half-turn line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:09:58 +01:00
Meta Vens
33a01ec9bb Map: planner moves and select (body facts 19-22, per-decision think budget)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:07:58 +01:00
Meta Vens
77d00d326f Arm IK targets slew at MaxAngularRate; the singular-band clamp rule is deleted
Per ruling lodur:ruling:ik-output-slew-limit (superseding
lodur:ruling:ik-clamp-singular-uses-previous): each solve moves the returned
shoulder target (by rotation angle) and elbow flex toward the solved ones by
at most MaxAngularRate * tick (placeholder 10 rad/s, near human peak arm
speed). SingularBand, the held swing direction, Split and SwingDirection are
gone; the clamp is the stateless swing-twist clamp again. Swivel temporal
coherence (held swivel, BasinMargin, SwivelRate) is unchanged. Reset, and
Actor.ResetArms through it, also snaps the slew: the next solve returns the
solution unslewed.

Tests: per-tick bound StepBound = rate * Dt + 1e-5 on both targets over the
tie lines, the 81 random jumps, 20 cm walks through the half-turn band, edge
crossings, full circles about the shoulder, and leaps; leaps settle on a
fresh chain's solution (by tick 38 of 200) and two chains agree bit for bit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:34:40 +01:00
Meta Vens
c05710c752 Arm IK clamp holds the previous swing direction near a half-turn swing; Actor.ResetArms
The swing-twist split in the clamp is singular at a half-turn swing, where the
swing direction turns up to a half turn for a small change in the target. Within
SingularBand (placeholder 0.25 rad) of it the clamp keeps the previous tick's
swing direction, blended from the fresh one across the band's width again, and
reads the twist against that direction (ruling
lodur:ruling:ik-clamp-singular-uses-previous). The first solve after
construction or Reset clamps along the fresh direction.

The random-jump test no longer excludes the 20 half-turn cases: all 81 stay
under the 0.129 rad per-tick bound; a tripwire keeps at least 5 in the band.

Actor.ResetArms (through OrientRig.ResetArms) resets both arm chains; tested
for both arms on each side's feasible tie.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:26:42 +01:00
Meta Vens
4bc9627354 Arm IK holds each arm's swivel across ticks, changing basin with hysteresis
Ruling lodur:ruling:ik-swivel-temporal-coherence. ArmChain is now one arm's
solver across ticks: it keeps the previous unclamped shoulder target, projects
it onto the new goal's swivel circle, stays in that swivel's basin, takes the
stateless choice only when it beats the basin by BasinMargin (less violation,
or less twist when both are feasible), and turns the swivel at most
SwivelRate * tick per solve. The first solve after construction or Reset is the
stateless rule. Both constants are placeholders. OrientRig takes the Actor's
tick and owns one chain per arm; the Actor has no reset path, so a chain resets
only at construction.

Tests: Soul's six sagittal tie lines walked as goal paths, both arms mirrored;
the random-segment stateless jumps walked across their micron gaps (jumps at a
half-turn swing, where the clamp's swing-twist split is singular, are counted
and excluded); a basin switch on the feasible tie; Reset restores the stateless
rule bit for bit. Independent-goal tests reset per goal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:14:21 +01:00