From c9b2345ebaacceb549a34c6fd96141486319fd7c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 26 Nov 2026 01:01:59 +0100 Subject: [PATCH] Docs and Core comments: fetal and stare-at-hands are data; phantom target test; no binding named in Core goal-ai-map row 4 lists look, reach, ward off and recoil as this cut's layers, fetal and stare-at-hands as data. A test runs the layers on a phantom target and a real one at one place and reads identical targets. BodyPlan and the Core project comment no longer name the Ymir binding. Finding: lodur:finding:cut-lodur-orient-goals.s1.doc-drift-and-phantom-unproven Co-Authored-By: Claude Opus 5.5 --- docs/goal-ai-map.md | 2 +- src/Lodur.Core/BodyPlan.cs | 2 +- src/Lodur.Core/Lodur.Core.csproj | 2 +- tests/Lodur.Core.Tests/OrientTests.cs | 14 ++++++++++++++ 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/goal-ai-map.md b/docs/goal-ai-map.md index eacd91f..07fef1d 100644 --- a/docs/goal-ai-map.md +++ b/docs/goal-ai-map.md @@ -234,7 +234,7 @@ one joint contest by will. Nothing in the cuts below may write a body-wide outpu | 2c | `lodur-planner-select` | Lodur | wants, Select admission, direct tries at a discount and frustration (`bds-unplannable-tries-direct`), plan on the Actor | 2b, Actor.cs cuts in flight | M | | 3 | `lodur-ik-goals` | Lodur | Look, ArmL, ArmR as a Core producer of joint targets (legs later) | none (parallel to 2) | M | | 3b | `lodur-reach-tracking` | Lodur | reach under gravity: feedforward or a damped error loop | 3 | S-M | -| 4 | `lodur-orient-goals` | Lodur + BDS | look, reach, ward off, recoil, fetal and stare-at-hands as layers; seated Fella demo | 2, 3 | M | +| 4 | `lodur-orient-goals` | Lodur + BDS | look, reach, ward off and recoil as layers; fetal (a key-pose goal) and stare-at-hands (Look and Reach on a phantom) are data; seated Fella demo | 2, 3 | M | | 5 | `lodur-phantom-percepts` + `bds-thought-bubble` | Lodur, BDS | phantom things by hallucination type; the bubble reads their kinds | 1, 4 | M, S | | 6 | `lodur-assist-pin` | Lodur | upright assist | none | S | | 7 | `lodur-stand` | Lodur + BDS | standing puppet scene, stool weld dropped | 6 | S | diff --git a/src/Lodur.Core/BodyPlan.cs b/src/Lodur.Core/BodyPlan.cs index cb55886..f05701f 100644 --- a/src/Lodur.Core/BodyPlan.cs +++ b/src/Lodur.Core/BodyPlan.cs @@ -37,7 +37,7 @@ namespace Lodur /// /// A body as data: parts, the joints that are also its tree, sense points and airway openings, each named by label and side. - /// Engine-free; a binding (Lodur.Body.Ymir) builds it into a physics world. Validated at construction. + /// Engine-free; a physics binding builds it into a world. Validated at construction. /// public sealed class BodyPlan { diff --git a/src/Lodur.Core/Lodur.Core.csproj b/src/Lodur.Core/Lodur.Core.csproj index 14fca96..bfe4eb4 100644 --- a/src/Lodur.Core/Lodur.Core.csproj +++ b/src/Lodur.Core/Lodur.Core.csproj @@ -1,6 +1,6 @@ - + netstandard2.1 12.0 diff --git a/tests/Lodur.Core.Tests/OrientTests.cs b/tests/Lodur.Core.Tests/OrientTests.cs index aea3a3b..5de221f 100644 --- a/tests/Lodur.Core.Tests/OrientTests.cs +++ b/tests/Lodur.Core.Tests/OrientTests.cs @@ -336,6 +336,20 @@ public sealed class OrientTests } } + [Fact] + public void The_layers_treat_a_phantom_target_as_they_treat_a_real_one_at_the_same_place() + { + // Stare-at-hands is Look and Reach on a phantom at the actor's own hand: the layers read the percept's place, never its id. + var b = Behaviour(new LookLayer(), new ArmLayer { Mode = ArmMode.Reach, Side = ArmSide.Both }, Recoiling()); + foreach (var parts in new[] { Rest(), Turned() }) + { + var real = Run(b, parts, At(Ahead, 1UL)); + var phantom = Run(b, parts, At(Ahead, Perception.PhantomIdBit | 1UL)); + for (var m = 0; m < Joints; m++) SameBits(real[m], phantom[m]); + Assert.NotEqual(Base(b)[Neck], phantom[Neck]); + } + } + [Fact] public void The_flinch_applies_after_the_layers_and_strength_stays_the_pose_rule() {