ChangChrisLiu commited on
Commit
7f01c8b
·
verified ·
1 Parent(s): 6a40fbe

Sync root QA docs with release prefix

Browse files
docs/SANITY_CHECKS_AND_LEAKAGE_GUARDS.md CHANGED
@@ -1,40 +1,33 @@
1
- # Sanity Checks and Leakage Guards
2
-
3
- ## Alignment checks
4
-
5
- - `T_rgb_side_right == T_rgb_side_left == T_rgb_wrist == T_seg == T_state == T_action == T_graph`.
6
- - `action[t]` corresponds to transition from state/frame `t` to `t+1`, following RoboCasa/LeRobot convention.
7
- - Episode `control_freq` is recorded.
8
-
9
- ## Camera checks
10
-
11
- - All v1 episodes export `robot0_agentview_right`, `robot0_agentview_left`, and `robot0_eye_in_hand`.
12
- - `primary_side_camera` is `robot0_agentview_right`.
13
- - Report per-view node visibility; do not assume right always sees best.
14
-
15
- ## Graph leakage checks
16
-
17
- - No instruction-derived pair edge appears in `rel_state`.
18
- - No task-goal edge appears in `rel_prior` unless marked as `goal_grounding.supervision_only` outside graph tensors.
19
- - No LLM/reasoning output is used for contact/support/held/current physical state.
20
- - Prior affordance edges are category-broadcast, not target-pair-only.
21
- - Node inventory is deterministic from sim metadata/config, not language-filtered.
22
-
23
- ## Extraction quality checks
24
-
25
- - Projection/mask consistency: projected node body center should usually fall inside or near its segmentation mask when visible.
26
- - Contact aggregation stats logged before/after filtering.
27
- - Event-count sanity by task family:
28
- - open/close tasks: articulation threshold event;
29
- - pick-place tasks: grasp, release, support changes;
30
- - switch/knob tasks: robot contact/control + state change;
31
- - navigation task: base-motion flag and relation/visibility changes.
32
- - Quarantine episodes failing hard asserts; do not silently drop them.
33
-
34
- ## Shape checks
35
-
36
- - `robot/state.npy`: `(T, 16)`.
37
- - `robot/action.npy`: `(T, 12)`.
38
- - `node_feats`: `(T, N_max, D_node)`.
39
- - `rel_state`: `(T, N_max, N_max, C_state)`.
40
- - `rel_prior`: `(N_max, N_max, C_prior)`.
 
1
+ # Sanity checks and leakage guards
2
+
3
+ This file is intentionally aligned with `docs/QA_AND_LEAKAGE.md` for GWAM_Data v1.2 sparse-v2.
4
+
5
+ Normative current shapes:
6
+
7
+ ```text
8
+ node_state: float32[T, 256, 32]
9
+ view evidence + RLE masks: sparse visible node/view pairs
10
+ dynamic_edges: sparse JSONL contact + visibility_change
11
+ Phase 2: sparse visible-only feature files plus phase2_summary.json
12
+ ```
13
+
14
+ Historical/stale shapes that must not be used for v1.2 sparse-v2 loaders:
15
+
16
+ ```text
17
+ 317-D / 323-D node_feats
18
+ dense rel_state / rel_prior
19
+ dense visual_views
20
+ distractor family id 1
21
+ state_on/state_off events.jsonl vocab
22
+ ```
23
+
24
+ Minimum package gate:
25
+
26
+ 1. `_PHASE1_DONE.json` for every packaged episode.
27
+ 2. `audit/phase2_summary.json` for every packaged Phase 2 episode.
28
+ 3. No invisible Phase 2 features.
29
+ 4. Phase 2 pairs partition Phase 1 visible pairs.
30
+ 5. No NaN/Inf in `node_state`.
31
+ 6. Padded rows all-zero; loaders gate on active channel.
32
+ 7. Goal/instruction/object-role fields remain supervision-only.
33
+ 8. Known drop `target/OpenDrawer/episode_000459` documented and not packaged as a half episode.