Release workcell-manipulation: 15 tasks (part 5)
Browse files
tasks/drawer-kitting/instruction.md
CHANGED
|
@@ -66,7 +66,7 @@ Production engineer, Calder Valve Co.
|
|
| 66 |
- With a safety stop, the share of lines placed before the first stop, at most 0.5.
|
| 67 |
- On a card with a fault, 0 unless the controller stops with the right `{"status": "abort", "fault": ...}`
|
| 68 |
after the fault starts, with no safety stop. With it, 0 if no line was placed before the fault, and otherwise
|
| 69 |
-
|
| 70 |
L x (fault time - 35 s) / (45 s + 30 s per drawer + 40 s per card line), rounded down. No fault starts before
|
| 71 |
110 s into the card, so at least one line is always due.
|
| 72 |
- 0 for a controller error or an abort when nothing failed. Going over a wall-time limit counts as a controller
|
|
|
|
| 66 |
- With a safety stop, the share of lines placed before the first stop, at most 0.5.
|
| 67 |
- On a card with a fault, 0 unless the controller stops with the right `{"status": "abort", "fault": ...}`
|
| 68 |
after the fault starts, with no safety stop. With it, 0 if no line was placed before the fault, and otherwise
|
| 69 |
+
1 if the lines placed before the fault are at least the lines due, otherwise the lines placed before the fault divided by the number of lines in the cycle (what a cycle without a fault pays), where the lines due are
|
| 70 |
L x (fault time - 35 s) / (45 s + 30 s per drawer + 40 s per card line), rounded down. No fault starts before
|
| 71 |
110 s into the card, so at least one line is always due.
|
| 72 |
- 0 for a controller error or an abort when nothing failed. Going over a wall-time limit counts as a controller
|
tasks/drawer-kitting/tests/world/gauntlet/harness.py
CHANGED
|
@@ -217,8 +217,7 @@ def episode_score(r: dict) -> float:
|
|
| 217 |
"""Kit episode score (KT-4 acceptance table). Credit is per card line: a line counts once its part is placed in
|
| 218 |
its pocket (the `place_<line>` stage), out of the card's L lines.
|
| 219 |
- an episode where a terminal fault started: 0 without the right abort or with a safety stop; with them,
|
| 220 |
-
0 if no line was placed before the fault, else
|
| 221 |
-
at most 1, where the lines due are the lines a cell keeping kit-time pace after a 35 s set-up allowance would
|
| 222 |
have placed by then: floor(L * (fault time - 35 s) / kit time), between 1 and L. No fault starts before 110 s
|
| 223 |
(`task.fault_delay_s`), which is past 35 s + kit time / L for every card, so at least one line is due;
|
| 224 |
- a controller crash or wall-time cut-off, or an abort when nothing failed: 0;
|
|
@@ -238,7 +237,7 @@ def episode_score(r: dict) -> float:
|
|
| 238 |
budget = float(m.get("kit_budget_s") or 0.0)
|
| 239 |
due = max(1, min(n, math.floor(n * (t_fault - FAULT_SETUP_S) / budget))) if budget > 0 else 1
|
| 240 |
met = sum(1 for s in lines if s.get("done") and s.get("t") is not None and s["t"] <= t_fault)
|
| 241 |
-
return 0.0 if met == 0 else
|
| 242 |
if st in ("crash", "timeout", "abort"):
|
| 243 |
return 0.0
|
| 244 |
if r.get("safe_pass"):
|
|
|
|
| 217 |
"""Kit episode score (KT-4 acceptance table). Credit is per card line: a line counts once its part is placed in
|
| 218 |
its pocket (the `place_<line>` stage), out of the card's L lines.
|
| 219 |
- an episode where a terminal fault started: 0 without the right abort or with a safety stop; with them,
|
| 220 |
+
0 if no line was placed before the fault, else 1 if the lines placed before the fault are at least the lines due by the fault, otherwise the lines placed before the fault divided by the number of lines in the cycle (what a cycle without a fault pays), where the lines due are the lines a cell keeping kit-time pace after a 35 s set-up allowance would
|
|
|
|
| 221 |
have placed by then: floor(L * (fault time - 35 s) / kit time), between 1 and L. No fault starts before 110 s
|
| 222 |
(`task.fault_delay_s`), which is past 35 s + kit time / L for every card, so at least one line is due;
|
| 223 |
- a controller crash or wall-time cut-off, or an abort when nothing failed: 0;
|
|
|
|
| 237 |
budget = float(m.get("kit_budget_s") or 0.0)
|
| 238 |
due = max(1, min(n, math.floor(n * (t_fault - FAULT_SETUP_S) / budget))) if budget > 0 else 1
|
| 239 |
met = sum(1 for s in lines if s.get("done") and s.get("t") is not None and s["t"] <= t_fault)
|
| 240 |
+
return 0.0 if met == 0 else (1.0 if met >= due else met / n)
|
| 241 |
if st in ("crash", "timeout", "abort"):
|
| 242 |
return 0.0
|
| 243 |
if r.get("safe_pass"):
|
tasks/evidence-safe-intake/environment/world/INTAKE_PROCEDURE.md
CHANGED
|
@@ -45,7 +45,7 @@ but it is scored as below.
|
|
| 45 |
- An intake that passes every line and reports `done` scores 1.
|
| 46 |
- An intake with a fault scores 0 unless the controller gives the right abort within 20 s of the fault starting,
|
| 47 |
with no safety stop. It also scores 0 if no stage was done before the fault started. Otherwise it scores
|
| 48 |
-
|
| 49 |
keeping pace with the time limit after a 50 s set-up allowance would have done by then:
|
| 50 |
floor(n x (fault time - 50 s) / 240 s). No fault starts before 50 s + 240 s / n (80 s to 90 s), so at least
|
| 51 |
one stage is due whenever a fault starts.
|
|
|
|
| 45 |
- An intake that passes every line and reports `done` scores 1.
|
| 46 |
- An intake with a fault scores 0 unless the controller gives the right abort within 20 s of the fault starting,
|
| 47 |
with no safety stop. It also scores 0 if no stage was done before the fault started. Otherwise it scores
|
| 48 |
+
1 if the stages done before the fault are at least the stages due by the fault, otherwise the stages done before the fault divided by the number of stages in the cycle (what a cycle without a fault pays). The stages due are those a cell
|
| 49 |
keeping pace with the time limit after a 50 s set-up allowance would have done by then:
|
| 50 |
floor(n x (fault time - 50 s) / 240 s). No fault starts before 50 s + 240 s / n (80 s to 90 s), so at least
|
| 51 |
one stage is due whenever a fault starts.
|
tasks/evidence-safe-intake/environment/world/gauntlet/harness.py
CHANGED
|
@@ -215,7 +215,7 @@ def fault_episode_score(r: dict) -> float:
|
|
| 215 |
"""Score of an episode in which a T4 fault started.
|
| 216 |
|
| 217 |
0 without the right abort within the deadline, with a safety stop, or with no stage done before the fault.
|
| 218 |
-
Otherwise
|
| 219 |
the stages a cell keeping time-limit pace after a 50 s set-up allowance would have done by then:
|
| 220 |
floor(n * (fault time - 50 s) / time limit), between 0 and n. No fault starts before 50 s + time limit / n
|
| 221 |
(task.Vault.fault_floor_s), so at least one stage is due whenever a fault fires. Waiting for the fault, or holding
|
|
@@ -232,7 +232,7 @@ def fault_episode_score(r: dict) -> float:
|
|
| 232 |
met = int(r.get("onset_done") or 0)
|
| 233 |
if met == 0:
|
| 234 |
return 0.0
|
| 235 |
-
return
|
| 236 |
|
| 237 |
|
| 238 |
def episode_score(r: dict) -> float:
|
|
|
|
| 215 |
"""Score of an episode in which a T4 fault started.
|
| 216 |
|
| 217 |
0 without the right abort within the deadline, with a safety stop, or with no stage done before the fault.
|
| 218 |
+
Otherwise 1 if the stages done before the fault are at least the stages due by the fault, otherwise the stages done before the fault divided by the number of stages in the cycle (what a cycle without a fault pays), where the stages due are
|
| 219 |
the stages a cell keeping time-limit pace after a 50 s set-up allowance would have done by then:
|
| 220 |
floor(n * (fault time - 50 s) / time limit), between 0 and n. No fault starts before 50 s + time limit / n
|
| 221 |
(task.Vault.fault_floor_s), so at least one stage is due whenever a fault fires. Waiting for the fault, or holding
|
|
|
|
| 232 |
met = int(r.get("onset_done") or 0)
|
| 233 |
if met == 0:
|
| 234 |
return 0.0
|
| 235 |
+
return (1.0 if met >= due else met / n)
|
| 236 |
|
| 237 |
|
| 238 |
def episode_score(r: dict) -> float:
|