yxma commited on
Commit
5b1fa85
·
verified ·
1 Parent(s): 5f5759a

Repair mocap actions across all tasks, old_data and validation; retain V8 force

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. ACTION_REPAIR_20260918.md +77 -0
  2. action_publication_manifest.json +0 -0
  3. action_repair_tools/README.md +39 -0
  4. action_repair_tools/requirements.txt +4 -0
  5. action_repair_tools/twm/__init__.py +1 -0
  6. action_repair_tools/twm/react_preprocess/__init__.py +1 -0
  7. action_repair_tools/twm/react_preprocess/mocap_branch.py +181 -0
  8. action_repair_tools/twm/react_preprocess/mocap_branch_review.py +90 -0
  9. action_repair_tools/twm/react_preprocess/mocap_candidate.py +740 -0
  10. action_repair_tools/twm/react_preprocess/mocap_repair.py +624 -0
  11. action_repair_tools/twm/react_preprocess/repaired_actions.py +125 -0
  12. action_repair_tools/twm/react_toolbox/__init__.py +1 -0
  13. action_repair_tools/twm/react_toolbox/frames.py +150 -0
  14. action_repair_tools/twm/scripts/__init__.py +1 -0
  15. action_repair_tools/twm/scripts/benchmark_mocap_branch.py +119 -0
  16. action_repair_tools/twm/scripts/benchmark_mocap_repair.py +315 -0
  17. action_repair_tools/twm/scripts/build_mocap_repair_candidates.py +350 -0
  18. action_repair_tools/twm/scripts/export_old_motherboard_actions.py +240 -0
  19. action_repair_tools/twm/scripts/propagate_mocap_repairs.py +522 -0
  20. action_repair_tools/twm/scripts/publish_action_repairs.py +133 -0
  21. action_repair_tools/twm/scripts/review_mocap_branches.py +82 -0
  22. action_review.html +0 -0
  23. action_sample25.html +0 -0
  24. action_sample25.json +0 -0
  25. data/motherboard/action_repair_events/2026-09-11/episode_000.json +6 -0
  26. data/motherboard/action_repair_events/2026-09-11/episode_001_seg00.json +6 -0
  27. data/motherboard/action_repair_events/2026-09-11/episode_001_seg01.json +6 -0
  28. data/motherboard/action_repair_events/2026-09-11/episode_002_seg00.json +6 -0
  29. data/motherboard/action_repair_events/2026-09-11/episode_003_seg00.json +879 -0
  30. data/motherboard/action_repair_events/2026-09-11/episode_004_seg00.json +6 -0
  31. data/motherboard/action_repair_events/2026-09-11/episode_004_seg01.json +6 -0
  32. data/motherboard/action_repair_events/2026-09-11/episode_005_seg00.json +1171 -0
  33. data/motherboard/action_repair_events/2026-09-11/episode_005_seg01.json +6 -0
  34. data/motherboard/action_repair_events/2026-09-11/episode_005_seg02.json +6 -0
  35. data/motherboard/action_repair_events/2026-09-11/episode_005_seg03.json +6 -0
  36. data/motherboard/action_repair_events/2026-09-11/episode_005_seg04.json +6 -0
  37. data/motherboard/action_repair_events/2026-09-11/episode_005_seg05.json +6 -0
  38. data/motherboard/action_repair_events/2026-09-11/episode_006_seg00.json +581 -0
  39. data/motherboard/action_repair_events/2026-09-11/episode_006_seg01.json +6 -0
  40. data/motherboard/action_repair_events/2026-09-11/episode_007_seg00.json +869 -0
  41. data/motherboard/action_repair_events/2026-09-11/episode_007_seg01.json +1727 -0
  42. data/motherboard/action_repair_events/2026-09-11/episode_007_seg02.json +1812 -0
  43. data/motherboard/action_repair_events/2026-09-11/episode_007_seg03.json +6 -0
  44. data/motherboard/action_repair_events/2026-09-11/episode_007_seg04.json +0 -0
  45. data/motherboard/action_repair_events/2026-09-11/episode_008_seg00.json +6 -0
  46. data/motherboard/action_repair_events/2026-09-12/episode_000_seg00.json +2998 -0
  47. data/motherboard/action_repair_events/2026-09-12/episode_000_seg01.json +6 -0
  48. data/motherboard/action_repair_events/2026-09-12/episode_002.json +6 -0
  49. data/motherboard/action_repair_events/2026-09-12/episode_003.json +6 -0
  50. data/motherboard/actions_fps15/2026-09-11/episode_000_left.npz +3 -0
ACTION_REPAIR_20260918.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Mocap action repair and review — 2026-09-18
2
+
3
+ Scope: all 218 published parquet segments/episodes: main motherboard25,
4
+ pushT68, rope70, toy10; old motherboard32 and pushT4; validation9.
5
+ Raw sensor poses, timestamps, source frame IDs and videos are preserved.
6
+
7
+ ## Review first
8
+
9
+ Download `action_sample25.html` and open it in a browser. It contains25
10
+ stratified examples, original camera videos and raw/repaired pose traces.
11
+ Video playback requires an internet connection. `action_sample25.json`
12
+ records the selected examples and their evidence. `action_review.html`
13
+ covers every unresolved event occurrence in published segments.
14
+
15
+ **A tracking jump and genuine rapid out-and-back motion can have identical
16
+ pose sequences. Smooth reconstruction does not prove tracking loss.**
17
+ Synthetic reconstruction benchmarks measure interpolation accuracy conditional
18
+ on an error being present; they do not establish real-world detection precision.
19
+ The negative-control report documents this limitation.
20
+
21
+ The strict review policy admits automatic HIGH repairs only where replaced
22
+ observations have independent loss evidence: declared tracking gaps or invalid
23
+ raw poses. Other proposed repairs remain MEDIUM pending human review; LOW
24
+ events are not reconstructed. Persistent branch proposals invalidate the whole
25
+ identified interval, including its smooth interior, not just boundary jumps.
26
+ `action_lost_track_*` means **suspected/review-required tracking corruption**,
27
+ not a confirmed ground-truth diagnosis. Genuine fast movement may remain
28
+ unchanged but masked under the existing physical-action limits.
29
+
30
+ ## Columns and action sidecars
31
+
32
+ - `sensor_{left,right}_pose`: unchanged original pose.
33
+ - `sensor_{left,right}_pose_repaired`: proposed reconstructed pose; consult masks.
34
+ - `pose_{left,right}_valid`, `_repaired`, `_repair_confidence`,
35
+ `_repair_event_id`, `_repair_method`: pose provenance.
36
+ - `action`:14 floats, next-frame absolute left XYZ+quaternion(xyzw), then
37
+ right XYZ+quaternion(xyzw), in the same world coordinates as the parquet.
38
+ The final row repeats the final pose and is invalid, with no next transition.
39
+ - `action_valid_{left,right}`: the authoritative per-hand training mask.
40
+ - `action_repaired_*`, `action_repair_confidence_*`, `action_lost_track_*`,
41
+ `action_long_lost_track_*`: transition provenance. Long means over60 native
42
+ frames, retaining the original event duration across segment boundaries.
43
+
44
+ Confidence codes:0 unchanged/unclassified,1 LOW,2 MEDIUM,3 HIGH.
45
+ Confidence alone is not a validity mask.
46
+
47
+ Each parquet has left/right `actions_native/...npz` and
48
+ `actions_fps15/...npz`. Each sidecar stores9D world-frame translation delta
49
+ plus relative-rotation6D (first two matrix columns, column by column).
50
+ Native actions connect k→k+1.15fps actions connect k→k+2 at local rows0,2,4…;
51
+ their validity is the AND of both native transitions. No action crosses a
52
+ published segment boundary.
53
+
54
+ Training consumers must enforce both hand masks: `action_full` rejects any
55
+ window containing an invalid transition; `action_causal` excludes invalid
56
+ transitions from its action loss. Parquet masks do not enforce this by themselves.
57
+ These added columns are not a conversion of the entire repository to a new
58
+ LeRobot storage version.
59
+
60
+ ## Force and reproducibility
61
+
62
+ The old-data force update is separate:36 episodes rebuilt using V8 from
63
+ released lossy tactile MP4 because the raw May H5 files are gone. See the force
64
+ recovery documentation and each `.force.json` sidecar. MP4 recovery is not
65
+ bit-equivalent to raw-H5 processing, and absolute force accuracy on React is
66
+ not established. Action publication retains those newly rebuilt force fields.
67
+
68
+ `action_publication_manifest.json` records the frozen source mapping, source
69
+ hashes, output hashes, coordinate conversions and preceding force revision.
70
+ `repair_audit/` contains reconstruction benchmarks, negative controls,
71
+ build configurations and event counts. Counts of source events, published
72
+ event occurrences and action transitions are different units.
73
+
74
+ The source implementation is included under `action_repair_tools/`. It uses
75
+ NumPy, SciPy, PyArrow and huggingface_hub. Candidate builds remain separate
76
+ from raw release inputs. Review decisions must identify their source episode
77
+ as well as the event; same local frame IDs can occur in different episodes.
action_publication_manifest.json ADDED
The diff for this file is too large to render. See raw diff
 
action_repair_tools/README.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Action repair tools
2
+
3
+ Run from this directory after `python -m pip install -r requirements.txt`.
4
+ The package uses minimal namespace initializers to avoid pulling in unrelated
5
+ recording/camera dependencies. It contains no model weights or credentials.
6
+
7
+ The September18 build used the frozen **uncut source parquet tree**, its
8
+ `pose_gaps.json` files and the input manifests in `../repair_audit/`.
9
+ The public segmented parquets alone do not reproduce context that was cut
10
+ away; do not treat a segment boundary as a new tracker dropout.
11
+
12
+ Example with your original source tree and a NEW candidate output directory:
13
+
14
+ ```bash
15
+ python -m twm.scripts.build_mocap_repair_candidates --output /path/to/candidates audit --source /path/to/source
16
+ python -m twm.scripts.build_mocap_repair_candidates --output /path/to/candidates benchmark --max-intervals 700 --seed 17
17
+ python -m twm.scripts.build_mocap_repair_candidates --output /path/to/candidates build --branch-review --require-loss-evidence
18
+ python -m twm.scripts.build_mocap_repair_candidates --output /path/to/candidates verify
19
+ python -m twm.scripts.propagate_mocap_repairs --help
20
+ ```
21
+
22
+ For the exact September18 benchmark length set `(1,2,3,4,5,20,60)`, call
23
+ `run_benchmarks(candidate_root, anomaly_lengths=(1,2,3,4,5,20,60), max_intervals=700, seed=17)`.
24
+ The CLI default length set is smaller. Build the separate validation source
25
+ with `--task validation` during audit. Use the propagation inventory to map
26
+ every published segment by source frame ID, not inferred filename offsets.
27
+
28
+ `propagate_mocap_repairs export` regenerates native/15fps sidecars and the
29
+ lightweight HTML review, including25 examples. Pass a pinned video-file
30
+ inventory to `--remote-videos`. The older full camera-rendering `review`
31
+ subcommand requires the full MultimodalData repository and is not bundled.
32
+
33
+ Review decisions use `task/date/source_episode::local_event_id`, mapped from
34
+ the published segment through the inventory. `keep_raw`, `accept_repair`,
35
+ `invalidate`, and `unsure` are supported; accepting one event never implicitly
36
+ approves another event with the same frame indices in a different episode.
37
+ Re-export actions after applying decisions. The publisher requires a bound
38
+ force-commit receipt and an unchanged HF parent commit; it never uploads unless
39
+ explicitly invoked with `--publish`.
action_repair_tools/requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ numpy
2
+ scipy
3
+ pyarrow
4
+ huggingface_hub
action_repair_tools/twm/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ """Minimal standalone namespace for the published action-repair tools."""
action_repair_tools/twm/react_preprocess/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ """Repair-only package; full recording/video preprocessing is not bundled."""
action_repair_tools/twm/react_preprocess/mocap_branch.py ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Conservative body-frame branch proposals, separate from training admission.
2
+
3
+ A pose is a body-to-world transform T. Marker symmetry changes it to T @ B,
4
+ so correction must be right multiplication by inverse(B), including the body
5
+ translation lever arm. Subtracting a world offset destroys genuine motion.
6
+
7
+ Paired boundaries supply two independent estimates of B using only immediate
8
+ outer context. This never interpolates the interior of a persistent interval.
9
+ Even matching return pairs are hypotheses: real abrupt out-and-back motion can
10
+ be observationally indistinguishable. All results therefore remain MEDIUM;
11
+ method/task-specific validation and any human decision belong to the caller.
12
+ """
13
+ from __future__ import annotations
14
+
15
+ from dataclasses import dataclass, replace
16
+ from typing import Iterable
17
+
18
+ import numpy as np
19
+ from scipy.spatial.transform import Rotation
20
+
21
+
22
+ @dataclass(frozen=True)
23
+ class BranchConfig:
24
+ rotation_seed_deg: float = 30.0
25
+ coupled_rotation_deg: float = 12.0
26
+ coupled_translation_mm: float = 20.0
27
+ context_frames: int = 5
28
+ max_interval_frames: int = 900
29
+ transform_rotation_tolerance_deg: float = 3.0
30
+ transform_translation_tolerance_mm: float = 5.0
31
+ boundary_rotation_tolerance_deg: float = 3.0
32
+ boundary_translation_tolerance_mm: float = 5.0
33
+ max_step_rotation_deg: float = 30.0
34
+ max_step_translation_mm: float = 50.0
35
+
36
+
37
+ @dataclass(frozen=True)
38
+ class BranchCandidate:
39
+ start: int
40
+ end: int
41
+ pose: np.ndarray
42
+ branch_rotation_xyzw: np.ndarray
43
+ branch_translation_m: np.ndarray
44
+ evidence: dict[str, float | int | bool | str]
45
+ confidence: str = 'MEDIUM'
46
+
47
+
48
+ def _predict_next(context: np.ndarray) -> tuple[np.ndarray, Rotation]:
49
+ """One-step prediction; reversed context yields a backward prediction."""
50
+ rotations = Rotation.from_quat(context[:, 3:])
51
+ angular = np.median((rotations[1:]*rotations[:-1].inv()).as_rotvec(), axis=0)
52
+ velocity = np.median(np.diff(context[:, :3], axis=0), axis=0)
53
+ return context[-1, :3] + velocity, Rotation.from_rotvec(angular)*rotations[-1]
54
+
55
+
56
+ def _transform(expected: tuple[np.ndarray, Rotation], observed: np.ndarray):
57
+ xyz, rotation = expected
58
+ return rotation.inv().apply(observed[:3]-xyz), rotation.inv()*Rotation.from_quat(observed[3:])
59
+
60
+
61
+ def find_branch_candidates(
62
+ pose: np.ndarray,
63
+ known_gaps: Iterable[tuple[int, int]] = (),
64
+ *,
65
+ trusted: np.ndarray | None = None,
66
+ config: BranchConfig | None = None,
67
+ ) -> list[BranchCandidate]:
68
+ """Propose complete paired-return intervals without changing input poses.
69
+
70
+ ``trusted`` optionally identifies independently trusted outer anchors.
71
+ Without it, anchors are only screened for finite, contiguous, quiet local
72
+ observations and evidence records that limitation. Declared gaps and any
73
+ nonfinite/zero-quaternion rows exclude both anchors and branch interiors.
74
+ Only adjacent boundaries are paired: nested/chattering ambiguous branches
75
+ are deliberately left for a richer decoder or human review.
76
+ """
77
+ raw = np.asarray(pose, dtype=float)
78
+ if raw.ndim != 2 or raw.shape[1] != 7:
79
+ raise ValueError('pose must have shape (T, 7)')
80
+ cfg = config or BranchConfig()
81
+ if cfg.context_frames < 2 or cfg.max_interval_frames < 1:
82
+ raise ValueError('context_frames must be >=2 and max_interval_frames >=1')
83
+ finite = np.isfinite(raw).all(axis=1) & (np.linalg.norm(raw[:, 3:], axis=1) > 1e-12)
84
+ available = finite.copy()
85
+ for start, count in known_gaps:
86
+ if count > 0:
87
+ available[max(0, int(start)):max(0, min(len(raw), int(start)+int(count)))] = False
88
+ anchor_ok = available.copy()
89
+ if trusted is not None:
90
+ trusted = np.asarray(trusted, dtype=bool)
91
+ if trusted.shape != (len(raw),):
92
+ raise ValueError('trusted must have shape (T,)')
93
+ anchor_ok &= trusted
94
+ if len(raw) < 2*cfg.context_frames + 1:
95
+ return []
96
+ step_rot = np.full(len(raw)-1, np.nan)
97
+ pairs = np.flatnonzero(finite[:-1] & finite[1:])
98
+ if len(pairs):
99
+ step_rot[pairs] = np.degrees((Rotation.from_quat(raw[pairs+1, 3:])*
100
+ Rotation.from_quat(raw[pairs, 3:]).inv()).magnitude())
101
+ step_trans = np.linalg.norm(np.diff(raw[:, :3], axis=0), axis=1)*1000
102
+ edges = np.flatnonzero((step_rot > cfg.rotation_seed_deg) |
103
+ ((step_rot > cfg.coupled_rotation_deg) &
104
+ (step_trans > cfg.coupled_translation_mm)))
105
+ candidates: list[BranchCandidate] = []
106
+ used_until = -1
107
+ for entry, exit_edge in zip(edges[:-1], edges[1:]):
108
+ start, end = int(entry+1), int(exit_edge)
109
+ left, right = start-cfg.context_frames, end+1+cfg.context_frames
110
+ # A return boundary already used to close a proposal cannot also open
111
+ # its inverse over the clean interval leading to the next occurrence.
112
+ if start <= used_until+1 or left < 0 or right > len(raw):
113
+ continue
114
+ if end-start+1 > cfg.max_interval_frames or not available[start:end+1].all():
115
+ continue
116
+ if not anchor_ok[left:start].all() or not anchor_ok[end+1:right].all():
117
+ continue
118
+ # Contexts that cross another jump cannot establish either branch.
119
+ context_edges = np.r_[np.arange(left, start-1), np.arange(end+1, right-1)]
120
+ if (np.any(step_rot[context_edges] > cfg.coupled_rotation_deg) or
121
+ np.any(step_trans[context_edges] > cfg.max_step_translation_mm)):
122
+ continue
123
+ expected_entry = _predict_next(raw[left:start])
124
+ expected_exit = _predict_next(raw[end+1:right][::-1])
125
+ entry_t, entry_r = _transform(expected_entry, raw[start])
126
+ exit_t, exit_r = _transform(expected_exit, raw[end])
127
+ transform_rot = float(np.degrees((entry_r.inv()*exit_r).magnitude()))
128
+ transform_trans = float(np.linalg.norm(entry_t-exit_t)*1000)
129
+ if (transform_rot > cfg.transform_rotation_tolerance_deg or
130
+ transform_trans > cfg.transform_translation_tolerance_mm):
131
+ continue
132
+ branch_r = Rotation.from_quat(np.stack([entry_r.as_quat(), exit_r.as_quat()])).mean()
133
+ branch_t = (entry_t+exit_t)/2
134
+ corrected_r = Rotation.from_quat(raw[start:end+1, 3:])*branch_r.inv()
135
+ corrected_t = raw[start:end+1, :3]-corrected_r.apply(branch_t)
136
+ corrected = np.column_stack((corrected_t, corrected_r.as_quat()))
137
+ boundary_trans = max(float(np.linalg.norm(corrected_t[i]-pred[0])*1000)
138
+ for i, pred in ((0, expected_entry), (-1, expected_exit)))
139
+ boundary_rot = max(float(np.degrees((pred[1].inv()*corrected_r[i]).magnitude()))
140
+ for i, pred in ((0, expected_entry), (-1, expected_exit)))
141
+ joined = np.vstack((raw[start-1], corrected, raw[end+1]))
142
+ joined_r = Rotation.from_quat(joined[:, 3:])
143
+ max_rot = float(np.max(np.degrees((joined_r[1:]*joined_r[:-1].inv()).magnitude())))
144
+ max_trans = float(np.max(np.linalg.norm(np.diff(joined[:, :3], axis=0), axis=1)*1000))
145
+ if (boundary_trans > cfg.boundary_translation_tolerance_mm or
146
+ boundary_rot > cfg.boundary_rotation_tolerance_deg or
147
+ max_rot > cfg.max_step_rotation_deg or
148
+ max_trans > cfg.max_step_translation_mm):
149
+ continue
150
+ candidates.append(BranchCandidate(start, end, corrected, branch_r.as_quat(), branch_t, {
151
+ 'method': 'paired_body_branch',
152
+ 'duration_frames': end-start+1,
153
+ 'bidirectional_transform_agrees': True,
154
+ 'transform_rotation_disagreement_deg': transform_rot,
155
+ 'transform_translation_disagreement_mm': transform_trans,
156
+ 'boundary_prediction_rotation_max_deg': boundary_rot,
157
+ 'boundary_prediction_translation_max_mm': boundary_trans,
158
+ 'reconstructed_max_step_rotation_deg': max_rot,
159
+ 'reconstructed_max_step_translation_mm': max_trans,
160
+ 'left_anchor': start-1,
161
+ 'right_anchor': end+1,
162
+ 'context_frames': cfg.context_frames,
163
+ 'independent_anchor_mask_supplied': trusted is not None,
164
+ 'physical': True,
165
+ 'benchmark_validated': False,
166
+ }))
167
+ used_until = end
168
+ # Support is restricted to this supplied recording/body stream; unrelated
169
+ # epochs or rigid bodies must never be pooled implicitly.
170
+ for index, candidate in enumerate(candidates):
171
+ r = Rotation.from_quat(candidate.branch_rotation_xyzw)
172
+ support = 0
173
+ for other in candidates:
174
+ rotation_error = np.degrees((r.inv()*Rotation.from_quat(other.branch_rotation_xyzw)).magnitude())
175
+ translation_error = np.linalg.norm(candidate.branch_translation_m-other.branch_translation_m)*1000
176
+ if (rotation_error <= cfg.transform_rotation_tolerance_deg and
177
+ translation_error <= cfg.transform_translation_tolerance_mm):
178
+ support += 1
179
+ candidates[index] = replace(candidate, evidence={**candidate.evidence,
180
+ 'matching_return_pairs': support})
181
+ return candidates
action_repair_tools/twm/react_preprocess/mocap_branch_review.py ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Extend review invalidity across plausible persistent alternate branches."""
2
+ from __future__ import annotations
3
+
4
+ from dataclasses import asdict, replace
5
+ import json
6
+
7
+ import numpy as np
8
+
9
+ from .mocap_branch import find_branch_candidates
10
+ from .mocap_repair import AnomalyBout, Confidence, PoseRepairResult, RepairEvent
11
+
12
+
13
+ def apply_loss_evidence_gate(result: PoseRepairResult, raw: np.ndarray,
14
+ known_gaps=()) -> PoseRepairResult:
15
+ """Require declared loss or invalid raw observations for automatic HIGH."""
16
+ raw = np.asarray(raw, dtype=float)
17
+ loss = ~np.isfinite(raw).all(axis=1) | (np.linalg.norm(raw[:, 3:], axis=1) <= 1e-12)
18
+ for start, count in known_gaps:
19
+ if int(count) > 0:
20
+ loss[max(0, int(start)):max(0, min(len(raw), int(start)+int(count)))] = True
21
+ confidence, valid = result.confidence.copy(), result.valid.copy()
22
+ events = []
23
+ for event in result.events:
24
+ if event.confidence == Confidence.HIGH:
25
+ rows = np.asarray(event.replaced_frames, dtype=int)
26
+ supported = bool(len(rows) and loss[rows].all())
27
+ evidence = {**event.evidence, 'independent_loss_evidence': supported,
28
+ 'review_required': not supported}
29
+ if not supported:
30
+ confidence[event.bout.start:event.bout.end+1] = Confidence.MEDIUM
31
+ valid[event.bout.start:event.bout.end+1] = False
32
+ event = replace(event, confidence=Confidence.MEDIUM, evidence=evidence)
33
+ else:
34
+ event = replace(event, evidence=evidence)
35
+ events.append(event)
36
+ return replace(result, confidence=confidence, valid=valid, events=tuple(events))
37
+
38
+
39
+ def apply_review_branches(result: PoseRepairResult, raw: np.ndarray, side: str,
40
+ known_gaps=()) -> PoseRepairResult:
41
+ """Merge non-HIGH boundary events and invalidate the complete proposal.
42
+
43
+ Existing HIGH events take precedence. Proposals supply candidate values,
44
+ never training permission. Any larger overlapping original event remains
45
+ invalid in full; its original evidence is retained in the merged event.
46
+ """
47
+ pose, repaired = result.pose.copy(), result.repaired.copy()
48
+ confidence, valid = result.confidence.copy(), result.valid.copy()
49
+ event_ids, events = result.event_id.copy(), list(result.events)
50
+ for proposal in find_branch_candidates(raw, known_gaps):
51
+ overlapping = [e for e in events if e.bout.side == side and
52
+ e.bout.start <= proposal.end+1 and e.bout.end >= proposal.start-1]
53
+ if not overlapping or any(e.confidence == Confidence.HIGH for e in overlapping):
54
+ continue
55
+ lo = min(proposal.start, *(e.bout.start for e in overlapping))
56
+ hi = max(proposal.end, *(e.bout.end for e in overlapping))
57
+ # A merged interval cannot overlap an event that retains a different
58
+ # row owner. Expand to a fixed point before checking HIGH protection.
59
+ while True:
60
+ merged = [e for e in events if e.bout.side == side and e.bout.start <= hi and e.bout.end >= lo]
61
+ new_lo = min(lo, *(e.bout.start for e in merged))
62
+ new_hi = max(hi, *(e.bout.end for e in merged))
63
+ if (new_lo, new_hi) == (lo, hi):
64
+ break
65
+ lo, hi = new_lo, new_hi
66
+ if any(e.confidence == Confidence.HIGH for e in merged):
67
+ continue
68
+ eid = f'{side}:{lo}-{hi}:branch_review'
69
+ rows = np.arange(proposal.start, proposal.end+1)
70
+ pose[rows] = proposal.pose
71
+ repaired[rows] = True
72
+ confidence[lo:hi+1] = Confidence.MEDIUM
73
+ valid[lo:hi+1] = False
74
+ event_ids[lo:hi+1] = eid
75
+ seeds = tuple(sorted({row for e in merged for row in e.bout.seed_frames}))
76
+ bout = AnomalyBout(side, lo, hi, 'branch_review', seeds,
77
+ lo-1 if lo else None, hi+1 if hi+1 < len(raw) else None)
78
+ evidence = {**proposal.evidence,
79
+ 'duration_frames': hi-lo+1,
80
+ 'proposal_start': proposal.start, 'proposal_end': proposal.end,
81
+ 'requires_independent_branch_identity_evidence': True,
82
+ 'training_valid': False,
83
+ 'superseded_events_json': json.dumps([asdict(e) for e in merged],
84
+ default=lambda value: value.item())}
85
+ replacement = RepairEvent(eid, bout, Confidence.MEDIUM, 'paired_body_branch_review',
86
+ tuple(np.flatnonzero(repaired[lo:hi+1])+lo), evidence)
87
+ removed_ids = {e.event_id for e in merged}
88
+ events = [e for e in events if e.event_id not in removed_ids] + [replacement]
89
+ return PoseRepairResult(pose, repaired, confidence, valid, event_ids,
90
+ tuple(sorted(events, key=lambda e: e.bout.start)))
action_repair_tools/twm/react_preprocess/mocap_candidate.py ADDED
@@ -0,0 +1,740 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Immutable-input writer for mocap repair candidate trees.
2
+
3
+ Production release trees are read-only inputs. Every build is pinned to a
4
+ manifest of exact parquet digests and writes augmented metadata plus action
5
+ sidecars beneath a separate review root.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ from dataclasses import asdict, dataclass
10
+ from datetime import datetime, timezone
11
+ import hashlib
12
+ import json
13
+ import os
14
+ from pathlib import Path
15
+ import tempfile
16
+ from typing import Any, Iterable
17
+
18
+ import numpy as np
19
+ import pyarrow as pa
20
+ import pyarrow.parquet as pq
21
+
22
+ from .mocap_repair import Confidence, TaskGate, repair_pose_stream
23
+ from .repaired_actions import ActionSeries, actions_fps15, native_actions
24
+
25
+
26
+ SIDES = ("left", "right")
27
+ MANIFEST_SCHEMA_VERSION = 1
28
+
29
+
30
+ class SourceChangedError(RuntimeError):
31
+ """A manifest-pinned input no longer has its recorded content."""
32
+
33
+
34
+ class CandidateVerificationError(RuntimeError):
35
+ """Candidate provenance or derived actions disagree with their contract."""
36
+
37
+
38
+ @dataclass(frozen=True)
39
+ class ManifestFile:
40
+ path: str
41
+ bytes: int
42
+ rows: int
43
+ mtime_ns: int
44
+ sha256: str
45
+
46
+
47
+ @dataclass(frozen=True)
48
+ class InputManifest:
49
+ source_root: str
50
+ tasks: tuple[str, ...]
51
+ files: tuple[ManifestFile, ...]
52
+ created_utc: str
53
+ digest: str
54
+
55
+ def to_dict(self) -> dict[str, Any]:
56
+ return {
57
+ "schema_version": MANIFEST_SCHEMA_VERSION,
58
+ "source_root": self.source_root,
59
+ "tasks": list(self.tasks),
60
+ "created_utc": self.created_utc,
61
+ "digest": self.digest,
62
+ "files": [asdict(item) for item in self.files],
63
+ }
64
+
65
+ @classmethod
66
+ def from_dict(cls, value: dict[str, Any]) -> "InputManifest":
67
+ if int(value.get("schema_version", -1)) != MANIFEST_SCHEMA_VERSION:
68
+ raise ValueError("unsupported input manifest schema")
69
+ return cls(
70
+ source_root=str(value["source_root"]),
71
+ tasks=tuple(map(str, value["tasks"])),
72
+ files=tuple(ManifestFile(**item) for item in value["files"]),
73
+ created_utc=str(value["created_utc"]),
74
+ digest=str(value["digest"]),
75
+ )
76
+
77
+
78
+ @dataclass(frozen=True)
79
+ class CandidateEpisode:
80
+ task: str
81
+ date: str
82
+ episode: str
83
+ parquet: Path
84
+ events: Path
85
+ repaired_frames: int
86
+
87
+
88
+ @dataclass(frozen=True)
89
+ class CandidateBuild:
90
+ root: Path
91
+ manifest_digest: str
92
+ episodes: tuple[CandidateEpisode, ...]
93
+
94
+
95
+ @dataclass(frozen=True)
96
+ class VerificationReport:
97
+ episodes: int
98
+ errors: tuple[str, ...]
99
+
100
+
101
+ def _sha256(path: Path) -> str:
102
+ digest = hashlib.sha256()
103
+ with path.open("rb") as stream:
104
+ for block in iter(lambda: stream.read(1024 * 1024), b""):
105
+ digest.update(block)
106
+ return digest.hexdigest()
107
+
108
+
109
+ def _canonical_json(value: Any) -> bytes:
110
+ return json.dumps(value, sort_keys=True, separators=(",", ":"),
111
+ ensure_ascii=True).encode("utf-8")
112
+
113
+
114
+ def _manifest_identity(source_root: Path, tasks: tuple[str, ...],
115
+ files: tuple[ManifestFile, ...]) -> dict[str, Any]:
116
+ return {
117
+ "schema_version": MANIFEST_SCHEMA_VERSION,
118
+ "source_root": str(source_root),
119
+ "tasks": list(tasks),
120
+ "files": [{
121
+ "path": item.path,
122
+ "bytes": item.bytes,
123
+ "rows": item.rows,
124
+ "sha256": item.sha256,
125
+ } for item in files],
126
+ }
127
+
128
+
129
+ def _validate_manifest(manifest: InputManifest) -> None:
130
+ identity = _manifest_identity(
131
+ Path(manifest.source_root).resolve(), manifest.tasks, manifest.files)
132
+ expected = hashlib.sha256(_canonical_json(identity)).hexdigest()
133
+ if manifest.digest != expected:
134
+ raise ValueError(
135
+ f"input manifest digest is invalid: {manifest.digest} != {expected}")
136
+
137
+
138
+ def snapshot_inputs(source_root: Path,
139
+ tasks: Iterable[str]) -> InputManifest:
140
+ """Snapshot the exact parquet set used by one candidate run."""
141
+ source_root = Path(source_root).resolve()
142
+ task_tuple = tuple(sorted(dict.fromkeys(str(task) for task in tasks)))
143
+ files: list[ManifestFile] = []
144
+ for task in task_tuple:
145
+ for path in sorted((source_root / task / "meta").glob("*/*.parquet")):
146
+ stat = path.stat()
147
+ files.append(ManifestFile(
148
+ path=path.relative_to(source_root).as_posix(),
149
+ bytes=stat.st_size,
150
+ rows=pq.ParquetFile(path).metadata.num_rows,
151
+ mtime_ns=stat.st_mtime_ns,
152
+ sha256=_sha256(path),
153
+ ))
154
+ files_tuple = tuple(sorted(files, key=lambda item: item.path))
155
+ identity = _manifest_identity(source_root, task_tuple, files_tuple)
156
+ digest = hashlib.sha256(_canonical_json(identity)).hexdigest()
157
+ return InputManifest(
158
+ source_root=str(source_root),
159
+ tasks=task_tuple,
160
+ files=files_tuple,
161
+ created_utc=datetime.now(timezone.utc).isoformat(),
162
+ digest=digest,
163
+ )
164
+
165
+
166
+ def save_manifest(manifest: InputManifest, path: Path) -> Path:
167
+ """Persist a manifest, refusing to replace a different snapshot."""
168
+ _validate_manifest(manifest)
169
+ path = Path(path)
170
+ if path.is_file():
171
+ prior = InputManifest.from_dict(json.loads(path.read_text()))
172
+ _validate_manifest(prior)
173
+ if prior.digest != manifest.digest:
174
+ raise ValueError(
175
+ f"manifest path already contains a different snapshot: {path}")
176
+ _atomic_json(path, manifest.to_dict())
177
+ return path
178
+
179
+
180
+ def load_manifest(path: Path) -> InputManifest:
181
+ manifest = InputManifest.from_dict(json.loads(Path(path).read_text()))
182
+ _validate_manifest(manifest)
183
+ return manifest
184
+
185
+
186
+ def _atomic_json(path: Path, value: Any) -> None:
187
+ path.parent.mkdir(parents=True, exist_ok=True)
188
+ with tempfile.NamedTemporaryFile(
189
+ mode="w", encoding="utf-8", dir=path.parent,
190
+ prefix=f".{path.name}.", suffix=".tmp", delete=False) as stream:
191
+ temp = Path(stream.name)
192
+ json.dump(value, stream, indent=2, sort_keys=True)
193
+ stream.write("\n")
194
+ os.replace(temp, path)
195
+
196
+
197
+ def _is_within(path: Path, root: Path) -> bool:
198
+ return path == root or root in path.parents
199
+
200
+
201
+ def _pose_list_array(value: np.ndarray) -> pa.Array:
202
+ return pa.array(np.asarray(value, dtype=np.float64).tolist(),
203
+ type=pa.list_(pa.float64()))
204
+
205
+
206
+ def _set_column(table: pa.Table, name: str, value: pa.Array) -> pa.Table:
207
+ if name in table.column_names:
208
+ return table.set_column(table.schema.get_field_index(name), name, value)
209
+ return table.append_column(name, value)
210
+
211
+
212
+ def _jsonable(value: Any) -> Any:
213
+ if isinstance(value, np.generic):
214
+ return value.item()
215
+ if isinstance(value, dict):
216
+ return {str(key): _jsonable(item) for key, item in value.items()}
217
+ if isinstance(value, (list, tuple)):
218
+ return [_jsonable(item) for item in value]
219
+ return value
220
+
221
+
222
+ def _event_dict(event: Any) -> dict[str, Any]:
223
+ return _jsonable({
224
+ "event_id": event.event_id,
225
+ "side": event.bout.side,
226
+ "start": event.bout.start,
227
+ "end": event.bout.end,
228
+ "kind": event.bout.kind,
229
+ "seed_frames": list(event.bout.seed_frames),
230
+ "left_context_end": event.bout.left_context_end,
231
+ "right_context_start": event.bout.right_context_start,
232
+ "confidence": Confidence(event.confidence).name,
233
+ "method": event.method,
234
+ "replaced_frames": list(event.replaced_frames),
235
+ "evidence": event.evidence,
236
+ })
237
+
238
+
239
+ def _write_actions(path: Path, actions: ActionSeries) -> None:
240
+ path.parent.mkdir(parents=True, exist_ok=True)
241
+ event_text = np.asarray(["|".join(ids) for ids in actions.event_ids],
242
+ dtype=np.str_)
243
+ with tempfile.NamedTemporaryFile(
244
+ mode="wb", dir=path.parent, prefix=f".{path.name}.",
245
+ suffix=".tmp", delete=False) as stream:
246
+ temp = Path(stream.name)
247
+ np.savez_compressed(
248
+ stream,
249
+ values=np.asarray(actions.values, np.float32),
250
+ valid=np.asarray(actions.valid, bool),
251
+ repaired=np.asarray(actions.repaired, bool),
252
+ event_ids=event_text,
253
+ start_rows=np.asarray(actions.start_rows, np.int32),
254
+ end_rows=np.asarray(actions.end_rows, np.int32),
255
+ rotation_deg=np.asarray(actions.rotation_deg, np.float32),
256
+ translation_mm=np.asarray(actions.translation_mm, np.float32),
257
+ )
258
+ os.replace(temp, path)
259
+
260
+
261
+ class CandidateWriter:
262
+ """Build candidate metadata pinned to one immutable input manifest."""
263
+
264
+ def __init__(self, source_root: Path, output_root: Path,
265
+ manifest: InputManifest, *,
266
+ task_gates: dict[str, TaskGate] | None = None,
267
+ production_roots: Iterable[Path] = (),
268
+ branch_review: bool = False,
269
+ require_loss_evidence: bool = False):
270
+ self.source_root = Path(source_root).resolve()
271
+ self.output_root = Path(output_root).resolve()
272
+ self.manifest = manifest
273
+ _validate_manifest(manifest)
274
+ self.task_gates = dict(task_gates or {})
275
+ self.branch_review = bool(branch_review)
276
+ self.require_loss_evidence = bool(require_loss_evidence)
277
+ inferred = {
278
+ self.source_root,
279
+ self.source_root.parent / "release_zup",
280
+ self.source_root.parent / "release_cut",
281
+ }
282
+ inferred.update(Path(path).resolve() for path in production_roots)
283
+ for root in inferred:
284
+ if (_is_within(self.output_root, root)
285
+ or _is_within(root, self.output_root)):
286
+ raise ValueError(
287
+ f"candidate output overlaps production root: "
288
+ f"{self.output_root} vs {root}")
289
+ if Path(manifest.source_root).resolve() != self.source_root:
290
+ raise ValueError("manifest source_root does not match writer source")
291
+
292
+ def _verify_source(self, item: ManifestFile) -> Path:
293
+ path = self.source_root / item.path
294
+ if not path.is_file():
295
+ raise SourceChangedError(f"source missing after manifest: {item.path}")
296
+ stat = path.stat()
297
+ actual = _sha256(path)
298
+ if actual != item.sha256:
299
+ raise SourceChangedError(
300
+ f"source digest changed after manifest: {item.path} "
301
+ f"(bytes {item.bytes} -> {stat.st_size})")
302
+ rows = pq.ParquetFile(path).metadata.num_rows
303
+ if rows != item.rows:
304
+ raise SourceChangedError(
305
+ f"source row count changed after manifest: {item.path}")
306
+ return path
307
+
308
+ def _known_gaps(self, task: str, date: str,
309
+ episode: str) -> dict[str, list[tuple[int, int]]]:
310
+ path = self.source_root / task / "pose_gaps.json"
311
+ if not path.is_file():
312
+ return {}
313
+ payload = json.loads(path.read_text())
314
+ row = payload.get(f"{date}/{episode}", {})
315
+ return {side: [tuple(map(int, gap)) for gap in row.get(side, [])]
316
+ for side in SIDES}
317
+
318
+ def _write_parquet_atomic(self, table: pa.Table, output: Path) -> None:
319
+ output.parent.mkdir(parents=True, exist_ok=True)
320
+ with tempfile.NamedTemporaryFile(
321
+ dir=output.parent, prefix=f".{output.name}.",
322
+ suffix=".tmp", delete=False) as stream:
323
+ temp = Path(stream.name)
324
+ try:
325
+ pq.write_table(table, temp, compression="zstd")
326
+ os.replace(temp, output)
327
+ finally:
328
+ if temp.exists():
329
+ temp.unlink()
330
+
331
+ def _write_episode(self, item: ManifestFile) -> CandidateEpisode:
332
+ source = self._verify_source(item)
333
+ rel = Path(item.path)
334
+ task, marker, date, filename = rel.parts
335
+ if marker != "meta":
336
+ raise ValueError(f"manifest path is not task/meta/date: {item.path}")
337
+ episode = Path(filename).stem
338
+ table = pq.read_table(source)
339
+ output_table = table
340
+ gaps = self._known_gaps(task, date, episode)
341
+ events: list[dict[str, Any]] = []
342
+ repaired_total = 0
343
+ gate = self.task_gates.get(task, TaskGate())
344
+ for side in SIDES:
345
+ pose_name = f"sensor_{side}_pose"
346
+ if pose_name not in table.column_names:
347
+ continue
348
+ raw_pose = np.asarray(table[pose_name].to_pylist(), dtype=float)
349
+ result = repair_pose_stream(
350
+ raw_pose, side, gaps.get(side, ()), task_gate=gate)
351
+ if self.require_loss_evidence:
352
+ from .mocap_branch_review import apply_loss_evidence_gate
353
+ result = apply_loss_evidence_gate(result, raw_pose, gaps.get(side, ()))
354
+ if self.branch_review:
355
+ from .mocap_branch_review import apply_review_branches
356
+ result = apply_review_branches(result, raw_pose, side, gaps.get(side, ()))
357
+ output_table = _set_column(
358
+ output_table, pose_name, _pose_list_array(result.pose))
359
+ output_table = _set_column(
360
+ output_table, f"pose_{side}_repaired",
361
+ pa.array(result.repaired, type=pa.bool_()))
362
+ output_table = _set_column(
363
+ output_table, f"pose_{side}_repair_confidence",
364
+ pa.array(result.confidence, type=pa.uint8()))
365
+ output_table = _set_column(
366
+ output_table, f"pose_{side}_valid",
367
+ pa.array(result.valid, type=pa.bool_()))
368
+ output_table = _set_column(
369
+ output_table, f"pose_{side}_repair_event_id",
370
+ pa.array(result.event_id.astype(str), type=pa.string()))
371
+ repaired_total += int(result.repaired.sum())
372
+ events.extend(_event_dict(event) for event in result.events)
373
+ native = native_actions(
374
+ result.pose, result.valid, result.repaired, result.event_id)
375
+ half = actions_fps15(result.pose, native)
376
+ _write_actions(
377
+ self.output_root / task / "actions_native" / date
378
+ / f"{episode}_{side}.npz", native)
379
+ _write_actions(
380
+ self.output_root / task / "actions_fps15" / date
381
+ / f"{episode}_{side}.npz", half)
382
+
383
+ output_table = output_table.replace_schema_metadata(
384
+ dict(table.schema.metadata or {}))
385
+ output = self.output_root / item.path
386
+ self._write_parquet_atomic(output_table, output)
387
+ event_path = (self.output_root / task / "repair_events" / date
388
+ / f"{episode}.json")
389
+ _atomic_json(event_path, {
390
+ "schema_version": 1,
391
+ "manifest_digest": self.manifest.digest,
392
+ "source_path": item.path,
393
+ "source_sha256": item.sha256,
394
+ "task": task,
395
+ "date": date,
396
+ "episode": episode,
397
+ "events": sorted(events, key=lambda event: event["event_id"]),
398
+ })
399
+ return CandidateEpisode(
400
+ task, date, episode, output, event_path, repaired_total)
401
+
402
+ def write_all(self) -> CandidateBuild:
403
+ """Verify the complete snapshot, then build only its declared files."""
404
+ for item in self.manifest.files:
405
+ self._verify_source(item)
406
+ manifest_path = self.output_root / "input_manifest.json"
407
+ if manifest_path.exists():
408
+ prior = json.loads(manifest_path.read_text())
409
+ if prior.get("digest") != self.manifest.digest:
410
+ raise ValueError(
411
+ "candidate root contains a different input manifest digest")
412
+ _atomic_json(manifest_path, self.manifest.to_dict())
413
+ _atomic_json(self.output_root / "build_config.json", {
414
+ "schema_version": 1,
415
+ "manifest_digest": self.manifest.digest,
416
+ "branch_review": self.branch_review,
417
+ "require_loss_evidence": self.require_loss_evidence,
418
+ "task_gates": {
419
+ task: asdict(self.task_gates.get(task, TaskGate()))
420
+ for task in self.manifest.tasks
421
+ },
422
+ })
423
+ episodes = tuple(self._write_episode(item) for item in self.manifest.files)
424
+ _atomic_json(self.output_root / "build_summary.json", {
425
+ "schema_version": 1,
426
+ "manifest_digest": self.manifest.digest,
427
+ "episodes": [{
428
+ "task": episode.task,
429
+ "date": episode.date,
430
+ "episode": episode.episode,
431
+ "parquet": episode.parquet.relative_to(self.output_root).as_posix(),
432
+ "events": episode.events.relative_to(self.output_root).as_posix(),
433
+ "repaired_frames": episode.repaired_frames,
434
+ } for episode in episodes],
435
+ })
436
+ return CandidateBuild(self.output_root, self.manifest.digest, episodes)
437
+
438
+
439
+ def _load_candidate(candidate_root: Path) -> tuple[InputManifest, dict[str, TaskGate]]:
440
+ candidate_root = Path(candidate_root).resolve()
441
+ manifest_path = candidate_root / "input_manifest.json"
442
+ config_path = candidate_root / "build_config.json"
443
+ if not manifest_path.is_file() or not config_path.is_file():
444
+ raise ValueError("candidate root is missing manifest or build config")
445
+ manifest = InputManifest.from_dict(json.loads(manifest_path.read_text()))
446
+ config = json.loads(config_path.read_text())
447
+ if config.get("manifest_digest") != manifest.digest:
448
+ raise ValueError("build config manifest digest mismatch")
449
+ gates = {task: TaskGate(**value)
450
+ for task, value in config.get("task_gates", {}).items()}
451
+ return manifest, gates
452
+
453
+
454
+ def _scoped_event_id(path: Path, event_id: str) -> str:
455
+ return f"{path.parent.parent.parent.name}/{path.parent.name}/{path.stem}::{event_id}"
456
+
457
+
458
+ def _event_index(candidate_root: Path) -> dict[str, tuple[Path, dict[str, Any]]]:
459
+ """Index review IDs as task/date/source_episode::local_event_id.
460
+
461
+ Legacy local IDs are accepted only when globally unique. Exported samples
462
+ keyed remote_path::local_event_id must first be mapped through publication
463
+ inventory to the unsegmented source episode; segmented filenames are not
464
+ sufficient to infer this mapping.
465
+ """
466
+ index: dict[str, tuple[Path, dict[str, Any]]] = {}
467
+ aliases: dict[str, list[tuple[Path, dict[str, Any]]]] = {}
468
+ for path in sorted(Path(candidate_root).glob("*/repair_events/*/*.json")):
469
+ payload = json.loads(path.read_text())
470
+ for event in payload.get("events", []):
471
+ event_id = str(event["event_id"])
472
+ scoped = _scoped_event_id(path, event_id)
473
+ if scoped in index:
474
+ raise ValueError(f"duplicate event within episode: {scoped}")
475
+ index[scoped] = (path, event)
476
+ aliases.setdefault(event_id, []).append((path, event))
477
+ index.update({alias: values[0] for alias, values in aliases.items() if len(values) == 1})
478
+ return index
479
+
480
+
481
+ def _canonical_decisions(payload: dict[str, Any],
482
+ manifest: InputManifest,
483
+ events: dict[str, tuple[Path, dict[str, Any]]]) -> list[dict[str, str]]:
484
+ if int(payload.get("schema_version", -1)) != 1:
485
+ raise ValueError("unsupported decisions schema")
486
+ if payload.get("manifest_digest") != manifest.digest:
487
+ raise ValueError("decisions manifest digest mismatch")
488
+ allowed = {"keep_raw", "accept_repair", "invalidate", "unsure"}
489
+ seen: set[str] = set()
490
+ out = []
491
+ for row in payload.get("decisions", []):
492
+ event_id = str(row.get("event_id", ""))
493
+ decision = str(row.get("decision", ""))
494
+ if event_id not in events:
495
+ raise ValueError(f"unknown event in decisions: {event_id}")
496
+ path, event = events[event_id]
497
+ event_id = _scoped_event_id(path, str(event["event_id"]))
498
+ if event_id in seen:
499
+ raise ValueError(f"duplicate decision for event: {event_id}")
500
+ if decision not in allowed:
501
+ raise ValueError(f"invalid decision {decision!r} for {event_id}")
502
+ seen.add(event_id)
503
+ out.append({"event_id": event_id, "decision": decision})
504
+ return sorted(out, key=lambda row: row["event_id"])
505
+
506
+
507
+ def _finite_unit_pose(pose: np.ndarray) -> np.ndarray:
508
+ norm = np.linalg.norm(pose[:, 3:], axis=1)
509
+ return np.isfinite(pose).all(axis=1) & (norm > 1e-12)
510
+
511
+
512
+ def apply_decisions(candidate_root: Path,
513
+ payload: dict[str, Any]) -> CandidateBuild:
514
+ """Replay canonical review decisions from the immutable source snapshot."""
515
+ candidate_root = Path(candidate_root).resolve()
516
+ manifest, gates = _load_candidate(candidate_root)
517
+ events_before = _event_index(candidate_root)
518
+ decisions = _canonical_decisions(payload, manifest, events_before)
519
+
520
+ # Rebuild the undecided baseline first. This makes decision application
521
+ # independent of whatever decision was applied on the previous run.
522
+ writer = CandidateWriter(
523
+ Path(manifest.source_root), candidate_root, manifest,
524
+ task_gates=gates,
525
+ branch_review=bool(json.loads((candidate_root / "build_config.json").read_text()).get("branch_review", False)),
526
+ require_loss_evidence=bool(json.loads((candidate_root / "build_config.json").read_text()).get("require_loss_evidence", False)))
527
+ build = writer.write_all()
528
+ events = _event_index(candidate_root)
529
+ grouped: dict[Path, list[dict[str, str]]] = {}
530
+ for row in decisions:
531
+ path, event = events[row["event_id"]]
532
+ grouped.setdefault(path, []).append({"event_id": str(event["event_id"]),
533
+ "decision": row["decision"]})
534
+
535
+ for event_path, rows in grouped.items():
536
+ event_payload = json.loads(event_path.read_text())
537
+ by_id = {event["event_id"]: event
538
+ for event in event_payload.get("events", [])}
539
+ task = str(event_payload["task"])
540
+ date = str(event_payload["date"])
541
+ episode = str(event_payload["episode"])
542
+ candidate_path = candidate_root / task / "meta" / date / f"{episode}.parquet"
543
+ source_path = Path(manifest.source_root) / event_payload["source_path"]
544
+ table = pq.read_table(candidate_path)
545
+ source = pq.read_table(source_path)
546
+ side_state: dict[str, dict[str, np.ndarray]] = {}
547
+ for side in SIDES:
548
+ pose_name = f"sensor_{side}_pose"
549
+ if pose_name not in table.column_names:
550
+ continue
551
+ side_state[side] = {
552
+ "pose": np.asarray(table[pose_name].to_pylist(), float),
553
+ "raw": np.asarray(source[pose_name].to_pylist(), float),
554
+ "repaired": np.asarray(
555
+ table[f"pose_{side}_repaired"], bool).copy(),
556
+ "confidence": np.asarray(
557
+ table[f"pose_{side}_repair_confidence"], np.uint8).copy(),
558
+ "valid": np.asarray(
559
+ table[f"pose_{side}_valid"], bool).copy(),
560
+ "event_id": np.asarray(
561
+ table[f"pose_{side}_repair_event_id"].to_pylist(), object),
562
+ }
563
+ for row in rows:
564
+ event = by_id[row["event_id"]]
565
+ side = str(event["side"])
566
+ state = side_state[side]
567
+ selected = np.arange(int(event["start"]), int(event["end"]) + 1)
568
+ decision = row["decision"]
569
+ if decision == "accept_repair":
570
+ state["valid"][selected] = _finite_unit_pose(state["pose"][selected])
571
+ else:
572
+ state["pose"][selected] = state["raw"][selected]
573
+ state["repaired"][selected] = False
574
+ if decision == "keep_raw":
575
+ state["confidence"][selected] = Confidence.NONE
576
+ state["valid"][selected] = _finite_unit_pose(state["raw"][selected])
577
+ elif decision == "invalidate":
578
+ state["confidence"][selected] = Confidence.LOW
579
+ state["valid"][selected] = False
580
+ else: # unsure
581
+ state["valid"][selected] = False
582
+ event["decision"] = decision
583
+
584
+ output_table = table
585
+ for side, state in side_state.items():
586
+ output_table = _set_column(
587
+ output_table, f"sensor_{side}_pose", _pose_list_array(state["pose"]))
588
+ output_table = _set_column(
589
+ output_table, f"pose_{side}_repaired",
590
+ pa.array(state["repaired"], type=pa.bool_()))
591
+ output_table = _set_column(
592
+ output_table, f"pose_{side}_repair_confidence",
593
+ pa.array(state["confidence"], type=pa.uint8()))
594
+ output_table = _set_column(
595
+ output_table, f"pose_{side}_valid",
596
+ pa.array(state["valid"], type=pa.bool_()))
597
+ native = native_actions(
598
+ state["pose"], state["valid"], state["repaired"],
599
+ state["event_id"])
600
+ half = actions_fps15(state["pose"], native)
601
+ _write_actions(
602
+ candidate_root / task / "actions_native" / date
603
+ / f"{episode}_{side}.npz", native)
604
+ _write_actions(
605
+ candidate_root / task / "actions_fps15" / date
606
+ / f"{episode}_{side}.npz", half)
607
+ writer._write_parquet_atomic(output_table, candidate_path)
608
+ _atomic_json(event_path, event_payload)
609
+
610
+ _atomic_json(candidate_root / "decisions.json", {
611
+ "schema_version": 1,
612
+ "manifest_digest": manifest.digest,
613
+ "decisions": decisions,
614
+ })
615
+ return build
616
+
617
+
618
+ def _rows_equal(left: np.ndarray, right: np.ndarray) -> np.ndarray:
619
+ same = left == right
620
+ if np.issubdtype(left.dtype, np.floating):
621
+ same |= np.isnan(left) & np.isnan(right)
622
+ return np.all(same, axis=1)
623
+
624
+
625
+ def _columns_equal(left: pa.ChunkedArray,
626
+ right: pa.ChunkedArray) -> bool:
627
+ """Arrow equality with IEEE NaNs treated as equal at identical positions."""
628
+ if left.type != right.type or len(left) != len(right):
629
+ return False
630
+ if left.equals(right):
631
+ return True
632
+ try:
633
+ if (pa.types.is_list(left.type)
634
+ or pa.types.is_large_list(left.type)
635
+ or pa.types.is_fixed_size_list(left.type)):
636
+ a = np.asarray(left.to_pylist(), dtype=float)
637
+ b = np.asarray(right.to_pylist(), dtype=float)
638
+ elif pa.types.is_floating(left.type):
639
+ a = np.asarray(left.to_numpy(zero_copy_only=False), dtype=float)
640
+ b = np.asarray(right.to_numpy(zero_copy_only=False), dtype=float)
641
+ else:
642
+ return False
643
+ except (TypeError, ValueError):
644
+ return False
645
+ return bool(np.array_equal(a, b, equal_nan=True))
646
+
647
+
648
+ def _verify_action_file(path: Path, expected: ActionSeries,
649
+ errors: list[str]) -> None:
650
+ if not path.is_file():
651
+ errors.append(f"missing action sidecar: {path}")
652
+ return
653
+ try:
654
+ with np.load(path, allow_pickle=False) as data:
655
+ for name, value in (
656
+ ("values", expected.values), ("valid", expected.valid),
657
+ ("repaired", expected.repaired),
658
+ ("start_rows", expected.start_rows),
659
+ ("end_rows", expected.end_rows)):
660
+ if name not in data.files or not np.array_equal(data[name], value):
661
+ errors.append(f"action mismatch {path}: {name}")
662
+ event_text = np.asarray(["|".join(ids) for ids in expected.event_ids],
663
+ dtype=np.str_)
664
+ if "event_ids" not in data.files or not np.array_equal(
665
+ data["event_ids"], event_text):
666
+ errors.append(f"action mismatch {path}: event_ids")
667
+ except Exception as exc:
668
+ errors.append(f"unreadable action sidecar {path}: {exc}")
669
+
670
+
671
+ def verify_candidate(candidate_root: Path) -> VerificationReport:
672
+ """Verify source immutability, declared changes, and action derivations."""
673
+ candidate_root = Path(candidate_root).resolve()
674
+ manifest, gates = _load_candidate(candidate_root)
675
+ writer = CandidateWriter(
676
+ Path(manifest.source_root), candidate_root, manifest,
677
+ task_gates=gates)
678
+ errors: list[str] = []
679
+ for item in manifest.files:
680
+ try:
681
+ source_path = writer._verify_source(item)
682
+ except SourceChangedError as exc:
683
+ errors.append(str(exc)); continue
684
+ candidate_path = candidate_root / item.path
685
+ if not candidate_path.is_file():
686
+ errors.append(f"missing candidate parquet: {item.path}"); continue
687
+ try:
688
+ source = pq.read_table(source_path)
689
+ candidate = pq.read_table(candidate_path)
690
+ except Exception as exc:
691
+ errors.append(f"unreadable candidate {item.path}: {exc}"); continue
692
+ if source.num_rows != candidate.num_rows:
693
+ errors.append(f"row count mismatch: {item.path}"); continue
694
+ for name in source.column_names:
695
+ if name.startswith("sensor_") and name.endswith("_pose"):
696
+ continue
697
+ if (name not in candidate.column_names
698
+ or not _columns_equal(source[name], candidate[name])):
699
+ errors.append(f"source column changed: {item.path}:{name}")
700
+ rel = Path(item.path)
701
+ task, _, date, filename = rel.parts
702
+ episode = Path(filename).stem
703
+ for side in SIDES:
704
+ pose_name = f"sensor_{side}_pose"
705
+ required = [pose_name, f"pose_{side}_repaired",
706
+ f"pose_{side}_repair_confidence", f"pose_{side}_valid",
707
+ f"pose_{side}_repair_event_id"]
708
+ if pose_name not in source.column_names:
709
+ continue
710
+ if any(name not in candidate.column_names for name in required):
711
+ errors.append(f"missing repair columns: {item.path}:{side}"); continue
712
+ raw = np.asarray(source[pose_name].to_pylist(), float)
713
+ pose = np.asarray(candidate[pose_name].to_pylist(), float)
714
+ repaired = np.asarray(candidate[f"pose_{side}_repaired"], bool)
715
+ valid = np.asarray(candidate[f"pose_{side}_valid"], bool)
716
+ event_id = np.asarray(
717
+ candidate[f"pose_{side}_repair_event_id"].to_pylist(), object)
718
+ changed = ~_rows_equal(raw, pose)
719
+ if np.any(changed & ~repaired):
720
+ errors.append(f"undeclared pose change: {item.path}:{side}")
721
+ if np.any(repaired & (event_id == "")):
722
+ errors.append(f"repaired pose missing event id: {item.path}:{side}")
723
+ finite_unit = _finite_unit_pose(pose)
724
+ if np.any(valid & ~finite_unit):
725
+ errors.append(f"valid pose is nonfinite/nonunit: {item.path}:{side}")
726
+ norm = np.linalg.norm(pose[valid, 3:], axis=1)
727
+ if len(norm) and not np.allclose(norm, 1.0, atol=1e-6):
728
+ errors.append(f"valid quaternion is not unit: {item.path}:{side}")
729
+ native = native_actions(pose, valid, repaired, event_id)
730
+ half = actions_fps15(pose, native)
731
+ _verify_action_file(
732
+ candidate_root / task / "actions_native" / date
733
+ / f"{episode}_{side}.npz", native, errors)
734
+ _verify_action_file(
735
+ candidate_root / task / "actions_fps15" / date
736
+ / f"{episode}_{side}.npz", half, errors)
737
+ report = VerificationReport(len(manifest.files), tuple(errors))
738
+ if errors:
739
+ raise CandidateVerificationError("; ".join(errors))
740
+ return report
action_repair_tools/twm/react_preprocess/mocap_repair.py ADDED
@@ -0,0 +1,624 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Conservative, provenance-preserving OptiTrack trajectory repair.
2
+
3
+ This module starts by grouping discontinuity seeds into complete tracking-loss
4
+ bouts. Detection is deliberately separate from reconstruction: a surprising
5
+ edge is evidence to inspect, never by itself permission to replace a pose.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ from dataclasses import dataclass
10
+ from enum import IntEnum
11
+ from typing import Iterable
12
+
13
+ import numpy as np
14
+ from scipy.spatial.transform import Rotation, Slerp
15
+
16
+
17
+ @dataclass(frozen=True)
18
+ class RepairConfig:
19
+ """Physical and temporal gates expressed at the native 30 fps rate."""
20
+
21
+ rotation_seed_deg: float = 30.0
22
+ coupled_rotation_deg: float = 12.0
23
+ coupled_translation_mm: float = 20.0
24
+ branch_agreement_deg: float = 12.0
25
+ branch_context_frames: int = 15
26
+ stable_frames: int = 10
27
+ context_frames: int = 15
28
+ translation_inlier_mm: float = 20.0
29
+ rotation_inlier_deg: float = 12.0
30
+ max_high_frames: int = 60
31
+ max_step_translation_mm: float = 50.0
32
+ max_step_rotation_deg: float = 30.0
33
+ max_prediction_translation_mm: float = 10.0
34
+ max_prediction_rotation_deg: float = 5.0
35
+
36
+
37
+ @dataclass(frozen=True)
38
+ class AnomalyBout:
39
+ """One complete interval requiring reconstruction or review."""
40
+
41
+ side: str
42
+ start: int
43
+ end: int
44
+ kind: str
45
+ seed_frames: tuple[int, ...]
46
+ left_context_end: int | None
47
+ right_context_start: int | None
48
+
49
+
50
+ class Confidence(IntEnum):
51
+ NONE = 0
52
+ LOW = 1
53
+ MEDIUM = 2
54
+ HIGH = 3
55
+
56
+
57
+ @dataclass(frozen=True)
58
+ class TaskGate:
59
+ """Held-out clean-data evidence allowed to enable automatic training."""
60
+
61
+ high_confidence_enabled: bool = False
62
+ validated_max_frames: int = 0
63
+ endpoint_max_frames: int = 0
64
+
65
+
66
+ @dataclass(frozen=True)
67
+ class RepairEvent:
68
+ event_id: str
69
+ bout: AnomalyBout
70
+ confidence: Confidence
71
+ method: str
72
+ replaced_frames: tuple[int, ...]
73
+ evidence: dict[str, float | int | bool | str]
74
+
75
+
76
+ @dataclass(frozen=True)
77
+ class PoseRepairResult:
78
+ pose: np.ndarray
79
+ repaired: np.ndarray
80
+ confidence: np.ndarray
81
+ valid: np.ndarray
82
+ event_id: np.ndarray
83
+ events: tuple[RepairEvent, ...]
84
+
85
+
86
+ def _unit_quaternion(q: np.ndarray) -> np.ndarray:
87
+ norm = np.linalg.norm(q, axis=-1, keepdims=True)
88
+ return q / np.where(norm > 1e-12, norm, 1.0)
89
+
90
+
91
+ def _quaternion_angle_deg(a: np.ndarray, b: np.ndarray) -> np.ndarray:
92
+ a, b = _unit_quaternion(a), _unit_quaternion(b)
93
+ dot = np.abs(np.sum(a * b, axis=-1))
94
+ return np.degrees(2.0 * np.arccos(np.clip(dot, -1.0, 1.0)))
95
+
96
+
97
+ def transition_metrics(pose: np.ndarray) -> tuple[np.ndarray, np.ndarray]:
98
+ """Return sign-insensitive rotation degrees and translation millimetres."""
99
+ pose = np.asarray(pose, dtype=float)
100
+ if pose.ndim != 2 or pose.shape[1] != 7:
101
+ raise ValueError(f"pose must have shape (T, 7), got {pose.shape}")
102
+ if len(pose) < 2:
103
+ return np.empty(0, dtype=float), np.empty(0, dtype=float)
104
+ finite = np.isfinite(pose).all(axis=1)
105
+ rot = _quaternion_angle_deg(pose[:-1, 3:], pose[1:, 3:])
106
+ trans = np.linalg.norm(np.diff(pose[:, :3], axis=0), axis=1) * 1000.0
107
+ invalid = ~(finite[:-1] & finite[1:])
108
+ rot[invalid] = np.nan
109
+ trans[invalid] = np.nan
110
+ return rot, trans
111
+
112
+
113
+ def _branch_support(pose: np.ndarray, rows: set[int], config: RepairConfig) -> dict[int, float]:
114
+ """Fraction of nearby finite observations agreeing with each candidate row."""
115
+ q = np.asarray(pose, dtype=float)[:, 3:]
116
+ finite = np.isfinite(q).all(axis=1) & (np.linalg.norm(q, axis=1) > 1e-12)
117
+ out: dict[int, float] = {}
118
+ for row in sorted(rows):
119
+ if not finite[row]:
120
+ out[row] = -1.0
121
+ continue
122
+ lo = max(0, row - config.branch_context_frames)
123
+ hi = min(len(q), row + config.branch_context_frames + 1)
124
+ neighbours = np.arange(lo, hi)
125
+ neighbours = neighbours[(neighbours != row) & finite[lo:hi]]
126
+ if not len(neighbours):
127
+ out[row] = 1.0
128
+ continue
129
+ angle = _quaternion_angle_deg(
130
+ np.repeat(q[row][None], len(neighbours), axis=0), q[neighbours])
131
+ out[row] = float(np.mean(angle <= config.branch_agreement_deg))
132
+ return out
133
+
134
+
135
+ def _discontinuity_seed_frames(pose: np.ndarray, config: RepairConfig) -> set[int]:
136
+ rot, trans = transition_metrics(pose)
137
+ edges = np.where(
138
+ (rot > config.rotation_seed_deg)
139
+ | ((rot > config.coupled_rotation_deg)
140
+ & (trans > config.coupled_translation_mm))
141
+ )[0]
142
+ if not len(edges):
143
+ return set()
144
+ endpoints = {int(i) for edge in edges for i in (edge, edge + 1)}
145
+ support = _branch_support(pose, endpoints, config)
146
+ seeds: set[int] = set()
147
+ for edge in edges:
148
+ left, right = int(edge), int(edge + 1)
149
+ ls, rs = support[left], support[right]
150
+ # The alternate OptiTrack branch has less local temporal support. A
151
+ # tie remains a review seed on the post-transition side; reconstruction
152
+ # later requires two trustworthy anchors before changing anything.
153
+ seeds.add(left if ls < rs else right)
154
+ return seeds
155
+
156
+
157
+ def detect_bouts(
158
+ pose: np.ndarray,
159
+ side: str,
160
+ known_gaps: Iterable[tuple[int, int]] = (),
161
+ *,
162
+ config: RepairConfig | None = None,
163
+ ) -> list[AnomalyBout]:
164
+ """Group discontinuities and declared gaps into complete anomaly bouts.
165
+
166
+ Seeds separated by fewer than ``stable_frames`` clean native frames are
167
+ one bout. Consequently a returning A/B flicker is represented once rather
168
+ than as a list of unrelated >30 degree transitions.
169
+ """
170
+ pose = np.asarray(pose, dtype=float)
171
+ if pose.ndim != 2 or pose.shape[1] != 7:
172
+ raise ValueError(f"pose must have shape (T, 7), got {pose.shape}")
173
+ if side not in {"left", "right"}:
174
+ raise ValueError(f"side must be left or right, got {side!r}")
175
+ cfg = config or RepairConfig()
176
+ n_rows = len(pose)
177
+ known: set[int] = set()
178
+ for start, count in known_gaps:
179
+ start, count = int(start), int(count)
180
+ if count > 0:
181
+ known.update(range(max(0, start), min(n_rows, start + count)))
182
+ nonfinite = set(np.where(~np.isfinite(pose).all(axis=1))[0].astype(int))
183
+ discontinuity = _discontinuity_seed_frames(pose, cfg)
184
+ # A declared gap already owns its entry and return boundaries. Counting
185
+ # the first clean row after it as another seed makes an N-row gap appear
186
+ # to be N+1 rows and can incorrectly cross a confidence-duration gate.
187
+ gap_boundaries: set[int] = set()
188
+ for start, count in known_gaps:
189
+ gap_boundaries.update(range(max(0, int(start) - 1),
190
+ min(n_rows, int(start) + int(count) + 1)))
191
+ discontinuity -= gap_boundaries
192
+ seeds = sorted(known | nonfinite | discontinuity)
193
+ if not seeds:
194
+ return []
195
+
196
+ groups: list[list[int]] = [[seeds[0]]]
197
+ for row in seeds[1:]:
198
+ if row - groups[-1][-1] <= cfg.stable_frames:
199
+ groups[-1].append(row)
200
+ else:
201
+ groups.append([row])
202
+
203
+ bouts: list[AnomalyBout] = []
204
+ for group in groups:
205
+ start, end = group[0], group[-1]
206
+ group_set = set(group)
207
+ if group_set <= known and group_set:
208
+ kind = "known_gap"
209
+ elif group_set & known:
210
+ kind = "gap_with_discontinuity"
211
+ elif group_set & nonfinite:
212
+ kind = "nonfinite"
213
+ else:
214
+ kind = "branch_discontinuity"
215
+ left = start - 1 if start > 0 else None
216
+ right = end + 1 if end + 1 < n_rows else None
217
+ bouts.append(AnomalyBout(
218
+ side=side,
219
+ start=start,
220
+ end=end,
221
+ kind=kind,
222
+ seed_frames=tuple(group),
223
+ left_context_end=left,
224
+ right_context_start=right,
225
+ ))
226
+ return bouts
227
+
228
+
229
+ def _finite_pose_rows(pose: np.ndarray) -> np.ndarray:
230
+ q_norm = np.linalg.norm(pose[:, 3:], axis=1)
231
+ return np.isfinite(pose).all(axis=1) & (q_norm > 1e-12)
232
+
233
+
234
+ def _context_rows(finite: np.ndarray, start: int, end: int,
235
+ count: int) -> tuple[np.ndarray, np.ndarray]:
236
+ left = np.flatnonzero(finite[:start])[-count:]
237
+ right = np.flatnonzero(finite[end + 1:])[:count] + end + 1
238
+ return left, right
239
+
240
+
241
+ def _median_linear_velocity(xyz: np.ndarray, rows: np.ndarray) -> np.ndarray:
242
+ if len(rows) < 2:
243
+ return np.zeros(3, dtype=float)
244
+ consecutive = np.diff(rows) == 1
245
+ delta = np.diff(xyz[rows], axis=0)[consecutive]
246
+ return np.median(delta, axis=0) if len(delta) else np.zeros(3, dtype=float)
247
+
248
+
249
+ def _median_angular_velocity(quat: np.ndarray, rows: np.ndarray) -> np.ndarray:
250
+ if len(rows) < 2:
251
+ return np.zeros(3, dtype=float)
252
+ pairs = np.flatnonzero(np.diff(rows) == 1)
253
+ if not len(pairs):
254
+ return np.zeros(3, dtype=float)
255
+ first = Rotation.from_quat(quat[rows[pairs]])
256
+ second = Rotation.from_quat(quat[rows[pairs + 1]])
257
+ return np.median((second * first.inv()).as_rotvec(), axis=0)
258
+
259
+
260
+ def _hermite(p0: np.ndarray, p1: np.ndarray, v0: np.ndarray,
261
+ v1: np.ndarray, duration: int, offsets: np.ndarray) -> np.ndarray:
262
+ s = (offsets / float(duration))[:, None]
263
+ h00 = 2 * s**3 - 3 * s**2 + 1
264
+ h10 = s**3 - 2 * s**2 + s
265
+ h01 = -2 * s**3 + 3 * s**2
266
+ h11 = s**3 - s**2
267
+ return h00 * p0 + h10 * duration * v0 + h01 * p1 + h11 * duration * v1
268
+
269
+
270
+ def _rotation_error_deg(a: np.ndarray, b: np.ndarray) -> np.ndarray:
271
+ return np.degrees(
272
+ (Rotation.from_quat(a) * Rotation.from_quat(b).inv()).magnitude())
273
+
274
+
275
+ def _predict_bout(pose: np.ndarray, bout: AnomalyBout, left: np.ndarray,
276
+ right: np.ndarray) -> tuple[np.ndarray, dict[str, float]]:
277
+ """Boundary-constrained SE(3) prediction and independent check evidence."""
278
+ lo, hi = int(left[-1]), int(right[0])
279
+ rows = np.arange(bout.start, bout.end + 1)
280
+ duration = hi - lo
281
+ offsets = rows - lo
282
+ xyz = pose[:, :3]
283
+ quat = _unit_quaternion(pose[:, 3:])
284
+ v0 = _median_linear_velocity(xyz, left)
285
+ v1 = _median_linear_velocity(xyz, right)
286
+ # Both effectively stationary: the minimum-assumption path is linear.
287
+ if max(np.linalg.norm(v0), np.linalg.norm(v1)) < 0.0005:
288
+ v0 = v1 = (xyz[hi] - xyz[lo]) / duration
289
+ pred_xyz = _hermite(xyz[lo], xyz[hi], v0, v1, duration, offsets)
290
+
291
+ r0, r1 = Rotation.from_quat(quat[lo]), Rotation.from_quat(quat[hi])
292
+ end_rotvec = (r1 * r0.inv()).as_rotvec()
293
+ w0 = _median_angular_velocity(quat, left)
294
+ w1 = _median_angular_velocity(quat, right)
295
+ pred_rotvec = _hermite(
296
+ np.zeros(3), end_rotvec, w0, w1, duration, offsets)
297
+ pred_quat = (Rotation.from_rotvec(pred_rotvec) * r0).as_quat()
298
+
299
+ forward_xyz = xyz[lo] + offsets[:, None] * v0
300
+ backward_xyz = xyz[hi] - (hi - rows)[:, None] * v1
301
+ pred_trans_disagreement = float(np.max(
302
+ np.linalg.norm(forward_xyz - backward_xyz, axis=1) * 1000.0))
303
+ forward_q = (Rotation.from_rotvec(offsets[:, None] * w0) * r0).as_quat()
304
+ backward_q = (
305
+ Rotation.from_rotvec(-(hi - rows)[:, None] * w1) * r1).as_quat()
306
+ pred_rot_disagreement = float(np.max(
307
+ _rotation_error_deg(forward_q, backward_q)))
308
+ pred = np.concatenate([pred_xyz, pred_quat], axis=1)
309
+ evidence = {
310
+ "left_anchor": lo,
311
+ "right_anchor": hi,
312
+ "left_context_frames": int(len(left)),
313
+ "right_context_frames": int(len(right)),
314
+ "prediction_translation_max_mm": pred_trans_disagreement,
315
+ "prediction_rotation_max_deg": pred_rot_disagreement,
316
+ }
317
+ return pred, evidence
318
+
319
+
320
+ def _endpoint_se3(pose: np.ndarray, bout: AnomalyBout) -> tuple[
321
+ np.ndarray, dict[str, float]]:
322
+ """Interpolate a short bout from its immediate finite SE(3) anchors."""
323
+ lo, hi = bout.start - 1, bout.end + 1
324
+ rows = np.arange(bout.start, bout.end + 1)
325
+ duration = hi - lo
326
+ fraction = (rows - lo) / float(duration)
327
+ xyz = ((1.0 - fraction[:, None]) * pose[lo, :3]
328
+ + fraction[:, None] * pose[hi, :3])
329
+ rotations = Slerp(
330
+ [0.0, 1.0], Rotation.from_quat(_unit_quaternion(pose[[lo, hi], 3:])))
331
+ quat = rotations(fraction).as_quat()
332
+ anchor_translation_mm = float(
333
+ np.linalg.norm(pose[hi, :3] - pose[lo, :3]) * 1000.0)
334
+ anchor_rotation_deg = float(_quaternion_angle_deg(
335
+ pose[lo:lo + 1, 3:], pose[hi:hi + 1, 3:])[0])
336
+ return np.concatenate([xyz, quat], axis=1), {
337
+ "left_anchor": int(lo),
338
+ "right_anchor": int(hi),
339
+ "anchor_translation_mm": anchor_translation_mm,
340
+ "anchor_rotation_deg": anchor_rotation_deg,
341
+ "prediction_translation_max_mm": anchor_translation_mm / duration,
342
+ "prediction_rotation_max_deg": anchor_rotation_deg / duration,
343
+ }
344
+
345
+
346
+ def _trajectory_is_physical(pose: np.ndarray, config: RepairConfig) -> tuple[bool, float, float]:
347
+ rot, trans = transition_metrics(pose)
348
+ finite = np.isfinite(rot) & np.isfinite(trans)
349
+ if not finite.all():
350
+ return False, float("inf"), float("inf")
351
+ max_rot = float(np.max(rot, initial=0.0))
352
+ max_trans = float(np.max(trans, initial=0.0))
353
+ return (max_rot <= config.max_step_rotation_deg
354
+ and max_trans <= config.max_step_translation_mm), max_rot, max_trans
355
+
356
+
357
+ def _residuals(observed: np.ndarray,
358
+ predicted: np.ndarray) -> tuple[np.ndarray, np.ndarray, np.ndarray]:
359
+ finite = _finite_pose_rows(observed)
360
+ trans = np.full(len(observed), np.inf)
361
+ rot = np.full(len(observed), np.inf)
362
+ trans[finite] = np.linalg.norm(
363
+ observed[finite, :3] - predicted[finite, :3], axis=1) * 1000.0
364
+ if finite.any():
365
+ rot[finite] = _rotation_error_deg(
366
+ observed[finite, 3:], predicted[finite, 3:])
367
+ return trans, rot, finite
368
+
369
+
370
+ def _refit_from_inliers(predicted: np.ndarray, observed: np.ndarray,
371
+ inlier: np.ndarray, offsets: np.ndarray,
372
+ duration: int) -> np.ndarray:
373
+ """Fit a boundary-zero cubic correction without moving either anchor."""
374
+ if int(inlier.sum()) < 2:
375
+ return predicted
376
+ s = offsets / float(duration)
377
+ basis = np.stack([s * (1.0 - s),
378
+ s * (1.0 - s) * (2.0 * s - 1.0)], axis=1)
379
+ design = basis[inlier]
380
+ xyz_residual = observed[inlier, :3] - predicted[inlier, :3]
381
+ xyz_coef, *_ = np.linalg.lstsq(design, xyz_residual, rcond=None)
382
+ corrected_xyz = predicted[:, :3] + basis @ xyz_coef
383
+
384
+ measured_r = Rotation.from_quat(observed[inlier, 3:])
385
+ predicted_r = Rotation.from_quat(predicted[inlier, 3:])
386
+ rot_residual = (measured_r * predicted_r.inv()).as_rotvec()
387
+ rot_coef, *_ = np.linalg.lstsq(design, rot_residual, rcond=None)
388
+ correction = Rotation.from_rotvec(basis @ rot_coef)
389
+ corrected_q = (correction * Rotation.from_quat(predicted[:, 3:])).as_quat()
390
+ return np.concatenate([corrected_xyz, corrected_q], axis=1)
391
+
392
+
393
+ def _robust_upper(values: np.ndarray, floor: float, cap: float) -> float:
394
+ values = np.asarray(values, dtype=float)
395
+ values = values[np.isfinite(values)]
396
+ if not len(values):
397
+ return float(floor)
398
+ centre = float(np.median(values))
399
+ mad = float(np.median(np.abs(values - centre)))
400
+ return float(min(cap, max(floor, centre + 6.0 * 1.4826 * mad)))
401
+
402
+
403
+ def _local_inlier_thresholds(pose: np.ndarray, left: np.ndarray,
404
+ right: np.ndarray,
405
+ config: RepairConfig) -> tuple[float, float]:
406
+ """Estimate clean local jitter, bounded by global physical residual caps."""
407
+ trans_accel: list[np.ndarray] = []
408
+ rot_accel: list[np.ndarray] = []
409
+ for rows in (left, right):
410
+ runs = np.split(rows, np.where(np.diff(rows) != 1)[0] + 1)
411
+ for run in runs:
412
+ if len(run) < 3:
413
+ continue
414
+ xyz = pose[run, :3]
415
+ trans_accel.append(
416
+ np.linalg.norm(np.diff(xyz, n=2, axis=0), axis=1) * 1000.0)
417
+ rotations = Rotation.from_quat(_unit_quaternion(pose[run, 3:]))
418
+ velocity = (rotations[1:] * rotations[:-1].inv()).as_rotvec()
419
+ rot_accel.append(np.degrees(
420
+ np.linalg.norm(np.diff(velocity, axis=0), axis=1)))
421
+ trans_values = np.concatenate(trans_accel) if trans_accel else np.empty(0)
422
+ rot_values = np.concatenate(rot_accel) if rot_accel else np.empty(0)
423
+ return (
424
+ _robust_upper(trans_values, 3.0, config.translation_inlier_mm),
425
+ _robust_upper(rot_values, 2.0, config.rotation_inlier_deg),
426
+ )
427
+
428
+
429
+ def _robust_branch_fit(observed: np.ndarray, initial: np.ndarray,
430
+ forced: np.ndarray, offsets: np.ndarray, duration: int,
431
+ translation_threshold_mm: float,
432
+ rotation_threshold_deg: float) -> tuple[
433
+ np.ndarray, np.ndarray, np.ndarray, np.ndarray,
434
+ int, bool]:
435
+ """Alternate branch classification and trajectory correction up to 5 times."""
436
+ predicted = initial.copy()
437
+ previous: np.ndarray | None = None
438
+ converged = False
439
+ iterations = 0
440
+ for iterations in range(1, 6):
441
+ trans, rot, finite = _residuals(observed, predicted)
442
+ inlier = (finite
443
+ & (trans <= translation_threshold_mm)
444
+ & (rot <= rotation_threshold_deg)
445
+ & ~forced)
446
+ if previous is not None and np.array_equal(inlier, previous):
447
+ converged = True
448
+ break
449
+ previous = inlier.copy()
450
+ predicted = _refit_from_inliers(
451
+ predicted, observed, inlier, offsets, duration)
452
+ trans, rot, finite = _residuals(observed, predicted)
453
+ inlier = (finite
454
+ & (trans <= translation_threshold_mm)
455
+ & (rot <= rotation_threshold_deg)
456
+ & ~forced)
457
+ if previous is not None and np.array_equal(inlier, previous):
458
+ converged = True
459
+ return predicted, inlier, trans, rot, iterations, converged
460
+
461
+
462
+ def repair_pose_stream(
463
+ pose: np.ndarray,
464
+ side: str,
465
+ known_gaps: Iterable[tuple[int, int]] = (),
466
+ *,
467
+ task_gate: TaskGate | None = None,
468
+ config: RepairConfig | None = None,
469
+ ) -> PoseRepairResult:
470
+ """Return candidate poses and explicit side-specific repair provenance.
471
+
472
+ HIGH candidates are valid for training. MEDIUM candidates contain the
473
+ proposed reconstruction but remain invalid pending a review decision.
474
+ LOW events preserve the measured poses and remain invalid.
475
+ """
476
+ raw = np.asarray(pose, dtype=float)
477
+ if raw.ndim != 2 or raw.shape[1] != 7:
478
+ raise ValueError(f"pose must have shape (T, 7), got {raw.shape}")
479
+ cfg = config or RepairConfig()
480
+ gate = task_gate or TaskGate()
481
+ gap_list = [(int(start), int(count)) for start, count in known_gaps]
482
+ bouts = detect_bouts(raw, side, gap_list, config=cfg)
483
+ finite = _finite_pose_rows(raw)
484
+ candidate = raw.copy()
485
+ repaired = np.zeros(len(raw), dtype=bool)
486
+ confidence = np.full(len(raw), Confidence.NONE, dtype=np.uint8)
487
+ valid = finite.copy()
488
+ event_id = np.full(len(raw), "", dtype=object)
489
+ events: list[RepairEvent] = []
490
+ known_rows = {
491
+ row for start, count in gap_list
492
+ for row in range(max(0, start), min(len(raw), start + count))
493
+ }
494
+
495
+ for bout in bouts:
496
+ rows = np.arange(bout.start, bout.end + 1)
497
+ left, right = _context_rows(finite, bout.start, bout.end,
498
+ cfg.context_frames)
499
+ eid = f"{side}:{bout.start}-{bout.end}:{bout.kind}"
500
+ event_id[rows] = eid
501
+ if not len(left) or not len(right):
502
+ confidence[rows] = Confidence.LOW
503
+ valid[rows] = False
504
+ events.append(RepairEvent(
505
+ eid, bout, Confidence.LOW, "unrepaired_missing_anchor", (), {
506
+ "duration_frames": int(len(rows)),
507
+ "left_context_frames": int(len(left)),
508
+ "right_context_frames": int(len(right)),
509
+ }))
510
+ continue
511
+
512
+ endpoint_method = (
513
+ 1 <= len(rows) <= 5
514
+ and int(left[-1]) == bout.start - 1
515
+ and int(right[0]) == bout.end + 1
516
+ )
517
+ if endpoint_method:
518
+ predicted, evidence = _endpoint_se3(raw, bout)
519
+ evidence.update({
520
+ "left_context_frames": int(len(left)),
521
+ "right_context_frames": int(len(right)),
522
+ })
523
+ else:
524
+ predicted, evidence = _predict_bout(raw, bout, left, right)
525
+ observed = raw[rows]
526
+ forced = np.array([int(row) in known_rows for row in rows])
527
+ lo = int(left[-1]); hi = int(right[0])
528
+ trans_threshold, rot_threshold = _local_inlier_thresholds(
529
+ raw, left, right, cfg)
530
+ if endpoint_method:
531
+ # Keep this identical to the benchmarked linear/SLERP model;
532
+ # fitting a polynomial to possible wrong-branch observations
533
+ # would quietly turn it into a different estimator.
534
+ trans_residual, rot_residual, observed_finite = _residuals(observed, predicted)
535
+ inlier = (observed_finite & ~forced
536
+ & (trans_residual <= trans_threshold)
537
+ & (rot_residual <= rot_threshold))
538
+ iterations, converged = 0, True
539
+ else:
540
+ predicted, inlier, trans_residual, rot_residual, iterations, converged = (
541
+ _robust_branch_fit(observed, predicted, forced, rows - lo,
542
+ hi - lo, trans_threshold, rot_threshold))
543
+ replace = ~inlier | forced
544
+ classified_outlier = replace & ~forced
545
+ if classified_outlier.any():
546
+ outlier_separation = np.maximum(
547
+ trans_residual[classified_outlier] / trans_threshold,
548
+ rot_residual[classified_outlier] / rot_threshold)
549
+ branch_unambiguous = bool(np.min(outlier_separation) >= 1.5)
550
+ else:
551
+ branch_unambiguous = True
552
+ proposed = raw.copy()
553
+ proposed[rows[replace]] = predicted[replace]
554
+ physical, max_rot, max_trans = _trajectory_is_physical(
555
+ proposed[max(0, bout.start - 1):min(len(raw), bout.end + 2)], cfg)
556
+ evidence.update({
557
+ "duration_frames": int(len(rows)),
558
+ "observed_inlier_frames": int(inlier.sum()),
559
+ "replaced_frames": int(replace.sum()),
560
+ "translation_residual_p95_mm": float(np.percentile(trans_residual, 95)),
561
+ "rotation_residual_p95_deg": float(np.percentile(rot_residual, 95)),
562
+ "reconstructed_max_step_translation_mm": max_trans,
563
+ "reconstructed_max_step_rotation_deg": max_rot,
564
+ "physical": bool(physical),
565
+ "fit_iterations": int(iterations),
566
+ "fit_converged": bool(converged),
567
+ "translation_inlier_threshold_mm": trans_threshold,
568
+ "rotation_inlier_threshold_deg": rot_threshold,
569
+ "branch_unambiguous": branch_unambiguous,
570
+ })
571
+ extreme_prediction_disagreement = (not endpoint_method and (
572
+ evidence["prediction_translation_max_mm"]
573
+ > 3.0 * cfg.max_prediction_translation_mm
574
+ or evidence["prediction_rotation_max_deg"]
575
+ > 3.0 * cfg.max_prediction_rotation_deg))
576
+ if not physical or extreme_prediction_disagreement:
577
+ confidence[rows] = Confidence.LOW
578
+ valid[rows] = False
579
+ evidence["rejection"] = (
580
+ "nonphysical_reconstruction" if not physical
581
+ else "incompatible_two_sided_prediction")
582
+ events.append(RepairEvent(
583
+ eid, bout, Confidence.LOW, "unrepaired_ambiguous_branch", (),
584
+ evidence))
585
+ continue
586
+ two_full_contexts = (len(left) >= cfg.context_frames
587
+ and len(right) >= cfg.context_frames)
588
+ # A short boundary seed may actually be one end of a persistent
589
+ # alternate branch. Physical step limits alone cannot establish
590
+ # that the two anchors belong to the same trajectory branch.
591
+ endpoint_return = (not endpoint_method or
592
+ evidence["anchor_rotation_deg"] <= 20.0)
593
+ if endpoint_method:
594
+ evidence["endpoint_return_consistent"] = endpoint_return
595
+ prediction_agrees = endpoint_method or (
596
+ evidence["prediction_translation_max_mm"]
597
+ <= cfg.max_prediction_translation_mm
598
+ and evidence["prediction_rotation_max_deg"]
599
+ <= cfg.max_prediction_rotation_deg)
600
+ high = (
601
+ gate.high_confidence_enabled
602
+ and len(rows) <= min(cfg.max_high_frames, gate.validated_max_frames)
603
+ and (not endpoint_method or len(rows) <= gate.endpoint_max_frames)
604
+ and endpoint_return
605
+ and two_full_contexts and prediction_agrees and physical
606
+ and branch_unambiguous and bool(replace.any()))
607
+ tier = Confidence.HIGH if high else Confidence.MEDIUM
608
+ candidate[rows[replace]] = predicted[replace]
609
+ repaired[rows[replace]] = True
610
+ confidence[rows] = tier
611
+ valid[rows] = high
612
+ events.append(RepairEvent(
613
+ eid, bout, tier, ("endpoint_se3" if endpoint_method
614
+ else "robust_se3_hermite"),
615
+ tuple(rows[replace].astype(int)), evidence))
616
+
617
+ return PoseRepairResult(
618
+ pose=candidate,
619
+ repaired=repaired,
620
+ confidence=confidence,
621
+ valid=valid,
622
+ event_id=event_id,
623
+ events=tuple(events),
624
+ )
action_repair_tools/twm/react_preprocess/repaired_actions.py ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Repair-aware action construction from candidate OptiTrack poses.
2
+
3
+ Actions are 9-D ``[dx, dy, dz, relative_rotation_6d]``. Translation is in
4
+ metres. Rotation uses the first two columns of the world-frame relative
5
+ rotation matrix, concatenated column by column.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ from dataclasses import dataclass
10
+
11
+ import numpy as np
12
+ from scipy.spatial.transform import Rotation
13
+
14
+
15
+ MAX_ROTATION_DEG = 30.0
16
+ MAX_TRANSLATION_MM = 50.0
17
+
18
+
19
+ @dataclass(frozen=True)
20
+ class ActionSeries:
21
+ values: np.ndarray
22
+ valid: np.ndarray
23
+ repaired: np.ndarray
24
+ event_ids: tuple[tuple[str, ...], ...]
25
+ start_rows: np.ndarray
26
+ end_rows: np.ndarray
27
+ rotation_deg: np.ndarray
28
+ translation_mm: np.ndarray
29
+
30
+
31
+ def _check_pose_arrays(pose: np.ndarray, pose_valid: np.ndarray,
32
+ pose_repaired: np.ndarray,
33
+ pose_event_id: np.ndarray) -> tuple[
34
+ np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
35
+ pose = np.asarray(pose, dtype=float)
36
+ if pose.ndim != 2 or pose.shape[1] != 7:
37
+ raise ValueError(f"pose must have shape (T, 7), got {pose.shape}")
38
+ valid = np.asarray(pose_valid, dtype=bool)
39
+ repaired = np.asarray(pose_repaired, dtype=bool)
40
+ event_id = np.asarray(pose_event_id, dtype=object)
41
+ for name, value in (("pose_valid", valid), ("pose_repaired", repaired),
42
+ ("pose_event_id", event_id)):
43
+ if value.shape != (len(pose),):
44
+ raise ValueError(f"{name} must have shape ({len(pose)},), got {value.shape}")
45
+ return pose, valid, repaired, event_id
46
+
47
+
48
+ def _event_union(*values: object) -> tuple[str, ...]:
49
+ out: set[str] = set()
50
+ for value in values:
51
+ if isinstance(value, str):
52
+ if value:
53
+ out.add(value)
54
+ elif value is not None:
55
+ out.update(str(item) for item in value if str(item))
56
+ return tuple(sorted(out))
57
+
58
+
59
+ def _relative_values(pose: np.ndarray, start: np.ndarray,
60
+ end: np.ndarray) -> tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
61
+ n = len(start)
62
+ values = np.zeros((n, 9), dtype=np.float32)
63
+ values[:, 3:] = np.array([1, 0, 0, 0, 1, 0], dtype=np.float32)
64
+ rotation_deg = np.full(n, np.inf, dtype=float)
65
+ translation_mm = np.full(n, np.inf, dtype=float)
66
+ endpoints_finite = np.isfinite(pose[start]).all(axis=1) & np.isfinite(pose[end]).all(axis=1)
67
+ q0_norm = np.linalg.norm(pose[start, 3:], axis=1)
68
+ q1_norm = np.linalg.norm(pose[end, 3:], axis=1)
69
+ endpoints_finite &= (q0_norm > 1e-12) & (q1_norm > 1e-12)
70
+ usable = np.flatnonzero(endpoints_finite)
71
+ if len(usable):
72
+ s, e = start[usable], end[usable]
73
+ delta = pose[e, :3] - pose[s, :3]
74
+ q0 = pose[s, 3:] / np.linalg.norm(pose[s, 3:], axis=1, keepdims=True)
75
+ q1 = pose[e, 3:] / np.linalg.norm(pose[e, 3:], axis=1, keepdims=True)
76
+ relative = Rotation.from_quat(q1) * Rotation.from_quat(q0).inv()
77
+ matrix = relative.as_matrix()
78
+ rot6d = np.concatenate([matrix[:, :, 0], matrix[:, :, 1]], axis=1)
79
+ values[usable, :3] = delta.astype(np.float32)
80
+ values[usable, 3:] = rot6d.astype(np.float32)
81
+ rotation_deg[usable] = np.degrees(relative.magnitude())
82
+ translation_mm[usable] = np.linalg.norm(delta, axis=1) * 1000.0
83
+ return values, rotation_deg, translation_mm, endpoints_finite
84
+
85
+
86
+ def native_actions(pose: np.ndarray, pose_valid: np.ndarray,
87
+ pose_repaired: np.ndarray,
88
+ pose_event_id: np.ndarray) -> ActionSeries:
89
+ """Build each native transition ``k -> k+1`` with explicit validity."""
90
+ pose, pose_valid, pose_repaired, pose_event_id = _check_pose_arrays(
91
+ pose, pose_valid, pose_repaired, pose_event_id)
92
+ start = np.arange(max(0, len(pose) - 1), dtype=np.int32)
93
+ end = start + 1
94
+ values, rotation_deg, translation_mm, finite = _relative_values(
95
+ pose, start, end)
96
+ valid = (pose_valid[start] & pose_valid[end] & finite
97
+ & (rotation_deg <= MAX_ROTATION_DEG)
98
+ & (translation_mm <= MAX_TRANSLATION_MM))
99
+ repaired = pose_repaired[start] | pose_repaired[end]
100
+ event_ids = tuple(_event_union(pose_event_id[a], pose_event_id[b])
101
+ for a, b in zip(start, end))
102
+ return ActionSeries(values, valid, repaired, event_ids, start, end,
103
+ rotation_deg, translation_mm)
104
+
105
+
106
+ def actions_fps15(pose: np.ndarray, native: ActionSeries) -> ActionSeries:
107
+ """Build ``k -> k+2`` actions; validity is AND and repair is OR."""
108
+ pose = np.asarray(pose, dtype=float)
109
+ expected_native = max(0, len(pose) - 1)
110
+ if len(native.valid) != expected_native:
111
+ raise ValueError(
112
+ f"native has {len(native.valid)} rows for {len(pose)} poses; "
113
+ f"expected {expected_native}")
114
+ start = np.arange(0, max(0, len(pose) - 2), 2, dtype=np.int32)
115
+ end = start + 2
116
+ values, rotation_deg, translation_mm, _ = _relative_values(pose, start, end)
117
+ first = start
118
+ second = start + 1
119
+ valid = native.valid[first] & native.valid[second]
120
+ repaired = native.repaired[first] | native.repaired[second]
121
+ event_ids = tuple(_event_union(native.event_ids[a], native.event_ids[b])
122
+ for a, b in zip(first, second))
123
+ return ActionSeries(values, valid, repaired, event_ids, start, end,
124
+ rotation_deg, translation_mm)
125
+
action_repair_tools/twm/react_toolbox/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ """Coordinate conversion helpers used by action propagation."""
action_repair_tools/twm/react_toolbox/frames.py ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Which way is up — declared, and converted as one piece or not at all.
2
+
3
+ WHAT THE DATA IS, AND WHAT IT WAS
4
+
5
+ The release is now **Z-up, right-handed**: the table normal in world
6
+ coordinates is (0.053, -0.056, 0.997), 4.4 degrees off +z, and both the pose
7
+ rotations and `T_mocap_to_cam` have determinant +1.
8
+
9
+ OptiTrack RECORDS Y-up. The release used to ship that unchanged and said so
10
+ nowhere, which is the worse half of the problem: robotics code overwhelmingly
11
+ assumes Z-up, and a reader taking `pose[2]` as height got a horizontal
12
+ coordinate with nothing to complain — plausible numbers, fine-looking plots,
13
+ and an error that surfaces only as a model that never learns which way gravity
14
+ points.
15
+
16
+ Poses and extrinsics were converted together, so every projection is
17
+ unchanged and every rendered preview, overlay and clip stayed valid. Only the
18
+ numbers moved. `ZUP_TO_YUP` converts back for anything that still wants the
19
+ raw OptiTrack convention.
20
+
21
+ THE CONVERSION, AND THE TRAP IN IT
22
+
23
+ Y-up to Z-up preserving handedness is a rotation of -90 degrees about x:
24
+
25
+ (x, y, z) -> (x, -z, y)
26
+
27
+ There are two right-handed candidates; this is the one that sends UP to **+z**
28
+ rather than -z. The other, R_x(+90), is equally right-handed and puts the table
29
+ normal at (0.053, 0.056, -0.997) — upside down, det still +1, and no assertion
30
+ about handedness would catch it.
31
+
32
+ THE TRAP: a world-frame rotation must be applied to the POSES **and** to
33
+ `T_mocap_to_cam` together. Applied to one only, every projection moves and
34
+ nothing raises. So this module converts a BUNDLE — poses and cameras — and
35
+ `scripts/test_frames.py` asserts that projections are bit-identical afterwards.
36
+ Invariance is the test: if a pixel moves, the conversion was half-applied.
37
+
38
+ The gel centre is in the sensor's own RIGID frame and is therefore untouched.
39
+ """
40
+ from __future__ import annotations
41
+
42
+ import numpy as np
43
+
44
+ UP_AXIS_RECORDED = "z"
45
+ UP_AXIS_ROBOTICS = "z"
46
+
47
+ # (x, y, z)_yup -> (x, -z, y)_zup. det = +1, and it sends +y to +z.
48
+ YUP_TO_ZUP = np.array([[1.0, 0.0, 0.0],
49
+ [0.0, 0.0, -1.0],
50
+ [0.0, 1.0, 0.0]])
51
+ ZUP_TO_YUP = YUP_TO_ZUP.T
52
+
53
+
54
+ def _R(to_zup: bool) -> np.ndarray:
55
+ return YUP_TO_ZUP if to_zup else ZUP_TO_YUP
56
+
57
+
58
+ def convert_poses(poses7, to_zup: bool = True) -> np.ndarray:
59
+ """Rotate a pose array into the other up-convention. (N, 7) or (7,).
60
+
61
+ Positions rotate; orientations PRE-multiply, because this is a change of
62
+ the world frame, not a motion of the body.
63
+ """
64
+ from scipy.spatial.transform import Rotation
65
+
66
+ p = np.atleast_2d(np.asarray(poses7, float)).copy()
67
+ M = _R(to_zup)
68
+ ok = np.isfinite(p).all(1) & (np.linalg.norm(p[:, 3:7], axis=1) > 0.5)
69
+ # A column can be entirely untracked -- pushT never tracked an object
70
+ # body, so its object_pose is NaN from end to end. scipy raises "Found
71
+ # zero norm quaternions" on the resulting EMPTY array, and that exception
72
+ # is why the pushT half of the release stayed unconverted while the
73
+ # motherboard half went Z-up. Nothing to rotate is not an error.
74
+ if ok.any():
75
+ p[ok, :3] = p[ok, :3] @ M.T
76
+ p[ok, 3:7] = (Rotation.from_matrix(M)
77
+ * Rotation.from_quat(p[ok, 3:7])).as_quat()
78
+ return p[0] if np.ndim(poses7) == 1 else p
79
+
80
+
81
+ def convert_calibration(cal: dict, to_zup: bool = True) -> dict:
82
+ """The same rotation applied to every camera extrinsic. Returns a copy.
83
+
84
+ `T_mocap_to_cam` maps mocap -> camera. Rotating the mocap frame by M means
85
+ the new matrix is `T @ M^-1`, so that `T_new @ (M @ x) == T @ x` and every
86
+ projection is unchanged. Getting this inverse backwards is the other way to
87
+ break it silently; the invariance test catches that too.
88
+ """
89
+ M = _R(to_zup)
90
+ out = {k: v for k, v in cal.items()}
91
+ out["up_axis"] = "z" if to_zup else "y"
92
+ out["cams"] = {}
93
+ for name, c in cal["cams"].items():
94
+ T = np.asarray(c["T_mocap_to_cam"], float).copy()
95
+ T[:3, :3] = T[:3, :3] @ M.T # M^-1 == M.T for a rotation
96
+ out["cams"][name] = {**c, "T_mocap_to_cam": T}
97
+ return out
98
+
99
+
100
+ def to_zup(poses7, cal: dict):
101
+ """Convert a pose array and its calibration together. Returns (poses, cal).
102
+
103
+ Use this rather than the two halves: the whole point is that they move as
104
+ one piece.
105
+ """
106
+ return convert_poses(poses7, True), convert_calibration(cal, True)
107
+
108
+
109
+ def require_up_axis(cal: dict, expected: str = UP_AXIS_RECORDED, where: str = ""):
110
+ """Raise unless `cal` declares the up-axis convention `expected`.
111
+
112
+ WHY THIS EXISTS. Poses and calibration are two halves of one convention,
113
+ and they are read from two paths. Rotating only one half leaves every
114
+ self-consistency check green -- projections still recompute exactly from
115
+ the same wrong matrix -- while the pictures are wrong. That happened: the
116
+ probe test set drew its poses from the Z-up release and its calibration
117
+ from a Y-up tree, and every overlay was a median 153 px off.
118
+
119
+ So the halves must be paired loudly, not by convention. A file with no
120
+ declaration is treated as the pre-conversion Y-up it was.
121
+ """
122
+ got = cal.get("up_axis")
123
+ if got != expected:
124
+ raise ValueError(
125
+ f"calibration up-axis mismatch{' in ' + where if where else ''}: "
126
+ f"declared {got!r}, need {expected!r}. Poses and calibration must "
127
+ f"come from the same release. A missing declaration means a "
128
+ f"pre-conversion Y-up file -- convert it with "
129
+ f"scripts/convert_release_zup.py, or take the calibration from "
130
+ f"the release the poses came from.")
131
+ return cal
132
+
133
+
134
+ def as_up_axis(cal: dict, want: str) -> dict:
135
+ """Return `cal` in the convention `want`, converting only if it must.
136
+
137
+ `require_up_axis` refuses a mismatch; this one repairs it. Use it when the
138
+ caller genuinely knows which convention its POSES are in -- a raw-HDF5
139
+ reader wants "y", a release reader wants "z" -- and should not have to care
140
+ which directory the calibration happened to come from.
141
+
142
+ An undeclared calibration is the pre-conversion Y-up it was, so this
143
+ converts it rather than trusting it.
144
+ """
145
+ if want not in ("y", "z"):
146
+ raise ValueError(f"up axis must be 'y' or 'z', got {want!r}")
147
+ got = cal.get("up_axis") or "y"
148
+ if got == want:
149
+ return cal
150
+ return convert_calibration(cal, to_zup=(want == "z"))
action_repair_tools/twm/scripts/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ """Action audit, reconstruction, publication and review commands."""
action_repair_tools/twm/scripts/benchmark_mocap_branch.py ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Benchmark body-frame branch correction on frozen clean pose fragments."""
2
+ from __future__ import annotations
3
+
4
+ import argparse
5
+ from dataclasses import asdict
6
+ from pathlib import Path
7
+
8
+ import numpy as np
9
+ from scipy.spatial.transform import Rotation
10
+
11
+ from twm.react_preprocess.mocap_branch import find_branch_candidates
12
+ from twm.react_preprocess.mocap_candidate import load_manifest
13
+ from twm.scripts.benchmark_mocap_repair import (
14
+ _candidate_order, _native_errors, _rotation_angle_deg, _select_disjoint, _summary,
15
+ )
16
+ from twm.scripts.build_mocap_repair_candidates import _atomic_json, _clean_fragments
17
+
18
+
19
+ def _inject(pose, start, length):
20
+ observed = pose.copy()
21
+ rotations = Rotation.from_quat(pose[start:start+length, 3:])
22
+ observed[start:start+length, :3] += rotations.apply([0.029, 0, 0])
23
+ observed[start:start+length, 3:] = (rotations*Rotation.from_euler('yx', [100, 8], degrees=True)).as_quat()
24
+ return observed
25
+
26
+
27
+ def _negative_controls():
28
+ pose = np.zeros((180, 7)); pose[:, 6] = 1
29
+ fast = pose.copy()
30
+ fast[:, 3:] = Rotation.from_euler('z', 35*np.arange(len(fast)), degrees=True).as_quat()
31
+ out_back = pose.copy()
32
+ angle = np.r_[np.zeros(30), np.linspace(0, 100, 60), np.linspace(100, 0, 60), np.zeros(30)]
33
+ out_back[:, 3:] = Rotation.from_euler('z', angle, degrees=True).as_quat()
34
+ abrupt = find_branch_candidates(_inject(pose, 40, 60))
35
+ repeated = find_branch_candidates(_inject(_inject(pose, 20, 30), 100, 30))
36
+ return {
37
+ 'continuous_fast_turn_candidates': len(find_branch_candidates(fast)),
38
+ 'continuous_out_back_candidates': len(find_branch_candidates(out_back)),
39
+ 'abrupt_out_back_candidates': len(abrupt),
40
+ 'abrupt_out_back_automatic_admissions': sum(c.confidence == 'HIGH' for c in abrupt),
41
+ 'repeated_abrupt_out_back_candidates': len(repeated),
42
+ 'repeated_abrupt_out_back_repeat_supported_candidates': sum(c.evidence['matching_return_pairs'] >= 2 for c in repeated),
43
+ 'caveat': 'Repeated abrupt genuine motion is observationally indistinguishable from a tracker branch; repetition alone is not independent ground truth.',
44
+ }
45
+
46
+
47
+ def benchmark_branch_task(clean_episodes, *, task, max_intervals=200, seed=17):
48
+ episodes = [np.asarray(p, dtype=float) for p in clean_episodes]
49
+ lengths = (6, 20, 60, 120)
50
+ selected = _select_disjoint(_candidate_order(
51
+ episodes, lengths, np.random.default_rng(seed), pool_size=max(1000, max_intervals*50)), max_intervals)
52
+ names = ('translation_mm', 'orientation_deg', 'native_translation_mm', 'native_rotation_deg')
53
+ values = {name: [] for name in names}
54
+ all_values = {name: [] for name in names}
55
+ by_length = {length: {name: [] for name in names} for length in lengths}
56
+ counts = {length: 0 for length in lengths}
57
+ for interval in selected:
58
+ truth = episodes[interval.episode][interval.start-15:interval.start+interval.length+15]
59
+ observed = _inject(truth, 15, interval.length)
60
+ candidates = find_branch_candidates(observed)
61
+ matches = [c for c in candidates if c.start == 15 and c.end == 15+interval.length-1]
62
+ result = observed.copy()
63
+ if matches:
64
+ result[15:15+interval.length] = matches[0].pose
65
+ counts[interval.length] += 1
66
+ rows = slice(15, 15+interval.length)
67
+ trans = np.linalg.norm(result[rows, :3]-truth[rows, :3], axis=1)*1000
68
+ rot = _rotation_angle_deg(result[rows, 3:], truth[rows, 3:])
69
+ action_trans, action_rot = _native_errors(result, truth, np.arange(14, 15+interval.length))
70
+ for name, error in zip(names, (trans, rot, action_trans, action_rot)):
71
+ all_values[name].extend(error.tolist())
72
+ if matches:
73
+ values[name].extend(error.tolist())
74
+ by_length[interval.length][name].extend(error.tolist())
75
+ metrics = {name: asdict(_summary(v)) for name, v in values.items()}
76
+ per_length = {str(length): {'qualifying_intervals': counts[length],
77
+ 'metrics': {name: asdict(_summary(v)) for name, v in by_length[length].items()}}
78
+ for length in lengths}
79
+ def passes(measured):
80
+ caps = {'translation_mm': (2, 10), 'orientation_deg': (1, 5),
81
+ 'native_translation_mm': (2, 5), 'native_rotation_deg': (1, 3)}
82
+ return all(measured[name]['count'] > 0 and measured[name]['median'] <= median and
83
+ measured[name]['p95'] <= p95 for name, (median, p95) in caps.items())
84
+ negative = _negative_controls()
85
+ passed = (sum(counts.values()) >= 100 and passes(metrics) and
86
+ all(counts[length] >= 10 and passes(per_length[str(length)]['metrics']) for length in lengths) and
87
+ negative['continuous_fast_turn_candidates'] == 0 and
88
+ negative['continuous_out_back_candidates'] == 0)
89
+ return {
90
+ 'schema_version': 1, 'task': task, 'seed': seed, 'method': 'paired_body_branch',
91
+ 'intervals': len(selected), 'qualifying_intervals': sum(counts.values()),
92
+ 'rejected_intervals': len(selected)-sum(counts.values()), 'anomaly_lengths': list(lengths),
93
+ 'metrics': metrics, 'metrics_all': {name: asdict(_summary(v)) for name, v in all_values.items()},
94
+ 'by_length': per_length, 'negative_controls': negative,
95
+ 'gate': {'high_confidence_enabled': False, 'reconstruction_accuracy_passed': bool(passed),
96
+ 'validated_max_frames': max(lengths) if passed else 0,
97
+ 'requires_independent_branch_identity_evidence': True},
98
+ 'scope': 'Reconstruction accuracy conditional on exact paired-boundary identification; does not validate anomaly classification or branch identity.',
99
+ }
100
+
101
+
102
+ def main():
103
+ parser = argparse.ArgumentParser(description=__doc__)
104
+ parser.add_argument('--candidate-root', type=Path, required=True)
105
+ parser.add_argument('--output-root', type=Path, required=True)
106
+ parser.add_argument('--max-intervals', type=int, default=200)
107
+ parser.add_argument('--seed', type=int, default=17)
108
+ args = parser.parse_args()
109
+ manifest = load_manifest(args.candidate_root/'input_manifest.json')
110
+ for task in manifest.tasks:
111
+ fragments = _clean_fragments(manifest, task)
112
+ report = benchmark_branch_task(fragments, task=task, max_intervals=args.max_intervals, seed=args.seed)
113
+ report['manifest_digest'] = manifest.digest
114
+ path = _atomic_json(args.output_root/f'{task}.json', report)
115
+ print(task, report['qualifying_intervals'], report['gate'], path, flush=True)
116
+
117
+
118
+ if __name__ == '__main__':
119
+ main()
action_repair_tools/twm/scripts/benchmark_mocap_repair.py ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Calibrate mocap repair confidence with deterministic clean-data masking."""
3
+ from __future__ import annotations
4
+
5
+ from dataclasses import asdict, dataclass, field
6
+ from typing import Iterable
7
+
8
+ import numpy as np
9
+ from scipy.spatial.transform import Rotation
10
+
11
+ from twm.react_preprocess.mocap_repair import TaskGate, repair_pose_stream
12
+
13
+
14
+ @dataclass(frozen=True)
15
+ class MetricSummary:
16
+ median: float
17
+ p95: float
18
+ count: int
19
+
20
+
21
+ @dataclass(frozen=True)
22
+ class BenchmarkReport:
23
+ task: str
24
+ seed: int
25
+ intervals: int
26
+ high_intervals: int
27
+ anomaly_lengths: tuple[int, ...]
28
+ confidence_counts: dict[str, int]
29
+ metrics: dict[str, MetricSummary]
30
+ metrics_all: dict[str, MetricSummary]
31
+ gate: TaskGate
32
+ methods: dict = field(default_factory=dict)
33
+
34
+ def to_dict(self) -> dict:
35
+ return {
36
+ "schema_version": 1,
37
+ "task": self.task,
38
+ "seed": self.seed,
39
+ "intervals": self.intervals,
40
+ "high_intervals": self.high_intervals,
41
+ "anomaly_lengths": list(self.anomaly_lengths),
42
+ "confidence_counts": dict(sorted(self.confidence_counts.items())),
43
+ "metrics": {name: asdict(self.metrics[name])
44
+ for name in sorted(self.metrics)},
45
+ "metrics_all": {name: asdict(self.metrics_all[name])
46
+ for name in sorted(self.metrics_all)},
47
+ "gate": asdict(self.gate),
48
+ "methods": self.methods,
49
+ }
50
+
51
+
52
+ @dataclass(frozen=True)
53
+ class _Candidate:
54
+ episode: int
55
+ start: int
56
+ length: int
57
+ motion: float
58
+
59
+
60
+ def _validate_episode(pose: np.ndarray) -> np.ndarray:
61
+ pose = np.asarray(pose, dtype=float)
62
+ if pose.ndim != 2 or pose.shape[1] != 7:
63
+ raise ValueError(f"clean episode must have shape (T, 7), got {pose.shape}")
64
+ return pose
65
+
66
+
67
+ def _rotation_angle_deg(a: np.ndarray, b: np.ndarray) -> np.ndarray:
68
+ return np.degrees(
69
+ (Rotation.from_quat(a) * Rotation.from_quat(b).inv()).magnitude())
70
+
71
+
72
+ def _motion_score(pose: np.ndarray, start: int, length: int) -> float:
73
+ lo, hi = start - 1, start + length
74
+ trans = np.linalg.norm(pose[hi, :3] - pose[lo, :3]) * 1000.0
75
+ rot = float(_rotation_angle_deg(
76
+ pose[hi:hi + 1, 3:], pose[lo:lo + 1, 3:])[0])
77
+ return float(trans + rot)
78
+
79
+
80
+ def _candidate_order(episodes: list[np.ndarray], lengths: tuple[int, ...],
81
+ rng: np.random.Generator, *,
82
+ pool_size: int) -> list[_Candidate]:
83
+ """Sample a bounded candidate pool before motion-stratified sorting."""
84
+ context = 15
85
+ spans: list[tuple[int, int, int]] = []
86
+ for episode_index, pose in enumerate(episodes):
87
+ for length in lengths:
88
+ count = max(0, len(pose) - 2 * context - length)
89
+ if count:
90
+ spans.append((episode_index, length, count))
91
+ total = sum(count for _, _, count in spans)
92
+ if not total:
93
+ return []
94
+ take = min(int(pool_size), total)
95
+ flat_rows = (np.arange(total, dtype=np.int64) if take == total
96
+ else np.sort(rng.choice(total, size=take, replace=False)))
97
+ cumulative = np.cumsum([count for _, _, count in spans])
98
+ candidates = []
99
+ for flat in flat_rows:
100
+ span_index = int(np.searchsorted(cumulative, flat, side="right"))
101
+ prior = int(cumulative[span_index - 1]) if span_index else 0
102
+ episode_index, length, _ = spans[span_index]
103
+ start = context + int(flat) - prior
104
+ pose = episodes[episode_index]
105
+ rows = pose[start - context:start + length + context]
106
+ norm = np.linalg.norm(rows[:, 3:], axis=1)
107
+ if not np.isfinite(rows).all() or np.any(norm <= 1e-12):
108
+ continue
109
+ candidates.append(_Candidate(
110
+ episode_index, start, length,
111
+ _motion_score(pose, start, length)))
112
+ candidates.sort(key=lambda row: (row.motion, row.episode, row.start, row.length))
113
+ bins = [list(chunk) for chunk in np.array_split(
114
+ np.asarray(candidates, dtype=object), 3) if len(chunk)]
115
+ for rows in bins:
116
+ rng.shuffle(rows)
117
+ ordered: list[_Candidate] = []
118
+ while any(bins):
119
+ for rows in bins:
120
+ if rows:
121
+ ordered.append(rows.pop())
122
+ return ordered
123
+
124
+
125
+ def _select_disjoint(candidates: list[_Candidate], count: int) -> list[_Candidate]:
126
+ used: dict[int, list[tuple[int, int]]] = {}
127
+ out = []
128
+ for candidate in candidates:
129
+ end = candidate.start + candidate.length
130
+ overlaps = any(candidate.start < prior_end and prior_start < end
131
+ for prior_start, prior_end in used.get(candidate.episode, []))
132
+ if overlaps:
133
+ continue
134
+ used.setdefault(candidate.episode, []).append((candidate.start, end))
135
+ out.append(candidate)
136
+ if len(out) >= count:
137
+ break
138
+ return out
139
+
140
+
141
+ def _inject_wrong_branch(pose: np.ndarray, rows: np.ndarray) -> np.ndarray:
142
+ observed = pose.copy()
143
+ observed[rows, :3] += np.array([0.029, -0.003, 0.0])
144
+ wrong = Rotation.from_euler("yx", [100.0, 8.0], degrees=True)
145
+ observed[rows, 3:] = (
146
+ wrong * Rotation.from_quat(pose[rows, 3:])).as_quat()
147
+ return observed
148
+
149
+
150
+ def _native_errors(candidate: np.ndarray, truth: np.ndarray,
151
+ transitions: np.ndarray) -> tuple[np.ndarray, np.ndarray]:
152
+ truth_delta = truth[transitions + 1, :3] - truth[transitions, :3]
153
+ candidate_delta = candidate[transitions + 1, :3] - candidate[transitions, :3]
154
+ trans = np.linalg.norm(candidate_delta - truth_delta, axis=1) * 1000.0
155
+ truth_relative = (Rotation.from_quat(truth[transitions + 1, 3:])
156
+ * Rotation.from_quat(truth[transitions, 3:]).inv())
157
+ candidate_relative = (Rotation.from_quat(candidate[transitions + 1, 3:])
158
+ * Rotation.from_quat(candidate[transitions, 3:]).inv())
159
+ rot = np.degrees((candidate_relative * truth_relative.inv()).magnitude())
160
+ return trans, rot
161
+
162
+
163
+ def _summary(values: list[float]) -> MetricSummary:
164
+ data = np.asarray(values, dtype=float)
165
+ if not len(data):
166
+ return MetricSummary(float("inf"), float("inf"), 0)
167
+ return MetricSummary(
168
+ median=float(np.median(data)),
169
+ p95=float(np.percentile(data, 95)),
170
+ count=int(len(data)),
171
+ )
172
+
173
+
174
+ def benchmark_task(
175
+ clean_episodes: Iterable[np.ndarray],
176
+ *,
177
+ task: str,
178
+ anomaly_lengths: Iterable[int] = (1, 5, 20, 60),
179
+ max_intervals: int = 300,
180
+ seed: int = 0,
181
+ ) -> BenchmarkReport:
182
+ """Mask held-out clean intervals and score reconstruction/action errors."""
183
+ episodes = [_validate_episode(pose) for pose in clean_episodes]
184
+ lengths = tuple(sorted({int(length) for length in anomaly_lengths
185
+ if int(length) > 0}))
186
+ if not episodes:
187
+ raise ValueError("at least one clean episode is required")
188
+ if not lengths:
189
+ raise ValueError("at least one positive anomaly length is required")
190
+ if max_intervals <= 0:
191
+ raise ValueError("max_intervals must be positive")
192
+ rng = np.random.default_rng(int(seed))
193
+ selected = _select_disjoint(
194
+ _candidate_order(
195
+ episodes, lengths, rng,
196
+ pool_size=max(1000, int(max_intervals) * 50)),
197
+ int(max_intervals))
198
+
199
+ names = ("translation_mm", "orientation_deg",
200
+ "native_translation_mm", "native_rotation_deg")
201
+ all_values: dict[str, list[float]] = {name: [] for name in names}
202
+ high_values: dict[str, list[float]] = {name: [] for name in names}
203
+ high_by_length: dict[int, dict[str, list[float]]] = {
204
+ length: {name: [] for name in names} for length in lengths}
205
+ high_interval_count = {length: 0 for length in lengths}
206
+ method_values = {}
207
+ method_counts = {}
208
+ confidence_counts = {"HIGH": 0, "MEDIUM": 0, "LOW": 0}
209
+ endpoint_lengths = [length for length in lengths if length <= 5]
210
+ endpoint_trial_max = max(endpoint_lengths, default=0)
211
+ gate_for_reconstruction = TaskGate(
212
+ True, max(lengths), endpoint_max_frames=endpoint_trial_max)
213
+ for index, interval in enumerate(selected):
214
+ # Only the 15-frame contexts influence reconstruction. Evaluating
215
+ # an entire many-minute clean episode for every masked window adds
216
+ # quadratic detection work without supplying any extra evidence.
217
+ context_start = interval.start - 15
218
+ context_end = interval.start + interval.length + 15
219
+ truth = episodes[interval.episode][context_start:context_end]
220
+ interval = _Candidate(interval.episode, 15, interval.length, interval.motion)
221
+ all_rows = np.arange(interval.start, interval.start + interval.length)
222
+ if index % 2:
223
+ corrupt_rows = all_rows[::2]
224
+ known_gaps: list[tuple[int, int]] = []
225
+ else:
226
+ corrupt_rows = all_rows
227
+ known_gaps = [(interval.start, interval.length)]
228
+ observed = _inject_wrong_branch(truth, corrupt_rows)
229
+ result = repair_pose_stream(
230
+ observed, "left", known_gaps,
231
+ task_gate=gate_for_reconstruction)
232
+ pose_error = np.linalg.norm(
233
+ result.pose[all_rows, :3] - truth[all_rows, :3], axis=1) * 1000.0
234
+ rot_error = _rotation_angle_deg(
235
+ result.pose[all_rows, 3:], truth[all_rows, 3:])
236
+ lo = max(0, interval.start - 1)
237
+ hi = min(len(truth) - 1, interval.start + interval.length)
238
+ transitions = np.arange(lo, hi, dtype=int)
239
+ trans_action, rot_action = _native_errors(
240
+ result.pose, truth, transitions)
241
+ interval_values = {
242
+ "translation_mm": list(map(float, pose_error)),
243
+ "orientation_deg": list(map(float, rot_error)),
244
+ "native_translation_mm": list(map(float, trans_action)),
245
+ "native_rotation_deg": list(map(float, rot_action)),
246
+ }
247
+ for name in names:
248
+ all_values[name].extend(interval_values[name])
249
+ corrupt_confidence = result.confidence[corrupt_rows]
250
+ if (len(corrupt_rows)
251
+ and result.repaired[corrupt_rows].all()
252
+ and np.all(corrupt_confidence == 3)):
253
+ tier = "HIGH"
254
+ elif (result.repaired[corrupt_rows].any()
255
+ or np.any(corrupt_confidence == 2)):
256
+ tier = "MEDIUM"
257
+ else:
258
+ tier = "LOW"
259
+ confidence_counts[tier] += 1
260
+ if tier == "HIGH":
261
+ methods = {event.method for event in result.events
262
+ if event.bout.start <= interval.start + interval.length - 1
263
+ and event.bout.end >= interval.start}
264
+ method = next(iter(methods)) if len(methods) == 1 else "mixed"
265
+ method_counts[method] = method_counts.get(method, 0) + 1
266
+ values = method_values.setdefault(method, {name: [] for name in names})
267
+ for name in names:
268
+ values[name].extend(interval_values[name])
269
+ high_interval_count[interval.length] += 1
270
+ for name in names:
271
+ high_values[name].extend(interval_values[name])
272
+ high_by_length[interval.length][name].extend(
273
+ interval_values[name])
274
+
275
+ metrics = {name: _summary(high_values[name]) for name in names}
276
+ metrics_all = {name: _summary(all_values[name]) for name in names}
277
+
278
+ def passes(values: dict[str, list[float]], interval_count: int) -> bool:
279
+ summary = {name: _summary(values[name]) for name in names}
280
+ return (
281
+ interval_count >= 100
282
+ and summary["translation_mm"].median <= 2.0
283
+ and summary["translation_mm"].p95 <= 10.0
284
+ and summary["orientation_deg"].median <= 1.0
285
+ and summary["orientation_deg"].p95 <= 5.0
286
+ and summary["native_translation_mm"].p95 <= 5.0
287
+ and summary["native_rotation_deg"].p95 <= 3.0)
288
+
289
+ validated_max = 0
290
+ for max_length in lengths:
291
+ prefix = {name: [] for name in names}
292
+ prefix_intervals = 0
293
+ for length in lengths:
294
+ if length > max_length:
295
+ continue
296
+ prefix_intervals += high_interval_count[length]
297
+ for name in names:
298
+ prefix[name].extend(high_by_length[length][name])
299
+ if passes(prefix, prefix_intervals):
300
+ validated_max = max_length
301
+ gate = TaskGate(
302
+ high_confidence_enabled=validated_max > 0,
303
+ validated_max_frames=validated_max,
304
+ endpoint_max_frames=(endpoint_trial_max if passes(
305
+ method_values.get("endpoint_se3", {name: [] for name in names}),
306
+ method_counts.get("endpoint_se3", 0)) else 0))
307
+ return BenchmarkReport(
308
+ task=str(task), seed=int(seed), intervals=len(selected),
309
+ high_intervals=confidence_counts["HIGH"],
310
+ anomaly_lengths=lengths, confidence_counts=confidence_counts,
311
+ metrics=metrics, metrics_all=metrics_all, gate=gate,
312
+ methods={method: {"intervals": method_counts[method],
313
+ "metrics": {name: asdict(_summary(values[name]))
314
+ for name in names}}
315
+ for method, values in method_values.items()})
action_repair_tools/twm/scripts/build_mocap_repair_candidates.py ADDED
@@ -0,0 +1,350 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Audit, calibrate, build, review, and verify mocap repair candidates."""
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ from collections import Counter
7
+ from dataclasses import asdict
8
+ import json
9
+ import os
10
+ from pathlib import Path
11
+ import tempfile
12
+ from typing import Any, Iterable
13
+
14
+ import numpy as np
15
+ import pyarrow.parquet as pq
16
+
17
+ from twm.react_preprocess.mocap_candidate import (
18
+ CandidateBuild,
19
+ CandidateWriter,
20
+ InputManifest,
21
+ VerificationReport,
22
+ apply_decisions,
23
+ load_manifest,
24
+ save_manifest,
25
+ snapshot_inputs,
26
+ verify_candidate,
27
+ )
28
+ from twm.react_preprocess.mocap_repair import (
29
+ TaskGate,
30
+ detect_bouts,
31
+ )
32
+ from twm.scripts.benchmark_mocap_repair import (
33
+ BenchmarkReport,
34
+ benchmark_task,
35
+ )
36
+
37
+
38
+ TASKS = ("motherboard", "pushT", "rope", "toy")
39
+ DEFAULT_SOURCE = Path("/media/yxma/Disk1/twm/release")
40
+ DEFAULT_OUTPUT = Path(
41
+ "/media/yxma/Disk1/twm/review/mocap_repair_2026-09-17/candidate_release")
42
+
43
+
44
+ def _atomic_json(path: Path, value: Any) -> Path:
45
+ path = Path(path)
46
+ path.parent.mkdir(parents=True, exist_ok=True)
47
+ with tempfile.NamedTemporaryFile(
48
+ mode="w", encoding="utf-8", dir=path.parent,
49
+ prefix=f".{path.name}.", suffix=".tmp", delete=False) as stream:
50
+ temp = Path(stream.name)
51
+ json.dump(value, stream, indent=2, sort_keys=True)
52
+ stream.write("\n")
53
+ os.replace(temp, path)
54
+ return path
55
+
56
+
57
+ def _gap_map(source_root: Path, task: str) -> dict[str, Any]:
58
+ path = source_root / task / "pose_gaps.json"
59
+ return json.loads(path.read_text()) if path.is_file() else {}
60
+
61
+
62
+ def _known_gaps(gaps: dict[str, Any], date: str, episode: str,
63
+ side: str) -> list[tuple[int, int]]:
64
+ return [tuple(map(int, row)) for row in
65
+ gaps.get(f"{date}/{episode}", {}).get(side, [])]
66
+
67
+
68
+ def _load_pinned_manifest(candidate_root: Path) -> InputManifest:
69
+ path = Path(candidate_root) / "input_manifest.json"
70
+ if not path.is_file():
71
+ raise ValueError(f"run audit first; missing {path}")
72
+ return load_manifest(path)
73
+
74
+
75
+ def run_audit(source_root: Path = DEFAULT_SOURCE,
76
+ candidate_root: Path = DEFAULT_OUTPUT,
77
+ tasks: Iterable[str] = TASKS) -> InputManifest:
78
+ """Freeze input membership and report metadata-only anomaly bouts."""
79
+ source_root = Path(source_root).resolve()
80
+ candidate_root = Path(candidate_root).resolve()
81
+ manifest = snapshot_inputs(source_root, tasks)
82
+ # Constructor performs the production-root overlap safety check before the
83
+ # audit writes even its first JSON file.
84
+ CandidateWriter(source_root, candidate_root, manifest)
85
+ save_manifest(manifest, candidate_root / "input_manifest.json")
86
+
87
+ counts: dict[str, Counter] = {task: Counter() for task in manifest.tasks}
88
+ frames: dict[str, int] = {task: 0 for task in manifest.tasks}
89
+ gap_cache = {task: _gap_map(source_root, task) for task in manifest.tasks}
90
+ for item in manifest.files:
91
+ task, _, date, filename = Path(item.path).parts
92
+ episode = Path(filename).stem
93
+ table = pq.read_table(source_root / item.path)
94
+ for side in ("left", "right"):
95
+ name = f"sensor_{side}_pose"
96
+ if name not in table.column_names:
97
+ continue
98
+ pose = np.asarray(table[name].to_pylist(), float)
99
+ bouts = detect_bouts(
100
+ pose, side,
101
+ _known_gaps(gap_cache[task], date, episode, side))
102
+ for bout in bouts:
103
+ counts[task][bout.kind] += 1
104
+ frames[task] += bout.end - bout.start + 1
105
+ _atomic_json(candidate_root / "audit_summary.json", {
106
+ "schema_version": 1,
107
+ "manifest_digest": manifest.digest,
108
+ "source_root": str(source_root),
109
+ "episode_count": len(manifest.files),
110
+ "tasks": {task: {
111
+ "episodes": sum(Path(item.path).parts[0] == task
112
+ for item in manifest.files),
113
+ "bouts": dict(sorted(counts[task].items())),
114
+ "candidate_frames": frames[task],
115
+ } for task in manifest.tasks},
116
+ })
117
+ return manifest
118
+
119
+
120
+ def _clean_fragments(manifest: InputManifest, task: str,
121
+ context: int = 15) -> list[np.ndarray]:
122
+ source_root = Path(manifest.source_root)
123
+ gaps = _gap_map(source_root, task)
124
+ fragments: list[np.ndarray] = []
125
+ for item in manifest.files:
126
+ if Path(item.path).parts[0] != task:
127
+ continue
128
+ _, _, date, filename = Path(item.path).parts
129
+ episode = Path(filename).stem
130
+ table = pq.read_table(source_root / item.path)
131
+ for side in ("left", "right"):
132
+ name = f"sensor_{side}_pose"
133
+ if name not in table.column_names:
134
+ continue
135
+ pose = np.asarray(table[name].to_pylist(), float)
136
+ blocked = ~np.isfinite(pose).all(axis=1)
137
+ for bout in detect_bouts(
138
+ pose, side, _known_gaps(gaps, date, episode, side)):
139
+ lo = max(0, bout.start - context)
140
+ hi = min(len(pose), bout.end + context + 1)
141
+ blocked[lo:hi] = True
142
+ starts = np.flatnonzero(~blocked & np.r_[True, blocked[:-1]])
143
+ ends = np.flatnonzero(~blocked & np.r_[blocked[1:], True]) + 1
144
+ for start, end in zip(starts, ends):
145
+ if end - start >= 40:
146
+ fragments.append(pose[start:end].copy())
147
+ return fragments
148
+
149
+
150
+ def run_benchmarks(candidate_root: Path = DEFAULT_OUTPUT, *,
151
+ anomaly_lengths: Iterable[int] = (1, 5, 20, 60),
152
+ max_intervals: int = 300,
153
+ seed: int = 0) -> dict[str, BenchmarkReport]:
154
+ """Calibrate one immutable, explicit confidence gate per task."""
155
+ candidate_root = Path(candidate_root).resolve()
156
+ manifest = _load_pinned_manifest(candidate_root)
157
+ # Preflight source digests before treating any source pose as clean truth.
158
+ verifier = CandidateWriter(
159
+ Path(manifest.source_root), candidate_root, manifest)
160
+ for item in manifest.files:
161
+ verifier._verify_source(item)
162
+ reports: dict[str, BenchmarkReport] = {}
163
+ benchmark_root = candidate_root / "benchmarks"
164
+ for task in manifest.tasks:
165
+ fragments = _clean_fragments(manifest, task)
166
+ if not fragments:
167
+ raise ValueError(f"no clean pose fragments available for {task}")
168
+ report = benchmark_task(
169
+ fragments, task=task, anomaly_lengths=anomaly_lengths,
170
+ max_intervals=max_intervals, seed=seed)
171
+ reports[task] = report
172
+ _atomic_json(benchmark_root / f"{task}.json", report.to_dict())
173
+ _atomic_json(candidate_root / "task_gates.json", {
174
+ "schema_version": 1,
175
+ "manifest_digest": manifest.digest,
176
+ "tasks": {task: asdict(report.gate)
177
+ for task, report in sorted(reports.items())},
178
+ })
179
+ return reports
180
+
181
+
182
+ def _load_task_gates(candidate_root: Path,
183
+ manifest: InputManifest) -> dict[str, TaskGate]:
184
+ path = Path(candidate_root) / "task_gates.json"
185
+ if not path.is_file():
186
+ raise ValueError(f"run benchmark first; missing {path}")
187
+ payload = json.loads(path.read_text())
188
+ if payload.get("manifest_digest") != manifest.digest:
189
+ raise ValueError("task gates manifest digest mismatch")
190
+ missing = set(manifest.tasks) - set(payload.get("tasks", {}))
191
+ if missing:
192
+ raise ValueError(f"task gates missing tasks: {sorted(missing)}")
193
+ return {task: TaskGate(**payload["tasks"][task])
194
+ for task in manifest.tasks}
195
+
196
+
197
+ def run_build(candidate_root: Path = DEFAULT_OUTPUT, *,
198
+ task_gates: dict[str, TaskGate] | None = None,
199
+ branch_review: bool = False,
200
+ require_loss_evidence: bool = False) -> CandidateBuild:
201
+ candidate_root = Path(candidate_root).resolve()
202
+ manifest = _load_pinned_manifest(candidate_root)
203
+ gates = task_gates or _load_task_gates(candidate_root, manifest)
204
+ missing = set(manifest.tasks) - set(gates)
205
+ if missing:
206
+ raise ValueError(f"task gates missing tasks: {sorted(missing)}")
207
+ writer = CandidateWriter(
208
+ Path(manifest.source_root), candidate_root, manifest,
209
+ task_gates=gates, branch_review=branch_review,
210
+ require_loss_evidence=require_loss_evidence)
211
+ build = writer.write_all()
212
+ _atomic_json(candidate_root / "candidate_summary.json",
213
+ summarize_candidate(candidate_root))
214
+ return build
215
+
216
+
217
+ def run_verify(candidate_root: Path = DEFAULT_OUTPUT) -> VerificationReport:
218
+ report = verify_candidate(candidate_root)
219
+ _atomic_json(Path(candidate_root) / "verification.json", {
220
+ "schema_version": 1,
221
+ "episodes": report.episodes,
222
+ "errors": list(report.errors),
223
+ })
224
+ return report
225
+
226
+
227
+ def summarize_candidate(candidate_root: Path = DEFAULT_OUTPUT) -> dict[str, Any]:
228
+ candidate_root = Path(candidate_root).resolve()
229
+ manifest = _load_pinned_manifest(candidate_root)
230
+ summary: dict[str, Any] = {
231
+ "schema_version": 1,
232
+ "manifest_digest": manifest.digest,
233
+ "tasks": {},
234
+ }
235
+ for task in manifest.tasks:
236
+ row = {
237
+ "events": {"HIGH": 0, "MEDIUM": 0, "LOW": 0},
238
+ "repaired_frames": 0,
239
+ "native_repaired_actions": 0,
240
+ "native_recovered_valid_actions": 0,
241
+ "fps15_repaired_actions": 0,
242
+ "fps15_recovered_valid_actions": 0,
243
+ "unresolved_events": 0,
244
+ }
245
+ for path in sorted((candidate_root / task / "repair_events").glob("*/*.json")):
246
+ for event in json.loads(path.read_text()).get("events", []):
247
+ confidence = str(event["confidence"]).upper()
248
+ row["events"].setdefault(confidence, 0)
249
+ row["events"][confidence] += 1
250
+ row["repaired_frames"] += len(event.get("replaced_frames", []))
251
+ if confidence in {"MEDIUM", "LOW"} and event.get("decision") != "accept_repair":
252
+ row["unresolved_events"] += 1
253
+ for rate, repaired_key, recovered_key in (
254
+ ("actions_native", "native_repaired_actions",
255
+ "native_recovered_valid_actions"),
256
+ ("actions_fps15", "fps15_repaired_actions",
257
+ "fps15_recovered_valid_actions")):
258
+ for path in sorted((candidate_root / task / rate).glob("*/*.npz")):
259
+ with np.load(path, allow_pickle=False) as data:
260
+ repaired = np.asarray(data["repaired"], bool)
261
+ valid = np.asarray(data["valid"], bool)
262
+ row[repaired_key] += int(repaired.sum())
263
+ row[recovered_key] += int((repaired & valid).sum())
264
+ summary["tasks"][task] = row
265
+ return summary
266
+
267
+
268
+ def run_review(candidate_root: Path = DEFAULT_OUTPUT, *, render: bool = False,
269
+ review_root: Path | None = None,
270
+ high_sample_rate: float = 0.1,
271
+ sample_seed: int = 0) -> dict[str, Any]:
272
+ from twm.scripts.build_pose_review import build_review
273
+
274
+ candidate_root = Path(candidate_root).resolve()
275
+ manifest = _load_pinned_manifest(candidate_root)
276
+ source_root = Path(manifest.source_root)
277
+ review_root = (Path(review_root).resolve() if review_root is not None
278
+ else candidate_root.parent / "review_package")
279
+ results = {}
280
+ for task in manifest.tasks:
281
+ results[task] = build_review(
282
+ source_root / task, review_root / task, render=render,
283
+ candidate_task_root=candidate_root / task,
284
+ high_sample_rate=high_sample_rate,
285
+ sample_seed=sample_seed)
286
+ return results
287
+
288
+
289
+ def _parser() -> argparse.ArgumentParser:
290
+ parser = argparse.ArgumentParser(description=__doc__)
291
+ parser.add_argument("--output", type=Path, default=DEFAULT_OUTPUT)
292
+ sub = parser.add_subparsers(dest="command", required=True)
293
+ audit = sub.add_parser("audit")
294
+ audit.add_argument("--source", type=Path, default=DEFAULT_SOURCE)
295
+ audit.add_argument("--task", action="append", choices=TASKS)
296
+ bench = sub.add_parser("benchmark")
297
+ bench.add_argument("--max-intervals", type=int, default=300)
298
+ bench.add_argument("--seed", type=int, default=0)
299
+ build = sub.add_parser("build")
300
+ build.add_argument("--branch-review", action="store_true")
301
+ build.add_argument("--require-loss-evidence", action="store_true")
302
+ review = sub.add_parser("review")
303
+ review.add_argument("--render", action="store_true")
304
+ review.add_argument("--review-root", type=Path)
305
+ review.add_argument("--high-sample-rate", type=float, default=0.1)
306
+ review.add_argument("--seed", type=int, default=0)
307
+ decisions = sub.add_parser("apply-decisions")
308
+ decisions.add_argument("decisions", type=Path)
309
+ sub.add_parser("verify")
310
+ sub.add_parser("summary")
311
+ return parser
312
+
313
+
314
+ def main(argv: list[str] | None = None) -> int:
315
+ args = _parser().parse_args(argv)
316
+ if args.command == "audit":
317
+ result = run_audit(args.source, args.output, args.task or TASKS)
318
+ print(json.dumps(result.to_dict(), indent=2, sort_keys=True))
319
+ elif args.command == "benchmark":
320
+ result = run_benchmarks(
321
+ args.output, max_intervals=args.max_intervals, seed=args.seed)
322
+ print(json.dumps({task: report.to_dict()
323
+ for task, report in result.items()}, indent=2,
324
+ sort_keys=True))
325
+ elif args.command == "build":
326
+ result = run_build(args.output, branch_review=args.branch_review,
327
+ require_loss_evidence=args.require_loss_evidence)
328
+ print(f"episodes={len(result.episodes)} manifest={result.manifest_digest}")
329
+ elif args.command == "review":
330
+ result = run_review(
331
+ args.output, render=args.render, review_root=args.review_root,
332
+ high_sample_rate=args.high_sample_rate, sample_seed=args.seed)
333
+ print(json.dumps({task: len(value["review_events"])
334
+ for task, value in result.items()}, indent=2,
335
+ sort_keys=True))
336
+ elif args.command == "apply-decisions":
337
+ apply_decisions(args.output, json.loads(args.decisions.read_text()))
338
+ print(json.dumps(summarize_candidate(args.output), indent=2,
339
+ sort_keys=True))
340
+ elif args.command == "verify":
341
+ report = run_verify(args.output)
342
+ print(f"episodes={report.episodes} errors={len(report.errors)}")
343
+ elif args.command == "summary":
344
+ print(json.dumps(summarize_candidate(args.output), indent=2,
345
+ sort_keys=True))
346
+ return 0
347
+
348
+
349
+ if __name__ == "__main__":
350
+ raise SystemExit(main())
action_repair_tools/twm/scripts/export_old_motherboard_actions.py ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Export old motherboard parquet with repaired T-row LeRobot actions.
2
+
3
+ Raw release columns are preserved. Candidate poses and action validity come
4
+ from the provenance-safe mocap repair tree; unresolved events stay invalid.
5
+ """
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ from datetime import datetime, timezone
10
+ import hashlib
11
+ import json
12
+ import os
13
+ from pathlib import Path
14
+ import tempfile
15
+ from typing import Mapping, Sequence
16
+
17
+ import numpy as np
18
+ import pyarrow as pa
19
+ import pyarrow.parquet as pq
20
+
21
+
22
+ TASK = "motherboard"
23
+ DATES = ("2026-05-10", "2026-05-11", "2026-05-19")
24
+ EXPECTED_EPISODES = 32
25
+ SIDES = ("left", "right")
26
+
27
+
28
+ def _fixed_float32(values: np.ndarray, width: int) -> pa.Array:
29
+ flat = pa.array(np.asarray(values, np.float32).reshape(-1), type=pa.float32())
30
+ return pa.FixedSizeListArray.from_arrays(flat, width)
31
+
32
+
33
+ def _append(table: pa.Table, name: str, values: pa.Array) -> pa.Table:
34
+ if name in table.column_names:
35
+ raise ValueError(f"refusing to replace existing column {name!r}")
36
+ return table.append_column(name, values)
37
+
38
+
39
+ def _long_transition_mask(events: Sequence[Mapping[str, object]], side: str,
40
+ n_rows: int) -> np.ndarray:
41
+ result = np.zeros(n_rows, dtype=bool)
42
+ for event in events:
43
+ if str(event.get("side")) != side:
44
+ continue
45
+ start, end = int(event["start"]), int(event["end"])
46
+ if end - start + 1 <= 60:
47
+ continue
48
+ first = max(0, start - 1)
49
+ last = min(n_rows - 2, end)
50
+ if last >= first:
51
+ result[first:last + 1] = True
52
+ return result
53
+
54
+
55
+ def build_action_episode(raw: pa.Table, candidate: pa.Table,
56
+ native_left: Mapping[str, np.ndarray],
57
+ native_right: Mapping[str, np.ndarray],
58
+ events: Sequence[Mapping[str, object]]) -> pa.Table:
59
+ """Return raw columns plus repaired pose/action columns, aligned to T rows."""
60
+ if raw.num_rows != candidate.num_rows:
61
+ raise ValueError("raw and candidate row counts differ")
62
+ n = raw.num_rows
63
+ if n < 1:
64
+ raise ValueError("empty episode")
65
+ repaired_pose = {}
66
+ native = {"left": native_left, "right": native_right}
67
+ for side in SIDES:
68
+ repaired_pose[side] = np.asarray(
69
+ candidate[f"sensor_{side}_pose"].to_pylist(), dtype=np.float32)
70
+ if repaired_pose[side].shape != (n, 7):
71
+ raise ValueError(f"candidate {side} pose must have shape ({n}, 7)")
72
+ for key in ("valid", "repaired"):
73
+ if np.asarray(native[side][key]).shape != (n - 1,):
74
+ raise ValueError(f"native {side} {key} must have {n - 1} rows")
75
+
76
+ target = np.concatenate([
77
+ np.concatenate([repaired_pose["left"][1:],
78
+ repaired_pose["right"][1:]], axis=1),
79
+ np.concatenate([repaired_pose["left"][-1:],
80
+ repaired_pose["right"][-1:]], axis=1),
81
+ ], axis=0)
82
+ out = raw
83
+ for side in SIDES:
84
+ out = _append(out, f"sensor_{side}_pose_repaired",
85
+ _fixed_float32(repaired_pose[side], 7))
86
+ out = _append(out, "action", _fixed_float32(target, 14))
87
+
88
+ for side in SIDES:
89
+ valid = np.r_[np.asarray(native[side]["valid"], bool), False]
90
+ repaired = np.r_[np.asarray(native[side]["repaired"], bool), False]
91
+ pose_conf = np.asarray(
92
+ candidate[f"pose_{side}_repair_confidence"].to_numpy(),
93
+ dtype=np.uint8)
94
+ confidence = np.zeros(n, dtype=np.uint8)
95
+ if n > 1:
96
+ confidence[:-1] = np.maximum(pose_conf[:-1], pose_conf[1:])
97
+ event_overlap = np.zeros(n, dtype=bool)
98
+ for event in events:
99
+ if str(event.get("side")) != side:
100
+ continue
101
+ start, end = int(event["start"]), int(event["end"])
102
+ first, last = max(0, start - 1), min(n - 2, end)
103
+ if last >= first:
104
+ event_overlap[first:last + 1] = True
105
+ lost = (~valid) & event_overlap
106
+ long_lost = _long_transition_mask(events, side, n) & lost
107
+ out = _append(out, f"action_valid_{side}", pa.array(valid))
108
+ out = _append(out, f"action_repaired_{side}", pa.array(repaired))
109
+ out = _append(out, f"action_repair_confidence_{side}",
110
+ pa.array(confidence, type=pa.uint8()))
111
+ out = _append(out, f"action_lost_track_{side}", pa.array(lost))
112
+ out = _append(out, f"action_long_lost_track_{side}",
113
+ pa.array(long_lost))
114
+ return out
115
+
116
+
117
+ def _sha256(path: Path) -> str:
118
+ digest = hashlib.sha256()
119
+ with path.open("rb") as stream:
120
+ for block in iter(lambda: stream.read(1024 * 1024), b""):
121
+ digest.update(block)
122
+ return digest.hexdigest()
123
+
124
+
125
+ def _load_native(path: Path) -> dict[str, np.ndarray]:
126
+ with np.load(path, allow_pickle=False) as data:
127
+ return {name: np.asarray(data[name]) for name in data.files}
128
+
129
+
130
+ def _atomic_parquet(table: pa.Table, path: Path) -> None:
131
+ path.parent.mkdir(parents=True, exist_ok=True)
132
+ with tempfile.NamedTemporaryFile(dir=path.parent, prefix=f".{path.name}.",
133
+ suffix=".tmp", delete=False) as stream:
134
+ temp = Path(stream.name)
135
+ try:
136
+ pq.write_table(table, temp, compression="zstd")
137
+ os.replace(temp, path)
138
+ finally:
139
+ temp.unlink(missing_ok=True)
140
+
141
+
142
+ def _columns_equal(left: pa.ChunkedArray, right: pa.ChunkedArray) -> bool:
143
+ if left.type != right.type or len(left) != len(right):
144
+ return False
145
+ if left.equals(right):
146
+ return True
147
+ try:
148
+ if (pa.types.is_list(left.type) or pa.types.is_large_list(left.type)
149
+ or pa.types.is_fixed_size_list(left.type)):
150
+ a = np.asarray(left.to_pylist(), dtype=float)
151
+ b = np.asarray(right.to_pylist(), dtype=float)
152
+ elif pa.types.is_floating(left.type):
153
+ a = np.asarray(left.to_numpy(zero_copy_only=False), dtype=float)
154
+ b = np.asarray(right.to_numpy(zero_copy_only=False), dtype=float)
155
+ else:
156
+ return False
157
+ except (TypeError, ValueError):
158
+ return False
159
+ return bool(np.array_equal(a, b, equal_nan=True))
160
+
161
+
162
+ def export_tree(release: Path, candidate_root: Path, output: Path) -> dict:
163
+ release, candidate_root, output = map(Path, (release, candidate_root, output))
164
+ sources = [p for date in DATES
165
+ for p in sorted((release / TASK / "meta" / date).glob("episode_*.parquet"))]
166
+ if len(sources) != EXPECTED_EPISODES:
167
+ raise ValueError(f"expected {EXPECTED_EPISODES} episodes, found {len(sources)}")
168
+ episodes = []
169
+ totals = {"valid_left": 0, "valid_right": 0,
170
+ "repaired_left": 0, "repaired_right": 0,
171
+ "lost_left": 0, "lost_right": 0,
172
+ "long_left": 0, "long_right": 0}
173
+ for source in sources:
174
+ date, name = source.parent.name, source.name
175
+ candidate = candidate_root / TASK / "meta" / date / name
176
+ event_path = candidate_root / TASK / "repair_events" / date / f"{source.stem}.json"
177
+ if not candidate.is_file() or not event_path.is_file():
178
+ raise FileNotFoundError(f"missing candidate artifacts for {date}/{source.stem}")
179
+ raw_table, candidate_table = pq.read_table(source), pq.read_table(candidate)
180
+ event_doc = json.loads(event_path.read_text())
181
+ events = event_doc.get("events", [])
182
+ native = {
183
+ side: _load_native(candidate_root / TASK / "actions_native" / date /
184
+ f"{source.stem}_{side}.npz")
185
+ for side in SIDES
186
+ }
187
+ table = build_action_episode(raw_table, candidate_table,
188
+ native["left"], native["right"], events)
189
+ for field in raw_table.schema:
190
+ if field.name not in table.column_names or table.schema.field(field.name) != field:
191
+ raise ValueError(f"original schema changed: {date}/{name}:{field.name}")
192
+ if not _columns_equal(raw_table[field.name], table[field.name]):
193
+ raise ValueError(f"original values changed: {date}/{name}:{field.name}")
194
+ dest = output / "meta" / date / name
195
+ _atomic_parquet(table, dest)
196
+ event_dest = output / "action_repair_events" / date / f"{source.stem}.json"
197
+ event_dest.parent.mkdir(parents=True, exist_ok=True)
198
+ event_dest.write_bytes(event_path.read_bytes())
199
+ stats = {}
200
+ for side in SIDES:
201
+ for key, col in (("valid", f"action_valid_{side}"),
202
+ ("repaired", f"action_repaired_{side}"),
203
+ ("lost", f"action_lost_track_{side}"),
204
+ ("long", f"action_long_lost_track_{side}")):
205
+ value = int(np.asarray(table[col].to_numpy()).sum())
206
+ stats[f"{key}_{side}"] = value
207
+ totals[f"{key}_{side}"] += value
208
+ episodes.append({"date": date, "episode": source.stem,
209
+ "rows": table.num_rows, "source_sha256": _sha256(source),
210
+ "parquet_sha256": _sha256(dest), **stats})
211
+ manifest = {
212
+ "schema_version": 1,
213
+ "created_utc": datetime.now(timezone.utc).isoformat(),
214
+ "task": TASK,
215
+ "dates": list(DATES),
216
+ "episodes": episodes,
217
+ "totals": totals,
218
+ "action": "next-frame repaired left pose (7) + right pose (7)",
219
+ "terminal_action_valid": False,
220
+ "long_lost_track_min_frames": 61,
221
+ }
222
+ (output / "action_update_manifest.json").write_text(
223
+ json.dumps(manifest, indent=2, sort_keys=True) + "\n")
224
+ return manifest
225
+
226
+
227
+ def main() -> int:
228
+ parser = argparse.ArgumentParser(description=__doc__)
229
+ parser.add_argument("--release", type=Path, required=True)
230
+ parser.add_argument("--candidate", type=Path, required=True)
231
+ parser.add_argument("--output", type=Path, required=True)
232
+ args = parser.parse_args()
233
+ manifest = export_tree(args.release, args.candidate, args.output)
234
+ print(f"episodes={len(manifest['episodes'])} errors=0")
235
+ print(json.dumps(manifest["totals"], sort_keys=True))
236
+ return 0
237
+
238
+
239
+ if __name__ == "__main__":
240
+ raise SystemExit(main())
action_repair_tools/twm/scripts/propagate_mocap_repairs.py ADDED
@@ -0,0 +1,522 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Map repaired source poses to every published segment without altering raw data.
2
+
3
+ Inventory pins remote membership/digests and records a verified coordinate
4
+ conversion. Export keeps every non-action base column, including force columns.
5
+ """
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ from collections import Counter
10
+ from html import escape
11
+ import json
12
+ from pathlib import Path
13
+ import re
14
+ from urllib.parse import quote
15
+
16
+ import numpy as np
17
+ import pyarrow as pa
18
+ import pyarrow.parquet as pq
19
+
20
+ from twm.react_toolbox.frames import convert_poses
21
+ from twm.react_preprocess.mocap_candidate import _write_actions
22
+ from twm.react_preprocess.repaired_actions import native_actions, actions_fps15
23
+ from twm.scripts.export_old_motherboard_actions import (
24
+ build_action_episode, _atomic_parquet, _columns_equal, _sha256)
25
+
26
+
27
+ SIDES = ('left', 'right')
28
+ POSES = tuple(f'sensor_{s}_pose' for s in SIDES)
29
+
30
+
31
+ def source_relative_path(remote_path: str | Path) -> Path:
32
+ parts = Path(remote_path).parts
33
+ if len(parts) != 5 or parts[0] not in ('data', 'old_data') or parts[2] != 'meta':
34
+ raise ValueError(f'unsupported remote path: {remote_path}')
35
+ return Path(*parts[1:-1], re.sub(r'_seg\d+(?=\.parquet$)', '', parts[-1]))
36
+
37
+
38
+ def _values(table, column):
39
+ array = table[column].combine_chunks()
40
+ if (pa.types.is_list(array.type) or pa.types.is_fixed_size_list(array.type)) and not array.null_count:
41
+ if len(array) and len(array.values) % len(array) == 0:
42
+ return array.values.to_numpy(zero_copy_only=False).reshape(len(array), -1)
43
+ return np.asarray(array.to_pylist())
44
+
45
+
46
+ def _coordinate_mode(raw: pa.Table, selected: pa.Table) -> str:
47
+ if all(np.array_equal(_values(raw, c), _values(selected, c), equal_nan=True)
48
+ for c in POSES):
49
+ return 'identity'
50
+ if all(np.array_equal(_values(raw, c), convert_poses(_values(selected, c)),
51
+ equal_nan=True) for c in POSES):
52
+ return 'yup_to_zup'
53
+ raise ValueError('sensor pose mismatch: neither identity nor verified Y-up to Z-up')
54
+
55
+
56
+ def align_rows(raw: pa.Table, source: pa.Table) -> np.ndarray:
57
+ """Require unique source IDs, consecutive rows, exact times and known poses."""
58
+ if raw.num_rows == 0:
59
+ raise ValueError('empty segment')
60
+ ids = source['source_h5_frame'].to_pylist()
61
+ if len(set(ids)) != len(ids):
62
+ raise ValueError('duplicate source_h5_frame in source')
63
+ index = {value: i for i, value in enumerate(ids)}
64
+ try:
65
+ rows = np.asarray([index[value] for value in raw['source_h5_frame'].to_pylist()],
66
+ dtype=np.int64)
67
+ except KeyError as exc:
68
+ raise ValueError(f'missing source_h5_frame: {exc}') from exc
69
+ if np.any(np.diff(rows) != 1):
70
+ raise ValueError('segment source rows must be contiguous and unique')
71
+ selected = source.take(pa.array(rows))
72
+ if not np.array_equal(_values(raw, 'timestamp'), _values(selected, 'timestamp')):
73
+ raise ValueError('timestamp mismatch')
74
+ _coordinate_mode(raw, selected)
75
+ return rows
76
+
77
+
78
+ def _derived(name):
79
+ return (name == 'action' or name.startswith('action_')
80
+ or name in ('sensor_left_pose_repaired', 'sensor_right_pose_repaired')
81
+ or name.startswith(('pose_left_', 'pose_right_')))
82
+
83
+
84
+ def build_segment(raw: pa.Table, source: pa.Table, candidate: pa.Table,
85
+ source_rows: np.ndarray, events: list[dict]):
86
+ """Return augmented parquet and native/fps15 ActionSeries for each side.
87
+
88
+ Recompute transitions from candidate pose validity after selecting the
89
+ published segment, so neither actions nor 15fps phase cross a cut boundary.
90
+ """
91
+ rows = align_rows(raw, source)
92
+ if not np.array_equal(rows, source_rows):
93
+ raise ValueError('provided source rows disagree with verified mapping')
94
+ if candidate.num_rows != source.num_rows:
95
+ raise ValueError('candidate/source row counts differ')
96
+ for c in ('source_h5_frame', 'timestamp'):
97
+ if not _columns_equal(source[c], candidate[c]):
98
+ raise ValueError(f'candidate/source {c} mismatch')
99
+ segment = candidate.take(pa.array(rows))
100
+ mode = _coordinate_mode(raw, source.take(pa.array(rows)))
101
+ sidecars = {}
102
+ for side in SIDES:
103
+ required = [f'pose_{side}_{key}' for key in
104
+ ('valid', 'repaired', 'repair_confidence', 'repair_event_id')]
105
+ for name in required:
106
+ if name not in segment.column_names:
107
+ raise ValueError(f'missing candidate provenance: {name}')
108
+ column = f'sensor_{side}_pose'
109
+ pose = _values(segment, column)
110
+ if mode == 'yup_to_zup':
111
+ pose = convert_poses(pose)
112
+ segment = segment.set_column(segment.schema.get_field_index(column),
113
+ column, pa.array(pose.tolist()))
114
+ native = native_actions(pose, _values(segment, required[0]),
115
+ _values(segment, required[1]),
116
+ _values(segment, required[3]))
117
+ sidecars[side] = {'native': native, 'fps15': actions_fps15(pose, native)}
118
+ # Keep original event duration; negative local starts are intentional and
119
+ # retain long-loss classification for events clipped by the segment edge.
120
+ local_events = [dict(event, start=int(event['start']) - int(rows[0]),
121
+ end=int(event['end']) - int(rows[0]))
122
+ for event in events
123
+ if int(event['end']) >= rows[0] - 1
124
+ and int(event['start']) <= rows[-1] + 1]
125
+ base = raw.select([name for name in raw.column_names if not _derived(name)])
126
+ out = build_action_episode(base, segment,
127
+ {k: getattr(sidecars['left']['native'], k) for k in ('valid', 'repaired')},
128
+ {k: getattr(sidecars['right']['native'], k) for k in ('valid', 'repaired')},
129
+ local_events)
130
+ for side in SIDES:
131
+ for key in ('valid', 'repaired', 'repair_confidence', 'repair_event_id'):
132
+ name = f'pose_{side}_{key}'
133
+ out = out.append_column(name, segment[name])
134
+ method_name = f'pose_{side}_repair_method'
135
+ if method_name in segment.column_names:
136
+ out = out.append_column(method_name, segment[method_name])
137
+ else:
138
+ methods = {event['event_id']: event.get('method') for event in events
139
+ if event.get('side') == side and 'event_id' in event}
140
+ values = [methods.get(event_id) for event_id in
141
+ segment[f'pose_{side}_repair_event_id'].to_pylist()]
142
+ out = out.append_column(method_name, pa.array(values, type=pa.string()))
143
+ for name in base.column_names:
144
+ if out.schema.field(name) != base.schema.field(name) or not _columns_equal(out[name], base[name]):
145
+ raise ValueError(f'preserved column changed: {name}')
146
+ return out, sidecars
147
+
148
+
149
+ def segment_reviews(remote_path: str, raw: pa.Table, output: pa.Table,
150
+ rows: np.ndarray, events: list[dict], video_files: set[str],
151
+ revision: str, include_high_charts: bool = False) -> list[dict]:
152
+ """Clip review coordinates to the published video, preserving source evidence."""
153
+ remote = Path(remote_path)
154
+ capture_times = _values(raw, 'timestamp').astype(float)
155
+ capture_times -= capture_times[0]
156
+ # Published videos contain one frame per parquet row at constant 30 fps.
157
+ # Capture timestamps include acquisition stalls and are not media time.
158
+ times = np.arange(raw.num_rows, dtype=float) / 30.
159
+ records = []
160
+ for event in events:
161
+ first, last = int(event['start']), int(event['end'])
162
+ if last < rows[0] or first > rows[-1]:
163
+ continue
164
+ lo, hi = max(0, first - int(rows[0])), min(len(rows) - 1, last - int(rows[0]))
165
+ side = event['side']
166
+ event_id = event.get('event_id', f'{side}:{first}-{last}')
167
+ # Video filenames are included only when present in the frozen HF listing.
168
+ links = {}
169
+ for view in ('view_middle', f'wrist_{side}', 'view_left', 'view_right'):
170
+ video = str(Path(*remote.parts[:2], 'videos', remote.parts[3],
171
+ remote.stem, view + '.mp4'))
172
+ if video in video_files:
173
+ links[view] = (f'https://huggingface.co/datasets/yxma/React/resolve/'
174
+ f'{quote(revision or "main", safe="")}/{quote(video, safe="/")}'
175
+ f'#t={max(0., times[lo] - 1):.3f},{times[hi] + 1:.3f}')
176
+ record = dict(event, qualified_event_id=f'{remote_path}::{event_id}',
177
+ remote_path=remote_path, source_start_row=first,
178
+ source_end_row=last, local_start_row=lo, local_end_row=hi,
179
+ local_start_seconds=float(times[lo]), local_end_seconds=float(times[hi]),
180
+ capture_start_seconds=float(capture_times[lo]),
181
+ capture_end_seconds=float(capture_times[hi]),
182
+ video_time_basis='local_row / 30 fps',
183
+ video_links=links)
184
+ if include_high_charts or str(event.get('confidence', '')).upper() != 'HIGH':
185
+ a, b = max(0, lo - 30), min(len(rows), hi + 31)
186
+ sample = np.unique(np.r_[np.linspace(a, b - 1, min(160, b - a), dtype=int), lo, hi])
187
+ chart = {'seconds': times[sample].tolist(), 'sampled': b - a > 160}
188
+ for label, column in [('raw', f'sensor_{side}_pose'),
189
+ ('repaired', f'sensor_{side}_pose_repaired')]:
190
+ context_start = max(0, a - 1)
191
+ pose = _values((output if label == 'repaired' else raw).slice(
192
+ context_start, b - context_start), column).astype(float)
193
+ # Angular displacement between adjacent native frames; no unwrap
194
+ # or interpolation is invented for missing/zero quaternions.
195
+ q = pose[:, 3:]
196
+ norm = np.linalg.norm(q, axis=1)
197
+ usable = np.isfinite(q).all(axis=1) & (norm > 1e-12)
198
+ unit = np.full(q.shape, np.nan)
199
+ unit[usable] = q[usable] / norm[usable, None]
200
+ angle = np.r_[np.nan, np.degrees(2 * np.arccos(np.clip(
201
+ np.abs(np.sum(unit[1:] * unit[:-1], axis=1)), 0, 1)))]
202
+ data = np.column_stack((pose[:, :3] * 1000., angle))[sample - context_start]
203
+ chart[label] = [[float(v) if np.isfinite(v) else None for v in row] for row in data]
204
+ record['chart'] = chart
205
+ records.append(record)
206
+ return records
207
+
208
+
209
+ def _json_safe(value):
210
+ """Represent unavailable nonfinite evidence as JSON null, never as a number."""
211
+ if isinstance(value, float) and not np.isfinite(value):
212
+ return None
213
+ if isinstance(value, dict):
214
+ return {key: _json_safe(item) for key, item in value.items()}
215
+ if isinstance(value, (list, tuple)):
216
+ return [_json_safe(item) for item in value]
217
+ return value
218
+
219
+
220
+ def _review_svg(chart: dict) -> str:
221
+ times = np.asarray(chart['seconds'])
222
+ left, width, height = 70., 740., 64.
223
+ x = left + width * (times - times[0]) / max(1e-9, times[-1] - times[0])
224
+ parts = ['<svg viewBox="0 0 850 340" role="img" aria-label="Raw and repaired pose traces">']
225
+ for k, title in enumerate(('x (mm)', 'y (mm)', 'z (mm)', 'step (deg)')):
226
+ arrays = [np.asarray(chart[label], dtype=float)[:, k] for label in ('raw', 'repaired')]
227
+ finite = np.concatenate([a[np.isfinite(a)] for a in arrays])
228
+ top = 10. + k * 78.
229
+ parts.append(f'<text x="0" y="{top + 30}">{title}</text>')
230
+ if not len(finite):
231
+ parts.append(f'<text x="80" y="{top + 30}">Missing pose</text>')
232
+ continue
233
+ low, high = float(finite.min()), float(finite.max())
234
+ span = max(1e-6, high - low)
235
+ for values, color in zip(arrays, ('#bd3342', '#147cbb')):
236
+ y = top + height - (values - low) / span * height
237
+ # Separate path pieces at missing values instead of bridging gaps.
238
+ points, active = [], False
239
+ for px, py in zip(x, y):
240
+ if np.isfinite(py):
241
+ points.append(f'{"L" if active else "M"}{px:.1f},{py:.1f}')
242
+ active = True
243
+ else:
244
+ active = False
245
+ parts.append(f'<path d="{" ".join(points)}" fill="none" stroke="{color}" stroke-width="1.4"/>')
246
+ parts.append(f'<text x="815" y="{top + 15}" font-size="9">{high:.2f}</text>')
247
+ parts.append(f'<text x="815" y="{top + 63}" font-size="9">{low:.2f}</text>')
248
+ parts.append(f'<text x="70" y="335">{times[0]:.2f}s</text><text x="745" y="335">{times[-1]:.2f}s</text></svg>')
249
+ return ''.join(parts)
250
+
251
+
252
+ def choose_review_samples(records: list[dict], count: int = 25) -> list[dict]:
253
+ """Prefer 20 algorithmic proposals + 5 other events, balancing all scopes.
254
+
255
+ One source event appears at most once even if it overlaps several segments.
256
+ Selection uses the final candidate event records, never candidate labels from
257
+ an earlier build. A shortfall is reported by the exported selection manifest.
258
+ """
259
+ unique = {}
260
+ for record in records:
261
+ source = source_relative_path(record['remote_path'])
262
+ scope = Path(record['remote_path']).parts[0]
263
+ key = (scope, str(source), record.get('event_id', record['qualified_event_id']))
264
+ prior = unique.get(key)
265
+ if prior is None or record['local_end_row'] - record['local_start_row'] > prior['local_end_row'] - prior['local_start_row']:
266
+ unique[key] = record
267
+ def features(record):
268
+ length = record['source_end_row'] - record['source_start_row'] + 1
269
+ duration = 'short_1_4' if length <= 4 else 'flicker_5_20' if length <= 20 else 'medium_21_60' if length <= 60 else 'long_over_60'
270
+ return ('/'.join(Path(record['remote_path']).parts[:2]), duration, record.get('kind', 'unknown'))
271
+ selected, used = [], Counter()
272
+ def take(pool, n):
273
+ pool = list(pool)
274
+ for _ in range(min(n, len(pool))):
275
+ def score(record):
276
+ group, duration, kind = features(record)
277
+ ambiguity = 'ambiguous' in str(record.get('method', '')) or 'incompatible' in str(record.get('evidence', {}))
278
+ return (100 / (1 + used[('scope', group)]) +
279
+ 20 / (1 + used[('duration', duration)]) +
280
+ 10 / (1 + used[('kind', kind)]) +
281
+ (15 if ambiguity and not used[('ambiguous', True)] else 0))
282
+ choice = max(sorted(pool, key=lambda r: r['qualified_event_id']), key=score)
283
+ pool.remove(choice)
284
+ selected.append(choice)
285
+ group, duration, kind = features(choice)
286
+ for name, value in [('scope', group), ('duration', duration), ('kind', kind)]:
287
+ used[(name, value)] += 1
288
+ if 'ambiguous' in str(choice.get('method', '')) or 'incompatible' in str(choice.get('evidence', {})):
289
+ used[('ambiguous', True)] += 1
290
+ def proposed(record):
291
+ evidence = record.get('evidence', {})
292
+ return (str(record.get('confidence', '')).upper() == 'HIGH'
293
+ or str(evidence.get('prior_confidence', record.get('prior_confidence', ''))).upper() == 'HIGH'
294
+ or evidence.get('independent_loss_evidence') is False)
295
+ high = [r for r in unique.values() if proposed(r)]
296
+ other = [r for r in unique.values() if not proposed(r)]
297
+ take(high, max(0, count - 5))
298
+ take(other, min(5, count))
299
+ selected_ids = {r['qualified_event_id'] for r in selected}
300
+ take([r for r in unique.values() if r['qualified_event_id'] not in selected_ids], count - len(selected))
301
+ return [dict(record, human_verification_status='UNVERIFIED',
302
+ sample_group='algorithmic_proposal' if proposed(record) else 'other_uncertain')
303
+ for record in selected]
304
+
305
+
306
+ def review_html(records: list[dict], *, include_high: bool = False,
307
+ title: str = 'Mocap event review') -> str:
308
+ review = [r for r in records if include_high or str(r.get('confidence', '')).upper() != 'HIGH']
309
+ parts = ['<!doctype html><html lang="en"><meta charset="utf-8">',
310
+ '<title>Mocap event review</title><style>body{font:15px system-ui;max-width:1100px;margin:30px auto;padding:0 16px}details{border:1px solid #ccc;margin:10px 0;padding:12px}summary{cursor:pointer;overflow-wrap:anywhere}svg{width:100%;max-width:900px}a{margin-right:15px}pre{white-space:pre-wrap}</style>',
311
+ f'<h1>{escape(title)}</h1><p>{len(review)} {"selected" if include_high else "non-HIGH"} event occurrences across published segments. ',
312
+ 'Raw traces are red; repaired traces are blue. Missing values are gaps. ',
313
+ 'Each chart includes one second of context; long intervals are sampled. ',
314
+ 'Video links and charts use segment-local frame / 30 fps; capture-time offsets are listed separately. No approval is implied. ',
315
+ 'The measured camera footage is unchanged; before/after repair is shown in the red/blue pose charts. ',
316
+ 'These examples support human verification and are not proof that every jump is tracking loss. ',
317
+ 'Check visible hand/object motion against the measured jump, the surrounding frames, and the repair.</p>']
318
+ for record in review:
319
+ eid = escape(record['qualified_event_id'])
320
+ confidence = escape(str(record.get('confidence', 'UNKNOWN')))
321
+ method = escape(str(record.get('method', 'unavailable')))
322
+ parts.append(f'<details data-clip-start="{max(0., record["local_start_seconds"] - 1):.3f}" '
323
+ f'data-clip-end="{record["local_end_seconds"] + 1:.3f}"><summary>{eid} — {confidence} — {method} — '
324
+ f'{record["local_start_seconds"]:.3f}–{record["local_end_seconds"]:.3f}s'
325
+ f'{" — UNVERIFIED" if include_high else ""}</summary>')
326
+ parts.append('<p>' + ''.join(f'<a href="{escape(url, quote=True)}" target="_blank" rel="noopener">{escape(view)}</a>'
327
+ for view, url in record['video_links'].items()) + '</p>')
328
+ if not record['video_links']:
329
+ parts.append('<p>No matching video in the frozen repository inventory.</p>')
330
+ if include_high:
331
+ if record['video_links']:
332
+ parts.append('<p><button type="button" onclick="playSample(this)">Play synced</button> '
333
+ '<button type="button" onclick="pauseSample(this)">Pause</button> '
334
+ '<span class="play-status" aria-live="polite"></span></p>')
335
+ for view, url in record['video_links'].items():
336
+ if view == 'view_middle' or view.startswith('wrist_'):
337
+ parts.append(f'<p>{escape(view)}</p><video controls preload="none" width="480" src="{escape(url, quote=True)}"></video>')
338
+ if 'chart' in record:
339
+ parts.append(_review_svg(record['chart']))
340
+ parts.append('<pre>' + escape(json.dumps({key: record.get(key) for key in
341
+ ('source_start_row', 'source_end_row', 'local_start_row', 'local_end_row', 'capture_start_seconds', 'capture_end_seconds', 'video_time_basis', 'kind', 'evidence')}, indent=2)) + '</pre></details>')
342
+ if include_high:
343
+ parts.append('''<script>
344
+ let reviewPlayToken = 0;
345
+ function pauseSample(button) {
346
+ reviewPlayToken++;
347
+ button.closest('details').querySelectorAll('video').forEach(v => v.pause());
348
+ }
349
+ async function playSample(button) {
350
+ const token = ++reviewPlayToken;
351
+ const box = button.closest('details');
352
+ const videos = Array.from(box.querySelectorAll('video'));
353
+ const status = box.querySelector('.play-status');
354
+ const start = Number(box.dataset.clipStart), end = Number(box.dataset.clipEnd);
355
+ document.querySelectorAll('video').forEach(v => v.pause());
356
+ status.textContent = 'Loading video metadata…';
357
+ try {
358
+ await Promise.all(videos.map(v => v.readyState >= 1 ? Promise.resolve() : new Promise((resolve, reject) => {
359
+ v.addEventListener('loadedmetadata', resolve, {once:true});
360
+ v.addEventListener('error', () => reject(new Error('Video unavailable; use the direct link.')), {once:true});
361
+ v.load();
362
+ })));
363
+ if (token !== reviewPlayToken) return;
364
+ videos.forEach(v => {v.currentTime = Math.min(start, Math.max(0, v.duration - 0.05));});
365
+ const master = videos[0];
366
+ master.ontimeupdate = () => {
367
+ if (master.currentTime >= end) {videos.forEach(v => v.pause()); return;}
368
+ if (!master.paused) videos.slice(1).forEach(v => {
369
+ if (Math.abs(v.currentTime - master.currentTime) > 0.15) v.currentTime = master.currentTime;
370
+ });
371
+ };
372
+ videos.forEach(v => {v.onended = () => videos.forEach(other => other.pause());});
373
+ await Promise.all(videos.map(v => v.play()));
374
+ status.textContent = 'Playing the same segment interval.';
375
+ } catch (error) {
376
+ videos.forEach(v => v.pause());
377
+ status.textContent = error.message + ' Click Play synced again if playback was blocked.';
378
+ }
379
+ }
380
+ </script>''')
381
+ return ''.join(parts) + '</html>'
382
+
383
+
384
+ def inventory(base_root: Path, source_root: Path, validation_source: Path,
385
+ revision: str = '') -> dict:
386
+ entries, errors = [], []
387
+ cache = {}
388
+ for path in sorted(base_root.glob('*/*/meta/*/*.parquet')):
389
+ relative = path.relative_to(base_root)
390
+ source_relative = source_relative_path(relative)
391
+ root = validation_source if relative.parts[1] == 'validation' else source_root
392
+ source_path = root / source_relative
393
+ entry = {'remote_path': str(relative), 'base_sha256': _sha256(path),
394
+ 'source_path': str(source_path), 'candidate_relative': str(source_relative)}
395
+ try:
396
+ raw = pq.read_table(path)
397
+ if source_path not in cache:
398
+ cache[source_path] = pq.read_table(source_path)
399
+ source = cache[source_path]
400
+ rows = align_rows(raw, source)
401
+ entry.update(rows=len(rows), start_row=int(rows[0]), end_row=int(rows[-1]),
402
+ coordinate_mode=_coordinate_mode(raw, source.take(pa.array(rows))),
403
+ source_sha256=_sha256(source_path))
404
+ entries.append(entry)
405
+ except (ValueError, FileNotFoundError, KeyError) as exc:
406
+ errors.append(dict(entry, error=str(exc)))
407
+ return {'schema_version': 1, 'revision': revision, 'base_root': str(base_root),
408
+ 'counts': dict(Counter('/'.join(Path(e['remote_path']).parts[:2]) for e in entries)),
409
+ 'episodes': entries, 'errors': errors}
410
+
411
+
412
+ def export_inventory(manifest: dict, candidate_root: Path, validation_candidate: Path,
413
+ output_root: Path, base_root: Path | None = None,
414
+ video_inventory: dict | None = None) -> dict:
415
+ if manifest['errors']:
416
+ raise ValueError('inventory has unresolved mapping errors')
417
+ base_root = Path(base_root or manifest['base_root'])
418
+ if output_root.resolve() == base_root.resolve():
419
+ raise ValueError('output must differ from frozen base')
420
+ records, cache, review_records = [], {}, []
421
+ video_inventory = video_inventory or {}
422
+ video_files = set(video_inventory.get('files', []))
423
+ for entry in manifest['episodes']:
424
+ relative = Path(entry['remote_path'])
425
+ base_path = base_root / relative
426
+ # A refreshed base is allowed only after the caller freezes a new
427
+ # inventory. This prevents silently overwriting concurrently changed force.
428
+ if _sha256(base_path) != entry['base_sha256']:
429
+ raise ValueError(f'base digest changed: {relative}; regenerate inventory')
430
+ source_path = Path(entry['source_path'])
431
+ if _sha256(source_path) != entry['source_sha256']:
432
+ raise ValueError(f'source digest changed: {source_path}')
433
+ root = validation_candidate if relative.parts[1] == 'validation' else candidate_root
434
+ candidate_path = root / entry['candidate_relative']
435
+ if candidate_path not in cache:
436
+ task, _, date, filename = Path(entry['candidate_relative']).parts
437
+ event_path = root / task / 'repair_events' / date / (Path(filename).stem + '.json')
438
+ cache[candidate_path] = (pq.read_table(source_path), pq.read_table(candidate_path),
439
+ json.loads(event_path.read_text())['events'])
440
+ source, candidate, events = cache[candidate_path]
441
+ raw = pq.read_table(base_path)
442
+ rows = np.arange(entry['start_row'], entry['end_row'] + 1)
443
+ out, sidecars = build_segment(raw, source, candidate, rows, events)
444
+ dest = output_root / relative
445
+ _atomic_parquet(out, dest)
446
+ for side, rates in sidecars.items():
447
+ for rate, series in rates.items():
448
+ side_path = output_root / relative.parts[0] / relative.parts[1] / ('actions_' + rate) / relative.parts[3] / (relative.stem + '_' + side + '.npz')
449
+ _write_actions(side_path, series)
450
+ reviews = segment_reviews(str(relative), raw, out, rows, events, video_files,
451
+ video_inventory.get('revision', manifest.get('revision', 'main')))
452
+ review_records.extend(reviews)
453
+ review_path = output_root / relative.parts[0] / relative.parts[1] / 'action_repair_events' / relative.parts[3] / (relative.stem + '.json')
454
+ review_path.parent.mkdir(parents=True, exist_ok=True)
455
+ review_path.write_text(json.dumps(_json_safe({'schema_version': 1, 'remote_path': str(relative),
456
+ 'source_path': str(source_path), 'events': reviews}), indent=2, allow_nan=False) + '\n')
457
+ records.append(dict(entry, output_sha256=_sha256(dest),
458
+ valid_left=int(sum(out['action_valid_left'].to_pylist())),
459
+ valid_right=int(sum(out['action_valid_right'].to_pylist()))))
460
+ result = dict(manifest, episodes=records, output_root=str(output_root))
461
+ result['review_event_occurrences'] = len(review_records)
462
+ result['non_high_review_occurrences'] = sum(str(r.get('confidence', '')).upper() != 'HIGH' for r in review_records)
463
+ (output_root / 'action_review.html').write_text(review_html(review_records))
464
+ samples = choose_review_samples(review_records)
465
+ output_cache = {}
466
+ for i, sample in enumerate(samples):
467
+ if 'chart' in sample:
468
+ continue
469
+ relative = sample['remote_path']
470
+ if relative not in output_cache:
471
+ output_cache[relative] = pq.read_table(output_root / relative)
472
+ table = output_cache[relative]
473
+ entry = next(e for e in manifest['episodes'] if e['remote_path'] == relative)
474
+ rows = np.arange(entry['start_row'], entry['end_row'] + 1)
475
+ samples[i] = segment_reviews(relative, table, table, rows, [sample], video_files,
476
+ video_inventory.get('revision', manifest.get('revision', 'main')),
477
+ include_high_charts=True)[0]
478
+ sample_manifest = {'requested_count': 25, 'actual_count': len(samples),
479
+ 'high_count': sum(str(s.get('confidence', '')).upper() == 'HIGH' for s in samples),
480
+ 'sample_group_counts': dict(Counter(s.get('sample_group', 'unknown') for s in samples)),
481
+ 'scope_counts': dict(Counter('/'.join(Path(s['remote_path']).parts[:2]) for s in samples)),
482
+ 'selection': 'Prefer 20 algorithmic proposals (HIGH/prior HIGH or explicitly lacking independent loss evidence) and 5 other uncertain; balance scopes, durations, kinds; deduplicate source events. All require human verification.',
483
+ 'limitation': 'Human verification examples, not proof that every jump is tracking loss.',
484
+ 'events': samples}
485
+ result['sample_review_count'] = len(samples)
486
+ (output_root / 'action_sample25.json').write_text(json.dumps(_json_safe(sample_manifest), indent=2, allow_nan=False) + '\n')
487
+ (output_root / 'action_sample25.html').write_text(review_html(samples, include_high=True,
488
+ title=f'{len(samples)} examples for human verification'))
489
+ (output_root / 'action_publication_manifest.json').write_text(json.dumps(result, indent=2) + '\n')
490
+ return result
491
+
492
+
493
+ def main():
494
+ parser = argparse.ArgumentParser(description=__doc__)
495
+ parser.add_argument('command', choices=('inventory', 'export'))
496
+ parser.add_argument('--base', type=Path, required=True)
497
+ parser.add_argument('--source', type=Path, required=True)
498
+ parser.add_argument('--validation-source', type=Path, required=True)
499
+ parser.add_argument('--inventory', type=Path, required=True)
500
+ parser.add_argument('--revision', default='')
501
+ parser.add_argument('--candidate', type=Path)
502
+ parser.add_argument('--validation-candidate', type=Path)
503
+ parser.add_argument('--output', type=Path)
504
+ parser.add_argument('--remote-videos', type=Path, help='Frozen JSON with revision and MP4 files list')
505
+ args = parser.parse_args()
506
+ if args.command == 'inventory':
507
+ result = inventory(args.base, args.source, args.validation_source, args.revision)
508
+ args.inventory.parent.mkdir(parents=True, exist_ok=True)
509
+ args.inventory.write_text(json.dumps(result, indent=2) + '\n')
510
+ else:
511
+ if not all((args.candidate, args.validation_candidate, args.output)):
512
+ parser.error('export requires --candidate --validation-candidate --output')
513
+ result = export_inventory(json.loads(args.inventory.read_text()), args.candidate,
514
+ args.validation_candidate, args.output, args.base,
515
+ json.loads(args.remote_videos.read_text()) if args.remote_videos else None)
516
+ print(json.dumps({'episodes': len(result['episodes']), 'counts': result['counts'],
517
+ 'errors': result['errors']}, indent=2))
518
+ return bool(result['errors'])
519
+
520
+
521
+ if __name__ == '__main__':
522
+ raise SystemExit(main())
action_repair_tools/twm/scripts/publish_action_repairs.py ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Merge concurrently rebuilt force into staged actions, then publish explicitly.
2
+
3
+ The force base must be the verified export of the immediately preceding HF
4
+ commit. A parent-commit guard prevents replacing a newer remote update.
5
+ """
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ import json
10
+ from pathlib import Path
11
+
12
+ import pyarrow as pa
13
+ import pyarrow.parquet as pq
14
+
15
+ from twm.scripts.export_old_motherboard_actions import (
16
+ _atomic_parquet, _columns_equal, _sha256)
17
+
18
+
19
+ def _derived(name: str) -> bool:
20
+ return (name == 'action' or name.startswith(('action_', 'pose_left_', 'pose_right_'))
21
+ or name in ('sensor_left_pose_repaired', 'sensor_right_pose_repaired'))
22
+
23
+
24
+ def merge_force_table(action: pa.Table, force: pa.Table) -> pa.Table:
25
+ if action.num_rows != force.num_rows:
26
+ raise ValueError('force/action row counts differ')
27
+ # Check every raw field, not only row count; old action fields in the force
28
+ # base are intentionally ignored, since these are what this update replaces.
29
+ for name in force.column_names:
30
+ if name.startswith('force_') or _derived(name):
31
+ continue
32
+ if name not in action.column_names or not _columns_equal(action[name], force[name]):
33
+ raise ValueError(f'force/action source mismatch: {name}')
34
+ result = action
35
+ for name in force.column_names:
36
+ if not name.startswith('force_'):
37
+ continue
38
+ field = force.schema.field(name)
39
+ if name in result.column_names:
40
+ result = result.set_column(result.schema.get_field_index(name), field, force[name])
41
+ else:
42
+ result = result.append_column(field, force[name])
43
+ metadata = dict(action.schema.metadata or {})
44
+ for key, value in (force.schema.metadata or {}).items():
45
+ if key.startswith(b'twm.force'):
46
+ metadata[key] = value
47
+ return result.replace_schema_metadata(metadata)
48
+
49
+
50
+ def merge_force_tree(root: Path, force_root: Path, force_revision: str) -> dict:
51
+ path = root / 'action_publication_manifest.json'
52
+ manifest = json.loads(path.read_text())
53
+ records = {entry['remote_path']: entry for entry in manifest['episodes']}
54
+ sources = sorted(force_root.glob('*/meta/*/*.parquet'))
55
+ if len(sources) != 36:
56
+ raise ValueError(f'expected36 force episodes, found {len(sources)}')
57
+ receipt = json.loads((force_root / 'force_commit.json').read_text())
58
+ if receipt.get('revision') != force_revision:
59
+ raise ValueError('force export receipt revision mismatch')
60
+ expected_hashes = receipt.get('parquet_sha256', {})
61
+ if len(expected_hashes) != 36:
62
+ raise ValueError('force receipt must bind36 uploaded parquets')
63
+ for source in sources:
64
+ if expected_hashes.get(str(source.relative_to(force_root))) != _sha256(source):
65
+ raise ValueError(f'force export differs from uploaded content: {source}')
66
+ for source in sources:
67
+ relative = Path('old_data') / source.relative_to(force_root)
68
+ if str(relative) not in records:
69
+ raise ValueError(f'missing staged action: {relative}')
70
+ dest = root / relative
71
+ merged = merge_force_table(pq.read_table(dest), pq.read_table(source))
72
+ _atomic_parquet(merged, dest)
73
+ records[str(relative)]['output_sha256'] = _sha256(dest)
74
+ manifest['force_revision'] = force_revision
75
+ manifest['force_merged_episodes'] = len(sources)
76
+ path.write_text(json.dumps(manifest, indent=2) + '\n')
77
+ return manifest
78
+
79
+
80
+ def validate_publication_manifest(manifest: dict, expected_revision: str) -> None:
81
+ if manifest.get('force_revision') != expected_revision:
82
+ raise ValueError('force revision must equal the immediately preceding HF commit')
83
+ if manifest.get('force_merged_episodes') != 36:
84
+ raise ValueError('publication requires36 merged force episodes')
85
+
86
+
87
+ def publish(root: Path, expected_revision: str, repo: str = 'yxma/React'):
88
+ from huggingface_hub import HfApi, CommitOperationAdd
89
+ api = HfApi()
90
+ actual = api.repo_info(repo, repo_type='dataset').sha
91
+ if actual != expected_revision:
92
+ raise ValueError(f'remote changed: expected {expected_revision}, got {actual}')
93
+ manifest = json.loads((root / 'action_publication_manifest.json').read_text())
94
+ validate_publication_manifest(manifest, expected_revision)
95
+ for entry in manifest['episodes']:
96
+ if _sha256(root / entry['remote_path']) != entry['output_sha256']:
97
+ raise ValueError(f'staged parquet changed: {entry["remote_path"]}')
98
+ files = sorted(p for p in root.rglob('*') if p.is_file())
99
+ top_files = {'action_publication_manifest.json', 'action_sample25.json',
100
+ 'action_sample25.html', 'action_review.html',
101
+ 'ACTION_REPAIR_20260918.md', 'sample25_verification.json'}
102
+ directories = {'data', 'old_data', 'action_repair_tools', 'repair_audit'}
103
+ suffixes = {'.parquet', '.npz', '.json', '.html', '.md', '.py', '.txt', '.toml'}
104
+ for file in files:
105
+ relative = file.relative_to(root)
106
+ if (file.suffix not in suffixes or
107
+ (len(relative.parts) == 1 and relative.name not in top_files) or
108
+ (len(relative.parts) > 1 and relative.parts[0] not in directories)):
109
+ raise ValueError(f'unexpected publication artifact: {relative}')
110
+ operations = [CommitOperationAdd(path_in_repo=str(p.relative_to(root)),
111
+ path_or_fileobj=str(p)) for p in files]
112
+ result = api.create_commit(repo, repo_type='dataset', operations=operations,
113
+ commit_message='Repair mocap actions across all tasks, old_data and validation; retain V8 force',
114
+ parent_commit=expected_revision, num_threads=8)
115
+ print(result, flush=True)
116
+ return result
117
+
118
+
119
+ def main():
120
+ parser = argparse.ArgumentParser(description=__doc__)
121
+ parser.add_argument('--root', type=Path, required=True)
122
+ parser.add_argument('--force-root', type=Path)
123
+ parser.add_argument('--parent', required=True)
124
+ parser.add_argument('--publish', action='store_true')
125
+ args = parser.parse_args()
126
+ if args.force_root:
127
+ merge_force_tree(args.root, args.force_root, args.parent)
128
+ if args.publish:
129
+ publish(args.root, args.parent)
130
+
131
+
132
+ if __name__ == '__main__':
133
+ main()
action_repair_tools/twm/scripts/review_mocap_branches.py ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Write separate, never-training-valid branch hypotheses for human review."""
2
+ from __future__ import annotations
3
+
4
+ import argparse
5
+ import json
6
+ from pathlib import Path
7
+
8
+ import numpy as np
9
+ import pyarrow.parquet as pq
10
+
11
+ from twm.react_preprocess.mocap_branch import find_branch_candidates
12
+ from twm.scripts.build_mocap_repair_candidates import _atomic_json
13
+
14
+
15
+ def write_branch_review(candidate_root, source_root, output_root, *, manifest_digest):
16
+ candidate_root, source_root, output_root = map(Path, (candidate_root, source_root, output_root))
17
+ for protected in (candidate_root.resolve(), source_root.resolve()):
18
+ if output_root.resolve().is_relative_to(protected) or protected.is_relative_to(output_root.resolve()):
19
+ raise ValueError('review output must be separate from source and primary candidates')
20
+ proposals = []
21
+ unique_events = set()
22
+ gaps = {}
23
+ for event_path in sorted(candidate_root.glob('*/repair_events/*/*.json')):
24
+ record = json.loads(event_path.read_text())
25
+ unresolved = [e for e in record['events'] if e['confidence'] != 'HIGH']
26
+ if not unresolved:
27
+ continue
28
+ task = record['task']
29
+ if task not in gaps:
30
+ path = source_root/task/'pose_gaps.json'
31
+ gaps[task] = json.loads(path.read_text()) if path.exists() else {}
32
+ source_path = source_root/record['source_path']
33
+ columns = [f'sensor_{side}_pose' for side in sorted({e['side'] for e in unresolved})]
34
+ table = pq.read_table(source_path, columns=columns, use_threads=False)
35
+ for side in sorted({e['side'] for e in unresolved}):
36
+ raw = np.asarray(table[f'sensor_{side}_pose'].to_pylist(), dtype=float)
37
+ known = gaps[task].get(record['date']+'/'+record['episode'], {}).get(side, [])
38
+ for proposal in find_branch_candidates(raw, known):
39
+ events = [e for e in unresolved if e['side'] == side and
40
+ e['start'] <= proposal.end+1 and e['end'] >= proposal.start-1]
41
+ if not events:
42
+ continue
43
+ path = Path(task)/record['date']/f"{record['episode']}_{side}_{proposal.start}_{proposal.end}.json"
44
+ overlap_ids = [e['event_id'] for e in events]
45
+ unique_events.update((str(event_path), eid) for eid in overlap_ids)
46
+ payload = {
47
+ 'schema_version': 1, 'manifest_digest': manifest_digest,
48
+ 'source_path': record['source_path'], 'source_sha256': record.get('source_sha256'),
49
+ 'task': task, 'date': record['date'], 'episode': record['episode'], 'side': side,
50
+ 'start': proposal.start, 'end': proposal.end,
51
+ 'confidence': 'MEDIUM', 'training_valid': False,
52
+ 'requires_independent_branch_identity_evidence': True,
53
+ 'overlapping_event_ids': overlap_ids, 'evidence': proposal.evidence,
54
+ 'branch_rotation_xyzw': proposal.branch_rotation_xyzw.tolist(),
55
+ 'branch_translation_m': proposal.branch_translation_m.tolist(),
56
+ 'proposed_pose': proposal.pose.tolist(),
57
+ }
58
+ _atomic_json(output_root/path, payload)
59
+ proposals.append({'path': str(path), 'task': task, 'side': side,
60
+ 'start': proposal.start, 'end': proposal.end,
61
+ 'matching_return_pairs': proposal.evidence['matching_return_pairs']})
62
+ report = {'schema_version': 1, 'manifest_digest': manifest_digest,
63
+ 'proposal_count': len(proposals), 'overlapping_unresolved_events': len(unique_events),
64
+ 'training_valid': False, 'requires_independent_branch_identity_evidence': True,
65
+ 'proposals': proposals}
66
+ _atomic_json(output_root/'index.json', report)
67
+ return report
68
+
69
+
70
+ def main():
71
+ parser = argparse.ArgumentParser(description=__doc__)
72
+ parser.add_argument('--candidate-root', type=Path, required=True)
73
+ parser.add_argument('--output-root', type=Path, required=True)
74
+ args = parser.parse_args()
75
+ manifest = json.loads((args.candidate_root/'input_manifest.json').read_text())
76
+ report = write_branch_review(args.candidate_root, manifest['source_root'], args.output_root,
77
+ manifest_digest=manifest['digest'])
78
+ print(json.dumps({k:v for k,v in report.items() if k != 'proposals'}), flush=True)
79
+
80
+
81
+ if __name__ == '__main__':
82
+ main()
action_review.html ADDED
The diff for this file is too large to render. See raw diff
 
action_sample25.html ADDED
The diff for this file is too large to render. See raw diff
 
action_sample25.json ADDED
The diff for this file is too large to render. See raw diff
 
data/motherboard/action_repair_events/2026-09-11/episode_000.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_000.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_000.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_001_seg00.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_001_seg00.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_001.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_001_seg01.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_001_seg01.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_001.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_002_seg00.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_002_seg00.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_002.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_003_seg00.json ADDED
@@ -0,0 +1,879 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_003_seg00.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_003.parquet",
5
+ "events": [
6
+ {
7
+ "confidence": "MEDIUM",
8
+ "end": 6920,
9
+ "event_id": "right:6919-6920:branch_discontinuity",
10
+ "evidence": {
11
+ "anchor_rotation_deg": 47.800997433372316,
12
+ "anchor_translation_mm": 63.09745055264558,
13
+ "branch_unambiguous": true,
14
+ "duration_frames": 2,
15
+ "endpoint_return_consistent": false,
16
+ "fit_converged": true,
17
+ "fit_iterations": 0,
18
+ "left_anchor": 6918,
19
+ "left_context_frames": 15,
20
+ "observed_inlier_frames": 2,
21
+ "physical": true,
22
+ "prediction_rotation_max_deg": 15.933665811124106,
23
+ "prediction_translation_max_mm": 21.032483517548528,
24
+ "reconstructed_max_step_rotation_deg": 18.02254004629295,
25
+ "reconstructed_max_step_translation_mm": 23.619626470526953,
26
+ "replaced_frames": 0,
27
+ "right_anchor": 6921,
28
+ "right_context_frames": 15,
29
+ "rotation_inlier_threshold_deg": 10.882346383786663,
30
+ "rotation_residual_p95_deg": 3.8708448926461196,
31
+ "translation_inlier_threshold_mm": 12.887418899887527,
32
+ "translation_residual_p95_mm": 8.0939798311343
33
+ },
34
+ "kind": "branch_discontinuity",
35
+ "left_context_end": 6918,
36
+ "method": "endpoint_se3",
37
+ "replaced_frames": [],
38
+ "right_context_start": 6921,
39
+ "seed_frames": [
40
+ 6919,
41
+ 6920
42
+ ],
43
+ "side": "right",
44
+ "start": 6919,
45
+ "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_003_seg00.parquet::right:6919-6920:branch_discontinuity",
46
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_003_seg00.parquet",
47
+ "source_start_row": 6919,
48
+ "source_end_row": 6920,
49
+ "local_start_row": 6701,
50
+ "local_end_row": 6702,
51
+ "local_start_seconds": 223.36666666666667,
52
+ "local_end_seconds": 223.4,
53
+ "video_links": {
54
+ "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_003_seg00/view_middle.mp4#t=222.367,224.400",
55
+ "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_003_seg00/wrist_right.mp4#t=222.367,224.400",
56
+ "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_003_seg00/view_left.mp4#t=222.367,224.400",
57
+ "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_003_seg00/view_right.mp4#t=222.367,224.400"
58
+ },
59
+ "chart": {
60
+ "seconds": [
61
+ 222.36666666666667,
62
+ 222.4,
63
+ 222.43333333333334,
64
+ 222.46666666666667,
65
+ 222.5,
66
+ 222.53333333333333,
67
+ 222.56666666666666,
68
+ 222.6,
69
+ 222.63333333333333,
70
+ 222.66666666666666,
71
+ 222.7,
72
+ 222.73333333333332,
73
+ 222.76666666666668,
74
+ 222.8,
75
+ 222.83333333333334,
76
+ 222.86666666666667,
77
+ 222.9,
78
+ 222.93333333333334,
79
+ 222.96666666666667,
80
+ 223.0,
81
+ 223.03333333333333,
82
+ 223.06666666666666,
83
+ 223.1,
84
+ 223.13333333333333,
85
+ 223.16666666666666,
86
+ 223.2,
87
+ 223.23333333333332,
88
+ 223.26666666666668,
89
+ 223.3,
90
+ 223.33333333333334,
91
+ 223.36666666666667,
92
+ 223.4,
93
+ 223.43333333333334,
94
+ 223.46666666666667,
95
+ 223.5,
96
+ 223.53333333333333,
97
+ 223.56666666666666,
98
+ 223.6,
99
+ 223.63333333333333,
100
+ 223.66666666666666,
101
+ 223.7,
102
+ 223.73333333333332,
103
+ 223.76666666666668,
104
+ 223.8,
105
+ 223.83333333333334,
106
+ 223.86666666666667,
107
+ 223.9,
108
+ 223.93333333333334,
109
+ 223.96666666666667,
110
+ 224.0,
111
+ 224.03333333333333,
112
+ 224.06666666666666,
113
+ 224.1,
114
+ 224.13333333333333,
115
+ 224.16666666666666,
116
+ 224.2,
117
+ 224.23333333333332,
118
+ 224.26666666666668,
119
+ 224.3,
120
+ 224.33333333333334,
121
+ 224.36666666666667,
122
+ 224.4
123
+ ],
124
+ "sampled": false,
125
+ "raw": [
126
+ [
127
+ 370.15020847320557,
128
+ -307.28912353515625,
129
+ 129.32030856609344,
130
+ 4.581267290822462
131
+ ],
132
+ [
133
+ 357.12629556655884,
134
+ -317.51638650894165,
135
+ 122.70187214016914,
136
+ 6.351192366263943
137
+ ],
138
+ [
139
+ 344.1023826599121,
140
+ -327.74364948272705,
141
+ 116.08343571424484,
142
+ 6.351192366264173
143
+ ],
144
+ [
145
+ 334.0568244457245,
146
+ -334.2737555503845,
147
+ 110.0734993815422,
148
+ 5.787207748344732
149
+ ],
150
+ [
151
+ 324.88134503364563,
152
+ -339.52388167381287,
153
+ 105.96378892660141,
154
+ 3.8889746700406893
155
+ ],
156
+ [
157
+ 314.23309445381165,
158
+ -344.1632091999054,
159
+ 103.13183069229126,
160
+ 2.540913521261554
161
+ ],
162
+ [
163
+ 305.04152178764343,
164
+ -347.8493094444275,
165
+ 99.12799298763275,
166
+ 3.429002470471916
167
+ ],
168
+ [
169
+ 299.7454106807709,
170
+ -349.67517852783203,
171
+ 95.54816037416458,
172
+ 2.137292407871144
173
+ ],
174
+ [
175
+ 295.8969175815582,
176
+ -351.2740433216095,
177
+ 91.17428958415985,
178
+ 1.8051434691713055
179
+ ],
180
+ [
181
+ 293.77853870391846,
182
+ -352.7408540248871,
183
+ 86.95591241121292,
184
+ 1.8057691340848259
185
+ ],
186
+ [
187
+ 292.85910725593567,
188
+ -352.7231812477112,
189
+ 86.77159994840622,
190
+ 0.7578494138799575
191
+ ],
192
+ [
193
+ 293.38428378105164,
194
+ -353.1348705291748,
195
+ 86.71535551548004,
196
+ 0.2080590761024491
197
+ ],
198
+ [
199
+ 294.35858130455017,
200
+ -352.9517352581024,
201
+ 86.51842921972275,
202
+ 0.27214184308840006
203
+ ],
204
+ [
205
+ 296.30476236343384,
206
+ -352.33667492866516,
207
+ 86.52237802743912,
208
+ 0.5505349716505942
209
+ ],
210
+ [
211
+ 298.1317341327667,
212
+ -351.5044152736664,
213
+ 86.51205897331238,
214
+ 0.7566887262715563
215
+ ],
216
+ [
217
+ 300.4000186920166,
218
+ -349.2770195007324,
219
+ 87.74051070213318,
220
+ 1.8075304083898873
221
+ ],
222
+ [
223
+ 303.42674255371094,
224
+ -346.33785486221313,
225
+ 88.15488964319229,
226
+ 0.9524203386988132
227
+ ],
228
+ [
229
+ 305.9097230434418,
230
+ -344.0278470516205,
231
+ 88.02296966314316,
232
+ 0.829092237963907
233
+ ],
234
+ [
235
+ 309.7114861011505,
236
+ -339.8905396461487,
237
+ 88.13311159610748,
238
+ 1.0131210597282816
239
+ ],
240
+ [
241
+ 312.59968876838684,
242
+ -336.640328168869,
243
+ 87.82649785280228,
244
+ 0.7640244879093242
245
+ ],
246
+ [
247
+ 315.55405259132385,
248
+ -333.1450819969177,
249
+ 87.5314399600029,
250
+ 0.8688125097354973
251
+ ],
252
+ [
253
+ 319.2662298679352,
254
+ -328.5831809043884,
255
+ 87.06294000148773,
256
+ 1.12399616549346
257
+ ],
258
+ [
259
+ 321.9890594482422,
260
+ -324.9320387840271,
261
+ 86.99896931648254,
262
+ 0.5945252655803855
263
+ ],
264
+ [
265
+ 324.5532512664795,
266
+ -320.86214423179626,
267
+ 87.46501803398132,
268
+ 0.7283559851126152
269
+ ],
270
+ [
271
+ 327.6453912258148,
272
+ -315.565288066864,
273
+ 86.91767603158951,
274
+ 1.004268824886563
275
+ ],
276
+ [
277
+ 329.7255039215088,
278
+ -311.6109073162079,
279
+ 87.15754002332687,
280
+ 0.7983144232306935
281
+ ],
282
+ [
283
+ 331.653356552124,
284
+ -307.9427182674408,
285
+ 87.67323195934296,
286
+ 0.8739178418191154
287
+ ],
288
+ [
289
+ 334.19784903526306,
290
+ -303.58999967575073,
291
+ 89.53502029180527,
292
+ 2.2985920118378536
293
+ ],
294
+ [
295
+ 336.55864000320435,
296
+ -300.4562258720398,
297
+ 92.23424643278122,
298
+ 2.7200629654563926
299
+ ],
300
+ [
301
+ 345.7067310810089,
302
+ -290.95327854156494,
303
+ 100.03190487623215,
304
+ 9.958079215339954
305
+ ],
306
+ [
307
+ 360.3336811065674,
308
+ -280.9585928916931,
309
+ 112.08071559667587,
310
+ 14.859518479050207
311
+ ],
312
+ [
313
+ 377.5336444377899,
314
+ -274.0369439125061,
315
+ 121.00819498300552,
316
+ 15.582657357633812
317
+ ],
318
+ [
319
+ 400.38537979125977,
320
+ -268.1031823158264,
321
+ 121.69770151376724,
322
+ 18.02254004629303
323
+ ],
324
+ [
325
+ 414.7932231426239,
326
+ -266.18102192878723,
327
+ 117.95668303966522,
328
+ 9.495539888145608
329
+ ],
330
+ [
331
+ 425.73249340057373,
332
+ -265.934020280838,
333
+ 110.72003841400146,
334
+ 6.6265554921820495
335
+ ],
336
+ [
337
+ 434.6875250339508,
338
+ -266.7140066623688,
339
+ 101.50788724422455,
340
+ 6.215115272100366
341
+ ],
342
+ [
343
+ 438.67018818855286,
344
+ -268.1088447570801,
345
+ 95.05028277635574,
346
+ 3.1167359770960634
347
+ ],
348
+ [
349
+ 440.42518734931946,
350
+ -269.34245228767395,
351
+ 90.16593545675278,
352
+ 1.5068636542343181
353
+ ],
354
+ [
355
+ 440.60879945755005,
356
+ -270.7052230834961,
357
+ 91.10765904188156,
358
+ 1.7736553434916984
359
+ ],
360
+ [
361
+ 440.1378631591797,
362
+ -270.7827091217041,
363
+ 91.05587005615234,
364
+ 1.0381252950514077
365
+ ],
366
+ [
367
+ 439.7316873073578,
368
+ -270.6463634967804,
369
+ 91.05349332094193,
370
+ 0.7002445874809634
371
+ ],
372
+ [
373
+ 434.262216091156,
374
+ -273.2030153274536,
375
+ 91.92927181720734,
376
+ 3.617392048967906
377
+ ],
378
+ [
379
+ 427.69959568977356,
380
+ -275.66057443618774,
381
+ 95.7038402557373,
382
+ 7.20066853551511
383
+ ],
384
+ [
385
+ 415.5217409133911,
386
+ -283.2616865634918,
387
+ 99.53054785728455,
388
+ 14.529695571743906
389
+ ],
390
+ [
391
+ 407.69803524017334,
392
+ -288.17451000213623,
393
+ 99.89657998085022,
394
+ 11.411634579167378
395
+ ],
396
+ [
397
+ 406.6103398799896,
398
+ -289.66766595840454,
399
+ 97.33802080154419,
400
+ 4.133389319857812
401
+ ],
402
+ [
403
+ 409.8658859729767,
404
+ -288.02138566970825,
405
+ 90.54867923259735,
406
+ 4.84107430269087
407
+ ],
408
+ [
409
+ 409.70858931541443,
410
+ -286.90528869628906,
411
+ 86.44093573093414,
412
+ 3.2118736941459978
413
+ ],
414
+ [
415
+ 407.0625603199005,
416
+ -287.3843014240265,
417
+ 83.78896862268448,
418
+ 1.2394037795520134
419
+ ],
420
+ [
421
+ 401.45766735076904,
422
+ -288.425475358963,
423
+ 81.57867193222046,
424
+ 1.3203412189498525
425
+ ],
426
+ [
427
+ 396.37744426727295,
428
+ -289.4059419631958,
429
+ 78.62628996372223,
430
+ 2.593850559284567
431
+ ],
432
+ [
433
+ 390.92713594436646,
434
+ -290.61058163642883,
435
+ 74.92747157812119,
436
+ 3.898528843227758
437
+ ],
438
+ [
439
+ 388.48862051963806,
440
+ -290.1637554168701,
441
+ 73.845274746418,
442
+ 2.113596982950668
443
+ ],
444
+ [
445
+ 388.343870639801,
446
+ -289.30485248565674,
447
+ 74.00846481323242,
448
+ 0.3834442563476623
449
+ ],
450
+ [
451
+ 388.8293504714966,
452
+ -288.2601022720337,
453
+ 73.91779869794846,
454
+ 0.6510597623525856
455
+ ],
456
+ [
457
+ 389.49528336524963,
458
+ -286.90606355667114,
459
+ 72.97954708337784,
460
+ 0.7660073295094691
461
+ ],
462
+ [
463
+ 389.34552669525146,
464
+ -286.5028977394104,
465
+ 71.74604386091232,
466
+ 0.47233041058436726
467
+ ],
468
+ [
469
+ 388.20403814315796,
470
+ -286.6301238536835,
471
+ 71.52379304170609,
472
+ 0.863382535661734
473
+ ],
474
+ [
475
+ 386.8829607963562,
476
+ -287.1820032596588,
477
+ 71.11699879169464,
478
+ 1.0986581402374065
479
+ ],
480
+ [
481
+ 386.0696256160736,
482
+ -287.68569231033325,
483
+ 71.13145291805267,
484
+ 2.1669161352813546
485
+ ],
486
+ [
487
+ 385.941743850708,
488
+ -287.49021887779236,
489
+ 71.20191305875778,
490
+ 1.6656127458743637
491
+ ],
492
+ [
493
+ 386.52724027633667,
494
+ -287.7366244792938,
495
+ 71.31502032279968,
496
+ 0.5505672133341698
497
+ ]
498
+ ],
499
+ "repaired": [
500
+ [
501
+ 370.15020847320557,
502
+ -307.28912353515625,
503
+ 129.32030856609344,
504
+ 4.5812643877033095
505
+ ],
506
+ [
507
+ 357.12629556655884,
508
+ -317.51638650894165,
509
+ 122.70186841487885,
510
+ 6.351194901626617
511
+ ],
512
+ [
513
+ 344.1023826599121,
514
+ -327.74364948272705,
515
+ 116.08343571424484,
516
+ 6.351194222813863
517
+ ],
518
+ [
519
+ 334.0568244457245,
520
+ -334.2737555503845,
521
+ 110.0734993815422,
522
+ 5.787204140469812
523
+ ],
524
+ [
525
+ 324.88134503364563,
526
+ -339.52388167381287,
527
+ 105.96378892660141,
528
+ 3.8889773809390893
529
+ ],
530
+ [
531
+ 314.23309445381165,
532
+ -344.1632091999054,
533
+ 103.13183069229126,
534
+ 2.54091372107966
535
+ ],
536
+ [
537
+ 305.04152178764343,
538
+ -347.8493094444275,
539
+ 99.12799298763275,
540
+ 3.4289978742507063
541
+ ],
542
+ [
543
+ 299.7454106807709,
544
+ -349.67517852783203,
545
+ 95.54816037416458,
546
+ 2.1372952770865226
547
+ ],
548
+ [
549
+ 295.8969175815582,
550
+ -351.2740433216095,
551
+ 91.17428958415985,
552
+ 1.8051417452700222
553
+ ],
554
+ [
555
+ 293.77853870391846,
556
+ -352.7408540248871,
557
+ 86.95591241121292,
558
+ 1.8057729084074383
559
+ ],
560
+ [
561
+ 292.85910725593567,
562
+ -352.7231812477112,
563
+ 86.77159994840622,
564
+ 0.7578474827938105
565
+ ],
566
+ [
567
+ 293.38428378105164,
568
+ -353.1348705291748,
569
+ 86.71535551548004,
570
+ 0.20805599132561178
571
+ ],
572
+ [
573
+ 294.35858130455017,
574
+ -352.9517352581024,
575
+ 86.51842921972275,
576
+ 0.27214090311773903
577
+ ],
578
+ [
579
+ 296.30476236343384,
580
+ -352.33667492866516,
581
+ 86.52237802743912,
582
+ 0.55053270485435
583
+ ],
584
+ [
585
+ 298.1317341327667,
586
+ -351.5044152736664,
587
+ 86.51205897331238,
588
+ 0.7566884913211891
589
+ ],
590
+ [
591
+ 300.4000186920166,
592
+ -349.2770195007324,
593
+ 87.74051070213318,
594
+ 1.8075337432419374
595
+ ],
596
+ [
597
+ 303.42674255371094,
598
+ -346.33785486221313,
599
+ 88.15488964319229,
600
+ 0.9524179440682972
601
+ ],
602
+ [
603
+ 305.9097230434418,
604
+ -344.0278470516205,
605
+ 88.02296966314316,
606
+ 0.829092087800482
607
+ ],
608
+ [
609
+ 309.7114861011505,
610
+ -339.8905396461487,
611
+ 88.13311159610748,
612
+ 1.013123853149451
613
+ ],
614
+ [
615
+ 312.59968876838684,
616
+ -336.640328168869,
617
+ 87.82649785280228,
618
+ 0.7640261011566353
619
+ ],
620
+ [
621
+ 315.55405259132385,
622
+ -333.1450819969177,
623
+ 87.5314399600029,
624
+ 0.8688123011559358
625
+ ],
626
+ [
627
+ 319.2662298679352,
628
+ -328.5831809043884,
629
+ 87.06294000148773,
630
+ 1.1239942226170936
631
+ ],
632
+ [
633
+ 321.9890594482422,
634
+ -324.9320387840271,
635
+ 86.99896931648254,
636
+ 0.5945276368198887
637
+ ],
638
+ [
639
+ 324.5532512664795,
640
+ -320.86214423179626,
641
+ 87.46501803398132,
642
+ 0.7283550346418588
643
+ ],
644
+ [
645
+ 327.6453912258148,
646
+ -315.565288066864,
647
+ 86.91767603158951,
648
+ 1.0042672920936229
649
+ ],
650
+ [
651
+ 329.7255039215088,
652
+ -311.6109073162079,
653
+ 87.15754002332687,
654
+ 0.7983137984154982
655
+ ],
656
+ [
657
+ 331.653356552124,
658
+ -307.9427182674408,
659
+ 87.67323195934296,
660
+ 0.8739180483360409
661
+ ],
662
+ [
663
+ 334.19784903526306,
664
+ -303.58999967575073,
665
+ 89.53502029180527,
666
+ 2.298591750169675
667
+ ],
668
+ [
669
+ 336.55864000320435,
670
+ -300.4562258720398,
671
+ 92.23424643278122,
672
+ 2.7200645170845474
673
+ ],
674
+ [
675
+ 345.7067310810089,
676
+ -290.95327854156494,
677
+ 100.03190487623215,
678
+ 9.958076963570061
679
+ ],
680
+ [
681
+ 360.3336811065674,
682
+ -280.9585928916931,
683
+ 112.08071559667587,
684
+ 14.859518048422823
685
+ ],
686
+ [
687
+ 377.5336444377899,
688
+ -274.0369439125061,
689
+ 121.00819498300552,
690
+ 15.582656244790098
691
+ ],
692
+ [
693
+ 400.38537979125977,
694
+ -268.1031823158264,
695
+ 121.69770151376724,
696
+ 18.022541668713803
697
+ ],
698
+ [
699
+ 414.7932231426239,
700
+ -266.18102192878723,
701
+ 117.95668303966522,
702
+ 9.495539960722246
703
+ ],
704
+ [
705
+ 425.73249340057373,
706
+ -265.934020280838,
707
+ 110.72003841400146,
708
+ 6.626555427716629
709
+ ],
710
+ [
711
+ 434.6875250339508,
712
+ -266.7140066623688,
713
+ 101.50788724422455,
714
+ 6.215114286355204
715
+ ],
716
+ [
717
+ 438.67018818855286,
718
+ -268.1088447570801,
719
+ 95.05028277635574,
720
+ 3.116735313231769
721
+ ],
722
+ [
723
+ 440.42518734931946,
724
+ -269.34245228767395,
725
+ 90.16593545675278,
726
+ 1.5068647004832754
727
+ ],
728
+ [
729
+ 440.60879945755005,
730
+ -270.7052230834961,
731
+ 91.10765904188156,
732
+ 1.7736584476203259
733
+ ],
734
+ [
735
+ 440.1378631591797,
736
+ -270.7827091217041,
737
+ 91.05587005615234,
738
+ 1.0381256470486724
739
+ ],
740
+ [
741
+ 439.7316873073578,
742
+ -270.6463634967804,
743
+ 91.05349332094193,
744
+ 0.700240961277817
745
+ ],
746
+ [
747
+ 434.262216091156,
748
+ -273.2030153274536,
749
+ 91.92927181720734,
750
+ 3.6173931213043797
751
+ ],
752
+ [
753
+ 427.69959568977356,
754
+ -275.66057443618774,
755
+ 95.7038402557373,
756
+ 7.200667188085469
757
+ ],
758
+ [
759
+ 415.5217409133911,
760
+ -283.2616865634918,
761
+ 99.53054785728455,
762
+ 14.52969556861255
763
+ ],
764
+ [
765
+ 407.69803524017334,
766
+ -288.17451000213623,
767
+ 99.89657998085022,
768
+ 11.411635539824383
769
+ ],
770
+ [
771
+ 406.6103398799896,
772
+ -289.66766595840454,
773
+ 97.33802080154419,
774
+ 4.133386285676683
775
+ ],
776
+ [
777
+ 409.8658859729767,
778
+ -288.02138566970825,
779
+ 90.54867923259735,
780
+ 4.841073346379383
781
+ ],
782
+ [
783
+ 409.70858931541443,
784
+ -286.90528869628906,
785
+ 86.44093573093414,
786
+ 3.2118726318271724
787
+ ],
788
+ [
789
+ 407.0625603199005,
790
+ -287.3843014240265,
791
+ 83.78896862268448,
792
+ 1.2394074406052322
793
+ ],
794
+ [
795
+ 401.45766735076904,
796
+ -288.425475358963,
797
+ 81.57867193222046,
798
+ 1.3203392922005757
799
+ ],
800
+ [
801
+ 396.37744426727295,
802
+ -289.4059419631958,
803
+ 78.62628996372223,
804
+ 2.593851330297442
805
+ ],
806
+ [
807
+ 390.92713594436646,
808
+ -290.61058163642883,
809
+ 74.92747157812119,
810
+ 3.898527653208505
811
+ ],
812
+ [
813
+ 388.48862051963806,
814
+ -290.1637554168701,
815
+ 73.845274746418,
816
+ 2.1135978131175106
817
+ ],
818
+ [
819
+ 388.343870639801,
820
+ -289.30485248565674,
821
+ 74.00846481323242,
822
+ 0.3834421591037004
823
+ ],
824
+ [
825
+ 388.8293504714966,
826
+ -288.2601022720337,
827
+ 73.91779869794846,
828
+ 0.6510588601675623
829
+ ],
830
+ [
831
+ 389.49528336524963,
832
+ -286.90606355667114,
833
+ 72.97954708337784,
834
+ 0.7660096456067839
835
+ ],
836
+ [
837
+ 389.34552669525146,
838
+ -286.5028977394104,
839
+ 71.74604386091232,
840
+ 0.47233068811599865
841
+ ],
842
+ [
843
+ 388.20403814315796,
844
+ -286.6301238536835,
845
+ 71.52379304170609,
846
+ 0.8633820404915564
847
+ ],
848
+ [
849
+ 386.8829607963562,
850
+ -287.1820032596588,
851
+ 71.11699879169464,
852
+ 1.0986557955044947
853
+ ],
854
+ [
855
+ 386.0696256160736,
856
+ -287.68569231033325,
857
+ 71.13145291805267,
858
+ 2.1669180837540702
859
+ ],
860
+ [
861
+ 385.941743850708,
862
+ -287.49021887779236,
863
+ 71.20191305875778,
864
+ 1.665611421815971
865
+ ],
866
+ [
867
+ 386.52724027633667,
868
+ -287.7366244792938,
869
+ 71.31502032279968,
870
+ 0.5505671059975917
871
+ ]
872
+ ]
873
+ },
874
+ "capture_start_seconds": 226.30533981323242,
875
+ "capture_end_seconds": 226.33783555030823,
876
+ "video_time_basis": "local_row / 30 fps"
877
+ }
878
+ ]
879
+ }
data/motherboard/action_repair_events/2026-09-11/episode_004_seg00.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_004_seg00.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_004.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_004_seg01.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_004_seg01.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_004.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_005_seg00.json ADDED
@@ -0,0 +1,1171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg00.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_005.parquet",
5
+ "events": [
6
+ {
7
+ "confidence": "LOW",
8
+ "end": 1010,
9
+ "event_id": "right:988-1010:known_gap",
10
+ "evidence": {
11
+ "branch_unambiguous": true,
12
+ "duration_frames": 23,
13
+ "fit_converged": true,
14
+ "fit_iterations": 2,
15
+ "left_anchor": 987,
16
+ "left_context_frames": 15,
17
+ "observed_inlier_frames": 0,
18
+ "physical": true,
19
+ "prediction_rotation_max_deg": 25.666901571080622,
20
+ "prediction_translation_max_mm": 81.05492076501436,
21
+ "reconstructed_max_step_rotation_deg": 0.8517370673452712,
22
+ "reconstructed_max_step_translation_mm": 2.5927819723783916,
23
+ "rejection": "incompatible_two_sided_prediction",
24
+ "replaced_frames": 23,
25
+ "right_anchor": 1011,
26
+ "right_context_frames": 15,
27
+ "rotation_inlier_threshold_deg": 2.4168308174733784,
28
+ "rotation_residual_p95_deg": 73.18756471123928,
29
+ "translation_inlier_threshold_mm": 4.032219895902639,
30
+ "translation_residual_p95_mm": 31.845096119858983
31
+ },
32
+ "kind": "known_gap",
33
+ "left_context_end": 987,
34
+ "method": "unrepaired_ambiguous_branch",
35
+ "replaced_frames": [],
36
+ "right_context_start": 1011,
37
+ "seed_frames": [
38
+ 988,
39
+ 989,
40
+ 990,
41
+ 991,
42
+ 992,
43
+ 993,
44
+ 994,
45
+ 995,
46
+ 996,
47
+ 997,
48
+ 998,
49
+ 999,
50
+ 1000,
51
+ 1001,
52
+ 1002,
53
+ 1003,
54
+ 1004,
55
+ 1005,
56
+ 1006,
57
+ 1007,
58
+ 1008,
59
+ 1009,
60
+ 1010
61
+ ],
62
+ "side": "right",
63
+ "start": 988,
64
+ "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_005_seg00.parquet::right:988-1010:known_gap",
65
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg00.parquet",
66
+ "source_start_row": 988,
67
+ "source_end_row": 1010,
68
+ "local_start_row": 988,
69
+ "local_end_row": 1010,
70
+ "local_start_seconds": 32.93333333333333,
71
+ "local_end_seconds": 33.666666666666664,
72
+ "video_links": {
73
+ "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_005_seg00/view_middle.mp4#t=31.933,34.667",
74
+ "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_005_seg00/wrist_right.mp4#t=31.933,34.667",
75
+ "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_005_seg00/view_left.mp4#t=31.933,34.667",
76
+ "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_005_seg00/view_right.mp4#t=31.933,34.667"
77
+ },
78
+ "chart": {
79
+ "seconds": [
80
+ 31.933333333333334,
81
+ 31.966666666666665,
82
+ 32.0,
83
+ 32.03333333333333,
84
+ 32.06666666666667,
85
+ 32.1,
86
+ 32.13333333333333,
87
+ 32.166666666666664,
88
+ 32.2,
89
+ 32.233333333333334,
90
+ 32.266666666666666,
91
+ 32.3,
92
+ 32.333333333333336,
93
+ 32.36666666666667,
94
+ 32.4,
95
+ 32.43333333333333,
96
+ 32.46666666666667,
97
+ 32.5,
98
+ 32.53333333333333,
99
+ 32.56666666666667,
100
+ 32.6,
101
+ 32.63333333333333,
102
+ 32.666666666666664,
103
+ 32.7,
104
+ 32.733333333333334,
105
+ 32.766666666666666,
106
+ 32.8,
107
+ 32.833333333333336,
108
+ 32.86666666666667,
109
+ 32.9,
110
+ 32.93333333333333,
111
+ 32.96666666666667,
112
+ 33.0,
113
+ 33.03333333333333,
114
+ 33.06666666666667,
115
+ 33.1,
116
+ 33.13333333333333,
117
+ 33.166666666666664,
118
+ 33.2,
119
+ 33.233333333333334,
120
+ 33.266666666666666,
121
+ 33.3,
122
+ 33.333333333333336,
123
+ 33.36666666666667,
124
+ 33.4,
125
+ 33.43333333333333,
126
+ 33.46666666666667,
127
+ 33.5,
128
+ 33.53333333333333,
129
+ 33.56666666666667,
130
+ 33.6,
131
+ 33.63333333333333,
132
+ 33.666666666666664,
133
+ 33.7,
134
+ 33.733333333333334,
135
+ 33.766666666666666,
136
+ 33.8,
137
+ 33.833333333333336,
138
+ 33.86666666666667,
139
+ 33.9,
140
+ 33.93333333333333,
141
+ 33.96666666666667,
142
+ 34.0,
143
+ 34.03333333333333,
144
+ 34.06666666666667,
145
+ 34.1,
146
+ 34.13333333333333,
147
+ 34.166666666666664,
148
+ 34.2,
149
+ 34.233333333333334,
150
+ 34.266666666666666,
151
+ 34.3,
152
+ 34.333333333333336,
153
+ 34.36666666666667,
154
+ 34.4,
155
+ 34.43333333333333,
156
+ 34.46666666666667,
157
+ 34.5,
158
+ 34.53333333333333,
159
+ 34.56666666666667,
160
+ 34.6,
161
+ 34.63333333333333,
162
+ 34.666666666666664
163
+ ],
164
+ "sampled": false,
165
+ "raw": [
166
+ [
167
+ 423.85026812553406,
168
+ -303.09051275253296,
169
+ 103.4170314669609,
170
+ 0.5912643663102232
171
+ ],
172
+ [
173
+ 424.81812834739685,
174
+ -301.0128140449524,
175
+ 103.60579192638397,
176
+ 0.7994745203834677
177
+ ],
178
+ [
179
+ 425.3072738647461,
180
+ -299.5603680610657,
181
+ 103.68989408016205,
182
+ 0.4088948303273436
183
+ ],
184
+ [
185
+ 425.2752363681793,
186
+ -298.21109771728516,
187
+ 103.58338057994843,
188
+ 0.2557725222092512
189
+ ],
190
+ [
191
+ 424.70645904541016,
192
+ -296.37181758880615,
193
+ 103.38965058326721,
194
+ 0.7816055550225298
195
+ ],
196
+ [
197
+ 424.43370819091797,
198
+ -294.27483677864075,
199
+ 103.14623266458511,
200
+ 0.7193048984262551
201
+ ],
202
+ [
203
+ 424.4348406791687,
204
+ -293.21688413619995,
205
+ 103.07274758815765,
206
+ 0.12187899522888432
207
+ ],
208
+ [
209
+ 424.55166578292847,
210
+ -291.1716401576996,
211
+ 103.07352244853973,
212
+ 0.16867951999941486
213
+ ],
214
+ [
215
+ 424.873948097229,
216
+ -289.77206349372864,
217
+ 103.16231846809387,
218
+ 0.37231373664935474
219
+ ],
220
+ [
221
+ 424.9938428401947,
222
+ -287.94077038764954,
223
+ 103.09071093797684,
224
+ 0.1477168166745452
225
+ ],
226
+ [
227
+ 424.71835017204285,
228
+ -286.75514459609985,
229
+ 102.94326394796371,
230
+ 0.4436825627145368
231
+ ],
232
+ [
233
+ 424.6615171432495,
234
+ -285.4054570198059,
235
+ 102.78984904289246,
236
+ 0.37134630396984497
237
+ ],
238
+ [
239
+ 424.33029413223267,
240
+ -283.597469329834,
241
+ 102.55991667509079,
242
+ 0.5523604947828624
243
+ ],
244
+ [
245
+ 424.2231845855713,
246
+ -282.18144178390503,
247
+ 102.47844457626343,
248
+ 0.32625609670435946
249
+ ],
250
+ [
251
+ 424.4680404663086,
252
+ -280.77182173728943,
253
+ 102.55881398916245,
254
+ 0.3370989624516577
255
+ ],
256
+ [
257
+ 424.90968108177185,
258
+ -278.8239121437073,
259
+ 102.61606425046921,
260
+ 0.24747174045491196
261
+ ],
262
+ [
263
+ 425.2588152885437,
264
+ -277.51418948173523,
265
+ 102.6676595211029,
266
+ 0.2982194467369422
267
+ ],
268
+ [
269
+ 425.81480741500854,
270
+ -276.29008889198303,
271
+ 102.80360281467438,
272
+ 0.482877512251612
273
+ ],
274
+ [
275
+ 426.12510919570923,
276
+ -275.7679224014282,
277
+ 102.86169499158859,
278
+ 0.3597962428797945
279
+ ],
280
+ [
281
+ 426.3419210910797,
282
+ -275.68066120147705,
283
+ 102.8919368982315,
284
+ 0.14211354706225535
285
+ ],
286
+ [
287
+ 426.5254735946655,
288
+ -276.07688307762146,
289
+ 103.07947546243668,
290
+ 0.35829534777775685
291
+ ],
292
+ [
293
+ 427.001029253006,
294
+ -276.4851748943329,
295
+ 103.27409952878952,
296
+ 0.4308496214871962
297
+ ],
298
+ [
299
+ 427.7275502681732,
300
+ -276.88610553741455,
301
+ 103.83957624435425,
302
+ 0.6783926380079802
303
+ ],
304
+ [
305
+ 428.3698499202728,
306
+ -277.7758240699768,
307
+ 104.54951971769333,
308
+ 0.8983130205315121
309
+ ],
310
+ [
311
+ 428.68557572364807,
312
+ -278.7923514842987,
313
+ 105.13187199831009,
314
+ 0.6563644234315006
315
+ ],
316
+ [
317
+ 428.86650562286377,
318
+ -279.94289994239807,
319
+ 105.5775135755539,
320
+ 0.5455085114408055
321
+ ],
322
+ [
323
+ 428.29304933547974,
324
+ -281.7381024360657,
325
+ 106.31638020277023,
326
+ 1.3635079016280347
327
+ ],
328
+ [
329
+ 427.5025427341461,
330
+ -283.1801176071167,
331
+ 107.19635337591171,
332
+ 2.64911998183676
333
+ ],
334
+ [
335
+ 427.72841453552246,
336
+ -285.66762804985046,
337
+ 112.71543055772781,
338
+ 3.568823665700867
339
+ ],
340
+ [
341
+ 431.14885687828064,
342
+ -288.1978154182434,
343
+ 123.0020523071289,
344
+ 3.5269364768820304
345
+ ],
346
+ [
347
+ 441.02707505226135,
348
+ -299.0027666091919,
349
+ 140.77125489711761,
350
+ 51.66557111917531
351
+ ],
352
+ [
353
+ 444.5767104625702,
354
+ -301.41475796699524,
355
+ 146.6025710105896,
356
+ 2.5089092227697827
357
+ ],
358
+ [
359
+ 447.5852847099304,
360
+ -307.7232837677002,
361
+ 147.9480117559433,
362
+ 15.562512565347888
363
+ ],
364
+ [
365
+ 443.1382715702057,
366
+ -302.1283745765686,
367
+ 146.2784707546234,
368
+ 21.018183071945668
369
+ ],
370
+ [
371
+ 447.073757648468,
372
+ -312.7385079860687,
373
+ 147.3458856344223,
374
+ 35.510491072741715
375
+ ],
376
+ [
377
+ 441.5605962276459,
378
+ -302.9881715774536,
379
+ 146.69208228588104,
380
+ 34.783588866048866
381
+ ],
382
+ [
383
+ 433.9704215526581,
384
+ -295.0749099254608,
385
+ 136.73251867294312,
386
+ 47.02067009472409
387
+ ],
388
+ [
389
+ 433.79250168800354,
390
+ -295.3698933124542,
391
+ 136.78939640522003,
392
+ 0.21358322143310227
393
+ ],
394
+ [
395
+ 433.96833539009094,
396
+ -295.42016983032227,
397
+ 136.8311494588852,
398
+ 0.09488952842198277
399
+ ],
400
+ [
401
+ 435.0060522556305,
402
+ -295.64744234085083,
403
+ 137.04626262187958,
404
+ 0.2954231523082665
405
+ ],
406
+ [
407
+ 435.26536226272583,
408
+ -295.74763774871826,
409
+ 137.01070845127106,
410
+ 0.1457545178515781
411
+ ],
412
+ [
413
+ 435.36607921123505,
414
+ -295.96318304538727,
415
+ 136.69921457767487,
416
+ 0.3148483633475346
417
+ ],
418
+ [
419
+ 435.46679615974426,
420
+ -296.1787283420563,
421
+ 136.38772070407867,
422
+ 0.3148483633475346
423
+ ],
424
+ [
425
+ 435.45830249786377,
426
+ -296.2515950202942,
427
+ 136.10400259494781,
428
+ 0.21938391155620723
429
+ ],
430
+ [
431
+ 435.59935688972473,
432
+ -296.22817039489746,
433
+ 136.21732592582703,
434
+ 0.1672063275412512
435
+ ],
436
+ [
437
+ 435.7191324234009,
438
+ -296.25755548477173,
439
+ 136.76296174526215,
440
+ 0.17580575080008445
441
+ ],
442
+ [
443
+ 435.89508533477783,
444
+ -296.4293360710144,
445
+ 137.7841979265213,
446
+ 0.5090701609066534
447
+ ],
448
+ [
449
+ 437.1311366558075,
450
+ -296.6286242008209,
451
+ 139.91671800613403,
452
+ 0.9094099999509796
453
+ ],
454
+ [
455
+ 438.62783908843994,
456
+ -296.5937554836273,
457
+ 141.2813514471054,
458
+ 0.7088527888547084
459
+ ],
460
+ [
461
+ 447.3488926887512,
462
+ -304.47304248809814,
463
+ 151.90058946609497,
464
+ 46.034692898035466
465
+ ],
466
+ [
467
+ 448.37281107902527,
468
+ -302.3861050605774,
469
+ 150.8232057094574,
470
+ 5.959773495795272
471
+ ],
472
+ [
473
+ 448.9457905292511,
474
+ -302.83138155937195,
475
+ 150.71889758110046,
476
+ 1.9927513794140483
477
+ ],
478
+ [
479
+ 452.8866410255432,
480
+ -312.16758489608765,
481
+ 151.92657709121704,
482
+ 32.1459268858814
483
+ ],
484
+ [
485
+ 440.5269920825958,
486
+ -296.15944623947144,
487
+ 139.45646584033966,
488
+ 74.48308114314918
489
+ ],
490
+ [
491
+ 438.25604021549225,
492
+ -296.6279685497284,
493
+ 137.571282684803,
494
+ 1.0052768988816014
495
+ ],
496
+ [
497
+ 435.9850883483887,
498
+ -297.09649085998535,
499
+ 135.68609952926636,
500
+ 1.005276898884502
501
+ ],
502
+ [
503
+ 432.60735273361206,
504
+ -298.27597737312317,
505
+ 132.12454319000244,
506
+ 2.1915850856095638
507
+ ],
508
+ [
509
+ 430.60487508773804,
510
+ -299.37297105789185,
511
+ 129.51421737670898,
512
+ 1.6033205479382076
513
+ ],
514
+ [
515
+ 429.2965531349182,
516
+ -300.40299892425537,
517
+ 126.72291696071625,
518
+ 1.2407609582683183
519
+ ],
520
+ [
521
+ 427.47536301612854,
522
+ -302.1578788757324,
523
+ 121.99191004037857,
524
+ 1.982730665388962
525
+ ],
526
+ [
527
+ 426.08189582824707,
528
+ -303.48676443099976,
529
+ 117.99179017543793,
530
+ 1.439095673175958
531
+ ],
532
+ [
533
+ 424.80209469795227,
534
+ -304.82274293899536,
535
+ 112.88315057754517,
536
+ 2.103330128964338
537
+ ],
538
+ [
539
+ 424.201101064682,
540
+ -305.73755502700806,
541
+ 110.29647290706635,
542
+ 1.0272597232827942
543
+ ],
544
+ [
545
+ 423.90644550323486,
546
+ -306.8124055862427,
547
+ 109.41243171691895,
548
+ 0.3235892965214147
549
+ ],
550
+ [
551
+ 423.98759722709656,
552
+ -308.37759375572205,
553
+ 109.38067734241486,
554
+ 0.24496406886013622
555
+ ],
556
+ [
557
+ 423.6733615398407,
558
+ -310.1000785827637,
559
+ 109.64439809322357,
560
+ 0.21839482812387803
561
+ ],
562
+ [
563
+ 423.0443239212036,
564
+ -312.0340406894684,
565
+ 109.65369641780853,
566
+ 0.21519779408972362
567
+ ],
568
+ [
569
+ 421.6989576816559,
570
+ -314.54145908355713,
571
+ 108.61964523792267,
572
+ 0.540026915547988
573
+ ],
574
+ [
575
+ 419.95498538017273,
576
+ -316.3342773914337,
577
+ 106.58968985080719,
578
+ 1.1818317153126212
579
+ ],
580
+ [
581
+ 418.09529066085815,
582
+ -318.00833344459534,
583
+ 104.5193076133728,
584
+ 1.1741303429533951
585
+ ],
586
+ [
587
+ 416.49842262268066,
588
+ -319.67470049858093,
589
+ 102.64996439218521,
590
+ 1.3570478615139685
591
+ ],
592
+ [
593
+ 415.79464077949524,
594
+ -320.6106424331665,
595
+ 101.66709125041962,
596
+ 1.0113977567722248
597
+ ],
598
+ [
599
+ 415.2069389820099,
600
+ -321.28894329071045,
601
+ 100.59047490358353,
602
+ 0.7165874045303219
603
+ ],
604
+ [
605
+ 414.48625922203064,
606
+ -321.9183385372162,
607
+ 99.68945384025574,
608
+ 1.0423348415402474
609
+ ],
610
+ [
611
+ 413.1104648113251,
612
+ -322.4773108959198,
613
+ 98.2770100235939,
614
+ 1.5913807769348387
615
+ ],
616
+ [
617
+ 411.38821840286255,
618
+ -322.97825813293457,
619
+ 96.56678140163422,
620
+ 1.979243271099836
621
+ ],
622
+ [
623
+ 410.91033816337585,
624
+ -322.7740228176117,
625
+ 95.72175145149231,
626
+ 0.6023509053975707
627
+ ],
628
+ [
629
+ 410.8063280582428,
630
+ -322.48446345329285,
631
+ 95.18107026815414,
632
+ 0.4414006204333312
633
+ ],
634
+ [
635
+ 411.56330704689026,
636
+ -322.0393657684326,
637
+ 95.1974019408226,
638
+ 0.3853775911265195
639
+ ],
640
+ [
641
+ 412.22256422042847,
642
+ -321.77290320396423,
643
+ 95.30282765626907,
644
+ 0.4099323672171214
645
+ ],
646
+ [
647
+ 412.97051310539246,
648
+ -321.4207589626312,
649
+ 95.40123492479324,
650
+ 0.5550358674411892
651
+ ],
652
+ [
653
+ 414.59423303604126,
654
+ -320.29327750205994,
655
+ 95.77357023954391,
656
+ 0.8902319629668474
657
+ ],
658
+ [
659
+ 415.8998131752014,
660
+ -319.1111087799072,
661
+ 96.0613414645195,
662
+ 0.6426651149630808
663
+ ]
664
+ ],
665
+ "repaired": [
666
+ [
667
+ 423.85026812553406,
668
+ -303.09051275253296,
669
+ 103.4170314669609,
670
+ 0.5912674712418717
671
+ ],
672
+ [
673
+ 424.81812834739685,
674
+ -301.0128140449524,
675
+ 103.60579192638397,
676
+ 0.7994720280104634
677
+ ],
678
+ [
679
+ 425.3072738647461,
680
+ -299.5603680610657,
681
+ 103.68989408016205,
682
+ 0.40889631222496964
683
+ ],
684
+ [
685
+ 425.2752363681793,
686
+ -298.21109771728516,
687
+ 103.58338057994843,
688
+ 0.2557758606980334
689
+ ],
690
+ [
691
+ 424.70645904541016,
692
+ -296.37181758880615,
693
+ 103.38965058326721,
694
+ 0.7816051581062903
695
+ ],
696
+ [
697
+ 424.43370819091797,
698
+ -294.27483677864075,
699
+ 103.14623266458511,
700
+ 0.7193066618775714
701
+ ],
702
+ [
703
+ 424.4348406791687,
704
+ -293.21688413619995,
705
+ 103.07274758815765,
706
+ 0.12188165424780632
707
+ ],
708
+ [
709
+ 424.55166578292847,
710
+ -291.1716401576996,
711
+ 103.07352244853973,
712
+ 0.16867733759778317
713
+ ],
714
+ [
715
+ 424.873948097229,
716
+ -289.77206349372864,
717
+ 103.16231846809387,
718
+ 0.3723099496193637
719
+ ],
720
+ [
721
+ 424.9938428401947,
722
+ -287.94077038764954,
723
+ 103.09071093797684,
724
+ 0.1477159563763838
725
+ ],
726
+ [
727
+ 424.71835017204285,
728
+ -286.75514459609985,
729
+ 102.94326394796371,
730
+ 0.4436828378430115
731
+ ],
732
+ [
733
+ 424.6615171432495,
734
+ -285.4054570198059,
735
+ 102.78984904289246,
736
+ 0.37134442970630177
737
+ ],
738
+ [
739
+ 424.33029413223267,
740
+ -283.597469329834,
741
+ 102.55991667509079,
742
+ 0.5523604527224142
743
+ ],
744
+ [
745
+ 424.2231845855713,
746
+ -282.18144178390503,
747
+ 102.47844457626343,
748
+ 0.32625485093680556
749
+ ],
750
+ [
751
+ 424.4680404663086,
752
+ -280.77182173728943,
753
+ 102.55881398916245,
754
+ 0.3371001059724048
755
+ ],
756
+ [
757
+ 424.90968108177185,
758
+ -278.8239121437073,
759
+ 102.61606425046921,
760
+ 0.24747244041856595
761
+ ],
762
+ [
763
+ 425.2588152885437,
764
+ -277.51418948173523,
765
+ 102.6676595211029,
766
+ 0.29821925227038015
767
+ ],
768
+ [
769
+ 425.81480741500854,
770
+ -276.29008889198303,
771
+ 102.80360281467438,
772
+ 0.4828798887700454
773
+ ],
774
+ [
775
+ 426.12510919570923,
776
+ -275.7679224014282,
777
+ 102.86169499158859,
778
+ 0.3597909655834436
779
+ ],
780
+ [
781
+ 426.3419210910797,
782
+ -275.68066120147705,
783
+ 102.8919368982315,
784
+ 0.1421134462322925
785
+ ],
786
+ [
787
+ 426.5254735946655,
788
+ -276.07688307762146,
789
+ 103.07947546243668,
790
+ 0.3582958707913821
791
+ ],
792
+ [
793
+ 427.001029253006,
794
+ -276.4851748943329,
795
+ 103.27409952878952,
796
+ 0.4308484920770811
797
+ ],
798
+ [
799
+ 427.7275502681732,
800
+ -276.88610553741455,
801
+ 103.83957624435425,
802
+ 0.6783930218626768
803
+ ],
804
+ [
805
+ 428.3698499202728,
806
+ -277.7758240699768,
807
+ 104.54951971769333,
808
+ 0.8983110937668835
809
+ ],
810
+ [
811
+ 428.68557572364807,
812
+ -278.7923514842987,
813
+ 105.13187199831009,
814
+ 0.6563667923516038
815
+ ],
816
+ [
817
+ 428.86650562286377,
818
+ -279.94289994239807,
819
+ 105.5775135755539,
820
+ 0.5455072142087468
821
+ ],
822
+ [
823
+ 428.29304933547974,
824
+ -281.7381024360657,
825
+ 106.31638020277023,
826
+ 1.363509025735364
827
+ ],
828
+ [
829
+ 427.5025427341461,
830
+ -283.1801176071167,
831
+ 107.19635337591171,
832
+ 2.6491235816276526
833
+ ],
834
+ [
835
+ 427.72841453552246,
836
+ -285.66762804985046,
837
+ 112.71543055772781,
838
+ 3.5688219481378796
839
+ ],
840
+ [
841
+ 431.14885687828064,
842
+ -288.1978154182434,
843
+ 123.0020523071289,
844
+ 3.526937740724667
845
+ ],
846
+ [
847
+ 441.02707505226135,
848
+ -299.0027666091919,
849
+ 140.77125489711761,
850
+ 51.665569758332595
851
+ ],
852
+ [
853
+ 444.5767104625702,
854
+ -301.41475796699524,
855
+ 146.6025710105896,
856
+ 2.5089097275717225
857
+ ],
858
+ [
859
+ 447.5852847099304,
860
+ -307.7232837677002,
861
+ 147.9480117559433,
862
+ 15.562513429097377
863
+ ],
864
+ [
865
+ 443.1382715702057,
866
+ -302.1283745765686,
867
+ 146.2784707546234,
868
+ 21.018182995667058
869
+ ],
870
+ [
871
+ 447.073757648468,
872
+ -312.7385079860687,
873
+ 147.3458856344223,
874
+ 35.51049029365445
875
+ ],
876
+ [
877
+ 441.5605962276459,
878
+ -302.9881715774536,
879
+ 146.69208228588104,
880
+ 34.78358950477343
881
+ ],
882
+ [
883
+ 433.9704215526581,
884
+ -295.0749099254608,
885
+ 136.73251867294312,
886
+ 47.02067147883974
887
+ ],
888
+ [
889
+ 433.79250168800354,
890
+ -295.3698933124542,
891
+ 136.78939640522003,
892
+ 0.21358067450891352
893
+ ],
894
+ [
895
+ 433.96833539009094,
896
+ -295.42016983032227,
897
+ 136.8311494588852,
898
+ 0.09488646952676277
899
+ ],
900
+ [
901
+ 435.0060522556305,
902
+ -295.64744234085083,
903
+ 137.04626262187958,
904
+ 0.2954244768607081
905
+ ],
906
+ [
907
+ 435.26536226272583,
908
+ -295.74763774871826,
909
+ 137.01070845127106,
910
+ 0.14575546877335085
911
+ ],
912
+ [
913
+ 435.36609411239624,
914
+ -295.9631681442261,
915
+ 136.69921457767487,
916
+ 0.3148491370701844
917
+ ],
918
+ [
919
+ 435.46679615974426,
920
+ -296.1787283420563,
921
+ 136.38772070407867,
922
+ 0.31484580328151324
923
+ ],
924
+ [
925
+ 435.45830249786377,
926
+ -296.2515950202942,
927
+ 136.10400259494781,
928
+ 0.2193849627848785
929
+ ],
930
+ [
931
+ 435.59935688972473,
932
+ -296.22817039489746,
933
+ 136.21732592582703,
934
+ 0.16720716022265272
935
+ ],
936
+ [
937
+ 435.7191324234009,
938
+ -296.25755548477173,
939
+ 136.76296174526215,
940
+ 0.17580783510197323
941
+ ],
942
+ [
943
+ 435.89508533477783,
944
+ -296.4293360710144,
945
+ 137.7841979265213,
946
+ 0.5090700579337953
947
+ ],
948
+ [
949
+ 437.1311366558075,
950
+ -296.6286242008209,
951
+ 139.91671800613403,
952
+ 0.9094052648573816
953
+ ],
954
+ [
955
+ 438.62783908843994,
956
+ -296.5937554836273,
957
+ 141.2813514471054,
958
+ 0.7088566492520092
959
+ ],
960
+ [
961
+ 447.3488926887512,
962
+ -304.47304248809814,
963
+ 151.90058946609497,
964
+ 46.034692257423444
965
+ ],
966
+ [
967
+ 448.37281107902527,
968
+ -302.3861050605774,
969
+ 150.8232057094574,
970
+ 5.959774033063332
971
+ ],
972
+ [
973
+ 448.9457905292511,
974
+ -302.83138155937195,
975
+ 150.71889758110046,
976
+ 1.9927512077743128
977
+ ],
978
+ [
979
+ 452.8866410255432,
980
+ -312.16758489608765,
981
+ 151.92657709121704,
982
+ 32.14592616960677
983
+ ],
984
+ [
985
+ 440.5269920825958,
986
+ -296.15944623947144,
987
+ 139.45646584033966,
988
+ 74.48307977512198
989
+ ],
990
+ [
991
+ 438.25602531433105,
992
+ -296.6279685497284,
993
+ 137.5712752342224,
994
+ 1.0052794801147122
995
+ ],
996
+ [
997
+ 435.9850883483887,
998
+ -297.09649085998535,
999
+ 135.68609952926636,
1000
+ 1.0052758926875167
1001
+ ],
1002
+ [
1003
+ 432.60735273361206,
1004
+ -298.27597737312317,
1005
+ 132.12454319000244,
1006
+ 2.1915867657281876
1007
+ ],
1008
+ [
1009
+ 430.60487508773804,
1010
+ -299.37297105789185,
1011
+ 129.51421737670898,
1012
+ 1.6033190745206687
1013
+ ],
1014
+ [
1015
+ 429.2965531349182,
1016
+ -300.40299892425537,
1017
+ 126.72291696071625,
1018
+ 1.2407617174191403
1019
+ ],
1020
+ [
1021
+ 427.47536301612854,
1022
+ -302.1578788757324,
1023
+ 121.99191004037857,
1024
+ 1.9827289007564166
1025
+ ],
1026
+ [
1027
+ 426.08189582824707,
1028
+ -303.48676443099976,
1029
+ 117.99179017543793,
1030
+ 1.4390959046977212
1031
+ ],
1032
+ [
1033
+ 424.80209469795227,
1034
+ -304.82274293899536,
1035
+ 112.88315057754517,
1036
+ 2.1033346196438325
1037
+ ],
1038
+ [
1039
+ 424.201101064682,
1040
+ -305.73755502700806,
1041
+ 110.29647290706635,
1042
+ 1.02725766052826
1043
+ ],
1044
+ [
1045
+ 423.90644550323486,
1046
+ -306.8124055862427,
1047
+ 109.41243171691895,
1048
+ 0.32358551429761473
1049
+ ],
1050
+ [
1051
+ 423.98759722709656,
1052
+ -308.37759375572205,
1053
+ 109.38067734241486,
1054
+ 0.24496378411303074
1055
+ ],
1056
+ [
1057
+ 423.6733615398407,
1058
+ -310.1000785827637,
1059
+ 109.64439809322357,
1060
+ 0.21839673313748686
1061
+ ],
1062
+ [
1063
+ 423.0443239212036,
1064
+ -312.0340406894684,
1065
+ 109.65369641780853,
1066
+ 0.2151985692752507
1067
+ ],
1068
+ [
1069
+ 421.6989576816559,
1070
+ -314.54145908355713,
1071
+ 108.61964523792267,
1072
+ 0.5400284196520856
1073
+ ],
1074
+ [
1075
+ 419.95498538017273,
1076
+ -316.3342773914337,
1077
+ 106.58968985080719,
1078
+ 1.1818308240724775
1079
+ ],
1080
+ [
1081
+ 418.09529066085815,
1082
+ -318.00833344459534,
1083
+ 104.5193076133728,
1084
+ 1.1741339647687374
1085
+ ],
1086
+ [
1087
+ 416.49842262268066,
1088
+ -319.67470049858093,
1089
+ 102.64996439218521,
1090
+ 1.3570460738660306
1091
+ ],
1092
+ [
1093
+ 415.79464077949524,
1094
+ -320.6106424331665,
1095
+ 101.66709125041962,
1096
+ 1.0113969321898177
1097
+ ],
1098
+ [
1099
+ 415.2069389820099,
1100
+ -321.28894329071045,
1101
+ 100.59047490358353,
1102
+ 0.7165877419494951
1103
+ ],
1104
+ [
1105
+ 414.48625922203064,
1106
+ -321.9183385372162,
1107
+ 99.68945384025574,
1108
+ 1.0423339563335388
1109
+ ],
1110
+ [
1111
+ 413.1104648113251,
1112
+ -322.4773108959198,
1113
+ 98.2770100235939,
1114
+ 1.5913826059011045
1115
+ ],
1116
+ [
1117
+ 411.38821840286255,
1118
+ -322.97825813293457,
1119
+ 96.56678140163422,
1120
+ 1.9792436532953113
1121
+ ],
1122
+ [
1123
+ 410.91033816337585,
1124
+ -322.7740228176117,
1125
+ 95.72175145149231,
1126
+ 0.6023513391235751
1127
+ ],
1128
+ [
1129
+ 410.8063280582428,
1130
+ -322.48446345329285,
1131
+ 95.18107026815414,
1132
+ 0.44139953675354304
1133
+ ],
1134
+ [
1135
+ 411.56330704689026,
1136
+ -322.0393657684326,
1137
+ 95.1974019408226,
1138
+ 0.38537575389783424
1139
+ ],
1140
+ [
1141
+ 412.22256422042847,
1142
+ -321.77290320396423,
1143
+ 95.30282765626907,
1144
+ 0.40993386816731886
1145
+ ],
1146
+ [
1147
+ 412.97051310539246,
1148
+ -321.4207589626312,
1149
+ 95.40123492479324,
1150
+ 0.5550365881834043
1151
+ ],
1152
+ [
1153
+ 414.59423303604126,
1154
+ -320.29327750205994,
1155
+ 95.77357023954391,
1156
+ 0.8902302197617677
1157
+ ],
1158
+ [
1159
+ 415.8998131752014,
1160
+ -319.1111087799072,
1161
+ 96.0613414645195,
1162
+ 0.642665534877153
1163
+ ]
1164
+ ]
1165
+ },
1166
+ "capture_start_seconds": 33.923091411590576,
1167
+ "capture_end_seconds": 34.753862619400024,
1168
+ "video_time_basis": "local_row / 30 fps"
1169
+ }
1170
+ ]
1171
+ }
data/motherboard/action_repair_events/2026-09-11/episode_005_seg01.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg01.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_005.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_005_seg02.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg02.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_005.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_005_seg03.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg03.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_005.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_005_seg04.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg04.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_005.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_005_seg05.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg05.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_005.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_006_seg00.json ADDED
@@ -0,0 +1,581 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_006_seg00.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_006.parquet",
5
+ "events": [
6
+ {
7
+ "confidence": "MEDIUM",
8
+ "end": 135,
9
+ "event_id": "left:135-135:branch_discontinuity",
10
+ "evidence": {
11
+ "anchor_rotation_deg": 12.907309139387474,
12
+ "anchor_translation_mm": 45.451282814189234,
13
+ "branch_unambiguous": false,
14
+ "duration_frames": 1,
15
+ "endpoint_return_consistent": true,
16
+ "fit_converged": true,
17
+ "fit_iterations": 0,
18
+ "left_anchor": 134,
19
+ "left_context_frames": 15,
20
+ "observed_inlier_frames": 0,
21
+ "physical": true,
22
+ "prediction_rotation_max_deg": 6.453654569693737,
23
+ "prediction_translation_max_mm": 22.725641407094617,
24
+ "reconstructed_max_step_rotation_deg": 6.453654569693842,
25
+ "reconstructed_max_step_translation_mm": 22.725641407094617,
26
+ "replaced_frames": 1,
27
+ "right_anchor": 136,
28
+ "right_context_frames": 15,
29
+ "rotation_inlier_threshold_deg": 6.153024877535055,
30
+ "rotation_residual_p95_deg": 6.45365456969375,
31
+ "translation_inlier_threshold_mm": 17.40523897927769,
32
+ "translation_residual_p95_mm": 22.725641407094617
33
+ },
34
+ "kind": "branch_discontinuity",
35
+ "left_context_end": 134,
36
+ "method": "endpoint_se3",
37
+ "replaced_frames": [
38
+ 135
39
+ ],
40
+ "right_context_start": 136,
41
+ "seed_frames": [
42
+ 135
43
+ ],
44
+ "side": "left",
45
+ "start": 135,
46
+ "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_006_seg00.parquet::left:135-135:branch_discontinuity",
47
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_006_seg00.parquet",
48
+ "source_start_row": 135,
49
+ "source_end_row": 135,
50
+ "local_start_row": 8,
51
+ "local_end_row": 8,
52
+ "local_start_seconds": 0.26666666666666666,
53
+ "local_end_seconds": 0.26666666666666666,
54
+ "video_links": {
55
+ "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_006_seg00/view_middle.mp4#t=0.000,1.267",
56
+ "wrist_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_006_seg00/wrist_left.mp4#t=0.000,1.267",
57
+ "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_006_seg00/view_left.mp4#t=0.000,1.267",
58
+ "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_006_seg00/view_right.mp4#t=0.000,1.267"
59
+ },
60
+ "chart": {
61
+ "seconds": [
62
+ 0.0,
63
+ 0.03333333333333333,
64
+ 0.06666666666666667,
65
+ 0.1,
66
+ 0.13333333333333333,
67
+ 0.16666666666666666,
68
+ 0.2,
69
+ 0.23333333333333334,
70
+ 0.26666666666666666,
71
+ 0.3,
72
+ 0.3333333333333333,
73
+ 0.36666666666666664,
74
+ 0.4,
75
+ 0.43333333333333335,
76
+ 0.4666666666666667,
77
+ 0.5,
78
+ 0.5333333333333333,
79
+ 0.5666666666666667,
80
+ 0.6,
81
+ 0.6333333333333333,
82
+ 0.6666666666666666,
83
+ 0.7,
84
+ 0.7333333333333333,
85
+ 0.7666666666666667,
86
+ 0.8,
87
+ 0.8333333333333334,
88
+ 0.8666666666666667,
89
+ 0.9,
90
+ 0.9333333333333333,
91
+ 0.9666666666666667,
92
+ 1.0,
93
+ 1.0333333333333334,
94
+ 1.0666666666666667,
95
+ 1.1,
96
+ 1.1333333333333333,
97
+ 1.1666666666666667,
98
+ 1.2,
99
+ 1.2333333333333334,
100
+ 1.2666666666666666
101
+ ],
102
+ "sampled": false,
103
+ "raw": [
104
+ [
105
+ 100.35984218120575,
106
+ -270.11433243751526,
107
+ 62.29174882173538,
108
+ null
109
+ ],
110
+ [
111
+ 99.73137825727463,
112
+ -269.40229535102844,
113
+ 61.85771897435188,
114
+ 1.917270175827278
115
+ ],
116
+ [
117
+ 97.70844876766205,
118
+ -266.8423056602478,
119
+ 60.79837679862976,
120
+ 5.476370262861608
121
+ ],
122
+ [
123
+ 94.82218325138092,
124
+ -263.22364807128906,
125
+ 59.300824999809265,
126
+ 6.67430681386113
127
+ ],
128
+ [
129
+ 93.82323175668716,
130
+ -263.4114623069763,
131
+ 60.05174294114113,
132
+ 1.9847508470654787
133
+ ],
134
+ [
135
+ 93.89735013246536,
136
+ -265.2513384819031,
137
+ 65.30791521072388,
138
+ 6.253149031303126
139
+ ],
140
+ [
141
+ 93.72428059577942,
142
+ -267.98906922340393,
143
+ 80.01864701509476,
144
+ 4.728800538888919
145
+ ],
146
+ [
147
+ 99.3417426943779,
148
+ -272.793173789978,
149
+ 93.87470781803131,
150
+ 4.116891678708605
151
+ ],
152
+ [
153
+ 130.23164868354797,
154
+ -290.68872332572937,
155
+ 122.00622260570526,
156
+ 12.90730913938736
157
+ ],
158
+ [
159
+ 130.23164868354797,
160
+ -290.68872332572937,
161
+ 122.00622260570526,
162
+ 0.0
163
+ ],
164
+ [
165
+ 147.23718166351318,
166
+ -298.42081665992737,
167
+ 129.9772411584854,
168
+ 6.011060189758857
169
+ ],
170
+ [
171
+ 159.7302258014679,
172
+ -303.4225106239319,
173
+ 134.1945230960846,
174
+ 3.4628309362387455
175
+ ],
176
+ [
177
+ 177.85990238189697,
178
+ -309.6180558204651,
179
+ 139.33928310871124,
180
+ 4.958183563651148
181
+ ],
182
+ [
183
+ 194.54225897789001,
184
+ -312.3992085456848,
185
+ 138.50736618041992,
186
+ 2.8454953329821
187
+ ],
188
+ [
189
+ 199.98875260353088,
190
+ -309.9346458911896,
191
+ 128.37612628936768,
192
+ 2.1932836038285513
193
+ ],
194
+ [
195
+ 200.58685541152954,
196
+ -308.33110213279724,
197
+ 122.29735404253006,
198
+ 1.2488329512664915
199
+ ],
200
+ [
201
+ 200.30935108661652,
202
+ -307.026743888855,
203
+ 115.71670323610306,
204
+ 1.5185043693254836
205
+ ],
206
+ [
207
+ 200.54911077022552,
208
+ -306.76814913749695,
209
+ 114.06124383211136,
210
+ 0.5145608563431292
211
+ ],
212
+ [
213
+ 201.70655846595764,
214
+ -306.7685663700104,
215
+ 113.77377063035965,
216
+ 0.6911778197135255
217
+ ],
218
+ [
219
+ 202.6977837085724,
220
+ -306.84906244277954,
221
+ 113.69107663631439,
222
+ 0.32367537597053997
223
+ ],
224
+ [
225
+ 203.99822294712067,
226
+ -307.0114254951477,
227
+ 113.2405623793602,
228
+ 0.5984700492922287
229
+ ],
230
+ [
231
+ 206.10813796520233,
232
+ -307.35698342323303,
233
+ 112.1068224310875,
234
+ 0.9396039557341291
235
+ ],
236
+ [
237
+ 207.7530324459076,
238
+ -306.5430819988251,
239
+ 108.73059928417206,
240
+ 1.4813986310334681
241
+ ],
242
+ [
243
+ 207.74365961551666,
244
+ -306.2240779399872,
245
+ 107.85919427871704,
246
+ 0.31288857987189683
247
+ ],
248
+ [
249
+ 207.2862833738327,
250
+ -304.75443601608276,
251
+ 103.68755459785461,
252
+ 1.577903526537662
253
+ ],
254
+ [
255
+ 207.6142579317093,
256
+ -304.2484223842621,
257
+ 100.14652460813522,
258
+ 0.9292271132422304
259
+ ],
260
+ [
261
+ 207.7282965183258,
262
+ -304.20470237731934,
263
+ 99.7178703546524,
264
+ 0.8477232920419426
265
+ ],
266
+ [
267
+ 208.240807056427,
268
+ -304.41954731941223,
269
+ 99.03644770383835,
270
+ 0.6255393058700005
271
+ ],
272
+ [
273
+ 209.19731259346008,
274
+ -304.9773871898651,
275
+ 98.00697863101959,
276
+ 1.0763457177871436
277
+ ],
278
+ [
279
+ 209.64086055755615,
280
+ -305.4491877555847,
281
+ 97.22122550010681,
282
+ 0.7207240158543969
283
+ ],
284
+ [
285
+ 209.77871119976044,
286
+ -306.00273609161377,
287
+ 96.80983424186707,
288
+ 0.6620086564691914
289
+ ],
290
+ [
291
+ 209.6571922302246,
292
+ -306.28180503845215,
293
+ 96.63059562444687,
294
+ 0.2852280645802218
295
+ ],
296
+ [
297
+ 209.9921554327011,
298
+ -307.4820041656494,
299
+ 96.3166132569313,
300
+ 0.5790214957862232
301
+ ],
302
+ [
303
+ 210.357666015625,
304
+ -308.77456068992615,
305
+ 96.18020802736282,
306
+ 0.24400614547406813
307
+ ],
308
+ [
309
+ 210.67236363887787,
310
+ -310.1627230644226,
311
+ 96.09176963567734,
312
+ 0.12285252525692285
313
+ ],
314
+ [
315
+ 211.0975831747055,
316
+ -312.21720576286316,
317
+ 96.06446325778961,
318
+ 0.04328837158142338
319
+ ],
320
+ [
321
+ 211.04049682617188,
322
+ -313.66971135139465,
323
+ 96.18928283452988,
324
+ 0.44302974886912
325
+ ],
326
+ [
327
+ 210.92666685581207,
328
+ -315.1862323284149,
329
+ 96.31972759962082,
330
+ 0.4871239176863666
331
+ ],
332
+ [
333
+ 210.89869737625122,
334
+ -317.5593614578247,
335
+ 96.50222212076187,
336
+ 0.5813347250554594
337
+ ]
338
+ ],
339
+ "repaired": [
340
+ [
341
+ 100.35984218120575,
342
+ -270.11433243751526,
343
+ 62.29174882173538,
344
+ null
345
+ ],
346
+ [
347
+ 99.73137825727463,
348
+ -269.40229535102844,
349
+ 61.85771897435188,
350
+ 1.917270734485066
351
+ ],
352
+ [
353
+ 97.70844876766205,
354
+ -266.8423056602478,
355
+ 60.79837679862976,
356
+ 5.47636812226729
357
+ ],
358
+ [
359
+ 94.82218325138092,
360
+ -263.22364807128906,
361
+ 59.300824999809265,
362
+ 6.674309056167478
363
+ ],
364
+ [
365
+ 93.82323175668716,
366
+ -263.4114623069763,
367
+ 60.05174294114113,
368
+ 1.9847501649555894
369
+ ],
370
+ [
371
+ 93.89735013246536,
372
+ -265.2513384819031,
373
+ 65.30791521072388,
374
+ 6.2531489260917414
375
+ ],
376
+ [
377
+ 93.72428059577942,
378
+ -267.98906922340393,
379
+ 80.01864701509476,
380
+ 4.728800180940165
381
+ ],
382
+ [
383
+ 99.3417426943779,
384
+ -272.793173789978,
385
+ 93.87470781803131,
386
+ 4.116889168965711
387
+ ],
388
+ [
389
+ 114.78669941425323,
390
+ -281.7409634590149,
391
+ 107.94046521186829,
392
+ 6.453656786961352
393
+ ],
394
+ [
395
+ 130.23164868354797,
396
+ -290.68872332572937,
397
+ 122.00622260570526,
398
+ 6.453657062054262
399
+ ],
400
+ [
401
+ 147.23718166351318,
402
+ -298.42081665992737,
403
+ 129.9772411584854,
404
+ 6.011056537754309
405
+ ],
406
+ [
407
+ 159.7302258014679,
408
+ -303.4225106239319,
409
+ 134.1945230960846,
410
+ 3.4628300281510125
411
+ ],
412
+ [
413
+ 177.85990238189697,
414
+ -309.6180558204651,
415
+ 139.33928310871124,
416
+ 4.958186224780879
417
+ ],
418
+ [
419
+ 194.54225897789001,
420
+ -312.3992085456848,
421
+ 138.50736618041992,
422
+ 2.845497420508905
423
+ ],
424
+ [
425
+ 199.98875260353088,
426
+ -309.9346458911896,
427
+ 128.37612628936768,
428
+ 2.1932827774403614
429
+ ],
430
+ [
431
+ 200.58685541152954,
432
+ -308.33110213279724,
433
+ 122.29735404253006,
434
+ 1.2488334110469441
435
+ ],
436
+ [
437
+ 200.30935108661652,
438
+ -307.026743888855,
439
+ 115.71670323610306,
440
+ 1.5185031373772402
441
+ ],
442
+ [
443
+ 200.54911077022552,
444
+ -306.76814913749695,
445
+ 114.06124383211136,
446
+ 0.5145606582387273
447
+ ],
448
+ [
449
+ 201.70655846595764,
450
+ -306.7685663700104,
451
+ 113.77377063035965,
452
+ 0.6911782541748633
453
+ ],
454
+ [
455
+ 202.6977837085724,
456
+ -306.84906244277954,
457
+ 113.69107663631439,
458
+ 0.32367617523712977
459
+ ],
460
+ [
461
+ 203.99822294712067,
462
+ -307.0114254951477,
463
+ 113.2405623793602,
464
+ 0.5984718994656546
465
+ ],
466
+ [
467
+ 206.10813796520233,
468
+ -307.35698342323303,
469
+ 112.1068224310875,
470
+ 0.9396027603784758
471
+ ],
472
+ [
473
+ 207.7530324459076,
474
+ -306.5430819988251,
475
+ 108.73059928417206,
476
+ 1.4813985856716319
477
+ ],
478
+ [
479
+ 207.74365961551666,
480
+ -306.2240779399872,
481
+ 107.85919427871704,
482
+ 0.3128896968677141
483
+ ],
484
+ [
485
+ 207.2862833738327,
486
+ -304.75443601608276,
487
+ 103.68755459785461,
488
+ 1.5779040285070212
489
+ ],
490
+ [
491
+ 207.6142579317093,
492
+ -304.2484223842621,
493
+ 100.14652460813522,
494
+ 0.9292268069954142
495
+ ],
496
+ [
497
+ 207.7282965183258,
498
+ -304.20470237731934,
499
+ 99.7178703546524,
500
+ 0.8477237110830159
501
+ ],
502
+ [
503
+ 208.240807056427,
504
+ -304.41954731941223,
505
+ 99.03644770383835,
506
+ 0.6255390346796013
507
+ ],
508
+ [
509
+ 209.19731259346008,
510
+ -304.9773871898651,
511
+ 98.00697863101959,
512
+ 1.0763461096954665
513
+ ],
514
+ [
515
+ 209.64086055755615,
516
+ -305.4491877555847,
517
+ 97.22122550010681,
518
+ 0.7207204057961701
519
+ ],
520
+ [
521
+ 209.77871119976044,
522
+ -306.00273609161377,
523
+ 96.80983424186707,
524
+ 0.6620127749934824
525
+ ],
526
+ [
527
+ 209.6571922302246,
528
+ -306.28180503845215,
529
+ 96.63059562444687,
530
+ 0.2852271133672206
531
+ ],
532
+ [
533
+ 209.9921554327011,
534
+ -307.4820041656494,
535
+ 96.3166132569313,
536
+ 0.5790258184263283
537
+ ],
538
+ [
539
+ 210.357666015625,
540
+ -308.77456068992615,
541
+ 96.18020802736282,
542
+ 0.2440039319924171
543
+ ],
544
+ [
545
+ 210.67236363887787,
546
+ -310.1627230644226,
547
+ 96.09176963567734,
548
+ 0.1228517569898105
549
+ ],
550
+ [
551
+ 211.0975831747055,
552
+ -312.21720576286316,
553
+ 96.06446325778961,
554
+ 0.04328780680033871
555
+ ],
556
+ [
557
+ 211.04049682617188,
558
+ -313.66971135139465,
559
+ 96.18928283452988,
560
+ 0.4430295309480642
561
+ ],
562
+ [
563
+ 210.92666685581207,
564
+ -315.1862323284149,
565
+ 96.31972759962082,
566
+ 0.4871254458901983
567
+ ],
568
+ [
569
+ 210.89869737625122,
570
+ -317.5593614578247,
571
+ 96.50222212076187,
572
+ 0.5813295043684571
573
+ ]
574
+ ]
575
+ },
576
+ "capture_start_seconds": 0.3642127513885498,
577
+ "capture_end_seconds": 0.3642127513885498,
578
+ "video_time_basis": "local_row / 30 fps"
579
+ }
580
+ ]
581
+ }
data/motherboard/action_repair_events/2026-09-11/episode_006_seg01.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_006_seg01.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_006.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_007_seg00.json ADDED
@@ -0,0 +1,869 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg00.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_007.parquet",
5
+ "events": [
6
+ {
7
+ "confidence": "MEDIUM",
8
+ "end": 544,
9
+ "event_id": "right:544-544:branch_discontinuity",
10
+ "evidence": {
11
+ "anchor_rotation_deg": 14.981120961953765,
12
+ "anchor_translation_mm": 48.37311204519902,
13
+ "branch_unambiguous": true,
14
+ "duration_frames": 1,
15
+ "endpoint_return_consistent": true,
16
+ "fit_converged": true,
17
+ "fit_iterations": 0,
18
+ "independent_loss_evidence": false,
19
+ "left_anchor": 543,
20
+ "left_context_frames": 15,
21
+ "observed_inlier_frames": 0,
22
+ "physical": true,
23
+ "prediction_rotation_max_deg": 7.490560480976883,
24
+ "prediction_translation_max_mm": 24.18655602259951,
25
+ "reconstructed_max_step_rotation_deg": 7.490560480976786,
26
+ "reconstructed_max_step_translation_mm": 24.18655602259951,
27
+ "replaced_frames": 1,
28
+ "review_required": true,
29
+ "right_anchor": 545,
30
+ "right_context_frames": 15,
31
+ "rotation_inlier_threshold_deg": 4.1984467148612294,
32
+ "rotation_residual_p95_deg": 7.562254191729277,
33
+ "translation_inlier_threshold_mm": 12.312927979729979,
34
+ "translation_residual_p95_mm": 22.100730708888793
35
+ },
36
+ "kind": "branch_discontinuity",
37
+ "left_context_end": 543,
38
+ "method": "endpoint_se3",
39
+ "replaced_frames": [
40
+ 544
41
+ ],
42
+ "right_context_start": 545,
43
+ "seed_frames": [
44
+ 544
45
+ ],
46
+ "side": "right",
47
+ "start": 544,
48
+ "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_007_seg00.parquet::right:544-544:branch_discontinuity",
49
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg00.parquet",
50
+ "source_start_row": 544,
51
+ "source_end_row": 544,
52
+ "local_start_row": 544,
53
+ "local_end_row": 544,
54
+ "local_start_seconds": 18.133333333333333,
55
+ "local_end_seconds": 18.133333333333333,
56
+ "video_links": {
57
+ "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg00/view_middle.mp4#t=17.133,19.133",
58
+ "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg00/wrist_right.mp4#t=17.133,19.133",
59
+ "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg00/view_left.mp4#t=17.133,19.133",
60
+ "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg00/view_right.mp4#t=17.133,19.133"
61
+ },
62
+ "chart": {
63
+ "seconds": [
64
+ 17.133333333333333,
65
+ 17.166666666666668,
66
+ 17.2,
67
+ 17.233333333333334,
68
+ 17.266666666666666,
69
+ 17.3,
70
+ 17.333333333333332,
71
+ 17.366666666666667,
72
+ 17.4,
73
+ 17.433333333333334,
74
+ 17.466666666666665,
75
+ 17.5,
76
+ 17.533333333333335,
77
+ 17.566666666666666,
78
+ 17.6,
79
+ 17.633333333333333,
80
+ 17.666666666666668,
81
+ 17.7,
82
+ 17.733333333333334,
83
+ 17.766666666666666,
84
+ 17.8,
85
+ 17.833333333333332,
86
+ 17.866666666666667,
87
+ 17.9,
88
+ 17.933333333333334,
89
+ 17.966666666666665,
90
+ 18.0,
91
+ 18.033333333333335,
92
+ 18.066666666666666,
93
+ 18.1,
94
+ 18.133333333333333,
95
+ 18.166666666666668,
96
+ 18.2,
97
+ 18.233333333333334,
98
+ 18.266666666666666,
99
+ 18.3,
100
+ 18.333333333333332,
101
+ 18.366666666666667,
102
+ 18.4,
103
+ 18.433333333333334,
104
+ 18.466666666666665,
105
+ 18.5,
106
+ 18.533333333333335,
107
+ 18.566666666666666,
108
+ 18.6,
109
+ 18.633333333333333,
110
+ 18.666666666666668,
111
+ 18.7,
112
+ 18.733333333333334,
113
+ 18.766666666666666,
114
+ 18.8,
115
+ 18.833333333333332,
116
+ 18.866666666666667,
117
+ 18.9,
118
+ 18.933333333333334,
119
+ 18.966666666666665,
120
+ 19.0,
121
+ 19.033333333333335,
122
+ 19.066666666666666,
123
+ 19.1,
124
+ 19.133333333333333
125
+ ],
126
+ "sampled": false,
127
+ "raw": [
128
+ [
129
+ 293.1345999240875,
130
+ -351.333886384964,
131
+ 61.266228556632996,
132
+ 0.687451528411576
133
+ ],
134
+ [
135
+ 293.68919134140015,
136
+ -351.2651026248932,
137
+ 61.460234224796295,
138
+ 0.7325192287076495
139
+ ],
140
+ [
141
+ 293.95976662635803,
142
+ -351.26224160194397,
143
+ 61.32737919688225,
144
+ 0.3732694793804291
145
+ ],
146
+ [
147
+ 293.20332407951355,
148
+ -352.51671075820923,
149
+ 60.26877835392952,
150
+ 3.0820496420165875
151
+ ],
152
+ [
153
+ 291.9199466705322,
154
+ -353.7198007106781,
155
+ 59.7648024559021,
156
+ 1.9898495588624356
157
+ ],
158
+ [
159
+ 291.56753420829773,
160
+ -354.38233613967896,
161
+ 59.61282178759575,
162
+ 0.866343745865375
163
+ ],
164
+ [
165
+ 291.8187975883484,
166
+ -354.39276695251465,
167
+ 59.804871678352356,
168
+ 0.4308827414978981
169
+ ],
170
+ [
171
+ 294.82302069664,
172
+ -354.8979461193085,
173
+ 62.41493672132492,
174
+ 3.7765435787711565
175
+ ],
176
+ [
177
+ 297.53339290618896,
178
+ -354.39392924308777,
179
+ 63.63362818956375,
180
+ 1.3160221470353055
181
+ ],
182
+ [
183
+ 298.77597093582153,
184
+ -353.8702726364136,
185
+ 63.517652451992035,
186
+ 0.5161627662487882
187
+ ],
188
+ [
189
+ 300.1197874546051,
190
+ -353.2220125198364,
191
+ 63.514143228530884,
192
+ 0.45316212014949103
193
+ ],
194
+ [
195
+ 303.20677161216736,
196
+ -351.4164686203003,
197
+ 63.71813267469406,
198
+ 0.6252093424346389
199
+ ],
200
+ [
201
+ 305.2299916744232,
202
+ -350.039541721344,
203
+ 63.184648752212524,
204
+ 0.7508498018849415
205
+ ],
206
+ [
207
+ 310.5168044567108,
208
+ -345.84781527519226,
209
+ 64.22349065542221,
210
+ 2.2819793087134355
211
+ ],
212
+ [
213
+ 311.0499382019043,
214
+ -345.30365467071533,
215
+ 64.46491181850433,
216
+ 0.4266986022208447
217
+ ],
218
+ [
219
+ 311.97622418403625,
220
+ -343.7676727771759,
221
+ 63.82576376199722,
222
+ 0.892170808005379
223
+ ],
224
+ [
225
+ 312.9937946796417,
226
+ -341.0952091217041,
227
+ 63.55633586645126,
228
+ 2.2933420023472397
229
+ ],
230
+ [
231
+ 313.2440745830536,
232
+ -340.85723757743835,
233
+ 63.96554410457611,
234
+ 0.6378371338008306
235
+ ],
236
+ [
237
+ 314.3502473831177,
238
+ -339.3517732620239,
239
+ 64.89276140928268,
240
+ 2.9173937144210655
241
+ ],
242
+ [
243
+ 316.6208565235138,
244
+ -336.7346525192261,
245
+ 66.50929152965546,
246
+ 2.9446755006536476
247
+ ],
248
+ [
249
+ 316.92636013031006,
250
+ -336.3368511199951,
251
+ 66.4486214518547,
252
+ 1.0485635310005839
253
+ ],
254
+ [
255
+ 316.7653977870941,
256
+ -336.5139961242676,
257
+ 66.28798693418503,
258
+ 2.995881690480761
259
+ ],
260
+ [
261
+ 317.4707293510437,
262
+ -335.4126811027527,
263
+ 66.90811365842819,
264
+ 2.1324149865195285
265
+ ],
266
+ [
267
+ 317.7834153175354,
268
+ -334.69173312187195,
269
+ 66.89349561929703,
270
+ 1.7021675199236332
271
+ ],
272
+ [
273
+ 317.83527135849,
274
+ -333.8753879070282,
275
+ 66.7475238442421,
276
+ 0.5777126995514399
277
+ ],
278
+ [
279
+ 316.1773085594177,
280
+ -333.9933454990387,
281
+ 65.02436101436615,
282
+ 2.5336525357991597
283
+ ],
284
+ [
285
+ 315.01907110214233,
286
+ -334.3987762928009,
287
+ 63.944511115550995,
288
+ 1.4955213760506871
289
+ ],
290
+ [
291
+ 313.9919936656952,
292
+ -334.7807824611664,
293
+ 63.045695424079895,
294
+ 1.495893748302454
295
+ ],
296
+ [
297
+ 313.7209117412567,
298
+ -335.0702226161957,
299
+ 62.98482418060303,
300
+ 0.6636471933923805
301
+ ],
302
+ [
303
+ 314.28825855255127,
304
+ -334.96007323265076,
305
+ 63.59536200761795,
306
+ 0.7337285661600823
307
+ ],
308
+ [
309
+ 316.0325288772583,
310
+ -334.7402811050415,
311
+ 65.16243517398834,
312
+ 0.8700382612155738
313
+ ],
314
+ [
315
+ 332.14324712753296,
316
+ -331.99402689933777,
317
+ 108.45469683408737,
318
+ 15.027749122112803
319
+ ],
320
+ [
321
+ 332.14324712753296,
322
+ -331.99402689933777,
323
+ 108.45469683408737,
324
+ 0.0
325
+ ],
326
+ [
327
+ 341.92711114883423,
328
+ -329.11837100982666,
329
+ 122.78661131858826,
330
+ 4.395244431209681
331
+ ],
332
+ [
333
+ 348.44863414764404,
334
+ -325.9589970111847,
335
+ 127.88505852222443,
336
+ 2.5174553376251385
337
+ ],
338
+ [
339
+ 353.90937328338623,
340
+ -321.8695819377899,
341
+ 127.5901049375534,
342
+ 2.381002945378305
343
+ ],
344
+ [
345
+ 358.2216501235962,
346
+ -317.58448481559753,
347
+ 123.63783270120621,
348
+ 2.361307115538593
349
+ ],
350
+ [
351
+ 360.61105132102966,
352
+ -314.1844570636749,
353
+ 115.3286024928093,
354
+ 1.7041090143332824
355
+ ],
356
+ [
357
+ 361.04410886764526,
358
+ -312.1437430381775,
359
+ 106.9612130522728,
360
+ 1.9343795128742742
361
+ ],
362
+ [
363
+ 359.93874073028564,
364
+ -311.5338385105133,
365
+ 99.08898919820786,
366
+ 2.2364422096740935
367
+ ],
368
+ [
369
+ 356.38025403022766,
370
+ -313.41809034347534,
371
+ 93.87563169002533,
372
+ 1.449978016433078
373
+ ],
374
+ [
375
+ 353.2029688358307,
376
+ -315.4681921005249,
377
+ 92.6341637969017,
378
+ 0.7268002973073359
379
+ ],
380
+ [
381
+ 348.3954071998596,
382
+ -318.47113370895386,
383
+ 92.12961792945862,
384
+ 1.1850327099511877
385
+ ],
386
+ [
387
+ 343.3808386325836,
388
+ -321.84338569641113,
389
+ 93.25993061065674,
390
+ 1.3047113523593696
391
+ ],
392
+ [
393
+ 339.22621607780457,
394
+ -324.88691806793213,
395
+ 92.34482049942017,
396
+ 1.279801716832145
397
+ ],
398
+ [
399
+ 336.5621864795685,
400
+ -326.68477296829224,
401
+ 90.09996056556702,
402
+ 1.0507941248571373
403
+ ],
404
+ [
405
+ 333.09316635131836,
406
+ -328.0491828918457,
407
+ 83.85724574327469,
408
+ 2.9697694922657365
409
+ ],
410
+ [
411
+ 331.71308040618896,
412
+ -327.4717628955841,
413
+ 79.33017611503601,
414
+ 2.3148280999851614
415
+ ],
416
+ [
417
+ 331.5514326095581,
418
+ -326.78258419036865,
419
+ 78.5917416214943,
420
+ 0.6691687482898295
421
+ ],
422
+ [
423
+ 331.7137360572815,
424
+ -325.371116399765,
425
+ 78.62141728401184,
426
+ 0.6043201001048663
427
+ ],
428
+ [
429
+ 331.63028955459595,
430
+ -324.77304339408875,
431
+ 78.34472507238388,
432
+ 0.3192961948175036
433
+ ],
434
+ [
435
+ 331.400603055954,
436
+ -323.97884130477905,
437
+ 75.70776343345642,
438
+ 0.7999868659174019
439
+ ],
440
+ [
441
+ 330.43795824050903,
442
+ -323.75940680503845,
443
+ 71.54644280672073,
444
+ 0.9530872062469837
445
+ ],
446
+ [
447
+ 329.82951402664185,
448
+ -323.71991872787476,
449
+ 69.59924846887589,
450
+ 0.4935616842824806
451
+ ],
452
+ [
453
+ 328.97576689720154,
454
+ -323.0929672718048,
455
+ 66.19051098823547,
456
+ 1.0203049267955422
457
+ ],
458
+ [
459
+ 328.6614716053009,
460
+ -322.37523794174194,
461
+ 65.57655334472656,
462
+ 0.2643159262903845
463
+ ],
464
+ [
465
+ 329.05641198158264,
466
+ -320.77667117118835,
467
+ 65.84209203720093,
468
+ 0.6066023020921874
469
+ ],
470
+ [
471
+ 329.3440043926239,
472
+ -319.52643394470215,
473
+ 65.47638773918152,
474
+ 0.7175444887359127
475
+ ],
476
+ [
477
+ 329.31357622146606,
478
+ -319.0698027610779,
479
+ 65.408855676651,
480
+ 0.27190653162417144
481
+ ],
482
+ [
483
+ 329.3303847312927,
484
+ -318.95262002944946,
485
+ 65.41609019041061,
486
+ 0.17256720887291088
487
+ ],
488
+ [
489
+ 329.2910158634186,
490
+ -319.2327618598938,
491
+ 65.11540710926056,
492
+ 0.3526696322556167
493
+ ]
494
+ ],
495
+ "repaired": [
496
+ [
497
+ 293.1345999240875,
498
+ -351.333886384964,
499
+ 61.266228556632996,
500
+ 0.687451028563998
501
+ ],
502
+ [
503
+ 293.68919134140015,
504
+ -351.2651026248932,
505
+ 61.460234224796295,
506
+ 0.7325189346178936
507
+ ],
508
+ [
509
+ 293.95976662635803,
510
+ -351.26224160194397,
511
+ 61.32737919688225,
512
+ 0.3732668245690396
513
+ ],
514
+ [
515
+ 293.20332407951355,
516
+ -352.51671075820923,
517
+ 60.26877835392952,
518
+ 3.0820481696718924
519
+ ],
520
+ [
521
+ 291.9199466705322,
522
+ -353.7198007106781,
523
+ 59.7648024559021,
524
+ 1.9898505734486545
525
+ ],
526
+ [
527
+ 291.56753420829773,
528
+ -354.38233613967896,
529
+ 59.61282178759575,
530
+ 0.8663413573869908
531
+ ],
532
+ [
533
+ 291.8187975883484,
534
+ -354.39276695251465,
535
+ 59.804871678352356,
536
+ 0.4308826267352641
537
+ ],
538
+ [
539
+ 294.82302069664,
540
+ -354.8979461193085,
541
+ 62.41493672132492,
542
+ 3.776544930407562
543
+ ],
544
+ [
545
+ 297.53339290618896,
546
+ -354.39392924308777,
547
+ 63.63362818956375,
548
+ 1.3160201478215028
549
+ ],
550
+ [
551
+ 298.77597093582153,
552
+ -353.8702726364136,
553
+ 63.517652451992035,
554
+ 0.5161647158902474
555
+ ],
556
+ [
557
+ 300.1197874546051,
558
+ -353.2220125198364,
559
+ 63.514143228530884,
560
+ 0.4531619986947299
561
+ ],
562
+ [
563
+ 303.20677161216736,
564
+ -351.4164686203003,
565
+ 63.71813267469406,
566
+ 0.6252106686168672
567
+ ],
568
+ [
569
+ 305.2299916744232,
570
+ -350.039541721344,
571
+ 63.184648752212524,
572
+ 0.7508483094198176
573
+ ],
574
+ [
575
+ 310.5168044567108,
576
+ -345.84781527519226,
577
+ 64.22349065542221,
578
+ 2.2819777146614
579
+ ],
580
+ [
581
+ 311.0499382019043,
582
+ -345.30365467071533,
583
+ 64.46491181850433,
584
+ 0.4266956840886113
585
+ ],
586
+ [
587
+ 311.97622418403625,
588
+ -343.7676727771759,
589
+ 63.82576376199722,
590
+ 0.8921717686413367
591
+ ],
592
+ [
593
+ 312.9937946796417,
594
+ -341.0952091217041,
595
+ 63.55633586645126,
596
+ 2.293345597410516
597
+ ],
598
+ [
599
+ 313.2440745830536,
600
+ -340.85723757743835,
601
+ 63.96554410457611,
602
+ 0.6378326435024896
603
+ ],
604
+ [
605
+ 314.3502473831177,
606
+ -339.3517732620239,
607
+ 64.89276140928268,
608
+ 2.9173971351465546
609
+ ],
610
+ [
611
+ 316.6208565235138,
612
+ -336.7346525192261,
613
+ 66.50929152965546,
614
+ 2.944669090308108
615
+ ],
616
+ [
617
+ 316.92636013031006,
618
+ -336.3368511199951,
619
+ 66.4486214518547,
620
+ 1.048565512024611
621
+ ],
622
+ [
623
+ 316.7653977870941,
624
+ -336.5139961242676,
625
+ 66.28798693418503,
626
+ 2.9958828358593763
627
+ ],
628
+ [
629
+ 317.4707293510437,
630
+ -335.4126811027527,
631
+ 66.90811365842819,
632
+ 2.132416665693146
633
+ ],
634
+ [
635
+ 317.7834153175354,
636
+ -334.69173312187195,
637
+ 66.89349561929703,
638
+ 1.702165169290894
639
+ ],
640
+ [
641
+ 317.83527135849,
642
+ -333.8753879070282,
643
+ 66.7475238442421,
644
+ 0.5777139464830907
645
+ ],
646
+ [
647
+ 316.1773085594177,
648
+ -333.9933454990387,
649
+ 65.02436101436615,
650
+ 2.533652686443174
651
+ ],
652
+ [
653
+ 315.01907110214233,
654
+ -334.3987762928009,
655
+ 63.944511115550995,
656
+ 1.4955227525689865
657
+ ],
658
+ [
659
+ 313.9919936656952,
660
+ -334.7807824611664,
661
+ 63.045695424079895,
662
+ 1.4958939279146763
663
+ ],
664
+ [
665
+ 313.7209117412567,
666
+ -335.0702226161957,
667
+ 62.98482418060303,
668
+ 0.6636429240190245
669
+ ],
670
+ [
671
+ 314.28825855255127,
672
+ -334.96007323265076,
673
+ 63.59536200761795,
674
+ 0.7337268363409191
675
+ ],
676
+ [
677
+ 323.2157528400421,
678
+ -333.47705006599426,
679
+ 86.02502942085266,
680
+ 7.490561236684089
681
+ ],
682
+ [
683
+ 332.14324712753296,
684
+ -331.99402689933777,
685
+ 108.45469683408737,
686
+ 7.490560683642035
687
+ ],
688
+ [
689
+ 332.14324712753296,
690
+ -331.99402689933777,
691
+ 108.45469683408737,
692
+ 0.0
693
+ ],
694
+ [
695
+ 341.92711114883423,
696
+ -329.11837100982666,
697
+ 122.78661131858826,
698
+ 4.395241797533204
699
+ ],
700
+ [
701
+ 348.44863414764404,
702
+ -325.9589970111847,
703
+ 127.88505852222443,
704
+ 2.5174572301828633
705
+ ],
706
+ [
707
+ 353.90937328338623,
708
+ -321.8695819377899,
709
+ 127.5901049375534,
710
+ 2.381001658083867
711
+ ],
712
+ [
713
+ 358.2216501235962,
714
+ -317.58448481559753,
715
+ 123.63783270120621,
716
+ 2.3613067701119497
717
+ ],
718
+ [
719
+ 360.61105132102966,
720
+ -314.1844570636749,
721
+ 115.3286024928093,
722
+ 1.704106939256216
723
+ ],
724
+ [
725
+ 361.04410886764526,
726
+ -312.1437430381775,
727
+ 106.9612130522728,
728
+ 1.9343804592161327
729
+ ],
730
+ [
731
+ 359.93874073028564,
732
+ -311.5338385105133,
733
+ 99.08898919820786,
734
+ 2.2364409330887165
735
+ ],
736
+ [
737
+ 356.38025403022766,
738
+ -313.41809034347534,
739
+ 93.87563169002533,
740
+ 1.44997737723863
741
+ ],
742
+ [
743
+ 353.2029688358307,
744
+ -315.4681921005249,
745
+ 92.6341637969017,
746
+ 0.7268019248122041
747
+ ],
748
+ [
749
+ 348.3954071998596,
750
+ -318.47113370895386,
751
+ 92.12961792945862,
752
+ 1.1850338557537639
753
+ ],
754
+ [
755
+ 343.3808386325836,
756
+ -321.84338569641113,
757
+ 93.25993061065674,
758
+ 1.3047066742642828
759
+ ],
760
+ [
761
+ 339.22621607780457,
762
+ -324.88691806793213,
763
+ 92.34482049942017,
764
+ 1.2798020082945034
765
+ ],
766
+ [
767
+ 336.5621864795685,
768
+ -326.68477296829224,
769
+ 90.09996056556702,
770
+ 1.0507975689163822
771
+ ],
772
+ [
773
+ 333.09316635131836,
774
+ -328.0491828918457,
775
+ 83.85724574327469,
776
+ 2.9697686892440323
777
+ ],
778
+ [
779
+ 331.71308040618896,
780
+ -327.4717628955841,
781
+ 79.33017611503601,
782
+ 2.3148301850876867
783
+ ],
784
+ [
785
+ 331.5514326095581,
786
+ -326.78258419036865,
787
+ 78.5917416214943,
788
+ 0.6691679389130569
789
+ ],
790
+ [
791
+ 331.7137360572815,
792
+ -325.371116399765,
793
+ 78.62141728401184,
794
+ 0.6043219833155733
795
+ ],
796
+ [
797
+ 331.63028955459595,
798
+ -324.77304339408875,
799
+ 78.34472507238388,
800
+ 0.31930047344429463
801
+ ],
802
+ [
803
+ 331.400603055954,
804
+ -323.97884130477905,
805
+ 75.70776343345642,
806
+ 0.7999833442648805
807
+ ],
808
+ [
809
+ 330.43795824050903,
810
+ -323.75940680503845,
811
+ 71.54644280672073,
812
+ 0.9530863592080867
813
+ ],
814
+ [
815
+ 329.82951402664185,
816
+ -323.71991872787476,
817
+ 69.59924846887589,
818
+ 0.49356419411953867
819
+ ],
820
+ [
821
+ 328.97576689720154,
822
+ -323.0929672718048,
823
+ 66.19051098823547,
824
+ 1.0203024094192636
825
+ ],
826
+ [
827
+ 328.6614716053009,
828
+ -322.37523794174194,
829
+ 65.57655334472656,
830
+ 0.2643160754210582
831
+ ],
832
+ [
833
+ 329.05641198158264,
834
+ -320.77667117118835,
835
+ 65.84209203720093,
836
+ 0.6066015301804601
837
+ ],
838
+ [
839
+ 329.3440043926239,
840
+ -319.52643394470215,
841
+ 65.47638773918152,
842
+ 0.7175423868444918
843
+ ],
844
+ [
845
+ 329.31357622146606,
846
+ -319.0698027610779,
847
+ 65.408855676651,
848
+ 0.27190670997849375
849
+ ],
850
+ [
851
+ 329.3303847312927,
852
+ -318.95262002944946,
853
+ 65.41609019041061,
854
+ 0.17256693072006424
855
+ ],
856
+ [
857
+ 329.2910158634186,
858
+ -319.2327618598938,
859
+ 65.11540710926056,
860
+ 0.3526653390518131
861
+ ]
862
+ ]
863
+ },
864
+ "capture_start_seconds": 20.011152267456055,
865
+ "capture_end_seconds": 20.011152267456055,
866
+ "video_time_basis": "local_row / 30 fps"
867
+ }
868
+ ]
869
+ }
data/motherboard/action_repair_events/2026-09-11/episode_007_seg01.json ADDED
@@ -0,0 +1,1727 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg01.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_007.parquet",
5
+ "events": [
6
+ {
7
+ "confidence": "MEDIUM",
8
+ "end": 3198,
9
+ "event_id": "right:3198-3198:branch_discontinuity",
10
+ "evidence": {
11
+ "anchor_rotation_deg": 25.348470228574193,
12
+ "anchor_translation_mm": 46.11884776977851,
13
+ "branch_unambiguous": true,
14
+ "duration_frames": 1,
15
+ "endpoint_return_consistent": false,
16
+ "fit_converged": true,
17
+ "fit_iterations": 0,
18
+ "left_anchor": 3197,
19
+ "left_context_frames": 15,
20
+ "observed_inlier_frames": 0,
21
+ "physical": true,
22
+ "prediction_rotation_max_deg": 12.674235114287097,
23
+ "prediction_translation_max_mm": 23.059423884889256,
24
+ "reconstructed_max_step_rotation_deg": 12.674235114287082,
25
+ "reconstructed_max_step_translation_mm": 23.059423884889256,
26
+ "replaced_frames": 1,
27
+ "right_anchor": 3199,
28
+ "right_context_frames": 15,
29
+ "rotation_inlier_threshold_deg": 4.480161780996793,
30
+ "rotation_residual_p95_deg": 10.2630229478109,
31
+ "translation_inlier_threshold_mm": 11.760744127895912,
32
+ "translation_residual_p95_mm": 21.04218397951475
33
+ },
34
+ "kind": "branch_discontinuity",
35
+ "left_context_end": 3197,
36
+ "method": "endpoint_se3",
37
+ "replaced_frames": [
38
+ 3198
39
+ ],
40
+ "right_context_start": 3199,
41
+ "seed_frames": [
42
+ 3198
43
+ ],
44
+ "side": "right",
45
+ "start": 3198,
46
+ "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_007_seg01.parquet::right:3198-3198:branch_discontinuity",
47
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg01.parquet",
48
+ "source_start_row": 3198,
49
+ "source_end_row": 3198,
50
+ "local_start_row": 1326,
51
+ "local_end_row": 1326,
52
+ "local_start_seconds": 44.2,
53
+ "local_end_seconds": 44.2,
54
+ "video_links": {
55
+ "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/view_middle.mp4#t=43.200,45.200",
56
+ "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/wrist_right.mp4#t=43.200,45.200",
57
+ "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/view_left.mp4#t=43.200,45.200",
58
+ "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/view_right.mp4#t=43.200,45.200"
59
+ },
60
+ "chart": {
61
+ "seconds": [
62
+ 43.2,
63
+ 43.233333333333334,
64
+ 43.266666666666666,
65
+ 43.3,
66
+ 43.333333333333336,
67
+ 43.36666666666667,
68
+ 43.4,
69
+ 43.43333333333333,
70
+ 43.46666666666667,
71
+ 43.5,
72
+ 43.53333333333333,
73
+ 43.56666666666667,
74
+ 43.6,
75
+ 43.63333333333333,
76
+ 43.666666666666664,
77
+ 43.7,
78
+ 43.733333333333334,
79
+ 43.766666666666666,
80
+ 43.8,
81
+ 43.833333333333336,
82
+ 43.86666666666667,
83
+ 43.9,
84
+ 43.93333333333333,
85
+ 43.96666666666667,
86
+ 44.0,
87
+ 44.03333333333333,
88
+ 44.06666666666667,
89
+ 44.1,
90
+ 44.13333333333333,
91
+ 44.166666666666664,
92
+ 44.2,
93
+ 44.233333333333334,
94
+ 44.266666666666666,
95
+ 44.3,
96
+ 44.333333333333336,
97
+ 44.36666666666667,
98
+ 44.4,
99
+ 44.43333333333333,
100
+ 44.46666666666667,
101
+ 44.5,
102
+ 44.53333333333333,
103
+ 44.56666666666667,
104
+ 44.6,
105
+ 44.63333333333333,
106
+ 44.666666666666664,
107
+ 44.7,
108
+ 44.733333333333334,
109
+ 44.766666666666666,
110
+ 44.8,
111
+ 44.833333333333336,
112
+ 44.86666666666667,
113
+ 44.9,
114
+ 44.93333333333333,
115
+ 44.96666666666667,
116
+ 45.0,
117
+ 45.03333333333333,
118
+ 45.06666666666667,
119
+ 45.1,
120
+ 45.13333333333333,
121
+ 45.166666666666664,
122
+ 45.2
123
+ ],
124
+ "sampled": false,
125
+ "raw": [
126
+ [
127
+ 405.3952395915985,
128
+ -266.4848268032074,
129
+ 77.30727642774582,
130
+ 1.0026019971868467
131
+ ],
132
+ [
133
+ 407.94217586517334,
134
+ -262.9442811012268,
135
+ 74.60123300552368,
136
+ 1.3657502858774124
137
+ ],
138
+ [
139
+ 409.8564088344574,
140
+ -261.36380434036255,
141
+ 70.43160498142242,
142
+ 1.1458928369952015
143
+ ],
144
+ [
145
+ 410.4922115802765,
146
+ -261.55197620391846,
147
+ 68.55341047048569,
148
+ 0.4947168296044661
149
+ ],
150
+ [
151
+ 410.99587082862854,
152
+ -262.1247172355652,
153
+ 68.66680085659027,
154
+ 0.28738658441955955
155
+ ],
156
+ [
157
+ 410.64849495887756,
158
+ -263.4833753108978,
159
+ 67.90655106306076,
160
+ 1.0054419686485676
161
+ ],
162
+ [
163
+ 410.249799489975,
164
+ -264.88813757896423,
165
+ 67.25863367319107,
166
+ 0.8283861749181091
167
+ ],
168
+ [
169
+ 410.2030098438263,
170
+ -266.8197453022003,
171
+ 67.0810267329216,
172
+ 0.38779525531764464
173
+ ],
174
+ [
175
+ 410.47030687332153,
176
+ -268.6574161052704,
177
+ 67.13657081127167,
178
+ 0.30824616232394925
179
+ ],
180
+ [
181
+ 411.26224398612976,
182
+ -271.5844213962555,
183
+ 67.4060583114624,
184
+ 0.598634369460212
185
+ ],
186
+ [
187
+ 412.2091233730316,
188
+ -273.91138672828674,
189
+ 67.86694377660751,
190
+ 0.7210515817832327
191
+ ],
192
+ [
193
+ 413.478285074234,
194
+ -276.05339884757996,
195
+ 68.53117793798447,
196
+ 0.9875120053998807
197
+ ],
198
+ [
199
+ 415.25793075561523,
200
+ -278.788685798645,
201
+ 69.07965987920761,
202
+ 0.93482813940151
203
+ ],
204
+ [
205
+ 416.31218791007996,
206
+ -281.04251623153687,
207
+ 69.30582225322723,
208
+ 0.8932286293520793
209
+ ],
210
+ [
211
+ 417.47355461120605,
212
+ -283.0815613269806,
213
+ 69.49757784605026,
214
+ 0.7132044888348353
215
+ ],
216
+ [
217
+ 419.42936182022095,
218
+ -285.73328256607056,
219
+ 69.61800903081894,
220
+ 0.8020344083252803
221
+ ],
222
+ [
223
+ 421.2401807308197,
224
+ -287.5960171222687,
225
+ 69.78561729192734,
226
+ 0.5619983996266291
227
+ ],
228
+ [
229
+ 423.2463240623474,
230
+ -289.3909513950348,
231
+ 69.92638856172562,
232
+ 0.46285373341564073
233
+ ],
234
+ [
235
+ 426.0267913341522,
236
+ -291.79447889328003,
237
+ 69.67514753341675,
238
+ 0.8050507250937742
239
+ ],
240
+ [
241
+ 428.27266454696655,
242
+ -293.3959364891052,
243
+ 69.68165189027786,
244
+ 0.20716420279299744
245
+ ],
246
+ [
247
+ 432.0083260536194,
248
+ -297.4567115306854,
249
+ 69.24746185541153,
250
+ 0.7931682563308251
251
+ ],
252
+ [
253
+ 434.92546677589417,
254
+ -301.52347683906555,
255
+ 68.84844601154327,
256
+ 0.7980160651461685
257
+ ],
258
+ [
259
+ 435.62188744544983,
260
+ -303.0882477760315,
261
+ 68.54798644781113,
262
+ 0.44356138174555615
263
+ ],
264
+ [
265
+ 436.68070435523987,
266
+ -305.2087128162384,
267
+ 68.15370917320251,
268
+ 0.2869839239201239
269
+ ],
270
+ [
271
+ 439.42898511886597,
272
+ -308.28943848609924,
273
+ 68.37941706180573,
274
+ 0.9702391122902844
275
+ ],
276
+ [
277
+ 440.71048498153687,
278
+ -309.13594365119934,
279
+ 68.54711472988129,
280
+ 0.2607926581207613
281
+ ],
282
+ [
283
+ 441.8005347251892,
284
+ -310.1106584072113,
285
+ 68.72717291116714,
286
+ 0.37431922269312373
287
+ ],
288
+ [
289
+ 443.38569045066833,
290
+ -311.05634570121765,
291
+ 69.8409304022789,
292
+ 1.4916944926423124
293
+ ],
294
+ [
295
+ 443.38569045066833,
296
+ -311.05634570121765,
297
+ 69.8409304022789,
298
+ 0.0
299
+ ],
300
+ [
301
+ 447.18214869499207,
302
+ -307.6777458190918,
303
+ 75.19669085741043,
304
+ 3.4504178828495595
305
+ ],
306
+ [
307
+ 477.8321087360382,
308
+ -290.84423184394836,
309
+ 101.76485031843185,
310
+ 22.86364688194979
311
+ ],
312
+ [
313
+ 480.1974594593048,
314
+ -293.7803864479065,
315
+ 104.24493998289108,
316
+ 3.0270983564032163
317
+ ],
318
+ [
319
+ 480.38843274116516,
320
+ -298.096626996994,
321
+ 104.92163151502609,
322
+ 1.307074667580104
323
+ ],
324
+ [
325
+ 480.93128204345703,
326
+ -299.40634965896606,
327
+ 104.97692972421646,
328
+ 1.6152765920577823
329
+ ],
330
+ [
331
+ 481.8103611469269,
332
+ -299.5704114437103,
333
+ 103.33967953920364,
334
+ 1.9802781871839041
335
+ ],
336
+ [
337
+ 481.7497730255127,
338
+ -300.0728487968445,
339
+ 95.33065557479858,
340
+ 1.85837762263489
341
+ ],
342
+ [
343
+ 481.4143180847168,
344
+ -300.2975583076477,
345
+ 93.49677711725235,
346
+ 0.261037541088642
347
+ ],
348
+ [
349
+ 478.98510098457336,
350
+ -301.45540833473206,
351
+ 88.12548220157623,
352
+ 0.6985828934883531
353
+ ],
354
+ [
355
+ 476.525753736496,
356
+ -302.2834360599518,
357
+ 85.28055995702744,
358
+ 0.2963559523011386
359
+ ],
360
+ [
361
+ 472.2505211830139,
362
+ -302.6594817638397,
363
+ 82.00187981128693,
364
+ 0.7041119517286946
365
+ ],
366
+ [
367
+ 468.26717257499695,
368
+ -302.50871181488037,
369
+ 77.92379707098007,
370
+ 1.3755517660178722
371
+ ],
372
+ [
373
+ 466.5735363960266,
374
+ -302.5636076927185,
375
+ 72.92819023132324,
376
+ 1.3791052933809882
377
+ ],
378
+ [
379
+ 464.87680077552795,
380
+ -301.6646206378937,
381
+ 71.15648686885834,
382
+ 2.4998905778327973
383
+ ],
384
+ [
385
+ 464.87680077552795,
386
+ -301.6646206378937,
387
+ 71.15648686885834,
388
+ 0.0
389
+ ],
390
+ [
391
+ 465.7115936279297,
392
+ -300.4785478115082,
393
+ 71.66124135255814,
394
+ 1.3551763449878587
395
+ ],
396
+ [
397
+ 466.6639566421509,
398
+ -299.6499538421631,
399
+ 71.86450809240341,
400
+ 0.383017351331154
401
+ ],
402
+ [
403
+ 469.5872962474823,
404
+ -296.89112305641174,
405
+ 72.15959578752518,
406
+ 0.5719700290396695
407
+ ],
408
+ [
409
+ 470.62623500823975,
410
+ -295.5724596977234,
411
+ 71.68501615524292,
412
+ 1.0666412430889527
413
+ ],
414
+ [
415
+ 471.24117612838745,
416
+ -294.57518458366394,
417
+ 71.20323926210403,
418
+ 1.2671700403235047
419
+ ],
420
+ [
421
+ 471.86627984046936,
422
+ -293.3160364627838,
423
+ 70.7450732588768,
424
+ 1.162714820739517
425
+ ],
426
+ [
427
+ 471.9564914703369,
428
+ -292.3278510570526,
429
+ 70.3180655837059,
430
+ 1.1927029402113951
431
+ ],
432
+ [
433
+ 472.4558889865875,
434
+ -290.9247577190399,
435
+ 70.19450515508652,
436
+ 0.4260640570352108
437
+ ],
438
+ [
439
+ 472.46620059013367,
440
+ -290.2967631816864,
441
+ 69.89384442567825,
442
+ 0.3577590023981031
443
+ ],
444
+ [
445
+ 472.6879596710205,
446
+ -289.3086075782776,
447
+ 69.69974935054779,
448
+ 0.6082943680842399
449
+ ],
450
+ [
451
+ 473.2133448123932,
452
+ -288.11249136924744,
453
+ 69.6849673986435,
454
+ 0.7784642905783601
455
+ ],
456
+ [
457
+ 474.22608733177185,
458
+ -286.23321652412415,
459
+ 69.78163868188858,
460
+ 1.0109561683366226
461
+ ],
462
+ [
463
+ 475.2237796783447,
464
+ -284.4102680683136,
465
+ 69.72207874059677,
466
+ 0.72760074338533
467
+ ],
468
+ [
469
+ 476.37462615966797,
470
+ -282.3224663734436,
471
+ 69.65924054384232,
472
+ 0.7188929097486061
473
+ ],
474
+ [
475
+ 478.12363505363464,
476
+ -279.3165445327759,
477
+ 69.53620910644531,
478
+ 0.7712920549249944
479
+ ],
480
+ [
481
+ 479.167103767395,
482
+ -277.4237394332886,
483
+ 69.16673481464386,
484
+ 0.533892346178185
485
+ ],
486
+ [
487
+ 481.04536533355713,
488
+ -275.0835418701172,
489
+ 69.099061191082,
490
+ 0.39611320554436064
491
+ ]
492
+ ],
493
+ "repaired": [
494
+ [
495
+ 405.3952395915985,
496
+ -266.4848268032074,
497
+ 77.30727642774582,
498
+ 1.0026012244839428
499
+ ],
500
+ [
501
+ 407.94217586517334,
502
+ -262.9442811012268,
503
+ 74.60123300552368,
504
+ 1.3657479959334908
505
+ ],
506
+ [
507
+ 409.8564088344574,
508
+ -261.36380434036255,
509
+ 70.43160498142242,
510
+ 1.1458944063231267
511
+ ],
512
+ [
513
+ 410.4922115802765,
514
+ -261.55197620391846,
515
+ 68.55341047048569,
516
+ 0.4947161007264918
517
+ ],
518
+ [
519
+ 410.99587082862854,
520
+ -262.1247172355652,
521
+ 68.66680085659027,
522
+ 0.2873870432659057
523
+ ],
524
+ [
525
+ 410.64849495887756,
526
+ -263.4833753108978,
527
+ 67.90655106306076,
528
+ 1.005438845206848
529
+ ],
530
+ [
531
+ 410.249799489975,
532
+ -264.88813757896423,
533
+ 67.25863367319107,
534
+ 0.8283886906118779
535
+ ],
536
+ [
537
+ 410.2030098438263,
538
+ -266.8197453022003,
539
+ 67.0810267329216,
540
+ 0.3877914246056837
541
+ ],
542
+ [
543
+ 410.47030687332153,
544
+ -268.6574161052704,
545
+ 67.13657081127167,
546
+ 0.30825180697555843
547
+ ],
548
+ [
549
+ 411.26224398612976,
550
+ -271.5844213962555,
551
+ 67.4060583114624,
552
+ 0.5986298102119793
553
+ ],
554
+ [
555
+ 412.2091233730316,
556
+ -273.91138672828674,
557
+ 67.86694377660751,
558
+ 0.7210528664322468
559
+ ],
560
+ [
561
+ 413.478285074234,
562
+ -276.05339884757996,
563
+ 68.53117793798447,
564
+ 0.9875115807486567
565
+ ],
566
+ [
567
+ 415.25793075561523,
568
+ -278.788685798645,
569
+ 69.07965987920761,
570
+ 0.9348270279683347
571
+ ],
572
+ [
573
+ 416.31218791007996,
574
+ -281.04251623153687,
575
+ 69.30582225322723,
576
+ 0.893226355836123
577
+ ],
578
+ [
579
+ 417.47355461120605,
580
+ -283.0815613269806,
581
+ 69.49757784605026,
582
+ 0.7132070899332486
583
+ ],
584
+ [
585
+ 419.42936182022095,
586
+ -285.73328256607056,
587
+ 69.61800903081894,
588
+ 0.8020364942207572
589
+ ],
590
+ [
591
+ 421.2401807308197,
592
+ -287.5960171222687,
593
+ 69.78561729192734,
594
+ 0.5619981614907023
595
+ ],
596
+ [
597
+ 423.2463240623474,
598
+ -289.3909513950348,
599
+ 69.92638856172562,
600
+ 0.46285503790783367
601
+ ],
602
+ [
603
+ 426.0267913341522,
604
+ -291.79447889328003,
605
+ 69.67514753341675,
606
+ 0.8050484874705062
607
+ ],
608
+ [
609
+ 428.27266454696655,
610
+ -293.3959364891052,
611
+ 69.68165189027786,
612
+ 0.20716645470461623
613
+ ],
614
+ [
615
+ 432.0083260536194,
616
+ -297.4567115306854,
617
+ 69.24746185541153,
618
+ 0.7931690296907629
619
+ ],
620
+ [
621
+ 434.92546677589417,
622
+ -301.52347683906555,
623
+ 68.84844601154327,
624
+ 0.798016443296962
625
+ ],
626
+ [
627
+ 435.62188744544983,
628
+ -303.0882477760315,
629
+ 68.54798644781113,
630
+ 0.4435653799645006
631
+ ],
632
+ [
633
+ 436.68070435523987,
634
+ -305.2087128162384,
635
+ 68.15370917320251,
636
+ 0.28698608075697013
637
+ ],
638
+ [
639
+ 439.42898511886597,
640
+ -308.28943848609924,
641
+ 68.37941706180573,
642
+ 0.9702357617128466
643
+ ],
644
+ [
645
+ 440.71048498153687,
646
+ -309.13594365119934,
647
+ 68.54711472988129,
648
+ 0.26079189738927655
649
+ ],
650
+ [
651
+ 441.8005347251892,
652
+ -310.1106584072113,
653
+ 68.72717291116714,
654
+ 0.37431891743022544
655
+ ],
656
+ [
657
+ 443.38569045066833,
658
+ -311.05634570121765,
659
+ 69.8409304022789,
660
+ 1.491698332919788
661
+ ],
662
+ [
663
+ 443.38569045066833,
664
+ -311.05634570121765,
665
+ 69.8409304022789,
666
+ 1.7075472925031877e-06
667
+ ],
668
+ [
669
+ 447.18214869499207,
670
+ -307.6777458190918,
671
+ 75.19669085741043,
672
+ 3.4504156787257734
673
+ ],
674
+ [
675
+ 463.68980407714844,
676
+ -300.72906613349915,
677
+ 89.72081542015076,
678
+ 12.674236560287447
679
+ ],
680
+ [
681
+ 480.1974594593048,
682
+ -293.7803864479065,
683
+ 104.24493998289108,
684
+ 12.674236768214145
685
+ ],
686
+ [
687
+ 480.38843274116516,
688
+ -298.096626996994,
689
+ 104.92163151502609,
690
+ 1.3070758071922286
691
+ ],
692
+ [
693
+ 480.93128204345703,
694
+ -299.40634965896606,
695
+ 104.97692972421646,
696
+ 1.6152767662419791
697
+ ],
698
+ [
699
+ 481.8103611469269,
700
+ -299.5704114437103,
701
+ 103.33967953920364,
702
+ 1.9802748826216197
703
+ ],
704
+ [
705
+ 481.7497730255127,
706
+ -300.0728487968445,
707
+ 95.33065557479858,
708
+ 1.8583766643330628
709
+ ],
710
+ [
711
+ 481.4143180847168,
712
+ -300.2975583076477,
713
+ 93.49677711725235,
714
+ 0.2610378570244182
715
+ ],
716
+ [
717
+ 478.98510098457336,
718
+ -301.45540833473206,
719
+ 88.12548220157623,
720
+ 0.698584362238088
721
+ ],
722
+ [
723
+ 476.525753736496,
724
+ -302.2834360599518,
725
+ 85.28055995702744,
726
+ 0.2963546936246488
727
+ ],
728
+ [
729
+ 472.2505211830139,
730
+ -302.6594817638397,
731
+ 82.00187981128693,
732
+ 0.7041141289245489
733
+ ],
734
+ [
735
+ 468.26717257499695,
736
+ -302.50871181488037,
737
+ 77.92379707098007,
738
+ 1.3755480972272647
739
+ ],
740
+ [
741
+ 466.5735363960266,
742
+ -302.5636076927185,
743
+ 72.92819023132324,
744
+ 1.379106191721616
745
+ ],
746
+ [
747
+ 464.87680077552795,
748
+ -301.6646206378937,
749
+ 71.15648686885834,
750
+ 2.4998902489133235
751
+ ],
752
+ [
753
+ 464.87680077552795,
754
+ -301.6646206378937,
755
+ 71.15648686885834,
756
+ 1.7075472925031877e-06
757
+ ],
758
+ [
759
+ 465.7115936279297,
760
+ -300.4785478115082,
761
+ 71.66124135255814,
762
+ 1.3551714316651566
763
+ ],
764
+ [
765
+ 466.6639566421509,
766
+ -299.6499538421631,
767
+ 71.86450809240341,
768
+ 0.38302194066100415
769
+ ],
770
+ [
771
+ 469.5872962474823,
772
+ -296.89112305641174,
773
+ 72.15959578752518,
774
+ 0.5719632821189707
775
+ ],
776
+ [
777
+ 470.62623500823975,
778
+ -295.5724596977234,
779
+ 71.68501615524292,
780
+ 1.066639349271138
781
+ ],
782
+ [
783
+ 471.24117612838745,
784
+ -294.57518458366394,
785
+ 71.20323926210403,
786
+ 1.2671696192377029
787
+ ],
788
+ [
789
+ 471.86627984046936,
790
+ -293.3160364627838,
791
+ 70.7450732588768,
792
+ 1.1627171070003433
793
+ ],
794
+ [
795
+ 471.9564914703369,
796
+ -292.3278510570526,
797
+ 70.3180655837059,
798
+ 1.1927019867610882
799
+ ],
800
+ [
801
+ 472.4558889865875,
802
+ -290.9247577190399,
803
+ 70.19450515508652,
804
+ 0.42606266757747585
805
+ ],
806
+ [
807
+ 472.46620059013367,
808
+ -290.2967631816864,
809
+ 69.89384442567825,
810
+ 0.35776147357233123
811
+ ],
812
+ [
813
+ 472.6879596710205,
814
+ -289.3086075782776,
815
+ 69.69974935054779,
816
+ 0.608298039616038
817
+ ],
818
+ [
819
+ 473.2133448123932,
820
+ -288.11249136924744,
821
+ 69.6849673986435,
822
+ 0.778462241750048
823
+ ],
824
+ [
825
+ 474.22608733177185,
826
+ -286.23321652412415,
827
+ 69.78163868188858,
828
+ 1.0109573397230374
829
+ ],
830
+ [
831
+ 475.2237796783447,
832
+ -284.4102680683136,
833
+ 69.72207874059677,
834
+ 0.7276000855575298
835
+ ],
836
+ [
837
+ 476.37462615966797,
838
+ -282.3224663734436,
839
+ 69.65924054384232,
840
+ 0.7188920386321677
841
+ ],
842
+ [
843
+ 478.12363505363464,
844
+ -279.3165445327759,
845
+ 69.53620910644531,
846
+ 0.771291524332582
847
+ ],
848
+ [
849
+ 479.167103767395,
850
+ -277.4237394332886,
851
+ 69.16673481464386,
852
+ 0.5338931147198002
853
+ ],
854
+ [
855
+ 481.04536533355713,
856
+ -275.0835418701172,
857
+ 69.099061191082,
858
+ 0.39611166033298484
859
+ ]
860
+ ]
861
+ },
862
+ "capture_start_seconds": 45.49140000343323,
863
+ "capture_end_seconds": 45.49140000343323,
864
+ "video_time_basis": "local_row / 30 fps"
865
+ },
866
+ {
867
+ "confidence": "MEDIUM",
868
+ "end": 5362,
869
+ "event_id": "right:5362-5362:branch_discontinuity",
870
+ "evidence": {
871
+ "anchor_rotation_deg": 14.322734395178589,
872
+ "anchor_translation_mm": 36.157976267818334,
873
+ "branch_unambiguous": false,
874
+ "duration_frames": 1,
875
+ "endpoint_return_consistent": true,
876
+ "fit_converged": true,
877
+ "fit_iterations": 0,
878
+ "left_anchor": 5361,
879
+ "left_context_frames": 15,
880
+ "observed_inlier_frames": 0,
881
+ "physical": true,
882
+ "prediction_rotation_max_deg": 7.1613671975892945,
883
+ "prediction_translation_max_mm": 18.078988133909167,
884
+ "reconstructed_max_step_rotation_deg": 7.161367197589416,
885
+ "reconstructed_max_step_translation_mm": 18.078988133909167,
886
+ "replaced_frames": 1,
887
+ "right_anchor": 5363,
888
+ "right_context_frames": 15,
889
+ "rotation_inlier_threshold_deg": 4.5746407089529395,
890
+ "rotation_residual_p95_deg": 5.99864660941583,
891
+ "translation_inlier_threshold_mm": 17.493324801605226,
892
+ "translation_residual_p95_mm": 14.470892034462283
893
+ },
894
+ "kind": "branch_discontinuity",
895
+ "left_context_end": 5361,
896
+ "method": "endpoint_se3",
897
+ "replaced_frames": [
898
+ 5362
899
+ ],
900
+ "right_context_start": 5363,
901
+ "seed_frames": [
902
+ 5362
903
+ ],
904
+ "side": "right",
905
+ "start": 5362,
906
+ "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_007_seg01.parquet::right:5362-5362:branch_discontinuity",
907
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg01.parquet",
908
+ "source_start_row": 5362,
909
+ "source_end_row": 5362,
910
+ "local_start_row": 3490,
911
+ "local_end_row": 3490,
912
+ "local_start_seconds": 116.33333333333333,
913
+ "local_end_seconds": 116.33333333333333,
914
+ "video_links": {
915
+ "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/view_middle.mp4#t=115.333,117.333",
916
+ "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/wrist_right.mp4#t=115.333,117.333",
917
+ "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/view_left.mp4#t=115.333,117.333",
918
+ "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/view_right.mp4#t=115.333,117.333"
919
+ },
920
+ "chart": {
921
+ "seconds": [
922
+ 115.33333333333333,
923
+ 115.36666666666666,
924
+ 115.4,
925
+ 115.43333333333334,
926
+ 115.46666666666667,
927
+ 115.5,
928
+ 115.53333333333333,
929
+ 115.56666666666666,
930
+ 115.6,
931
+ 115.63333333333334,
932
+ 115.66666666666667,
933
+ 115.7,
934
+ 115.73333333333333,
935
+ 115.76666666666667,
936
+ 115.8,
937
+ 115.83333333333333,
938
+ 115.86666666666666,
939
+ 115.9,
940
+ 115.93333333333334,
941
+ 115.96666666666667,
942
+ 116.0,
943
+ 116.03333333333333,
944
+ 116.06666666666666,
945
+ 116.1,
946
+ 116.13333333333334,
947
+ 116.16666666666667,
948
+ 116.2,
949
+ 116.23333333333333,
950
+ 116.26666666666667,
951
+ 116.3,
952
+ 116.33333333333333,
953
+ 116.36666666666666,
954
+ 116.4,
955
+ 116.43333333333334,
956
+ 116.46666666666667,
957
+ 116.5,
958
+ 116.53333333333333,
959
+ 116.56666666666666,
960
+ 116.6,
961
+ 116.63333333333334,
962
+ 116.66666666666667,
963
+ 116.7,
964
+ 116.73333333333333,
965
+ 116.76666666666667,
966
+ 116.8,
967
+ 116.83333333333333,
968
+ 116.86666666666666,
969
+ 116.9,
970
+ 116.93333333333334,
971
+ 116.96666666666667,
972
+ 117.0,
973
+ 117.03333333333333,
974
+ 117.06666666666666,
975
+ 117.1,
976
+ 117.13333333333334,
977
+ 117.16666666666667,
978
+ 117.2,
979
+ 117.23333333333333,
980
+ 117.26666666666667,
981
+ 117.3,
982
+ 117.33333333333333
983
+ ],
984
+ "sampled": false,
985
+ "raw": [
986
+ [
987
+ 482.6417863368988,
988
+ -86.38282120227814,
989
+ 102.5238186120987,
990
+ 1.0699223650638725
991
+ ],
992
+ [
993
+ 481.9776117801666,
994
+ -88.21597695350647,
995
+ 102.17894613742828,
996
+ 0.9728038341819308
997
+ ],
998
+ [
999
+ 481.3976287841797,
1000
+ -90.10819345712662,
1001
+ 101.83504223823547,
1002
+ 0.8504803665238833
1003
+ ],
1004
+ [
1005
+ 480.30874133110046,
1006
+ -93.10565143823624,
1007
+ 101.14873200654984,
1008
+ 1.2298536543896033
1009
+ ],
1010
+ [
1011
+ 479.3519675731659,
1012
+ -95.54847329854965,
1013
+ 100.70785880088806,
1014
+ 0.9614921365896332
1015
+ ],
1016
+ [
1017
+ 478.06599736213684,
1018
+ -99.0297943353653,
1019
+ 100.23587942123413,
1020
+ 1.3267856724201412
1021
+ ],
1022
+ [
1023
+ 477.4029552936554,
1024
+ -100.81177204847336,
1025
+ 99.97809678316116,
1026
+ 0.6936751213834494
1027
+ ],
1028
+ [
1029
+ 476.21485590934753,
1030
+ -104.16610538959503,
1031
+ 99.56713020801544,
1032
+ 1.27032972329257
1033
+ ],
1034
+ [
1035
+ 475.4602611064911,
1036
+ -106.38341307640076,
1037
+ 99.41110014915466,
1038
+ 0.8594695811168254
1039
+ ],
1040
+ [
1041
+ 474.7545123100281,
1042
+ -108.01244527101517,
1043
+ 99.1920605301857,
1044
+ 0.5771188811820182
1045
+ ],
1046
+ [
1047
+ 472.6371765136719,
1048
+ -110.65034568309784,
1049
+ 98.56167435646057,
1050
+ 1.0833199188824036
1051
+ ],
1052
+ [
1053
+ 472.2934067249298,
1054
+ -110.67650467157364,
1055
+ 98.39799255132675,
1056
+ 0.2603357266800196
1057
+ ],
1058
+ [
1059
+ 471.797913312912,
1060
+ -110.65922677516937,
1061
+ 98.1791615486145,
1062
+ 0.32266275965787816
1063
+ ],
1064
+ [
1065
+ 471.53767943382263,
1066
+ -110.98319292068481,
1067
+ 98.21616113185883,
1068
+ 0.4019632366437493
1069
+ ],
1070
+ [
1071
+ 471.58321738243103,
1072
+ -111.64461076259613,
1073
+ 98.4615907073021,
1074
+ 0.752940509568698
1075
+ ],
1076
+ [
1077
+ 471.8729853630066,
1078
+ -112.25245147943497,
1079
+ 98.8491103053093,
1080
+ 0.8283149874325745
1081
+ ],
1082
+ [
1083
+ 472.23949432373047,
1084
+ -112.9891574382782,
1085
+ 99.13617372512817,
1086
+ 1.2220276965549817
1087
+ ],
1088
+ [
1089
+ 472.19833731651306,
1090
+ -113.14865946769714,
1091
+ 99.11257028579712,
1092
+ 0.1344255265097333
1093
+ ],
1094
+ [
1095
+ 471.7372953891754,
1096
+ -114.32939022779465,
1097
+ 98.95529597997665,
1098
+ 0.46405966717572
1099
+ ],
1100
+ [
1101
+ 471.27509117126465,
1102
+ -115.37854373455048,
1103
+ 98.83590042591095,
1104
+ 0.33556546883656846
1105
+ ],
1106
+ [
1107
+ 470.8123505115509,
1108
+ -116.54577404260635,
1109
+ 98.66075217723846,
1110
+ 0.41568672730627626
1111
+ ],
1112
+ [
1113
+ 468.54084730148315,
1114
+ -125.95759332180023,
1115
+ 98.05263578891754,
1116
+ 3.256850709505281
1117
+ ],
1118
+ [
1119
+ 468.04434061050415,
1120
+ -127.95864045619965,
1121
+ 97.93635457754135,
1122
+ 0.6803136242516329
1123
+ ],
1124
+ [
1125
+ 466.75318479537964,
1126
+ -132.8757405281067,
1127
+ 97.42332994937897,
1128
+ 1.501265446095244
1129
+ ],
1130
+ [
1131
+ 465.04878997802734,
1132
+ -138.11582326889038,
1133
+ 96.91934287548065,
1134
+ 1.6990786792420858
1135
+ ],
1136
+ [
1137
+ 464.2873704433441,
1138
+ -140.2239054441452,
1139
+ 96.68826311826706,
1140
+ 0.634201880531052
1141
+ ],
1142
+ [
1143
+ 463.51557970046997,
1144
+ -142.3112154006958,
1145
+ 96.48702293634415,
1146
+ 0.6710365436720716
1147
+ ],
1148
+ [
1149
+ 461.31905913352966,
1150
+ -148.59619736671448,
1151
+ 96.15908563137054,
1152
+ 1.9655955073746507
1153
+ ],
1154
+ [
1155
+ 460.19744873046875,
1156
+ -155.87562322616577,
1157
+ 96.87748551368713,
1158
+ 2.476238166732308
1159
+ ],
1160
+ [
1161
+ 460.0863456726074,
1162
+ -157.8071266412735,
1163
+ 99.19077903032303,
1164
+ 0.8883636241092048
1165
+ ],
1166
+ [
1167
+ 460.8059525489807,
1168
+ -156.60016238689423,
1169
+ 103.1566932797432,
1170
+ 1.227401411359002
1171
+ ],
1172
+ [
1173
+ 469.0019190311432,
1174
+ -133.232980966568,
1175
+ 124.17123466730118,
1176
+ 13.154126005146834
1177
+ ],
1178
+ [
1179
+ 468.2603180408478,
1180
+ -127.55070626735687,
1181
+ 121.89370393753052,
1182
+ 1.806012370689099
1183
+ ],
1184
+ [
1185
+ 469.16085481643677,
1186
+ -120.99438905715942,
1187
+ 114.85791206359863,
1188
+ 1.3950081530325555
1189
+ ],
1190
+ [
1191
+ 471.3348150253296,
1192
+ -117.0467883348465,
1193
+ 113.48191648721695,
1194
+ 0.8862558354619806
1195
+ ],
1196
+ [
1197
+ 476.11477971076965,
1198
+ -109.30580645799637,
1199
+ 115.46096205711365,
1200
+ 2.885375603303403
1201
+ ],
1202
+ [
1203
+ 482.62497782707214,
1204
+ -100.5363017320633,
1205
+ 118.9471185207367,
1206
+ 3.6422203374050244
1207
+ ],
1208
+ [
1209
+ 486.91871762275696,
1210
+ -95.39701789617538,
1211
+ 120.80421298742294,
1212
+ 2.0553909818805196
1213
+ ],
1214
+ [
1215
+ 489.92449045181274,
1216
+ -91.97371453046799,
1217
+ 122.24019318819046,
1218
+ 1.5445050787847734
1219
+ ],
1220
+ [
1221
+ 493.2052195072174,
1222
+ -88.49091082811356,
1223
+ 123.24754893779755,
1224
+ 1.534008673259228
1225
+ ],
1226
+ [
1227
+ 497.7656304836273,
1228
+ -83.81148427724838,
1229
+ 123.11076372861862,
1230
+ 1.5800288364120265
1231
+ ],
1232
+ [
1233
+ 502.25013494491577,
1234
+ -78.88338714838028,
1235
+ 120.88244408369064,
1236
+ 1.1248985727454062
1237
+ ],
1238
+ [
1239
+ 504.4797658920288,
1240
+ -76.16361230611801,
1241
+ 118.05140972137451,
1242
+ 0.36226425314070737
1243
+ ],
1244
+ [
1245
+ 504.9586892127991,
1246
+ -74.23321902751923,
1247
+ 112.67553269863129,
1248
+ 0.9259078287512869
1249
+ ],
1250
+ [
1251
+ 504.2301416397095,
1252
+ -73.53686541318893,
1253
+ 108.23288559913635,
1254
+ 1.2650125542207573
1255
+ ],
1256
+ [
1257
+ 502.7565360069275,
1258
+ -73.17056506872177,
1259
+ 104.55070436000824,
1260
+ 0.5984803731955305
1261
+ ],
1262
+ [
1263
+ 500.5977749824524,
1264
+ -72.54862785339355,
1265
+ 101.59139335155487,
1266
+ 0.3897680458459791
1267
+ ],
1268
+ [
1269
+ 498.7626075744629,
1270
+ -72.14441150426865,
1271
+ 100.40789097547531,
1272
+ 0.16756293682862877
1273
+ ],
1274
+ [
1275
+ 497.13021516799927,
1276
+ -71.62202894687653,
1277
+ 99.86557811498642,
1278
+ 0.434728250187133
1279
+ ],
1280
+ [
1281
+ 495.5774247646332,
1282
+ -70.73014974594116,
1283
+ 99.04865175485611,
1284
+ 0.6330498384917451
1285
+ ],
1286
+ [
1287
+ 494.66970562934875,
1288
+ -70.08381932973862,
1289
+ 97.4685326218605,
1290
+ 0.7846167550749329
1291
+ ],
1292
+ [
1293
+ 494.3259060382843,
1294
+ -69.4279670715332,
1295
+ 94.78488564491272,
1296
+ 0.9612229794854422
1297
+ ],
1298
+ [
1299
+ 493.51173639297485,
1300
+ -69.5885568857193,
1301
+ 90.22792428731918,
1302
+ 1.5198521926481185
1303
+ ],
1304
+ [
1305
+ 492.89509654045105,
1306
+ -69.63885575532913,
1307
+ 88.47497403621674,
1308
+ 0.3499492093772542
1309
+ ],
1310
+ [
1311
+ 492.0858144760132,
1312
+ -69.56187635660172,
1313
+ 87.66647428274155,
1314
+ 0.18181937454318092
1315
+ ],
1316
+ [
1317
+ 490.0558590888977,
1318
+ -70.0441375374794,
1319
+ 88.03591877222061,
1320
+ 0.8465483791750913
1321
+ ],
1322
+ [
1323
+ 487.3320162296295,
1324
+ -71.41244411468506,
1325
+ 90.98231047391891,
1326
+ 0.9126290310668641
1327
+ ],
1328
+ [
1329
+ 483.573853969574,
1330
+ -73.61067086458206,
1331
+ 95.2826589345932,
1332
+ 1.1897701444176634
1333
+ ],
1334
+ [
1335
+ 476.9265949726105,
1336
+ -77.86422967910767,
1337
+ 100.2873107790947,
1338
+ 1.6635422782819314
1339
+ ],
1340
+ [
1341
+ 470.6611931324005,
1342
+ -82.16457813978195,
1343
+ 102.41379588842392,
1344
+ 1.3540107211031196
1345
+ ],
1346
+ [
1347
+ 463.70863914489746,
1348
+ -86.99561655521393,
1349
+ 102.02021896839142,
1350
+ 1.7549197408583468
1351
+ ]
1352
+ ],
1353
+ "repaired": [
1354
+ [
1355
+ 482.6417863368988,
1356
+ -86.38282120227814,
1357
+ 102.5238186120987,
1358
+ 1.0699231873185198
1359
+ ],
1360
+ [
1361
+ 481.9776117801666,
1362
+ -88.21597695350647,
1363
+ 102.17894613742828,
1364
+ 0.9728050761451552
1365
+ ],
1366
+ [
1367
+ 481.3976287841797,
1368
+ -90.10819345712662,
1369
+ 101.83504223823547,
1370
+ 0.8504773789668594
1371
+ ],
1372
+ [
1373
+ 480.30874133110046,
1374
+ -93.10565143823624,
1375
+ 101.14873200654984,
1376
+ 1.2298583341403668
1377
+ ],
1378
+ [
1379
+ 479.3519675731659,
1380
+ -95.54847329854965,
1381
+ 100.70785880088806,
1382
+ 0.9614919423016002
1383
+ ],
1384
+ [
1385
+ 478.06599736213684,
1386
+ -99.0297943353653,
1387
+ 100.23587942123413,
1388
+ 1.3267858316691323
1389
+ ],
1390
+ [
1391
+ 477.4029552936554,
1392
+ -100.81177204847336,
1393
+ 99.97809678316116,
1394
+ 0.6936713328363481
1395
+ ],
1396
+ [
1397
+ 476.21485590934753,
1398
+ -104.16610538959503,
1399
+ 99.56713020801544,
1400
+ 1.2703303394428638
1401
+ ],
1402
+ [
1403
+ 475.4602611064911,
1404
+ -106.38341307640076,
1405
+ 99.41110014915466,
1406
+ 0.8594711955809843
1407
+ ],
1408
+ [
1409
+ 474.7545123100281,
1410
+ -108.01244527101517,
1411
+ 99.1920605301857,
1412
+ 0.5771174821707885
1413
+ ],
1414
+ [
1415
+ 472.6371765136719,
1416
+ -110.65034568309784,
1417
+ 98.56167435646057,
1418
+ 1.0833204125258757
1419
+ ],
1420
+ [
1421
+ 472.2934067249298,
1422
+ -110.67650467157364,
1423
+ 98.39799255132675,
1424
+ 0.260335817409963
1425
+ ],
1426
+ [
1427
+ 471.797913312912,
1428
+ -110.65922677516937,
1429
+ 98.1791615486145,
1430
+ 0.32266241764663994
1431
+ ],
1432
+ [
1433
+ 471.53767943382263,
1434
+ -110.98319292068481,
1435
+ 98.21616113185883,
1436
+ 0.4019650702462509
1437
+ ],
1438
+ [
1439
+ 471.58321738243103,
1440
+ -111.64461076259613,
1441
+ 98.4615907073021,
1442
+ 0.7529392258673852
1443
+ ],
1444
+ [
1445
+ 471.8729853630066,
1446
+ -112.25245147943497,
1447
+ 98.8491103053093,
1448
+ 0.8283157170236677
1449
+ ],
1450
+ [
1451
+ 472.23949432373047,
1452
+ -112.9891574382782,
1453
+ 99.13617372512817,
1454
+ 1.2220275589464908
1455
+ ],
1456
+ [
1457
+ 472.19833731651306,
1458
+ -113.14865946769714,
1459
+ 99.11257028579712,
1460
+ 0.13442664335589818
1461
+ ],
1462
+ [
1463
+ 471.7372953891754,
1464
+ -114.32939022779465,
1465
+ 98.95529597997665,
1466
+ 0.4640605999142641
1467
+ ],
1468
+ [
1469
+ 471.27509117126465,
1470
+ -115.37854373455048,
1471
+ 98.83590042591095,
1472
+ 0.33556297353446723
1473
+ ],
1474
+ [
1475
+ 470.8123505115509,
1476
+ -116.54577404260635,
1477
+ 98.66075217723846,
1478
+ 0.4156891934546834
1479
+ ],
1480
+ [
1481
+ 468.54084730148315,
1482
+ -125.95759332180023,
1483
+ 98.05263578891754,
1484
+ 3.256847895058644
1485
+ ],
1486
+ [
1487
+ 468.04434061050415,
1488
+ -127.95864045619965,
1489
+ 97.93635457754135,
1490
+ 0.6803129086526134
1491
+ ],
1492
+ [
1493
+ 466.75318479537964,
1494
+ -132.8757405281067,
1495
+ 97.42332994937897,
1496
+ 1.5012664932204094
1497
+ ],
1498
+ [
1499
+ 465.04878997802734,
1500
+ -138.11582326889038,
1501
+ 96.91934287548065,
1502
+ 1.6990801403202735
1503
+ ],
1504
+ [
1505
+ 464.2873704433441,
1506
+ -140.2239054441452,
1507
+ 96.68826311826706,
1508
+ 0.6342015532683041
1509
+ ],
1510
+ [
1511
+ 463.51557970046997,
1512
+ -142.3112154006958,
1513
+ 96.48702293634415,
1514
+ 0.671033469675006
1515
+ ],
1516
+ [
1517
+ 461.31905913352966,
1518
+ -148.59619736671448,
1519
+ 96.15908563137054,
1520
+ 1.9655989137860297
1521
+ ],
1522
+ [
1523
+ 460.19744873046875,
1524
+ -155.87562322616577,
1525
+ 96.87748551368713,
1526
+ 2.476237367660011
1527
+ ],
1528
+ [
1529
+ 460.0863456726074,
1530
+ -157.8071266412735,
1531
+ 99.19077903032303,
1532
+ 0.8883626511434112
1533
+ ],
1534
+ [
1535
+ 464.5441174507141,
1536
+ -145.52006125450134,
1537
+ 111.6810068488121,
1538
+ 7.1613662360597115
1539
+ ],
1540
+ [
1541
+ 469.0019190311432,
1542
+ -133.232980966568,
1543
+ 124.17123466730118,
1544
+ 7.161368802096247
1545
+ ],
1546
+ [
1547
+ 468.2603180408478,
1548
+ -127.55070626735687,
1549
+ 121.89370393753052,
1550
+ 1.8060134957442366
1551
+ ],
1552
+ [
1553
+ 469.16085481643677,
1554
+ -120.99438905715942,
1555
+ 114.85791206359863,
1556
+ 1.3950095694473457
1557
+ ],
1558
+ [
1559
+ 471.3348150253296,
1560
+ -117.0467883348465,
1561
+ 113.48191648721695,
1562
+ 0.8862564237840634
1563
+ ],
1564
+ [
1565
+ 476.11477971076965,
1566
+ -109.30580645799637,
1567
+ 115.46096205711365,
1568
+ 2.8853739652251424
1569
+ ],
1570
+ [
1571
+ 482.62497782707214,
1572
+ -100.5363017320633,
1573
+ 118.9471185207367,
1574
+ 3.6422207380896228
1575
+ ],
1576
+ [
1577
+ 486.91871762275696,
1578
+ -95.39701789617538,
1579
+ 120.80421298742294,
1580
+ 2.0553940867657285
1581
+ ],
1582
+ [
1583
+ 489.92449045181274,
1584
+ -91.97371453046799,
1585
+ 122.24019318819046,
1586
+ 1.5445045668637145
1587
+ ],
1588
+ [
1589
+ 493.2052195072174,
1590
+ -88.49091082811356,
1591
+ 123.24754893779755,
1592
+ 1.5340079320129971
1593
+ ],
1594
+ [
1595
+ 497.7656304836273,
1596
+ -83.81148427724838,
1597
+ 123.11076372861862,
1598
+ 1.5800272662226214
1599
+ ],
1600
+ [
1601
+ 502.25013494491577,
1602
+ -78.88338714838028,
1603
+ 120.88244408369064,
1604
+ 1.1249006753755175
1605
+ ],
1606
+ [
1607
+ 504.4797658920288,
1608
+ -76.16361230611801,
1609
+ 118.05140972137451,
1610
+ 0.3622646778734997
1611
+ ],
1612
+ [
1613
+ 504.9586892127991,
1614
+ -74.23321902751923,
1615
+ 112.67553269863129,
1616
+ 0.9259080256973147
1617
+ ],
1618
+ [
1619
+ 504.2301416397095,
1620
+ -73.53686541318893,
1621
+ 108.23288559913635,
1622
+ 1.2650167903645457
1623
+ ],
1624
+ [
1625
+ 502.7565360069275,
1626
+ -73.17056506872177,
1627
+ 104.55070436000824,
1628
+ 0.5984779550130415
1629
+ ],
1630
+ [
1631
+ 500.5977749824524,
1632
+ -72.54862785339355,
1633
+ 101.59139335155487,
1634
+ 0.3897664203880398
1635
+ ],
1636
+ [
1637
+ 498.7626075744629,
1638
+ -72.14441150426865,
1639
+ 100.40789097547531,
1640
+ 0.16756239463815012
1641
+ ],
1642
+ [
1643
+ 497.13021516799927,
1644
+ -71.62202894687653,
1645
+ 99.86557811498642,
1646
+ 0.4347273765853793
1647
+ ],
1648
+ [
1649
+ 495.5774247646332,
1650
+ -70.73014974594116,
1651
+ 99.04865175485611,
1652
+ 0.6330503397070504
1653
+ ],
1654
+ [
1655
+ 494.66970562934875,
1656
+ -70.08381932973862,
1657
+ 97.4685326218605,
1658
+ 0.784617169087389
1659
+ ],
1660
+ [
1661
+ 494.3259060382843,
1662
+ -69.4279670715332,
1663
+ 94.78488564491272,
1664
+ 0.9612254123662124
1665
+ ],
1666
+ [
1667
+ 493.51173639297485,
1668
+ -69.5885568857193,
1669
+ 90.22792428731918,
1670
+ 1.5198518805558143
1671
+ ],
1672
+ [
1673
+ 492.89509654045105,
1674
+ -69.63885575532913,
1675
+ 88.47497403621674,
1676
+ 0.3499489005406492
1677
+ ],
1678
+ [
1679
+ 492.0858144760132,
1680
+ -69.56187635660172,
1681
+ 87.66647428274155,
1682
+ 0.18181988538036672
1683
+ ],
1684
+ [
1685
+ 490.0558590888977,
1686
+ -70.0441375374794,
1687
+ 88.03591877222061,
1688
+ 0.8465482963437503
1689
+ ],
1690
+ [
1691
+ 487.3320162296295,
1692
+ -71.41244411468506,
1693
+ 90.98231047391891,
1694
+ 0.9126324122357385
1695
+ ],
1696
+ [
1697
+ 483.573853969574,
1698
+ -73.61067086458206,
1699
+ 95.2826589345932,
1700
+ 1.189766324874909
1701
+ ],
1702
+ [
1703
+ 476.9265949726105,
1704
+ -77.86422967910767,
1705
+ 100.2873107790947,
1706
+ 1.6635407898231334
1707
+ ],
1708
+ [
1709
+ 470.6611931324005,
1710
+ -82.16457813978195,
1711
+ 102.41379588842392,
1712
+ 1.35401022831763
1713
+ ],
1714
+ [
1715
+ 463.70863914489746,
1716
+ -86.99561655521393,
1717
+ 102.02021896839142,
1718
+ 1.75492014830419
1719
+ ]
1720
+ ]
1721
+ },
1722
+ "capture_start_seconds": 120.26913237571716,
1723
+ "capture_end_seconds": 120.26913237571716,
1724
+ "video_time_basis": "local_row / 30 fps"
1725
+ }
1726
+ ]
1727
+ }
data/motherboard/action_repair_events/2026-09-11/episode_007_seg02.json ADDED
@@ -0,0 +1,1812 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_007.parquet",
5
+ "events": [
6
+ {
7
+ "confidence": "HIGH",
8
+ "end": 11524,
9
+ "event_id": "left:11508-11524:known_gap",
10
+ "evidence": {
11
+ "branch_unambiguous": true,
12
+ "duration_frames": 17,
13
+ "fit_converged": true,
14
+ "fit_iterations": 2,
15
+ "independent_loss_evidence": true,
16
+ "left_anchor": 11507,
17
+ "left_context_frames": 15,
18
+ "observed_inlier_frames": 0,
19
+ "physical": true,
20
+ "prediction_rotation_max_deg": 1.8883926662443438,
21
+ "prediction_translation_max_mm": 0.0,
22
+ "reconstructed_max_step_rotation_deg": 0.12942894233738014,
23
+ "reconstructed_max_step_translation_mm": 0.48175749286052183,
24
+ "replaced_frames": 17,
25
+ "review_required": false,
26
+ "right_anchor": 11525,
27
+ "right_context_frames": 15,
28
+ "rotation_inlier_threshold_deg": 2.0,
29
+ "rotation_residual_p95_deg": 114.91567778285882,
30
+ "translation_inlier_threshold_mm": 3.0,
31
+ "translation_residual_p95_mm": 35.90582173242482
32
+ },
33
+ "kind": "known_gap",
34
+ "left_context_end": 11507,
35
+ "method": "robust_se3_hermite",
36
+ "replaced_frames": [
37
+ 11508,
38
+ 11509,
39
+ 11510,
40
+ 11511,
41
+ 11512,
42
+ 11513,
43
+ 11514,
44
+ 11515,
45
+ 11516,
46
+ 11517,
47
+ 11518,
48
+ 11519,
49
+ 11520,
50
+ 11521,
51
+ 11522,
52
+ 11523,
53
+ 11524
54
+ ],
55
+ "right_context_start": 11525,
56
+ "seed_frames": [
57
+ 11508,
58
+ 11509,
59
+ 11510,
60
+ 11511,
61
+ 11512,
62
+ 11513,
63
+ 11514,
64
+ 11515,
65
+ 11516,
66
+ 11517,
67
+ 11518,
68
+ 11519,
69
+ 11520,
70
+ 11521,
71
+ 11522,
72
+ 11523,
73
+ 11524
74
+ ],
75
+ "side": "left",
76
+ "start": 11508,
77
+ "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet::left:11508-11524:known_gap",
78
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet",
79
+ "source_start_row": 11508,
80
+ "source_end_row": 11524,
81
+ "local_start_row": 5408,
82
+ "local_end_row": 5424,
83
+ "local_start_seconds": 180.26666666666668,
84
+ "local_end_seconds": 180.8,
85
+ "video_links": {
86
+ "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_middle.mp4#t=179.267,181.800",
87
+ "wrist_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/wrist_left.mp4#t=179.267,181.800",
88
+ "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_left.mp4#t=179.267,181.800",
89
+ "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_right.mp4#t=179.267,181.800"
90
+ },
91
+ "capture_start_seconds": 184.26710653305054,
92
+ "capture_end_seconds": 184.80454468727112,
93
+ "video_time_basis": "local_row / 30 fps"
94
+ },
95
+ {
96
+ "confidence": "MEDIUM",
97
+ "end": 9206,
98
+ "event_id": "left:9206-9206:branch_discontinuity",
99
+ "evidence": {
100
+ "anchor_rotation_deg": 20.986986089019943,
101
+ "anchor_translation_mm": 53.34502967643309,
102
+ "branch_unambiguous": true,
103
+ "duration_frames": 1,
104
+ "endpoint_return_consistent": false,
105
+ "fit_converged": true,
106
+ "fit_iterations": 0,
107
+ "left_anchor": 9205,
108
+ "left_context_frames": 15,
109
+ "observed_inlier_frames": 1,
110
+ "physical": true,
111
+ "prediction_rotation_max_deg": 10.493493044509972,
112
+ "prediction_translation_max_mm": 26.672514838216546,
113
+ "reconstructed_max_step_rotation_deg": 13.977465376616701,
114
+ "reconstructed_max_step_translation_mm": 34.419846139739306,
115
+ "replaced_frames": 0,
116
+ "right_anchor": 9207,
117
+ "right_context_frames": 15,
118
+ "rotation_inlier_threshold_deg": 5.651300624452402,
119
+ "rotation_residual_p95_deg": 3.4997602628726066,
120
+ "translation_inlier_threshold_mm": 20.0,
121
+ "translation_residual_p95_mm": 7.905862582002085
122
+ },
123
+ "kind": "branch_discontinuity",
124
+ "left_context_end": 9205,
125
+ "method": "endpoint_se3",
126
+ "replaced_frames": [],
127
+ "right_context_start": 9207,
128
+ "seed_frames": [
129
+ 9206
130
+ ],
131
+ "side": "left",
132
+ "start": 9206,
133
+ "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet::left:9206-9206:branch_discontinuity",
134
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet",
135
+ "source_start_row": 9206,
136
+ "source_end_row": 9206,
137
+ "local_start_row": 3106,
138
+ "local_end_row": 3106,
139
+ "local_start_seconds": 103.53333333333333,
140
+ "local_end_seconds": 103.53333333333333,
141
+ "video_links": {
142
+ "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_middle.mp4#t=102.533,104.533",
143
+ "wrist_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/wrist_left.mp4#t=102.533,104.533",
144
+ "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_left.mp4#t=102.533,104.533",
145
+ "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_right.mp4#t=102.533,104.533"
146
+ },
147
+ "chart": {
148
+ "seconds": [
149
+ 102.53333333333333,
150
+ 102.56666666666666,
151
+ 102.6,
152
+ 102.63333333333334,
153
+ 102.66666666666667,
154
+ 102.7,
155
+ 102.73333333333333,
156
+ 102.76666666666667,
157
+ 102.8,
158
+ 102.83333333333333,
159
+ 102.86666666666666,
160
+ 102.9,
161
+ 102.93333333333334,
162
+ 102.96666666666667,
163
+ 103.0,
164
+ 103.03333333333333,
165
+ 103.06666666666666,
166
+ 103.1,
167
+ 103.13333333333334,
168
+ 103.16666666666667,
169
+ 103.2,
170
+ 103.23333333333333,
171
+ 103.26666666666667,
172
+ 103.3,
173
+ 103.33333333333333,
174
+ 103.36666666666666,
175
+ 103.4,
176
+ 103.43333333333334,
177
+ 103.46666666666667,
178
+ 103.5,
179
+ 103.53333333333333,
180
+ 103.56666666666666,
181
+ 103.6,
182
+ 103.63333333333334,
183
+ 103.66666666666667,
184
+ 103.7,
185
+ 103.73333333333333,
186
+ 103.76666666666667,
187
+ 103.8,
188
+ 103.83333333333333,
189
+ 103.86666666666666,
190
+ 103.9,
191
+ 103.93333333333334,
192
+ 103.96666666666667,
193
+ 104.0,
194
+ 104.03333333333333,
195
+ 104.06666666666666,
196
+ 104.1,
197
+ 104.13333333333334,
198
+ 104.16666666666667,
199
+ 104.2,
200
+ 104.23333333333333,
201
+ 104.26666666666667,
202
+ 104.3,
203
+ 104.33333333333333,
204
+ 104.36666666666666,
205
+ 104.4,
206
+ 104.43333333333334,
207
+ 104.46666666666667,
208
+ 104.5,
209
+ 104.53333333333333
210
+ ],
211
+ "sampled": false,
212
+ "raw": [
213
+ [
214
+ 266.02599024772644,
215
+ -323.1574296951294,
216
+ 109.24706608057022,
217
+ 1.279943942184891
218
+ ],
219
+ [
220
+ 272.460401058197,
221
+ -327.2022604942322,
222
+ 106.5957099199295,
223
+ 1.6227327785362229
224
+ ],
225
+ [
226
+ 278.32090854644775,
227
+ -329.7925889492035,
228
+ 101.83586180210114,
229
+ 1.7509033896002146
230
+ ],
231
+ [
232
+ 284.079372882843,
233
+ -330.22186160087585,
234
+ 93.1093692779541,
235
+ 3.2172579619775785
236
+ ],
237
+ [
238
+ 287.4341011047363,
239
+ -330.5896520614624,
240
+ 87.43041008710861,
241
+ 1.0266815590745435
242
+ ],
243
+ [
244
+ 287.49680519104004,
245
+ -329.48973774909973,
246
+ 88.91845494508743,
247
+ 1.774389104005074
248
+ ],
249
+ [
250
+ 286.75076365470886,
251
+ -326.26888155937195,
252
+ 91.33544564247131,
253
+ 3.0767250342491517
254
+ ],
255
+ [
256
+ 287.0325744152069,
257
+ -326.05478167533875,
258
+ 91.35692566633224,
259
+ 0.22899793183473208
260
+ ],
261
+ [
262
+ 288.3221507072449,
263
+ -325.64377784729004,
264
+ 90.7275527715683,
265
+ 0.5809680044128726
266
+ ],
267
+ [
268
+ 288.67512941360474,
269
+ -325.57106018066406,
270
+ 90.46876430511475,
271
+ 0.19912265075237268
272
+ ],
273
+ [
274
+ 290.3337776660919,
275
+ -324.97432827949524,
276
+ 90.61000496149063,
277
+ 0.6353916037214533
278
+ ],
279
+ [
280
+ 295.781672000885,
281
+ -323.10593128204346,
282
+ 92.14004129171371,
283
+ 2.4648439797022723
284
+ ],
285
+ [
286
+ 295.781672000885,
287
+ -323.10593128204346,
288
+ 92.14004129171371,
289
+ 0.0
290
+ ],
291
+ [
292
+ 302.57299542427063,
293
+ -320.9860622882843,
294
+ 90.89843928813934,
295
+ 1.1816147609726417
296
+ ],
297
+ [
298
+ 310.78091263771057,
299
+ -316.07481837272644,
300
+ 90.42178094387054,
301
+ 1.948525290778624
302
+ ],
303
+ [
304
+ 310.78091263771057,
305
+ -316.07481837272644,
306
+ 90.42178094387054,
307
+ 0.0
308
+ ],
309
+ [
310
+ 320.52725553512573,
311
+ -307.78592824935913,
312
+ 91.14763885736465,
313
+ 1.204338949789072
314
+ ],
315
+ [
316
+ 324.31307435035706,
317
+ -303.75152826309204,
318
+ 90.68293869495392,
319
+ 0.6272900705956274
320
+ ],
321
+ [
322
+ 325.11797547340393,
323
+ -302.72236466407776,
324
+ 90.47055244445801,
325
+ 0.3053640756578454
326
+ ],
327
+ [
328
+ 327.78599858283997,
329
+ -296.1147725582123,
330
+ 90.00074118375778,
331
+ 1.2193370888756334
332
+ ],
333
+ [
334
+ 328.79459857940674,
335
+ -288.37335109710693,
336
+ 89.956134557724,
337
+ 1.1920479273681202
338
+ ],
339
+ [
340
+ 328.8991451263428,
341
+ -286.84359788894653,
342
+ 89.90698307752609,
343
+ 0.1722425362479182
344
+ ],
345
+ [
346
+ 329.193651676178,
347
+ -280.4901897907257,
348
+ 89.79225903749466,
349
+ 0.41931542454085674
350
+ ],
351
+ [
352
+ 329.8552930355072,
353
+ -273.7351357936859,
354
+ 89.17629718780518,
355
+ 0.992125340244241
356
+ ],
357
+ [
358
+ 330.6853175163269,
359
+ -267.80861616134644,
360
+ 88.75507861375809,
361
+ 0.9737363519773184
362
+ ],
363
+ [
364
+ 331.5874934196472,
365
+ -247.6513385772705,
366
+ 87.79166638851166,
367
+ 3.4079399299399102
368
+ ],
369
+ [
370
+ 331.5487504005432,
371
+ -245.2334612607956,
372
+ 87.57595717906952,
373
+ 0.6731766329872426
374
+ ],
375
+ [
376
+ 322.33721017837524,
377
+ -227.89786756038666,
378
+ 91.6517972946167,
379
+ 7.902289377796125
380
+ ],
381
+ [
382
+ 313.60989809036255,
383
+ -221.88575565814972,
384
+ 95.58894485235214,
385
+ 4.706765629498876
386
+ ],
387
+ [
388
+ 295.08063197135925,
389
+ -212.2778296470642,
390
+ 104.37002032995224,
391
+ 9.614010538125978
392
+ ],
393
+ [
394
+ 264.8945152759552,
395
+ -198.25105369091034,
396
+ 113.13208192586899,
397
+ 13.977465376616701
398
+ ],
399
+ [
400
+ 247.50667810440063,
401
+ -190.76202809810638,
402
+ 115.30077457427979,
403
+ 7.025174542676379
404
+ ],
405
+ [
406
+ 221.7174768447876,
407
+ -179.5310229063034,
408
+ 113.06412518024445,
409
+ 10.404549147724225
410
+ ],
411
+ [
412
+ 218.19913387298584,
413
+ -177.8176873922348,
414
+ 111.97405308485031,
415
+ 1.387758592882308
416
+ ],
417
+ [
418
+ 212.81352639198303,
419
+ -174.90366101264954,
420
+ 109.81268435716629,
421
+ 2.1820915073729243
422
+ ],
423
+ [
424
+ 208.96483957767487,
425
+ -170.99714279174805,
426
+ 105.84994405508041,
427
+ 1.5068689446840198
428
+ ],
429
+ [
430
+ 208.3021104335785,
431
+ -169.614776968956,
432
+ 104.76890951395035,
433
+ 0.8632455003603424
434
+ ],
435
+ [
436
+ 208.2684338092804,
437
+ -167.68291592597961,
438
+ 103.2281294465065,
439
+ 0.9204080909159219
440
+ ],
441
+ [
442
+ 209.60605144500732,
443
+ -166.8049544095993,
444
+ 103.92562299966812,
445
+ 1.541769165377461
446
+ ],
447
+ [
448
+ 211.04490756988525,
449
+ -166.482612490654,
450
+ 105.74308782815933,
451
+ 1.0619600542638208
452
+ ],
453
+ [
454
+ 215.1469886302948,
455
+ -164.70268368721008,
456
+ 105.99453747272491,
457
+ 0.7955928337729189
458
+ ],
459
+ [
460
+ 217.35025942325592,
461
+ -162.29330003261566,
462
+ 104.7496497631073,
463
+ 0.7368854648388969
464
+ ],
465
+ [
466
+ 218.72647106647491,
467
+ -159.84706580638885,
468
+ 104.12003099918365,
469
+ 0.6528336112663587
470
+ ],
471
+ [
472
+ 221.40741348266602,
473
+ -157.48834609985352,
474
+ 105.50838708877563,
475
+ 0.5140555975030705
476
+ ],
477
+ [
478
+ 223.97494316101074,
479
+ -155.90359270572662,
480
+ 106.36799782514572,
481
+ 0.6714540945143209
482
+ ],
483
+ [
484
+ 225.8833944797516,
485
+ -154.00229394435883,
486
+ 105.59134930372238,
487
+ 0.7667002098477652
488
+ ],
489
+ [
490
+ 227.6795357465744,
491
+ -152.74852514266968,
492
+ 104.30806130170822,
493
+ 1.6311754003141783
494
+ ],
495
+ [
496
+ 229.57199811935425,
497
+ -152.2633582353592,
498
+ 103.25261950492859,
499
+ 2.057599453789722
500
+ ],
501
+ [
502
+ 231.61396384239197,
503
+ -151.7171561717987,
504
+ 101.80456191301346,
505
+ 1.887327285063928
506
+ ],
507
+ [
508
+ 235.19490659236908,
509
+ -151.52794122695923,
510
+ 101.13079845905304,
511
+ 2.821944041287961
512
+ ],
513
+ [
514
+ 237.01930046081543,
515
+ -150.70392191410065,
516
+ 100.2047061920166,
517
+ 1.549434512839415
518
+ ],
519
+ [
520
+ 238.25404047966003,
521
+ -149.66467022895813,
522
+ 99.90144520998001,
523
+ 0.9505043690011529
524
+ ],
525
+ [
526
+ 240.48826098442078,
527
+ -147.90651202201843,
528
+ 99.434033036232,
529
+ 1.6862543652827824
530
+ ],
531
+ [
532
+ 241.86325073242188,
533
+ -146.22077345848083,
534
+ 99.11731630563736,
535
+ 1.0763993393327345
536
+ ],
537
+ [
538
+ 242.50531196594238,
539
+ -144.17435228824615,
540
+ 99.05633330345154,
541
+ 0.6006083759933696
542
+ ],
543
+ [
544
+ 243.7279373407364,
545
+ -141.22766256332397,
546
+ 98.80807250738144,
547
+ 0.7958756247104561
548
+ ],
549
+ [
550
+ 245.30233442783356,
551
+ -138.84341716766357,
552
+ 98.52980077266693,
553
+ 0.9719128314614347
554
+ ],
555
+ [
556
+ 246.96066975593567,
557
+ -136.18561625480652,
558
+ 98.20466488599777,
559
+ 0.8162528258886547
560
+ ],
561
+ [
562
+ 248.6710101366043,
563
+ -132.39312171936035,
564
+ 98.04119169712067,
565
+ 0.6418473386934933
566
+ ],
567
+ [
568
+ 250.26240944862366,
569
+ -129.28612530231476,
570
+ 97.84704446792603,
571
+ 0.7259479468206407
572
+ ],
573
+ [
574
+ 251.67319178581238,
575
+ -125.88296830654144,
576
+ 97.75474667549133,
577
+ 0.6539106243828096
578
+ ]
579
+ ],
580
+ "repaired": [
581
+ [
582
+ 266.02599024772644,
583
+ -323.1574296951294,
584
+ 109.24706608057022,
585
+ 1.279941376587039
586
+ ],
587
+ [
588
+ 272.460401058197,
589
+ -327.2022604942322,
590
+ 106.5957099199295,
591
+ 1.6227316720874538
592
+ ],
593
+ [
594
+ 278.32090854644775,
595
+ -329.7925889492035,
596
+ 101.83586180210114,
597
+ 1.7509034944601867
598
+ ],
599
+ [
600
+ 284.079372882843,
601
+ -330.22186160087585,
602
+ 93.1093692779541,
603
+ 3.2172568002595066
604
+ ],
605
+ [
606
+ 287.4341011047363,
607
+ -330.5896520614624,
608
+ 87.43041008710861,
609
+ 1.0266824833717079
610
+ ],
611
+ [
612
+ 287.49680519104004,
613
+ -329.48973774909973,
614
+ 88.91845494508743,
615
+ 1.7743899793307338
616
+ ],
617
+ [
618
+ 286.75076365470886,
619
+ -326.26888155937195,
620
+ 91.33544564247131,
621
+ 3.076724415404989
622
+ ],
623
+ [
624
+ 287.0325744152069,
625
+ -326.05478167533875,
626
+ 91.35692566633224,
627
+ 0.2289966860311052
628
+ ],
629
+ [
630
+ 288.3221507072449,
631
+ -325.64377784729004,
632
+ 90.7275527715683,
633
+ 0.5809674377486116
634
+ ],
635
+ [
636
+ 288.67512941360474,
637
+ -325.57106018066406,
638
+ 90.46876430511475,
639
+ 0.19912547723056204
640
+ ],
641
+ [
642
+ 290.3337776660919,
643
+ -324.97432827949524,
644
+ 90.61000496149063,
645
+ 0.6353916391567456
646
+ ],
647
+ [
648
+ 295.781672000885,
649
+ -323.10593128204346,
650
+ 92.14004129171371,
651
+ 2.4648450445610766
652
+ ],
653
+ [
654
+ 295.781672000885,
655
+ -323.10593128204346,
656
+ 92.14004129171371,
657
+ 0.0
658
+ ],
659
+ [
660
+ 302.57299542427063,
661
+ -320.9860622882843,
662
+ 90.89843928813934,
663
+ 1.1816193532197552
664
+ ],
665
+ [
666
+ 310.78091263771057,
667
+ -316.07481837272644,
668
+ 90.42178094387054,
669
+ 1.9485217744531484
670
+ ],
671
+ [
672
+ 310.78091263771057,
673
+ -316.07481837272644,
674
+ 90.42178094387054,
675
+ 0.0
676
+ ],
677
+ [
678
+ 320.52725553512573,
679
+ -307.78592824935913,
680
+ 91.14763885736465,
681
+ 1.204337072524177
682
+ ],
683
+ [
684
+ 324.31307435035706,
685
+ -303.75152826309204,
686
+ 90.68293869495392,
687
+ 0.6272909058821693
688
+ ],
689
+ [
690
+ 325.11797547340393,
691
+ -302.72236466407776,
692
+ 90.47055244445801,
693
+ 0.3053623157115757
694
+ ],
695
+ [
696
+ 327.78599858283997,
697
+ -296.1147725582123,
698
+ 90.00074118375778,
699
+ 1.2193343774227186
700
+ ],
701
+ [
702
+ 328.79459857940674,
703
+ -288.37335109710693,
704
+ 89.956134557724,
705
+ 1.1920490271974629
706
+ ],
707
+ [
708
+ 328.8991451263428,
709
+ -286.84359788894653,
710
+ 89.90698307752609,
711
+ 0.17224241448488806
712
+ ],
713
+ [
714
+ 329.193651676178,
715
+ -280.4901897907257,
716
+ 89.79225903749466,
717
+ 0.41931549458032696
718
+ ],
719
+ [
720
+ 329.8552930355072,
721
+ -273.7351357936859,
722
+ 89.17629718780518,
723
+ 0.9921259622704122
724
+ ],
725
+ [
726
+ 330.6853175163269,
727
+ -267.80861616134644,
728
+ 88.75507861375809,
729
+ 0.973734009571809
730
+ ],
731
+ [
732
+ 331.5874934196472,
733
+ -247.6513385772705,
734
+ 87.79166638851166,
735
+ 3.4079415857852005
736
+ ],
737
+ [
738
+ 331.5487504005432,
739
+ -245.2334612607956,
740
+ 87.57595717906952,
741
+ 0.6731765353769056
742
+ ],
743
+ [
744
+ 322.33721017837524,
745
+ -227.89786756038666,
746
+ 91.6517972946167,
747
+ 7.902289563600104
748
+ ],
749
+ [
750
+ 313.60989809036255,
751
+ -221.88575565814972,
752
+ 95.58894485235214,
753
+ 4.706764397918632
754
+ ],
755
+ [
756
+ 295.08063197135925,
757
+ -212.2778296470642,
758
+ 104.37002032995224,
759
+ 9.614012528215115
760
+ ],
761
+ [
762
+ 264.8945152759552,
763
+ -198.25105369091034,
764
+ 113.13208192586899,
765
+ 13.977464002877861
766
+ ],
767
+ [
768
+ 247.50667810440063,
769
+ -190.76202809810638,
770
+ 115.30077457427979,
771
+ 7.0251744739754045
772
+ ],
773
+ [
774
+ 221.7174768447876,
775
+ -179.5310229063034,
776
+ 113.06412518024445,
777
+ 10.404545910619824
778
+ ],
779
+ [
780
+ 218.19913387298584,
781
+ -177.8176873922348,
782
+ 111.97405308485031,
783
+ 1.3877630683623994
784
+ ],
785
+ [
786
+ 212.81352639198303,
787
+ -174.90366101264954,
788
+ 109.81268435716629,
789
+ 2.1820910771081405
790
+ ],
791
+ [
792
+ 208.96483957767487,
793
+ -170.99714279174805,
794
+ 105.84994405508041,
795
+ 1.506867481471735
796
+ ],
797
+ [
798
+ 208.3021104335785,
799
+ -169.614776968956,
800
+ 104.76890951395035,
801
+ 0.8632436009475697
802
+ ],
803
+ [
804
+ 208.2684338092804,
805
+ -167.68291592597961,
806
+ 103.2281294465065,
807
+ 0.9204094381255384
808
+ ],
809
+ [
810
+ 209.60605144500732,
811
+ -166.8049544095993,
812
+ 103.92562299966812,
813
+ 1.54176908929701
814
+ ],
815
+ [
816
+ 211.04490756988525,
817
+ -166.482612490654,
818
+ 105.74308782815933,
819
+ 1.0619582964970822
820
+ ],
821
+ [
822
+ 215.1469886302948,
823
+ -164.70268368721008,
824
+ 105.99453747272491,
825
+ 0.7955909136171658
826
+ ],
827
+ [
828
+ 217.35025942325592,
829
+ -162.29330003261566,
830
+ 104.7496497631073,
831
+ 0.7368845663013257
832
+ ],
833
+ [
834
+ 218.72647106647491,
835
+ -159.84706580638885,
836
+ 104.12003099918365,
837
+ 0.6528372349807925
838
+ ],
839
+ [
840
+ 221.40741348266602,
841
+ -157.48834609985352,
842
+ 105.50838708877563,
843
+ 0.5140563698853632
844
+ ],
845
+ [
846
+ 223.97494316101074,
847
+ -155.90359270572662,
848
+ 106.36799782514572,
849
+ 0.6714567375175785
850
+ ],
851
+ [
852
+ 225.8833944797516,
853
+ -154.00229394435883,
854
+ 105.59134930372238,
855
+ 0.7666976930823317
856
+ ],
857
+ [
858
+ 227.6795357465744,
859
+ -152.74852514266968,
860
+ 104.30806130170822,
861
+ 1.6311781662846268
862
+ ],
863
+ [
864
+ 229.57199811935425,
865
+ -152.2633582353592,
866
+ 103.25261950492859,
867
+ 2.0575966349501713
868
+ ],
869
+ [
870
+ 231.61396384239197,
871
+ -151.7171561717987,
872
+ 101.80456191301346,
873
+ 1.8873280993763233
874
+ ],
875
+ [
876
+ 235.19490659236908,
877
+ -151.52794122695923,
878
+ 101.13079845905304,
879
+ 2.821943955440586
880
+ ],
881
+ [
882
+ 237.01930046081543,
883
+ -150.70392191410065,
884
+ 100.2047061920166,
885
+ 1.549435437133384
886
+ ],
887
+ [
888
+ 238.25404047966003,
889
+ -149.66467022895813,
890
+ 99.90144520998001,
891
+ 0.9505014116715386
892
+ ],
893
+ [
894
+ 240.48826098442078,
895
+ -147.90651202201843,
896
+ 99.434033036232,
897
+ 1.6862575138893183
898
+ ],
899
+ [
900
+ 241.86325073242188,
901
+ -146.22077345848083,
902
+ 99.11731630563736,
903
+ 1.0763968306919571
904
+ ],
905
+ [
906
+ 242.50531196594238,
907
+ -144.17435228824615,
908
+ 99.05633330345154,
909
+ 0.6006105416105321
910
+ ],
911
+ [
912
+ 243.7279373407364,
913
+ -141.22766256332397,
914
+ 98.80807250738144,
915
+ 0.79587506849517
916
+ ],
917
+ [
918
+ 245.30233442783356,
919
+ -138.84341716766357,
920
+ 98.52980077266693,
921
+ 0.97191190586648
922
+ ],
923
+ [
924
+ 246.96066975593567,
925
+ -136.18561625480652,
926
+ 98.20466488599777,
927
+ 0.8162549921096831
928
+ ],
929
+ [
930
+ 248.6710101366043,
931
+ -132.39312171936035,
932
+ 98.04119169712067,
933
+ 0.6418463968664805
934
+ ],
935
+ [
936
+ 250.26240944862366,
937
+ -129.28612530231476,
938
+ 97.84704446792603,
939
+ 0.7259451205843661
940
+ ],
941
+ [
942
+ 251.67319178581238,
943
+ -125.88296830654144,
944
+ 97.75474667549133,
945
+ 0.6539095364951929
946
+ ]
947
+ ]
948
+ },
949
+ "capture_start_seconds": 106.1249270439148,
950
+ "capture_end_seconds": 106.1249270439148,
951
+ "video_time_basis": "local_row / 30 fps"
952
+ },
953
+ {
954
+ "confidence": "MEDIUM",
955
+ "end": 8851,
956
+ "event_id": "right:8851-8851:branch_discontinuity",
957
+ "evidence": {
958
+ "anchor_rotation_deg": 23.907169901333106,
959
+ "anchor_translation_mm": 44.4391333317201,
960
+ "branch_unambiguous": true,
961
+ "duration_frames": 1,
962
+ "endpoint_return_consistent": false,
963
+ "fit_converged": true,
964
+ "fit_iterations": 0,
965
+ "left_anchor": 8850,
966
+ "left_context_frames": 15,
967
+ "observed_inlier_frames": 1,
968
+ "physical": true,
969
+ "prediction_rotation_max_deg": 11.953584950666553,
970
+ "prediction_translation_max_mm": 22.21956666586005,
971
+ "reconstructed_max_step_rotation_deg": 13.397196229285298,
972
+ "reconstructed_max_step_translation_mm": 25.130371048046992,
973
+ "replaced_frames": 0,
974
+ "right_anchor": 8852,
975
+ "right_context_frames": 15,
976
+ "rotation_inlier_threshold_deg": 10.843206677670306,
977
+ "rotation_residual_p95_deg": 1.531693193591164,
978
+ "translation_inlier_threshold_mm": 15.830646477997565,
979
+ "translation_residual_p95_mm": 3.426902759642317
980
+ },
981
+ "kind": "branch_discontinuity",
982
+ "left_context_end": 8850,
983
+ "method": "endpoint_se3",
984
+ "replaced_frames": [],
985
+ "right_context_start": 8852,
986
+ "seed_frames": [
987
+ 8851
988
+ ],
989
+ "side": "right",
990
+ "start": 8851,
991
+ "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet::right:8851-8851:branch_discontinuity",
992
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet",
993
+ "source_start_row": 8851,
994
+ "source_end_row": 8851,
995
+ "local_start_row": 2751,
996
+ "local_end_row": 2751,
997
+ "local_start_seconds": 91.7,
998
+ "local_end_seconds": 91.7,
999
+ "video_links": {
1000
+ "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_middle.mp4#t=90.700,92.700",
1001
+ "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/wrist_right.mp4#t=90.700,92.700",
1002
+ "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_left.mp4#t=90.700,92.700",
1003
+ "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_right.mp4#t=90.700,92.700"
1004
+ },
1005
+ "chart": {
1006
+ "seconds": [
1007
+ 90.7,
1008
+ 90.73333333333333,
1009
+ 90.76666666666667,
1010
+ 90.8,
1011
+ 90.83333333333333,
1012
+ 90.86666666666666,
1013
+ 90.9,
1014
+ 90.93333333333334,
1015
+ 90.96666666666667,
1016
+ 91.0,
1017
+ 91.03333333333333,
1018
+ 91.06666666666666,
1019
+ 91.1,
1020
+ 91.13333333333334,
1021
+ 91.16666666666667,
1022
+ 91.2,
1023
+ 91.23333333333333,
1024
+ 91.26666666666667,
1025
+ 91.3,
1026
+ 91.33333333333333,
1027
+ 91.36666666666666,
1028
+ 91.4,
1029
+ 91.43333333333334,
1030
+ 91.46666666666667,
1031
+ 91.5,
1032
+ 91.53333333333333,
1033
+ 91.56666666666666,
1034
+ 91.6,
1035
+ 91.63333333333334,
1036
+ 91.66666666666667,
1037
+ 91.7,
1038
+ 91.73333333333333,
1039
+ 91.76666666666667,
1040
+ 91.8,
1041
+ 91.83333333333333,
1042
+ 91.86666666666666,
1043
+ 91.9,
1044
+ 91.93333333333334,
1045
+ 91.96666666666667,
1046
+ 92.0,
1047
+ 92.03333333333333,
1048
+ 92.06666666666666,
1049
+ 92.1,
1050
+ 92.13333333333334,
1051
+ 92.16666666666667,
1052
+ 92.2,
1053
+ 92.23333333333333,
1054
+ 92.26666666666667,
1055
+ 92.3,
1056
+ 92.33333333333333,
1057
+ 92.36666666666666,
1058
+ 92.4,
1059
+ 92.43333333333334,
1060
+ 92.46666666666667,
1061
+ 92.5,
1062
+ 92.53333333333333,
1063
+ 92.56666666666666,
1064
+ 92.6,
1065
+ 92.63333333333334,
1066
+ 92.66666666666667,
1067
+ 92.7
1068
+ ],
1069
+ "sampled": false,
1070
+ "raw": [
1071
+ [
1072
+ 407.03970193862915,
1073
+ -255.8211088180542,
1074
+ 212.6345932483673,
1075
+ 2.6803832698880155
1076
+ ],
1077
+ [
1078
+ 416.91815853118896,
1079
+ -262.4295651912689,
1080
+ 216.73768758773804,
1081
+ 3.1155903138839727
1082
+ ],
1083
+ [
1084
+ 426.1801242828369,
1085
+ -268.85247230529785,
1086
+ 219.48938071727753,
1087
+ 2.3537346570335704
1088
+ ],
1089
+ [
1090
+ 439.3206536769867,
1091
+ -277.46060490608215,
1092
+ 223.38391840457916,
1093
+ 4.18018933143938
1094
+ ],
1095
+ [
1096
+ 453.369177877903,
1097
+ -285.161092877388,
1098
+ 230.99462315440178,
1099
+ 4.246020330049803
1100
+ ],
1101
+ [
1102
+ 467.4177020788193,
1103
+ -292.86158084869385,
1104
+ 238.6053279042244,
1105
+ 4.24602033004946
1106
+ ],
1107
+ [
1108
+ 481.46622627973557,
1109
+ -300.5620688199997,
1110
+ 246.216032654047,
1111
+ 4.24602033004946
1112
+ ],
1113
+ [
1114
+ 495.51475048065186,
1115
+ -308.26255679130554,
1116
+ 253.82673740386963,
1117
+ 4.24602033004946
1118
+ ],
1119
+ [
1120
+ 519.9068784713745,
1121
+ -315.91495871543884,
1122
+ 268.15086603164673,
1123
+ 7.339917023668772
1124
+ ],
1125
+ [
1126
+ 537.8333330154419,
1127
+ -320.91739773750305,
1128
+ 277.7864933013916,
1129
+ 7.4052524925970555
1130
+ ],
1131
+ [
1132
+ 553.3128976821899,
1133
+ -324.3877589702606,
1134
+ 285.9755754470825,
1135
+ 4.646087916391416
1136
+ ],
1137
+ [
1138
+ 565.4428005218506,
1139
+ -326.64749026298523,
1140
+ 292.5516963005066,
1141
+ 2.9824839182574663
1142
+ ],
1143
+ [
1144
+ 578.1363844871521,
1145
+ -327.76162028312683,
1146
+ 298.49234223365784,
1147
+ 2.46322393438754
1148
+ ],
1149
+ [
1150
+ 585.3208899497986,
1151
+ -327.78751850128174,
1152
+ 301.1696934700012,
1153
+ 1.0845261710201861
1154
+ ],
1155
+ [
1156
+ 593.0305123329163,
1157
+ -328.0385136604309,
1158
+ 302.5546967983246,
1159
+ 1.1850166623392075
1160
+ ],
1161
+ [
1162
+ 597.8676080703735,
1163
+ -327.8728127479553,
1164
+ 301.8839657306671,
1165
+ 0.5050580355215725
1166
+ ],
1167
+ [
1168
+ 601.7434597015381,
1169
+ -326.68957114219666,
1170
+ 299.76433515548706,
1171
+ 0.5143034882057618
1172
+ ],
1173
+ [
1174
+ 604.2627096176147,
1175
+ -325.1596689224243,
1176
+ 296.295702457428,
1177
+ 1.9414868489460837
1178
+ ],
1179
+ [
1180
+ 605.9460043907166,
1181
+ -324.4590759277344,
1182
+ 293.97037625312805,
1183
+ 2.4068806106020126
1184
+ ],
1185
+ [
1186
+ 608.9571714401245,
1187
+ -323.7685561180115,
1188
+ 291.63476824760437,
1189
+ 3.3016837770291794
1190
+ ],
1191
+ [
1192
+ 613.0953431129456,
1193
+ -323.10324907302856,
1194
+ 290.40539264678955,
1195
+ 1.5840882632002211
1196
+ ],
1197
+ [
1198
+ 617.9807782173157,
1199
+ -322.4791884422302,
1200
+ 289.5188331604004,
1201
+ 1.0247856611023345
1202
+ ],
1203
+ [
1204
+ 622.9420304298401,
1205
+ -321.7817544937134,
1206
+ 288.914293050766,
1207
+ 0.9245967886957139
1208
+ ],
1209
+ [
1210
+ 624.713122844696,
1211
+ -321.0411071777344,
1212
+ 288.7232005596161,
1213
+ 0.6107813316236503
1214
+ ],
1215
+ [
1216
+ 624.8288750648499,
1217
+ -319.8522627353668,
1218
+ 289.07883167266846,
1219
+ 0.5330056487308316
1220
+ ],
1221
+ [
1222
+ 623.4927177429199,
1223
+ -319.0098702907562,
1224
+ 289.8269593715668,
1225
+ 1.131498902288158
1226
+ ],
1227
+ [
1228
+ 619.9914216995239,
1229
+ -316.7468011379242,
1230
+ 289.3128991127014,
1231
+ 3.457234754870953
1232
+ ],
1233
+ [
1234
+ 614.5975589752197,
1235
+ -312.839537858963,
1236
+ 287.30663657188416,
1237
+ 3.5122027391623
1238
+ ],
1239
+ [
1240
+ 602.4017333984375,
1241
+ -306.4176142215729,
1242
+ 282.04044699668884,
1243
+ 6.821682430551266
1244
+ ],
1245
+ [
1246
+ 589.7039771080017,
1247
+ -301.2423515319824,
1248
+ 274.62732791900635,
1249
+ 7.937843059854426
1250
+ ],
1251
+ [
1252
+ 570.8975791931152,
1253
+ -295.14333605766296,
1254
+ 259.11420583724976,
1255
+ 13.397196229285191
1256
+ ],
1257
+ [
1258
+ 558.0803155899048,
1259
+ -292.171448469162,
1260
+ 244.75260078907013,
1261
+ 10.53477845465798
1262
+ ],
1263
+ [
1264
+ 547.8951930999756,
1265
+ -290.85883498191833,
1266
+ 230.2676886320114,
1267
+ 9.279411976410083
1268
+ ],
1269
+ [
1270
+ 539.0520095825195,
1271
+ -287.88453340530396,
1272
+ 211.48689091205597,
1273
+ 8.511102938292193
1274
+ ],
1275
+ [
1276
+ 535.2357029914856,
1277
+ -283.56996178627014,
1278
+ 201.4380544424057,
1279
+ 3.16643630632492
1280
+ ],
1281
+ [
1282
+ 533.1785678863525,
1283
+ -277.46233344078064,
1284
+ 195.9739476442337,
1285
+ 2.958259812049837
1286
+ ],
1287
+ [
1288
+ 528.179943561554,
1289
+ -270.2581584453583,
1290
+ 188.45729529857635,
1291
+ 7.647395018810899
1292
+ ],
1293
+ [
1294
+ 520.3224420547485,
1295
+ -266.4727568626404,
1296
+ 179.33979630470276,
1297
+ 5.00356814060007
1298
+ ],
1299
+ [
1300
+ 512.1849775314331,
1301
+ -260.6738805770874,
1302
+ 166.6858047246933,
1303
+ 4.872962960131747
1304
+ ],
1305
+ [
1306
+ 498.4845817089081,
1307
+ -253.9248764514923,
1308
+ 149.2423564195633,
1309
+ 1.998062089339668
1310
+ ],
1311
+ [
1312
+ 487.002968788147,
1313
+ -250.6459653377533,
1314
+ 137.99269497394562,
1315
+ 2.713719707176876
1316
+ ],
1317
+ [
1318
+ 472.700297832489,
1319
+ -248.20134043693542,
1320
+ 127.48388946056366,
1321
+ 2.530851703677965
1322
+ ],
1323
+ [
1324
+ 464.51735496520996,
1325
+ -245.93523144721985,
1326
+ 123.46600741147995,
1327
+ 0.8934624870381644
1328
+ ],
1329
+ [
1330
+ 458.93362164497375,
1331
+ -242.4726039171219,
1332
+ 120.34144252538681,
1333
+ 1.4535195498005873
1334
+ ],
1335
+ [
1336
+ 451.82153582572937,
1337
+ -238.71897161006927,
1338
+ 117.00130254030228,
1339
+ 0.8205523687736768
1340
+ ],
1341
+ [
1342
+ 447.02959060668945,
1343
+ -236.81512475013733,
1344
+ 114.99601602554321,
1345
+ 0.6213587454532391
1346
+ ],
1347
+ [
1348
+ 441.23193621635437,
1349
+ -235.08796095848083,
1350
+ 112.41966485977173,
1351
+ 0.8817236005468918
1352
+ ],
1353
+ [
1354
+ 437.5329315662384,
1355
+ -234.27823185920715,
1356
+ 111.38903349637985,
1357
+ 0.7693953197689978
1358
+ ],
1359
+ [
1360
+ 434.5511794090271,
1361
+ -233.6479127407074,
1362
+ 110.99094152450562,
1363
+ 0.690545918789305
1364
+ ],
1365
+ [
1366
+ 431.9588243961334,
1367
+ -233.34339261054993,
1368
+ 111.07716709375381,
1369
+ 0.9937575369983188
1370
+ ],
1371
+ [
1372
+ 430.93812465667725,
1373
+ -233.67711901664734,
1374
+ 111.379474401474,
1375
+ 0.7485641491823736
1376
+ ],
1377
+ [
1378
+ 429.74090576171875,
1379
+ -234.7383052110672,
1380
+ 110.9473705291748,
1381
+ 1.1336544306799727
1382
+ ],
1383
+ [
1384
+ 428.56553196907043,
1385
+ -236.56199872493744,
1386
+ 110.52192747592926,
1387
+ 1.339340971798905
1388
+ ],
1389
+ [
1390
+ 427.73720622062683,
1391
+ -238.13942074775696,
1392
+ 110.44525355100632,
1393
+ 0.8105602004826585
1394
+ ],
1395
+ [
1396
+ 426.1195659637451,
1397
+ -240.49627780914307,
1398
+ 110.60348898172379,
1399
+ 2.066739233901525
1400
+ ],
1401
+ [
1402
+ 423.7767457962036,
1403
+ -243.4685379266739,
1404
+ 110.87743937969208,
1405
+ 2.617012259555472
1406
+ ],
1407
+ [
1408
+ 422.14423418045044,
1409
+ -245.5030232667923,
1410
+ 111.13286018371582,
1411
+ 1.8189479524294418
1412
+ ],
1413
+ [
1414
+ 420.52730917930603,
1415
+ -247.28210270404816,
1416
+ 111.00099980831146,
1417
+ 1.295149437780488
1418
+ ],
1419
+ [
1420
+ 418.6536371707916,
1421
+ -249.0447610616684,
1422
+ 110.86756736040115,
1423
+ 1.2935570812606751
1424
+ ],
1425
+ [
1426
+ 417.6326096057892,
1427
+ -249.8752623796463,
1428
+ 111.07352375984192,
1429
+ 0.9506627152384115
1430
+ ],
1431
+ [
1432
+ 416.8710708618164,
1433
+ -250.3056526184082,
1434
+ 110.94443500041962,
1435
+ 0.8291465255753956
1436
+ ]
1437
+ ],
1438
+ "repaired": [
1439
+ [
1440
+ 407.03970193862915,
1441
+ -255.8211088180542,
1442
+ 212.6345932483673,
1443
+ 2.68038391368858
1444
+ ],
1445
+ [
1446
+ 416.91815853118896,
1447
+ -262.4295651912689,
1448
+ 216.73768758773804,
1449
+ 3.1155917427293214
1450
+ ],
1451
+ [
1452
+ 426.1801242828369,
1453
+ -268.85247230529785,
1454
+ 219.48938071727753,
1455
+ 2.3537345947758124
1456
+ ],
1457
+ [
1458
+ 439.3206536769867,
1459
+ -277.46060490608215,
1460
+ 223.38391840457916,
1461
+ 4.180186168155515
1462
+ ],
1463
+ [
1464
+ 453.3691704273224,
1465
+ -285.1610779762268,
1466
+ 230.99462687969208,
1467
+ 4.246021724882351
1468
+ ],
1469
+ [
1470
+ 467.41771697998047,
1471
+ -292.86158084869385,
1472
+ 238.6053204536438,
1473
+ 4.246019974049894
1474
+ ],
1475
+ [
1476
+ 481.46623373031616,
1477
+ -300.5620837211609,
1478
+ 246.2160289287567,
1479
+ 4.246020560090072
1480
+ ],
1481
+ [
1482
+ 495.51475048065186,
1483
+ -308.26255679130554,
1484
+ 253.82673740386963,
1485
+ 4.246019499523762
1486
+ ],
1487
+ [
1488
+ 519.9068784713745,
1489
+ -315.91495871543884,
1490
+ 268.15086603164673,
1491
+ 7.339916404571856
1492
+ ],
1493
+ [
1494
+ 537.8333330154419,
1495
+ -320.91739773750305,
1496
+ 277.7864933013916,
1497
+ 7.405253491885746
1498
+ ],
1499
+ [
1500
+ 553.3128976821899,
1501
+ -324.3877589702606,
1502
+ 285.9755754470825,
1503
+ 4.646087651532317
1504
+ ],
1505
+ [
1506
+ 565.4428005218506,
1507
+ -326.64749026298523,
1508
+ 292.5516963005066,
1509
+ 2.982484041291355
1510
+ ],
1511
+ [
1512
+ 578.1363844871521,
1513
+ -327.76162028312683,
1514
+ 298.49234223365784,
1515
+ 2.463224074640134
1516
+ ],
1517
+ [
1518
+ 585.3208899497986,
1519
+ -327.78751850128174,
1520
+ 301.1696934700012,
1521
+ 1.0845255555928015
1522
+ ],
1523
+ [
1524
+ 593.0305123329163,
1525
+ -328.0385136604309,
1526
+ 302.5546967983246,
1527
+ 1.1850170868532408
1528
+ ],
1529
+ [
1530
+ 597.8676080703735,
1531
+ -327.8728127479553,
1532
+ 301.8839657306671,
1533
+ 0.5050567033010621
1534
+ ],
1535
+ [
1536
+ 601.7434597015381,
1537
+ -326.68957114219666,
1538
+ 299.76433515548706,
1539
+ 0.5143025515132367
1540
+ ],
1541
+ [
1542
+ 604.2627096176147,
1543
+ -325.1596689224243,
1544
+ 296.295702457428,
1545
+ 1.9414871578638162
1546
+ ],
1547
+ [
1548
+ 605.9460043907166,
1549
+ -324.4590759277344,
1550
+ 293.97037625312805,
1551
+ 2.406881354531008
1552
+ ],
1553
+ [
1554
+ 608.9571714401245,
1555
+ -323.7685561180115,
1556
+ 291.63476824760437,
1557
+ 3.3016804004662808
1558
+ ],
1559
+ [
1560
+ 613.0953431129456,
1561
+ -323.10324907302856,
1562
+ 290.40539264678955,
1563
+ 1.5840923385467927
1564
+ ],
1565
+ [
1566
+ 617.9807782173157,
1567
+ -322.4791884422302,
1568
+ 289.5188331604004,
1569
+ 1.024784900744142
1570
+ ],
1571
+ [
1572
+ 622.9420304298401,
1573
+ -321.7817544937134,
1574
+ 288.914293050766,
1575
+ 0.9245971875296511
1576
+ ],
1577
+ [
1578
+ 624.713122844696,
1579
+ -321.0411071777344,
1580
+ 288.7232005596161,
1581
+ 0.6107824322089133
1582
+ ],
1583
+ [
1584
+ 624.8288750648499,
1585
+ -319.8522627353668,
1586
+ 289.07883167266846,
1587
+ 0.5330006511774952
1588
+ ],
1589
+ [
1590
+ 623.4927177429199,
1591
+ -319.0098702907562,
1592
+ 289.8269593715668,
1593
+ 1.1314992246395963
1594
+ ],
1595
+ [
1596
+ 619.9914216995239,
1597
+ -316.7468011379242,
1598
+ 289.3128991127014,
1599
+ 3.4572330713587505
1600
+ ],
1601
+ [
1602
+ 614.5975589752197,
1603
+ -312.839537858963,
1604
+ 287.30663657188416,
1605
+ 3.512209024459775
1606
+ ],
1607
+ [
1608
+ 602.4017333984375,
1609
+ -306.4176142215729,
1610
+ 282.04044699668884,
1611
+ 6.821681429233355
1612
+ ],
1613
+ [
1614
+ 589.7039771080017,
1615
+ -301.2423515319824,
1616
+ 274.62732791900635,
1617
+ 7.9378434580758785
1618
+ ],
1619
+ [
1620
+ 570.8975791931152,
1621
+ -295.14333605766296,
1622
+ 259.11420583724976,
1623
+ 13.397196294771335
1624
+ ],
1625
+ [
1626
+ 558.0803155899048,
1627
+ -292.171448469162,
1628
+ 244.75260078907013,
1629
+ 10.534776976931854
1630
+ ],
1631
+ [
1632
+ 547.8951930999756,
1633
+ -290.85883498191833,
1634
+ 230.2676886320114,
1635
+ 9.27941384834969
1636
+ ],
1637
+ [
1638
+ 539.0520095825195,
1639
+ -287.88453340530396,
1640
+ 211.48689091205597,
1641
+ 8.511099902083004
1642
+ ],
1643
+ [
1644
+ 535.2357029914856,
1645
+ -283.56996178627014,
1646
+ 201.4380544424057,
1647
+ 3.16643702368469
1648
+ ],
1649
+ [
1650
+ 533.1785678863525,
1651
+ -277.46233344078064,
1652
+ 195.9739476442337,
1653
+ 2.9582599143734045
1654
+ ],
1655
+ [
1656
+ 528.179943561554,
1657
+ -270.2581584453583,
1658
+ 188.45729529857635,
1659
+ 7.647395884722646
1660
+ ],
1661
+ [
1662
+ 520.3224420547485,
1663
+ -266.4727568626404,
1664
+ 179.33979630470276,
1665
+ 5.003566181623503
1666
+ ],
1667
+ [
1668
+ 512.1849775314331,
1669
+ -260.6738805770874,
1670
+ 166.6858047246933,
1671
+ 4.872962337740919
1672
+ ],
1673
+ [
1674
+ 498.4845817089081,
1675
+ -253.9248764514923,
1676
+ 149.2423564195633,
1677
+ 1.998061644975087
1678
+ ],
1679
+ [
1680
+ 487.002968788147,
1681
+ -250.6459653377533,
1682
+ 137.99269497394562,
1683
+ 2.713720627913556
1684
+ ],
1685
+ [
1686
+ 472.700297832489,
1687
+ -248.20134043693542,
1688
+ 127.48388946056366,
1689
+ 2.5308563547748895
1690
+ ],
1691
+ [
1692
+ 464.51735496520996,
1693
+ -245.93523144721985,
1694
+ 123.46600741147995,
1695
+ 0.8934592042686608
1696
+ ],
1697
+ [
1698
+ 458.93362164497375,
1699
+ -242.4726039171219,
1700
+ 120.34144252538681,
1701
+ 1.4535214736501059
1702
+ ],
1703
+ [
1704
+ 451.82153582572937,
1705
+ -238.71897161006927,
1706
+ 117.00130254030228,
1707
+ 0.8205523336715118
1708
+ ],
1709
+ [
1710
+ 447.02959060668945,
1711
+ -236.81512475013733,
1712
+ 114.99601602554321,
1713
+ 0.6213595408589614
1714
+ ],
1715
+ [
1716
+ 441.23193621635437,
1717
+ -235.08796095848083,
1718
+ 112.41966485977173,
1719
+ 0.8817219730206973
1720
+ ],
1721
+ [
1722
+ 437.5329315662384,
1723
+ -234.27823185920715,
1724
+ 111.38903349637985,
1725
+ 0.7693961934763056
1726
+ ],
1727
+ [
1728
+ 434.5511794090271,
1729
+ -233.6479127407074,
1730
+ 110.99094152450562,
1731
+ 0.6905470032960066
1732
+ ],
1733
+ [
1734
+ 431.9588243961334,
1735
+ -233.34339261054993,
1736
+ 111.07716709375381,
1737
+ 0.993757271228744
1738
+ ],
1739
+ [
1740
+ 430.93812465667725,
1741
+ -233.67711901664734,
1742
+ 111.379474401474,
1743
+ 0.7485649856798022
1744
+ ],
1745
+ [
1746
+ 429.74090576171875,
1747
+ -234.7383052110672,
1748
+ 110.9473705291748,
1749
+ 1.1336542972636146
1750
+ ],
1751
+ [
1752
+ 428.56553196907043,
1753
+ -236.56199872493744,
1754
+ 110.52192747592926,
1755
+ 1.339343475635721
1756
+ ],
1757
+ [
1758
+ 427.73720622062683,
1759
+ -238.13942074775696,
1760
+ 110.44525355100632,
1761
+ 0.8105604117763948
1762
+ ],
1763
+ [
1764
+ 426.1195659637451,
1765
+ -240.49627780914307,
1766
+ 110.60348898172379,
1767
+ 2.0667404075249323
1768
+ ],
1769
+ [
1770
+ 423.7767457962036,
1771
+ -243.4685379266739,
1772
+ 110.87743937969208,
1773
+ 2.617010474175997
1774
+ ],
1775
+ [
1776
+ 422.14423418045044,
1777
+ -245.5030232667923,
1778
+ 111.13286018371582,
1779
+ 1.8189488386848605
1780
+ ],
1781
+ [
1782
+ 420.52730917930603,
1783
+ -247.28210270404816,
1784
+ 111.00099980831146,
1785
+ 1.2951509869989084
1786
+ ],
1787
+ [
1788
+ 418.6536371707916,
1789
+ -249.0447610616684,
1790
+ 110.86756736040115,
1791
+ 1.2935561327101286
1792
+ ],
1793
+ [
1794
+ 417.6326096057892,
1795
+ -249.8752623796463,
1796
+ 111.07352375984192,
1797
+ 0.950662062335189
1798
+ ],
1799
+ [
1800
+ 416.8710708618164,
1801
+ -250.3056526184082,
1802
+ 110.94443500041962,
1803
+ 0.8291463586952834
1804
+ ]
1805
+ ]
1806
+ },
1807
+ "capture_start_seconds": 93.99189257621765,
1808
+ "capture_end_seconds": 93.99189257621765,
1809
+ "video_time_basis": "local_row / 30 fps"
1810
+ }
1811
+ ]
1812
+ }
data/motherboard/action_repair_events/2026-09-11/episode_007_seg03.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg03.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_007.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-11/episode_007_seg04.json ADDED
The diff for this file is too large to render. See raw diff
 
data/motherboard/action_repair_events/2026-09-11/episode_008_seg00.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-11/episode_008_seg00.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_008.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-12/episode_000_seg00.json ADDED
@@ -0,0 +1,2998 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-12/episode_000.parquet",
5
+ "events": [
6
+ {
7
+ "confidence": "LOW",
8
+ "end": 25428,
9
+ "event_id": "left:25409-25428:known_gap",
10
+ "evidence": {
11
+ "branch_unambiguous": true,
12
+ "duration_frames": 20,
13
+ "fit_converged": true,
14
+ "fit_iterations": 2,
15
+ "left_anchor": 25408,
16
+ "left_context_frames": 15,
17
+ "observed_inlier_frames": 0,
18
+ "physical": true,
19
+ "prediction_rotation_max_deg": 29.58022541080827,
20
+ "prediction_translation_max_mm": 120.02576739275884,
21
+ "reconstructed_max_step_rotation_deg": 1.1241443343272723,
22
+ "reconstructed_max_step_translation_mm": 5.210175221216358,
23
+ "rejection": "incompatible_two_sided_prediction",
24
+ "replaced_frames": 20,
25
+ "right_anchor": 25429,
26
+ "right_context_frames": 15,
27
+ "rotation_inlier_threshold_deg": 10.16446838233392,
28
+ "rotation_residual_p95_deg": 65.12822399810119,
29
+ "translation_inlier_threshold_mm": 13.330843682314375,
30
+ "translation_residual_p95_mm": 39.63937965121875
31
+ },
32
+ "kind": "known_gap",
33
+ "left_context_end": 25408,
34
+ "method": "unrepaired_ambiguous_branch",
35
+ "replaced_frames": [],
36
+ "right_context_start": 25429,
37
+ "seed_frames": [
38
+ 25409,
39
+ 25410,
40
+ 25411,
41
+ 25412,
42
+ 25413,
43
+ 25414,
44
+ 25415,
45
+ 25416,
46
+ 25417,
47
+ 25418,
48
+ 25419,
49
+ 25420,
50
+ 25421,
51
+ 25422,
52
+ 25423,
53
+ 25424,
54
+ 25425,
55
+ 25426,
56
+ 25427,
57
+ 25428
58
+ ],
59
+ "side": "left",
60
+ "start": 25409,
61
+ "qualified_event_id": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet::left:25409-25428:known_gap",
62
+ "remote_path": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet",
63
+ "source_start_row": 25409,
64
+ "source_end_row": 25428,
65
+ "local_start_row": 25409,
66
+ "local_end_row": 25428,
67
+ "local_start_seconds": 846.9666666666667,
68
+ "local_end_seconds": 847.6,
69
+ "video_links": {
70
+ "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_middle.mp4#t=845.967,848.600",
71
+ "wrist_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/wrist_left.mp4#t=845.967,848.600",
72
+ "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_left.mp4#t=845.967,848.600",
73
+ "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_right.mp4#t=845.967,848.600"
74
+ },
75
+ "chart": {
76
+ "seconds": [
77
+ 845.9666666666667,
78
+ 846.0,
79
+ 846.0333333333333,
80
+ 846.0666666666667,
81
+ 846.1,
82
+ 846.1333333333333,
83
+ 846.1666666666666,
84
+ 846.2,
85
+ 846.2333333333333,
86
+ 846.2666666666667,
87
+ 846.3,
88
+ 846.3333333333334,
89
+ 846.3666666666667,
90
+ 846.4,
91
+ 846.4333333333333,
92
+ 846.4666666666667,
93
+ 846.5,
94
+ 846.5333333333333,
95
+ 846.5666666666667,
96
+ 846.6,
97
+ 846.6333333333333,
98
+ 846.6666666666666,
99
+ 846.7,
100
+ 846.7333333333333,
101
+ 846.7666666666667,
102
+ 846.8,
103
+ 846.8333333333334,
104
+ 846.8666666666667,
105
+ 846.9,
106
+ 846.9333333333333,
107
+ 846.9666666666667,
108
+ 847.0,
109
+ 847.0333333333333,
110
+ 847.0666666666667,
111
+ 847.1,
112
+ 847.1333333333333,
113
+ 847.1666666666666,
114
+ 847.2,
115
+ 847.2333333333333,
116
+ 847.2666666666667,
117
+ 847.3,
118
+ 847.3333333333334,
119
+ 847.3666666666667,
120
+ 847.4,
121
+ 847.4333333333333,
122
+ 847.4666666666667,
123
+ 847.5,
124
+ 847.5333333333333,
125
+ 847.5666666666667,
126
+ 847.6,
127
+ 847.6333333333333,
128
+ 847.6666666666666,
129
+ 847.7,
130
+ 847.7333333333333,
131
+ 847.7666666666667,
132
+ 847.8,
133
+ 847.8333333333334,
134
+ 847.8666666666667,
135
+ 847.9,
136
+ 847.9333333333333,
137
+ 847.9666666666667,
138
+ 848.0,
139
+ 848.0333333333333,
140
+ 848.0666666666667,
141
+ 848.1,
142
+ 848.1333333333333,
143
+ 848.1666666666666,
144
+ 848.2,
145
+ 848.2333333333333,
146
+ 848.2666666666667,
147
+ 848.3,
148
+ 848.3333333333334,
149
+ 848.3666666666667,
150
+ 848.4,
151
+ 848.4333333333333,
152
+ 848.4666666666667,
153
+ 848.5,
154
+ 848.5333333333333,
155
+ 848.5666666666667,
156
+ 848.6
157
+ ],
158
+ "sampled": false,
159
+ "raw": [
160
+ [
161
+ 287.83875703811646,
162
+ -304.62267994880676,
163
+ 114.3956109881401,
164
+ 0.30968054059940286
165
+ ],
166
+ [
167
+ 286.4469587802887,
168
+ -303.7014603614807,
169
+ 114.51622098684311,
170
+ 0.3549812314414388
171
+ ],
172
+ [
173
+ 284.7020626068115,
174
+ -302.5079667568207,
175
+ 114.91329222917557,
176
+ 0.4862926133703677
177
+ ],
178
+ [
179
+ 282.02277421951294,
180
+ -300.50843954086304,
181
+ 115.80575257539749,
182
+ 0.836993326766165
183
+ ],
184
+ [
185
+ 279.64454889297485,
186
+ -298.67929220199585,
187
+ 116.48748815059662,
188
+ 0.8045450449999282
189
+ ],
190
+ [
191
+ 276.86068415641785,
192
+ -296.39220237731934,
193
+ 117.30382591485977,
194
+ 1.062330347544654
195
+ ],
196
+ [
197
+ 272.31863141059875,
198
+ -292.1760678291321,
199
+ 118.47323179244995,
200
+ 2.0265921268938882
201
+ ],
202
+ [
203
+ 268.5332000255585,
204
+ -288.4897291660309,
205
+ 119.33870613574982,
206
+ 1.755409060983253
207
+ ],
208
+ [
209
+ 263.2598280906677,
210
+ -283.2823097705841,
211
+ 120.42056024074554,
212
+ 2.2402120425405783
213
+ ],
214
+ [
215
+ 259.3441903591156,
216
+ -279.0164053440094,
217
+ 121.29242718219757,
218
+ 1.623735511597987
219
+ ],
220
+ [
221
+ 255.56397438049316,
222
+ -274.34372901916504,
223
+ 122.34102189540863,
224
+ 1.6280687174970734
225
+ ],
226
+ [
227
+ 251.11815333366394,
228
+ -267.248272895813,
229
+ 124.87819045782089,
230
+ 2.633785105066782
231
+ ],
232
+ [
233
+ 248.02571535110474,
234
+ -262.42539286613464,
235
+ 129.24017012119293,
236
+ 2.7124414295200516
237
+ ],
238
+ [
239
+ 246.2460696697235,
240
+ -259.5410346984863,
241
+ 135.05631685256958,
242
+ 1.3400188139683147
243
+ ],
244
+ [
245
+ 249.12311136722565,
246
+ -257.3968768119812,
247
+ 140.9979611635208,
248
+ 1.8299835221316816
249
+ ],
250
+ [
251
+ 255.6101679801941,
252
+ -256.99368119239807,
253
+ 141.3968950510025,
254
+ 3.5012392923289615
255
+ ],
256
+ [
257
+ 267.98778772354126,
258
+ -257.7456831932068,
259
+ 137.14013993740082,
260
+ 5.977300729893008
261
+ ],
262
+ [
263
+ 276.74493193626404,
264
+ -257.87219405174255,
265
+ 131.97624683380127,
266
+ 3.246278281356913
267
+ ],
268
+ [
269
+ 284.54604744911194,
270
+ -257.4864327907562,
271
+ 125.64757466316223,
272
+ 2.4670174353217855
273
+ ],
274
+ [
275
+ 291.10080003738403,
276
+ -258.45205783843994,
277
+ 114.34192210435867,
278
+ 9.157549265761528
279
+ ],
280
+ [
281
+ 295.74036598205566,
282
+ -257.5708031654358,
283
+ 107.85229504108429,
284
+ 1.5493712755484643
285
+ ],
286
+ [
287
+ 300.70754885673523,
288
+ -254.92742657661438,
289
+ 105.12711852788925,
290
+ 7.198850326305885
291
+ ],
292
+ [
293
+ 302.84151434898376,
294
+ -254.2978823184967,
295
+ 101.27852857112885,
296
+ 1.346959462672298
297
+ ],
298
+ [
299
+ 302.3383319377899,
300
+ -256.08429312705994,
301
+ 96.97545319795609,
302
+ 6.575046990242264
303
+ ],
304
+ [
305
+ 304.1363060474396,
306
+ -256.7814886569977,
307
+ 94.14903819561005,
308
+ 0.717855614178061
309
+ ],
310
+ [
311
+ 308.7144196033478,
312
+ -256.5770447254181,
313
+ 90.70130437612534,
314
+ 6.213394988593225
315
+ ],
316
+ [
317
+ 307.9581558704376,
318
+ -258.5946321487427,
319
+ 83.71956646442413,
320
+ 9.753489808309752
321
+ ],
322
+ [
323
+ 311.63549423217773,
324
+ -257.64307379722595,
325
+ 82.85784721374512,
326
+ 8.160426107318992
327
+ ],
328
+ [
329
+ 311.47265434265137,
330
+ -256.84821605682373,
331
+ 83.11618864536285,
332
+ 1.0185576647181083
333
+ ],
334
+ [
335
+ 310.15583872795105,
336
+ -256.03124499320984,
337
+ 83.13044905662537,
338
+ 1.4419626433277277
339
+ ],
340
+ [
341
+ 306.45155906677246,
342
+ -257.89902607599896,
343
+ 88.8102725148201,
344
+ 19.547493353240515
345
+ ],
346
+ [
347
+ 302.7472794055939,
348
+ -259.766807158788,
349
+ 94.49009597301483,
350
+ 19.547493353240515
351
+ ],
352
+ [
353
+ 299.0429997444153,
354
+ -261.63458824157715,
355
+ 100.16991943120956,
356
+ 19.547493353240515
357
+ ],
358
+ [
359
+ 308.92300605773926,
360
+ -255.69239258766174,
361
+ 83.69669318199158,
362
+ 56.30326619931805
363
+ ],
364
+ [
365
+ 298.4730899333954,
366
+ -263.3991539478302,
367
+ 100.63933581113815,
368
+ 60.508997637143054
369
+ ],
370
+ [
371
+ 298.61876368522644,
372
+ -263.4347081184387,
373
+ 100.49222409725189,
374
+ 0.79452009608457
375
+ ],
376
+ [
377
+ 297.81971871852875,
378
+ -263.5054886341095,
379
+ 100.78205168247223,
380
+ 0.9199802261747388
381
+ ],
382
+ [
383
+ 297.02067375183105,
384
+ -263.5762691497803,
385
+ 101.07187926769257,
386
+ 0.9199802261747388
387
+ ],
388
+ [
389
+ 299.0429401397705,
390
+ -260.58173179626465,
391
+ 99.14891421794891,
392
+ 12.562544852974401
393
+ ],
394
+ [
395
+ 299.5223104953766,
396
+ -259.67514514923096,
397
+ 98.3288586139679,
398
+ 4.654459037597948
399
+ ],
400
+ [
401
+ 297.2531020641327,
402
+ -261.43327355384827,
403
+ 100.22799670696259,
404
+ 8.404211516320187
405
+ ],
406
+ [
407
+ 296.82719707489014,
408
+ -261.72155141830444,
409
+ 100.3727838397026,
410
+ 0.38075712663396133
411
+ ],
412
+ [
413
+ 297.27302491664886,
414
+ -261.4552825689316,
415
+ 99.879439920187,
416
+ 2.47685672113217
417
+ ],
418
+ [
419
+ 297.7188527584076,
420
+ -261.1890137195587,
421
+ 99.38609600067139,
422
+ 2.47685672113217
423
+ ],
424
+ [
425
+ 296.985387802124,
426
+ -261.92277669906616,
427
+ 99.99685734510422,
428
+ 2.950995359058886
429
+ ],
430
+ [
431
+ 296.91872000694275,
432
+ -262.3162269592285,
433
+ 100.1523956656456,
434
+ 1.0788599858235337
435
+ ],
436
+ [
437
+ 298.3560860157013,
438
+ -261.4460587501526,
439
+ 99.32195395231247,
440
+ 5.773412293859073
441
+ ],
442
+ [
443
+ 296.42608761787415,
444
+ -264.20098543167114,
445
+ 101.20032727718353,
446
+ 10.160159250541096
447
+ ],
448
+ [
449
+ 299.8750905195872,
450
+ -262.31802503267926,
451
+ 95.73508054018022,
452
+ 18.376876621999287
453
+ ],
454
+ [
455
+ 303.3240934213003,
456
+ -260.4350646336873,
457
+ 90.26983380317688,
458
+ 18.376876621999365
459
+ ],
460
+ [
461
+ 306.7730963230133,
462
+ -258.55210423469543,
463
+ 84.80458706617355,
464
+ 18.376876621999365
465
+ ],
466
+ [
467
+ 307.30047821998596,
468
+ -258.9484751224518,
469
+ 84.33738350868225,
470
+ 0.895759422937142
471
+ ],
472
+ [
473
+ 308.4471821784973,
474
+ -259.8506808280945,
475
+ 83.44506472349167,
476
+ 1.6663582008083708
477
+ ],
478
+ [
479
+ 309.4472885131836,
480
+ -260.79100370407104,
481
+ 82.68500119447708,
482
+ 1.33335443938006
483
+ ],
484
+ [
485
+ 310.38379669189453,
486
+ -261.92471385002136,
487
+ 82.11658149957657,
488
+ 0.9798751840926763
489
+ ],
490
+ [
491
+ 311.4562928676605,
492
+ -264.0001177787781,
493
+ 81.76560699939728,
494
+ 1.1011101270402903
495
+ ],
496
+ [
497
+ 312.1500611305237,
498
+ -266.51260256767273,
499
+ 81.76075667142868,
500
+ 1.1618302378377408
501
+ ],
502
+ [
503
+ 312.6705586910248,
504
+ -269.53092217445374,
505
+ 82.07525312900543,
506
+ 1.4605563726876785
507
+ ],
508
+ [
509
+ 313.4174942970276,
510
+ -274.1166949272156,
511
+ 82.87405222654343,
512
+ 2.7386210679248326
513
+ ],
514
+ [
515
+ 314.53195214271545,
516
+ -279.0995240211487,
517
+ 83.74817669391632,
518
+ 2.4902257103976977
519
+ ],
520
+ [
521
+ 315.65767526626587,
522
+ -284.0711176395416,
523
+ 84.71626788377762,
524
+ 3.1030877236646313
525
+ ],
526
+ [
527
+ 317.8543448448181,
528
+ -290.38724303245544,
529
+ 85.79021692276001,
530
+ 3.1811083823589406
531
+ ],
532
+ [
533
+ 319.35420632362366,
534
+ -293.80643367767334,
535
+ 86.45369857549667,
536
+ 1.9771584365337935
537
+ ],
538
+ [
539
+ 321.02271914482117,
540
+ -296.7956066131592,
541
+ 86.80874109268188,
542
+ 1.4328510441285256
543
+ ],
544
+ [
545
+ 323.0038583278656,
546
+ -299.32087659835815,
547
+ 87.02840656042099,
548
+ 1.107609660685783
549
+ ],
550
+ [
551
+ 324.0295946598053,
552
+ -300.25893449783325,
553
+ 86.99427545070648,
554
+ 0.2615320319516599
555
+ ],
556
+ [
557
+ 324.67982172966003,
558
+ -300.9750247001648,
559
+ 86.81835234165192,
560
+ 0.3933108541740634
561
+ ],
562
+ [
563
+ 324.82844591140747,
564
+ -301.35464668273926,
565
+ 86.7825523018837,
566
+ 0.33539575068473193
567
+ ],
568
+ [
569
+ 324.8268961906433,
570
+ -301.7062544822693,
571
+ 86.85534447431564,
572
+ 0.2670883612040739
573
+ ],
574
+ [
575
+ 324.79116320610046,
576
+ -301.88122391700745,
577
+ 86.94441616535187,
578
+ 0.31683231742420354
579
+ ],
580
+ [
581
+ 324.97459650039673,
582
+ -302.3075461387634,
583
+ 86.88989281654358,
584
+ 0.4791139571993126
585
+ ],
586
+ [
587
+ 325.46788454055786,
588
+ -303.10049653053284,
589
+ 86.74144744873047,
590
+ 0.6359627258170248
591
+ ],
592
+ [
593
+ 326.33376121520996,
594
+ -304.47301268577576,
595
+ 86.54715120792389,
596
+ 0.5634556952841742
597
+ ],
598
+ [
599
+ 327.242910861969,
600
+ -305.92668056488037,
601
+ 86.47706359624863,
602
+ 0.31353957898544543
603
+ ],
604
+ [
605
+ 328.4637928009033,
606
+ -307.8799247741699,
607
+ 86.49381250143051,
608
+ 0.5136826355840761
609
+ ],
610
+ [
611
+ 330.69220185279846,
612
+ -311.0445737838745,
613
+ 86.5376740694046,
614
+ 0.9825570087647815
615
+ ],
616
+ [
617
+ 332.66520500183105,
618
+ -313.6473298072815,
619
+ 86.67613565921783,
620
+ 0.8635762687757502
621
+ ],
622
+ [
623
+ 335.73117852211,
624
+ -317.47186183929443,
625
+ 86.94154769182205,
626
+ 1.4296037834998752
627
+ ],
628
+ [
629
+ 338.3660018444061,
630
+ -320.6148147583008,
631
+ 87.08512037992477,
632
+ 1.284996298248242
633
+ ],
634
+ [
635
+ 340.9656286239624,
636
+ -323.83832335472107,
637
+ 87.57978677749634,
638
+ 1.2250238935555777
639
+ ]
640
+ ],
641
+ "repaired": [
642
+ [
643
+ 287.83875703811646,
644
+ -304.62267994880676,
645
+ 114.3956109881401,
646
+ 0.30968171327191935
647
+ ],
648
+ [
649
+ 286.4469587802887,
650
+ -303.7014603614807,
651
+ 114.51622098684311,
652
+ 0.3549786811080562
653
+ ],
654
+ [
655
+ 284.7020626068115,
656
+ -302.5079667568207,
657
+ 114.91329222917557,
658
+ 0.48629280529376245
659
+ ],
660
+ [
661
+ 282.02277421951294,
662
+ -300.50843954086304,
663
+ 115.80575257539749,
664
+ 0.8369952752086003
665
+ ],
666
+ [
667
+ 279.64454889297485,
668
+ -298.67929220199585,
669
+ 116.48748815059662,
670
+ 0.8045434504831638
671
+ ],
672
+ [
673
+ 276.86068415641785,
674
+ -296.39220237731934,
675
+ 117.30382591485977,
676
+ 1.0623311179740096
677
+ ],
678
+ [
679
+ 272.31863141059875,
680
+ -292.1760678291321,
681
+ 118.47323179244995,
682
+ 2.0265916919108857
683
+ ],
684
+ [
685
+ 268.5332000255585,
686
+ -288.4897291660309,
687
+ 119.33870613574982,
688
+ 1.7554087834383056
689
+ ],
690
+ [
691
+ 263.2598280906677,
692
+ -283.2823097705841,
693
+ 120.42056024074554,
694
+ 2.2402158814737176
695
+ ],
696
+ [
697
+ 259.3441903591156,
698
+ -279.0164053440094,
699
+ 121.29242718219757,
700
+ 1.6237334107183474
701
+ ],
702
+ [
703
+ 255.56397438049316,
704
+ -274.34372901916504,
705
+ 122.34102189540863,
706
+ 1.6280694625961036
707
+ ],
708
+ [
709
+ 251.11815333366394,
710
+ -267.248272895813,
711
+ 124.87819045782089,
712
+ 2.633782229437317
713
+ ],
714
+ [
715
+ 248.02571535110474,
716
+ -262.42539286613464,
717
+ 129.24017012119293,
718
+ 2.7124416469135424
719
+ ],
720
+ [
721
+ 246.2460696697235,
722
+ -259.5410346984863,
723
+ 135.05631685256958,
724
+ 1.3400189794617583
725
+ ],
726
+ [
727
+ 249.12311136722565,
728
+ -257.3968768119812,
729
+ 140.9979611635208,
730
+ 1.8299823657809438
731
+ ],
732
+ [
733
+ 255.6101679801941,
734
+ -256.99368119239807,
735
+ 141.3968950510025,
736
+ 3.501238348447552
737
+ ],
738
+ [
739
+ 267.98778772354126,
740
+ -257.7456831932068,
741
+ 137.14013993740082,
742
+ 5.977302890651232
743
+ ],
744
+ [
745
+ 276.74493193626404,
746
+ -257.87219405174255,
747
+ 131.97624683380127,
748
+ 3.2462766448861005
749
+ ],
750
+ [
751
+ 284.54604744911194,
752
+ -257.4864327907562,
753
+ 125.64757466316223,
754
+ 2.467017870357393
755
+ ],
756
+ [
757
+ 291.10080003738403,
758
+ -258.45205783843994,
759
+ 114.34192210435867,
760
+ 9.157549168422355
761
+ ],
762
+ [
763
+ 295.74036598205566,
764
+ -257.5708031654358,
765
+ 107.85229504108429,
766
+ 1.5493731323176956
767
+ ],
768
+ [
769
+ 300.70754885673523,
770
+ -254.92742657661438,
771
+ 105.12711852788925,
772
+ 7.198851431597693
773
+ ],
774
+ [
775
+ 302.84151434898376,
776
+ -254.2978823184967,
777
+ 101.27852857112885,
778
+ 1.3469589033647296
779
+ ],
780
+ [
781
+ 302.3383319377899,
782
+ -256.08429312705994,
783
+ 96.97545319795609,
784
+ 6.5750475020824055
785
+ ],
786
+ [
787
+ 304.1363060474396,
788
+ -256.7814886569977,
789
+ 94.14903819561005,
790
+ 0.7178583395501069
791
+ ],
792
+ [
793
+ 308.7144196033478,
794
+ -256.5770447254181,
795
+ 90.70130437612534,
796
+ 6.2133952553365095
797
+ ],
798
+ [
799
+ 307.9581558704376,
800
+ -258.5946321487427,
801
+ 83.71956646442413,
802
+ 9.753491051265453
803
+ ],
804
+ [
805
+ 311.63549423217773,
806
+ -257.64307379722595,
807
+ 82.85784721374512,
808
+ 8.160426092534301
809
+ ],
810
+ [
811
+ 311.47265434265137,
812
+ -256.84821605682373,
813
+ 83.11618864536285,
814
+ 1.0185581692340389
815
+ ],
816
+ [
817
+ 310.15583872795105,
818
+ -256.03124499320984,
819
+ 83.13044905662537,
820
+ 1.4419638186110126
821
+ ],
822
+ [
823
+ 306.45155906677246,
824
+ -257.8990161418915,
825
+ 88.8102725148201,
826
+ 19.54749281405072
827
+ ],
828
+ [
829
+ 302.7472794055939,
830
+ -259.7668170928955,
831
+ 94.49009597301483,
832
+ 19.547492569676336
833
+ ],
834
+ [
835
+ 299.0429997444153,
836
+ -261.63458824157715,
837
+ 100.16991943120956,
838
+ 19.547492740872503
839
+ ],
840
+ [
841
+ 308.92300605773926,
842
+ -255.69239258766174,
843
+ 83.69669318199158,
844
+ 56.30326501557877
845
+ ],
846
+ [
847
+ 298.4730899333954,
848
+ -263.3991539478302,
849
+ 100.63933581113815,
850
+ 60.50899879435414
851
+ ],
852
+ [
853
+ 298.61876368522644,
854
+ -263.4347081184387,
855
+ 100.49222409725189,
856
+ 0.7945212208322786
857
+ ],
858
+ [
859
+ 297.81973361968994,
860
+ -263.5054886341095,
861
+ 100.78205168247223,
862
+ 0.9199802614307054
863
+ ],
864
+ [
865
+ 297.02067375183105,
866
+ -263.5762691497803,
867
+ 101.07187926769257,
868
+ 0.9199809981007125
869
+ ],
870
+ [
871
+ 299.0429401397705,
872
+ -260.58173179626465,
873
+ 99.14891421794891,
874
+ 12.562548241034992
875
+ ],
876
+ [
877
+ 299.5223104953766,
878
+ -259.67514514923096,
879
+ 98.3288586139679,
880
+ 4.654457549566833
881
+ ],
882
+ [
883
+ 297.2531020641327,
884
+ -261.43327355384827,
885
+ 100.22799670696259,
886
+ 8.40421058169135
887
+ ],
888
+ [
889
+ 296.82719707489014,
890
+ -261.72155141830444,
891
+ 100.3727838397026,
892
+ 0.3807571346209403
893
+ ],
894
+ [
895
+ 297.27303981781006,
896
+ -261.4552974700928,
897
+ 99.8794436454773,
898
+ 2.476858782222544
899
+ ],
900
+ [
901
+ 297.7188527584076,
902
+ -261.1890137195587,
903
+ 99.38609600067139,
904
+ 2.4768516455331535
905
+ ],
906
+ [
907
+ 296.985387802124,
908
+ -261.92277669906616,
909
+ 99.99685734510422,
910
+ 2.9509941212174393
911
+ ],
912
+ [
913
+ 296.91872000694275,
914
+ -262.3162269592285,
915
+ 100.1523956656456,
916
+ 1.0788618842541822
917
+ ],
918
+ [
919
+ 298.3560860157013,
920
+ -261.4460587501526,
921
+ 99.32195395231247,
922
+ 5.773412341312107
923
+ ],
924
+ [
925
+ 296.42608761787415,
926
+ -264.20098543167114,
927
+ 101.20032727718353,
928
+ 10.160155146299514
929
+ ],
930
+ [
931
+ 299.87508058547974,
932
+ -262.3180150985718,
933
+ 95.7350805401802,
934
+ 18.37687612875972
935
+ ],
936
+ [
937
+ 303.3241033554077,
938
+ -260.4350745677948,
939
+ 90.26983380317688,
940
+ 18.37687882386254
941
+ ],
942
+ [
943
+ 306.7730963230133,
944
+ -258.55210423469543,
945
+ 84.80458706617355,
946
+ 18.376872947029167
947
+ ],
948
+ [
949
+ 307.30047821998596,
950
+ -258.9484751224518,
951
+ 84.33738350868225,
952
+ 0.8957581318538925
953
+ ],
954
+ [
955
+ 308.4471821784973,
956
+ -259.8506808280945,
957
+ 83.44506472349167,
958
+ 1.6663597828864087
959
+ ],
960
+ [
961
+ 309.4472885131836,
962
+ -260.79100370407104,
963
+ 82.68500119447708,
964
+ 1.3333540704368132
965
+ ],
966
+ [
967
+ 310.38379669189453,
968
+ -261.92471385002136,
969
+ 82.11658149957657,
970
+ 0.9798764978372154
971
+ ],
972
+ [
973
+ 311.4562928676605,
974
+ -264.0001177787781,
975
+ 81.76560699939728,
976
+ 1.1011087354991336
977
+ ],
978
+ [
979
+ 312.1500611305237,
980
+ -266.51260256767273,
981
+ 81.76075667142868,
982
+ 1.1618294326517724
983
+ ],
984
+ [
985
+ 312.6705586910248,
986
+ -269.53092217445374,
987
+ 82.07525312900543,
988
+ 1.4605586913924025
989
+ ],
990
+ [
991
+ 313.4174942970276,
992
+ -274.1166949272156,
993
+ 82.87405222654343,
994
+ 2.738620686178424
995
+ ],
996
+ [
997
+ 314.53195214271545,
998
+ -279.0995240211487,
999
+ 83.74817669391632,
1000
+ 2.49022781708489
1001
+ ],
1002
+ [
1003
+ 315.65767526626587,
1004
+ -284.0711176395416,
1005
+ 84.71626788377762,
1006
+ 3.1030847078798023
1007
+ ],
1008
+ [
1009
+ 317.8543448448181,
1010
+ -290.38724303245544,
1011
+ 85.79021692276001,
1012
+ 3.1811081188209123
1013
+ ],
1014
+ [
1015
+ 319.35420632362366,
1016
+ -293.80643367767334,
1017
+ 86.45369857549667,
1018
+ 1.9771568890554754
1019
+ ],
1020
+ [
1021
+ 321.02271914482117,
1022
+ -296.7956066131592,
1023
+ 86.80874109268188,
1024
+ 1.4328517672440524
1025
+ ],
1026
+ [
1027
+ 323.0038583278656,
1028
+ -299.32087659835815,
1029
+ 87.02840656042099,
1030
+ 1.107610288441884
1031
+ ],
1032
+ [
1033
+ 324.0295946598053,
1034
+ -300.25893449783325,
1035
+ 86.99427545070648,
1036
+ 0.26153261830690516
1037
+ ],
1038
+ [
1039
+ 324.67982172966003,
1040
+ -300.9750247001648,
1041
+ 86.81835234165192,
1042
+ 0.3933118876506543
1043
+ ],
1044
+ [
1045
+ 324.82844591140747,
1046
+ -301.35464668273926,
1047
+ 86.7825523018837,
1048
+ 0.3353994796492204
1049
+ ],
1050
+ [
1051
+ 324.8268961906433,
1052
+ -301.7062544822693,
1053
+ 86.85534447431564,
1054
+ 0.26708763218663223
1055
+ ],
1056
+ [
1057
+ 324.79116320610046,
1058
+ -301.88122391700745,
1059
+ 86.94441616535187,
1060
+ 0.31683153337846115
1061
+ ],
1062
+ [
1063
+ 324.97459650039673,
1064
+ -302.3075461387634,
1065
+ 86.88989281654358,
1066
+ 0.4791135560900302
1067
+ ],
1068
+ [
1069
+ 325.46788454055786,
1070
+ -303.10049653053284,
1071
+ 86.74144744873047,
1072
+ 0.6359612977401633
1073
+ ],
1074
+ [
1075
+ 326.33376121520996,
1076
+ -304.47301268577576,
1077
+ 86.54715120792389,
1078
+ 0.5634544668543481
1079
+ ],
1080
+ [
1081
+ 327.242910861969,
1082
+ -305.92668056488037,
1083
+ 86.47706359624863,
1084
+ 0.31354033011347565
1085
+ ],
1086
+ [
1087
+ 328.4637928009033,
1088
+ -307.8799247741699,
1089
+ 86.49381250143051,
1090
+ 0.5136829362881316
1091
+ ],
1092
+ [
1093
+ 330.69220185279846,
1094
+ -311.0445737838745,
1095
+ 86.5376740694046,
1096
+ 0.9825574516649365
1097
+ ],
1098
+ [
1099
+ 332.66520500183105,
1100
+ -313.6473298072815,
1101
+ 86.67613565921783,
1102
+ 0.8635755123101464
1103
+ ],
1104
+ [
1105
+ 335.73117852211,
1106
+ -317.47186183929443,
1107
+ 86.94154769182205,
1108
+ 1.4296045194694034
1109
+ ],
1110
+ [
1111
+ 338.3660018444061,
1112
+ -320.6148147583008,
1113
+ 87.08512037992477,
1114
+ 1.2849970658817662
1115
+ ],
1116
+ [
1117
+ 340.9656286239624,
1118
+ -323.83832335472107,
1119
+ 87.57978677749634,
1120
+ 1.2250236844201465
1121
+ ]
1122
+ ]
1123
+ },
1124
+ "capture_start_seconds": 853.8774020671844,
1125
+ "capture_end_seconds": 854.5156986713409,
1126
+ "video_time_basis": "local_row / 30 fps"
1127
+ },
1128
+ {
1129
+ "confidence": "LOW",
1130
+ "end": 18269,
1131
+ "event_id": "right:18241-18269:known_gap",
1132
+ "evidence": {
1133
+ "branch_unambiguous": true,
1134
+ "duration_frames": 29,
1135
+ "fit_converged": true,
1136
+ "fit_iterations": 2,
1137
+ "left_anchor": 18240,
1138
+ "left_context_frames": 15,
1139
+ "observed_inlier_frames": 0,
1140
+ "physical": true,
1141
+ "prediction_rotation_max_deg": 25.834501740871318,
1142
+ "prediction_translation_max_mm": 15.090656088135642,
1143
+ "reconstructed_max_step_rotation_deg": 1.1326677708465143,
1144
+ "reconstructed_max_step_translation_mm": 0.5728805670187909,
1145
+ "rejection": "incompatible_two_sided_prediction",
1146
+ "replaced_frames": 29,
1147
+ "right_anchor": 18270,
1148
+ "right_context_frames": 15,
1149
+ "rotation_inlier_threshold_deg": 5.304836298218591,
1150
+ "rotation_residual_p95_deg": 17.994014368462977,
1151
+ "translation_inlier_threshold_mm": 4.795698479997411,
1152
+ "translation_residual_p95_mm": 6.951045398426912
1153
+ },
1154
+ "kind": "known_gap",
1155
+ "left_context_end": 18240,
1156
+ "method": "unrepaired_ambiguous_branch",
1157
+ "replaced_frames": [],
1158
+ "right_context_start": 18270,
1159
+ "seed_frames": [
1160
+ 18241,
1161
+ 18242,
1162
+ 18243,
1163
+ 18244,
1164
+ 18245,
1165
+ 18246,
1166
+ 18247,
1167
+ 18248,
1168
+ 18249,
1169
+ 18250,
1170
+ 18251,
1171
+ 18252,
1172
+ 18253,
1173
+ 18254,
1174
+ 18255,
1175
+ 18256,
1176
+ 18257,
1177
+ 18258,
1178
+ 18259,
1179
+ 18260,
1180
+ 18261,
1181
+ 18262,
1182
+ 18263,
1183
+ 18264,
1184
+ 18265,
1185
+ 18266,
1186
+ 18267,
1187
+ 18268,
1188
+ 18269
1189
+ ],
1190
+ "side": "right",
1191
+ "start": 18241,
1192
+ "qualified_event_id": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet::right:18241-18269:known_gap",
1193
+ "remote_path": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet",
1194
+ "source_start_row": 18241,
1195
+ "source_end_row": 18269,
1196
+ "local_start_row": 18241,
1197
+ "local_end_row": 18269,
1198
+ "local_start_seconds": 608.0333333333333,
1199
+ "local_end_seconds": 608.9666666666667,
1200
+ "video_links": {
1201
+ "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_middle.mp4#t=607.033,609.967",
1202
+ "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/wrist_right.mp4#t=607.033,609.967",
1203
+ "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_left.mp4#t=607.033,609.967",
1204
+ "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_right.mp4#t=607.033,609.967"
1205
+ },
1206
+ "chart": {
1207
+ "seconds": [
1208
+ 607.0333333333333,
1209
+ 607.0666666666667,
1210
+ 607.1,
1211
+ 607.1333333333333,
1212
+ 607.1666666666666,
1213
+ 607.2,
1214
+ 607.2333333333333,
1215
+ 607.2666666666667,
1216
+ 607.3,
1217
+ 607.3333333333334,
1218
+ 607.3666666666667,
1219
+ 607.4,
1220
+ 607.4333333333333,
1221
+ 607.4666666666667,
1222
+ 607.5,
1223
+ 607.5333333333333,
1224
+ 607.5666666666667,
1225
+ 607.6,
1226
+ 607.6333333333333,
1227
+ 607.6666666666666,
1228
+ 607.7,
1229
+ 607.7333333333333,
1230
+ 607.7666666666667,
1231
+ 607.8,
1232
+ 607.8333333333334,
1233
+ 607.8666666666667,
1234
+ 607.9,
1235
+ 607.9333333333333,
1236
+ 607.9666666666667,
1237
+ 608.0,
1238
+ 608.0333333333333,
1239
+ 608.0666666666667,
1240
+ 608.1,
1241
+ 608.1333333333333,
1242
+ 608.1666666666666,
1243
+ 608.2,
1244
+ 608.2333333333333,
1245
+ 608.2666666666667,
1246
+ 608.3,
1247
+ 608.3333333333334,
1248
+ 608.3666666666667,
1249
+ 608.4,
1250
+ 608.4333333333333,
1251
+ 608.4666666666667,
1252
+ 608.5,
1253
+ 608.5333333333333,
1254
+ 608.5666666666667,
1255
+ 608.6,
1256
+ 608.6333333333333,
1257
+ 608.6666666666666,
1258
+ 608.7,
1259
+ 608.7333333333333,
1260
+ 608.7666666666667,
1261
+ 608.8,
1262
+ 608.8333333333334,
1263
+ 608.8666666666667,
1264
+ 608.9,
1265
+ 608.9333333333333,
1266
+ 608.9666666666667,
1267
+ 609.0,
1268
+ 609.0333333333333,
1269
+ 609.0666666666667,
1270
+ 609.1,
1271
+ 609.1333333333333,
1272
+ 609.1666666666666,
1273
+ 609.2,
1274
+ 609.2333333333333,
1275
+ 609.2666666666667,
1276
+ 609.3,
1277
+ 609.3333333333334,
1278
+ 609.3666666666667,
1279
+ 609.4,
1280
+ 609.4333333333333,
1281
+ 609.4666666666667,
1282
+ 609.5,
1283
+ 609.5333333333333,
1284
+ 609.5666666666667,
1285
+ 609.6,
1286
+ 609.6333333333333,
1287
+ 609.6666666666666,
1288
+ 609.7,
1289
+ 609.7333333333333,
1290
+ 609.7666666666667,
1291
+ 609.8,
1292
+ 609.8333333333334,
1293
+ 609.8666666666667,
1294
+ 609.9,
1295
+ 609.9333333333333,
1296
+ 609.9666666666667
1297
+ ],
1298
+ "sampled": false,
1299
+ "raw": [
1300
+ [
1301
+ 431.3232898712158,
1302
+ -384.27117466926575,
1303
+ 72.46900349855423,
1304
+ 0.2014582746989268
1305
+ ],
1306
+ [
1307
+ 431.380957365036,
1308
+ -385.1749897003174,
1309
+ 72.05665856599808,
1310
+ 0.7524318329132165
1311
+ ],
1312
+ [
1313
+ 431.31959438323975,
1314
+ -385.86685061454773,
1315
+ 71.6843232512474,
1316
+ 0.608467634481723
1317
+ ],
1318
+ [
1319
+ 431.41886591911316,
1320
+ -386.2491250038147,
1321
+ 71.42627239227295,
1322
+ 0.4248531223334273
1323
+ ],
1324
+ [
1325
+ 431.8299889564514,
1326
+ -387.0321810245514,
1327
+ 71.23274356126785,
1328
+ 0.7215748863342543
1329
+ ],
1330
+ [
1331
+ 432.1843385696411,
1332
+ -387.80224323272705,
1333
+ 71.1081475019455,
1334
+ 0.7496697823470688
1335
+ ],
1336
+ [
1337
+ 432.6546788215637,
1338
+ -388.14520835876465,
1339
+ 71.06754183769226,
1340
+ 0.7466309524096729
1341
+ ],
1342
+ [
1343
+ 432.9459071159363,
1344
+ -387.7454400062561,
1345
+ 71.36942446231842,
1346
+ 0.3934078473478845
1347
+ ],
1348
+ [
1349
+ 433.1085681915283,
1350
+ -387.041836977005,
1351
+ 71.88565284013748,
1352
+ 0.5383150138833217
1353
+ ],
1354
+ [
1355
+ 433.31828713417053,
1356
+ -387.0577812194824,
1357
+ 71.98257744312286,
1358
+ 0.24088213355621665
1359
+ ],
1360
+ [
1361
+ 433.37154388427734,
1362
+ -387.7977430820465,
1363
+ 71.54951989650726,
1364
+ 0.600752587305908
1365
+ ],
1366
+ [
1367
+ 433.4258735179901,
1368
+ -388.4184658527374,
1369
+ 71.34462147951126,
1370
+ 0.564395951070828
1371
+ ],
1372
+ [
1373
+ 433.40548872947693,
1374
+ -388.7379765510559,
1375
+ 71.15480303764343,
1376
+ 0.3235568084286885
1377
+ ],
1378
+ [
1379
+ 433.3363473415375,
1380
+ -388.9404833316803,
1381
+ 71.03342562913895,
1382
+ 0.16083278261822173
1383
+ ],
1384
+ [
1385
+ 433.2759380340576,
1386
+ -388.99099826812744,
1387
+ 70.98168134689331,
1388
+ 0.14858850229721055
1389
+ ],
1390
+ [
1391
+ 433.2578480243683,
1392
+ -388.96727561950684,
1393
+ 70.97900658845901,
1394
+ 0.07955057427115923
1395
+ ],
1396
+ [
1397
+ 433.33175778388977,
1398
+ -389.0331983566284,
1399
+ 71.09128683805466,
1400
+ 0.377113374761655
1401
+ ],
1402
+ [
1403
+ 433.33420157432556,
1404
+ -388.6948227882385,
1405
+ 71.00728899240494,
1406
+ 0.5004286195244619
1407
+ ],
1408
+ [
1409
+ 433.4241449832916,
1410
+ -388.18028569221497,
1411
+ 71.10005617141724,
1412
+ 0.580024924761252
1413
+ ],
1414
+ [
1415
+ 433.5927963256836,
1416
+ -387.4585032463074,
1417
+ 71.81740552186966,
1418
+ 0.5811388771266103
1419
+ ],
1420
+ [
1421
+ 433.1834614276886,
1422
+ -386.2738907337189,
1423
+ 71.40316069126129,
1424
+ 2.207194469066038
1425
+ ],
1426
+ [
1427
+ 433.3309233188629,
1428
+ -385.39278507232666,
1429
+ 71.49896770715714,
1430
+ 0.5409416473046472
1431
+ ],
1432
+ [
1433
+ 434.1488629579544,
1434
+ -384.6781551837921,
1435
+ 74.01271536946297,
1436
+ 8.122339688703399
1437
+ ],
1438
+ [
1439
+ 434.9668025970459,
1440
+ -383.96352529525757,
1441
+ 76.5264630317688,
1442
+ 8.122339688703219
1443
+ ],
1444
+ [
1445
+ 435.59449911117554,
1446
+ -383.38151574134827,
1447
+ 77.30764895677567,
1448
+ 2.557839238910028
1449
+ ],
1450
+ [
1451
+ 435.7207864522934,
1452
+ -382.8025907278061,
1453
+ 77.52903550863266,
1454
+ 0.43996850768576506
1455
+ ],
1456
+ [
1457
+ 435.84707379341125,
1458
+ -382.2236657142639,
1459
+ 77.75042206048965,
1460
+ 0.4399685076791379
1461
+ ],
1462
+ [
1463
+ 435.3255331516266,
1464
+ -382.64110684394836,
1465
+ 76.95252448320389,
1466
+ 1.8168757633492416
1467
+ ],
1468
+ [
1469
+ 435.09331345558167,
1470
+ -382.8537166118622,
1471
+ 77.24093645811081,
1472
+ 1.618112708910672
1473
+ ],
1474
+ [
1475
+ 434.5029890537262,
1476
+ -383.55299830436707,
1477
+ 76.63954794406891,
1478
+ 0.7810726572363977
1479
+ ],
1480
+ [
1481
+ 433.4009289741516,
1482
+ -384.53006744384766,
1483
+ 70.59325277805328,
1484
+ 17.721303805753355
1485
+ ],
1486
+ [
1487
+ 433.27662348747253,
1488
+ -384.8331570625305,
1489
+ 70.38184255361557,
1490
+ 0.3515325584970709
1491
+ ],
1492
+ [
1493
+ 433.39529633522034,
1494
+ -385.03628969192505,
1495
+ 70.44874876737595,
1496
+ 0.2553478013940264
1497
+ ],
1498
+ [
1499
+ 433.57357382774353,
1500
+ -384.680300951004,
1501
+ 70.77524065971375,
1502
+ 0.22156935060786656
1503
+ ],
1504
+ [
1505
+ 433.80188941955566,
1506
+ -383.67611169815063,
1507
+ 71.24161720275879,
1508
+ 1.1619493867325494
1509
+ ],
1510
+ [
1511
+ 434.0122938156128,
1512
+ -382.3555111885071,
1513
+ 71.92368060350418,
1514
+ 1.1761767970924155
1515
+ ],
1516
+ [
1517
+ 434.4278573989868,
1518
+ -381.19059801101685,
1519
+ 72.67706841230392,
1520
+ 0.8867084650484227
1521
+ ],
1522
+ [
1523
+ 434.8340332508087,
1524
+ -379.4257640838623,
1525
+ 73.45722615718842,
1526
+ 1.7030549726054556
1527
+ ],
1528
+ [
1529
+ 435.1080656051636,
1530
+ -378.3523440361023,
1531
+ 73.85292649269104,
1532
+ 0.9959664109821083
1533
+ ],
1534
+ [
1535
+ 435.1256787776947,
1536
+ -377.5692880153656,
1537
+ 74.2151066660881,
1538
+ 0.7179413517915832
1539
+ ],
1540
+ [
1541
+ 434.8631501197815,
1542
+ -377.12913751602173,
1543
+ 74.22663271427155,
1544
+ 0.5460144012122867
1545
+ ],
1546
+ [
1547
+ 434.50284004211426,
1548
+ -376.9030272960663,
1549
+ 74.15753602981567,
1550
+ 0.39851305406489923
1551
+ ],
1552
+ [
1553
+ 433.9140057563782,
1554
+ -376.56497955322266,
1555
+ 73.96673411130905,
1556
+ 0.7054706621232878
1557
+ ],
1558
+ [
1559
+ 433.40450525283813,
1560
+ -376.30030512809753,
1561
+ 73.90642166137695,
1562
+ 0.4190646770565121
1563
+ ],
1564
+ [
1565
+ 433.05182456970215,
1566
+ -375.91445446014404,
1567
+ 73.86582344770432,
1568
+ 0.4193654010825786
1569
+ ],
1570
+ [
1571
+ 432.82777070999146,
1572
+ -375.3817677497864,
1573
+ 73.90276342630386,
1574
+ 0.44844445638354374
1575
+ ],
1576
+ [
1577
+ 432.6561987400055,
1578
+ -374.71336126327515,
1579
+ 73.73502850532532,
1580
+ 1.0706691926092913
1581
+ ],
1582
+ [
1583
+ 432.6997399330139,
1584
+ -374.59149956703186,
1585
+ 73.7968236207962,
1586
+ 0.14168538452734677
1587
+ ],
1588
+ [
1589
+ 432.82806873321533,
1590
+ -375.1358389854431,
1591
+ 74.06618446111679,
1592
+ 1.1823098614175178
1593
+ ],
1594
+ [
1595
+ 432.7220618724823,
1596
+ -375.6610155105591,
1597
+ 73.86501133441925,
1598
+ 0.42447534367813944
1599
+ ],
1600
+ [
1601
+ 432.62338638305664,
1602
+ -376.3868510723114,
1603
+ 73.67012649774551,
1604
+ 0.7609641531490925
1605
+ ],
1606
+ [
1607
+ 432.5353801250458,
1608
+ -376.8095076084137,
1609
+ 73.41213524341583,
1610
+ 0.3232186389969838
1611
+ ],
1612
+ [
1613
+ 432.4893653392792,
1614
+ -377.08228826522827,
1615
+ 73.30723851919174,
1616
+ 0.24680412166093368
1617
+ ],
1618
+ [
1619
+ 432.43688344955444,
1620
+ -377.21049785614014,
1621
+ 73.27823340892792,
1622
+ 0.1823854957397843
1623
+ ],
1624
+ [
1625
+ 432.13018774986267,
1626
+ -377.14141607284546,
1627
+ 72.81580567359924,
1628
+ 1.196282634221252
1629
+ ],
1630
+ [
1631
+ 432.0570230484009,
1632
+ -377.1328628063202,
1633
+ 72.79662787914276,
1634
+ 0.12583044411017982
1635
+ ],
1636
+ [
1637
+ 431.6575825214386,
1638
+ -377.76514887809753,
1639
+ 72.1283033490181,
1640
+ 2.4918778093863696
1641
+ ],
1642
+ [
1643
+ 432.97168612480164,
1644
+ -376.2286901473999,
1645
+ 78.46485078334808,
1646
+ 20.31462039479274
1647
+ ],
1648
+ [
1649
+ 432.7070415019989,
1650
+ -375.91686844825745,
1651
+ 77.8680220246315,
1652
+ 2.435838955626385
1653
+ ],
1654
+ [
1655
+ 431.6406548023224,
1656
+ -376.5743374824524,
1657
+ 72.4179670214653,
1658
+ 18.082062805604437
1659
+ ],
1660
+ [
1661
+ 431.68050050735474,
1662
+ -376.1018216609955,
1663
+ 72.63752818107605,
1664
+ 0.4286452731132735
1665
+ ],
1666
+ [
1667
+ 431.7387044429779,
1668
+ -375.6812512874603,
1669
+ 72.76565581560135,
1670
+ 0.39674549567816686
1671
+ ],
1672
+ [
1673
+ 431.8373203277588,
1674
+ -375.476211309433,
1675
+ 72.89445400238037,
1676
+ 0.22038249280738514
1677
+ ],
1678
+ [
1679
+ 431.94007873535156,
1680
+ -375.36823749542236,
1681
+ 73.03102314472198,
1682
+ 0.1757086180642858
1683
+ ],
1684
+ [
1685
+ 432.0387840270996,
1686
+ -374.84481930732727,
1687
+ 73.27292859554291,
1688
+ 0.4871404635235868
1689
+ ],
1690
+ [
1691
+ 432.7540099620819,
1692
+ -373.4424412250519,
1693
+ 74.38185065984726,
1694
+ 3.274677438298629
1695
+ ],
1696
+ [
1697
+ 432.91351199150085,
1698
+ -372.8258013725281,
1699
+ 74.64300841093063,
1700
+ 0.5491376740567234
1701
+ ],
1702
+ [
1703
+ 433.12689661979675,
1704
+ -371.8620538711548,
1705
+ 75.01675933599472,
1706
+ 0.8382904220514082
1707
+ ],
1708
+ [
1709
+ 433.42533707618713,
1710
+ -371.3502585887909,
1711
+ 75.28969645500183,
1712
+ 0.5148070169859035
1713
+ ],
1714
+ [
1715
+ 433.59115719795227,
1716
+ -371.42518162727356,
1717
+ 75.40313154459,
1718
+ 0.10668748909422086
1719
+ ],
1720
+ [
1721
+ 433.58758091926575,
1722
+ -371.6394007205963,
1723
+ 75.291208922863,
1724
+ 0.23294227804987072
1725
+ ],
1726
+ [
1727
+ 433.4932863712311,
1728
+ -371.7690706253052,
1729
+ 75.21986216306686,
1730
+ 0.12874474820122103
1731
+ ],
1732
+ [
1733
+ 433.62700939178467,
1734
+ -372.01201915740967,
1735
+ 75.64954459667206,
1736
+ 1.367006067362803
1737
+ ],
1738
+ [
1739
+ 433.0257773399353,
1740
+ -371.4132308959961,
1741
+ 75.058214366436,
1742
+ 1.5168372367867367
1743
+ ],
1744
+ [
1745
+ 432.6878786087036,
1746
+ -370.90736627578735,
1747
+ 75.00889897346497,
1748
+ 0.4842669670427513
1749
+ ],
1750
+ [
1751
+ 432.2745203971863,
1752
+ -370.5609440803528,
1753
+ 74.90695267915726,
1754
+ 0.4424739036382653
1755
+ ],
1756
+ [
1757
+ 431.72237277030945,
1758
+ -370.0231909751892,
1759
+ 74.8247504234314,
1760
+ 0.621578865273515
1761
+ ],
1762
+ [
1763
+ 431.39344453811646,
1764
+ -369.791179895401,
1765
+ 74.70154762268066,
1766
+ 0.3641062591422283
1767
+ ],
1768
+ [
1769
+ 431.1537444591522,
1770
+ -369.7577714920044,
1771
+ 74.59349930286407,
1772
+ 0.2527696940088729
1773
+ ],
1774
+ [
1775
+ 430.7354688644409,
1776
+ -369.974821805954,
1777
+ 74.33106005191803,
1778
+ 0.4261480615271059
1779
+ ],
1780
+ [
1781
+ 430.2956461906433,
1782
+ -370.43043971061707,
1783
+ 74.01853799819946,
1784
+ 0.5818324534000812
1785
+ ],
1786
+ [
1787
+ 429.62339520454407,
1788
+ -371.63808941841125,
1789
+ 73.60927015542984,
1790
+ 1.2733329203458068
1791
+ ],
1792
+ [
1793
+ 428.6722242832184,
1794
+ -372.8664815425873,
1795
+ 72.86585867404938,
1796
+ 1.613158179825336
1797
+ ],
1798
+ [
1799
+ 427.98760533332825,
1800
+ -373.1338083744049,
1801
+ 72.5264623761177,
1802
+ 1.0542128801232526
1803
+ ],
1804
+ [
1805
+ 427.9864430427551,
1806
+ -371.3298738002777,
1807
+ 73.17709177732468,
1808
+ 1.668631623564206
1809
+ ],
1810
+ [
1811
+ 428.83792519569397,
1812
+ -368.600994348526,
1813
+ 75.43035596609116,
1814
+ 0.9633312008997572
1815
+ ],
1816
+ [
1817
+ 430.2579462528229,
1818
+ -365.3919994831085,
1819
+ 78.54413986206055,
1820
+ 1.3113109945279584
1821
+ ],
1822
+ [
1823
+ 432.5615167617798,
1824
+ -361.9951605796814,
1825
+ 81.75583183765411,
1826
+ 1.4152380816943164
1827
+ ],
1828
+ [
1829
+ 434.411883354187,
1830
+ -360.96811294555664,
1831
+ 82.67194032669067,
1832
+ 1.3915120465507405
1833
+ ]
1834
+ ],
1835
+ "repaired": [
1836
+ [
1837
+ 431.3232898712158,
1838
+ -384.27117466926575,
1839
+ 72.46900349855423,
1840
+ 0.20146017177629588
1841
+ ],
1842
+ [
1843
+ 431.380957365036,
1844
+ -385.1749897003174,
1845
+ 72.05665856599808,
1846
+ 0.7524366889529566
1847
+ ],
1848
+ [
1849
+ 431.31959438323975,
1850
+ -385.86685061454773,
1851
+ 71.6843232512474,
1852
+ 0.6084601715154392
1853
+ ],
1854
+ [
1855
+ 431.41886591911316,
1856
+ -386.2491250038147,
1857
+ 71.42627239227295,
1858
+ 0.4248548793453975
1859
+ ],
1860
+ [
1861
+ 431.8299889564514,
1862
+ -387.0321810245514,
1863
+ 71.23274356126785,
1864
+ 0.7215726467983066
1865
+ ],
1866
+ [
1867
+ 432.1843385696411,
1868
+ -387.80224323272705,
1869
+ 71.1081475019455,
1870
+ 0.7496723489280491
1871
+ ],
1872
+ [
1873
+ 432.6546788215637,
1874
+ -388.14520835876465,
1875
+ 71.06754183769226,
1876
+ 0.7466301449557953
1877
+ ],
1878
+ [
1879
+ 432.9459071159363,
1880
+ -387.7454400062561,
1881
+ 71.36942446231842,
1882
+ 0.3934094864871941
1883
+ ],
1884
+ [
1885
+ 433.1085681915283,
1886
+ -387.041836977005,
1887
+ 71.88565284013748,
1888
+ 0.5383143754900004
1889
+ ],
1890
+ [
1891
+ 433.31828713417053,
1892
+ -387.0577812194824,
1893
+ 71.98257744312286,
1894
+ 0.24088291182183214
1895
+ ],
1896
+ [
1897
+ 433.37154388427734,
1898
+ -387.7977430820465,
1899
+ 71.54951989650726,
1900
+ 0.600755202657291
1901
+ ],
1902
+ [
1903
+ 433.4258735179901,
1904
+ -388.4184658527374,
1905
+ 71.34462147951126,
1906
+ 0.5643924825518201
1907
+ ],
1908
+ [
1909
+ 433.40548872947693,
1910
+ -388.7379765510559,
1911
+ 71.15480303764343,
1912
+ 0.3235578683467363
1913
+ ],
1914
+ [
1915
+ 433.3363473415375,
1916
+ -388.9404833316803,
1917
+ 71.03342562913895,
1918
+ 0.16083256933177073
1919
+ ],
1920
+ [
1921
+ 433.2759380340576,
1922
+ -388.99099826812744,
1923
+ 70.98168134689331,
1924
+ 0.14859025486548477
1925
+ ],
1926
+ [
1927
+ 433.2578480243683,
1928
+ -388.96727561950684,
1929
+ 70.97900658845901,
1930
+ 0.07954927099343109
1931
+ ],
1932
+ [
1933
+ 433.33175778388977,
1934
+ -389.0331983566284,
1935
+ 71.09128683805466,
1936
+ 0.3771117423552006
1937
+ ],
1938
+ [
1939
+ 433.33420157432556,
1940
+ -388.6948227882385,
1941
+ 71.00728899240494,
1942
+ 0.5004286590715535
1943
+ ],
1944
+ [
1945
+ 433.4241449832916,
1946
+ -388.18028569221497,
1947
+ 71.10005617141724,
1948
+ 0.5800259533053227
1949
+ ],
1950
+ [
1951
+ 433.5927963256836,
1952
+ -387.4585032463074,
1953
+ 71.81740552186966,
1954
+ 0.5811348520660641
1955
+ ],
1956
+ [
1957
+ 433.1834614276886,
1958
+ -386.2738907337189,
1959
+ 71.40316069126129,
1960
+ 2.2071930829034847
1961
+ ],
1962
+ [
1963
+ 433.3309233188629,
1964
+ -385.39278507232666,
1965
+ 71.49896770715714,
1966
+ 0.540942414169541
1967
+ ],
1968
+ [
1969
+ 434.1488480567932,
1970
+ -384.6781551837921,
1971
+ 74.01271164417267,
1972
+ 8.122339873876875
1973
+ ],
1974
+ [
1975
+ 434.9668025970459,
1976
+ -383.96352529525757,
1977
+ 76.5264630317688,
1978
+ 8.12234144568203
1979
+ ],
1980
+ [
1981
+ 435.59449911117554,
1982
+ -383.38151574134827,
1983
+ 77.30764895677567,
1984
+ 2.5578372522741875
1985
+ ],
1986
+ [
1987
+ 435.7208013534546,
1988
+ -382.8026056289673,
1989
+ 77.52903550863266,
1990
+ 0.4399724998955712
1991
+ ],
1992
+ [
1993
+ 435.84707379341125,
1994
+ -382.2236657142639,
1995
+ 77.75042206048965,
1996
+ 0.4399683919828291
1997
+ ],
1998
+ [
1999
+ 435.3255331516266,
2000
+ -382.64110684394836,
2001
+ 76.95252448320389,
2002
+ 1.816877844657864
2003
+ ],
2004
+ [
2005
+ 435.09331345558167,
2006
+ -382.8537166118622,
2007
+ 77.24093645811081,
2008
+ 1.6181132931636228
2009
+ ],
2010
+ [
2011
+ 434.5029890537262,
2012
+ -383.55299830436707,
2013
+ 76.63954794406891,
2014
+ 0.7810771013953797
2015
+ ],
2016
+ [
2017
+ 433.4009289741516,
2018
+ -384.53006744384766,
2019
+ 70.59325277805328,
2020
+ 17.721303464462306
2021
+ ],
2022
+ [
2023
+ 433.27662348747253,
2024
+ -384.8331570625305,
2025
+ 70.38184255361557,
2026
+ 0.35153121921122105
2027
+ ],
2028
+ [
2029
+ 433.39529633522034,
2030
+ -385.03628969192505,
2031
+ 70.44874876737595,
2032
+ 0.25534782483074814
2033
+ ],
2034
+ [
2035
+ 433.57357382774353,
2036
+ -384.680300951004,
2037
+ 70.77524065971375,
2038
+ 0.22156740477815476
2039
+ ],
2040
+ [
2041
+ 433.80188941955566,
2042
+ -383.67611169815063,
2043
+ 71.24161720275879,
2044
+ 1.1619527100247131
2045
+ ],
2046
+ [
2047
+ 434.0122938156128,
2048
+ -382.3555111885071,
2049
+ 71.92368060350418,
2050
+ 1.1761752189777477
2051
+ ],
2052
+ [
2053
+ 434.4278573989868,
2054
+ -381.19059801101685,
2055
+ 72.67706841230392,
2056
+ 0.8867073027964191
2057
+ ],
2058
+ [
2059
+ 434.8340332508087,
2060
+ -379.4257640838623,
2061
+ 73.45722615718842,
2062
+ 1.7030564597560125
2063
+ ],
2064
+ [
2065
+ 435.1080656051636,
2066
+ -378.3523440361023,
2067
+ 73.85292649269104,
2068
+ 0.9959630954148234
2069
+ ],
2070
+ [
2071
+ 435.1256787776947,
2072
+ -377.5692880153656,
2073
+ 74.2151066660881,
2074
+ 0.7179458737844869
2075
+ ],
2076
+ [
2077
+ 434.8631501197815,
2078
+ -377.12913751602173,
2079
+ 74.22663271427155,
2080
+ 0.54601430829323
2081
+ ],
2082
+ [
2083
+ 434.50284004211426,
2084
+ -376.9030272960663,
2085
+ 74.15753602981567,
2086
+ 0.39851699338826646
2087
+ ],
2088
+ [
2089
+ 433.9140057563782,
2090
+ -376.56497955322266,
2091
+ 73.96673411130905,
2092
+ 0.7054700710181903
2093
+ ],
2094
+ [
2095
+ 433.40450525283813,
2096
+ -376.30030512809753,
2097
+ 73.90642166137695,
2098
+ 0.41906384058765556
2099
+ ],
2100
+ [
2101
+ 433.05182456970215,
2102
+ -375.91445446014404,
2103
+ 73.86582344770432,
2104
+ 0.4193655331874447
2105
+ ],
2106
+ [
2107
+ 432.82777070999146,
2108
+ -375.3817677497864,
2109
+ 73.90276342630386,
2110
+ 0.44844473778091043
2111
+ ],
2112
+ [
2113
+ 432.6561987400055,
2114
+ -374.71336126327515,
2115
+ 73.73502850532532,
2116
+ 1.070667226536913
2117
+ ],
2118
+ [
2119
+ 432.6997399330139,
2120
+ -374.59149956703186,
2121
+ 73.7968236207962,
2122
+ 0.14168676225229265
2123
+ ],
2124
+ [
2125
+ 432.82806873321533,
2126
+ -375.1358389854431,
2127
+ 74.06618446111679,
2128
+ 1.1823118235794614
2129
+ ],
2130
+ [
2131
+ 432.7220618724823,
2132
+ -375.6610155105591,
2133
+ 73.86501133441925,
2134
+ 0.42447613381936516
2135
+ ],
2136
+ [
2137
+ 432.62338638305664,
2138
+ -376.3868510723114,
2139
+ 73.67012649774551,
2140
+ 0.760963684853812
2141
+ ],
2142
+ [
2143
+ 432.5353801250458,
2144
+ -376.8095076084137,
2145
+ 73.41213524341583,
2146
+ 0.32321740497669393
2147
+ ],
2148
+ [
2149
+ 432.4893653392792,
2150
+ -377.08228826522827,
2151
+ 73.30723851919174,
2152
+ 0.24680310662600166
2153
+ ],
2154
+ [
2155
+ 432.43688344955444,
2156
+ -377.21049785614014,
2157
+ 73.27823340892792,
2158
+ 0.18238943431716745
2159
+ ],
2160
+ [
2161
+ 432.13018774986267,
2162
+ -377.14141607284546,
2163
+ 72.81580567359924,
2164
+ 1.1962822925789742
2165
+ ],
2166
+ [
2167
+ 432.0570230484009,
2168
+ -377.1328628063202,
2169
+ 72.79662787914276,
2170
+ 0.12582890536556518
2171
+ ],
2172
+ [
2173
+ 431.6575825214386,
2174
+ -377.76514887809753,
2175
+ 72.1283033490181,
2176
+ 2.4918766849693337
2177
+ ],
2178
+ [
2179
+ 432.97168612480164,
2180
+ -376.2286901473999,
2181
+ 78.46485078334808,
2182
+ 20.314620412274742
2183
+ ],
2184
+ [
2185
+ 432.7070415019989,
2186
+ -375.91686844825745,
2187
+ 77.8680220246315,
2188
+ 2.4358398817926097
2189
+ ],
2190
+ [
2191
+ 431.6406548023224,
2192
+ -376.5743374824524,
2193
+ 72.4179670214653,
2194
+ 18.082063042053086
2195
+ ],
2196
+ [
2197
+ 431.68050050735474,
2198
+ -376.1018216609955,
2199
+ 72.63752818107605,
2200
+ 0.42864708848003097
2201
+ ],
2202
+ [
2203
+ 431.7387044429779,
2204
+ -375.6812512874603,
2205
+ 72.76565581560135,
2206
+ 0.3967397279204386
2207
+ ],
2208
+ [
2209
+ 431.8373203277588,
2210
+ -375.476211309433,
2211
+ 72.89445400238037,
2212
+ 0.2203818998391833
2213
+ ],
2214
+ [
2215
+ 431.94007873535156,
2216
+ -375.36823749542236,
2217
+ 73.03102314472198,
2218
+ 0.175711084098152
2219
+ ],
2220
+ [
2221
+ 432.0387840270996,
2222
+ -374.84481930732727,
2223
+ 73.27292859554291,
2224
+ 0.4871391929130305
2225
+ ],
2226
+ [
2227
+ 432.7540099620819,
2228
+ -373.4424412250519,
2229
+ 74.38185065984726,
2230
+ 3.2746784834353813
2231
+ ],
2232
+ [
2233
+ 432.91351199150085,
2234
+ -372.8258013725281,
2235
+ 74.64300841093063,
2236
+ 0.549135372812373
2237
+ ],
2238
+ [
2239
+ 433.12689661979675,
2240
+ -371.8620538711548,
2241
+ 75.01675933599472,
2242
+ 0.8382909286253489
2243
+ ],
2244
+ [
2245
+ 433.42533707618713,
2246
+ -371.3502585887909,
2247
+ 75.28969645500183,
2248
+ 0.514806397903109
2249
+ ],
2250
+ [
2251
+ 433.59115719795227,
2252
+ -371.42518162727356,
2253
+ 75.40313154459,
2254
+ 0.10668668061554606
2255
+ ],
2256
+ [
2257
+ 433.58758091926575,
2258
+ -371.6394007205963,
2259
+ 75.291208922863,
2260
+ 0.23294297140482437
2261
+ ],
2262
+ [
2263
+ 433.4932863712311,
2264
+ -371.7690706253052,
2265
+ 75.21986216306686,
2266
+ 0.12874262184185972
2267
+ ],
2268
+ [
2269
+ 433.62700939178467,
2270
+ -372.01201915740967,
2271
+ 75.64954459667206,
2272
+ 1.367007358961544
2273
+ ],
2274
+ [
2275
+ 433.0257773399353,
2276
+ -371.4132308959961,
2277
+ 75.058214366436,
2278
+ 1.5168367205957094
2279
+ ],
2280
+ [
2281
+ 432.6878786087036,
2282
+ -370.90736627578735,
2283
+ 75.00889897346497,
2284
+ 0.4842665830592468
2285
+ ],
2286
+ [
2287
+ 432.2745203971863,
2288
+ -370.5609440803528,
2289
+ 74.90695267915726,
2290
+ 0.44247636127790024
2291
+ ],
2292
+ [
2293
+ 431.72237277030945,
2294
+ -370.0231909751892,
2295
+ 74.8247504234314,
2296
+ 0.6215785121651313
2297
+ ],
2298
+ [
2299
+ 431.39344453811646,
2300
+ -369.791179895401,
2301
+ 74.70154762268066,
2302
+ 0.364103588745553
2303
+ ],
2304
+ [
2305
+ 431.1537444591522,
2306
+ -369.7577714920044,
2307
+ 74.59349930286407,
2308
+ 0.25276955050082905
2309
+ ],
2310
+ [
2311
+ 430.7354688644409,
2312
+ -369.974821805954,
2313
+ 74.33106005191803,
2314
+ 0.42614869718345894
2315
+ ],
2316
+ [
2317
+ 430.2956461906433,
2318
+ -370.43043971061707,
2319
+ 74.01853799819946,
2320
+ 0.581831204350115
2321
+ ],
2322
+ [
2323
+ 429.62339520454407,
2324
+ -371.63808941841125,
2325
+ 73.60927015542984,
2326
+ 1.2733380370417011
2327
+ ],
2328
+ [
2329
+ 428.6722242832184,
2330
+ -372.8664815425873,
2331
+ 72.86585867404938,
2332
+ 1.6131529664404674
2333
+ ],
2334
+ [
2335
+ 427.98760533332825,
2336
+ -373.1338083744049,
2337
+ 72.5264623761177,
2338
+ 1.0542131757184168
2339
+ ],
2340
+ [
2341
+ 427.9864430427551,
2342
+ -371.3298738002777,
2343
+ 73.17709177732468,
2344
+ 1.6686329795309307
2345
+ ],
2346
+ [
2347
+ 428.83792519569397,
2348
+ -368.600994348526,
2349
+ 75.43035596609116,
2350
+ 0.9633281206082966
2351
+ ],
2352
+ [
2353
+ 430.2579462528229,
2354
+ -365.3919994831085,
2355
+ 78.54413986206055,
2356
+ 1.3113109970528132
2357
+ ],
2358
+ [
2359
+ 432.5615167617798,
2360
+ -361.9951605796814,
2361
+ 81.75583183765411,
2362
+ 1.415236247575056
2363
+ ],
2364
+ [
2365
+ 434.411883354187,
2366
+ -360.96811294555664,
2367
+ 82.67194032669067,
2368
+ 1.3915122104663384
2369
+ ]
2370
+ ]
2371
+ },
2372
+ "capture_start_seconds": 612.881019115448,
2373
+ "capture_end_seconds": 613.8230102062225,
2374
+ "video_time_basis": "local_row / 30 fps"
2375
+ },
2376
+ {
2377
+ "confidence": "LOW",
2378
+ "end": 38434,
2379
+ "event_id": "right:38409-38434:known_gap",
2380
+ "evidence": {
2381
+ "branch_unambiguous": true,
2382
+ "duration_frames": 26,
2383
+ "fit_converged": true,
2384
+ "fit_iterations": 2,
2385
+ "left_anchor": 38408,
2386
+ "left_context_frames": 15,
2387
+ "observed_inlier_frames": 0,
2388
+ "physical": true,
2389
+ "prediction_rotation_max_deg": 91.48977666967491,
2390
+ "prediction_translation_max_mm": 482.74269783409295,
2391
+ "reconstructed_max_step_rotation_deg": 2.2959961154213073,
2392
+ "reconstructed_max_step_translation_mm": 14.468306121058506,
2393
+ "rejection": "incompatible_two_sided_prediction",
2394
+ "replaced_frames": 26,
2395
+ "right_anchor": 38435,
2396
+ "right_context_frames": 15,
2397
+ "rotation_inlier_threshold_deg": 2.4901709260233513,
2398
+ "rotation_residual_p95_deg": 114.0336509687834,
2399
+ "translation_inlier_threshold_mm": 7.385954430037193,
2400
+ "translation_residual_p95_mm": 86.87016362479505
2401
+ },
2402
+ "kind": "known_gap",
2403
+ "left_context_end": 38408,
2404
+ "method": "unrepaired_ambiguous_branch",
2405
+ "replaced_frames": [],
2406
+ "right_context_start": 38435,
2407
+ "seed_frames": [
2408
+ 38409,
2409
+ 38410,
2410
+ 38411,
2411
+ 38412,
2412
+ 38413,
2413
+ 38414,
2414
+ 38415,
2415
+ 38416,
2416
+ 38417,
2417
+ 38418,
2418
+ 38419,
2419
+ 38420,
2420
+ 38421,
2421
+ 38422,
2422
+ 38423,
2423
+ 38424,
2424
+ 38425,
2425
+ 38426,
2426
+ 38427,
2427
+ 38428,
2428
+ 38429,
2429
+ 38430,
2430
+ 38431,
2431
+ 38432,
2432
+ 38433,
2433
+ 38434
2434
+ ],
2435
+ "side": "right",
2436
+ "start": 38409,
2437
+ "qualified_event_id": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet::right:38409-38434:known_gap",
2438
+ "remote_path": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet",
2439
+ "source_start_row": 38409,
2440
+ "source_end_row": 38434,
2441
+ "local_start_row": 38409,
2442
+ "local_end_row": 38419,
2443
+ "local_start_seconds": 1280.3,
2444
+ "local_end_seconds": 1280.6333333333334,
2445
+ "video_links": {
2446
+ "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_middle.mp4#t=1279.300,1281.633",
2447
+ "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/wrist_right.mp4#t=1279.300,1281.633",
2448
+ "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_left.mp4#t=1279.300,1281.633",
2449
+ "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_right.mp4#t=1279.300,1281.633"
2450
+ },
2451
+ "chart": {
2452
+ "seconds": [
2453
+ 1279.3,
2454
+ 1279.3333333333333,
2455
+ 1279.3666666666666,
2456
+ 1279.4,
2457
+ 1279.4333333333334,
2458
+ 1279.4666666666667,
2459
+ 1279.5,
2460
+ 1279.5333333333333,
2461
+ 1279.5666666666666,
2462
+ 1279.6,
2463
+ 1279.6333333333334,
2464
+ 1279.6666666666667,
2465
+ 1279.7,
2466
+ 1279.7333333333333,
2467
+ 1279.7666666666667,
2468
+ 1279.8,
2469
+ 1279.8333333333333,
2470
+ 1279.8666666666666,
2471
+ 1279.9,
2472
+ 1279.9333333333334,
2473
+ 1279.9666666666667,
2474
+ 1280.0,
2475
+ 1280.0333333333333,
2476
+ 1280.0666666666666,
2477
+ 1280.1,
2478
+ 1280.1333333333334,
2479
+ 1280.1666666666667,
2480
+ 1280.2,
2481
+ 1280.2333333333333,
2482
+ 1280.2666666666667,
2483
+ 1280.3,
2484
+ 1280.3333333333333,
2485
+ 1280.3666666666666,
2486
+ 1280.4,
2487
+ 1280.4333333333334,
2488
+ 1280.4666666666667,
2489
+ 1280.5,
2490
+ 1280.5333333333333,
2491
+ 1280.5666666666666,
2492
+ 1280.6,
2493
+ 1280.6333333333334
2494
+ ],
2495
+ "sampled": false,
2496
+ "raw": [
2497
+ [
2498
+ 424.17600750923157,
2499
+ -244.59561705589294,
2500
+ 102.14490443468094,
2501
+ 0.3810462198821703
2502
+ ],
2503
+ [
2504
+ 421.0907816886902,
2505
+ -245.92556059360504,
2506
+ 102.37690806388855,
2507
+ 0.15763046268625622
2508
+ ],
2509
+ [
2510
+ 419.3500876426697,
2511
+ -246.52475118637085,
2512
+ 102.27581113576889,
2513
+ 0.2954050588730712
2514
+ ],
2515
+ [
2516
+ 417.95429587364197,
2517
+ -246.94359302520752,
2518
+ 102.33546048402786,
2519
+ 0.24342799729508532
2520
+ ],
2521
+ [
2522
+ 417.5335764884949,
2523
+ -247.00398743152618,
2524
+ 102.3651733994484,
2525
+ 0.12507766450128693
2526
+ ],
2527
+ [
2528
+ 417.5568222999573,
2529
+ -246.8426376581192,
2530
+ 102.56645083427429,
2531
+ 0.13115613818367064
2532
+ ],
2533
+ [
2534
+ 417.89063811302185,
2535
+ -246.34234607219696,
2536
+ 103.04496437311172,
2537
+ 0.26478441806178676
2538
+ ],
2539
+ [
2540
+ 419.1786050796509,
2541
+ -245.41181325912476,
2542
+ 103.76307368278503,
2543
+ 1.1812550511713087
2544
+ ],
2545
+ [
2546
+ 422.0898747444153,
2547
+ -243.22833120822906,
2548
+ 105.69643974304199,
2549
+ 2.239892687531317
2550
+ ],
2551
+ [
2552
+ 430.9566617012024,
2553
+ -238.8288676738739,
2554
+ 113.75264078378677,
2555
+ 6.493422285218414
2556
+ ],
2557
+ [
2558
+ 439.6904408931732,
2559
+ -236.92291975021362,
2560
+ 123.26838821172714,
2561
+ 6.248120707185776
2562
+ ],
2563
+ [
2564
+ 449.3556022644043,
2565
+ -237.13862895965576,
2566
+ 135.2299600839615,
2567
+ 8.509817239377984
2568
+ ],
2569
+ [
2570
+ 461.89630031585693,
2571
+ -242.00204014778137,
2572
+ 156.30824863910675,
2573
+ 11.700062778885986
2574
+ ],
2575
+ [
2576
+ 469.8592722415924,
2577
+ -249.61960315704346,
2578
+ 174.90753531455994,
2579
+ 6.0388138658480415
2580
+ ],
2581
+ [
2582
+ 480.172723531723,
2583
+ -263.4692192077637,
2584
+ 202.67494022846222,
2585
+ 7.829070288540594
2586
+ ],
2587
+ [
2588
+ 485.48075556755066,
2589
+ -276.42184495925903,
2590
+ 222.881019115448,
2591
+ 4.329178205999985
2592
+ ],
2593
+ [
2594
+ 487.5868558883667,
2595
+ -292.4838364124298,
2596
+ 239.64272439479828,
2597
+ 4.9412820097900925
2598
+ ],
2599
+ [
2600
+ 492.1429753303528,
2601
+ -313.61809372901917,
2602
+ 261.4304721355438,
2603
+ 4.540559967375278
2604
+ ],
2605
+ [
2606
+ 495.27785181999207,
2607
+ -329.9117684364319,
2608
+ 275.63753724098206,
2609
+ 5.219037373240957
2610
+ ],
2611
+ [
2612
+ 499.0074932575226,
2613
+ -344.9949026107788,
2614
+ 290.48430919647217,
2615
+ 5.199711639395289
2616
+ ],
2617
+ [
2618
+ 502.28506326675415,
2619
+ -360.2961003780365,
2620
+ 302.024245262146,
2621
+ 3.9648404215206647
2622
+ ],
2623
+ [
2624
+ 502.8790831565857,
2625
+ -378.53094935417175,
2626
+ 314.99233841896057,
2627
+ 2.8146699106549087
2628
+ ],
2629
+ [
2630
+ 502.41029262542725,
2631
+ -390.48561453819275,
2632
+ 323.00543785095215,
2633
+ 2.5361909910196867
2634
+ ],
2635
+ [
2636
+ 501.48284435272217,
2637
+ -405.4127037525177,
2638
+ 331.9592475891113,
2639
+ 3.4498568273555885
2640
+ ],
2641
+ [
2642
+ 499.80485439300537,
2643
+ -414.7646427154541,
2644
+ 336.24333143234253,
2645
+ 2.0620612356830463
2646
+ ],
2647
+ [
2648
+ 497.721403837204,
2649
+ -422.273725271225,
2650
+ 338.3532464504242,
2651
+ 2.3275562454510315
2652
+ ],
2653
+ [
2654
+ 494.44901943206787,
2655
+ -429.90967631340027,
2656
+ 338.2589519023895,
2657
+ 3.090184439037834
2658
+ ],
2659
+ [
2660
+ 491.7372763156891,
2661
+ -433.087557554245,
2662
+ 335.9660506248474,
2663
+ 2.43456392746682
2664
+ ],
2665
+ [
2666
+ 488.30947279930115,
2667
+ -434.02206897735596,
2668
+ 331.16522431373596,
2669
+ 3.6987789735262036
2670
+ ],
2671
+ [
2672
+ 487.84375190734863,
2673
+ -435.54210662841797,
2674
+ 329.29345965385437,
2675
+ 1.6342689122353993
2676
+ ],
2677
+ [
2678
+ 498.1243312358856,
2679
+ -466.97553992271423,
2680
+ 320.0395405292511,
2681
+ 120.35790356591423
2682
+ ],
2683
+ [
2684
+ 500.6706118583679,
2685
+ -465.48324823379517,
2686
+ 320.8659291267395,
2687
+ 13.20302845346037
2688
+ ],
2689
+ [
2690
+ 502.6847720146179,
2691
+ -464.07219767570496,
2692
+ 322.1845328807831,
2693
+ 10.298485273755146
2694
+ ],
2695
+ [
2696
+ 503.99142503738403,
2697
+ -466.2529230117798,
2698
+ 322.864830493927,
2699
+ 1.7516173661115209
2700
+ ],
2701
+ [
2702
+ 506.6846013069153,
2703
+ -467.0402705669403,
2704
+ 324.823260307312,
2705
+ 4.44309793961758
2706
+ ],
2707
+ [
2708
+ 509.7081959247589,
2709
+ -466.1361575126648,
2710
+ 325.2404034137726,
2711
+ 2.5945737709421524
2712
+ ],
2713
+ [
2714
+ 512.7317905426025,
2715
+ -465.2320444583893,
2716
+ 325.65754652023315,
2717
+ 2.5945737709410284
2718
+ ],
2719
+ [
2720
+ 514.4286155700684,
2721
+ -463.86003494262695,
2722
+ 325.8979916572571,
2723
+ 2.8743082517225322
2724
+ ],
2725
+ [
2726
+ 514.8836374282837,
2727
+ -461.9181454181671,
2728
+ 324.7118294239044,
2729
+ 1.2709514900915715
2730
+ ],
2731
+ [
2732
+ 514.478862285614,
2733
+ -457.63492584228516,
2734
+ 323.4366178512573,
2735
+ 7.67787278710522
2736
+ ],
2737
+ [
2738
+ 508.48495960235596,
2739
+ -467.34145283699036,
2740
+ 317.5080716609955,
2741
+ 40.90176900719457
2742
+ ]
2743
+ ],
2744
+ "repaired": [
2745
+ [
2746
+ 424.17600750923157,
2747
+ -244.59561705589294,
2748
+ 102.14490443468094,
2749
+ 0.38104642090105006
2750
+ ],
2751
+ [
2752
+ 421.0907816886902,
2753
+ -245.92556059360504,
2754
+ 102.37690806388855,
2755
+ 0.15762884674603428
2756
+ ],
2757
+ [
2758
+ 419.3500876426697,
2759
+ -246.52475118637085,
2760
+ 102.27581113576889,
2761
+ 0.295404949989418
2762
+ ],
2763
+ [
2764
+ 417.95429587364197,
2765
+ -246.94359302520752,
2766
+ 102.33546048402786,
2767
+ 0.24342588756080719
2768
+ ],
2769
+ [
2770
+ 417.5335764884949,
2771
+ -247.00398743152618,
2772
+ 102.3651733994484,
2773
+ 0.12507984922543255
2774
+ ],
2775
+ [
2776
+ 417.5568222999573,
2777
+ -246.8426376581192,
2778
+ 102.56645083427429,
2779
+ 0.13115776029538637
2780
+ ],
2781
+ [
2782
+ 417.89063811302185,
2783
+ -246.34234607219696,
2784
+ 103.04496437311172,
2785
+ 0.26478361436785275
2786
+ ],
2787
+ [
2788
+ 419.1786050796509,
2789
+ -245.41181325912476,
2790
+ 103.76307368278503,
2791
+ 1.181255518437771
2792
+ ],
2793
+ [
2794
+ 422.0898747444153,
2795
+ -243.22833120822906,
2796
+ 105.69643974304199,
2797
+ 2.2398893623388263
2798
+ ],
2799
+ [
2800
+ 430.9566617012024,
2801
+ -238.8288676738739,
2802
+ 113.75264078378677,
2803
+ 6.493419910406281
2804
+ ],
2805
+ [
2806
+ 439.6904408931732,
2807
+ -236.92291975021362,
2808
+ 123.26838821172714,
2809
+ 6.248124581355706
2810
+ ],
2811
+ [
2812
+ 449.3556022644043,
2813
+ -237.13862895965576,
2814
+ 135.2299600839615,
2815
+ 8.509815744260166
2816
+ ],
2817
+ [
2818
+ 461.89630031585693,
2819
+ -242.00204014778137,
2820
+ 156.30824863910675,
2821
+ 11.700062403006049
2822
+ ],
2823
+ [
2824
+ 469.8592722415924,
2825
+ -249.61960315704346,
2826
+ 174.90753531455994,
2827
+ 6.038816528975225
2828
+ ],
2829
+ [
2830
+ 480.172723531723,
2831
+ -263.4692192077637,
2832
+ 202.67494022846222,
2833
+ 7.829069247320377
2834
+ ],
2835
+ [
2836
+ 485.48075556755066,
2837
+ -276.42184495925903,
2838
+ 222.881019115448,
2839
+ 4.32917708924549
2840
+ ],
2841
+ [
2842
+ 487.5868558883667,
2843
+ -292.4838364124298,
2844
+ 239.64272439479828,
2845
+ 4.941281361167136
2846
+ ],
2847
+ [
2848
+ 492.1429753303528,
2849
+ -313.61809372901917,
2850
+ 261.4304721355438,
2851
+ 4.540562658522702
2852
+ ],
2853
+ [
2854
+ 495.27785181999207,
2855
+ -329.9117684364319,
2856
+ 275.63753724098206,
2857
+ 5.219035173943669
2858
+ ],
2859
+ [
2860
+ 499.0074932575226,
2861
+ -344.9949026107788,
2862
+ 290.48430919647217,
2863
+ 5.19971386647697
2864
+ ],
2865
+ [
2866
+ 502.28506326675415,
2867
+ -360.2961003780365,
2868
+ 302.024245262146,
2869
+ 3.9648402210138673
2870
+ ],
2871
+ [
2872
+ 502.8790831565857,
2873
+ -378.53094935417175,
2874
+ 314.99233841896057,
2875
+ 2.8146704728665743
2876
+ ],
2877
+ [
2878
+ 502.41029262542725,
2879
+ -390.48561453819275,
2880
+ 323.00543785095215,
2881
+ 2.536193890227339
2882
+ ],
2883
+ [
2884
+ 501.48284435272217,
2885
+ -405.4127037525177,
2886
+ 331.9592475891113,
2887
+ 3.4498538387868005
2888
+ ],
2889
+ [
2890
+ 499.80485439300537,
2891
+ -414.7646427154541,
2892
+ 336.24333143234253,
2893
+ 2.0620637491746576
2894
+ ],
2895
+ [
2896
+ 497.721403837204,
2897
+ -422.273725271225,
2898
+ 338.3532464504242,
2899
+ 2.3275538994539278
2900
+ ],
2901
+ [
2902
+ 494.44901943206787,
2903
+ -429.90967631340027,
2904
+ 338.2589519023895,
2905
+ 3.090185676292373
2906
+ ],
2907
+ [
2908
+ 491.7372763156891,
2909
+ -433.087557554245,
2910
+ 335.9660506248474,
2911
+ 2.4345638736380812
2912
+ ],
2913
+ [
2914
+ 488.30947279930115,
2915
+ -434.02206897735596,
2916
+ 331.16522431373596,
2917
+ 3.6987796478878807
2918
+ ],
2919
+ [
2920
+ 487.84375190734863,
2921
+ -435.54210662841797,
2922
+ 329.29345965385437,
2923
+ 1.6342701724882724
2924
+ ],
2925
+ [
2926
+ 498.1243312358856,
2927
+ -466.97553992271423,
2928
+ 320.0395405292511,
2929
+ 120.357905112917
2930
+ ],
2931
+ [
2932
+ 500.6706118583679,
2933
+ -465.48324823379517,
2934
+ 320.8659291267395,
2935
+ 13.203027741283421
2936
+ ],
2937
+ [
2938
+ 502.6847720146179,
2939
+ -464.07219767570496,
2940
+ 322.1845328807831,
2941
+ 10.298485086603515
2942
+ ],
2943
+ [
2944
+ 503.99142503738403,
2945
+ -466.2529230117798,
2946
+ 322.864830493927,
2947
+ 1.7516153014447107
2948
+ ],
2949
+ [
2950
+ 506.6846013069153,
2951
+ -467.0402705669403,
2952
+ 324.823260307312,
2953
+ 4.443097384493698
2954
+ ],
2955
+ [
2956
+ 509.7081661224365,
2957
+ -466.1361575126648,
2958
+ 325.2404034137726,
2959
+ 2.5945736990194477
2960
+ ],
2961
+ [
2962
+ 512.7317905426025,
2963
+ -465.2320444583893,
2964
+ 325.65754652023315,
2965
+ 2.594573903708433
2966
+ ],
2967
+ [
2968
+ 514.4286155700684,
2969
+ -463.86003494262695,
2970
+ 325.8979916572571,
2971
+ 2.874308877187068
2972
+ ],
2973
+ [
2974
+ 514.8836374282837,
2975
+ -461.9181454181671,
2976
+ 324.7118294239044,
2977
+ 1.2709511613864328
2978
+ ],
2979
+ [
2980
+ 514.478862285614,
2981
+ -457.63492584228516,
2982
+ 323.4366178512573,
2983
+ 7.6778729431926775
2984
+ ],
2985
+ [
2986
+ 508.48495960235596,
2987
+ -467.34145283699036,
2988
+ 317.5080716609955,
2989
+ 40.901770451008986
2990
+ ]
2991
+ ]
2992
+ },
2993
+ "capture_start_seconds": 1290.6433517932892,
2994
+ "capture_end_seconds": 1290.9792442321777,
2995
+ "video_time_basis": "local_row / 30 fps"
2996
+ }
2997
+ ]
2998
+ }
data/motherboard/action_repair_events/2026-09-12/episode_000_seg01.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-12/episode_000_seg01.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-12/episode_000.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-12/episode_002.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-12/episode_002.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-12/episode_002.parquet",
5
+ "events": []
6
+ }
data/motherboard/action_repair_events/2026-09-12/episode_003.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "remote_path": "data/motherboard/meta/2026-09-12/episode_003.parquet",
4
+ "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-12/episode_003.parquet",
5
+ "events": []
6
+ }
data/motherboard/actions_fps15/2026-09-11/episode_000_left.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b81a63ee53b7c73ac8cbbaeb124d50ec505efc35dc2d05107881ae0476da06fa
3
+ size 158034