tarzelf commited on
Commit
10edc19
·
verified ·
1 Parent(s): 5d90933

Publish PiPER learned placement v0.1 evidence

Browse files
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DVIDIA contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - robotics
5
+ - imitation-learning
6
+ - simulation
7
+ ---
8
+
9
+ # PiPER block placement v0.1
10
+
11
+ A DVIDIA research artifact for learned PiPER block placement. The selected policy is a high-resolution time-conditioned RBF feedforward motion primitive (16 cubic spatial terms × 401 temporal centers, σ=0.025 s) (schema `dvidia.piper-motor-primitive/v2` in `model/model.json`). It is trained by imitation from demonstrations generated by an authored synthetic simulator teacher, using privileged simulator data. It does not establish learning from human video, camera-only control, physical robot performance, or hardware readiness.
12
+
13
+ The selected policy metadata and weights are in `model/`; the shuffled-label model is retained as a negative control. The protocol and aggregate report are included. The dataset preserves all scheduled demonstrations, earlier failed MLP candidate checkpoints and their development traces, and all confirmation attempts. Browse the [complete dataset](https://huggingface.co/datasets/Dvidia/piper-block-placement-demonstrations-v01) or open the [recorded replay viewer](https://dvidia-robot-simulation-lab.static.hf.space/learned-placement/v01/viewer/).
14
+
15
+ Selected v2 primitive inputs: reset-time object XY, one of the two known goal coordinates, and elapsed time. Live joint positions are used only by generic native joint-target caps. The selected policy does not consume TCP or contact estimates and does not learn contact feedback or recovery. The retained demonstrations and evaluation traces contain richer privileged simulator data; those records do not change this selected-policy input contract.
16
+
17
+ Confirmation encountered a serialization guard: the live configuration used tuples, while the persisted JSON representation used lists. A bounded adapter checked the exact error and the frozen bindings, then resumed scoring from each already-saved native episode tape; it did not rerun physics. The adapter source, root summary, and per-attempt recovery records are retained in `sources/piper_imitation_driver.py`, `driver-recovery.json`, and `driver-recovery/`. The published report keeps the same frozen confirmation roster and result counts, and the recovery summary records zero completed tapes reexecuted.
18
+
19
+ ## Run the policy in native simulation
20
+
21
+ Use Python 3.12 or later. This runs locally in pinned native simulation and does not connect to robot hardware.
22
+
23
+ ```sh
24
+ python -m pip install --force-reinstall "dvidia-training[arm] @ https://github.com/Dvidia-Inference/dvidia-training/releases/download/piper-imitation-v0.1/dvidia_training-0.1.0-py3-none-any.whl"
25
+ dvidia-robot-sim fetch piper --output robot-assets
26
+ wget https://huggingface.co/Dvidia/piper-block-placement-v01/resolve/main/model/model.json -O model.json
27
+ dvidia-piper-learned --model model.json --assets robot-assets --start-x 0.30 --start-y -0.03 --goal 0 --output learned-run
28
+ ```
29
+
30
+ The feedforward primitive does not learn reactive contact correction or recovery; the native servos remain authored.
31
+
32
+ Original DVIDIA artifact files are released under the MIT License. The PiPER model and other upstream components retain their own licenses.
33
+
34
+ The report declares 5 variants and 7 limitation entries. Variant results are recorded below; read the report for per-attempt outcomes.
35
+
36
+ | Variant | Successes / scheduled |
37
+ | --- | ---: |
38
+ | learned | 5 / 12 |
39
+ | teacher | 12 / 12 |
40
+ | open_jaw | 0 / 12 |
41
+ | hold | 0 / 12 |
42
+ | shuffled_labels | 0 / 12 |
43
+
44
+ ## Declared limitations
45
+
46
+ - Synthetic state/action demonstrations from an authored PiPER controller, not human video or teleoperation.
47
+ - Earlier MLP candidates used privileged simulator joint, TCP, object and contact measurements; no vision pipeline was trained. This broad report statement describes those candidates, not the selected v2 primitive input contract.
48
+ - Only starting-position interpolation for a 40 g rigid block and two trained destinations is evaluated.
49
+ - The pinned native servo and rate limiter remain authored low-level control; no teacher, phase machine or IK is called by the student.
50
+ - Uncalibrated simulated friction, contacts and actuators; no physical robot qualification or other-arm transfer.
51
+ - Compute latency excludes sensing, camera processing, communication and physical actuation; CPU/GPU minima are not certified.
52
+ - Simulation-only time-conditioned trajectory distillation from synthetic authored-controller demonstrations. Initial privileged object XY, two known goals and measured clock condition learned feed-forward references; native servos remain authored. No learned contact feedback, recovery, camera learning or physical robot qualification.
audit.json ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "dvidia.piper-imitation-audit/v1",
3
+ "report_sha256": "52ae9f37e845c0949879012fe9e5279192a543dc5f898a8a8d2fe9ab0f51d4fe",
4
+ "verified_attempts": 60,
5
+ "split_overlap": false,
6
+ "variants": {
7
+ "learned": {
8
+ "scheduled": 12,
9
+ "valid": 12,
10
+ "successes": 5,
11
+ "failures": 7,
12
+ "reasons": {
13
+ "success": 5,
14
+ "native_outcome_failed": 7
15
+ },
16
+ "descriptive_wilson_95_interval": [
17
+ 0.19326031365875665,
18
+ 0.6804886874504503
19
+ ],
20
+ "inference_compute": {
21
+ "samples": 12000,
22
+ "p50_s": 0.00014808354899287224,
23
+ "p95_s": 0.0010386524023488148,
24
+ "p99_s": 0.0032591192470863496,
25
+ "maximum_s": 0.12923712516203523
26
+ },
27
+ "control_step_compute": {
28
+ "samples": 12000,
29
+ "p50_s": 0.002158749382942915,
30
+ "p95_s": 0.014440981671214097,
31
+ "p99_s": 0.03255935212131595,
32
+ "maximum_s": 0.5332735842093825
33
+ },
34
+ "episode_wall": {
35
+ "samples": 12,
36
+ "p50_s": 3.391443145694211,
37
+ "p95_s": 14.094288227381174,
38
+ "p99_s": 21.14088054546156,
39
+ "maximum_s": 22.90252862498164
40
+ },
41
+ "missed_20ms_compute_boundaries": 344,
42
+ "process_peak_rss_bytes": 736444416
43
+ },
44
+ "teacher": {
45
+ "scheduled": 12,
46
+ "valid": 12,
47
+ "successes": 12,
48
+ "failures": 0,
49
+ "reasons": {
50
+ "success": 12
51
+ },
52
+ "descriptive_wilson_95_interval": [
53
+ 0.7575059933447592,
54
+ 1.0
55
+ ],
56
+ "inference_compute": null,
57
+ "control_step_compute": null,
58
+ "episode_wall": null,
59
+ "missed_20ms_compute_boundaries": 0,
60
+ "process_peak_rss_bytes": null
61
+ },
62
+ "open_jaw": {
63
+ "scheduled": 12,
64
+ "valid": 12,
65
+ "successes": 0,
66
+ "failures": 12,
67
+ "reasons": {
68
+ "native_outcome_failed": 12
69
+ },
70
+ "descriptive_wilson_95_interval": [
71
+ 2.7755575615628914e-17,
72
+ 0.24249400665524085
73
+ ],
74
+ "inference_compute": {
75
+ "samples": 12000,
76
+ "p50_s": 0.00015033315867185593,
77
+ "p95_s": 0.0009418000932782869,
78
+ "p99_s": 0.0026942880265414743,
79
+ "maximum_s": 0.11845645774155855
80
+ },
81
+ "control_step_compute": {
82
+ "samples": 12000,
83
+ "p50_s": 0.0020144376903772354,
84
+ "p95_s": 0.010997645440511404,
85
+ "p99_s": 0.02192531631793827,
86
+ "maximum_s": 0.22316104173660278
87
+ },
88
+ "episode_wall": {
89
+ "samples": 12,
90
+ "p50_s": 3.6442344582173973,
91
+ "p95_s": 12.586064423085187,
92
+ "p99_s": 15.048667184752416,
93
+ "maximum_s": 15.664317875169218
94
+ },
95
+ "missed_20ms_compute_boundaries": 146,
96
+ "process_peak_rss_bytes": 736444416
97
+ },
98
+ "hold": {
99
+ "scheduled": 12,
100
+ "valid": 12,
101
+ "successes": 0,
102
+ "failures": 12,
103
+ "reasons": {
104
+ "native_outcome_failed": 12
105
+ },
106
+ "descriptive_wilson_95_interval": [
107
+ 2.7755575615628914e-17,
108
+ 0.24249400665524085
109
+ ],
110
+ "inference_compute": null,
111
+ "control_step_compute": {
112
+ "samples": 12000,
113
+ "p50_s": 0.002309792209416628,
114
+ "p95_s": 0.007684969226829707,
115
+ "p99_s": 0.01606330575887118,
116
+ "maximum_s": 0.1396929589100182
117
+ },
118
+ "episode_wall": {
119
+ "samples": 12,
120
+ "p50_s": 4.683651937171817,
121
+ "p95_s": 8.436456277081742,
122
+ "p99_s": 9.14603835550137,
123
+ "maximum_s": 9.323433875106275
124
+ },
125
+ "missed_20ms_compute_boundaries": 72,
126
+ "process_peak_rss_bytes": 736444416
127
+ },
128
+ "shuffled_labels": {
129
+ "scheduled": 12,
130
+ "valid": 12,
131
+ "successes": 0,
132
+ "failures": 12,
133
+ "reasons": {
134
+ "native_outcome_failed": 12
135
+ },
136
+ "descriptive_wilson_95_interval": [
137
+ 2.7755575615628914e-17,
138
+ 0.24249400665524085
139
+ ],
140
+ "inference_compute": {
141
+ "samples": 12000,
142
+ "p50_s": 0.0001632915809750557,
143
+ "p95_s": 0.0008990625850856295,
144
+ "p99_s": 0.0028845481341704753,
145
+ "maximum_s": 0.23349608341231942
146
+ },
147
+ "control_step_compute": {
148
+ "samples": 12000,
149
+ "p50_s": 0.0021591244731098413,
150
+ "p95_s": 0.010949680930934829,
151
+ "p99_s": 0.0288240658678115,
152
+ "maximum_s": 0.3149603339843452
153
+ },
154
+ "episode_wall": {
155
+ "samples": 12,
156
+ "p50_s": 3.6591430413536727,
157
+ "p95_s": 11.864104456477794,
158
+ "p99_s": 14.944786658366215,
159
+ "maximum_s": 15.714957208838314
160
+ },
161
+ "missed_20ms_compute_boundaries": 245,
162
+ "process_peak_rss_bytes": 736444416
163
+ }
164
+ },
165
+ "confidence_scope": "Descriptive Wilson intervals only; these twelve deterministic nearby cases are not independent draws from a real-world task distribution.",
166
+ "timing_scope": "CPU compute only; includes source-process overhead, excludes camera, transport and physical actuation. Peak RSS is cumulative process high-water mark.",
167
+ "physical_robot_ready": false
168
+ }
confirmation-opened.json ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "frozen_sha256": "8b514fa449e32e1f2da401176f9b7513d2b7b080daf9d3154fc02d8edd5073a3",
3
+ "planned_attempts": [
4
+ {
5
+ "id": "confirmation-00-goal0",
6
+ "variant": "learned",
7
+ "episode": "attempts/confirmation-00-goal0-learned.json.gz"
8
+ },
9
+ {
10
+ "id": "confirmation-00-goal0",
11
+ "variant": "teacher",
12
+ "episode": "attempts/confirmation-00-goal0-teacher.json.gz"
13
+ },
14
+ {
15
+ "id": "confirmation-00-goal0",
16
+ "variant": "open_jaw",
17
+ "episode": "attempts/confirmation-00-goal0-open_jaw.json.gz"
18
+ },
19
+ {
20
+ "id": "confirmation-00-goal0",
21
+ "variant": "hold",
22
+ "episode": "attempts/confirmation-00-goal0-hold.json.gz"
23
+ },
24
+ {
25
+ "id": "confirmation-00-goal0",
26
+ "variant": "shuffled_labels",
27
+ "episode": "attempts/confirmation-00-goal0-shuffled_labels.json.gz"
28
+ },
29
+ {
30
+ "id": "confirmation-00-goal1",
31
+ "variant": "learned",
32
+ "episode": "attempts/confirmation-00-goal1-learned.json.gz"
33
+ },
34
+ {
35
+ "id": "confirmation-00-goal1",
36
+ "variant": "teacher",
37
+ "episode": "attempts/confirmation-00-goal1-teacher.json.gz"
38
+ },
39
+ {
40
+ "id": "confirmation-00-goal1",
41
+ "variant": "open_jaw",
42
+ "episode": "attempts/confirmation-00-goal1-open_jaw.json.gz"
43
+ },
44
+ {
45
+ "id": "confirmation-00-goal1",
46
+ "variant": "hold",
47
+ "episode": "attempts/confirmation-00-goal1-hold.json.gz"
48
+ },
49
+ {
50
+ "id": "confirmation-00-goal1",
51
+ "variant": "shuffled_labels",
52
+ "episode": "attempts/confirmation-00-goal1-shuffled_labels.json.gz"
53
+ },
54
+ {
55
+ "id": "confirmation-01-goal0",
56
+ "variant": "learned",
57
+ "episode": "attempts/confirmation-01-goal0-learned.json.gz"
58
+ },
59
+ {
60
+ "id": "confirmation-01-goal0",
61
+ "variant": "teacher",
62
+ "episode": "attempts/confirmation-01-goal0-teacher.json.gz"
63
+ },
64
+ {
65
+ "id": "confirmation-01-goal0",
66
+ "variant": "open_jaw",
67
+ "episode": "attempts/confirmation-01-goal0-open_jaw.json.gz"
68
+ },
69
+ {
70
+ "id": "confirmation-01-goal0",
71
+ "variant": "hold",
72
+ "episode": "attempts/confirmation-01-goal0-hold.json.gz"
73
+ },
74
+ {
75
+ "id": "confirmation-01-goal0",
76
+ "variant": "shuffled_labels",
77
+ "episode": "attempts/confirmation-01-goal0-shuffled_labels.json.gz"
78
+ },
79
+ {
80
+ "id": "confirmation-01-goal1",
81
+ "variant": "learned",
82
+ "episode": "attempts/confirmation-01-goal1-learned.json.gz"
83
+ },
84
+ {
85
+ "id": "confirmation-01-goal1",
86
+ "variant": "teacher",
87
+ "episode": "attempts/confirmation-01-goal1-teacher.json.gz"
88
+ },
89
+ {
90
+ "id": "confirmation-01-goal1",
91
+ "variant": "open_jaw",
92
+ "episode": "attempts/confirmation-01-goal1-open_jaw.json.gz"
93
+ },
94
+ {
95
+ "id": "confirmation-01-goal1",
96
+ "variant": "hold",
97
+ "episode": "attempts/confirmation-01-goal1-hold.json.gz"
98
+ },
99
+ {
100
+ "id": "confirmation-01-goal1",
101
+ "variant": "shuffled_labels",
102
+ "episode": "attempts/confirmation-01-goal1-shuffled_labels.json.gz"
103
+ },
104
+ {
105
+ "id": "confirmation-02-goal0",
106
+ "variant": "learned",
107
+ "episode": "attempts/confirmation-02-goal0-learned.json.gz"
108
+ },
109
+ {
110
+ "id": "confirmation-02-goal0",
111
+ "variant": "teacher",
112
+ "episode": "attempts/confirmation-02-goal0-teacher.json.gz"
113
+ },
114
+ {
115
+ "id": "confirmation-02-goal0",
116
+ "variant": "open_jaw",
117
+ "episode": "attempts/confirmation-02-goal0-open_jaw.json.gz"
118
+ },
119
+ {
120
+ "id": "confirmation-02-goal0",
121
+ "variant": "hold",
122
+ "episode": "attempts/confirmation-02-goal0-hold.json.gz"
123
+ },
124
+ {
125
+ "id": "confirmation-02-goal0",
126
+ "variant": "shuffled_labels",
127
+ "episode": "attempts/confirmation-02-goal0-shuffled_labels.json.gz"
128
+ },
129
+ {
130
+ "id": "confirmation-02-goal1",
131
+ "variant": "learned",
132
+ "episode": "attempts/confirmation-02-goal1-learned.json.gz"
133
+ },
134
+ {
135
+ "id": "confirmation-02-goal1",
136
+ "variant": "teacher",
137
+ "episode": "attempts/confirmation-02-goal1-teacher.json.gz"
138
+ },
139
+ {
140
+ "id": "confirmation-02-goal1",
141
+ "variant": "open_jaw",
142
+ "episode": "attempts/confirmation-02-goal1-open_jaw.json.gz"
143
+ },
144
+ {
145
+ "id": "confirmation-02-goal1",
146
+ "variant": "hold",
147
+ "episode": "attempts/confirmation-02-goal1-hold.json.gz"
148
+ },
149
+ {
150
+ "id": "confirmation-02-goal1",
151
+ "variant": "shuffled_labels",
152
+ "episode": "attempts/confirmation-02-goal1-shuffled_labels.json.gz"
153
+ },
154
+ {
155
+ "id": "confirmation-03-goal0",
156
+ "variant": "learned",
157
+ "episode": "attempts/confirmation-03-goal0-learned.json.gz"
158
+ },
159
+ {
160
+ "id": "confirmation-03-goal0",
161
+ "variant": "teacher",
162
+ "episode": "attempts/confirmation-03-goal0-teacher.json.gz"
163
+ },
164
+ {
165
+ "id": "confirmation-03-goal0",
166
+ "variant": "open_jaw",
167
+ "episode": "attempts/confirmation-03-goal0-open_jaw.json.gz"
168
+ },
169
+ {
170
+ "id": "confirmation-03-goal0",
171
+ "variant": "hold",
172
+ "episode": "attempts/confirmation-03-goal0-hold.json.gz"
173
+ },
174
+ {
175
+ "id": "confirmation-03-goal0",
176
+ "variant": "shuffled_labels",
177
+ "episode": "attempts/confirmation-03-goal0-shuffled_labels.json.gz"
178
+ },
179
+ {
180
+ "id": "confirmation-03-goal1",
181
+ "variant": "learned",
182
+ "episode": "attempts/confirmation-03-goal1-learned.json.gz"
183
+ },
184
+ {
185
+ "id": "confirmation-03-goal1",
186
+ "variant": "teacher",
187
+ "episode": "attempts/confirmation-03-goal1-teacher.json.gz"
188
+ },
189
+ {
190
+ "id": "confirmation-03-goal1",
191
+ "variant": "open_jaw",
192
+ "episode": "attempts/confirmation-03-goal1-open_jaw.json.gz"
193
+ },
194
+ {
195
+ "id": "confirmation-03-goal1",
196
+ "variant": "hold",
197
+ "episode": "attempts/confirmation-03-goal1-hold.json.gz"
198
+ },
199
+ {
200
+ "id": "confirmation-03-goal1",
201
+ "variant": "shuffled_labels",
202
+ "episode": "attempts/confirmation-03-goal1-shuffled_labels.json.gz"
203
+ },
204
+ {
205
+ "id": "confirmation-04-goal0",
206
+ "variant": "learned",
207
+ "episode": "attempts/confirmation-04-goal0-learned.json.gz"
208
+ },
209
+ {
210
+ "id": "confirmation-04-goal0",
211
+ "variant": "teacher",
212
+ "episode": "attempts/confirmation-04-goal0-teacher.json.gz"
213
+ },
214
+ {
215
+ "id": "confirmation-04-goal0",
216
+ "variant": "open_jaw",
217
+ "episode": "attempts/confirmation-04-goal0-open_jaw.json.gz"
218
+ },
219
+ {
220
+ "id": "confirmation-04-goal0",
221
+ "variant": "hold",
222
+ "episode": "attempts/confirmation-04-goal0-hold.json.gz"
223
+ },
224
+ {
225
+ "id": "confirmation-04-goal0",
226
+ "variant": "shuffled_labels",
227
+ "episode": "attempts/confirmation-04-goal0-shuffled_labels.json.gz"
228
+ },
229
+ {
230
+ "id": "confirmation-04-goal1",
231
+ "variant": "learned",
232
+ "episode": "attempts/confirmation-04-goal1-learned.json.gz"
233
+ },
234
+ {
235
+ "id": "confirmation-04-goal1",
236
+ "variant": "teacher",
237
+ "episode": "attempts/confirmation-04-goal1-teacher.json.gz"
238
+ },
239
+ {
240
+ "id": "confirmation-04-goal1",
241
+ "variant": "open_jaw",
242
+ "episode": "attempts/confirmation-04-goal1-open_jaw.json.gz"
243
+ },
244
+ {
245
+ "id": "confirmation-04-goal1",
246
+ "variant": "hold",
247
+ "episode": "attempts/confirmation-04-goal1-hold.json.gz"
248
+ },
249
+ {
250
+ "id": "confirmation-04-goal1",
251
+ "variant": "shuffled_labels",
252
+ "episode": "attempts/confirmation-04-goal1-shuffled_labels.json.gz"
253
+ },
254
+ {
255
+ "id": "confirmation-05-goal0",
256
+ "variant": "learned",
257
+ "episode": "attempts/confirmation-05-goal0-learned.json.gz"
258
+ },
259
+ {
260
+ "id": "confirmation-05-goal0",
261
+ "variant": "teacher",
262
+ "episode": "attempts/confirmation-05-goal0-teacher.json.gz"
263
+ },
264
+ {
265
+ "id": "confirmation-05-goal0",
266
+ "variant": "open_jaw",
267
+ "episode": "attempts/confirmation-05-goal0-open_jaw.json.gz"
268
+ },
269
+ {
270
+ "id": "confirmation-05-goal0",
271
+ "variant": "hold",
272
+ "episode": "attempts/confirmation-05-goal0-hold.json.gz"
273
+ },
274
+ {
275
+ "id": "confirmation-05-goal0",
276
+ "variant": "shuffled_labels",
277
+ "episode": "attempts/confirmation-05-goal0-shuffled_labels.json.gz"
278
+ },
279
+ {
280
+ "id": "confirmation-05-goal1",
281
+ "variant": "learned",
282
+ "episode": "attempts/confirmation-05-goal1-learned.json.gz"
283
+ },
284
+ {
285
+ "id": "confirmation-05-goal1",
286
+ "variant": "teacher",
287
+ "episode": "attempts/confirmation-05-goal1-teacher.json.gz"
288
+ },
289
+ {
290
+ "id": "confirmation-05-goal1",
291
+ "variant": "open_jaw",
292
+ "episode": "attempts/confirmation-05-goal1-open_jaw.json.gz"
293
+ },
294
+ {
295
+ "id": "confirmation-05-goal1",
296
+ "variant": "hold",
297
+ "episode": "attempts/confirmation-05-goal1-hold.json.gz"
298
+ },
299
+ {
300
+ "id": "confirmation-05-goal1",
301
+ "variant": "shuffled_labels",
302
+ "episode": "attempts/confirmation-05-goal1-shuffled_labels.json.gz"
303
+ }
304
+ ],
305
+ "scheduled": 60,
306
+ "opened_at_utc": "2026-10-27T04:07:22Z"
307
+ }
driver-recovery.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "dvidia.piper-imitation-driver-recovery/v1",
3
+ "frozen_sha256": "8b514fa449e32e1f2da401176f9b7513d2b7b080daf9d3154fc02d8edd5073a3",
4
+ "adapter_sha256": "b739dc1d75ed5140b0c07fca406a15d861e00208ea58f3113641b3b7256bd699",
5
+ "serialization_guard_resumes": 60,
6
+ "completed_tapes_reexecuted": 0,
7
+ "frozen_runtime_changed": false,
8
+ "issue": "Live configuration tuples compare unequal to persisted JSON lists; resume scores the same saved tape.",
9
+ "records": [
10
+ "driver-recovery/confirmation-00-goal0-hold.json",
11
+ "driver-recovery/confirmation-00-goal0-learned.json",
12
+ "driver-recovery/confirmation-00-goal0-open_jaw.json",
13
+ "driver-recovery/confirmation-00-goal0-shuffled_labels.json",
14
+ "driver-recovery/confirmation-00-goal0-teacher.json",
15
+ "driver-recovery/confirmation-00-goal1-hold.json",
16
+ "driver-recovery/confirmation-00-goal1-learned.json",
17
+ "driver-recovery/confirmation-00-goal1-open_jaw.json",
18
+ "driver-recovery/confirmation-00-goal1-shuffled_labels.json",
19
+ "driver-recovery/confirmation-00-goal1-teacher.json",
20
+ "driver-recovery/confirmation-01-goal0-hold.json",
21
+ "driver-recovery/confirmation-01-goal0-learned.json",
22
+ "driver-recovery/confirmation-01-goal0-open_jaw.json",
23
+ "driver-recovery/confirmation-01-goal0-shuffled_labels.json",
24
+ "driver-recovery/confirmation-01-goal0-teacher.json",
25
+ "driver-recovery/confirmation-01-goal1-hold.json",
26
+ "driver-recovery/confirmation-01-goal1-learned.json",
27
+ "driver-recovery/confirmation-01-goal1-open_jaw.json",
28
+ "driver-recovery/confirmation-01-goal1-shuffled_labels.json",
29
+ "driver-recovery/confirmation-01-goal1-teacher.json",
30
+ "driver-recovery/confirmation-02-goal0-hold.json",
31
+ "driver-recovery/confirmation-02-goal0-learned.json",
32
+ "driver-recovery/confirmation-02-goal0-open_jaw.json",
33
+ "driver-recovery/confirmation-02-goal0-shuffled_labels.json",
34
+ "driver-recovery/confirmation-02-goal0-teacher.json",
35
+ "driver-recovery/confirmation-02-goal1-hold.json",
36
+ "driver-recovery/confirmation-02-goal1-learned.json",
37
+ "driver-recovery/confirmation-02-goal1-open_jaw.json",
38
+ "driver-recovery/confirmation-02-goal1-shuffled_labels.json",
39
+ "driver-recovery/confirmation-02-goal1-teacher.json",
40
+ "driver-recovery/confirmation-03-goal0-hold.json",
41
+ "driver-recovery/confirmation-03-goal0-learned.json",
42
+ "driver-recovery/confirmation-03-goal0-open_jaw.json",
43
+ "driver-recovery/confirmation-03-goal0-shuffled_labels.json",
44
+ "driver-recovery/confirmation-03-goal0-teacher.json",
45
+ "driver-recovery/confirmation-03-goal1-hold.json",
46
+ "driver-recovery/confirmation-03-goal1-learned.json",
47
+ "driver-recovery/confirmation-03-goal1-open_jaw.json",
48
+ "driver-recovery/confirmation-03-goal1-shuffled_labels.json",
49
+ "driver-recovery/confirmation-03-goal1-teacher.json",
50
+ "driver-recovery/confirmation-04-goal0-hold.json",
51
+ "driver-recovery/confirmation-04-goal0-learned.json",
52
+ "driver-recovery/confirmation-04-goal0-open_jaw.json",
53
+ "driver-recovery/confirmation-04-goal0-shuffled_labels.json",
54
+ "driver-recovery/confirmation-04-goal0-teacher.json",
55
+ "driver-recovery/confirmation-04-goal1-hold.json",
56
+ "driver-recovery/confirmation-04-goal1-learned.json",
57
+ "driver-recovery/confirmation-04-goal1-open_jaw.json",
58
+ "driver-recovery/confirmation-04-goal1-shuffled_labels.json",
59
+ "driver-recovery/confirmation-04-goal1-teacher.json",
60
+ "driver-recovery/confirmation-05-goal0-hold.json",
61
+ "driver-recovery/confirmation-05-goal0-learned.json",
62
+ "driver-recovery/confirmation-05-goal0-open_jaw.json",
63
+ "driver-recovery/confirmation-05-goal0-shuffled_labels.json",
64
+ "driver-recovery/confirmation-05-goal0-teacher.json",
65
+ "driver-recovery/confirmation-05-goal1-hold.json",
66
+ "driver-recovery/confirmation-05-goal1-learned.json",
67
+ "driver-recovery/confirmation-05-goal1-open_jaw.json",
68
+ "driver-recovery/confirmation-05-goal1-shuffled_labels.json",
69
+ "driver-recovery/confirmation-05-goal1-teacher.json"
70
+ ]
71
+ }
frozen.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "dvidia.piper-imitation-study/v1",
3
+ "model_sha256": "2976a605575d9edefb5db366e72c5e006c0ce85a5531ad3d61512436864c8ded",
4
+ "shuffled_model_sha256": "43f1b7f9cbd8e003d1bb384b8e2b24ebba99d108cacfdfc42d99475fed7fd5e2",
5
+ "dataset_sha256": "7c75d64924c261e81d0319671b0819ac3736001514f14f6a6ba755b36b1f7cbe",
6
+ "samples_sha256": "b654be09d1d375bf0eebc7e2cde6718673cdd68ed1f8117ac256ec275005f3ec",
7
+ "protocol_sha256": "a7869a80ed801ab0ee85ab699a3d6231a17f4aa70109e519e0e03129ad30969f",
8
+ "selected_name": "primitive401",
9
+ "development_successes": 1,
10
+ "development_scheduled": 8,
11
+ "selected_model_schema": "dvidia.piper-motor-primitive/v2",
12
+ "selected_feature_contract": "initial_object_xy_known_goal_elapsed_time__live_q_only_for_native_cap/v1",
13
+ "evaluated_contact_recovery": false,
14
+ "development_evaluation_sha256": "a7ca1a15b43d893ff79f5a43593d0e1366bec5dcad3a89ec949978d7e1494c89",
15
+ "runtime_sha256": {
16
+ "piper_imitation.py": "849f66512c58441a240cd20230fcc58691234ddd254c5bbcbfd76abc21b14868",
17
+ "piper_imitation_score.py": "0cd4663abfdd7f14f2f33d93e9a2bd45122b998d6160d45b8afcc880512cba2b",
18
+ "piper_imitation_benchmark.py": "0ef4649f8e84fc74166fa1acc4d7348aae885ffec238e4b4d714ccf2ca54993f",
19
+ "piper_motor_primitive.py": "02a45b88913db6f223e4d9975eac64d4942a92739c5817c6ede4cc9fa332ed1c",
20
+ "piper_task.py": "e66a44a8df4e7a8ee42e4f3866f889f8797cdfb8e2688a146e09b75d2c76664f",
21
+ "reference_task.py": "bbc768ccc202b8dd41cbd235b206e6478806ce47c1f30ae15dc662c0c1edcc3e",
22
+ "reference_sim.py": "c1201d22eb13dd07a236ee63cc4ba68e129f6067e8db61ed41af2d820eb5e3b8",
23
+ "robot_profiles.py": "fb90782a6a9979e282182118ae0e3e29d00f101255cc57378dd3f692672bb13d",
24
+ "robot_profiles.lock.json": "4b2ee2ca675aceb2f826983cb3082a3e08e9aa0ff419b23078abcff08ebcc6fe"
25
+ },
26
+ "frozen_at_utc": "2026-10-27T04:07:17Z",
27
+ "confirmation_opened": false
28
+ }
integrity.json ADDED
@@ -0,0 +1,1753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "dvidia.piper-imitation-integrity/v1",
3
+ "files": {
4
+ "attempt-scores/confirmation-00-goal0-hold.json": {
5
+ "bytes": 30175,
6
+ "sha256": "c2eb4eeec869f906e03b1c03163cec8adfa3add49b2eacb52b6e68300a112866"
7
+ },
8
+ "attempt-scores/confirmation-00-goal0-learned.json": {
9
+ "bytes": 59304,
10
+ "sha256": "e1d32cf3cb50ec3f9705a90fdbce77fc4b05ed7301cb41585d566b416f720046"
11
+ },
12
+ "attempt-scores/confirmation-00-goal0-open_jaw.json": {
13
+ "bytes": 59337,
14
+ "sha256": "34e514d858837aa33069052aa04b6d696de64d8a10d38a729ff32b6acf5c5cd1"
15
+ },
16
+ "attempt-scores/confirmation-00-goal0-shuffled_labels.json": {
17
+ "bytes": 59338,
18
+ "sha256": "3b8b360af83a1c364a48e8e5bb616c4b59c01819daa8c427fd913560b9e1b63d"
19
+ },
20
+ "attempt-scores/confirmation-00-goal0-teacher.json": {
21
+ "bytes": 1429,
22
+ "sha256": "97e3108723c8a1ca9c13c45e9378b146b2fb22e1952bb070b1fd26ee35d86507"
23
+ },
24
+ "attempt-scores/confirmation-00-goal1-hold.json": {
25
+ "bytes": 30127,
26
+ "sha256": "171f85bc548a85e8123a0bd4afec25784cb8a3cec30f1a571184ce19fb60975f"
27
+ },
28
+ "attempt-scores/confirmation-00-goal1-learned.json": {
29
+ "bytes": 59637,
30
+ "sha256": "047aaf215519097eea4c77c134d348d38174ba1e8485b88ce7eaa82e7d74922f"
31
+ },
32
+ "attempt-scores/confirmation-00-goal1-open_jaw.json": {
33
+ "bytes": 59399,
34
+ "sha256": "22b0cc0d6033ea1b442611e56785cb7daa1962505f39a90e81ca10a52242435f"
35
+ },
36
+ "attempt-scores/confirmation-00-goal1-shuffled_labels.json": {
37
+ "bytes": 59328,
38
+ "sha256": "1e6aec91d8a0e69d360dbb9d7c485eb3d6149e9053c7e01652e14d13cd49af43"
39
+ },
40
+ "attempt-scores/confirmation-00-goal1-teacher.json": {
41
+ "bytes": 1417,
42
+ "sha256": "aebb07a185c841256dc8b4b08861c3ef3bd0372d98d816bf1dbc81de1bcb6b8f"
43
+ },
44
+ "attempt-scores/confirmation-01-goal0-hold.json": {
45
+ "bytes": 29998,
46
+ "sha256": "6751f2622a35d82319cef3adb97242df7b88f7c098ad80a9e2cd87daac2d0763"
47
+ },
48
+ "attempt-scores/confirmation-01-goal0-learned.json": {
49
+ "bytes": 59396,
50
+ "sha256": "d07489c3c6c73fab0ae1a15443c0624292f5125236e39489ef5faadb8414a061"
51
+ },
52
+ "attempt-scores/confirmation-01-goal0-open_jaw.json": {
53
+ "bytes": 59407,
54
+ "sha256": "5b7d34f58a01e9e96ccec24eacbcb09dcc0a0bc140d378a3d42e6eec4e23ab89"
55
+ },
56
+ "attempt-scores/confirmation-01-goal0-shuffled_labels.json": {
57
+ "bytes": 59698,
58
+ "sha256": "b09f8dc3b0f2e66d23c1533ba240f83c821d823605288669ba08748c325689ae"
59
+ },
60
+ "attempt-scores/confirmation-01-goal0-teacher.json": {
61
+ "bytes": 1413,
62
+ "sha256": "d6b9d195bde01ac2a0dbd89fed16cff33bc20783d869dc8e8b3e3ccf720bbbda"
63
+ },
64
+ "attempt-scores/confirmation-01-goal1-hold.json": {
65
+ "bytes": 30160,
66
+ "sha256": "d8b006676629cb50ec50c47f0d6698323c2a0dfdebd6dc06a2bbd2a1c8c98bcd"
67
+ },
68
+ "attempt-scores/confirmation-01-goal1-learned.json": {
69
+ "bytes": 59735,
70
+ "sha256": "5e6d447037841baeaec87c8531327f7e08621451bdb63bdb448f57188c12b0a0"
71
+ },
72
+ "attempt-scores/confirmation-01-goal1-open_jaw.json": {
73
+ "bytes": 59548,
74
+ "sha256": "af61c02f84ac924225d0cd9b82e2e6843d6bdb61a743a21f385d8dafed84139e"
75
+ },
76
+ "attempt-scores/confirmation-01-goal1-shuffled_labels.json": {
77
+ "bytes": 59358,
78
+ "sha256": "db40ba019e4025381f17d5089a5b7787d6f114af43e9d5d9c3bbcdec364a42d0"
79
+ },
80
+ "attempt-scores/confirmation-01-goal1-teacher.json": {
81
+ "bytes": 1429,
82
+ "sha256": "041a792abba0f73d3c2a297e20304e8433b8bae0f3d4256c1e78ed33162155ab"
83
+ },
84
+ "attempt-scores/confirmation-02-goal0-hold.json": {
85
+ "bytes": 29701,
86
+ "sha256": "11b9a8f38eb4943b799893ac5fe78912b35ec934bc8ba3a5e3c7264ff0433e86"
87
+ },
88
+ "attempt-scores/confirmation-02-goal0-learned.json": {
89
+ "bytes": 59458,
90
+ "sha256": "24a06582063403b5b6c3afba6a0be64b023ee580568266395b7f8680aa0646a4"
91
+ },
92
+ "attempt-scores/confirmation-02-goal0-open_jaw.json": {
93
+ "bytes": 59276,
94
+ "sha256": "edb9f3e3078b6f7bd4c9ebc74bfbf0936b82a23779e65fb97d10a730ceb41bf3"
95
+ },
96
+ "attempt-scores/confirmation-02-goal0-shuffled_labels.json": {
97
+ "bytes": 59825,
98
+ "sha256": "df3cb5177e30dfde9cd654c7e37b62dd5219187319014e1348f70384cf7acdbc"
99
+ },
100
+ "attempt-scores/confirmation-02-goal0-teacher.json": {
101
+ "bytes": 1415,
102
+ "sha256": "e38fe4296ba7bfeef7b86ada709f7ddd1b10a8b679d823790750f9a0644e0f47"
103
+ },
104
+ "attempt-scores/confirmation-02-goal1-hold.json": {
105
+ "bytes": 30000,
106
+ "sha256": "cee274c2d9da845efdf1f52291f3fe83f7f9343c7a9a13af062c62fdbc614093"
107
+ },
108
+ "attempt-scores/confirmation-02-goal1-learned.json": {
109
+ "bytes": 59829,
110
+ "sha256": "50aa849aa5cbbb9a27fa5556b4743b3b08f17bf73dfe104c558bb616c20070c4"
111
+ },
112
+ "attempt-scores/confirmation-02-goal1-open_jaw.json": {
113
+ "bytes": 60013,
114
+ "sha256": "1c0f0e859e718365f7c67522401ef2f359d5dfc1335ef4da43ed523b2bd35a35"
115
+ },
116
+ "attempt-scores/confirmation-02-goal1-shuffled_labels.json": {
117
+ "bytes": 59782,
118
+ "sha256": "d0bf1cf514afd5472a7e70b4dbbacc26e0a152562d59b07d28c680ae4967797d"
119
+ },
120
+ "attempt-scores/confirmation-02-goal1-teacher.json": {
121
+ "bytes": 1428,
122
+ "sha256": "6b3252f4f37e3b17cd572d7c93eb0841bf96ad53294bb0dd0c11e8226f379e50"
123
+ },
124
+ "attempt-scores/confirmation-03-goal0-hold.json": {
125
+ "bytes": 29908,
126
+ "sha256": "923142b2e5e8ca624358e953813b63a30b82ebef6596009af53f27b4bbd7691b"
127
+ },
128
+ "attempt-scores/confirmation-03-goal0-learned.json": {
129
+ "bytes": 59305,
130
+ "sha256": "1dd5060bfae6fe254760f5193843a32b08e9f52e07be12fc98873db390d89a9c"
131
+ },
132
+ "attempt-scores/confirmation-03-goal0-open_jaw.json": {
133
+ "bytes": 59515,
134
+ "sha256": "9ca14c021bce36f8d33580bb0d129ba1f7fe3ec9ad6f3e555c1981b556370d86"
135
+ },
136
+ "attempt-scores/confirmation-03-goal0-shuffled_labels.json": {
137
+ "bytes": 59533,
138
+ "sha256": "bbcc3c1debe6d4f15ef9197c472e8c7add201daf5c3b9278491952eb2ae2702b"
139
+ },
140
+ "attempt-scores/confirmation-03-goal0-teacher.json": {
141
+ "bytes": 1399,
142
+ "sha256": "38705294ed6d96079079b32be05bd416afde32e0d932cc0cc1fd44cffe4e2e82"
143
+ },
144
+ "attempt-scores/confirmation-03-goal1-hold.json": {
145
+ "bytes": 29577,
146
+ "sha256": "108fb52edafdc4d3255a7ccf93a443e9f6d35c154940ad5e260b9451d54fb9bf"
147
+ },
148
+ "attempt-scores/confirmation-03-goal1-learned.json": {
149
+ "bytes": 59734,
150
+ "sha256": "2d75c0df68acb8c8a94e4dbe501e2196c1e868f3d8cec997093d6a38bec47f96"
151
+ },
152
+ "attempt-scores/confirmation-03-goal1-open_jaw.json": {
153
+ "bytes": 59616,
154
+ "sha256": "7169d3ad0d06fdc5db170c08a83a064e816652fc8920b5b38e611c7320ccb1c0"
155
+ },
156
+ "attempt-scores/confirmation-03-goal1-shuffled_labels.json": {
157
+ "bytes": 58542,
158
+ "sha256": "161d87578147c0a3c47b7058d1e09dffde504d8a7ab33b3b545b495b7c0d86ac"
159
+ },
160
+ "attempt-scores/confirmation-03-goal1-teacher.json": {
161
+ "bytes": 1429,
162
+ "sha256": "76094f7227e9a66d75405294ad07a47d4da38608d35dfef07a704db065b31d57"
163
+ },
164
+ "attempt-scores/confirmation-04-goal0-hold.json": {
165
+ "bytes": 29725,
166
+ "sha256": "3e4176c5c8d043d661fc4eb208821645318a3b816ce36659662244f645ff0fd2"
167
+ },
168
+ "attempt-scores/confirmation-04-goal0-learned.json": {
169
+ "bytes": 58092,
170
+ "sha256": "a2661511c8f22b77bef768e0bf6a1ccd81e0a68d3d5d9fcde34e999d7335ae08"
171
+ },
172
+ "attempt-scores/confirmation-04-goal0-open_jaw.json": {
173
+ "bytes": 58404,
174
+ "sha256": "13906c15dc2ca8c3b41b469aa74c8de2f693265fbfb27c56c53ead986ae79e90"
175
+ },
176
+ "attempt-scores/confirmation-04-goal0-shuffled_labels.json": {
177
+ "bytes": 59783,
178
+ "sha256": "28680757d45ac7255b4653e49ed7698bc64b99dc5e954247e5dc2a284d8e6add"
179
+ },
180
+ "attempt-scores/confirmation-04-goal0-teacher.json": {
181
+ "bytes": 1430,
182
+ "sha256": "e4cb1414bb8b2d59699f7a6aecdbd97898a4ef49234e958b459c2d9356aeff5e"
183
+ },
184
+ "attempt-scores/confirmation-04-goal1-hold.json": {
185
+ "bytes": 29737,
186
+ "sha256": "115cf98b3684011a62017378751f46d7176fc5fe67568534c92a1a18fdf1c1a4"
187
+ },
188
+ "attempt-scores/confirmation-04-goal1-learned.json": {
189
+ "bytes": 59530,
190
+ "sha256": "c9ed4b3d7337922be341b6b951448eb3e500be54a071691ac4ea67755b1faf41"
191
+ },
192
+ "attempt-scores/confirmation-04-goal1-open_jaw.json": {
193
+ "bytes": 59590,
194
+ "sha256": "e03006648804e1daa64517235b53d1b19a90d02a74aaa7881f5216ef8d4a00f2"
195
+ },
196
+ "attempt-scores/confirmation-04-goal1-shuffled_labels.json": {
197
+ "bytes": 59087,
198
+ "sha256": "a6c8b49d6999221a299297360e0365227bf43c3b559942b355b808a14af1430e"
199
+ },
200
+ "attempt-scores/confirmation-04-goal1-teacher.json": {
201
+ "bytes": 1428,
202
+ "sha256": "e6adb7d8961b8faf8c4dd7c66d83fcab3869a1565bf587efe356eeabcc49f672"
203
+ },
204
+ "attempt-scores/confirmation-05-goal0-hold.json": {
205
+ "bytes": 29890,
206
+ "sha256": "617dff4842b9052bc7da472951a2a5406ecda2f8d98ca38eec8bd7fec2a9461c"
207
+ },
208
+ "attempt-scores/confirmation-05-goal0-learned.json": {
209
+ "bytes": 59483,
210
+ "sha256": "7fe9c90bd58c0f74d4b59a2d1ec2d7ba1d40c0fe3d1ffb08a1ad59e946b0050f"
211
+ },
212
+ "attempt-scores/confirmation-05-goal0-open_jaw.json": {
213
+ "bytes": 58700,
214
+ "sha256": "fcc54fbc424fe6adf4e15a6f3af14c3476ff45101eed15dab6c7703057f5d5a6"
215
+ },
216
+ "attempt-scores/confirmation-05-goal0-shuffled_labels.json": {
217
+ "bytes": 59069,
218
+ "sha256": "7b16bdea6eba22f0115b6ca4c8c88b5877d9f1ee2e3e1bfcfd9abc0593c38d64"
219
+ },
220
+ "attempt-scores/confirmation-05-goal0-teacher.json": {
221
+ "bytes": 1413,
222
+ "sha256": "8bf53945367a8daf623478f7adacb87f95fbc39494b01ecbb8ef137ee5afa6ea"
223
+ },
224
+ "attempt-scores/confirmation-05-goal1-hold.json": {
225
+ "bytes": 29745,
226
+ "sha256": "9567c290ba55f3b4bf5e2c35e0d4bde6b49ee3326fc29df368229fd6bcf60cd4"
227
+ },
228
+ "attempt-scores/confirmation-05-goal1-learned.json": {
229
+ "bytes": 59745,
230
+ "sha256": "dda747b608ab43841f85c96febf364e577cf6d26aa1047c384d59a7d6f48d87f"
231
+ },
232
+ "attempt-scores/confirmation-05-goal1-open_jaw.json": {
233
+ "bytes": 59900,
234
+ "sha256": "35194e38c9121729a604da4f03c0ec7a37d825bd6d1e2f7856b6c947c56340c8"
235
+ },
236
+ "attempt-scores/confirmation-05-goal1-shuffled_labels.json": {
237
+ "bytes": 59825,
238
+ "sha256": "9fa0141edf0a54cf90d4bb6a74055395dcb4904d0675685291d137580392e532"
239
+ },
240
+ "attempt-scores/confirmation-05-goal1-teacher.json": {
241
+ "bytes": 1428,
242
+ "sha256": "3c8866480b2ae305646f15b46f07f3d4c6766715ca73563aa8485022f5cd3ff8"
243
+ },
244
+ "attempt-starts/confirmation-00-goal0-hold.json": {
245
+ "bytes": 134,
246
+ "sha256": "b307672c33a2c57dceb38abffd222c69fb4886e63bb2a6a0d7daf85b421bb732"
247
+ },
248
+ "attempt-starts/confirmation-00-goal0-learned.json": {
249
+ "bytes": 134,
250
+ "sha256": "8d6cf4bb698da349d6a63b7050726f957f69925b02acb4caac7f34e8da4cde8e"
251
+ },
252
+ "attempt-starts/confirmation-00-goal0-open_jaw.json": {
253
+ "bytes": 134,
254
+ "sha256": "46fe5c66368b759fc302976ded179e1ea26fa964fd658f8a4595f865174f0fc9"
255
+ },
256
+ "attempt-starts/confirmation-00-goal0-shuffled_labels.json": {
257
+ "bytes": 134,
258
+ "sha256": "8551906e3875e916478a7752c60fe393fcac543294fb7499d8a0976f68d11eef"
259
+ },
260
+ "attempt-starts/confirmation-00-goal0-teacher.json": {
261
+ "bytes": 134,
262
+ "sha256": "325a3b703f442b4c1059e32022e2a152c40a360c51a2f6f5b6db32f70f5b7709"
263
+ },
264
+ "attempt-starts/confirmation-00-goal1-hold.json": {
265
+ "bytes": 134,
266
+ "sha256": "7f735b68e6edb106135e4efd16cea2dde51bb0e942f133ad62aef9e9a37c1fd0"
267
+ },
268
+ "attempt-starts/confirmation-00-goal1-learned.json": {
269
+ "bytes": 134,
270
+ "sha256": "280f854dc4044bccdfd47fc04d15c80658867eff24bc16a338e130a1c7c624ab"
271
+ },
272
+ "attempt-starts/confirmation-00-goal1-open_jaw.json": {
273
+ "bytes": 134,
274
+ "sha256": "448133577fb64558129257dd4b804339fcddccab015bb37c16b58ec21d5f4c31"
275
+ },
276
+ "attempt-starts/confirmation-00-goal1-shuffled_labels.json": {
277
+ "bytes": 134,
278
+ "sha256": "0bbc5fe5714f33965e557c157b8a53a4cc632a1d57ddc7c329df9bdc8996279c"
279
+ },
280
+ "attempt-starts/confirmation-00-goal1-teacher.json": {
281
+ "bytes": 134,
282
+ "sha256": "44f9d9804cc6ea8cd508afee1ea8633fd497610c1db337b4e8f3ce3dcb90e5ed"
283
+ },
284
+ "attempt-starts/confirmation-01-goal0-hold.json": {
285
+ "bytes": 134,
286
+ "sha256": "5a4c9e1e3ab061a01cb7dfc8d10115c21b261c2f6a8c0b26e91d8e8b0a034098"
287
+ },
288
+ "attempt-starts/confirmation-01-goal0-learned.json": {
289
+ "bytes": 134,
290
+ "sha256": "b01672e2aa881c2d28b1ce8ced6a8d532e7afb04d7cfc994d9a49cca98fa47ae"
291
+ },
292
+ "attempt-starts/confirmation-01-goal0-open_jaw.json": {
293
+ "bytes": 134,
294
+ "sha256": "448ffe8df6e22fe3b596c13911bbf54cab081c6217219cd488e84b2b8024e8d6"
295
+ },
296
+ "attempt-starts/confirmation-01-goal0-shuffled_labels.json": {
297
+ "bytes": 134,
298
+ "sha256": "5249dd5446149ee5d0d4ee4c15a94a1d1baee676fc563ac025fd6cea94f6311e"
299
+ },
300
+ "attempt-starts/confirmation-01-goal0-teacher.json": {
301
+ "bytes": 134,
302
+ "sha256": "091062752622ead72eac2e46c4af4f1ad56218d8ef74c1f8f1339f65b50813a5"
303
+ },
304
+ "attempt-starts/confirmation-01-goal1-hold.json": {
305
+ "bytes": 134,
306
+ "sha256": "65eaeeb82bd4f7aec83bf917d8fe790e6422f1116eb6e1caa98c5db3583a1cb5"
307
+ },
308
+ "attempt-starts/confirmation-01-goal1-learned.json": {
309
+ "bytes": 134,
310
+ "sha256": "c0a0c392a3e433e28553307bab4842fea95c32e20b4ec755fc8f0998edfdf41d"
311
+ },
312
+ "attempt-starts/confirmation-01-goal1-open_jaw.json": {
313
+ "bytes": 134,
314
+ "sha256": "309fce92cf849717b03b6e531d0922e9d6f82f3edf1fcc011479bf3ba03d2b3e"
315
+ },
316
+ "attempt-starts/confirmation-01-goal1-shuffled_labels.json": {
317
+ "bytes": 134,
318
+ "sha256": "9dd7a3a2a38f02a60f1712433f9d618dc3b12f296a22b3cb863129fad40f940a"
319
+ },
320
+ "attempt-starts/confirmation-01-goal1-teacher.json": {
321
+ "bytes": 134,
322
+ "sha256": "a0fcfc437fc0798458e2dcbfce8f1d453d8791a3ad46074dbbd7d8f61918140a"
323
+ },
324
+ "attempt-starts/confirmation-02-goal0-hold.json": {
325
+ "bytes": 134,
326
+ "sha256": "db9ff7fd46eb32ab3cc91162d73c3b169e13c56e2e107e13b600185cdab309d7"
327
+ },
328
+ "attempt-starts/confirmation-02-goal0-learned.json": {
329
+ "bytes": 134,
330
+ "sha256": "f690780c4b380bb15995cf70b38aac7bac2dd38e2258aa2f639746196932d8ff"
331
+ },
332
+ "attempt-starts/confirmation-02-goal0-open_jaw.json": {
333
+ "bytes": 134,
334
+ "sha256": "3f7a2dda7c2dc4222423e3bd6aa8cbef3d981125e6a362cb367542d7cf61009c"
335
+ },
336
+ "attempt-starts/confirmation-02-goal0-shuffled_labels.json": {
337
+ "bytes": 134,
338
+ "sha256": "53fecadc48ab3049f99a9c42fb686a2bd434a0242fb8d8e07af541fe3560b025"
339
+ },
340
+ "attempt-starts/confirmation-02-goal0-teacher.json": {
341
+ "bytes": 134,
342
+ "sha256": "bba43c7de56fdc754b385e182840f732e7726a691e20cf7ba4593a15e2471f11"
343
+ },
344
+ "attempt-starts/confirmation-02-goal1-hold.json": {
345
+ "bytes": 134,
346
+ "sha256": "748e0cdc3034f71866c6d3a3a96013fbf10684f9656084292b6176aa9a2284cc"
347
+ },
348
+ "attempt-starts/confirmation-02-goal1-learned.json": {
349
+ "bytes": 134,
350
+ "sha256": "62bd410dd782a2569675ed48c2e752771df1e1fe7bdc24e9d256e3ad497ecc2e"
351
+ },
352
+ "attempt-starts/confirmation-02-goal1-open_jaw.json": {
353
+ "bytes": 134,
354
+ "sha256": "ce5feee3855e4209168cf87e324b532f8f9f14e778ad2a1b36ebe421c2f73c13"
355
+ },
356
+ "attempt-starts/confirmation-02-goal1-shuffled_labels.json": {
357
+ "bytes": 134,
358
+ "sha256": "0d424098a134f5936bb8957c9d79451bfc6ef1db92782612bbd3735128196706"
359
+ },
360
+ "attempt-starts/confirmation-02-goal1-teacher.json": {
361
+ "bytes": 134,
362
+ "sha256": "8f7a6b9fd52407dcdd25d05101af1b1683dd95eded7824a0364556560e478fc6"
363
+ },
364
+ "attempt-starts/confirmation-03-goal0-hold.json": {
365
+ "bytes": 134,
366
+ "sha256": "d1bf6bfd8f9b5281c83ea3475663896326e53484eda359cdb255176cf4b0742c"
367
+ },
368
+ "attempt-starts/confirmation-03-goal0-learned.json": {
369
+ "bytes": 134,
370
+ "sha256": "8266c9511a1ac7f2a6e590dab9cbc928104499c15f1294329fd1afe550a237c3"
371
+ },
372
+ "attempt-starts/confirmation-03-goal0-open_jaw.json": {
373
+ "bytes": 134,
374
+ "sha256": "f7ece48ef31a5b4499a8da459b26b304e2bb521dd6b1c1f64faf590af1a51cb0"
375
+ },
376
+ "attempt-starts/confirmation-03-goal0-shuffled_labels.json": {
377
+ "bytes": 134,
378
+ "sha256": "e234945b6f234782c07c0ada21e8362cd350dcef070ef4de0a870f1a8baafc81"
379
+ },
380
+ "attempt-starts/confirmation-03-goal0-teacher.json": {
381
+ "bytes": 134,
382
+ "sha256": "880f05d622ede43c996d16e60ea43576436173d924115fe639cc3e3d1d77dccb"
383
+ },
384
+ "attempt-starts/confirmation-03-goal1-hold.json": {
385
+ "bytes": 134,
386
+ "sha256": "d5251084bd751f8d553298c42df2a5149f8404d64ead283245f89095ca7f966e"
387
+ },
388
+ "attempt-starts/confirmation-03-goal1-learned.json": {
389
+ "bytes": 134,
390
+ "sha256": "c54097c2011d24220082e7bf48efbaa994ed92d7e2a8f4c1865a96ddf54519f4"
391
+ },
392
+ "attempt-starts/confirmation-03-goal1-open_jaw.json": {
393
+ "bytes": 134,
394
+ "sha256": "f8919f71e7e6f65856ffdeb19cbf89a761fdcbea0da8fe34ea0446131e1e965b"
395
+ },
396
+ "attempt-starts/confirmation-03-goal1-shuffled_labels.json": {
397
+ "bytes": 134,
398
+ "sha256": "fe1503639a2e042d07552cf894bafcb58ca74c9af3d331681d12fe816cff588f"
399
+ },
400
+ "attempt-starts/confirmation-03-goal1-teacher.json": {
401
+ "bytes": 134,
402
+ "sha256": "e338372355c1cbd29920d74e25d0ef80861136b29022ecece5ff0dec3c8a1b60"
403
+ },
404
+ "attempt-starts/confirmation-04-goal0-hold.json": {
405
+ "bytes": 134,
406
+ "sha256": "55c981c29f3794e21ed056d5d5b2d444633d67bc694bb710143a57f7ca927553"
407
+ },
408
+ "attempt-starts/confirmation-04-goal0-learned.json": {
409
+ "bytes": 134,
410
+ "sha256": "4ce81e43162dc45c4b728873c9345afcc8f29ddd5e3d0c0900b4907090d2c3b0"
411
+ },
412
+ "attempt-starts/confirmation-04-goal0-open_jaw.json": {
413
+ "bytes": 134,
414
+ "sha256": "ca00dba35ca99f8a5246e7aa46d99d05be148d9303469aa72085af0f1240cac5"
415
+ },
416
+ "attempt-starts/confirmation-04-goal0-shuffled_labels.json": {
417
+ "bytes": 134,
418
+ "sha256": "53eb0a6af11d92d3ebc340ce98088fb1d917848e14823cafbe24da8a252a2965"
419
+ },
420
+ "attempt-starts/confirmation-04-goal0-teacher.json": {
421
+ "bytes": 134,
422
+ "sha256": "e925ccf810bd7559f5ddb1b6eab909ec0a5b224afe763427c830e22478c2243a"
423
+ },
424
+ "attempt-starts/confirmation-04-goal1-hold.json": {
425
+ "bytes": 134,
426
+ "sha256": "5661a4db9f0019766050a4c395a1516bd9c0015fd04e05a17cbce7b2fe89bc53"
427
+ },
428
+ "attempt-starts/confirmation-04-goal1-learned.json": {
429
+ "bytes": 134,
430
+ "sha256": "926cd78554cae0ac705a6d44efca133ab17d14ae0790b6d6341de746e1460f88"
431
+ },
432
+ "attempt-starts/confirmation-04-goal1-open_jaw.json": {
433
+ "bytes": 134,
434
+ "sha256": "fad2e0dcb928153fd139eb3cf780242636f4c9cc7550a0a06f822889e55e3de4"
435
+ },
436
+ "attempt-starts/confirmation-04-goal1-shuffled_labels.json": {
437
+ "bytes": 134,
438
+ "sha256": "e01c266e71583cdc90fa617b0542fa782f81829f2145fb27dae913d692aeb767"
439
+ },
440
+ "attempt-starts/confirmation-04-goal1-teacher.json": {
441
+ "bytes": 134,
442
+ "sha256": "a8c2dbc3e5644b21d35d9cd7f6908681df6c90e533776301b27919b38e6d2b07"
443
+ },
444
+ "attempt-starts/confirmation-05-goal0-hold.json": {
445
+ "bytes": 134,
446
+ "sha256": "155f83f3484baab0814dc843a7d6c2f73296779a35a8aec61ad43b2d015768dc"
447
+ },
448
+ "attempt-starts/confirmation-05-goal0-learned.json": {
449
+ "bytes": 134,
450
+ "sha256": "61f3607ef6b3204522f031d06bad9d8bb30caac59ede94a014221460d8842b88"
451
+ },
452
+ "attempt-starts/confirmation-05-goal0-open_jaw.json": {
453
+ "bytes": 134,
454
+ "sha256": "1d27002663e298666d8c8d16f051fb9b01986c3a9a28fa7082fd63f5b0661522"
455
+ },
456
+ "attempt-starts/confirmation-05-goal0-shuffled_labels.json": {
457
+ "bytes": 134,
458
+ "sha256": "947af35c062fe51734075915835d0e6ee284c1c72b95531b266a590d28d16464"
459
+ },
460
+ "attempt-starts/confirmation-05-goal0-teacher.json": {
461
+ "bytes": 134,
462
+ "sha256": "47f54f9830b9e1093115cb0a7647b9f14a2b6c97a5184021b9e100c97787203e"
463
+ },
464
+ "attempt-starts/confirmation-05-goal1-hold.json": {
465
+ "bytes": 134,
466
+ "sha256": "fe693a7dda8fb9248bdabe3cdce2a658ad304cba7853b80443436c738fd1c51b"
467
+ },
468
+ "attempt-starts/confirmation-05-goal1-learned.json": {
469
+ "bytes": 134,
470
+ "sha256": "a0fa7eb3a4cfefb756290b7a010651f78b2404d573a8c9c7a27a0c1e4ebc01ee"
471
+ },
472
+ "attempt-starts/confirmation-05-goal1-open_jaw.json": {
473
+ "bytes": 134,
474
+ "sha256": "13bf39ce32f307538082e1bc4e94f6d8052c06d600660db9d409cfef2dd252de"
475
+ },
476
+ "attempt-starts/confirmation-05-goal1-shuffled_labels.json": {
477
+ "bytes": 134,
478
+ "sha256": "2edb989fcd5940dba3a055346a246a23090aba9bdbdca9a53d4f12ba8b4fedd0"
479
+ },
480
+ "attempt-starts/confirmation-05-goal1-teacher.json": {
481
+ "bytes": 134,
482
+ "sha256": "abb6e8577608d1a560eaba4cd32a7fa92a2eaada1bcf7dda7c92d1127f38d051"
483
+ },
484
+ "attempts/confirmation-00-goal0-hold.json.gz": {
485
+ "bytes": 348140,
486
+ "sha256": "ba4169c0fca3d2a71ec51ced05115caef4bdce796fe907009159b9c26db0eb09"
487
+ },
488
+ "attempts/confirmation-00-goal0-learned.json.gz": {
489
+ "bytes": 689557,
490
+ "sha256": "18a7b247718b82cea5aa5a78d842cc1cb64ec508671ce33064c47983324ebc97"
491
+ },
492
+ "attempts/confirmation-00-goal0-open_jaw.json.gz": {
493
+ "bytes": 640159,
494
+ "sha256": "acad2c0047e4ba7e13065f3f23d0628c552bb6e37ed45cb3025320aafc52bb62"
495
+ },
496
+ "attempts/confirmation-00-goal0-shuffled_labels.json.gz": {
497
+ "bytes": 674145,
498
+ "sha256": "0a15cfcd80eb6e78f4bfe1444e5789b7f75e906261902aaaa0dcde1836d639ea"
499
+ },
500
+ "attempts/confirmation-00-goal0-teacher.json.gz": {
501
+ "bytes": 716307,
502
+ "sha256": "83a58b8c3478178ab7950156c27b584af0b54b454ec76113f72a557f34be8c19"
503
+ },
504
+ "attempts/confirmation-00-goal1-hold.json.gz": {
505
+ "bytes": 348779,
506
+ "sha256": "4e28ed08e8939b41db3a0f4a8cabea885ff6d7232c618d4aaa044a91fb8901dd"
507
+ },
508
+ "attempts/confirmation-00-goal1-learned.json.gz": {
509
+ "bytes": 697414,
510
+ "sha256": "3c42fbab9c04dad72324469adfbcef58e7e9b3eeff17f5a5632c7c1606f4aee8"
511
+ },
512
+ "attempts/confirmation-00-goal1-open_jaw.json.gz": {
513
+ "bytes": 641386,
514
+ "sha256": "451d8c4d0f5bcb3c58722e2313162371ee115a1937e4aa9d7c27c482538ba930"
515
+ },
516
+ "attempts/confirmation-00-goal1-shuffled_labels.json.gz": {
517
+ "bytes": 675209,
518
+ "sha256": "49b5a7ba26dcbec83b7580bdf78c40ec3831b4bc14852658a648e6a5b4f10590"
519
+ },
520
+ "attempts/confirmation-00-goal1-teacher.json.gz": {
521
+ "bytes": 720611,
522
+ "sha256": "73e74e3ccb1d1e1e5e74fa3eab2a7bd678806b26b87a7b970815a602ecac1093"
523
+ },
524
+ "attempts/confirmation-01-goal0-hold.json.gz": {
525
+ "bytes": 349254,
526
+ "sha256": "220a0b49ba9db720e1f548db7fb2e41130d4b4c716892f828c1974ef7f12448d"
527
+ },
528
+ "attempts/confirmation-01-goal0-learned.json.gz": {
529
+ "bytes": 693863,
530
+ "sha256": "89158ca22cb3fc37c67b9f43ff8194d50a2d701e7ee4b43bddeb8aae52b53d18"
531
+ },
532
+ "attempts/confirmation-01-goal0-open_jaw.json.gz": {
533
+ "bytes": 643762,
534
+ "sha256": "50393ef21bbe1f669ed42d6fe0b32420d29fac2c0dc78d0500cbff4e37a49d4a"
535
+ },
536
+ "attempts/confirmation-01-goal0-shuffled_labels.json.gz": {
537
+ "bytes": 675979,
538
+ "sha256": "8b37d14590bd3a59db64f60c9375173c41aa8ac35fb9e9c532a20eb681fade15"
539
+ },
540
+ "attempts/confirmation-01-goal0-teacher.json.gz": {
541
+ "bytes": 716263,
542
+ "sha256": "f4232d130f00f6742116b3113bb018c39d33e8bf9fc2d3d109b139bb70bbeb6f"
543
+ },
544
+ "attempts/confirmation-01-goal1-hold.json.gz": {
545
+ "bytes": 348667,
546
+ "sha256": "5ec646fa9fdae41d788353ae99f03141b5910803082a379d2edbb7b00fe866ec"
547
+ },
548
+ "attempts/confirmation-01-goal1-learned.json.gz": {
549
+ "bytes": 700065,
550
+ "sha256": "be069d994584e9284db52520ff8f416caeb01ef6a9416ab5f6daf85a983ae5ec"
551
+ },
552
+ "attempts/confirmation-01-goal1-open_jaw.json.gz": {
553
+ "bytes": 642455,
554
+ "sha256": "0e892f0358b3f81a0c5b16759c030d1775c38dbc713daae2bf633aa87acad5dc"
555
+ },
556
+ "attempts/confirmation-01-goal1-shuffled_labels.json.gz": {
557
+ "bytes": 674036,
558
+ "sha256": "38b107e18b52649a686e9ff0034bdeb04e5283d140d3ac995926b5f39b823b50"
559
+ },
560
+ "attempts/confirmation-01-goal1-teacher.json.gz": {
561
+ "bytes": 720531,
562
+ "sha256": "0b8862446a10cf71a1c262d523d8e68f943b85b7301078fd6a74d10d7b0531c3"
563
+ },
564
+ "attempts/confirmation-02-goal0-hold.json.gz": {
565
+ "bytes": 348126,
566
+ "sha256": "cdf3d850971c43eb64055695daebf4d1304a1dff87e949dced5520951d471ee2"
567
+ },
568
+ "attempts/confirmation-02-goal0-learned.json.gz": {
569
+ "bytes": 689114,
570
+ "sha256": "353ea4b4c34aa0586f947baf783aba2170223f7e43bb89d9cb123dfab56ad6c8"
571
+ },
572
+ "attempts/confirmation-02-goal0-open_jaw.json.gz": {
573
+ "bytes": 639563,
574
+ "sha256": "b2f34c6734d69daa1a59ad96492a61bf6fe909fa0d07c365122de0588cf420bc"
575
+ },
576
+ "attempts/confirmation-02-goal0-shuffled_labels.json.gz": {
577
+ "bytes": 675564,
578
+ "sha256": "96464f4560808ac41cb3a96ce7722995415f2e5e0d7da2d7d62d7b0419c16eec"
579
+ },
580
+ "attempts/confirmation-02-goal0-teacher.json.gz": {
581
+ "bytes": 715021,
582
+ "sha256": "787e405e8b351a3077f984567c88ce13c42790e031ca4b3a8c09a6ac9454ab26"
583
+ },
584
+ "attempts/confirmation-02-goal1-hold.json.gz": {
585
+ "bytes": 347963,
586
+ "sha256": "3837ead8ead74c006261e15568911278270086da4f7ebbd97b7f13ecbb25b97b"
587
+ },
588
+ "attempts/confirmation-02-goal1-learned.json.gz": {
589
+ "bytes": 693713,
590
+ "sha256": "21e6c4cfcb7c4da35a0cec6fa70414606697068c19db53565e16edad9fada7fe"
591
+ },
592
+ "attempts/confirmation-02-goal1-open_jaw.json.gz": {
593
+ "bytes": 641561,
594
+ "sha256": "7018d7c3130ef02e03fcc55aff0360c5574ec59c35ed81ffc34f459c55e665bb"
595
+ },
596
+ "attempts/confirmation-02-goal1-shuffled_labels.json.gz": {
597
+ "bytes": 676422,
598
+ "sha256": "2d087e7ef871ba54d35f17fb8d200be0d1b5f0e4565ca770bcd3c4a1e65806a5"
599
+ },
600
+ "attempts/confirmation-02-goal1-teacher.json.gz": {
601
+ "bytes": 718209,
602
+ "sha256": "30bfb5436bafebc291ea8744b930054f88f86de586977d0ea6096a6c4bcb1a5e"
603
+ },
604
+ "attempts/confirmation-03-goal0-hold.json.gz": {
605
+ "bytes": 349165,
606
+ "sha256": "4eda2534a9921a53d86723e28fdd88173fa850f0cf5604e10481d30f699cc1ae"
607
+ },
608
+ "attempts/confirmation-03-goal0-learned.json.gz": {
609
+ "bytes": 690589,
610
+ "sha256": "65d34787230af8845253a90a023b7b0a8f1f70b6f09e3a8e899f14a174c9e255"
611
+ },
612
+ "attempts/confirmation-03-goal0-open_jaw.json.gz": {
613
+ "bytes": 642963,
614
+ "sha256": "26dc048239cfd29087f4036b3a6f6b87f3f1a818a89aecb61fb3ba4f6d6253e1"
615
+ },
616
+ "attempts/confirmation-03-goal0-shuffled_labels.json.gz": {
617
+ "bytes": 676271,
618
+ "sha256": "22702a54d0cf81459218c03952def341f54be1703f8799d55ca63ad14ef3ff0f"
619
+ },
620
+ "attempts/confirmation-03-goal0-teacher.json.gz": {
621
+ "bytes": 715458,
622
+ "sha256": "5b23f887673b6214232af9a69b74ad7c840915223d8b2ad3746c2b4ac0a53476"
623
+ },
624
+ "attempts/confirmation-03-goal1-hold.json.gz": {
625
+ "bytes": 349239,
626
+ "sha256": "e70fbfae62449ad2bf45ba080281dd3d8384fc61723f43ae28844ea17b390bb6"
627
+ },
628
+ "attempts/confirmation-03-goal1-learned.json.gz": {
629
+ "bytes": 694718,
630
+ "sha256": "f0820f5e2a4a99f3218918cb2e6483618597cb3249a066282ddb2435cf7db9ec"
631
+ },
632
+ "attempts/confirmation-03-goal1-open_jaw.json.gz": {
633
+ "bytes": 642935,
634
+ "sha256": "daca2755b3b6813b99393a7b3009e2b9f43c5778678374535ef10e03d49ffc3e"
635
+ },
636
+ "attempts/confirmation-03-goal1-shuffled_labels.json.gz": {
637
+ "bytes": 677218,
638
+ "sha256": "8f2b0c87d6c176e757aed08143ca4888502d8836851ad8d83c82d026080b7e61"
639
+ },
640
+ "attempts/confirmation-03-goal1-teacher.json.gz": {
641
+ "bytes": 719577,
642
+ "sha256": "008e9fb0f4da966629720751df434aec4279f196eaac3e49f50d44e8de7fd17b"
643
+ },
644
+ "attempts/confirmation-04-goal0-hold.json.gz": {
645
+ "bytes": 348069,
646
+ "sha256": "3c1e30672197cb92eb184b70354e9c35df180619eed6b13d47e8e21e20f8776b"
647
+ },
648
+ "attempts/confirmation-04-goal0-learned.json.gz": {
649
+ "bytes": 691902,
650
+ "sha256": "1707ff8fe87721e803f71a4cab07c24231a408938c7a6d67d6a5c2abed36e607"
651
+ },
652
+ "attempts/confirmation-04-goal0-open_jaw.json.gz": {
653
+ "bytes": 642216,
654
+ "sha256": "60917002b573a46ce62ed84e3d7ac96e61389eb062e6198c31cf0b1704590e46"
655
+ },
656
+ "attempts/confirmation-04-goal0-shuffled_labels.json.gz": {
657
+ "bytes": 672848,
658
+ "sha256": "7d3cbd99d18adc3cbb2dd0f4414b6312f6e0cb829ad4ee134fa130a2e2a284ff"
659
+ },
660
+ "attempts/confirmation-04-goal0-teacher.json.gz": {
661
+ "bytes": 714837,
662
+ "sha256": "eefc04aa96e37d956a1515b26796304a415db9376db7c3980d9d18b159ac5998"
663
+ },
664
+ "attempts/confirmation-04-goal1-hold.json.gz": {
665
+ "bytes": 348021,
666
+ "sha256": "70bdf9e4285b49c9f8368109cf2833757678aac7224591608dc347745244b1d3"
667
+ },
668
+ "attempts/confirmation-04-goal1-learned.json.gz": {
669
+ "bytes": 693200,
670
+ "sha256": "4d77238dd45b2e4b234e1a80398564efa15fd8e70848b28930e0037dff04bf25"
671
+ },
672
+ "attempts/confirmation-04-goal1-open_jaw.json.gz": {
673
+ "bytes": 641730,
674
+ "sha256": "278b5d0dd337f14011b78301e9757d4c11b96f39ab2285e8718e0ef447d71098"
675
+ },
676
+ "attempts/confirmation-04-goal1-shuffled_labels.json.gz": {
677
+ "bytes": 675268,
678
+ "sha256": "abd1be69f4ac6fd6bc2b0c63c8fcad5b1c290440f64c53fa391231e8bef610a5"
679
+ },
680
+ "attempts/confirmation-04-goal1-teacher.json.gz": {
681
+ "bytes": 716678,
682
+ "sha256": "ede935ac847a27702cd3a4e4252f750ff5dc2bb97b5516a94d130f8d793070c4"
683
+ },
684
+ "attempts/confirmation-05-goal0-hold.json.gz": {
685
+ "bytes": 348034,
686
+ "sha256": "a8c2a986b399d0828220586ff3d21c50e235be147800bb9d49d5fa4bb85cd525"
687
+ },
688
+ "attempts/confirmation-05-goal0-learned.json.gz": {
689
+ "bytes": 691395,
690
+ "sha256": "5fd83fc2a7409da76542529a3d45deb7c21fd5db9fafaf727aef6b049e5f2a5d"
691
+ },
692
+ "attempts/confirmation-05-goal0-open_jaw.json.gz": {
693
+ "bytes": 642094,
694
+ "sha256": "6fc08f3678494e0954c681c17373d72ae3ff22f6b620b8075cf1b9bb27ca2f6f"
695
+ },
696
+ "attempts/confirmation-05-goal0-shuffled_labels.json.gz": {
697
+ "bytes": 669868,
698
+ "sha256": "d60c53f1c5839b0aa1d98e15412b95d9df789b3923f8f722d7cda049a1461dc3"
699
+ },
700
+ "attempts/confirmation-05-goal0-teacher.json.gz": {
701
+ "bytes": 713838,
702
+ "sha256": "f680e89dd8593f541e414933df7fc204689ae072557e16e4be98833bfc627b92"
703
+ },
704
+ "attempts/confirmation-05-goal1-hold.json.gz": {
705
+ "bytes": 348137,
706
+ "sha256": "e823e1e45502bdcac22f64737528b5689c294e31e4aa556fcaf5e5eef3812608"
707
+ },
708
+ "attempts/confirmation-05-goal1-learned.json.gz": {
709
+ "bytes": 694167,
710
+ "sha256": "74f66613e9afd152a0062fbb9416cd0d11812b68a9ec2f76321a768a9912f5ed"
711
+ },
712
+ "attempts/confirmation-05-goal1-open_jaw.json.gz": {
713
+ "bytes": 641414,
714
+ "sha256": "056eb5da7e5d13b21ea2ce525b2eb61ef47cffc0812074e9bb3ad3432b8e9144"
715
+ },
716
+ "attempts/confirmation-05-goal1-shuffled_labels.json.gz": {
717
+ "bytes": 669021,
718
+ "sha256": "db0b15080f09802be8e767d7f8928cbf0d1918b1f3782ad79256ad51a039f1cc"
719
+ },
720
+ "attempts/confirmation-05-goal1-teacher.json.gz": {
721
+ "bytes": 717527,
722
+ "sha256": "faaee4ae3cee6d1a6a1878850fa6fd84bd5e56235afa164207c9eef1a3c6685d"
723
+ },
724
+ "audit.json": {
725
+ "bytes": 4939,
726
+ "sha256": "0dd1ee6495c0084d2bc17495e911dad5537e268847da7babd773240528791299"
727
+ },
728
+ "confirmation-opened.json": {
729
+ "bytes": 8964,
730
+ "sha256": "46cec7b9023229168cd23e16eb33fefc4b4dc8b0e24498b3ab6ab8a337e4af5d"
731
+ },
732
+ "demonstrations/train-00-goal0.json.gz": {
733
+ "bytes": 716571,
734
+ "sha256": "5caade187a07bf241f64d9ff9696de7344734b81909a641bcb93fc02ec2d4b12"
735
+ },
736
+ "demonstrations/train-00-goal1.json.gz": {
737
+ "bytes": 720236,
738
+ "sha256": "fb3090fa7f1feffdd086192334c897bcf9f6317006c3ec41d655c1cb6e001300"
739
+ },
740
+ "demonstrations/train-01-goal0.json.gz": {
741
+ "bytes": 716513,
742
+ "sha256": "6f8d21bb357c5628bbb16bcea0ef6c6539275bc47bec8e0f3b261279c8143abf"
743
+ },
744
+ "demonstrations/train-01-goal1.json.gz": {
745
+ "bytes": 721005,
746
+ "sha256": "b0429c66dfce1688df8abbecd65d27529ce9eaa32d84f24cf68f88f8f1ea5249"
747
+ },
748
+ "demonstrations/train-02-goal0.json.gz": {
749
+ "bytes": 714868,
750
+ "sha256": "303525348cbfacdf1058b0622a3c5ac8ac65da0a6e428656d87c871cedc283f4"
751
+ },
752
+ "demonstrations/train-02-goal1.json.gz": {
753
+ "bytes": 720167,
754
+ "sha256": "35684af7d0aef232220e790448968284a203b4dc7fa52755545eeaaa40fb668f"
755
+ },
756
+ "demonstrations/train-03-goal0.json.gz": {
757
+ "bytes": 715202,
758
+ "sha256": "ff8003b4ff335a8d49976f3ab4a3329fbc1bb117cfe5ab15a9069d0c649e92c4"
759
+ },
760
+ "demonstrations/train-03-goal1.json.gz": {
761
+ "bytes": 720449,
762
+ "sha256": "496410d1a78d255f99853194f1a1e5f61c8876cfeddbd8a04848b1b7a45a7ded"
763
+ },
764
+ "demonstrations/train-04-goal0.json.gz": {
765
+ "bytes": 715570,
766
+ "sha256": "ae04c1b650c443cc11e6e7150fd9faed06232dbf52c9a03112aafb15ed4091ae"
767
+ },
768
+ "demonstrations/train-04-goal1.json.gz": {
769
+ "bytes": 719543,
770
+ "sha256": "d561800cc4b17ab17616b32a75e9196e156cd503b271cd39149e6ca0e7561b44"
771
+ },
772
+ "demonstrations/train-05-goal0.json.gz": {
773
+ "bytes": 716798,
774
+ "sha256": "2980544d9cbb34208180941f879c52a05c683256d726e7d49acc30213732bc79"
775
+ },
776
+ "demonstrations/train-05-goal1.json.gz": {
777
+ "bytes": 720235,
778
+ "sha256": "0881f2b1d93a4528b94b0046808c9fb8dff31ce414a7ece21cea5366cc4f8f19"
779
+ },
780
+ "demonstrations/train-06-goal0.json.gz": {
781
+ "bytes": 715100,
782
+ "sha256": "7df72544f2022c5c6128e7fceda259c50ed88a51db1ebc2c2f3aee10821a7ba0"
783
+ },
784
+ "demonstrations/train-06-goal1.json.gz": {
785
+ "bytes": 719592,
786
+ "sha256": "4f514f0ad6d5b908343bd03ef69278235110ead15da8a74d9e181c11cffae8bb"
787
+ },
788
+ "demonstrations/train-07-goal0.json.gz": {
789
+ "bytes": 715025,
790
+ "sha256": "3127b03662f21d4541b6136d6a9bc2a2a7c432a419e99e9c78d38dee213354ea"
791
+ },
792
+ "demonstrations/train-07-goal1.json.gz": {
793
+ "bytes": 720488,
794
+ "sha256": "413f95cf2c7aa4e2349690586a5f7ae66ce566a9698f3ec6a6e5c793b196717d"
795
+ },
796
+ "demonstrations/train-08-goal0.json.gz": {
797
+ "bytes": 715722,
798
+ "sha256": "bacc2212e831a56fb7ae9aefc909d1c66d8d604c43f131aced3e20b301955501"
799
+ },
800
+ "demonstrations/train-08-goal1.json.gz": {
801
+ "bytes": 718675,
802
+ "sha256": "86bad1b884adddcc8a460bdd9c2c62565ca8ab06abd61c3aed78883709a75f1f"
803
+ },
804
+ "demonstrations/train-09-goal0.json.gz": {
805
+ "bytes": 715967,
806
+ "sha256": "b6c76e566639267018bab76e46428b031489d3390e9293da9bcbbe68585f79b5"
807
+ },
808
+ "demonstrations/train-09-goal1.json.gz": {
809
+ "bytes": 719200,
810
+ "sha256": "2cf83e3f15b3177ea694d380e70dddeefa68afe29d760ced336599765b4b05f8"
811
+ },
812
+ "demonstrations/train-10-goal0.json.gz": {
813
+ "bytes": 714320,
814
+ "sha256": "909b7ca3c56f65a0e237e6b626e5af1d3b9c45fa3ddef678d9e9fbb395912124"
815
+ },
816
+ "demonstrations/train-10-goal1.json.gz": {
817
+ "bytes": 718438,
818
+ "sha256": "dd69e8f0bd6cfd6bb3a4347ad6263f22d60c4be4e431593aa99b23f01dad95ad"
819
+ },
820
+ "demonstrations/train-11-goal0.json.gz": {
821
+ "bytes": 714717,
822
+ "sha256": "179a58f6b9d9cdbb9bcdec6b75c8e79f8ddd0eda213b98e703200c57b6eaca74"
823
+ },
824
+ "demonstrations/train-11-goal1.json.gz": {
825
+ "bytes": 719022,
826
+ "sha256": "1994d95fd1271f74c4deec254f010dd6520cbd6d9a2282e1f780150b850fa455"
827
+ },
828
+ "demonstrations/train-12-goal0.json.gz": {
829
+ "bytes": 715440,
830
+ "sha256": "0e8d13955ea0c17fd79ad6b3ce26203df98d5783c03ef12a3a5289053d686273"
831
+ },
832
+ "demonstrations/train-12-goal1.json.gz": {
833
+ "bytes": 717791,
834
+ "sha256": "e106900570f412f3b509fae4487941caacce3ebeaf9dc0489e509ebac3e73208"
835
+ },
836
+ "demonstrations/train-13-goal0.json.gz": {
837
+ "bytes": 716150,
838
+ "sha256": "46015732c4d2074c92baf8d31585ceb7c6b9dbbe56f0a9c89eb713181a9fc449"
839
+ },
840
+ "demonstrations/train-13-goal1.json.gz": {
841
+ "bytes": 717572,
842
+ "sha256": "df696dad788e74f3914767d36c27f42f36a973eecf2dff266a9be433322ff6de"
843
+ },
844
+ "demonstrations/train-14-goal0.json.gz": {
845
+ "bytes": 714136,
846
+ "sha256": "dbaf00b342735a3370150a68a25f80d3e4e760081f54dee92b5c9a93fe152e66"
847
+ },
848
+ "demonstrations/train-14-goal1.json.gz": {
849
+ "bytes": 717154,
850
+ "sha256": "5f72f085ed553c0f4e36a4699e58792e7c6682002d8d9a16f713c99d0bb96dd6"
851
+ },
852
+ "demonstrations/train-15-goal0.json.gz": {
853
+ "bytes": 715104,
854
+ "sha256": "c215782193fd7dddea81d2d4d1f5497aaca81adc9d259c2be4ab4fe1ff52a225"
855
+ },
856
+ "demonstrations/train-15-goal1.json.gz": {
857
+ "bytes": 718456,
858
+ "sha256": "ceaf15727bbbe165d3b8e293fe28ba37c644566441a7d96037b3ebe67fc18954"
859
+ },
860
+ "development_models/absolute240/attempts/development-00-goal0.json.gz": {
861
+ "bytes": 637867,
862
+ "sha256": "57aa3549996723602e9a2e63098d1b0b0bd1c245b5a0f20add1a791ff9108e07"
863
+ },
864
+ "development_models/absolute240/attempts/development-00-goal1.json.gz": {
865
+ "bytes": 643886,
866
+ "sha256": "b5da2200cdcd8271c6c94b5d57755da772092ed6e1a1f5b66b57bddfdfdadf58"
867
+ },
868
+ "development_models/absolute240/attempts/development-01-goal0.json.gz": {
869
+ "bytes": 671040,
870
+ "sha256": "e9a024ce6089ce222062a0579c5537728ce69409ea6f9478604380e895d98f6b"
871
+ },
872
+ "development_models/absolute240/attempts/development-01-goal1.json.gz": {
873
+ "bytes": 699107,
874
+ "sha256": "4031e529100003409ceed7bd89d7afe8cc496a5152fd2db076c2597248542b9d"
875
+ },
876
+ "development_models/absolute240/attempts/development-02-goal0.json.gz": {
877
+ "bytes": 670590,
878
+ "sha256": "2811185ff4f5786ff462adba34f93e1802eef8a07875ba28a6c020e16827cdec"
879
+ },
880
+ "development_models/absolute240/attempts/development-02-goal1.json.gz": {
881
+ "bytes": 671384,
882
+ "sha256": "240c71045db3a0d03713525f4ab0ce11d924ab9de2067a5fbc4f6f02c766af7e"
883
+ },
884
+ "development_models/absolute240/attempts/development-03-goal0.json.gz": {
885
+ "bytes": 668742,
886
+ "sha256": "22f941ff8156654f767ca44a350498127be3f788201153f628e955d3aa2984d0"
887
+ },
888
+ "development_models/absolute240/attempts/development-03-goal1.json.gz": {
889
+ "bytes": 670095,
890
+ "sha256": "0a10cd2ec0061bac7abf2353cb7496e5985fb6cbf087931f4dea1ec0b465c4ec"
891
+ },
892
+ "development_models/absolute240/evaluation.json": {
893
+ "bytes": 539887,
894
+ "sha256": "8cd3d57a685ed5f630a2b1bad7f625ec0bf91035367022c88a98d8919ddc8d9c"
895
+ },
896
+ "development_models/absolute240/model.json": {
897
+ "bytes": 156977,
898
+ "sha256": "b50678e80f5b68f891a4d88453a6324db4e77f0dbab7133997ccf361acbc7456"
899
+ },
900
+ "development_models/absolute240/receipt.json": {
901
+ "bytes": 820,
902
+ "sha256": "40b4bb864b4d5ead57e4942c7b92ffc82a9416aa7fc09d553f3ea0034b92353c"
903
+ },
904
+ "development_models/absolute240/sources/piper_imitation.py": {
905
+ "bytes": 24697,
906
+ "sha256": "458f13dc785e5bbbf19afb0bf0dd5148133867183a7928ac0dd259aef174c7e2"
907
+ },
908
+ "development_models/mlp160/attempts/development-00-goal0.json.gz": {
909
+ "bytes": 662223,
910
+ "sha256": "255ed25d5d7dc20b5b52fd46180aff09a69d444bf9e28ca621e648ce7ac2aae5"
911
+ },
912
+ "development_models/mlp160/attempts/development-00-goal1.json.gz": {
913
+ "bytes": 663811,
914
+ "sha256": "47f6bf0cb51ce5226decc04363ba227137768c2468c39b2ca709a297cd61ce5f"
915
+ },
916
+ "development_models/mlp160/attempts/development-01-goal0.json.gz": {
917
+ "bytes": 661955,
918
+ "sha256": "179c0970a2312eb8343c7771d2396e396508f3185c43bb3eeda89afad9194184"
919
+ },
920
+ "development_models/mlp160/attempts/development-01-goal1.json.gz": {
921
+ "bytes": 666083,
922
+ "sha256": "d9ef635a0c118d0aece4155b6ebf6acdf2f7f5b8898b7c8f785664fa73470d66"
923
+ },
924
+ "development_models/mlp160/attempts/development-02-goal0.json.gz": {
925
+ "bytes": 662315,
926
+ "sha256": "e57811ccdc622a8bbfd889a203ddb9c294354e2f5d55fa5b957e9985a059cb0c"
927
+ },
928
+ "development_models/mlp160/attempts/development-02-goal1.json.gz": {
929
+ "bytes": 664980,
930
+ "sha256": "9a4ed1aa525c18cdde3ef57f2c3056d22aa5d04f8f0e1cf6069fc9cefbfcd235"
931
+ },
932
+ "development_models/mlp160/attempts/development-03-goal0.json.gz": {
933
+ "bytes": 664873,
934
+ "sha256": "fe4401b65c5dd40dfe468de79b629a0c7964b864bfce9e6e612bd853417dd2b5"
935
+ },
936
+ "development_models/mlp160/attempts/development-03-goal1.json.gz": {
937
+ "bytes": 666569,
938
+ "sha256": "1ef3def941b2f22aab6b84dd020084b98aa18f23e2c2def9676645854de2fb6c"
939
+ },
940
+ "development_models/mlp160/evaluation.json": {
941
+ "bytes": 542051,
942
+ "sha256": "61acdc41371ebdc021b498c388cef20cc826fa8aceec1459014cb1932beb19d7"
943
+ },
944
+ "development_models/mlp160/model.json": {
945
+ "bytes": 156396,
946
+ "sha256": "22735028eccc28848e925c866c53ffc77ab5530e216fd09582f56574e3dbce3d"
947
+ },
948
+ "development_models/mlp160/receipt.json": {
949
+ "bytes": 647,
950
+ "sha256": "f765d57aea8507c3ff1ae3ddfa344eab9f63f3c45ec7321fb6a8636cefd8b5c3"
951
+ },
952
+ "development_models/mlp160/sources/piper_imitation.py": {
953
+ "bytes": 20261,
954
+ "sha256": "9b96770faff72e0ce5c8d7713011f472bcca241445653d46393df7845a1b0bc9"
955
+ },
956
+ "development_models/primitive201/attempts/development-00-goal0.json.gz": {
957
+ "bytes": 696645,
958
+ "sha256": "92c89fdd51068f5f7c193907e523f97ccb1b9b438f8791d2ba8ab6f1e6767bcb"
959
+ },
960
+ "development_models/primitive201/attempts/development-00-goal1.json.gz": {
961
+ "bytes": 698932,
962
+ "sha256": "330d7146323038c911249adfab3a3b02cf8067c9f4426a0ea94d17f3c39bacab"
963
+ },
964
+ "development_models/primitive201/attempts/development-01-goal0.json.gz": {
965
+ "bytes": 694640,
966
+ "sha256": "138cb74dd15da7bb669fada98c8859e766fd29dbea056ae9f5d875b2567134db"
967
+ },
968
+ "development_models/primitive201/attempts/development-01-goal1.json.gz": {
969
+ "bytes": 700597,
970
+ "sha256": "3f236d9d4f698b3e8b745de0f62a921fe9c1478686a801a2a26ba21f9323bba6"
971
+ },
972
+ "development_models/primitive201/attempts/development-02-goal0.json.gz": {
973
+ "bytes": 694464,
974
+ "sha256": "e3173cbce37a54a4e3215c372f4b6944e93b6cb917efe78e727336e095708fc5"
975
+ },
976
+ "development_models/primitive201/attempts/development-02-goal1.json.gz": {
977
+ "bytes": 697874,
978
+ "sha256": "a03781e69cc2326be9e9a8107f9e17d57d5a6d2b97000ca6d832c541ac23e4e5"
979
+ },
980
+ "development_models/primitive201/attempts/development-03-goal0.json.gz": {
981
+ "bytes": 696949,
982
+ "sha256": "023035614a1407c862653e3c7629438db21a61a518e31cd98fb31ff7e9f6fc52"
983
+ },
984
+ "development_models/primitive201/attempts/development-03-goal1.json.gz": {
985
+ "bytes": 700652,
986
+ "sha256": "eb485535ecd1581e7e62c7704598676981f02509fd92b81209c3e728a95d45ad"
987
+ },
988
+ "development_models/primitive201/evaluation.json": {
989
+ "bytes": 541931,
990
+ "sha256": "6ad6a5b86b60572a76d9438206ca2244660bb7a610cf74a50d9b8fed6670afc9"
991
+ },
992
+ "development_models/primitive201/model.json": {
993
+ "bytes": 569527,
994
+ "sha256": "d4b96d3aa5ef440750aa1b6514029fc8cf079369594c3fd7b832c6c094e93216"
995
+ },
996
+ "development_models/primitive201/receipt.json": {
997
+ "bytes": 1177,
998
+ "sha256": "8c107d4811117c991a98391ada4955396406368ac5d37af3be44ede3accfc41d"
999
+ },
1000
+ "development_models/primitive201/sources/piper_imitation.py": {
1001
+ "bytes": 25487,
1002
+ "sha256": "0f8f11c6617456a4e5ab7ace9cf268153f91ca1d6c6a7e507026f98821b3248b"
1003
+ },
1004
+ "development_models/primitive201/sources/piper_motor_primitive.py": {
1005
+ "bytes": 15616,
1006
+ "sha256": "a9421f674183fa1e6ce1ecbb71b72b99c8d72207b578ddeca1c517b0963f0985"
1007
+ },
1008
+ "development_models/primitive401/attempts/development-00-goal0.json.gz": {
1009
+ "bytes": 689499,
1010
+ "sha256": "bda00f37c93b8180a2ed77f790ccb272afc4ca2a003328ebb214cc0703ac425d"
1011
+ },
1012
+ "development_models/primitive401/attempts/development-00-goal1.json.gz": {
1013
+ "bytes": 693050,
1014
+ "sha256": "5027c71db09f9ee79b1e78979caf6e480fafa30881bb7d6368c949c4e4d92f69"
1015
+ },
1016
+ "development_models/primitive401/attempts/development-01-goal0.json.gz": {
1017
+ "bytes": 689435,
1018
+ "sha256": "248bf959a3af1aecb96bf28314fa2140dcc38b6b97f3903c8e2209ff644a87ce"
1019
+ },
1020
+ "development_models/primitive401/attempts/development-01-goal1.json.gz": {
1021
+ "bytes": 694483,
1022
+ "sha256": "10741bf03d5be5f5b7510645b258845efc9969f5b9e95946db707a3ab1feddaf"
1023
+ },
1024
+ "development_models/primitive401/attempts/development-02-goal0.json.gz": {
1025
+ "bytes": 688592,
1026
+ "sha256": "839dd7c62007da6c906895e2d35f3fa50b8e1247cf4ab476fae6d4b818ca3b46"
1027
+ },
1028
+ "development_models/primitive401/attempts/development-02-goal1.json.gz": {
1029
+ "bytes": 692701,
1030
+ "sha256": "6abbeaf75239760ec13c19e55d4307997957d8f9d80d0cb3d7be692812c81697"
1031
+ },
1032
+ "development_models/primitive401/attempts/development-03-goal0.json.gz": {
1033
+ "bytes": 690514,
1034
+ "sha256": "a453c467dc7421355ff04e2230af2754eed092025c49daaac1b9a6a307f8fca8"
1035
+ },
1036
+ "development_models/primitive401/attempts/development-03-goal1.json.gz": {
1037
+ "bytes": 692411,
1038
+ "sha256": "81d4fab86c1d7ca3a33632623c844907346db2b3dbbbb1a95b9316e6441147fd"
1039
+ },
1040
+ "development_models/primitive401/evaluation.json": {
1041
+ "bytes": 540874,
1042
+ "sha256": "a7ca1a15b43d893ff79f5a43593d0e1366bec5dcad3a89ec949978d7e1494c89"
1043
+ },
1044
+ "development_models/primitive401/model.json": {
1045
+ "bytes": 2031879,
1046
+ "sha256": "2976a605575d9edefb5db366e72c5e006c0ce85a5531ad3d61512436864c8ded"
1047
+ },
1048
+ "development_models/primitive401/receipt.json": {
1049
+ "bytes": 1203,
1050
+ "sha256": "f5bfd1adba7adf7b62feefb10306ae09a6d569f3286b8f0dff2ea95163e55fc6"
1051
+ },
1052
+ "development_models/shuffled401/model.json": {
1053
+ "bytes": 1853724,
1054
+ "sha256": "43f1b7f9cbd8e003d1bb384b8e2b24ebba99d108cacfdfc42d99475fed7fd5e2"
1055
+ },
1056
+ "development_models/shuffled401/receipt.json": {
1057
+ "bytes": 1183,
1058
+ "sha256": "3b51ac7c9e04c3c34fc13dfd8e1d045c45df7ea36f9d4b587246ed7cbeb1fff3"
1059
+ },
1060
+ "driver-recovery/confirmation-00-goal0-hold.json": {
1061
+ "bytes": 406,
1062
+ "sha256": "ccf2a96cf2e63fcadfba98bde0bbe1dad5325e7f70ea8ddc4a2873e02ccbc48b"
1063
+ },
1064
+ "driver-recovery/confirmation-00-goal0-learned.json": {
1065
+ "bytes": 469,
1066
+ "sha256": "44b85cc3cc783f6150447b890e7fe8680bd82d04eb80da84a1fd624606b22b64"
1067
+ },
1068
+ "driver-recovery/confirmation-00-goal0-open_jaw.json": {
1069
+ "bytes": 410,
1070
+ "sha256": "45b51195cc06a638d9d110a64e8b73d57cf01adcba7190f9200dccac8ea24219"
1071
+ },
1072
+ "driver-recovery/confirmation-00-goal0-shuffled_labels.json": {
1073
+ "bytes": 417,
1074
+ "sha256": "d4da0ff2b92573aec15fa3783f6a63a865505fe7b84623eee1ed0390a3254448"
1075
+ },
1076
+ "driver-recovery/confirmation-00-goal0-teacher.json": {
1077
+ "bytes": 409,
1078
+ "sha256": "6c4e1e0a63d755b38d80c38259bd39eb6036c4f454a517d34863c4b2b1f0a642"
1079
+ },
1080
+ "driver-recovery/confirmation-00-goal1-hold.json": {
1081
+ "bytes": 406,
1082
+ "sha256": "54174abd527db1dca67e2cdd9bf8c8389264ebb5e8d22c562b530ec8e8b88fe5"
1083
+ },
1084
+ "driver-recovery/confirmation-00-goal1-learned.json": {
1085
+ "bytes": 409,
1086
+ "sha256": "c4bd9c34e6109b11b1480aeef2e0cf3f279944e48154ae401c8896a3063e333b"
1087
+ },
1088
+ "driver-recovery/confirmation-00-goal1-open_jaw.json": {
1089
+ "bytes": 410,
1090
+ "sha256": "edfa00c5369a7269cc8146c08f395d942e0f799811c54540d0d1f6b9e9d787c9"
1091
+ },
1092
+ "driver-recovery/confirmation-00-goal1-shuffled_labels.json": {
1093
+ "bytes": 417,
1094
+ "sha256": "92e969e39277f5820a1b18b901fa360f4d6d925a1990ce5db8c2070e1d9632d2"
1095
+ },
1096
+ "driver-recovery/confirmation-00-goal1-teacher.json": {
1097
+ "bytes": 409,
1098
+ "sha256": "c0381858644cc02210d94ce92bfdcdf896e010fa459c03fa281d213cdeea781b"
1099
+ },
1100
+ "driver-recovery/confirmation-01-goal0-hold.json": {
1101
+ "bytes": 406,
1102
+ "sha256": "e5fb6594801639db0b3530e30985dc76908711b2cee57e45a81b7428005fd89e"
1103
+ },
1104
+ "driver-recovery/confirmation-01-goal0-learned.json": {
1105
+ "bytes": 409,
1106
+ "sha256": "602c1502768d9e921002d2fde859dbb8a8bbd2730c35b18c01daebd52cd4a3a4"
1107
+ },
1108
+ "driver-recovery/confirmation-01-goal0-open_jaw.json": {
1109
+ "bytes": 410,
1110
+ "sha256": "feca6b77a77970a7ff4b276860d371d4ecc5215dbe3f81f715460fa480f0243c"
1111
+ },
1112
+ "driver-recovery/confirmation-01-goal0-shuffled_labels.json": {
1113
+ "bytes": 417,
1114
+ "sha256": "42092b99d70fb1b4e5bbaf0752ce0067bf076b01bc1563beda92cad1959dc3bd"
1115
+ },
1116
+ "driver-recovery/confirmation-01-goal0-teacher.json": {
1117
+ "bytes": 409,
1118
+ "sha256": "81e9ba5c8822287a20e0dbf3f39a52da5b6f393a007d59030465519f54410b7b"
1119
+ },
1120
+ "driver-recovery/confirmation-01-goal1-hold.json": {
1121
+ "bytes": 406,
1122
+ "sha256": "f053ff92aa7121151382005338d8eb0a45e6d7c8e416cdfdf9212bee379715ab"
1123
+ },
1124
+ "driver-recovery/confirmation-01-goal1-learned.json": {
1125
+ "bytes": 409,
1126
+ "sha256": "250df6e88257c5cf537788a71b4e5a9f2724ed15cee1cd0494171c56f2cf5893"
1127
+ },
1128
+ "driver-recovery/confirmation-01-goal1-open_jaw.json": {
1129
+ "bytes": 410,
1130
+ "sha256": "b6fb449202d03f449d86e1100c7dbf490b0522002a1861a5920a66c3c3657127"
1131
+ },
1132
+ "driver-recovery/confirmation-01-goal1-shuffled_labels.json": {
1133
+ "bytes": 417,
1134
+ "sha256": "81cb55c953d0b8444b37ed92b7e91c8e0fa61d24f161b40420d06794fcb8d03f"
1135
+ },
1136
+ "driver-recovery/confirmation-01-goal1-teacher.json": {
1137
+ "bytes": 409,
1138
+ "sha256": "a8a6db3c2b33d502717282c529b6afc92f288dd419e279ea743761bf940064ed"
1139
+ },
1140
+ "driver-recovery/confirmation-02-goal0-hold.json": {
1141
+ "bytes": 406,
1142
+ "sha256": "5ed49aca5db78163326c7348c108d4da7a1b7089399ab5c6f8f048c2d0400a60"
1143
+ },
1144
+ "driver-recovery/confirmation-02-goal0-learned.json": {
1145
+ "bytes": 409,
1146
+ "sha256": "385d9a111b198ada8fc64f86d223b38151c0930228ea2701c52f7a88fa41a202"
1147
+ },
1148
+ "driver-recovery/confirmation-02-goal0-open_jaw.json": {
1149
+ "bytes": 410,
1150
+ "sha256": "66c7e8e0a71539084c6e0ec1d789871654b4c50aeb7b5f08f029b32d6f1a13a7"
1151
+ },
1152
+ "driver-recovery/confirmation-02-goal0-shuffled_labels.json": {
1153
+ "bytes": 417,
1154
+ "sha256": "3559bf2d49408dcf7e07d8e4061f5ee112bcdf2c74b8790bf753a19ba879b826"
1155
+ },
1156
+ "driver-recovery/confirmation-02-goal0-teacher.json": {
1157
+ "bytes": 409,
1158
+ "sha256": "902581751c165bd6a47507f7e3cd8bccf689cf8edabc2b1c46bf617d19b994e7"
1159
+ },
1160
+ "driver-recovery/confirmation-02-goal1-hold.json": {
1161
+ "bytes": 406,
1162
+ "sha256": "38c84abe80915e102006d9287fc0ffc4a379c8a37ea1835eed764523fe24c528"
1163
+ },
1164
+ "driver-recovery/confirmation-02-goal1-learned.json": {
1165
+ "bytes": 409,
1166
+ "sha256": "363a36476f91dd737212f494fa9039de7bdd109d02eec3fde9fe677e5cf3e214"
1167
+ },
1168
+ "driver-recovery/confirmation-02-goal1-open_jaw.json": {
1169
+ "bytes": 410,
1170
+ "sha256": "e9a66758ac3f9c72ab543dc7a602e34f57fa58861d0d2214cbecd8bbfa3c49a5"
1171
+ },
1172
+ "driver-recovery/confirmation-02-goal1-shuffled_labels.json": {
1173
+ "bytes": 417,
1174
+ "sha256": "8a8be837fc892d643ded82816693c8af3f04c2bd0d25882979a2799be140503b"
1175
+ },
1176
+ "driver-recovery/confirmation-02-goal1-teacher.json": {
1177
+ "bytes": 409,
1178
+ "sha256": "1ee927d3efc55ee57d5d47cd0b8addecbfad4a08f0fc7c174f56d1b465231f41"
1179
+ },
1180
+ "driver-recovery/confirmation-03-goal0-hold.json": {
1181
+ "bytes": 406,
1182
+ "sha256": "77711f34d7fbf57537a0c6ad9390038f607186d6d3b9f1d9ea99f42e3a2dae31"
1183
+ },
1184
+ "driver-recovery/confirmation-03-goal0-learned.json": {
1185
+ "bytes": 409,
1186
+ "sha256": "2299a8f63b949da5c3baf4e573c5e629ab83e264121cb88821f8e72e9ad8f8cf"
1187
+ },
1188
+ "driver-recovery/confirmation-03-goal0-open_jaw.json": {
1189
+ "bytes": 410,
1190
+ "sha256": "df6cc9540e4ca7546e9f6b9dd8059be8b982febc5ee5b75150132286ef331ab6"
1191
+ },
1192
+ "driver-recovery/confirmation-03-goal0-shuffled_labels.json": {
1193
+ "bytes": 417,
1194
+ "sha256": "e3a40d39fe8f6b93a1b68fbf8cd25a32c122a1407cb410392c19534c0bfdf503"
1195
+ },
1196
+ "driver-recovery/confirmation-03-goal0-teacher.json": {
1197
+ "bytes": 409,
1198
+ "sha256": "817ed953883a6219d72723438534263226f9ae4cde1e774296a0f4d03d00a543"
1199
+ },
1200
+ "driver-recovery/confirmation-03-goal1-hold.json": {
1201
+ "bytes": 406,
1202
+ "sha256": "4cd20cadb451fef6bc267ba614f8c5cd8242c0873b0ed293dbb76bf727b76211"
1203
+ },
1204
+ "driver-recovery/confirmation-03-goal1-learned.json": {
1205
+ "bytes": 409,
1206
+ "sha256": "7125f44840244188c818e59a4f3906e759a5869deaf5316aa13851e22953932c"
1207
+ },
1208
+ "driver-recovery/confirmation-03-goal1-open_jaw.json": {
1209
+ "bytes": 410,
1210
+ "sha256": "15e593e8d02ab571db9fe9fc1e06ff4c6f644a58e14671b96ef8cb36ec3068f5"
1211
+ },
1212
+ "driver-recovery/confirmation-03-goal1-shuffled_labels.json": {
1213
+ "bytes": 417,
1214
+ "sha256": "5e9ac6bdc964b1052bcc3857d17e48d366e13687e792b051a1b9f0235df9af83"
1215
+ },
1216
+ "driver-recovery/confirmation-03-goal1-teacher.json": {
1217
+ "bytes": 409,
1218
+ "sha256": "e1081f903849763bd36f843180f3222a514b6e4147a78201c6ecaa319ec1933b"
1219
+ },
1220
+ "driver-recovery/confirmation-04-goal0-hold.json": {
1221
+ "bytes": 406,
1222
+ "sha256": "d549e20ca0831a0864e3e3ee9ca88507a5140b364432eaefa97ca1a9222aecdd"
1223
+ },
1224
+ "driver-recovery/confirmation-04-goal0-learned.json": {
1225
+ "bytes": 409,
1226
+ "sha256": "7f14fc82ecfe866e1033c832202844c3cc50148234f818450610442e73c3e342"
1227
+ },
1228
+ "driver-recovery/confirmation-04-goal0-open_jaw.json": {
1229
+ "bytes": 410,
1230
+ "sha256": "b8b5111edd42577807dadd0d8f20734694b79a2635f49be823c56f2877ba4a43"
1231
+ },
1232
+ "driver-recovery/confirmation-04-goal0-shuffled_labels.json": {
1233
+ "bytes": 417,
1234
+ "sha256": "cbe8c347d51a821e8034ebc62b89cb8562300c953d560dbc3d5347e69f4c5f91"
1235
+ },
1236
+ "driver-recovery/confirmation-04-goal0-teacher.json": {
1237
+ "bytes": 409,
1238
+ "sha256": "2edc61017ceffabf0fe556b3a23b40197aefb7933cc3e2ae926d67dfd6d8aa7d"
1239
+ },
1240
+ "driver-recovery/confirmation-04-goal1-hold.json": {
1241
+ "bytes": 406,
1242
+ "sha256": "28e4169cd732ac7224352d94d0ba894eb5ba58371b8bfe05adaae72e41991706"
1243
+ },
1244
+ "driver-recovery/confirmation-04-goal1-learned.json": {
1245
+ "bytes": 409,
1246
+ "sha256": "987c36b3f45cb57b6867002ddb776b8301cd3213551982e5e4f7feb353d8e1ee"
1247
+ },
1248
+ "driver-recovery/confirmation-04-goal1-open_jaw.json": {
1249
+ "bytes": 410,
1250
+ "sha256": "8705f56e0a646c5f1ca82aedb48417a70862c7ae2a780b8959ffa5869aa33263"
1251
+ },
1252
+ "driver-recovery/confirmation-04-goal1-shuffled_labels.json": {
1253
+ "bytes": 417,
1254
+ "sha256": "888cead658d2c7947b2288a8b9603189967c841b80f87a790ae42c26661ad8da"
1255
+ },
1256
+ "driver-recovery/confirmation-04-goal1-teacher.json": {
1257
+ "bytes": 409,
1258
+ "sha256": "691e8071b4c560bdc15e318fa1c5818883919fab68a3e2c5b68b7b97bad72820"
1259
+ },
1260
+ "driver-recovery/confirmation-05-goal0-hold.json": {
1261
+ "bytes": 406,
1262
+ "sha256": "bf47c9dc4c6b0093babc7935d083d96f358b5a72bd6cf2c395801b2478a6411d"
1263
+ },
1264
+ "driver-recovery/confirmation-05-goal0-learned.json": {
1265
+ "bytes": 409,
1266
+ "sha256": "f6d8afc9374c76ef463d57c3d57f24d3f0ab5d8982de75b15194a734a5dc9061"
1267
+ },
1268
+ "driver-recovery/confirmation-05-goal0-open_jaw.json": {
1269
+ "bytes": 410,
1270
+ "sha256": "8519f0b1df9d219e68cfac86dbeb098fee8b2403eaddf45ac50bbfb1d8f04a49"
1271
+ },
1272
+ "driver-recovery/confirmation-05-goal0-shuffled_labels.json": {
1273
+ "bytes": 417,
1274
+ "sha256": "4d4793e9d03aa83367503a21da27ba179ee3b5e31fce762eeb1982aa489c0d39"
1275
+ },
1276
+ "driver-recovery/confirmation-05-goal0-teacher.json": {
1277
+ "bytes": 409,
1278
+ "sha256": "8d61e4b74ad005809ee5e7a2279f84435cdd225e3e15e24e39ff496b83e33fcc"
1279
+ },
1280
+ "driver-recovery/confirmation-05-goal1-hold.json": {
1281
+ "bytes": 406,
1282
+ "sha256": "e833cd32f0eeed67b2a6ecfe80bba014e9860351e3e83c769b0969368989f8b8"
1283
+ },
1284
+ "driver-recovery/confirmation-05-goal1-learned.json": {
1285
+ "bytes": 409,
1286
+ "sha256": "b1f38bfe0e6878856ea8d8c4521093fca310ca41cca2842d4644fad766d7b6b0"
1287
+ },
1288
+ "driver-recovery/confirmation-05-goal1-open_jaw.json": {
1289
+ "bytes": 410,
1290
+ "sha256": "12847d6b55bbc2852e1391c29916f7927e1ec86af4ac352ba92e34e545bec097"
1291
+ },
1292
+ "driver-recovery/confirmation-05-goal1-shuffled_labels.json": {
1293
+ "bytes": 417,
1294
+ "sha256": "da7b0098aabdadc9adf018f1c3b479eb708830b61d0d7807491966d2d88151c3"
1295
+ },
1296
+ "driver-recovery/confirmation-05-goal1-teacher.json": {
1297
+ "bytes": 409,
1298
+ "sha256": "d7cab4e3f1e42968d49303e38f7678eb27d0c0cf73587da49d7ca3b74e3a96a1"
1299
+ },
1300
+ "driver-recovery.json": {
1301
+ "bytes": 4029,
1302
+ "sha256": "ff75cc47952fd0809efbe91f8ee84d37f1726dc8e45d62080971e75ba6dcb68b"
1303
+ },
1304
+ "frozen.json": {
1305
+ "bytes": 1868,
1306
+ "sha256": "8b514fa449e32e1f2da401176f9b7513d2b7b080daf9d3154fc02d8edd5073a3"
1307
+ },
1308
+ "model/independent-review.md": {
1309
+ "bytes": 6392,
1310
+ "sha256": "25fd58ba949ec4dc9c9f9b8f7ac1e52df11900f04166054c69308dd47ece6ce2"
1311
+ },
1312
+ "model/installation-check/README.md": {
1313
+ "bytes": 461,
1314
+ "sha256": "4a3fc75fba3d8367a8e82d3551b6662edbb3eb903bd95fe4eaf44a0f3aaa58a3"
1315
+ },
1316
+ "model/installation-check/episode.json.gz": {
1317
+ "bytes": 695032,
1318
+ "sha256": "6f3263521e3393ee989e0c61993a436b741ac0b1deb504574c322bb040d0d5f0"
1319
+ },
1320
+ "model/installation-check/install.json": {
1321
+ "bytes": 3205,
1322
+ "sha256": "a62cc6c975f3c0a7f3ef83e7d1db2ee0b290b460b9cd8a0b0faac3711f96c116"
1323
+ },
1324
+ "model/installation-check/model.json": {
1325
+ "bytes": 2031879,
1326
+ "sha256": "2976a605575d9edefb5db366e72c5e006c0ce85a5531ad3d61512436864c8ded"
1327
+ },
1328
+ "model/installation-check/score.json": {
1329
+ "bytes": 543,
1330
+ "sha256": "55e54f70d725cdc8cfdf7a2ce7c1e8d23ca5244171245761d4ed28a08ab0dc6a"
1331
+ },
1332
+ "model/model.json": {
1333
+ "bytes": 2031879,
1334
+ "sha256": "2976a605575d9edefb5db366e72c5e006c0ce85a5531ad3d61512436864c8ded"
1335
+ },
1336
+ "model/shuffled-model.json": {
1337
+ "bytes": 1853724,
1338
+ "sha256": "43f1b7f9cbd8e003d1bb384b8e2b24ebba99d108cacfdfc42d99475fed7fd5e2"
1339
+ },
1340
+ "model/skill.json": {
1341
+ "bytes": 2391,
1342
+ "sha256": "0f8e27f9a3abf55a290a08935fcbf483b17eb6f036ea594857d6131fda0774d6"
1343
+ },
1344
+ "protocol.json": {
1345
+ "bytes": 12271,
1346
+ "sha256": "a7869a80ed801ab0ee85ab699a3d6231a17f4aa70109e519e0e03129ad30969f"
1347
+ },
1348
+ "report.json": {
1349
+ "bytes": 2903305,
1350
+ "sha256": "52ae9f37e845c0949879012fe9e5279192a543dc5f898a8a8d2fe9ab0f51d4fe"
1351
+ },
1352
+ "sources/LICENSE": {
1353
+ "bytes": 1076,
1354
+ "sha256": "ab47d245880a661fdca3c6a4cb91671031302deee50d64f8d2d6df86832962e1"
1355
+ },
1356
+ "sources/piper_imitation.py": {
1357
+ "bytes": 25561,
1358
+ "sha256": "849f66512c58441a240cd20230fcc58691234ddd254c5bbcbfd76abc21b14868"
1359
+ },
1360
+ "sources/piper_imitation_benchmark.py": {
1361
+ "bytes": 29643,
1362
+ "sha256": "0ef4649f8e84fc74166fa1acc4d7348aae885ffec238e4b4d714ccf2ca54993f"
1363
+ },
1364
+ "sources/piper_imitation_driver.py": {
1365
+ "bytes": 4532,
1366
+ "sha256": "b739dc1d75ed5140b0c07fca406a15d861e00208ea58f3113641b3b7256bd699"
1367
+ },
1368
+ "sources/piper_imitation_release.py": {
1369
+ "bytes": 9967,
1370
+ "sha256": "63c7c036bfdd08275a3b6b9664e34f23b2bd2e36153289e5a47e3b2f1e56fff4"
1371
+ },
1372
+ "sources/piper_imitation_score.py": {
1373
+ "bytes": 11462,
1374
+ "sha256": "0cd4663abfdd7f14f2f33d93e9a2bd45122b998d6160d45b8afcc880512cba2b"
1375
+ },
1376
+ "sources/piper_imitation_viewer.bundle.js": {
1377
+ "bytes": 527055,
1378
+ "sha256": "e4b152f23571eeb9c325f9a034ec22d7af8ab25a1ae2a7869fde769dab5e4aed"
1379
+ },
1380
+ "sources/piper_imitation_viewer.html": {
1381
+ "bytes": 17034,
1382
+ "sha256": "c046273d6bb32be0790120966cba2758efb1fb91aece9b4a5e8d7acedeacda69"
1383
+ },
1384
+ "sources/piper_imitation_viewer.js": {
1385
+ "bytes": 21123,
1386
+ "sha256": "3453443e086eb7629ba75893894f479d1a86b64a6323788cf8435e7253fce9b2"
1387
+ },
1388
+ "sources/piper_imitation_viewer.py": {
1389
+ "bytes": 14275,
1390
+ "sha256": "1258610a0ea11dbafc6437de79cf73561f3420e3914ce80a9c330b0c3744e0d6"
1391
+ },
1392
+ "sources/piper_learned_skill.py": {
1393
+ "bytes": 8713,
1394
+ "sha256": "8d5ab88ff6819920c8fdf8caf1cbf5f6eb2d5e5a597db8da01119a815800d960"
1395
+ },
1396
+ "sources/piper_motor_primitive.py": {
1397
+ "bytes": 17476,
1398
+ "sha256": "02a45b88913db6f223e4d9975eac64d4942a92739c5817c6ede4cc9fa332ed1c"
1399
+ },
1400
+ "sources/piper_task.py": {
1401
+ "bytes": 34355,
1402
+ "sha256": "e66a44a8df4e7a8ee42e4f3866f889f8797cdfb8e2688a146e09b75d2c76664f"
1403
+ },
1404
+ "sources/pyproject.toml.txt": {
1405
+ "bytes": 3500,
1406
+ "sha256": "1fcdd0ac3c21e06d6d656f24d67d53db5fbe60e6ccf3de7474299ebd3f334222"
1407
+ },
1408
+ "sources/reference_replay.py": {
1409
+ "bytes": 26037,
1410
+ "sha256": "f73731434d55bac150db16c7205d341a70b95ce13e582e7a23d11dee31b27a19"
1411
+ },
1412
+ "sources/reference_sim.py": {
1413
+ "bytes": 24336,
1414
+ "sha256": "c1201d22eb13dd07a236ee63cc4ba68e129f6067e8db61ed41af2d820eb5e3b8"
1415
+ },
1416
+ "sources/reference_task.py": {
1417
+ "bytes": 34166,
1418
+ "sha256": "bbc768ccc202b8dd41cbd235b206e6478806ce47c1f30ae15dc662c0c1edcc3e"
1419
+ },
1420
+ "sources/robot_profiles.lock.json": {
1421
+ "bytes": 35002,
1422
+ "sha256": "4b2ee2ca675aceb2f826983cb3082a3e08e9aa0ff419b23078abcff08ebcc6fe"
1423
+ },
1424
+ "sources/robot_profiles.py": {
1425
+ "bytes": 26493,
1426
+ "sha256": "fb90782a6a9979e282182118ae0e3e29d00f101255cc57378dd3f692672bb13d"
1427
+ },
1428
+ "training/dataset.json": {
1429
+ "bytes": 33497,
1430
+ "sha256": "7c75d64924c261e81d0319671b0819ac3736001514f14f6a6ba755b36b1f7cbe"
1431
+ },
1432
+ "training/samples.npz": {
1433
+ "bytes": 5028003,
1434
+ "sha256": "b654be09d1d375bf0eebc7e2cde6718673cdd68ed1f8117ac256ec275005f3ec"
1435
+ },
1436
+ "viewer/LICENSE": {
1437
+ "bytes": 1076,
1438
+ "sha256": "ab47d245880a661fdca3c6a4cb91671031302deee50d64f8d2d6df86832962e1"
1439
+ },
1440
+ "viewer/README.md": {
1441
+ "bytes": 715,
1442
+ "sha256": "04848111e7888d5fc359aff9054639b7f5c16fad5a07202ac754d12e802400a1"
1443
+ },
1444
+ "viewer/attempts/confirmation-00-goal0-hold.json.gz": {
1445
+ "bytes": 348140,
1446
+ "sha256": "ba4169c0fca3d2a71ec51ced05115caef4bdce796fe907009159b9c26db0eb09"
1447
+ },
1448
+ "viewer/attempts/confirmation-00-goal0-learned.json.gz": {
1449
+ "bytes": 689557,
1450
+ "sha256": "18a7b247718b82cea5aa5a78d842cc1cb64ec508671ce33064c47983324ebc97"
1451
+ },
1452
+ "viewer/attempts/confirmation-00-goal0-open_jaw.json.gz": {
1453
+ "bytes": 640159,
1454
+ "sha256": "acad2c0047e4ba7e13065f3f23d0628c552bb6e37ed45cb3025320aafc52bb62"
1455
+ },
1456
+ "viewer/attempts/confirmation-00-goal0-shuffled_labels.json.gz": {
1457
+ "bytes": 674145,
1458
+ "sha256": "0a15cfcd80eb6e78f4bfe1444e5789b7f75e906261902aaaa0dcde1836d639ea"
1459
+ },
1460
+ "viewer/attempts/confirmation-00-goal0-teacher.json.gz": {
1461
+ "bytes": 716307,
1462
+ "sha256": "83a58b8c3478178ab7950156c27b584af0b54b454ec76113f72a557f34be8c19"
1463
+ },
1464
+ "viewer/attempts/confirmation-00-goal1-hold.json.gz": {
1465
+ "bytes": 348779,
1466
+ "sha256": "4e28ed08e8939b41db3a0f4a8cabea885ff6d7232c618d4aaa044a91fb8901dd"
1467
+ },
1468
+ "viewer/attempts/confirmation-00-goal1-learned.json.gz": {
1469
+ "bytes": 697414,
1470
+ "sha256": "3c42fbab9c04dad72324469adfbcef58e7e9b3eeff17f5a5632c7c1606f4aee8"
1471
+ },
1472
+ "viewer/attempts/confirmation-00-goal1-open_jaw.json.gz": {
1473
+ "bytes": 641386,
1474
+ "sha256": "451d8c4d0f5bcb3c58722e2313162371ee115a1937e4aa9d7c27c482538ba930"
1475
+ },
1476
+ "viewer/attempts/confirmation-00-goal1-shuffled_labels.json.gz": {
1477
+ "bytes": 675209,
1478
+ "sha256": "49b5a7ba26dcbec83b7580bdf78c40ec3831b4bc14852658a648e6a5b4f10590"
1479
+ },
1480
+ "viewer/attempts/confirmation-00-goal1-teacher.json.gz": {
1481
+ "bytes": 720611,
1482
+ "sha256": "73e74e3ccb1d1e1e5e74fa3eab2a7bd678806b26b87a7b970815a602ecac1093"
1483
+ },
1484
+ "viewer/attempts/confirmation-01-goal0-hold.json.gz": {
1485
+ "bytes": 349254,
1486
+ "sha256": "220a0b49ba9db720e1f548db7fb2e41130d4b4c716892f828c1974ef7f12448d"
1487
+ },
1488
+ "viewer/attempts/confirmation-01-goal0-learned.json.gz": {
1489
+ "bytes": 693863,
1490
+ "sha256": "89158ca22cb3fc37c67b9f43ff8194d50a2d701e7ee4b43bddeb8aae52b53d18"
1491
+ },
1492
+ "viewer/attempts/confirmation-01-goal0-open_jaw.json.gz": {
1493
+ "bytes": 643762,
1494
+ "sha256": "50393ef21bbe1f669ed42d6fe0b32420d29fac2c0dc78d0500cbff4e37a49d4a"
1495
+ },
1496
+ "viewer/attempts/confirmation-01-goal0-shuffled_labels.json.gz": {
1497
+ "bytes": 675979,
1498
+ "sha256": "8b37d14590bd3a59db64f60c9375173c41aa8ac35fb9e9c532a20eb681fade15"
1499
+ },
1500
+ "viewer/attempts/confirmation-01-goal0-teacher.json.gz": {
1501
+ "bytes": 716263,
1502
+ "sha256": "f4232d130f00f6742116b3113bb018c39d33e8bf9fc2d3d109b139bb70bbeb6f"
1503
+ },
1504
+ "viewer/attempts/confirmation-01-goal1-hold.json.gz": {
1505
+ "bytes": 348667,
1506
+ "sha256": "5ec646fa9fdae41d788353ae99f03141b5910803082a379d2edbb7b00fe866ec"
1507
+ },
1508
+ "viewer/attempts/confirmation-01-goal1-learned.json.gz": {
1509
+ "bytes": 700065,
1510
+ "sha256": "be069d994584e9284db52520ff8f416caeb01ef6a9416ab5f6daf85a983ae5ec"
1511
+ },
1512
+ "viewer/attempts/confirmation-01-goal1-open_jaw.json.gz": {
1513
+ "bytes": 642455,
1514
+ "sha256": "0e892f0358b3f81a0c5b16759c030d1775c38dbc713daae2bf633aa87acad5dc"
1515
+ },
1516
+ "viewer/attempts/confirmation-01-goal1-shuffled_labels.json.gz": {
1517
+ "bytes": 674036,
1518
+ "sha256": "38b107e18b52649a686e9ff0034bdeb04e5283d140d3ac995926b5f39b823b50"
1519
+ },
1520
+ "viewer/attempts/confirmation-01-goal1-teacher.json.gz": {
1521
+ "bytes": 720531,
1522
+ "sha256": "0b8862446a10cf71a1c262d523d8e68f943b85b7301078fd6a74d10d7b0531c3"
1523
+ },
1524
+ "viewer/attempts/confirmation-02-goal0-hold.json.gz": {
1525
+ "bytes": 348126,
1526
+ "sha256": "cdf3d850971c43eb64055695daebf4d1304a1dff87e949dced5520951d471ee2"
1527
+ },
1528
+ "viewer/attempts/confirmation-02-goal0-learned.json.gz": {
1529
+ "bytes": 689114,
1530
+ "sha256": "353ea4b4c34aa0586f947baf783aba2170223f7e43bb89d9cb123dfab56ad6c8"
1531
+ },
1532
+ "viewer/attempts/confirmation-02-goal0-open_jaw.json.gz": {
1533
+ "bytes": 639563,
1534
+ "sha256": "b2f34c6734d69daa1a59ad96492a61bf6fe909fa0d07c365122de0588cf420bc"
1535
+ },
1536
+ "viewer/attempts/confirmation-02-goal0-shuffled_labels.json.gz": {
1537
+ "bytes": 675564,
1538
+ "sha256": "96464f4560808ac41cb3a96ce7722995415f2e5e0d7da2d7d62d7b0419c16eec"
1539
+ },
1540
+ "viewer/attempts/confirmation-02-goal0-teacher.json.gz": {
1541
+ "bytes": 715021,
1542
+ "sha256": "787e405e8b351a3077f984567c88ce13c42790e031ca4b3a8c09a6ac9454ab26"
1543
+ },
1544
+ "viewer/attempts/confirmation-02-goal1-hold.json.gz": {
1545
+ "bytes": 347963,
1546
+ "sha256": "3837ead8ead74c006261e15568911278270086da4f7ebbd97b7f13ecbb25b97b"
1547
+ },
1548
+ "viewer/attempts/confirmation-02-goal1-learned.json.gz": {
1549
+ "bytes": 693713,
1550
+ "sha256": "21e6c4cfcb7c4da35a0cec6fa70414606697068c19db53565e16edad9fada7fe"
1551
+ },
1552
+ "viewer/attempts/confirmation-02-goal1-open_jaw.json.gz": {
1553
+ "bytes": 641561,
1554
+ "sha256": "7018d7c3130ef02e03fcc55aff0360c5574ec59c35ed81ffc34f459c55e665bb"
1555
+ },
1556
+ "viewer/attempts/confirmation-02-goal1-shuffled_labels.json.gz": {
1557
+ "bytes": 676422,
1558
+ "sha256": "2d087e7ef871ba54d35f17fb8d200be0d1b5f0e4565ca770bcd3c4a1e65806a5"
1559
+ },
1560
+ "viewer/attempts/confirmation-02-goal1-teacher.json.gz": {
1561
+ "bytes": 718209,
1562
+ "sha256": "30bfb5436bafebc291ea8744b930054f88f86de586977d0ea6096a6c4bcb1a5e"
1563
+ },
1564
+ "viewer/attempts/confirmation-03-goal0-hold.json.gz": {
1565
+ "bytes": 349165,
1566
+ "sha256": "4eda2534a9921a53d86723e28fdd88173fa850f0cf5604e10481d30f699cc1ae"
1567
+ },
1568
+ "viewer/attempts/confirmation-03-goal0-learned.json.gz": {
1569
+ "bytes": 690589,
1570
+ "sha256": "65d34787230af8845253a90a023b7b0a8f1f70b6f09e3a8e899f14a174c9e255"
1571
+ },
1572
+ "viewer/attempts/confirmation-03-goal0-open_jaw.json.gz": {
1573
+ "bytes": 642963,
1574
+ "sha256": "26dc048239cfd29087f4036b3a6f6b87f3f1a818a89aecb61fb3ba4f6d6253e1"
1575
+ },
1576
+ "viewer/attempts/confirmation-03-goal0-shuffled_labels.json.gz": {
1577
+ "bytes": 676271,
1578
+ "sha256": "22702a54d0cf81459218c03952def341f54be1703f8799d55ca63ad14ef3ff0f"
1579
+ },
1580
+ "viewer/attempts/confirmation-03-goal0-teacher.json.gz": {
1581
+ "bytes": 715458,
1582
+ "sha256": "5b23f887673b6214232af9a69b74ad7c840915223d8b2ad3746c2b4ac0a53476"
1583
+ },
1584
+ "viewer/attempts/confirmation-03-goal1-hold.json.gz": {
1585
+ "bytes": 349239,
1586
+ "sha256": "e70fbfae62449ad2bf45ba080281dd3d8384fc61723f43ae28844ea17b390bb6"
1587
+ },
1588
+ "viewer/attempts/confirmation-03-goal1-learned.json.gz": {
1589
+ "bytes": 694718,
1590
+ "sha256": "f0820f5e2a4a99f3218918cb2e6483618597cb3249a066282ddb2435cf7db9ec"
1591
+ },
1592
+ "viewer/attempts/confirmation-03-goal1-open_jaw.json.gz": {
1593
+ "bytes": 642935,
1594
+ "sha256": "daca2755b3b6813b99393a7b3009e2b9f43c5778678374535ef10e03d49ffc3e"
1595
+ },
1596
+ "viewer/attempts/confirmation-03-goal1-shuffled_labels.json.gz": {
1597
+ "bytes": 677218,
1598
+ "sha256": "8f2b0c87d6c176e757aed08143ca4888502d8836851ad8d83c82d026080b7e61"
1599
+ },
1600
+ "viewer/attempts/confirmation-03-goal1-teacher.json.gz": {
1601
+ "bytes": 719577,
1602
+ "sha256": "008e9fb0f4da966629720751df434aec4279f196eaac3e49f50d44e8de7fd17b"
1603
+ },
1604
+ "viewer/attempts/confirmation-04-goal0-hold.json.gz": {
1605
+ "bytes": 348069,
1606
+ "sha256": "3c1e30672197cb92eb184b70354e9c35df180619eed6b13d47e8e21e20f8776b"
1607
+ },
1608
+ "viewer/attempts/confirmation-04-goal0-learned.json.gz": {
1609
+ "bytes": 691902,
1610
+ "sha256": "1707ff8fe87721e803f71a4cab07c24231a408938c7a6d67d6a5c2abed36e607"
1611
+ },
1612
+ "viewer/attempts/confirmation-04-goal0-open_jaw.json.gz": {
1613
+ "bytes": 642216,
1614
+ "sha256": "60917002b573a46ce62ed84e3d7ac96e61389eb062e6198c31cf0b1704590e46"
1615
+ },
1616
+ "viewer/attempts/confirmation-04-goal0-shuffled_labels.json.gz": {
1617
+ "bytes": 672848,
1618
+ "sha256": "7d3cbd99d18adc3cbb2dd0f4414b6312f6e0cb829ad4ee134fa130a2e2a284ff"
1619
+ },
1620
+ "viewer/attempts/confirmation-04-goal0-teacher.json.gz": {
1621
+ "bytes": 714837,
1622
+ "sha256": "eefc04aa96e37d956a1515b26796304a415db9376db7c3980d9d18b159ac5998"
1623
+ },
1624
+ "viewer/attempts/confirmation-04-goal1-hold.json.gz": {
1625
+ "bytes": 348021,
1626
+ "sha256": "70bdf9e4285b49c9f8368109cf2833757678aac7224591608dc347745244b1d3"
1627
+ },
1628
+ "viewer/attempts/confirmation-04-goal1-learned.json.gz": {
1629
+ "bytes": 693200,
1630
+ "sha256": "4d77238dd45b2e4b234e1a80398564efa15fd8e70848b28930e0037dff04bf25"
1631
+ },
1632
+ "viewer/attempts/confirmation-04-goal1-open_jaw.json.gz": {
1633
+ "bytes": 641730,
1634
+ "sha256": "278b5d0dd337f14011b78301e9757d4c11b96f39ab2285e8718e0ef447d71098"
1635
+ },
1636
+ "viewer/attempts/confirmation-04-goal1-shuffled_labels.json.gz": {
1637
+ "bytes": 675268,
1638
+ "sha256": "abd1be69f4ac6fd6bc2b0c63c8fcad5b1c290440f64c53fa391231e8bef610a5"
1639
+ },
1640
+ "viewer/attempts/confirmation-04-goal1-teacher.json.gz": {
1641
+ "bytes": 716678,
1642
+ "sha256": "ede935ac847a27702cd3a4e4252f750ff5dc2bb97b5516a94d130f8d793070c4"
1643
+ },
1644
+ "viewer/attempts/confirmation-05-goal0-hold.json.gz": {
1645
+ "bytes": 348034,
1646
+ "sha256": "a8c2a986b399d0828220586ff3d21c50e235be147800bb9d49d5fa4bb85cd525"
1647
+ },
1648
+ "viewer/attempts/confirmation-05-goal0-learned.json.gz": {
1649
+ "bytes": 691395,
1650
+ "sha256": "5fd83fc2a7409da76542529a3d45deb7c21fd5db9fafaf727aef6b049e5f2a5d"
1651
+ },
1652
+ "viewer/attempts/confirmation-05-goal0-open_jaw.json.gz": {
1653
+ "bytes": 642094,
1654
+ "sha256": "6fc08f3678494e0954c681c17373d72ae3ff22f6b620b8075cf1b9bb27ca2f6f"
1655
+ },
1656
+ "viewer/attempts/confirmation-05-goal0-shuffled_labels.json.gz": {
1657
+ "bytes": 669868,
1658
+ "sha256": "d60c53f1c5839b0aa1d98e15412b95d9df789b3923f8f722d7cda049a1461dc3"
1659
+ },
1660
+ "viewer/attempts/confirmation-05-goal0-teacher.json.gz": {
1661
+ "bytes": 713838,
1662
+ "sha256": "f680e89dd8593f541e414933df7fc204689ae072557e16e4be98833bfc627b92"
1663
+ },
1664
+ "viewer/attempts/confirmation-05-goal1-hold.json.gz": {
1665
+ "bytes": 348137,
1666
+ "sha256": "e823e1e45502bdcac22f64737528b5689c294e31e4aa556fcaf5e5eef3812608"
1667
+ },
1668
+ "viewer/attempts/confirmation-05-goal1-learned.json.gz": {
1669
+ "bytes": 694167,
1670
+ "sha256": "74f66613e9afd152a0062fbb9416cd0d11812b68a9ec2f76321a768a9912f5ed"
1671
+ },
1672
+ "viewer/attempts/confirmation-05-goal1-open_jaw.json.gz": {
1673
+ "bytes": 641414,
1674
+ "sha256": "056eb5da7e5d13b21ea2ce525b2eb61ef47cffc0812074e9bb3ad3432b8e9144"
1675
+ },
1676
+ "viewer/attempts/confirmation-05-goal1-shuffled_labels.json.gz": {
1677
+ "bytes": 669021,
1678
+ "sha256": "db0b15080f09802be8e767d7f8928cbf0d1918b1f3782ad79256ad51a039f1cc"
1679
+ },
1680
+ "viewer/attempts/confirmation-05-goal1-teacher.json.gz": {
1681
+ "bytes": 717527,
1682
+ "sha256": "faaee4ae3cee6d1a6a1878850fa6fd84bd5e56235afa164207c9eef1a3c6685d"
1683
+ },
1684
+ "viewer/frozen.json": {
1685
+ "bytes": 1868,
1686
+ "sha256": "8b514fa449e32e1f2da401176f9b7513d2b7b080daf9d3154fc02d8edd5073a3"
1687
+ },
1688
+ "viewer/geometry.bin": {
1689
+ "bytes": 6736872,
1690
+ "sha256": "2e9a97f9a4c776895f0f6888475f9bb161e659e426d2c5bf339022f25b267def"
1691
+ },
1692
+ "viewer/geometry.bin.gz": {
1693
+ "bytes": 3574720,
1694
+ "sha256": "51365a5a661d8062e28c66abc6bdb843ee410811f84b49d62c5878c265b3631f"
1695
+ },
1696
+ "viewer/index.html": {
1697
+ "bytes": 17034,
1698
+ "sha256": "c046273d6bb32be0790120966cba2758efb1fb91aece9b4a5e8d7acedeacda69"
1699
+ },
1700
+ "viewer/licenses/agilex_piper/LICENSE": {
1701
+ "bytes": 1065,
1702
+ "sha256": "e32d78fd3761052ab0b2bb42fef8a7a9ad3f298d315d305333c349d2aff1f134"
1703
+ },
1704
+ "viewer/licenses/agilex_piper/README.md": {
1705
+ "bytes": 1681,
1706
+ "sha256": "ab0d218758ec6c298417407962f49179e369236e8f316dbaa7671756d6f8eb77"
1707
+ },
1708
+ "viewer/motion.bin": {
1709
+ "bytes": 5381376,
1710
+ "sha256": "5349216e4f5f6254879bf241ba04796fa067fef40c4cb9ed930aeaa641679203"
1711
+ },
1712
+ "viewer/motion.bin.gz": {
1713
+ "bytes": 2723528,
1714
+ "sha256": "6861e344afedb02b3359e450c85223d8e706a43e3a8ea45a14dcf9ffdef0eb83"
1715
+ },
1716
+ "viewer/motion.json": {
1717
+ "bytes": 7230159,
1718
+ "sha256": "0b10b5e6989ad166e2083465bd07ba8c1b433056ec2d4535418043743699c3d1"
1719
+ },
1720
+ "viewer/piper_imitation_viewer.bundle.js": {
1721
+ "bytes": 527055,
1722
+ "sha256": "e4b152f23571eeb9c325f9a034ec22d7af8ab25a1ae2a7869fde769dab5e4aed"
1723
+ },
1724
+ "viewer/protocol.json": {
1725
+ "bytes": 12271,
1726
+ "sha256": "a7869a80ed801ab0ee85ab699a3d6231a17f4aa70109e519e0e03129ad30969f"
1727
+ },
1728
+ "viewer/reference_replay.third-party.txt": {
1729
+ "bytes": 1199,
1730
+ "sha256": "ea4da6cf7a8a54649702f0eb8d057c8ced12f8fed2329c5e96d92a3316922813"
1731
+ },
1732
+ "viewer/report.json": {
1733
+ "bytes": 2903305,
1734
+ "sha256": "52ae9f37e845c0949879012fe9e5279192a543dc5f898a8a8d2fe9ab0f51d4fe"
1735
+ },
1736
+ "viewer/scene.json": {
1737
+ "bytes": 49213,
1738
+ "sha256": "6f620c195264db569f56caa88a9834e2c5fe06127173ca3bb06548cd1d015212"
1739
+ },
1740
+ "viewer/viewer-integrity.json": {
1741
+ "bytes": 10466,
1742
+ "sha256": "68718dd6d59ad837f9294a8dd985d3701ad0006b98d226a80d395d4a4a270c15"
1743
+ }
1744
+ },
1745
+ "publication_export": {
1746
+ "original_seal_sha256": "d726ba55a5b5ee1d47a09408137d157e87abd4fddf7f3370eba21f66cafa0a8a",
1747
+ "excluded_generated_python_bytecode": [
1748
+ "development_models/mlp160/sources/__pycache__/piper_imitation.cpython-312.pyc",
1749
+ "development_models/primitive201/sources/__pycache__/piper_motor_primitive.cpython-312.pyc"
1750
+ ],
1751
+ "native_tapes_models_and_plaintext_sources_changed": false
1752
+ }
1753
+ }
model/independent-review.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PiPER learned placement v0.1: independent confirmation audit
2
+
3
+ ## Audit result
4
+
5
+ I independently recomputed the fixed-reference score for each of the 60 scheduled confirmation tapes and compared it with both the report row and saved score file. All tape hashes, case identities, seeds, goals, model/runtime bindings, and recomputed scores matched. The existing release audit also completed with the same roster and outcomes: 60 verified attempts and no split overlap.
6
+
7
+ The run is bound to report SHA-256 `52ae9f37e845c0949879012fe9e5279192a543dc5f898a8a8d2fe9ab0f51d4fe`, frozen manifest SHA-256 `8b514fa449e32e1f2da401176f9b7513d2b7b080daf9d3154fc02d8edd5073a3`, protocol SHA-256 `a7869a80ed801ab0ee85ab699a3d6231a17f4aa70109e519e0e03129ad30969f`, and selected model SHA-256 `2976a605575d9edefb5db366e72c5e006c0ce85a5531ad3d61512436864c8ded`. The selected artifact is `primitive401`, schema `dvidia.piper-motor-primitive/v2`. The current runtime hashes, training dataset and sample hashes, selected and shuffled model hashes, and protocol hash all match `frozen.json`.
8
+
9
+ The confirmation plan contains six held-out starts with both known goals, giving 12 scenes per arm and 60 attempts across five arms. The confirmation-opened marker contains the exact frozen 60-attempt schedule. There is no overlap among the 16 training starts, 4 development starts, and 6 confirmation starts. All 32 scheduled training demonstrations were successful, used, and contributed 32,000 frames. Development selection was based on the existing eight dev cases: `mlp160` 0/8, `absolute240` 0/8, `primitive201` 0/8, and selected `primitive401` 1/8. The held-out outcomes were not used for model selection.
10
+
11
+ | Arm | Successes / scheduled | Independently recomputed failures |
12
+ |---|---:|---:|
13
+ | Learned primitive | 5 / 12 | 7 native-outcome failures |
14
+ | Authored teacher | 12 / 12 | 0 |
15
+ | Open jaw | 0 / 12 | 12 |
16
+ | Hold | 0 / 12 | 12 |
17
+ | Shuffled labels | 0 / 12 | 12 |
18
+
19
+ All 12 learned episodes passed the independent terminal reference predicate, including the seven that failed overall native outcome gates. Thus the reported 5/12 primary success rate is not a terminal XY-only result: the terminal pose can be close while the native history gates reject the episode. The teacher and controls were scored against the same per-case goals.
20
+
21
+ The shuffled-label arm is the declared full frame-wise label permutation. Its training receipt correctly describes this as a weak temporal negative control, not a whole-trajectory association shuffle; its 0/12 result should be interpreted within that limit.
22
+
23
+ ## Seven learned failures
24
+
25
+ Every learned failure was a valid 20-second timeout. All seven ended with the object supported by the table, both finger contact counts at zero, and the jaw fully open. Their final XY errors were 3.57–11.01 mm, inside the configured 25 mm tolerance. The independent terminal predicate found 4.50–5.62 seconds of qualifying terminal dwell, and reconstructed 1.38–1.96 seconds of sustained table-free bilateral lift from the dense trace, above the 0.10-second lift requirement. Native `lift_dwell_seconds` was zero at the end because it is a live streak counter that resets after release; it was not treated as evidence that no lift occurred.
26
+
27
+ The failures were instead rejected by native recorded history: native dwell remained zero in all seven; four had `retention_lost=true`; three had `carry_complete=false`; and five recorded unexpected-contact ticks. These categories overlap. The raw contact-pair IDs below come from each episode's `contact_pair_native_ticks`; they match the corresponding unexpected-contact count. The episode traces do not carry a geometry-ID-to-body-name mapping, so this audit does not assign those IDs to a particular robot part or infer a collision cause.
28
+
29
+ | Case | Goal | Final XY error | Carry complete | Retention lost | Carry-loss events; max gap / tolerance | Unexpected ticks (recorded pair IDs) |
30
+ |---|---|---:|:---:|:---:|---:|---:|
31
+ | `confirmation-00-goal1` | (0.40, −0.08) | 10.91 mm | yes | yes | 1; 63 ms / 40 ms | 0 |
32
+ | `confirmation-01-goal0` | (0.35, 0.08) | 4.83 mm | no | yes | 1; 6.904 s / 40 ms | 199 (`1:88`) |
33
+ | `confirmation-01-goal1` | (0.40, −0.08) | 10.08 mm | yes | no | 0; 3 ms / 40 ms | 117 (`1:85`) |
34
+ | `confirmation-02-goal0` | (0.35, 0.08) | 5.23 mm | no | yes | 2; 6.143 s / 40 ms | 92 (`1:88`) |
35
+ | `confirmation-02-goal1` | (0.40, −0.08) | 10.80 mm | no | yes | 1; 5.816 s / 40 ms | 0 |
36
+ | `confirmation-05-goal0` | (0.35, 0.08) | 3.57 mm | yes | no | 0; 0 s / 40 ms | 84 (`1:88`) |
37
+ | `confirmation-05-goal1` | (0.40, −0.08) | 11.01 mm | yes | no | 0; 0 s / 40 ms | 60 (`1:85`) |
38
+
39
+ All seven also recorded `lift_seen=true`, `grasp_seen=true`, maximum lift of 95–109 mm, and a trace-reconstructed lift dwell above threshold. The two failures with no unexpected-contact ticks still failed native retention/carry history and native dwell. This evidence identifies the failed gates; it does not establish why the feed-forward trajectory produced those histories. The primitive has no learned contact feedback or recovery, and these traces do not test such behavior.
40
+
41
+ ## Recovery and limits
42
+
43
+ The frozen driver hit its tuple-versus-JSON-list configuration identity guard after saving a new tape. The separate recovery receipt contains exactly 60 scheduled recovery records, each bound to the frozen run, adapter, and tape digest; it reports `completed_tapes_reexecuted=0` and `frozen_runtime_changed=false`. There is exactly one start marker, tape, and score file per scheduled case/arm. All records were then scored through the original frozen confirmation path. This is consistent evidence of resuming saved tapes rather than rerunning physics. The receipt and simulator-authored traces are not an external attestation of process execution or authenticated sensor data.
44
+
45
+ The evidence supports a preliminary, simulation-only result for synthetic authored-controller distillation and interpolation to unseen starts with known goals. Five held-out successes show some task completion, while the teacher's 12/12 and the seven learned native-history failures show a substantial reliability gap. The 12 fixed scenes are not a broad reliability sample. This is not evidence for human or video imitation, visual perception, contact-reactive control, physical PiPER readiness, or transfer to other objects, goals, or robots.
model/installation-check/README.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Installed-wheel smoke check
2
+
3
+ A fresh virtual environment ran the downloaded-model interface on the previously passing development start (0.309, -0.04) m, goal 1. This post-evaluation installation check was deliberately selected from development success; it is not an independent confirmation result and is excluded from the 60-attempt roster. No source checkout was added to PYTHONPATH. Full native trace, independent score and install manifest are retained.
model/installation-check/episode.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f3263521e3393ee989e0c61993a436b741ac0b1deb504574c322bb040d0d5f0
3
+ size 695032
model/installation-check/install.json ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "dvidia.piper-learned-skill-install/v1",
3
+ "scope": "Simulation-only installation of a learned PiPER policy distilled from synthetic authored-controller demonstrations. Privileged native simulator measurements; uncalibrated contacts, no camera learning or physical robot qualification.",
4
+ "status": "completed",
5
+ "success": true,
6
+ "physical_robot_ready": false,
7
+ "policy_kind": "learned",
8
+ "policy_learned": true,
9
+ "teacher_available": false,
10
+ "teacher_fallback_calls": 0,
11
+ "observation_origin": "privileged_native_simulator_state",
12
+ "model_sha256": "2976a605575d9edefb5db366e72c5e006c0ce85a5531ad3d61512436864c8ded",
13
+ "installed_model_sha256": "2976a605575d9edefb5db366e72c5e006c0ce85a5531ad3d61512436864c8ded",
14
+ "model_file": "model.json",
15
+ "model_schema": "dvidia.piper-motor-primitive/v2",
16
+ "feature_contract": "initial_object_xy_known_goal_elapsed_time__live_q_only_for_native_cap/v1",
17
+ "trained_scope": {
18
+ "mass_kg": 0.04,
19
+ "start_x_m": [
20
+ 0.284,
21
+ 0.314
22
+ ],
23
+ "start_y_m": [
24
+ -0.045,
25
+ -0.015
26
+ ],
27
+ "known_goals_xy_m": [
28
+ [
29
+ 0.35,
30
+ 0.08
31
+ ],
32
+ [
33
+ 0.4,
34
+ -0.08
35
+ ]
36
+ ]
37
+ },
38
+ "start_xy_m": [
39
+ 0.309,
40
+ -0.04
41
+ ],
42
+ "goal_index": 1,
43
+ "goal_xy_m": [
44
+ 0.4,
45
+ -0.08
46
+ ],
47
+ "config": {
48
+ "timestep": 0.001,
49
+ "control_dt": 0.02,
50
+ "timeout_s": 20.0,
51
+ "settle_s": 0.5,
52
+ "object_position_m": [
53
+ 0.309,
54
+ -0.04,
55
+ 0.082
56
+ ],
57
+ "target_position_m": [
58
+ 0.4,
59
+ -0.08,
60
+ 0.08
61
+ ],
62
+ "object_half_size_m": [
63
+ 0.02,
64
+ 0.02,
65
+ 0.02
66
+ ],
67
+ "mass_kg": 0.04,
68
+ "friction": 0.8,
69
+ "table_top_m": 0.06,
70
+ "table_center_xy_m": [
71
+ 0.38,
72
+ 0.0
73
+ ],
74
+ "table_half_size_xy_m": [
75
+ 0.17,
76
+ 0.22
77
+ ],
78
+ "table_thickness_m": 0.04,
79
+ "goal_position_tolerance_m": 0.025,
80
+ "goal_dwell_s": 0.25,
81
+ "min_lift_m": 0.06,
82
+ "min_lift_dwell_s": 0.1,
83
+ "retreat_clearance_m": 0.1,
84
+ "joint_target_rate_rad_s": 1.5,
85
+ "jaw_target_rate_m_s": 0.05,
86
+ "tool_orientation_wxyz": [
87
+ 0.0,
88
+ 0.0,
89
+ 1.0,
90
+ 0.0
91
+ ],
92
+ "carry_orientation_wxyz": [
93
+ 0.25881904510252074,
94
+ 0.0,
95
+ 0.9659258262890683,
96
+ 0.0
97
+ ]
98
+ },
99
+ "episode_file": "episode.json.gz",
100
+ "score_file": "score.json",
101
+ "created_at_utc": "2026-10-27T04:25:26Z",
102
+ "timing_scope": "Local CPU simulation compute; excludes sensing, communications and hardware actuation.",
103
+ "reason": "success",
104
+ "episode_sha256": "6f3263521e3393ee989e0c61993a436b741ac0b1deb504574c322bb040d0d5f0",
105
+ "score_sha256": "55e54f70d725cdc8cfdf7a2ce7c1e8d23ca5244171245761d4ed28a08ab0dc6a",
106
+ "native_valid": true,
107
+ "error": null,
108
+ "asset_provenance": {
109
+ "profile": "piper",
110
+ "repository": "https://github.com/google-deepmind/mujoco_menagerie",
111
+ "commit": "0059d4335f8156206f63a35662313385f7ad6d74",
112
+ "files_verified": 90,
113
+ "bytes_verified": 34562302,
114
+ "lock_sha256": "4b2ee2ca675aceb2f826983cb3082a3e08e9aa0ff419b23078abcff08ebcc6fe",
115
+ "simulation_asset_license": "MIT"
116
+ },
117
+ "compiled_model_sha256": "291ed4d37c2e21af3dcb56587d081272d7fa0c2ddc13e1c85d5ccd6672913324",
118
+ "attempt_wall_seconds": 32.17150895809755
119
+ }
model/installation-check/model.json ADDED
The diff for this file is too large to render. See raw diff
 
model/installation-check/score.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "success": true,
3
+ "reason": "success",
4
+ "reference_xy_m": [
5
+ 0.4,
6
+ -0.08
7
+ ],
8
+ "terminal_reference_success": true,
9
+ "native_outcome_success": true,
10
+ "native_outcome_valid": true,
11
+ "terminal_dwell_s": 4.719999999999999,
12
+ "required_dwell_s": 0.25,
13
+ "terminal_xy_error_m": 0.012002855712791811,
14
+ "trace_lift_dwell_s": 1.7599999999999998,
15
+ "required_lift_dwell_s": 0.1,
16
+ "sample_interval_s": 0.02,
17
+ "trajectory_complete": true,
18
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
19
+ }
model/model.json ADDED
The diff for this file is too large to render. See raw diff
 
model/shuffled-model.json ADDED
The diff for this file is too large to render. See raw diff
 
model/skill.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "dvidia.learned-simulation-skill/v1",
3
+ "id": "piper-block-placement-v01",
4
+ "publisher": "DVIDIA",
5
+ "license": "MIT",
6
+ "release_stage": "research",
7
+ "model_file": "model.json",
8
+ "model_sha256": "2976a605575d9edefb5db366e72c5e006c0ce85a5531ad3d61512436864c8ded",
9
+ "model_schema": "dvidia.piper-motor-primitive/v2",
10
+ "feature_contract": "initial_object_xy_known_goal_elapsed_time__live_q_only_for_native_cap/v1",
11
+ "supervision_origin": "synthetic_authored_controller",
12
+ "embodiment": "piper",
13
+ "profile_lock_sha256": "4b2ee2ca675aceb2f826983cb3082a3e08e9aa0ff419b23078abcff08ebcc6fe",
14
+ "simulation_only": true,
15
+ "physical_robot_ready": false,
16
+ "learned_contact_recovery": false,
17
+ "native_control": {
18
+ "arm": "six joint position targets, radians",
19
+ "jaw": "one coupled jaw position target, metres",
20
+ "control_dt_s": 0.02,
21
+ "timestep_s": 0.001,
22
+ "authored_native_servos": true
23
+ },
24
+ "scope": {
25
+ "object": "one 40 g rigid block",
26
+ "start_x_m": [
27
+ 0.284,
28
+ 0.314
29
+ ],
30
+ "start_y_m": [
31
+ -0.045,
32
+ -0.015
33
+ ],
34
+ "known_goal_xy_m": [
35
+ [
36
+ 0.35,
37
+ 0.08
38
+ ],
39
+ [
40
+ 0.4,
41
+ -0.08
42
+ ]
43
+ ],
44
+ "goal_z_m": 0.08,
45
+ "novel_goals_tested": false,
46
+ "novel_objects_tested": false,
47
+ "disturbance_recovery_tested": false
48
+ },
49
+ "confirmation": {
50
+ "scheduled": 12,
51
+ "valid": 12,
52
+ "successes": 5,
53
+ "failures": 7,
54
+ "reasons": {
55
+ "success": 5,
56
+ "native_outcome_failed": 7
57
+ },
58
+ "descriptive_wilson_95_interval": [
59
+ 0.19326031365875665,
60
+ 0.6804886874504503
61
+ ],
62
+ "inference_compute": {
63
+ "samples": 12000,
64
+ "p50_s": 0.00014808354899287224,
65
+ "p95_s": 0.0010386524023488148,
66
+ "p99_s": 0.0032591192470863496,
67
+ "maximum_s": 0.12923712516203523
68
+ },
69
+ "control_step_compute": {
70
+ "samples": 12000,
71
+ "p50_s": 0.002158749382942915,
72
+ "p95_s": 0.014440981671214097,
73
+ "p99_s": 0.03255935212131595,
74
+ "maximum_s": 0.5332735842093825
75
+ },
76
+ "episode_wall": {
77
+ "samples": 12,
78
+ "p50_s": 3.391443145694211,
79
+ "p95_s": 14.094288227381174,
80
+ "p99_s": 21.14088054546156,
81
+ "maximum_s": 22.90252862498164
82
+ },
83
+ "missed_20ms_compute_boundaries": 344,
84
+ "process_peak_rss_bytes": 736444416
85
+ },
86
+ "report_sha256": "52ae9f37e845c0949879012fe9e5279192a543dc5f898a8a8d2fe9ab0f51d4fe"
87
+ }
protocol.json ADDED
@@ -0,0 +1,661 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "dvidia.piper-imitation-study/v1",
3
+ "cases": {
4
+ "train": [
5
+ {
6
+ "id": "train-00-goal0",
7
+ "start_xy": [
8
+ 0.284,
9
+ -0.045
10
+ ],
11
+ "goal_xy": [
12
+ 0.35,
13
+ 0.08
14
+ ],
15
+ "seed": 261000
16
+ },
17
+ {
18
+ "id": "train-00-goal1",
19
+ "start_xy": [
20
+ 0.284,
21
+ -0.045
22
+ ],
23
+ "goal_xy": [
24
+ 0.4,
25
+ -0.08
26
+ ],
27
+ "seed": 261001
28
+ },
29
+ {
30
+ "id": "train-01-goal0",
31
+ "start_xy": [
32
+ 0.284,
33
+ -0.035
34
+ ],
35
+ "goal_xy": [
36
+ 0.35,
37
+ 0.08
38
+ ],
39
+ "seed": 261002
40
+ },
41
+ {
42
+ "id": "train-01-goal1",
43
+ "start_xy": [
44
+ 0.284,
45
+ -0.035
46
+ ],
47
+ "goal_xy": [
48
+ 0.4,
49
+ -0.08
50
+ ],
51
+ "seed": 261003
52
+ },
53
+ {
54
+ "id": "train-02-goal0",
55
+ "start_xy": [
56
+ 0.284,
57
+ -0.025
58
+ ],
59
+ "goal_xy": [
60
+ 0.35,
61
+ 0.08
62
+ ],
63
+ "seed": 261004
64
+ },
65
+ {
66
+ "id": "train-02-goal1",
67
+ "start_xy": [
68
+ 0.284,
69
+ -0.025
70
+ ],
71
+ "goal_xy": [
72
+ 0.4,
73
+ -0.08
74
+ ],
75
+ "seed": 261005
76
+ },
77
+ {
78
+ "id": "train-03-goal0",
79
+ "start_xy": [
80
+ 0.284,
81
+ -0.015
82
+ ],
83
+ "goal_xy": [
84
+ 0.35,
85
+ 0.08
86
+ ],
87
+ "seed": 261006
88
+ },
89
+ {
90
+ "id": "train-03-goal1",
91
+ "start_xy": [
92
+ 0.284,
93
+ -0.015
94
+ ],
95
+ "goal_xy": [
96
+ 0.4,
97
+ -0.08
98
+ ],
99
+ "seed": 261007
100
+ },
101
+ {
102
+ "id": "train-04-goal0",
103
+ "start_xy": [
104
+ 0.294,
105
+ -0.045
106
+ ],
107
+ "goal_xy": [
108
+ 0.35,
109
+ 0.08
110
+ ],
111
+ "seed": 261008
112
+ },
113
+ {
114
+ "id": "train-04-goal1",
115
+ "start_xy": [
116
+ 0.294,
117
+ -0.045
118
+ ],
119
+ "goal_xy": [
120
+ 0.4,
121
+ -0.08
122
+ ],
123
+ "seed": 261009
124
+ },
125
+ {
126
+ "id": "train-05-goal0",
127
+ "start_xy": [
128
+ 0.294,
129
+ -0.035
130
+ ],
131
+ "goal_xy": [
132
+ 0.35,
133
+ 0.08
134
+ ],
135
+ "seed": 261010
136
+ },
137
+ {
138
+ "id": "train-05-goal1",
139
+ "start_xy": [
140
+ 0.294,
141
+ -0.035
142
+ ],
143
+ "goal_xy": [
144
+ 0.4,
145
+ -0.08
146
+ ],
147
+ "seed": 261011
148
+ },
149
+ {
150
+ "id": "train-06-goal0",
151
+ "start_xy": [
152
+ 0.294,
153
+ -0.025
154
+ ],
155
+ "goal_xy": [
156
+ 0.35,
157
+ 0.08
158
+ ],
159
+ "seed": 261012
160
+ },
161
+ {
162
+ "id": "train-06-goal1",
163
+ "start_xy": [
164
+ 0.294,
165
+ -0.025
166
+ ],
167
+ "goal_xy": [
168
+ 0.4,
169
+ -0.08
170
+ ],
171
+ "seed": 261013
172
+ },
173
+ {
174
+ "id": "train-07-goal0",
175
+ "start_xy": [
176
+ 0.294,
177
+ -0.015
178
+ ],
179
+ "goal_xy": [
180
+ 0.35,
181
+ 0.08
182
+ ],
183
+ "seed": 261014
184
+ },
185
+ {
186
+ "id": "train-07-goal1",
187
+ "start_xy": [
188
+ 0.294,
189
+ -0.015
190
+ ],
191
+ "goal_xy": [
192
+ 0.4,
193
+ -0.08
194
+ ],
195
+ "seed": 261015
196
+ },
197
+ {
198
+ "id": "train-08-goal0",
199
+ "start_xy": [
200
+ 0.304,
201
+ -0.045
202
+ ],
203
+ "goal_xy": [
204
+ 0.35,
205
+ 0.08
206
+ ],
207
+ "seed": 261016
208
+ },
209
+ {
210
+ "id": "train-08-goal1",
211
+ "start_xy": [
212
+ 0.304,
213
+ -0.045
214
+ ],
215
+ "goal_xy": [
216
+ 0.4,
217
+ -0.08
218
+ ],
219
+ "seed": 261017
220
+ },
221
+ {
222
+ "id": "train-09-goal0",
223
+ "start_xy": [
224
+ 0.304,
225
+ -0.035
226
+ ],
227
+ "goal_xy": [
228
+ 0.35,
229
+ 0.08
230
+ ],
231
+ "seed": 261018
232
+ },
233
+ {
234
+ "id": "train-09-goal1",
235
+ "start_xy": [
236
+ 0.304,
237
+ -0.035
238
+ ],
239
+ "goal_xy": [
240
+ 0.4,
241
+ -0.08
242
+ ],
243
+ "seed": 261019
244
+ },
245
+ {
246
+ "id": "train-10-goal0",
247
+ "start_xy": [
248
+ 0.304,
249
+ -0.025
250
+ ],
251
+ "goal_xy": [
252
+ 0.35,
253
+ 0.08
254
+ ],
255
+ "seed": 261020
256
+ },
257
+ {
258
+ "id": "train-10-goal1",
259
+ "start_xy": [
260
+ 0.304,
261
+ -0.025
262
+ ],
263
+ "goal_xy": [
264
+ 0.4,
265
+ -0.08
266
+ ],
267
+ "seed": 261021
268
+ },
269
+ {
270
+ "id": "train-11-goal0",
271
+ "start_xy": [
272
+ 0.304,
273
+ -0.015
274
+ ],
275
+ "goal_xy": [
276
+ 0.35,
277
+ 0.08
278
+ ],
279
+ "seed": 261022
280
+ },
281
+ {
282
+ "id": "train-11-goal1",
283
+ "start_xy": [
284
+ 0.304,
285
+ -0.015
286
+ ],
287
+ "goal_xy": [
288
+ 0.4,
289
+ -0.08
290
+ ],
291
+ "seed": 261023
292
+ },
293
+ {
294
+ "id": "train-12-goal0",
295
+ "start_xy": [
296
+ 0.314,
297
+ -0.045
298
+ ],
299
+ "goal_xy": [
300
+ 0.35,
301
+ 0.08
302
+ ],
303
+ "seed": 261024
304
+ },
305
+ {
306
+ "id": "train-12-goal1",
307
+ "start_xy": [
308
+ 0.314,
309
+ -0.045
310
+ ],
311
+ "goal_xy": [
312
+ 0.4,
313
+ -0.08
314
+ ],
315
+ "seed": 261025
316
+ },
317
+ {
318
+ "id": "train-13-goal0",
319
+ "start_xy": [
320
+ 0.314,
321
+ -0.035
322
+ ],
323
+ "goal_xy": [
324
+ 0.35,
325
+ 0.08
326
+ ],
327
+ "seed": 261026
328
+ },
329
+ {
330
+ "id": "train-13-goal1",
331
+ "start_xy": [
332
+ 0.314,
333
+ -0.035
334
+ ],
335
+ "goal_xy": [
336
+ 0.4,
337
+ -0.08
338
+ ],
339
+ "seed": 261027
340
+ },
341
+ {
342
+ "id": "train-14-goal0",
343
+ "start_xy": [
344
+ 0.314,
345
+ -0.025
346
+ ],
347
+ "goal_xy": [
348
+ 0.35,
349
+ 0.08
350
+ ],
351
+ "seed": 261028
352
+ },
353
+ {
354
+ "id": "train-14-goal1",
355
+ "start_xy": [
356
+ 0.314,
357
+ -0.025
358
+ ],
359
+ "goal_xy": [
360
+ 0.4,
361
+ -0.08
362
+ ],
363
+ "seed": 261029
364
+ },
365
+ {
366
+ "id": "train-15-goal0",
367
+ "start_xy": [
368
+ 0.314,
369
+ -0.015
370
+ ],
371
+ "goal_xy": [
372
+ 0.35,
373
+ 0.08
374
+ ],
375
+ "seed": 261030
376
+ },
377
+ {
378
+ "id": "train-15-goal1",
379
+ "start_xy": [
380
+ 0.314,
381
+ -0.015
382
+ ],
383
+ "goal_xy": [
384
+ 0.4,
385
+ -0.08
386
+ ],
387
+ "seed": 261031
388
+ }
389
+ ],
390
+ "development": [
391
+ {
392
+ "id": "development-00-goal0",
393
+ "start_xy": [
394
+ 0.289,
395
+ -0.04
396
+ ],
397
+ "goal_xy": [
398
+ 0.35,
399
+ 0.08
400
+ ],
401
+ "seed": 261000
402
+ },
403
+ {
404
+ "id": "development-00-goal1",
405
+ "start_xy": [
406
+ 0.289,
407
+ -0.04
408
+ ],
409
+ "goal_xy": [
410
+ 0.4,
411
+ -0.08
412
+ ],
413
+ "seed": 261001
414
+ },
415
+ {
416
+ "id": "development-01-goal0",
417
+ "start_xy": [
418
+ 0.289,
419
+ -0.02
420
+ ],
421
+ "goal_xy": [
422
+ 0.35,
423
+ 0.08
424
+ ],
425
+ "seed": 261002
426
+ },
427
+ {
428
+ "id": "development-01-goal1",
429
+ "start_xy": [
430
+ 0.289,
431
+ -0.02
432
+ ],
433
+ "goal_xy": [
434
+ 0.4,
435
+ -0.08
436
+ ],
437
+ "seed": 261003
438
+ },
439
+ {
440
+ "id": "development-02-goal0",
441
+ "start_xy": [
442
+ 0.309,
443
+ -0.04
444
+ ],
445
+ "goal_xy": [
446
+ 0.35,
447
+ 0.08
448
+ ],
449
+ "seed": 261004
450
+ },
451
+ {
452
+ "id": "development-02-goal1",
453
+ "start_xy": [
454
+ 0.309,
455
+ -0.04
456
+ ],
457
+ "goal_xy": [
458
+ 0.4,
459
+ -0.08
460
+ ],
461
+ "seed": 261005
462
+ },
463
+ {
464
+ "id": "development-03-goal0",
465
+ "start_xy": [
466
+ 0.309,
467
+ -0.02
468
+ ],
469
+ "goal_xy": [
470
+ 0.35,
471
+ 0.08
472
+ ],
473
+ "seed": 261006
474
+ },
475
+ {
476
+ "id": "development-03-goal1",
477
+ "start_xy": [
478
+ 0.309,
479
+ -0.02
480
+ ],
481
+ "goal_xy": [
482
+ 0.4,
483
+ -0.08
484
+ ],
485
+ "seed": 261007
486
+ }
487
+ ],
488
+ "confirmation": [
489
+ {
490
+ "id": "confirmation-00-goal0",
491
+ "start_xy": [
492
+ 0.287,
493
+ -0.032
494
+ ],
495
+ "goal_xy": [
496
+ 0.35,
497
+ 0.08
498
+ ],
499
+ "seed": 261000
500
+ },
501
+ {
502
+ "id": "confirmation-00-goal1",
503
+ "start_xy": [
504
+ 0.287,
505
+ -0.032
506
+ ],
507
+ "goal_xy": [
508
+ 0.4,
509
+ -0.08
510
+ ],
511
+ "seed": 261001
512
+ },
513
+ {
514
+ "id": "confirmation-01-goal0",
515
+ "start_xy": [
516
+ 0.291,
517
+ -0.018
518
+ ],
519
+ "goal_xy": [
520
+ 0.35,
521
+ 0.08
522
+ ],
523
+ "seed": 261002
524
+ },
525
+ {
526
+ "id": "confirmation-01-goal1",
527
+ "start_xy": [
528
+ 0.291,
529
+ -0.018
530
+ ],
531
+ "goal_xy": [
532
+ 0.4,
533
+ -0.08
534
+ ],
535
+ "seed": 261003
536
+ },
537
+ {
538
+ "id": "confirmation-02-goal0",
539
+ "start_xy": [
540
+ 0.299,
541
+ -0.041
542
+ ],
543
+ "goal_xy": [
544
+ 0.35,
545
+ 0.08
546
+ ],
547
+ "seed": 261004
548
+ },
549
+ {
550
+ "id": "confirmation-02-goal1",
551
+ "start_xy": [
552
+ 0.299,
553
+ -0.041
554
+ ],
555
+ "goal_xy": [
556
+ 0.4,
557
+ -0.08
558
+ ],
559
+ "seed": 261005
560
+ },
561
+ {
562
+ "id": "confirmation-03-goal0",
563
+ "start_xy": [
564
+ 0.303,
565
+ -0.028
566
+ ],
567
+ "goal_xy": [
568
+ 0.35,
569
+ 0.08
570
+ ],
571
+ "seed": 261006
572
+ },
573
+ {
574
+ "id": "confirmation-03-goal1",
575
+ "start_xy": [
576
+ 0.303,
577
+ -0.028
578
+ ],
579
+ "goal_xy": [
580
+ 0.4,
581
+ -0.08
582
+ ],
583
+ "seed": 261007
584
+ },
585
+ {
586
+ "id": "confirmation-04-goal0",
587
+ "start_xy": [
588
+ 0.311,
589
+ -0.038
590
+ ],
591
+ "goal_xy": [
592
+ 0.35,
593
+ 0.08
594
+ ],
595
+ "seed": 261008
596
+ },
597
+ {
598
+ "id": "confirmation-04-goal1",
599
+ "start_xy": [
600
+ 0.311,
601
+ -0.038
602
+ ],
603
+ "goal_xy": [
604
+ 0.4,
605
+ -0.08
606
+ ],
607
+ "seed": 261009
608
+ },
609
+ {
610
+ "id": "confirmation-05-goal0",
611
+ "start_xy": [
612
+ 0.307,
613
+ -0.022
614
+ ],
615
+ "goal_xy": [
616
+ 0.35,
617
+ 0.08
618
+ ],
619
+ "seed": 261010
620
+ },
621
+ {
622
+ "id": "confirmation-05-goal1",
623
+ "start_xy": [
624
+ 0.307,
625
+ -0.022
626
+ ],
627
+ "goal_xy": [
628
+ 0.4,
629
+ -0.08
630
+ ],
631
+ "seed": 261011
632
+ }
633
+ ]
634
+ },
635
+ "variants": [
636
+ "learned",
637
+ "teacher",
638
+ "open_jaw",
639
+ "hold",
640
+ "shuffled_labels"
641
+ ],
642
+ "data_grouping": "Complete episodes grouped by exact initial XY; both destinations share the same split.",
643
+ "training_selection": "All teacher attempts retained; only independently successful complete training episodes supply labels.",
644
+ "development": "Checkpoint choices and diagnostics use development cases only; all development trials remain.",
645
+ "confirmation": "Model and protocol hash frozen before these rollouts. No retries or result-based tuning.",
646
+ "timeout_s": 20,
647
+ "control_dt_s": 0.02,
648
+ "timestep_s": 0.001,
649
+ "mass_kg": 0.04,
650
+ "target_novelty": false,
651
+ "start_novelty": true,
652
+ "physical_robot_ready": false,
653
+ "limitations": [
654
+ "Synthetic state/action demonstrations from an authored PiPER controller, not human video or teleoperation.",
655
+ "Learned inference uses privileged simulator joint, TCP, object and contact measurements; no vision pipeline is trained.",
656
+ "Only starting-position interpolation for a 40 g rigid block and two trained destinations is evaluated.",
657
+ "The pinned native servo and rate limiter remain authored low-level control; no teacher, phase machine or IK is called by the student.",
658
+ "Uncalibrated simulated friction, contacts and actuators; no physical robot qualification or other-arm transfer.",
659
+ "Compute latency excludes sensing, camera processing, communication and physical actuation; CPU/GPU minima are not certified."
660
+ ]
661
+ }
report.json ADDED
The diff for this file is too large to render. See raw diff
 
sources/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DVIDIA contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
sources/piper_imitation.py ADDED
@@ -0,0 +1,458 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """CPU behavior cloning of synthetic authored PiPER block demonstrations.
2
+
3
+ The student predicts all six native arm targets and the jaw command from a
4
+ fixed whitelist of privileged simulator measurements. It has no environment,
5
+ teacher, phase machine, outcome labels, IK call, or fallback at inference.
6
+ Supervised error alone does not establish closed-loop placement competence.
7
+ """
8
+ from __future__ import annotations
9
+
10
+ from hashlib import sha256
11
+ import json
12
+ import math
13
+ from pathlib import Path
14
+ import time
15
+
16
+ import numpy as np
17
+
18
+
19
+ SCHEMA = 'dvidia.piper-imitation-mlp/v1'
20
+ ABSOLUTE_SCHEMA = 'dvidia.piper-imitation-mlp/v2'
21
+ FEATURE_CONTRACT = 'piper-privileged-measurements-43-v1'
22
+ SCOPE = ('Simulation-only behavioral cloning of synthetic authored-controller demonstrations; '
23
+ 'privileged native state, uncalibrated contact, no camera learning or physical robot qualification.')
24
+ JOINT_LIMITS = ((-2.618, 2.618), (0., 3.14), (-2.697, 0.),
25
+ (-1.832, 1.832), (-1.22, 1.22), (-3.14, 3.14))
26
+ JOINT_DELTA_RAD = .06
27
+ JAW_MAX_M = .035
28
+ MAX_MODEL_BYTES = 8 * 1024 * 1024
29
+ MAX_WEIGHT = 64.
30
+ FEATURE_COUNT = 43
31
+ ACTION_COUNT = 7
32
+ FEATURE_NAMES = (tuple(f'joint_position_rad_{i}/3' for i in range(1, 7))
33
+ + tuple(f'joint_velocity_rad_s_{i}/3' for i in range(1, 7))
34
+ + ('left_jaw_m/.035', 'right_jaw_m/.035')
35
+ + tuple(f'tcp_{axis}_m/.5' for axis in 'xyz')
36
+ + tuple(f'tcp_quaternion_{axis}' for axis in 'wxyz')
37
+ + tuple(f'object_minus_tcp_{axis}_m/.2' for axis in 'xyz')
38
+ + tuple(f'target_minus_tcp_{axis}_m/.2' for axis in 'xyz')
39
+ + tuple(f'object_quaternion_{axis}' for axis in 'wxyz')
40
+ + tuple(f'object_velocity_{axis}_m_s/.2' for axis in 'xyz')
41
+ + tuple(f'object_angular_velocity_{axis}_rad_s/3' for axis in 'xyz')
42
+ + ('log1p_left_pad_force_n/3', 'log1p_right_pad_force_n/3',
43
+ 'left_finger_contacts/2', 'right_finger_contacts/2',
44
+ 'table_object_contacts/2', 'episode_elapsed_seconds/20'))
45
+ MODEL_FIELDS = {'schema', 'scope', 'physical_robot_ready', 'observation_origin',
46
+ 'supervision_origin', 'feature_contract', 'feature_names', 'joint_limits_rad',
47
+ 'joint_delta_limit_rad', 'jaw_limit_m', 'hidden_units',
48
+ 'feature_mean', 'feature_scale', 'weights', 'biases',
49
+ 'dataset_sha256', 'train_cases', 'training'}
50
+ ABSOLUTE_MODEL_FIELDS = MODEL_FIELDS | {'action_representation', 'action_mean', 'action_scale'}
51
+
52
+
53
+ def canonical(document):
54
+ return json.dumps(document, sort_keys=True, separators=(',', ':'), allow_nan=False).encode('utf8')
55
+
56
+
57
+ def digest(document):
58
+ return sha256(canonical(document)).hexdigest()
59
+
60
+
61
+ def _number(value, name, low, high):
62
+ if (not isinstance(value, (int, float, np.integer, np.floating)) or isinstance(value, (bool, np.bool_))
63
+ or not low <= value <= high or not math.isfinite(value)):
64
+ raise ValueError(f'{name} must be a finite number in [{low},{high}].')
65
+ return float(value)
66
+
67
+
68
+ def _integer(value, name, low, high):
69
+ if type(value) is not int or not low <= value <= high:
70
+ raise ValueError(f'{name} must be an integer in [{low},{high}].')
71
+ return value
72
+
73
+
74
+ def _array(value, shape, name, maximum=1e6):
75
+ def finite_numbers(row):
76
+ if isinstance(row, np.ndarray):
77
+ return row.dtype.kind in 'iuf' and bool(np.isfinite(row).all())
78
+ if type(row) in (list, tuple):
79
+ return all(finite_numbers(item) for item in row)
80
+ return (isinstance(row, (int, float, np.integer, np.floating)) and not isinstance(row, (bool, np.bool_))
81
+ and -maximum <= row <= maximum and math.isfinite(row))
82
+ try:
83
+ if not finite_numbers(value):
84
+ raise ValueError(f'{name} must contain finite numeric values.')
85
+ result = np.asarray(value, dtype=np.float64)
86
+ except (TypeError, OverflowError, RecursionError) as exc:
87
+ raise ValueError(f'{name} must contain finite numeric values.') from exc
88
+ if result.shape != shape or not np.isfinite(result).all() or np.any(np.abs(result) > maximum):
89
+ raise ValueError(f'{name} has invalid dimensions or range.')
90
+ return result
91
+
92
+
93
+ def _quaternion(value, name):
94
+ quat = _array(value, (4,), name, 1.01)
95
+ norm = float(np.linalg.norm(quat))
96
+ if not .99 <= norm <= 1.01:
97
+ raise ValueError(f'{name} must be a unit quaternion.')
98
+ quat = quat / norm
99
+ # q and -q describe the same rotation; choose one deterministically.
100
+ nonzero = np.flatnonzero(np.abs(quat) > 1e-12)
101
+ return quat if quat[nonzero[0]] >= 0 else -quat
102
+
103
+
104
+ def features(observation):
105
+ """43 bounded measurements; extra diagnostics/outcome/phase fields are ignored.
106
+
107
+ Order: q6, qdot6, jaw2, TCP xyz3, TCP wxyz4, object-minus-TCP3,
108
+ target-minus-TCP3, object wxyz4, object linear3/angular3 velocity,
109
+ log pad forces2, finger contacts2, table contacts1, elapsed seconds1.
110
+ Time is a measured episode clock, never the teacher's phase elapsed time.
111
+ """
112
+ if type(observation) is not dict:
113
+ raise ValueError('A PiPER observation dictionary is required.')
114
+ try:
115
+ q = _array(observation['joint_position_rad'], (6,), 'joint_position_rad', 10)
116
+ qdot = _array(observation['joint_velocity_rad_s'], (6,), 'joint_velocity_rad_s', 1e4)
117
+ jaw = _array(observation['gripper_joint_position_m'], (2,), 'gripper_joint_position_m', 1)
118
+ tcp = _array(observation['tcp_position_m'], (3,), 'tcp_position_m', 10)
119
+ obj = _array(observation['object_position_m'], (3,), 'object_position_m', 10)
120
+ target = _array(observation['target_position_m'], (3,), 'target_position_m', 10)
121
+ tcp_quat = _quaternion(observation['tcp_quaternion_wxyz'], 'tcp_quaternion_wxyz')
122
+ obj_quat = _quaternion(observation['object_quaternion_wxyz'], 'object_quaternion_wxyz')
123
+ linear = _array(observation['object_linear_velocity_m_s'], (3,), 'object_linear_velocity_m_s', 1e4)
124
+ angular = _array(observation['object_angular_velocity_rad_s'], (3,), 'object_angular_velocity_rad_s', 1e4)
125
+ forces = [_number(observation['pad_normal_forces_n'][side], 'pad force', 0, 1e6)
126
+ for side in ('left', 'right')]
127
+ contacts = [_integer(observation['grasp_contact_counts'][side], 'finger contacts', 0, 10000)
128
+ for side in ('left', 'right')]
129
+ table = _integer(observation['table_object_contact_count'], 'table contacts', 0, 10000)
130
+ elapsed = _number(observation['t_seconds'], 't_seconds', 0, 1e4)
131
+ except (KeyError, TypeError) as exc:
132
+ raise ValueError('Missing or invalid PiPER measurement.') from exc
133
+ result = np.concatenate((q / 3., qdot / 3., jaw / JAW_MAX_M, tcp / .5,
134
+ tcp_quat, (obj-tcp) / .2, (target-tcp) / .2,
135
+ obj_quat, linear / .2, angular / 3.,
136
+ np.log1p(forces) / 3., np.asarray(contacts) / 2.,
137
+ [table / 2., elapsed / 20.]))
138
+ return np.clip(result, -10., 10.).astype(np.float32)
139
+
140
+
141
+ def training_sample(observation, action, case_id):
142
+ """Encode a causal pre-action observation and its teacher-issued command."""
143
+ _case_ids([case_id])
144
+ if type(action) is not dict or set(action) != {'joint_targets_rad', 'gripper_position_m'}:
145
+ raise ValueError('Teacher action must use native arm/jaw targets.')
146
+ q = _array(observation['joint_position_rad'], (6,), 'joint_position_rad', 10)
147
+ targets = _array(action['joint_targets_rad'], (6,), 'joint_targets_rad', 10)
148
+ limits = np.asarray(JOINT_LIMITS)
149
+ if np.any(targets < limits[:, 0]) or np.any(targets > limits[:, 1]):
150
+ raise ValueError('Teacher command exceeds pinned native joint limits.')
151
+ jaw = _number(action['gripper_position_m'], 'gripper_position_m', 0, JAW_MAX_M)
152
+ normalized = np.concatenate((np.clip((targets-q) / JOINT_DELTA_RAD, -1., 1.), [jaw/JAW_MAX_M]))
153
+ return {'features': features(observation).tolist(), 'targets': normalized.tolist(), 'case_id': case_id}
154
+
155
+
156
+ def _case_ids(value):
157
+ if (type(value) is not list or not 1 <= len(value) <= 10000
158
+ or any(type(item) is not str or not item or len(item) > 100 for item in value)
159
+ or len(set(value)) != len(value)):
160
+ raise ValueError('Case IDs must be distinct nonempty short strings.')
161
+ return value
162
+
163
+
164
+ def _decode(document):
165
+ if type(document) is dict:
166
+ try:
167
+ document = canonical(document)
168
+ except (TypeError, ValueError, OverflowError, RecursionError) as exc:
169
+ raise ValueError('Model must be finite data-only JSON.') from exc
170
+ if not isinstance(document, (bytes, str)):
171
+ raise ValueError('Model must be a JSON dictionary, bytes, or string.')
172
+ try:
173
+ raw = document.encode('utf8') if isinstance(document, str) else document
174
+ except UnicodeError as exc:
175
+ raise ValueError('Model must be finite UTF-8 JSON.') from exc
176
+ if len(raw) > MAX_MODEL_BYTES:
177
+ raise ValueError('PiPER imitation model exceeds 8 MiB.')
178
+ def pairs(items):
179
+ row = {}
180
+ for key, value in items:
181
+ if key in row:
182
+ raise ValueError('Duplicate model field.')
183
+ row[key] = value
184
+ return row
185
+ def nonfinite(value):
186
+ raise ValueError('Nonfinite JSON value.')
187
+ try:
188
+ return json.loads(raw, object_pairs_hook=pairs, parse_constant=nonfinite)
189
+ except (UnicodeError, json.JSONDecodeError, RecursionError) as exc:
190
+ raise ValueError('Model must be finite UTF-8 JSON.') from exc
191
+
192
+
193
+ def validate_model(document):
194
+ """Strict bounded data validation; accepts no executable serialization."""
195
+ model = _decode(document)
196
+ if type(model) is dict and model.get('schema') in ('dvidia.piper-motor-primitive/v1', 'dvidia.piper-motor-primitive/v2'):
197
+ from .piper_motor_primitive import validate_model as validate_primitive
198
+ return validate_primitive(model)
199
+ absolute = type(model) is dict and model.get('schema') == ABSOLUTE_SCHEMA
200
+ if type(model) is not dict or set(model) != (ABSOLUTE_MODEL_FIELDS if absolute else MODEL_FIELDS):
201
+ raise ValueError('Unknown or missing PiPER imitation model field.')
202
+ expected = {'schema': ABSOLUTE_SCHEMA if absolute else SCHEMA, 'scope': SCOPE, 'physical_robot_ready': False,
203
+ 'observation_origin': 'privileged_native_simulator_state',
204
+ 'supervision_origin': 'synthetic_authored_controller',
205
+ 'feature_contract': FEATURE_CONTRACT, 'joint_delta_limit_rad': JOINT_DELTA_RAD,
206
+ 'jaw_limit_m': JAW_MAX_M}
207
+ if any(type(model[name]) is not type(value) or model[name] != value for name, value in expected.items()):
208
+ raise ValueError('Unsupported model scope, observation, or native action contract.')
209
+ if model['feature_names'] != list(FEATURE_NAMES):
210
+ raise ValueError('Unsupported input feature order.')
211
+ if absolute:
212
+ if model['action_representation'] != 'absolute':
213
+ raise ValueError('V2 requires learned absolute native arm targets.')
214
+ _array(model['action_mean'], (ACTION_COUNT,), 'action_mean', 2.)
215
+ action_scale = _array(model['action_scale'], (ACTION_COUNT,), 'action_scale', 2.)
216
+ if np.any(action_scale < .0001):
217
+ raise ValueError('Action scales must be at least .0001.')
218
+ limits = _array(model['joint_limits_rad'], (6, 2), 'joint_limits_rad', 10)
219
+ if not np.array_equal(limits, np.asarray(JOINT_LIMITS)):
220
+ raise ValueError('Model cannot change pinned native joint limits.')
221
+ hidden = _integer(model['hidden_units'], 'hidden_units', 8, 128)
222
+ _array(model['feature_mean'], (FEATURE_COUNT,), 'feature_mean', 10)
223
+ scale = _array(model['feature_scale'], (FEATURE_COUNT,), 'feature_scale', 20)
224
+ if np.any(scale < .01):
225
+ raise ValueError('Feature scales must be at least .01.')
226
+ if type(model['weights']) is not list or type(model['biases']) is not list or len(model['weights']) != 3 or len(model['biases']) != 3:
227
+ raise ValueError('Exactly two hidden layers and one action layer are required.')
228
+ for index, shape in enumerate(((FEATURE_COUNT, hidden), (hidden, hidden), (hidden, ACTION_COUNT))):
229
+ _array(model['weights'][index], shape, f'weights[{index}]', MAX_WEIGHT)
230
+ _array(model['biases'][index], (shape[1],), f'biases[{index}]', MAX_WEIGHT)
231
+ ds = model['dataset_sha256']
232
+ if type(ds) is not str or len(ds) != 64 or any(c not in '0123456789abcdef' for c in ds):
233
+ raise ValueError('A dataset SHA256 is required.')
234
+ _case_ids(model['train_cases'])
235
+ receipt = model['training']
236
+ receipt_fields = {'algorithm', 'sample_count', 'epochs', 'batch_size', 'learning_rate', 'seed', 'initial_loss', 'final_loss'}
237
+ if absolute:
238
+ receipt_fields |= {'label_shuffle_seed', 'source_dataset_sha256'}
239
+ if type(receipt) is not dict or set(receipt) != receipt_fields:
240
+ raise ValueError('Invalid training receipt.')
241
+ if receipt['algorithm'] != ('numpy-tanh-mlp-adam-standardized-mse' if absolute else 'numpy-tanh-mlp-adam-mse'):
242
+ raise ValueError('Unsupported training algorithm.')
243
+ _integer(receipt['sample_count'], 'sample_count', 16, 1000000)
244
+ _integer(receipt['epochs'], 'epochs', 1, 10000)
245
+ _integer(receipt['batch_size'], 'batch_size', 8, 8192)
246
+ _integer(receipt['seed'], 'seed', 0, 999999)
247
+ _number(receipt['learning_rate'], 'learning_rate', 1e-5, .1)
248
+ for name in ('initial_loss', 'final_loss'):
249
+ _number(receipt[name], name, 0, 1e6)
250
+ if absolute:
251
+ if receipt['label_shuffle_seed'] is not None:
252
+ _integer(receipt['label_shuffle_seed'], 'label_shuffle_seed', 0, 999999)
253
+ source_ds = receipt['source_dataset_sha256']
254
+ if type(source_ds) is not str or len(source_ds) != 64 or any(c not in '0123456789abcdef' for c in source_ds):
255
+ raise ValueError('A source dataset SHA256 is required.')
256
+ return model
257
+
258
+
259
+ def _forward(x, weights, biases):
260
+ h1 = np.tanh(x @ weights[0] + biases[0])
261
+ h2 = np.tanh(h1 @ weights[1] + biases[1])
262
+ return h1, h2, h2 @ weights[2] + biases[2]
263
+
264
+
265
+ def train(dataset, *, hidden_units=64, epochs=500, batch_size=256, learning_rate=.003, seed=0,
266
+ action_representation='delta', label_shuffle_seed=None):
267
+ """Deterministic CPU mini-batch Adam fit, using only training sample data.
268
+
269
+ Dataset: ``{'scene_ids': [id, ...], 'samples': [training_sample(...), ...]}``.
270
+ No success/phase labels or held-out scenes are consumed. Any sample balancing
271
+ or data aggregation must be declared by the caller in its study receipt.
272
+ ``absolute`` reconstructs teacher targets from the existing delta labels,
273
+ then learns qtarget/3 and jaw/.035 with training-only output standardization.
274
+ V1 ``delta`` behavior and loading remain unchanged.
275
+ Optional V2 label_shuffle_seed permutes complete converted absolute action
276
+ vectors across training states; the transformed supervision hash is saved.
277
+ """
278
+ hidden = _integer(hidden_units, 'hidden_units', 8, 128)
279
+ epochs = _integer(epochs, 'epochs', 1, 10000)
280
+ batch_size = _integer(batch_size, 'batch_size', 8, 8192)
281
+ seed = _integer(seed, 'seed', 0, 999999)
282
+ learning_rate = _number(learning_rate, 'learning_rate', 1e-5, .1)
283
+ if type(action_representation) is not str or action_representation not in ('delta', 'absolute'):
284
+ raise ValueError('action_representation must be delta or absolute.')
285
+ absolute = action_representation == 'absolute'
286
+ if label_shuffle_seed is not None:
287
+ _integer(label_shuffle_seed, 'label_shuffle_seed', 0, 999999)
288
+ if not absolute:
289
+ raise ValueError('Internal full-label shuffle is supported only for absolute V2 training.')
290
+ if type(dataset) is not dict or set(dataset) != {'scene_ids', 'samples'}:
291
+ raise ValueError('Dataset requires scene_ids and causal samples only.')
292
+ cases = _case_ids(dataset['scene_ids'])
293
+ rows = dataset['samples']
294
+ if type(rows) is not list or not 16 <= len(rows) <= 1000000:
295
+ raise ValueError('Training requires 16–1000000 samples.')
296
+ case_set = set(cases)
297
+ seen = set()
298
+ x, y = [], []
299
+ for row in rows:
300
+ if type(row) is not dict or set(row) != {'features', 'targets', 'case_id'}:
301
+ raise ValueError('Samples require features, targets, and case_id only.')
302
+ if type(row['case_id']) is not str or row['case_id'] not in case_set:
303
+ raise ValueError('Sample case is not declared in scene_ids.')
304
+ seen.add(row['case_id'])
305
+ x.append(_array(row['features'], (FEATURE_COUNT,), 'features', 10))
306
+ target = _array(row['targets'], (ACTION_COUNT,), 'targets', 1)
307
+ if target[6] < 0:
308
+ raise ValueError('Normalized jaw targets must lie in [0,1].')
309
+ y.append(target)
310
+ if seen != case_set:
311
+ raise ValueError('Every declared training scene must contain samples.')
312
+ # Hash the validated numeric dataset so list and NumPy row inputs agree.
313
+ dataset_hash = digest({'scene_ids': list(cases), 'samples': [
314
+ {'features': a.tolist(), 'targets': b.tolist(), 'case_id': row['case_id']}
315
+ for a, b, row in zip(x, y, rows)]})
316
+ raw_x, y = np.asarray(x, dtype=np.float32), np.asarray(y, dtype=np.float32)
317
+ if absolute:
318
+ source_dataset_hash = dataset_hash
319
+ # The dataset retains causal state and q-relative labels. No teacher or
320
+ # trajectory lookup is needed to recover each issued native target.
321
+ joint_targets = raw_x[:, :6]*3. + y[:, :6]*JOINT_DELTA_RAD
322
+ limits = np.asarray(JOINT_LIMITS, dtype=np.float32)
323
+ if np.any(joint_targets < limits[:, 0]-1e-5) or np.any(joint_targets > limits[:, 1]+1e-5):
324
+ raise ValueError('Reconstructed absolute targets exceed pinned native joint limits.')
325
+ y = y.copy()
326
+ y[:, :6] = np.clip(joint_targets, limits[:, 0], limits[:, 1])/3.
327
+ if label_shuffle_seed is not None:
328
+ y = y[np.random.default_rng(label_shuffle_seed).permutation(len(y))]
329
+ dataset_hash = digest({'scene_ids': list(cases), 'samples': [
330
+ {'features': a.tolist(), 'targets': b.tolist(), 'case_id': row['case_id']}
331
+ for a, b, row in zip(raw_x, y, rows)]})
332
+ action_mean = y.mean(axis=0, dtype=np.float64).astype(np.float32)
333
+ action_scale = np.maximum(y.std(axis=0, dtype=np.float64), .00010001).astype(np.float32)
334
+ y = (y-action_mean)/action_scale
335
+ mean = raw_x.mean(axis=0)
336
+ scale = np.maximum(raw_x.std(axis=0), .010001)
337
+ x = np.clip((raw_x-mean)/scale, -10., 10.)
338
+ rng = np.random.default_rng(seed)
339
+ shapes = ((FEATURE_COUNT, hidden), (hidden, hidden), (hidden, ACTION_COUNT))
340
+ weights = [rng.normal(0, math.sqrt(2/(a+b)), (a, b)).astype(np.float32) for a, b in shapes]
341
+ biases = [np.zeros(b, dtype=np.float32) for _, b in shapes]
342
+ parameters = weights + biases
343
+ first = [np.zeros_like(p) for p in parameters]
344
+ second = [np.zeros_like(p) for p in parameters]
345
+ initial_loss = float(np.mean((_forward(x, weights, biases)[2]-y)**2))
346
+ step = 0
347
+ for _ in range(epochs):
348
+ order = rng.permutation(len(rows))
349
+ for start in range(0, len(rows), batch_size):
350
+ indices = order[start:start+batch_size]
351
+ xb, yb = x[indices], y[indices]
352
+ h1, h2, prediction = _forward(xb, weights, biases)
353
+ d3 = (prediction-yb) * (2/(len(indices)*ACTION_COUNT))
354
+ d2 = (d3 @ weights[2].T) * (1-h2*h2)
355
+ d1 = (d2 @ weights[1].T) * (1-h1*h1)
356
+ gradients = [xb.T @ d1, h1.T @ d2, h2.T @ d3,
357
+ d1.sum(axis=0), d2.sum(axis=0), d3.sum(axis=0)]
358
+ step += 1
359
+ for param, grad, m, v in zip(parameters, gradients, first, second):
360
+ np.clip(grad, -1., 1., out=grad)
361
+ m *= .9
362
+ m += .1*grad
363
+ v *= .999
364
+ v += .001*grad*grad
365
+ param -= learning_rate*(m/(1-.9**step))/(np.sqrt(v/(1-.999**step))+1e-8)
366
+ np.clip(param, -MAX_WEIGHT, MAX_WEIGHT, out=param)
367
+ final_loss = float(np.mean((_forward(x, weights, biases)[2]-y)**2))
368
+ model = {'schema': ABSOLUTE_SCHEMA if absolute else SCHEMA, 'scope': SCOPE, 'physical_robot_ready': False,
369
+ 'observation_origin': 'privileged_native_simulator_state',
370
+ 'supervision_origin': 'synthetic_authored_controller',
371
+ 'feature_contract': FEATURE_CONTRACT, 'feature_names': list(FEATURE_NAMES),
372
+ 'joint_limits_rad': [list(row) for row in JOINT_LIMITS],
373
+ 'joint_delta_limit_rad': JOINT_DELTA_RAD, 'jaw_limit_m': JAW_MAX_M,
374
+ 'hidden_units': hidden, 'feature_mean': mean.tolist(), 'feature_scale': scale.tolist(),
375
+ 'weights': [value.tolist() for value in weights], 'biases': [value.tolist() for value in biases],
376
+ 'dataset_sha256': dataset_hash, 'train_cases': list(cases),
377
+ 'training': {'algorithm': 'numpy-tanh-mlp-adam-standardized-mse' if absolute else 'numpy-tanh-mlp-adam-mse', 'sample_count': len(rows),
378
+ 'epochs': epochs, 'batch_size': batch_size, 'learning_rate': learning_rate,
379
+ 'seed': seed, 'initial_loss': initial_loss, 'final_loss': final_loss}}
380
+ if absolute:
381
+ model.update(action_representation='absolute', action_mean=action_mean.tolist(), action_scale=action_scale.tolist())
382
+ model['training'].update(label_shuffle_seed=label_shuffle_seed, source_dataset_sha256=source_dataset_hash)
383
+ return validate_model(model)
384
+
385
+
386
+ def save_model(document, path):
387
+ """Save validated JSON; no pickle, imports, callbacks, or executable payloads."""
388
+ model = validate_model(document)
389
+ Path(path).write_bytes(canonical(model) + b'\n')
390
+ return digest(model)
391
+
392
+
393
+ def load_model(path):
394
+ with Path(path).open('rb') as handle:
395
+ raw = handle.read(MAX_MODEL_BYTES+1)
396
+ return validate_model(raw)
397
+
398
+
399
+ class LearnedPiperPolicy:
400
+ """A stateless learned action policy; instantiate afresh for each episode."""
401
+ def __init__(self, document):
402
+ self.model = validate_model(document)
403
+ self.primitive = None
404
+ if self.model['schema'] in ('dvidia.piper-motor-primitive/v1', 'dvidia.piper-motor-primitive/v2'):
405
+ from .piper_motor_primitive import MotorPrimitivePolicy
406
+ self.primitive = MotorPrimitivePolicy(self.model)
407
+ return
408
+ self.mean = np.asarray(self.model['feature_mean'], dtype=np.float32)
409
+ self.scale = np.asarray(self.model['feature_scale'], dtype=np.float32)
410
+ self.weights = [np.asarray(value, dtype=np.float32) for value in self.model['weights']]
411
+ self.biases = [np.asarray(value, dtype=np.float32) for value in self.model['biases']]
412
+ self.absolute = self.model['schema'] == ABSOLUTE_SCHEMA
413
+ if self.absolute:
414
+ self.action_mean = np.asarray(self.model['action_mean'], dtype=np.float32)
415
+ self.action_scale = np.asarray(self.model['action_scale'], dtype=np.float32)
416
+ self.calls = 0
417
+ self.inference_seconds = 0.
418
+
419
+ def normalized_actions(self, observations):
420
+ """Batch outputs: V1 deltas/.06 or V2 absolute targets/3; jaw/.035."""
421
+ if self.primitive is not None:
422
+ raise ValueError('A time-conditioned primitive requires sequential native calls starting at t=0.')
423
+ if type(observations) not in (list, tuple) or not observations:
424
+ raise ValueError('A nonempty observation batch is required.')
425
+ x = np.asarray([features(row) for row in observations], dtype=np.float32)
426
+ x = np.clip((x-self.mean)/self.scale, -10., 10.)
427
+ output = _forward(x, self.weights, self.biases)[2]
428
+ if self.absolute:
429
+ output = output*self.action_scale+self.action_mean
430
+ limits = np.asarray(JOINT_LIMITS)/3.
431
+ return np.clip(output, np.concatenate((limits[:, 0], [0.])), np.concatenate((limits[:, 1], [1.])))
432
+ return np.clip(output, [-1.]*6+[0.], [1.]*7)
433
+
434
+ def predict(self, observation):
435
+ if self.primitive is not None:
436
+ return self.primitive.predict(observation)
437
+ started = time.perf_counter()
438
+ output = self.normalized_actions([observation])[0]
439
+ q = _array(observation['joint_position_rad'], (6,), 'joint_position_rad', 10)
440
+ limits = np.asarray(JOINT_LIMITS)
441
+ delta = np.clip(3.*output[:6]-q, -JOINT_DELTA_RAD, JOINT_DELTA_RAD) if self.absolute else JOINT_DELTA_RAD*output[:6]
442
+ targets = np.clip(q + delta, limits[:, 0]+.02, limits[:, 1]-.02)
443
+ action = {'joint_targets_rad': targets.tolist(), 'gripper_position_m': float(JAW_MAX_M*output[6])}
444
+ self.calls += 1
445
+ self.inference_seconds += time.perf_counter()-started
446
+ return action
447
+
448
+ __call__ = predict
449
+
450
+ def diagnostics(self):
451
+ if self.primitive is not None:
452
+ return self.primitive.diagnostics()
453
+ return {'policy_origin': 'learned_numpy_mlp', 'observations': 'privileged simulator measurements',
454
+ 'supervision_origin': 'synthetic authored controller', 'student_inference_calls': self.calls,
455
+ 'student_inference_seconds': self.inference_seconds, 'teacher_fallback_calls': 0,
456
+ 'runtime_teacher_available': False, 'authored_task_phase_machine': False,
457
+ 'action_representation': 'absolute' if self.absolute else 'delta',
458
+ 'physical_robot_ready': False, 'model_sha256': digest(self.model)}
sources/piper_imitation_benchmark.py ADDED
@@ -0,0 +1,405 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Reproducible CPU imitation study: synthetic demonstrations to PiPER actions.
2
+
3
+ Training/development and confirmation are separate commands. Confirmation refuses
4
+ to start before a model is frozen and never overwrites a previous attempt.
5
+ """
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ from dataclasses import asdict, replace
10
+ import gzip
11
+ from hashlib import sha256
12
+ import json
13
+ import os
14
+ from pathlib import Path
15
+ import platform
16
+ import shutil
17
+ import time
18
+ import tempfile
19
+
20
+ import numpy as np
21
+
22
+ SCHEMA = 'dvidia.piper-imitation-study/v1'
23
+ VARIANTS = ('learned', 'teacher', 'open_jaw', 'hold', 'shuffled_labels')
24
+ LIMITS = [
25
+ 'Synthetic state/action demonstrations from an authored PiPER controller, not human video or teleoperation.',
26
+ 'Learned inference uses privileged simulator joint, TCP, object and contact measurements; no vision pipeline is trained.',
27
+ 'Only starting-position interpolation for a 40 g rigid block and two trained destinations is evaluated.',
28
+ 'The pinned native servo and rate limiter remain authored low-level control; no teacher, phase machine or IK is called by the student.',
29
+ 'Uncalibrated simulated friction, contacts and actuators; no physical robot qualification or other-arm transfer.',
30
+ 'Compute latency excludes sensing, camera processing, communication and physical actuation; CPU/GPU minima are not certified.',
31
+ ]
32
+ RUNTIME_FILES = ('piper_imitation.py', 'piper_imitation_score.py', 'piper_imitation_benchmark.py',
33
+ 'piper_motor_primitive.py', 'piper_task.py', 'reference_task.py', 'reference_sim.py', 'robot_profiles.py', 'robot_profiles.lock.json')
34
+ TEACHER_FILES = ('piper_task.py','robot_profiles.py','robot_profiles.lock.json','reference_task.py','reference_sim.py')
35
+
36
+
37
+ def runtime_hashes():
38
+ return {name:sha(Path(__file__).with_name(name)) for name in RUNTIME_FILES}
39
+
40
+
41
+ def peak_rss():
42
+ try:
43
+ import resource
44
+ return int(resource.getrusage(resource.RUSAGE_SELF).ru_maxrss)*(1 if platform.system()=='Darwin' else 1024)
45
+ except ImportError: return None
46
+
47
+
48
+ def write(path, value):
49
+ _atomic_create(path,(json.dumps(value,indent=2,allow_nan=False)+'\n').encode())
50
+
51
+
52
+ def _atomic_create(path, raw):
53
+ # Link a fully flushed temporary inode into place exclusively. A crash may
54
+ # leave an orphan .writing file, but never a partially visible final tape.
55
+ path=Path(path); path.parent.mkdir(parents=True,exist_ok=True)
56
+ temporary=None
57
+ try:
58
+ with tempfile.NamedTemporaryFile(dir=path.parent,prefix='.writing-',delete=False) as stream:
59
+ temporary=Path(stream.name); stream.write(raw); stream.flush(); os.fsync(stream.fileno())
60
+ os.link(temporary,path)
61
+ finally:
62
+ if temporary is not None: temporary.unlink(missing_ok=True)
63
+
64
+
65
+ def sha(path): return sha256(Path(path).read_bytes()).hexdigest()
66
+
67
+
68
+ def read(path): return json.loads(Path(path).read_text())
69
+
70
+
71
+ def save_episode(path, episode):
72
+ raw = json.dumps(episode, separators=(',', ':'), allow_nan=False).encode()
73
+ _atomic_create(path,gzip.compress(raw,mtime=0))
74
+
75
+
76
+ def load_episode(path): return json.loads(gzip.decompress(Path(path).read_bytes()))
77
+
78
+
79
+ def prepare(root):
80
+ root = Path(root)
81
+ if root.exists(): raise ValueError('Use a fresh study directory.')
82
+ targets = [(0.35, 0.08), (0.40, -0.08)]
83
+ starts = {'train': [(x, y) for x in (.284, .294, .304, .314) for y in (-.045, -.035, -.025, -.015)],
84
+ 'development': [(x, y) for x in (.289, .309) for y in (-.04, -.02)],
85
+ 'confirmation': [(.287, -.032), (.291, -.018), (.299, -.041), (.303, -.028), (.311, -.038), (.307, -.022)]}
86
+ cases = {split: [dict(id=f'{split}-{i:02}-goal{g}', start_xy=list(start), goal_xy=list(target), seed=261000+i*2+g)
87
+ for i, start in enumerate(points) for g, target in enumerate(targets)] for split, points in starts.items()}
88
+ all_starts = [p for rows in starts.values() for p in rows]
89
+ assert len(set(all_starts)) == len(all_starts)
90
+ root.mkdir(parents=True)
91
+ write(root/'protocol.json', dict(schema=SCHEMA, cases=cases, variants=list(VARIANTS),
92
+ data_grouping='Complete episodes grouped by exact initial XY; both destinations share the same split.',
93
+ training_selection='All teacher attempts retained; only independently successful complete training episodes supply labels.',
94
+ development='Checkpoint choices and diagnostics use development cases only; all development trials remain.',
95
+ confirmation='Model and protocol hash frozen before these rollouts. No retries or result-based tuning.',
96
+ timeout_s=20, control_dt_s=.02, timestep_s=.001, mass_kg=.04,
97
+ target_novelty=False, start_novelty=True, physical_robot_ready=False, limitations=LIMITS))
98
+ return read(root/'protocol.json')
99
+
100
+
101
+ def config(case):
102
+ from .piper_task import PiperTaskConfig
103
+ return replace(PiperTaskConfig(), object_position_m=(*case['start_xy'], .082), target_position_m=(*case['goal_xy'], .08))
104
+
105
+
106
+ def collect(root, assets):
107
+ from .piper_task import run_episode
108
+ from .piper_imitation import training_sample
109
+ from .piper_imitation_score import score_episode
110
+ root, assets = Path(root), Path(assets)
111
+ protocol = read(root/'protocol.json')
112
+ from .robot_profiles import verify_assets
113
+ provenance = verify_assets('piper', assets)
114
+ if (root/'training'/'samples.npz').exists(): raise ValueError('Training dataset already collected.')
115
+ samples, groups, rows = [], [], []
116
+ for index, case in enumerate(protocol['cases']['train']):
117
+ path = root/'demonstrations'/(case['id']+'.json.gz')
118
+ if path.exists(): episode = load_episode(path)
119
+ else:
120
+ print(json.dumps(dict(stage='demonstration', case=case['id'])), flush=True)
121
+ episode = run_episode(assets, config(case), seed=case['seed'])
122
+ save_episode(path, episode)
123
+ if (episode.get('seed') != case['seed'] or episode.get('config') != json.loads(json.dumps(asdict(config(case))))
124
+ or episode.get('control') != 'placement' or episode.get('policy_mode') != 'baseline'
125
+ or episode.get('asset_provenance') != provenance
126
+ or episode.get('implementation_sha256') != {n:sha(Path(__file__).with_name(n)) for n in TEACHER_FILES}):
127
+ raise ValueError('Cached teacher identity or runtime differs from this protocol: '+case['id'])
128
+ score = score_episode(episode, case['goal_xy'])
129
+ usable = score['success'] and len(episode['actions']) == 1000
130
+ rows.append(dict(**case, episode=str(path.relative_to(root)), sha256=sha(path), score=score, used_for_training=usable))
131
+ if usable:
132
+ groups.append(case['id'])
133
+ for obs, action in zip(episode['trajectory'][:-1], episode['actions']):
134
+ command = {k: action[k] for k in ('joint_targets_rad','gripper_position_m')}
135
+ samples.append(training_sample(obs, command, case['id']))
136
+ print(json.dumps(dict(stage='demonstration_scored', case=case['id'], success=score['success'], included=usable)), flush=True)
137
+ if not samples: raise ValueError('No successful complete teacher demonstrations; collection receipts retained.')
138
+ training = root/'training'; training.mkdir(exist_ok=True)
139
+ ids = [groups.index(row['case_id']) for row in samples]
140
+ np.savez_compressed(training/'samples.npz', features=np.asarray([r['features'] for r in samples], dtype=np.float32),
141
+ targets=np.asarray([r['targets'] for r in samples], dtype=np.float32), group=np.asarray(ids, dtype=np.int32))
142
+ write(training/'dataset.json', dict(schema=SCHEMA, protocol_sha256=sha(root/'protocol.json'),
143
+ rows=rows, scene_ids=groups, sample_count=len(samples), samples_sha256=sha(training/'samples.npz'),
144
+ feature_source='causal pre-action observations only; no phase/outcome labels in input whitelist',
145
+ supervision_origin='synthetic_authored_controller', physical_robot_ready=False))
146
+ return read(training/'dataset.json')
147
+
148
+
149
+ def dataset(root, shuffle=False):
150
+ root = Path(root); receipt = read(root/'training'/'dataset.json')
151
+ if sha(root/'training'/'samples.npz') != receipt['samples_sha256']: raise ValueError('Training data changed.')
152
+ with np.load(root/'training'/'samples.npz', allow_pickle=False) as data:
153
+ x, y, group = data['features'], data['targets'], data['group']
154
+ if shuffle: y = y[np.random.default_rng(19217).permutation(len(y))]
155
+ return dict(scene_ids=receipt['scene_ids'], samples=[dict(features=a.tolist(), targets=b.tolist(), case_id=receipt['scene_ids'][int(i)])
156
+ for a, b, i in zip(x,y,group)])
157
+
158
+
159
+ def fit(root, name, epochs=160, hidden=64, shuffle=False, absolute=False, primitive=False, high_resolution=False):
160
+ from .piper_imitation import train, save_model
161
+ root = Path(root)
162
+ if not name.isalnum() or len(name)>32: raise ValueError('Use a short alphanumeric development model name.')
163
+ target = root/'development_models'/name
164
+ if target.exists(): raise ValueError('Model name already used; preserve previous development attempts.')
165
+ target.mkdir(parents=True)
166
+ began = time.perf_counter()
167
+ if primitive:
168
+ from .piper_motor_primitive import train as fit_primitive
169
+ model=fit_primitive(dataset(root),shuffled=shuffle,high_resolution=high_resolution)
170
+ else:
171
+ method = dict(action_representation='absolute',label_shuffle_seed=19217 if shuffle else None) if absolute else {}
172
+ model = train(dataset(root, shuffle and not absolute), hidden_units=hidden, epochs=epochs, batch_size=512, seed=17, **method)
173
+ save_model(model, target/'model.json')
174
+ write(target/'receipt.json', dict(name=name, model_sha256=sha(target/'model.json'), protocol_sha256=sha(root/'protocol.json'),
175
+ training_dataset_sha256=sha(root/'training'/'dataset.json'), shuffled_labels=shuffle, absolute_targets=absolute, primitive=primitive, high_resolution=high_resolution,
176
+ training_seconds=time.perf_counter()-began, training=model['training'], model_bytes=(target/'model.json').stat().st_size))
177
+ return read(target/'receipt.json')
178
+
179
+
180
+ def rollout(assets, case, model_path, variant='learned'):
181
+ from .piper_task import PiperTaskEnv, task_contract
182
+ from .piper_imitation import LearnedPiperPolicy, load_model
183
+ from . import reference_sim as sim
184
+ c = config(case); env = PiperTaskEnv(assets, c)
185
+ result = dict(schema='dvidia.piper-learned-episode/v1', config=asdict(c), profile='piper', seed=case['seed'],
186
+ valid=False, success=False, reason='not_started', error=None, trajectory=[], actions=[], metrics={},
187
+ policy_kind=variant, policy_learned=variant in ('learned','shuffled_labels','open_jaw'),
188
+ physical_robot_ready=False, observation_origin='privileged_native_simulator_state',
189
+ task_contract=task_contract(), model_sha256=sha(model_path) if model_path else None,
190
+ timing={}, simulated_seconds=0.)
191
+ began = time.perf_counter(); inference, steps = [], []
192
+ try:
193
+ policy = LearnedPiperPolicy(load_model(model_path)) if model_path else None
194
+ obs, info = env.reset(case['seed']); initial = list(obs['joint_position_rad']); result['trajectory'].append(obs)
195
+ result.update(initial_object_position_m=env.initial_object_position.tolist(),
196
+ compiled_model_sha256=sim.model_digest(env.model),
197
+ native_servo_gains=env.model.actuator_gainprm[:,0].tolist(),
198
+ native_servo_bias=env.model.actuator_biasprm[:,:3].tolist(),
199
+ native_force_limits=env.model.actuator_forcerange.tolist(),
200
+ native_control_limits=env.model.actuator_ctrlrange.tolist(),
201
+ native_model_settings=dict(gravity_m_s2=env.model.opt.gravity.tolist(),body_gravcomp=env.model.body_gravcomp.tolist()),
202
+ implementation_sha256=runtime_hashes())
203
+ from .robot_profiles import verify_assets
204
+ result['asset_provenance'] = verify_assets('piper',assets)
205
+ mj, _ = sim._native_imports()
206
+ result['platform'] = dict(system=platform.system(), machine=platform.machine(), python=platform.python_version(), numpy=np.__version__, mujoco=mj.__version__)
207
+ for _ in range(1000):
208
+ start = time.perf_counter()
209
+ if variant == 'hold': action = dict(joint_targets_rad=initial, gripper_position_m=.035)
210
+ else:
211
+ p = time.perf_counter(); action = policy(obs); inference.append(time.perf_counter()-p)
212
+ if variant == 'open_jaw': action['gripper_position_m'] = .035
213
+ record = dict(t_seconds=obs['t_seconds'], **action)
214
+ result['actions'].append(record)
215
+ obs.update(issued_joint_targets_rad=list(action['joint_targets_rad']),
216
+ issued_gripper_position_m=action['gripper_position_m'], command=record)
217
+ obs, info = env.step(action); steps.append(time.perf_counter()-start)
218
+ if obs is not None: result['trajectory'].append(obs)
219
+ if env.done: break
220
+ result.update(valid=info['valid'], success=info['success'], reason=info['reason'], simulated_seconds=info['simulation_time'],
221
+ metrics={**info, 'contact_pair_native_ticks':env.contact_pair_native_ticks})
222
+ if policy is not None: result['policy_diagnostics'] = policy.diagnostics()
223
+ except Exception as exc:
224
+ result.update(reason='exception', error=dict(type=type(exc).__name__, message=str(exc)[:1000]))
225
+ def summary(values):
226
+ return dict(samples=len(values), p50_s=float(np.percentile(values,50)), p95_s=float(np.percentile(values,95)), p99_s=float(np.percentile(values,99)), maximum_s=max(values)) if values else None
227
+ result['timing'] = dict(wall_seconds=time.perf_counter()-began, inference=summary(inference), control_step=summary(steps),
228
+ missed_20ms_boundaries=sum(t>.02 for t in steps), measurement_scope='CPU compute only, excludes sensing, transport and real actuation')
229
+ result['timing'].update(inference_samples_s=inference, control_step_samples_s=steps,
230
+ process_peak_rss_bytes=peak_rss())
231
+ return result
232
+
233
+
234
+ def evaluate_development(root, assets, name):
235
+ from .piper_imitation_score import score_episode
236
+ root = Path(root); model = root/'development_models'/name/'model.json'
237
+ if (root/'development_models'/name/'evaluation.json').exists(): raise ValueError('Development evaluation already exists.')
238
+ rows = []; model_digest = sha(model); source_hashes = runtime_hashes()
239
+ for case in read(root/'protocol.json')['cases']['development']:
240
+ print(json.dumps(dict(stage='development', model=name, case=case['id'])), flush=True)
241
+ episode = rollout(assets, case, model)
242
+ if sha(model)!=model_digest or runtime_hashes()!=source_hashes: raise ValueError('Runtime/model changed during development.')
243
+ path = root/'development_models'/name/'attempts'/(case['id']+'.json.gz'); save_episode(path, episode)
244
+ rows.append(dict(**case, score=score_episode(episode,case['goal_xy']), episode=str(path.relative_to(root)), sha256=sha(path), timing=episode['timing']))
245
+ write(root/'development_models'/name/'evaluation.json', dict(model_sha256=sha(model), runtime_sha256=source_hashes, rows=rows,
246
+ scheduled=len(rows), successes=sum(r['score']['success'] for r in rows)))
247
+ return read(root/'development_models'/name/'evaluation.json')
248
+
249
+
250
+ def freeze(root, name, shuffled_name):
251
+ from .piper_imitation_score import score_episode
252
+ root = Path(root)
253
+ if (root/'frozen.json').exists(): raise ValueError('Study already frozen.')
254
+ receipt = read(root/'development_models'/name/'evaluation.json')
255
+ selected = root/'development_models'/name/'model.json'; shuffled = root/'development_models'/shuffled_name/'model.json'
256
+ selected_receipt, shuffled_receipt = read(selected.parent/'receipt.json'), read(shuffled.parent/'receipt.json')
257
+ dataset_digest, protocol_digest = sha(root/'training'/'dataset.json'), sha(root/'protocol.json')
258
+ training_data = read(root/'training'/'dataset.json')
259
+ if sha(root/'training'/'samples.npz')!=training_data['samples_sha256']: raise ValueError('Training arrays changed before freeze.')
260
+ for row in training_data['rows']:
261
+ if sha(root/row['episode'])!=row['sha256']: raise ValueError('Teacher demonstration changed before freeze.')
262
+ for model, training_receipt in ((selected,selected_receipt),(shuffled,shuffled_receipt)):
263
+ if (training_receipt['model_sha256']!=sha(model) or training_receipt['training_dataset_sha256']!=dataset_digest
264
+ or training_receipt['protocol_sha256']!=protocol_digest): raise ValueError('Training model/data/protocol binding changed.')
265
+ if selected_receipt['shuffled_labels'] or not shuffled_receipt['shuffled_labels']: raise ValueError('Require a genuine student and separately trained shuffled control.')
266
+ selected_model, shuffled_model=read(selected),read(shuffled)
267
+ if selected_model['schema']!=shuffled_model['schema']: raise ValueError('Control model family differs.')
268
+ from .piper_imitation import digest
269
+ expected_source=digest(dataset(root))
270
+ for candidate,candidate_receipt in ((selected_model,selected_receipt),(shuffled_model,shuffled_receipt)):
271
+ if candidate['train_cases']!=training_data['scene_ids']:
272
+ raise ValueError('Model train roster differs from the collected training split.')
273
+ if candidate_receipt.get('primitive',False): source=candidate['source_dataset_sha256']
274
+ elif candidate_receipt.get('absolute_targets',False): source=candidate['training']['source_dataset_sha256']
275
+ else: source=candidate['dataset_sha256']
276
+ expected=(digest(dataset(root,True)) if candidate_receipt['shuffled_labels'] and not candidate_receipt.get('primitive',False)
277
+ and not candidate_receipt.get('absolute_targets',False) else expected_source)
278
+ if source!=expected: raise ValueError('Model source arrays differ from the collected training split.')
279
+ if selected_receipt.get('primitive',False):
280
+ fields=('algorithm','sample_count','scene_count','spatial_ridge','time_ridge')
281
+ architecture=('feature_contract','reactive_contact_feedback','known_goals_xy_m','start_bounds_xy_m',
282
+ 'spatial_terms','time_centers_s','time_width_s','joint_limits_rad','joint_delta_limit_rad','jaw_limit_m','output_encoding')
283
+ if not shuffled_receipt.get('primitive',False) or any(selected_model[k]!=shuffled_model[k] for k in architecture):
284
+ raise ValueError('Control primitive architecture differs.')
285
+ if (selected_model['source_dataset_sha256']!=shuffled_model['source_dataset_sha256']
286
+ or selected_model['supervision_sha256']==shuffled_model['supervision_sha256']
287
+ or selected_model['training']['shuffled_labels'] or not shuffled_model['training']['shuffled_labels']
288
+ or shuffled_model['training']['label_shuffle_seed']!=19217):
289
+ raise ValueError('Primitive control must permute the same complete action labels.')
290
+ else:
291
+ fields=('algorithm','sample_count','epochs','batch_size','learning_rate','seed')
292
+ if selected_model['hidden_units']!=shuffled_model['hidden_units']: raise ValueError('Control architecture differs.')
293
+ for field in fields:
294
+ if selected_receipt['training'][field]!=shuffled_receipt['training'][field]: raise ValueError('Control training budget differs.')
295
+ if selected_receipt.get('absolute_targets',False)!=shuffled_receipt.get('absolute_targets',False):
296
+ raise ValueError('Control action representation differs.')
297
+ if selected_receipt.get('absolute_targets',False) and (selected_receipt['training']['label_shuffle_seed'] is not None
298
+ or shuffled_receipt['training']['label_shuffle_seed']!=19217):
299
+ raise ValueError('Require complete absolute target permutation for the V2 control.')
300
+ if receipt['model_sha256']!=sha(selected) or receipt['runtime_sha256']!=runtime_hashes(): raise ValueError('Development model/runtime binding changed.')
301
+ planned = read(root/'protocol.json')['cases']['development']
302
+ rows = receipt.get('rows',[])
303
+ if (len(rows)!=len(planned) or receipt.get('scheduled')!=len(planned)
304
+ or receipt.get('successes')!=sum(r.get('score',{}).get('success') is True for r in rows)):
305
+ raise ValueError('Development counts differ from the complete schedule.')
306
+ for case,row in zip(planned,rows):
307
+ expected='development_models/'+name+'/attempts/'+case['id']+'.json.gz'
308
+ if any(row.get(k)!=case[k] for k in ('id','start_xy','goal_xy','seed')) or row.get('episode')!=expected:
309
+ raise ValueError('Development attempt identity differs from its schedule.')
310
+ episode=load_episode(root/expected)
311
+ if (row.get('sha256')!=sha(root/expected) or row.get('score')!=score_episode(episode,case['goal_xy'])
312
+ or episode.get('model_sha256')!=sha(selected) or episode.get('implementation_sha256')!=runtime_hashes()):
313
+ raise ValueError('Development tape/model/runtime or recomputed score changed.')
314
+ (root/'model').mkdir()
315
+ shutil.copyfile(selected,root/'model'/'model.json'); shutil.copyfile(shuffled,root/'model'/'shuffled-model.json')
316
+ write(root/'frozen.json', dict(schema=SCHEMA, model_sha256=sha(selected), shuffled_model_sha256=sha(shuffled),
317
+ dataset_sha256=sha(root/'training'/'dataset.json'), samples_sha256=sha(root/'training'/'samples.npz'), protocol_sha256=sha(root/'protocol.json'),
318
+ selected_name=name, development_successes=receipt['successes'], development_scheduled=receipt['scheduled'],
319
+ selected_model_schema=selected_model['schema'], selected_feature_contract=selected_model['feature_contract'],
320
+ evaluated_contact_recovery=False,
321
+ development_evaluation_sha256=sha(root/'development_models'/name/'evaluation.json'),
322
+ runtime_sha256=runtime_hashes(),
323
+ frozen_at_utc=time.strftime('%Y-%m-%dT%H:%M:%SZ',time.gmtime()), confirmation_opened=False))
324
+ return read(root/'frozen.json')
325
+
326
+
327
+ def confirm(root, assets, resume=False):
328
+ from .piper_task import run_episode
329
+ from .piper_imitation_score import score_episode
330
+ root = Path(root); frozen = read(root/'frozen.json'); protocol = read(root/'protocol.json')
331
+ for name, key in (('model/model.json','model_sha256'),('model/shuffled-model.json','shuffled_model_sha256'),('training/dataset.json','dataset_sha256'),('training/samples.npz','samples_sha256'),('protocol.json','protocol_sha256')):
332
+ if sha(root/name)!=frozen[key]: raise ValueError('Frozen experiment changed: '+name)
333
+ if runtime_hashes()!=frozen['runtime_sha256']: raise ValueError('Frozen runtime changed before confirmation.')
334
+ schedule = [dict(id=c['id'],variant=v,episode='attempts/'+c['id']+'-'+v+'.json.gz') for c in protocol['cases']['confirmation'] for v in VARIANTS]
335
+ opened = root/'confirmation-opened.json'
336
+ if opened.exists():
337
+ if not resume or read(opened)['frozen_sha256']!=sha(root/'frozen.json') or read(opened)['planned_attempts']!=schedule:
338
+ raise ValueError('Confirmation already opened. Use --resume with the same frozen protocol; no completed trial is rerun.')
339
+ else:
340
+ if resume: raise ValueError('No opened confirmation to resume.')
341
+ write(opened,dict(frozen_sha256=sha(root/'frozen.json'),planned_attempts=schedule,scheduled=len(schedule),opened_at_utc=time.strftime('%Y-%m-%dT%H:%M:%SZ',time.gmtime())))
342
+ if (root/'report.json').exists(): raise ValueError('Confirmation already complete; inspect its immutable report.')
343
+ rows = []
344
+ for case in protocol['cases']['confirmation']:
345
+ for variant in VARIANTS:
346
+ if runtime_hashes()!=frozen['runtime_sha256']: raise ValueError('Frozen runtime changed during confirmation.')
347
+ print(json.dumps(dict(stage='confirmation', variant=variant, case=case['id'])), flush=True)
348
+ path = root/'attempts'/(case['id']+'-'+variant+'.json.gz')
349
+ score_path = root/'attempt-scores'/(case['id']+'-'+variant+'.json')
350
+ started = root/'attempt-starts'/(case['id']+'-'+variant+'.json')
351
+ if (path.exists() or score_path.exists()) and (not started.exists() or read(started).get('frozen_sha256')!=sha(root/'frozen.json')):
352
+ raise ValueError('Existing confirmation tape has no matching frozen start marker.')
353
+ if score_path.exists():
354
+ row = read(score_path)
355
+ if (any(row.get(k)!=case[k] for k in ('id','start_xy','goal_xy','seed'))
356
+ or row.get('variant')!=variant or row.get('episode')!=str(path.relative_to(root))
357
+ or not started.exists() or read(started).get('frozen_sha256')!=sha(root/'frozen.json')
358
+ or row.get('sha256')!=sha(path) or row.get('score')!=score_episode(load_episode(path),case['goal_xy'])):
359
+ raise ValueError('Recorded confirmation identity or score changed.')
360
+ rows.append(row); continue
361
+ if path.exists(): episode = load_episode(path) # Recover a finished tape; never reexecute it.
362
+ elif started.exists():
363
+ episode = dict(valid=False,success=False,reason='interrupted',error={'type':'interrupted','message':'Started attempt interrupted; retained as failure without retry.'},
364
+ config=asdict(config(case)),actions=[],trajectory=[],metrics={},timing={})
365
+ save_episode(path,episode)
366
+ else:
367
+ write(started,dict(frozen_sha256=sha(root/'frozen.json'),started_at_utc=time.strftime('%Y-%m-%dT%H:%M:%SZ',time.gmtime())))
368
+ if variant=='teacher': episode = run_episode(assets, config(case), seed=case['seed'])
369
+ else: episode = rollout(assets,case,root/'model'/('shuffled-model.json' if variant=='shuffled_labels' else 'model.json'),variant)
370
+ save_episode(path,episode)
371
+ if episode.get('reason')!='interrupted':
372
+ model_key='shuffled_model_sha256' if variant=='shuffled_labels' else 'model_sha256'
373
+ expected_runtime = ({n:sha(Path(__file__).with_name(n)) for n in TEACHER_FILES}
374
+ if variant=='teacher' else frozen['runtime_sha256'])
375
+ if (episode.get('config')!=json.loads(json.dumps(asdict(config(case))))
376
+ or episode.get('seed')!=case['seed'] or episode.get('implementation_sha256')!=expected_runtime
377
+ or (variant=='teacher' and (episode.get('control')!='placement' or episode.get('policy_mode')!='baseline'))
378
+ or (variant!='teacher' and (episode.get('policy_kind')!=variant or episode.get('model_sha256')!=frozen[model_key]))):
379
+ raise ValueError('Confirmation tape identity, model or runtime differs from the schedule.')
380
+ rows.append(dict(**case,variant=variant,score=score_episode(episode,case['goal_xy']),episode=str(path.relative_to(root)),
381
+ sha256=sha(path),error=episode.get('error'),timing=episode.get('timing',{})))
382
+ write(score_path,rows[-1])
383
+ write(root/'report.json', dict(schema=SCHEMA, status='completed', protocol_sha256=sha(root/'protocol.json'), frozen_sha256=sha(root/'frozen.json'),
384
+ attempts=rows, variants={v:dict(scheduled=sum(r['variant']==v for r in rows),successes=sum(r['variant']==v and r['score']['success'] for r in rows)) for v in VARIANTS},
385
+ training=read(root/'training'/'dataset.json'), selected_training=read(root/'development_models'/frozen['selected_name']/'receipt.json'),
386
+ physical_robot_ready=False,motor_policy_learned=True,selected_model_schema=frozen['selected_model_schema'],
387
+ evaluated_contact_recovery=False,limitations=LIMITS+([read(root/'model/model.json')['scope']] if 'motor-primitive' in frozen['selected_model_schema'] else [])))
388
+ return read(root/'report.json')
389
+
390
+
391
+ def main(argv=None):
392
+ p=argparse.ArgumentParser(description=__doc__); p.add_argument('command',choices=('prepare','collect','train','development','freeze','confirm'))
393
+ p.add_argument('--run',type=Path,required=True); p.add_argument('--assets',type=Path); p.add_argument('--name',default='mlp160')
394
+ p.add_argument('--shuffled-name',default='shuffled160'); p.add_argument('--epochs',type=int,default=160); p.add_argument('--hidden',type=int,default=64)
395
+ p.add_argument('--shuffle',action='store_true'); p.add_argument('--absolute',action='store_true'); p.add_argument('--primitive',action='store_true'); p.add_argument('--high-resolution',action='store_true'); p.add_argument('--resume',action='store_true'); a=p.parse_args(argv)
396
+ if a.absolute and a.primitive: p.error('Choose one action model family.')
397
+ if a.high_resolution and not a.primitive: p.error('--high-resolution requires --primitive')
398
+ if a.command in ('collect','development','confirm') and a.assets is None: p.error('--assets is required')
399
+ result = (prepare(a.run) if a.command=='prepare' else collect(a.run,a.assets) if a.command=='collect'
400
+ else fit(a.run,a.name,a.epochs,a.hidden,a.shuffle,a.absolute,a.primitive,a.high_resolution) if a.command=='train' else evaluate_development(a.run,a.assets,a.name) if a.command=='development'
401
+ else freeze(a.run,a.name,a.shuffled_name) if a.command=='freeze' else confirm(a.run,a.assets,a.resume))
402
+ print(json.dumps({k:v for k,v in result.items() if k in ('schema','variants','sample_count','successes','scheduled','training','model_bytes','training_seconds')},allow_nan=False),flush=True)
403
+
404
+
405
+ if __name__=='__main__': main()
sources/piper_imitation_driver.py ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Resume a frozen study without repeating completed native attempts.
2
+
3
+ The original driver compares tuple-valued live configuration to its JSON list
4
+ representation after saving a tape. This adapter handles only that serialization
5
+ guard, verifies the persisted identity, then resumes through the original API.
6
+ It never changes frozen files, policy commands, simulation or scoring rules.
7
+ """
8
+ from __future__ import annotations
9
+
10
+ import argparse
11
+ import json
12
+ from pathlib import Path
13
+
14
+ from . import piper_imitation_benchmark as study
15
+
16
+
17
+ def complete(root, assets):
18
+ root=Path(root)
19
+ if (root/'report.json').exists():
20
+ raise ValueError('Confirmation already complete; no attempt will be repeated.')
21
+ protocol=study.read(root/'protocol.json')
22
+ frozen=study.read(root/'frozen.json')
23
+ schedule=[(c,v) for c in protocol['cases']['confirmation'] for v in study.VARIANTS]
24
+ for _ in range(len(schedule)+1):
25
+ try:
26
+ result=study.confirm(root,assets,resume=(root/'confirmation-opened.json').exists())
27
+ records=list((root/'driver-recovery').glob('*.json')) if (root/'driver-recovery').exists() else []
28
+ study.write(root/'driver-recovery.json',dict(
29
+ schema='dvidia.piper-imitation-driver-recovery/v1', frozen_sha256=study.sha(root/'frozen.json'),
30
+ adapter_sha256=study.sha(Path(__file__)), serialization_guard_resumes=len(records),
31
+ completed_tapes_reexecuted=0, frozen_runtime_changed=False,
32
+ issue='Live configuration tuples compare unequal to persisted JSON lists; resume scores the same saved tape.',
33
+ records=[p.relative_to(root).as_posix() for p in sorted(records)]))
34
+ return result
35
+ except ValueError as exc:
36
+ if str(exc)!='Confirmation tape identity, model or runtime differs from the schedule.':
37
+ raise
38
+ if study.runtime_hashes()!=frozen['runtime_sha256']:
39
+ raise ValueError('Frozen runtime changed; recovery refused.') from exc
40
+ unscored=[]
41
+ for case,variant in schedule:
42
+ stem=case['id']+'-'+variant
43
+ tape=root/'attempts'/(stem+'.json.gz')
44
+ score=root/'attempt-scores'/(stem+'.json')
45
+ if tape.exists() and not score.exists(): unscored.append((case,variant,tape,stem))
46
+ if len(unscored)!=1:
47
+ raise ValueError('Serialization recovery requires exactly one completed unscored tape.') from exc
48
+ case,variant,tape,stem=unscored[0]
49
+ episode=study.load_episode(tape)
50
+ marker=study.read(root/'attempt-starts'/(stem+'.json'))
51
+ expected_runtime=({n:study.sha(Path(study.__file__).with_name(n)) for n in study.TEACHER_FILES}
52
+ if variant=='teacher' else frozen['runtime_sha256'])
53
+ expected_config=json.loads(json.dumps(study.asdict(study.config(case))))
54
+ key='shuffled_model_sha256' if variant=='shuffled_labels' else 'model_sha256'
55
+ if (marker.get('frozen_sha256')!=study.sha(root/'frozen.json')
56
+ or episode.get('config')!=expected_config or episode.get('seed')!=case['seed']
57
+ or episode.get('implementation_sha256')!=expected_runtime
58
+ or (variant=='teacher' and (episode.get('control')!='placement' or episode.get('policy_mode')!='baseline'))
59
+ or (variant!='teacher' and (episode.get('policy_kind')!=variant or episode.get('model_sha256')!=frozen[key]))):
60
+ raise ValueError('Persisted tape identity does not qualify for serialization recovery.') from exc
61
+ record=root/'driver-recovery'/(stem+'.json')
62
+ if record.exists():
63
+ raise ValueError('The same serialization guard repeated without forward progress.') from exc
64
+ study.write(record,dict(id=case['id'],variant=variant,tape_sha256=study.sha(tape),
65
+ frozen_sha256=study.sha(root/'frozen.json'),adapter_sha256=study.sha(Path(__file__)),
66
+ reason='configuration_tuple_list_comparison',physical_attempt_repeated=False))
67
+ raise ValueError('Exceeded the bounded frozen confirmation schedule.')
68
+
69
+
70
+ def main(argv=None):
71
+ p=argparse.ArgumentParser(description=__doc__)
72
+ p.add_argument('--run',type=Path,required=True); p.add_argument('--assets',type=Path,required=True)
73
+ a=p.parse_args(argv)
74
+ result=complete(a.run,a.assets)
75
+ print(json.dumps(result['variants']))
76
+
77
+
78
+ if __name__=='__main__': main()
sources/piper_imitation_release.py ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Audit, summarize and seal the immutable PiPER imitation evidence.
2
+
3
+ This reads saved tapes; it neither executes policies nor advances physics.
4
+ The integrity manifest detects subsequent changes, not dishonest simulation data.
5
+ """
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ from collections import Counter
10
+ import math
11
+ from pathlib import Path
12
+ import shutil
13
+
14
+ import numpy as np
15
+
16
+ from .piper_imitation_benchmark import (VARIANTS, RUNTIME_FILES, read, write, sha,
17
+ load_episode, runtime_hashes)
18
+ from .piper_imitation_score import score_episode
19
+
20
+
21
+ def _inside(root, name):
22
+ if not isinstance(name, str) or '\\' in name:
23
+ raise ValueError('Expected a relative evidence path.')
24
+ p = Path(name)
25
+ if p.is_absolute() or any(s in ('', '.', '..') for s in p.parts):
26
+ raise ValueError('Unsafe evidence path.')
27
+ result = root/p
28
+ if result.is_symlink() or not result.resolve().is_relative_to(root.resolve()):
29
+ raise ValueError('Evidence must remain inside this study.')
30
+ return result
31
+
32
+
33
+ def _stats(values):
34
+ if not values:
35
+ return None
36
+ a = np.asarray(values, dtype=float)
37
+ if not np.isfinite(a).all() or np.any(a < 0):
38
+ raise ValueError('Timing measurements must be finite nonnegative numbers.')
39
+ return dict(samples=len(values), p50_s=float(np.percentile(a, 50)),
40
+ p95_s=float(np.percentile(a, 95)), p99_s=float(np.percentile(a, 99)), maximum_s=float(max(a)))
41
+
42
+
43
+ def _wilson(successes, count):
44
+ z = 1.959963984540054
45
+ p = successes/count
46
+ d = 1+z*z/count
47
+ center = (p+z*z/(2*count))/d
48
+ half = z*math.sqrt(p*(1-p)/count+z*z/(4*count*count))/d
49
+ return [max(0., center-half), min(1., center+half)]
50
+
51
+
52
+ def audit(root):
53
+ """Recompute every scheduled endpoint and verify the frozen bindings."""
54
+ root = Path(root)
55
+ report, protocol, frozen = (read(root/name) for name in ('report.json','protocol.json','frozen.json'))
56
+ if report.get('status') != 'completed' or report.get('physical_robot_ready') is not False:
57
+ raise ValueError('Only a completed simulation study may be audited.')
58
+ for name, key in (('model/model.json','model_sha256'),('model/shuffled-model.json','shuffled_model_sha256'),
59
+ ('training/dataset.json','dataset_sha256'),('training/samples.npz','samples_sha256'),('protocol.json','protocol_sha256')):
60
+ if sha(root/name) != frozen[key]:
61
+ raise ValueError('Frozen artifact changed: '+name)
62
+ if runtime_hashes() != frozen['runtime_sha256']:
63
+ raise ValueError('Frozen runtime differs from the installed implementation.')
64
+ if report['frozen_sha256'] != sha(root/'frozen.json') or report['protocol_sha256'] != sha(root/'protocol.json'):
65
+ raise ValueError('Report is not bound to this freeze.')
66
+ starts = {split:{tuple(c['start_xy']) for c in rows} for split,rows in protocol['cases'].items()}
67
+ if any(starts[a]&starts[b] for a,b in (('train','development'),('train','confirmation'),('development','confirmation'))):
68
+ raise ValueError('An initial position leaked across splits.')
69
+ training = read(root/'training/dataset.json')
70
+ if training != report['training']:
71
+ raise ValueError('Report training receipt changed.')
72
+ for row in training['rows']:
73
+ p = _inside(root,row['episode'])
74
+ if sha(p) != row['sha256'] or score_episode(load_episode(p),row['goal_xy']) != row['score']:
75
+ raise ValueError('Teacher hash or independently recomputed score changed.')
76
+ cases = {c['id']:c for c in protocol['cases']['confirmation']}
77
+ expected = {(c,v) for c in cases for v in VARIANTS}
78
+ observed = set()
79
+ variants = {v:dict(scheduled=0, valid=0, successes=0, failures=0, reasons=Counter(),
80
+ inference=[], steps=[], wall=[], missed=0, rss=[]) for v in VARIANTS}
81
+ for row in report['attempts']:
82
+ identity = (row['id'],row['variant'])
83
+ if identity not in expected or identity in observed:
84
+ raise ValueError('Missing, duplicate or unexpected confirmation attempt.')
85
+ observed.add(identity)
86
+ case = cases[row['id']]
87
+ if any(row[k] != case[k] for k in ('start_xy','goal_xy','seed')):
88
+ raise ValueError('Attempt identity differs from the frozen case.')
89
+ p = _inside(root,row['episode'])
90
+ episode = load_episode(p)
91
+ score = score_episode(episode,case['goal_xy'])
92
+ saved = read(root/'attempt-scores'/(row['id']+'-'+row['variant']+'.json'))
93
+ if sha(p)!=row['sha256'] or row != saved or score!=row['score']:
94
+ raise ValueError('Attempt bytes or independently recomputed endpoint changed.')
95
+ if row['variant']!='teacher' and episode.get('reason')!='interrupted':
96
+ key = 'shuffled_model_sha256' if row['variant']=='shuffled_labels' else 'model_sha256'
97
+ if episode.get('model_sha256')!=frozen[key] or episode.get('implementation_sha256')!=frozen['runtime_sha256']:
98
+ raise ValueError('Attempt model/runtime binding differs from the freeze.')
99
+ v = variants[row['variant']]
100
+ v['scheduled']+=1; v['valid']+=int(episode.get('valid') is True)
101
+ v['successes']+=int(score['success']); v['failures']+=int(not score['success'])
102
+ v['reasons'][score['reason']]+=1
103
+ timing = episode.get('timing',{})
104
+ v['inference'].extend(timing.get('inference_samples_s',[]))
105
+ v['steps'].extend(timing.get('control_step_samples_s',[]))
106
+ if 'wall_seconds' in timing: v['wall'].append(timing['wall_seconds'])
107
+ v['missed']+=timing.get('missed_20ms_boundaries',0)
108
+ if timing.get('process_peak_rss_bytes') is not None: v['rss'].append(timing['process_peak_rss_bytes'])
109
+ if observed != expected:
110
+ raise ValueError('The full frozen confirmation roster has not completed.')
111
+ for name,v in variants.items():
112
+ if report['variants'][name]!={'scheduled':v['scheduled'],'successes':v['successes']}:
113
+ raise ValueError('Published numerator or denominator differs from saved tapes.')
114
+ v['descriptive_wilson_95_interval'] = _wilson(v['successes'],v['scheduled'])
115
+ v['inference_compute'] = _stats(v.pop('inference'))
116
+ v['control_step_compute'] = _stats(v.pop('steps'))
117
+ v['episode_wall'] = _stats(v.pop('wall'))
118
+ v['missed_20ms_compute_boundaries'] = v.pop('missed')
119
+ v['process_peak_rss_bytes'] = max(v.pop('rss'), default=None)
120
+ v['reasons'] = dict(v['reasons'])
121
+ return dict(schema='dvidia.piper-imitation-audit/v1',report_sha256=sha(root/'report.json'),
122
+ verified_attempts=len(observed),split_overlap=False,variants=variants,
123
+ confidence_scope='Descriptive Wilson intervals only; these twelve deterministic nearby cases are not independent draws from a real-world task distribution.',
124
+ timing_scope='CPU compute only; includes source-process overhead, excludes camera, transport and physical actuation. Peak RSS is cumulative process high-water mark.',
125
+ physical_robot_ready=False)
126
+
127
+
128
+ def seal(root):
129
+ root = Path(root)
130
+ if (root/'integrity.json').exists():
131
+ raise ValueError('Study is already sealed; do not overwrite its integrity manifest.')
132
+ summary = audit(root)
133
+ write(root/'audit.json',summary)
134
+ model=read(root/'model/model.json'); frozen=read(root/'frozen.json')
135
+ write(root/'model/skill.json',dict(schema='dvidia.learned-simulation-skill/v1',
136
+ id='piper-block-placement-v01',publisher='DVIDIA',license='MIT',release_stage='research',
137
+ model_file='model.json',model_sha256=sha(root/'model/model.json'),model_schema=model['schema'],
138
+ feature_contract=model['feature_contract'],supervision_origin='synthetic_authored_controller',
139
+ embodiment='piper',profile_lock_sha256=frozen['runtime_sha256']['robot_profiles.lock.json'],
140
+ simulation_only=True,physical_robot_ready=False,learned_contact_recovery=False,
141
+ native_control=dict(arm='six joint position targets, radians',jaw='one coupled jaw position target, metres',
142
+ control_dt_s=.02,timestep_s=.001,authored_native_servos=True),
143
+ scope=dict(object='one 40 g rigid block',start_x_m=[.284,.314],start_y_m=[-.045,-.015],
144
+ known_goal_xy_m=[[.35,.08],[.40,-.08]],goal_z_m=.08,
145
+ novel_goals_tested=False,novel_objects_tested=False,disturbance_recovery_tested=False),
146
+ confirmation=summary['variants']['learned'],report_sha256=sha(root/'report.json')))
147
+ source = root/'sources'; source.mkdir()
148
+ package = Path(__file__).parent
149
+ extras = ('piper_imitation_release.py','piper_imitation_driver.py','piper_learned_skill.py','piper_imitation_viewer.py',
150
+ 'piper_imitation_viewer.js','piper_imitation_viewer.html','piper_imitation_viewer.bundle.js',
151
+ 'reference_replay.py')
152
+ for name in (*RUNTIME_FILES,*extras):
153
+ shutil.copyfile(package/name,source/name)
154
+ repository = package.parents[1]
155
+ shutil.copyfile(repository/'LICENSE',source/'LICENSE')
156
+ shutil.copyfile(repository/'pyproject.toml',source/'pyproject.toml.txt')
157
+ files = {}
158
+ for path in sorted(root.rglob('*')):
159
+ if path.is_symlink(): raise ValueError('Sealed evidence cannot contain symlinks.')
160
+ if path.is_file(): files[path.relative_to(root).as_posix()] = dict(bytes=path.stat().st_size,sha256=sha(path))
161
+ write(root/'integrity.json',dict(schema='dvidia.piper-imitation-integrity/v1',files=files))
162
+ return dict(files=len(files),integrity_sha256=sha(root/'integrity.json'),audit=summary)
163
+
164
+
165
+ def main(argv=None):
166
+ p=argparse.ArgumentParser(description=__doc__)
167
+ p.add_argument('command',choices=('audit','seal')); p.add_argument('--run',type=Path,required=True)
168
+ args=p.parse_args(argv)
169
+ import json
170
+ print(json.dumps(audit(args.run) if args.command=='audit' else seal(args.run),indent=2,allow_nan=False))
171
+
172
+
173
+ if __name__=='__main__': main()
sources/piper_imitation_score.py ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Independent fixed-reference scoring for recorded synthetic PiPER episodes.
2
+
3
+ This validates trace shape and recorded outcomes. It does not authenticate the
4
+ episode source or recompute native physics/contact history from raw MuJoCo data.
5
+ """
6
+ from __future__ import annotations
7
+
8
+ import math
9
+
10
+
11
+ CONTROL_DT_S = .02
12
+ TIME_TOLERANCE_S = 1e-8
13
+
14
+
15
+ def _finite_vector(value, size, low=-1., high=1.):
16
+ if type(value) not in (list, tuple) or len(value) != size:
17
+ return None
18
+ if any(type(item) not in (int, float) or not math.isfinite(item) or not low <= item <= high
19
+ for item in value):
20
+ return None
21
+ return [float(item) for item in value]
22
+
23
+
24
+ def _finite_number(value, low, high):
25
+ return (type(value) in (int, float) and math.isfinite(value) and low <= value <= high)
26
+
27
+
28
+ def _failed(reason, **details):
29
+ return {'success': False, 'reason': reason, **details}
30
+
31
+
32
+ def score_episode(episode, reference_xy):
33
+ """Score one complete, dense PiPER trace against a fixed destination.
34
+
35
+ Malformed and failed trials return a failure result rather than raising, so
36
+ callers can retain every scheduled attempt in its denominator. ``episode``
37
+ is expected to be a simulator-authored run_episode record; its recorded
38
+ native metrics are evidence, not authenticated sensor data.
39
+ """
40
+ reference = _finite_vector(reference_xy, 2, -.5, .5)
41
+ if reference is None:
42
+ return _failed('invalid_reference', reference_xy_m=None)
43
+
44
+ if type(episode) is not dict:
45
+ return _failed('malformed_episode', reference_xy_m=reference)
46
+ config = episode.get('config')
47
+ actions = episode.get('actions')
48
+ states = episode.get('trajectory')
49
+ metrics = episode.get('metrics')
50
+ if type(config) is not dict or type(actions) is not list or type(states) is not list or type(metrics) is not dict:
51
+ return _failed('incomplete_episode_record', reference_xy_m=reference)
52
+
53
+ control_dt = config.get('control_dt')
54
+ timeout = config.get('timeout_s')
55
+ tolerance = config.get('goal_position_tolerance_m')
56
+ dwell_required = config.get('goal_dwell_s')
57
+ minimum_lift = config.get('min_lift_m')
58
+ lift_dwell_required = config.get('min_lift_dwell_s')
59
+ retreat = config.get('retreat_clearance_m')
60
+ if (not _finite_number(control_dt, .02, .02) or not _finite_number(timeout, .1, 30.)
61
+ or not math.isclose(timeout / CONTROL_DT_S, round(timeout / CONTROL_DT_S), abs_tol=1e-9, rel_tol=0)
62
+ or not _finite_number(tolerance, .01, .025) or not _finite_number(dwell_required, .1, .6)
63
+ or not _finite_number(minimum_lift, .04, .1)
64
+ or not _finite_number(lift_dwell_required, .05, .3) or not _finite_number(retreat, .08, .15)):
65
+ return _failed('invalid_task_config', reference_xy_m=reference)
66
+
67
+ expected_actions = round(timeout / CONTROL_DT_S)
68
+ if len(actions) != expected_actions or len(states) != expected_actions + 1:
69
+ return _failed('incomplete_trajectory', reference_xy_m=reference,
70
+ expected_actions=expected_actions, observed_actions=len(actions),
71
+ expected_states=expected_actions + 1, observed_states=len(states))
72
+
73
+ initial_position = _finite_vector(episode.get('initial_object_position_m'), 3, -.5, .5)
74
+ if initial_position is None:
75
+ return _failed('missing_reset_record', reference_xy_m=reference)
76
+
77
+ state_fields = ('t_seconds', 'object_position_m', 'table_object_contact_count',
78
+ 'grasp_contact_counts', 'gripper_joint_position_m',
79
+ 'object_linear_velocity_m_s', 'object_angular_velocity_rad_s', 'tcp_position_m')
80
+ normalized = []
81
+ for index, state in enumerate(states):
82
+ if type(state) is not dict or any(name not in state for name in state_fields):
83
+ return _failed('incomplete_state', reference_xy_m=reference, state_index=index)
84
+ timestamp = state['t_seconds']
85
+ expected_time = index * CONTROL_DT_S
86
+ if (not _finite_number(timestamp, 0., timeout + CONTROL_DT_S)
87
+ or not math.isclose(timestamp, expected_time, abs_tol=TIME_TOLERANCE_S, rel_tol=0)):
88
+ return _failed('invalid_timestamp_cadence', reference_xy_m=reference, state_index=index,
89
+ expected_t_seconds=expected_time,
90
+ observed_t_seconds=timestamp if _finite_number(timestamp, 0., timeout + CONTROL_DT_S) else None)
91
+ obj = _finite_vector(state['object_position_m'], 3, -.5, .5)
92
+ linear = _finite_vector(state['object_linear_velocity_m_s'], 3, -100., 100.)
93
+ angular = _finite_vector(state['object_angular_velocity_rad_s'], 3, -100., 100.)
94
+ tcp = _finite_vector(state['tcp_position_m'], 3, -.5, .5)
95
+ jaw = _finite_vector(state['gripper_joint_position_m'], 2, -.04, .045)
96
+ contacts = state['grasp_contact_counts']
97
+ table_count = state['table_object_contact_count']
98
+ if (None in (obj, linear, angular, tcp, jaw)
99
+ or type(contacts) is not dict or set(contacts) != {'left', 'right'}
100
+ or any(type(v) is not int or v < 0 or v > 100 for v in contacts.values())
101
+ or type(table_count) is not int or not 0 <= table_count <= 100):
102
+ return _failed('invalid_state_value', reference_xy_m=reference, state_index=index)
103
+
104
+ if index < expected_actions:
105
+ action = actions[index]
106
+ if type(action) is not dict or not _finite_number(action.get('t_seconds'), 0., timeout):
107
+ return _failed('incomplete_action_record', reference_xy_m=reference, action_index=index)
108
+ if not math.isclose(action['t_seconds'], expected_time, abs_tol=TIME_TOLERANCE_S, rel_tol=0):
109
+ return _failed('action_timestamp_mismatch', reference_xy_m=reference, action_index=index)
110
+ targets = _finite_vector(action.get('joint_targets_rad'), 6, -10., 10.)
111
+ jaw_target = action.get('gripper_position_m')
112
+ if targets is None or not _finite_number(jaw_target, 0., .035):
113
+ return _failed('invalid_action_value', reference_xy_m=reference, action_index=index)
114
+ if (state.get('issued_joint_targets_rad') != action['joint_targets_rad']
115
+ or state.get('issued_gripper_position_m') != jaw_target
116
+ or state.get('command') != action):
117
+ return _failed('action_state_mismatch', reference_xy_m=reference, action_index=index)
118
+ elif state.get('command') is not None or state.get('issued_joint_targets_rad') is not None or state.get('issued_gripper_position_m') is not None:
119
+ return _failed('invalid_terminal_record', reference_xy_m=reference, state_index=index)
120
+
121
+ normalized.append((obj, linear, angular, tcp, jaw, contacts, table_count))
122
+
123
+ if any(abs(normalized[0][0][axis] - initial_position[axis]) > 1e-6 for axis in range(3)):
124
+ return _failed('reset_state_mismatch', reference_xy_m=reference)
125
+
126
+ native_boolean_fields = ('valid', 'success', 'lift_seen', 'grasp_seen',
127
+ 'carry_complete', 'retention_lost')
128
+ if (any(type(metrics.get(name)) is not bool for name in native_boolean_fields)
129
+ or type(episode.get('valid')) is not bool or type(episode.get('success')) is not bool):
130
+ return _failed('incomplete_native_metrics', reference_xy_m=reference)
131
+ native_valid = metrics['valid'] is True and episode['valid'] is True
132
+ native_success = metrics['success'] is True and episode['success'] is True
133
+ lift_seen = metrics.get('lift_seen') is True
134
+ grasp_seen = metrics.get('grasp_seen') is True
135
+ carry_complete = metrics.get('carry_complete') is True
136
+ retention_lost = metrics.get('retention_lost') is False
137
+ unexpected = metrics.get('unexpected_contact_native_ticks')
138
+ max_lift = metrics.get('max_object_lift_m')
139
+ native_dwell = metrics.get('dwell_seconds')
140
+ live_lift_dwell = metrics.get('lift_dwell_seconds')
141
+ warnings = metrics.get('warnings')
142
+ if (type(unexpected) is not int or unexpected < 0 or not _finite_number(max_lift, 0., 10.)
143
+ or not _finite_number(native_dwell, 0., timeout)
144
+ or not _finite_number(live_lift_dwell, 0., timeout)
145
+ or type(warnings) is not list):
146
+ return _failed('incomplete_native_metrics', reference_xy_m=reference)
147
+
148
+ # lift_dwell_seconds is a live streak, so it resets after the block is
149
+ # supported or released. Require the native lift_seen latch and independently
150
+ # reconstruct its historical condition from dense control-boundary samples.
151
+ lift_streak_start = None
152
+ max_trace_lift_dwell = 0.
153
+ for index, (obj, _, _, _, _, contacts, table_count) in enumerate(normalized):
154
+ loaded = (contacts['left'] > 0 and contacts['right'] > 0 and table_count == 0
155
+ and obj[2] - initial_position[2] + TIME_TOLERANCE_S >= minimum_lift)
156
+ if loaded:
157
+ if lift_streak_start is None:
158
+ lift_streak_start = index * CONTROL_DT_S
159
+ max_trace_lift_dwell = max(max_trace_lift_dwell,
160
+ index * CONTROL_DT_S - lift_streak_start)
161
+ else:
162
+ lift_streak_start = None
163
+ trace_lift_seen = max_trace_lift_dwell + TIME_TOLERANCE_S >= lift_dwell_required
164
+ native_gates = (native_valid and native_success and lift_seen and grasp_seen and carry_complete
165
+ and retention_lost and unexpected == 0 and max_lift >= minimum_lift
166
+ and native_dwell + TIME_TOLERANCE_S >= dwell_required
167
+ and trace_lift_seen and not warnings)
168
+
169
+ streak_start = None
170
+ for index, (obj, linear, angular, tcp, jaw, contacts, table_count) in enumerate(normalized):
171
+ qualified = (math.dist(obj[:2], reference) <= tolerance and table_count > 0
172
+ and contacts['left'] == 0 and contacts['right'] == 0
173
+ and jaw[0] >= .028 and jaw[1] <= -.028
174
+ and math.sqrt(sum(v*v for v in linear)) <= .035
175
+ and math.sqrt(sum(v*v for v in angular)) <= .3
176
+ and tcp[2] - obj[2] >= retreat)
177
+ if not qualified:
178
+ streak_start = None
179
+ elif streak_start is None:
180
+ streak_start = index * CONTROL_DT_S
181
+ terminal_span = (expected_actions * CONTROL_DT_S - streak_start) if streak_start is not None else 0.
182
+ terminal_error = math.dist(normalized[-1][0][:2], reference)
183
+ reference_success = streak_start is not None and terminal_span + TIME_TOLERANCE_S >= dwell_required
184
+ success = bool(native_gates and reference_success)
185
+ reason = ('success' if success else 'native_outcome_failed' if not native_gates else
186
+ 'terminal_reference_failed' if streak_start is None else 'terminal_dwell_insufficient')
187
+ return {'success': success, 'reason': reason, 'reference_xy_m': reference,
188
+ 'terminal_reference_success': bool(reference_success), 'native_outcome_success': bool(native_gates),
189
+ 'native_outcome_valid': bool(native_valid), 'terminal_dwell_s': max(0., terminal_span),
190
+ 'required_dwell_s': float(dwell_required), 'terminal_xy_error_m': terminal_error,
191
+ 'trace_lift_dwell_s': max_trace_lift_dwell,
192
+ 'required_lift_dwell_s': float(lift_dwell_required),
193
+ 'sample_interval_s': CONTROL_DT_S, 'trajectory_complete': True,
194
+ 'native_metrics_source': 'simulator-authored episode record; not authenticated sensor input'}
sources/piper_imitation_viewer.bundle.js ADDED
The diff for this file is too large to render. See raw diff
 
sources/piper_imitation_viewer.html ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="color-scheme" content="light">
7
+ <meta name="description" content="Inspect recorded simulation replays and the evaluation evidence for a learned PiPER manipulation policy.">
8
+ <title>DVIDIA · A small skill. A measured test.</title>
9
+ <style>
10
+ :root {
11
+ color-scheme: light;
12
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
13
+ font-synthesis: none;
14
+ color: #29362e;
15
+ background: #f5f3ea;
16
+ --paper: #f5f3ea;
17
+ --ink: #29362e;
18
+ --muted: #5e695f;
19
+ --line: #d1d6c7;
20
+ --green: #2e5b40;
21
+ --green-hover: #21482f;
22
+ --focus: #246886;
23
+ }
24
+ * { box-sizing: border-box; }
25
+ html { min-width: 320px; }
26
+ body {
27
+ margin: 0;
28
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.035' filter='url(%23grain)'/%3E%3C/svg%3E");
29
+ }
30
+ a { color: var(--green); text-underline-offset: 4px; }
31
+ a:hover { text-decoration-thickness: 2px; }
32
+ button, input, select { font: inherit; }
33
+ button, select { min-height: 44px; }
34
+ button, select, summary, input[type="range"] { cursor: pointer; }
35
+ button:disabled, select:disabled, input:disabled { cursor: default; opacity: .56; }
36
+ :focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
37
+ [hidden] { display: none !important; }
38
+ .page { max-width: 1480px; margin: 0 auto; padding: 0 40px; }
39
+ .masthead {
40
+ display: flex;
41
+ justify-content: space-between;
42
+ align-items: center;
43
+ gap: 20px;
44
+ min-height: 91px;
45
+ border-bottom: 1px solid var(--line);
46
+ }
47
+ .brand { color: var(--ink); text-decoration: none; font-weight: 760; font-size: 20px; letter-spacing: .12em; }
48
+ .brand span { font-size: 10px; letter-spacing: .16em; font-weight: 500; margin-left: 12px; color: var(--muted); }
49
+ .nav { display: flex; align-items: center; flex-wrap: wrap; column-gap: 26px; }
50
+ .nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 12px; text-decoration: none; }
51
+ .nav a:hover { text-decoration: underline; }
52
+ .hero { padding: 37px 0 30px; }
53
+ .eyebrow { margin: 0; font-size: 10px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
54
+ .eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin: 0 8px 1px 0; background: var(--green); }
55
+ h1 { margin: 12px 0 12px; font: 400 clamp(35px, 4.3vw, 60px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
56
+ .intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
57
+ .intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
58
+ .replay-label { font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; border: 1px solid #abbba8; border-radius: 2px; padding: 5px 8px; color: #38503e; }
59
+ .layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: stretch; border: 1px solid var(--line); background: #faf9f280; }
60
+ .viewer { min-width: 0; }
61
+ .stage { position: relative; height: clamp(390px, 40vw, 580px); overflow: hidden; background: #edeee4; }
62
+ #viewport { display: block; width: 100%; height: 100%; touch-action: none; }
63
+ .stage-top { position: absolute; z-index: 1; top: 20px; left: 22px; right: 22px; display: flex; justify-content: space-between; gap: 16px; pointer-events: none; color: #516150; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
64
+ .stage-top span:last-child { text-align: right; }
65
+ .stage-bottom { position: absolute; z-index: 1; bottom: 17px; left: 22px; right: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; color: #526151; font-size: 11px; pointer-events: none; }
66
+ #frame { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
67
+ .loading { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; padding: 32px; background: #edeee4; color: #4f624f; text-align: center; line-height: 1.6; font-size: 14px; }
68
+ .loading.failure { color: #813d31; background: #f6eee6; }
69
+ .playback { border-top: 1px solid var(--line); padding: 16px 20px 13px; }
70
+ .play-row { display: flex; align-items: center; gap: 16px; }
71
+ #play { flex: 0 0 auto; min-width: 109px; border: 1px solid var(--green); border-radius: 3px; background: var(--green); padding: 10px 17px; color: #fffdf4; font-size: 12px; font-weight: 600; }
72
+ #play:not(:disabled):hover { background: var(--green-hover); border-color: var(--green-hover); }
73
+ #timeline { min-width: 48px; width: 100%; height: 44px; margin: 0; accent-color: var(--green); }
74
+ #clock { flex: 0 0 auto; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; color: #4e5c4e; }
75
+ .speed-label { flex: 0 0 auto; }
76
+ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
77
+ select { width: 100%; border: 1px solid #b8c2af; border-radius: 3px; color: var(--ink); background-color: #fffef7; padding: 9px 30px 9px 11px; font-size: 12px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #51624d 50%), linear-gradient(135deg, #51624d 50%, transparent 50%); background-position: calc(100% - 15px) 19px, calc(100% - 10px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
78
+ #speed { width: 68px; padding-left: 10px; }
79
+ .status { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
80
+ .evidence { min-width: 0; border-left: 1px solid var(--line); padding: 24px 22px 20px; }
81
+ .field { display: block; margin: 0 0 15px; }
82
+ .field-label { display: block; margin-bottom: 7px; color: #52604f; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
83
+ .case-heading { margin: 24px 0 13px; font: 400 24px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.025em; overflow-wrap: anywhere; }
84
+ .metrics { margin: 0; }
85
+ .metric { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
86
+ .metric dt { font-size: 11px; color: var(--muted); }
87
+ .metric dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
88
+ #outcome[data-outcome="success"] { color: #2b613b; }
89
+ #outcome[data-outcome="failure"] { color: #88452d; }
90
+ #goal-error { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 400; }
91
+ .selection-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
92
+ #readouts { margin: 26px 0 0; }
93
+ #readouts > div + div { margin-top: 14px; }
94
+ #readouts dt { color: var(--muted); font-size: 10px; }
95
+ #readouts dd { margin: 6px 0 0; color: #3c513d; font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
96
+ .evidence-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font-size: 11px; }
97
+ .below { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; padding: 19px 0 25px; }
98
+ .replay-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; max-width: 72ch; }
99
+ .study-details { border-top: 1px solid var(--line); }
100
+ summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 0; list-style: none; font: 400 21px/1.3 Georgia, "Times New Roman", serif; letter-spacing: -.015em; }
101
+ summary::-webkit-details-marker { display: none; }
102
+ summary::after { content: "+"; font: 400 23px/1 sans-serif; color: var(--green); }
103
+ details[open] summary::after { content: "−"; }
104
+ .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; padding: 4px 0 30px; }
105
+ .detail-grid h2 { margin: 0 0 15px; color: #4f5d4d; font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
106
+ .table-wrap { overflow-x: auto; }
107
+ table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.6; }
108
+ th { font-size: 10px; color: var(--muted); font-weight: 500; }
109
+ th, td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
110
+ th:not(:first-child), td:not(:first-child) { text-align: right; }
111
+ th:last-child, td:last-child { padding-right: 0; }
112
+ #limitations { margin: 0; padding-left: 16px; color: var(--muted); font-size: 12px; line-height: 1.7; }
113
+ #limitations li + li { margin-top: 7px; }
114
+ .footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; padding: 20px 0 27px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }
115
+ .footer a { color: #4c614d; }
116
+ noscript p { padding: 16px; border: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
117
+ @media (max-width: 1050px) {
118
+ .page { padding: 0 25px; }
119
+ .layout { grid-template-columns: minmax(0, 1fr) 242px; }
120
+ .evidence { padding: 21px 17px; }
121
+ .play-row { gap: 10px; flex-wrap: wrap; }
122
+ #timeline { flex: 1 1 100px; }
123
+ .stage { height: 480px; }
124
+ .detail-grid { gap: 35px; }
125
+ }
126
+ @media (max-width: 760px) {
127
+ .masthead { min-height: 79px; }
128
+ .brand span { display: none; }
129
+ .nav { column-gap: 17px; }
130
+ .hero { padding: 30px 0 25px; }
131
+ .layout { grid-template-columns: minmax(0, 1fr); }
132
+ .stage { height: clamp(330px, 68vw, 470px); }
133
+ .evidence { border-left: 0; border-top: 1px solid var(--line); padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
134
+ .field { margin-bottom: 3px; }
135
+ .case-heading { grid-column: 1 / -1; margin-top: 24px; margin-bottom: 2px; }
136
+ .metrics, .selection-note { grid-column: 1 / -1; }
137
+ #readouts { margin-top: 18px; }
138
+ .evidence-link { align-self: end; justify-self: end; }
139
+ .below { grid-template-columns: minmax(0, 1fr); padding-top: 15px; }
140
+ .detail-grid { grid-template-columns: 1fr; gap: 27px; }
141
+ }
142
+ @media (max-width: 430px) {
143
+ .page { padding: 0 15px; }
144
+ .masthead { gap: 12px; min-height: 75px; flex-wrap: wrap; padding: 13px 0 9px; }
145
+ .brand { font-size: 17px; }
146
+ .nav { gap: 14px; }
147
+ .nav a { font-size: 10px; }
148
+ .hero { padding-top: 25px; }
149
+ h1 { font-size: 36px; max-width: 10.5em; }
150
+ .intro p { font-size: 12px; }
151
+ .stage { height: 335px; }
152
+ .stage-top { top: 15px; left: 14px; right: 14px; font-size: 9px; }
153
+ .stage-bottom { left: 14px; right: 14px; bottom: 13px; font-size: 10px; }
154
+ .playback { padding: 13px 13px 11px; }
155
+ .play-row { gap: 7px 10px; }
156
+ #play { min-width: 91px; padding-left: 12px; padding-right: 12px; }
157
+ #timeline { flex-basis: calc(100% - 102px); }
158
+ #clock { margin-left: auto; }
159
+ .evidence { padding: 19px 14px; gap: 0 13px; }
160
+ .field-label { font-size: 9px; }
161
+ .case-heading { font-size: 22px; }
162
+ .footer { font-size: 10px; }
163
+ }
164
+ @media (prefers-reduced-motion: reduce) {
165
+ *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
166
+ }
167
+ </style>
168
+ </head>
169
+ <body>
170
+ <div class="page">
171
+ <header class="masthead">
172
+ <a class="brand" href="https://research.dvidia.org/" aria-label="DVIDIA research home">DVIDIA<span>RESEARCH</span></a>
173
+ <nav class="nav" aria-label="DVIDIA links">
174
+ <a href="https://github.com/Dvidia-Inference/dvidia-training">GitHub ↗</a>
175
+ <a href="https://huggingface.co/Dvidia">Hugging Face ↗</a>
176
+ <a href="https://research.dvidia.org/">Research ↗</a>
177
+ </nav>
178
+ </header>
179
+
180
+ <main>
181
+ <header class="hero">
182
+ <p class="eyebrow">PiPER · Learned policy study</p>
183
+ <h1>One block. A measured test.</h1>
184
+ <div class="intro">
185
+ <span class="replay-label">Recorded simulation replay</span>
186
+ <p>Watch a saved rollout. Inspect the result behind it.</p>
187
+ </div>
188
+ <p class="selection-note" id="aggregate">Reading the complete confirmation cohort…</p>
189
+ </header>
190
+
191
+ <div class="layout">
192
+ <section class="viewer" aria-label="Recorded policy replay">
193
+ <div class="stage" id="stage">
194
+ <canvas id="viewport" tabindex="0" aria-label="Three-dimensional simulation replay. Drag or use arrow keys to orbit, scroll or use plus and minus to zoom, H resets the camera, Space plays or pauses."></canvas>
195
+ <div class="stage-top"><span>PiPER / Simulation</span><span>Saved evaluation frames</span></div>
196
+ <div class="stage-bottom"><span>Drag to orbit · Scroll to zoom</span><span id="frame">Frame —</span></div>
197
+ <div id="loading" class="loading" role="status">Loading the recorded replay…</div>
198
+ </div>
199
+ <div class="playback">
200
+ <div class="play-row">
201
+ <button id="play" type="button" aria-pressed="false" disabled>Play replay</button>
202
+ <input id="timeline" type="range" min="0" max="1" step="1" value="0" aria-label="Replay timeline" disabled>
203
+ <span id="clock">0.00 / 0.00 s</span>
204
+ <label class="speed-label"><span class="sr-only">Playback speed</span><select id="speed" disabled><option value="0.5">½×</option><option value="1" selected>1×</option><option value="2">2×</option></select></label>
205
+ </div>
206
+ <p id="status" class="status" role="status" aria-live="polite">Preparing the saved evaluation evidence.</p>
207
+ </div>
208
+ </section>
209
+
210
+ <aside class="evidence" aria-label="Replay selection and evidence">
211
+ <label class="field"><span class="field-label">Evaluation case</span><select id="case-select" disabled><option>Loading cases…</option></select></label>
212
+ <label class="field"><span class="field-label">Policy variant</span><select id="variant-select" disabled><option>Loading variants…</option></select></label>
213
+ <h2 class="case-heading" id="case-title">A recorded rollout</h2>
214
+ <dl class="metrics">
215
+ <div class="metric"><dt>Episode outcome</dt><dd id="outcome">Awaiting report</dd></div>
216
+ <div class="metric"><dt>Final goal error</dt><dd id="goal-error">—</dd></div>
217
+ </dl>
218
+ <p class="selection-note" id="selection-note">Replay selection and results are read from the saved evaluation report.</p>
219
+ <dl id="readouts">
220
+ <div><dt>Arm joints · radians</dt><dd id="joint-positions">—</dd></div>
221
+ <div><dt>Jaw position</dt><dd id="jaw-position">—</dd></div>
222
+ </dl>
223
+ <a id="download-report" class="evidence-link" href="report.json" download>Download report <span aria-hidden="true">&nbsp;↓</span></a>
224
+ </aside>
225
+ </div>
226
+
227
+ <div class="below"><p class="replay-note" id="replay-note">These are saved simulation frames. Playback does not rerun the policy or physics.</p></div>
228
+
229
+ <details class="study-details">
230
+ <summary>Evaluation details &amp; limits</summary>
231
+ <div class="detail-grid">
232
+ <section aria-labelledby="counts-title">
233
+ <h2 id="counts-title">Reported evaluation counts</h2>
234
+ <div class="table-wrap">
235
+ <table>
236
+ <thead><tr><th scope="col">Policy variant</th><th scope="col">Successful</th><th scope="col">Evaluated</th></tr></thead>
237
+ <tbody id="counts"><tr><td colspan="3">Loading the evaluation report…</td></tr></tbody>
238
+ </table>
239
+ </div>
240
+ </section>
241
+ <section aria-labelledby="limits-title">
242
+ <h2 id="limits-title">What this evidence supports</h2>
243
+ <ul id="limitations">
244
+ <li>This viewer shows recorded simulation results.</li>
245
+ <li>A selected replay is one rollout; use the report to inspect aggregate results.</li>
246
+ <li>Simulation results do not establish performance on physical hardware.</li>
247
+ </ul>
248
+ </section>
249
+ </div>
250
+ </details>
251
+ <noscript><p>This replay requires JavaScript and WebGL. You can still <a href="report.json" download>download the evaluation report</a>.</p></noscript>
252
+ </main>
253
+
254
+ <footer class="footer"><span>DVIDIA · Open research, inspectable evidence.</span><span>PiPER imitation study · Simulation only</span></footer>
255
+ </div>
256
+ <script src="piper_imitation_viewer.bundle.js" defer></script>
257
+ </body>
258
+ </html>
sources/piper_imitation_viewer.js ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Recorded native PiPER states only. No physics, inference, telemetry or remote imports. */
2
+ import * as THREE from 'three';
3
+ import {OrbitControls} from 'three/addons/controls/OrbitControls.js';
4
+
5
+ const $ = id => document.getElementById(id);
6
+ const MAX_BYTES = 64 * 1024 * 1024;
7
+ const labels = {learned: 'Learned policy', teacher: 'Authored teacher', open_jaw: 'Learned arm · open jaw', hold: 'Hold still · open jaw', shuffled_labels: 'Shuffled-label learner'};
8
+ const finite = value => typeof value === 'number' && Number.isFinite(value);
9
+ let model, metadata, poseBytes, renderer, camera, scene, controls, bodies, selected;
10
+ let frame = 0, playing = false, requested = false, originTime = 0, originClock = 0;
11
+ const focus = new THREE.Vector3(.25, 0, .25);
12
+
13
+ function assert(condition, message) { if (!condition) throw new Error(message); }
14
+ function vector(value, size, label) { assert(Array.isArray(value) && value.length === size && value.every(finite), `Invalid ${label}.`); }
15
+ function integer(value, low, high, label) { assert(Number.isInteger(value) && value >= low && value <= high, `Invalid ${label}.`); }
16
+ function localHref(href) {
17
+ assert(typeof href === 'string' && /^[a-zA-Z0-9_.-]+(?:\/[a-zA-Z0-9_.-]+)*$/.test(href) && !href.split('/').some(p => p === '.' || p === '..'), 'Study links must stay inside the exported directory.');
18
+ return href;
19
+ }
20
+ async function response(href) {
21
+ const requestedUrl = new URL(localHref(href), location.href);
22
+ const hostedHF = location.protocol === 'https:' && location.hostname.endsWith('.static.hf.space');
23
+ const result = await fetch(requestedUrl, {credentials: 'omit', referrerPolicy: 'no-referrer', redirect: hostedHF ? 'follow' : 'error'});
24
+ const final = new URL(result.url);
25
+ assert(final.origin === location.origin || (hostedHF && final.protocol === 'https:' && /^(?:[a-z0-9-]+\.)*cdn\.hf\.co$/.test(final.hostname)), 'Unexpected study download origin.');
26
+ assert(result.ok, `Could not load ${href} (${result.status}).`);
27
+ return result;
28
+ }
29
+ async function bounded(stream, limit) {
30
+ assert(stream, 'Study response is empty.');
31
+ const reader = stream.getReader(), chunks = []; let size = 0;
32
+ try {
33
+ for (;;) {
34
+ const part = await reader.read(); if (part.done) break;
35
+ size += part.value.byteLength;
36
+ if (size > limit) { await reader.cancel(); throw new Error('Study file exceeds its byte bound.'); }
37
+ chunks.push(part.value);
38
+ }
39
+ } finally { reader.releaseLock(); }
40
+ const bytes = new Uint8Array(size); let offset = 0;
41
+ for (const chunk of chunks) { bytes.set(chunk, offset); offset += chunk.byteLength; }
42
+ return bytes.buffer;
43
+ }
44
+ async function json(href) { return JSON.parse(new TextDecoder().decode(await bounded((await response(href)).body, MAX_BYTES))); }
45
+ async function binary(meta, expected) {
46
+ assert(meta && meta.href === expected, 'Unexpected binary file.');
47
+ integer(meta.bytes, 0, MAX_BYTES, 'binary byte count');
48
+ let bytes;
49
+ if (typeof DecompressionStream === 'function' && meta.compressed_href) {
50
+ assert(meta.compression === 'gzip', 'Unsupported binary compression.');
51
+ integer(meta.compressed_bytes, 0, MAX_BYTES, 'compressed byte count');
52
+ const compressed = await bounded((await response(meta.compressed_href)).body, meta.compressed_bytes);
53
+ assert(compressed.byteLength === meta.compressed_bytes, 'Compressed byte count changed.');
54
+ bytes = await bounded(new Blob([compressed]).stream().pipeThrough(new DecompressionStream('gzip')), meta.bytes);
55
+ } else bytes = await bounded((await response(meta.href)).body, meta.bytes);
56
+ assert(bytes.byteLength === meta.bytes, 'Binary byte count changed.');
57
+ if (crypto.subtle) {
58
+ const hash = [...new Uint8Array(await crypto.subtle.digest('SHA-256', bytes))].map(n => n.toString(16).padStart(2, '0')).join('');
59
+ assert(hash === meta.sha256, 'Study binary SHA256 changed.');
60
+ }
61
+ return bytes;
62
+ }
63
+ function validate(geometry, motion) {
64
+ assert(model.schema === 'dvidia.piper-imitation-scene/v1' && metadata.schema === 'dvidia.piper-imitation-viewer/v1', 'Unsupported study replay format.');
65
+ integer(metadata.body_count, 1, 128, 'body count');
66
+ assert(Array.isArray(model.bodies) && model.bodies.length === metadata.body_count && metadata.frame_stride_floats === metadata.body_count * 7, 'Body pose layout mismatch.');
67
+ model.bodies.forEach((body, index) => assert(body.id === index && typeof body.name === 'string', 'Body IDs must match native order.'));
68
+ assert(Array.isArray(model.meshes) && model.meshes.length <= 128 && Array.isArray(model.geoms) && model.geoms.length <= 512, 'Geometry inventory exceeds bounds.');
69
+ const dv = new DataView(geometry), meshIds = new Set();
70
+ for (const mesh of model.meshes) {
71
+ integer(mesh.id, 0, 128, 'mesh id'); assert(!meshIds.has(mesh.id), 'Duplicate mesh ID.'); meshIds.add(mesh.id);
72
+ integer(mesh.vertex_count, 1, MAX_BYTES / 12, 'vertex count'); integer(mesh.index_count, 3, MAX_BYTES / 4, 'index count');
73
+ integer(mesh.position_byte_offset, 0, geometry.byteLength, 'vertex offset'); integer(mesh.index_byte_offset, 0, geometry.byteLength, 'index offset');
74
+ assert(mesh.position_byte_offset % 4 === 0 && mesh.index_byte_offset % 4 === 0 && mesh.index_count % 3 === 0 && mesh.position_byte_offset + mesh.vertex_count * 12 <= geometry.byteLength && mesh.index_byte_offset + mesh.index_count * 4 <= geometry.byteLength, 'Invalid mesh binary bounds.');
75
+ for (let i = 0; i < mesh.vertex_count * 3; i++) assert(finite(dv.getFloat32(mesh.position_byte_offset + i * 4, true)), 'Nonfinite mesh vertex.');
76
+ for (let i = 0; i < mesh.index_count; i++) assert(dv.getUint32(mesh.index_byte_offset + i * 4, true) < mesh.vertex_count, 'Mesh index outside vertices.');
77
+ }
78
+ for (const geom of model.geoms) {
79
+ integer(geom.body_id, 0, metadata.body_count - 1, 'geometry body');
80
+ vector(geom.position, 3, 'geometry position'); vector(geom.quaternion_wxyz, 4, 'geometry rotation'); vector(geom.rgba, 4, 'geometry color'); vector(geom.size, 3, 'geometry size');
81
+ assert(['mesh', 'box', 'sphere', 'capsule', 'cylinder', 'plane'].includes(geom.type) && (geom.type !== 'mesh' || meshIds.has(geom.mesh_id)), 'Unsupported native geometry.');
82
+ }
83
+ assert(Array.isArray(metadata.cases) && metadata.cases.length > 0 && metadata.cases.length <= 100, 'Invalid replay case count.');
84
+ const poses = new DataView(motion);
85
+ for (const item of metadata.cases) {
86
+ assert(typeof item.id === 'string' && Object.hasOwn(labels, item.variant), 'Invalid replay identity.');
87
+ integer(item.frame_count, 0, 1501, 'frame count'); integer(item.pose_byte_offset, 0, motion.byteLength, 'pose offset');
88
+ assert(item.pose_byte_offset % 4 === 0 && item.pose_byte_offset + item.frame_count * metadata.frame_stride_floats * 4 <= motion.byteLength, 'Recorded motion exceeds binary bounds.');
89
+ assert(Array.isArray(item.rows) && item.rows.length === item.frame_count, 'Recorded row count mismatch.');
90
+ item.rows.forEach((row, index) => {
91
+ assert(finite(row.t_seconds) && Math.abs(row.t_seconds - index * .02) < 1e-8, 'Recorded time cadence changed.');
92
+ vector(row.joint_position_rad, 6, 'six arm axes'); vector(row.gripper_joint_position_m, 2, 'jaw linkage positions');
93
+ });
94
+ localHref(item.episode);
95
+ for (let offset = item.pose_byte_offset; offset < item.pose_byte_offset + item.frame_count * metadata.frame_stride_floats * 4; offset += 4) assert(finite(poses.getFloat32(offset, true)), 'Nonfinite body pose.');
96
+ }
97
+ assert(Array.isArray(metadata.all_attempts) && metadata.all_attempts.length <= 300, 'Invalid complete result list.');
98
+ }
99
+ function nativeQuaternion(q, target) { target.set(q[1], q[2], q[3], q[0]); }
100
+ function geometryFor(geom, meshes) {
101
+ switch (geom.type) {
102
+ case 'mesh': return meshes.get(geom.mesh_id);
103
+ case 'box': return new THREE.BoxGeometry(...geom.size.map(v => v * 2));
104
+ case 'sphere': return new THREE.SphereGeometry(geom.size[0], 24, 16);
105
+ case 'capsule': { const g = new THREE.CapsuleGeometry(geom.size[0], geom.size[1] * 2, 6, 20); g.rotateX(Math.PI / 2); return g; }
106
+ case 'cylinder': { const g = new THREE.CylinderGeometry(geom.size[0], geom.size[0], geom.size[1] * 2, 28); g.rotateX(Math.PI / 2); return g; }
107
+ case 'plane': return new THREE.PlaneGeometry(Math.max(2, geom.size[0] * 2), Math.max(2, geom.size[1] * 2));
108
+ }
109
+ }
110
+ function initWorld(geometry) {
111
+ assert($('viewport').getContext('webgl2'), 'WebGL2 is unavailable.');
112
+ renderer = new THREE.WebGLRenderer({canvas: $('viewport'), antialias: true, alpha: true, powerPreference: 'low-power'});
113
+ renderer.setPixelRatio(Math.min(devicePixelRatio || 1, 2));
114
+ renderer.outputColorSpace = THREE.SRGBColorSpace; renderer.toneMapping = THREE.ACESFilmicToneMapping; renderer.toneMappingExposure = 1.15;
115
+ renderer.shadowMap.enabled = true; renderer.shadowMap.type = THREE.PCFSoftShadowMap;
116
+ scene = new THREE.Scene(); camera = new THREE.PerspectiveCamera(36, 1, .005, 12); camera.up.set(0, 0, 1);
117
+ camera.position.set(.95, -1.10, .80);
118
+ controls = new OrbitControls(camera, $('viewport')); controls.target.copy(focus); controls.enableDamping = false; controls.minDistance = .35; controls.maxDistance = 3.; controls.addEventListener('change', requestRender); controls.update();
119
+ scene.add(new THREE.HemisphereLight(0xfaf7ef, 0xc3c1ad, 2.6));
120
+ const light = new THREE.DirectionalLight(0xffffff, 3.1); light.position.set(-1, -2, 4); light.castShadow = true; light.shadow.mapSize.set(1024, 1024); Object.assign(light.shadow.camera, {left: -1, right: 1, top: 1, bottom: -1, near: .1, far: 7}); light.shadow.bias = -.0002; scene.add(light);
121
+ const fill = new THREE.DirectionalLight(0xd9e7ed, 1.0); fill.position.set(1, 2, 2); scene.add(fill);
122
+ bodies = model.bodies.map(() => { const body = new THREE.Group(); scene.add(body); return body; });
123
+ const meshes = new Map(), dv = new DataView(geometry);
124
+ for (const mesh of model.meshes) {
125
+ const xyz = new Float32Array(mesh.vertex_count * 3), indices = new Uint32Array(mesh.index_count);
126
+ for (let i = 0; i < xyz.length; i++) xyz[i] = dv.getFloat32(mesh.position_byte_offset + i * 4, true);
127
+ for (let i = 0; i < indices.length; i++) indices[i] = dv.getUint32(mesh.index_byte_offset + i * 4, true);
128
+ const g = new THREE.BufferGeometry(); g.setAttribute('position', new THREE.BufferAttribute(xyz, 3)); g.setIndex(new THREE.BufferAttribute(indices, 1)); g.computeVertexNormals(); meshes.set(mesh.id, g);
129
+ }
130
+ for (const geom of model.geoms) {
131
+ if (geom.rgba[3] <= 0 || geom.group > 2) continue;
132
+ const rgba = geom.rgba, material = new THREE.MeshStandardMaterial({color: new THREE.Color().setRGB(rgba[0], rgba[1], rgba[2], THREE.LinearSRGBColorSpace), metalness: geom.type === 'mesh' ? .18 : .03, roughness: .58, transparent: rgba[3] < 1, opacity: rgba[3], side: THREE.DoubleSide});
133
+ const mesh = new THREE.Mesh(geometryFor(geom, meshes), material); mesh.position.fromArray(geom.position); nativeQuaternion(geom.quaternion_wxyz, mesh.quaternion); mesh.castShadow = geom.type !== 'plane'; mesh.receiveShadow = true; bodies[geom.body_id].add(mesh);
134
+ }
135
+ new ResizeObserver(() => {
136
+ const bounds = $('stage').getBoundingClientRect(); if (!bounds.width || !bounds.height) return;
137
+ renderer.setSize(bounds.width, bounds.height, false); camera.aspect = bounds.width / bounds.height; camera.updateProjectionMatrix(); requestRender();
138
+ }).observe($('stage'));
139
+ $('viewport').addEventListener('webglcontextlost', event => { event.preventDefault(); fail(new Error('WebGL context was lost. Reload to reopen the saved replay.')); });
140
+ }
141
+ function requestRender() { if (!requested && renderer) { requested = true; requestAnimationFrame(render); } }
142
+ function render(now) {
143
+ requested = false;
144
+ if (playing && selected.frame_count > 1) {
145
+ const target = originClock + (now - originTime) / 1000 * Number($('speed').value);
146
+ let index = frame; while (index + 1 < selected.frame_count && selected.rows[index + 1].t_seconds <= target) index++;
147
+ if (index !== frame) draw(index);
148
+ if (target >= selected.rows.at(-1).t_seconds) setPlaying(false);
149
+ }
150
+ renderer.render(scene, camera); $('viewport').dataset.renderCount = String(Number($('viewport').dataset.renderCount || 0) + 1);
151
+ if (playing) requestRender();
152
+ }
153
+ function draw(index) {
154
+ frame = Math.max(0, Math.min(selected.frame_count - 1, index)); const row = selected.rows[frame];
155
+ const start = selected.pose_byte_offset + frame * metadata.frame_stride_floats * 4;
156
+ bodies.forEach((body, id) => {
157
+ const p = start + id * 28;
158
+ body.position.set(poseBytes.getFloat32(p, true), poseBytes.getFloat32(p + 4, true), poseBytes.getFloat32(p + 8, true));
159
+ body.quaternion.set(poseBytes.getFloat32(p + 16, true), poseBytes.getFloat32(p + 20, true), poseBytes.getFloat32(p + 24, true), poseBytes.getFloat32(p + 12, true));
160
+ });
161
+ $('timeline').value = String(frame); $('clock').textContent = `${row.t_seconds.toFixed(2)} / ${selected.rows.at(-1).t_seconds.toFixed(2)} s`;
162
+ $('frame').textContent = `Frame ${frame + 1} of ${selected.frame_count}`;
163
+ $('joint-positions').textContent = row.joint_position_rad.map((v, i) => `J${i + 1} ${v.toFixed(3)}`).join(' · ') + ' rad';
164
+ const command = finite(row.issued_gripper_position_m) ? ` · requested ${row.issued_gripper_position_m.toFixed(4)} m` : '';
165
+ $('jaw-position').textContent = `${row.gripper_joint_position_m[0].toFixed(4)} m${command}`;
166
+ const status = `${labels[selected.variant]} · saved 20 ms states · drag to orbit, scroll to zoom.`;
167
+ if ($('status').textContent !== status) $('status').textContent = status;
168
+ requestRender();
169
+ }
170
+ function setPlaying(value) {
171
+ playing = value && selected?.frame_count > 1; $('play').textContent = playing ? 'Pause replay' : 'Play replay'; $('play').setAttribute('aria-pressed', String(playing));
172
+ if (playing) {
173
+ if (frame === selected.frame_count - 1) draw(0);
174
+ originClock = selected.rows[frame].t_seconds; originTime = performance.now(); requestRender();
175
+ }
176
+ }
177
+ function updateVariants(preferred = $('variant-select').value) {
178
+ $('variant-select').replaceChildren();
179
+ for (const variant of Object.keys(labels)) if (metadata.cases.some(item => item.id === $('case-select').value && item.variant === variant)) {
180
+ const option = document.createElement('option'); option.value = variant; option.textContent = labels[variant]; $('variant-select').append(option);
181
+ }
182
+ if ([...$('variant-select').options].some(option => option.value === preferred)) $('variant-select').value = preferred;
183
+ }
184
+ function choose() {
185
+ setPlaying(false); selected = metadata.cases.find(item => item.id === $('case-select').value && item.variant === $('variant-select').value);
186
+ assert(selected, 'Requested replay is unavailable.');
187
+ $('case-title').textContent = selected.id.replace(/^confirmation-/, 'Held-out start ');
188
+ $('outcome').textContent = selected.score.success ? 'Completed' : 'Did not complete'; $('outcome').dataset.success = String(selected.score.success);
189
+ $('goal-error').textContent = finite(selected.score.terminal_xy_error_m) ? `${(selected.score.terminal_xy_error_m * 1000).toFixed(1)} mm` : 'Unavailable';
190
+ $('timeline').max = String(Math.max(0, selected.frame_count - 1)); $('play').disabled = selected.frame_count < 2; $('timeline').disabled = !selected.frame_count;
191
+ bodies.forEach(body => { body.visible = selected.frame_count > 0; });
192
+ if (selected.frame_count) draw(0);
193
+ else { $('clock').textContent = 'No saved frames'; $('frame').textContent = 'Replay unavailable'; $('status').textContent = 'This attempt failed before a native state was saved. Its numerical result remains in the report.'; requestRender(); }
194
+ }
195
+ function evidence() {
196
+ const learned = metadata.all_attempts.filter(item => item.variant === 'learned');
197
+ const teacher = metadata.all_attempts.filter(item => item.variant === 'teacher');
198
+ $('aggregate').textContent = `Full confirmation: learned ${learned.filter(item => item.score.success).length}/${learned.length} completed · teacher ${teacher.filter(item => item.score.success).length}/${teacher.length} · simulation only.`;
199
+ $('selection-note').textContent = metadata.selection_notice;
200
+ $('counts').replaceChildren();
201
+ for (const variant of Object.keys(labels)) {
202
+ const attempts = metadata.all_attempts.filter(item => item.variant === variant), tr = document.createElement('tr');
203
+ for (const value of [labels[variant], attempts.filter(item => item.score.success).length, attempts.length]) { const td = document.createElement('td'); td.textContent = String(value); tr.append(td); }
204
+ $('counts').append(tr);
205
+ }
206
+ if (Array.isArray(metadata.limitations) && metadata.limitations.length) $('limitations').replaceChildren();
207
+ for (const text of metadata.limitations || []) { const li = document.createElement('li'); li.textContent = text; $('limitations').append(li); }
208
+ const details = document.createElement('details'), summary = document.createElement('summary'), list = document.createElement('ul');
209
+ summary.textContent = `All ${metadata.all_attempts.length} attempt traces`;
210
+ for (const item of metadata.all_attempts) {
211
+ const li = document.createElement('li'), a = document.createElement('a'); a.href = localHref(item.episode); a.download = ''; a.textContent = `${item.id} · ${labels[item.variant]} · ${item.score.success ? 'completed' : 'failed'} ↓`; li.append(a); list.append(li);
212
+ }
213
+ details.append(summary, list); $('selection-note').after(details);
214
+ }
215
+ function connect() {
216
+ $('play').addEventListener('click', () => setPlaying(!playing));
217
+ $('timeline').addEventListener('input', () => { draw(Number($('timeline').value)); originClock = selected.rows[frame].t_seconds; originTime = performance.now(); });
218
+ $('speed').addEventListener('change', () => { originClock = selected.rows[frame]?.t_seconds || 0; originTime = performance.now(); });
219
+ $('case-select').addEventListener('change', () => { updateVariants(); choose(); });
220
+ $('variant-select').addEventListener('change', choose);
221
+ document.addEventListener('visibilitychange', () => { if (document.hidden) setPlaying(false); });
222
+ $('viewport').addEventListener('keydown', event => {
223
+ if (event.key === ' ') { event.preventDefault(); setPlaying(!playing); }
224
+ if (event.key === 'Home' || event.key.toLowerCase() === 'h') { event.preventDefault(); camera.position.set(.95, -1.10, .80); controls.target.copy(focus); controls.update(); requestRender(); }
225
+ if (['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', '+', '=', '-', '_'].includes(event.key)) {
226
+ event.preventDefault();
227
+ const offset = camera.position.clone().sub(controls.target).applyAxisAngle(new THREE.Vector3(1, 0, 0), -Math.PI / 2);
228
+ const spherical = new THREE.Spherical().setFromVector3(offset);
229
+ if (event.key === 'ArrowLeft') spherical.theta -= .1;
230
+ if (event.key === 'ArrowRight') spherical.theta += .1;
231
+ if (event.key === 'ArrowUp') spherical.phi = Math.max(.01, spherical.phi - .1);
232
+ if (event.key === 'ArrowDown') spherical.phi = Math.min(Math.PI - .01, spherical.phi + .1);
233
+ if (event.key === '+' || event.key === '=') spherical.radius = Math.max(controls.minDistance, spherical.radius * .9);
234
+ if (event.key === '-' || event.key === '_') spherical.radius = Math.min(controls.maxDistance, spherical.radius / .9);
235
+ offset.setFromSpherical(spherical).applyAxisAngle(new THREE.Vector3(1, 0, 0), Math.PI / 2);
236
+ camera.position.copy(controls.target).add(offset); controls.update(); requestRender();
237
+ }
238
+ });
239
+ }
240
+ function fail(error) {
241
+ setPlaying(false); $('loading').hidden = false; $('loading').textContent = `Replay could not open: ${error.message} Serve the complete export over HTTP. The report remains available below.`;
242
+ $('status').textContent = 'Recorded replay unavailable.';
243
+ for (const element of document.querySelectorAll('button,select,input')) element.disabled = true;
244
+ $('stage').dataset.ready = 'error';
245
+ }
246
+ async function main() {
247
+ assert(location.protocol !== 'file:', 'Saved replay files need a local or hosted HTTP URL.');
248
+ [model, metadata] = await Promise.all([json('scene.json'), json('motion.json')]); evidence();
249
+ const [geometry, motion] = await Promise.all([binary(model.geometry_binary, 'geometry.bin'), binary(metadata.motion_binary, 'motion.bin')]);
250
+ validate(geometry, motion); poseBytes = new DataView(motion); initWorld(geometry);
251
+ $('case-select').replaceChildren();
252
+ for (const id of [...new Set(metadata.cases.map(item => item.id))]) { const option = document.createElement('option'); option.value = id; option.textContent = id.replace(/^confirmation-/, 'Held-out '); $('case-select').append(option); }
253
+ const first = metadata.cases.find(item => item.variant === 'learned' && item.frame_count > 0) || metadata.cases[0]; $('case-select').value = first.id;
254
+ for (const element of document.querySelectorAll('button,select,input')) element.disabled = false;
255
+ updateVariants('learned'); choose(); connect(); $('loading').hidden = true; $('stage').dataset.ready = 'true';
256
+ $('replay-note').textContent = `Native PiPER geometry · six arm axes and one jaw command · ${metadata.body_count} recorded bodies. Browser physics: none.`;
257
+ }
258
+ main().catch(fail);
sources/piper_imitation_viewer.py ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Export genuine native PiPER geometry and recorded study states for replay.
2
+
3
+ No physics ticks or policy inference run here. Native Float64 forward kinematics
4
+ must reproduce recorded object/TCP positions before Float32 poses are exported.
5
+ """
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ import gzip
10
+ from hashlib import sha256
11
+ import io
12
+ import json
13
+ from pathlib import Path, PurePosixPath
14
+ import re
15
+
16
+ from . import reference_sim as sim
17
+ from .reference_replay import _decode, _read, _scene, _vector, MIT_LICENSE
18
+
19
+
20
+ SCHEMA = 'dvidia.piper-imitation-viewer/v1'
21
+ SCOPE = ('Recorded synthetic PiPER simulation replay. Native model meshes and saved '
22
+ 'states reconstructed with mj_forward only; no live physics, robot control, '
23
+ 'video-derived learning, physical qualification or new performance measurement.')
24
+ MAX_JSON = 64 * 1024 * 1024
25
+ MAX_EPISODE_PACKED = 32 * 1024 * 1024
26
+ MAX_EPISODE = 128 * 1024 * 1024
27
+ MAX_BINARY = 64 * 1024 * 1024
28
+ VARIANTS = ('learned', 'teacher', 'open_jaw', 'hold', 'shuffled_labels')
29
+
30
+
31
+ def _json(value):
32
+ return (json.dumps(value, separators=(',', ':'), ensure_ascii=False, allow_nan=False)+'\n').encode('utf8')
33
+
34
+
35
+ def _inside(root, relative):
36
+ if (type(relative) is not str or re.fullmatch(r'[A-Za-z0-9_.-]+(?:/[A-Za-z0-9_.-]+)*', relative) is None
37
+ or any(part in ('', '.', '..') for part in relative.split('/'))):
38
+ raise ValueError('Study links must be safe relative paths.')
39
+ path = PurePosixPath(relative)
40
+ if path.is_absolute() or len(path.parts) > 8 or len(relative) > 240:
41
+ raise ValueError('Study links must stay inside the run directory.')
42
+ result = root.joinpath(*path.parts)
43
+ if any(part.is_symlink() for part in (result, *result.parents) if part != root and root in part.parents):
44
+ raise ValueError('Study files cannot use symlinks.')
45
+ if not result.resolve().is_relative_to(root.resolve()):
46
+ raise ValueError('Study file escaped the run directory.')
47
+ return result
48
+
49
+
50
+ def _episode(root, row):
51
+ href = row.get('episode')
52
+ if type(href) is not str or not href.startswith('attempts/') or not href.endswith('.json.gz'):
53
+ raise ValueError('Original attempt traces must use bounded attempts/*.json.gz links.')
54
+ raw = _read(_inside(root, href), MAX_EPISODE_PACKED)
55
+ if sha256(raw).hexdigest() != row.get('sha256'):
56
+ raise ValueError('Study episode SHA256 mismatch.')
57
+ try:
58
+ with gzip.GzipFile(fileobj=io.BytesIO(raw)) as stream:
59
+ unpacked = stream.read(MAX_EPISODE+1)
60
+ except (OSError, EOFError) as exc:
61
+ raise ValueError('Study episode is not valid gzip.') from exc
62
+ if len(unpacked) > MAX_EPISODE:
63
+ raise ValueError('Study episode exceeds decompressed bounds.')
64
+ return _decode(unpacked), raw
65
+
66
+
67
+ def _poses(model, episode, residuals):
68
+ mj, np = sim._native_imports()
69
+ states = episode.get('trajectory')
70
+ if type(states) is not list or len(states) > 1501:
71
+ raise ValueError('Replay needs a bounded recorded trajectory.')
72
+ data, poses, rows = mj.MjData(model), [], []
73
+ tcp = mj.mj_name2id(model, mj.mjtObj.mjOBJ_SITE, 'piper_task_tcp')
74
+ block = mj.mj_name2id(model, mj.mjtObj.mjOBJ_BODY, 'task_block')
75
+ if (model.nq, model.nv, model.nu) != (15, 14, 7) or tcp < 0 or block < 0:
76
+ raise ValueError('Replay requires the native six-axis/single-jaw PiPER task.')
77
+ for index, state in enumerate(states):
78
+ if type(state) is not dict:
79
+ raise ValueError('Recorded state must be a dictionary.')
80
+ data.qpos[:] = _vector(state.get('qpos'), model.nq, 'qpos')
81
+ data.qvel[:] = _vector(state.get('qvel'), model.nv, 'qvel')
82
+ if state.get('native_actuator_controls') is not None:
83
+ data.ctrl[:] = _vector(state['native_actuator_controls'], model.nu, 'native controls')
84
+ mj.mj_forward(model, data)
85
+ for name, native in (('tcp_position_m', data.site_xpos[tcp]), ('object_position_m', data.xpos[block])):
86
+ recorded = _vector(state.get(name), 3, name)
87
+ delta = float(np.max(np.abs(native-recorded)))
88
+ residuals[name] = max(residuals[name], delta)
89
+ if delta > 1e-9:
90
+ raise ValueError(f'Reconstructed {name} differs from the recording by more than 1e-9 m.')
91
+ pose = np.concatenate((data.xpos, data.xquat), axis=1)
92
+ if not np.isfinite(pose).all():
93
+ raise ValueError('Replay reconstructed nonfinite body poses.')
94
+ poses.append(pose)
95
+ stamp = state.get('t_seconds')
96
+ if type(stamp) not in (int, float) or not np.isfinite(stamp) or abs(stamp-index*.02) > 1e-8:
97
+ raise ValueError('Replay frame timestamps must follow recorded 20 ms boundaries.')
98
+ rows.append({'t_seconds': stamp, 'joint_position_rad': _vector(state.get('joint_position_rad'), 6, 'arm positions'),
99
+ 'gripper_joint_position_m': _vector(state.get('gripper_joint_position_m'), 2, 'jaw positions'),
100
+ 'issued_gripper_position_m': state.get('issued_gripper_position_m'),
101
+ 'object_position_m': state['object_position_m'], 'tcp_position_m': state['tcp_position_m']})
102
+ return np.asarray(poses, dtype='<f4').tobytes(order='C'), rows
103
+
104
+
105
+ def export_viewer(run, assets, output):
106
+ """Export a completed study to a fresh self-contained static directory.
107
+
108
+ Every learned confirmation case is replayable. The first scheduled case of
109
+ each control is included without selecting on outcome. All report rows and
110
+ their original compressed episode traces remain linked in the export.
111
+ """
112
+ from .piper_task import PiperTaskConfig, _asset_root, build_task_model
113
+ from . import robot_profiles
114
+ root, destination = Path(run), Path(output)
115
+ if root.is_symlink() or not root.is_dir():
116
+ raise ValueError('Study run must be an existing non-symlink directory.')
117
+ if destination.exists() or destination.is_symlink():
118
+ raise ValueError('Viewer output must be a fresh directory.')
119
+ if not (root/'report.json').is_file():
120
+ raise ValueError('Study report.json is not ready; export after confirmation completes.')
121
+ files = {name: _read(_inside(root, name), MAX_JSON) for name in ('report.json', 'protocol.json', 'frozen.json')}
122
+ report, protocol, frozen = (_decode(files[name]) for name in ('report.json', 'protocol.json', 'frozen.json'))
123
+ if (type(report) is not dict or report.get('schema') != 'dvidia.piper-imitation-study/v1'
124
+ or report.get('physical_robot_ready') is not False or type(report.get('attempts')) is not list
125
+ or not 1 <= len(report['attempts']) <= 300):
126
+ raise ValueError('Viewer requires a bounded simulation-only PiPER imitation report.')
127
+ if (report.get('protocol_sha256') != sha256(files['protocol.json']).hexdigest()
128
+ or report.get('frozen_sha256') != sha256(files['frozen.json']).hexdigest()
129
+ or frozen.get('protocol_sha256') != sha256(files['protocol.json']).hexdigest()):
130
+ raise ValueError('Report, protocol and frozen receipt hashes do not agree.')
131
+ asset_info = robot_profiles.verify_assets('piper', _asset_root(assets))
132
+ _, asset_blobs = robot_profiles._payload('piper', _asset_root(assets))
133
+ source = {'report_sha256': sha256(files['report.json']).hexdigest(), 'asset_provenance': asset_info,
134
+ 'exporter_sha256': sha256(Path(__file__).read_bytes()).hexdigest(),
135
+ 'geometry_exporter_sha256': sha256(Path(__file__).with_name('reference_replay.py').read_bytes()).hexdigest(),
136
+ 'model_sha256': frozen.get('model_sha256'), 'physical_robot_ready': False}
137
+ selected, all_rows, seen, first_controls = [], [], set(), set()
138
+ for row in report['attempts']:
139
+ if type(row) is not dict or row.get('variant') not in VARIANTS or type(row.get('id')) is not str:
140
+ raise ValueError('Malformed study attempt identity.')
141
+ identity = (row['id'], row['variant'])
142
+ if identity in seen or type(row.get('score')) is not dict or type(row['score'].get('success')) is not bool:
143
+ raise ValueError('Duplicate or malformed scored study attempt.')
144
+ seen.add(identity)
145
+ episode, raw = _episode(root, row)
146
+ files[row['episode']] = raw
147
+ all_rows.append({'id': row['id'], 'variant': row['variant'], 'score': row['score'],
148
+ 'episode': row['episode'], 'sha256': row['sha256']})
149
+ if row['variant'] == 'learned' or row['variant'] not in first_controls:
150
+ selected.append((row, episode))
151
+ first_controls.add(row['variant'])
152
+ if not any(row['variant'] == 'learned' for row, _ in selected):
153
+ raise ValueError('Study report has no learned-policy attempts.')
154
+ scene, geometry, motion, cases = None, None, bytearray(), []
155
+ residuals = {'tcp_position_m': 0., 'object_position_m': 0.}
156
+ warnings = []
157
+ with sim.native_warnings(warnings):
158
+ for row, episode in selected:
159
+ if type(episode) is not dict or type(episode.get('config')) is not dict:
160
+ raise ValueError('Selected replay is missing its native task configuration.')
161
+ c = PiperTaskConfig(**episode['config'])
162
+ model = build_task_model(assets, c)
163
+ compiled = sim.model_digest(model)
164
+ if episode.get('compiled_model_sha256') not in (None, compiled):
165
+ raise ValueError('Rebuilt native model differs from recorded model hash.')
166
+ candidate, candidate_geometry = _scene(model, source)
167
+ candidate.update(schema='dvidia.piper-imitation-scene/v1', scope=SCOPE)
168
+ if scene is None:
169
+ scene, geometry = candidate, candidate_geometry
170
+ elif candidate != scene or candidate_geometry != geometry:
171
+ raise ValueError('Native body layout or local geometry differs across replay cases.')
172
+ offset = len(motion)
173
+ poses, rows = _poses(model, episode, residuals)
174
+ motion.extend(poses)
175
+ if len(motion) > MAX_BINARY:
176
+ raise ValueError('Replay motion binary exceeds 64 MiB.')
177
+ cases.append({'id': row['id'], 'variant': row['variant'], 'score': row['score'],
178
+ 'episode': row['episode'], 'frame_count': len(rows), 'pose_byte_offset': offset,
179
+ 'compiled_model_sha256': compiled, 'rows': rows})
180
+ if warnings:
181
+ raise ValueError('Native forward reconstruction emitted warnings: '+str(warnings))
182
+ geometry_packed, motion_packed = gzip.compress(geometry, mtime=0), gzip.compress(bytes(motion), mtime=0)
183
+ def binary_meta(name, raw, packed):
184
+ return {'href': name, 'bytes': len(raw), 'sha256': sha256(raw).hexdigest(),
185
+ 'compressed_href': name+'.gz', 'compressed_bytes': len(packed), 'compression': 'gzip'}
186
+ scene['geometry_binary'] = binary_meta('geometry.bin', geometry, geometry_packed)
187
+ motion_meta = {'schema': SCHEMA, 'scope': SCOPE, 'source': source, 'cases': cases, 'all_attempts': all_rows,
188
+ 'body_count': len(scene['bodies']), 'frame_stride_floats': len(scene['bodies'])*7,
189
+ 'motion_binary': binary_meta('motion.bin', motion, motion_packed),
190
+ 'selection_notice': ('Replays include every learned confirmation attempt and the first scheduled '
191
+ 'case for each control. Selection never depends on success. Every attempt and trace is linked below.'),
192
+ 'limitations': report.get('limitations', []), 'reconstruction_max_absolute_residual_m': residuals,
193
+ 'binary_pose_precision': 'little-endian Float32 body positions in metres and quaternions wxyz'}
194
+ files.update({'scene.json': _json(scene), 'motion.json': _json(motion_meta),
195
+ 'geometry.bin': geometry, 'motion.bin': bytes(motion),
196
+ 'geometry.bin.gz': geometry_packed, 'motion.bin.gz': motion_packed,
197
+ 'LICENSE': MIT_LICENSE.encode('utf8')})
198
+ source_root = Path(__file__).parent
199
+ for name in ('piper_imitation_viewer.html', 'piper_imitation_viewer.bundle.js', 'reference_replay.third-party.txt'):
200
+ files['index.html' if name.endswith('.html') else name] = _read(source_root/name, 8*1024*1024)
201
+ for name in ('LICENSE', 'README.md'):
202
+ key = 'agilex_piper/'+name
203
+ if key in asset_blobs:
204
+ files['licenses/'+key] = asset_blobs[key]
205
+ files['README.md'] = ('# PiPER imitation study replay\n\n'+SCOPE+'\n\n'
206
+ 'Serve this directory over local HTTP and open index.html. All rendering code, geometry and states are local. '
207
+ 'Original compressed traces are linked for every report row. Integrity checks establish consistency, not authenticity. '
208
+ 'Native Float64 reconstruction residuals are recorded in motion.json; rendered body poses use Float32. '
209
+ 'PiPER model notices are under licenses/agilex_piper. Three.js/OrbitControls notices are in '
210
+ 'reference_replay.third-party.txt.\n').encode('utf8')
211
+ integrity = {'schema': SCHEMA, 'scope': 'Artifact consistency only',
212
+ 'files': {name: {'bytes': len(raw), 'sha256': sha256(raw).hexdigest()} for name, raw in files.items()}}
213
+ files['viewer-integrity.json'] = _json(integrity)
214
+ destination.mkdir(parents=True, exist_ok=False)
215
+ for name, raw in files.items():
216
+ path = _inside(destination, name)
217
+ path.parent.mkdir(parents=True, exist_ok=True)
218
+ with path.open('xb') as stream:
219
+ stream.write(raw)
220
+ return {'schema': SCHEMA, 'output': str(destination), 'replay_cases': len(cases), 'report_attempts': len(all_rows),
221
+ 'frames': sum(case['frame_count'] for case in cases), 'physical_robot_ready': False,
222
+ 'reconstruction_max_absolute_residual_m': residuals, 'bytes': sum(map(len, files.values()))}
223
+
224
+
225
+ def main(argv=None):
226
+ parser = argparse.ArgumentParser(description=__doc__)
227
+ parser.add_argument('--run', type=Path, required=True)
228
+ parser.add_argument('--assets', type=Path, required=True)
229
+ parser.add_argument('--output', type=Path, required=True)
230
+ args = parser.parse_args(argv)
231
+ print(json.dumps(export_viewer(args.run, args.assets, args.output), indent=2))
232
+
233
+
234
+ if __name__ == '__main__':
235
+ main()
sources/piper_learned_skill.py ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Run a downloaded data-only PiPER model in local native simulation.
2
+
3
+ The installed model supplies all six arm targets and the single jaw target.
4
+ This command has no teacher or fallback and does not connect to robot hardware.
5
+ """
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ from dataclasses import asdict
10
+ from hashlib import sha256
11
+ import json
12
+ import math
13
+ from pathlib import Path
14
+ import re
15
+ import sys
16
+ import time
17
+
18
+ from .piper_imitation import MAX_MODEL_BYTES, validate_model
19
+ from .reference_replay import _read
20
+
21
+
22
+ SCHEMA = 'dvidia.piper-learned-skill-install/v1'
23
+ KNOWN_GOALS = ((.35, .08), (.40, -.08))
24
+ SCOPE = ('Simulation-only installation of a learned PiPER policy distilled from synthetic '
25
+ 'authored-controller demonstrations. Privileged native simulator measurements; '
26
+ 'uncalibrated contacts, no camera learning or physical robot qualification.')
27
+ TRAINED_SCOPE = {'mass_kg': .04, 'start_x_m': [.284, .314], 'start_y_m': [-.045, -.015],
28
+ 'known_goals_xy_m': [list(point) for point in KNOWN_GOALS]}
29
+
30
+
31
+ def _point(value, name, low, high):
32
+ if type(value) not in (int, float) or not low <= value <= high or not math.isfinite(value):
33
+ raise ValueError(f'{name} must be finite and inside [{low}, {high}] metres.')
34
+ return float(value)
35
+
36
+
37
+ def _write(path, value, *, exclusive=True):
38
+ raw = (json.dumps(value, indent=2, allow_nan=False)+'\n').encode('utf8')
39
+ with path.open('xb' if exclusive else 'wb') as stream:
40
+ stream.write(raw)
41
+
42
+
43
+ def _error(exc):
44
+ return {'type': type(exc).__name__, 'message': str(exc)[:1000]}
45
+
46
+
47
+ def run_learned_skill(model, assets, output, *, start_x=.30, start_y=-.03, goal=0):
48
+ """Reserve a fresh installation, then run and independently score one episode.
49
+
50
+ Returns the saved install.json manifest. Any native/inference/scoring failure
51
+ is retained as a failed attempt; validation errors raise before execution.
52
+ The source JSON is copied byte-for-byte and its SHA256 binds the installed
53
+ model used by the rollout. Start coordinates are restricted to the training
54
+ envelope, with two known destinations and the fixed 40 g block.
55
+ """
56
+ from .piper_imitation_benchmark import config, rollout, save_episode
57
+ from .piper_imitation_score import score_episode
58
+ from .piper_task import _asset_root
59
+ start_x = _point(start_x, 'start_x', .284, .314)
60
+ start_y = _point(start_y, 'start_y', -.045, -.015)
61
+ if type(goal) is not int or goal not in (0, 1):
62
+ raise ValueError('goal must be integer 0 or 1, selecting a known trained destination.')
63
+ source, asset_root, destination = Path(model), _asset_root(assets), Path(output)
64
+ if (re.fullmatch(r'[A-Za-z0-9][A-Za-z0-9_.-]{0,119}\.json', source.name) is None
65
+ or '..' in source.name):
66
+ raise ValueError('Model filename must be a safe ASCII .json name, such as model.json.')
67
+ raw = _read(source, MAX_MODEL_BYTES)
68
+ candidate = validate_model(raw)
69
+ if asset_root.is_symlink() or not asset_root.is_dir():
70
+ raise ValueError('assets must point to an existing pinned native asset directory.')
71
+ if destination.exists() or destination.is_symlink():
72
+ raise ValueError('output must be a fresh directory; previous attempts are preserved.')
73
+ case = {'id': f'installed-known-goal{goal}', 'start_xy': [start_x, start_y],
74
+ 'goal_xy': list(KNOWN_GOALS[goal]), 'seed': 261517}
75
+ task_config = config(case)
76
+ config_document = json.loads(json.dumps(asdict(task_config), allow_nan=False))
77
+ model_sha = sha256(raw).hexdigest()
78
+ manifest = {'schema': SCHEMA, 'scope': SCOPE, 'status': 'running', 'success': False,
79
+ 'physical_robot_ready': False, 'policy_kind': 'learned', 'policy_learned': True,
80
+ 'teacher_available': False, 'teacher_fallback_calls': 0,
81
+ 'observation_origin': 'privileged_native_simulator_state',
82
+ 'model_sha256': model_sha, 'installed_model_sha256': model_sha,
83
+ 'model_file': 'model.json', 'model_schema': candidate['schema'],
84
+ 'feature_contract': candidate['feature_contract'],
85
+ 'trained_scope': json.loads(json.dumps(TRAINED_SCOPE)), 'start_xy_m': [start_x, start_y],
86
+ 'goal_index': goal, 'goal_xy_m': list(KNOWN_GOALS[goal]), 'config': config_document,
87
+ 'episode_file': 'episode.json.gz', 'score_file': 'score.json',
88
+ 'created_at_utc': time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()),
89
+ 'timing_scope': 'Local CPU simulation compute; excludes sensing, communications and hardware actuation.'}
90
+ destination.mkdir(parents=True, exist_ok=False)
91
+ installed = destination/'model.json'
92
+ with installed.open('xb') as stream:
93
+ stream.write(raw)
94
+ _write(destination/'install.json', manifest)
95
+ began = time.perf_counter()
96
+ try:
97
+ episode = rollout(asset_root, case, installed, variant='learned')
98
+ except Exception as exc:
99
+ episode = {'schema': 'dvidia.piper-learned-episode/v1', 'config': config_document,
100
+ 'valid': False, 'success': False, 'reason': 'exception', 'error': _error(exc),
101
+ 'trajectory': [], 'actions': [], 'metrics': {}, 'timing': {},
102
+ 'policy_kind': 'learned', 'policy_learned': True, 'physical_robot_ready': False,
103
+ 'model_sha256': model_sha}
104
+ try:
105
+ score = score_episode(episode, list(KNOWN_GOALS[goal]))
106
+ except Exception as exc:
107
+ score = {'success': False, 'reason': 'scoring_exception', 'error': _error(exc)}
108
+ try:
109
+ installed_unchanged = sha256(_read(installed, MAX_MODEL_BYTES)).hexdigest() == model_sha
110
+ except (ValueError, OSError):
111
+ installed_unchanged = False
112
+ if not installed_unchanged:
113
+ score = {**score, 'success': False, 'reason': 'installed_model_changed'}
114
+ elif episode.get('model_sha256') != model_sha:
115
+ score = {**score, 'success': False, 'reason': 'runtime_model_digest_mismatch'}
116
+ save_episode(destination/'episode.json.gz', episode)
117
+ _write(destination/'score.json', score)
118
+ manifest.update(status='completed', success=score.get('success') is True, reason=score.get('reason', 'unknown'),
119
+ episode_sha256=sha256((destination/'episode.json.gz').read_bytes()).hexdigest(),
120
+ score_sha256=sha256((destination/'score.json').read_bytes()).hexdigest(),
121
+ native_valid=episode.get('valid') is True, error=episode.get('error'),
122
+ asset_provenance=episode.get('asset_provenance'),
123
+ compiled_model_sha256=episode.get('compiled_model_sha256'),
124
+ attempt_wall_seconds=time.perf_counter()-began)
125
+ _write(destination/'install.json', manifest, exclusive=False)
126
+ return manifest
127
+
128
+
129
+ def main(argv=None):
130
+ parser = argparse.ArgumentParser(description=__doc__, epilog=(
131
+ 'Scope: a 40 g rigid block, x=0.284–0.314 m, y=−0.045–−0.015 m; '
132
+ 'known goals 0=(0.35,0.08) m and 1=(0.40,−0.08) m. The native environment verifies pinned assets. '
133
+ 'Exit status: 0 independent success, 1 failed recorded attempt, 2 invalid input. '
134
+ 'All control/physics runs locally in native simulation; no physical robot is connected.'))
135
+ parser.add_argument('--model', type=Path, required=True, help='Downloaded finite data-only model JSON (at most 8 MiB).')
136
+ parser.add_argument('--assets', type=Path, required=True, help='Pinned native asset root containing agilex_piper/.')
137
+ parser.add_argument('--start-x', type=float, default=.30, help='Block start x in metres within [0.284,0.314] (default: 0.30).')
138
+ parser.add_argument('--start-y', type=float, default=-.03, help='Block start y in metres within [−0.045,−0.015] (default: −0.03).')
139
+ parser.add_argument('--goal', type=int, choices=(0, 1), default=0, help='Known goal index, 0 or 1 (default: 0).')
140
+ parser.add_argument('--output', type=Path, required=True, help='Fresh directory for installed model, native trace, score and install manifest.')
141
+ args = parser.parse_args(argv)
142
+ try:
143
+ manifest = run_learned_skill(args.model, args.assets, args.output,
144
+ start_x=args.start_x, start_y=args.start_y, goal=args.goal)
145
+ except (ValueError, OSError, TypeError) as exc:
146
+ print(f'PiPER model input rejected: {exc}', file=sys.stderr)
147
+ return 2
148
+ print(json.dumps({'success': manifest['success'], 'reason': manifest['reason'],
149
+ 'manifest': str(args.output/'install.json'), 'physical_robot_ready': False}, indent=2))
150
+ return 0 if manifest['success'] else 1
151
+
152
+
153
+ if __name__ == '__main__':
154
+ raise SystemExit(main())
sources/piper_motor_primitive.py ADDED
@@ -0,0 +1,282 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """A learned, time-conditioned PiPER feed-forward motion primitive.
2
+
3
+ Regression coefficients combine initial observed XY, one of two known goals and
4
+ elapsed time. They are fitted jointly across demonstrations, not replayed from a
5
+ case/action tape. Contact correction and recovery are not learned. Native servos
6
+ and the generic joint-target bounds remain the only live state feedback.
7
+ """
8
+ from __future__ import annotations
9
+
10
+ from hashlib import sha256
11
+ import math
12
+ import time
13
+
14
+ import numpy as np
15
+
16
+ from .piper_imitation import (JOINT_LIMITS, JOINT_DELTA_RAD, JAW_MAX_M,
17
+ _array, _case_ids, _decode, _integer, _number,
18
+ canonical, digest)
19
+
20
+
21
+ SCHEMA = 'dvidia.piper-motor-primitive/v1'
22
+ HIGH_RESOLUTION_SCHEMA = 'dvidia.piper-motor-primitive/v2'
23
+ SCOPE = ('Simulation-only time-conditioned trajectory distillation from synthetic authored-controller demonstrations. '
24
+ 'Initial privileged object XY, two known goals and measured clock condition learned feed-forward references; '
25
+ 'native servos remain authored. No learned contact feedback, recovery, camera learning or physical robot qualification.')
26
+ GOALS = ((.35, .08), (.40, -.08))
27
+ START_BOUNDS = ((.284, .314), (-.045, -.015))
28
+ SPATIAL_TERMS = ('1', 'y', 'y^2', 'x', 'x*y', 'x*y^2', 'x^2', 'x^2*y', 'x^2*y^2')
29
+ CENTERS = np.linspace(0., 20., 201)
30
+ WIDTH = .075
31
+ RIDGE = 1e-5
32
+ SHUFFLE_SEED = 19217
33
+ HIGH_CENTERS = np.linspace(0., 20., 401)
34
+ HIGH_WIDTH = .025
35
+ HIGH_RIDGE = 1e-7
36
+ HIGH_SPATIAL_TERMS = tuple('*'.join(piece for piece in (
37
+ '' if x == 0 else 'x' if x == 1 else f'x^{x}',
38
+ '' if y == 0 else 'y' if y == 1 else f'y^{y}') if piece) or '1'
39
+ for x in range(4) for y in range(4))
40
+ MODEL_FIELDS = {'schema', 'scope', 'physical_robot_ready', 'supervision_origin',
41
+ 'feature_contract', 'reactive_contact_feedback', 'known_goals_xy_m',
42
+ 'start_bounds_xy_m', 'spatial_terms', 'time_centers_s', 'time_width_s',
43
+ 'joint_limits_rad', 'joint_delta_limit_rad', 'jaw_limit_m', 'output_encoding',
44
+ 'weights', 'dataset_sha256', 'source_dataset_sha256', 'supervision_sha256', 'train_cases', 'training'}
45
+ FEATURE_CONTRACT = 'initial_object_xy_known_goal_elapsed_time__live_q_only_for_native_cap/v1'
46
+ OUTPUT_ENCODING = 'absolute_joint_targets_rad_div3__jaw_target_m_div.035'
47
+
48
+
49
+ def _time_basis(seconds, high_resolution=False):
50
+ centers, width = (HIGH_CENTERS, HIGH_WIDTH) if high_resolution else (CENTERS, WIDTH)
51
+ distance = (np.asarray(seconds)[..., None]-centers)/width
52
+ logits = -.5*distance*distance
53
+ logits -= np.max(logits, axis=-1, keepdims=True)
54
+ basis = np.exp(logits)
55
+ return basis/basis.sum(axis=-1, keepdims=True)
56
+
57
+
58
+ def _spatial(xy, high_resolution=False):
59
+ xy = np.asarray(xy)
60
+ normalized = (xy-np.asarray([.299, -.03]))/.015
61
+ x, y = normalized[..., 0], normalized[..., 1]
62
+ if high_resolution:
63
+ xp, yp = (np.ones_like(x), x, x*x, x*x*x), (np.ones_like(y), y, y*y, y*y*y)
64
+ return np.stack(tuple(a*b for a in xp for b in yp), axis=-1)
65
+ return np.stack((np.ones_like(x), y, y*y, x, x*y, x*y*y, x*x, x*x*y, x*x*y*y), axis=-1)
66
+
67
+
68
+ def _goal(point, tolerance=1e-8):
69
+ point = _array(point, (3,), 'target_position_m', 1.)
70
+ if abs(point[2]-.08) > tolerance:
71
+ raise ValueError('Primitive supports only the declared .08 m destination height.')
72
+ for index, known in enumerate(GOALS):
73
+ if np.max(np.abs(point[:2]-known)) <= tolerance:
74
+ return index
75
+ raise ValueError('Primitive supports only its two known training destinations.')
76
+
77
+
78
+ def _start(point):
79
+ point = _array(point, (3,), 'initial object position', 1.)
80
+ bounds = np.asarray(START_BOUNDS)
81
+ # Native settling shifts the declared XY by less than a micrometre. This
82
+ # tolerance is for that measured reset residual, not workspace extrapolation.
83
+ if np.any(point[:2] < bounds[:, 0]-1e-5) or np.any(point[:2] > bounds[:, 1]+1e-5):
84
+ raise ValueError('Primitive initial XY is outside the bounded training envelope.')
85
+ return point[:2]
86
+
87
+
88
+ def _hash(value, name):
89
+ if type(value) is not str or len(value) != 64 or any(c not in '0123456789abcdef' for c in value):
90
+ raise ValueError(f'{name} must be a SHA256 digest.')
91
+
92
+
93
+ def validate_model(document):
94
+ model = _decode(document)
95
+ if type(model) is not dict or set(model) != MODEL_FIELDS:
96
+ raise ValueError('Unknown or missing motor-primitive field.')
97
+ high_resolution = model.get('schema') == HIGH_RESOLUTION_SCHEMA
98
+ centers, width, ridge, terms = ((HIGH_CENTERS, HIGH_WIDTH, HIGH_RIDGE, HIGH_SPATIAL_TERMS)
99
+ if high_resolution else (CENTERS, WIDTH, RIDGE, SPATIAL_TERMS))
100
+ expected = {'schema': HIGH_RESOLUTION_SCHEMA if high_resolution else SCHEMA, 'scope': SCOPE, 'physical_robot_ready': False,
101
+ 'supervision_origin': 'synthetic_authored_controller', 'feature_contract': FEATURE_CONTRACT,
102
+ 'reactive_contact_feedback': False, 'time_width_s': width,
103
+ 'joint_delta_limit_rad': JOINT_DELTA_RAD, 'jaw_limit_m': JAW_MAX_M,
104
+ 'output_encoding': OUTPUT_ENCODING}
105
+ if any(type(model[key]) is not type(value) or model[key] != value for key, value in expected.items()):
106
+ raise ValueError('Unsupported motor-primitive scope or native contract.')
107
+ for key, expected_value in (('known_goals_xy_m', GOALS), ('start_bounds_xy_m', START_BOUNDS),
108
+ ('joint_limits_rad', JOINT_LIMITS)):
109
+ actual = _array(model[key], np.asarray(expected_value).shape, key, 10.)
110
+ if not np.array_equal(actual, np.asarray(expected_value)):
111
+ raise ValueError(f'Primitive cannot change {key}.')
112
+ actual_centers = _array(model['time_centers_s'], (len(centers),), 'time_centers_s', 20.)
113
+ if not np.array_equal(actual_centers, centers) or model['spatial_terms'] != list(terms):
114
+ raise ValueError('Unsupported fixed regression basis.')
115
+ _array(model['weights'], (2, len(terms), len(centers), 7), 'weights', 64.)
116
+ _hash(model['dataset_sha256'], 'dataset_sha256')
117
+ _hash(model['source_dataset_sha256'], 'source_dataset_sha256')
118
+ _hash(model['supervision_sha256'], 'supervision_sha256')
119
+ if len(_case_ids(model['train_cases'])) != 32:
120
+ raise ValueError('This bounded primitive requires its 32 training episodes.')
121
+ receipt = model['training']
122
+ expected_fields = {'algorithm', 'sample_count', 'scene_count', 'spatial_ridge', 'time_ridge',
123
+ 'shuffled_labels', 'label_shuffle_seed', 'normalized_mse', 'native_rmse',
124
+ 'label_conversion', 'weak_control_notice'}
125
+ if type(receipt) is not dict or set(receipt) != expected_fields:
126
+ raise ValueError('Invalid primitive training receipt.')
127
+ if (receipt['algorithm'] != ('numpy-separable-ridge-cubic-gaussian' if high_resolution else 'numpy-separable-ridge-quadratic-gaussian')
128
+ or type(receipt['sample_count']) is not int or receipt['sample_count'] != 32000
129
+ or type(receipt['scene_count']) is not int or receipt['scene_count'] != 32
130
+ or type(receipt['shuffled_labels']) is not bool
131
+ or type(receipt['spatial_ridge']) is not float or receipt['spatial_ridge'] != ridge
132
+ or type(receipt['time_ridge']) is not float or receipt['time_ridge'] != ridge
133
+ or receipt['label_shuffle_seed'] != (SHUFFLE_SEED if receipt['shuffled_labels'] else None)
134
+ or receipt['label_conversion'] != 'q_feature*3 + clipped_delta_label*.06; float32 source precision'
135
+ or receipt['weak_control_notice'] != 'Full frame-wise label shuffle; weak temporal negative control, not whole-trajectory shuffle.'):
136
+ raise ValueError('Primitive training recipe differs from the fixed candidate.')
137
+ if receipt['label_shuffle_seed'] is not None:
138
+ _integer(receipt['label_shuffle_seed'], 'label_shuffle_seed', SHUFFLE_SEED, SHUFFLE_SEED)
139
+ _number(receipt['normalized_mse'], 'normalized_mse', 0., 100.)
140
+ rmse = _array(receipt['native_rmse'], (7,), 'native_rmse', 10.)
141
+ if np.any(rmse < 0):
142
+ raise ValueError('Native fit errors cannot be negative.')
143
+ return model
144
+
145
+
146
+ def train(dataset, *, shuffled=False, high_resolution=False):
147
+ """Fit the one fixed candidate from 32 complete 1000-frame train episodes.
148
+
149
+ high_resolution selects the one predeclared V2 capacity change: 16 cubic
150
+ spatial terms,401 Gaussian time centers,width .025s and ridge 1e-7.
151
+ Takes the existing 43-feature/delta-label dataset. Episode grouping recovers
152
+ initial observed XY; neither grouping IDs nor a demonstration tape are used
153
+ at runtime. The shuffled control permutes whole seven-dimensional converted
154
+ action labels across all frames with the predeclared seed.
155
+ """
156
+ if type(shuffled) is not bool:
157
+ raise ValueError('shuffled must be a boolean.')
158
+ if type(high_resolution) is not bool:
159
+ raise ValueError('high_resolution must be a boolean.')
160
+ centers, width, ridge, terms = ((HIGH_CENTERS, HIGH_WIDTH, HIGH_RIDGE, HIGH_SPATIAL_TERMS)
161
+ if high_resolution else (CENTERS, WIDTH, RIDGE, SPATIAL_TERMS))
162
+ if type(dataset) is not dict or set(dataset) != {'scene_ids', 'samples'}:
163
+ raise ValueError('Primitive requires scene_ids and causal samples.')
164
+ cases = _case_ids(dataset['scene_ids'])
165
+ rows = dataset['samples']
166
+ if len(cases) != 32 or type(rows) is not list or len(rows) != 32000:
167
+ raise ValueError('Fixed primitive requires 32 complete 1000-frame training episodes.')
168
+ index = {case: i for i, case in enumerate(cases)}
169
+ x, target, scene_index, ticks = [], [], [], []
170
+ for row in rows:
171
+ if type(row) is not dict or set(row) != {'features', 'targets', 'case_id'} or row['case_id'] not in index:
172
+ raise ValueError('Malformed primitive training sample.')
173
+ feature = _array(row['features'], (43,), 'features', 10.)
174
+ label = _array(row['targets'], (7,), 'targets', 1.)
175
+ if label[6] < 0:
176
+ raise ValueError('Jaw labels must lie in [0,1].')
177
+ tick = round(float(feature[-1])*1000.)
178
+ if not 0 <= tick < 1000 or abs(float(feature[-1])-tick/1000.) > 1e-7:
179
+ raise ValueError('Training episode time grid must contain ordered 20 ms samples.')
180
+ x.append(feature); target.append(label); scene_index.append(index[row['case_id']]); ticks.append(tick)
181
+ raw_x, target = np.asarray(x), np.asarray(target)
182
+ source_hash = digest({'scene_ids': list(cases), 'samples': [
183
+ {'case_id': row['case_id'], 'features': a.tolist(), 'targets': b.tolist()}
184
+ for row, a, b in zip(rows, raw_x, target)]})
185
+ target[:, :6] = (raw_x[:, :6]*3.+target[:, :6]*JOINT_DELTA_RAD)/3.
186
+ limits = np.asarray(JOINT_LIMITS)/3.
187
+ if np.any(target[:, :6] < limits[:, 0]-1e-5) or np.any(target[:, :6] > limits[:, 1]+1e-5):
188
+ raise ValueError('Converted target exceeds native joint limits.')
189
+ if shuffled:
190
+ target = target[np.random.default_rng(SHUFFLE_SEED).permutation(len(target))]
191
+ supervision_hash = sha256(np.asarray(target, dtype='<f8').tobytes(order='C')).hexdigest()
192
+ structured = np.empty((32, 1000, 7))
193
+ filled = np.zeros((32, 1000), dtype=bool)
194
+ contexts, goals = np.zeros((32, 2)), np.full(32, -1, dtype=int)
195
+ for sample, (scene, tick) in enumerate(zip(scene_index, ticks)):
196
+ if filled[scene, tick]:
197
+ raise ValueError('Duplicate training frame within an episode.')
198
+ filled[scene, tick] = True
199
+ structured[scene, tick] = target[sample]
200
+ f = raw_x[sample]
201
+ tcp, destination = f[14:17]*.5, f[24:27]*.2+f[14:17]*.5
202
+ goal = _goal(destination, tolerance=1e-5)
203
+ if goals[scene] not in (-1, goal):
204
+ raise ValueError('Training destination changed within an episode.')
205
+ goals[scene] = goal
206
+ if tick == 0:
207
+ contexts[scene] = _start(np.concatenate((tcp[:2]+f[21:23]*.2, [tcp[2]+f[23]*.2])))
208
+ if not filled.all() or any(np.count_nonzero(goals == goal) != 16 for goal in range(2)):
209
+ raise ValueError('Each known goal requires 16 complete training episodes.')
210
+ basis = _time_basis(np.arange(1000)*.02, high_resolution)
211
+ time_projection = np.linalg.solve(basis.T@basis+ridge*np.eye(len(centers)), basis.T)
212
+ weights, residuals = [], []
213
+ for goal in range(2):
214
+ selected = goals == goal
215
+ spatial, y = _spatial(contexts[selected], high_resolution), structured[selected]
216
+ if np.linalg.matrix_rank(spatial) != len(terms):
217
+ raise ValueError('Spatial demonstration design is rank deficient.')
218
+ spatial_projection = np.linalg.solve(spatial.T@spatial+ridge*np.eye(len(terms)), spatial.T)
219
+ intermediate = np.tensordot(spatial_projection, y, axes=(1, 0))
220
+ coefficients = np.einsum('stj,kt->skj', intermediate, time_projection, optimize=True)
221
+ weights.append(coefficients)
222
+ residuals.append(np.einsum('ns,skj,tk->ntj', spatial, coefficients, basis, optimize=True)-y)
223
+ residuals = np.asarray(residuals)
224
+ native_rmse = np.sqrt(np.mean(residuals**2, axis=(0, 1, 2)))*np.asarray([3.]*6+[JAW_MAX_M])
225
+ model = {'schema': HIGH_RESOLUTION_SCHEMA if high_resolution else SCHEMA, 'scope': SCOPE, 'physical_robot_ready': False,
226
+ 'supervision_origin': 'synthetic_authored_controller', 'feature_contract': FEATURE_CONTRACT,
227
+ 'reactive_contact_feedback': False, 'known_goals_xy_m': [list(g) for g in GOALS],
228
+ 'start_bounds_xy_m': [list(b) for b in START_BOUNDS], 'spatial_terms': list(terms),
229
+ 'time_centers_s': centers.tolist(), 'time_width_s': width,
230
+ 'joint_limits_rad': [list(b) for b in JOINT_LIMITS], 'joint_delta_limit_rad': JOINT_DELTA_RAD,
231
+ 'jaw_limit_m': JAW_MAX_M, 'output_encoding': OUTPUT_ENCODING,
232
+ 'weights': np.asarray(weights).tolist(),
233
+ 'dataset_sha256': digest({'source_dataset_sha256': source_hash, 'supervision_sha256': supervision_hash,
234
+ 'output_encoding': OUTPUT_ENCODING}), 'source_dataset_sha256': source_hash,
235
+ 'supervision_sha256': supervision_hash, 'train_cases': list(cases),
236
+ 'training': {'algorithm': 'numpy-separable-ridge-cubic-gaussian' if high_resolution else 'numpy-separable-ridge-quadratic-gaussian', 'sample_count': 32000,
237
+ 'scene_count': 32, 'spatial_ridge': ridge, 'time_ridge': ridge,
238
+ 'shuffled_labels': shuffled, 'label_shuffle_seed': SHUFFLE_SEED if shuffled else None,
239
+ 'normalized_mse': float(np.mean(residuals**2)), 'native_rmse': native_rmse.tolist(),
240
+ 'label_conversion': 'q_feature*3 + clipped_delta_label*.06; float32 source precision',
241
+ 'weak_control_notice': 'Full frame-wise label shuffle; weak temporal negative control, not whole-trajectory shuffle.'}}
242
+ return validate_model(model)
243
+
244
+
245
+ class MotorPrimitivePolicy:
246
+ """Fresh per episode: latch initial XY at t=0 and follow learned references."""
247
+ def __init__(self, document):
248
+ self.model = validate_model(document)
249
+ self.weights = np.asarray(self.model['weights'])
250
+ self.high_resolution = self.model['schema'] == HIGH_RESOLUTION_SCHEMA
251
+ self.calls, self.inference_seconds = 0, 0.
252
+ self.initial_xy, self.goal_index = None, None
253
+
254
+ def predict(self, observation):
255
+ began = time.perf_counter()
256
+ if type(observation) is not dict:
257
+ raise ValueError('Primitive requires an observation dictionary.')
258
+ elapsed = _number(observation.get('t_seconds'), 't_seconds', 0., 20.)
259
+ if not math.isclose(elapsed, self.calls*.02, rel_tol=0, abs_tol=1e-8):
260
+ raise ValueError('Primitive requires t=0 initialization followed by 20 ms action cadence.')
261
+ q = _array(observation.get('joint_position_rad'), (6,), 'joint_position_rad', 10.)
262
+ goal = _goal(observation.get('target_position_m'))
263
+ initial_xy = _start(observation.get('object_position_m')) if self.calls == 0 else self.initial_xy
264
+ if self.calls and goal != self.goal_index:
265
+ raise ValueError('Primitive destination cannot change after initialization.')
266
+ reference = np.einsum('s,t,stj->j', _spatial(initial_xy, self.high_resolution),
267
+ _time_basis(elapsed, self.high_resolution), self.weights[goal], optimize=True)
268
+ limits = np.asarray(JOINT_LIMITS)
269
+ targets = np.clip(q+np.clip(reference[:6]*3.-q, -JOINT_DELTA_RAD, JOINT_DELTA_RAD),
270
+ limits[:, 0]+.02, limits[:, 1]-.02)
271
+ self.initial_xy, self.goal_index = initial_xy, goal
272
+ self.calls += 1
273
+ self.inference_seconds += time.perf_counter()-began
274
+ return {'joint_targets_rad': targets.tolist(), 'gripper_position_m': float(JAW_MAX_M*np.clip(reference[6], 0., 1.))}
275
+
276
+ __call__ = predict
277
+
278
+ def diagnostics(self):
279
+ return {'policy_origin': 'learned_conditional_motion_primitive', 'action_representation': 'absolute_time_conditioned',
280
+ 'student_inference_calls': self.calls, 'student_inference_seconds': self.inference_seconds,
281
+ 'teacher_fallback_calls': 0, 'runtime_teacher_available': False, 'authored_task_phase_machine': False,
282
+ 'reactive_contact_feedback': False, 'physical_robot_ready': False, 'model_sha256': digest(self.model)}
sources/piper_task.py ADDED
@@ -0,0 +1,520 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """PiPER free-block contact pilot; authored policy and privileged simulator state.
2
+
3
+ The pinned robot's native servos, force limits and gravity compensation remain
4
+ unchanged. The block moves under gravity and contact, with no grasp attachment.
5
+ """
6
+ from __future__ import annotations
7
+
8
+ from dataclasses import asdict, dataclass
9
+ from hashlib import sha256
10
+ import math
11
+ from pathlib import Path
12
+ import platform
13
+ import time
14
+
15
+ from . import reference_sim as sim
16
+ from . import robot_profiles
17
+ from .reference_task import ReferenceTaskEnv, _number, _vector
18
+
19
+
20
+ PROFILE = 'piper-rigid-block-task-v0.1'
21
+ SCHEMA = 'dvidia.piper-task-episode/v1'
22
+ SCOPE = ('Authored PiPER rigid-block contact pilot with privileged native state. '
23
+ 'Pinned upstream servos/inertias/collision proxies/gravity compensation, synthetic commands and uncalibrated contact. '
24
+ 'No learned skill, camera sensing, shoe manipulation or physical robot qualification.')
25
+ ARM_JOINTS = tuple('joint'+str(i) for i in range(1, 7))
26
+
27
+
28
+ @dataclass(frozen=True)
29
+ class PiperTaskConfig:
30
+ timestep: float = .001
31
+ control_dt: float = .02
32
+ timeout_s: float = 20.
33
+ settle_s: float = .5
34
+ object_position_m: tuple = (.30, -.03, .082)
35
+ target_position_m: tuple = (.35, .08, .08)
36
+ object_half_size_m: tuple = (.02, .02, .02)
37
+ mass_kg: float = .04
38
+ friction: float = .8
39
+ table_top_m: float = .06
40
+ table_center_xy_m: tuple = (.38, 0.)
41
+ table_half_size_xy_m: tuple = (.17, .22)
42
+ table_thickness_m: float = .04
43
+ goal_position_tolerance_m: float = .025
44
+ goal_dwell_s: float = .25
45
+ min_lift_m: float = .06
46
+ min_lift_dwell_s: float = .10
47
+ retreat_clearance_m: float = .10
48
+ joint_target_rate_rad_s: float = 1.5
49
+ jaw_target_rate_m_s: float = .05
50
+ tool_orientation_wxyz: tuple = (0., 0., 1., 0.)
51
+ carry_orientation_wxyz: tuple = (math.cos(5*math.pi/12), 0., math.sin(5*math.pi/12), 0.)
52
+
53
+ def __post_init__(self):
54
+ bounds = {'timestep': (.0005, .002), 'control_dt': (.02, .02), 'timeout_s': (.1, 30.),
55
+ 'settle_s': (.1, 2.), 'mass_kg': (.01, .10), 'friction': (.05, 2.),
56
+ 'table_top_m': (.04, .20), 'table_thickness_m': (.02, .08),
57
+ 'goal_position_tolerance_m': (.01, .025), 'goal_dwell_s': (.1, .6),
58
+ 'min_lift_m': (.04, .1), 'min_lift_dwell_s': (.05, .3),
59
+ 'retreat_clearance_m': (.08, .15), 'joint_target_rate_rad_s': (.1, 3.),
60
+ 'jaw_target_rate_m_s': (.005, .10)}
61
+ for name, (low, high) in bounds.items():
62
+ object.__setattr__(self, name, _number(getattr(self, name), name, low, high))
63
+ sim._timestep(self.timestep)
64
+ for numerator, denominator in ((self.control_dt, self.timestep), (self.timeout_s, self.control_dt), (self.settle_s, self.timestep)):
65
+ ratio = numerator/denominator
66
+ if not math.isclose(ratio, round(ratio), abs_tol=1e-9, rel_tol=0):
67
+ raise ValueError('Durations must contain complete native/control ticks')
68
+ for name, length, low, high in (('object_position_m', 3, -1, 1), ('target_position_m', 3, -1, 1),
69
+ ('object_half_size_m', 3, .018, .023), ('table_center_xy_m', 2, -1, 1),
70
+ ('table_half_size_xy_m', 2, .1, .3), ('tool_orientation_wxyz', 4, -1, 1),
71
+ ('carry_orientation_wxyz', 4, -1, 1)):
72
+ object.__setattr__(self, name, _vector(getattr(self, name), length, name, low, high))
73
+ if any(not math.isclose(sum(x*x for x in quaternion), 1., abs_tol=1e-8, rel_tol=0)
74
+ for quaternion in (self.tool_orientation_wxyz, self.carry_orientation_wxyz)):
75
+ raise ValueError('Tool quaternion must be normalized wxyz')
76
+ for name in ('object_position_m', 'target_position_m'):
77
+ point = getattr(self, name)
78
+ if not .25 <= point[0] <= .48 or not -.15 <= point[1] <= .15:
79
+ raise ValueError('Placement outside the bounded pilot workspace')
80
+ for axis in range(2):
81
+ if abs(point[axis]-self.table_center_xy_m[axis])+self.object_half_size_m[axis] > self.table_half_size_xy_m[axis]-.01:
82
+ raise ValueError('Block placement must be inside the support table')
83
+ expected = self.table_top_m+self.object_half_size_m[2]+(.002 if name == 'object_position_m' else 0.)
84
+ if not math.isclose(point[2], expected, abs_tol=1e-8, rel_tol=0):
85
+ raise ValueError('Block start/target height differs from support plane')
86
+ if math.dist(self.object_position_m[:2], self.target_position_m[:2]) < .075:
87
+ raise ValueError('Pilot must require at least 75 mm transfer')
88
+
89
+
90
+ def _config(value):
91
+ value = PiperTaskConfig() if value is None else value
92
+ if not isinstance(value, PiperTaskConfig):
93
+ raise TypeError('config must be PiperTaskConfig')
94
+ return value
95
+
96
+
97
+ def _asset_root(assets):
98
+ path = Path(assets)
99
+ return path.parent if path.name == 'agilex_piper' else path
100
+
101
+
102
+ def task_contract():
103
+ return {'profile': PROFILE, 'scope': SCOPE, 'physical_robot_ready': False, 'arm_joint_order': list(ARM_JOINTS),
104
+ 'actions': {'joint_targets_rad': 'six native position-servo targets in radians',
105
+ 'gripper_position_m': 'one native single-finger slide target in metres [0,.035]; 0 closed/.035 open; not measured full gap'},
106
+ 'gripper_joints': ['joint7', 'joint8'], 'independent_gripper_commands': 1,
107
+ 'tcp': 'authored site in link6 at local [0,0,.12003] near the distal finger-box centers; not hardware calibrated',
108
+ 'object': 'free rigid block with native gravity, no weld/equality/mocap or post-reset pose writes',
109
+ 'contact': 'stock native finger collision boxes; object priority1 authors pair friction explicitly',
110
+ 'servo_gains': 'unchanged upstream PiPER position servos and force caps; upstream robot gravcomp=1 retained',
111
+ 'collision_support_exemption': 'fixed base capsule may contact floor; moving robot/table/floor or block/nonfinger contacts are critical',
112
+ 'observations': 'privileged joint/object/TCP/contact state; no deployable sensor pipeline',
113
+ 'success': 'valid native physics, sustained bilateral table-free lift and retained carry to supported destination, then actual released/settled destination dwell and retreat',
114
+ 'carry_contact_loss_tolerance_seconds': .04, 'contact_force_threshold_n': .01,
115
+ 'simulation_asset_license': 'MIT'}
116
+
117
+
118
+ def build_task_model(assets, config=None):
119
+ config = _config(config)
120
+ item, blobs = robot_profiles._payload('piper', _asset_root(assets))
121
+ mj, _ = sim._native_imports()
122
+ spec = sim._spec(blobs, item['folder'], item['model'])
123
+ spec.option.timestep = config.timestep
124
+ spec.body('link6').add_site(name='piper_task_tcp', pos=[0, 0, .12003], size=[.004, 0, 0], rgba=[.1, .5, .3, 1])
125
+ spec.worldbody.add_geom(name='task_floor', type=mj.mjtGeom.mjGEOM_PLANE, size=[2, 2, .1], rgba=[.9, .9, .88, 1])
126
+ spec.worldbody.add_geom(name='task_table', type=mj.mjtGeom.mjGEOM_BOX,
127
+ pos=[*config.table_center_xy_m, config.table_top_m-config.table_thickness_m/2],
128
+ size=[*config.table_half_size_xy_m, config.table_thickness_m/2], rgba=[.73, .70, .64, 1])
129
+ block = spec.worldbody.add_body(name='task_block', pos=config.object_position_m, gravcomp=0)
130
+ block.add_freejoint(name='task_block_free')
131
+ block.add_geom(name='task_block_geom', type=mj.mjtGeom.mjGEOM_BOX, size=config.object_half_size_m,
132
+ mass=config.mass_kg, friction=[config.friction, .005, .0001], priority=1, condim=4, rgba=[.75, .30, .16, 1])
133
+ target = spec.worldbody.add_body(name='task_target_frame', pos=[*config.target_position_m[:2], config.table_top_m+.0005])
134
+ target.add_geom(name='task_target', type=mj.mjtGeom.mjGEOM_BOX, size=[.035, .035, .0005],
135
+ contype=0, conaffinity=0, rgba=[.17, .47, .35, .3])
136
+ model = spec.compile()
137
+ if (model.nq, model.nv, model.nu, model.neq, model.nmocap) != (15, 14, 7, 1, 0):
138
+ raise ValueError('PiPER task mechanical contract changed')
139
+ return model
140
+
141
+
142
+ class PiperTaskEnv:
143
+ _outcome_tick = ReferenceTaskEnv._outcome_tick
144
+
145
+ def __init__(self, assets, config=None):
146
+ self.assets, self.config, self.ready = _asset_root(assets), _config(config), False
147
+
148
+ def _finite(self):
149
+ _, np = sim._native_imports()
150
+ return (ReferenceTaskEnv._finite(self) and not np.any(self.data.qfrc_applied)
151
+ and not np.any(self.data.xfrc_applied))
152
+
153
+ def info(self):
154
+ result = ReferenceTaskEnv.info(self)
155
+ if not self._finite() or any(warning.number for warning in self.data.warning):
156
+ result.update(valid=False, success=False,
157
+ reason='invalid_state' if not self._finite() else 'solver_warning')
158
+ return result
159
+
160
+ def reset(self, seed=0):
161
+ if type(seed) is not int or not 0 <= seed <= 999999:
162
+ raise ValueError('seed must be an integer in [0,999999]')
163
+ mj, np = sim._native_imports()
164
+ self.ready, self.seed, self.warnings = False, seed, []
165
+ with sim.native_warnings(self.warnings):
166
+ self.model = build_task_model(self.assets, self.config)
167
+ self.data = mj.MjData(self.model)
168
+ self.arm_qpos, self.arm_dof = np.arange(6), np.arange(6)
169
+ self.linkage_qpos = np.arange(6, 8)
170
+ self.tcp = mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_SITE, 'piper_task_tcp')
171
+ self.block = mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_BODY, 'task_block')
172
+ self.block_geom = mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_GEOM, 'task_block_geom')
173
+ self.table_geom = mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_GEOM, 'task_table')
174
+ self.floor_geom = mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_GEOM, 'task_floor')
175
+ self.pad_geoms = {}
176
+ for side, name in (('left', 'link7'), ('right', 'link8')):
177
+ body = mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_BODY, name)
178
+ self.pad_geoms[side] = [i for i in range(self.model.ngeom) if self.model.geom_bodyid[i] == body
179
+ and self.model.geom_type[i] == mj.mjtGeom.mjGEOM_BOX and self.model.geom_contype[i]]
180
+ if len(self.pad_geoms[side]) != 2:
181
+ raise ValueError('PiPER stock finger collision boxes changed')
182
+ self.robot_geoms = {i for i in range(self.model.ngeom) if 1 <= self.model.geom_bodyid[i] <= 9}
183
+ self.moving_geoms = {i for i in self.robot_geoms if self.model.geom_bodyid[i] > 1}
184
+ self.arm_geoms = {i for i in self.robot_geoms if 2 <= self.model.geom_bodyid[i] <= 7}
185
+ self.data.qpos[:8] = [0., 1.57, -1.3485, 0., 0., 0., .035, -.035]
186
+ self.command_targets = self.data.qpos[:6].copy()
187
+ self.command_gripper = .035
188
+ mj.mj_forward(self.model, self.data)
189
+ for _ in range(round(self.config.settle_s/self.config.timestep)):
190
+ self._controls()
191
+ mj.mj_step(self.model, self.data)
192
+ mj.mj_forward(self.model, self.data)
193
+ if not self._finite() or self.warnings or any(x.number for x in self.data.warning):
194
+ raise RuntimeError('PiPER settling produced invalid native physics')
195
+ counts, _, supported, critical, _ = self._contacts()
196
+ velocity = np.empty(6)
197
+ mj.mj_objectVelocity(self.model, self.data, mj.mjtObj.mjOBJ_BODY, self.block, velocity, 0)
198
+ point = self.data.xpos[self.block]
199
+ expected_z = self.config.table_top_m+self.config.object_half_size_m[2]
200
+ if (not supported or critical or any(counts.values())
201
+ or np.linalg.norm(point[:2]-self.config.object_position_m[:2]) > .005
202
+ or abs(float(point[2])-expected_z) > .002
203
+ or np.linalg.norm(velocity[3:]) > .02 or np.linalg.norm(velocity[:3]) > .2):
204
+ raise RuntimeError('Reset must settle a supported, clear, stationary block near the declared start')
205
+ self.initial_object_position = self.data.xpos[self.block].copy()
206
+ self.elapsed, self.steps, self.dwell, self.lift_dwell = 0., 0, 0., 0.
207
+ self.max_lift, self.max_pad_force, self.critical_contact_ticks = 0., 0., 0
208
+ self.lift_seen, self.grasp_seen, self.done = False, False, False
209
+ self.carry_complete, self.retention_lost = False, False
210
+ self.carry_contact_loss, self.max_carry_contact_loss, self.carry_contact_loss_events = 0., 0., 0
211
+ self.first_success_time, self.reason = None, 'running'
212
+ self.contact_pair_native_ticks, self.ready = {}, True
213
+ return self.observation(), self.info()
214
+
215
+ def _controls(self):
216
+ self.data.ctrl[:6] = self.command_targets
217
+ self.data.ctrl[6] = self.command_gripper
218
+
219
+ def _contacts(self):
220
+ mj, np = sim._native_imports()
221
+ counts, forces, table, critical, pairs = {'left': 0, 'right': 0}, {'left': 0., 'right': 0.}, 0, 0, []
222
+ pads = set(sum(self.pad_geoms.values(), []))
223
+ for index, contact in enumerate(self.data.contact[:self.data.ncon]):
224
+ force = np.zeros(6)
225
+ mj.mj_contactForce(self.model, self.data, index, force)
226
+ if force[0] <= .01:
227
+ continue
228
+ pair = {int(contact.geom1), int(contact.geom2)}
229
+ pairs.append({'geom_ids': sorted(pair), 'normal_force_n': float(force[0])})
230
+ if self.block_geom in pair:
231
+ table += int(self.table_geom in pair)
232
+ for side in counts:
233
+ if pair.intersection(self.pad_geoms[side]):
234
+ counts[side] += 1
235
+ forces[side] += float(force[0])
236
+ critical += int(bool(pair.intersection(self.robot_geoms-pads)) or self.floor_geom in pair)
237
+ elif pair.intersection({self.table_geom, self.floor_geom}) and pair.intersection(self.moving_geoms):
238
+ critical += 1
239
+ elif pair.intersection(self.arm_geoms) and pair.issubset(self.robot_geoms):
240
+ critical += 1
241
+ return counts, forces, table, critical, pairs
242
+
243
+ def observation(self):
244
+ mj, np = sim._native_imports()
245
+ if not self._finite():
246
+ raise RuntimeError('Cannot record nonfinite PiPER physics')
247
+ counts, forces, table, critical, pairs = self._contacts()
248
+ quat, velocity = np.empty(4), np.empty(6)
249
+ mj.mju_mat2Quat(quat, self.data.site_xmat[self.tcp])
250
+ mj.mj_objectVelocity(self.model, self.data, mj.mjtObj.mjOBJ_BODY, self.block, velocity, 0)
251
+ return {'t_seconds': self.elapsed, 'qpos': self.data.qpos.tolist(), 'qvel': self.data.qvel.tolist(),
252
+ 'joint_position_rad': self.data.qpos[:6].tolist(), 'joint_velocity_rad_s': self.data.qvel[:6].tolist(),
253
+ 'gripper_joint_position_m': self.data.qpos[6:8].tolist(),
254
+ 'tcp_position_m': self.data.site_xpos[self.tcp].tolist(), 'tcp_quaternion_wxyz': quat.tolist(),
255
+ 'object_position_m': self.data.xpos[self.block].tolist(), 'object_quaternion_wxyz': self.data.xquat[self.block].tolist(),
256
+ 'object_linear_velocity_m_s': velocity[3:].tolist(), 'object_angular_velocity_rad_s': velocity[:3].tolist(),
257
+ 'target_position_m': list(self.config.target_position_m), 'grasp_contact_counts': counts,
258
+ 'pad_normal_forces_n': forces, 'table_object_contact_count': table, 'unexpected_contact_count': critical,
259
+ 'contact_count': int(self.data.ncon), 'active_contact_pairs': pairs,
260
+ 'native_actuator_controls': self.data.ctrl.tolist(), 'actuator_force_native': self.data.actuator_force.tolist(),
261
+ 'issued_joint_targets_rad': None, 'issued_gripper_position_m': None, 'command': None,
262
+ 'observation_origin': 'privileged_native_simulator_state'}
263
+
264
+ def pose_action(self, position_m, quaternion_wxyz, gripper_position_m):
265
+ if not self.ready or self.done:
266
+ raise RuntimeError('Reset required before another PiPER action')
267
+ mj, np = sim._native_imports()
268
+ position = np.asarray(_vector(position_m, 3, 'tool position'))
269
+ quaternion = np.asarray(_vector(quaternion_wxyz, 4, 'tool quaternion', -1, 1))
270
+ if not math.isclose(float(quaternion@quaternion), 1., abs_tol=1e-8, rel_tol=0):
271
+ raise ValueError('Tool quaternion must be normalized wxyz')
272
+ jaw = _number(gripper_position_m, 'gripper position', 0, .035)
273
+ jacp, jacr = np.zeros((3, self.model.nv)), np.zeros((3, self.model.nv))
274
+ mj.mj_jacSite(self.model, self.data, jacp, jacr, self.tcp)
275
+ current, rotation = np.empty(4), np.empty(3)
276
+ mj.mju_mat2Quat(current, self.data.site_xmat[self.tcp])
277
+ mj.mju_subQuat(rotation, quaternion, current)
278
+ rotation = self.data.site_xmat[self.tcp].reshape(3, 3)@rotation
279
+ translation = position-self.data.site_xpos[self.tcp]
280
+ for error, maximum in ((translation, .015), (rotation, .05)):
281
+ norm = float(np.linalg.norm(error))
282
+ if norm > maximum:
283
+ error *= maximum/norm
284
+ jacobian = np.vstack((jacp[:, :6], .25*jacr[:, :6]))
285
+ error = np.concatenate((translation, .25*rotation))
286
+ delta = jacobian.T@np.linalg.solve(jacobian@jacobian.T+.012**2*np.eye(6), error)
287
+ targets = np.clip(self.data.qpos[:6]+np.clip(delta, -.06, .06),
288
+ self.model.actuator_ctrlrange[:6, 0]+.02, self.model.actuator_ctrlrange[:6, 1]-.02)
289
+ return {'joint_targets_rad': targets.tolist(), 'gripper_position_m': jaw}
290
+
291
+ def step(self, action):
292
+ if not self.ready or self.done:
293
+ raise RuntimeError('Reset required before another PiPER step')
294
+ if type(action) is not dict or set(action) != {'joint_targets_rad', 'gripper_position_m'}:
295
+ raise ValueError('PiPER requires six radian arm targets and one metre jaw target')
296
+ mj, np = sim._native_imports()
297
+ targets = np.asarray(_vector(action['joint_targets_rad'], 6, 'arm targets'))
298
+ jaw = _number(action['gripper_position_m'], 'jaw target', 0, .035)
299
+ if np.any(targets < self.model.actuator_ctrlrange[:6, 0]) or np.any(targets > self.model.actuator_ctrlrange[:6, 1]):
300
+ raise ValueError('Arm target exceeds native limits')
301
+ if not self._finite():
302
+ self.reason, self.done = 'invalid_state', True
303
+ return None, self.info()
304
+ messages = []
305
+ with sim.native_warnings(messages):
306
+ for _ in range(round(self.config.control_dt/self.config.timestep)):
307
+ self.command_targets += np.clip(targets-self.command_targets,
308
+ -self.config.joint_target_rate_rad_s*self.config.timestep,
309
+ self.config.joint_target_rate_rad_s*self.config.timestep)
310
+ self.command_gripper += float(np.clip(jaw-self.command_gripper,
311
+ -self.config.jaw_target_rate_m_s*self.config.timestep,
312
+ self.config.jaw_target_rate_m_s*self.config.timestep))
313
+ self._controls()
314
+ mj.mj_step(self.model, self.data)
315
+ mj.mj_forward(self.model, self.data)
316
+ self.elapsed += self.config.timestep
317
+ if not self._finite() or messages or any(x.number for x in self.data.warning):
318
+ self.reason = 'invalid_state' if not self._finite() else 'solver_warning'
319
+ self.done = True
320
+ break
321
+ counts, forces, supported, critical, pairs = self._contacts()
322
+ for pair in {tuple(contact['geom_ids']) for contact in pairs}:
323
+ name = ':'.join(map(str, pair))
324
+ self.contact_pair_native_ticks[name] = self.contact_pair_native_ticks.get(name, 0)+1
325
+ velocity = np.empty(6)
326
+ mj.mj_objectVelocity(self.model, self.data, mj.mjtObj.mjOBJ_BODY, self.block, velocity, 0)
327
+ both = all(counts[side] > 0 for side in counts)
328
+ lift = float(self.data.xpos[self.block, 2]-self.initial_object_position[2])
329
+ distance = float(np.linalg.norm(self.data.xpos[self.block]-self.config.target_position_m))
330
+ actual_open = self.data.qpos[6] > .028 and self.data.qpos[7] < -.028
331
+ self._outcome_tick(both=both, supported=supported, lift=lift, distance=distance,
332
+ released=not any(counts.values()) and actual_open,
333
+ settled=np.linalg.norm(velocity[3:]) < .035 and np.linalg.norm(velocity[:3]) < .3,
334
+ clear=self.data.site_xpos[self.tcp, 2] >= self.data.xpos[self.block, 2]+self.config.retreat_clearance_m,
335
+ critical=critical, pad_force=max(forces.values()))
336
+ self.warnings.extend(messages)
337
+ self.steps += 1
338
+ if not self.done and self.steps >= round(self.config.timeout_s/self.config.control_dt):
339
+ self.reason, self.done = 'timeout', True
340
+ return self.observation() if self._finite() else None, self.info()
341
+
342
+
343
+ class PiperTaskPolicy:
344
+ def __init__(self, environment):
345
+ self.env, self.phase, self.ticks = environment, 'approach', 0
346
+ self.grasp_position, self.held_offset = None, None
347
+ self.issued_phase = self.phase
348
+
349
+ def __call__(self, observation):
350
+ mj, np = sim._native_imports()
351
+ self.issued_phase = self.phase
352
+ obj, tcp, target = (np.asarray(observation[name]) for name in ('object_position_m', 'tcp_position_m', 'target_position_m'))
353
+ both, jaw = all(observation['grasp_contact_counts'][side] for side in ('left', 'right')), .035
354
+ orientation = self.env.config.tool_orientation_wxyz
355
+ if self.phase in ('approach', 'lift', 'transfer', 'retreat', 'verify'):
356
+ orientation = self.env.config.carry_orientation_wxyz
357
+ rotation, angular_error = np.empty(9), np.empty(3)
358
+ mj.mju_quat2Mat(rotation, np.asarray(orientation))
359
+ mj.mju_subQuat(angular_error, np.asarray(orientation), np.asarray(observation['tcp_quaternion_wxyz']))
360
+ aligned = np.linalg.norm(angular_error) < .12
361
+ offset = rotation.reshape(3, 3)@self.held_offset if self.held_offset is not None else None
362
+ if self.phase == 'approach':
363
+ goal = obj+np.asarray([0., 0., .10])
364
+ if np.linalg.norm(tcp-goal) < .008 and aligned:
365
+ self.grasp_position = obj+np.asarray([0., 0., .002])
366
+ self.phase, self.ticks = 'descend', 0
367
+ elif self.phase == 'descend':
368
+ goal = self.grasp_position
369
+ if np.linalg.norm(tcp-goal) < .004 and aligned:
370
+ self.phase, self.ticks = 'close', 0
371
+ elif self.phase == 'close':
372
+ goal, jaw = self.grasp_position, 0.
373
+ if both and min(observation['pad_normal_forces_n'].values()) > .01 and self.ticks >= 35:
374
+ current_rotation = np.empty(9)
375
+ mj.mju_quat2Mat(current_rotation, np.asarray(observation['tcp_quaternion_wxyz']))
376
+ self.held_offset = current_rotation.reshape(3, 3).T@(obj-tcp)
377
+ self.phase, self.ticks = 'lift', 0
378
+ elif self.phase == 'lift':
379
+ goal, jaw = self.grasp_position+np.asarray([0., 0., .10]), 0.
380
+ if self.env.lift_seen and np.linalg.norm(tcp-goal) < .008:
381
+ self.phase, self.ticks = 'transfer', 0
382
+ elif self.phase == 'transfer':
383
+ goal, jaw = target-offset+np.asarray([0., 0., .10]), 0.
384
+ if np.linalg.norm(tcp-goal) < .008:
385
+ self.phase, self.ticks = 'place', 0
386
+ elif self.phase == 'place':
387
+ goal, jaw = target-offset, 0.
388
+ if observation['table_object_contact_count'] and np.linalg.norm(obj-target) < .02 and np.linalg.norm(tcp-goal) < .006:
389
+ self.phase, self.ticks = 'release', 0
390
+ elif self.phase == 'release':
391
+ goal = target-offset
392
+ if not any(observation['grasp_contact_counts'].values()) and self.ticks >= 35:
393
+ self.phase, self.ticks = 'retreat', 0
394
+ else:
395
+ goal = target+np.asarray([0., 0., .13])
396
+ if np.linalg.norm(tcp-goal) < .008:
397
+ self.phase = 'verify'
398
+ self.ticks += 1
399
+ return self.env.pose_action(goal.tolist(), orientation, jaw)
400
+
401
+
402
+ def run_episode(assets, config=None, *, seed=0, control='placement', arm_tape=None, policy_mode='baseline', record_step_timings=False, record_policy_inputs=False):
403
+ config = _config(config)
404
+ if type(record_step_timings) is not bool:
405
+ raise ValueError('record_step_timings must be a boolean')
406
+ if type(record_policy_inputs) is not bool:
407
+ raise ValueError('record_policy_inputs must be a boolean')
408
+ if control not in ('placement', 'replay_open_jaw', 'hold'):
409
+ raise ValueError('Unknown PiPER task control')
410
+ if policy_mode not in ('baseline', 'guarded', 'probe_only', 'history', 'recovery_carry', 'recovery', 'reacquire', 'reacquire_grasp'):
411
+ raise ValueError('Unknown PiPER policy mode')
412
+ from . import piper_grip_guard as grip_guard
413
+ from . import piper_contact_memory as contact_memory
414
+ from . import piper_contact_recovery as contact_recovery
415
+ from . import piper_reacquisition as reacquisition
416
+ from . import piper_grasp_strategy as grasp_strategy
417
+ started, latencies, environment, phase = time.perf_counter(), [], None, 'validation'
418
+ result = {'schema': SCHEMA, 'profile': PROFILE, 'scope': SCOPE, 'physical_robot_ready': False,
419
+ 'seed': seed, 'control': control, 'policy_mode': policy_mode, 'config': asdict(config), 'timestep_seconds': config.timestep,
420
+ 'valid': False, 'success': False, 'reason': 'not_started', 'error': None, 'warnings': [],
421
+ 'simulated_seconds': 0., 'trajectory': [], 'actions': [], 'arm_tape': [], 'metrics': {}, 'timing': {},
422
+ 'contract': task_contract(), 'platform': {'system': platform.system(), 'machine': platform.machine(), 'python': platform.python_version()}}
423
+ source = Path(__file__).parent
424
+ result['implementation_sha256'] = {name: sha256((source/name).read_bytes()).hexdigest()
425
+ for name in ('piper_task.py', 'robot_profiles.py', 'robot_profiles.lock.json', 'reference_task.py', 'reference_sim.py')}
426
+ result['policy_implementation_sha256'] = {'piper_grip_guard.py': sha256((source/'piper_grip_guard.py').read_bytes()).hexdigest()}
427
+ reacquisition_mode = policy_mode in ('reacquire', 'reacquire_grasp')
428
+ grasp_mode = policy_mode == 'reacquire_grasp'
429
+ recovery_mode = policy_mode in contact_recovery.MODES or reacquisition_mode
430
+ memory_mode = policy_mode in ('probe_only', 'history') or recovery_mode
431
+ if memory_mode:
432
+ result['policy_implementation_sha256']['piper_contact_memory.py'] = sha256((source/'piper_contact_memory.py').read_bytes()).hexdigest()
433
+ if recovery_mode:
434
+ result['policy_implementation_sha256']['piper_contact_recovery.py'] = sha256((source/'piper_contact_recovery.py').read_bytes()).hexdigest()
435
+ if reacquisition_mode:
436
+ result['policy_implementation_sha256']['piper_reacquisition.py'] = sha256((source/'piper_reacquisition.py').read_bytes()).hexdigest()
437
+ if grasp_mode:
438
+ result['policy_implementation_sha256']['piper_grasp_strategy.py'] = sha256((source/'piper_grasp_strategy.py').read_bytes()).hexdigest()
439
+ result['grip_guard'] = (grasp_strategy.inactive_summary(policy_mode) if grasp_mode else
440
+ reacquisition.inactive_summary(policy_mode) if reacquisition_mode else
441
+ contact_recovery.inactive_summary(policy_mode) if recovery_mode else
442
+ contact_memory.inactive_summary(policy_mode) if memory_mode else grip_guard.inactive_summary(policy_mode))
443
+ policy = None
444
+ try:
445
+ if control == 'replay_open_jaw':
446
+ if type(arm_tape) is not list or len(arm_tape) != round(config.timeout_s/config.control_dt):
447
+ raise ValueError('Open-jaw control requires a complete exact-duration arm tape')
448
+ arm_tape = [list(_vector(row, 6, 'arm replay')) for row in arm_tape]
449
+ phase = 'setup'
450
+ result['asset_provenance'] = robot_profiles.verify_assets('piper', _asset_root(assets))
451
+ environment = PiperTaskEnv(assets, config)
452
+ observation, info = environment.reset(seed)
453
+ if record_policy_inputs:
454
+ observation['native_lift_seen'] = bool(environment.lift_seen)
455
+ mj, np = sim._native_imports()
456
+ result['platform'].update(mujoco_version=mj.__version__, numpy_version=np.__version__)
457
+ result['compiled_model_sha256'] = sim.model_digest(environment.model)
458
+ result['initial_object_position_m'] = environment.initial_object_position.tolist()
459
+ result['native_servo_gains'] = environment.model.actuator_gainprm[:, 0].tolist()
460
+ result['native_servo_bias'] = environment.model.actuator_biasprm[:, :3].tolist()
461
+ result['native_force_limits'] = environment.model.actuator_forcerange.tolist()
462
+ result['native_control_limits'] = environment.model.actuator_ctrlrange.tolist()
463
+ result['native_model_settings'] = {'dimensions': {name: int(getattr(environment.model, name)) for name in ('nq', 'nv', 'nu', 'neq', 'nmocap')},
464
+ 'gravity_m_s2': environment.model.opt.gravity.tolist(),
465
+ 'body_gravcomp': environment.model.body_gravcomp.tolist()}
466
+ result['contact_geometry'] = {'pad_geom_ids': environment.pad_geoms,
467
+ 'geom_body_names': [mj.mj_id2name(environment.model, mj.mjtObj.mjOBJ_BODY, int(body)) for body in environment.model.geom_bodyid]}
468
+ result['trajectory'].append(observation)
469
+ result['timing']['setup_seconds'] = time.perf_counter()-started
470
+ policy = (grasp_strategy.GraspReacquisitionPiperTaskPolicy(environment, policy_mode) if grasp_mode and control == 'placement'
471
+ else reacquisition.ReacquisitionPiperTaskPolicy(environment, policy_mode) if reacquisition_mode and control == 'placement'
472
+ else contact_recovery.ContactRecoveryPiperTaskPolicy(environment, policy_mode) if recovery_mode and control == 'placement'
473
+ else contact_memory.ContactMemoryPiperTaskPolicy(environment, policy_mode) if memory_mode and control == 'placement'
474
+ else grip_guard.GuardedPiperTaskPolicy(environment) if policy_mode == 'guarded' and control == 'placement'
475
+ else PiperTaskPolicy(environment))
476
+ hold, phase = observation['joint_position_rad'], 'rollout'
477
+ for index in range(round(config.timeout_s/config.control_dt)):
478
+ began = time.perf_counter()
479
+ action = policy(observation) if control == 'placement' else {'joint_targets_rad': hold if control == 'hold' else arm_tape[index], 'gripper_position_m': .035}
480
+ if isinstance(policy, grip_guard.GuardedPiperTaskPolicy):
481
+ observation['guard_diagnostic'] = dict(policy.diagnostic)
482
+ record = {'t_seconds': observation['t_seconds'], **action, 'phase': policy.issued_phase if control == 'placement' else control}
483
+ result['actions'].append(record)
484
+ result['arm_tape'].append(list(action['joint_targets_rad']))
485
+ observation.update(issued_joint_targets_rad=list(action['joint_targets_rad']), issued_gripper_position_m=action['gripper_position_m'], command=record)
486
+ observation, info = environment.step(action)
487
+ latencies.append(time.perf_counter()-began)
488
+ if observation is not None:
489
+ if record_policy_inputs:
490
+ observation['native_lift_seen'] = bool(environment.lift_seen)
491
+ if isinstance(policy, grip_guard.GuardedPiperTaskPolicy):
492
+ observation['guard_diagnostic'] = None
493
+ result['trajectory'].append(observation)
494
+ if environment.done:
495
+ break
496
+ result.update(valid=info['valid'], success=info['success'], reason=info['reason'], warnings=info['warnings'],
497
+ simulated_seconds=info['simulation_time'], metrics={**info, 'contact_pair_native_ticks': environment.contact_pair_native_ticks})
498
+ except Exception as exc:
499
+ result['reason'], result['error'] = 'exception', {'phase': phase, 'type': type(exc).__name__, 'message': str(exc)[:500]}
500
+ if environment is not None:
501
+ result['warnings'] = list(getattr(environment, 'warnings', []))
502
+ result['simulated_seconds'] = getattr(environment, 'elapsed', 0.)
503
+ if isinstance(policy, grip_guard.GuardedPiperTaskPolicy):
504
+ result['grip_guard'] = policy.summary()
505
+ elapsed = time.perf_counter()-started
506
+ result['timing'].update(episode_wall_seconds=elapsed, control_step_seconds=sim._summary(latencies) if latencies else None,
507
+ control_boundaries=len(latencies), missed_control_boundaries=sum(x > config.control_dt for x in latencies),
508
+ simulated_seconds_per_wall_second=result['simulated_seconds']/elapsed,
509
+ scope='Wall computation including setup/IK/contact/state snapshots; not real-time sensor-to-actuator latency')
510
+ if record_step_timings:
511
+ result['timing']['control_step_samples_seconds'] = list(latencies)
512
+ return result
513
+
514
+
515
+ def run_matched(assets, config=None, *, seed=0, policy_mode='baseline'):
516
+ config = _config(config)
517
+ placement = run_episode(assets, config, seed=seed, policy_mode=policy_mode)
518
+ tape = placement['arm_tape'] if placement['valid'] and len(placement['arm_tape']) == round(config.timeout_s/config.control_dt) else None
519
+ return [placement, run_episode(assets, config, seed=seed, control='replay_open_jaw', arm_tape=tape, policy_mode=policy_mode),
520
+ run_episode(assets, config, seed=seed, control='hold', policy_mode=policy_mode)]
sources/pyproject.toml.txt ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "dvidia-training"
7
+ version = "0.1.0"
8
+ description = "Local CPU training from Skillspace footage, with optional simulation movement candidates"
9
+ readme = "README.md"
10
+ license = "MIT AND Apache-2.0"
11
+ license-files = ["LICENSE", "third_party/observation-models/*LICENSE.txt", "third_party/mujoco/*.txt", "third_party/robot-models/*LICENSE.txt"]
12
+ requires-python = ">=3.12"
13
+ dependencies = ["numpy==2.5.3"]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Programming Language :: Python :: 3",
17
+ "Operating System :: OS Independent",
18
+ ]
19
+
20
+ [project.optional-dependencies]
21
+ arm = ["mujoco==3.15.0"]
22
+ observations = ["opencv-python==5.0.0.93"]
23
+
24
+ [project.urls]
25
+ Homepage = "https://research.dvidia.org/papers/skillspace-footage-training/"
26
+ Repository = "https://github.com/Dvidia-Inference/dvidia-training"
27
+ Issues = "https://github.com/Dvidia-Inference/dvidia-training/issues"
28
+
29
+ [project.scripts]
30
+ dvidia-train = "dvidia_training.footage_pipeline:main"
31
+ dvidia-training-studio = "dvidia_training.training_studio:main"
32
+ dvidia-training-doctor = "dvidia_training.doctor:main"
33
+ dvidia-training-benchmark = "dvidia_training.footage_benchmark:main"
34
+ dvidia-skill-capsule = "dvidia_training.arm_entrypoints:capsule_main"
35
+ dvidia-skillspace-coverage = "dvidia_training.coverage:main"
36
+ dvidia-episode-tape = "dvidia_training.episode_tape:main"
37
+ dvidia-reaction = "dvidia_training.reaction_benchmark:main"
38
+ dvidia-motor-memory = "dvidia_training.motor_benchmark:main"
39
+ dvidia-observe = "dvidia_training.observation_pipeline:main"
40
+ dvidia-observation-studio = "dvidia_training.observation_studio:main"
41
+ dvidia-motion = "dvidia_training.motion_cli:main"
42
+ dvidia-transition = "dvidia_training.transition_cli:main"
43
+ dvidia-embodiment = "dvidia_training.embodiment_cli:main"
44
+ dvidia-reference-task = "dvidia_training.reference_task_benchmark:main"
45
+ dvidia-robot-sim = "dvidia_training.robot_profiles:main"
46
+ dvidia-piper-task = "dvidia_training.piper_task_benchmark:main"
47
+ dvidia-piper-grip = "dvidia_training.piper_grip_benchmark:main"
48
+ dvidia-piper-contact = "dvidia_training.piper_contact_benchmark:main"
49
+ dvidia-piper-recovery = "dvidia_training.piper_recovery_benchmark:main"
50
+ dvidia-piper-reliability = "dvidia_training.piper_reliability_benchmark:main"
51
+ dvidia-assets = "dvidia_training.asset_cli:main"
52
+ dvidia-workstation = "dvidia_training.workstation:main"
53
+ dvidia-workstation-benchmark = "dvidia_training.workstation_benchmark:main"
54
+ dvidia-image-goal = "dvidia_training.image_goal_benchmark:main"
55
+ dvidia-local-goal = "dvidia_training.local_goal_benchmark:main"
56
+ dvidia-sensor-goal = "dvidia_training.sensor_goal_benchmark:main"
57
+ dvidia-prerequisites = "dvidia_training.prerequisite_benchmark:main"
58
+ dvidia-grip-benchmark = "dvidia_training.grip_benchmark:main"
59
+ dvidia-graspability-benchmark = "dvidia_training.graspability_benchmark:main"
60
+ dvidia-video-skill = "dvidia_training.video_goal_install:main"
61
+ dvidia-skill-studio = "dvidia_training.video_goal_studio:main"
62
+ dvidia-skillspace = "dvidia_training.skillspace_video:main"
63
+ dvidia-piper-imitation = "dvidia_training.piper_imitation_benchmark:main"
64
+ dvidia-piper-learned = "dvidia_training.piper_learned_skill:main"
65
+ dvidia-piper-confirm = "dvidia_training.piper_imitation_driver:main"
66
+
67
+ [tool.setuptools.packages.find]
68
+ where = ["src"]
69
+
70
+ [tool.setuptools.package-data]
71
+ dvidia_training = ["*.html", "*.json", "*.js", "*.txt", "*.wasm", "video_goal_example.mp4", "LICENSE", "requirements.lock.txt"]
sources/reference_replay.py ADDED
@@ -0,0 +1,437 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Offline 3D replay of a sealed native reference receipt, without physics stepping.
2
+
3
+ Compiled mesh vertices and corrected geom transforms are exported together.
4
+ All body poses come from recorded qpos followed by mj_forward; a failed receipt
5
+ compatibility or position check aborts before reserving an output directory.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ from hashlib import sha256
10
+ import gzip
11
+ import json
12
+ import math
13
+ from pathlib import Path
14
+ import re
15
+ import stat
16
+
17
+ from . import reference_sim as sim
18
+
19
+
20
+ SCOPE = ("Recorded authored simulation from the frozen reference receipt. "
21
+ "Native mesh geometry and recorded joint/linkage positions, reconstructed with mj_forward only. "
22
+ "No live physics, robot control, task policy, physical accuracy or new speed measurement.")
23
+ MAX_RECEIPT_BYTES = 16 * 1024 * 1024
24
+ MAX_BINARY_BYTES = 64 * 1024 * 1024
25
+ POSITION_TOLERANCE_M = 1e-9
26
+ ROTATION_TOLERANCE = 1e-10
27
+ MIT_LICENSE = """MIT License
28
+
29
+ Copyright (c) 2026 DVIDIA contributors
30
+
31
+ Permission is hereby granted, free of charge, to any person obtaining a copy
32
+ of this software and associated documentation files (the "Software"), to deal
33
+ in the Software without restriction, including without limitation the rights
34
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35
+ copies of the Software, and to permit persons to whom the Software is
36
+ furnished to do so, subject to the following conditions:
37
+
38
+ The above copyright notice and this permission notice shall be included in all
39
+ copies or substantial portions of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
47
+ SOFTWARE.
48
+ """
49
+
50
+
51
+ def _unique(pairs):
52
+ value = {}
53
+ for key, item in pairs:
54
+ if key in value:
55
+ raise ValueError("Duplicate replay input key")
56
+ value[key] = item
57
+ return value
58
+
59
+
60
+ def _decode(data):
61
+ def nonfinite(_):
62
+ raise ValueError("Nonfinite replay input")
63
+ try:
64
+ value = json.loads(data.decode("utf-8"), object_pairs_hook=_unique, parse_constant=nonfinite)
65
+ json.dumps(value, allow_nan=False)
66
+ return value
67
+ except (ValueError, UnicodeError, RecursionError) as exc:
68
+ raise ValueError("Replay requires finite UTF-8 JSON with unique keys") from exc
69
+
70
+
71
+ def _read(path, limit):
72
+ path = Path(path)
73
+ before = path.lstat()
74
+ size = before.st_size
75
+ if not stat.S_ISREG(before.st_mode) or size > limit:
76
+ raise ValueError("Replay input must be a bounded regular non-symlink file")
77
+ content = sim._regular_bytes(path, size)
78
+ if len(content) > limit:
79
+ raise ValueError("Replay input exceeds its size bound")
80
+ return content
81
+
82
+
83
+ def _receipt(bundle):
84
+ # Preserve the original public inspector's integrity contract first.
85
+ from .embodiment_cli import inspect_bundle
86
+ inspect_bundle(bundle)
87
+ root = Path(bundle)
88
+ files = {name: _read(root / name, 4096 if name == "integrity.json" else MAX_RECEIPT_BYTES)
89
+ for name in ("report.json", "report.html", "integrity.json")}
90
+ manifest = _decode(files["integrity.json"])
91
+ if (type(manifest) is not dict or set(manifest) != {"schema", "files"}
92
+ or manifest["schema"] != "dvidia.reference-integrity/v1"
93
+ or type(manifest["files"]) is not dict
94
+ or set(manifest["files"]) != {"report.json", "report.html"}):
95
+ raise ValueError("Replay receipt integrity contract changed during reading")
96
+ for name in ("report.json", "report.html"):
97
+ expected = manifest["files"][name]
98
+ if (type(expected) is not dict or set(expected) != {"bytes", "sha256"}
99
+ or type(expected["bytes"]) is not int or expected["bytes"] != len(files[name])
100
+ or expected["sha256"] != sha256(files[name]).hexdigest()):
101
+ raise ValueError("Replay receipt changed during reading")
102
+ return _decode(files["report.json"]), files
103
+
104
+
105
+ def _number(value, description):
106
+ if isinstance(value, bool) or not isinstance(value, (int, float)):
107
+ raise ValueError(f"Replay {description} must be finite numeric data")
108
+ try:
109
+ converted = float(value)
110
+ except (OverflowError, TypeError, ValueError) as exc:
111
+ raise ValueError(f"Replay {description} must be finite numeric data") from exc
112
+ if not math.isfinite(converted):
113
+ raise ValueError(f"Replay {description} must be finite numeric data")
114
+ return converted
115
+
116
+
117
+ def _vector(value, length, description):
118
+ if type(value) is not list or len(value) != length:
119
+ raise ValueError(f"Replay {description} must have {length} values")
120
+ return [_number(item, description) for item in value]
121
+
122
+
123
+ def _digest(value, description):
124
+ if type(value) is not str or re.fullmatch(r"[0-9a-f]{64}", value) is None:
125
+ raise ValueError(f"Replay {description} must be a SHA256 digest")
126
+ return value
127
+
128
+
129
+ def _validate_report(report, assets):
130
+ if (type(report) is not dict or report.get("schema") != "dvidia.reference-benchmark/v1"
131
+ or report.get("profile") != sim.PROFILE or report.get("physical_robot_ready") is not False
132
+ or report.get("task_success_evaluated") is not False):
133
+ raise ValueError("Replay requires the simulation-only pinned reference profile")
134
+ if type(report.get("hardware")) is not dict or report["hardware"].get("mujoco") != "3.15.0":
135
+ raise ValueError("Replay receipt requires MuJoCo 3.15.0")
136
+ audit = report.get("audit")
137
+ if type(audit) is not dict or audit.get("profile") != sim.PROFILE:
138
+ raise ValueError("Replay audit profile mismatch")
139
+ provenance = audit.get("asset_provenance")
140
+ if (type(provenance) is not dict or provenance.get("commit") != assets["commit"]
141
+ or provenance.get("lock_sha256") != assets["lock_sha256"]):
142
+ raise ValueError("Replay asset commit or lock mismatch")
143
+ inventory = audit.get("inventory")
144
+ if (type(inventory) is not dict or inventory.get("joint_coordinates_nq") != 14
145
+ or inventory.get("velocity_dofs_nv") != 14 or inventory.get("actuator_count") != 7):
146
+ raise ValueError("Replay receipt mechanical contract mismatch")
147
+ joints = inventory.get("joints")
148
+ if type(joints) is not list or len(joints) != 14:
149
+ raise ValueError("Replay receipt joint inventory mismatch")
150
+ for address, joint in enumerate(joints):
151
+ if (type(joint) is not dict or type(joint.get("qpos_address")) is not int
152
+ or joint["qpos_address"] != address or joint.get("type") != 3
153
+ or type(joint.get("name")) is not str):
154
+ raise ValueError("Replay receipt joint coordinate ordering mismatch")
155
+ if tuple(item["name"] for item in joints[:6]) != sim.ARM_JOINTS:
156
+ raise ValueError("Replay arm joint names mismatch")
157
+ protocol = report.get("protocol")
158
+ if (type(protocol) is not dict or protocol.get("cases") != list(sim.CASES)
159
+ or protocol.get("timesteps_seconds") != [.002, .001, .0005]
160
+ or type(protocol.get("repeats")) is not int or not 1 <= protocol["repeats"] <= 5
161
+ or _number(protocol.get("control_dt_seconds"), "control period") != sim.CONTROL_DT):
162
+ raise ValueError("Replay receipt protocol mismatch")
163
+ seconds = sim.validate_duration(_number(protocol.get("seconds_per_case"), "duration"))
164
+ attempts = report.get("attempts")
165
+ expected_count = len(sim.CASES) * 3 * protocol["repeats"]
166
+ if (type(attempts) is not list or len(attempts) != expected_count
167
+ or type(report.get("attempted")) is not int or report["attempted"] != expected_count
168
+ or type(report.get("valid_attempts")) is not int):
169
+ raise ValueError("Replay attempt framing mismatch")
170
+ selected, seen, valid_count = [], set(), 0
171
+ for attempt in attempts:
172
+ if (type(attempt) is not dict or attempt.get("case") not in sim.CASES
173
+ or type(attempt.get("repeat")) is not int or not 0 <= attempt["repeat"] < protocol["repeats"]
174
+ or type(attempt.get("valid")) is not bool):
175
+ raise ValueError("Replay attempt declaration mismatch")
176
+ timestep = sim._timestep(attempt.get("timestep_seconds"))
177
+ identity = (attempt["case"], timestep, attempt["repeat"])
178
+ if identity in seen:
179
+ raise ValueError("Duplicate replay case/timestep/repeat")
180
+ seen.add(identity)
181
+ valid_count += attempt["valid"]
182
+ if not attempt["valid"] or attempt["repeat"] != 0:
183
+ continue
184
+ if (_number(attempt.get("control_dt_seconds"), "control period") != sim.CONTROL_DT
185
+ or _number(attempt.get("simulated_seconds"), "duration") != seconds
186
+ or attempt.get("warnings") != [] or attempt.get("nonfinite_trajectory_omitted") is not False):
187
+ raise ValueError("Replay valid trajectory protocol mismatch")
188
+ _digest(attempt.get("compiled_model_sha256"), "compiled model")
189
+ rows = attempt.get("trajectory")
190
+ frame_count = round(seconds / sim.CONTROL_DT) + 1
191
+ if type(rows) is not list or len(rows) != frame_count or frame_count > 501:
192
+ raise ValueError("Replay trajectory frame count mismatch")
193
+ for frame, row in enumerate(rows):
194
+ if type(row) is not dict:
195
+ raise ValueError("Replay trajectory row must be an object")
196
+ if not math.isclose(_number(row.get("t_seconds"), "frame time"), frame * sim.CONTROL_DT,
197
+ abs_tol=1e-9, rel_tol=0):
198
+ raise ValueError("Replay timestamps must match ordered 20 ms boundaries")
199
+ for field, length in (("joint_position_rad", 6), ("joint_velocity_rad_s", 6),
200
+ ("issued_joint_targets_rad", 6), ("linkage_position_rad", 8),
201
+ ("tcp_position_m", 3), ("tcp_quaternion_wxyz", 4)):
202
+ _vector(row.get(field), length, field)
203
+ quat = row["tcp_quaternion_wxyz"]
204
+ if not math.isclose(sum(x * x for x in quat), 1., abs_tol=1e-8, rel_tol=0):
205
+ raise ValueError("Replay TCP quaternion must be normalized")
206
+ for field, length in (("arm_points_m", 8), ("pad_centers_m", 2)):
207
+ if type(row.get(field)) is not list or len(row[field]) != length:
208
+ raise ValueError(f"Replay {field} framing mismatch")
209
+ for vector in row[field]:
210
+ _vector(vector, 3, field)
211
+ if _number(row.get("pad_center_separation_m"), "pad separation") < 0:
212
+ raise ValueError("Replay pad separation cannot be negative")
213
+ if not 0 <= _number(row.get("issued_gripper_0_255"), "gripper command") <= 255:
214
+ raise ValueError("Replay gripper command out of range")
215
+ if type(row.get("contact_count")) is not int or not 0 <= row["contact_count"] <= 1024:
216
+ raise ValueError("Replay contact count must be a bounded integer")
217
+ selected.append(attempt)
218
+ if valid_count != report["valid_attempts"] or not selected:
219
+ raise ValueError("Replay valid attempt count mismatch or no valid repeat zero")
220
+ return selected, joints
221
+
222
+
223
+ def _scene(model, source):
224
+ mj, np = sim._native_imports()
225
+ if not 1 <= model.nbody <= 128 or not 1 <= model.ngeom <= 512 or not 0 <= model.nmesh <= 128:
226
+ raise ValueError("Replay model inventory exceeds bounds")
227
+ if model.nmeshvert > 2_000_000 or model.nmeshface > 2_000_000:
228
+ raise ValueError("Replay mesh inventory exceeds bounds")
229
+ geometry = bytearray()
230
+ meshes = []
231
+ for index in range(model.nmesh):
232
+ vertex_start, vertex_count = int(model.mesh_vertadr[index]), int(model.mesh_vertnum[index])
233
+ face_start, face_count = int(model.mesh_faceadr[index]), int(model.mesh_facenum[index])
234
+ vertices = np.asarray(model.mesh_vert[vertex_start:vertex_start + vertex_count], dtype="<f4")
235
+ faces = np.asarray(model.mesh_face[face_start:face_start + face_count], dtype="<u4")
236
+ if not np.isfinite(vertices).all() or faces.size and int(faces.max()) >= vertex_count:
237
+ raise ValueError("Replay compiled mesh contains invalid coordinates or indices")
238
+ # Merge only identical 12-byte xyz triples. This preserves every triangle
239
+ # position exactly, including signed zero, without mesh simplification.
240
+ triples = np.frombuffer(vertices.tobytes(order="C"), dtype="V12")
241
+ unique, inverse = np.unique(triples, return_inverse=True)
242
+ vertices = np.frombuffer(unique.tobytes(), dtype="<f4").reshape(-1, 3)
243
+ faces = np.asarray(inverse[faces], dtype="<u4")
244
+ position_offset = len(geometry)
245
+ geometry.extend(vertices.tobytes(order="C"))
246
+ index_offset = len(geometry)
247
+ geometry.extend(faces.tobytes(order="C"))
248
+ meshes.append({"id": index, "position_byte_offset": position_offset, "vertex_count": len(vertices),
249
+ "native_vertex_count": vertex_count,
250
+ "index_byte_offset": index_offset, "index_count": face_count * 3})
251
+ types = {int(mj.mjtGeom.mjGEOM_MESH): "mesh", int(mj.mjtGeom.mjGEOM_BOX): "box",
252
+ int(mj.mjtGeom.mjGEOM_SPHERE): "sphere", int(mj.mjtGeom.mjGEOM_CAPSULE): "capsule",
253
+ int(mj.mjtGeom.mjGEOM_CYLINDER): "cylinder", int(mj.mjtGeom.mjGEOM_PLANE): "plane"}
254
+ geoms = []
255
+ for index in range(model.ngeom):
256
+ kind = types.get(int(model.geom_type[index]))
257
+ if kind is None:
258
+ raise ValueError("Replay model contains an unsupported geom type")
259
+ rgba = model.geom_rgba[index]
260
+ material = int(model.geom_matid[index])
261
+ # Native rendering uses material rgba when the geom has its default rgba.
262
+ if material >= 0 and np.array_equal(rgba, np.asarray([.5, .5, .5, 1], dtype=np.float32)):
263
+ rgba = model.mat_rgba[material]
264
+ body = int(model.geom_bodyid[index])
265
+ position, quaternion = model.geom_pos[index], model.geom_quat[index]
266
+ sameframe = int(model.geom_sameframe[index])
267
+ # MuJoCo's compiled same-frame optimization may replace a near-identical
268
+ # local geom transform with the exact body/inertial transform. Honor it
269
+ # rather than rendering the unoptimized, subtly different geom arrays.
270
+ if sameframe == int(mj.mjtSameFrame.mjSAMEFRAME_BODY):
271
+ position, quaternion = np.zeros(3), np.asarray([1., 0., 0., 0.])
272
+ elif sameframe == int(mj.mjtSameFrame.mjSAMEFRAME_INERTIA):
273
+ position, quaternion = model.body_ipos[body], model.body_iquat[body]
274
+ elif sameframe == int(mj.mjtSameFrame.mjSAMEFRAME_BODYROT):
275
+ quaternion = np.asarray([1., 0., 0., 0.])
276
+ elif sameframe == int(mj.mjtSameFrame.mjSAMEFRAME_INERTIAROT):
277
+ quaternion = model.body_iquat[body]
278
+ geoms.append({"geom_id": index, "name": sim._name(model, mj.mjtObj.mjOBJ_GEOM, index),
279
+ "body_id": body, "type": kind,
280
+ "group": int(model.geom_group[index]),
281
+ "size": model.geom_size[index].tolist(), "position": position.tolist(),
282
+ "quaternion_wxyz": quaternion.tolist(), "rgba": rgba.tolist(),
283
+ "mesh_id": int(model.geom_dataid[index]) if kind == "mesh" else None,
284
+ "collision": bool(model.geom_contype[index] or model.geom_conaffinity[index])})
285
+ if len(geometry) > MAX_BINARY_BYTES:
286
+ raise ValueError("Replay geometry binary exceeds bounds")
287
+ return {"schema": "dvidia.reference-replay-scene/v1", "meshes": meshes, "geoms": geoms,
288
+ "bodies": [{"id": i, "name": sim._name(model, mj.mjtObj.mjOBJ_BODY, i)} for i in range(model.nbody)],
289
+ "joints": [{"name": sim._name(model, mj.mjtObj.mjOBJ_JOINT, i), "range": model.jnt_range[i].tolist()}
290
+ for i in range(model.njnt)], "source": source, "scope": SCOPE}, bytes(geometry)
291
+
292
+
293
+ def _poses(model, attempt, receipt_joints, residuals):
294
+ mj, np = sim._native_imports()
295
+ if model.nq != 14 or model.nv != 14 or model.nu != 7 or model.njnt != 14:
296
+ raise ValueError("Replay compiled mechanical contract mismatch")
297
+ for address, record in enumerate(receipt_joints):
298
+ joint = mj.mj_name2id(model, mj.mjtObj.mjOBJ_JOINT, record["name"])
299
+ if joint < 0 or int(model.jnt_qposadr[joint]) != address:
300
+ raise ValueError("Replay compiled linkage coordinate ordering mismatch")
301
+ data = mj.MjData(model)
302
+ frames = []
303
+ for row in attempt["trajectory"]:
304
+ data.qpos[:] = row["joint_position_rad"] + row["linkage_position_rad"]
305
+ # qvel/ctrl do not change geometry; preserve them for native forward diagnostics.
306
+ data.qvel[:6] = row["joint_velocity_rad_s"]
307
+ data.ctrl[:] = row["issued_joint_targets_rad"] + [row["issued_gripper_0_255"]]
308
+ mj.mj_forward(model, data)
309
+ observed = sim._sample(model, data, row["t_seconds"], data.ctrl)
310
+ for field in ("tcp_position_m", "arm_points_m", "pad_centers_m"):
311
+ delta = float(np.max(np.abs(np.asarray(observed[field]) - row[field])))
312
+ residuals[field] = max(residuals[field], delta)
313
+ if delta > POSITION_TOLERANCE_M:
314
+ raise ValueError(f"Replay reconstructed {field} does not match the frozen receipt")
315
+ delta = abs(observed["pad_center_separation_m"] - row["pad_center_separation_m"])
316
+ residuals["pad_center_separation_m"] = max(residuals["pad_center_separation_m"], delta)
317
+ if delta > POSITION_TOLERANCE_M:
318
+ raise ValueError("Replay reconstructed pad separation does not match the frozen receipt")
319
+ # Quaternion sign is arbitrary; compare both equivalent representations.
320
+ current, recorded = np.asarray(observed["tcp_quaternion_wxyz"]), np.asarray(row["tcp_quaternion_wxyz"])
321
+ delta = float(min(np.max(np.abs(current - recorded)), np.max(np.abs(current + recorded))))
322
+ residuals["tcp_quaternion_wxyz"] = max(residuals["tcp_quaternion_wxyz"], delta)
323
+ if delta > ROTATION_TOLERANCE:
324
+ raise ValueError("Replay reconstructed TCP rotation does not match the frozen receipt")
325
+ pose = np.concatenate((data.xpos, data.xquat), axis=1)
326
+ if not np.isfinite(pose).all():
327
+ raise ValueError("Replay reconstructed a nonfinite body pose")
328
+ frames.append(pose)
329
+ return np.asarray(frames, dtype="<f4").tobytes(order="C")
330
+
331
+
332
+ def _json_bytes(value):
333
+ return (json.dumps(value, separators=(",", ":"), ensure_ascii=False, allow_nan=False) + "\n").encode("utf-8")
334
+
335
+
336
+ def export_replay(assets, bundle, output):
337
+ """Export an offline native-mesh replay into a fresh directory.
338
+
339
+ This verifies artifact consistency, pinned assets, compiled models and each
340
+ recorded pose. Neither the receipt nor these checks establish authenticity
341
+ or physical accuracy. Native physics is never stepped.
342
+ """
343
+ report, receipt_files = _receipt(bundle)
344
+ provenance, blobs = sim._asset_payload(assets)
345
+ attempts, receipt_joints = _validate_report(report, provenance)
346
+ source = {"profile": sim.PROFILE, "asset_commit": sim.COMMIT,
347
+ "asset_lock_sha256": provenance["lock_sha256"], "report_sha256": sha256(receipt_files["report.json"]).hexdigest(),
348
+ "report_href": "receipt/report.html", "receipt_href": "receipt/report.json",
349
+ "exporter_sha256": sha256(Path(__file__).read_bytes()).hexdigest(),
350
+ "mujoco": "3.15.0", "compiled_model_sha256": {},
351
+ "asset_licenses": provenance["licenses"]}
352
+ models, scene, geometry = {}, None, None
353
+ residuals = {name: 0. for name in ("tcp_position_m", "arm_points_m", "pad_centers_m",
354
+ "pad_center_separation_m", "tcp_quaternion_wxyz")}
355
+ motion, cases, warnings = bytearray(), [], []
356
+ with sim.native_warnings(warnings):
357
+ for attempt in attempts:
358
+ timestep = attempt["timestep_seconds"]
359
+ if timestep not in models:
360
+ models[timestep] = sim.build_model(assets, timestep=timestep)
361
+ model = models[timestep]
362
+ digest = sim.model_digest(model)
363
+ if digest != attempt["compiled_model_sha256"]:
364
+ raise ValueError("Replay compiled model digest differs from the frozen receipt")
365
+ source["compiled_model_sha256"][str(timestep)] = digest
366
+ candidate_scene, candidate_geometry = _scene(model, source)
367
+ if scene is None:
368
+ scene, geometry = candidate_scene, candidate_geometry
369
+ elif (candidate_geometry != geometry or candidate_scene != scene):
370
+ raise ValueError("Replay model geometry differs across recorded timesteps")
371
+ offset = len(motion)
372
+ motion.extend(_poses(model, attempt, receipt_joints, residuals))
373
+ if len(motion) > MAX_BINARY_BYTES:
374
+ raise ValueError("Replay motion binary exceeds bounds")
375
+ fields = ("t_seconds", "joint_position_rad", "issued_joint_targets_rad", "linkage_position_rad",
376
+ "issued_gripper_0_255", "contact_count", "tcp_position_m", "tcp_quaternion_wxyz",
377
+ "pad_center_separation_m")
378
+ cases.append({"name": attempt["case"], "timestep_seconds": timestep, "repeat": 0,
379
+ "frame_count": len(attempt["trajectory"]), "pose_byte_offset": offset,
380
+ "rows": [{key: row[key] for key in fields} for row in attempt["trajectory"]]})
381
+ if warnings:
382
+ raise ValueError("Replay native forward reconstruction emitted warnings")
383
+ body_count = len(scene["bodies"])
384
+ compressed_geometry = gzip.compress(geometry, mtime=0)
385
+ compressed_motion = gzip.compress(bytes(motion), mtime=0)
386
+ geometry_meta = {"href": "geometry.bin", "compressed_href": "geometry.bin.gz", "bytes": len(geometry),
387
+ "compressed_bytes": len(compressed_geometry), "compression": "gzip",
388
+ "vertex_deduplication": "Identical Float32 xyz bytes only; every triangle coordinate preserved"}
389
+ motion_binary_meta = {"href": "motion.bin", "compressed_href": "motion.bin.gz", "bytes": len(motion),
390
+ "compressed_bytes": len(compressed_motion), "compression": "gzip"}
391
+ scene["geometry_binary"] = geometry_meta
392
+ motion_meta = {"schema": "dvidia.reference-replay-motion/v1", "body_count": body_count,
393
+ "frame_stride_floats": body_count * 7, "arm_joint_names": list(sim.ARM_JOINTS),
394
+ "cases": cases, "source": source, "scope": SCOPE,
395
+ "motion_binary": motion_binary_meta,
396
+ "reconstruction_max_absolute_residual": residuals,
397
+ "binary_pose_precision": "little-endian Float32; positions meters and quaternions wxyz"}
398
+ files = {"scene.json": _json_bytes(scene), "geometry.bin": geometry,
399
+ "motion.json": _json_bytes(motion_meta), "motion.bin": bytes(motion),
400
+ "geometry.bin.gz": compressed_geometry, "motion.bin.gz": compressed_motion,
401
+ "LICENSE": MIT_LICENSE.encode("utf-8")}
402
+ root = Path(__file__).parent
403
+ for name in ("reference_replay.html", "reference_replay.bundle.js", "reference_replay.third-party.txt"):
404
+ destination = "index.html" if name.endswith(".html") else name
405
+ files[destination] = _read(root / name, 8 * 1024 * 1024)
406
+ for folder in ("universal_robots_ur5e", "robotiq_2f85"):
407
+ for name in ("LICENSE", "README.md"):
408
+ key = folder + "/" + name
409
+ if key not in blobs:
410
+ raise ValueError("Replay upstream license or README missing from pinned assets")
411
+ files["licenses/" + key] = blobs[key]
412
+ for name, content in receipt_files.items():
413
+ files["receipt/" + name] = content
414
+ files["README.md"] = ("# DVIDIA native reference replay\n\n" + SCOPE + "\n\n"
415
+ "Serve this directory with a local static HTTP server and open index.html. "
416
+ "All geometry, motion, viewer code, receipts and license notices are local. "
417
+ "Receipt hashes establish consistency, not authenticity. "
418
+ "The viewer uses Float32 body poses; receipt reconstruction checks used native Float64.\n\n"
419
+ "DVIDIA exporter/viewer code: MIT. UR5e model: BSD-3-Clause. "
420
+ "Robotiq 2F-85 model: BSD-2-Clause. Original model notices and READMEs "
421
+ "are under licenses/. Viewer dependencies are listed in reference_replay.third-party.txt.\n").encode("utf-8")
422
+ seal = {"schema": "dvidia.reference-replay-integrity/v1", "scope": "Artifact consistency only; not authenticity or physical qualification",
423
+ "files": {name: {"bytes": len(value), "sha256": sha256(value).hexdigest()} for name, value in files.items()}}
424
+ files["replay-integrity.json"] = _json_bytes(seal)
425
+ destination = Path(output)
426
+ destination.mkdir(parents=True, exist_ok=False)
427
+ for name, content in files.items():
428
+ path = destination / name
429
+ path.parent.mkdir(parents=True, exist_ok=True)
430
+ with path.open("xb") as stream:
431
+ stream.write(content)
432
+ return {"schema": "dvidia.reference-replay-export/v1", "output": str(destination),
433
+ "physical_robot_ready": False, "scope": SCOPE, "cases": len(cases),
434
+ "reconstructed_frames": sum(case["frame_count"] for case in cases), "body_count": body_count,
435
+ "reconstruction_max_absolute_residual": residuals, "bytes": sum(len(value) for value in files.values()),
436
+ "geometry_binary": geometry_meta, "motion_binary": motion_binary_meta,
437
+ "files": seal["files"]}
sources/reference_sim.py ADDED
@@ -0,0 +1,457 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Pinned hardware reference mechanics; no physical controller or skill policy.
2
+
3
+ Asset installation is an explicit network operation. All later work is local.
4
+ Imports of the optional native simulator are deferred until a model is requested.
5
+ """
6
+ from __future__ import annotations
7
+
8
+ from contextlib import contextmanager
9
+ from hashlib import sha256
10
+ import json
11
+ import math
12
+ import os
13
+ from pathlib import Path
14
+ import platform
15
+ import statistics
16
+ import stat
17
+ import time
18
+ from urllib.request import Request, urlopen
19
+
20
+
21
+ PROFILE = "ur5e-2f85-menagerie-reference-v0.1"
22
+ COMMIT = "0059d4335f8156206f63a35662313385f7ad6d74"
23
+ ARM_JOINTS = ("shoulder_pan_joint", "shoulder_lift_joint", "elbow_joint",
24
+ "wrist_1_joint", "wrist_2_joint", "wrist_3_joint")
25
+ ARM_BODIES = ("shoulder_link", "upper_arm_link", "forearm_link",
26
+ "wrist_1_link", "wrist_2_link", "wrist_3_link")
27
+ CONTROL_DT = .02
28
+ CASES = ("hold_open", "arm_sweep", "jaw_cycle")
29
+ SCOPE = ("Pinned reference geometry, inertias, collision proxies and coupled gripper. "
30
+ "Authored native servos, privileged state and synthetic commands. "
31
+ "No serial-specific calibration, measured hardware response, task policy or physical qualification.")
32
+
33
+
34
+ def asset_lock():
35
+ return json.loads(Path(__file__).with_name("reference_assets.lock.json").read_text(encoding="utf-8"))
36
+
37
+
38
+ def _files(hands=False):
39
+ return [x for x in asset_lock()["files"] if hands or not x["path"].startswith("shadow_hand/")]
40
+
41
+
42
+ def _regular_bytes(path, size):
43
+ before = path.lstat()
44
+ if not stat.S_ISREG(before.st_mode):
45
+ raise ValueError(f"Expected a regular non-symlink asset: {path.name}")
46
+ if before.st_size != size:
47
+ raise ValueError(f"Asset size mismatch: {path.name}")
48
+ flags = os.O_RDONLY | getattr(os, "O_NONBLOCK", 0) | getattr(os, "O_NOFOLLOW", 0) | getattr(os, "O_BINARY", 0)
49
+ descriptor = os.open(path, flags)
50
+ with os.fdopen(descriptor, "rb") as stream:
51
+ opened = os.fstat(stream.fileno())
52
+ if not stat.S_ISREG(opened.st_mode) or opened.st_size != size:
53
+ raise ValueError("Asset must remain a bounded regular file during opening")
54
+ if before.st_ino and opened.st_ino and (before.st_dev, before.st_ino) != (opened.st_dev, opened.st_ino):
55
+ raise ValueError("Asset file identity changed during opening")
56
+ content = stream.read(size + 1)
57
+ if len(content) != size:
58
+ raise ValueError(f"Asset size mismatch: {path.name}")
59
+ return content
60
+
61
+
62
+ def _asset_payload(directory, *, hands=False):
63
+ root = Path(directory)
64
+ if root.is_symlink() or not root.is_dir():
65
+ raise ValueError("Asset root must be an existing non-symlink directory")
66
+ records = _files(hands)
67
+ blobs = {}
68
+ for record in records:
69
+ path = root / record["path"]
70
+ # Reject redirected subdirectories before allowing the native parser access.
71
+ if any(x.is_symlink() for x in (path.parent, path.parent.parent)):
72
+ raise ValueError("Asset subdirectories must not be symlinks")
73
+ content = _regular_bytes(path, record["bytes"])
74
+ if sha256(content).hexdigest() != record["sha256"]:
75
+ raise ValueError(f"Asset digest mismatch: {record['path']}")
76
+ blobs[record["path"]] = content
77
+ metadata = {"commit": COMMIT, "files_verified": len(records),
78
+ "bytes_verified": sum(x["bytes"] for x in records),
79
+ "lock_sha256": sha256(Path(__file__).with_name("reference_assets.lock.json").read_bytes()).hexdigest(),
80
+ "licenses": {k: v for k, v in asset_lock()["licenses"].items()
81
+ if hands or k != "shadow_hand"}}
82
+ return metadata, blobs
83
+
84
+
85
+ def verify_assets(directory, *, hands=False):
86
+ return _asset_payload(directory, hands=hands)[0]
87
+
88
+
89
+ def _spec(blobs, folder, filename):
90
+ mj, _ = _native_imports()
91
+ prefix = folder + "/"
92
+ local = {key[len(prefix):]: content for key, content in blobs.items() if key.startswith(prefix)}
93
+ # The native parser receives the exact verified bytes in memory. It does not
94
+ # reread model/mesh/include paths between verification and compilation.
95
+ return mj.MjSpec.from_string(local[filename].decode("utf-8"),
96
+ include={key: content for key, content in local.items() if key.endswith(".xml")},
97
+ assets={key: content for key, content in local.items() if key.startswith("assets/")})
98
+
99
+
100
+ def fetch_assets(directory, *, hands=False):
101
+ """Download only the packaged, pinned allowlist, retaining upstream licenses.
102
+
103
+ A failed download leaves an incomplete fresh directory for inspection; verify
104
+ rejects it. No credentials, account, dynamic manifest or arbitrary URL is used.
105
+ """
106
+ destination = Path(directory)
107
+ destination.mkdir(parents=True, exist_ok=False)
108
+ for record in _files(hands):
109
+ url = f"https://raw.githubusercontent.com/google-deepmind/mujoco_menagerie/{COMMIT}/{record['path']}"
110
+ request = Request(url, headers={"User-Agent": "DVIDIA-Reference-Simulator/0.1"})
111
+ with urlopen(request, timeout=30) as response:
112
+ if not response.geturl().startswith("https://raw.githubusercontent.com/"):
113
+ raise ValueError("Asset download redirected outside the pinned source host")
114
+ content = response.read(record["bytes"] + 1)
115
+ if len(content) != record["bytes"] or sha256(content).hexdigest() != record["sha256"]:
116
+ raise ValueError(f"Downloaded asset does not match the lock: {record['path']}")
117
+ path = destination / record["path"]
118
+ path.parent.mkdir(parents=True, exist_ok=True)
119
+ with path.open("xb") as stream:
120
+ stream.write(content)
121
+ return verify_assets(destination, hands=hands)
122
+
123
+
124
+ def _native_imports():
125
+ try:
126
+ import mujoco
127
+ import numpy as np
128
+ except ImportError as exc:
129
+ raise RuntimeError("Install dvidia-training with the optional arm extra") from exc
130
+ if mujoco.__version__ != "3.15.0":
131
+ raise RuntimeError("Reference simulation requires MuJoCo 3.15.0")
132
+ return mujoco, np
133
+
134
+
135
+ @contextmanager
136
+ def native_warnings(messages):
137
+ from .env import _NATIVE_LOCK
138
+ mj, _ = _native_imports()
139
+ with _NATIVE_LOCK:
140
+ previous = mj.get_mju_user_warning()
141
+ mj.set_mju_user_warning(lambda value: messages.append(str(value)))
142
+ try:
143
+ yield
144
+ finally:
145
+ mj.set_mju_user_warning(previous)
146
+
147
+
148
+ def _timestep(value):
149
+ if isinstance(value, bool) or not isinstance(value, (int, float)) or value not in (.002, .001, .0005):
150
+ raise ValueError("Reference timestep must be 0.002, 0.001 or 0.0005 seconds")
151
+ return float(value)
152
+
153
+
154
+ def validate_duration(seconds):
155
+ if isinstance(seconds, bool) or not isinstance(seconds, (int, float)) or not math.isfinite(seconds) or not .1 <= seconds <= 10:
156
+ raise ValueError("Reference duration must be finite, between 0.1 and 10 seconds")
157
+ if not math.isclose(seconds / CONTROL_DT, round(seconds / CONTROL_DT), rel_tol=0, abs_tol=1e-9):
158
+ raise ValueError("Duration must be an integer number of 20 ms boundaries")
159
+ return float(seconds)
160
+
161
+
162
+ def build_model(directory, *, timestep=.001, probe_position=None):
163
+ _, blobs = _asset_payload(directory)
164
+ mj, _ = _native_imports()
165
+ arm = _spec(blobs, "universal_robots_ur5e", "ur5e.xml")
166
+ jaw = _spec(blobs, "robotiq_2f85", "2f85.xml")
167
+ # Resolve child/parent option differences explicitly, preserving the jaw's
168
+ # elliptic contact cone and impratio; do not silently accept attach warnings.
169
+ arm.option.cone = jaw.option.cone
170
+ arm.option.impratio = jaw.option.impratio
171
+ arm.option.timestep = jaw.option.timestep = _timestep(timestep)
172
+ arm.option.integrator = jaw.option.integrator = mj.mjtIntegrator.mjINT_IMPLICITFAST
173
+ arm.attach(jaw, prefix="gripper/", site="attachment_site")
174
+ arm.worldbody.add_geom(name="reference_floor", type=mj.mjtGeom.mjGEOM_PLANE,
175
+ size=[2, 2, .1], rgba=[.9, .9, .88, 1])
176
+ if probe_position is not None:
177
+ if len(probe_position) != 3 or not all(math.isfinite(x) for x in probe_position):
178
+ raise ValueError("Probe requires three finite coordinates")
179
+ arm.worldbody.add_geom(name="collision_probe", type=mj.mjtGeom.mjGEOM_SPHERE,
180
+ pos=probe_position, size=[.025, 0, 0], rgba=[1, .4, .2, 1])
181
+ return arm.compile()
182
+
183
+
184
+ def model_digest(model):
185
+ mj, np = _native_imports()
186
+ buffer = np.empty(mj.mj_sizeModel(model), dtype=np.uint8)
187
+ mj.mj_saveModel(model, buffer=buffer)
188
+ return sha256(buffer.tobytes()).hexdigest()
189
+
190
+
191
+ def _name(model, kind, index):
192
+ mj, _ = _native_imports()
193
+ return mj.mj_id2name(model, kind, int(index)) or f"unnamed_{index}"
194
+
195
+
196
+ def model_inventory(model):
197
+ mj, np = _native_imports()
198
+ active = (model.geom_contype != 0) | (model.geom_conaffinity != 0)
199
+ bodies = []
200
+ for i in range(1, model.nbody):
201
+ geoms = np.flatnonzero(model.geom_bodyid == i)
202
+ bodies.append({"name": _name(model, mj.mjtObj.mjOBJ_BODY, i),
203
+ "mass_kg": float(model.body_mass[i]),
204
+ "inertia_kg_m2": model.body_inertia[i].tolist(),
205
+ "collision_geoms": int(np.count_nonzero(active[geoms])),
206
+ "visual_geoms": int(np.count_nonzero(~active[geoms]))})
207
+ joints = [{"name": _name(model, mj.mjtObj.mjOBJ_JOINT, i),
208
+ "type": int(model.jnt_type[i]), "limited": bool(model.jnt_limited[i]),
209
+ "range": model.jnt_range[i].tolist(),
210
+ "qpos_address": int(model.jnt_qposadr[i]), "velocity_address": int(model.jnt_dofadr[i])}
211
+ for i in range(model.njnt)]
212
+ actuators = []
213
+ for i in range(model.nu):
214
+ trn = int(model.actuator_trntype[i])
215
+ kind = mj.mjtObj.mjOBJ_TENDON if trn == int(mj.mjtTrn.mjTRN_TENDON) else mj.mjtObj.mjOBJ_JOINT
216
+ actuators.append({"name": _name(model, mj.mjtObj.mjOBJ_ACTUATOR, i),
217
+ "transmission_type": trn,
218
+ "target": _name(model, kind, model.actuator_trnid[i, 0]),
219
+ "control_range": model.actuator_ctrlrange[i].tolist(),
220
+ "control_limited": bool(model.actuator_ctrllimited[i]),
221
+ "native_force_range": model.actuator_forcerange[i].tolist(),
222
+ "force_limited": bool(model.actuator_forcelimited[i])})
223
+ return {"joint_coordinates_nq": model.nq, "velocity_dofs_nv": model.nv,
224
+ "joints": joints, "actuator_count": model.nu, "actuators": actuators,
225
+ "bodies": bodies, "equality_constraints": model.neq, "tendons": model.ntendon,
226
+ "contact_exclusions": model.nexclude, "native_sensor_definitions": model.nsensor,
227
+ "native_sensor_channels": model.nsensordata,
228
+ "collision_geom_count": int(np.count_nonzero(active)),
229
+ "visual_geom_count": int(np.count_nonzero(~active)),
230
+ "compiled_model_sha256": model_digest(model)}
231
+
232
+
233
+ def audit_reference(directory, *, hands=False):
234
+ provenance, blobs = _asset_payload(directory, hands=hands)
235
+ mj, _ = _native_imports()
236
+ warnings = []
237
+ with native_warnings(warnings):
238
+ model = build_model(directory)
239
+ inventory = model_inventory(model)
240
+ if model.nq != 14 or model.nu != 7 or model.neq != 3 or model.ntendon != 1:
241
+ raise ValueError("Pinned reference composition changed its mechanical contract")
242
+ by_name = {x["name"]: x for x in inventory["bodies"]}
243
+ coverage = {name: by_name[name]["collision_geoms"] for name in ARM_BODIES}
244
+ hand_models = {}
245
+ if hands:
246
+ for side in ("left", "right"):
247
+ hand = _spec(blobs, "shadow_hand", f"{side}_hand.xml").compile()
248
+ hand_models[side] = model_inventory(hand)
249
+ return {"schema": "dvidia.reference-audit/v1", "profile": PROFILE, "scope": SCOPE,
250
+ "physical_robot_ready": False, "asset_provenance": provenance,
251
+ "settings": {"timestep_seconds": .001, "integrator": "implicitfast",
252
+ "contact_cone": "elliptic", "impratio": 10,
253
+ "mount": "upstream attachment_site, gripper namespace, no added adapter mass",
254
+ "tcp": "upstream gripper/pinch; not a measured physical TCP"},
255
+ "inventory": inventory, "arm_link_collision_coverage": coverage,
256
+ "fixed_base_collision_geoms": by_name["base"]["collision_geoms"],
257
+ "arm_command_unit": "joint target radians",
258
+ "gripper_command_unit": "native 0–255 servo input; not meters or calibrated physical force",
259
+ "hand_models": hand_models, "bimanual_assembly_implemented": False,
260
+ "calibration_gates": {name: "unmeasured" for name in
261
+ ("serial_kinematics", "base_and_tcp_frames", "actuator_response_and_latency",
262
+ "gripper_encoder_gap_hysteresis", "contact_and_slip", "deployed_sensor_age",
263
+ "physical_task_success")}, "warnings": warnings}
264
+
265
+
266
+ def _initial(model):
267
+ mj, _ = _native_imports()
268
+ data = mj.MjData(model)
269
+ mj.mj_resetDataKeyframe(model, data, 0)
270
+ mj.mj_forward(model, data)
271
+ return data
272
+
273
+
274
+ def _sample(model, data, elapsed, command):
275
+ mj, np = _native_imports()
276
+ ids = [mj.mj_name2id(model, mj.mjtObj.mjOBJ_JOINT, name) for name in ARM_JOINTS]
277
+ site = mj.mj_name2id(model, mj.mjtObj.mjOBJ_SITE, "gripper/pinch")
278
+ pads = [mj.mj_name2id(model, mj.mjtObj.mjOBJ_GEOM, f"gripper/{side}_pad1") for side in ("left", "right")]
279
+ quat = np.empty(4)
280
+ mj.mju_mat2Quat(quat, data.site_xmat[site])
281
+ return {"t_seconds": elapsed, "joint_position_rad": data.qpos[model.jnt_qposadr[ids]].tolist(),
282
+ "joint_velocity_rad_s": data.qvel[model.jnt_dofadr[ids]].tolist(),
283
+ "linkage_position_rad": data.qpos[6:].tolist(),
284
+ "tcp_position_m": data.site_xpos[site].tolist(), "tcp_quaternion_wxyz": quat.tolist(),
285
+ "pad_center_separation_m": float(np.linalg.norm(data.geom_xpos[pads[0]] - data.geom_xpos[pads[1]])),
286
+ "arm_points_m": [data.xpos[mj.mj_name2id(model, mj.mjtObj.mjOBJ_BODY, name)].tolist()
287
+ for name in ("base",) + ARM_BODIES] + [data.site_xpos[site].tolist()],
288
+ "pad_centers_m": [data.geom_xpos[index].tolist() for index in pads],
289
+ "contact_count": data.ncon,
290
+ "issued_joint_targets_rad": command[:6].tolist(), "issued_gripper_0_255": float(command[6])}
291
+
292
+
293
+ def _summary(values):
294
+ ordered = sorted(values)
295
+ return {"count": len(values), "median": statistics.median(ordered),
296
+ "p95": ordered[math.ceil(.95 * len(ordered)) - 1], "max": ordered[-1]}
297
+
298
+
299
+ def _command(case, elapsed, home):
300
+ _, np = _native_imports()
301
+ result = np.array(home, dtype=float, copy=True)
302
+ if case == "arm_sweep":
303
+ result[0] += .20 * math.sin(math.pi * elapsed)
304
+ elif case == "jaw_cycle":
305
+ result[6] = 127.5 * (1 - math.cos(math.pi * elapsed))
306
+ elif case != "hold_open":
307
+ raise ValueError("Unknown reference motion case")
308
+ return result
309
+
310
+
311
+ def run_case(directory, case, *, timestep=.001, seconds=4.):
312
+ mj, np = _native_imports()
313
+ timestep = _timestep(timestep)
314
+ seconds = validate_duration(seconds)
315
+ if case not in CASES:
316
+ raise ValueError("Unknown reference motion case")
317
+ warnings = []
318
+ ticks, chunks, trajectory = [], [], []
319
+ with native_warnings(warnings):
320
+ started = time.perf_counter()
321
+ model = build_model(directory, timestep=timestep)
322
+ compile_seconds = time.perf_counter() - started
323
+ data = _initial(model)
324
+ home = model.key_ctrl[0].copy()
325
+ # Settling is outside the reported physics throughput/tick timing.
326
+ for _ in range(round(1 / timestep)):
327
+ data.ctrl[:] = home
328
+ mj.mj_step(model, data)
329
+ mj.mj_forward(model, data)
330
+ trajectory.append(_sample(model, data, 0., home))
331
+ physics_wall = 0.
332
+ for boundary in range(round(seconds / CONTROL_DT)):
333
+ elapsed = boundary * CONTROL_DT
334
+ command = _command(case, elapsed, home)
335
+ data.ctrl[:] = command
336
+ start = time.perf_counter_ns()
337
+ for _ in range(round(CONTROL_DT / timestep)):
338
+ before = time.perf_counter_ns()
339
+ mj.mj_step(model, data)
340
+ ticks.append((time.perf_counter_ns() - before) / 1e6)
341
+ mj.mj_forward(model, data)
342
+ chunk_ms = (time.perf_counter_ns() - start) / 1e6
343
+ physics_wall += chunk_ms / 1000
344
+ chunks.append(chunk_ms)
345
+ trajectory.append(_sample(model, data, (boundary + 1) * CONTROL_DT, command))
346
+ valid = bool(not warnings and not any(x.number for x in data.warning)
347
+ and np.isfinite(data.qpos).all() and np.isfinite(data.qvel).all()
348
+ and np.isfinite(data.qacc).all() and np.isfinite(data.site_xpos).all()
349
+ and np.isfinite(data.actuator_force).all()
350
+ and all(math.isfinite(v) for row in trajectory for k in
351
+ ("joint_position_rad", "joint_velocity_rad_s", "tcp_position_m", "linkage_position_rad") for v in row[k]))
352
+ nonfinite_trajectory_omitted = False
353
+ try:
354
+ json.dumps(trajectory, allow_nan=False)
355
+ except ValueError:
356
+ trajectory = []
357
+ valid = False
358
+ nonfinite_trajectory_omitted = True
359
+ return {"case": case, "valid": valid, "warnings": warnings,
360
+ "nonfinite_trajectory_omitted": nonfinite_trajectory_omitted,
361
+ "compiled_model_sha256": model_digest(model), "timestep_seconds": timestep,
362
+ "control_dt_seconds": CONTROL_DT, "simulated_seconds": seconds,
363
+ "compile_and_asset_verification_seconds": compile_seconds,
364
+ "physics_chunks_wall_seconds": physics_wall,
365
+ "simulation_seconds_per_wall_second": seconds / physics_wall,
366
+ "native_tick_ms": _summary(ticks), "control_chunk_ms": _summary(chunks),
367
+ "timing_scope": "mj_step calls with per-tick instrumentation; chunks also include boundary mj_forward. "
368
+ "Excludes verification/compile, settling, sampling, rendering, perception, policy, transport and real actuation.",
369
+ "trajectory": trajectory}
370
+
371
+
372
+ def collision_probe(directory):
373
+ """Matched overlap diagnostic, not a path planner or collision safety test."""
374
+ mj, np = _native_imports()
375
+ warnings = []
376
+ attempts = []
377
+ with native_warnings(warnings):
378
+ model = build_model(directory)
379
+ data = _initial(model)
380
+ body = mj.mj_name2id(model, mj.mjtObj.mjOBJ_BODY, "upper_arm_link")
381
+ active = (model.geom_contype != 0) | (model.geom_conaffinity != 0)
382
+ geom = int(np.flatnonzero((model.geom_bodyid == body) & active)[-1])
383
+ position = data.geom_xpos[geom].copy()
384
+ for mask in (False, True):
385
+ model = build_model(directory, probe_position=position.tolist())
386
+ if mask:
387
+ bodies = [mj.mj_name2id(model, mj.mjtObj.mjOBJ_BODY, name) for name in ARM_BODIES]
388
+ for index in np.flatnonzero(np.isin(model.geom_bodyid, bodies)):
389
+ model.geom_contype[index] = model.geom_conaffinity[index] = 0
390
+ data = _initial(model)
391
+ probe = mj.mj_name2id(model, mj.mjtObj.mjOBJ_GEOM, "collision_probe")
392
+ pairs = []
393
+ for contact in data.contact[:data.ncon]:
394
+ if probe in (contact.geom1, contact.geom2):
395
+ other = contact.geom2 if contact.geom1 == probe else contact.geom1
396
+ pairs.append({"other_body": _name(model, mj.mjtObj.mjOBJ_BODY, model.geom_bodyid[other]),
397
+ "signed_distance_m": float(contact.dist)})
398
+ attempts.append({"arm_collision_masks_disabled": mask, "probe_contact_count": len(pairs), "pairs": pairs})
399
+ return {"scope": "Authored initial sphere overlap at an upper-arm collision proxy; no motion or real collision trial",
400
+ "probe_position_m": position.tolist(), "attempts": attempts, "warnings": warnings}
401
+
402
+
403
+ def benchmark_reference(directory, *, repeats=2, seconds=4., hands=False):
404
+ if isinstance(repeats, bool) or not isinstance(repeats, int) or not 1 <= repeats <= 5:
405
+ raise ValueError("Repeats must be an integer between 1 and 5")
406
+ seconds = validate_duration(seconds)
407
+ audit = audit_reference(directory, hands=hands)
408
+ attempts = []
409
+ for case in CASES:
410
+ for timestep in (.002, .001, .0005):
411
+ for repeat in range(repeats):
412
+ try:
413
+ attempt = run_case(directory, case, timestep=timestep, seconds=seconds)
414
+ except Exception as exc:
415
+ attempt = {"case": case, "timestep_seconds": timestep, "valid": False,
416
+ "error_type": type(exc).__name__,
417
+ "error": str(exc).replace(str(Path(directory).resolve()), "[assets]")[:500]}
418
+ attempt["repeat"] = repeat
419
+ attempts.append(attempt)
420
+ convergence = []
421
+ _, np = _native_imports()
422
+ for case in CASES:
423
+ for coarse in (.002, .001):
424
+ for repeat in range(repeats):
425
+ pair = [next(x for x in attempts if x["case"] == case and x["timestep_seconds"] == dt and x["repeat"] == repeat)
426
+ for dt in (coarse, coarse / 2)]
427
+ result = {"case": case, "repeat": repeat, "timestep_pair_seconds": [coarse, coarse / 2],
428
+ "valid": all(x["valid"] for x in pair)}
429
+ if result["valid"]:
430
+ rows = [x["trajectory"] for x in pair]
431
+ def differences(key):
432
+ return np.asarray([x[key] for x in rows[0]]) - np.asarray([x[key] for x in rows[1]])
433
+ dq = differences("joint_position_rad")
434
+ dx = differences("tcp_position_m")
435
+ dg = differences("pad_center_separation_m")
436
+ result.update({"matched_boundaries": len(rows[0]), "joint_position_rmse_rad": float(np.sqrt(np.mean(dq ** 2))),
437
+ "max_joint_position_difference_rad": float(np.max(np.abs(dq))),
438
+ "tcp_distance_rmse_m": float(np.sqrt(np.mean(np.sum(dx ** 2, axis=1)))),
439
+ "max_tcp_distance_m": float(np.max(np.linalg.norm(dx, axis=1))),
440
+ "pad_center_separation_rmse_m": float(np.sqrt(np.mean(dg ** 2))),
441
+ "max_pad_center_separation_difference_m": float(np.max(np.abs(dg)))})
442
+ convergence.append(result)
443
+ source_files = ("reference_sim.py", "reference_assets.lock.json", "embodiment_cli.py", "reference_report.html")
444
+ return {"schema": "dvidia.reference-benchmark/v1", "profile": PROFILE, "scope": SCOPE,
445
+ "physical_robot_ready": False, "task_success_evaluated": False,
446
+ "hardware": {"platform": platform.platform(), "machine": platform.machine(),
447
+ "python": platform.python_version(), "mujoco": "3.15.0", "gpu_used": False},
448
+ "protocol": {"cases": list(CASES), "timesteps_seconds": [.002, .001, .0005],
449
+ "repeats": repeats, "seconds_per_case": seconds, "control_dt_seconds": CONTROL_DT,
450
+ "same_synthetic_scene_and_commands": True,
451
+ "repeat_scope": "Repeated deterministic numerical/performance diagnostics, not independent physical or skill trials",
452
+ "pad_measurement": "Euclidean distance between upstream left_pad1/right_pad1 geom centers; not calibrated inner jaw gap",
453
+ "convergence_scope": "Matched 20 ms boundaries including post-settling start; adjacent timestep comparison, not comparison with reality"},
454
+ "implementation_sha256": {name: sha256(Path(__file__).with_name(name).read_bytes()).hexdigest() for name in source_files},
455
+ "audit": audit, "collision_probe": collision_probe(directory),
456
+ "attempted": len(attempts), "valid_attempts": sum(x["valid"] for x in attempts),
457
+ "attempts": attempts, "convergence": convergence}
sources/reference_task.py ADDED
@@ -0,0 +1,544 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Authored contact-based rigid-block task on the pinned native six-axis reference.
2
+
3
+ The policy is a development baseline, not a learned skill. Observations are
4
+ privileged simulator state. Only reset initializes the freely moving block;
5
+ grasping, transport and release thereafter require native contact dynamics.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ from dataclasses import asdict, dataclass
10
+ from hashlib import sha256
11
+ import json
12
+ import math
13
+ from pathlib import Path
14
+ import time
15
+
16
+ from . import reference_sim as sim
17
+
18
+
19
+ PROFILE = 'ur5e-2f85-rigid-block-task-v0.1'
20
+ SCHEMA = 'dvidia.reference-task-episode/v1'
21
+ SCOPE = ('Authored native UR5e/Robotiq rigid-block manipulation, privileged state and synthetic commands. '
22
+ 'No shoe model, learned task policy, camera sensing, calibrated contact or physical qualification.')
23
+ CARRY_CONTACT_LOSS_TOLERANCE_S = .04
24
+ GRIPPER_JOINTS = tuple('gripper/' + side + '_' + link + '_joint'
25
+ for side in ('right', 'left')
26
+ for link in ('driver', 'coupler', 'spring_link', 'follower'))
27
+
28
+
29
+ def _number(value, name, minimum, maximum):
30
+ if isinstance(value, bool) or not isinstance(value, (int, float)):
31
+ raise ValueError(f'{name} must be finite numeric data')
32
+ try:
33
+ value = float(value)
34
+ except (OverflowError, ValueError, TypeError) as exc:
35
+ raise ValueError(f'{name} must be finite numeric data') from exc
36
+ if not math.isfinite(value) or not minimum <= value <= maximum:
37
+ raise ValueError(f'{name} must lie in [{minimum}, {maximum}]')
38
+ return value
39
+
40
+
41
+ def _vector(value, length, name, minimum=-10., maximum=10.):
42
+ if not isinstance(value, (list, tuple)) or len(value) != length:
43
+ raise ValueError(f'{name} requires {length} values')
44
+ return tuple(_number(item, name, minimum, maximum) for item in value)
45
+
46
+
47
+ @dataclass(frozen=True)
48
+ class ReferenceTaskConfig:
49
+ timestep: float = .001
50
+ control_dt: float = .02
51
+ timeout_s: float = 20.
52
+ settle_s: float = .5
53
+ object_position_m: tuple = (-.134, .49, .302)
54
+ target_position_m: tuple = (.08, .49, .30)
55
+ object_half_size_m: tuple = (.02, .02, .02)
56
+ mass_kg: float = .04
57
+ friction: float = .8
58
+ table_top_m: float = .28
59
+ table_center_xy_m: tuple = (0., .55)
60
+ table_half_size_xy_m: tuple = (.32, .26)
61
+ table_thickness_m: float = .04
62
+ goal_position_tolerance_m: float = .025
63
+ goal_dwell_s: float = .25
64
+ min_lift_m: float = .06
65
+ min_lift_dwell_s: float = .10
66
+ retreat_clearance_m: float = .10
67
+ joint_target_rate_rad_s: float = 1.5
68
+ jaw_target_rate_0_255_s: float = 500.
69
+ tool_orientation_wxyz: tuple = (0., math.sqrt(.5), math.sqrt(.5), 0.)
70
+
71
+ def __post_init__(self):
72
+ bounds = {'timestep': (.0005, .002), 'control_dt': (.02, .02), 'timeout_s': (.1, 30.),
73
+ 'settle_s': (.1, 2.), 'mass_kg': (.01, .15), 'friction': (.02, 2.),
74
+ 'table_top_m': (.24, .32), 'table_thickness_m': (.02, .08),
75
+ 'goal_position_tolerance_m': (.01, .03), 'goal_dwell_s': (.10, .6),
76
+ 'min_lift_m': (.04, .10), 'min_lift_dwell_s': (.05, .3),
77
+ 'retreat_clearance_m': (.08, .15), 'joint_target_rate_rad_s': (.1, 3.),
78
+ 'jaw_target_rate_0_255_s': (50., 1000.)}
79
+ for name, (low, high) in bounds.items():
80
+ object.__setattr__(self, name, _number(getattr(self, name), name, low, high))
81
+ sim._timestep(self.timestep)
82
+ for numerator, denominator in ((self.control_dt, self.timestep), (self.timeout_s, self.control_dt),
83
+ (self.settle_s, self.timestep)):
84
+ ratio = numerator / denominator
85
+ if not math.isclose(ratio, round(ratio), abs_tol=1e-9, rel_tol=0):
86
+ raise ValueError('Task durations must contain an integer number of native/control ticks')
87
+ for name, length, low, high in (('object_position_m', 3, -2, 2), ('target_position_m', 3, -2, 2),
88
+ ('object_half_size_m', 3, .015, .025), ('table_center_xy_m', 2, -1, 1),
89
+ ('table_half_size_xy_m', 2, .1, .5), ('tool_orientation_wxyz', 4, -1, 1)):
90
+ object.__setattr__(self, name, _vector(getattr(self, name), length, name, low, high))
91
+ if not math.isclose(sum(x*x for x in self.tool_orientation_wxyz), 1., abs_tol=1e-8, rel_tol=0):
92
+ raise ValueError('Tool goal quaternion must be normalized wxyz')
93
+ for name in ('object_position_m', 'target_position_m'):
94
+ point = getattr(self, name)
95
+ if not -.25 <= point[0] <= .25 or not .35 <= point[1] <= .70:
96
+ raise ValueError('Task placement lies outside the declared reference reach envelope')
97
+ for axis in range(2):
98
+ if abs(point[axis]-self.table_center_xy_m[axis]) + self.object_half_size_m[axis] > self.table_half_size_xy_m[axis]-.01:
99
+ raise ValueError('Task placement must be supported within the table edge')
100
+ expected = self.table_top_m + self.object_half_size_m[2] + (.002 if name == 'object_position_m' else 0.)
101
+ if not math.isclose(point[2], expected, abs_tol=1e-8, rel_tol=0):
102
+ raise ValueError('Start/target height must match the declared support plane and block size')
103
+ if math.dist(self.object_position_m[:2], self.target_position_m[:2]) < .075:
104
+ raise ValueError('Task must require at least 75 mm of block transfer')
105
+
106
+
107
+ def task_contract():
108
+ return {'profile': PROFILE, 'scope': SCOPE, 'physical_robot_ready': False,
109
+ 'arm_joint_order': list(sim.ARM_JOINTS), 'gripper_linkage_order': list(GRIPPER_JOINTS),
110
+ 'actions': {'joint_targets_rad': 'six absolute joint targets, rad; ramped then gravity feedforward',
111
+ 'gripper_0_255': 'one native tendon servo target; 0 open / 255 close, not measured gap or force'},
112
+ 'observation_origin': 'privileged_native_simulator_state', 'native_sensor_definitions': 0,
113
+ 'observations': {'joint_position_rad': [6], 'joint_velocity_rad_s': [6], 'linkage_position_rad': [8],
114
+ 'tcp_position_m': [3], 'tcp_quaternion_wxyz': [4], 'object_position_m': [3],
115
+ 'object_quaternion_wxyz': [4], 'grasp_contact_counts': 'left/right native block contacts',
116
+ 'pad_normal_forces_n': 'native mj_contactForce, not deployable tactile sensing'},
117
+ 'contacts': 'native collision proxies; object priority 1 overrides pad/table friction floors',
118
+ 'object': 'one free rigid box; no weld, grasp attachment or runtime object pose writes',
119
+ 'success': 'valid physics, retained bilateral table-free lift and supported destination carry completion, then released/settled destination dwell and tool retreat',
120
+ 'carry_retention': {'bilateral_contact_required': 'after sustained lift until supported at destination while held',
121
+ 'contact_force_threshold_n': .01,
122
+ 'consecutive_loss_tolerance_seconds': CARRY_CONTACT_LOSS_TOLERANCE_S,
123
+ 'loss_at_or_above_tolerance': 'permanent failure, independent of teacher phase'},
124
+ 'fixed_base_collision_proxy': False}
125
+
126
+
127
+ def build_task_model(assets, config=None):
128
+ config = ReferenceTaskConfig() if config is None else config
129
+ if not isinstance(config, ReferenceTaskConfig):
130
+ raise TypeError('config must be ReferenceTaskConfig')
131
+ _, blobs = sim._asset_payload(assets)
132
+ mj, _ = sim._native_imports()
133
+ arm = sim._spec(blobs, 'universal_robots_ur5e', 'ur5e.xml')
134
+ jaw = sim._spec(blobs, 'robotiq_2f85', '2f85.xml')
135
+ arm.option.cone, arm.option.impratio = jaw.option.cone, jaw.option.impratio
136
+ arm.option.timestep = jaw.option.timestep = config.timestep
137
+ arm.option.integrator = jaw.option.integrator = mj.mjtIntegrator.mjINT_IMPLICITFAST
138
+ arm.attach(jaw, prefix='gripper/', site='attachment_site')
139
+ arm.worldbody.add_geom(name='task_floor', type=mj.mjtGeom.mjGEOM_PLANE, size=[2, 2, .1], rgba=[.9, .9, .88, 1])
140
+ arm.worldbody.add_geom(name='task_table', type=mj.mjtGeom.mjGEOM_BOX,
141
+ pos=[*config.table_center_xy_m, config.table_top_m-config.table_thickness_m/2],
142
+ size=[*config.table_half_size_xy_m, config.table_thickness_m/2], rgba=[.73, .70, .64, 1])
143
+ block = arm.worldbody.add_body(name='task_block', pos=config.object_position_m)
144
+ block.add_freejoint(name='task_block_free')
145
+ block.add_geom(name='task_block_geom', type=mj.mjtGeom.mjGEOM_BOX, size=config.object_half_size_m,
146
+ mass=config.mass_kg, friction=[config.friction, .005, .0001], priority=1,
147
+ condim=4, rgba=[.75, .30, .16, 1])
148
+ marker = arm.worldbody.add_body(name='task_target_frame',
149
+ pos=[*config.target_position_m[:2], config.table_top_m+.0005])
150
+ marker.add_geom(name='task_target', type=mj.mjtGeom.mjGEOM_BOX,
151
+ size=[config.object_half_size_m[0]+.015, config.object_half_size_m[1]+.015, .0005],
152
+ rgba=[.17, .47, .35, .3], contype=0, conaffinity=0)
153
+ model = arm.compile()
154
+ if (model.nq, model.nv, model.nu, model.neq) != (21, 20, 7, 3):
155
+ raise ValueError('Task native mechanical contract changed')
156
+ return model
157
+
158
+
159
+ class ReferenceTaskEnv:
160
+ def __init__(self, assets, config=None):
161
+ self.assets = Path(assets)
162
+ self.config = ReferenceTaskConfig() if config is None else config
163
+ if not isinstance(self.config, ReferenceTaskConfig):
164
+ raise TypeError('config must be ReferenceTaskConfig')
165
+ self.ready = False
166
+
167
+ def reset(self, seed=0):
168
+ if type(seed) is not int or not 0 <= seed <= 999999:
169
+ raise ValueError('seed must be an integer in [0, 999999]')
170
+ mj, np = sim._native_imports()
171
+ self.ready = False
172
+ self.seed, self.warnings = seed, []
173
+ with sim.native_warnings(self.warnings):
174
+ self.model = build_task_model(self.assets, self.config)
175
+ self.data = mj.MjData(self.model)
176
+ self.arm_ids = np.asarray([mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_JOINT, x) for x in sim.ARM_JOINTS])
177
+ self.arm_qpos = self.model.jnt_qposadr[self.arm_ids]
178
+ self.arm_dof = self.model.jnt_dofadr[self.arm_ids]
179
+ self.linkage_ids = np.asarray([mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_JOINT, x) for x in GRIPPER_JOINTS])
180
+ self.linkage_qpos = self.model.jnt_qposadr[self.linkage_ids]
181
+ self.tcp = mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_SITE, 'gripper/pinch')
182
+ self.block = mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_BODY, 'task_block')
183
+ self.block_geom = mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_GEOM, 'task_block_geom')
184
+ self.table_geom = mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_GEOM, 'task_table')
185
+ self.floor_geom = mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_GEOM, 'task_floor')
186
+ self.pad_geoms = {side: [mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_GEOM, f'gripper/{side}_pad{i}')
187
+ for i in (1, 2)] for side in ('left', 'right')}
188
+ self.robot_geoms = set(range(self.model.ngeom)) - {
189
+ self.block_geom, self.table_geom,
190
+ self.floor_geom,
191
+ mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_GEOM, 'task_target')}
192
+ arm_bodies = {mj.mj_name2id(self.model, mj.mjtObj.mjOBJ_BODY, name) for name in sim.ARM_BODIES}
193
+ self.arm_geoms = {i for i in self.robot_geoms if int(self.model.geom_bodyid[i]) in arm_bodies}
194
+ # The upstream keyframe contains only robot qpos; initialize them
195
+ # explicitly and leave the free block's compiled reset coordinates.
196
+ self.data.qpos[self.arm_qpos] = [-1.5708, -1.5708, 1.5708, -1.5708, -1.5708, 0.]
197
+ self.data.qpos[self.linkage_qpos] = 0.
198
+ self.command_targets = self.data.qpos[self.arm_qpos].copy()
199
+ self.command_gripper = 0.
200
+ mj.mj_forward(self.model, self.data)
201
+ for _ in range(round(self.config.settle_s/self.config.timestep)):
202
+ self._controls()
203
+ mj.mj_step(self.model, self.data)
204
+ mj.mj_forward(self.model, self.data)
205
+ if not self._finite() or self.warnings or any(x.number for x in self.data.warning):
206
+ raise RuntimeError('Task settling produced invalid native physics')
207
+ self.initial_object_position = self.data.xpos[self.block].copy()
208
+ self.elapsed, self.steps, self.dwell, self.lift_dwell = 0., 0, 0., 0.
209
+ self.max_lift, self.max_pad_force, self.critical_contact_ticks = 0., 0., 0
210
+ self.lift_seen, self.grasp_seen, self.done = False, False, False
211
+ self.carry_complete, self.retention_lost = False, False
212
+ self.carry_contact_loss, self.max_carry_contact_loss = 0., 0.
213
+ self.carry_contact_loss_events = 0
214
+ self.first_success_time = None
215
+ self.reason = 'running'
216
+ self.ready = True
217
+ return self.observation(), self.info()
218
+
219
+ def _finite(self):
220
+ _, np = sim._native_imports()
221
+ return all(np.isfinite(value).all() for value in (self.data.qpos, self.data.qvel, self.data.qacc, self.data.xpos))
222
+
223
+ def _controls(self):
224
+ _, np = sim._native_imports()
225
+ # Authored gravity feedforward, applied inside the original bounded
226
+ # affine position servos. Actual force/velocity are never overwritten.
227
+ gains = self.model.actuator_gainprm[:6, 0]
228
+ requested = self.command_targets + self.data.qfrc_bias[self.arm_dof]/gains
229
+ self.data.ctrl[:6] = np.clip(requested, self.model.actuator_ctrlrange[:6, 0], self.model.actuator_ctrlrange[:6, 1])
230
+ self.data.ctrl[6] = self.command_gripper
231
+
232
+ def _contacts(self):
233
+ mj, np = sim._native_imports()
234
+ counts, forces, table, critical = {'left': 0, 'right': 0}, {'left': 0., 'right': 0.}, 0, 0
235
+ pads = set(sum(self.pad_geoms.values(), []))
236
+ for index, contact in enumerate(self.data.contact[:self.data.ncon]):
237
+ pair = {int(contact.geom1), int(contact.geom2)}
238
+ force = np.zeros(6)
239
+ mj.mj_contactForce(self.model, self.data, index, force)
240
+ if force[0] <= .01:
241
+ continue
242
+ if self.block_geom in pair:
243
+ if self.table_geom in pair:
244
+ table += 1
245
+ for side in ('left', 'right'):
246
+ if pair.intersection(self.pad_geoms[side]):
247
+ counts[side] += 1
248
+ forces[side] += float(force[0])
249
+ if pair.intersection(self.robot_geoms-pads):
250
+ critical += 1
251
+ elif pair.intersection({self.table_geom, self.floor_geom}) and pair.intersection(self.robot_geoms):
252
+ critical += 1
253
+ elif pair.intersection(self.arm_geoms) and pair.issubset(self.robot_geoms):
254
+ critical += 1
255
+ return counts, forces, table, critical
256
+
257
+ def observation(self):
258
+ mj, np = sim._native_imports()
259
+ if not self._finite():
260
+ raise RuntimeError('Cannot record a nonfinite native state')
261
+ counts, forces, table, critical = self._contacts()
262
+ tcp_quat, velocity = np.empty(4), np.empty(6)
263
+ mj.mju_mat2Quat(tcp_quat, self.data.site_xmat[self.tcp])
264
+ mj.mj_objectVelocity(self.model, self.data, mj.mjtObj.mjOBJ_BODY, self.block, velocity, 0)
265
+ separation = float(np.linalg.norm(self.data.geom_xpos[self.pad_geoms['left'][0]]-
266
+ self.data.geom_xpos[self.pad_geoms['right'][0]]))
267
+ return {'t_seconds': self.elapsed, 'qpos': self.data.qpos.tolist(), 'qvel': self.data.qvel.tolist(),
268
+ 'joint_position_rad': self.data.qpos[self.arm_qpos].tolist(),
269
+ 'joint_velocity_rad_s': self.data.qvel[self.arm_dof].tolist(),
270
+ 'linkage_position_rad': self.data.qpos[self.linkage_qpos].tolist(),
271
+ 'tcp_position_m': self.data.site_xpos[self.tcp].tolist(), 'tcp_quaternion_wxyz': tcp_quat.tolist(),
272
+ 'object_position_m': self.data.xpos[self.block].tolist(), 'object_quaternion_wxyz': self.data.xquat[self.block].tolist(),
273
+ 'object_linear_velocity_m_s': velocity[3:].tolist(), 'object_angular_velocity_rad_s': velocity[:3].tolist(),
274
+ 'target_position_m': list(self.config.target_position_m), 'pad_center_separation_m': separation,
275
+ 'grasp_contact_counts': counts, 'pad_normal_forces_n': forces, 'table_object_contact_count': table,
276
+ 'unexpected_contact_count': critical, 'contact_count': int(self.data.ncon),
277
+ 'native_actuator_controls': self.data.ctrl.tolist(), 'actuator_force': self.data.actuator_force.tolist(),
278
+ 'issued_joint_targets_rad': None, 'issued_gripper_0_255': None, 'command': None,
279
+ 'observation_origin': 'privileged_native_simulator_state'}
280
+
281
+ def info(self):
282
+ _, np = sim._native_imports()
283
+ valid = self.reason not in ('invalid_state', 'solver_warning') and not self.warnings
284
+ success = valid and self.carry_complete and not self.retention_lost and self.dwell+1e-12 >= self.config.goal_dwell_s
285
+ return {'valid': valid, 'success': success,
286
+ 'reason': ('success' if success else self.reason), 'simulation_time': self.elapsed,
287
+ 'steps': self.steps, 'lift_seen': self.lift_seen, 'grasp_seen': self.grasp_seen,
288
+ 'max_object_lift_m': self.max_lift, 'dwell_seconds': self.dwell, 'lift_dwell_seconds': self.lift_dwell,
289
+ 'max_pad_normal_force_n': self.max_pad_force, 'unexpected_contact_native_ticks': self.critical_contact_ticks,
290
+ 'carry_complete': self.carry_complete, 'retention_lost': self.retention_lost,
291
+ 'max_carry_contact_loss_seconds': self.max_carry_contact_loss,
292
+ 'carry_contact_loss_events': self.carry_contact_loss_events,
293
+ 'carry_contact_loss_tolerance_seconds': CARRY_CONTACT_LOSS_TOLERANCE_S,
294
+ 'first_success_time_seconds': self.first_success_time,
295
+ 'target_distance_m': float(np.linalg.norm(self.data.xpos[self.block]-self.config.target_position_m)) if self._finite() else None,
296
+ 'warnings': list(self.warnings), 'physical_robot_ready': False}
297
+
298
+ def _outcome_tick(self, *, both, supported, lift, distance, released, settled, clear, critical, pad_force):
299
+ """Score native evidence without consulting the authored policy phase."""
300
+ dt = self.config.timestep
301
+ self.max_pad_force = max(self.max_pad_force, pad_force)
302
+ self.critical_contact_ticks += bool(critical)
303
+ self.grasp_seen |= both
304
+ self.max_lift = max(self.max_lift, lift)
305
+ loaded = both and not supported and lift >= self.config.min_lift_m
306
+ self.lift_dwell = self.lift_dwell+dt if loaded else 0.
307
+ self.lift_seen |= self.lift_dwell+1e-12 >= self.config.min_lift_dwell_s
308
+ if self.lift_seen and not self.carry_complete:
309
+ # Release is allowed only once the still-held block actually rests
310
+ # at its destination; a dropped/tossed block cannot acquire this latch.
311
+ self.carry_complete |= bool(both and supported and distance <= self.config.goal_position_tolerance_m)
312
+ if not self.carry_complete:
313
+ if both:
314
+ self.carry_contact_loss = 0.
315
+ else:
316
+ before = self.carry_contact_loss
317
+ self.carry_contact_loss += dt
318
+ self.max_carry_contact_loss = max(self.max_carry_contact_loss, self.carry_contact_loss)
319
+ if before+1e-12 < CARRY_CONTACT_LOSS_TOLERANCE_S <= self.carry_contact_loss+1e-12:
320
+ self.carry_contact_loss_events += 1
321
+ self.retention_lost = True
322
+ qualifies = (self.lift_seen and self.grasp_seen and self.carry_complete and not self.retention_lost
323
+ and released and supported and settled and clear
324
+ and distance <= self.config.goal_position_tolerance_m and self.critical_contact_ticks == 0)
325
+ self.dwell = self.dwell+dt if qualifies else 0.
326
+ if self.dwell+1e-12 >= self.config.goal_dwell_s and self.first_success_time is None:
327
+ self.first_success_time = self.elapsed
328
+
329
+ def pose_action(self, position_m, quaternion_wxyz, gripper_0_255):
330
+ if not self.ready or self.done:
331
+ raise RuntimeError('Reset is required before another task action')
332
+ mj, np = sim._native_imports()
333
+ position = np.asarray(_vector(position_m, 3, 'pose position'), dtype=float)
334
+ quaternion = np.asarray(_vector(quaternion_wxyz, 4, 'pose quaternion', -1, 1), dtype=float)
335
+ if not math.isclose(float(quaternion@quaternion), 1., abs_tol=1e-8, rel_tol=0):
336
+ raise ValueError('Pose quaternion must be normalized wxyz')
337
+ jaw = _number(gripper_0_255, 'gripper command', 0, 255)
338
+ jacp, jacr = np.zeros((3, self.model.nv)), np.zeros((3, self.model.nv))
339
+ mj.mj_jacSite(self.model, self.data, jacp, jacr, self.tcp)
340
+ current, rotation = np.empty(4), np.empty(3)
341
+ mj.mju_mat2Quat(current, self.data.site_xmat[self.tcp])
342
+ mj.mju_subQuat(rotation, quaternion, current)
343
+ # mju_subQuat returns angular velocity in the current local frame;
344
+ # site rotational Jacobians are in world coordinates.
345
+ rotation = self.data.site_xmat[self.tcp].reshape(3, 3) @ rotation
346
+ translation = position-self.data.site_xpos[self.tcp]
347
+ for error, maximum in ((translation, .018), (rotation, .04)):
348
+ norm = float(np.linalg.norm(error))
349
+ if norm > maximum:
350
+ error *= maximum/norm
351
+ jacobian = np.vstack((jacp[:, self.arm_dof], .25*jacr[:, self.arm_dof]))
352
+ error = np.concatenate((translation, .25*rotation))
353
+ delta = jacobian.T @ np.linalg.solve(jacobian@jacobian.T+.012**2*np.eye(6), error)
354
+ delta = np.clip(delta, -.06, .06)
355
+ targets = np.clip(self.data.qpos[self.arm_qpos]+delta,
356
+ self.model.actuator_ctrlrange[:6, 0]+.02, self.model.actuator_ctrlrange[:6, 1]-.02)
357
+ return {'joint_targets_rad': targets.tolist(), 'gripper_0_255': jaw}
358
+
359
+ def step(self, action):
360
+ if not self.ready or self.done:
361
+ raise RuntimeError('Reset is required before another task step')
362
+ if type(action) is not dict or set(action) != {'joint_targets_rad', 'gripper_0_255'}:
363
+ raise ValueError('Task action requires six joint targets and one native gripper command')
364
+ mj, np = sim._native_imports()
365
+ targets = np.asarray(_vector(action['joint_targets_rad'], 6, 'joint targets'), dtype=float)
366
+ jaw = _number(action['gripper_0_255'], 'gripper command', 0, 255)
367
+ if np.any(targets < self.model.actuator_ctrlrange[:6, 0]) or np.any(targets > self.model.actuator_ctrlrange[:6, 1]):
368
+ raise ValueError('Task joint target exceeds native actuator limits')
369
+ if not self._finite():
370
+ self.reason, self.done = 'invalid_state', True
371
+ return None, -1., True, False, self.info()
372
+ before_distance = float(np.linalg.norm(self.data.xpos[self.block]-self.config.target_position_m))
373
+ messages = []
374
+ with sim.native_warnings(messages):
375
+ for _ in range(round(self.config.control_dt/self.config.timestep)):
376
+ self.command_targets += np.clip(targets-self.command_targets,
377
+ -self.config.joint_target_rate_rad_s*self.config.timestep,
378
+ self.config.joint_target_rate_rad_s*self.config.timestep)
379
+ self.command_gripper += float(np.clip(jaw-self.command_gripper,
380
+ -self.config.jaw_target_rate_0_255_s*self.config.timestep,
381
+ self.config.jaw_target_rate_0_255_s*self.config.timestep))
382
+ self._controls()
383
+ mj.mj_step(self.model, self.data)
384
+ mj.mj_forward(self.model, self.data)
385
+ self.elapsed += self.config.timestep
386
+ if not self._finite():
387
+ self.reason, self.done = 'invalid_state', True
388
+ break
389
+ if messages or any(x.number for x in self.data.warning):
390
+ self.reason, self.done = 'solver_warning', True
391
+ break
392
+ counts, forces, supported, critical = self._contacts()
393
+ both = all(counts[side] > 0 for side in ('left', 'right'))
394
+ lift = float(self.data.xpos[self.block, 2]-self.initial_object_position[2])
395
+ velocity = np.empty(6)
396
+ mj.mj_objectVelocity(self.model, self.data, mj.mjtObj.mjOBJ_BODY, self.block, velocity, 0)
397
+ distance = float(np.linalg.norm(self.data.xpos[self.block]-self.config.target_position_m))
398
+ drivers = self.data.qpos[self.linkage_qpos[[0, 4]]]
399
+ released = not any(counts.values()) and bool(np.max(drivers) < .1)
400
+ settled = np.linalg.norm(velocity[3:]) < .035 and np.linalg.norm(velocity[:3]) < .3
401
+ clear = self.data.site_xpos[self.tcp, 2] >= self.data.xpos[self.block, 2]+self.config.retreat_clearance_m
402
+ self._outcome_tick(both=both, supported=supported, lift=lift, distance=distance,
403
+ released=released, settled=settled, clear=clear,
404
+ critical=critical, pad_force=max(forces.values()))
405
+ self.warnings.extend(messages)
406
+ self.steps += 1
407
+ if not self.done and self.steps >= round(self.config.timeout_s/self.config.control_dt):
408
+ self.reason, self.done = 'timeout', True
409
+ observation = self.observation() if self._finite() else None
410
+ info = self.info()
411
+ reward = before_distance-info['target_distance_m'] if info['target_distance_m'] is not None else -1.
412
+ return observation, reward, self.done and self.reason != 'timeout', self.done and self.reason == 'timeout', info
413
+
414
+
415
+ class ReferenceTaskPolicy:
416
+ """Authored approach/grasp/place baseline, with no learned model or fallback."""
417
+ def __init__(self, environment):
418
+ self.env, self.phase, self.ticks = environment, 'approach', 0
419
+ self.grasp_position = None
420
+ self.held_offset = None
421
+
422
+ def __call__(self, observation):
423
+ _, np = sim._native_imports()
424
+ c = self.env.config
425
+ obj, tcp, target = (np.asarray(observation[name]) for name in
426
+ ('object_position_m', 'tcp_position_m', 'target_position_m'))
427
+ jaw = 0.
428
+ both = all(observation['grasp_contact_counts'][side] > 0 for side in ('left', 'right'))
429
+ if self.phase == 'approach':
430
+ goal = obj+np.asarray([0., 0., .13])
431
+ if np.linalg.norm(tcp-goal) < .008:
432
+ self.grasp_position = obj+np.asarray([0., 0., .005])
433
+ self.phase, self.ticks = 'descend', 0
434
+ elif self.phase == 'descend':
435
+ goal = self.grasp_position
436
+ if np.linalg.norm(tcp-goal) < .004:
437
+ self.phase, self.ticks = 'close', 0
438
+ elif self.phase == 'close':
439
+ goal, jaw = self.grasp_position, 180.
440
+ if both and min(observation['pad_normal_forces_n'].values()) > .1 and self.ticks >= 25:
441
+ self.held_offset = obj-tcp
442
+ self.phase, self.ticks = 'lift', 0
443
+ elif self.phase == 'lift':
444
+ goal, jaw = self.grasp_position+np.asarray([0., 0., .13]), 180.
445
+ if self.env.lift_seen and np.linalg.norm(tcp-goal) < .008:
446
+ self.phase, self.ticks = 'transfer', 0
447
+ elif self.phase == 'transfer':
448
+ goal, jaw = target-self.held_offset+np.asarray([0., 0., .13]), 180.
449
+ if np.linalg.norm(tcp-goal) < .008:
450
+ self.phase, self.ticks = 'place', 0
451
+ elif self.phase == 'place':
452
+ goal, jaw = target-self.held_offset, 180.
453
+ if observation['table_object_contact_count'] > 0 and np.linalg.norm(obj-target) < .02 and np.linalg.norm(tcp-goal) < .006:
454
+ self.phase, self.ticks = 'release', 0
455
+ elif self.phase == 'release':
456
+ goal = target-self.held_offset
457
+ if not any(observation['grasp_contact_counts'].values()) and self.ticks >= 35:
458
+ self.phase, self.ticks = 'retreat', 0
459
+ else:
460
+ goal = target+np.asarray([0., 0., .135])
461
+ if np.linalg.norm(tcp-goal) < .008:
462
+ self.phase = 'verify'
463
+ self.ticks += 1
464
+ return self.env.pose_action(goal.tolist(), c.tool_orientation_wxyz, jaw)
465
+
466
+
467
+ def run_episode(assets, config=None, *, seed=0, control='placement', arm_tape=None):
468
+ """Retain every issued decision and native state for one attempted episode."""
469
+ config = ReferenceTaskConfig() if config is None else config
470
+ if not isinstance(config, ReferenceTaskConfig):
471
+ raise TypeError('config must be ReferenceTaskConfig')
472
+ if control not in ('placement', 'hold', 'replay_open_jaw'):
473
+ raise ValueError('Unknown reference task control')
474
+ started = time.perf_counter()
475
+ attempt = {'schema': SCHEMA, 'profile': PROFILE, 'scope': SCOPE, 'physical_robot_ready': False,
476
+ 'seed': seed, 'control': control, 'config': asdict(config), 'timestep_seconds': config.timestep,
477
+ 'simulated_seconds': 0., 'valid': False, 'success': False, 'reason': 'not_started',
478
+ 'error': None, 'warnings': [], 'trajectory': [], 'actions': [], 'arm_tape': [],
479
+ 'metrics': {}, 'timing': {}, 'contract': task_contract()}
480
+ source_root = Path(__file__).parent
481
+ attempt['implementation_sha256'] = {name: sha256((source_root / name).read_bytes()).hexdigest()
482
+ for name in ('reference_task.py', 'reference_sim.py', 'reference_assets.lock.json')}
483
+ environment, phase, latencies = None, 'validation', []
484
+ try:
485
+ if control == 'replay_open_jaw':
486
+ if type(arm_tape) is not list or len(arm_tape) != round(config.timeout_s/config.control_dt):
487
+ raise ValueError('Open-jaw control requires exactly one arm target for every configured control tick')
488
+ arm_tape = [list(_vector(row, 6, 'replay arm target')) for row in arm_tape]
489
+ phase = 'setup'
490
+ attempt['asset_provenance'] = sim.verify_assets(assets)
491
+ environment = ReferenceTaskEnv(assets, config)
492
+ observation, info = environment.reset(seed=seed)
493
+ attempt['compiled_model_sha256'] = sim.model_digest(environment.model)
494
+ attempt['initial_object_position_m'] = environment.initial_object_position.tolist()
495
+ attempt['target_position_m'] = list(config.target_position_m)
496
+ attempt['trajectory'].append(observation)
497
+ attempt['timing']['setup_seconds'] = time.perf_counter()-started
498
+ policy = ReferenceTaskPolicy(environment)
499
+ hold = list(observation['joint_position_rad'])
500
+ phase = 'rollout'
501
+ for index in range(round(config.timeout_s/config.control_dt)):
502
+ began = time.perf_counter()
503
+ if control == 'placement':
504
+ action = policy(observation)
505
+ action_phase = policy.phase
506
+ else:
507
+ action = {'joint_targets_rad': hold if control == 'hold' else arm_tape[index],
508
+ 'gripper_0_255': 0.}
509
+ action_phase = control
510
+ record = {'t_seconds': observation['t_seconds'], **action, 'phase': action_phase}
511
+ attempt['actions'].append(record)
512
+ attempt['arm_tape'].append(list(action['joint_targets_rad']))
513
+ observation['issued_joint_targets_rad'] = list(action['joint_targets_rad'])
514
+ observation['issued_gripper_0_255'] = action['gripper_0_255']
515
+ observation['command'] = record
516
+ observation, _, terminated, truncated, info = environment.step(action)
517
+ latencies.append(time.perf_counter()-began)
518
+ if observation is not None:
519
+ attempt['trajectory'].append(observation)
520
+ if terminated or truncated:
521
+ break
522
+ attempt.update(valid=info['valid'], success=info['success'], reason=info['reason'],
523
+ simulated_seconds=info['simulation_time'], warnings=info['warnings'], metrics=info)
524
+ except Exception as exc:
525
+ attempt['error'] = {'phase': phase, 'type': type(exc).__name__, 'message': str(exc)[:500]}
526
+ attempt['reason'] = 'exception'
527
+ if environment is not None:
528
+ attempt['warnings'] = list(getattr(environment, 'warnings', []))
529
+ attempt['simulated_seconds'] = getattr(environment, 'elapsed', 0.)
530
+ elapsed = time.perf_counter()-started
531
+ attempt['timing'].update(episode_wall_seconds=elapsed,
532
+ control_step_seconds=sim._summary(latencies) if latencies else None,
533
+ missed_control_boundaries=sum(latency > config.control_dt for latency in latencies),
534
+ control_boundaries=len(latencies),
535
+ simulated_seconds_per_wall_second=attempt['simulated_seconds']/elapsed,
536
+ scope='Wall computation, not real-time sensor-to-actuator latency. Includes setup, policy/IK, native physics, contacts, observations and trace construction; excludes process startup, output I/O and rendering')
537
+ return attempt
538
+
539
+
540
+ def run_matched(assets, config=None, *, seed=0):
541
+ placement = run_episode(assets, config, seed=seed)
542
+ controls = [run_episode(assets, config, seed=seed, control='replay_open_jaw', arm_tape=placement['arm_tape'])]
543
+ controls.append(run_episode(assets, config, seed=seed, control='hold'))
544
+ return [placement, *controls]
sources/robot_profiles.lock.json ADDED
@@ -0,0 +1,898 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "dvidia.robot-profiles-lock/v1",
3
+ "repository": "https://github.com/google-deepmind/mujoco_menagerie",
4
+ "commit": "0059d4335f8156206f63a35662313385f7ad6d74",
5
+ "profiles": [
6
+ {
7
+ "id": "piper",
8
+ "name": "AgileX PiPER",
9
+ "folder": "agilex_piper",
10
+ "model": "piper.xml",
11
+ "simulation_asset_license": "MIT",
12
+ "arm_axes": 6,
13
+ "gripper_axes": 1,
14
+ "arm_joint_names": [
15
+ "joint1",
16
+ "joint2",
17
+ "joint3",
18
+ "joint4",
19
+ "joint5",
20
+ "joint6"
21
+ ],
22
+ "gripper_joint_names": [
23
+ "joint7",
24
+ "joint8"
25
+ ],
26
+ "actuator_names": [
27
+ "joint1",
28
+ "joint2",
29
+ "joint3",
30
+ "joint4",
31
+ "joint5",
32
+ "joint6",
33
+ "gripper"
34
+ ],
35
+ "native_command_units": [
36
+ "rad",
37
+ "rad",
38
+ "rad",
39
+ "rad",
40
+ "rad",
41
+ "rad",
42
+ "m"
43
+ ],
44
+ "expected_dimensions": {
45
+ "nq": 8,
46
+ "nv": 8,
47
+ "nu": 7,
48
+ "neq": 1
49
+ },
50
+ "tool_frame_body": "link6",
51
+ "tool_frame_scope": "terminal arm link origin; not a calibrated fingertip TCP",
52
+ "gripper_command": "single-finger slide target in metres, native range [0,0.035]; not total jaw gap",
53
+ "sdk_url": "https://github.com/agilexrobotics/piper_sdk",
54
+ "hardware_url": "https://global.agilex.ai/products/piper",
55
+ "upstream_model_url": "https://github.com/google-deepmind/mujoco_menagerie/tree/0059d4335f8156206f63a35662313385f7ad6d74/agilex_piper",
56
+ "openness_scope": "The stated license covers these pinned simulation assets; SDK and physical design licenses must be assessed separately.",
57
+ "files": [
58
+ {
59
+ "path": "agilex_piper/CHANGELOG.md",
60
+ "bytes": 145,
61
+ "sha256": "d54aa5c57eb44153e86ecea15f247bbf6a708100e2d4744b8540eadc274e04f0",
62
+ "git_blob_sha1": "858f2eee85026e4999f2335230b6612be7c0b376"
63
+ },
64
+ {
65
+ "path": "agilex_piper/LICENSE",
66
+ "bytes": 1065,
67
+ "sha256": "e32d78fd3761052ab0b2bb42fef8a7a9ad3f298d315d305333c349d2aff1f134",
68
+ "git_blob_sha1": "1ace5a240f199be4ae0567bed99051213893345c"
69
+ },
70
+ {
71
+ "path": "agilex_piper/README.md",
72
+ "bytes": 1681,
73
+ "sha256": "ab0d218758ec6c298417407962f49179e369236e8f316dbaa7671756d6f8eb77",
74
+ "git_blob_sha1": "7a300b81e0556b580ed4e4942bf0aaa9c90944a8"
75
+ },
76
+ {
77
+ "path": "agilex_piper/assets/base_link.stl",
78
+ "bytes": 535084,
79
+ "sha256": "fd9c5c5816513cae313b6bee70f95474faadd136eb3ea19c68ffa451dfcd962a",
80
+ "git_blob_sha1": "f9ad9da087272dd1916f7f3f872d5236f6a0c0fd"
81
+ },
82
+ {
83
+ "path": "agilex_piper/assets/link1.stl",
84
+ "bytes": 938084,
85
+ "sha256": "2288b210ac2a4a0a6150cbe024870e6d1eee21dea320d5d6d19d17eb3099b8ea",
86
+ "git_blob_sha1": "f29ff2628b6a8bf620b4f9fb7039df790749154d"
87
+ },
88
+ {
89
+ "path": "agilex_piper/assets/link2.stl",
90
+ "bytes": 3595884,
91
+ "sha256": "02e1d9f50eafe7ed69f2352317871e24f758c6181c2c2b192d43999122bc48aa",
92
+ "git_blob_sha1": "2c3ab29ec2ebba230d78d6a708c880dfa44761fb"
93
+ },
94
+ {
95
+ "path": "agilex_piper/assets/link2_0.obj",
96
+ "bytes": 3388066,
97
+ "sha256": "2f44a3bfb67e36f2fb148ef4021ec18a644365b0bb7f43b2f5fdcaef8c42970d",
98
+ "git_blob_sha1": "d3289a5d714821b5ccb728934161133b96e250b1"
99
+ },
100
+ {
101
+ "path": "agilex_piper/assets/link2_1.obj",
102
+ "bytes": 100403,
103
+ "sha256": "5b65b00f6046695a4911f14cc95e5022fc68aa5a456932f2d91d1d80dabd05f4",
104
+ "git_blob_sha1": "923fec63aed4991faddda4961f91e35142e20d0d"
105
+ },
106
+ {
107
+ "path": "agilex_piper/assets/link2_10.obj",
108
+ "bytes": 29779,
109
+ "sha256": "c4b0ac50cdf34d6774c9dd248ac79450d2077497c1696443a02e36d25f1b724c",
110
+ "git_blob_sha1": "5d1f265a4273d707666caeb846db81689380d35e"
111
+ },
112
+ {
113
+ "path": "agilex_piper/assets/link2_11.obj",
114
+ "bytes": 58387,
115
+ "sha256": "525a33293c587749f6cfa6f4e0341a0e791be887e7e72b5493feb53dca74e4d5",
116
+ "git_blob_sha1": "b34ad25291e33e2c66dd545c8fed0d9306109f62"
117
+ },
118
+ {
119
+ "path": "agilex_piper/assets/link2_12.obj",
120
+ "bytes": 55034,
121
+ "sha256": "f2736682eb7d11e96cbded267e617f0512c17d3b85fd047575c265d3780c4728",
122
+ "git_blob_sha1": "58389b5bfc3e5f4f1d4a185ee4d93acf1271cb2e"
123
+ },
124
+ {
125
+ "path": "agilex_piper/assets/link2_13.obj",
126
+ "bytes": 29671,
127
+ "sha256": "d3ec5463a6a9c5ccef97475514d4a536739eba3701c5a8a1a196813e27ec2a46",
128
+ "git_blob_sha1": "f494b675aeac5e126beaa8e8f1a204eb8cefdc5e"
129
+ },
130
+ {
131
+ "path": "agilex_piper/assets/link2_14.obj",
132
+ "bytes": 59190,
133
+ "sha256": "9faa61dbe96d976271574458ad9aa5883d6b663770a191fb62f8b8dd78d389d4",
134
+ "git_blob_sha1": "30dbf5b48b5452adb6f1c5a3193c8f930ea3ef4b"
135
+ },
136
+ {
137
+ "path": "agilex_piper/assets/link2_15.obj",
138
+ "bytes": 29439,
139
+ "sha256": "a39acb181508ebb84b9269438f275fe57c26dcdeb4b64856fb4251975ce78cbd",
140
+ "git_blob_sha1": "ed8de528fe22872d31129c4b2215b8da3b4868c9"
141
+ },
142
+ {
143
+ "path": "agilex_piper/assets/link2_16.obj",
144
+ "bytes": 53557,
145
+ "sha256": "273b405e484c5ae97c442732590ea0e9dfa7af99cf5c2680515f091b6591f526",
146
+ "git_blob_sha1": "5a51f30391e4af7da1d4d81fc7ee874f2015526e"
147
+ },
148
+ {
149
+ "path": "agilex_piper/assets/link2_17.obj",
150
+ "bytes": 29281,
151
+ "sha256": "c62f2c6de9f94def5f46c79c57e605464888804660599790ae0c3cf1b996ed92",
152
+ "git_blob_sha1": "103a6fcdef56fd3cf0d90c29aed7349cace632b3"
153
+ },
154
+ {
155
+ "path": "agilex_piper/assets/link2_18.obj",
156
+ "bytes": 23997,
157
+ "sha256": "3ce81fde3f5605af76340686dd82e67372dfcd2fe15c08bb5a0dbe275b400b70",
158
+ "git_blob_sha1": "1dba62daa44ce61a14ef616370fe7f00fa0f19b6"
159
+ },
160
+ {
161
+ "path": "agilex_piper/assets/link2_19.obj",
162
+ "bytes": 32457,
163
+ "sha256": "39691e367fff1b6dd176c7e27cf8496e6166e41e3f26d98ba4f562834aa3aa57",
164
+ "git_blob_sha1": "33f99f9d1ffb48de04dbea173dc4a8bddb7988a7"
165
+ },
166
+ {
167
+ "path": "agilex_piper/assets/link2_2.obj",
168
+ "bytes": 99885,
169
+ "sha256": "9b0c2ca0300bc1366a29bd0e71d8275c6f81f311349f783845cf6d1bec59de46",
170
+ "git_blob_sha1": "cd470a8505322c136ef7a9f5c195119b99a7c789"
171
+ },
172
+ {
173
+ "path": "agilex_piper/assets/link2_20.obj",
174
+ "bytes": 43817,
175
+ "sha256": "f7123aa41c3b043788097b8660728eed3cbce327d0f54f23959d31e302b28557",
176
+ "git_blob_sha1": "c462d02088d2aa5a993395720697c94edc53653a"
177
+ },
178
+ {
179
+ "path": "agilex_piper/assets/link2_21.obj",
180
+ "bytes": 39258,
181
+ "sha256": "6ffff4a218cd218de6041cc3425189fa737c74ed3cbf17de79401f9673d1a524",
182
+ "git_blob_sha1": "4217db71c544c9726bffa5887a7442103d25d098"
183
+ },
184
+ {
185
+ "path": "agilex_piper/assets/link2_22.obj",
186
+ "bytes": 31373,
187
+ "sha256": "9b0be27413ffdba150f63c456aa7ccb5ed9cd2cc907adf8e09824263c6edf63b",
188
+ "git_blob_sha1": "a5ed5a665bc93502e130c8b4a0d334f1bfde49c0"
189
+ },
190
+ {
191
+ "path": "agilex_piper/assets/link2_23.obj",
192
+ "bytes": 43902,
193
+ "sha256": "e0a34cd191bfedfc0a71c1bf478222c9d694dc305bf59efb37b357260cc90335",
194
+ "git_blob_sha1": "27a226ce929f179c4c503016125d04cc4206ab4d"
195
+ },
196
+ {
197
+ "path": "agilex_piper/assets/link2_24.obj",
198
+ "bytes": 39526,
199
+ "sha256": "2012cbea054ddefb6f7308e86be07e4a382a5f516673f4f95fb77250bc2dc1cc",
200
+ "git_blob_sha1": "13ce81f89b79b92a7c5c5127348ef8433748e625"
201
+ },
202
+ {
203
+ "path": "agilex_piper/assets/link2_25.obj",
204
+ "bytes": 24111,
205
+ "sha256": "a44629754983f45de28d7a9ad827ea30d2e6ee9565a7741f86f505636808ddfb",
206
+ "git_blob_sha1": "5f5d981b21daf475ea0e2145c9dd632922c59e78"
207
+ },
208
+ {
209
+ "path": "agilex_piper/assets/link2_26.obj",
210
+ "bytes": 51974,
211
+ "sha256": "f2c2140893951632fc4f0f4c5428cdac234c131d0e3dbcddf4e90c3446663f11",
212
+ "git_blob_sha1": "1e7c9f811c5f74c988fccf06500965b04164d81e"
213
+ },
214
+ {
215
+ "path": "agilex_piper/assets/link2_27.obj",
216
+ "bytes": 24075,
217
+ "sha256": "a8078b9214cf7c8980dc567bd6ab6367b98ff0f568e907867554458fa1b1ab93",
218
+ "git_blob_sha1": "4fff84e8cb5391b3f1eac188faa5c453165bf5d2"
219
+ },
220
+ {
221
+ "path": "agilex_piper/assets/link2_28.obj",
222
+ "bytes": 12884,
223
+ "sha256": "b72a71a458fc99d2429991fb3d0e86b717d93af2c489dafdcdff6629ac7ee0ac",
224
+ "git_blob_sha1": "eea332c3048c9f2b801ef8bde9fcd13129d89ad3"
225
+ },
226
+ {
227
+ "path": "agilex_piper/assets/link2_29.obj",
228
+ "bytes": 25090,
229
+ "sha256": "56c22bba80c0b62036148b9b0e7844a342d6dd485fc0570d98b84a7cdb63cbec",
230
+ "git_blob_sha1": "3bf7eb67f1555ee2fd70927ce1aec38fd79f4d4d"
231
+ },
232
+ {
233
+ "path": "agilex_piper/assets/link2_3.obj",
234
+ "bytes": 282937,
235
+ "sha256": "b77b1bb82f0884edfce81287d63af47f9182975dfebd4f6698f52610e085481b",
236
+ "git_blob_sha1": "3fe63f019200cac9860ab6f34a1d6e7a12f74983"
237
+ },
238
+ {
239
+ "path": "agilex_piper/assets/link2_30.obj",
240
+ "bytes": 12280,
241
+ "sha256": "525d7dfae5bcbb7d60c86ca52103a6def0b47fa0ae18dadda7f5e2282d1fd894",
242
+ "git_blob_sha1": "0ff2accf7f221afaa35618c3557b8b6d366414d5"
243
+ },
244
+ {
245
+ "path": "agilex_piper/assets/link2_31.obj",
246
+ "bytes": 4621268,
247
+ "sha256": "db4ebec6fdcdd5f7a9cfe0986b3d7680bad4d71708f3dacb5c0ff7c9842d8632",
248
+ "git_blob_sha1": "103a8ecfaa09c4dd0385dd53c223d26f5df5b584"
249
+ },
250
+ {
251
+ "path": "agilex_piper/assets/link2_4.obj",
252
+ "bytes": 274531,
253
+ "sha256": "30e76263f4b8c94b7df6b62f846ac8cb46d32d11fbc1b84e4a417993e09b0e06",
254
+ "git_blob_sha1": "fc0f84fdb99707ede0fb74db51d47dea0fa3f59c"
255
+ },
256
+ {
257
+ "path": "agilex_piper/assets/link2_5.obj",
258
+ "bytes": 29647,
259
+ "sha256": "43b61bb3fdc6ad91b973b860b11f59094bb400497e19de76725698dde2c87cff",
260
+ "git_blob_sha1": "5f54e060b30ea841f9946e99a0a53931f8bebf55"
261
+ },
262
+ {
263
+ "path": "agilex_piper/assets/link2_6.obj",
264
+ "bytes": 30085,
265
+ "sha256": "1d8c48045ea3da9d40bc5dad27d589f44ea705867f53e8546c13af88c32238d6",
266
+ "git_blob_sha1": "6029251f4eb245c92d025307927b109eda920f26"
267
+ },
268
+ {
269
+ "path": "agilex_piper/assets/link2_7.obj",
270
+ "bytes": 52047,
271
+ "sha256": "7036e70d8e869de5d52f2a0cb6661430e9a0a3dfbcf9c08f3cf6344a8893fcbc",
272
+ "git_blob_sha1": "149961f1003ea390d05ccab73875367d28e0fe39"
273
+ },
274
+ {
275
+ "path": "agilex_piper/assets/link2_8.obj",
276
+ "bytes": 53837,
277
+ "sha256": "5201670ce6c0f34de7770f4079b83d5fb2f815c60e6af69b545e055b74e99092",
278
+ "git_blob_sha1": "0dc54a211e59374fc5372b18ecf0da8ed602f78f"
279
+ },
280
+ {
281
+ "path": "agilex_piper/assets/link2_9.obj",
282
+ "bytes": 55512,
283
+ "sha256": "af4a6540278f1694def7f09a355bd967e7840dc67ea02b5e75cf9a5cec348315",
284
+ "git_blob_sha1": "8b314083f9159cd2479a3d289853cc0e4121fed7"
285
+ },
286
+ {
287
+ "path": "agilex_piper/assets/link2_gray.stl",
288
+ "bytes": 41284,
289
+ "sha256": "891335b5109fb65d3dddb4888dc0c318bca33b7fb6809ab31a6998dbf848a4a6",
290
+ "git_blob_sha1": "923708414163c51c1c9489c7fa709335d61af4c9"
291
+ },
292
+ {
293
+ "path": "agilex_piper/assets/link2_red.stl",
294
+ "bytes": 191084,
295
+ "sha256": "1279d1bbf9ffee557ec9ee95eefd80e86cf88ed7d7960a6bd56e6871e56d335b",
296
+ "git_blob_sha1": "550716b85041a917e8b2cde6f2fadee9b7341804"
297
+ },
298
+ {
299
+ "path": "agilex_piper/assets/link3.stl",
300
+ "bytes": 2703584,
301
+ "sha256": "3ed8aa63ae21403d85d0f818d4d6a098eff435b2eb7d2372306857c9c5538f50",
302
+ "git_blob_sha1": "56c2bf45abd6d8ce6d5bfe6d732a98a04d3d4126"
303
+ },
304
+ {
305
+ "path": "agilex_piper/assets/link3_0.obj",
306
+ "bytes": 314533,
307
+ "sha256": "eb211f9bce1811834760b1387aab0e8c1ff11ebd3bb5aa89fa3fe2cc537e51c1",
308
+ "git_blob_sha1": "26a21dbb104b99f4fc1c7b569d624ae256f96c0c"
309
+ },
310
+ {
311
+ "path": "agilex_piper/assets/link3_1.obj",
312
+ "bytes": 4236,
313
+ "sha256": "2e880f0454de98559bae42e8b7d323e5226692e4af9f8a50ed4b7f8e6dc906e9",
314
+ "git_blob_sha1": "12dc2bf84617e9dd06e6dcb1061c6160906c7bd1"
315
+ },
316
+ {
317
+ "path": "agilex_piper/assets/link3_10.obj",
318
+ "bytes": 11974,
319
+ "sha256": "d314f8101be5ba36289c4c7475a5c45504e09c9a9fd453d3167ec410833e3823",
320
+ "git_blob_sha1": "ce51455b164f4854c09887eafdabe368b9221817"
321
+ },
322
+ {
323
+ "path": "agilex_piper/assets/link3_11.obj",
324
+ "bytes": 20406,
325
+ "sha256": "4c8ab2f5fb630127d954cf6be38da416b8627204643f1d4abd4b055d270bd346",
326
+ "git_blob_sha1": "25aaa35997a5c066b055b8d855e89cbe9073e456"
327
+ },
328
+ {
329
+ "path": "agilex_piper/assets/link3_12.obj",
330
+ "bytes": 24374,
331
+ "sha256": "bb3b1f3200ac8c6fb3807db2f032819e9cba9a942b48d0ee8dc5777c7507e4f5",
332
+ "git_blob_sha1": "d30cf3dcf9192818ab056ff4f96d504056becad8"
333
+ },
334
+ {
335
+ "path": "agilex_piper/assets/link3_13.obj",
336
+ "bytes": 28094,
337
+ "sha256": "69b34c59953286bc059a88a38d7fb818881a419ee2b03d801a3f6407c23cc525",
338
+ "git_blob_sha1": "5b68eef9f81b1f0aff2745ccc22f5f49f33f7476"
339
+ },
340
+ {
341
+ "path": "agilex_piper/assets/link3_14.obj",
342
+ "bytes": 2236465,
343
+ "sha256": "9fc1bacbb5c7c4fc1006aca33bc6ca94717edc9e2415f94773d7d645c14b47e7",
344
+ "git_blob_sha1": "8c74e8300129f0ad948dbc38a5d0bfe832eef268"
345
+ },
346
+ {
347
+ "path": "agilex_piper/assets/link3_15.obj",
348
+ "bytes": 361248,
349
+ "sha256": "c21278046e13ef3875e6703ed55b5b50837c78072d1b30218e61873f88896553",
350
+ "git_blob_sha1": "49255a6b82be626ff79ee6350b193819c74398e4"
351
+ },
352
+ {
353
+ "path": "agilex_piper/assets/link3_16.obj",
354
+ "bytes": 410181,
355
+ "sha256": "a9d63ea9f2a334e2f68c657ad3493c294caedaab3bf1fe3efd89063c62a6d04b",
356
+ "git_blob_sha1": "442d11df89c7be63a34c4cc2e96e847c26478d3e"
357
+ },
358
+ {
359
+ "path": "agilex_piper/assets/link3_17.obj",
360
+ "bytes": 328947,
361
+ "sha256": "a540b4325a096b17575f853165ba9c57b3743255f88c2d1076c916de397e24bd",
362
+ "git_blob_sha1": "2df4f49e59563cab88f2230c110de9d2ddbb0ecf"
363
+ },
364
+ {
365
+ "path": "agilex_piper/assets/link3_18.obj",
366
+ "bytes": 485677,
367
+ "sha256": "3315ddfb4fb0cc496411284f01575205bb665810e47e2a03e3d96a570490ef57",
368
+ "git_blob_sha1": "5689ea1e2193bd8794ea24d0c121ae3ee4c6af00"
369
+ },
370
+ {
371
+ "path": "agilex_piper/assets/link3_19.obj",
372
+ "bytes": 441403,
373
+ "sha256": "b945dc6e756c049bf6734dab4a485374ce6cefca00478f2e06520664003911e0",
374
+ "git_blob_sha1": "67ec3c91f88360c7391ea0c5535c0706d44adfc5"
375
+ },
376
+ {
377
+ "path": "agilex_piper/assets/link3_2.obj",
378
+ "bytes": 12776,
379
+ "sha256": "61f9aa738ed625e189d401ed380ae4198e7317854ea352ab1494aa760de6d522",
380
+ "git_blob_sha1": "87eca49d38efbcd48e8ea21fe5b649056fbd86c7"
381
+ },
382
+ {
383
+ "path": "agilex_piper/assets/link3_20.obj",
384
+ "bytes": 371433,
385
+ "sha256": "c622a302f1beb5d536178c6d2d4ed040d3813418c70e624bdbaa3e518392ab8e",
386
+ "git_blob_sha1": "1bf067c1f87416008228d6f7bf5f9cad80bfa00b"
387
+ },
388
+ {
389
+ "path": "agilex_piper/assets/link3_21.obj",
390
+ "bytes": 366150,
391
+ "sha256": "d4cddc3ab6e624953f617dd0bde38a4ba16c896cde08fe145a3c5de4374e41d8",
392
+ "git_blob_sha1": "ce8914e49cc392267283972b4982980866edde22"
393
+ },
394
+ {
395
+ "path": "agilex_piper/assets/link3_22.obj",
396
+ "bytes": 406666,
397
+ "sha256": "cebfa57377d59979668eaf5138ae67cfb4e4174f35dd399cb8bcb3ba579b5f30",
398
+ "git_blob_sha1": "0b553507026cdd21e401bded74b9e5340dbb486d"
399
+ },
400
+ {
401
+ "path": "agilex_piper/assets/link3_23.obj",
402
+ "bytes": 372094,
403
+ "sha256": "0c4baba793261715bf3d0b08402306f4fcc7c0b677d61ae92ae14abbf6eac92d",
404
+ "git_blob_sha1": "dca1d8ec4609f96890448e5af82530fe6e711264"
405
+ },
406
+ {
407
+ "path": "agilex_piper/assets/link3_24.obj",
408
+ "bytes": 27673,
409
+ "sha256": "ef5b5780161af47cda0651416b43c377a95adffb1d095e270cf4722e81811da9",
410
+ "git_blob_sha1": "a7b1c526939b07a27e32bde3d747e07763e01ce3"
411
+ },
412
+ {
413
+ "path": "agilex_piper/assets/link3_25.obj",
414
+ "bytes": 27968,
415
+ "sha256": "99e9de5b421cec36ba4755737832e80615a478a2bfde7dff21ce46f0843c3dd5",
416
+ "git_blob_sha1": "2bb433399cbb7aecbfa5746f92324eb9ce3cf423"
417
+ },
418
+ {
419
+ "path": "agilex_piper/assets/link3_26.obj",
420
+ "bytes": 28048,
421
+ "sha256": "d95e4318b185e58def277c7365efb3bbeff929f8400e266f686361bf7876ccc6",
422
+ "git_blob_sha1": "973660334f4e1c00b1786d174bed2cb728693fcf"
423
+ },
424
+ {
425
+ "path": "agilex_piper/assets/link3_27.obj",
426
+ "bytes": 593047,
427
+ "sha256": "5d38cceb70f130efe6a2d77dc4dc58d2bed7f1679fbbae6c48e58d5a0c58a5ab",
428
+ "git_blob_sha1": "f1617cdc13207ea4fc0cd77eb48f978b83726f11"
429
+ },
430
+ {
431
+ "path": "agilex_piper/assets/link3_28.obj",
432
+ "bytes": 385831,
433
+ "sha256": "62c52edf1d67808f7f6739b0ba2fc387b0465f362f50eba415d459f2b6241148",
434
+ "git_blob_sha1": "8a9eec4ee3fd2bba28882bd09f11aaa1587402ef"
435
+ },
436
+ {
437
+ "path": "agilex_piper/assets/link3_3.obj",
438
+ "bytes": 21158,
439
+ "sha256": "82430d358437e045d74d0f829acc27fbd30900dd59bc113ed5bbc146524e5afa",
440
+ "git_blob_sha1": "ece273c010cac22ac7d5e3273d2a9ceedb28ca10"
441
+ },
442
+ {
443
+ "path": "agilex_piper/assets/link3_4.obj",
444
+ "bytes": 24968,
445
+ "sha256": "bd40cb87fff5c678b571b1abbb3435618b07c7fab5875f71c894a434a7203254",
446
+ "git_blob_sha1": "099a0f5a01acc9d266ecbf05dfcc0564a453449e"
447
+ },
448
+ {
449
+ "path": "agilex_piper/assets/link3_5.obj",
450
+ "bytes": 29032,
451
+ "sha256": "ed69d967cb2c1b4533042727ba3a1d56148afdc13bdea019b05c51ddd6bd42a3",
452
+ "git_blob_sha1": "6c7a54a2ffef1d70d40d4be9e363544f6f39638f"
453
+ },
454
+ {
455
+ "path": "agilex_piper/assets/link3_7.obj",
456
+ "bytes": 306050,
457
+ "sha256": "334b08b12313bffcc34af5cc9af8a08073d25ce9fd1db9d518087f1ee080476b",
458
+ "git_blob_sha1": "e3c5c7023959b0b7b2bd2f70525f5c868ed7273e"
459
+ },
460
+ {
461
+ "path": "agilex_piper/assets/link3_8.obj",
462
+ "bytes": 18174,
463
+ "sha256": "58893e8ea1f2a1a732689747513b4d4855863c7f65f3c21594d0c8dceeebe002",
464
+ "git_blob_sha1": "d866ac46cb06f0ebad304a28743c46ba50a8c768"
465
+ },
466
+ {
467
+ "path": "agilex_piper/assets/link3_9.obj",
468
+ "bytes": 4134,
469
+ "sha256": "b5805f1cca9993e06f34d20e703d3ccee6dddedb25cb6c4f14d53dab856b95d3",
470
+ "git_blob_sha1": "1d73f7a9ff6e0c4d47e4ea8b316f17300d083dcb"
471
+ },
472
+ {
473
+ "path": "agilex_piper/assets/link4.stl",
474
+ "bytes": 730484,
475
+ "sha256": "e58f7bfa284c7a6a23faf3945ffba5735d5d7c168953d8947c8ff09428f8881a",
476
+ "git_blob_sha1": "6077b622cd7a06473ce703221106f5c5e731c6cb"
477
+ },
478
+ {
479
+ "path": "agilex_piper/assets/link4_2.obj",
480
+ "bytes": 496498,
481
+ "sha256": "8ff1075944a0ac7f54295b44cf6d1474daf81e968f19c03ac892b921aaa6cb85",
482
+ "git_blob_sha1": "154ec12b183273e25c0b67ad93dbbeac31883a8e"
483
+ },
484
+ {
485
+ "path": "agilex_piper/assets/link4_3.obj",
486
+ "bytes": 389641,
487
+ "sha256": "1f76a433db58d61e71364d08223341de0d900cc048aa02f481568d919f06ec05",
488
+ "git_blob_sha1": "168ee256f67bb93935715444a92748b38f7fb009"
489
+ },
490
+ {
491
+ "path": "agilex_piper/assets/link4_4.obj",
492
+ "bytes": 188047,
493
+ "sha256": "49d3390041498df885e647ff9e00af72c18feb16d421a074771c87662e34d3f6",
494
+ "git_blob_sha1": "dfa070074072cd2a1b8cbe639dc187cc274c0524"
495
+ },
496
+ {
497
+ "path": "agilex_piper/assets/link4_5.obj",
498
+ "bytes": 390967,
499
+ "sha256": "a180f6d5aa83e7153d8b32257f35ca08c8520ddffad0344959a7ff40117a63d2",
500
+ "git_blob_sha1": "9f1236ec76ace4c351aa894f56582bd9c7933263"
501
+ },
502
+ {
503
+ "path": "agilex_piper/assets/link4_6.obj",
504
+ "bytes": 315503,
505
+ "sha256": "755bed6a3ea29a45ce000fa42db84e6eb5d4f719c04f6f7e52705df933027c1c",
506
+ "git_blob_sha1": "fa9a54d142a9738e001a967e8b4a1f1a0d03c0b5"
507
+ },
508
+ {
509
+ "path": "agilex_piper/assets/link5.stl",
510
+ "bytes": 1147884,
511
+ "sha256": "76d638a20581ce52befc3adc360bf7cf769937befc03803a485e6c689ce316fd",
512
+ "git_blob_sha1": "6b6f5ee6ea996a33b198ce3e0580b50d5a30696f"
513
+ },
514
+ {
515
+ "path": "agilex_piper/assets/link5_2.obj",
516
+ "bytes": 313882,
517
+ "sha256": "b12395b1f63009f3b716a0a18519693e1114205f2c90c61fca75c00faa00252e",
518
+ "git_blob_sha1": "3f48e736b5ca589adff4f6497602c53a535668d9"
519
+ },
520
+ {
521
+ "path": "agilex_piper/assets/link5_3.obj",
522
+ "bytes": 86793,
523
+ "sha256": "05feb3afbc6d4a0114561237bdafc10d28a6743c9c1912503be3b9567551d99a",
524
+ "git_blob_sha1": "74be807a5761be91dffea478f6e2154f1a5ffc52"
525
+ },
526
+ {
527
+ "path": "agilex_piper/assets/link5_4.obj",
528
+ "bytes": 485245,
529
+ "sha256": "76a6db8f453e627871a6000f50cdfb8ea6603c30ff2c985f3a2ef72c4e20273d",
530
+ "git_blob_sha1": "341a3ecbcae8b2b3170c1721926abd83b1d33d6a"
531
+ },
532
+ {
533
+ "path": "agilex_piper/assets/link5_5.obj",
534
+ "bytes": 237046,
535
+ "sha256": "7e5e43c40857ac14b5b2a60456a55cd0bc60162f8151348c7b2c47bfa5d4513a",
536
+ "git_blob_sha1": "16605db3217caa8a9aae37cf6eb7b8e10ee7f529"
537
+ },
538
+ {
539
+ "path": "agilex_piper/assets/link5_6.obj",
540
+ "bytes": 689622,
541
+ "sha256": "bedac642badd06af0d9a5834eda868f1577a926fad59e6d15a5d5252a3d950f5",
542
+ "git_blob_sha1": "d4a80c6ad6650e40cb1d62c95af10f0af3a44381"
543
+ },
544
+ {
545
+ "path": "agilex_piper/assets/link5_7.obj",
546
+ "bytes": 1081203,
547
+ "sha256": "52b6bff4dfd2f3fe18b2fb676d05f2da30ab4053300c11ef0e1dbfab46058028",
548
+ "git_blob_sha1": "750598d7e93a77819afab21bd7c94c7019a0a2ae"
549
+ },
550
+ {
551
+ "path": "agilex_piper/assets/link5_8.obj",
552
+ "bytes": 335282,
553
+ "sha256": "ee698e03a1ed3828abca997290ca93aef140476616ab81d7baacd9c45fc6698a",
554
+ "git_blob_sha1": "08975a4036619130951be09f8c0b5163f7a8dd8a"
555
+ },
556
+ {
557
+ "path": "agilex_piper/assets/link6.stl",
558
+ "bytes": 671184,
559
+ "sha256": "e0b2050ba81a45c79c045b9f13e3d1dd11f84bca1beb12eebc3102651c8476cf",
560
+ "git_blob_sha1": "40e0d81827fb1f9ff69424d0328d355cf2c803a7"
561
+ },
562
+ {
563
+ "path": "agilex_piper/assets/link7.stl",
564
+ "bytes": 91984,
565
+ "sha256": "907dcdd10498a9d2e9317e42f550570a4ca522d1c4ff7b7c8721fd5cb951e481",
566
+ "git_blob_sha1": "ef2a30ca89fe970588b4fdbfcf58e9ceb6b8565e"
567
+ },
568
+ {
569
+ "path": "agilex_piper/assets/link8.stl",
570
+ "bytes": 91884,
571
+ "sha256": "5552c0fda737f3abfa1e324ee8a4284dc473a17a0ca5fcbf35d61ca3e6701a18",
572
+ "git_blob_sha1": "f8e75c1d7bc6e77b7cd2cc5d30ef773c88fc5e64"
573
+ },
574
+ {
575
+ "path": "agilex_piper/assets/linke2_dark_gray.stl",
576
+ "bytes": 17284,
577
+ "sha256": "6d2ef825b5f4291be6e44e4fb7cdae03eac3a3df08b0d777b776690ec9d07426",
578
+ "git_blob_sha1": "2a33b3dac2dd03fb2e92e65e8a0b24500a8c478c"
579
+ },
580
+ {
581
+ "path": "agilex_piper/piper.png",
582
+ "bytes": 1378578,
583
+ "sha256": "3826ccfb2aed85eaeef2f48604fd5059caa764ac47fcf928b5c3a3d8ec02c682",
584
+ "git_blob_sha1": "1270421db3b4cb27dfc09dd8e27ac02fc4d9f738"
585
+ },
586
+ {
587
+ "path": "agilex_piper/piper.xml",
588
+ "bytes": 14537,
589
+ "sha256": "a7b5b5d3b2a68d5c553b2ee9665d54a422bd8bf1fa6f3251bc11834993d37098",
590
+ "git_blob_sha1": "8b8962d805b519bc25f764316abf65bb3f6d8f37"
591
+ },
592
+ {
593
+ "path": "agilex_piper/scene.xml",
594
+ "bytes": 819,
595
+ "sha256": "a4146e916ab3a85f5cfdc4139e2844b686bdaa2109f6ce2486df7e43b53bf602",
596
+ "git_blob_sha1": "3025eb80f088a9075e55561efa89a2929b5dfe2a"
597
+ }
598
+ ],
599
+ "native_joint_position_units": [
600
+ "rad",
601
+ "rad",
602
+ "rad",
603
+ "rad",
604
+ "rad",
605
+ "rad",
606
+ "m",
607
+ "m"
608
+ ],
609
+ "native_actuator_force_units": [
610
+ "Nm",
611
+ "Nm",
612
+ "Nm",
613
+ "Nm",
614
+ "Nm",
615
+ "Nm",
616
+ "N"
617
+ ],
618
+ "native_command_range": [
619
+ [
620
+ -2.618,
621
+ 2.618
622
+ ],
623
+ [
624
+ 0.0,
625
+ 3.14
626
+ ],
627
+ [
628
+ -2.697,
629
+ 0.0
630
+ ],
631
+ [
632
+ -1.832,
633
+ 1.832
634
+ ],
635
+ [
636
+ -1.22,
637
+ 1.22
638
+ ],
639
+ [
640
+ -3.14,
641
+ 3.14
642
+ ],
643
+ [
644
+ 0.0,
645
+ 0.035
646
+ ]
647
+ ]
648
+ },
649
+ {
650
+ "id": "so101",
651
+ "name": "The Robot Studio SO101",
652
+ "folder": "robotstudio_so101",
653
+ "model": "so101.xml",
654
+ "simulation_asset_license": "Apache-2.0",
655
+ "arm_axes": 5,
656
+ "gripper_axes": 1,
657
+ "arm_joint_names": [
658
+ "shoulder_pan",
659
+ "shoulder_lift",
660
+ "elbow_flex",
661
+ "wrist_flex",
662
+ "wrist_roll"
663
+ ],
664
+ "gripper_joint_names": [
665
+ "gripper"
666
+ ],
667
+ "actuator_names": [
668
+ "shoulder_pan",
669
+ "shoulder_lift",
670
+ "elbow_flex",
671
+ "wrist_flex",
672
+ "wrist_roll",
673
+ "gripper"
674
+ ],
675
+ "native_command_units": [
676
+ "rad",
677
+ "rad",
678
+ "rad",
679
+ "rad",
680
+ "rad",
681
+ "rad"
682
+ ],
683
+ "expected_dimensions": {
684
+ "nq": 6,
685
+ "nv": 6,
686
+ "nu": 6,
687
+ "neq": 0
688
+ },
689
+ "tool_frame_body": "gripper",
690
+ "tool_frame_scope": "native gripper link origin; not a calibrated fingertip TCP",
691
+ "gripper_command": "moving-jaw hinge angle target in radians; not linear jaw gap",
692
+ "sdk_url": "https://github.com/huggingface/lerobot",
693
+ "hardware_url": "https://github.com/TheRobotStudio/SO-ARM100",
694
+ "upstream_model_url": "https://github.com/google-deepmind/mujoco_menagerie/tree/0059d4335f8156206f63a35662313385f7ad6d74/robotstudio_so101",
695
+ "openness_scope": "The stated license covers these pinned simulation assets; SDK and physical design licenses must be assessed separately.",
696
+ "files": [
697
+ {
698
+ "path": "robotstudio_so101/CHANGELOG.md",
699
+ "bytes": 391,
700
+ "sha256": "ac7f6205e40f0fb2bc08ff3ff4c5e5092dacf8d78cb03f024ae9aae33738acc4",
701
+ "git_blob_sha1": "d8318d4c49688f8ea714e4dce5349c4958783d0e"
702
+ },
703
+ {
704
+ "path": "robotstudio_so101/LICENSE",
705
+ "bytes": 11357,
706
+ "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
707
+ "git_blob_sha1": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64"
708
+ },
709
+ {
710
+ "path": "robotstudio_so101/README.md",
711
+ "bytes": 1142,
712
+ "sha256": "e2344e7c14290bed85c7907247aecb8bf6cb4392e3de0d7c45680efe9bb9b5a9",
713
+ "git_blob_sha1": "65129dba053c84d2ad384b1922cea46b119e9036"
714
+ },
715
+ {
716
+ "path": "robotstudio_so101/assets/base_motor_holder_so101_v1.stl",
717
+ "bytes": 1877084,
718
+ "sha256": "8cd2f241037ea377af1191fffe0dd9d9006beea6dcc48543660ed41647072424",
719
+ "git_blob_sha1": "cac2b8dd98d3d8a6dcdf429b36aaa4b576d82041"
720
+ },
721
+ {
722
+ "path": "robotstudio_so101/assets/base_so101_v2.stl",
723
+ "bytes": 471584,
724
+ "sha256": "bb12b7026575e1f70ccc7240051f9d943553bf34e5128537de6cd86fae33924d",
725
+ "git_blob_sha1": "ed10aa61d1181f8001c908ee5cae5c4f970ba417"
726
+ },
727
+ {
728
+ "path": "robotstudio_so101/assets/motor_holder_so101_base_v1.stl",
729
+ "bytes": 1129384,
730
+ "sha256": "31242ae6fb59d8b15c66617b88ad8e9bded62d57c35d11c0c43a70d2f4caa95b",
731
+ "git_blob_sha1": "9eaf67243a5ffc2dacb3fbd026b4c0620adcdd66"
732
+ },
733
+ {
734
+ "path": "robotstudio_so101/assets/motor_holder_so101_wrist_v1.stl",
735
+ "bytes": 1052184,
736
+ "sha256": "887f92e6013cb64ea3a1ab8675e92da1e0beacfd5e001f972523540545e08011",
737
+ "git_blob_sha1": "d0aa18b15a9cd63f41fa4d48e82df7a3b618c75d"
738
+ },
739
+ {
740
+ "path": "robotstudio_so101/assets/moving_jaw_so101_gripper_part0_v1.stl",
741
+ "bytes": 50684,
742
+ "sha256": "3a92e115d1934d4c45cff808c4eff2ea10361a137a7f89940033a1f8a821b88c",
743
+ "git_blob_sha1": "d8dd83494b31952e2f52432bc9624e74bd241030"
744
+ },
745
+ {
746
+ "path": "robotstudio_so101/assets/moving_jaw_so101_gripper_part1_v1.stl",
747
+ "bytes": 342684,
748
+ "sha256": "d10f6c671d26f62988ec95efee9370a0657b5833b3c5f8aad59fd69a87ef2aee",
749
+ "git_blob_sha1": "ed758675140114dbab751f93ea7d40b8d27e4594"
750
+ },
751
+ {
752
+ "path": "robotstudio_so101/assets/moving_jaw_so101_gripper_v1.stl",
753
+ "bytes": 690384,
754
+ "sha256": "e8a5dc040b98e27453a5b74f9087d1dbca14589cf9a17c4de7868d5ab98413cd",
755
+ "git_blob_sha1": "f5bd23f855f0d90f73d00abef90576d0c7120719"
756
+ },
757
+ {
758
+ "path": "robotstudio_so101/assets/moving_jaw_so101_v1.stl",
759
+ "bytes": 1413584,
760
+ "sha256": "785a9dded2f474bc1d869e0d3dae398a3dcd9c0c345640040472210d2861fa9d",
761
+ "git_blob_sha1": "7e8736686592072cf34c7f6e2e6e88f8a3ba60bb"
762
+ },
763
+ {
764
+ "path": "robotstudio_so101/assets/rotation_pitch_so101_v1.stl",
765
+ "bytes": 883684,
766
+ "sha256": "9be900cc2a2bf718102841ef82ef8d2873842427648092c8ed2ca1e2ef4ffa34",
767
+ "git_blob_sha1": "5c05dee570623f62c4ab7597d76c7bdea20eacea"
768
+ },
769
+ {
770
+ "path": "robotstudio_so101/assets/sts3215_03a_no_horn_v1.stl",
771
+ "bytes": 865884,
772
+ "sha256": "75ef3781b752e4065891aea855e34dc161a38a549549cd0970cedd07eae6f887",
773
+ "git_blob_sha1": "2a89597702f5ec6849b6b1b894c867b35b98ca42"
774
+ },
775
+ {
776
+ "path": "robotstudio_so101/assets/sts3215_03a_v1.stl",
777
+ "bytes": 954084,
778
+ "sha256": "a37c871fb502483ab96c256baf457d36f2e97afc9205313d9c5ab275ef941cd0",
779
+ "git_blob_sha1": "fe05403dbfac7a26822b8c8cd0fc3d5288a69fc8"
780
+ },
781
+ {
782
+ "path": "robotstudio_so101/assets/under_arm_so101_v1.stl",
783
+ "bytes": 1975884,
784
+ "sha256": "d01d1f2de365651dcad9d6669e94ff87ff7652b5bb2d10752a66a456a86dbc71",
785
+ "git_blob_sha1": "480e0583c8bb27ff9affefbebee72b784fb054c8"
786
+ },
787
+ {
788
+ "path": "robotstudio_so101/assets/upper_arm_so101_v1.stl",
789
+ "bytes": 1303484,
790
+ "sha256": "475056e03a17e71919b82fd88ab9a0b898ab50164f2a7943652a6b2941bb2d4f",
791
+ "git_blob_sha1": "9c0f9b275a51f720476e529c92193f4f69d4784c"
792
+ },
793
+ {
794
+ "path": "robotstudio_so101/assets/waveshare_mounting_plate_so101_v2.stl",
795
+ "bytes": 62784,
796
+ "sha256": "e197e24005a07d01bbc06a8c42311664eaeda415bf859f68fa247884d0f1a6e9",
797
+ "git_blob_sha1": "4dba1f22b01ab9afef2466872fcb3e1efca89e38"
798
+ },
799
+ {
800
+ "path": "robotstudio_so101/assets/wrist_roll_follower_so101_camera_mount.stl",
801
+ "bytes": 122884,
802
+ "sha256": "58c457b33a26d9c9bb337aa351173e7123f84719a93f486541adef6eba57ae21",
803
+ "git_blob_sha1": "dfe1ecc5e11eb79280c032148ad6ba68a21c431e"
804
+ },
805
+ {
806
+ "path": "robotstudio_so101/assets/wrist_roll_follower_so101_gripper_part0_v1.stl",
807
+ "bytes": 73784,
808
+ "sha256": "370eb470a6ab48b08febcaeb5274d2bcc91246692532ce12c795fb82977def72",
809
+ "git_blob_sha1": "7a6bdae516080bd381758fb87cfa48beab3c96b9"
810
+ },
811
+ {
812
+ "path": "robotstudio_so101/assets/wrist_roll_follower_so101_gripper_v1.stl",
813
+ "bytes": 741684,
814
+ "sha256": "65f32debcf265420c0160afe004f8befc5df4b3e578fd59ebaa62eade0371224",
815
+ "git_blob_sha1": "279308978e9d64d0bb231968d6169ce78aa0ebde"
816
+ },
817
+ {
818
+ "path": "robotstudio_so101/assets/wrist_roll_follower_so101_v1.stl",
819
+ "bytes": 1439884,
820
+ "sha256": "4b17b410a12d64ec39554abc3e8054d8a97384b2dc4a8d95a5ecb2a93670f5f4",
821
+ "git_blob_sha1": "123ce374ad3efc240e4d7022f31314e59fe4b0c0"
822
+ },
823
+ {
824
+ "path": "robotstudio_so101/assets/wrist_roll_pitch_so101_v2.stl",
825
+ "bytes": 2699784,
826
+ "sha256": "6c7ec5525b4d8b9e397a30ab4bb0037156a5d5f38a4adf2c7d943d6c56eda5ae",
827
+ "git_blob_sha1": "ac5172a35e6da3e9fdea21e25803f23cc61e31f1"
828
+ },
829
+ {
830
+ "path": "robotstudio_so101/scene.xml",
831
+ "bytes": 825,
832
+ "sha256": "d3037f0fd36b61a9b6805b2c79831e7a392276d0f490145d01f718542eee9150",
833
+ "git_blob_sha1": "f6d8d5b119f0966a8c1139fa65277355b8474327"
834
+ },
835
+ {
836
+ "path": "robotstudio_so101/scene_box.xml",
837
+ "bytes": 1469,
838
+ "sha256": "14c3826f23889587e63b88ef9a0e7d72318ffe13078fad8287c56dbdb9ba9ad8",
839
+ "git_blob_sha1": "f51dd3b7609d75c0a26d2735e924c140a15b72b1"
840
+ },
841
+ {
842
+ "path": "robotstudio_so101/so101.png",
843
+ "bytes": 1010575,
844
+ "sha256": "fca552381f318dab5b1f9a69007e79d905d91c9d1bebbfdf267b78d924a9c46d",
845
+ "git_blob_sha1": "f9ac493bb3809531abe7f23ef7168d15315c2c23"
846
+ },
847
+ {
848
+ "path": "robotstudio_so101/so101.xml",
849
+ "bytes": 17206,
850
+ "sha256": "982c02c027ec0c62d3459d0a6eb00dfb7dc13a451992e72ce99addc71f209805",
851
+ "git_blob_sha1": "38bd905c819c8c6d755fecb6394d166944262cce"
852
+ }
853
+ ],
854
+ "native_joint_position_units": [
855
+ "rad",
856
+ "rad",
857
+ "rad",
858
+ "rad",
859
+ "rad",
860
+ "rad"
861
+ ],
862
+ "native_actuator_force_units": [
863
+ "Nm",
864
+ "Nm",
865
+ "Nm",
866
+ "Nm",
867
+ "Nm",
868
+ "Nm"
869
+ ],
870
+ "native_command_range": [
871
+ [
872
+ -1.91986,
873
+ 1.91986
874
+ ],
875
+ [
876
+ -1.74533,
877
+ 1.74533
878
+ ],
879
+ [
880
+ -1.69,
881
+ 1.69
882
+ ],
883
+ [
884
+ -1.65806,
885
+ 1.65806
886
+ ],
887
+ [
888
+ -2.74385,
889
+ 2.84121
890
+ ],
891
+ [
892
+ -0.17453,
893
+ 1.74533
894
+ ]
895
+ ]
896
+ }
897
+ ]
898
+ }
sources/robot_profiles.py ADDED
@@ -0,0 +1,424 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Pinned PiPER/SO101 CPU mechanics smoke tests, without hardware control.
2
+
3
+ Fetch is the only network operation. Audit, native stepping and inspection are
4
+ offline. Simulation asset licenses do not establish the openness of hardware.
5
+ """
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ from hashlib import sha256
10
+ import html
11
+ import json
12
+ import math
13
+ from pathlib import Path, PurePosixPath
14
+ import platform
15
+ import time
16
+ from urllib.request import Request, urlopen
17
+
18
+ from . import reference_sim as sim
19
+
20
+
21
+ LOCK_PATH = Path(__file__).with_name('robot_profiles.lock.json')
22
+ SCHEMA = 'dvidia.robot-profile-benchmark/v1'
23
+ INTEGRITY_SCHEMA = 'dvidia.robot-profile-integrity/v1'
24
+ CASES = ('hold', 'arm_sweep', 'gripper_cycle')
25
+ SCOPE = ('Unloaded native CPU mechanics smoke: authored position servos, upstream gravity settings, '
26
+ 'privileged joint/link state and synthetic commands. No object task, learned skill, measured '
27
+ 'hardware response, contact calibration or physical robot qualification.')
28
+
29
+
30
+ def _lock():
31
+ return json.loads(LOCK_PATH.read_text(encoding='utf-8'))
32
+
33
+
34
+ def _profile(name):
35
+ for item in _lock()['profiles']:
36
+ if item['id'] == name:
37
+ return item
38
+ raise ValueError('Profile must be piper or so101')
39
+
40
+
41
+ def list_profiles():
42
+ """Return explicit axes, units and asset-license claims without native imports."""
43
+ return [{key: value for key, value in item.items() if key != 'files'} for item in _lock()['profiles']]
44
+
45
+
46
+ def _payload(profile, directory):
47
+ item, root = _profile(profile), Path(directory)
48
+ if root.is_symlink() or not root.is_dir():
49
+ raise ValueError('Assets require an existing non-symlink directory')
50
+ blobs = {}
51
+ for record in item['files']:
52
+ path = root / record['path']
53
+ if any(parent.is_symlink() for parent in path.parents if parent != root and root in parent.parents):
54
+ raise ValueError('Asset subdirectories must not be symlinks')
55
+ content = sim._regular_bytes(path, record['bytes'])
56
+ if sha256(content).hexdigest() != record['sha256']:
57
+ raise ValueError('Asset digest mismatch: '+record['path'])
58
+ blobs[record['path']] = content
59
+ return item, blobs
60
+
61
+
62
+ def verify_assets(profile, directory):
63
+ item, blobs = _payload(profile, directory)
64
+ return {'profile': item['id'], 'repository': _lock()['repository'], 'commit': _lock()['commit'],
65
+ 'files_verified': len(blobs), 'bytes_verified': sum(map(len, blobs.values())),
66
+ 'lock_sha256': sha256(LOCK_PATH.read_bytes()).hexdigest(),
67
+ 'simulation_asset_license': item['simulation_asset_license']}
68
+
69
+
70
+ def fetch_assets(profile, output):
71
+ """Explicitly fetch the fixed packaged allowlist into a fresh asset root."""
72
+ item, lock = _profile(profile), _lock()
73
+ destination = Path(output)
74
+ if destination.is_symlink() or (destination.exists() and not destination.is_dir()):
75
+ raise ValueError('Asset root must be a plain directory')
76
+ destination.mkdir(parents=True, exist_ok=True)
77
+ (destination/item['folder']).mkdir(exist_ok=False)
78
+ for record in item['files']:
79
+ url = f"https://raw.githubusercontent.com/google-deepmind/mujoco_menagerie/{lock['commit']}/{record['path']}"
80
+ with urlopen(Request(url, headers={'User-Agent': 'DVIDIA-Robot-Sim/0.1'}), timeout=30) as response:
81
+ if response.geturl() != url:
82
+ raise ValueError('Pinned asset download redirected')
83
+ content = response.read(record['bytes']+1)
84
+ if len(content) != record['bytes'] or sha256(content).hexdigest() != record['sha256']:
85
+ raise ValueError('Downloaded asset differs from packaged lock: '+record['path'])
86
+ path = destination / record['path']
87
+ path.parent.mkdir(parents=True, exist_ok=True)
88
+ with path.open('xb') as stream:
89
+ stream.write(content)
90
+ return verify_assets(profile, destination)
91
+
92
+
93
+ def build_model(profile, directory, *, timestep=.001):
94
+ dt = sim._timestep(timestep)
95
+ item, blobs = _payload(profile, directory)
96
+ model_spec = sim._spec(blobs, item['folder'], item['model'])
97
+ model_spec.option.timestep = dt
98
+ model = model_spec.compile()
99
+ mj, _ = sim._native_imports()
100
+ actual = {name: int(getattr(model, name)) for name in ('nq', 'nv', 'nu', 'neq')}
101
+ if actual != item['expected_dimensions']:
102
+ raise ValueError('Native profile mechanical dimensions differ from the pinned contract')
103
+ if [mj.mj_id2name(model, mj.mjtObj.mjOBJ_ACTUATOR, i) for i in range(model.nu)] != item['actuator_names']:
104
+ raise ValueError('Native profile actuator order differs from the pinned contract')
105
+ expected_joints = item['arm_joint_names']+item['gripper_joint_names']
106
+ if [mj.mj_id2name(model, mj.mjtObj.mjOBJ_JOINT, i) for i in range(model.njnt)] != expected_joints:
107
+ raise ValueError('Native profile joint order differs from the pinned contract')
108
+ if mj.mj_name2id(model, mj.mjtObj.mjOBJ_BODY, item['tool_frame_body']) <= 0:
109
+ raise ValueError('Native profile terminal link body is missing')
110
+ for index, unit in enumerate(item['native_command_units']):
111
+ joint = int(model.actuator_trnid[index, 0])
112
+ expected = mj.mjtJoint.mjJNT_HINGE if unit == 'rad' else mj.mjtJoint.mjJNT_SLIDE
113
+ if model.jnt_type[joint] != expected or not model.actuator_ctrllimited[index]:
114
+ raise ValueError('Native command units/limits differ from the pinned contract')
115
+ return model
116
+
117
+
118
+ def audit(profile, directory, *, timestep=.001):
119
+ metadata = verify_assets(profile, directory)
120
+ messages = []
121
+ with sim.native_warnings(messages):
122
+ model = build_model(profile, directory, timestep=timestep)
123
+ if messages:
124
+ raise ValueError('Native profile compilation emitted warnings: '+str(messages))
125
+ mj, _ = sim._native_imports()
126
+ return {'schema': 'dvidia.robot-profile-audit/v1', 'profile': list_profiles()[0 if profile == 'piper' else 1],
127
+ 'assets': metadata, 'native_version': mj.__version__, 'compiled_model_sha256': sim.model_digest(model),
128
+ 'dimensions': {name: int(getattr(model, name)) for name in ('nq', 'nv', 'nu', 'neq', 'ngeom', 'nbody')},
129
+ 'actuator_ctrlrange_native': model.actuator_ctrlrange.tolist(),
130
+ 'actuator_forcerange_native': model.actuator_forcerange.tolist(),
131
+ 'gravity_compensated_bodies': int(sum(model.body_gravcomp != 0)),
132
+ 'scope': SCOPE, 'task_qualified': False, 'physical_robot_ready': False}
133
+
134
+
135
+ def _bounded(value, name, low, high):
136
+ if isinstance(value, bool) or not isinstance(value, (int, float)):
137
+ raise ValueError(name+' must be finite numeric data')
138
+ try:
139
+ number = float(value)
140
+ except (OverflowError, ValueError, TypeError) as exc:
141
+ raise ValueError(name+' must be finite numeric data') from exc
142
+ if not math.isfinite(number) or not low <= number <= high:
143
+ raise ValueError(name+' outside bounded range')
144
+ return number
145
+
146
+
147
+ def _duration(value):
148
+ number = _bounded(value, 'duration', .1, 2.)
149
+ if not math.isclose(number/sim.CONTROL_DT, round(number/sim.CONTROL_DT), abs_tol=1e-9, rel_tol=0):
150
+ raise ValueError('Duration must contain complete 20 ms control boundaries')
151
+ return number
152
+
153
+
154
+ def _sample(model, data, item, elapsed):
155
+ mj, np = sim._native_imports()
156
+ if not all(np.isfinite(value).all() for value in (data.qpos, data.qvel, data.qacc, data.xpos)):
157
+ raise RuntimeError('Nonfinite native profile state')
158
+ body = mj.mj_name2id(model, mj.mjtObj.mjOBJ_BODY, item['tool_frame_body'])
159
+ return {'t_seconds': elapsed, 'qpos_native': data.qpos.tolist(), 'qvel_native_per_second': data.qvel.tolist(),
160
+ 'arm_joint_position_rad': data.qpos[:item['arm_axes']].tolist(),
161
+ 'arm_joint_velocity_rad_s': data.qvel[:item['arm_axes']].tolist(),
162
+ 'gripper_joint_position_native': data.qpos[item['arm_axes']:].tolist(),
163
+ 'terminal_link_position_m': data.xpos[body].tolist(), 'terminal_link_quaternion_wxyz': data.xquat[body].tolist(),
164
+ 'actuator_force_native': data.actuator_force.tolist(), 'contact_count': int(data.ncon),
165
+ 'issued_controls_native': None, 'observation_origin': 'privileged_native_simulator_state'}
166
+
167
+
168
+ def _attempt(profile, assets, case, repeat, duration, timestep):
169
+ started, latencies = time.perf_counter(), []
170
+ item = _profile(profile)
171
+ result = {'id': f'{case}-{repeat}', 'case': case, 'repeat': repeat, 'valid': False,
172
+ 'error': None, 'warnings': [], 'simulated_seconds': 0., 'trajectory': [], 'timing': {}, 'metrics': {}}
173
+ try:
174
+ with sim.native_warnings(result['warnings']):
175
+ model = build_model(profile, assets, timestep=timestep)
176
+ mj, np = sim._native_imports()
177
+ data = mj.MjData(model)
178
+ if model.nkey:
179
+ mj.mj_resetDataKeyframe(model, data, 0)
180
+ else:
181
+ data.ctrl[:] = data.qpos[model.jnt_qposadr[model.actuator_trnid[:, 0]]]
182
+ base = data.ctrl.copy()
183
+ mj.mj_forward(model, data)
184
+ result['compiled_model_sha256'] = sim.model_digest(model)
185
+ result['runtime'] = {'mujoco_version': mj.__version__, 'numpy_version': np.__version__}
186
+ result['native_model_settings'] = {'gravity_m_s2': model.opt.gravity.tolist(),
187
+ 'gravity_compensated_bodies': [
188
+ {'name': mj.mj_id2name(model, mj.mjtObj.mjOBJ_BODY, i),
189
+ 'fraction': float(model.body_gravcomp[i])}
190
+ for i in range(model.nbody) if model.body_gravcomp[i] != 0]}
191
+ result['trajectory'].append(_sample(model, data, item, 0.))
192
+ for index in range(round(duration/sim.CONTROL_DT)):
193
+ tick_started = time.perf_counter()
194
+ commands = base.copy()
195
+ phase = math.sin(math.pi*(index+1)*sim.CONTROL_DT/duration)
196
+ if case == 'arm_sweep':
197
+ commands[:item['arm_axes']] += .08*phase
198
+ elif case == 'gripper_cycle':
199
+ commands[-1] += (.012 if item['id'] == 'piper' else .15)*phase
200
+ commands = np.clip(commands, model.actuator_ctrlrange[:, 0], model.actuator_ctrlrange[:, 1])
201
+ result['trajectory'][-1]['issued_controls_native'] = commands.tolist()
202
+ data.ctrl[:] = commands
203
+ for _ in range(round(sim.CONTROL_DT/timestep)):
204
+ mj.mj_step(model, data)
205
+ mj.mj_forward(model, data)
206
+ _sample(model, data, item, 0.)
207
+ if result['warnings'] or any(warning.number for warning in data.warning):
208
+ raise RuntimeError('Native profile emitted a solver warning')
209
+ result['simulated_seconds'] = (index+1)*sim.CONTROL_DT
210
+ result['trajectory'].append(_sample(model, data, item, result['simulated_seconds']))
211
+ latencies.append(time.perf_counter()-tick_started)
212
+ result['valid'] = not result['warnings']
213
+ errors = [abs(row['qpos_native'][int(model.jnt_qposadr[model.actuator_trnid[j, 0]])]-row['issued_controls_native'][j])
214
+ for row in result['trajectory'][:-1] for j in range(item['arm_axes'])]
215
+ result['metrics'] = {'max_before_step_arm_target_error_rad': max(errors, default=0.),
216
+ 'max_recorded_contact_count': max(row['contact_count'] for row in result['trajectory']),
217
+ 'scope': 'Numerical state/command diagnostics only; no task success metric'}
218
+ except Exception as exc:
219
+ result['error'] = {'type': type(exc).__name__, 'message': str(exc)[:500]}
220
+ elapsed = time.perf_counter()-started
221
+ result['timing'] = {'episode_wall_seconds': elapsed, 'control_step_seconds': sim._summary(latencies) if latencies else None,
222
+ 'control_boundaries': len(latencies), 'missed_control_boundaries': sum(x > sim.CONTROL_DT for x in latencies),
223
+ 'simulated_seconds_per_wall_second': result['simulated_seconds']/elapsed,
224
+ 'scope': 'Wall computation including compilation/state snapshots; not real-time sensor-to-actuator latency'}
225
+ return result
226
+
227
+
228
+ def _json_bytes(value):
229
+ return (json.dumps(value, allow_nan=False, indent=2)+'\n').encode()
230
+
231
+
232
+ def _record(path, content):
233
+ return {'path': path, 'bytes': len(content), 'sha256': sha256(content).hexdigest()}
234
+
235
+
236
+ def benchmark(profile, assets, output, *, duration=.4, timestep=.001, repeats=1):
237
+ """Seal every bounded unloaded attempt, including numerical/setup failures."""
238
+ item, duration, timestep = _profile(profile), _duration(duration), sim._timestep(timestep)
239
+ if type(repeats) is not int or not 1 <= repeats <= 3:
240
+ raise ValueError('repeats must be an integer in [1,3]')
241
+ metadata, blobs = verify_assets(profile, assets), _payload(profile, assets)[1]
242
+ destination = Path(output)
243
+ destination.mkdir(parents=True, exist_ok=False)
244
+ report = {'schema': SCHEMA, 'profile': {key: value for key, value in item.items() if key != 'files'},
245
+ 'scope': SCOPE, 'task_qualified': False, 'physical_robot_ready': False, 'assets': metadata,
246
+ 'source': {'implementation_sha256': sha256(Path(__file__).read_bytes()).hexdigest(),
247
+ 'reference_sim_sha256': sha256(Path(sim.__file__).read_bytes()).hexdigest(),
248
+ 'lock_sha256': sha256(LOCK_PATH.read_bytes()).hexdigest(), 'asset_commit': _lock()['commit']},
249
+ 'settings': {'duration_seconds': duration, 'timestep_seconds': timestep,
250
+ 'control_dt_seconds': sim.CONTROL_DT, 'repeats': repeats, 'cases': list(CASES)},
251
+ 'platform': {'system': platform.system(), 'machine': platform.machine(), 'python': platform.python_version()},
252
+ 'attempts': []}
253
+ for case in CASES:
254
+ for repeat in range(repeats):
255
+ attempt = _attempt(profile, assets, case, repeat, duration, timestep)
256
+ report['attempts'].append(attempt)
257
+ path = destination/f'attempt-{attempt["id"]}.json'
258
+ path.write_bytes(_json_bytes(attempt))
259
+ report['summary'] = {'attempt_count': len(report['attempts']),
260
+ 'valid_attempts': sum(bool(x['valid']) for x in report['attempts'])}
261
+ compiled = next((attempt for attempt in report['attempts'] if 'runtime' in attempt), None)
262
+ report['platform'].update(mujoco_version=compiled['runtime']['mujoco_version'] if compiled else None,
263
+ numpy_version=compiled['runtime']['numpy_version'] if compiled else None)
264
+ report['native_model_settings'] = compiled['native_model_settings'] if compiled else None
265
+ rows = ''.join(f'<tr><td>{html.escape(x["id"])}</td><td>{x["valid"]}</td><td>{x["simulated_seconds"]:.2f}</td>'
266
+ f'<td>{html.escape(json.dumps(x["error"]))}</td></tr>' for x in report['attempts'])
267
+ page = (f'<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width">'
268
+ f'<title>DVIDIA {html.escape(item["name"])} CPU mechanics</title><style>body{{max-width:900px;margin:40px auto;padding:20px;font:17px Georgia;line-height:1.6;background:#faf9f5}}td,th{{padding:8px;border-bottom:1px solid #ccc}}</style>'
269
+ f'<h1>DVIDIA · {html.escape(item["name"])} CPU mechanics</h1><p>{html.escape(SCOPE)}</p>'
270
+ f'<p>{item["arm_axes"]} arm axes + {item["gripper_axes"]} gripper command. Simulation asset license: {html.escape(item["simulation_asset_license"])}.</p>'
271
+ f'<p>Native command units: {html.escape(", ".join(item["native_command_units"]))}. {html.escape(item["gripper_command"])}</p>'
272
+ f'<p><a href="report.json">Complete sealed numerical receipt</a> · <a href="licenses/{profile}/LICENSE">Original asset license</a></p>'
273
+ f'<table><tr><th>Attempt</th><th>Valid physics</th><th>Simulated seconds</th><th>Error</th></tr>{rows}</table>').encode()
274
+ files = {'report.json': _json_bytes(report), 'report.html': page,
275
+ f'licenses/{profile}/LICENSE': blobs[item['folder']+'/LICENSE']}
276
+ for name, content in files.items():
277
+ path = destination/name
278
+ path.parent.mkdir(parents=True, exist_ok=True)
279
+ path.write_bytes(content)
280
+ for path in sorted(destination.glob('attempt-*.json')):
281
+ files[path.name] = path.read_bytes()
282
+ integrity = {'schema': INTEGRITY_SCHEMA, 'files': [_record(name, content) for name, content in sorted(files.items())]}
283
+ (destination/'integrity.json').write_bytes(_json_bytes(integrity))
284
+ return {'output': str(destination), 'profile': profile, **report['summary'], 'report_sha256': sha256(files['report.json']).hexdigest()}
285
+
286
+
287
+ def _bounded_file(path, limit):
288
+ size = path.lstat().st_size
289
+ if size > limit:
290
+ raise ValueError('Benchmark file exceeds the bounded size limit')
291
+ return sim._regular_bytes(path, size)
292
+
293
+
294
+ def inspect_benchmark(directory):
295
+ """Verify the standalone numerical receipt without loading native physics."""
296
+ root = Path(directory)
297
+ if root.is_symlink() or not root.is_dir():
298
+ raise ValueError('Benchmark root must be a non-symlink directory')
299
+ integrity = json.loads(_bounded_file(root/'integrity.json', 100000))
300
+ if integrity.get('schema') != INTEGRITY_SCHEMA or type(integrity.get('files')) is not list or not 3 <= len(integrity['files']) <= 12:
301
+ raise ValueError('Unsupported bounded profile integrity manifest')
302
+ payload, total = {}, 0
303
+ for record in integrity['files']:
304
+ name = record.get('path')
305
+ if type(name) is not str or name in payload or PurePosixPath(name).is_absolute() or '..' in PurePosixPath(name).parts or '\\' in name:
306
+ raise ValueError('Unsafe or duplicate benchmark file path')
307
+ path = root/name
308
+ if any(parent.is_symlink() for parent in path.parents if parent != root and root in parent.parents):
309
+ raise ValueError('Benchmark subdirectories must not be symlinks')
310
+ content = _bounded_file(path, 5000000)
311
+ total += len(content)
312
+ if total > 12000000 or len(content) != record.get('bytes') or sha256(content).hexdigest() != record.get('sha256'):
313
+ raise ValueError('Benchmark integrity mismatch')
314
+ payload[name] = content
315
+ report = json.loads(payload['report.json'])
316
+ if report.get('schema') != SCHEMA or report.get('task_qualified') is not False or report.get('physical_robot_ready') is not False:
317
+ raise ValueError('Unsupported profile receipt or qualification claim')
318
+ profile = _profile(report['profile']['id'])
319
+ expected_profile = {key: value for key, value in profile.items() if key != 'files'}
320
+ if report['profile'] != expected_profile:
321
+ raise ValueError('Profile receipt axes/units/provenance contract mismatch')
322
+ lock = _lock()
323
+ lock_digest = sha256(LOCK_PATH.read_bytes()).hexdigest()
324
+ expected_assets = {'profile': profile['id'], 'repository': lock['repository'], 'commit': lock['commit'],
325
+ 'files_verified': len(profile['files']), 'bytes_verified': sum(x['bytes'] for x in profile['files']),
326
+ 'lock_sha256': lock_digest, 'simulation_asset_license': profile['simulation_asset_license']}
327
+ if report.get('assets') != expected_assets or report['source'].get('asset_commit') != lock['commit'] or report['source'].get('lock_sha256') != lock_digest:
328
+ raise ValueError('Profile asset/source lock provenance mismatch')
329
+ for key in ('implementation_sha256', 'reference_sim_sha256'):
330
+ digest = report['source'].get(key)
331
+ if type(digest) is not str or len(digest) != 64 or any(x not in '0123456789abcdef' for x in digest):
332
+ raise ValueError('Profile implementation source digest is malformed')
333
+ settings = report['settings']
334
+ duration, timestep = _duration(settings['duration_seconds']), sim._timestep(settings['timestep_seconds'])
335
+ repeats = settings['repeats']
336
+ if type(repeats) is not int or not 1 <= repeats <= 3 or settings['cases'] != list(CASES) or settings['control_dt_seconds'] != sim.CONTROL_DT:
337
+ raise ValueError('Profile benchmark settings mismatch')
338
+ attempts = report['attempts']
339
+ if type(attempts) is not list or len(attempts) != len(CASES)*repeats:
340
+ raise ValueError('Profile benchmark attempt count mismatch')
341
+ expected_files = {'report.json', 'report.html', f'licenses/{profile["id"]}/LICENSE'} | {
342
+ f'attempt-{case}-{repeat}.json' for case in CASES for repeat in range(repeats)}
343
+ actual_files = {path.relative_to(root).as_posix() for path in root.rglob('*') if not path.is_dir()}
344
+ if set(payload) != expected_files or actual_files != expected_files | {'integrity.json'}:
345
+ raise ValueError('Profile benchmark file inventory mismatch')
346
+ for index, attempt in enumerate(attempts):
347
+ case, repeat = CASES[index//repeats], index%repeats
348
+ if attempt['id'] != f'{case}-{repeat}' or attempt['case'] != case or attempt['repeat'] != repeat or type(attempt['valid']) is not bool:
349
+ raise ValueError('Profile attempt ordering/validity mismatch')
350
+ if json.loads(payload[f'attempt-{attempt["id"]}.json']) != attempt:
351
+ raise ValueError('Profile raw attempt and report differ')
352
+ if attempt['valid'] and (attempt['error'] is not None or attempt['warnings'] or len(attempt['trajectory']) != round(duration/sim.CONTROL_DT)+1):
353
+ raise ValueError('Valid profile attempt has incomplete or invalid native evidence')
354
+ for row_index, row in enumerate(attempt['trajectory']):
355
+ _bounded(row['t_seconds'], 'clock', 0, duration)
356
+ if not math.isclose(row['t_seconds'], row_index*sim.CONTROL_DT, abs_tol=1e-9, rel_tol=0):
357
+ raise ValueError('Profile trace clock mismatch')
358
+ for key, count in (('qpos_native', profile['expected_dimensions']['nq']),
359
+ ('qvel_native_per_second', profile['expected_dimensions']['nv']),
360
+ ('arm_joint_position_rad', profile['arm_axes']),
361
+ ('arm_joint_velocity_rad_s', profile['arm_axes']),
362
+ ('gripper_joint_position_native', len(profile['gripper_joint_names'])),
363
+ ('terminal_link_position_m', 3), ('terminal_link_quaternion_wxyz', 4),
364
+ ('actuator_force_native', len(profile['actuator_names']))):
365
+ if type(row[key]) is not list or len(row[key]) != count:
366
+ raise ValueError('Profile trace state shape mismatch')
367
+ for value in row[key]:
368
+ _bounded(value, key, -1000000, 1000000)
369
+ if row['arm_joint_position_rad'] != row['qpos_native'][:profile['arm_axes']] or row['gripper_joint_position_native'] != row['qpos_native'][profile['arm_axes']:] or row['arm_joint_velocity_rad_s'] != row['qvel_native_per_second'][:profile['arm_axes']]:
370
+ raise ValueError('Profile redundant joint state differs from its native coordinates')
371
+ if not math.isclose(sum(value*value for value in row['terminal_link_quaternion_wxyz']), 1., abs_tol=1e-8, rel_tol=0):
372
+ raise ValueError('Profile terminal link quaternion must be normalized wxyz')
373
+ if type(row['contact_count']) is not int or not 0 <= row['contact_count'] <= 100000 or row['observation_origin'] != 'privileged_native_simulator_state':
374
+ raise ValueError('Profile contact count/observation provenance mismatch')
375
+ issued = row['issued_controls_native']
376
+ if attempt['valid'] and ((row_index == len(attempt['trajectory'])-1) != (issued is None)):
377
+ raise ValueError('Valid profile trace must issue each decision and leave its terminal row unissued')
378
+ if issued is not None:
379
+ if type(issued) is not list or len(issued) != len(profile['native_command_units']):
380
+ raise ValueError('Profile native command shape mismatch')
381
+ for value, (low, high) in zip(issued, profile['native_command_range']):
382
+ _bounded(value, 'native command', low, high)
383
+ valid = sum(x['valid'] for x in attempts)
384
+ if report['summary'] != {'attempt_count': len(attempts), 'valid_attempts': valid}:
385
+ raise ValueError('Profile attempt summary mismatch')
386
+ license_name = f'licenses/{profile["id"]}/LICENSE'
387
+ record = next(x for x in profile['files'] if x['path'] == profile['folder']+'/LICENSE')
388
+ if len(payload[license_name]) != record['bytes'] or sha256(payload[license_name]).hexdigest() != record['sha256']:
389
+ raise ValueError('Upstream simulation asset license mismatch')
390
+ return {'report': report, 'files': integrity['files'], 'valid_attempts': valid, 'attempts': len(attempts)}
391
+
392
+
393
+ def main(argv=None):
394
+ parser = argparse.ArgumentParser(description='DVIDIA pinned CPU robot mechanics; no hardware control')
395
+ commands = parser.add_subparsers(dest='command', required=True)
396
+ commands.add_parser('list')
397
+ for name in ('fetch', 'audit', 'benchmark'):
398
+ command = commands.add_parser(name)
399
+ command.add_argument('profile', choices=('piper', 'so101'))
400
+ if name != 'fetch':
401
+ command.add_argument('assets')
402
+ if name != 'audit':
403
+ command.add_argument('--output', required=True)
404
+ if name == 'benchmark':
405
+ command.add_argument('--duration', type=float, default=.4)
406
+ command.add_argument('--timestep', type=float, default=.001)
407
+ command.add_argument('--repeats', type=int, default=1)
408
+ args = parser.parse_args(argv)
409
+ try:
410
+ if args.command == 'list':
411
+ result = list_profiles()
412
+ elif args.command == 'fetch':
413
+ result = fetch_assets(args.profile, args.output)
414
+ elif args.command == 'audit':
415
+ result = audit(args.profile, args.assets)
416
+ else:
417
+ result = benchmark(args.profile, args.assets, args.output, duration=args.duration, timestep=args.timestep, repeats=args.repeats)
418
+ print(json.dumps(result, allow_nan=False, indent=2))
419
+ except (ValueError, OSError, RuntimeError, KeyError) as exc:
420
+ parser.exit(2, 'error: '+str(exc)+'\n')
421
+
422
+
423
+ if __name__ == '__main__':
424
+ main()
training/dataset.json ADDED
@@ -0,0 +1,1133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "dvidia.piper-imitation-study/v1",
3
+ "protocol_sha256": "a7869a80ed801ab0ee85ab699a3d6231a17f4aa70109e519e0e03129ad30969f",
4
+ "rows": [
5
+ {
6
+ "id": "train-00-goal0",
7
+ "start_xy": [
8
+ 0.284,
9
+ -0.045
10
+ ],
11
+ "goal_xy": [
12
+ 0.35,
13
+ 0.08
14
+ ],
15
+ "seed": 261000,
16
+ "episode": "demonstrations/train-00-goal0.json.gz",
17
+ "sha256": "5caade187a07bf241f64d9ff9696de7344734b81909a641bcb93fc02ec2d4b12",
18
+ "score": {
19
+ "success": true,
20
+ "reason": "success",
21
+ "reference_xy_m": [
22
+ 0.35,
23
+ 0.08
24
+ ],
25
+ "terminal_reference_success": true,
26
+ "native_outcome_success": true,
27
+ "native_outcome_valid": true,
28
+ "terminal_dwell_s": 4.68,
29
+ "required_dwell_s": 0.25,
30
+ "terminal_xy_error_m": 0.004625644290354094,
31
+ "trace_lift_dwell_s": 1.58,
32
+ "required_lift_dwell_s": 0.1,
33
+ "sample_interval_s": 0.02,
34
+ "trajectory_complete": true,
35
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
36
+ },
37
+ "used_for_training": true
38
+ },
39
+ {
40
+ "id": "train-00-goal1",
41
+ "start_xy": [
42
+ 0.284,
43
+ -0.045
44
+ ],
45
+ "goal_xy": [
46
+ 0.4,
47
+ -0.08
48
+ ],
49
+ "seed": 261001,
50
+ "episode": "demonstrations/train-00-goal1.json.gz",
51
+ "sha256": "fb3090fa7f1feffdd086192334c897bcf9f6317006c3ec41d655c1cb6e001300",
52
+ "score": {
53
+ "success": true,
54
+ "reason": "success",
55
+ "reference_xy_m": [
56
+ 0.4,
57
+ -0.08
58
+ ],
59
+ "terminal_reference_success": true,
60
+ "native_outcome_success": true,
61
+ "native_outcome_valid": true,
62
+ "terminal_dwell_s": 4.24,
63
+ "required_dwell_s": 0.25,
64
+ "terminal_xy_error_m": 0.010601448338933197,
65
+ "trace_lift_dwell_s": 2.0,
66
+ "required_lift_dwell_s": 0.1,
67
+ "sample_interval_s": 0.02,
68
+ "trajectory_complete": true,
69
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
70
+ },
71
+ "used_for_training": true
72
+ },
73
+ {
74
+ "id": "train-01-goal0",
75
+ "start_xy": [
76
+ 0.284,
77
+ -0.035
78
+ ],
79
+ "goal_xy": [
80
+ 0.35,
81
+ 0.08
82
+ ],
83
+ "seed": 261002,
84
+ "episode": "demonstrations/train-01-goal0.json.gz",
85
+ "sha256": "6f8d21bb357c5628bbb16bcea0ef6c6539275bc47bec8e0f3b261279c8143abf",
86
+ "score": {
87
+ "success": true,
88
+ "reason": "success",
89
+ "reference_xy_m": [
90
+ 0.35,
91
+ 0.08
92
+ ],
93
+ "terminal_reference_success": true,
94
+ "native_outcome_success": true,
95
+ "native_outcome_valid": true,
96
+ "terminal_dwell_s": 4.879999999999999,
97
+ "required_dwell_s": 0.25,
98
+ "terminal_xy_error_m": 0.005086706527487764,
99
+ "trace_lift_dwell_s": 1.540000000000001,
100
+ "required_lift_dwell_s": 0.1,
101
+ "sample_interval_s": 0.02,
102
+ "trajectory_complete": true,
103
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
104
+ },
105
+ "used_for_training": true
106
+ },
107
+ {
108
+ "id": "train-01-goal1",
109
+ "start_xy": [
110
+ 0.284,
111
+ -0.035
112
+ ],
113
+ "goal_xy": [
114
+ 0.4,
115
+ -0.08
116
+ ],
117
+ "seed": 261003,
118
+ "episode": "demonstrations/train-01-goal1.json.gz",
119
+ "sha256": "b0429c66dfce1688df8abbecd65d27529ce9eaa32d84f24cf68f88f8f1ea5249",
120
+ "score": {
121
+ "success": true,
122
+ "reason": "success",
123
+ "reference_xy_m": [
124
+ 0.4,
125
+ -0.08
126
+ ],
127
+ "terminal_reference_success": true,
128
+ "native_outcome_success": true,
129
+ "native_outcome_valid": true,
130
+ "terminal_dwell_s": 4.4,
131
+ "required_dwell_s": 0.25,
132
+ "terminal_xy_error_m": 0.010507186983195926,
133
+ "trace_lift_dwell_s": 2.0,
134
+ "required_lift_dwell_s": 0.1,
135
+ "sample_interval_s": 0.02,
136
+ "trajectory_complete": true,
137
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
138
+ },
139
+ "used_for_training": true
140
+ },
141
+ {
142
+ "id": "train-02-goal0",
143
+ "start_xy": [
144
+ 0.284,
145
+ -0.025
146
+ ],
147
+ "goal_xy": [
148
+ 0.35,
149
+ 0.08
150
+ ],
151
+ "seed": 261004,
152
+ "episode": "demonstrations/train-02-goal0.json.gz",
153
+ "sha256": "303525348cbfacdf1058b0622a3c5ac8ac65da0a6e428656d87c871cedc283f4",
154
+ "score": {
155
+ "success": true,
156
+ "reason": "success",
157
+ "reference_xy_m": [
158
+ 0.35,
159
+ 0.08
160
+ ],
161
+ "terminal_reference_success": true,
162
+ "native_outcome_success": true,
163
+ "native_outcome_valid": true,
164
+ "terminal_dwell_s": 5.279999999999999,
165
+ "required_dwell_s": 0.25,
166
+ "terminal_xy_error_m": 0.005666630070230629,
167
+ "trace_lift_dwell_s": 1.5199999999999996,
168
+ "required_lift_dwell_s": 0.1,
169
+ "sample_interval_s": 0.02,
170
+ "trajectory_complete": true,
171
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
172
+ },
173
+ "used_for_training": true
174
+ },
175
+ {
176
+ "id": "train-02-goal1",
177
+ "start_xy": [
178
+ 0.284,
179
+ -0.025
180
+ ],
181
+ "goal_xy": [
182
+ 0.4,
183
+ -0.08
184
+ ],
185
+ "seed": 261005,
186
+ "episode": "demonstrations/train-02-goal1.json.gz",
187
+ "sha256": "35684af7d0aef232220e790448968284a203b4dc7fa52755545eeaaa40fb668f",
188
+ "score": {
189
+ "success": true,
190
+ "reason": "success",
191
+ "reference_xy_m": [
192
+ 0.4,
193
+ -0.08
194
+ ],
195
+ "terminal_reference_success": true,
196
+ "native_outcome_success": true,
197
+ "native_outcome_valid": true,
198
+ "terminal_dwell_s": 4.779999999999999,
199
+ "required_dwell_s": 0.25,
200
+ "terminal_xy_error_m": 0.010456861399853138,
201
+ "trace_lift_dwell_s": 2.0,
202
+ "required_lift_dwell_s": 0.1,
203
+ "sample_interval_s": 0.02,
204
+ "trajectory_complete": true,
205
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
206
+ },
207
+ "used_for_training": true
208
+ },
209
+ {
210
+ "id": "train-03-goal0",
211
+ "start_xy": [
212
+ 0.284,
213
+ -0.015
214
+ ],
215
+ "goal_xy": [
216
+ 0.35,
217
+ 0.08
218
+ ],
219
+ "seed": 261006,
220
+ "episode": "demonstrations/train-03-goal0.json.gz",
221
+ "sha256": "ff8003b4ff335a8d49976f3ab4a3329fbc1bb117cfe5ab15a9069d0c649e92c4",
222
+ "score": {
223
+ "success": true,
224
+ "reason": "success",
225
+ "reference_xy_m": [
226
+ 0.35,
227
+ 0.08
228
+ ],
229
+ "terminal_reference_success": true,
230
+ "native_outcome_success": true,
231
+ "native_outcome_valid": true,
232
+ "terminal_dwell_s": 5.779999999999999,
233
+ "required_dwell_s": 0.25,
234
+ "terminal_xy_error_m": 0.006209849499393602,
235
+ "trace_lift_dwell_s": 1.5,
236
+ "required_lift_dwell_s": 0.1,
237
+ "sample_interval_s": 0.02,
238
+ "trajectory_complete": true,
239
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
240
+ },
241
+ "used_for_training": true
242
+ },
243
+ {
244
+ "id": "train-03-goal1",
245
+ "start_xy": [
246
+ 0.284,
247
+ -0.015
248
+ ],
249
+ "goal_xy": [
250
+ 0.4,
251
+ -0.08
252
+ ],
253
+ "seed": 261007,
254
+ "episode": "demonstrations/train-03-goal1.json.gz",
255
+ "sha256": "496410d1a78d255f99853194f1a1e5f61c8876cfeddbd8a04848b1b7a45a7ded",
256
+ "score": {
257
+ "success": true,
258
+ "reason": "success",
259
+ "reference_xy_m": [
260
+ 0.4,
261
+ -0.08
262
+ ],
263
+ "terminal_reference_success": true,
264
+ "native_outcome_success": true,
265
+ "native_outcome_valid": true,
266
+ "terminal_dwell_s": 5.26,
267
+ "required_dwell_s": 0.25,
268
+ "terminal_xy_error_m": 0.010296147615446343,
269
+ "trace_lift_dwell_s": 2.0,
270
+ "required_lift_dwell_s": 0.1,
271
+ "sample_interval_s": 0.02,
272
+ "trajectory_complete": true,
273
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
274
+ },
275
+ "used_for_training": true
276
+ },
277
+ {
278
+ "id": "train-04-goal0",
279
+ "start_xy": [
280
+ 0.294,
281
+ -0.045
282
+ ],
283
+ "goal_xy": [
284
+ 0.35,
285
+ 0.08
286
+ ],
287
+ "seed": 261008,
288
+ "episode": "demonstrations/train-04-goal0.json.gz",
289
+ "sha256": "ae04c1b650c443cc11e6e7150fd9faed06232dbf52c9a03112aafb15ed4091ae",
290
+ "score": {
291
+ "success": true,
292
+ "reason": "success",
293
+ "reference_xy_m": [
294
+ 0.35,
295
+ 0.08
296
+ ],
297
+ "terminal_reference_success": true,
298
+ "native_outcome_success": true,
299
+ "native_outcome_valid": true,
300
+ "terminal_dwell_s": 4.58,
301
+ "required_dwell_s": 0.25,
302
+ "terminal_xy_error_m": 0.004498122851001789,
303
+ "trace_lift_dwell_s": 1.5399999999999991,
304
+ "required_lift_dwell_s": 0.1,
305
+ "sample_interval_s": 0.02,
306
+ "trajectory_complete": true,
307
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
308
+ },
309
+ "used_for_training": true
310
+ },
311
+ {
312
+ "id": "train-04-goal1",
313
+ "start_xy": [
314
+ 0.294,
315
+ -0.045
316
+ ],
317
+ "goal_xy": [
318
+ 0.4,
319
+ -0.08
320
+ ],
321
+ "seed": 261009,
322
+ "episode": "demonstrations/train-04-goal1.json.gz",
323
+ "sha256": "d561800cc4b17ab17616b32a75e9196e156cd503b271cd39149e6ca0e7561b44",
324
+ "score": {
325
+ "success": true,
326
+ "reason": "success",
327
+ "reference_xy_m": [
328
+ 0.4,
329
+ -0.08
330
+ ],
331
+ "terminal_reference_success": true,
332
+ "native_outcome_success": true,
333
+ "native_outcome_valid": true,
334
+ "terminal_dwell_s": 4.219999999999999,
335
+ "required_dwell_s": 0.25,
336
+ "terminal_xy_error_m": 0.010165407324485195,
337
+ "trace_lift_dwell_s": 1.879999999999999,
338
+ "required_lift_dwell_s": 0.1,
339
+ "sample_interval_s": 0.02,
340
+ "trajectory_complete": true,
341
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
342
+ },
343
+ "used_for_training": true
344
+ },
345
+ {
346
+ "id": "train-05-goal0",
347
+ "start_xy": [
348
+ 0.294,
349
+ -0.035
350
+ ],
351
+ "goal_xy": [
352
+ 0.35,
353
+ 0.08
354
+ ],
355
+ "seed": 261010,
356
+ "episode": "demonstrations/train-05-goal0.json.gz",
357
+ "sha256": "2980544d9cbb34208180941f879c52a05c683256d726e7d49acc30213732bc79",
358
+ "score": {
359
+ "success": true,
360
+ "reason": "success",
361
+ "reference_xy_m": [
362
+ 0.35,
363
+ 0.08
364
+ ],
365
+ "terminal_reference_success": true,
366
+ "native_outcome_success": true,
367
+ "native_outcome_valid": true,
368
+ "terminal_dwell_s": 5.0,
369
+ "required_dwell_s": 0.25,
370
+ "terminal_xy_error_m": 0.004882818342642191,
371
+ "trace_lift_dwell_s": 1.5,
372
+ "required_lift_dwell_s": 0.1,
373
+ "sample_interval_s": 0.02,
374
+ "trajectory_complete": true,
375
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
376
+ },
377
+ "used_for_training": true
378
+ },
379
+ {
380
+ "id": "train-05-goal1",
381
+ "start_xy": [
382
+ 0.294,
383
+ -0.035
384
+ ],
385
+ "goal_xy": [
386
+ 0.4,
387
+ -0.08
388
+ ],
389
+ "seed": 261011,
390
+ "episode": "demonstrations/train-05-goal1.json.gz",
391
+ "sha256": "0881f2b1d93a4528b94b0046808c9fb8dff31ce414a7ece21cea5366cc4f8f19",
392
+ "score": {
393
+ "success": true,
394
+ "reason": "success",
395
+ "reference_xy_m": [
396
+ 0.4,
397
+ -0.08
398
+ ],
399
+ "terminal_reference_success": true,
400
+ "native_outcome_success": true,
401
+ "native_outcome_valid": true,
402
+ "terminal_dwell_s": 4.6,
403
+ "required_dwell_s": 0.25,
404
+ "terminal_xy_error_m": 0.010283289453441594,
405
+ "trace_lift_dwell_s": 1.8800000000000008,
406
+ "required_lift_dwell_s": 0.1,
407
+ "sample_interval_s": 0.02,
408
+ "trajectory_complete": true,
409
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
410
+ },
411
+ "used_for_training": true
412
+ },
413
+ {
414
+ "id": "train-06-goal0",
415
+ "start_xy": [
416
+ 0.294,
417
+ -0.025
418
+ ],
419
+ "goal_xy": [
420
+ 0.35,
421
+ 0.08
422
+ ],
423
+ "seed": 261012,
424
+ "episode": "demonstrations/train-06-goal0.json.gz",
425
+ "sha256": "7df72544f2022c5c6128e7fceda259c50ed88a51db1ebc2c2f3aee10821a7ba0",
426
+ "score": {
427
+ "success": true,
428
+ "reason": "success",
429
+ "reference_xy_m": [
430
+ 0.35,
431
+ 0.08
432
+ ],
433
+ "terminal_reference_success": true,
434
+ "native_outcome_success": true,
435
+ "native_outcome_valid": true,
436
+ "terminal_dwell_s": 5.359999999999999,
437
+ "required_dwell_s": 0.25,
438
+ "terminal_xy_error_m": 0.005316978946580457,
439
+ "trace_lift_dwell_s": 1.4600000000000009,
440
+ "required_lift_dwell_s": 0.1,
441
+ "sample_interval_s": 0.02,
442
+ "trajectory_complete": true,
443
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
444
+ },
445
+ "used_for_training": true
446
+ },
447
+ {
448
+ "id": "train-06-goal1",
449
+ "start_xy": [
450
+ 0.294,
451
+ -0.025
452
+ ],
453
+ "goal_xy": [
454
+ 0.4,
455
+ -0.08
456
+ ],
457
+ "seed": 261013,
458
+ "episode": "demonstrations/train-06-goal1.json.gz",
459
+ "sha256": "4f514f0ad6d5b908343bd03ef69278235110ead15da8a74d9e181c11cffae8bb",
460
+ "score": {
461
+ "success": true,
462
+ "reason": "success",
463
+ "reference_xy_m": [
464
+ 0.4,
465
+ -0.08
466
+ ],
467
+ "terminal_reference_success": true,
468
+ "native_outcome_success": true,
469
+ "native_outcome_valid": true,
470
+ "terminal_dwell_s": 4.92,
471
+ "required_dwell_s": 0.25,
472
+ "terminal_xy_error_m": 0.010474678024596167,
473
+ "trace_lift_dwell_s": 1.8800000000000008,
474
+ "required_lift_dwell_s": 0.1,
475
+ "sample_interval_s": 0.02,
476
+ "trajectory_complete": true,
477
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
478
+ },
479
+ "used_for_training": true
480
+ },
481
+ {
482
+ "id": "train-07-goal0",
483
+ "start_xy": [
484
+ 0.294,
485
+ -0.015
486
+ ],
487
+ "goal_xy": [
488
+ 0.35,
489
+ 0.08
490
+ ],
491
+ "seed": 261014,
492
+ "episode": "demonstrations/train-07-goal0.json.gz",
493
+ "sha256": "3127b03662f21d4541b6136d6a9bc2a2a7c432a419e99e9c78d38dee213354ea",
494
+ "score": {
495
+ "success": true,
496
+ "reason": "success",
497
+ "reference_xy_m": [
498
+ 0.35,
499
+ 0.08
500
+ ],
501
+ "terminal_reference_success": true,
502
+ "native_outcome_success": true,
503
+ "native_outcome_valid": true,
504
+ "terminal_dwell_s": 5.799999999999999,
505
+ "required_dwell_s": 0.25,
506
+ "terminal_xy_error_m": 0.0057049651458314105,
507
+ "trace_lift_dwell_s": 1.42,
508
+ "required_lift_dwell_s": 0.1,
509
+ "sample_interval_s": 0.02,
510
+ "trajectory_complete": true,
511
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
512
+ },
513
+ "used_for_training": true
514
+ },
515
+ {
516
+ "id": "train-07-goal1",
517
+ "start_xy": [
518
+ 0.294,
519
+ -0.015
520
+ ],
521
+ "goal_xy": [
522
+ 0.4,
523
+ -0.08
524
+ ],
525
+ "seed": 261015,
526
+ "episode": "demonstrations/train-07-goal1.json.gz",
527
+ "sha256": "413f95cf2c7aa4e2349690586a5f7ae66ce566a9698f3ec6a6e5c793b196717d",
528
+ "score": {
529
+ "success": true,
530
+ "reason": "success",
531
+ "reference_xy_m": [
532
+ 0.4,
533
+ -0.08
534
+ ],
535
+ "terminal_reference_success": true,
536
+ "native_outcome_success": true,
537
+ "native_outcome_valid": true,
538
+ "terminal_dwell_s": 5.299999999999999,
539
+ "required_dwell_s": 0.25,
540
+ "terminal_xy_error_m": 0.009823194647835537,
541
+ "trace_lift_dwell_s": 1.8999999999999986,
542
+ "required_lift_dwell_s": 0.1,
543
+ "sample_interval_s": 0.02,
544
+ "trajectory_complete": true,
545
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
546
+ },
547
+ "used_for_training": true
548
+ },
549
+ {
550
+ "id": "train-08-goal0",
551
+ "start_xy": [
552
+ 0.304,
553
+ -0.045
554
+ ],
555
+ "goal_xy": [
556
+ 0.35,
557
+ 0.08
558
+ ],
559
+ "seed": 261016,
560
+ "episode": "demonstrations/train-08-goal0.json.gz",
561
+ "sha256": "bacc2212e831a56fb7ae9aefc909d1c66d8d604c43f131aced3e20b301955501",
562
+ "score": {
563
+ "success": true,
564
+ "reason": "success",
565
+ "reference_xy_m": [
566
+ 0.35,
567
+ 0.08
568
+ ],
569
+ "terminal_reference_success": true,
570
+ "native_outcome_success": true,
571
+ "native_outcome_valid": true,
572
+ "terminal_dwell_s": 4.719999999999999,
573
+ "required_dwell_s": 0.25,
574
+ "terminal_xy_error_m": 0.004104576710919599,
575
+ "trace_lift_dwell_s": 1.4800000000000004,
576
+ "required_lift_dwell_s": 0.1,
577
+ "sample_interval_s": 0.02,
578
+ "trajectory_complete": true,
579
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
580
+ },
581
+ "used_for_training": true
582
+ },
583
+ {
584
+ "id": "train-08-goal1",
585
+ "start_xy": [
586
+ 0.304,
587
+ -0.045
588
+ ],
589
+ "goal_xy": [
590
+ 0.4,
591
+ -0.08
592
+ ],
593
+ "seed": 261017,
594
+ "episode": "demonstrations/train-08-goal1.json.gz",
595
+ "sha256": "86bad1b884adddcc8a460bdd9c2c62565ca8ab06abd61c3aed78883709a75f1f",
596
+ "score": {
597
+ "success": true,
598
+ "reason": "success",
599
+ "reference_xy_m": [
600
+ 0.4,
601
+ -0.08
602
+ ],
603
+ "terminal_reference_success": true,
604
+ "native_outcome_success": true,
605
+ "native_outcome_valid": true,
606
+ "terminal_dwell_s": 4.42,
607
+ "required_dwell_s": 0.25,
608
+ "terminal_xy_error_m": 0.009967071811058758,
609
+ "trace_lift_dwell_s": 1.7599999999999998,
610
+ "required_lift_dwell_s": 0.1,
611
+ "sample_interval_s": 0.02,
612
+ "trajectory_complete": true,
613
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
614
+ },
615
+ "used_for_training": true
616
+ },
617
+ {
618
+ "id": "train-09-goal0",
619
+ "start_xy": [
620
+ 0.304,
621
+ -0.035
622
+ ],
623
+ "goal_xy": [
624
+ 0.35,
625
+ 0.08
626
+ ],
627
+ "seed": 261018,
628
+ "episode": "demonstrations/train-09-goal0.json.gz",
629
+ "sha256": "b6c76e566639267018bab76e46428b031489d3390e9293da9bcbbe68585f79b5",
630
+ "score": {
631
+ "success": true,
632
+ "reason": "success",
633
+ "reference_xy_m": [
634
+ 0.35,
635
+ 0.08
636
+ ],
637
+ "terminal_reference_success": true,
638
+ "native_outcome_success": true,
639
+ "native_outcome_valid": true,
640
+ "terminal_dwell_s": 5.1,
641
+ "required_dwell_s": 0.25,
642
+ "terminal_xy_error_m": 0.004436172803470734,
643
+ "trace_lift_dwell_s": 1.4399999999999995,
644
+ "required_lift_dwell_s": 0.1,
645
+ "sample_interval_s": 0.02,
646
+ "trajectory_complete": true,
647
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
648
+ },
649
+ "used_for_training": true
650
+ },
651
+ {
652
+ "id": "train-09-goal1",
653
+ "start_xy": [
654
+ 0.304,
655
+ -0.035
656
+ ],
657
+ "goal_xy": [
658
+ 0.4,
659
+ -0.08
660
+ ],
661
+ "seed": 261019,
662
+ "episode": "demonstrations/train-09-goal1.json.gz",
663
+ "sha256": "2cf83e3f15b3177ea694d380e70dddeefa68afe29d760ced336599765b4b05f8",
664
+ "score": {
665
+ "success": true,
666
+ "reason": "success",
667
+ "reference_xy_m": [
668
+ 0.4,
669
+ -0.08
670
+ ],
671
+ "terminal_reference_success": true,
672
+ "native_outcome_success": true,
673
+ "native_outcome_valid": true,
674
+ "terminal_dwell_s": 4.76,
675
+ "required_dwell_s": 0.25,
676
+ "terminal_xy_error_m": 0.009993264027824664,
677
+ "trace_lift_dwell_s": 1.7599999999999998,
678
+ "required_lift_dwell_s": 0.1,
679
+ "sample_interval_s": 0.02,
680
+ "trajectory_complete": true,
681
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
682
+ },
683
+ "used_for_training": true
684
+ },
685
+ {
686
+ "id": "train-10-goal0",
687
+ "start_xy": [
688
+ 0.304,
689
+ -0.025
690
+ ],
691
+ "goal_xy": [
692
+ 0.35,
693
+ 0.08
694
+ ],
695
+ "seed": 261020,
696
+ "episode": "demonstrations/train-10-goal0.json.gz",
697
+ "sha256": "909b7ca3c56f65a0e237e6b626e5af1d3b9c45fa3ddef678d9e9fbb395912124",
698
+ "score": {
699
+ "success": true,
700
+ "reason": "success",
701
+ "reference_xy_m": [
702
+ 0.35,
703
+ 0.08
704
+ ],
705
+ "terminal_reference_success": true,
706
+ "native_outcome_success": true,
707
+ "native_outcome_valid": true,
708
+ "terminal_dwell_s": 5.42,
709
+ "required_dwell_s": 0.25,
710
+ "terminal_xy_error_m": 0.0048069801042613484,
711
+ "trace_lift_dwell_s": 1.4000000000000004,
712
+ "required_lift_dwell_s": 0.1,
713
+ "sample_interval_s": 0.02,
714
+ "trajectory_complete": true,
715
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
716
+ },
717
+ "used_for_training": true
718
+ },
719
+ {
720
+ "id": "train-10-goal1",
721
+ "start_xy": [
722
+ 0.304,
723
+ -0.025
724
+ ],
725
+ "goal_xy": [
726
+ 0.4,
727
+ -0.08
728
+ ],
729
+ "seed": 261021,
730
+ "episode": "demonstrations/train-10-goal1.json.gz",
731
+ "sha256": "dd69e8f0bd6cfd6bb3a4347ad6263f22d60c4be4e431593aa99b23f01dad95ad",
732
+ "score": {
733
+ "success": true,
734
+ "reason": "success",
735
+ "reference_xy_m": [
736
+ 0.4,
737
+ -0.08
738
+ ],
739
+ "terminal_reference_success": true,
740
+ "native_outcome_success": true,
741
+ "native_outcome_valid": true,
742
+ "terminal_dwell_s": 5.02,
743
+ "required_dwell_s": 0.25,
744
+ "terminal_xy_error_m": 0.009734169493803771,
745
+ "trace_lift_dwell_s": 1.7800000000000011,
746
+ "required_lift_dwell_s": 0.1,
747
+ "sample_interval_s": 0.02,
748
+ "trajectory_complete": true,
749
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
750
+ },
751
+ "used_for_training": true
752
+ },
753
+ {
754
+ "id": "train-11-goal0",
755
+ "start_xy": [
756
+ 0.304,
757
+ -0.015
758
+ ],
759
+ "goal_xy": [
760
+ 0.35,
761
+ 0.08
762
+ ],
763
+ "seed": 261022,
764
+ "episode": "demonstrations/train-11-goal0.json.gz",
765
+ "sha256": "179a58f6b9d9cdbb9bcdec6b75c8e79f8ddd0eda213b98e703200c57b6eaca74",
766
+ "score": {
767
+ "success": true,
768
+ "reason": "success",
769
+ "reference_xy_m": [
770
+ 0.35,
771
+ 0.08
772
+ ],
773
+ "terminal_reference_success": true,
774
+ "native_outcome_success": true,
775
+ "native_outcome_valid": true,
776
+ "terminal_dwell_s": 5.82,
777
+ "required_dwell_s": 0.25,
778
+ "terminal_xy_error_m": 0.005116146733859453,
779
+ "trace_lift_dwell_s": 1.3599999999999994,
780
+ "required_lift_dwell_s": 0.1,
781
+ "sample_interval_s": 0.02,
782
+ "trajectory_complete": true,
783
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
784
+ },
785
+ "used_for_training": true
786
+ },
787
+ {
788
+ "id": "train-11-goal1",
789
+ "start_xy": [
790
+ 0.304,
791
+ -0.015
792
+ ],
793
+ "goal_xy": [
794
+ 0.4,
795
+ -0.08
796
+ ],
797
+ "seed": 261023,
798
+ "episode": "demonstrations/train-11-goal1.json.gz",
799
+ "sha256": "1994d95fd1271f74c4deec254f010dd6520cbd6d9a2282e1f780150b850fa455",
800
+ "score": {
801
+ "success": true,
802
+ "reason": "success",
803
+ "reference_xy_m": [
804
+ 0.4,
805
+ -0.08
806
+ ],
807
+ "terminal_reference_success": true,
808
+ "native_outcome_success": true,
809
+ "native_outcome_valid": true,
810
+ "terminal_dwell_s": 5.379999999999999,
811
+ "required_dwell_s": 0.25,
812
+ "terminal_xy_error_m": 0.01018490376063178,
813
+ "trace_lift_dwell_s": 1.7799999999999994,
814
+ "required_lift_dwell_s": 0.1,
815
+ "sample_interval_s": 0.02,
816
+ "trajectory_complete": true,
817
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
818
+ },
819
+ "used_for_training": true
820
+ },
821
+ {
822
+ "id": "train-12-goal0",
823
+ "start_xy": [
824
+ 0.314,
825
+ -0.045
826
+ ],
827
+ "goal_xy": [
828
+ 0.35,
829
+ 0.08
830
+ ],
831
+ "seed": 261024,
832
+ "episode": "demonstrations/train-12-goal0.json.gz",
833
+ "sha256": "0e8d13955ea0c17fd79ad6b3ce26203df98d5783c03ef12a3a5289053d686273",
834
+ "score": {
835
+ "success": true,
836
+ "reason": "success",
837
+ "reference_xy_m": [
838
+ 0.35,
839
+ 0.08
840
+ ],
841
+ "terminal_reference_success": true,
842
+ "native_outcome_success": true,
843
+ "native_outcome_valid": true,
844
+ "terminal_dwell_s": 4.859999999999999,
845
+ "required_dwell_s": 0.25,
846
+ "terminal_xy_error_m": 0.0038011059223725407,
847
+ "trace_lift_dwell_s": 1.4600000000000009,
848
+ "required_lift_dwell_s": 0.1,
849
+ "sample_interval_s": 0.02,
850
+ "trajectory_complete": true,
851
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
852
+ },
853
+ "used_for_training": true
854
+ },
855
+ {
856
+ "id": "train-12-goal1",
857
+ "start_xy": [
858
+ 0.314,
859
+ -0.045
860
+ ],
861
+ "goal_xy": [
862
+ 0.4,
863
+ -0.08
864
+ ],
865
+ "seed": 261025,
866
+ "episode": "demonstrations/train-12-goal1.json.gz",
867
+ "sha256": "e106900570f412f3b509fae4487941caacce3ebeaf9dc0489e509ebac3e73208",
868
+ "score": {
869
+ "success": true,
870
+ "reason": "success",
871
+ "reference_xy_m": [
872
+ 0.4,
873
+ -0.08
874
+ ],
875
+ "terminal_reference_success": true,
876
+ "native_outcome_success": true,
877
+ "native_outcome_valid": true,
878
+ "terminal_dwell_s": 4.619999999999999,
879
+ "required_dwell_s": 0.25,
880
+ "terminal_xy_error_m": 0.009708662730262814,
881
+ "trace_lift_dwell_s": 1.6800000000000015,
882
+ "required_lift_dwell_s": 0.1,
883
+ "sample_interval_s": 0.02,
884
+ "trajectory_complete": true,
885
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
886
+ },
887
+ "used_for_training": true
888
+ },
889
+ {
890
+ "id": "train-13-goal0",
891
+ "start_xy": [
892
+ 0.314,
893
+ -0.035
894
+ ],
895
+ "goal_xy": [
896
+ 0.35,
897
+ 0.08
898
+ ],
899
+ "seed": 261026,
900
+ "episode": "demonstrations/train-13-goal0.json.gz",
901
+ "sha256": "46015732c4d2074c92baf8d31585ceb7c6b9dbbe56f0a9c89eb713181a9fc449",
902
+ "score": {
903
+ "success": true,
904
+ "reason": "success",
905
+ "reference_xy_m": [
906
+ 0.35,
907
+ 0.08
908
+ ],
909
+ "terminal_reference_success": true,
910
+ "native_outcome_success": true,
911
+ "native_outcome_valid": true,
912
+ "terminal_dwell_s": 5.16,
913
+ "required_dwell_s": 0.25,
914
+ "terminal_xy_error_m": 0.004171312393431772,
915
+ "trace_lift_dwell_s": 1.4000000000000004,
916
+ "required_lift_dwell_s": 0.1,
917
+ "sample_interval_s": 0.02,
918
+ "trajectory_complete": true,
919
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
920
+ },
921
+ "used_for_training": true
922
+ },
923
+ {
924
+ "id": "train-13-goal1",
925
+ "start_xy": [
926
+ 0.314,
927
+ -0.035
928
+ ],
929
+ "goal_xy": [
930
+ 0.4,
931
+ -0.08
932
+ ],
933
+ "seed": 261027,
934
+ "episode": "demonstrations/train-13-goal1.json.gz",
935
+ "sha256": "df696dad788e74f3914767d36c27f42f36a973eecf2dff266a9be433322ff6de",
936
+ "score": {
937
+ "success": true,
938
+ "reason": "success",
939
+ "reference_xy_m": [
940
+ 0.4,
941
+ -0.08
942
+ ],
943
+ "terminal_reference_success": true,
944
+ "native_outcome_success": true,
945
+ "native_outcome_valid": true,
946
+ "terminal_dwell_s": 4.92,
947
+ "required_dwell_s": 0.25,
948
+ "terminal_xy_error_m": 0.00949421155347901,
949
+ "trace_lift_dwell_s": 1.6400000000000006,
950
+ "required_lift_dwell_s": 0.1,
951
+ "sample_interval_s": 0.02,
952
+ "trajectory_complete": true,
953
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
954
+ },
955
+ "used_for_training": true
956
+ },
957
+ {
958
+ "id": "train-14-goal0",
959
+ "start_xy": [
960
+ 0.314,
961
+ -0.025
962
+ ],
963
+ "goal_xy": [
964
+ 0.35,
965
+ 0.08
966
+ ],
967
+ "seed": 261028,
968
+ "episode": "demonstrations/train-14-goal0.json.gz",
969
+ "sha256": "dbaf00b342735a3370150a68a25f80d3e4e760081f54dee92b5c9a93fe152e66",
970
+ "score": {
971
+ "success": true,
972
+ "reason": "success",
973
+ "reference_xy_m": [
974
+ 0.35,
975
+ 0.08
976
+ ],
977
+ "terminal_reference_success": true,
978
+ "native_outcome_success": true,
979
+ "native_outcome_valid": true,
980
+ "terminal_dwell_s": 5.459999999999999,
981
+ "required_dwell_s": 0.25,
982
+ "terminal_xy_error_m": 0.004379624479004233,
983
+ "trace_lift_dwell_s": 1.3600000000000012,
984
+ "required_lift_dwell_s": 0.1,
985
+ "sample_interval_s": 0.02,
986
+ "trajectory_complete": true,
987
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
988
+ },
989
+ "used_for_training": true
990
+ },
991
+ {
992
+ "id": "train-14-goal1",
993
+ "start_xy": [
994
+ 0.314,
995
+ -0.025
996
+ ],
997
+ "goal_xy": [
998
+ 0.4,
999
+ -0.08
1000
+ ],
1001
+ "seed": 261029,
1002
+ "episode": "demonstrations/train-14-goal1.json.gz",
1003
+ "sha256": "5f72f085ed553c0f4e36a4699e58792e7c6682002d8d9a16f713c99d0bb96dd6",
1004
+ "score": {
1005
+ "success": true,
1006
+ "reason": "success",
1007
+ "reference_xy_m": [
1008
+ 0.4,
1009
+ -0.08
1010
+ ],
1011
+ "terminal_reference_success": true,
1012
+ "native_outcome_success": true,
1013
+ "native_outcome_valid": true,
1014
+ "terminal_dwell_s": 5.140000000000001,
1015
+ "required_dwell_s": 0.25,
1016
+ "terminal_xy_error_m": 0.009519962236251933,
1017
+ "trace_lift_dwell_s": 1.6600000000000001,
1018
+ "required_lift_dwell_s": 0.1,
1019
+ "sample_interval_s": 0.02,
1020
+ "trajectory_complete": true,
1021
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
1022
+ },
1023
+ "used_for_training": true
1024
+ },
1025
+ {
1026
+ "id": "train-15-goal0",
1027
+ "start_xy": [
1028
+ 0.314,
1029
+ -0.015
1030
+ ],
1031
+ "goal_xy": [
1032
+ 0.35,
1033
+ 0.08
1034
+ ],
1035
+ "seed": 261030,
1036
+ "episode": "demonstrations/train-15-goal0.json.gz",
1037
+ "sha256": "c215782193fd7dddea81d2d4d1f5497aaca81adc9d259c2be4ab4fe1ff52a225",
1038
+ "score": {
1039
+ "success": true,
1040
+ "reason": "success",
1041
+ "reference_xy_m": [
1042
+ 0.35,
1043
+ 0.08
1044
+ ],
1045
+ "terminal_reference_success": true,
1046
+ "native_outcome_success": true,
1047
+ "native_outcome_valid": true,
1048
+ "terminal_dwell_s": 5.799999999999999,
1049
+ "required_dwell_s": 0.25,
1050
+ "terminal_xy_error_m": 0.0046359907350581805,
1051
+ "trace_lift_dwell_s": 1.3200000000000003,
1052
+ "required_lift_dwell_s": 0.1,
1053
+ "sample_interval_s": 0.02,
1054
+ "trajectory_complete": true,
1055
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
1056
+ },
1057
+ "used_for_training": true
1058
+ },
1059
+ {
1060
+ "id": "train-15-goal1",
1061
+ "start_xy": [
1062
+ 0.314,
1063
+ -0.015
1064
+ ],
1065
+ "goal_xy": [
1066
+ 0.4,
1067
+ -0.08
1068
+ ],
1069
+ "seed": 261031,
1070
+ "episode": "demonstrations/train-15-goal1.json.gz",
1071
+ "sha256": "ceaf15727bbbe165d3b8e293fe28ba37c644566441a7d96037b3ebe67fc18954",
1072
+ "score": {
1073
+ "success": true,
1074
+ "reason": "success",
1075
+ "reference_xy_m": [
1076
+ 0.4,
1077
+ -0.08
1078
+ ],
1079
+ "terminal_reference_success": true,
1080
+ "native_outcome_success": true,
1081
+ "native_outcome_valid": true,
1082
+ "terminal_dwell_s": 5.4399999999999995,
1083
+ "required_dwell_s": 0.25,
1084
+ "terminal_xy_error_m": 0.009598328361115255,
1085
+ "trace_lift_dwell_s": 1.6799999999999997,
1086
+ "required_lift_dwell_s": 0.1,
1087
+ "sample_interval_s": 0.02,
1088
+ "trajectory_complete": true,
1089
+ "native_metrics_source": "simulator-authored episode record; not authenticated sensor input"
1090
+ },
1091
+ "used_for_training": true
1092
+ }
1093
+ ],
1094
+ "scene_ids": [
1095
+ "train-00-goal0",
1096
+ "train-00-goal1",
1097
+ "train-01-goal0",
1098
+ "train-01-goal1",
1099
+ "train-02-goal0",
1100
+ "train-02-goal1",
1101
+ "train-03-goal0",
1102
+ "train-03-goal1",
1103
+ "train-04-goal0",
1104
+ "train-04-goal1",
1105
+ "train-05-goal0",
1106
+ "train-05-goal1",
1107
+ "train-06-goal0",
1108
+ "train-06-goal1",
1109
+ "train-07-goal0",
1110
+ "train-07-goal1",
1111
+ "train-08-goal0",
1112
+ "train-08-goal1",
1113
+ "train-09-goal0",
1114
+ "train-09-goal1",
1115
+ "train-10-goal0",
1116
+ "train-10-goal1",
1117
+ "train-11-goal0",
1118
+ "train-11-goal1",
1119
+ "train-12-goal0",
1120
+ "train-12-goal1",
1121
+ "train-13-goal0",
1122
+ "train-13-goal1",
1123
+ "train-14-goal0",
1124
+ "train-14-goal1",
1125
+ "train-15-goal0",
1126
+ "train-15-goal1"
1127
+ ],
1128
+ "sample_count": 32000,
1129
+ "samples_sha256": "b654be09d1d375bf0eebc7e2cde6718673cdd68ed1f8117ac256ec275005f3ec",
1130
+ "feature_source": "causal pre-action observations only; no phase/outcome labels in input whitelist",
1131
+ "supervision_origin": "synthetic_authored_controller",
1132
+ "physical_robot_ready": false
1133
+ }