commit c283fbbeaf254d4dac5db3d0a50dc0600be6cd7a
Date: Tue Nov 24 17:32:50 2026 +0900

SO-101 の π0.5 (so101a) を実機で初めて動かす (依頼 286・エイイチ立ち会い・フォロワーを動かした). run_so101_policy.py に --currents off/lift_grip/all (既定 off は読まず記録の列も作らない. フォロワーの Present_Current = STS3215 の番地 69・2 バイト・1=6.5mA を 1 コマごとに ptm.current へ) と, n のときの失敗の番号 (1〜6) を足し, so101_trials.csv に stall_total_s・fail_reason・currents. check_286/currents_hz_286.py (テレオペ 10 秒 × 3 通り): off・lift_grip・all とも 29.98 コマ／秒 (最も遅いコマ 43.8・44.6・45.1 ms) → all. check_286/session_286.sh (Terminal での案内つきの通し). so101_Log10 で 10 回とも箱に入った (場所 1 先に問い合わせる 3/3・使い切ってから 3/3, 同数でエイイチが先に問い合わせる形を選び場所 2〜5). テスト: test_run_so101_policy 38 件 OK

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>


diff --git a/so101/check_286/currents_hz_286.py b/so101/check_286/currents_hz_286.py
new file mode 100644
index 0000000..3d028cb
--- /dev/null
+++ b/so101/check_286/currents_hz_286.py
@@ -0,0 +1,116 @@
+"""SO-101 で電流を読みながらテレオペして, 何コマ／秒で回るかを測る (依頼 286).
+
+run_so101_policy.py の LiveArm (lerobot_safe_259.py の入口 A・B・休みの姿勢. カメラ 2 台も開く) をそのまま使い,
+推論の 1 コマと同じ順 (観測 → 電流 → リーダー → 送る) を 30fps で 10 秒ずつ回す. 3 通り:
+  off = 電流なし / lift_grip = shoulder_lift と gripper / all = 6 つ全部
+電流はフォロワーの Present_Current (STS3215 の番地 69・2 バイト. 1 = 6.5 mA).
+結果は <--out>/currents_hz_<時刻>.json (上書きしない). エイイチは画面の案内どおりにリーダーを動かすだけ.
+
+    python so101/check_286/currents_hz_286.py --out /Volumes/KIOXIA/r2r2r-data/lab/so101_Log10/currents_hz
+"""
+
+import argparse
+import json
+import statistics
+import sys
+import time
+from datetime import datetime
+from pathlib import Path
+
+import numpy as np
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
+import run_so101_policy as R  # noqa: E402
+
+ORDER = ["off", "lift_grip", "all"]
+SECONDS = 10.0
+FULL_HZ = 29.5          # 10 秒で 295 コマ以上なら「30 コマ／秒が落ちない」とみる
+
+
+def summarize(name, starts, cur_s, currents, motors):
+    gaps = np.diff(starts)
+    n = len(starts)
+    span = starts[-1] - starts[0] if n > 1 else 0.0
+    out = {"currents": name, "motors": motors, "frames": n, "seconds": round(span, 3),
+           "hz": round((n - 1) / span, 2) if span else None,
+           "gap_median_ms": round(float(np.median(gaps)) * 1e3, 2) if len(gaps) else None,
+           "gap_max_ms": round(float(gaps.max()) * 1e3, 2) if len(gaps) else None,
+           "slowest_hz": round(1.0 / float(gaps.max()), 2) if len(gaps) else None,
+           "gaps_over_50ms": int((gaps > 0.05).sum()),
+           "current_read_median_ms": round(statistics.median(cur_s) * 1e3, 2) if cur_s else None,
+           "current_read_max_ms": round(max(cur_s) * 1e3, 2) if cur_s else None}
+    if currents:
+        c = np.asarray(currents)
+        out["current_raw_min"] = c.min(0).tolist()
+        out["current_raw_max"] = c.max(0).tolist()
+        out["current_mA_max"] = (c.max(0) * 6.5).round(1).tolist()
+    return out
+
+
+def run_one(arm, name):
+    arm.current_motors = R.CURRENT_SETS[name]
+    starts, cur_s, currents = [], [], []
+    nxt = time.perf_counter()
+    t_end = nxt + SECONDS
+    while True:
+        t0 = time.perf_counter()
+        if t0 >= t_end:
+            break
+        starts.append(t0)
+        arm.observe()
+        if arm.current_motors:
+            c0 = time.perf_counter()
+            currents.append(arm.read_currents())
+            cur_s.append(time.perf_counter() - c0)
+        lt = arm.leader_target()
+        if lt is not None:
+            arm.send(lt)
+        nxt += 1.0 / R.FPS
+        dt = nxt - time.perf_counter()
+        if dt > 0:
+            time.sleep(dt)
+        else:
+            nxt = time.perf_counter()
+    return summarize(name, starts, cur_s, currents, arm.current_motors)
+
+
+def main():
+    ap = argparse.ArgumentParser()
+    ap.add_argument("--out", required=True)
+    args = ap.parse_args()
+    out = Path(args.out)
+    out.mkdir(parents=True, exist_ok=True)
+    path = out / f"currents_hz_{datetime.now():%Y%m%d_%H%M%S}.json"
+    if path.exists():
+        sys.exit(f"[ERROR] もうある (上書きしない): {path}")
+    print("\n========== 電流を読む速さを測る (10 秒 × 3 通り) ==========")
+    print("フォロワーに力を入れます. リーダーを休みの姿勢のまま持っていてください.")
+    arm = R.LiveArm()
+    results = []
+    try:
+        for i, name in enumerate(ORDER, 1):
+            label = {"off": "電流なし", "lift_grip": "爪と肩 (shoulder_lift・gripper)", "all": "6 つ全部"}[name]
+            input(f"\n[{i}/3] {label}: Enter を押したら 10 秒, リーダーでゆっくり大きく動かしてください "
+                  "(肩を上げ下げ・爪を開け閉め) > ")
+            print("  ... 測っています (10 秒)")
+            r = run_one(arm, name)
+            results.append(r)
+            print(f"  → {r['hz']} コマ／秒 (コマの間 中央値 {r['gap_median_ms']} ms・最も遅い {r['gap_max_ms']} ms"
+                  f" = {r['slowest_hz']} コマ／秒)" + (f"  電流の読み 中央値 {r['current_read_median_ms']} ms" if r['current_read_median_ms'] else ""))
+            print("  測り終えました. リーダーをそのまま止めておいてください")
+    finally:
+        print("\nリーダーで休みの姿勢へ戻してください (戻ると力が抜けます)")
+        arm.close()
+    full = {r["currents"]: (r["frames"] - 1) / SECONDS >= FULL_HZ for r in results}
+    choice = "all" if full.get("all") else "lift_grip"
+    rec = {"request": 286, "at": datetime.now().isoformat(timespec="seconds"), "seconds_each": SECONDS,
+           "register": {"name": "Present_Current", "addr": 69, "size": 2, "unit_mA": 6.5},
+           "rule": f"6 つ全部で 10 秒に {int(FULL_HZ * SECONDS)} コマ以上 (= 30 コマ／秒が落ちない) なら all, 落ちるなら lift_grip",
+           "results": results, "keeps_30": full, "choice": choice}
+    path.write_text(json.dumps(rec, ensure_ascii=False, indent=2) + "\n")
+    print(f"\n選んだもの: {choice}  → {path}")
+    return 0
+
+
+if __name__ == "__main__":
+    sys.exit(main())
diff --git a/so101/check_286/session_286.sh b/so101/check_286/session_286.sh
new file mode 100755
index 0000000..1dc5b6a
--- /dev/null
+++ b/so101/check_286/session_286.sh
@@ -0,0 +1,80 @@
+#!/bin/bash
+# 依頼 286: エイイチの前の Terminal で流す案内つきの通し (電流の速さ → 推論 10 回 → 2 つの問い).
+# サーバーとトンネルは lab_start.sh --model so101a --log so101_Log10 --serve-only が別に張っている (localhost:8000).
+set -u
+HERE="$(cd "$(dirname "$0")/../.." && pwd)"     # リポジトリの一番上
+cd "$HERE" || exit 1
+PY=/opt/homebrew/Caskroom/miniforge/base/envs/lerobot/bin/python
+LOGDIR=/Volumes/KIOXIA/r2r2r-data/lab/so101_Log10
+HZDIR="$LOGDIR/currents_hz"
+CSV="$LOGDIR/so101_trials.csv"
+ANS="$LOGDIR/eiichi_answers_286.txt"
+
+big() { printf '\n\033[1;33m==================================================\n  %s\n==================================================\033[0m\n' "$1"; }
+
+big "依頼 286  SO-101 の π0.5 を実機で動かす"
+echo "このウィンドウの案内どおりに進めます. 白い箱・カメラ・照明は動かさないでください."
+
+# ---- 1. 電流の速さ ----
+if ls "$HZDIR"/currents_hz_*.json >/dev/null 2>&1; then
+    echo "[1] 電流の速さはもう測ってあります"
+else
+    big "1. 電流を読む速さを測る (10 秒 × 3 通り)"
+    read -r -p "リーダーを休みの姿勢で持ったら Enter > " _
+    "$PY" so101/check_286/currents_hz_286.py --out "$HZDIR" || { echo "[ERROR] 電流の速さを測れなかった"; read -r -p "Enter で閉じる > " _; exit 1; }
+fi
+HZ=$(ls -t "$HZDIR"/currents_hz_*.json | head -1)
+CHOICE=$("$PY" -c "import json,sys;print(json.load(open(sys.argv[1]))['choice'])" "$HZ")
+echo "[1] 推論の記録に残す電流: $CHOICE"
+
+# ---- 2. 推論 ----
+until nc -z localhost 8000 2>/dev/null; do echo "  サーバーの準備を待っています (Claude が用意しています) ..."; sleep 10; done
+count_y() {   # $1 = prefetch 1/0. 場所 1 の y の数
+    [ -f "$CSV" ] || { echo 0; return; }
+    "$PY" -c "import csv,sys;print(sum(1 for r in csv.DictReader(open(sys.argv[1])) if r['prefetch']==sys.argv[2] and r['place']=='1' and r['result']=='success'))" "$CSV" "$1"
+}
+n_rows() { [ -f "$CSV" ] && "$PY" -c "import csv,sys;print(sum(1 for _ in csv.DictReader(open(sys.argv[1]))))" "$CSV" || echo 0; }
+
+PLAN=(1:pre 1:pre 1:pre 1:nopre 1:nopre 1:nopre 2:best 3:best 4:best 5:best)
+BEST=""
+i=$(n_rows)
+while [ "$i" -lt 10 ]; do
+    item=${PLAN[$i]}; place=${item%%:*}; form=${item##*:}
+    if [ "$form" = best ] && [ -z "$BEST" ]; then
+        a=$(count_y 1); b=$(count_y 0)
+        echo; echo "[形] 場所 1 で箱に入った回数: 先に問い合わせる $a 回 / 使い切ってから $b 回"
+        if [ "$a" -gt "$b" ]; then BEST=pre; elif [ "$b" -gt "$a" ]; then BEST=nopre
+        else
+            while :; do
+                read -r -p "同じ数です. 場所 2〜5 はどちらの形で? p=先に問い合わせる / n=使い切ってから > " k
+                case "$k" in p) BEST=pre; break ;; n) BEST=nopre; break ;; esac
+            done
+            echo "エイイチの選択: $BEST (同数のため)" >> "$ANS"
+        fi
+    fi
+    [ "$form" = best ] && form=$BEST
+    label=$([ "$form" = pre ] && echo "先に問い合わせる形" || echo "使い切ってから問い合わせる形 (--no-prefetch)")
+    big "$((i + 1)) 回目 / 10   場所 $place   $label"
+    echo "ブロックを机の場所 $place の目印に置いてください."
+    echo "動いている間: スペース=一時停止 (一時停止中 t=リーダーで手直し / スペース=戻る / q=終わる)"
+    echo "箱に入れて腕が戻ったら (目安 25 秒) q を押してください. 終わったら y/n と失敗の番号を聞きます."
+    read -r -p "置いたら Enter / ここで止めるなら s と Enter > " k
+    [ "$k" = s ] && { echo "[STOP] エイイチの指示で $((i + 1)) 回目の前で止めました" | tee -a "$ANS"; break; }
+    ARGS=(--port 8000 --log-dir "$LOGDIR" --model so101a --step 2999 --execute --currents "$CHOICE")
+    [ "$form" = nopre ] && ARGS+=(--no-prefetch)
+    [ "$i" -ge 1 ] && ARGS+=(--skip-first-confirm)
+    echo "(場所の番号を聞かれたら $place と入力)"
+    "$PY" so101/run_so101_policy.py "${ARGS[@]}"
+    echo "[CLIENT] 終了コード $?"
+    new=$(n_rows)
+    [ "$new" -gt "$i" ] || { echo "[WARN] 記録の行が増えていない. もう一度同じ回をやります"; }
+    i=$new
+done
+
+# ---- 3. 問い ----
+big "おしまい. 最後に 2 つだけ聞かせてください (1 行で. Enter で次へ)"
+read -r -p "Q1 止まりながらの動きは見ていて気になった? 先に問い合わせる形と使い切ってからの形で違った? > " q1
+read -r -p "Q2 フォロワーがガクッと飛んだ回はあった? (あれば何回目か) > " q2
+{ echo "Q1 止まりながらの動き: $q1"; echo "Q2 ガクッと飛んだ回: $q2"; } >> "$ANS"
+big "ありがとうございました. このウィンドウは閉じてかまいません (Pod の片付けは Claude が行います)"
+echo DONE_286 > /tmp/r286/session_done
diff --git a/so101/run_so101_policy.py b/so101/run_so101_policy.py
index 2ee3fe7..bee3a83 100644
--- a/so101/run_so101_policy.py
+++ b/so101/run_so101_policy.py
@@ -48,6 +48,9 @@ mechArm の pi05/run_policy_client.py は使わない (カメラ 2 台・関節
   <--log-dir>/so101/<試行>/ へ写す (Hugging Face には送らない)
   <--log-dir>/so101_trials.csv に 1 行: 試行・だれが動かしたか (AI / AI+人の手直し)・場所・モデル・step・--exec-steps・
   先に問い合わせたか・結果・答えの切り替えで腕が止まった時間 など
+  n (失敗) のときは, どこで失敗したかの番号 (FAIL_REASONS. 1〜6) も聞いて fail_reason に残す (依頼 286)
+電流 (依頼 286): --currents lift_grip / all で, 1 コマごとにフォロワーの Present_Current (STS3215 の番地 69・2 バイト.
+  1 = 6.5 mA. rustypot の sts3215 の表も 69・2) を読み, 記録の ptm.current (生の値) に残す. 既定 off は読まない (今までどおり)
 """
 
 import argparse
@@ -89,10 +92,13 @@ TRIALS_CSV = "so101_trials.csv"
 TRIAL_COLUMNS = ["trial", "started_at", "operator", "place", "model", "step", "exec_steps", "execute", "result",
                  "frames", "frames_model", "frames_correct", "frames_pause", "queries", "latency_median_s",
                  "latency_max_s", "clipped_frames", "record_dir", "prefetch", "payload_bytes", "stall_median_s",
-                 "stall_max_s"]
+                 "stall_max_s", "stall_total_s", "fail_reason", "currents"]
 MODEL, CORRECT, PAUSE = 0, 1, 2
 MODE_NAMES = {MODEL: "model", CORRECT: "correct", PAUSE: "pause"}
 CAMERAS = ("desk", "wrist")
+CURRENT_SETS = {"off": [], "lift_grip": ["shoulder_lift", "gripper"], "all": list(MOTORS)}    # --currents (依頼 286)
+FAIL_REASONS = {"1": "ブロックまで行かない", "2": "つかめない", "3": "持ち上げで落とす", "4": "箱まで運べない",
+                "5": "箱の外に落とす", "6": "その他"}
 
 
 # ---- 画像・観測・答え (アームなしで確かめられる部分) ---------------------------------------------
@@ -242,7 +248,7 @@ def stall_of(gaps, fps=FPS):
 
 # ---- 記録 (LeRobot v3.0) ------------------------------------------------------------------------
 
-def dataset_features():
+def dataset_features(current_motors=()):
     f = {
         "observation.state": {"dtype": "float32", "shape": (6,), "names": JOINTS},
         "action": {"dtype": "float32", "shape": (6,), "names": JOINTS},
@@ -252,6 +258,8 @@ def dataset_features():
         "ptm.chunk_id": {"dtype": "int64", "shape": (1,), "names": None},
         "ptm.t_wall": {"dtype": "float64", "shape": (1,), "names": None},
     }
+    if current_motors:              # --currents (依頼 286). off のときは列を作らない (今までどおり)
+        f["ptm.current"] = {"dtype": "float32", "shape": (len(current_motors),), "names": list(current_motors)}
     for c in CAMERAS:
         f[f"observation.images.{c}"] = {"dtype": "video", "shape": (CAM_H, CAM_W, 3),
                                          "names": ["height", "width", "channels"]}
@@ -261,15 +269,17 @@ def dataset_features():
 class Recorder:
     """1 回の試行を LeRobot v3.0 の 1 本として書く (お手本と同じ列 + ptm.*)."""
 
-    def __init__(self, root, repo_id, use_videos=True):
+    def __init__(self, root, repo_id, use_videos=True, current_motors=()):
         from lerobot.datasets.lerobot_dataset import LeRobotDataset
         self.root = Path(root)
-        self.ds = LeRobotDataset.create(repo_id=repo_id, fps=FPS, features=dataset_features(), root=self.root,
+        self.current_motors = list(current_motors)
+        self.ds = LeRobotDataset.create(repo_id=repo_id, fps=FPS, features=dataset_features(self.current_motors),
+                                        root=self.root,
                                         robot_type="so_follower", use_videos=use_videos)
         self.modes, self.n = [], 0
 
-    def add(self, state, desk, wrist, action, sent, mode, chunk_step=-1, chunk_id=-1, t_wall=None):
-        self.ds.add_frame({
+    def add(self, state, desk, wrist, action, sent, mode, chunk_step=-1, chunk_id=-1, t_wall=None, current=None):
+        frame = {
             "observation.state": np.asarray(state, dtype=np.float32),
             "action": np.asarray(action, dtype=np.float32),
             "ptm.sent": np.asarray(sent, dtype=np.float32),
@@ -280,7 +290,11 @@ class Recorder:
             "observation.images.desk": np.asarray(desk, dtype=np.uint8),
             "observation.images.wrist": np.asarray(wrist, dtype=np.uint8),
             "task": PROMPT,
-        })
+        }
+        if self.current_motors:
+            c = np.full(len(self.current_motors), np.nan) if current is None else current
+            frame["ptm.current"] = np.asarray(c, dtype=np.float32)
+        self.ds.add_frame(frame)
         self.modes.append(mode)
         self.n += 1
 
@@ -347,7 +361,7 @@ class Policy:
 class LiveArm:
     """--execute: lerobot_safe_259.py の入口 (A・B・休みの姿勢) を通したフォロワー・リーダー・カメラ 2 台."""
 
-    def __init__(self):
+    def __init__(self, current_motors=()):
         import camera_lock_259 as cl
         import lerobot_safe_259 as safe
         from lerobot.cameras.opencv.configuration_opencv import OpenCVCameraConfig
@@ -371,6 +385,14 @@ class LiveArm:
             self.leader.disconnect()
             raise
         self.last_sent = np.array([self.robot._ptm_last_goal[m] for m in MOTORS], dtype=np.float64)
+        self.current_motors = list(current_motors)
+
+    def read_currents(self):
+        """フォロワーの Present_Current (生の値. 1 = 6.5 mA) を current_motors の順に. 読まない設定なら None (依頼 286)"""
+        if not self.current_motors:
+            return None
+        c = self.robot.bus.sync_read("Present_Current", self.current_motors)
+        return np.array([c[m] for m in self.current_motors], dtype=np.float64)
 
     def observe(self):
         o = self.robot.get_observation()
@@ -485,6 +507,16 @@ def ask_result(inp=input):
         print(f"  分からない入力: {raw!r} (y=成功 / n=失敗 / Enter=記録しない)")
 
 
+def ask_fail_reason(inp=input):
+    """n (失敗) のとき, どこで失敗したかの番号 (1〜6. 依頼 286). Enter なら空"""
+    menu = " / ".join(f"{k}={v}" for k, v in FAIL_REASONS.items())
+    while True:
+        raw = inp(f"どこで失敗した? {menu} > ").strip()
+        if raw == "" or raw in FAIL_REASONS:
+            return raw
+        print(f"  1〜6 の数字で: {raw!r}")
+
+
 def fmt(v):
     return " ".join(f"{x:+7.1f}" for x in v)
 
@@ -538,6 +570,7 @@ def run_trial(arm, policy, recorder, lo, hi, exec_steps, keys, inp=input, clock=
                     last_model_t = None
                     mode = new
             state, desk, wrist = arm.observe()      # 1 回目の答えは上で取った (Enter を待つ前). 記録はこのコマの観測
+            current = arm.read_currents() if hasattr(arm, "read_currents") else None     # --currents (依頼 286)
             chunk_step, new_chunk = -1, False
             if mode == MODEL:
                 if not queue:
@@ -582,7 +615,10 @@ def run_trial(arm, policy, recorder, lo, hi, exec_steps, keys, inp=input, clock=
                     sent = np.asarray(arm.last_sent, dtype=np.float64)
             else:
                 sent = arm.send(last_target)
-            recorder.add(state, desk, wrist, last_target, sent, mode, chunk_step, chunk_id)
+            if current is None:
+                recorder.add(state, desk, wrist, last_target, sent, mode, chunk_step, chunk_id)
+            else:
+                recorder.add(state, desk, wrist, last_target, sent, mode, chunk_step, chunk_id, current=current)
             info["frames"] += 1
             nxt += 1.0 / FPS
             dt = nxt - clock()
@@ -614,10 +650,13 @@ def run(args):
     local.parent.mkdir(parents=True, exist_ok=True)
     safe.check_dataset_root(local)
     policy = Policy(args.port)
-    recorder = Recorder(local, f"local/{trial}")
-    arm, info, result, err = None, {}, "", None
+    current_motors = CURRENT_SETS[args.currents] if args.execute else []
+    if args.currents != "off":
+        print(f"[CURRENT] 1 コマごとに電流を読む: {', '.join(current_motors) or '(ドライランなので読まない)'}")
+    recorder = Recorder(local, f"local/{trial}", current_motors=current_motors)
+    arm, info, result, err, reason = None, {}, "", None, ""
     try:
-        arm = LiveArm() if args.execute else DryArm()
+        arm = LiveArm(current_motors) if args.execute else DryArm()
         with KeyReader() as keys:
             info = run_trial(arm, policy, recorder, lo, hi, args.exec_steps, keys, prefetch=not args.no_prefetch,
                              skip_confirm=args.skip_first_confirm)
@@ -630,8 +669,9 @@ def run(args):
     finally:
         try:
             result = ask_result() if recorder.n else ""
+            reason = ask_fail_reason() if result == "failure" else ""
         except (KeyboardInterrupt, EOFError):
-            result = ""
+            result = result or ""
         try:
             recorder.close()
         finally:
@@ -653,7 +693,8 @@ def run(args):
            "latency_median_s": "" if med is None else round(med, 3), "latency_max_s": "" if mx is None else round(mx, 3),
            "clipped_frames": info.get("clipped_frames", 0), "record_dir": str(dst), "prefetch": int(not args.no_prefetch),
            "payload_bytes": payload, "stall_median_s": "" if s_med is None else round(s_med, 3),
-           "stall_max_s": "" if s_mx is None else round(s_mx, 3)}
+           "stall_max_s": "" if s_mx is None else round(s_mx, 3), "stall_total_s": round(sum(stalls), 3),
+           "fail_reason": reason, "currents": args.currents}
     append_trial(log_dir / TRIALS_CSV, row)
     (dst / "trial.json").write_text(json.dumps({**row, "latencies_s": [round(x, 4) for x in policy.latencies],
                                                  "payloads_bytes": policy.payloads,
@@ -704,6 +745,8 @@ def main(argv=None):
     ap.add_argument("--skip-first-confirm", action="store_true", help="始めの確かめ (Enter) を待たない (2 回目の試行から)")
     ap.add_argument("--execute", action="store_true", help="フォロワーに送る (付けなければドライラン)")
     ap.add_argument("--warmup", action="store_true", help="空打ちだけして終わる (lab_start.sh の 5b)")
+    ap.add_argument("--currents", choices=sorted(CURRENT_SETS), default="off",
+                    help="1 コマごとにフォロワーの電流を読んで記録に残す (既定 off = 読まない. 依頼 286)")
     args = ap.parse_args(argv)
     if not 1 <= args.exec_steps <= HORIZON:
         ap.error(f"--exec-steps は 1〜{HORIZON}")
diff --git a/so101/test_run_so101_policy.py b/so101/test_run_so101_policy.py
index 39d473f..81b907c 100644
--- a/so101/test_run_so101_policy.py
+++ b/so101/test_run_so101_policy.py
@@ -510,6 +510,33 @@ class TestArgs(unittest.TestCase):
         self.assertEqual(R.ask_result(lambda p: next(it)), "success")
         self.assertEqual(R.ask_result(lambda p: ""), "")
 
+    def test_ask_fail_reason(self):                             # 依頼 286
+        it = iter(["9", "x", "3"])
+        self.assertEqual(R.ask_fail_reason(lambda p: next(it)), "3")
+        self.assertEqual(R.ask_fail_reason(lambda p: ""), "")
+
+    def test_currents_default_off(self):                        # 依頼 286: 既定は電流を読まない (列も作らない)
+        self.assertNotIn("ptm.current", R.dataset_features())
+        f = R.dataset_features(R.CURRENT_SETS["lift_grip"])
+        self.assertEqual(f["ptm.current"]["shape"], (2,))
+        self.assertEqual(R.CURRENT_SETS["off"], [])
+        self.assertEqual(R.CURRENT_SETS["all"], R.MOTORS)
+
+    def test_run_trial_passes_currents(self):                   # 依頼 286
+        class Arm(FakeArm):
+            def read_currents(self):
+                return np.array([5.0, 7.0])
+
+        class Rec(FakeRecorder):
+            def add(self, *a, current=None, **k):
+                super().add(*a, **k)
+                self.rows[-1]["current"] = current
+
+        arm, pol, rec = Arm(), FakePolicy(), Rec()
+        trial(arm, pol, rec, 10, FakeKeys({4: "q"}))
+        self.assertEqual(len(rec.rows), 4)
+        self.assertTrue(all(list(r["current"]) == [5.0, 7.0] for r in rec.rows))
+
     def test_live_send_goes_through_robot_send_action(self):
         got = []
 
