{
"note": "The golden of the three SDKs' people in a scene (scene-people.golden.json here, scene_people.json in the Python and Rust SDKs' tests): the human avatar's look, the humanoid policy and the goal, motors, assist and face commands (CommandAGI's docs/formats.md § a person in the scene). A case without says passes; a case with says is refused with those words.",
"cases": [
{ "check": "look", "value": {} },
{ "check": "look", "value": { "body": "feminine", "height_m": 1.68, "weight": 0.4, "muscle": 0.5, "proportions": 0.5, "skin": [0.8, 0.62, 0.5], "hair": [0.1, 0.07, 0.05], "top": [0.2, 0.3, 0.6], "bottom": [0.15, 0.15, 0.2], "shoes": [0.9, 0.9, 0.9], "hair_style": "ponytail", "outfit": "blouse_skirt", "footwear": "white_trainers" } },
{ "check": "look", "value": { "body": "masculine", "height_m": 2.2, "weight": 1, "hair_style": "none", "outfit": "suit_tie", "footwear": "leather_shoes" } },
{ "check": "look", "value": { "build": 1 }, "says": "look has no field build" },
{ "check": "look", "value": { "sleeves": "long" }, "says": "look has no field sleeves" },
{ "check": "look", "value": { "body": "child" }, "says": "look.body is masculine or feminine" },
{ "check": "look", "value": { "height_m": 2.3 }, "says": "look.height_m is a number from 1.2 to 2.2" },
{ "check": "look", "value": { "weight": -0.1 }, "says": "look.weight is a number from 0 to 1" },
{ "check": "look", "value": { "muscle": "average" }, "says": "look.muscle is a number from 0 to 1" },
{ "check": "look", "value": { "skin": [1, 0.5] }, "says": "look.skin is [r, g, b], sRGB from 0 to 1" },
{ "check": "look", "value": { "top": [1.2, 0, 0] }, "says": "look.top is [r, g, b], sRGB from 0 to 1" },
{ "check": "look", "value": { "hair_style": "mohawk" }, "says": "look.hair_style is one of none, afro, bob" },
{ "check": "look", "value": { "outfit": "kimono" }, "says": "look.outfit is one of tee_jeans" },
{ "check": "look", "value": { "footwear": "sandals" }, "says": "look.footwear is one of leather_shoes" },
{ "check": "look", "value": { "age_years": 25, "ethnicity": { "african": 0.6, "asian": 0, "caucasian": 0.4 } } },
{ "check": "look", "value": { "age_years": 90, "ethnicity": { "asian": 1 } } },
{ "check": "look", "value": { "age_years": 24 }, "says": "look.age_years is a number from 25 to 90" },
{ "check": "look", "value": { "age_years": 91 }, "says": "look.age_years is a number from 25 to 90" },
{ "check": "look", "value": { "age_years": "old" }, "says": "look.age_years is a number from 25 to 90" },
{ "check": "look", "value": { "ethnicity": { "african": 0, "asian": 0, "caucasian": 0 } }, "says": "look.ethnicity is { african?, asian?, caucasian? }, each a number 0 or more, not all 0" },
{ "check": "look", "value": { "ethnicity": {} }, "says": "look.ethnicity is { african?, asian?, caucasian? }, each a number 0 or more, not all 0" },
{ "check": "look", "value": { "ethnicity": { "african": -0.5, "asian": 1 } }, "says": "look.ethnicity is { african?, asian?, caucasian? }, each a number 0 or more, not all 0" },
{ "check": "look", "value": { "ethnicity": { "hispanic": 1 } }, "says": "look.ethnicity is { african?, asian?, caucasian? }, each a number 0 or more, not all 0" },
{ "check": "look", "value": { "ethnicity": [1, 0, 0] }, "says": "look.ethnicity is { african?, asian?, caucasian? }, each a number 0 or more, not all 0" },
{ "check": "look", "value": [], "says": "look is { body?, height_m?" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "walk", "route": [[0, 0], [2, 1.5]], "speed": 1.2 } },
{ "check": "goal", "value": { "verb": "goal", "unit": "g1", "do": "program", "program": { "steps": [{ "id": "reach", "dur": 1.2 }] }, "task": "carry-1" } },
{ "check": "goal", "value": { "verb": "goal", "unit": "g1", "do": "program", "program": { "steps": [] } }, "says": "goal: program is a program of steps" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "step", "to": [0.3, 0] } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "step", "to": [-0.3, 0], "heading": 1.57 } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "turn", "heading": -3.1 } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "sit", "seat": [1, 2, 0.45], "facing": 0 } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "stand", "plan": { "policy": "ana-day", "step": 3 } } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "idle", "activity": "type", "seconds": 30, "at": [1, 2.4, 0.75] } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "idle", "activity": "talk", "with": "ben" } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "reach", "at": [0.5, 0.2, 1.1], "hand": "both", "seconds": 2 } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "take", "body": "tote-1", "hands": "both", "task": "hall:12" } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "put", "at": [26.0, 22.05, 1.1] } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "put" } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "push", "body": "cart-1", "handle": [3.55, 2, 0.95] } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "jack", "body": "jack-chassis", "handle": [-0.23, -0.14, 1.12] } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "press", "at": [27.6, 12.22, 1.35] } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "inspect", "body": "pallet-b-2", "seconds": 5 } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "hand", "body": "kit-part", "to": "g1-a" } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "ride", "body": "forklift-1-chassis" } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "drive", "route": [[5.5, 17.5], [1.5, 11.3]], "speed": 2.2, "reverse": false } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "dock", "at": [5.5, 8.8], "heading": 1.5708 } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "lift", "height": 0.15, "load": "pallet-1-1" } },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "stop", "task": "hall:3" } },
{ "check": "goal", "value": { "verb": "goal", "unit": "tom", "do": "ride", "body": "tugger-1-pedal", "at": [-0.41, 0, 1.19], "standing": true } },
{ "check": "goal", "value": { "verb": "goal", "unit": "tom", "do": "get-off", "to": [7.2, 8.4] } },
{ "check": "goal", "value": { "verb": "goal", "unit": "rt", "do": "mast", "out": 0.65 } },
{ "check": "goal", "value": { "verb": "goal", "unit": "yt", "do": "couple", "body": "tr-body", "pin": [7.046, 0, -0.93], "axle": [-6.172, 0], "legs": "legs" } },
{ "check": "goal", "value": { "verb": "goal", "unit": "tg", "do": "couple", "body": "c1-drawbar", "pin": [0.17, 0, 0] } },
{ "check": "goal", "value": { "verb": "goal", "unit": "yt", "do": "uncouple" } },
{ "check": "goal", "value": { "verb": "goal", "unit": "tom", "do": "ride", "body": "tugger-1-pedal", "at": [1, 2] }, "says": "goal: ride at is [x, y, z] (metres)" },
{ "check": "goal", "value": { "verb": "goal", "unit": "tom", "do": "ride", "body": "tugger-1-pedal", "standing": "yes" }, "says": "goal: ride standing is true or false" },
{ "check": "goal", "value": { "verb": "goal", "unit": "tom", "do": "get-off" }, "says": "goal: get-off needs to [x, y] (metres)" },
{ "check": "goal", "value": { "verb": "goal", "unit": "rt", "do": "mast", "out": -0.1 }, "says": "goal: mast needs out (metres, 0 or more" },
{ "check": "goal", "value": { "verb": "goal", "unit": "yt", "do": "couple", "body": "tr-body" }, "says": "goal: couple needs a body (what it tows) and pin [x, y, z]" },
{ "check": "goal", "value": { "verb": "goal", "unit": "yt", "do": "couple", "body": "tr-body", "pin": [1, 0, 1], "axle": [1, 2, 3] }, "says": "goal: axle is [x, y] (metres" },
{ "check": "goal", "value": { "verb": "goal", "unit": "yt", "do": "couple", "body": "tr-body", "pin": [1, 0, 1], "legs": "" }, "says": "goal: legs names the towed unit's joint" },
{ "check": "goal", "value": { "verb": "goal", "unit": "yt", "do": "uncouple", "body": "tr-body" }, "says": "goal: uncouple has no field body" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "take" }, "says": "goal: take needs a body" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "take", "body": "tote-1", "hands": "three" }, "says": "goal: hands is both, left or right" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "press" }, "says": "goal: press needs at [x, y, z] (metres): the button" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "hand", "body": "kit-part" }, "says": "goal: hand needs to (the unit it hands the body to)" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "push", "body": "cart-1", "handle": [1, 2] }, "says": "goal: handle is [x, y, z] (metres)" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "drive", "route": [] }, "says": "goal: drive needs a route: 1 to 128 points [x, y] (metres)" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "dock", "at": [1, 2] }, "says": "goal: dock needs at [x, y] (metres) and heading (radians)" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "lift", "height": -0.1 }, "says": "goal: lift needs a height (metres, 0 or more)" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "drive", "route": [[0, 0]], "speed": 12 }, "says": "goal: speed is metres a second, above 0 and at most 10" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "drive", "route": [[0, 0]], "reverse": "yes" }, "says": "goal: reverse is true or false" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "stop", "task": 7 }, "says": "goal: task is a text" },
{ "check": "goal", "value": { "verb": "goal", "do": "stand" }, "says": "goal: unit is the unit it moves" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "fly" }, "says": "goal: do is one of walk, step, turn, sit, stand, idle, reach, take, put, push, jack, press, inspect, hand, ride, get-off, drive, dock, lift, mast, couple, uncouple, stop" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "walk", "route": [] }, "says": "goal: walk needs a route: 1 to 64 points [x, y] (metres)" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "walk", "route": [[0, 0, 0]] }, "says": "goal: walk needs a route" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "walk", "route": [[0, 0]], "speed": 2 }, "says": "goal: walk speed is metres a second, above 0 and at most 1.6" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "walk", "route": [[0, 0]], "speed": 0 }, "says": "goal: walk speed is metres a second" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "walk", "route": [[0, 0]], "heading": 1 }, "says": "goal: walk has no field heading (it has route, speed," },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "step" }, "says": "goal: step needs to [x, y]" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "turn" }, "says": "goal: turn needs a heading (radians about z, from +x)" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "sit", "seat": [1, 2] , "facing": 0 }, "says": "goal: sit needs a seat [x, y, z]" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "sit", "seat": [1, 2, 0.45] }, "says": "goal: sit needs a seat [x, y, z]" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "idle", "activity": "dance" }, "says": "goal: idle activity is one of type, look, still, talk" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "idle", "seconds": 0 }, "says": "goal: seconds is a positive number" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "idle", "at": [1, 2] }, "says": "goal: idle at is a point [x, y, z]" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "idle", "activity": "talk", "with": "" }, "says": "goal: idle with is the unit it talks with" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "reach" }, "says": "goal: reach needs at [x, y, z]" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "reach", "at": [0, 0, 1], "hand": "third" }, "says": "goal: reach hand is left, right or both" },
{ "check": "goal", "value": { "verb": "goal", "unit": "ana", "do": "stand", "plan": { "policy": "ana-day", "step": 1.5 } }, "says": "goal: plan is { policy, step }" },
{ "check": "humanoid", "value": { "id": "ana-day", "kind": "humanoid", "unit": "ana", "hz": 60, "lookahead": 0.5, "repeat": true, "routine": [
{ "do": "walk", "route": [[0, 0], [1, 2]], "wait": 1 }, { "do": "sit", "seat": [1, 2.4, 0.45], "facing": 1.57 }, { "do": "idle", "activity": "type", "seconds": 60 }, { "do": "stand" } ] } },
{ "check": "humanoid", "value": { "id": "ana-day", "kind": "humanoid", "unit": "ana" } },
{ "check": "humanoid", "value": { "id": "ana-day", "kind": "arm", "unit": "ana" }, "says": "policy ana-day: kind is humanoid" },
{ "check": "humanoid", "value": { "id": "ana-day", "kind": "humanoid" }, "says": "policy ana-day: unit is the robot it drives" },
{ "check": "humanoid", "value": { "id": "ana-day", "kind": "humanoid", "unit": "ana", "speed": 1 }, "says": "policy ana-day: unknown field speed" },
{ "check": "humanoid", "value": { "id": "ana-day", "kind": "humanoid", "unit": "ana", "hz": 0 }, "says": "policy ana-day: hz is a positive number" },
{ "check": "humanoid", "value": { "id": "ana-day", "kind": "humanoid", "unit": "ana", "routine": [] }, "says": "policy ana-day: routine is a list of goals" },
{ "check": "humanoid", "value": { "id": "ana-day", "kind": "humanoid", "unit": "ana", "routine": [{ "do": "stand", "wait": -1 }] }, "says": "policy ana-day: routine[0]: wait is seconds, 0 or more" },
{ "check": "humanoid", "value": { "id": "ana-day", "kind": "humanoid", "unit": "ana", "routine": [{ "do": "stand" }, { "do": "turn" }] }, "says": "policy ana-day: routine[1]: turn needs a heading" },
{ "check": "humanoid", "value": { "id": "ana-day", "kind": "humanoid", "unit": "ana", "routine": [{ "verb": "goal", "do": "stand" }] }, "says": "policy ana-day: routine[0]: stand has no field verb" },
{ "check": "humanoid", "value": { "id": "ana-day", "kind": "humanoid", "unit": "ana", "repeat": "yes" }, "says": "policy ana-day: repeat is true or false" },
{ "check": "motors", "value": { "verb": "motors", "set": { "ana-knee-l": { "target": 0.4, "stiffness": 300, "damping": 20 }, "ana-elbow-r": { "velocity": 0 } } } },
{ "check": "motors", "value": { "verb": "motors", "path": [{ "at": 0, "set": { "ana-hip-l": 0.1 } }, { "at": 0.5, "set": { "ana-hip-l": 0.6, "ana-knee-l": 0.9 } }], "since": 12.5 } },
{ "check": "motors", "value": { "verb": "motors" }, "says": "motors needs set { <constraint>: { target | velocity, stiffness?, damping? } } or path [{ at, set: { <constraint>: target } }]" },
{ "check": "motors", "value": { "verb": "motors", "set": { "ana-knee-l": { "stiffness": 300 } } }, "says": "motors set: ana-knee-l is { target | velocity, stiffness?, damping? }" },
{ "check": "motors", "value": { "verb": "motors", "set": { "ana-knee-l": { "target": "up" } } }, "says": "motors set: ana-knee-l is { target | velocity, stiffness?, damping? }" },
{ "check": "motors", "value": { "verb": "motors", "path": [{ "at": 0.5, "set": { "ana-hip-l": 0.1 } }, { "at": 0.5, "set": { "ana-hip-l": 0.2 } }] }, "says": "motors path: each point is { at (seconds from now, increasing, at most 10), set: { <constraint>: target } }" },
{ "check": "motors", "value": { "verb": "motors", "path": [{ "at": 11, "set": { "ana-hip-l": 0.1 } }] }, "says": "motors path: each point is" },
{ "check": "motors", "value": { "verb": "motors", "path": [{ "at": 1, "set": { "ana-hip-l": "far" } }] }, "says": "motors path: ana-hip-l target \"far\" is not a number" },
{ "check": "motors", "value": { "verb": "motors", "path": [{ "at": 1, "set": { "ana-hip-l": 0.1 } }], "since": "now" }, "says": "motors since is the scene time its path starts at" },
{ "check": "motors", "value": { "verb": "motors", "set": { "ana-knee-l": { "target": 0 } }, "unit": "ana" }, "says": "motors has no field unit (it has verb, set, path, since)" },
{ "check": "assist", "value": { "verb": "assist", "body": "ana-pelvis", "heading": 1.57 } },
{ "check": "assist", "value": { "verb": "assist", "body": "ana-pelvis", "heading": null } },
{ "check": "assist", "value": { "verb": "assist", "body": "ana-pelvis" }, "says": "assist needs a heading (radians) or null" },
{ "check": "assist", "value": { "verb": "assist", "heading": 0 }, "says": "assist needs a body (the body whose balance aid it turns)" },
{ "check": "assist", "value": { "verb": "assist", "body": "ana-pelvis", "heading": 0, "torque": 3 }, "says": "assist has no field torque (it has verb, body, heading)" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "set": { "jawOpen": 0.4, "mouthSmileLeft": 1, "mouthSmileRight": 1, "browInnerUp": 0 } } },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "path": [{ "at": 0, "set": { "eyeBlinkLeft": 0, "eyeBlinkRight": 0 } }, { "at": 0.1, "set": { "eyeBlinkLeft": 1, "eyeBlinkRight": 1 } }, { "at": 10, "set": { "tongueOut": 0.2 } }], "since": 12.5 } },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "set": { "browDownLeft": 0.3 }, "path": [{ "at": 1, "set": { "noseSneerRight": 0.5 } }] } },
{ "check": "face", "value": { "verb": "face", "unit": "ana" }, "says": "face needs set { <face unit>: 0 to 1 } or path [{ at, set: { <face unit>: 0 to 1 } }]" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "set": {} }, "says": "face needs set { <face unit>: 0 to 1 } or path" },
{ "check": "face", "value": { "verb": "face", "set": { "jawOpen": 1 } }, "says": "face needs a unit (the person whose face it moves)" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "set": { "smile": 1 } }, "says": "face set: smile is not one of ARKit's 52 face units" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "set": { "JawOpen": 1 } }, "says": "face set: JawOpen is not one of ARKit's 52 face units" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "set": { "jawOpen": 1.2 } }, "says": "face set: jawOpen is a number from 0 to 1" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "set": { "jawOpen": -0.1 } }, "says": "face set: jawOpen is a number from 0 to 1" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "path": [{ "at": 1, "set": { "eyeBlink": 1 } }] }, "says": "face path: eyeBlink is not one of ARKit's 52 face units" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "path": [{ "at": 1, "set": { "eyeBlinkLeft": "shut" } }] }, "says": "face path: eyeBlinkLeft is a number from 0 to 1" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "path": [{ "at": 1, "set": {} }, { "at": 1, "set": {} }] }, "says": "face path: each point is { at (seconds from now, increasing, at most 10), set: { <face unit>: 0 to 1 } }" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "path": [{ "at": 10.5, "set": { "jawOpen": 0 } }] }, "says": "face path: each point is { at" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "path": [{ "at": -1, "set": { "jawOpen": 0 } }] }, "says": "face path: each point is { at" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "set": { "jawOpen": 1 }, "since": "now" }, "says": "face since is the scene time its path starts at, not later than now" },
{ "check": "face", "value": { "verb": "face", "unit": "ana", "set": { "jawOpen": 1 }, "speed": 2 }, "says": "face has no field speed (it has verb, unit, set, path, since)" },
{ "check": "face", "value": { "verb": "motors", "unit": "ana", "set": { "jawOpen": 1 } }, "says": "face is { verb: \"face\", unit, set?, path?, since? }" }
]
}