Ethgar commited on
Commit
69151bd
·
verified ·
1 Parent(s): c4c86e0

Bodies registry, fold_clothes (two hands), task x body and skill x body matrices

Browse files
board.json CHANGED
@@ -1,16 +1,157 @@
1
  {
2
- "format": "pilot-board/1",
3
- "built": "2026-11-10T17:58:13+00:00",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  "tasks": {
5
  "clean_the_room": {
6
- "bodies": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  "cable"
8
  ],
9
  "results": [
10
  {
11
  "id": "2026-11-10_2ed39e20ae72_c1511f1b78dd_bedroom_s0",
12
- "sim": "3.15.0",
13
- "reference_sim": true,
14
  "body": "cable",
15
  "world": "sim:bedroom",
16
  "seed": 0,
@@ -37,14 +178,15 @@
37
  },
38
  "by": "Ethgar",
39
  "date": "2026-11-10T17:57:24+00:00",
 
 
 
40
  "media": "tasks/clean_the_room/media/2026-11-10_2ed39e20ae72_c1511f1b78dd_bedroom_s0.mp4"
41
  }
42
  ],
43
  "best": [
44
  {
45
  "id": "2026-11-10_2ed39e20ae72_c1511f1b78dd_bedroom_s0",
46
- "sim": "3.15.0",
47
- "reference_sim": true,
48
  "body": "cable",
49
  "world": "sim:bedroom",
50
  "seed": 0,
@@ -71,16 +213,192 @@
71
  },
72
  "by": "Ethgar",
73
  "date": "2026-11-10T17:57:24+00:00",
 
 
 
74
  "media": "tasks/clean_the_room/media/2026-11-10_2ed39e20ae72_c1511f1b78dd_bedroom_s0.mp4"
75
  }
76
- ],
77
- "card_lines": 32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  },
79
  "pen_in_cup": {
80
- "bodies": [],
 
 
 
 
 
 
 
 
 
 
 
 
81
  "results": [],
82
- "best": [],
83
- "card_lines": 36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  }
85
  }
86
  }
 
1
  {
2
+ "format": "pilot-board/2",
3
+ "built": "2026-11-11T08:05:40+00:00",
4
+ "bodies": [
5
+ {
6
+ "body": "cable",
7
+ "pilot": "MacroSwan/cablepilot",
8
+ "status": "open",
9
+ "carrier": "cable-driven parallel robot (4 lines, a gantry, a swinging pole)",
10
+ "machines": [
11
+ "Stringman (Neufangled)"
12
+ ],
13
+ "rigs": [
14
+ {
15
+ "rig": "stringman",
16
+ "hands": 1,
17
+ "hand": "Stringman two-finger gripper",
18
+ "status": "open"
19
+ },
20
+ {
21
+ "rig": "duo_rig",
22
+ "hands": 2,
23
+ "hand": "two SO-101 arms on a turntable plate",
24
+ "status": "private"
25
+ }
26
+ ],
27
+ "predicates": [
28
+ "see",
29
+ "pre_grasp",
30
+ "grasp",
31
+ "pre_inside",
32
+ "release",
33
+ "inside",
34
+ "avoid"
35
+ ],
36
+ "predicates_source": "cablepilot/cardrun.py CABLE_SKILLS",
37
+ "model": {
38
+ "params": 28401,
39
+ "train": "11 min, laptop CPU, task-free sim motion in 12k random rooms"
40
+ }
41
+ },
42
+ {
43
+ "body": "arm",
44
+ "pilot": "MacroSwan/armpilot",
45
+ "status": "coming",
46
+ "carrier": "desk arm (SO-101, 6 servos)",
47
+ "machines": [
48
+ "SO-101 (LeRobot)"
49
+ ],
50
+ "rigs": [
51
+ {
52
+ "rig": "so101",
53
+ "hands": 1,
54
+ "hand": "SO-101 pinch",
55
+ "status": "private"
56
+ },
57
+ {
58
+ "rig": "so101_duo",
59
+ "hands": 2,
60
+ "hand": "two SO-101s facing each other",
61
+ "status": "private"
62
+ }
63
+ ],
64
+ "predicates": [],
65
+ "note": "the only pilot with real-robot runs (pen in cup on a real SO-101): the first to release after cable"
66
+ },
67
+ {
68
+ "body": "dog",
69
+ "pilot": "MacroSwan/dogpilot",
70
+ "status": "coming",
71
+ "carrier": "quadruped (Unitree Go2)",
72
+ "machines": [
73
+ "Unitree Go2 (sim)"
74
+ ],
75
+ "rigs": [
76
+ {
77
+ "rig": "go2",
78
+ "hands": 0,
79
+ "hand": "none",
80
+ "status": "private"
81
+ }
82
+ ],
83
+ "predicates": [],
84
+ "note": "MPPI over a learned motion model: duck under and jump over bars"
85
+ },
86
+ {
87
+ "body": "drone",
88
+ "pilot": "MacroSwan/dronepilot",
89
+ "status": "coming",
90
+ "carrier": "quadrotor (and fixed wing)",
91
+ "machines": [
92
+ "quadrotor (sim)"
93
+ ],
94
+ "rigs": [
95
+ {
96
+ "rig": "quad",
97
+ "hands": 0,
98
+ "hand": "none",
99
+ "status": "private"
100
+ },
101
+ {
102
+ "rig": "quad_pinch",
103
+ "hands": 1,
104
+ "hand": "SO-101 pinch under the frame",
105
+ "status": "private"
106
+ }
107
+ ],
108
+ "predicates": [],
109
+ "note": "SkyJEPA world model; public precursors on huggingface.co/Ethgar (skyjepa, skyfull datasets)"
110
+ },
111
+ {
112
+ "body": "human",
113
+ "pilot": "MacroSwan/humanpilot",
114
+ "status": "coming",
115
+ "carrier": "humanoid (Unitree G1)",
116
+ "machines": [
117
+ "Unitree G1 (sim)"
118
+ ],
119
+ "rigs": [
120
+ {
121
+ "rig": "g1",
122
+ "hands": 2,
123
+ "hand": "G1 hands",
124
+ "status": "private"
125
+ }
126
+ ],
127
+ "predicates": [],
128
+ "note": "licence to settle before release: the motion prior is trained on LAFAN1 (CC BY-NC-ND)"
129
+ }
130
+ ],
131
  "tasks": {
132
  "clean_the_room": {
133
+ "needs": {
134
+ "predicates": [
135
+ "grasp",
136
+ "inside",
137
+ "pre_grasp",
138
+ "pre_inside",
139
+ "release",
140
+ "see"
141
+ ],
142
+ "hands": 1
143
+ },
144
+ "lineage": {
145
+ "parent": "worldpilot:cards/home/clean_the_room.yaml",
146
+ "by": "Ethgar",
147
+ "why": "runnable on today's skills: one box, every stray"
148
+ },
149
+ "tunings": [
150
  "cable"
151
  ],
152
  "results": [
153
  {
154
  "id": "2026-11-10_2ed39e20ae72_c1511f1b78dd_bedroom_s0",
 
 
155
  "body": "cable",
156
  "world": "sim:bedroom",
157
  "seed": 0,
 
178
  },
179
  "by": "Ethgar",
180
  "date": "2026-11-10T17:57:24+00:00",
181
+ "sim": "3.15.0",
182
+ "reference_sim": true,
183
+ "result": "tasks/clean_the_room/results/2026-11-10_2ed39e20ae72_c1511f1b78dd_bedroom_s0.json",
184
  "media": "tasks/clean_the_room/media/2026-11-10_2ed39e20ae72_c1511f1b78dd_bedroom_s0.mp4"
185
  }
186
  ],
187
  "best": [
188
  {
189
  "id": "2026-11-10_2ed39e20ae72_c1511f1b78dd_bedroom_s0",
 
 
190
  "body": "cable",
191
  "world": "sim:bedroom",
192
  "seed": 0,
 
213
  },
214
  "by": "Ethgar",
215
  "date": "2026-11-10T17:57:24+00:00",
216
+ "sim": "3.15.0",
217
+ "reference_sim": true,
218
+ "result": "tasks/clean_the_room/results/2026-11-10_2ed39e20ae72_c1511f1b78dd_bedroom_s0.json",
219
  "media": "tasks/clean_the_room/media/2026-11-10_2ed39e20ae72_c1511f1b78dd_bedroom_s0.mp4"
220
  }
221
+ ]
222
+ },
223
+ "fold_clothes": {
224
+ "needs": {
225
+ "predicates": [
226
+ "folded",
227
+ "laid_flat",
228
+ "on_top",
229
+ "release",
230
+ "see",
231
+ "support_both"
232
+ ],
233
+ "hands": 2
234
+ },
235
+ "lineage": {
236
+ "parent": "worldpilot:cards/home/fold_clothes.yaml",
237
+ "by": "Ethgar",
238
+ "why": "the first two-hand challenge on the board, unchanged"
239
+ },
240
+ "tunings": [],
241
+ "results": [],
242
+ "best": []
243
  },
244
  "pen_in_cup": {
245
+ "needs": {
246
+ "predicates": [
247
+ "grasp",
248
+ "inside",
249
+ "pre_grasp",
250
+ "pre_inside",
251
+ "release",
252
+ "see"
253
+ ],
254
+ "hands": 1
255
+ },
256
+ "lineage": null,
257
+ "tunings": [],
258
  "results": [],
259
+ "best": []
260
+ }
261
+ },
262
+ "matrix": {
263
+ "clean_the_room": {
264
+ "cable": {
265
+ "state": "scored",
266
+ "done": 29,
267
+ "of": 36,
268
+ "world": "sim:bedroom",
269
+ "result": "tasks/clean_the_room/results/2026-11-10_2ed39e20ae72_c1511f1b78dd_bedroom_s0.json"
270
+ },
271
+ "arm": {
272
+ "state": "coming"
273
+ },
274
+ "dog": {
275
+ "state": "coming"
276
+ },
277
+ "drone": {
278
+ "state": "coming"
279
+ },
280
+ "human": {
281
+ "state": "coming"
282
+ }
283
+ },
284
+ "fold_clothes": {
285
+ "cable": {
286
+ "state": "gap",
287
+ "missing": [
288
+ "2 hands"
289
+ ]
290
+ },
291
+ "arm": {
292
+ "state": "coming"
293
+ },
294
+ "dog": {
295
+ "state": "coming"
296
+ },
297
+ "drone": {
298
+ "state": "coming"
299
+ },
300
+ "human": {
301
+ "state": "coming"
302
+ }
303
+ },
304
+ "pen_in_cup": {
305
+ "cable": {
306
+ "state": "runs"
307
+ },
308
+ "arm": {
309
+ "state": "coming"
310
+ },
311
+ "dog": {
312
+ "state": "coming"
313
+ },
314
+ "drone": {
315
+ "state": "coming"
316
+ },
317
+ "human": {
318
+ "state": "coming"
319
+ }
320
+ }
321
+ },
322
+ "skills": {
323
+ "folded": {
324
+ "cards": [
325
+ "fold_clothes"
326
+ ],
327
+ "bodies": []
328
+ },
329
+ "grasp": {
330
+ "cards": [
331
+ "clean_the_room",
332
+ "pen_in_cup"
333
+ ],
334
+ "bodies": [
335
+ "cable"
336
+ ]
337
+ },
338
+ "inside": {
339
+ "cards": [
340
+ "clean_the_room",
341
+ "pen_in_cup"
342
+ ],
343
+ "bodies": [
344
+ "cable"
345
+ ]
346
+ },
347
+ "laid_flat": {
348
+ "cards": [
349
+ "fold_clothes"
350
+ ],
351
+ "bodies": []
352
+ },
353
+ "on_top": {
354
+ "cards": [
355
+ "fold_clothes"
356
+ ],
357
+ "bodies": []
358
+ },
359
+ "pre_grasp": {
360
+ "cards": [
361
+ "clean_the_room",
362
+ "pen_in_cup"
363
+ ],
364
+ "bodies": [
365
+ "cable"
366
+ ]
367
+ },
368
+ "pre_inside": {
369
+ "cards": [
370
+ "clean_the_room",
371
+ "pen_in_cup"
372
+ ],
373
+ "bodies": [
374
+ "cable"
375
+ ]
376
+ },
377
+ "release": {
378
+ "cards": [
379
+ "clean_the_room",
380
+ "fold_clothes",
381
+ "pen_in_cup"
382
+ ],
383
+ "bodies": [
384
+ "cable"
385
+ ]
386
+ },
387
+ "see": {
388
+ "cards": [
389
+ "clean_the_room",
390
+ "fold_clothes",
391
+ "pen_in_cup"
392
+ ],
393
+ "bodies": [
394
+ "cable"
395
+ ]
396
+ },
397
+ "support_both": {
398
+ "cards": [
399
+ "fold_clothes"
400
+ ],
401
+ "bodies": []
402
  }
403
  }
404
  }
bodies/arm.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ body: arm
2
+ pilot: MacroSwan/armpilot
3
+ status: coming
4
+ carrier: desk arm (SO-101, 6 servos)
5
+ machines: [SO-101 (LeRobot)]
6
+ rigs:
7
+ - {rig: so101, hands: 1, hand: SO-101 pinch, status: private}
8
+ - {rig: so101_duo, hands: 2, hand: two SO-101s facing each other, status: private}
9
+ predicates: [] # filled from armpilot's card runner at release
10
+ note: "the only pilot with real-robot runs (pen in cup on a real SO-101): the first to release after cable"
bodies/cable.yaml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # One file per body (carrier). The board reads it to fill the task x body and skill x body matrices.
2
+ # predicates: the goal predicates this body can run today (a card whose goals are all here runs on it).
3
+ body: cable
4
+ pilot: MacroSwan/cablepilot
5
+ status: open
6
+ carrier: cable-driven parallel robot (4 lines, a gantry, a swinging pole)
7
+ machines: [Stringman (Neufangled)]
8
+ rigs:
9
+ - {rig: stringman, hands: 1, hand: Stringman two-finger gripper, status: open}
10
+ - {rig: duo_rig, hands: 2, hand: two SO-101 arms on a turntable plate, status: private}
11
+ predicates: [see, pre_grasp, grasp, pre_inside, release, inside, avoid]
12
+ predicates_source: "cablepilot/cardrun.py CABLE_SKILLS"
13
+ model: {params: 28401, train: "11 min, laptop CPU, task-free sim motion in 12k random rooms"}
bodies/dog.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ body: dog
2
+ pilot: MacroSwan/dogpilot
3
+ status: coming
4
+ carrier: quadruped (Unitree Go2)
5
+ machines: [Unitree Go2 (sim)]
6
+ rigs:
7
+ - {rig: go2, hands: 0, hand: none, status: private}
8
+ predicates: []
9
+ note: "MPPI over a learned motion model: duck under and jump over bars"
bodies/drone.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ body: drone
2
+ pilot: MacroSwan/dronepilot
3
+ status: coming
4
+ carrier: quadrotor (and fixed wing)
5
+ machines: [quadrotor (sim)]
6
+ rigs:
7
+ - {rig: quad, hands: 0, hand: none, status: private}
8
+ - {rig: quad_pinch, hands: 1, hand: SO-101 pinch under the frame, status: private}
9
+ predicates: []
10
+ note: "SkyJEPA world model; public precursors on huggingface.co/Ethgar (skyjepa, skyfull datasets)"
bodies/human.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ body: human
2
+ pilot: MacroSwan/humanpilot
3
+ status: coming
4
+ carrier: humanoid (Unitree G1)
5
+ machines: [Unitree G1 (sim)]
6
+ rigs:
7
+ - {rig: g1, hands: 2, hand: G1 hands, status: private}
8
+ predicates: []
9
+ note: "licence to settle before release: the motion prior is trained on LAFAN1 (CC BY-NC-ND)"
scripts/board.py CHANGED
@@ -1,12 +1,25 @@
1
- """Rebuild board.json from every tasks/*/results/*.json: the best result per (task, body, world), each task's results
2
- ranked, and its lineage edges. Run after merging a PR: python scripts/board.py (stdlib only)."""
 
 
 
 
 
 
 
 
 
 
3
  from __future__ import annotations
4
 
5
  import json
6
  from datetime import datetime, timezone
7
  from pathlib import Path
8
 
 
 
9
  ROOT = Path(__file__).resolve().parents[1]
 
10
 
11
 
12
  def rank_key(r: dict):
@@ -14,36 +27,86 @@ def rank_key(r: dict):
14
  return (-s["done_frac"], s.get("furniture_contact_ticks", 0), s.get("s_per_item") or 1e9)
15
 
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  def main():
 
 
 
18
  tasks = {}
19
  for task_dir in sorted((ROOT / "tasks").iterdir()):
20
- if not task_dir.is_dir():
21
  continue
22
- results = []
23
- for f in sorted((task_dir / "results").glob("*.json")):
24
- r = json.loads(f.read_text())
25
- if r.get("format") != "pilot-result/1":
26
- continue
27
- env = r.get("env") or {}
28
- results.append({"id": f.stem, "sim": env.get("mujoco"), "reference_sim": bool(env.get("reference_sim")), "body": r["body"], "world": r["world"], "seed": r["seed"],
29
- "episodes": r["episodes"], "score": r["score"], "compute": r["compute"],
30
- "card_sha": r["card_sha"], "tuning_sha": r.get("tuning_sha"), "lineage": r.get("lineage"),
31
- "by": r["by"], "date": r["date"],
32
- "media": f"tasks/{task_dir.name}/media/{f.stem}.mp4"
33
- if (task_dir / "media" / f"{f.stem}.mp4").exists() else None})
34
  best = {}
35
- for r in sorted(results, key=rank_key):
36
- if r["reference_sim"]: # only results on the reference simulator compete for best
37
  best.setdefault(f"{r['body']}|{r['world']}", r)
38
- card = (task_dir / "card.yaml").read_text() if (task_dir / "card.yaml").exists() else ""
39
- tunings = sorted(p.stem for p in (task_dir / "tuning").glob("*.yaml"))
40
- tasks[task_dir.name] = {"bodies": tunings, "results": sorted(results, key=rank_key),
41
- "best": list(best.values()), "card_lines": card.count("\n")}
42
- board = {"format": "pilot-board/1", "built": datetime.now(timezone.utc).isoformat(timespec="seconds"), "tasks": tasks}
43
- (ROOT / "board.json").write_text(json.dumps(board, indent=1))
44
  for t, v in tasks.items():
45
- b = ", ".join(f"{r['body']} {r['world']}: {r['score']['done']}/{r['score']['of']}" for r in v["best"]) or "no results"
46
- print(f"{t:<20} {b}")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
 
49
  if __name__ == "__main__":
 
1
+ """Rebuild board.json from the dataset: bodies/*.yaml, tasks/*/card.yaml, tasks/*/results/*.json.
2
+
3
+ python scripts/board.py (needs pyyaml)
4
+
5
+ board.json holds:
6
+ bodies the body registry (carrier, rigs with their hand count, status, the goal predicates it runs)
7
+ tasks per task: its results ranked, the best per (body, world) on the reference simulator
8
+ matrix task x body: one cell per pair, the best score if any, else whether the body could run it
9
+ (runs: unscored / missing: the predicates it lacks / needs 2 hands / coming)
10
+ skills predicate x body: which body runs which goal predicate, and how many cards use each predicate
11
+ Only results on the reference simulator compete for best (see cablepilot.cardrun.REFERENCE_SIM).
12
+ """
13
  from __future__ import annotations
14
 
15
  import json
16
  from datetime import datetime, timezone
17
  from pathlib import Path
18
 
19
+ import yaml
20
+
21
  ROOT = Path(__file__).resolve().parents[1]
22
+ TWO_HANDS = {"left_hand", "right_hand", "other_hand"}
23
 
24
 
25
  def rank_key(r: dict):
 
27
  return (-s["done_frac"], s.get("furniture_contact_ticks", 0), s.get("s_per_item") or 1e9)
28
 
29
 
30
+ def card_needs(card: dict) -> dict:
31
+ """The goal predicates a card's stages and done test use, and how many hands it needs."""
32
+ preds = set()
33
+ for st in card.get("stages") or []:
34
+ for g in st.get("goals") or []:
35
+ preds |= set(g) - {"tol"}
36
+ if card.get("done"):
37
+ preds |= set(card["done"]) - {"tol"}
38
+ hands = 2 if TWO_HANDS & set(card.get("roles") or []) else 1
39
+ return {"predicates": sorted(preds), "hands": hands}
40
+
41
+
42
+ def load_results(task_dir: Path) -> list[dict]:
43
+ out = []
44
+ for f in sorted((task_dir / "results").glob("*.json")):
45
+ r = json.loads(f.read_text())
46
+ if r.get("format") != "pilot-result/1":
47
+ continue
48
+ env = r.get("env") or {}
49
+ out.append({"id": f.stem, "body": r["body"], "world": r["world"], "seed": r["seed"], "episodes": r["episodes"],
50
+ "score": r["score"], "compute": r["compute"], "card_sha": r["card_sha"],
51
+ "tuning_sha": r.get("tuning_sha"), "lineage": r.get("lineage"), "by": r["by"], "date": r["date"],
52
+ "sim": env.get("mujoco"), "reference_sim": bool(env.get("reference_sim")),
53
+ "result": f"tasks/{task_dir.name}/results/{f.name}",
54
+ "media": f"tasks/{task_dir.name}/media/{f.stem}.mp4"
55
+ if (task_dir / "media" / f"{f.stem}.mp4").exists() else None})
56
+ return sorted(out, key=rank_key)
57
+
58
+
59
+ def cell(task: dict, body: dict) -> dict:
60
+ best = [r for r in task["best"] if r["body"] == body["body"]]
61
+ if best:
62
+ b = best[0]
63
+ return {"state": "scored", "done": b["score"]["done"], "of": b["score"]["of"], "world": b["world"],
64
+ "result": b["result"]}
65
+ if body["status"] != "open":
66
+ return {"state": "coming"}
67
+ max_hands = max((rg["hands"] for rg in body.get("rigs", []) if rg.get("status") == "open"), default=0)
68
+ if task["needs"]["hands"] > max_hands:
69
+ return {"state": "gap", "missing": [f"{task['needs']['hands']} hands"]}
70
+ missing = [p for p in task["needs"]["predicates"] if p not in set(body.get("predicates") or [])]
71
+ return {"state": "gap", "missing": missing} if missing else {"state": "runs"}
72
+
73
+
74
  def main():
75
+ bodies = [yaml.safe_load(p.read_text()) for p in sorted((ROOT / "bodies").glob("*.yaml"))]
76
+ order = {"open": 0, "coming": 1}
77
+ bodies.sort(key=lambda b: (order.get(b["status"], 2), b["body"]))
78
  tasks = {}
79
  for task_dir in sorted((ROOT / "tasks").iterdir()):
80
+ if not (task_dir / "card.yaml").exists():
81
  continue
82
+ card = yaml.safe_load((task_dir / "card.yaml").read_text())
83
+ results = load_results(task_dir)
 
 
 
 
 
 
 
 
 
 
84
  best = {}
85
+ for r in results:
86
+ if r["reference_sim"]:
87
  best.setdefault(f"{r['body']}|{r['world']}", r)
88
+ tasks[task_dir.name] = {"needs": card_needs(card), "lineage": card.get("lineage"),
89
+ "tunings": sorted(p.stem for p in (task_dir / "tuning").glob("*.yaml")),
90
+ "results": results, "best": list(best.values())}
91
+ matrix = {t: {b["body"]: cell(v, b) for b in bodies} for t, v in tasks.items()}
92
+ used = {}
 
93
  for t, v in tasks.items():
94
+ for p in v["needs"]["predicates"]:
95
+ used.setdefault(p, []).append(t)
96
+ skills = {p: {"cards": sorted(ts), "bodies": [b["body"] for b in bodies if p in set(b.get("predicates") or [])]}
97
+ for p, ts in sorted(used.items())}
98
+ board = {"format": "pilot-board/2", "built": datetime.now(timezone.utc).isoformat(timespec="seconds"),
99
+ "bodies": bodies, "tasks": tasks, "matrix": matrix, "skills": skills}
100
+ (ROOT / "board.json").write_text(json.dumps(board, indent=1))
101
+ w = max(len(t) for t in tasks) + 2
102
+ print(" " * w + "".join(f"{b['body']:<14}" for b in bodies))
103
+ for t, row in matrix.items():
104
+ txt = []
105
+ for b in bodies:
106
+ c = row[b["body"]]
107
+ txt.append({"scored": lambda: f"{c['done']}/{c['of']}", "coming": lambda: "coming", "runs": lambda: "runs",
108
+ "gap": lambda: "-" + ",".join(c["missing"])}[c["state"]]()[:13])
109
+ print(f"{t:<{w}}" + "".join(f"{x:<14}" for x in txt))
110
 
111
 
112
  if __name__ == "__main__":
tasks/fold_clothes/card.yaml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fold clothes: a shirt laid flat on the table, sleeves in, folded in half, set on the folded pile. The common sense of
2
+ # the task and nothing else: no fold line is written, the eyes see the shirt's outline and the folds count. Written
3
+ # 2026-10-20 (lab day, track 5); cloth is outside today's vocabulary (armpilot's cards README says so), this card says
4
+ # what it would take.
5
+ task: fold_clothes
6
+ lineage: {parent: "worldpilot:cards/home/fold_clothes.yaml", by: "Ethgar", why: "the first two-hand challenge on the board, unchanged"}
7
+ vocabulary: home
8
+ source: {dataset: null, episode: null, frames: null, model: null, note: "from the description 'fold the clothes'; no video read. One shirt stands for every piece in the basket (`each`). Missing: parts `corner` / `edge`; laid_flat(thing, part); folded(object) with tol folds_n (holds: the seen footprint shrank by a fold per count and the layers stay put). support_both is a LibraryGap today. Fails at load on the part `corner`"}
9
+ roles: [hand, left_hand, right_hand, head_camera]
10
+ objects:
11
+ shirt: {kind: shirt, role: held, shape: flat, movable: true}
12
+ table: {kind: table, role: fixture, shape: block, movable: false}
13
+ pile: {kind: folded_pile, role: site, shape: flat, movable: false, note: "the clothes already folded; the table's free corner when there are none"}
14
+ parts:
15
+ shirt.corner: {of: shirt, part: corner, note: "the shoulders when it is spread, the hem's corners when it is folded"}
16
+ shirt.edge: {of: shirt, part: edge}
17
+ table.top: {of: table, part: top}
18
+ pile.top: {of: pile, part: top}
19
+ stages:
20
+ - name: observe
21
+ goals: [{see: [head_camera, shirt]}, {see: [head_camera, table]}]
22
+ - name: take_shoulders # two hands on two corners, shaken out in the air
23
+ goals: [{support_both: [left_hand, right_hand, shirt]}]
24
+ - name: spread # laid on the table front down, flat
25
+ goals: [{laid_flat: [shirt, table.top]}]
26
+ invariants: [{support_both: [left_hand, right_hand, shirt]}]
27
+ - name: let_go
28
+ goals: [{release: [left_hand, shirt]}, {release: [right_hand, shirt]}]
29
+ invariants: [{laid_flat: [shirt, table.top]}]
30
+ - name: sides_in # each side with its sleeve over the back: two folds
31
+ goals: [{folded: [shirt], tol: {folds_n: 2}}]
32
+ invariants: [{on_top: [shirt, table.top]}]
33
+ - name: in_half # hem to collar, both hands on the hem's corners
34
+ goals: [{folded: [shirt], tol: {folds_n: 3}}]
35
+ invariants: [{on_top: [shirt, table.top]}]
36
+ - name: lift_folded
37
+ goals: [{support_both: [left_hand, right_hand, shirt]}]
38
+ invariants: [{folded: [shirt], tol: {folds_n: 3}}]
39
+ - name: onto_pile
40
+ goals: [{on_top: [shirt, pile.top]}]
41
+ invariants: [{support_both: [left_hand, right_hand, shirt]}, {folded: [shirt], tol: {folds_n: 3}}]
42
+ - name: release
43
+ goals: [{release: [left_hand, shirt]}, {release: [right_hand, shirt]}]
44
+ fallbacks:
45
+ - {when: {broken: {see: [head_camera, shirt]}}, go: observe}
46
+ - {when: {broken: {laid_flat: [shirt, table.top]}}, go: take_shoulders}
47
+ - {when: {broken: {folded: [shirt], tol: {folds_n: 3}}}, go: take_shoulders} # unfolded on the way: start again
48
+ - {when: {broken: {support_both: [left_hand, right_hand, shirt]}}, go: take_shoulders}
49
+ done: {folded: [shirt], tol: {folds_n: 3}}
50
+ validation: {sim: null}
51
+ costs:
52
+ note: "GUESS, 2026-10-21 (track 0): weights multiply each body's own tuned term weights. A person is never touched (10x; 20x for the drone, whose props cut). A drone that grazes furniture loses lift (3x); a balancing base that bumps one can fall (2x); the cable robot's platform hangs over everything and only its arms meet things (1x)."
53
+ default: {}
54
+ per_body: {}