TRACE-VLA code snapshot 2026-11-22 11:47 +07: 456 canonical files + SHA256 manifest + sync report
b4396f0 verified |
Download code/sera_v4/WORKLOG.md from phammminhhieu/trace-vla-code: direct link, hf CLI and curl.
- Browser
- Download file 344 kB
-
https://huggingface.co/phammminhhieu/trace-vla-code/resolve/main/code/sera_v4/WORKLOG.md
- Command line
-
hf download hf://phammminhhieu/trace-vla-code/code/sera_v4/WORKLOG.md
-
curl -L -o WORKLOG.md https://huggingface.co/phammminhhieu/trace-vla-code/resolve/main/code/sera_v4/WORKLOG.md
344 kB
# SERA-v4 Stage 1 — Working Log (VM side, for main-chat cross-check)
## Task
Stage 1 of MoE balance-loss probe (spec: ~/workspace/research/moe-balance-loss-probe-spec.md):
4 arms × 10k micro-steps from-scratch on the Linux train machine, names sera-v4-*.
Gate to Stage 2 per spec §4. Report with % per part + evidence.
## Machine / access
- ezycloudx-admin@net2.thuepcpro.vn:45680 via egress-proxy CONNECT relay
(tools in ./tools/: connect_relay.py, lt.sh; password via LT_PW env only, never written).
- Ubuntu 24.04.5, RTX 5060 Ti 16 GB, RAM 27 GiB, disk 763 GB free at start.
- Repo: ~/lerobot (branch sera-vla-v3), venv ~/lerobot/.venv, torch 2.11.0+cu128.
- Dataset lerobot/libero rev v3.0 FULLY downloaded (457/457 files, snapshot
a1aaacb7f6cd; info.json: 1693 episodes, 273465 frames, 40 tasks, fps 10).
- TIPSv2 google/tipsv2-b14 in HF cache (snapshot ed1e4dc6), load test OK (195.9M).
## Trunk facts (verified by direct code read + introspection)
- Package: ~/lerobot/src/lerobot/policies/sera_vla_v3 (modeling_base.py 420 lines,
modeling_sera_vla_v3.py 138 lines).
- Loss is HARDCODED in modeling_base.py: total = fm + 0.01*balance + 0.0002*specialization
(config lambda_* fields are validated to equal those constants; arms therefore
switch the loss in code via a new config field v4_moe_mode).
- Routers: 4 × Linear(1024->8, no bias), input = [fusion context mean (512); state (512)];
softmax -> Top-4 soft weights (not renormalized). Routing is per-sample = per
16-step action chunk (one decision per sample, broadcast over the chunk and
over Euler steps) — chunk-consistency is intrinsic to this trunk.
- v3 goal branch: modules named goal/goal_deltas/goal_action (2,646,560 params,
zero-init deltas). training_stage=goal_only freezes all but goal (verified:
trainable 2,646,560); joint trains 69,774,880. Stage 1 uses joint (from-scratch).
- v3 launch recipe (train_sera_v3_85pct_100k.ps1): batch 8, accum 4, eval_split 0.1,
video_backend pyav, bf16 AMP, seed 42, --steps counts MICRO steps
(evidence: v3 --steps=100000 == 100k micro in lineage accounting).
## Decisions
- LR schedule for the 10k-micro probe (identical across arms): peak 1e-4
(v2-base from-scratch default). NOTE — units corrected after reading the
scheduler code (see Key technical findings): warmup 200 MICRO steps, cosine
decay over 10,000 MICRO steps to 1e-5. (v3's 2e-5/100k schedule was for
fine-tuning from a trained checkpoint; not applicable from scratch.)
- No feature caching: 80k sample draws over 273,465 frames -> ~69k unique;
frozen-encoder forward is needed once per unique sample either way; cache
would cost ~170-250 GB and pipeline risk for <15% encoder compute. Skip.
- Arm D init pairing: build skillroute init from the control init by state-dict
surgery — routers widened 1024->1536 with the extra 512 columns zero-initialised,
so at init arm D's routing function is identical to control; all other tensors
bitwise identical to the shared init.
- Arm C bias rule (DeepSeek-V3-style, selection-only): per training micro-step,
per block: load_i = share of routing slots (B*4) taken by expert i, smoothed by
EMA (decay 0.99, init 0.5); bias_i += 0.01 * (0.5 - EMA_i); bias clipped to
[-3, 3]. Selection uses logits + bias; gating weights come from the UNBIASED
softmax (bias carries no gradient, stored as a buffer, persists at inference).
Arm C keeps the 0.0002 specialization term; only L_balance is removed.
- Arm D = bundle (per tasking): (1) router input += masked-mean pooled text
embedding (1536-d input), (2) chunk-consistent routing — intrinsic to the trunk
(documented, not a code change). Loss = control.
## Code changes (on machine, in sera_vla_v3 package only)
- configuration_sera_vla_v3.py: + field v4_moe_mode (default "control") + validation.
- modeling_base.py: routers created with 1536 inputs iff skillroute; buffers
router_bias (4x8 zeros) + router_load_ema (4x8, 0.5); loss switch by mode.
- modeling_sera_vla_v3.py: encode_observation — skillroute router input;
bias-mode selection + EMA/bias update (training + grad-enabled only).
## Status
- [x] SSH path built and verified; machine idle (GPU 0%, 15 MiB).
- [x] Source read; trunk facts verified; equivalence/init counts measured.
- [x] Patches applied (git diff: 3 files, +37/−5). 4-mode functional smoke verified
numerically: control loss = FM + 0.01·bal + 0.0002·spec exactly; nobal = FM;
bias buffer moves under training (norm 0.0013 after 3 steps); skillroute runs (1536-d).
- [x] Inits created: init_control (shared A/B/C) + init_skillroute (surgery;
routing-prob max diff vs control at init = 0.0); processors saved in both.
Bug caught: policy state_dict keys are prefixed `model.` — first surgery
matched no router keys; fixed by matching `.routers.` substring.
- [x] Pipeline smoke (40 steps, arm A config): train + eval + checkpoints OK.
Solo step time 0.345 s/micro-step; trainer-reported mem ~3.96 GB.
- [x] Arm A (control) DONE: 10,000/10,000 steps, eval_loss @10k = 0.3976,
checkpoints 001000–010000 all saved. Solo rate 0.344 s/step.
- [~] Routing measurement: cache built (3,840 obs, 6.0 GB). A5 needed three
fixes: (1) single 480-sample velocity forward OOMs (8.46 GiB alloc) →
mini-batch 16; (2) MoEBlock has no `.routed` module — routed path is a
per-sample loop over `experts[i]`; (3) final A5 = exact reconstruction of
the routed branch output via hooks on experts (deterministic call order
batch-major/slot-minor) + shared hook, share = ||routed||²/(||routed||² +
||shared||²) over a 480-obs subset, fixed noise seed 123, t = 0.5.
processor-registry issue, second launch attempt was overwritten by a stale
local run_arm.sh — both fixed). **Parallelism decision: SEQUENTIAL.**
Measured: A solo 0.344 s/step; A+B 2-up → 0.68–0.69 s/step each (+98%
slowdown, aggregate throughput unchanged: 2.92 vs 2.90 steps/s). VRAM both =
10,738 MiB (fits), RAM fine — the GPU is simply compute-saturated by one run.
B's 2-up test run was killed at ~step 390 (log kept as
measurement-2up-test-b.log); arms run strictly A → B → C → D.
Note: LeRobot creates the output dir lazily at first checkpoint (step 1000) —
a missing run dir before step 1000 is normal, not a failure.
- [ ] Routing measurement at 2k/5k/10k per arm (P1 method, manifest 3,840 obs).
- [ ] Gate evaluation (spec §4), 20k extension if triggered, final report.
## Key technical findings (verified on the machine)
- **Processor registry gotcha:** lerobot-train does NOT import the v3 processor
module before loading init processors → all runs go through wrapper
~/sera_v4_experiments/tools/train_v4.py (imports processor_sera_vla_v3 first,
then lerobot_train.main).
The same trick is needed for any future lerobot-eval on these checkpoints.
- **LR scheduler units:** CosineDecayWithWarmup is stepped PER MICRO-BATCH;
warmup/decay are MICRO steps, and it AUTO-SCALES when cfg.steps < decay_steps
(this explained the smoke run's fast-decaying LR at steps=40). Final Stage-1
schedule (identical across arms, supersedes the optimizer-step plan above):
peak 1e-4, warmup 200 micro steps, cosine decay over 10,000 micro steps to
1e-5 — same shape as planned, in the units this codebase actually uses
(v3 itself used micro-step units: warmup 500 / decay 100,000 at steps=100,000).
- **Feature caching: NOT used.** 80k sample draws over 273,465 frames → ~69k
unique; the frozen-encoder forward is needed once per unique sample either
way; a cache would cost ~170–250 GB and pipeline risk for <15% encoder
compute. Skip.
## Interim results
- **A-control @2000:** task_cos per block [0.725, 0.807, 0.762, 0.917] (mean 0.803),
phase_cos mean 0.754, eff experts [5.41, 5.25, 6.24, 7.38], no dead/swamp,
JS mean ~0.19 (blocks 0-2), A5 routed share [0.30, 0.35, 0.27, 0.10].
NOTE: at 2k from scratch, control routing is ALREADY more differentiated
than converged v2/v3 (0.996) - the trend across 5k/10k decides whether the
balance loss progressively re-uniformizes it.
- **A-control @5000:** task_cos [0.751, 0.808, 0.686, 0.934] (mean 0.795), eff [5.30, 5.99, 7.00, 7.99],
A5 [0.233, 0.403, 0.276, 0.034], no dead/swamp.
- **A-control @10000:** task_cos [0.745, 0.780, 0.653, 0.942] (mean 0.780), eff [6.07, 6.27, 7.21, 7.99],
A5 [0.208, 0.441, 0.348, 0.037], no dead/swamp. eval_loss @10k = 0.3976.
- **A gate read (preliminary):** task_cos mean 0.780 < 0.90 PASS; eff <= 5.0 in >=2 blocks FAIL
(0 blocks; eff mean RISES 6.32 -> 6.57 -> 6.89); no dead/swamp PASS; trend MIXED
(cosine slowly decreasing, effective experts increasing). Block 3 is vestigial
from 5k on (cos 0.93-0.94, eff ~8, A5 ~3.5%). Key context: from-scratch 10k
control does NOT reproduce the converged lineage's 0.996 uniformity in
blocks 0-2 - uniformity is a long-training phenomenon, not an early one.
Extension decision for A deferred until B/C/D 10k numbers exist (comparative).
- **B-nobal DONE:** 10,000/10,000, eval_loss @10k = 0.3825 (vs A 0.3976 - B lower,
expected: no aux losses pulling against FM; val FM is an elimination signal
only, not a routing verdict). Routing measurement deferred to the post-C
batch (B and C measured together while GPU is free) to save ~40 min of
GPU idle time; C launched immediately after B finished.
- **C-bias launched** right after B (sequencing change documented above).
- **B-nobal @2000:** task_cos [0.766, 0.813, 0.763, 0.920] (mean 0.816), eff [4.02, 3.99, 5.72, 6.15],
dead: block0 [3], block3 [0,1,2]; A5 [0.373, 0.408, 0.294, 0.171].
- **B-nobal @5000:** task_cos [0.775, 0.880, 0.696, 0.930] (mean 0.820), eff [4.18, 3.89, 5.99, 6.57],
dead: block3 [2]; A5 [0.286, 0.467, 0.355, 0.119].
- **B-nobal @10000:** task_cos [0.833, 0.862, 0.673, 0.942] (mean 0.828), eff [4.11, 4.25, 5.97, 6.94],
dead: block3 [2] (sel 0.83%); A5 [0.252, 0.498, 0.439, 0.120]. No swamp anywhere (max sel 0.25).
- **Gate verdicts (spec S4, operationalization in gate_eval.py):**
A: cos 0.780 PASS | eff<=5 in >=2 blocks FAIL (0) | no dead/swamp PASS | trend PASS
(cos 0.803->0.795->0.780) => FAIL gate, EXTEND-20K candidate.
B: cos 0.828 PASS | eff<=5 in >=2 blocks PASS (2) | no dead/swamp FAIL (block3 expert2)
| trend FAIL (cos 0.816->0.820->0.828 rising) => FAIL gate, NO extension.
Interpretation: removing aux losses sharpens routing (eff 5.32 vs 6.89) but the
sharpening is task-INDEPENDENT (cosine rises; sel concentrates ~0.25 on a shared
subset) + a dead expert in the vestigial block. B measured in parallel with C
training at batch 8: GPU peak 8,688 MiB total, no OOM, C unharmed.
## Takeover — coordinator 2 (2026-11-17 ~22:38)
- Coordinator 1 ended session after handing over arm B's results. Coordinator 2
takes over the remainder of Stage 1: finish C, measure C, run + measure D,
gate C/D, decide A 20k extension, final report. No Stage 2.
- Access re-verified 22:38: SSH via lt.sh works; HTTPS_PROXY env currently
points at egress proxy port **3128** (the working port; connect_relay.py
reads the env, so no script change needed). Recorded per instruction to note
whichever port works.
- C-bias status at takeover (22:38, direct machine check): training PID
2578296 alive, step 7,263/10,000 (72.6%), ~2.88 step/s, ETA ~22:55.
GPU 100%, VRAM 5,381 MiB (train only), RAM 8/27 GiB used, disk 710 GB free.
Checkpoints 001000-007000 present.
- C @2000 + @5000 routing measurement launched in parallel with C training
(measure_steps.sh, BATCH=8 — the configuration proven safe during B's
measurement: total VRAM peak 8,688 MiB, no OOM), log:
measurement/c-measure-early.log on the machine.
- Plan: C@10000 measured after C finishes (parallel with D training, batch 8);
D launched immediately after C completes; D milestones measured the same
way; gate_eval for c-bias + d-skillroute; then the A-extension decision
with all four arms on the table.
## Progress — coordinator 2 (2026-11-17 23:09)
- **C-bias DONE:** 10,000/10,000 steps, eval_loss @10k = 0.3831 (milestones:
@4k 0.6363, @6k 0.5191, @8k 0.4082 — same band as A 0.3976 / B 0.3825).
Checkpoints 001000-010000 complete. Training slowed to ~1.2 step/s while
sharing GPU with the parallel measurement; no OOM, no errors.
- **C routing @2000 + @5000 MEASURED** (batch 8, parallel with C training):
results/c-bias-2000.json, c-bias-5000.json. Early snippet @5000 block 3:
task_cos 0.930, eff 6.49, dead_experts [2] — full read via gate_eval below.
- **D-skillroute LAUNCHED 23:09** (PID 1524777, init_skillroute, mode
skillroute, same recipe/schedule as A/B/C): step 79/10,000 at 2.88 step/s
solo-equivalent, ETA ~00:07. C@10000 measurement launched in parallel
(batch 8, PID 1560109, log measurement/c-measure-10k.log).
- Remaining: gate C once @10k JSON lands; measure D @2000/@5000 during D
training (one measurement at a time, batch 8), D@10000 after D finishes;
gate D; A-extension decision; final report.
## C gate verdict (2026-11-17 23:24, gate_eval.py, same operationalization as A/B)
- **C-bias: FAIL.** @10k: task_cos mean 0.824 [0.846, 0.852, 0.666, 0.934]
(PASS < 0.90); eff [3.90, 4.61, 6.19, 7.11] → eff ≤5 in 2 blocks (PASS);
dead expert FAIL — block 3 expert 2, sel ~1.0% at 10k (also dead @2k/@5k;
@2k block 0 expert 3 was dead at 0.7% but recovered to 1.7% by 10k);
no swamp (max sel 0.25); trend FAIL — cos 0.839 → 0.821 → 0.824 (uptick
+0.003 at 10k breaks strict decrease; effectively flat after 5k).
- Interpretation: the DeepSeek-style bias DOES sharpen routing where it
matters — blocks 0/1 eff 3.90/4.61 are the sharpest of any arm (A: 6.07/6.27,
B: 4.11/4.25) — but it does not produce task-differentiation trend, and the
vestigial block 3 kills an expert just like B did. Bias balancing alone is
not the differentiation lever at this scale. No extension for C (extension
rule requires a positive differentiation trend; C's is flat/reversed).
- A remains the only EXTEND-20K candidate. Decision after D's numbers.
- D @2000 measurement launched in parallel with D training (batch 8).
## D results + full gate table (2026-11-18 00:30, gate_eval.py)
- **D-skillroute DONE:** 10,000/10,000, eval_loss @10k = 0.3979 (A 0.3976,
B 0.3825, C 0.3831 — val FM all in one band; elimination signal only).
All 3 milestones measured (2k/5k parallel with training batch 8, 10k solo).
- **D gate: FAIL on eff only, trend PASS.** task_cos mean 0.789 -> 0.770 ->
0.766 (LOWEST of all arms at every milestone); @10k blocks
[0.740, 0.745, 0.636, 0.944]; eff @10k [5.27, 6.12, 7.00, 8.00] → 0 blocks
≤5 FAIL; no dead, no swamp at any milestone; phase_cos @10k 0.655;
js (mean js_max_mean) 0.241; A5 last block 0.038.
- Full verdicts @10k: A FAIL(eff)/trend+ | B FAIL(dead, trend) |
C FAIL(dead, trend) | D FAIL(eff)/trend+. NO arm passes the gate.
Common failure anatomy: blocks 0-2 differentiate moderately in A and D
(cos 0.64-0.78) but effective experts keep rising toward 7-8 (soft Top-4
blending wins over specialization as FM loss drops); block 3 is vestigial
in every arm (cos 0.92-0.94, A5 3-12%, the only place experts die in B/C).
## A-EXTENSION DECISION: NOT RUN (2026-11-18 00:30)
- The pre-registered condition for spending the single 20k extension on A
was: A is the ONLY arm with a rising differentiation trend and no arm
passes the gate. The second clause holds (none passed) but the first does
NOT: D-skillroute also has a strictly decreasing cosine trend AND beats A
on cosine at all three milestones (0.789/0.770/0.766 vs 0.802/0.795/0.780)
with an equally clean dead/swamp record. Under a one-extension budget A
is therefore no longer the reasonable candidate — D is.
- Extending D instead was not part of this stage's authorized plan (the
decision rule named A; the mandate says stop after the decision, no other
training). So NO extension is run in Stage 1. Recommendation carried into
the final report: if the extension is spent later, spend it on D (with A
as the methodological control-extension, lower priority).
- Stage 1 stops here: 4/4 arms trained 10k, 12/12 routing milestones
measured, 4/4 gate verdicts issued, extension decision made per rule.
No Stage 2 work started.
## Takeover — coordinator 3 (2026-11-18 ~00:40): D 20k EXTENSION
- Mandate (single task): extend arm D (sera-v4-d-skillroute) from checkpoint
010000 to 20,000 micro-steps, measure routing at 15k + 20k (same P1 set),
re-gate, STOP. No closed-loop eval, no new arms, no further training.
- Access re-verified 00:36: SSH via lt.sh works; HTTPS_PROXY port **3128**
is the working egress port (same as coordinator 2's note). Machine idle:
GPU 0%, VRAM 15 MiB, RAM 1/27 GiB, disk 690 GB free. No train/measure
processes running. D checkpoints 001000-010000 + last->010000 intact.
## Resume mechanics (verified by code read + checkpoint inspection)
- Checkpoint 010000 carries FULL training state: optimizer_state.safetensors
(558 MB), rng_state.safetensors, scheduler_state.json (LambdaLR:
last_epoch=10000, base_lrs=[1e-4], _last_lr=[1e-5]), training_step.json
(step=10000, batch_size=8, grad_accum=4, dp=1 — identical to the extension
config, so the sample-exactness preconditions hold).
- Resume path (lerobot_train.py + configs/train.py, read directly):
`--config_path=<ckpt>/pretrained_model/train_config.json --resume=true`
resolves checkpoint_path=checkpoints/010000, keeps output_dir =
sera-v4-d-skillroute (new checkpoints continue 011000...020000 in the
same run dir), sets policy.pretrained_path to the checkpoint.
resume_before_prepare loads step + RNG; the dataloader sampler offset is
DERIVED from step -> data order resumes sample-exactly (same seed 42,
same batch/accum). resume_after_prepare restores weights + optimizer +
scheduler state. EMA is disabled in this run (ema.enable=false).
- On resume, policy training presets are NOT re-derived (train.py:
`use_policy_training_preset and not self.resume`): the top-level
optimizer/scheduler saved in train_config.json are authoritative, with
CLI overrides applied on top. v4_moe_mode=skillroute comes from the
checkpoint's policy config — unchanged.
- Scheduler math (CosineDecayWithWarmupSchedulerConfig.build): lr_lambda
uses the ABSOLUTE step, cosine term = min(step, num_decay_steps);
load_scheduler_state restores last_epoch=10000 and base_lrs=[1e-4] into
the newly built scheduler (lr_lambdas are not serialized). Consequences:
(a) keeping num_decay_steps=10000 would pin LR at decay_lr=1e-5 for the
whole extension; (b) num_decay_steps=20000 makes LR(step) the second
half of a single 20k cosine.
## LR schedule decision for the extension segment (recorded BEFORE launch)
- DECISION: true resume with ONE override class — steps 10000 -> 20000 and
scheduler num_decay_steps 10000 -> 20000 (policy.scheduler_decay_steps
overridden identically so the saved config record stays coherent; that
field is inert on resume). Peak/base LR stays 1e-4, decay_lr stays 1e-5,
warmup stays 200 (inert at step >= 10000). Resulting segment schedule:
LR(10000) = 5.5e-5, monotone cosine decay to 1e-5 at step 20000 — i.e.
the suggested ~5e-5 -> 1e-5 segment, realized as the exact second half
of a 20k cosine, so the trajectory is directly interpretable against a
hypothetical single 20k run. Auto-scale in build() does not trigger
(num_training_steps=20000 = num_decay_steps).
- Warmup caveat: a segment-local warmup ramp (suggested 100 steps) is NOT
expressible with this scheduler class on resume — the warmup branch only
applies at absolute step < num_warmup_steps and last_epoch=10000 is
restored. LR therefore jumps 1e-5 -> 5.5e-5 at the first resumed step.
Accepted because: 5.5e-5 is ~half the peak LR the model trained under
for most of Stage 1, Adam moments are restored (not cold), grad clip
1.0 is active. Train loss will be watched from the first logged steps;
divergence triggers the Stage-1 kill rule.
- Everything else inherited unchanged from the checkpoint config: seed 42,
batch 8, accum 4, eval_split 0.1, eval_steps 2000, save_freq 1000,
log_freq 10, bf16 AMP, joint stage, dataset rev v3.0.
## Extension measurement + gate plan
- Measure checkpoints 015000 (= segment midpoint) and 020000 with
measure_steps.sh / measure_routing.py, same 3,840-obs P1 manifest ->
results/d-skillroute-15000.json + d-skillroute-20000.json. 15k measured
in parallel with training at BATCH=8 (proven safe in Stage 1: total
VRAM peak ~8.7 GB, no OOM); 20k measured after training completes.
- Gate re-evaluation, same operationalization as gate_eval.py (spec S4):
the four criteria evaluated at the FINAL milestone (20k): mean task cos
< 0.90; eff experts <= 5.0 in >= 2 blocks; no dead (<1%) / no swamp
(>60%) expert; differentiation trend = mean task cos strictly
decreasing across the extension milestones anchored at 10k
(10k -> 15k -> 20k). Full 2k->20k trajectory reported alongside.
Kill rule unchanged: any expert > 80% selection at any milestone,
loss divergence, repeated OOM -> stop and report.
## Extension LAUNCHED + resume verified (2026-11-18 00:39)
- Launched via tools/run_ext_d.sh (uploaded to machine tools/, same as local):
PID 474010, log ~/sera_v4_experiments/sera-v4-d-skillroute-ext20k.log.
Config dump in log confirms checkpoint_path=checkpoints/010000,
resume=True, pretrained_path=.../010000/pretrained_model.
- First logged steps prove the resume is exact and the schedule is as
designed: step:10K (absolute counting continues), smpl:80K (10000 x 8 —
sampler position continues, not restarted), epch:0.33, **lr:5.5e-05**
(exactly the designed segment entry), loss 0.507 -> 0.499 -> 0.461 over
steps 10010-10030 (no divergence spike from the LR jump; same band as
late Stage-1 training). Rate 2.88 step/s solo, GPU 71%, VRAM 5,109 MiB.
- ETA: checkpoint 015000 at ~01:08, training complete ~01:37. Plan: measure
015000 in parallel at BATCH=8 once saved; measure 020000 after completion;
then gate_eval_ext.py (same criteria, trend anchored 10k->15k->20k).
## Takeover — coordinator 4 (2026-11-18 ~05:12): NO-IDLE CHAIN (Young's rule #1)
- Young's rule #1 (05:08, reverses the 01:05 stop order): the train machine
must NEVER idle. Chain runs back-to-back with no gaps: while one leg
trains, code/config/spec for the next leg is prepared; if a leg is
blocked, another train leg runs in its place. Chain: (1) resume D
extension -> 20k + measure 15k/20k + gate; (2) frontend probe TIPSv2
(research first, spec before train; F0 = D@10k as-is, F1 = unfreeze last
vision layers, F2 = patch-text alignment; verdict = fixed 70-ep
closed-loop probe, pass >= +4/70 vs F0); (3) branch on D@20k verdict:
gate-pass / clear trend -> frozen-expert protocol on 6 audited
LIBERO-Skill tasks; flat/reversed -> arm E (D + MoE-DP entropy loss).
- Machine state at takeover (direct check 05:11): GPU 0%, VRAM 15 MiB, no
train/measure processes, RAM 1/27 GiB, disk 684 GB free. Proxy port via
HTTPS_PROXY env = 3128 (working, same as coordinators 2-3).
- Extension corpse check: ext log tail shows the kill landed at segment
step 4720/10000 -> global ~14,720, lr 2.5e-05 (matches the 20k-cosine
prediction 2.48e-5), train loss ~0.47, FM ~0.46 — healthy, no divergence.
Checkpoints 001000-014000 all present, last -> 014000.
- 014000 train_config.json verified: steps=20000, scheduler
num_decay_steps=20000, policy.scheduler_decay_steps=20000, peak 1e-4,
decay 1e-5, warmup 200, v4_moe_mode=skillroute, output_dir = the D run
dir. The checkpoint carries the extension config coherently.
## RESUME DECISION (recorded BEFORE launch, coordinator 4)
- Relaunch from checkpoints/014000 (== last) with the IDENTICAL flag set
coordinator 3 used: --config_path=014000/pretrained_model/
train_config.json --resume=true --steps=20000
--scheduler.num_decay_steps=20000 --policy.scheduler_decay_steps=20000
(all overrides already baked into the saved config; passed again for
explicitness). Launcher: tools/run_ext_d2.sh (run_ext_d.sh variant with
CKPT=014000; same log file sera-v4-d-skillroute-ext20k.log).
- Expected on resume: training_step restores step=14000, sampler offset
derived from step -> data order continues sample-exactly (seed 42,
batch 8, accum 4 unchanged); scheduler last_epoch=14000 restored ->
first logged LR ~= 2.9e-5 (cosine fraction 0.70), decaying to 1e-5 at
20000. NO new LR jump (resume point is mid-curve, unlike the 10k
restart). Remaining: 6,000 steps ~= 35 min solo @2.88 step/s (slower
while the 15k measurement shares the GPU at batch 8).
- Verify from log after launch: absolute step continues 14k+, smpl
continues ~112K+, lr ~2.9e-5, loss in the ~0.47 band. Divergence or a
step reset triggers the kill rule + a WORKLOG post-mortem.
- While this trains: frontend research (web) + probe spec written to
~/workspace/experiments/sera_v4/frontend_probe/; eval path
(lerobot-eval wrapper with the processor-registry fix) built during
the F1/F2 trains so the GPU never waits on it.
## Extension RESUMED + verified (2026-11-18 05:10-05:13, coordinator 4)
- LAUNCH EXT2 at 05:10:43, PID 1959386, resume_from=checkpoints/014000.
- Log verification: 'checkpoint_path': '.../checkpoints/014000' — resume
resolved to the kill-point checkpoint, NOT 010000 and NOT from scratch.
First logged steps: step:14K (absolute), smpl:113K->114K (14000 x 8 =
112K + in-flight — sampler continues), lr:2.8e-05 (20k-cosine prediction
at step 14000 = 2.85e-5 — matches), loss 0.490/0.456 (pre-kill band
~0.47 — no divergence, no spike). GPU 100%, VRAM 5,109 MiB.
- Remaining 6,000 steps @2.88 step/s solo ~= 35 min; checkpoint 015000
expected ~05:41 (later if the 15k measurement shares the GPU).
## Frontend research DONE (2026-11-18, during D-extension train)
Full text: ~/workspace/experiments/sera_v4/frontend_probe/RESEARCH.md +
SPEC.md (probe spec fixed BEFORE any frontend training, per protocol).
Headlines:
- (a) Freeze-vs-unfreeze: MAPS (CVPR 2026) freezing diagnosis on OpenVLA —
freezing vision encoders usually HELPS (ID +7-17%, OOD +7-25%
SimplerEnv); freezing the whole language tower is catastrophic (LIBERO
-60%); tuning only LATE language layers is safe-to-helpful (OOD +1-3%).
pi0.5 Knowledge Insulation (NeurIPS 2025): action-expert gradients
degrade the VLM — but the NVIDIA gradient-routing study (arXiv
2611.05249) shows coupling ~= insulation WHEN action-token supervision
exists, and coupling is much better WITHOUT it (closed-loop +17-40%).
SERA has no action-token supervision -> letting action gradients reach
the last encoder layers (F1) is the defensible bet; frozen (F0/SmolVLA
recipe) is the strong default to beat. LoRA real-world ablation:
unfrozen vision 76% vs frozen 74% — gains are real but modest.
- (b) TIPSv2: patch-text alignment is its signature (iBOT++ patch loss on
ALL patches -> +14.1 mIoU zero-shot seg on ADE150, 3.5->17.6);
Tipsv2Model returns NORMALIZED image/text embeds — patch<->text cosine
scoring is meaningful with zero training. The SERA trunk never uses
patch-text scores: vision and text are projected separately to 512-d
and only meet inside Fusion attention. No robot fine-tuning guidance
exists in the model card (encoder release) — the probe is the evidence.
- (c) Alignment exploitation: A3-VLA (NeurIPS 2026) diagnoses exactly
v3's #1 failure — action loss alone gives no fine-grained perceptual
supervision, attention drifts off the target object ("Wrong Target") —
and fixes it with an attention-allocation loss + a contrastive loss
aligning target-region representations with the instruction vs
irrelevant regions. F2 adopts the contrastive half in a label-free
form: MIL-InfoNCE over SERA's projected tokens (details in SPEC.md).
- F1 fixed by research + lineage precedent: finetune_vision_last_n=2,
finetune_language_last_n=1 (the v3 lineage's own stage-2 choice; MAPS
says late-language tuning is the safe part, vision last-2 is the
measured question). F2 fixed: lambda_align=0.1 MIL-InfoNCE,
tau_pool=0.1, tau_ce=0.07, on D config; backbone stays frozen in F2.
## F1 smoke PASSED (2026-11-18 05:15, run in parallel with D extension)
- num_learnable_params = 91,069,223 vs F0/D 69,786,151 -> delta
+21,283,072 (2 vision blocks + 1 language resblock unfrozen, exactly
the intended set; embeddings/norms stay frozen per
_configure_tips_finetuning). Total params 265,750,823.
- 40 steps clean: loss 10.45 -> 2.09 (from-scratch band), no OOM, no
errors. Trainer mem 6.92 GB while sharing the GPU with D training.
- Step cost: updt_s ~0.78 while sharing (D solo step_s = 0.344) — the
encoder backward roughly doubles update cost; F1 solo estimate
~0.55-0.65 s/step -> 10k in ~1.6-1.8 h. Launcher tools/run_f1.sh is
uploaded and ready; F1 launches the moment the D extension completes,
with the D@20k routing measurement running in parallel at batch 8.
## F2 code READY + numerically verified (2026-11-18 ~05:35, during D train)
- apply_frontend_patches.py applied on machine: 6/6 OK (config field
v4_align_lambda=0.0 default + validation; stash of vision tokens /
pooled text in v3 encode_observation; MIL-InfoNCE
_patch_text_align_loss + forward hook in modeling_base.py). Repo diff
vs HEAD now +72/-6 over the 3 files (Stage-1 + frontend patches).
Guarded by lambda=0 default -> behavior of all existing arms unchanged
(running D extension process uses already-loaded modules anyway).
- check_align.py (batch 2, synthetic, GPU): align_loss = 0.7201
(ln(2) = 0.6931 — near-constant scores at init, as designed);
total-loss decomposition EXACT (3.44946 vs parts-sum 3.44946,
diff 8.7e-08); backward: vision_projection grad norm 11.71,
text_projection 13.17 (gradient reaches both trainable projections);
TIPSv2 params with grad = 0 (backbone stays frozen in F2);
align_loss present in metrics -> will be logged per step.
- F2 launcher (run_f2.sh = run_arm.sh pattern + --policy.v4_align_lambda
=0.1) still to be written/uploaded before F1 finishes.
- D@15000 measurement running in parallel (batch 8): obs 320/3840 at
last check; JSON -> measurement/results/d-skillroute-15000.json.
## D @15000 routing measured (2026-11-18 05:25, parallel with training)
- task_cos mean 0.747 [0.702, 0.723, 0.623, 0.943] — trajectory
0.789 (2k) -> 0.770 (5k) -> 0.766 (10k) -> 0.747 (15k): the
differentiation trend HOLDS through 15k; blocks 0-2 all improved,
block 3 unchanged vestigial (0.943).
- phase_cos 0.640 (was 0.655); JS 0.246; A5 last block 0.025.
- eff experts [5.83, 6.52, 7.13, 7.99] (mean 6.87) — ROSE vs @10k
(6.60): routing direction differentiates further while concentration
does not; still 0 blocks <= 5.0, so the formal gate's eff criterion
remains out of reach. No dead, no swamp, no kill80.
- Interim read: formal PASS at 20k is unlikely (eff criterion), but the
chain's branch rule also routes to the frozen-expert protocol if the
trend clearly holds — final call at 20k with gate_eval_ext.py.
## Eval path: LIBERO stack installed (2026-11-18 ~05:45, during D train)
- The venv had NO libero/robosuite/mujoco/scipy. Installed the fork's own
extra pins via uv (dry-run first: 38 packages, ALL additions, torch/
numpy untouched): hf-libero 0.1.5, mujoco 3.8.1, robosuite 1.4.0,
scipy 1.18.1. Imports verified OK.
- Env smoke (spatial #5: build/reset/step + parsed_problem dump for the
right-object target table) running; eval_v4.py design fixed: custom
single-env loop mirroring lerobot_eval.eval_policy's preprocessing
chain exactly (preprocess_observation -> task -> env_pre -> pre ->
select_action -> post -> env_post -> step), success from
info[is_success] (env terminates on success), grasp/right-object from
sim body positions + gripper qpos (heuristic, labelled as such).
- Probe set FIXED (lineage definition, memory 2026-11-11): libero_spatial
#5; libero_goal #0, #9; libero_10 #0, #6, #7, #8; 10 ep/task, seed 0.
Baselines on this set: v2 39/70, v3@100k 34/70, v3@60k 32/70,
DINO-LORA024 27/70. Probe runtime in lineage ~55-65 s/ep.
## Eval path gotcha FIXED: libero first-run prompt (2026-11-18 ~05:40)
- First env smoke HUNG indefinitely: hf-libero's libero/__init__.py calls
input("Do you want to specify a custom path for the dataset folder?")
at IMPORT time when ~/.libero/config.yaml is missing (blocked on the
SSH stdin pipe; with </dev/null it raises EOFError instead).
- Fix applied: wrote ~/.libero/config.yaml with the package default
paths (benchmark_root/bddl_files/init_states/datasets/assets inside
the venv's libero package). Import now resolves paths with no prompt.
- RULE for all future libero-importing runs on this box: launch with
stdin </dev/null so any prompt fails fast instead of hanging, and
MUJOCO_GL=egl for headless rendering. Assets are not bundled in the
wheel — first env creation downloads them from HF Hub (box has direct
egress; uv install of 38 pkgs took ~13 s).
## Eval path COMPLETE + grasp detector calibrated (2026-11-18 ~05:55)
- Env smoke (spatial #5): env builds/resets/steps; parsed_problem
objects maps TYPE -> [instances]; goal predicates are lowercase lists
(["on", "akita_black_bowl_1", "plate_1"]); instance bodies are named
<instance>_main; gripper qpos open = +/-0.0387. eval_v4.py fixed
accordingly (instances flattened from values; targets = pred[1] in
instances).
- Probe smoke on F0 (D ckpt 010000), spatial #5 x 2 ep, in parallel with
D training: ep0 SUCCESS in 91 steps (16.1 s), detector: first grasp
akita_black_bowl_1 @step 39, right_object=true. ep1 FAIL (280 steps,
41.1 s), no grasp detected -> right_object=false.
- Trace calibration (npz): ep0 bowl_1 mindist 0.054, lift +0.149,
moved 0.315 (clean carry). ep1: gripper reached bowl_1 (0.049),
bowl_2 (0.096), ramekin (0.097) but NOTHING was ever lifted
(lift_max ~0.000 all objects; plate only nudged 0.088/lift 0.019) —
a genuine grasp failure, detector's no-grasp verdict is correct and
the plate nudge is correctly not counted. Detector thresholds stand.
- Probe cost: ~16-41 s/episode (no video) -> full 70-ep probe ~25 min
per arm. Probe set + harness are ready BEFORE F1/F2 train — Leg 2's
decisive metric is unblocked.
## LEG 1 TRAINING DONE: D extension reached 20,000 (2026-11-18 05:51:53)
- Ext log: step:20K smpl:160K, "End of training" 05:51:53. Checkpoints
001000-020000 all present, last -> 020000. Total D trajectory: 10k
(Stage 1) + resume 010000->~14.7k (coordinator 3, killed) + resume
014000->20k (coordinator 4). No divergence anywhere; final train loss
band ~0.40-0.46, final LR 1.0e-5 (cosine floor, as scheduled).
- Chain waiter fired 05:52:05 (12 s gap): F1 LAUNCHED (PID 3867869,
num_learnable_params=91,069,223 confirmed in its log) and the D@20000
routing measurement launched in parallel (batch 8). GPU 100%,
VRAM 12,554 MiB (F1 + measurement) — inside 16 GB, monitored.
- F1 step_s ~0.75 while sharing -> ETA ~1.7-2 h for 10k steps.
- Pending this leg: D@20000 measurement JSON -> gate_eval_ext.py verdict
+ ext-run val FM milestones from the log (16k/18k/20k evals).
## D @20000 GATE VERDICT: FAIL — trend REVERSED (2026-11-18 ~06:05)
gate_eval_ext.py full trajectory (task_cos mean [blocks], eff, phase):
- 2000: 0.789 [0.724, 0.754, 0.752, 0.927], eff [4.22, 5.61, 5.72, 7.47], phase 0.767
- 5000: 0.770 [0.721, 0.765, 0.653, 0.938], eff [4.81, 5.80, 6.71, 7.98], phase 0.674
- 10000: 0.766 [0.740, 0.745, 0.636, 0.944], eff [5.27, 6.12, 7.00, 8.00], phase 0.655
- 15000: 0.747 [0.702, 0.723, 0.623, 0.943], eff [5.83, 6.52, 7.13, 7.99], phase 0.640
- 20000: 0.766 [0.727, 0.769, 0.630, 0.938], eff [5.90, 6.09, 7.02, 8.00], phase 0.646
- trend_ext (10k>15k>20k) = False; the 15k dip fully reversed — net
10k->20k cosine change = 0.000. eff <= 5.0 in 0 blocks at every
milestone >= 10k; eff ROSE monotonically 2k->20k in blocks 0/3.
No dead/swamp/kill80. JS 0.249, A5 last 0.028 @20k.
- Ext val FM (eval_loss): 0.3571 @16k, 0.3577 @18k, 0.3714 @20k — FM
improved ~0.03-0.04 vs @10k (0.3979) while routing differentiation
went nowhere: FM loss and routing specialization are decoupled under
the control balance recipe; the soft Top-4 blend equilibrium
reasserts itself. LEG 1 COMPLETE: D verdict = FAIL, trend flat.
- BRANCH (pre-registered rule): D flat/reversed -> LEG 3 = ARM E
(D-skillroute + MoE-DP-style entropy loss), NOT the frozen-expert
protocol. Arm E design fixed here BEFORE implementation:
v4_entropy_lambda = 0.1; ent = mean over 4 blocks of per-sample
router-probability entropy -(p log p).sum(-1), averaged over batch;
total += 0.1 * ent (initial ent ~ ln 8 = 2.08 -> contribution ~0.21,
same scale as F2's align term). 10k from scratch, init_skillroute,
seed 42, gate = Stage-1 gate operationalization (gate_eval.py,
milestones 2k/5k/10k). Kill rules as Stage 1.
- Sequence from here (Rule #1): F1 (running) -> F2 -> arm E -> probes
F0/F1/F2 + E measurement/gate interleaved as the GPU allows.
## F2 smoke PASSED after a typo post-mortem (2026-11-18 ~06:11)
- First F2 smoke attempts failed instantly: "unrecognized arguments:
--dual_mode=router_and_action". Root cause (byte-level od -c proof):
the config field is goal_mode, NOT dual_mode. run_arm.sh / run_f1.sh /
smoke_f1.sh / run_f2.sh / run_arm_e.sh all carry the correct
--policy.goal_mode=router_and_action; ONLY smoke_f2.sh (written later)
had the dual_mode typo. Fixed locally + re-uploaded.
(Side lesson: several of today's confusing greps were plain-grep
treating script files as binary — use grep -a on tool scripts.)
- Clean smoke: 40 steps, num_learnable_params=69,802,535, loss
10.565 -> 2.307; align_loss logged per step: 2.100 -> 2.091
(starts at ~ln(8)=2.079 as designed, already decreasing). F2 fully
verified end-to-end; run_f2.sh was never affected by the typo.
- Entropy patch (arm E) verified earlier the same way: decomposition
exact (diff 4.5e-08), entropy at init 1.407 (< ln 8), metric logged.
- Chain waiter #2 (tools/chain_f2_e.sh) launched: F1 done -> F2 ->
arm E -> E routing measurements (2k/5k/10k, batch 8), all logged to
chain_f2_e.log. F1 at ~2,000/10,000 when the waiter armed (ETA ~07:35).
## F1 COMPLETE — val FM beats F0, NOT eliminated (2026-11-18 07:11:20)
- F1 (unfreeze vision 2 + language 1) finished 10,000 steps; checkpoints
to 010000. eval_loss trajectory: 0.6515 @4k -> 0.5253 @6k ->
0.4216 @8k -> 0.3955 @10k. Final 0.3955 vs F0 0.3979: F1 is 0.0024
BETTER on val FM and well inside the elimination margin (0.4179).
Pattern matches the MAPS warning + recovery: unfreezing disturbs
pretrained features early (much worse @4-6k), then catches up and
edges past the frozen control by 10k. Val FM is elimination-only —
the 70-ep probe decides.
- Chain waiter fired F2 at 07:11:33 (13 s gap): PID 2835091,
num_learnable_params=69,802,535, align_loss active. F2 ETA ~08:15.
- Probes for F0 and F1 launch now, sequentially, in parallel with F2
training (probe_chain.sh): F0 = D ckpt 010000, F1 = f1 ckpt 010000.
## F0 PROBE FINAL (2026-11-18 08:22): 5/70 — the Leg-2 baseline
- Success 5/70 (7.1%): spatial#5 2/10, goal#0 0/10, goal#9 3/10,
L10#0 0/10, L10#6 0/10, L10#7 0/10 (+L10#8 in the per-task table of
probe_summary; total is authoritative at 5/70).
- Right-object 21/60 = 35.0% (60 = episodes with a movable target;
goal#0 has none). Grasps detected 23/70. Failure texture matches the
lineage: L10#6 grasps the RIGHT object 8/10 yet scores 0/10
(execution/sequence failure, not selection); L10#0 right-object only
2/10 (selection failure dominates there).
- Pass bar for F1/F2 (SPEC): >= 9/70. Probe runtime 07:14->08:22 under
training share (~58 s/ep). Detector caveat: goal#9 shows 3 successes
with only 1 detected target grasp — the lift criterion undercounts
some carries; right-object is a comparative heuristic, identical
across arms, not an absolute.
## F2 COMPLETE + ELIMINATED by the val-FM rule (2026-11-18 08:26:45)
- F2 finished 10k: eval_loss @10000 = 0.6007 (total). Accounting:
align term ~0.1 x 0.30 = 0.030 + balance ~0.0125 -> FM component
~0.558 vs F0 FM ~0.385 (total 0.3979). Worse by ~0.17-0.20 under
either accounting, far beyond the SPEC's 0.02 elimination margin
(threshold 0.4179 on the total). => F2 is ELIMINATED without a probe,
per the pre-registered rule. No F2 probe will be run.
- The mechanism itself WORKED as an objective: align_loss 2.100 ->
~0.305 (the projections learned to identify the matching instruction
from patch tokens). But at lambda=0.1 it taxed FM learning heavily
within the fixed 10k budget. A smaller lambda / longer budget is a
future question — NOT improvised here (protocol discipline).
- F2 routing measurement still run for the record (below).
## ARM E LAUNCHED by chain (2026-11-18 08:27:06)
- PID 1782968, num_learnable_params=69,802,535, entropy_lambda=0.1.
Chain log complete through E_LAUNCHED. E ETA ~09:35; the chain will
auto-launch E routing measurements (2k/5k/10k) when it finishes.
- F1 probe running since 08:22 (16/70 at last check).
## ARM E interim @~560 steps: entropy collapse forming (2026-11-18 ~08:35)
- router_entropy_mean = 0.084 (init 1.407); per-block entropy
[0.157, 0.109, 0.056, 0.013]. Importance concentrates on ~2 experts
per block: block0 e6=0.661 + e7=0.336 (rest ~0.000); block1
e7=0.677 + e4=0.322. balance_loss 1.998 (vs 1.25-1.5 in Stage-1 arms)
— the 0.01 balance term cannot hold back the 0.1 entropy term.
- FM loss descending normally (1.567 @560) — no divergence; max
importance 0.677 < 0.80 kill threshold. Per protocol: E continues;
E@2000 routing measurement launched in parallel (kill80 check at the
milestone, as Stage 1). If it stabilizes at ~2 experts/block it will
still FAIL the gate on dead experts; that verdict is the result.
## F1/F2 routing @10k measured (2026-11-18 ~08:55) — neither regresses
- F1: task_cos mean 0.766 [0.696, 0.781, 0.630, 0.956] — identical
mean to F0 (0.766); eff [5.86, 5.98, 6.96, 8.00]; no dead/swamp;
JS [0.296, 0.444, 0.302, 0.017]. Phase cos lower in blocks 1-2
(0.402/0.515) — heuristic labels, noted only.
- F2: task_cos mean 0.764 [0.731, 0.769, 0.623, 0.935]; eff
[5.51, 5.95, 6.95, 8.00]; no dead/swamp. Routing fine; F2's
elimination rests solely on the val-FM rule (above).
- Leg-2 verdict now hinges on the F1 probe (35/70 at 08:52).
- E @2000: router_entropy_mean 0.019 (collapse deepening); E@2000
routing measurement in progress for the kill80 milestone check.
## ARM E @2000 measurement: winner-take-all collapse (2026-11-18 ~09:05)
- task_cos per block [0.544, 0.550, 1.000, 1.000], mean 0.774.
eff experts [1.93, 1.92, 1.01, 1.00]. prob_share: block0 e6 0.638 +
e7 0.361; block1 e7 0.648 + e4 0.352; block2 e1 0.9992; block3
e3 0.9999. Dead expert: block1 e5 (sel_share 0.0). No swamp by the
gate definition (max sel_share 0.25 = picked in every top-4).
- Reading: blocks 0-1 show REAL cross-task differentiation (cos
0.54-0.55, the lowest of the whole program) but concentrated on 2
surviving experts; blocks 2-3 have collapsed to a SINGLE expert for
every input (cos 1.000 = identical routing, the opposite of skill
structure). The 0.01 balance loss cannot counter the 0.1 entropy
term: top-4 pick shares saturate at 0.25 while probability mass goes
~100% to one expert. No formal kill80 (selection-based) triggered;
E continues to 10k per protocol; the gate will judge (dead expert
already fails one criterion). A 5k mid-run measurement is armed for
the trend.
## F1 PROBE FINAL (2026-11-18 09:39:57): 7/70 — FAILS the +4 gate
- F1 success 7/70 (10.0%) vs F0 5/70 (7.1%): +2/70, BELOW the
pre-registered pass bar (>= 9/70). Right-object 17/60 = 28.3% vs
F0 35.0% (worse). Grasps detected 19/70 vs F0 23/70.
- Per task F1: spatial#5 3/10, goal#0 1/10, goal#9 3/10, L10
#0/#6/#7/#8 all 0/10. (F0: 2/10, 0/10, 3/10, 0/40.)
- LEG-2 VERDICT: NEITHER frontend intervention passes at the paired
10k budget. F1 (unfreeze last 2 vision + 1 language block): val FM
0.3955 ~= F0 0.3979, routing unchanged (cos 0.766), probe +2/70 =
inside probe noise (+/- ~10 pts at n=70). Unfreezing is NOT harmful
at 10k (it fully recovers from its slow start) but buys no
measurable closed-loop gain here; the frozen-backbone default
stands. F2: eliminated on val FM (see above) — its alignment
objective learned (2.100 -> 0.305) but at lambda 0.1 it cost ~0.17
FM within the budget.
- Answers to Young's 00:43 question, measured: (1) opening a few
TIPSv2 layers does NOT measurably help at this scale/budget;
(2) exploiting patch-text alignment via an auxiliary contrastive
loss, at this strength, actively hurts the action objective within
10k steps. Both are budget-scoped claims (10k from-scratch paired
probe), not universal ones.
## ARM E @5000 (measured 09:26): collapse is stable
- task_cos [0.540, 0.551, 1.000, 1.000] mean 0.773; eff [1.93, 1.91,
1.00, 1.00]; dead block1 e5; prob_max [0.637, 0.650, 1.000, 1.000].
Identical structure to @2000 — the winner-take-all state froze in
early and never moved. E finishes ~10:05; chain then measures
2k/5k/10k and the Stage-1 gate is applied.
## ARM E GATE VERDICT: FAIL (2026-11-18 ~10:20, gate_eval.py)
- E finished 10k at 09:55:23; final eval_loss 0.4221 (FM ~0.41 —
the collapsed routing did not destroy FM; blocks 2-3 simply became
single FFNs). Chain measured 2k/5k/10k.
- Gate: task_cos mean 0.774 -> 0.773 -> 0.772 [blocks 0.537-0.551,
1.000, 1.000]; eff [1.93, 1.91, 1.00, 1.00]; phase_cos 0.989;
A5 last-block routed-energy share 0.808; kill80 False.
gate=False because DEAD experts at every milestone (block 1: e5
@2k/5k, e3+e5 @10k). The cosine and eff criteria "pass" only as
artifacts of collapse (cos 1.000 in blocks 2-3 = identical routing
for all inputs; trend 0.774->0.772 is a frozen line, not dynamics).
- CONCLUSION for the entropy lever: MoE-DP-style entropy pressure at
lambda 0.1 on this trunk does NOT create skill experts. It creates
a winner-take-all collapse within ~500 steps that the 0.01 balance
loss cannot counter (top-4 pick shares saturate at 0.25 while
probability mass goes ~100% to one expert). Blocks 0-1 keep genuine
cross-task differentiation (cos 0.54-0.55, lowest in the program)
on 2 surviving experts — differentiation and collapse arrived
together, from the same pressure.
## ============================================================
## COORDINATOR-4 CHAIN COMPLETE (2026-11-18 ~10:25)
## ============================================================
Leg 1 (100%): D extension resumed from 014000 (05:10) -> 20,000
(05:51). Routing: cos 0.766 @10k -> 0.747 @15k -> 0.766 @20k;
trend REVERSED, net 0.000. VERDICT: FAIL. FM kept improving
(0.3714 @20k) — FM and routing specialization are decoupled under
the control balance recipe.
Leg 2 (100%): Frontend probe (research + SPEC pre-registered in
frontend_probe/). F0 = D@10k: probe 5/70, right-object 35.0%.
F1 (unfreeze vision 2 + lang 1; +21,283,072 params): val FM 0.3955,
routing cos 0.766 (no regress), probe 7/70 (+2 < +4) -> FAIL.
F2 (MIL-InfoNCE patch-text, lambda 0.1): align 2.100 -> 0.305 but
eval_loss 0.6007 (FM ~0.558 vs 0.385) -> ELIMINATED by the val-FM
rule, no probe. Eval stack (hf-libero + eval_v4.py) built and
left reusable in tools/.
Leg 3 (100%): Branch rule fired on D's reversal -> ARM E (entropy),
NOT the frozen-expert protocol. E: gate FAIL (dead experts,
winner-take-all collapse), details above. The frozen-expert
protocol remains unrun; LIBERO-Skill assets + rollout_skill_v4.py
are staged on the machine if it is ever revived.
Program-level conclusion across Stage 1 + this chain: FIVE routing
pressures tried (control, no-balance, DeepSeek bias, skillroute
inputs, entropy) and TWO frontend interventions — none produced
gate-passing skill structure. The soft Top-4 mixture either blends
(eff 7-8) or collapses (eff 1-2, dead experts); nothing in between
was stable at any milestone measured. Evidence now points the way
the Stage-1 spec's fallback ladder predicted: per-sample soft MoE
routing is not, by itself, a skill unit. The next decision
(explicit skill family / Round-2 shortlist) belongs to Young via
the parent agent.
Machine state at handoff: GPU 0%, no train/measure/probe processes,
disk 624 GB free, all checkpoints + measurement JSONs + probe
JSONLs in place under ~/sera_v4_experiments/.
## Takeover — coordinator 5 (2026-11-18 ~10:13): ROUND-2 PROBE (G/H/I + horizon check)
- Mandate: coordinator-4 chain is closed (D@20k FAIL, F1 FAIL, F2
eliminated, E FAIL); machine idle at takeover (direct check 10:14:
GPU 0%, VRAM 15 MiB, RAM 1/27 GiB, disk 624 GB free, no processes).
Per Young's rule #1 the machine must not idle -> Round 2 starts now.
- SPEC pre-registered BEFORE any round-2 training:
~/sera_v4_experiments/round2_probe/SPEC.md (mirror in local
workspace round2_probe/). Base = D-skillroute config, from scratch,
seed 42, same data order, 10k micro-steps/arm, Stage-1 gate
(gate_eval.py), val-FM elimination at > D@10k 0.3979 + 0.02, probe
70 ep only for gate-passing + non-eliminated arms, pass >= 9/70.
Arms: G sera-v4-g-mi (MI routing loss replaces uniform balance,
gamma = 0.01 by the report's magnitude rule, specialization kept);
H sera-v4-h-ortho (expert outputs orthogonalized by construction,
QR/Gram-Schmidt before the gate mix, NO loss change, soft weight
penalty forbidden); I sera-v4-i-intracl (IntraCL-lite on router
logits, lambda = 0.05, tau = 0.1, verb/object Jaccard pair weights
from the templated LIBERO task names, gradient confined to router +
goal-delta Linears via detached router inputs — the F2 channel
closed by design). Secondary diagnostic for all arms @10k +
D@10k reference: pair-split routing cosine (same-verb vs
different-verb, same-object vs different-object).
- IDENTIFIER GOTCHA (cost ~30 min, recorded for successors): tool
output rendering in this environment shows the trunk's goal_*
identifiers (goal_mode, goal_deltas, goal_router_scale) as if they
were "dual_*". Byte-level verification (codepoint dumps + regex
extraction + the saved train_config.json) proves the real names
are goal_*. The first IntraCL check failed on exactly this
(getattr "dual_deltas" -> None). All round-2 code/launchers were
fixed by byte-level replacement and re-verified: modeling_base.py
now contains zero "dual" bytes; launchers pass --policy.goal_mode
rendered form = goal_mode bytes. RULE: never copy an identifier
from rendered output when code can extract it instead.
- Patches applied (apply_round2_patches.py, 11/11 OK; repo diff now
+274/-7 over the 3 sera_vla_v3 files incl. Stage-1/frontend/E):
config fields v4_mi_gamma / v4_ortho_outputs / v4_intracl_lambda /
v4_intracl_tau (all default OFF); MoEBlock._orthogonalize + flag
propagation; router-input/goal-summary stash in encode_observation;
_TASK_FACTORS table (40 tasks) + _mi_loss + _intracl_loss wired
into the policy forward.
- Numerical checks PASSED (check_round2.py, CHECK_ROUND2_DONE):
[0] defaults-off decomposition exact (diff 1.5e-07) — existing
arms unaffected; [G] total == FM - 0.01*MI + 0.0002*spec exactly,
MI = 0.11372 on a mixed 4-task batch, MI == 0.0 for a same-task
batch, task_index path == string-grouping fallback; [H] Gram
off-diag/diag ratio 3.5e-08, diag == scale^2 (rel err 4.6e-07),
forward finite, all grads finite; [I] decomposition exact,
IntraCL = 0.765 at init on the check batch (term ~0.038 at
lambda 0.05), gradient confinement VERIFIED: vision_projection
grad max diff on/off = 6.0e-08 (~0), router grad diff = 1.4e-02.
- Horizon check LAUNCHED 10:16 (chain_horizon.sh) on D ckpt 010000.
First finding (trunk fact, SPEC deviation recorded in
round2_probe/SPEC.md before reading any horizon result): the
checkpoint config has n_action_steps = 4 -> SERA_EXECUTE_STEPS is
capped at [1, 4] (execute-8 crashed instantly on the validation),
and ALL previous probes through this select_action (F0 5/70,
F1 7/70) executed 4/16 steps per chunk, not the full chunk.
Re-scoped check: execute {1, 4, 16} — 4 = replication of the F0
protocol (running), 16 via eval-only pcfg.n_action_steps override
(eval_horizon.py), 1 via env var; chain_horizon2.sh queued behind
the running eval.
## Round-2 progress (coordinator 5, 2026-11-18 10:30-10:45)
- Horizon execute-4 (replication of the F0 protocol): DONE 10:31,
**4/70** vs F0's 5/70 on the identical checkpoint/protocol — a
1-episode flip, consistent with bf16 run-to-run nondeterminism at
n=70 (episode 0 reproduces F0 exactly: success, 91 steps, grasp
@39). Baseline band for horizon comparisons: 4-5/70.
- chain_horizon2 stalled ~8 min on its own wait condition: pgrep -f
"eval_v4.py" matched the leftover bash -c wrappers of the launch
commands (their cmdlines embed the script text). Killed the two
stale wrappers (734292, 737908); horizon-16 launched 10:39:42 via
eval_horizon.py (pcfg.n_action_steps override), horizon-1 queued
after it in the same chain.
- ARM G LAUNCHED 10:26 (PID 756238, run_arm_g.sh): 40-step real-data
smoke passed first (mi_loss logged; batch MI at init ~0.20-0.24,
i.e. gamma*MI ~ 0.002 — the estimator's finite-batch floor, as
expected). Solo rate 2.83-2.88 step/s -> ETA ~55 min.
- Smokes for H and I PASSED (40/40 each, checkpoints saved) while G
trains. H: ortho path runs clean under bf16 autocast on real data.
- ARM I PRE-LAUNCH CORRECTION (recorded in SPEC before launch):
smoke measured IntraCL ~ 7-8 on real batches, not the ~1.95
estimated — the report's form sums w_ij-weighted log terms over
all pairs and LIBERO batches are dense in same-verb pairs. Per
the SPEC's own governing magnitude rule (initial term ~0.1, ~5%
of FM), lambda_intracl corrected 0.05 -> 0.01 BEFORE the arm
launched (initial term ~0.07-0.08). Structural checks (exact
decomposition, gradient confinement) are lambda-independent and
stand as verified.
- chain_ghi.sh LAUNCHED: self-driving G -> H -> I. Waits for each
train to end, launches the next arm immediately, measures the
previous arm (2k/5k/10k, batch 8) + pair-split @10k in parallel
with the next arm's training, gates all three at the end.
Log: round2_probe/chain_ghi.log. D@10k reference pair-split runs
first, in parallel with G.
## Round-2 diagnostic baseline (coordinator 5, 2026-11-18 ~11:05)
- Pair-split for D@10k (reference) DONE; cos_all mean 0.766 ==
gate_eval's task_cos 0.766 (cross-validates the new script).
Verb split: same-verb 0.797 vs diff-verb 0.743 (gap +0.054 —
weak). Object split: same-object 0.859 vs diff-object 0.757
(gap +0.102). Reading: D's routing tracks the OBJECT in the
scene (visual content) more than the action verb. The round-2
question for G/I: does the verb gap widen (routing organized by
action) without the object structure collapsing?
- Horizon-16 at check time: 26/70 eps, 4 successes, 8 right-object.
G at step 2543/10000 sharing GPU with the eval.
## Arm J queued (Young approved 2026-11-18 11:20; coordinator 5)
- NEW ARM J `sera-v4-j-datasubset` added to the END of the round-2
queue (after G, H, I; running chain untouched). Data-distribution
probe: D-skillroute recipe unchanged, training data restricted
to 10 maximally diverse tasks (dataset idx 1, 2, 3, 9, 11, 15,
16, 19, 21, 30 — all six verb types incl. the only push task and
the pure turn_on / pure open tasks; redundancy blocks Object
20-29 and Spatial 30-39 cut to one representative each).
405 episodes via --dataset.episodes (list built from the data
parquets; every episode has exactly one task). SPEC addendum
registered in round2_probe/SPEC.md BEFORE launch, incl. the
interpretation bands: subset cosine @10k >= ~0.72 -> data
exonerated as main cause; <= ~0.65 -> data similarity is a real
contributor. No FM elimination rule for J (different data); no
closed-loop probe (routing-only verdict).
- SPEC documentation correction (no code impact): the Arm I factor
table's dataset-index labels were partly wrong (benchmark order
vs tasks.parquet order). Verified against the machine: the code
table is keyed by instruction string, all 40 strings present,
every verb/object annotation matches its own string — arms G/I
unaffected. Correction note added to the SPEC.
- Arm J prepared (11:28): run_arm_j.sh generated from the arm-G
launcher + j_episodes.json (episodes flag present, MI flag
absent); 40-step smoke PASSED — log shows num_episodes=359
(405 subset episodes minus the per-task 10% eval holdout) and
63,465 train frames, i.e. the filter is really active.
chain_j.sh launched in WAITING state: it starts J only after
chain_ghi reports CHAIN_GHI_DONE (fallback: chain gone + I
MEASURED), then measures J (standard set + subset cosine at
2k/5k/10k via measure_subset.py). Queue is now G -> H -> I -> J
with zero planned idle time.
## Phân rã lỗi chọn vs thực thi (F0/F1) — coordinator 5, 2026-11-18
Nguồn: frontend_probe/results/f0-d10k.jsonl + f1-unfreeze.jsonl
(70 ep/arm, CPU-only, script /tmp/probe_analysis/analyze.py).
Định nghĩa (theo eval_v4.py): "chọn đúng" = detector ghi nhận lần
gắp ĐẦU TIÊN trúng tập vật đích (right_object=True). Goal#0 (10 ep)
không có vật đích di động -> loại khỏi mẫu chọn (mẫu = 60 ep/arm).
| Arm | Chọn đúng | Gắp sai vật | Không ghi nhận gắp | P(tcông\|đúng) | P(tcông\|không đúng) | Thực tế | Kỳ vọng nếu chọn hoàn hảo* |
|---|---|---|---|---|---|---|---|
| F0 (D@10k) | 21/60 = 35,0% | 1/60 = 1,7% | 38/60 = 63,3% | 3/21 = 14,3% | 2/39 = 5,1% | 5/70 | 10,0/70 (biến thể 8,6) |
| F1 (unfreeze) | 17/60 = 28,3% | 1/60 = 1,7% | 42/60 = 70,0% | 6/17 = 35,3% | 0/43 = 0,0% | 7/70 | 24,7/70 (biến thể 22,2) |
* = P(tcông|đúng) x 70 theo công thức đăng ký; "biến thể" = 10 ep
không-vật-đích giữ nguyên thực tế + P(tcông|đúng) x 60.
LIBERO-10 (cả 4 task đều 2 vật, 40 ep/arm):
| Arm | Gắp đúng vật đầu | Thành công trong số đó | Gãy sau khi gắp đúng | P(tcông\|đúng) ở task 1 vật (20 ep) |
|---|---|---|---|---|
| F0 | 15/40 | 0 | 15/15 = 100% | 3/6 = 50,0% |
| F1 | 10/40 | 0 | 10/10 = 100% | 6/7 = 85,7% |
Theo task (chọn đúng / thành công): F0 — Spatial#5 5/10, 2;
Goal#9 1/10, 3; L10#0 2/10, 0; L10#6 8/10, 0; L10#7 2/10, 0;
L10#8 3/10, 0. F1 — Spatial#5 3/10, 3; Goal#9 4/10, 3; L10#0 3/10,
0; L10#6 4/10, 0; L10#7 1/10, 0; L10#8 2/10, 0.
Đọc kết quả:
- Gắp SAI vật gần như không xảy ra (1/60 ở cả hai arm). Khối lỗi
lớn nhất là "không ghi nhận gắp" (63-70%) — trộn lẫn không gắp
được và detector sót (xem giới hạn dưới).
- F0: nút thắt lớn hơn là THỰC THI — chọn đúng rồi cũng chỉ xong
14,3%; chọn hoàn hảo cũng chỉ lên ~10/70.
- F1: nút thắt lật ngược — thực thi khi đã chọn đúng đạt 35,3%
(task 1 vật: 85,7%), nhưng tỉ lệ chọn đúng thấp hơn F0 (28,3%
vs 35,0%). +2/70 của F1 đến từ thực thi, không phải chọn vật.
Chọn hoàn hảo sẽ đưa F1 lên ~25/70.
- LIBERO-10: gãy 100% sau lần gắp đúng đầu tiên ở cả hai arm
(25/25 ep gộp) trong khi task 1 vật đạt 50-86% — bức tường nằm
ở giai đoạn vật thứ hai/tuần tự, không nằm ở khâu chọn vật đầu.
GIỚI HẠN (phải đọc kèm): (1) JSONL chỉ ghi lần gắp ĐẦU TIÊN —
không có trường gắp vật thứ hai, nên "gãy ở vật thứ hai" không
quan sát trực tiếp được; con số trên là suy ra: ep 2-vật đã gắp
đúng vật đầu mà không thành công = gãy ở một trong ba khâu đặt
vật 1 / gắp vật 2 / đặt vật 2, không tách nhỏ hơn được từ dữ
liệu này. (2) Detector đánh giá thấp số lần gắp đúng (tiêu chí
nhấc vật sót các ca bê thấp — bằng chứng: Goal#9 F0 có 2 ep
thành công mà detector không ghi nhận gắp đúng). Mọi tỉ lệ
"chọn" là cận dưới; so sánh GIỮA hai arm vẫn hợp lệ vì cùng một
detector.
## Horizon check COMPLETE (coordinator 5, 2026-11-18 ~12:10)
D@10k, fixed 70-ep probe set, seed 0 (results in
round2_probe/results/d-horizon{1,4,16}.jsonl):
| execute steps/chunk | success | right-object |
|---|---|---|
| 1 (replan every step) | PARTIAL 3/15 — stopped early* | 5 |
| 4 (status quo = all prior probes) | 4/70 | 21 |
| 16 (full chunk, eval-only override) | 4/70 | 22 |
| F0 reference (execute 4, earlier run) | 5/70 | 21 |
Verdict: NO execution-horizon effect between 4 and 16 for this
checkpoint (identical 4/70; right-object 21 vs 22) — the
SmolVLA-style execute-10-vs-50 gap does not appear here, and the
program's status quo was already execute-4 (n_action_steps=4 in
the checkpoint config), not full-chunk. *Execute-1 was stopped
at 15 eps by coordinator decision: at ~1.3 min/ep under GPU
sharing it would have held the eval slot ~2 h; its completed
block (Spatial#5: 3/10 vs 2/10 at execute-4, right-object 5/10
both) shows no dramatic rescue, and the registered question was
already answered by the 4-vs-16 contrast. Reported as partial —
not a full 70-ep number.
## Arm G train DONE (2026-11-18 ~11:56)
eval_loss @10k = 0.3837 (logged total, includes -gamma*MI with
gamma*MI ~ 0.007 at end; FM-only ~ 0.390) vs D@10k 0.3979 -> NOT
FM-eliminated under any accounting. Batch MI estimate rose over
training: ~0.10-0.24 early -> 0.55-0.69 in the last logs.
Routing milestones being measured by chain_ghi in parallel with
arm H (launched immediately at G completion).
## SPEC — Oracle battery: chọn vs thực thi (đăng ký 2026-11-18
## ~12:15, TRƯỚC khi chạy; Young giao 11:56, xếp SAU arm J)
Checkpoint: D@10k (sera-v4-d-skillroute/checkpoints/010000).
Probe set + pairing: đúng 7 task x 10 ep của F0, DÙNG LẠI harness
eval_v4 (eval_oracle.py = bản sao + hook can thiệp): seed 0,
sub.init_state_id = ep, _reset_stride = 0 -> initial state từng ep
TRÙNG F0 theo cặp (đã kiểm chứng thực nghiệm: horizon-4 chạy lại
đúng ep0 của F0 từng bước; bf16 có thể lật ~1/70 ep biên). Không
train, can thiệp chỉ ở tầng eval. Ba arm oracle:
- O1 ORACLE CHỌN VẬT (distractor removal): sau reset, trước step
đầu, teleport mọi vật DI ĐỘNG không phải đích ra khỏi cảnh
(qpos -> (2.5, 2.5, -0.3), dưới sàn, ngoài tầm camera). Vật đích
(gồm cả 2 vật ở task 2-vật) và fixture tĩnh giữ nguyên. Đo
success paired vs F0 (5/70). Ghi removed[] từng ep.
- O2 ĐẢO CÂU LỆNH (instruction swap): thay obs["task"] bằng câu
lệnh của một task LIBERO thật khác, có vật đích CÓ MẶT trong
cảnh dưới dạng vật di động không-phải-đích. Bảng swap cụ thể
theo task chốt SAU khi dump inventory cảnh (trước khi xem bất
kỳ kết quả O2 nào) và ghi vào WORKLOG. Đo: swap-following rate
= tỉ lệ ep mà first_grasped == vật đích MỚI (detector tổng quát
hoá, targets={vật mới}); kèm tỉ lệ vẫn gắp vật đích GỐC
(instruction-ignored) và success (kỳ vọng ~0, goal env không
đổi). Task nào không có vật thay thế hợp lệ -> loại khỏi mẫu
swap, báo coverage. CONTROL (subset đăng ký trước: spatial#5,
goal#9, libero_10#0 x 10 ep = 30 ep): instruction của task thật
có vật đích VẮNG MẶT trong cảnh (vd "put the wine bottle on
the rack" cho spatial#5) — đo success + tỉ lệ gắp bất kỳ vật
nào, kiểm tra policy có bị language chi phối hay chạy theo cảnh.
- O3 ORACLE GẮP (grasp teleport): từ step 0, vật đích ĐẦU TIÊN
(theo thứ tự predicate goal) được gắn vào gripper (mỗi step set
qpos vật = eef + offset [0,0,-0.05], qvel=0 — policy bắt đầu
episode ĐÃ CẦM đúng vật). Khi policy ra lệnh MỞ gripper (chiều
action gripper xác định thực nghiệm lúc smoke, giữ 3 step) ->
thả: vật thành vật lý, không gắn lại. SUCCESS CHỈ TÍNH từ step
thả trở đi (success khi còn đang gắn không tính — chống việc
policy chỉ lơ lửng vật trên đích); ghi release_step. Task 2-vật:
chỉ gắn vật đầu, vật hai policy tự làm. Goal#0 không có vật
đích di động -> O3 không áp dụng (chạy đủ 70 ep, applied=False
cho 10 ep đó; mẫu O3 = 60 ep).
Diễn giải đăng ký trước (theo brief): chọn-là-nút-thắt nếu O1
gain >= +20 điểm paired và O3 gain nhỏ; gắp/thực-thi-là-nút-thắt
nếu O3 gain lớn và O1 ~ 0; cả hai nếu gain cộng dồn từng phần.
O2: swap-following cao -> cơ chế chọn theo instruction HOẠT
ĐỘNG (lỗi chọn của F0 nằm ở grounding/biểu diễn); swap-following
~0 + hành vi không đổi -> policy gần như bỏ qua nội dung
instruction (nhất quán CF 0/15 trên v3). n=70 paired chỉ phân
giải chênh ~20 điểm; số per-task chỉ mô tả, không kết luận.
Báo cáo cuối: bảng delta paired F0 -> O1/O2/O3 + phân rã Step-0
(mục "Phân rã lỗi chọn vs thực thi (F0/F1)" ở trên) gộp trong
mục "Oracle battery: chọn vs thực thi". Chạy bằng chain_oracle
chờ CHAIN_J_DONE — không chen ngang chuỗi G->H->I->J.
## Oracle battery — amendment + swap table (registered BEFORE any
## oracle run, 2026-11-18 ~12:25; from scene_inventory.json dump)
- O1 RULE CORRECTED (the naive rule would have broken tasks):
plate_1 and basket_1 are MOVABLE in these scenes but are the
goal's placement surface/container. Removal set = movable
instances NOT referenced in ANY goal predicate (any argument
position) and not targets. Consequences per task: spatial#5
removes bowl_2/cookies/ramekin (keeps bowl_1 + plate_1);
goal#0 removes all 4 movables; goal#9 removes bowl/cream
cheese/plate (keeps wine_bottle + rack fixture); L10#0 removes
cream cheese/ketchup/orange juice/milk/butter (keeps soup,
sauce, basket); L10#6 removes red_coffee_mug only; L10#7
removes tomato sauce/ketchup; L10#8 has NO movable non-target
-> O1 is a no-op there (removed=[] recorded).
- O2 SWAP TABLE FIXED (instruction -> new detector target):
spatial#5: "pick up the black bowl next to the plate and place
it on the plate" -> the non-target akita bowl NEAREST plate_1
at reset (dynamic per-episode: layouts vary across init
states; the instruction is position-defined); goal#0: "put
the wine bottle on the rack" -> wine_bottle_1; goal#9: "put
the bowl on the plate" -> akita_black_bowl_1; L10#0: "pick up
the ketchup and place it in the basket" -> ketchup_1; L10#6:
"pick up the chocolate pudding and place it in the basket" ->
chocolate_pudding_1 (the other target — order-selection swap;
the red coffee mug has no real instruction); L10#7: "pick up
the tomato sauce and place it in the basket" -> tomato_sauce_1.
L10#8 EXCLUDED (no movable non-target exists) -> O2 sample =
6 tasks x 10 = 60 ep.
- O2 CONTROL table (absent-object instructions): spatial#5 ->
"put the wine bottle on the rack"; goal#9 -> "turn on the
stove and put the moka pot on it"; L10#0 -> "put the wine
bottle on the rack". 30 ep as registered.
- O3 gripper-open sign: default threshold action[-1] < -0.5
sustained 3 steps; to be calibrated at smoke against F0's
known grasp step (spatial#5 ep0, grasp @39) and fixed in
WORKLOG before the full O3 run.
## CORRECTION — horizon execute-1: NO complete result (watchdog
## 11:55; coordinator reply 2026-11-18 ~12:35)
- The execute-1 run stopped at 3/15 eps (Spatial#5 3/10 complete,
goal#0 ep 0-4, 0/5). It was stopped by COORDINATOR DECISION
(~12:05, PID killed deliberately to free the GPU slot) — NOT a
crash: no traceback exists because the process was killed, not
because it failed. The chain script (chain_horizon2.sh) writes
HORIZON_1 DONE / HORIZON_CHAIN2_DONE UNCONDITIONALLY after the
python exits, so those markers DO NOT mean the check completed.
Treat execute-1 as PARTIAL ONLY: it has NO full 70-ep result.
The WORKLOG horizon table above already lists it as PARTIAL;
this note exists so the DONE markers cannot be misread.
- A HORIZON_1 PARTIAL marker line was appended to
round2_probe/results/horizon.log, and a rerun to the full 70
ep is QUEUED after the oracle battery (chain_h1.sh, waits for
CHAIN_ORACLE_DONE, writes COMPLETE only if the output has 70
lines, else PARTIAL). It is NOT run now: H training is in
progress and the rerun would share (slow) the GPU.
## ARM G VERDICT — FAIL on one criterion only (gate_eval, 2026-11-18
## ~12:55). Closest gate approach of the whole program.
- Cosine task: 0.790 @2k -> 0.737 @5k -> 0.729 @10k (D@10k:
0.766). Per-block @10k: [0.756, 0.759, 0.615, 0.784]. Block 3
REVIVED: cos 0.784 vs D 0.944, routed-energy share 0.139 vs
0.028 — the vestigial block differentiates under MI.
- Effective experts @10k: [4.18, 4.88, 5.72, 5.90] — blocks 0-1
<= 5.0, the first arm ever to pass the eff criterion (2 blocks).
- Phase cosine @10k: 0.485 (D: 0.655); JS 0.410 (D: 0.241) —
routing tracks phase and varies within episodes much more.
- DEAD EXPERT (the only failed criterion): block 0, expert 3,
selection share 0.0083 (< 1% threshold, borderline: 0.17 pts
under). It was NOT dead at 5k (no dead expert anywhere at 5k);
the death happened 5k -> 10k. (@2k dead were block0 e3 and
block3 e2; both recovered by 5k.)
- val FM @10k 0.3837 (FM-only ~0.390) vs D 0.3979 -> NOT
FM-eliminated. MI batch estimate ended 0.55-0.69.
- Pair-split @10k (vs D): verb gap +0.079 (same 0.774 / diff
0.695; D +0.054) — widest in blocks 1 (+0.097) and 2 (+0.130);
object gap +0.137 (same 0.853 / diff 0.716; D +0.102). MI made
routing MORE task-structured, but the structure it found is
still object-dominated.
- GATE: FAIL (dead expert). Per the registered round-2 protocol
(no extension clause, probe only for gate-passing arms) G does
NOT probe and does NOT extend. gate_eval.py labels it
EXTEND-20K — that label belongs to the Stage-1 extension rule
already spent on D; any 20k extension or probe for G is a
decision for Young/parent, not taken unilaterally here.
## Oracle smokes (coordinator 5, 2026-11-18 ~13:0x; during I train)
- O1 smoke (spatial#5 x2): PASS. removed=[bowl_2, cookies,
ramekin], plate kept (goal surface). Both eps fail like F0 ep1
(no grasp) — mechanics only, n=2.
- O2 smoke (spatial#5 x2): PASS. swap_target resolved dynamically
to akita_black_bowl_2; instruction replaced; followed_swap /
grasped_original fields recorded. Both eps no grasp.
- O3 smoke (spatial#5 x2): CAUGHT A BUG. release_step=11 in both
eps: the policy starts with gripper-OPEN commands (action ~-1
at rest), so the bare open trigger released the object almost
immediately. Ep1 then grasped the ramekin itself at step 48.
CALIBRATION: gripper action -1 = open, +1 = close (confirmed).
Release rule corrected BEFORE the full run: release only after
a sustained CLOSE phase (action > +0.5 x3 steps arms it), then
open x3 steps releases. Re-smoke pending to verify release
moves to the policy's placement attempt. Design limitation
recorded: a policy that never closes never releases; its
attached-success is reported as would-be success only.
- O3 re-smoke (sau sửa luật release, spatial#5 x2): PASS. Ep0
release_step=179 (policy cầm bát đi rồi mở gripper ở khâu đặt
— đúng semantics; placement sau đó vẫn fail). Ep1: release
chưa xảy ra mà env đã kết thúc ở step 112 vì bát ĐÃ ở trên đĩa
trong lúc còn gắn (attached_success_seen=true, success=false
theo luật đã đăng ký). Ghi nhận: O3 báo cáo 2 số — strict
(chỉ tính success từ step thả trở đi, số chính) và would-be
(attached_success_seen, số phụ). O2ctrl smoke PASS (instruction
đổi sang chai rượu vắng mặt, không gắp).
- Tất cả smoke oracle (O1/O2/O2ctrl/O3) đã PASS. chain_oracle
chờ CHAIN_J_DONE rồi chạy đủ 70/70/60/30 ep.
## ARM H VERDICT — FAIL (gate_eval, 2026-11-18 ~13:4x)
- Cosine task: 0.817 @2k -> 0.786 @5k -> 0.773 @10k (D@10k:
0.766 — essentially the D level, marginally worse).
Per-block @10k: [0.798, 0.753, 0.619, 0.921].
- Effective experts @10k: [4.84, 5.80, 6.79, 7.98] — only ONE
block <= 5.0 (gate needs >= 2). No dead/swamp expert at 10k
(a death existed at 2k, recovered by 5k).
- Phase cosine @10k 0.661 (D: 0.655); JS 0.235 (D: 0.241) —
no change in phase or within-episode structure.
- Block 3 still vestigial: cos 0.921, prob_share nearly uniform
[0.11-0.14], routed-energy 0.072 (D: 0.944/0.028). Unlike G,
orthogonalization did NOT revive the last block.
- val FM @10k 0.3969 vs D 0.3979 -> NOT FM-eliminated.
- Pair-split @10k: verb gap +0.051 (same 0.802 / diff 0.751;
D +0.054); object gap +0.102 (same 0.865 / diff 0.763; D
+0.102 — identical to D).
- GATE: FAIL. Orthogonalizing expert OUTPUTS by construction
(Gram-Schmidt/QR) produced routing statistically
indistinguishable from the D control on every axis measured.
Per protocol: NO probe. (gate_eval's EXTEND-20K label is the
Stage-1 near-pass tag; round 2 has no extension rule.)
## ARM I VERDICT — FAIL + FM-ELIMINATED (gate_eval, 2026-11-18
## ~14:45). Chain GHI COMPLETE 14:42:59; J launched 14:43:57.
- Cosine task: 0.831 @2k -> 0.822 @5k -> 0.807 @10k (D@10k:
0.766 — WORSE than control on the headline axis). Per-block
@10k: [0.763, 0.836, 0.688, 0.941]. Block 3 vestigial as in D.
- Effective experts @10k: [5.01, 3.77, 7.47, 7.15] — only ONE
block <= 5.0 (gate needs >= 2); the low eff is collapse, not
specialization: block 1 prob_share e4 = 0.50 with e0/e3/e5 at
0.00.
- DEAD EXPERTS at EVERY milestone (block 0 e0; block 1 e0/e3/e5;
block 3 e2) — the contrastive pressure killed experts from
2k onward and they never recovered. Same failure mode as arm E
(sharpness without marginal protection), now via IntraCL.
- Phase cosine @10k 0.764 (D: 0.655); JS 0.153 (D: 0.241) —
routing tracks phase LESS and varies LESS within episodes.
- val FM @10k 0.5352 vs D 0.3979 -> FM-ELIMINATED (margin
+0.137, far beyond 0.02). Trajectory 1.068 -> 0.794 -> 0.672
-> 0.558 -> 0.535: FM learning itself is slowed (IntraCL term
only ~0.028 of the total; the FM component is ~0.51). The
router-confined gradient still taxed the action objective —
same lesson as F2, different channel.
- Pair-split @10k: verb gap +0.059 (same 0.841 / diff 0.782;
D +0.054 — no widening); object gap +0.079 (D +0.102 —
narrower). IntraCL bought no verb structure at all.
- GATE: FAIL (dead experts + worse cosine + 1 block <= 5.0)
AND FM-eliminated. Per protocol: NO probe. (gate_eval's
EXTEND-20K label is the Stage-1 near-pass tag; round 2 has
no extension rule.)
- ROUND-2 MoE SCOREBOARD (G/H/I): 0/3 pass. G came closest
(3/4 gate criteria, borderline dead expert 0.83%); H is a
clean null; I collapsed + FM-eliminated. Only arm J (data)
remains in the MoE round.
### QUYẾT ĐỊNH CỦA YOUNG (15:16, 18/11): CẮT rerun horizon execute-1
- Young quyết định huỷ hẳn chặng rerun execute-1 đủ 70 ep khỏi hàng đợi. Đã thực thi ngay: kill waiter `chain_h1.sh` (PID 47889) trên máy train và đổi tên script thành `chain_h1.sh.DISABLED_BY_YOUNG_20261118` để không gì kích hoạt lại được.
- **Horizon check ĐÓNG vĩnh viễn** với: execute-4 = 4/70, execute-16 = 4/70 (không hiệu ứng horizon 4↔16), execute-1 = **PARTIAL 3/15** (Spatial#5 3/10 + goal#0 0/5, dừng theo quyết định điều phối ~12:05 ngày 18/11) — không chạy lại nữa, không trích execute-1 như kết quả đầy đủ.
- Không đụng vào train J (đang chạy, 5632/10000 tại thời điểm ghi) và chain_oracle xếp sau J.
- **Hàng đợi vòng 2 còn lại: J → đo J (P1 + subset cosine) → oracle O1/O3/O2/O2ctrl → đóng vòng 2 + handoff.**
### AMENDMENT CỦA YOUNG (15:27, 18/11): nền Oracle KHÔNG còn cố định là D@10k
Đăng ký TRƯỚC khi oracle chạy (và trước khi thấy số J):
1. Sau khi đo routing J xong, lập **bảng so sánh D/G/H/J** gồm: **cosine chéo-task @10k trên TOÀN BỘ 40 task** (J dùng số all-40 để tham chiếu, KHÔNG dùng cosine subset), expert hiệu dụng từng block, expert chết, val FM. (Số D/G/H đã có: D cos 0,766 / eff [5,27, 6,12, 7,00, 8,00] / không chết / FM 0,3979; G cos 0,729 / eff [4,18, 4,88, 5,72, 5,90] / chết blk0 e3 / FM 0,3837; H cos 0,773 / eff [4,84, 5,80, 6,79, 7,98] / không chết / FM 0,3969 — sẽ đối chiếu lại từ file đo khi lập bảng chính thức.)
2. **Luật chọn (chốt ngay bây giờ): arm có cosine all-40 @10k THẤP NHẤT là nền Oracle; hoà thì xét val FM thấp hơn.** Ghi bảng + arm được chọn vào WORKLOG và file chọn nền `round2_probe/ORACLE_BASE` (dạng `ORACLE_ARM=<tên arm>` / `ORACLE_BASE=<F0|O0>`).
3. **Nếu nền ≠ D:** chạy TRƯỚC một probe baseline 70 ep cho checkpoint đó trên đúng probe set/seed 0 ghép cặp với F0 (gọi là **O0**, qua `eval_oracle.py --mode none`, out `oracle-o0-<arm>.jsonl`) làm mốc so sánh ghép cặp, rồi mới chạy O1/O2/O3 đối chiếu **O0** theo các mẫu kết án đã đăng ký. **Nếu nền = D:** giữ nguyên spec gốc (F0 là baseline, không chạy O0).
4. Kỹ thuật: chain_oracle v1 (hard-code D) đã bị huỷ và thay bằng **chain_oracle v2** — chờ CHAIN_J_DONE rồi chờ tiếp file `ORACLE_BASE` mới chạy; checkpoint lấy theo `ORACLE_ARM`; tên output theo arm được chọn (`oracle-o1-<short>.jsonl`, ...). Không đụng vào train J đang chạy.
## ARM J VERDICT — data probe (train done 15:44:27, measured
## 2026-11-18 ~16:08, coordinator 6)
- In-arm val FM (SUBSET data, NOT comparable to D/G/H):
0.8838 @2k -> 0.6881 @4k -> 0.5815 @6k -> 0.4577 @8k ->
0.4314 @10k.
- All-40 routing (standard P1 set): cos 0.7871 @2k -> 0.7675
@5k -> 0.7564 @10k. Per-block @10k [0.738, 0.709, 0.662,
0.916]; eff [4.92, 5.80, 7.23, 7.98] (1 block <= 5.0); NO
dead/swamp @10k (blk0 e3 dead @2k, recovered by 5k). Block 3
vestigial as in every arm (cos 0.916).
- SUBSET cosine (headline, the 10 trained tasks): 0.6954 @2k
-> 0.6983 @5k -> 0.6791 @10k. Per-block @10k [0.774, 0.491,
0.580, 0.872].
- INTERPRETATION (pre-registered bands: >= ~0.72 data
exonerated; <= ~0.65 data a real contributing factor):
0.6791 falls BETWEEN the bands, marginally on the
contributing side of the 0.685 midpoint. Training only on
maximally dissimilar tasks DID differentiate routing more
(subset 0.679 vs D full-data 0.766; J all-40 0.756 also
below D despite 30/40 tasks never trained) — task
similarity contributes — but even on maximally different
tasks the mixture still blends heavily (0.679, far from
specialization): data is a CONTRIBUTING condition, NOT the
main cause. The objective remains the primary suspect.
- Gate anatomy (for the record; J is a data probe, not a gate
candidate): cos < 0.90 pass, trend pass, no-dead pass, eff
>= 2 blocks FAIL (1/4) -> J would also FAIL the Stage-1
gate. ROUND-2 MoE SCOREBOARD FINAL: G/H/I/J = 0/4 pass.
## ORACLE BASE SELECTION — D/G/H/J all-40 comparison (per
## Young's amendment 15:27; coordinator 6, 2026-11-18 ~16:1x)
| arm | cos all-40 @10k | eff @10k | dead @10k | val FM |
| D skillroute | 0.7663 | [5.27, 6.12, 7.00, 8.00] | none | 0.3979 |
| G mi | 0.7285 | [4.18, 4.88, 5.72, 5.90] | blk0 e3 | 0.3837 |
| H ortho | 0.7729 | [4.84, 5.80, 6.79, 7.98] | none | 0.3969 |
| J datasubset | 0.7564 | [4.92, 5.80, 7.23, 7.98] | none | 0.4314* |
(* J val FM is on subset data — not comparable; record only.)
All values re-extracted from measurement/results JSONs by
coordinator 6 (match coordinator 5's recorded D/G/H numbers).
RULE (registered 15:27): lowest all-40 cosine @10k = Oracle
base; tie -> lower val FM. RESULT: **G (0.7285), no tie.**
ORACLE_ARM=sera-v4-g-mi / ORACLE_BASE=O0 written to
round2_probe/ORACLE_BASE on the machine. chain_oracle v2
will run O0 (70-ep baseline probe on G@10k, seed 0, paired
with F0) then O1/O3/O2/O2ctrl judged against O0.
NOTE: O2 swap tables + O3 release rule were calibrated on D;
both are checkpoint-agnostic mechanics (instruction/scene
tables; close-arms-then-open release). First O3 episodes on
G will be sanity-checked (release_step / applied flags)
when the output lands.
## Oracle battery: chọn vs thực thi — KẾT QUẢ (base G@10k per
## amendment 15:27; chain_oracle v2 DONE 2026-11-18 17:12:23;
## coordinator 6)
Baseline O0 (G@10k, mode none, 70 ep paired with F0 seeds):
**7/70 (10.0%)** — spatial#5 5/10, goal#0 1/10, goal#9 1/10,
LIBERO-10 0/40; right-object 18/60 (30.0%). (Reference F0 on
D@10k: 5/70, right-object 21/60.)
Paired deltas vs O0 (same init states):
| arm | result | paired gain/loss | reading |
| O1 dọn vật nhiễu | 5/70 | +2 / -4 (net -2) | NO effect |
| O3 gắp hộ (strict) | 0/60 applied (0/70) | +0 / -6 | NO conversion |
| O3 would-be (attached_success_seen) | 14/70 | +11 paired | transport works, release never happens |
| O2 đổi lệnh (n=60) | followed swap 10/60, grasped original 9/60, no grasp 41/60, success 0 | — | instruction followed only for salient single objects |
| O2ctrl lệnh vật vắng mặt (n=30) | success 0, grasped anything 0/30 | — | total stall; language gates action |
O1 detail: spatial#5 unchanged 5/10; goal#0 and goal#9 lost
their single O0 successes; LIBERO-10 0/40 as baseline.
Removing every distractor does NOT recover a single net
episode -> distractor confusion is NOT the bottleneck.
O3 detail: applied 60/60 (goal#0 excluded by design);
releases in 27/60, strict success after release 0/27. The
14 attached-success episodes are ALL single-object tasks
(goal#9 9, spatial#5 5; LIBERO-10 0/40) and in ALL 14 the
policy NEVER released the object before timeout
(attached-success AND released = 0): it carries the correct
object to the goal region and holds it there. Releases
occurred only in episodes that never reached the goal.
Caveat (registered design limitation): starting attached is
off-distribution for the policy; would-be is the secondary
metric per SPEC. Even granting that, a free correct grasp
converts to ZERO strict successes.
O2 detail: followed_swap concentrated in goal#9 (8/10 —
swap to "put the bowl on the plate", policy grasps the
bowl) and goal#0 (2/10); grasped_original concentrated in
L10#6 (8/10 — order swap to pudding-first IGNORED, policy
grasps the mug per its routine; followed 0/10). Selection
by instruction is partially alive for salient single
objects but is overridden by routine in two-object
sequencing.
Step-0 factorisation (earlier trace decomposition, D@10k/F0
— different checkpoint, context only): right-object 21/60,
wrong-object grasp only 1/60, P(success|right) = 14.3% —
same qualitative picture as the G oracle: selection is
rarely the failure; conversion after a correct grasp is.
### PHÁN QUYẾT (theo các mẫu đã đăng ký)
- Mẫu "kết án CHỌN" (O1 gain >= +20, O3 nhỏ): KHÔNG khớp
(O1 net -2).
- Mẫu "kết án GẮP" (O3 gain lớn, O1 ~ 0): KHÔNG khớp ở dạng
nguyên thuỷ (O3 strict gain = 0).
- Kết luận đo được: **kết án khâu THỰC THI SAU GẮP** — đặt /
thả / ổn định vật và nối tiếp sang vật thứ hai. Không
phải chọn vật (O1 ~ 0), không phải gắp lấy vật (gắp hộ
miễn phí vẫn 0 strict). Ở task 1 vật: vật tới đúng vùng
đích trong tay nhưng không được thả xuống (14/14). Ở
LIBERO-10: gãy hoàn toàn ở trình tự (0/40 ở mọi arm, kể
cả would-be của O3). Chọn-theo-lệnh tồn tại yếu, bị
routine lấn ở task 2 vật (O2).
## VÒNG 2 ĐÓNG (2026-11-18 17:12)
- MoE arms G/H/I/J: 0/4 qua cổng routing. G gần nhất (FAIL
vì 1 expert chết biên 0,83%); J: data góp phần, không
phải nguyên nhân chính (subset cos 0,6791, giữa 2 ngưỡng).
- Horizon: execute-4 = execute-16 = 4/70 (không hiệu ứng);
execute-1 PARTIAL 3/15, rerun bị Young huỷ 15:16 — đóng.
- Oracle battery (nền G@10k theo amendment của Young):
nút thắt = thực thi sau gắp (đặt/thả/trình tự), không
phải chọn skill/vật.
- Hàng đợi vòng 2 đã hết. Máy train trống là ĐÚNG trạng
thái cuối (không còn chặng nào xếp hàng).
## Takeover — coordinator 7 (2026-11-18 ~18:15): E1 — QueST graft
## (Young approved E1 ONLY at 18:09; E2/E3 NOT approved)
- Mandate: borrow B1 from the 5-paper research (proposal:
~/workspace/research/borrow-from-five-papers-proposal.md §B1;
report: research_notes/skill-moe-papers-skillnet-quest-compile-
20261118-1053). Machine idle at takeover (direct check 18:1x:
GPU 0%, VRAM 15 MiB, RAM 1/27 GiB, disk 557 GB free, no train
processes). Base = D-skillroute config. B4's RSA measurement IS
part of E1's measurement step; B2/B3 are NOT in scope.
- Trunk facts re-verified this session (code read on machine):
policy forward takes batch[ACTION] as the full [B,16,7] FM
target -> a 32-step GT window CANNOT ride in the batch action;
codes therefore travel via a precomputed side channel (below).
Action normalization = MEAN_STD (stats in the init normalizer
safetensors). Trainer eval_split = last ceil(0.1*n) episodes
PER TASK held out (factory.py) — the tokenizer split mirrors
this exactly. v3 velocity_prediction conditions h via state
(input add) + goal FiLM (post-block) — the token graft mirrors
these two channels. get_optim_params puts every non-tips
trainable param in the main group -> new modules train
automatically in joint stage.
## SPEC — E1 QueST graft (registered 2026-11-18 ~18:2x, BEFORE
## any E1 code or training; arm name sera-v4-q-quest)
### Stage I — tokenizer (QueST-style, action-only), trained first
- Architecture (fixed): input window [32,7] of actions in the
POLICY's normalized space (MEAN_STD stats from init_skillroute
normalizer). Encoder: causal Conv1d 7->192 (k5,s1), 192->192
(k5,s2), 192->256 (k5,s2), GELU, causal left-padding (length
32->8, F=4); 1 causal transformer layer (d 256, 4 heads);
Linear 256->4; FSQ levels [8,5,5,5] -> 1000 codes, code index
= mixed radix (basis 1,8,40,200). Decoder: Linear 4->256 per
code + positional emb (8); 2-layer transformer decoder (d 256)
with 32 learned queries; Linear 256->7. Loss = L1 ONLY.
- Data: lerobot/libero rev v3.0. Train episodes = per task, all
but the last ceil(0.1*n_task) episodes (== trainer eval_split);
held-out = those last episodes. Windows fully inside an
episode; sampling uniform over (episode, start).
- Training: AdamW lr 3e-4 cosine -> 3e-5, batch 256 windows,
20,000 steps, bf16. TIMEBOX 1.5 h: step time measured at
smoke; steps trimmed to fit <= 75 min if needed (documented);
ONE documented extension allowed if recon still clearly
improving at the timebox.
- Reports: held-out reconstruction L1 (eval episodes, stride-16
windows); codebook utilization on held-out windows (stride 8):
fraction of the 1000 codes used >= 1 time + usage perplexity
exp(H(usage)); per-position utilization too.
- TOKEN-HEALTH GATE (override, from the E1 brief): held-out
utilization < 5% of codes = E1 FAIL regardless of all other
numbers. Kill: a single code > 80% of all token positions on
held-out = tokenizer collapse -> stop the leg, document, no
improvised redesign.
- After training: tokenizer FROZEN for everything downstream;
saved as quest_probe/quest_tokenizer.pt. Codes precomputed
for EVERY episode (train + eval) and every anchor frame:
32-window from the anchor, edge-padded (repeat last action)
when < 32 frames remain; int16 array [1693, max_len, 8] +
manifest, quest_probe/codes_all.npy.
### Stage II — policy arm sera-v4-q-quest
- Recipe = arm D exactly (init from init_quest, skillroute
mode, joint, seed 42, same data order, 10,000 micro-steps,
batch 8 x accum 4, LR peak 1e-4 warmup 200 cosine -> 1e-5,
eval_split 0.1). THE single change: the FM/action stack is
conditioned on skill tokens (below). MoE, routers, goal
branch, losses (fm + 0.01 balance + 0.0002 spec) unchanged.
- New modules (in SERAVLAV3Model; names verified byte-level
when the patch is written):
* skill_embed = Linear(4,512); skill_pos = Parameter[8,512].
Skill summary s = mean_i( skill_embed(fsq_vec_i) +
skill_pos_i ), fsq_vec = parameter-free mixed-radix decode
of the code index to its 4 FSQ values.
* skill_film = Linear(512,1024), ZERO-INIT (mirrors the goal
branch's goal_action).
* skill_prior (the prior head): ctx = Linear(1536,256) over
last_router_input (skillroute router input = [fusion
context mean 512; state 512; pooled instruction 512]);
Embedding(1000,256) + positional emb; 2-layer causal
TransformerDecoder (d 256, 4 heads, ff 1024); head
Linear(256,1000). Input seq = [ctx_token, emb(c_1..c_7)]
(length 8); outputs predict c_1..c_8. Output = logits
[B,8,1000]; prior loss = mean cross-entropy over positions.
- WHERE TOKENS ENTER (velocity_prediction, v3 override): (1)
h += s[:,None] right after the state addition, before the 4
MoE blocks; (2) after the blocks and after the goal FiLM:
gamma,beta = skill_film(s).chunk(2); h = h + gamma[:,None] *
final_norm(h) + beta[:,None]; then the velocity head.
- Train-time flow (teacher forcing): batch carries
skill_codes [B,8] (long) looked up from codes_all.npy by
(episode_index, frame_index) via a class-level __getitem__
patch inside train_q.py ONLY (repo files untouched by the
patch mechanism; the policy patch itself adds the modules +
config flags). s is computed from GT codes; the prior is
trained on the same GT codes by NLL. total = D_total +
lambda_prior * prior_nll.
- Inference flow: NO encoder, NO GT. predict_action_chunk:
prior GREEDY autoregressive decode (8 steps) from
last_router_input -> codes -> fsq decode -> s -> FM Euler
loop unchanged (4 steps, execute via select_action as usual).
- lambda_prior: initial 0.01 (at init prior NLL ~= ln 1000 ~=
6.9 -> term ~0.069, ~4% of FM ~1.7 — inside the program's
1-5% magnitude rule). MEASURED at smoke on real batches;
corrected BEFORE launch if the term falls outside
[0.02, 0.09]; correction documented here (arm-I precedent).
- Config: v4_quest_enabled (bool, default False),
v4_quest_lambda (float, default 0.0), validated in
__post_init__. Defaults-off must reproduce D exactly.
- Init: init_quest = init_skillroute + skill_* tensors from a
freshly constructed quest-enabled policy (fixed seed 1234
for the new modules), built by surgery script (D-init
precedent); shared tensors bitwise identical to
init_skillroute.
- Pre-launch numerical checks (check_quest.py, all must pass):
[0] flag OFF: total == fm + 0.01 bal + 0.0002 spec exactly
(diff < 1e-6) on a fixed batch, velocity output identical
to flag-off reference given identical weights + noise;
[1] flag ON: total - D-terms == lambda * prior_nll
(diff < 1e-6); [2] grads: skill_prior/skill_embed/skill_film
receive grad, tips params receive none; [3] predict path:
greedy codes deterministic across two calls, chunk
[B,16,7]; [4] record FM with GT codes vs prior codes at
init (pathway-live sanity, no threshold).
### Measurements at 2k/5k/10k (parallel with training, batch 8)
- (a) Token metrics (measure_tokens.py): ENCODER-side — 200
windows/task (seed 7, all episodes) -> per-task usage
histograms (pooled positions, 1000 bins): cross-task JS
(mean pairwise), cross-phase JS (phase = episode-progress
thirds of the window centre — HEURISTIC, labelled), unique
sequences / total. PRIOR-side — the standard 3,840-obs
measurement cache -> arm-Q prior greedy codes per obs ->
same stats with the manifest's task + phase labels (phase
HEURISTIC, labelled). Utilization + perplexity per
milestone (prior-side; encoder-side is frozen/constant).
- (b) Routing for the record: measure_routing.py on ckpt
2k/5k/10k -> measurement/results/q-quest-{2000,5000,10000}
.json (same P1 set; NO Stage-1 gate applies to Q — reported
as anatomy only).
- (c) RSA (B4, CPU-only, measure_rsa.py): Spearman rho
between pairwise token-distribution dissimilarity (JS,
prior-side and encoder-side) and pairwise verb/object
attribute dissimilarity (1 - Jaccard over the _TASK_FACTORS
verb+object sets, 40 tasks, 780 pairs). Reference only:
SkillNet SCMoE rho 0.48 vs vanilla MoE 0.08 (different
attribute system — not a gate).
### Closed-loop probe at 10k
- eval_v4.py on ckpt 010000, fixed 7 tasks x 10 ep, seed 0 ->
quest_probe/results/q-quest.jsonl. References: D@10k 5/70,
F1 7/70, G@10k 7/70. Reported as the closed-loop SIGNAL;
NOT a reuse gate.
### Composition test (decisive reuse test) — 6 audited tasks
- Set: rollout task_ids {1,3,4,6,7,8} = skill_obj_02, 04, 05,
07, 08, 09 (audit: unseen-composition; ids 0/2 = seen
duplicates, id 5 = partial-overlap — all excluded, matching
Test 1 of the Skill Transfer experiment). 10 ep/task = 60
ep per variant, seed 0, via rollout_skill_v4.py.
- Variant Z (zero-shot): Q ckpt 010000 as-is (tokenizer +
prior + FM frozen — the whole policy is frozen at eval).
- Demos for F (source/protocol locked by the earlier
experiment's preregistration): official LIBERO-Skill demos
DO NOT EXIST -> scripted oracle in sim (privileged state),
5 demos/task, each demo VERIFIED by the BDDL goal
predicate at termination (only verified demos kept; a task
with < 5 verified demos after reasonable attempts is
reported with its coverage). Demo init states = fresh
BDDL-sampled resets — the 10 test init states are NEVER
used as demos (preregistration rule). Demo format (npz,
same as the earlier protocol): images [T,2,256,256,3]
uint8 @10 Hz, states [T,8] raw, actions [T,7] raw,
instruction str. SOURCE (scripted oracle) declared in all
reports.
- Variant F (few-shot, prior-only): copy of Q ckpt 010000;
freeze everything except skill_prior.*; train on the demo
anchors (frames with a full 32-window ahead, stride 2):
target = frozen-encoder codes of the GT window; loss =
prior NLL only. Protocol mirrors the earlier experiment's
adaptation: 500 optimizer updates, eff batch 32 (8 anchors
x accum 4), AdamW lr 5e-5 cosine -> 5e-6, warmup 25,
seed 0. Original checkpoint never written to. Adapted
checkpoint rolled out on all 6 tasks x 10 ep.
- GATES (verbatim from the E1 brief, registered now):
* PASS-REUSE: variant Z >= 5/60 successes (monolith
reference: SERA-v2 and v3 each scored 0/30 at 5 ep/task
on this set).
* PARTIAL: Z < 5/60 but F >= 10/60 -> reuse exists but
needs prior adaptation.
* FAIL: otherwise. Token-health override: codebook
utilization < 5% on held-out windows = FAIL regardless
of other numbers.
* The 70-ep probe is reported as the closed-loop signal
against the 5/70 and 7/70 references; it is not a reuse
gate.
### Chain order + kill rules
- Tokenizer -> codes precompute -> checks -> arm Q train
(measurements in parallel) -> probe -> composition Z ->
oracle demos (built in parallel from Stage II on) -> F
fine-tune -> F rollout -> verdict. Kill: NaN/divergence,
tokenizer collapse (above), repeated OOM. If a leg is
blocked after reasonable attempts: document here and run
the legs that do not depend on it; the machine must not
idle while E1 is unfinished.
## E1 Stage I — tokenizer DONE (2026-11-18 ~18:24)
- Trained 20,000 steps in 204 s (batch 256, AdamW 3e-4 cosine).
Params 3,351,755. NO extension: recon curve flattened
(held-out L1 0.154 @10k -> 0.147 @20k), so the SPEC's
extension condition ("still clearly improving") is not met.
- FINAL held-out metrics (eval episodes = per-task last 10%,
3,163 windows stride 8): recon L1 0.1493 (normalized action
units); codes used 999/1000 -> utilization 99.9%; usage
perplexity 797.8; max single-code share 0.50%; per-position
codes used 826-878. TOKEN-HEALTH GATE (>= 5%): PASS by a
wide margin. Tokenizer frozen; codes precomputed for all
1,693 episodes x every anchor -> codes_all.npy [1693, 505, 8].
## E1 Stage II — graft built + checks PASSED (~18:28)
- Patch apply_quest_patch.py (9 replacements, all anchors
asserted; post-patch byte check: 0 stray identifier bytes).
Skill params added: 3,551,368 (prior ~3.02M + film 525k +
embed/pos ~6.5k) -> arm-Q trainable ~73.3M.
- Fix 1 (apply_quest_fix1.py): skill_embed + skill_pos
ZERO-INIT (arm-D precedent) -> s == 0 at init, Q init == D
init exactly.
- PLUMBING FINDING + Fix 2 (apply_quest_fix2.py): the first
smoke died with KeyError — the training preprocessor DROPS
unknown per-sample keys, so batch["skill_codes"] never
reaches forward. probe_batch_keys.py proved episode_index /
frame_index DO reach forward as [B] tensors. Codes now
travel via a model-side table: SERAVLAV3Model
.quest_codes_for(batch) lazy-loads codes_all.npy and looks
up (episode_index, frame_index). train_q.py's getitem patch
is retired; arm Q trains through the standard train_v4.py.
- check_quest.py ALL PASSED: [0] defaults-off decomposition
exact (diff 1.4e-08); [4] FM on == FM off at init (diff
0.00); [4b] table codes == precomputed codes; [1] lambda
decomposition exact (resid -5.1e-08); [2] grads reach prior
(max 3.9e-03) + skill_embed (0.059), skill_film grad 0.0 at
init (expected: s == 0; wakes as embed/pos learn), tips
grads all None; [3] predict greedy codes deterministic,
chunk [B,16,7]. Prior NLL @init 7.2524, acc 0.0000.
- SMOKE (30 steps, real pipeline): loss 2.708, FM 2.622,
prior_nll 7.157, prior_acc 0.003, prior_term 0.072 at
lambda 0.01 -> INSIDE the SPEC band [0.02, 0.09] (~2.7% of
FM). LAMBDA CONFIRMED 0.01, no correction. Speed 2.87
step/s -> 10k in ~58 min. Arm Q launched via run_arm_q.sh.
## Takeover — coordinator 8 (2026-11-18 ~19:23): E1 legs to verdict
- State at takeover (direct check 19:22): training ALIVE (PID
846402, since 18:30), step 8708/10000 = 87.1%, 2.85 step/s,
ETA ~19:30; eval_loss 0.9147 @2k -> 0.7402 @4k -> 0.5230 @6k
-> 0.4761 @8k; prior_term ~0.059 in band. Checkpoints
001000-008000 + last. GPU 100%, VRAM 5427 MiB, disk 542 GB
free. Tokenizer DONE + PASSED (see above). No chain waiter
seen.
- GAP FOUND: as of 19:20 there were NO q-quest-*.json files in
measurement/results/ — the 2k/5k measurements never
materialised because measure_tokens.py / measure_rsa.py were
never written (SPEC'd only; measure_routing.py existed).
Recovery this session: both scripts written (local tools dir,
pushed to machine tools dir), following SPEC (a)/(c) exactly:
encoder-side 200 windows/task seed 7 + prior-side greedy codes
on the 3,840-obs cache; RSA = Spearman(JS token, 1-Jaccard
verb+object) over 780 pairs, CPU-only.
- PRIOR SMOKE (ckpt 002000, 8 obs, before launching tokens-2k):
last_router_input set (8, 1536) by encode_observation; greedy
codes deterministic across two calls; codes [B,8] in range.
FINDING to quantify, not a blocker: first window's greedy codes
were all 659 at all 8 positions. Code 659 is NOT the marginal
mode (share 0.1% in codes_all.npy; encoder windows are diverse,
e.g. ep0 frame 0 = [257,659,707,554,592,754,868,666]; most
frequent code 0 at 68.0% is the zero-padding of codes_all).
So the 2k prior predicts a single attractor code for that
window — prior-side utilization/perplexity per milestone will
measure whether this persists or the prior diversifies by 10k.
- Jobs launched (parallel, batch 8, detached): routing-2k
~19:24 (PID 3665801; obs 2560/3840 at 19:29); tokens-2k
~19:29 (PID 3769904; encoder side done, prior side started).
The tokens-2k launch exec was interrupted by a service restart
mid-call — verified on the machine that the job DID start
(no duplicate launch). Training at 9374/10000 at 19:29:44,
ETA ~19:33. 5k/10k measurements run after training finishes
(free GPU); timing documented honestly — checkpoints intact,
no milestone skipped.
- 2k MEASUREMENTS DONE (~19:35, recovered in parallel):
routing q-quest-2000.json — block 0: task_cos 0.7583,
phase_cos 0.785, eff 4.41, dead [3], routed_energy 0.3116;
block 1: 0.8182 / 0.765 / 5.02 / no dead / 0.3675; block 2:
0.7666 / 0.6693 / 6.78 / no dead / 0.2432; block 3: 0.9305 /
0.9543 / 7.50 / dead [2] / 0.0879. Mean task_cos 0.8184
(2k only; anatomy, no gate applies to Q). Block 3 vestigial
as in all arms; block 0 already has a dead expert at 2k.
tokens q-quest-tokens-2000.json — PRIOR-side: cross_task_js
0.5487, cross_phase_js 0.5988, utilization 0.205 (205/1000),
perplexity 54.2. (Encoder-side + full numbers in the JSON;
prior-side utilization is the live prior, far below the
frozen encoder's 99.9% — the 659-attractor smoke finding is
consistent with a still-narrow prior at 2k, to be tracked
at 5k/10k.)
- Chain chain_e1.sh launched detached ~19:34 (waits for
training PID 846402, then routing/tokens 5k+10k batch 32,
RSA per milestone, 70-ep probe, composition Z; stops after
Z — demos + F need the scripted-oracle builder, written
while the chain runs). Training at 9957/10000 at 19:38:28,
checkpoint 009000 saved; 010000 follows on exit.
- TRAINING DONE 19:39:03 — 10,000/10,000, eval_loss @10k =
0.4334 (trajectory 0.9147 @2k -> 0.7402 @4k -> 0.5230 @6k
-> 0.4761 @8k -> 0.4334 @10k). Checkpoint 010000 saved.
Chain now on routing-5k. GPU free (0%, 15 MiB).
- PAIRED CONTROL LEG G-Z (approved by Young 2026-11-18 20:26,
AFTER the watchdog's 20:20 warning that chain_e1.sh stops
after Z with no F waiter): composition Z for arm G@10k
(sera-v4-g-mi, MI routing loss, cosine 0.7285 @10k) run with
EXACTLY Q's Z protocol — rollout_skill_v4.py, tasks
{1,3,4,6,7,8}, eps 0..9 = 60 ep, seed 0, checkpoint
sera-v4-g-mi/checkpoints/010000, everything frozen, no
fine-tuning. Purpose: a PAIRED CONTROL for interpreting Q's
Z, NOT a new gate; no E1 threshold changes. Sequencing per
Young's order: G-Z starts the moment Q-Z finishes (GPU must
not idle), BEFORE any F training; the oracle-demo builder
keeps being debugged in parallel. Waiter chain_gz.sh
launched detached 20:28 (trigger: q-quest-comp-z.jsonl >= 60
rows AND the Q-Z rollout process gone / CHAIN_E1_END in
chain_e1.log). Output: quest_probe/results/g-mi-comp-z.jsonl.
Q-Z at waiter launch: 38/60, 0 successes.
- F LEG STATUS at 20:28 (answers the 20:20 watchdog): the
demo builder build_oracle_demos.py is written and in dry-run
debugging — 7 dry runs on task 1, 0 verified demos so far.
Two failure modes, both measured: (a) the drawer handle
grasp — the handle bar sits in front of the cabinet's
vertical plate g9; fixes applied in sequence: grasp the
handle bar (geom-probed relpos) instead of the drawer body
centre, yaw the gripper 90 deg so the fingers separate in X
(clears g9; rotate_yaw verified, achieved 1.53/1.57 rad),
y-offset -0.015 to clear the cabinet frame's front face; the
EE still stalls ~5 cm above the bar and the gripper closes
on air (qpos +-0.001 = fully closed, nothing gripped).
(b) the bowl pick — the PD move creeps in Z; an action floor
fixed the timeouts, but the gripper still closes on air
(qpos +-0.001, bowl z unmoved at lift). Debugging
continues; the real demo build starts only when a dry run
verifies, then the prior-only fine-tune (500 updates, eff
batch 32, lr 5e-5) and the F rollout follow. The fine-tune
script is not yet written. F is therefore BLOCKED on the
demo builder, not on GPU availability; G-Z (above) fills
the GPU in the meantime, per Young's resequencing.
- Q-Z DONE ~20:35 — 0/60 (quest_probe/results/
q-quest-comp-z.jsonl, 60 rows). Below the PASS-REUSE gate
(>= 5/60); the E1 verdict now hinges on variant F (PARTIAL
if F >= 10/60) plus the two diagnostic legs below.
- G-Z DONE 21:00 — 0/60 (quest_probe/results/
g-mi-comp-z.jsonl, 60 rows, 0 successes on every task
{1,3,4,6,7,8}). PAIRED CONTROL, same protocol as Q-Z:
Q-Z 0/60 vs G-Z 0/60 — IDENTICAL. The zero-shot composition
failure is therefore NOT specific to the QueST token graft:
the strongest-routing MoE arm (G, cosine 0.7285 @10k) also
composes nothing zero-shot. (Checkpoint-load warning
"Missing key(s) model.skill_prior.*" when loading G is
expected — G has no quest graft.)
- S0 DIAGNOSTIC LEG (Young 2026-11-18 20:53, runs after G-Z,
BEFORE F): 70-ep probe (eval_v4.py protocol, seed 0) on
Q@10k with the token pathway OFF at inference — skill
summary s := 0 forced by monkeypatch (eval_v4_s0.py;
h += 0, skill FiLM computed from s = 0; prior still decodes,
checkpoint untouched, nothing retrained). Output:
quest_probe/results/q-quest-probe-s0.jsonl. Pre-registered
reading: s0 >= 4/70 => the prior is the inference-side
culprit and the policy is intact (rescue = tune the prior);
s0 <= 1/70 => the policy co-adapted to the true tokens in
training (answer leakage), this checkpoint cannot be rescued
at inference and a retrain with token dropout is required.
Waiter chain_s0.sh fired the probe at 21:00:00, the moment
G-Z completed (no GPU idle); banner "S0 PATCH ACTIVE"
verified in s0_probe.log. RESULT: pending (see below).
- DEMO BUILDER, progress since 20:28 (dry runs 8-12, task 1):
the bowl pick/place NOW WORKS — BDDL atom 'on
akita_black_bowl_1 plate_1' verified True in dry runs 8, 9
and 12 (the 20:28 note that the pick closes on air is
superseded; the action floor + exact object position fixed
it). The DRAWER grasp is still unsolved after 12 dry runs.
AABB probe 11 (debug_aabb.py) measured the true geometry:
the handle is a horizontal bar along world X (AABB
x [-0.050, 0.039], y [-0.216, -0.201], z [1.081, 1.097]),
mounted 0.014 in front of the cabinet face. Three grasp
strategies measured and ruled out: (a) fingers closing in Y
onto the bar's front/back faces — the back finger (0.028
thick) cannot fit the 0.014 gap behind the bar, and the
cabinet's horizontal plate g9 (z [1.125, 1.128], y <= -0.230)
blocks its descend (EE stalls at z=1.137); (b) yawed fingers
straddling the bar's ENDS in X — the bar (0.089 long) is
longer than the open finger span allows to clear, finger1
rests on the bar's right end and the EE stalls at z=1.109
with the pads 0.005 above the bar (pads are the only real
colliders: finger*_collision contype=0, pads contype=1);
(c) default orientation + x-offset +0.03 (clears the drawer
front plates g11/g12 at x ~ -0.012) — still stalls at
z=1.137 on g9. Next candidates: grip the drawer front
plates' top edge (z ~ 1.196, above g9) with yawed fingers,
or a pitch-hook grasp of the bar. Microwave (3,6,8), white
cabinet (4) and stove (7) dry runs come first to bank the
easier tasks. F remains BLOCKED on verified demos.
- S0 PROBE (interim): 49/70 rows, 0 successes at 21:09 — on
track for the <= 1/70 branch (policy co-adapted to the true
tokens in training; not rescuable at inference). Final
number recorded when the probe completes.
- ==========================================================
ARM Q2 — sera-v4-q2-questfix (SPEC, locked 2026-11-18
21:09 by Young's direct order, BEFORE any code change)
==========================================================
Purpose (single): fix the train/test conditioning mismatch
diagnosed in Q — in training, s was computed from GT codes
of the very window being predicted (teacher forcing on the
CONDITION, i.e. answer leakage); at inference s comes from
the prior's own greedy codes (prior-side utilisation 20.5%
vs the encoder's 99.9%; cross-task JS 0.55). Result in Q:
probe 0/70, composition Z 0/60; s0 diagnostic (s := 0 at
inference) run to separate prior-blame from co-adaptation.
EVERYTHING else is identical to Q for an objective paired
comparison: D-skillroute base, init_quest init, seed 42,
same data order, 10,000 micro-steps, batch 8 x accum 4,
LR 1e-4 -> 1e-5 (warmup 200, cosine), lambda_prior 0.01,
the same two token injection points (h += s pre-blocks;
skill FiLM post-blocks), tokenizer FROZEN and reused
as-is with the existing codes_all.npy (tokenizer PASSED:
utilisation 99.9%, held-out recon L1 0.1493 — NOT
retrained).
FIX 1 (main) — scheduled sampling on the conditioning
source: each training step, with probability p_gt the
summary s is computed from the GT codes; otherwise from
the prior's GREEDY codes decoded from last_router_input
— the exact context the prior sees at inference, no
future information. p_gt anneals LINEARLY 1.0 -> 0.0
over steps 0-3000; after step 3000 s always comes from
the prior greedy. The prior's NLL target stays the GT
codes, unchanged.
FIX 2 — token dropout: independently of Fix 1, each
SAMPLE with probability 0.15 has s := 0 forced, so the
policy retains a working no-token mode (anti-co-adaptation
to the token pathway).
Rationale for shipping both fixes in one arm (per Young's
"fix it properly" order): both target the SAME diagnosed
fault (train/test conditioning-distribution mismatch), one
by aligning the source distribution, the other by keeping
the s=0 mode in-distribution; a one-fix-at-a-time split
would spend two 10k arms on one diagnosis.
Implementation constraints: fixes active ONLY in the
training forward (train mode + grad enabled); eval-mode
forwards keep Q's exact GT conditioning (eval_loss stays
comparable); inference paths untouched; all new config
fields default OFF (v4_questfix_enabled etc.) so Q's
checkpoint and every other arm behave exactly as before.
SMOKE (mandatory before launch): (a) at p_gt = 1 the loss
decomposition matches Q's smoke (prior_term in
[0.02, 0.09]); (b) the prior-greedy conditioning path runs
and the generated codes show healthy utilisation on a
batch (no collapse to a single code); (c) the dropout
path runs. Launch only if all three pass.
QUEUE: launch IMMEDIATELY when the s0 probe finishes
(machine must not idle). After training: routing + token
+ RSA measurements at 2k/5k/10k with Q's exact protocol;
70-ep probe (eval_v4.py, seed 0); composition Z 60 ep
(rollout_skill_v4.py, tasks {1,3,4,6,7,8}, seed 0).
PRE-REGISTERED READING OF THE RESULTS: probe Q2 >= 5/70
= recovered to D's level (Q was 0/70); Z >= 5/60 =
PASS-REUSE (same gate as Q); below those = FAIL again.
The E1 verdict must end with a paired Q vs Q2 table.
Demo builder for F continues in parallel; F's target
checkpoint = the better probe of {Q, Q2} (tie -> Q2),
decided once both probes exist.
- S0 PROBE FINAL (21:0x): 0/70 (quest_probe/results/
q-quest-probe-s0.jsonl, all 7 tasks 0/10). Pre-registered
reading: s0 <= 1/70 => the policy CO-ADAPTED to the true
tokens during training (the conditioning carried the
answer); zeroing the tokens at inference changes nothing
(0/70 with prior tokens, 0/70 without) because the policy
never learned to act from its own context. Q's checkpoint
is NOT rescuable at inference — the fix must be in
training. This is the diagnosis arm Q2 (below) addresses.
- Q2 SMOKE (check_questfix.py) — ALL PASS, 21:13:
[+] fix OFF: decomposition exact (diff 1.3e-07), no
questfix metrics — Q behaviour preserved bit-for-bit.
[a] p_gt=1, dropout=0: total 3.7459, FM 3.6570, prior_nll
7.2217, prior_term 0.0722 in [0.02, 0.09]; decomp diff
7.7e-09; src_prior 0.0 (GT source, as required).
[b] p_gt=0: prior-greedy conditioning path runs; 128
conditioning codes, 77 unique, max share 0.05 — no
collapse at init.
[c] dropout=1.0: drop_frac 1.0 and the summary is exactly
0; dropout=0.15: per-forward drop_fracs 0.00-0.25 on
batch 8, consistent with p=0.15.
(Absolute FM/total differ from Q's old smoke because the
synthetic batch differs slightly; the asserted quantities
are the decomposition and prior_term, which match.)
- Q2 LAUNCHED 21:16:24 (chain_q2.sh fired the moment the s0
probe completed + smoke marker present; zero GPU idle).
Live-verified from the training log: questfix_p_gt anneals
exactly on schedule (0.985 @step ~45 -> 0.875 @step ~375,
= 1 - step/3000), questfix_src_prior appears as p_gt drops
(0.1-0.2 of logged windows), questfix_drop_frac ~0.14-0.16.
Progress 382/10000 (3.8%) at 21:19, 2.81 step/s, ETA ~22:15.
chain_q2.sh will then run measurements 2k/5k/10k + probe
+ Z automatically.
- ==========================================================
CAMPAIGN FRAME CHANGE (Young's order 2026-11-18 21:16)
==========================================================
- The rented train machine is available only until
~21:16 on 2026-11-19 (24 h). All plans must close inside
this window; reserve the last hour for eval + verdict;
NO new training launch after 20:00 on 19/11.
- CAMPAIGN GOAL: a PASS signal on the zero-shot
composition test (Z >= 5/60, the registered gate).
- NEW RULE: only methods with proven scientific evidence
(published numbers, or this program's own measurements).
No blind trials. Q2 (scheduled sampling + token dropout)
meets the standard and proceeds as ordered.
- CYCLE: train -> eval immediately -> next leg decided by
numbers + research. The machine must not idle in the
24 h.
- AFTER Q2: a LONG RUN is prepared (run_arm_long.sh):
60,000 micro-steps, checkpoints every 10k, measurements
at 20k/40k/60k, probe + Z at 60k; LR peak 1e-4, warmup
500, cosine -> 1e-5 @60k. Recipe slot awaits Young's
final order; DEFAULT = the recipe of the arm with the
best probe after Q2 (Q2 wins -> Q2-design; Q2 ~0 -> G
recipe). SELF-LAUNCH RULE: if the Q2 probe has been done
for > 15 min with no final order, the waiter
chain_autolong.sh launches the long run automatically
(recipe by the default rule above: Q2 probe > G's 7/70
-> q2, else g — the branch Young's order names) once
chain_q2 ends and the GPU is free, and logs the choice
+ numbers in chain_autolong.log +
quest_probe/LONG_AUTOLAUNCHED. chain_long.sh then runs
the 20k/40k/60k measurements + 60k probe + Z.
- F (few-shot) is DEFERRED until after the long run —
budget priority to the zero-shot PASS goal. The demo
builder pauses in its current state (pick/place physical
path verified intermittently; drawer grasp unsolved —
full geometric evidence in the entries above; an
oracle-actuated redesign was in progress and is parked).
Timeline sketch (for planning): Q2 train done ~22:15
18/11; Q2 measurements + probe + Z done ~23:35; long run
~23:40 -> ~05:40 19/11; its measurements + probe + Z done
~07:30 19/11; remaining budget on 19/11 for at most one
further evidence-backed leg + the final eval/verdict hour.
- ==========================================================
DATA V2 — segmented-instruction dataset (SPEC, locked
2026-11-18 ~21:45 by coordinator 9 under Young's 21:24
order, BEFORE any build)
==========================================================
EVIDENCE BASE: AC-VLA (arXiv:2607.15714) — sub-task
instruction decomposition trained MIXED with the original
instruction gives +28.7/+26.7 OOD on LIBERO; training on
sub-tasks ONLY collapses in-distribution 97.4 -> 61.4, so
MIXING IS MANDATORY. RAIN / LIBERO-Analogy, measured on
our exact 40 train tasks: RAIN Compose 31.0% vs pi0.5
10.7% vs SmolVLA 0.0% — a specialised data mechanism beats
raw budget; RAIN's segment-level ablation (RRS) is worth
+28.1 points. This is the strongest evidence-backed data
lever available inside the 24 h window.
SEGMENT MAP (built first; shared by components 2 and 3):
- Source: lerobot/libero v3.0 snapshot a1aaacb7 (same as
every arm); columns episode_index / frame_index /
task_index / action.
- Segmentation: gripper channel action[6]; a boundary is
a gripper-command sign change that persists >= 3 frames
(debounce). Segments are the intervals between
consecutive boundaries; the tail after the last boundary
merges into the last segment; an episode with no
boundary is a single segment. Segment k ends at
boundary k (the closing frame belongs to the segment it
completes).
- Typing: per-task ordered sub-goal list, hand-written
from the 40 instructions and verified against the full
list at build time. A segment ending gripper-CLOSED
takes the current sub-goal's grasp phrase; a segment
ending gripper-OPEN takes its release phrase and
advances the sub-goal pointer; overflow segments take
the last release phrase. put/pick-place sub-goals:
grasp = "pick up the X" (full qualified noun phrase),
release = the original clause with "it" resolved.
open/close/turn/push sub-goals: both sides = the
sub-goal clause itself.
- Split discipline: TRAIN episodes only, split replicated
exactly from factory.py (per task, last ceil(0.1*n)
episodes held out). Eval episodes never enter
components 2/3.
- Output: quest_probe/segment_map.npz + JSON summary:
per train episode the boundaries and per-segment
(start, end, type, sub_instruction); per-frame segment
lookup for every train frame.
COMPONENTS (DATA V2):
1. Anchor: original episodes + original instructions —
base samples unchanged.
2. AC-VLA mix: on base samples, a deterministic
hash(episode, frame) coin flip at 50% replaces the
task text with the sub-instruction of the segment
containing the anchor frame (full episode, unclamped
chunk — the AC-VLA recipe).
3. Segment units (the breakthrough component): virtual
samples appended to the training index space. Anchors
= every frame of every segment of every train
episode, deterministically subsampled by
hash(episode, frame) at rate 1/2, so segment samples
are ~1/3 of the extended epoch. Each segment sample:
the base item at that anchor, task text = the
segment's sub-instruction, action chunk CLAMPED at
the segment end — tail steps repeat the last
in-segment action and action_is_pad is set True
beyond the end, exactly the dataset's own episode-end
semantics (the FM loss already masks padded steps,
modeling_base.py:554). Observation = the anchor's
real frame and its real in-episode history: the
segment's real initial state, NO cross-episode state
splicing (true RAIN-style state splicing is
explicitly NOT done — unverified, deferred).
Extended-epoch mixture: ~1/3 original-text
full-episode, ~1/3 sub-text full-episode, ~1/3
segment units.
INJECTION (least invasive; precedents: train_q.py's
former __getitem__ patch, the model-side code table):
- New entry tools/train_datav2.py: registers the v3
processor module, then monkeypatches
lerobot_train.make_dataloaders — call the original,
then swap the TRAIN DataLoader's dataset for a wrapper
(base items + virtual segment indices) and its sampler
for a TaskBalancedSampler over the extended task-index
array (base task_index values + segment anchors'
task_index). Both init configs set
task_balanced_sampling=true, so sampler semantics
(per-task round-robin) are preserved; the epoch simply
grows by the segment-anchor count. Eval dataloader
untouched. Gated by env SERA_DATAV2=1; without it the
entry behaves exactly like train_v4.py.
- run_arm_long.sh gains an optional second argument
`datav2` (entry + env); the run name stays
sera-v4-long-<recipe> so chain_autolong's stand-down
check still fires, and the plain path is untouched.
chain_long.sh unchanged (it measures/probes whatever
checkpoint the run produced).
VERIFICATION (mandatory before any launch decision):
segments/episode distribution; segment length
distribution (frames); unit counts by sub-skill type
(pick/place/open/close/turn_on/push); spot-check 10
random train episodes with boundaries printed against
the gripper trace and sub-instructions checked for
grammar + object correctness; 40-task parse table
eyeballed in full; a 30-step smoke on the datav2 entry
dumping sampled task texts (all three components
present in roughly the registered proportions) and
confirming action_is_pad tails on segment samples.
OVERRIDE DISCIPLINE (unchanged): if DATA V2 is built +
verified before the autolong waiter fires, launch the
long run UPGRADED (recipe by the standing rule) and log
the variant here + in chain_autolong.log; otherwise the
waiter launches the plain run — the machine never idles.
- DATA V2 SEGMENT MAP — BUILT + VERIFIED (2026-11-18 ~21:50,
build_segment_map.py, output quest_probe/segment_map.npz):
gripper channel is exactly {-1, +1}; every episode starts
open (-1) and the first debounced transition goes into
closed in 1439/1439 episodes that have one — the typing
assumption holds universally. Split replicated from
factory: 1506 train / 187 eval episodes.
- 3,524 segments over 1,506 train episodes (~2.34/ep).
Segments/episode: 1 -> 145, 2 -> 1047, 3 -> 25,
4 -> 262, 5 -> 2, 6 -> 24, 8 -> 1 (2 = the single-object
pick+place majority; 4 = two-object LIBERO-10; 1 = the
push/turn/open tasks and grasp-and-hold endings).
- Segment length (frames @10fps): min 4, p25 48,
median 63, p75 85, max 281, mean 69.5.
- Segments by type: pick 1665, place 1597, turn_on 127,
open 102, push 29, close 4 (microwave/drawer closing is
usually a push with no gripper transition, so the tail
merges into the place segment — the map follows the
gripper signal honestly).
- Component-3 anchors after the 1/2 hash subsample:
122,050 vs ~243k base train frames -> segment samples
are 33.4% of the extended epoch, as SPEC'd. Unique
sub-instruction phrases: 64.
- SPOT-CHECK (10 random train episodes, boundaries vs
the raw gripper run-length trace): every boundary
lands exactly on the trace's switch frame; phrases are
grammatical and object-correct in all 10, including
the qualified Spatial noun phrases. One re-grasp
episode (EP 1125, task 23) is typed pick/place/pick/
place with the same sub-goal — the retry is labelled
correctly by construction. VERDICT: map verified,
cleared for the injection build.
- DATA V2 INJECTION — BUILT + CPU-VERIFIED (2026-11-18
~22:05, coordinator 9): tools/train_datav2.py (env-gated
monkeypatch of make_dataloaders; train DataLoader rebuilt
around DataV2Wrapper + TaskBalancedSampler over the
extended task-index array; eval loader untouched) and
run_arm_long.sh gains the optional `datav2` second
argument (entry swap + SERA_DATAV2=1; run name unchanged;
plain path untouched).
- check_datav2.py ALL PASSED on the real train split:
extended length 242,982 + 122,050 = 365,032; base text
mix ~50/50 (69/51 on 120 draws by text equality; the
decision-exact proportion comes from the debug dump in
the GPU smoke); 120 segment items carry exactly their
anchor's phrase and, for the 31 with an in-chunk
segment end, action_is_pad is True beyond the end with
the action tail repeating the last in-segment action;
sampler virtual share 0.328 in 6,000 draws; 25 real
2-worker DataLoader batches collate with all three
components present.
- BUG CAUGHT BY THE CHECK (would have broken training):
the wrapper's __getattr__ delegation leaked the base
dataset's batched __getitems__ to PyTorch's fetcher,
which then fed extended indices straight into the base
reader (IndexError at key 297338 > 242,982). Fixed by
defining __getitems__ on the wrapper (base indices ->
base batch fetch + text swap; virtual indices ->
__getitem__) and by refusing to delegate dunder/private
names. Re-check after the fix: ALL PASSED.
- Remaining verification: 30-step GPU smoke through the
real patched entry (loss flow + SERA_DATAV2_DEBUG dump
of sampled kinds), scheduled in the slot after Q2
training ends (during chain_q2's Z leg; VRAM headroom
is sufficient then). The upgraded long run launches
only if that smoke passes; otherwise the plain
autolaunch proceeds — machine never idles.
## DATA V2 GPU SMOKE — PASS (2026-11-18 ~22:25, coordinator 10)
- Q2 training DONE 22:18: 10,000/10,000, eval_loss @10k = 0.4735.
chain_q2 moved on to the 2k/5k/10k measurements.
- Smoke: 30 steps through the REAL long-run launcher (on-machine
copy of run_arm_long.sh with --steps 60000->30, run name
smoke-datav2-gpu, SERA_DATAV2_DEBUG=1), recipe g branch,
launched right after Q2 training ended (measurement leg in
parallel; VRAM peaked ~9.5 GB, no contention issue).
- [DATAV2] train dataset extended: 242982 base + 122050 segment
anchors = 365032 samples/epoch — exactly as SPEC'd.
- Debug dump of sampled kinds (n=376): segment 0.335,
base_sub 0.311, base_orig 0.354. Segment share matches the
33.4% SPEC; base text mix ~50/50 within noise.
- Losses finite at every logged step; total loss 7.69 -> 2.50
over the 30 steps; "End of training" reached. Scratch output
removed afterwards.
- VERDICT: SMOKE PASS. The datav2 long run is cleared to launch
as soon as the Q2 probe fixes the recipe branch
(probe > 7/70 -> q2 design, else G recipe).
- Process note: a first smoke attempt failed at argparse on a
hand-copied --policy.dual_mode flag taken from the LOCAL tools
mirror; the on-machine config has no dual_mode field (init
configs already carry training_stage=joint) and the on-machine
launcher does not pass it. All later commands were built from
on-machine files only.
## Q2 PROBE + LONG RUN LAUNCH (2026-11-18 ~23:10, coordinator 10)
- Q2 probe (70 ep, seed 0): 9/70 — best probe of the v4 program
(D 5/70, F1 7/70, G 7/70, Q 0/70). The questfix recovered the
token pathway: Q 0/70 -> Q2 9/70 with near-identical token
statistics (prior util 0.389, cross-task JS 0.608, RSA rho
0.306 vs Q's 0.389 / 0.606 / 0.333) — the fix lives in the
conditioning distribution the policy trains under, not in
the tokens themselves.
- Recipe rule applied: probe 9/70 > 7/70 -> q2 design.
- LONG RUN LAUNCHED 23:09: sera-v4-long-q2, 60,000 steps,
DATA V2 variant (run_arm_long.sh q2 datav2, SERA_DATAV2=1),
chain_long.sh q2 launched alongside. chain_q2 was still in
its Z leg at launch (combined VRAM 7.6 GB, no contention);
the autolong waiter stands down because the run dir exists.
- ETA: training done ~05:20-06:20 19/11 (rate recovers once
the Z leg ends), then chain_long measures 20k/40k/60k and
runs probe + Z at 60k.
- Q2 comp-Z DONE 00:03 19/11: 0/60 (all six tasks 0/10).
Paired with Q-Z 0/60 and G-Z 0/60: at 10k budget every arm
composes zero-shot at 0; Q2's gain is confined to seen-task
behavior (probe 9/70). The composition question now rests
entirely on the 60k long run. Waiter stood down 00:03:52
as designed; long-run rate recovered to 2.79 step/s once
the Z leg ended (ETA ~05:25).
## QUICK-Z @10K LONG RUN + OVERNIGHT GUARD (2026-11-19 ~02:00)
Quick-Z (Young's order 00:59) on sera-v4-long-q2 checkpoint 010000,
eps 0-4 x 6 tasks = 30 ep, run parallel with training (no OOM;
train rate dipped to ~1.97 step/s during the rollout, recovered):
- success 0/30 - atoms 3/60
- first-fail: atom1 27 - atom2 3 - success 0
- first-fail verbs: close 17 - open 10 - on 3
- per-task atoms: task 3 = 3/10; tasks 1,4,6,7,8 = 0/10
Paired controls (eps 0-4 slices of the full 60-ep files, computed
once): Q 0/30 atoms 4/60 - G 0/30 atoms 5/60 - Q2 0/30 atoms 5/60.
CORRECTION: an interim note claimed earlier Z runs had 0 atoms on
this slice - wrong; the controls hold 4-5/60. The 10k long-run
checkpoint (3/60) is BELOW the 10k-budget controls on atoms: no
positive signal yet. Per the pre-agreed read, a 10k checkpoint on
a 60k cosine schedule is early (LR still high); the 20k-50k quick-Z
trend decides the DATA V2 read.
Validation: eval_loss @20000 = 0.4204 (train log 01:27:23).
Overnight guard (Young 01:25): resume_long_q2.sh prepared
(--resume=true from the newest complete checkpoint, mirrors the
original q2+datav2 invocation; fallback outdir mode) and
guard_long_q2.sh armed 01:28:55 - 60 s watch, auto-resume on
death, unlimited retries. No incidents so far.
## QUICK-Z @20K LONG RUN (2026-11-19 ~03:05)
Checkpoint 020000, same 30-ep quick protocol:
- success 0/30 - atoms 6/60
- first-fail: atom1 24 - atom2 6 - success 0
- first-fail verbs: open 10 - on 5 - close 15
- per-task atoms: task 3 = 5/10, task 4 = 1/10, rest 0/10
Trend (atoms/60, paired eps 0-4): controls Q 4 - G 5 - Q2 5;
long-run @10k 3; long-run @20k 6. First long-run checkpoint above
the 10k-budget control band on atoms, and episodes clearing
atom 1 rose 3 -> 6. Still 0 successes: a mild positive signal
only; the 30k-60k trend and the full 60-ep Z at 60k (gate
>= 5/60 successes) decide. Guard: no incidents.
## SERA-VLA-V4_1 — SPEC (2026-11-19 ~02:55, Young's order 02:52; full SPEC: ~/workspace/research_notes/sera-vla-v4_1-spec.md)
Paired ablation FM head vs AR-token head. v4_1 = sera-v4-long-q2 with
EVERYTHING held fixed (frozen TIPSv2 trunk + Fusion, DATA V2 via
train_datav2.py, MoE skillroute D routers, quest token conditioning +
questfix, seed 42, same data order, 60,000 micro-steps, batch 8 x
accum 4, AdamW LR peak 1e-4, warmup 500, cosine -> 1e-5, bf16,
checkpoints every 10k). ONLY the action head changes:
- DROP: Flow Matching (velocity loss, timestep embedding, Euler
integration at inference).
- ADD: autoregressive head over ActionCodec2 tokens (arXiv:2611.15490,
official repo, Apache-2.0). Tokenizer: first-order EEF, fit on
lerobot/libero TRAIN-split actions at native fps 10; tolerances
5 mm translation / 0.02 rad rotation, binary gripper, Set-BPE
vocab 4,096. Stored LIBERO commands convert to physical units by
x0.05 m (translation) / x0.5 rad (rotation); gripper stored
-1=open / +1=closed maps to codec open-command (1-g)/2.
- Head: causal transformer decoder, cross-attention to the trunk
context (mirrors the FM stack depth: 4 blocks), FFN = the existing
MoE skillroute (same 4 routers from encode_observation, Top-4 of 8
SwiGLU experts + shared expert), skill-token injection at the same
2 points as the FM head (add to token embeddings pre-blocks; FiLM
post-stack, after the goal FiLM). Loss = CE(next token, pad mask)
+ 0.01 balance + 0.0002 specialization + 0.01 x prior_NLL (quest).
- Targets: per (episode, frame), the ActionCodec2 token stream of
the 16-step action window starting at that frame. Two variants are
precomputed (base: window clamped at episode end; segment: window
clamped at the DATA V2 segment end); the training forward picks
the variant whose clamping matches the batch item's action_is_pad
pattern, so DATA V2 segment samples get segment-pure targets.
Teacher forcing with BOS/EOS/PAD specials outside the codec vocab.
- Inference: greedy token decode -> official ActionCodec2 decode
(fps 10) -> physical actions -> inverse command scaling ->
MEAN_STD normalization (the space predict_action_chunk returns).
Harness still executes 4 steps / replan (comparability). Extra
measurements at 60k: first-action latency + per-replan time
(FM reference: replan p50 84-86 ms on v2/v3).
- Pre-registered paired eval: quick-Z 30 ep (6 tasks x eps 0-4,
seed 0) at EVERY 10k checkpoint, run in parallel; at 60k: probe
70 ep + full Z 60 ep + routing measurement (cosine / effective
experts / dead experts — the sera-v4 MoE conclusions were all
measured under FM and do NOT transfer; re-measure under CE) +
latency. Trend table v4_1 vs long-q2 at 10/20/30/40/50k.
- Tokenizer verification before any training: round-trip on the
eval split — per-step increment error + composed-pose drift
(paper's LIBERO marks: drift < 5 mm, replay success 97%).
- Launch rule (Young, pre-approved): v4_1 60k starts IMMEDIATELY
when the long run's training process exits, in parallel with the
long run's eval chain. No new approval needed.
- Out of scope for v1: ActionCodec2 second order; closed-loop q_t
feedback inside the chunk (paper D.5) — v4_1.1 candidates only.
Implementation notes (choices made under this SPEC, 2026-11-19):
- The released paper artifact bundles EEF + joint profiles in one
8,192-id space (EEF ids offset by 4,096). Our fitted artifact is
used through the same AutoProcessor path; the token map stores
EEF ids remapped to [0, 4096) and the policy adds the offset back
before decode (offset verified empirically after fit).
- The official frontend exposes decode() over a full token stream
(its streaming semantics emit steps as token slots complete);
there is no incremental decoder class in the frontend package.
v4_1 therefore greedy-generates the full stream, then calls the
official decode() once per replan — the streaming latency claim
is measured, not assumed (see 60k latency measurements).
## v4_1 stage 3 — tokenizer verification on home data (2026-11-19 ~03:0x)
Round-trip on the EVAL split (episode-level, check_acodec2_roundtrip.py):
per-step increment error translation mean 5.3 mm / p95 9.1 mm (max-axis);
rotation final drift p95 0.016 rad (bounded at the 0.02 design tolerance);
gripper step agreement 99.3%; length preserved 187/187 episodes.
Window-level (check_acodec2_windowdrift.py, 2,239 eval windows of 16
frames — the operationally relevant unit): end-of-window position error
mean 5.9 mm / p50 5.8 / p95 9.8 / max 12.8 mm; rotation error mean
0.011 rad / p95 0.020 rad; 37% of windows within 5 mm position, 95%
within 0.02 rad rotation. The excess over the paper's 5 mm mark is
attributed to the official 10->15->10 Hz resampling round-trip (the
paper resampled its data once to a fixed 20 Hz; the SPEC locks native
fps 10 — kept, documented). Full-episode composed-position drift has a
heavy tail (mean final 38.7 mm) — DIAGNOSED as an invalid metric for
this dataset, not a tokenizer defect: stored actions are OSC commands
under contact whose cumulative sums reach ±3 m per axis while the
codec clips its internal position state to the profile box [-2, 2] m;
worst episodes concentrate in contact-heavy tasks 15/19/2.
Sim replay (replay_acodec2.py, paper's decisive metric): INVALID
testbed — the rank->init-state mapping does not reproduce demo initial
states (EEF mismatch 5-560 mm); the ORIGINAL demo action stream itself
only replays 3/24 successes, so the testbed cannot validate any
tokenizer. Paired read on the same init states: orig 3/24 vs decoded
0/24 (all 3 orig successes are task 15 push-plate, robust to init
variation). Replay line closed; verification stands on the increment/
window metrics above + the GT-token decode check in check_ar.py
(trans mean abs err 2.6 mm, rot 0.0051 rad, gripper exact 1.00).
## v4_1 stage 4 — AR head patch (2026-11-19 ~03:1x-03:3x)
apply_ar_patch.py (config-gated, v4_ar_enabled default False =
byte-identical FM behavior): config fields v4_ar_enabled /
v4_ar_vocab=4096 / v4_ar_max_len=96; ARMoEBlock (causal twin of
MoEBlock: causal self-attn + cross-attn to trunk context + shared
SwiGLU(1344) + Top-4 of 8 SwiGLU(672) experts, per-sample routing
from encode_observation); model adds ar_embed(4099, PAD=4096 /
BOS=4097 / EOS=4098), ar_pos, 4x ARMoEBlock, ar_head; two skill-token
injection points mirroring velocity_prediction (skill summary added
to input embeddings; goal FiLM + skill FiLM after the stack);
acodec2_tokens_for picks the base vs segment target variant by
matching the batch item's non-pad count; policy forward with the
flag on computes CE(sum/pad-count) + 0.01 balance + 0.0002
specialization + quest prior-NLL tail (questfix scheduled sampling
applies to the prior exactly as in Q2); FM loss/timestep/Euler are
not touched when the flag is off and not used when it is on.
Inference: grammar-constrained greedy decode
(codec.grammar(16, fps=10).next_token_mask — measured <=0.01 ms/call)
-> official streaming decoder -> [B,16,7] normalized chunk, policy
interface unchanged. New AR parameters: 53,971,971 (~54.0M).
init_ar built (= init_quest + fresh AR tensors, seed 1234; shared
tensors bitwise from init_quest).
⚠️ LANDMINE FOUND (pre-existing, program-wide): the on-disk text of
modeling_sera_vla_v3.py and the executed bytecode DIVERGE on naming.
Executed code (and every running process) uses goal_mode /
goal_router_scale config fields and goal / goal_deltas / goal_action
module attributes; checkpoints store dual_* names behind a remap;
the file TEXT carries dual_* identifiers in places, with mtime+size
preserved across rewrites (goal<->dual are equal-length), so the
stale-but-correct pyc stays "valid". All v4 results to date were
produced by the goal_* bytecode. The AR code was made naming-agnostic
(getattr tries both) and the text was normalized where touched;
anyone editing this module must verify against inspect.getsource /
disassembly, NOT the raw text, and must expect AttributeError traps.
Also observed: the file's AR section was rewritten once by another
writer into a variant structure (_acodec2_load / inline decode
loading) during this session — repairs were applied as
repair_ar_consistency.py + small targeted fixes; check_ar.py is the
arbiter (ALL PASS).
## v4_1 stage 5 — GPU smoke (2026-11-19 ~03:35)
check_ar.py ALL PASS: (off) FM loss decomposition diff 1.5e-07, FM
predict intact; (a) token variant selection exact vs map; (b) AR
forward decomposition diff 6.9e-07, CE finite, grads reach ar_head;
(c) grammar-constrained predict -> [2,16,7] finite; GT-token decode
vs stored actions: trans 2.6 mm, rot 0.0051 rad, gripper 1.00.
CE CALIBRATION (for the record): CE at random init = 8.2282
(uniform over 4099 classes = ln 4099 = 8.319; the head starts
near-uniform). Total loss at init 8.3174 = CE 8.2282 + balance
0.01x~1.3 + specialization 0.0002x~0.07 + prior term 0.0725. CE is
~99% of the total — no re-weighting per SPEC (CE weight 1).
Trainer smoke (real launcher path, DATA V2, flag on, parallel with
the long run): 30/30 steps in 46 s, checkpoint saved; ar_ce
8.417/8.404/8.426 at LR~5e-6 (warmup 500 — flat as expected);
with warmup compressed to 5 and peak LR 1e-4: ar_ce 8.366 -> 8.221
-> 8.207 (decreasing). ar_tokens_mean 28.3 (map prediction 26.8);
router entropies 1.56-1.73 at init (no collapse); questfix active
(p_gt 0.992 @step 24 avg, drop_frac 0.100).
## v4_1 stage 6 — READY (2026-11-19 ~03:5x)
Launcher tools/run_arm_v41.sh: faithful mirror of run_arm_long.sh
q2+datav2 with init_ar + --policy.v4_ar_enabled=true (60k steps,
checkpoints every 10k, LR 1e-4 warmup 500 cosine->1e-5, batch 8x4,
seed 42, eval_steps 20000). Chain tools/chain_v41.sh: quick-Z 30 ep
at every 10k checkpoint as it appears during training (paired with
long-q2 quick-Z at the same steps); at 60k: measure_routing_ar.py
(A1-A4 unchanged from encode_observation; A5 hooks ARMoEBlocks with
GT tokens) at 20k/40k/60k + tokens + RSA, probe 70 ep, full Z 60 ep,
measure_latency_ar.py (paired replan latency AR vs FM long-q2 60k
+ AR first-action streaming metric). All scripts syntax-checked;
latency + routing scripts exercised on the smoke checkpoint.
Latency under contention (long run training on the same GPU —
absolute values inflated ~3x, re-measured clean at 60k): AR full
replan p50 616 ms (random-init head, long generations), FM p50
240 ms, AR first-action p50 188 ms with 2.37 tokens to first action.
STATE: READY TO LAUNCH — stage 7 fires run_arm_v41.sh the moment
the long run's training process exits, then chain_v41.sh.
## QUICK-Z @30K LONG RUN (2026-11-19 ~04:35)
Checkpoint 030000, same 30-ep quick protocol:
- success 0/30 - atoms 6/60 (same as @20k)
- first-fail: atom1 24 - atom2 6 - success 0
- first-fail verbs: open 10 - on 5 - close 14 - turnoff 1
- per-task atoms: task 3 = 5/10, task 7 = 1/10, rest 0/10
Trend (atoms/60): controls Q 4 - G 5 - Q2 5; long @10k 3 -
@20k 6 - @30k 6. Atoms rose then plateaued; successes still 0
at every checkpoint. Remaining read rests on the LR-decay tail
(40k/50k) and the full 60-ep Z at 60k vs the >= 5/60 gate.
Guard: no incidents.
## QUICK-Z @40K LONG RUN (2026-11-19 ~06:05)
Checkpoint 040000, same 30-ep quick protocol:
- success 0/30 - atoms 4/60 (down from 6/60 at 20k/30k)
- first-fail: atom1 26 - atom2 4 - success 0
- first-fail verbs: open 10 - on 4 - close 16
- per-task atoms: task 3 = 4/10, rest 0/10
Validation: eval_loss @40000 = 0.3578 (from 0.4204 @20000) -
FM keeps improving while closed-loop atoms stay flat: the
FM-vs-behavior decoupling again.
Trend (atoms/60): controls Q 4 - G 5 - Q2 5; long @10k 3 -
@20k 6 - @30k 6 - @40k 4. No upward trend in the LR-decay tail;
atoms oscillate in the 3-6 band everywhere. Remaining reads:
quick-Z @50k and the decisive full Z + probe at 60k.
Guard: no incidents.
## SERA-CC PHASE A PROBE — BLOCKED, NO INFERENCE PATH YET (2026-11-19 ~16:30)
Phase A training DONE: sera-cc-a1 10,000/10,000 at 16:16:49, eval_loss
0.4283 @10k, checkpoint 010000 saved (12 files, 1.6 GB; model.safetensors
SHA-256 4d54a7e7...03e). A 70-ep probe on this checkpoint was requested
as a T4-style early read — IT WAS NOT RUN, deliberately. Reason, verified
against the running source on the machine (not assumed):
- At inference nothing ever supplies capability codes. The only caller
that sets codes is the TRAINING forward (modeling_base.py:557,
`forward(batch)`: `cc_codes_for(batch)` looks up GT codes by
dataset episode_index/frame_index, then `set_cc_from_codes`).
- `cc_conditioning` (modeling_sera_vla_v3.py:540) is an explicit no-op
outside training ("No-op ... outside training (eval mode or no_grad)").
- `velocity_prediction` (same file:678-683): if `last_cc_summary is None`
it is replaced by EXACT ZEROS. eval_v4.py loads the policy and calls
only `policy.reset()` + `policy.select_action(obs)` per step — no code
is ever set. `reset()` (modeling_base.py:428) only clears the action
queue.
- Consequence: a naive eval_v4.py probe would run the executor with
s == 0 for all 70 episodes AND with no instruction signal either
(check_cc.py [5] proved instruction swap -> velocity diff 0.00e+00;
the code is structurally the only task channel). Expected outcome
~0/70 BY CONSTRUCTION — the policy literally cannot know which task
it is doing. That number would NOT be a measurement of SERA-CC and
must NOT be quoted as "CC @10k probe" next to Q2@10k 9/70 / long-q2
@60k 21/70.
- What is missing is the Phase-C inference loop: C6 sequencer
(`sequencer.py`) + `tools/run_cc_policy.py` (+ `rollout_cc.py`),
all listed "to write (B/C)" in sera_cc/IMPL_PLAN.md §C6/Phase C.
Per the plan, the loop calls `model.set_cc_from_codes()` before
each action chunk, with codes from the online T1 encoder / C6 beam
search and gripper-based segment switching (C7). None of it exists
yet as of 16:30 on 19/11.
DECISION NEEDED (not taken unilaterally): build the minimal Phase-C
inference loop now (C6-greedy + online T1-encoder code prediction is
the smallest honest readout; full beam search + C7 can follow), or
defer the probe until Phase C is built as planned. Do NOT run
eval_v4.py directly on a CC checkpoint in the meantime — the s==0
readout is degenerate and misleading.
Preservation: checkpoint 010000 pulled to preserved_20261119/
sera-cc-a1/checkpoints/010000/ on 19/11 (tar in _tars/, 1,635,512,320 B);
all 12 file sizes match remote exactly; SHA-256 of model.safetensors
(1,229,355,616 B) matches remote: 4d54a7e7f19bf48f9e991972f2b710eff12ab4f505c2419e4226dff0ca1cb03e.
Machine state at check: T2 DEMO eval (PID 983902) finished its leg;
quick-Z v4_1 @50k (PID 1735804) still running; GPU 11%, VRAM
4,835/16,311 MiB — the probe was NOT blocked by resources.
## 2026-11-19 ~18:45 — SERA-CC minimal inference loop + probe 70 @10k: 0/70
### What was built (Phase C v0, minimal loop — NOT full beam search + C7)
The 16:30 blocker is resolved: probe 70 can now run honestly. New code
(local `~/workspace/experiments/sera_cc/`, deployed to
`~/sera_v4_experiments/sera_cc/` on the machine):
- `cc_inference.py` — `OnlineEncoder` (frozen T1 encoder on partial
segments, feat_start = state at segment start, feat_end = current
state — exactly how `codes_cc_pred.npy` was built), `C6Greedy`
(instruction emb -> ridge alignment -> nearest per-code z centroid),
`SegmentTracker` (gripper-command boundaries, map's own rule:
debounced sign flips, DEBOUNCE=3, closed <=> action[6] < 0).
- `fit_c6_alignment.py` — ridge W: text(512) -> z(64) on 3,524 demo
(instruction, segment-z) pairs; text embeddings from the
checkpoint's own text path (`_tokenize` + `_encode_text_tokens` +
text_projection/norm, pooled). Saved `c6_alignment.npz`.
- `check_cc_inference.py` — the 4 pre-probe checks (below).
- `run_cc_probe.py` — clone of `eval_v4.py` (same protocol, env,
success/right-object detection, resumable JSONL) + the CC loop:
C6-greedy seeds the episode start AND the first chunk of each new
segment (greedy chain: C6-picked codes excluded); every other chunk
uses the online encoder code. `set_cc_from_codes()` is called before
EVERY `select_action`, so each fresh chunk uses the latest code.
Per-episode code trace saved to `<out>.cc_trace.jsonl`.
### C6 alignment fit (diagnostic of the goal-matching link)
- Cosine(predicted z, true z): train 0.591 / held-out 0.596.
- Greedy top-1 agreement with the true segment code: train 0.315 /
held-out 0.319 vs chance 0.042 (24 used codes) — real signal
(7.6x chance) but the planned code is wrong ~2/3 of the time.
Held-out = held-out EPISODES of the same 40 tasks (not held-out
tasks), so this is the in-distribution read.
### Pre-probe checks (check_cc_inference.py, ALL PASS)
- (i) Code swap (3 vs 10, fixed real obs, fixed FM x0 seed): chunk
max diff 0.1299, mean 0.0511 — codes drive the executor.
- (ii) Instruction swap, same code: chunk max diff 0.00e+00 —
the executor still receives only the code.
- (iii) Online encoder vs GT codes on 40 eval episodes (10,920
frames): agreement 0.5470 (gate [0.45, 0.58]; recorded 0.513 at
build time). Vs saved pred table: 0.9905 (gate >= 0.98) — the
online encoder reproduces the training-time predicted source
(the 0.95% gap is CPU-vs-GPU float flips at FSQ boundaries).
- (iv) Smoke rollout 3/3 episodes to completion, no crash;
segment switches fire (5-9/ep); sources split as designed
(c6 ~2-3% of chunks, enc ~97%).
### Probe 70, CC @10k (sera-cc-a1, ckpt 010000) — FINAL: 0/70
Run `run_cc_probe.py`, 70/70 ep, ~1h50m, nice -n 10, no crash.
Per-task (suite#tid, 10 ep each): Spatial#5 0 · Goal#0 0 · Goal#9 0 ·
L10#0 0 · L10#6 0 · L10#7 0 · L10#8 0. Total 0/70 (0.0%).
- right_object (HEURISTIC): 5 True / 55 False / 10 None (Goal#0 has
no movable target) — 5/60 = 8.3%, vs D@10k 21/60, G@10k 18/60.
- Any grasp detected: 18/70 episodes (26%).
- Mean steps 422.9/70 (episodes run to near max length — no early
success termination); mean segments 6.79/ep; mean distinct codes
9.61/ep; chunk sources c6 475 (1.6%) / enc 29,125 (98.4%);
405 gripper switches total (5.8/ep — the policy toggles the
gripper constantly, fragmenting segments).
- Paired comparison (same protocol, seed 0): CC@10k 0/70 vs Q2@10k
9/70, G@10k 7/70, D@10k 5/70, Q@10k 0/70, long-q2@60k 21/70.
Noise: at n=70, Q2's 9/70 is ~3.2 SE above 0, so 0/70 is
significantly below Q2/G/D, tied with Q, and far below long-q2
(budget confound: 10k vs 60k — the 10k-arm comparison is the
paired one). T4 gate (probe >= 9/70) NOT met at 10k with this
minimal loop.
- What this number IS: a measurement of the SYSTEM (Phase-A executor
+ online codes + C6-greedy v0), not of the executor in isolation
with GT codes. A sibling run (run_cc_probe_oracle.py, GT-code
oracle probe, still running at 18:44) separates those two; its
result is reported separately and must not be mixed with this 0/70.
- Hypotheses for the failure (NOT conclusions): the executor never
sees the instruction and must infer everything from a noisy,
lagging code (online agreement ~0.55; degenerate at segment
starts); C6's planned code is wrong ~2/3 of the time; gripper
chatter fragments segments; eval_loss 0.4283 @10k looks fine
(Q 0.4334, Q2 0.4735) yet closed-loop is 0 — loss does not predict
closed-loop here (same decoupling as D@20k). Per spec §8: T4 fail
-> diagnose the suspects in order (goal-matching link first)
before any decision; never "train longer and hope".
### Task-identity correction (eval_task_identity)
The canonical `env_dataset_task_mapping.json` is WRONG: smoke showed
libero_spatial#5 env '...black bowl on the ramekin...' vs file-implied
dataset 33 '...on the stove...'; libero_goal#0 env '...middle
drawer...' vs file-implied 18 '...on top of the cabinet...'.
The probe now derives dataset_task_index by exact string match of
the ENV's task_description against tasks.parquet (ground truth for
what runs). Verified mapping (saved in
`cc_probe.jsonl.task_mapping.json`): Spatial#5->32, Goal#0->19,
Goal#9->11, L10#0->5, L10#6->1, L10#7->4, L10#8->6. The old mapping
file must be corrected before any per-task claim that relies on it;
harness-native (suite, tid) reporting (incl. the probe-70 comparison
table) is unaffected.
### Preservation
Local `preserved_20261119/sera_cc/`: cc_probe.jsonl (70 rows, 0 succ,
verified) + cc_trace + task_mapping + cc_probe.log, smoke files,
c6_alignment.npz, fit_c6.log, cc_inference_check.json/.log. All
sizes match remote. Checkpoint 010000 already preserved earlier
(SHA-256 match, see entry above).
### Parallel notes (not this run's verdict)
- T2 handoff files on the machine are COMPLETE
(`sera_cc/t2/`: self/demo/standalone.jsonl, "ALL_T2_DONE 16:22");
its verdict is reported separately by the T2 owner.
- chain_v41 full Z (v41-comp-z) was running during this probe.
## SERA-CC PHASE A PROBE — ORACLE-CODE DIAGNOSTIC (2026-11-19; STOPPED at 69/70 by Young's stop order)
### Purpose (pre-registered interpretation)
The minimal-loop system probe above scored 0/70 with a temporary
code source (C6-greedy + online encoder, ~51% agreement with GT).
This diagnostic holds everything else fixed and gives the executor
the TRUE T1 code of each segment at the right time, separating
executor fault from code-source fault. Branches registered before
the run: (a) oracle >> minimal loop -> executor fine, code source is
the bottleneck; (b) oracle ~ 0 -> the executor itself is weak and
the code source cannot be blamed.
### Method
New driver `run_cc_probe_oracle.py` (the minimal driver
`run_cc_probe.py` is untouched; local + machine copies md5-matched
to the minimal driver before editing). Identical protocol (7 probe
tasks x 10 ep, seed 0, same init states, same env/success machinery,
same debounced gripper-command SegmentTracker for boundaries). Only
the code source differs:
- per dataset task, demo episodes from the segment map are ranked
by |n_segments - task median n_segments| (tie-break: lower
episode index); rollout episode i uses ranked[i % n_demos];
- segment k of the rollout receives demo segment k's GT code from
`codes_cc.npy`, held constant for the whole segment (the
training-time conditioning; codes_cc verified constant within
1,277/1,277 checked segments, code at seg_start = segment code);
- if the rollout has more segments than the demo, the last demo
code is held;
- the instruction is used only to recover the dataset task_index
(exact string match, as in the minimal probe); it never
influences the code. Executor-side instruction invariance through
this inference path was already verified bit-exact by
check_cc_inference.py (ii): chunk max diff 0.0; code swap (i):
max diff 0.1299.
- Pre-run smoke (3 ep: spatial#5 x2, goal#9 x1): applied code
sequence == demo GT sequence with hold-last in 3/3 episodes
(trace cross-checked; sources all "oracle"); no crash.
### Run and stop
Launched ~18:24 on the machine (nice -n 10), in parallel with the
minimal-loop probe (which finished 0/70 at 18:46) and chain_v41.
**At 19:40 Young ordered a full stop of all server processes; the
run was killed with 69/70 episodes recorded. The last episode
(libero_10 #8 ep9; demo_ep=86, oracle_seq [63, 11, 27, 7]) was
mid-run and was NOT re-run, per the stop order.** Result file is
therefore final at 69 episodes.
### Result — 0/69 (oracle) vs 0/70 (minimal loop) vs 9/70 (Q2@10k)
| Task | Oracle codes | Minimal loop | Q2 @10k (ref) |
|---|---|---|---|
| Spatial #5 | 0/10 | 0/10 | 5/10 |
| Goal #0 | 0/10 | 0/10 | 1/10 |
| Goal #9 | 0/10 | 0/10 | 3/10 |
| LIBERO-10 #0 | 0/10 | 0/10 | 0/10 |
| LIBERO-10 #6 | 0/10 | 0/10 | 0/10 |
| LIBERO-10 #7 | 0/10 | 0/10 | 0/10 |
| LIBERO-10 #8 | 0/9 (ep9 killed) | 0/10 | 0/10 |
| **Total** | **0/69** | **0/70** | **9/70** |
Auxiliary (heuristic detectors, same as all probes): right-object
3/69 (oracle) vs 5/70 (minimal); first-grasp detected 14/69 vs
18/70; tracker segments mean 7.77/ep (oracle) — gripper chatter
fragmenting segments persists under oracle codes too.
### Interpretation — branch (b) fires
With ground-truth codes delivered at the right segment boundaries,
the executor still scored 0/69 — identical to the temporary code
source's 0/70. Replacing a ~51%-accurate code source with perfect
codes changed nothing measurable (success 0 in both; the auxiliary
counters are nominally lower for oracle, within noise at these
counts). **The code source is exonerated as the cause of the zero:
the Phase-A executor itself — 10k steps on DATA V2 segment anchors
with GT-code conditioning — does not convert correct capability
codes into successful closed-loop behaviour on seen tasks.** This
removes "the minimal loop's crude code source" as an explanation
for the system probe's 0/70 and is an executor-level failure signal
at the 10k budget (cf. spec §8 diagnosis order; it does not by
itself replace the T4 system verdict).
### Preservation
Local `preserved_20261119/sera_cc/`: cc_probe_oracle.jsonl
(69 rows, 0 succ, verified against remote before pull) +
cc_trace (1,540,946 B) + task_mapping + cc_probe_oracle.log,
plus the 3-episode smoke files (jsonl/trace/mapping/log).
Driver: `experiments/sera_cc/run_cc_probe_oracle.py` (local) and
`~/sera_v4_experiments/sera_cc/run_cc_probe_oracle.py` (machine).
## CAMPAIGN VERDICT — E1 + 24H CAMPAIGN + v4_1 + SERA-CC (FINAL, 2026-11-19 ~19:50)
### E1 verdict (complete)
- Tokenizer (QueST-style FSQ [8,5,5,5], 1000 codes): 20,000 steps, held-out
recon L1 0.1493, codes used 999/1000 (99.9%), perplexity 797.8, max code
share 0.50%. TOKEN-HEALTH GATE: PASS.
- Arm Q (10k): eval_loss 0.4334 @10k; routing cos 0.8184/0.8255/0.8121
@2k/5k/10k; prior util 0.389, prior ppl 124.4, RSA prior rho 0.333 /
encoder 0.289. Probe 0/70. Z 0/60, atoms 9/120. FAIL.
- s0 diagnostic (skill pathway zeroed at inference): 0/70 -> policy
CO-ADAPTED to GT codes at train time; Q checkpoint not rescuable.
- Arm Q2 questfix (scheduled sampling + token dropout 0.15): eval_loss
0.4735 @10k; routing cos 0.7863; probe 9/70 (best 10k arm); Z 0/60
(00:03 19/11), atoms 9/120. FAIL gate Z >= 5/60.
- G control Z: 0/60, atoms 10/120 -> composition failure is not
graft-specific.
- F leg (few-shot, prior-only): DEFERRED indefinitely. Blocker: scripted
oracle cannot grasp the drawer (handle gap 0.014 < finger 0.028);
12 dry-runs failed BDDL verification for skill_obj_02.
### 24h campaign verdict: FAIL (gate Z >= 5/60 not met by any arm)
- Long run sera-v4-long-q2 (Q2 recipe + DATA V2, 60k): eval_loss
0.4204 @20k -> 0.3578 @40k -> 0.3499 @60k. Quick-Z atoms/60 @10k..50k:
3, 6, 6, 4, 4 (all 0/30). Probe @60k 21/70 [3,9,4,0,2,3,0].
Full Z @60k 0/60, atoms 7/120 (all from skill_obj_04 atom 1).
- DATA V2 assessment: no measurable composition effect (paired quick-Z
lowest of all arms; full-Z atoms 7/120 < all three 10k arms). Probe gain
9->21 confounded with 6x budget; no 60k no-DATA-V2 control was run.
### Paired table: long-q2 (FM) vs v4_1 (AR ActionCodec2), both 60k
| read | long-q2 | v4_1 |
|---|---|---|
| train eval loss | FM 0.3499 @60k | CE-total 3.2211 @40k |
| quick-Z atoms/60 @10k..50k | 3,6,6,4,4 | 2,3,2,0,4 |
| probe 70 @60k | 21/70 | 9/70 [0,6,2,0,1,0,0] |
| full Z 60 ep | 0/60, atoms 7/120 | stopped at 29/60 by stop order: 0 succ, atoms 8/58 |
| paired latency @60k | NOT MEASURED — chain stopped before latency leg | same |
- v4_1 verdict: AR head = first FM ablation of the program. Probe 9/70
equals Q2@10k and is far below long-q2 @60k (21/70). Dropping FM does
not change the composition outcome; FM exonerated as the bottleneck.
### SERA-CC verdicts
- T0 PASS (code-probe 0.538 vs object 0.420, margin +0.118; 24/64 codes;
purity 0.916 vs 0.892 fixed windows).
- T1 PASS, thin (held-out AUC 0.8128 >= 0.80; perturbed starts 0.5575).
- Phase A: sera-cc-a1 train done 10k/10k 16:16:49, eval_loss 0.4283,
ckpt 010000 preserved locally (SHA-256 verified).
- Phase A probe initially BLOCKED (no inference path — cc_conditioning
no-op outside training; eval_v4.py would have measured s==0). Minimal
Phase-C loop built afterwards; system probe = 0/70; oracle-code probe
= 0/69 (stopped at 69/70 by stop order) -> branch (b): executor itself
fails even with GT codes; code source exonerated (see entry above).
- T2 handoff (long-q2 @60k, 3 pairs, seed 0): ROW 2 of the pre-registered
matrix — SELF ~= DEMO << STANDALONE. B|A-done pooled: SELF 3/17 (18%),
DEMO 8/27 (30%), STANDALONE 17/30 (57%); Fisher SELF-DEMO p=0.49 (ns),
DEMO-STAND p=0.06, SELF-STAND p=0.014. B failed 11/13 episodes at
handoff distance <= 0.04 — no funnel relation. Interpretation: the
boundary-B bottleneck is B's execution from ANY post-A state (narrow
initiation basin), NOT handoff-state compatibility. SERA-CC v1's strong
premise (I/O/graph machinery aimed at the SELF-DEMO gap) is withdrawn;
Row 4 did not fire, so the gate does NOT stop SERA-CC. Row-2
prescription: widen state coverage in training (basin widening), not
chaining machinery. Caveat: STANDALONE measured in home scene
(libero_object) vs composite scene (libero_10); the clean same-scene
contrast is SELF vs DEMO and it is small. DEMO arm used EEF-trajectory
following (open-loop replay failed validation; follower atom A 27/30).
### Stop order
Young ordered a FULL STOP of all server processes at 19:40 on 19/11
(executed and verified: GPU 0%, no experiment processes). Unfinished at
stop: v4_1 full Z (29/60), v4_1 paired latency (never ran), CC oracle
probe (69/70). No new launches until Young orders otherwise.
### Final direction filter (full report: your_files/Bao_cao_tong_ket_SERA_loc_huong_20261119.pdf)
CONTINUE: SERA-CC architecture tier (downgraded; contract-chaining
deprioritized), basin widening (new candidate from T2 Row 2), long-budget
training for seen-task execution only.
REMOVE: soft per-sample MoE (0/8 through gate), front-end interventions
@10k (F1/F2), QueST token graft for composition, DATA V2 as a composition
lever, train-longer for composition, AR ActionCodec2 head for
composition, SERA-CC Phase-A executor as trained (oracle 0/69), SOEE
(removed 18/11).
INSUFFICIENT EVIDENCE: E2, E3, F few-shot (blocked by oracle grasp),
materialized DATA V2 dataset.
## V4_1 FAILURE DECOMPOSITION — 2026-11-19 (trace analysis, no new rollouts)
Source files (pulled to preserved_20261119/quest_probe/results/): v41.jsonl (probe 70, 9/70),
long-q2.jsonl (probe 70, 21/70, paired same init states/seed 0), v41-comp-z.jsonl (Z stopped 29/60).
Probe trace fields: success, steps, targets, first_grasped, grasp_step, right_object.
Classes: A = fail with first_grasped null (no grasp recorded); B = grasped, right_object false;
C = grasped right object, still failed. Classes describe the FIRST grasp only — on two-object
tasks C includes second-object sequencing, inseparable from trace. Stall has no trace field;
proxy = steps at suite cap (spatial 280 / goal 300 / L10 520). Goal #0 has targets=[] (drawer
task): the grasp detector never fires in either arm (0/10), so its A cells are NOT interpretable
as grasp failure — only outcome/steps speak there.
Per-task (succ / A / B / C / at-cap), v4_1 vs long-q2:
- Spatial #5: 0/8/1/1, cap 10 | 3/5/1/1, cap 7
- Goal #0: 6/4*/0/0, cap 4 | 9/1*/0/0, cap 1 (*detector blind, see above)
- Goal #9: 2/4/0/4, cap 8 | 4/5/0/1, cap 6
- L10 #0: 0/10/0/0, cap 10 | 0/5/0/5, cap 10
- L10 #6: 1/0/0/9, cap 9 | 2/1/1/6, cap 8
- L10 #7: 0/9/0/1, cap 10 | 3/4/0/3, cap 7
- L10 #8: 0/2/0/8, cap 10 | 0/3/0/7, cap 10
Pooled: v4_1 S9 A37 B1 C23, at-cap 61/70 (87%) | long-q2 S21 A24 B2 C23, at-cap 49/70 (70%).
Grasp acquisition (excl. Goal #0): grasped anything v4_1 27/60 vs FM 37/60; no-grasp fails 33 vs 23.
P(success | grasped right object): v4_1 3/26 (12%) vs FM 12/35 (34%).
Paired (70 same init states): both succeed 6, FM-only 15, v4_1-only 3, both fail 46.
On the 44 eps where FM grasped the right object, v4_1 grasped nothing in 20, failed post-grasp
in 17, succeeded in 7. On the 24 eps where BOTH grasped right: v4_1 succ 7, FM succ 12.
Spatial #5 detail: v4_1's only right grasp came at step 99 then failed post-grasp; FM's 3
successes grasped at steps 36–53. L10 #0: v4_1 never grasped anything (A 10/10); FM reached the
object in 5/10 (all C). L10 #6/#8 are C-dominated in BOTH arms (post-grasp disease, shared).
Z (29 ep run before the stop: obj_02 x10, obj_04 x10, obj_05 x9; tasks 6/7/8 never ran):
0 successes, atoms 8/58. Atom 1 true 7/29 (obj_04 6/10, obj_05 1/9, obj_02 0/10); atom 2 true
1/29 (obj_05, a different episode than its atom-1). Break at atom 1: 22/29 (76%); atom 1 done
then failed: 7/29 — all obj_04, whose atom 2 (bowl on plate) landed 0/10. Same signature as
every other arm: the only living atom is the cabinet push. (The Z file's internal 'model'
field reads 'v3' — that is the rollout harness's checkpoint-format label, not a different model.)
Verdict of this decomposition: v4_1's deficit vs FM is concentrated at grasp ACQUISITION
(it reaches and grasps far less often; wrong-object selection is ~zero in both, 1 vs 2),
with a secondary post-grasp conversion gap (12% vs 34% given a right grasp). Post-grasp
failure mass itself is identical (C 23 vs 23) — the shared disease, not a head difference.
## DIRECTION 1 — CANONICALIZED VERIFIED EXECUTION TEST (2026-11-19, rollouts only, NO training)
Young approved 20:36 19/11/2026; transfer constraint added 20:39; acceptance threshold added 20:46 — all recorded BEFORE full results were seen.
DESIGN. Model: long-q2 @60k (FM head; probe 21/70; monolithic composition Z = 0/60, atoms 7/120). Test: LIBERO-Skill suite libero_skill_obj, tasks {1,3,4,6,7,8} x 10 eps, seed 0, init states identical across arms (sub.init_state_id = ep, as in rollout_skill_v4.py), episode hard cap 800 steps. Driver: tools/eval_d1.py. Each composed task is driven as two sub-skills in language order with DATA V2 segment phrases ('open the top drawer' #29, 'close the drawer' #22, 'close the microwave' #8; bowl = pick 'pick up the bowl' #25 + place 'put the bowl on the plate' #26 — the pair trained together in dataset task 10 'put the bowl on the plate'); 'open the microwave' and 'turn off the stove' use the language fragment (no segment phrase exists in the 64-phrase inventory).
- Arm 1 (seq): sub-instruction sequencer only. Segment ends per T2 SELF conventions: pick ends on gripper-close streak >=3 or cap 120; place ends on atom / release+20 grace / cap 150; single-phrase skills end on atom / close->open gripper cycle + 20 grace / cap 180.
- Arm 2 (canon): arm 1 + scripted HOME-POSE reset between the two skills. HOME POSE DEFINITION: the EE position recorded from proprio (observation robot_state eef pos) immediately after env reset — the robot's rest pose in the scene (smoke episodes: [-0.2085, 0.0, 1.1733]). Reset controller: P-control on EE position only (scale 0.0128 m per action unit per step, as measured in T2), rotation deltas zero, gripper commanded OPEN (-1), stop at <1.5 cm or 120 steps. NO simulator object state is used anywhere in arm 2 — transfers to a real robot as-is.
- Arm 3 (verified): arm 2 + verifier + retry/backtrack. VERIFIER = simulator BDDL sub-goal predicates = ORACLE VERIFIER — CEILING MEASUREMENT ("oracle verifier — phép đo trần"): it bounds the value of verification + retry; the real-robot version is a learned verifier trained on real rollouts (separate, accuracy-gated work). Retry <=2 per skill; a retry of a non-holding skill starts with a home reset; pick-place skill: place failed while NOT holding (proprio gripper aperture > 0.015 := holding) -> BACKTRACK (re-run the pick once before retrying the place); still holding -> retry the place only (no home reset — it would open the gripper). Per-episode attempts/retries/backtracks recorded in the JSONL rows (fields attempts/retries/backtracks per skill; used_retry/used_backtrack per episode; verifier='oracle_sim_predicate_ceiling').
PRE-REGISTERED CRITERIA.
(a) Research-report criterion: if arm 3 does not beat arm 1 on BOTH atoms and success, the execution-layer hypothesis is dead at zero further cost.
(b) YOUNG'S ACCEPTANCE THRESHOLD (20:46 19/11/2026): the execution-layer direction is kept ONLY if arm 3 reaches >=5/60 success (the campaign PASS-Z gate >=5/60) AND atoms clearly above the old 7-10/120 band. Below that — even if atoms rise but success <5/60 — DROP the whole direction as too complex for the benefit; do NOT propose extension arms or salvage variants. Arms 2/3 must also clearly beat arm 1 for any effect to be attributed to the execution layer.
(c) Note (Young, 20:46): real-robot datasets are collected normally, without segment splits at collection time; segmentation is inferred offline from gripper events in the collected demos — the sub-instruction driving used here is compatible with that pipeline.
TRANSFER ACCOUNTING (required in the final report): transfers intact to a real robot + real dataset — arm 1 sequencer, arm 2 home-pose reset (proprio only), arm 3 retry/backtrack logic (proprio holding check). Oracle-only (ceiling) — arm 3's verifier predicates.
SMOKE (tasks 1+6, ep 0, all arms): harness verified before the full run — home reset converged in 21 steps to 0.0066 m; segment-end criteria, retry/backtrack counters and JSONL fields exercised. Full results appended below.
AMENDMENT (pre-run, from smoke measurements 19/11 ~20:55): the arm-3 held check does NOT use proprio gripper aperture — measured ambiguous for the akita bowl (dataset demos: carrying aperture ~0.005 vs empty-closed ~0.0045; the rim is too thin to separate them; open = ~0.080). Held := target object within 9 cm of the EE (simulator state, standing in for a hardware grasp sensor; disclosed as part of arm 3's oracle-side instrumentation). Raw aperture is still recorded in every row. Driver eval_d1.py updated accordingly and re-smoked before the full run.
## Oracle battery trên v4_1 @60k — KẾT QUẢ (2026-11-19 ~20:05–23:35;
## Young duyệt mở lại hẹp 19:59; cùng protocol đã đăng ký cho battery FM)
Checkpoint: sera-vla-v4_1/checkpoints/060000/pretrained_model (head AR
ActionCodec2). Harness eval_oracle.py nguyên bản, không sửa; smoke
spatial#5 x2 PASS cả 3 arm trước khi chạy đủ (O1 removed đúng tập đã
đăng ký; O3 release_step ghi đúng luật đã hiệu chuẩn; O2 swap_target
resolve động đúng). Baseline O0 = probe 9/70 đã có (không chạy lại):
spatial#5 0/10, goal#0 6/10, goal#9 2/10, L10 1/40 (chỉ #6);
right-object 26/60 (43,3%), grasped-any 27/70.
Kết quả (paired cùng init states, seed 0):
| arm | v4_1 | paired vs O0 | FM (G@10k) để đối chiếu |
| O1 dọn vật nhiễu | 7/70 | +4 / -6 (net -2) | 5/70, +2 / -4 (net -2) |
| O3 gắp hộ strict | 1/60 applied | +1 / -3 trên mẫu applied | 0/60 |
| O3 would-be | 2/70 | — | 14/70 |
| O2 đổi lệnh (n=60) | followed 13, original 10, no-grasp 37, success 0 | — | followed 10, original 9, no-grasp 41 |
| O2ctrl vật vắng mặt (n=30) | success 0, gắp bất kỳ 0/30 | — | success 0, 0/30 |
O1 detail: spatial#5 0->2/10, goal#0 6->3/10, goal#9 2/10 giữ nguyên,
LIBERO-10 0/40 (mất luôn ep thắng duy nhất của #6). Dọn sạch vật nhiễu
không cứu được ep nào ròng -> chọn vật KHÔNG phải nút thắt của v4_1,
y hệt FM.
O3 detail: applied 60/60 (goal#0 không áp dụng theo thiết kế; 10 ep
goal#0 chạy thường đạt 6/10 = đúng điểm probe, kiểm chứng ghép cặp
tốt). Releases 30/60; strict success 1/60 (spatial#5 1/10). Khác FM ở
kết cấu lỗi: FM mang vật tới vùng đích mà không thả (would-be 14/70,
0 ep nào trong số đó thả); v4_1 would-be chỉ 2/70 — được gắp hộ miễn
phí mà phần lớn episode gãy TRƯỚC cả khi tới cấu hình đích. Cả hai
đều quy về ~0 chuyển hoá strict. LIBERO-10: 0/40 ở O3 applied.
O2 detail: followed tập trung goal#9 10/10 (FM 8/10) và goal#0 3/10
(FM 2/10); L10#6 original 8/10, followed 0/10 — routine lấn lệnh ở
task 2 vật, y hệt FM. O2ctrl: im lặng hoàn toàn như FM (language
gate tuyệt đối).
### PHÁN QUYẾT
- v4_1 gãy ở CÙNG chỗ với FM: **thực thi sau gắp** (mang/đặt/thả/ổn
định + nối tiếp vật thứ hai), không phải chọn vật, không phải gắp.
Mọi chữ ký oracle trùng FM: O1 net -2 = -2; O3 strict ~0; O2 cùng
phân bố; O2ctrl cùng im lặng.
- "Có yếu hơn FM không": so với arm FM của battery gốc (G@10k) thì
KHÔNG — baseline v4_1 còn nhỉnh hơn (9/70 vs 7/70; right-object
26/60 vs 18/60) và phân rã lỗi không tệ hơn ở khâu nào. Nhưng so
với FM CÙNG ngân sách 60k (long-q2, probe 21/70) thì v4_1 yếu hơn
rõ ở baseline thực thi task đã học; battery này không chạy trên
long-q2 nên đối chiếu phân rã ở cùng ngân sách là chưa có — khác
biệt 21 vs 9 nằm ở mức thực thi tổng thể, không ở một khâu oracle
riêng nào đo được ở đây.
- Hệ quả cho câu hỏi head AR: thay FM bằng AR không đổi được vị trí
nút thắt; điểm yếu của v4_1 không nằm ở khâu chọn/gắp mà FM "cứu"
được. Khác biệt duy nhất đo được: ở O3, FM ít nhất mang được vật
tới vùng đích (would-be 14) còn v4_1 gãy sớm hơn (would-be 2) —
nhất quán với giả thuyết khâu mang/định vị sau gắp của AR yếu hơn,
nhưng strict conversion của cả hai đều ~0 nên đây là khác biệt
kết cấu, không phải khác biệt kết quả.
Files: round2_probe/results/oracle-{o1,o3,o2,o2ctrl}-v41.jsonl (đã
kéo về preserved_20261119/round2_probe/results/). Runner:
tools/run_oracle_v41.sh. Sau battery, máy trở lại trạng thái dừng
(không còn process eval_oracle; không launch thêm việc gì).
RESULTS — DIRECTION 1 (run 19/11 ~21:00-23:1x, all 3 arms exit 0, 60/60 eps each; files d1-arm1-seq.jsonl / d1-arm2-canon.jsonl / d1-arm3-verified.jsonl, preserved locally in preserved_20261119/quest_probe/results/):
| arm | success | atoms | atom skill1 | atom skill2 | fail@skill1 | skill1-done-then-fail | mean steps |
| 1 sequencer only | 0/60 | 7/120 | 7 | 0 | 53 | 7 | 310 |
| 2 + home-pose reset | 0/60 | 5/120 | 5 | 0 | 55 | 5 | 374 |
| 3 + ORACLE VERIFIER (ceiling) + retry/backtrack | 0/60 | 10/120 | 4 | 6 | 56 | 4 | 768 |
Monolith reference (same model, whole instruction): 0/60, atoms 7/120. Per task: ALL 7 arm-1 atoms and ALL 5 arm-2 atoms are skill_obj_04's skill-1 atom (close white cabinet); every other task 0 atoms in arms 1-2. Arm 3: obj_04 skill-1 4; NEW skill-2 atoms appear only in arm 3 — obj_07 close-microwave 5/10, obj_08 turnoff-stove 1/10 — but never in an episode whose skill-1 atom also held, so success stayed 0. Arm-3 usage: retry used in 60/60 eps (179 retries total), backtrack in 32/60 eps (41 total); success among retried eps 0/60. Home resets (arm 2/3): mean 21.5 steps, mean final EE distance to home 0.0143 m — the reset mechanism itself worked exactly as designed and changed nothing.
VERDICT (applying BOTH pre-registered criteria): (a) report criterion — arm 3 beats arm 1 on atoms (10 vs 7) but NOT on success (0 vs 0) → the execution-layer hypothesis does NOT pass. (b) Young's acceptance threshold (20:46) — arm 3 success 0/60 < 5/60 required, and atoms 10/120 sit at the top of the old 7-10 band, not clearly above it; arm 2 is worse than arm 1 (5 vs 7 atoms) → **the whole execution-layer direction (canonical reset + oracle-verified retry/backtrack at inference) is DROPPED per Young's rule; no extension arms or salvage variants are proposed.** Reading, stated plainly: even with a PERFECT verifier and up to 3 attempts per skill, the policy still fails skill 1 in 56/60 episodes at episode end — retries convert isolated second skills (microwave close 5/10) but cannot manufacture the first skill's execution. This is the same wall as T2 Row 2 and oracle battery O3: the bottleneck is execution capability from arbitrary states (basin width, a TRAINING-side property), not sequencing, handoff geometry, or verification at inference time. Transfer accounting: arms 1-2 and the retry/backtrack logic transfer to a real robot unchanged (home pose = proprio only, gripper open); arm 3's verifier was an ORACLE (simulator predicates) = ceiling measurement only, and even the ceiling is 0/60 success. Direction 1 cost: rollouts only, zero training, ~2.2 machine-hours shared with the oracle battery. Machine returned to stopped state afterwards (D1 chain exited; nothing else launched by this test).
## FEW-SHOT PHASE 1 (E0+E1) — PRE-REGISTRATION (Young approved 01:58, 2026-11-20)
GOAL: feasibility test ONLY — can this program's VLA stack (frozen
TIPSv2 trunk + Flow Matching) learn demo-conditioned one-shot
imitation on held-out LIBERO tasks at the standard 10k probe budget?
Mechanism improvements come AFTER a feasibility verdict, not in
this phase. Design doc: research_notes/fewshot-edge-experiment-
plan-20261120/report.md (option A'); this run deviates from that
doc in the trunk (below) on purpose.
TRUNK (one variable at a time): the verified long-q2 recipe at
10k, i.e. exactly run_arm_q2.sh settings — init_quest, quest +
questfix ON (p_gt 3000, dropout 0.15, lambda 0.01), MoE
skillroute, FM head, batch 8 x accum 4 (eff. 32), LR 1e-4 ->
1e-5, warmup 200, cosine decay 10000, seed 42, eval_split 0.1,
steps 10000, save_freq 1000. Deviations from the A' doc, recorded
with reasons:
1. Trunk is the long-q2 recipe (MoE skillroute, 4 blocks), NOT
the slim dense core — the slim core is a separate untested
variable; phase 1 changes ONE thing (adds the demo channel).
2. DATA V2 is NOT used: it was a long-run-only component; the
verified 10k reference arm (Q2, probe 9/70) did not use it,
and adding it here would be a second data variable.
3. The QueST skill-token pathway stays active per recipe but
is NOT part of the demo channel; the demo pathway is a new,
independent channel (quest codes and demo slots coexist;
only the demo varies across E1 eval conditions).
DEMO PATHWAY (the only architectural addition):
- Demo store (precomputed, build_demo_store.py): for every
episode of the 30 tasks of Spatial/Object/Goal — frames
uniformly subsampled to <=64; both cameras encoded by the
model's OWN frozen TIPSv2 vision encoder (tips.encode_image,
same path as encode_observation, images preprocessed by the
checkpoint's own preprocessor); per frame per camera 6 tokens
kept: CLS + register + 2x2 mean-pooled patch tokens (of the
1026 raw 768-d tokens). Store also carries per-frame action
(7) + state (8) at the subsampled timesteps, episode->task map.
- Demo encoder (trainable, in SERAVLAV3Model, prefix demo_):
vision tokens -> Linear 768->512 + camera embedding + frame
position embedding + type embedding; action+state -> 2-layer
MLP 15->512->512 + frame position + type embedding; sequence
(<= 64*2*6 + 64 = 832 tokens) -> Perceiver resampler: 24
learned latent queries (d=512), 2 cross/self blocks -> 24
slots; slots pass a ZERO-INIT output projection (the gate) so
at init the pathway contributes exactly zero vectors.
- Conditioning: gated slots are CONCATENATED to the context
token set inside velocity_prediction (the set the action
blocks cross-attend to; routers/goal/FiLM paths untouched).
Absent demo is DEFINED as 24 zero slots (same representation
in train dropout and eval condition (a)).
- Pairing (training, model-side in policy forward, the
quest_codes_for pattern — the preprocessor drops unknown
per-sample keys): each sample (episode e, task t) draws a
demo episode uniformly from the TRAIN-split episodes of task
t (pool mirrors make_train_eval_datasets: per task, the last
ceil(10%) episodes are the trainer's eval split and are
excluded from the pool), with demo_episode != e enforced.
Demo dropout p=0.10 (train only): the sample's slots are
zeroed, preserving instruction-only ability.
- Inference: demo encoded ONCE per task; slots cached in
model.last_demo_slots for the whole episode.
SPLIT (benchmark ids -> dataset task_index via the verified
env_dataset_task_mapping.json, base+offset: goal 10, object 20,
spatial 30):
- HELD-OUT (eval only, never trained): Spatial #2 (ds 38),
#5 (ds 32), #8 (ds 36); Goal #0 (ds 19), #4 (ds 18), #9
(ds 11); Object #1 (ds 22), #5 (ds 28), #7 (ds 25).
- TRAIN (21 tasks): the remaining tasks of the 3 suites;
LIBERO-10 (ds 0-9) is NOT used in E1 at all. Training is
restricted via --dataset.episodes = all episodes of the 21
train tasks (ascending).
E0 SMOKE (all must pass BEFORE the 10k train; failure = stop
and report, no blind training):
1. Demo swap changes velocity: with the gate perturbed to a
trained-like state (check_cc.py [4c] methodology — at true
init the zero-init gate makes swap diff exactly 0 BY
CONSTRUCTION), swapping the demo episode on a fixed batch
changes velocity_prediction output (diff > 0). Also:
gradient reaches demo_act_mlp + Perceiver at init, and
reaches the gate first (gate grad > 0 at true init).
2. Inert at init: with the true zero-init gate, velocity with
a demo set == velocity with zero slots (diff ~0), and the
patched code with v4_demo_enabled=false reproduces the
PRE-PATCH reference (loss + fixed-seed velocity, captured
from init_quest with the Q2 recipe config) bit-exactly.
3. Anti-leak assert: 500 random pairing draws — 0 cases with
demo_episode == sample episode; demo task == sample task
in 500/500.
4. A full training batch runs end-to-end (demo path active)
with finite loss; plus a 40-step smoke train (smoke_fs1)
completes with finite losses.
E1 EVAL (checkpoint 010000; eval_v4.py lineage extended with
demo conditions; resumable JSONL per condition):
- 9 held-out tasks x 20 rollouts x 5 conditions, same LIBERO
init states paired across conditions, seed 0:
(a) zero-shot: zero slots (no demo);
(b) one-shot: demo = smallest episode id of the task;
(c) swapped: demo = smallest episode id of the NEXT held-out
task in the fixed rotation (spatial2->spatial5->spatial8
->goal0->goal4->goal9->object1->object5->object7->spatial2);
(d) shuffled: same demo as (b), frame order permuted (fixed
seed per task);
(e) few-shot 5: demos = 5 smallest episode ids of the task,
slots concatenated (120 slots).
- Metric: success per task + total per condition. The v4 eval
harness exposes no atoms/subgoal metric — success only (the
right_object heuristic is recorded per episode as before).
GATE (registered before training; no post-hoc loosening):
PASS = (b)-(c) >= 20 points AND (b) >= 40% AND (b)-(a) >= 15
points (percentages over the 180 rollouts per condition).
Anything else = NEGATIVE verdict: report in full, run no
variants. Run name: sera-v4-fs1-demo. Results pulled to
preserved_20261120_fewshot/ as each condition completes.
RUN DISCIPLINE UPDATE (Young, 2026-11-20 02:38 — supersedes the
stop rules above where they conflict):
1. E0 smoke is NO LONGER a stop gate. All 4 smoke items still
run and are recorded. A failed item is diagnosed, fixed
within reasonable scope, and re-smoked quickly; training
then proceeds regardless — even if an item remains
imperfect after fixing (the failure, the fix, and the
residual risk are recorded in the results section below).
Work stops only on a hard technical blocker that makes
training impossible, and then fixing continues until it
runs. The machine must not sit idle.
2. After the E1 eval and the registered gate verdict, the
A' ladder continues WITHOUT waiting for a new order:
first E3 (mechanism ablations, mostly inference-only on
the E1 checkpoint: slots {4,16,32}; demo content
{video+action, video-only, action-only}; flow steps
{1,2,4,10} with latency), then E2 (task-diversity
ablation: retrain with 12 and with 6 train tasks, same
10k budget, same E1 eval protocol). Gates/verdicts per
experiment recorded here; results pulled to local as
before. Milestone reports: smoke verdict, train done,
E1 eval + verdict, each ablation done.
3. If the whole ladder finishes with NO significant
improvement signal anywhere: stop server work and wait
for orders. No experiments outside the A' proposal.
LADDER PRE-REGISTRATION (E3 + E2, per Young's 02:38 order):
E3 (mechanism ablation, inference-only on the E1 checkpoint
010000; condition (b) one-shot correct demo; 9 held-out tasks
x 20 rollouts; init states paired with E1). Reference cell =
24 slots / full content / 4 flow steps = E1 condition (b),
not rerun. Cells: slots {4, 16, 32} (first-k learned queries;
32 = query set tiled — duplicated queries yield duplicated
slots, recorded caveat), content {video-only, action-only}
(the other stream's tokens zeroed, sequence length and
positions unchanged), flow steps {1, 2, 10} (Euler steps in
predict_action_chunk, now config v4_flow_steps, default 4 =
exact legacy arithmetic; patch #2 defaults-preserving, check
re-run). Readout per cell: success total + mean seconds/ep.
Verdict rule: a cell is a SIGNAL if it beats the reference
cell by >= 10 points; the flow cells are read on the
success-vs-latency trade-off, not success alone.
E2 (task-diversity ablation; same recipe/init/budget 10k;
only the train task set changes; subsets fixed in advance,
suite-balanced, lowest dataset indices first):
t12: Goal {10,12,13,14}, Object {20,21,23,24},
Spatial {30,31,33,34} — run sera-v4-fs1-e2t12.
t6: Goal {10,12}, Object {20,21}, Spatial {30,31}
— run sera-v4-fs1-e2t6.
Eval: the full E1 protocol (5 conditions, 9 held-out tasks x
20 rollouts) per arm. Readout: condition (b) success and the
swap gap vs the number of train tasks (21 -> 12 -> 6) — the
task-diversity -> one-shot curve. Verdict rule: diversity is
the deciding factor if (b) drops monotonically and steeply
(>= 15 points from 21 to 6 tasks); flat = diversity is not
the binding constraint at this scale.
E0 RESULTS (2026-11-20 ~03:21): ALL 4 ITEMS PASS.
- Pre-patch reference (init_quest, Q2 recipe config): loss
3.639296 (FM 3.5496, balance 1.6726, spec 0.0796, prior NLL
7.2982).
- E0-2 / defaults-off: patched code with v4_demo_enabled=false
reproduces the reference BIT-EXACTLY (loss diff 0.00e+00,
velocity diff 0.00e+00); with the true zero-init gate, demo
set vs zero slots velocity diff 0.00e+00; slots exactly zero
at init; missing-setter fallback == zero slots.
- E0-1: gate gradient at init (abs sum 3.37e+03); with the gate
perturbed to a trained-like state, demo swap changes the
velocity output (max diff 1.6154e-01); gradient then reaches
the demo encoder (abs sum 3.12e+01).
- E0-3: 500 pairing draws — 0 self-pairs, 500/500 same-task.
- E0-4: 40-step smoke train completed; loss finite (2.076 @40);
demo metrics live in the train log (demo_drop_frac 0.100 =
the registered p, demo_ep_mean tracked).
Supporting facts: demo store 1.56 GB / 1,314 episodes of the
30 tasks, built in 3,357 s; demo pathway = 52 tensors, 9.38M
params; check_demo.py "ALL DEMO CHECKS PASSED" (items [0]-[6],
run against the combined patch #1 + #2 state).
## E3 SLOTS CELLS — FAILURE + FIX + RELAUNCH (2026-11-20 ~11:45)
The 3 slots cells of chain_fs1_e3.sh (slots4/16/32) DIED at
checkpoint load at 10:58 with 0 episodes each: eval_e3.py set
pcfg.v4_demo_slots = K BEFORE make_policy, so the model was
built with demo_queries [K,512] and the strict safetensors
load of the 24-slot E1 checkpoint raised "size mismatch for
model.demo_queries: [24,512] vs [K,512]". The chain did not
check exit codes and logged "cell slots* done" anyway —
those 3 "done" lines in e3_chain.log are WRONG; the cells
never ran. Root cause: construction-time config override vs
a checkpoint trained with 24 demo queries.
FIX (Young approved 11:42): new script
tools/eval_e3_slots_fix.py = eval_e3.py with the override
removed. The model is built native (24 slots) so the
checkpoint loads exactly; the ablation slot count is set on
the LOADED model's config before set_demo_episodes.
compute_demo_slots then uses the first K TRAINED demo_queries
(K<24) or tiles the trained queries (K=32, the model's own
rule in compute_demo_slots) — no randomly-initialised queries,
checkpoint and demo encoder untouched. Records carry
"slots_impl": "cfg_after_load". Side chain
tools/chain_e3_slots_fix.sh (separate from the main chain):
slots4 + slots16 launched 11:44:58 in parallel with the
running E3 cells; slots32 starts automatically when the
first of them finishes (VRAM rule). Verified ~11:48: SLOTS
SHAPE (1,4,512) and (1,16,512) printed, first RESULT rows
written; ~11:53: 4 rows per cell, ~100-125 s/episode under
5-way contention; VRAM 13,160/16,311 MiB (3,151 MiB free).
Original error logs preserved at
results/fs1-e3-slots{4,16,32}.log; fix-run logs at
results/fs1-e3-slots{4,16}-fix.log.
## JEDI-LITE — PRE-REGISTRATION (Young approved 12:33, 2026-11-20)
CONTEXT: E1 verdict NEGATIVE (one-shot 0/180, swap gap 0 —
the demo channel dies at convergence). The demo-conditioning
research round (research_notes/demo-conditioning-dual-moe-
unet-20261120-0522/report.md section 7.2) recommends ONE
intervention: keep the fs1 architecture 100% (trunk long-q2
recipe + demo pathway, 24 slots, zero-init gate) and change
ONLY the demo pathway's training objective + sample
composition, following JEDI [preprint, arXiv:2610.40356]:
its controlled ablation on the same slots+FM architecture
moved swap context-following 34.1% -> 74.9% by changing the
compressor's loss alone. Young's instruction: implement
first, improve later; find every way to get the wanted
result. Run name: sera-v4-fs1-jedi. Init: fewshot/init_jedi
= init_demo + fresh predictor tensors (seed 1234), so trunk
and demo pathway start bit-identical to fs1.
SPEC (as implemented, tools/apply_jedi_patch.py on top of
the demo patch; defaults OFF, fs1 behaviour bit-preserved
when v4_jedi_enabled=false):
1. Keyframe prediction loss (JEPA-lite): a predictor
(prefix demo_pred_, 45 tensors, 9.20M params) — a learned
query token carrying the current frame's pooled frozen
feature (768->512) reads the GATED demo slots through 2
DemoPerceiverBlocks; a linear head predicts the pooled
frozen TIPSv2 feature of the target episode's NEXT-STAGE
KEYFRAME. Error = squared L2 between L2-normalized
predicted and target features. Keyframes are computed
offline (tools/build_jedi_store.py -> fewshot/
jedi_store.pt, 132 MB) ONLY from signals recorded in the
demos: gripper-action changepoints + EE speed local
minima (pause = stage end); measured 6.2 keyframes/ep
(min 2, max 14) over 1,314 suite episodes. The sample's
current frame is mapped to the demo-store frame axis via
frame_index (verified to reach the policy forward); the
predictor conditions on the store's pooled feature at
that frame — the frozen encoder's own feature of the
current observation, precomputed (deviation from the
report's "live obs" wording, recorded: same information,
no trunk surgery).
2. Counterfactual margin loss: per sample, a TASK negative
demo (episode of a different train task, from its train
pool) and a PROCESS negative demo (same task, different
keyframe signature; jedi store proc pools — measured:
0/925 sample episodes needed the fallback) are encoded;
L_cf = relu(m + err_pos - err_task) + relu(m + err_pos -
err_proc), margin m = 0.2 on the [0,4] normalized-error
scale (conservative choice, report does not fix m).
Total jedi term = 1.0 * pred_loss + 1.0 * L_cf, added to
the FM total by the house aux-loss pattern. Demo-dropout
samples (keep-mask) are excluded from both terms.
3. Instruction dropout 0.5 (JEDI): at the top of the
policy forward, BEFORE _inputs, each train sample's
instruction is replaced by "" with p=0.5, so the demo
becomes the only task specification.
4. Distractor demos: with p=0.2 per sample, k=2 distractor
demos of other train tasks are appended to the context
slots (72 slots total; zero-padded for non-selected
samples), forcing demo SELECTION.
CONSERVATIVE CHOICES where the report is silent (recorded
per instructions): demo dropout 0.10 from fs1 is KEPT (it
defines the absent-demo representation used by eval
condition (a); the report mandates instruction dropout 50%
and distractor 20% but does not order demo dropout
removed); margin 0.2; lambda_pred = lambda_cf = 1.0;
predictor reads gated (post-gate) slots — exactly what the
executor conditions on.
GATES (registered before training; no post-hoc loosening):
- Gate 0 (step 2,000, no rollout): DD_task = err(task-neg)
/ err(correct) of the keyframe predictor on held-out
train batches (trainer eval split), measured by
tools/measure_jedi.py --mode dd on CPU while training
runs. DD >= 1.5 PASS; DD < 1.2 -> KILL the train by
explicit PID; [1.2, 1.5) -> continue, flagged MID.
- Gate 1 (end of 10k, offline): Delta-v_swap (mean
||v(demo correct) - v(demo swapped)||, E1 demo protocol,
fixed noise/tau, real held-out frames; measure_jedi.py
--mode swap) >= 0.08 at 010000 and no >50% drop from
005000 -> 010000. The fs1 checkpoint is measured with
the identical script as the reference scale.
- Gate 2 (rollout, E1 protocol: 9 held-out tasks x 20,
seed 0, paired init states; eval_demo.py conditions
a/b/c mandatory, d included): (a) right-object rate
one-shot >= zero-shot + 15 points; (b) CFR (in condition
(c), first grasp follows the SWAPPED demo's target
object) >= 30% of the 180 paired rollouts; (c) success
one-shot >= 5/180 AND success(b) - success(c) >= 5
points. Scored by tools/score_jedi_gate2.py.
RESOURCE DISCIPLINE (machine busy with the E3 ladder; the
flow1 cell was SIGKILLed at 11:57 under RAM pressure):
tools/queue_jedi.sh runs the whole pipeline autonomously
and NEVER touches ladder processes. check_jedi waits for
VRAM free >= 6 GB + MemAvailable >= 6 GB + no train; the
300-step smoke train and the 10k train wait for VRAM free
>= 9 GB + MemAvailable >= 8 GB + <= 2 eval processes + no
other train (2 consecutive confirmations); Gate-2 eval
lanes launch one at a time behind VRAM free >= 3.2 GB +
MemAvailable >= 4 GB. Smoke criteria before the 10k train:
check_jedi ALL PASS (defaults-off decomposition exact,
jedi decomposition exact, gradient to gate + predictor
head + demo encoder, instruction/distractor mechanics,
negative pairing 200/200) and smoke-train log shows finite
jedi metrics with median DD_task of the last 10 logged
values > 1.0. If the main chain starts an E2 train first,
the queue simply keeps waiting (its window excludes any
running train) — the jedi train then starts in the first
window after E2.
================================================================
STOP ORDER 13:17 2026-11-20 — E3 HALTED MID-WAY, E2 CANCELLED,
MACHINE CLEANED FOR JEDI-LITE
================================================================
Young ordered at 13:17 on 2026-11-20: stop the ladder, clean
the machine of everything unnecessary, then run the lite
build (JEDI-lite). Executed 13:18-13:21 the same day.
PROCESSES STOPPED (explicit PIDs, cmdline verified before
every kill; chains killed first so no new cell could open;
no pkill used; no files deleted):
- Chains: 3400106 chain_fs1_ladder.sh; 2369654, 2369899,
2369900 chain_fs1_e3.sh; 2372896 (launcher), 2372897,
2372902, 2372903 chain_e3_slots_fix.sh.
- Evals (SIGTERM, all dead without SIGKILL): 2369901
content-video, 2369903 content-action, 2372904 slots4,
2372905 slots16.
FINAL E3 ROW COUNTS (own-file evidence; NO cell is complete;
every cell below is partial and reported as stopped-short):
- content-video: stopped at 79/180, missing 101 (success 2).
- content-action: stopped at 79/180, missing 101 (success 1).
- slots4: stopped at 48/180, missing 132 (success 0).
- slots16: stopped at 48/180, missing 132 (success 0).
- flow1: stopped at 39/180, missing 141 (success 0) — the
cell itself had died by SIGKILL at 11:57; count unchanged.
- slots32: never started, 0/180, missing 180 (no file).
- flow2: never started, 0/180, missing 180 (no file).
- flow10: never started, 0/180, missing 180 (no file).
E3 is CLOSED in this partial state. The queued flow1 rerun
(wait-for-a-free-cell plan, decided 12:23) is CANCELLED.
E2 (12-task and 6-task retrains) is CANCELLED before it
started; the ladder chain that would have launched it is
dead.
MACHINE STATE AFTER CLEANUP (verified 13:20:20, 60 s after
the kills; no new eval/train process appeared): GPU 0%,
VRAM 15 MiB of 16,311 MiB, no compute apps; RAM available
26,313 MB; swap 66 of 8,191 MB (was 7,683 MB before cleanup).
JEDI-LITE START: check_jedi had been fixed by the parallel
repair work; the re-armed queue (PID 2383402, restarted
13:15:33) found the freed window at 13:19:33, logged
CHECK_JEDI PASS at 13:19:42, and launched the 300-step
smoke train at 13:21:43 (train PID 2384213, output
smoke_jedi, jedi flags on: lambda_pred 1.0, lambda_cf 1.0,
margin 0.2, instr_dropout 0.5, distractor_p 0.2, k 2).
jedi_status.txt reads SMOKE_TRAIN launched. The queue then
proceeds to the 10k train and Gates 0/1/2 under the
pre-registered rules above.
### JEDI-LITE — CHECK_JEDI false-fail: root cause + fix (2026-11-20)
- 12:58 queue run: CHECK_JEDI FAIL — AssertionError check_jedi.py:107
`assert "demo_pred_head" in src and "jedi_dd_task" in src` with
src = inspect.getsource(SERAVLAV3Model.jedi_losses). Queue exited;
no jedi processes remained.
- Root cause = form (a): the check sliced ONE method's source and
demanded both strings inside it. Live probe (venv python, CPU,
inspect.getsource on the actually-imported modules;
v3mod.__file__ = ~/lerobot/src/lerobot/policies/sera_vla_v3/
modeling_sera_vla_v3.py — the same tree run_arm_jedi.sh trains
from): getsource(jedi_losses) has "jedi_dd_task" = True but
"demo_pred_head" = False; getsource(_jedi_predict) has
"demo_pred_head" = True; getsource(__init__) has
"demo_pred_head" = True; whole-module source has both;
modeling_base.forward has both jedi hooks; all jedi methods
present (jedi_losses / _jedi_predict / jedi_negative_pairing /
jedi_instruction_dropout). The patch WAS correctly applied to
the module the train imports (8 anchors, .bak-jedi backups,
init_jedi 45 new tensors / 9.20M) — only the check's source
slice was wrong: by design demo_pred_head lives in
_jedi_predict + __init__, not textually in jedi_losses.
- Fix (check_jedi.py, machine + local copies in sync, md5
a1b2745be7ba6e9d4b9022fb7e0740cf; original kept as
check_jedi.py.bak-20261120): check 0 now asserts "jedi_dd_task"
and "_jedi_predict" in getsource(jedi_losses), "demo_pred_head"
in getsource(_jedi_predict), and "demo_pred_head" in
getsource(__init__). No assertion loosened — each string is
verified in the slice that actually carries it.
- Queue re-armed 13:15:33 (bash queue_jedi.sh, PID 2383402).
After the E3 evals stopped (13:17), the smoke window opened
(vram_free=15835, mem_avail=26314, evals=0):
CHECK_JEDI PASS 13:19:42 — check_jedi.log ends
"ALL JEDI CHECKS PASSED" (sub-checks 0-6 PASS).
- Sequel (queue-autonomous; flagged for a decision): smoke train
ran 13:21:43 -> 13:24:53, completed 300/300 steps cleanly
(0 tracebacks, checkpoint 000300 saved). The queue then logged
SMOKE_DD_FAIL (median DD 0.1965 <= 1.0) and exited — but that
verdict is a parsing artifact: the queue greps
`jedi_dd_task[^,]*` plus every float, which on the
space-separated metric lines yields 2430 floats (router
entropies / expert stats included); the "last 10" are junk
floats (4.500, 0.095, 0.000, ...). Precise token parse
(`jedi_dd_task:X`): exactly 30 values, rising 1.020 -> ~3.5,
median_last10 = 3.516, median_all = 2.974 — the registered
smoke criterion (median DD > 1.0) was in fact MET.
Queue is NOT armed now (exited 13:24:53), and a naive re-arm
hits the phase-0 precondition because
~/sera_v4_experiments/smoke_jedi now exists. To resume:
fix the smoke-DD extraction in queue_jedi.sh (parse the
`jedi_dd_task:` token only) and clear/rename the smoke dir,
then re-arm so the pipeline proceeds to the 10k train.
## 2026-11-20 13:28–13:34 — JEDI-LITE: sửa lỗi parse DD ở cổng smoke, arm lại queue, train 10k bắt đầu
- **Lỗi:** queue_jedi.sh trích DD ở cổng smoke bằng `grep -o "jedi_dd_task[^,]*"` rồi vớt mọi float trên dòng metric (dòng phân cách bằng khoảng trắng, không có dấu phẩy) → 2.430 float rác → median 0,1965 → verdict **SMOKE_DD_FAIL GIẢ** lúc 13:24:53; queue thoát, train 10k không chạy.
- **Bằng chứng parse đúng** (log smoke lượt 1; bản sao giữ ở `smoke_jedi_run1_20261120.log`): token `jedi_dd_task:X` cho đúng **30 giá trị**, tăng đều 1,020 → 3,535; median 10 giá trị cuối = **3,516**; median toàn bộ = 2,974. Tiêu chí smoke đã đăng ký (median DD > 1,0) thực ra **ĐÃ ĐẠT, vượt xa**.
- **Cách sửa queue_jedi.sh** (bản máy + bản local đồng bộ, md5 sau sửa `6cf9764b292bbbb415260f7aabcfe4f7`; md5 trước sửa `8538efab7d903a44918a3761476b18bd`):
1. Cổng smoke: chỉ parse token có nhãn tường minh `jedi_dd_task:<số>` (`grep -oE "jedi_dd_task:[0-9]+\.[0-9]+"`), không vớt float trần. Kiểm chứng trên log cũ trước khi arm lại: 30 giá trị, median 3,516 — khớp.
2. Cổng 0: trích `"dd_task": <số>` từ JSON của measure_jedi.py — mẫu số nay nhận cả số nguyên (`[0-9]+(\.[0-9]+)?`), lấy match đầu tiên; thêm chặn **GATE0_MEASURE_FAIL**: không parse được dd_task thì queue dừng với log rõ ràng (train để nguyên) thay vì âm thầm rơi vào nhánh MID như trước. Cổng 1 không parse số trong queue (ghi nguyên output measure ra file) — không có lỗi cùng loại. **Mọi ngưỡng đã đăng ký giữ nguyên** (smoke median > 1,0; Cổng 0 kill nếu DD_task < 1,2 tại ckpt 002000).
- **Precondition phase-0:** đổi tên (không xoá) `~/sera_v4_experiments/smoke_jedi` → `~/sera_v4_experiments/smoke_jedi_passed_20261120`, giữ nguyên checkpoint 000300.
- **Arm lại:** queue PID 2481945, QUEUE START 13:28:13. CHECK_JEDI PASS 13:28:22. Smoke lượt 2 launched 13:30:22, done 13:33:32 — values=30, median_last10=**3,512** → **SMOKE PASS** bằng parser đã sửa (số thật của lượt 2, sát lượt 1: 3,516). **Train 10k launched 13:34:02, PID 2578995**; log train ở step 411 lúc 13:36:40 (~2,6 step/s).
## 2026-11-20 14:48–15:35 — JEDI-LITE: phép đo Cổng 1 (Δv_swap) crash, sửa measure_jedi.py, đo lại — Cổng 1 PASS
- **Bối cảnh:** train JEDI-lite xong 10.000 bước lúc 14:47:54 (checkpoint 010000 có mặt). Queue chạy phase 6 (Gate 1) rồi ghi "GATE1 measured" và cho eval Cổng 2 chạy tiếp lúc 14:48:28 (4 làn a/b/c/d trên ckpt 010000) — nhưng cả 3 lần đo swap đều crash, `jedi_gate1.txt` chỉ có 3 dòng nhãn trống, traceback nằm trong `jedi_gate1_err.log`. Queue không kiểm tra kết quả đo nên lỗi bị bỏ qua âm thầm.
- **Lỗi gốc (crash của queue):** `measure_jedi.py` mode_swap → `velocity_prediction` (modeling_sera_vla_v3.py:1083) → `RuntimeError: The size of tensor a (4) must match the size of tensor b (8) at non-singleton dimension 0` tại `h = h + self.last_skill_summary[:, None]`.
- **Gốc rễ:** mode_swap xử lý 36 mẫu theo chunk 8 → chunk cuối còn 4 mẫu. `last_skill_summary` là cache bền trong model: `velocity_prediction` chỉ tính lại khi nó là None (từ context của chunk đầu, batch 8) và không bao giờ làm mới theo chunk. Chunk batch 4 cộng với summary batch 8 đã cache → crash. (Hệ quả phụ: các chunk 8 ở giữa cũng dùng lại summary của chunk đầu thay vì context của chính chúng.)
- **Cách sửa (chỉ code đo `tools/measure_jedi.py`, KHÔNG sửa code model, KHÔNG sửa ngưỡng cổng;** bản máy + local đồng bộ, md5 sau sửa `50f6c4a2773a4bef847d1f78f31d9b49`; bản gốc giữ ở `measure_jedi.py.bak-20261120`, md5 `721a72935f41fb25d015bf3b5b2cc99b`):
1. Trong mode_swap, sau `encode_observation` của mỗi chunk: `model.last_skill_summary = None` — ép prior tính lại summary từ context của chính chunk đó, đúng batch. Cả hai nhánh demo (đúng/tráo) trong cùng chunk dùng chung summary này, đúng thiết kế so sánh có kiểm soát.
2. Sau `pre(batch)`: chuyển mọi tensor của `processed` về `device` đã chọn. Bộ tiền xử lý luôn trả tensor trên device của config (cuda) bất kể `--device`, nên đường CPU vỡ ở `_encode_text_tokens` (index cuda vs weight cpu). Trên cuda thay đổi này là no-op. Đã kiểm chứng bằng probe CPU riêng (probe_swap_cpu.py): toàn đường swap chạy sạch trên CPU sau khi sửa.
- **Đo lại:** CPU, nice -n 10, tuần tự 3 checkpoint (GPU đang bận 4 làn eval Cổng 2, VRAM trống ~5,6 GB; không đụng vào eval). Raw output: `fewshot/jedi_gate1_remeasure.txt` (+ `_err.log`, cả 3 lần exit=0). Số thật (dv_fro_mean = mean ||v(demo đúng) − v(demo tráo)||, đúng định nghĩa đã đăng ký; n=36 mẫu):
- fs1 tham chiếu (010000): **0,0993** (dv_abs_mean 0,00726)
- jedi 005000: **0,8870** (dv_abs_mean 0,06695)
- jedi 010000: **0,8958** (dv_abs_mean 0,06723)
- **Verdict Cổng 1 theo quy tắc đã đăng ký: PASS.** Δv_swap tại 010000 = 0,8958 ≥ 0,08 (gấp ~11 lần ngưỡng; gấp ~9 lần thang tham chiếu fs1 0,0993). Từ 005000 → 010000: 0,8870 → 0,8958, **tăng +1,0%** — không giảm, hoàn toàn không chạm điều kiện giảm >50%. Số đã điền vào `fewshot/jedi_gate1.txt` kèm dòng verdict. `jedi_status.txt` KHÔNG sửa vì queue vẫn đang ở phase eval Cổng 2 (status: "EVAL lane d launched"; 4 làn eval xác nhận còn sống sau khi đo lại).
## 2026-11-20 15:29 — JEDI-LITE: đăng ký NGƯỠNG DỪNG SỚM eval Cổng 2 (stopwatch) — ghi TRƯỚC khi watcher chạy
- **Yêu cầu của Young (15:29, 20/11/2026):** theo dõi eval Cổng 2; nếu điều kiện tráo (c) thắng hẳn điều kiện đúng-demo (b) theo ngưỡng chắc chắn dưới đây thì DỪNG eval luôn, không chạy hết 180 episode/điều kiện.
- **Số đo tại thời điểm đăng ký (15:30):** a 1/18 thành công; b 0/17; c 3/19; d 0/17. Ghép cặp b∩c theo khoá (suite, task_id, ep): 17 episode khớp; chỉ-c-thắng 3; chỉ-b-thắng 0.
- **Ngưỡng đã chốt (đăng ký trước, không sửa sau):** watcher kiểm tra mỗi 600 giây trên các episode GHÉP CẶP giữa file b và file c (khoá suite+task_id+ep). Kích hoạt dừng khi MỘT trong hai điều kiện đúng:
(1) Chính: (số episode chỉ-c-thành-công) − (số episode chỉ-b-thành-công) ≥ 7 VÀ (số episode chỉ-b-thành-công) ≤ 1 VÀ số episode ghép cặp ≥ 40.
(2) Chốt chặn: số episode ghép cặp ≥ 150 VÀ tổng thành công c > tổng thành công b (trên tập ghép cặp) VÀ tổng thành công b ≤ 3.
- **Hành động khi kích hoạt:** (a) dừng 4 tiến trình eval bằng PID đối chiếu cmdline (eval_demo.py + đúng file ra từng điều kiện); (b) dừng queue_jedi.sh (đối chiếu cmdline) — BẮT BUỘC vì queue tự relaunch lane bị khựng (vòng chờ lane trong queue_jedi.sh) và sẽ tự chạy score_jedi_gate2.py khi đủ 180 dòng; (c) chấm điểm một phần: score_jedi_gate2.py có `assert len(rows) == 180` cho a/b/c nên KHÔNG chạy được trên file dở dang — watcher tự tính các tiêu chí Cổng 2 chính từ file dở dang theo đúng định nghĩa của script (success từng điều kiện, right-object b so với a, CFR) với mẫu số = số dòng hiện có, ghi rõ "điểm một phần tại N episode"; (d) verdict Cổng 2 ghi FAIL theo tiêu chí b-so-c kèm ghi chú dừng sớm.
- **Khi KHÔNG kích hoạt:** watcher không đụng vào eval; khi cả 4 tiến trình eval tự kết thúc, watcher tự thoát và ghi dòng cuối vào log. Log watcher: `~/sera_v4_experiments/fewshot/jedi_stopwatch.log` (mỗi lần kiểm tra một dòng: giờ, matched, x, y, quyết định). Script: `~/sera_v4_experiments/tools/jedi_stopwatch.py`.
## 2026-11-20 17:02–17:10 — DỪNG TOÀN BỘ THEO LỆNH YOUNG: nhường máy cho lần train lại tập trung
- **Lệnh:** Young ra lệnh 17:02 ngày 20/11/2026: dừng mọi task, tập trung máy cho một lần train lại (train dài hơn, dùng các biện pháp tối ưu lúc train, cân nhắc dropout).
- **Trạng thái eval Cổng 2 tại điểm dừng (~17:04, đếm trực tiếp từ file):** a (zero-shot): 65 dòng, success 1, right_object 2 · b (demo đúng): 65 dòng, success 0, right_object 5 · c (demo tráo): 66 dòng, success 3, right_object 7 · d (demo xáo frame): 65 dòng, success 0, right_object 3. Ghép cặp b∩c theo (suite, task_id, ep): 65 episode khớp, chỉ-c-thắng 3 (cả 3 ở libero_spatial #2, ep 8/11/16), chỉ-b-thắng 0.
- **Cổng 2 KHÔNG có verdict hoàn chỉnh:** eval bị dừng theo lệnh ở khoảng 36% (65–66/180 mỗi điều kiện). Mọi kết luận về Cổng 2 từ dữ liệu này chỉ là điểm một phần, không phải verdict đăng ký.
- **Stopwatch dừng sớm: CHƯA kích hoạt.** Kiểm tra cuối trong log (16:53:31): matched=60, x=3, y=0, decision=continue. Chênh lệch x−y đứng yên ở 3 từ 15:33 tới khi dừng, không tiến gần ngưỡng chính (≥7). Việc dừng hôm nay là lệnh của Young, không phải kích hoạt ngưỡng.
- **Tiến trình đã dừng (theo thứ tự, đối chiếu /proc cmdline từng PID, SIGTERM là đủ cho tất cả):** queue_jedi.sh trước — 5 tiến trình (1537600, 1537611, 1537622, 1537633 là các shell giám sát lane; 2481945 là queue chính); sau đó 4 eval eval_demo.py (1537601 cond a, 1537613 cond b, 1537624 cond c, 1537634 cond d); cuối cùng watcher jedi_stopwatch.py (1555899).
- **Kiểm chứng sau dừng (sau 20 giây):** GPU 0%, VRAM 15 MiB / 16.311 MiB, không tiến trình tính toán GPU, dashboard HTTP 200, cloudflared không bị đụng. Toàn bộ file kết quả, log, checkpoint được giữ nguyên.
## 2026-11-20 17:22 — JEDI-LITE L60K: đăng ký run train dài hạn `sera-v4-fs1-jedi-l60k` (đăng ký TRƯỚC khi chạy)
Lệnh Young: 17:02 — train lại JEDI-lite, train nhiều hơn để hành động sinh ra tốt hơn, không bị nhiễu làm hỏng task; dừng mọi task khác, tập trung lần train này; dùng các biện pháp tối ưu lúc train, cân nhắc dropout. 17:10 — ngân sách chốt 60.000 bước ("để 60k step như cũ"); sau 20k lưu checkpoint và test. 17:11 — test rollout tại 20k chỉ test đúng demo đúng task (điều kiện b) cho tới khi có lệnh test thêm.
### Thiết kế (chỉ đổi cách train; kiến trúc, dữ liệu, init giữ nguyên fs1 + JEDI-lite)
- Run `sera-v4-fs1-jedi-l60k`, script `tools/run_arm_jedi_l60k.sh` (sinh từ run_arm_jedi.sh bởi `tools/gen_run_jedi_l60k.py`; diff so với bản 10k chỉ gồm các thay đổi trong mục này). Init từ `fewshot/init_jedi/pretrained_model`, seed 42, danh sách episode và thứ tự dữ liệu như run 10k, batch hiệu dụng 32 (8 × accum 4).
- 60.000 bước; checkpoint mỗi 5.000 bước (12 checkpoint: 005000–060000).
- LR peak 1e-4, warmup 500, cosine xuống 1e-5 trải trên toàn bộ 60.000 bước.
- Loss JEDI giữ nguyên: λ_pred = λ_cf = 1.0, margin 0.2, instruction dropout 0.5, demo dropout 0.10, distractor p 0.2 k 2. Quest/questfix giữ nguyên như run 10k.
- MỚI 1 — EMA: dùng cơ chế tích hợp sẵn của trainer (`--ema.enable=true --ema.decay=0.999` hằng số, cập nhật mỗi optimizer step). Mỗi checkpoint lưu kèm `pretrained_model_ema/` (bản EMA nạp trực tiếp được) và `training_state/ema_state.pt`. Mọi mốc eval ưu tiên bản EMA.
- MỚI 2 — Dropout 0.1: cờ mới `--policy.v4_reg_dropout=0.1` (mặc định 0.0 trong config, run cũ không đổi hành vi). Áp vào attention + FFN của các khối trainable: FusionBlock, MoEBlock + SwiGLUExpert, ARMoEBlock, DenseBlock, DemoPerceiverBlock (khối đọc demo + khối dự đoán JEDI). Backbone TIPSv2 đóng băng không đụng.
- MỚI 3 — Cắt gradient 1.0: ghi tường minh `--policy.optimizer_grad_clip_norm=1.0`.
### Kết quả kiểm tra code trước khi chạy
- EMA: trainer LeRobot bản này đã có EMAConfig + diffusers EMAModel, tắt mặc định; checkpoint tự lưu bản EMA nạp được. Venv thiếu package `diffusers` → đã cài diffusers 0.39.0 đúng pin pyproject (>=0.38,<0.40; chỉ thêm 3 package: diffusers, importlib-metadata, lazy-importer).
- Dropout: trước khi vá, mọi attention của khối trainable hardcode dropout=0.0 và FFN không có dropout nào → vá bằng `tools/apply_regdrop_patch.py` (cờ `v4_reg_dropout` trong configuration_sera_vla_v3.py + wiring trong modeling_base.py và modeling_sera_vla_v3.py; sao lưu `.bak-regdrop-20261120`). Ghi chú naming: anchor đầu tiên trượt vì thuộc tính branch trong file nguồn viết theo họ "goal" (byte-level) trong khi state dict dùng họ "dual" — đã đọc byte để sửa anchor, đúng kỷ luật inspect nguồn thật.
- FIX 1 (`tools/apply_regdrop_fix1.py`, sao lưu `.bak-regdropfix1-20261120`): bản vá đầu chèn nn.Dropout vào giữa nn.Sequential làm lệch chỉ số Linear (ffn.2 → ffn.3), check_jedi bắt được vì key checkpoint init không còn khớp. Đã sửa: giữ nguyên Sequential (Linear, GELU, Linear), dropout qua thuộc tính riêng `ffn_drop` giữa GELU và Linear thứ hai → key state dict byte-identical với trước vá. Phần SwiGLUExpert vốn an toàn (thuộc tính `drop` riêng; z trả về cho loss chuyên biệt giữ sạch, dropout chỉ áp trên đường xuống `down`).
- Probe `tools/probe_regdrop.py`: PASS — getsource xác nhận wiring; build p=0.1: fusion 9 attn + 3 FFN-dropout, blocks 8 attn + 36 expert-dropout, ar_blocks tương tự, demo_blocks 4 attn + 2, demo_pred_blocks 4 attn + 2, tất cả đúng 0.1; build mặc định toàn 0.0; mọi key của init_jedi đều có trong model (762 key; 171 key thừa thuộc AR head + CC graft cấu-tạo-luôn-nhưng-không-lưu trong dòng init fs1/jedi — có từ trước, không liên quan bản vá); key set giữa hai build 0.0/0.1 trùng nhau (933 key).
- check_jedi.py: ALL JEDI CHECKS PASSED (log fewshot/check_jedi_l60k.log).
- Cắt gradient: ĐÃ CÓ SẴN từ trước — preset của policy config `optimizer_grad_clip_norm = 1.0` (configuration_base.py), run 10k đã train với 1.0; run này chỉ ghi tường minh.
### Smoke 100 bước (run `smoke_jedi_l60k`, thư mục đã đổi tên `smoke_jedi_l60k_done_20261120`)
- Train xong 100/100 bước (17:16:48 → 17:17:54), không NaN trong log; jedi_dd_task sống (các giá trị cuối ~1,41–1,45).
- Log có dòng "EMA enabled: decay=0.999 (constant), update_after_step=0, use_for_eval=True".
- Checkpoint 000100 có đủ pretrained_model + pretrained_model_ema + training_state/ema_state.pt; config lưu kèm ghi v4_reg_dropout = 0.1.
- Trọng số EMA khác trọng số thô thật: 436/933 tensor khác, max abs diff 1,21e-3 (tensor đóng băng trùng hệt, tensor trainable lệch như kỳ vọng sau 100 bước ở decay 0.999).
### Tiêu chí theo dõi
- eval_loss tại các mốc eval 2k và tại 12 checkpoint 5k; jedi_dd_task trong log train; checkpoint EMA là ứng viên eval ưu tiên tại mọi mốc; so sánh cuối với run 10k (eval_loss 0,4598 @10k; Cổng 0 DD 5,91; Cổng 1 Δv_swap 0,896).
### Test mốc 20.000 bước (lệnh Young 17:10 + thu hẹp 17:11) — watcher `tools/jedi_l60k_test20k.py`
Watcher canh thư mục checkpoint của run; khi checkpoint 020000 xuất hiện đầy đủ, watcher thực hiện:
(a) Đo CPU (nice -n 10, `measure_jedi.py` đã sửa): DD_task (kiểu Cổng 0) và Δv_swap (kiểu Cổng 1) trên checkpoint 020000 — cả bản thô (pretrained_model) và bản EMA (pretrained_model_ema); kết quả ghi vào `fewshot/jedi_l60k_ckpt20k_measure.txt`.
(b) Rollout CHỈ điều kiện b (demo đúng task) trên bản EMA 020000: 10 episode × 9 task held-out = 90 episode, đúng 1 lane, `eval_demo.py --episodes 10`, CHỈ bắt đầu khi VRAM trống ≥ 6 GB (train ưu tiên tuyệt đối; chưa đủ thì chờ, thử lại mỗi 10 phút), kết quả `fewshot/results/fs1-jedi-l60k20k-cond-b.jsonl`. Điều kiện a/c/d chờ lệnh Young.
Mục đích: so với run 10k tại cùng các phép đo (DD 5,91; Δv 0,896; Cổng 2 dừng sớm một phần: b 0/65, c 3/66).
## 2026-11-20 17:36–17:40 — DỪNG RUN l60k (bản backbone đóng băng) THEO LỆNH YOUNG: mở khoá lớp backbone
- **Lệnh:** Young ra lệnh 17:36 ngày 20/11/2026: lần train này mở khoá một số lớp vision và text của backbone TIPSv2, research tips trước để chốt lớp nào nên mở. Hệ quả: dừng bản l60k đang chạy với backbone đóng băng hoàn toàn (finetune_vision_last_n_layers=0, finetune_language_last_n_layers=0), khởi chạy lại sau khi research chốt danh sách lớp.
- **Tiến độ tại điểm dừng:** bước ~2239/60000 (khoảng 3,7%). Train PID 1605057 (train_q.py, init init_jedi, output_dir sera-v4-fs1-jedi-l60k). Watcher test mốc 20k CÓ tồn tại: PID 1980684 (jedi_l60k_test20k.py), đã dừng cùng lúc. Cả hai tắt bằng SIGTERM, không cần SIGKILL.
- **Checkpoint:** CHƯA có checkpoint nào của run l60k (mốc lưu đầu tiên 5000 chưa tới, thư mục output chưa được tạo) — không mất checkpoint nào. Toàn bộ file log giữ nguyên, gồm sera-v4-fs1-jedi-l60k.log.
- **Kiểm chứng sau dừng:** GPU 0%, VRAM 15 MiB / 16.311 MiB (mức nền), không còn tiến trình train hay watcher của run, dashboard HTTP 200.
## 2026-11-20 17:41–18:05 — JEDI-LITE L60K MỞ KHOÁ BACKBONE: đăng ký run `sera-v4-fs1-jedi-l60kuf` (đăng ký TRƯỚC khi chạy)
Lệnh Young: 17:36 — dừng run l60k đóng băng và research việc mở khoá backbone; 17:41 — đồng ý mở khoá theo hướng research chốt. Run này thay run `sera-v4-fs1-jedi-l60k` đã dừng ở bước ~2239.
### Lý do mở khoá (Young nêu 17:41)
- TIPSv2 bản B mà ta dùng có năng lực zero-shot chưa tốt.
- Backbone được pretrain trên dữ liệu thế giới thật. Ta chạy mô phỏng. Hai miền thị giác lệch nhau.
- Mở một số lớp cuối của vision cho phép model tự chỉnh đặc trưng thị giác theo miền sim.
### Khuyến nghị research (báo cáo `research_notes/tipsv2-unfreeze-layers-vla-20261120-1037/report.md`)
- Vision: mở 4 block cuối. Text: mở 0 block (đóng băng toàn bộ). LR backbone = 0,1 × LR head. Đóng băng 3.000 bước đầu rồi mới mở.
- Kỳ vọng trung thực: mức tăng vài điểm phần trăm, không phải hàng chục điểm.
- Tiền lệ nội bộ: probe F1 mở vài lớp cuối ở mốc 10k được 7/70 so với 5/70 đóng băng. Chênh lệch nằm trong nhiễu ở n=70 và dưới cổng 9/70 đã chốt. Ghi nhận FAIL. Run này là phép thử dài hạn có kiểm chứng tại mốc 20k, không phải kỳ vọng chắc thắng.
### Thiết kế (giữ nguyên toàn bộ run l60k, chỉ cộng cơ chế mở khoá)
- Run `sera-v4-fs1-jedi-l60kuf`, script `tools/run_arm_jedi_l60kuf.sh` (sinh bởi `tools/gen_run_jedi_l60kuf.py`; diff so với run_arm_jedi_l60k.sh chỉ gồm: tên run, entry train_uf.py thay train_q.py, và 4 cờ v4_uf_* dưới đây). Init init_jedi, seed 42, batch hiệu dụng 32 (8 × accum 4), 60.000 bước, checkpoint mỗi 5.000 kèm EMA 0.999, loss JEDI nguyên vẹn (λ 1.0/1.0, margin 0.2, instruction dropout 0.5, demo dropout 0.10, distractor 0.2 k=2), v4_reg_dropout 0.1, cắt gradient 1.0.
- Nhóm head (toàn bộ phần trainable cũ): peak 1e-4, warmup 500, cosine xuống 1e-5 trên 60k, như run trước.
- Ánh xạ block (đã kiểm chứng bằng probe trên module thật `tips.vision_encoder`, file HF remote `image_encoder.py`): vision encoder có thuộc tính `blocks` là ModuleList 12 block (mỗi block 7.089.408 tham số), `patch_embed` 452.352 tham số, `norm` là LayerNorm cuối 1.536 tham số, `head` là Identity (không có projection riêng). Bốn block mở khoá = chỉ số 0-based 8–11 = block 9–12 theo đếm 1-based. Norm cuối đi cùng nhóm block 12. Text encoder (109.632.000 tham số) đóng băng toàn bộ.
- Lịch mở khoá: bước 0–3.000 backbone giữ đóng băng (requires_grad=False). Tại bước 3.000 scheduler bật requires_grad cho 58 tensor của 4 block + norm. LR nhóm backbone ramp tuyến tính 500 bước (3.000–3.500) theo cùng hệ số lịch của head tại bước đó.
- LLRD hệ số γ=0,75 tính từ block trên cùng: block 12 = 1,0e-5 · block 11 = 7,5e-6 · block 10 = 5,625e-6 · block 9 = 4,21875e-6. Các LR này là đỉnh; cosine decay cùng lịch 60k như head (xuống 10% đỉnh ở cuối).
- Cơ chế cài trong đường train thật: cờ config mới `v4_uf_vision_blocks=4`, `v4_uf_step=3000`, `v4_uf_warmup_steps=500`, `v4_uf_gamma=0.75` (mặc định 0/tắt; run cũ không đổi hành vi; `tools/apply_unfreeze_patch.py`, sao lưu `.bak-uf-20261120`). Param group UF dựng ngay từ đầu trong `get_optim_params` (mỗi block một group, khóa đánh dấu `v4_uf_block`). Entry `tools/train_uf.py` bọc `make_optimizer_and_scheduler` và thay scheduler bằng LambdaLR theo từng group. Head dùng lại đúng lambda cosine của trainer gốc. Không có bước chạy tay chen giữa.
### Số tham số (ĐÍNH CHÍNH số cũ)
- Số trainable của run đóng băng ghi trong các ghi chú trước là ~92M. Số đó SAI. Log train của chính run l60k ghi `num_learnable_params=146462738` (tổng tham số 342.411.026). Số đúng của nhóm head = 146.462.738.
- Nhóm UF cộng thêm 28.359.168 (4 × 7.089.408 + 1.536 của norm). Tổng trainable sau bước 3.000 = 174.821.906. Text đóng băng = 0 tham số trainable (đã kiểm chứng: không tensor text nào xuất hiện trong bất kỳ param group nào).
### Kiểm tra demo-store và eval (điểm kỹ thuật bắt buộc)
- Train lấy đặc trưng demo từ `demo_store.pt` đã mã hoá sẵn bằng encoder đóng băng (đường `_demo_load()` của model). Đích keyframe của loss JEDI lấy từ `jedi_store.pt`, cũng là đặc trưng đóng băng.
- eval_demo.py lấy demo cùng đường: nạp demo_store.pt và gọi `_demo_load()`. Quan sát trực tiếp (live observation) được mã hoá trực tiếp bằng vision encoder ở CẢ train và eval.
- Kết luận: đường demo lúc train và lúc eval nhất quán với nhau đúng như run trước. Bất đối xứng duy nhất nằm trong cả hai phía như nhau: demo dùng đặc trưng đóng băng có sẵn, quan sát mã hoá trực tiếp. Giữ nguyên giao thức, không tự đổi. Đích keyframe jedi_store giữ nguyên đặc trưng đóng băng làm neo ổn định, không đổi.
### Hai fix phát sinh trong lúc cài (check_uf bắt được)
- FIX 1 (`tools/apply_unfreeze_fix1.py`, sao lưu `.bak-uffix1-20261120`): bản vá đầu chỉ sửa cổng grad trong `encode_observation` của modeling_base.py. Nhưng model train thật là SERAVLAV3Model. Class này GHI ĐÈ `encode_observation` trong modeling_sera_vla_v3.py với cổng grad riêng. Sau flip, gradient không tới được vision. Đã áp cùng thay đổi vào bản ghi đè.
- FIX 2 (`tools/apply_unfreeze_fix2.py`, sao lưu `.bak-uffix2-20261120`): smoke B đo VRAM sau flip = 14.883 MiB / 16.311 MiB, vượt ngưỡng 14 GB đã đăng ký. Đã bật gradient checkpointing CHỈ cho 4 block mở khoá: đường grad đi qua hàm mới `_vision_forward_grad` (chạy tay prepare_tokens → blocks → norm → head; detach + requires_grad tại biên block đầu tiên mở khoá vì mọi thứ phía trước đều đóng băng; backbone bị ép eval mode nên không có dropout đang hoạt động, phép tính lại trong backward là chính xác). VRAM sau flip còn 8.707 MiB. Tốc độ sau flip ~1,48 bước/s (có checkpointing) so với 1,67 bước/s (không checkpointing) và 2,33 bước/s (giai đoạn đóng băng).
### Kết quả kiểm chứng trước khi chạy
- Probe cấu trúc TIPSv2 trên tiến trình thật: 12 block × 7.089.408; vision tổng 86.316.288; 4 block cuối + norm = 28.359.168; text tổng 109.632.000.
- `tools/check_uf.py`: ALL UF CHECKS PASSED — (0) mã nguồn tiến trình nạp thật chứa đủ đường UF; (1) param group đúng từng block: số lượng, LR đỉnh LLRD, rời nhau, không có text; lúc dựng mọi tham số TIPSv2 đều đóng băng; (2) forward/backward trước flip: loss hữu hạn, jedi_dd_task sống, gradient vision + text đều None, gradient head có thật; (3) scheduler tổng hợp 60k bước: LR head trùng hệt scheduler gốc tại mọi điểm mẫu, LR UF = 0 trước bước 3.000, flip xảy ra đúng bước 3.000, ramp đạt 0,5 × hệ số tại giữa khoảng, từ bước 3.500 lambda UF = lambda head; (4) forward/backward sau flip: gradient chảy vào block idx 8–11 + norm cuối, block idx 0 và text vẫn không gradient.
- `tools/check_jedi.py`: ALL JEDI CHECKS PASSED (sau cả ba bản vá UF).
- Smoke A (`smoke_jedi_l60kuf`, mốc mở khoá 3.000 không chạm tới): 100/100 bước, loss hữu hạn, log có jedi_dd_task, checkpoint 000100 đủ bản thô + EMA + ema_state.pt, toàn bộ 323 tensor TIPSv2 bit-identical với init, VRAM 7.163 MiB.
- Smoke B (`smoke_jedi_l60kuf_b`, ép mốc mở khoá bước 50, warmup 10): dòng log "UF UNFREEZE at scheduler step 50" xuất hiện trong train thật; sau 100 bước, cả 4 block idx 8–11 dịch chuyển (14/14 tensor mỗi block; tensor qkv block 11 lệch tối đa 2,65e-05, 99,98% phần tử khác init), norm cuối dịch chuyển; block idx 0 + patch_embed + toàn bộ text (163 tensor) bit-identical với init; VRAM sau flip 8.707 MiB.
### Tiêu chí theo dõi
- Như run l60k: eval_loss tại các mốc eval 2k và tại 12 checkpoint 5k; jedi_dd_task trong log train; checkpoint EMA là ứng viên eval ưu tiên tại mọi mốc; so sánh cuối với run 10k (eval_loss 0,4598 @10k; Cổng 0 DD 5,91; Cổng 1 Δv_swap 0,896) và với mốc 20k của chính run này.
### Test mốc 20.000 bước — watcher `tools/jedi_l60kuf_test20k.py`
Như watcher của run l60k, đổi tên run và file kết quả:
(a) Đo CPU (nice -n 10, `measure_jedi.py`): DD_task và Δv_swap trên checkpoint 020000, cả bản thô và bản EMA; ghi vào `fewshot/jedi_l60kuf_ckpt20k_measure.txt`.
(b) Rollout CHỈ điều kiện b (demo đúng task) trên bản EMA 020000: 10 episode × 9 task held-out = 90 episode, 1 lane, chỉ bắt đầu khi VRAM trống ≥ 6.144 MiB (train ưu tiên tuyệt đối), kết quả `fewshot/results/fs1-jedi-l60kuf20k-cond-b.jsonl`. Điều kiện a/c/d chờ lệnh Young.
## 2026-11-20 18:04–18:37 — SỰ CỐ LAUNCH run l60kuf: shell kẹt 30 phút vì đường dẫn tương đối + `&` (đã sửa, train đang chạy)
- **Hiện tượng:** lệnh launch đầu (18:04) chạy watcher thành công nhưng không sinh tiến trình train. Kiểm tra 18:11–18:13 và 18:34: GPU 0%, chưa có file `sera-v4-fs1-jedi-l60kuf.log`, chưa có thư mục output. Shell launch (PID 2463513) vẫn sống, kẹt ở `do_wait`.
- **Nguyên nhân (đã chứng minh bằng log lệnh nền trả về):** lệnh launch ghép `cd ~/sera_v4_experiments && setsid nohup python watcher ... & sleep 3; cat ...; bash tools/run_arm_jedi_l60kuf.sh`. Toán tử `&` gắn toàn bộ danh sách `cd && setsid ...` thành job nền trong subshell, nên `cd` không đổi thư mục của shell chính. Shell chính vẫn ở `$HOME`, lệnh `bash tools/run_arm_jedi_l60kuf.sh` (đường dẫn tương đối) chết với lỗi nguyên văn: `bash: tools/run_arm_jedi_l60kuf.sh: No such file or directory`, exit 127. Lỗi đi vào pipe SSH đã bị cắt (exec nền quá 121 giây) nên không ai thấy. Shell chính sau đó kẹt ở `do_wait` chờ job nền (watcher) thay vì thoát, kéo dài ~30 phút.
- **Bài học:** lệnh launch tách phiên phải là lệnh ĐƠN với đường dẫn TUYỆT ĐỐI và mọi fd chuyển vào file, không dùng chuỗi `cd ... && ... &` ghép nhiều bước.
- **Sửa (18:37):** SIGTERM shell kẹt 2463513 (watcher 2463515 ở session riêng nên sống, vẫn đang chờ checkpoint 020000). Launch lại bằng lệnh đơn: `setsid nohup bash ~/sera_v4_experiments/tools/run_arm_jedi_l60kuf.sh > ~/sera_v4_experiments/fewshot/l60kuf_launch.out 2>&1 < /dev/null &`. In ra `launched sera-v4-fs1-jedi-l60kuf`.
- **Kiểm chứng train thật (18:39):** train PID 2465006, cmdline đủ cờ (`v4_uf_vision_blocks=4 v4_uf_step=3000 v4_uf_warmup_steps=500 v4_uf_gamma=0.75`, `--ema.decay=0.999`, `--steps=60000`); `num_learnable_params=146462738` lúc khởi động (giai đoạn đóng băng; sau bước 3000 thành 174.821.906); bước 220/60000, loss 2,269 (hữu hạn, đang giảm: 2,397 → 2,289 → 2,269); jedi_dd_task 1,903 trong log; tốc độ 2,31–2,35 bước/giây (giai đoạn đóng băng); GPU 100%, VRAM 7.165 MiB. ETA thực (tốc độ sau flip đo ở smoke B ~1,48 bước/giây): khoảng 11 giờ từ lúc launch, xong khoảng 05:40 ngày 21/11; mốc 20k tới khoảng 22:10 tối nay. (ETA trainer tự hiển thị ~7 giờ là lạc quan vì nó ngoại suy tốc độ giai đoạn đóng băng.)
## 2026-11-20 18:42–18:47 — Dashboard /train trỏ lại sang run l60kuf
- **Việc:** trang `/train` của dashboard (`~/sera_v4_dashboard/server.py`) vẫn theo run cũ đã dừng `sera-v4-fs1-jedi-l60k`; đã trỏ lại sang run mới `sera-v4-fs1-jedi-l60kuf` (train PID 2465006, khởi chạy 18:37). Script vá: `tools/apply_dashboard_trainpage_uf.py` (bản local + bản trên máy trong `~/sera_v4_dashboard/`), sao lưu `server.py.bak-trainpageuf-20261120`, 13 thay thế exact-match có assert, `py_compile` đạt.
- **Các chỗ đã đổi:** (1) `L60K_NAME` → `sera-v4-fs1-jedi-l60kuf` — kéo theo đường log chính xác `sera_v4_experiments/sera-v4-fs1-jedi-l60kuf.log`, thư mục checkpoint `sera_v4_experiments/sera-v4-fs1-jedi-l60kuf`, một thư mục đo của panel test-20k và tên run ở footer; (2) đường rollout panel test-20k → `fewshot/results/fs1-jedi-l60kuf20k-cond-b.jsonl` (file watcher `jedi_l60kuf_test20k.py` sẽ ghi); (3) các matcher mờ nới từ `"l60k"` được siết thành `"l60kuf"` trong `_l60k_find_log`, `_l60k_ckpt_root`, `_l60k_measure`, `_l60k_proc_running` — file của run cũ (log, file đo test-20k cũ) không thể lọt vào trang của run mới; scan thư mục checkpoint bỏ qua các thư mục `smoke*` (smoke l60kuf nằm cùng EXP và có thư mục con dạng số); (4) `_l60k_proc_running` nhận thêm `train_uf` (trainer của run mới là `train_uf.py`, bản cũ không khớp mẫu nào); (5) tiêu đề/H1/dòng mô tả ghi tên run mới + cấu hình mở khoá 4 block vision cuối, text đóng băng. Bố cục và tính năng giữ nguyên 100%: thanh tiến độ có vạch đỏ 20k, biểu đồ loss/DD_task (đường ngưỡng Cổng 0 = 1,5)/LR, dải 12 checkpoint, panel test-20k, tự làm mới 60 giây. Không đổi ngưỡng hay số liệu nào.
- **Khởi động lại server đúng kỷ luật:** kiểm chứng `/proc/1619323/cmdline` = `python3 server.py`, chỉ kill đúng PID 1619323; vòng lặp `run_server.sh` tự dựng lại server mới PID 2684739. Không đụng train PID 2465006 và watcher PID 2463515 (kiểm chứng còn sống sau restart).
- **Kiểm chứng trang (18:47):** `curl` nội bộ `/train` trả HTTP 200; trang hiển thị bước **720 / 60.000 (1,2%)** trong khi log train thật ở bước 727 — khớp, vì trang đọc dòng metric mỗi 10 bước (720 là mốc metric gần nhất); tên file log trên trang: `sera-v4-fs1-jedi-l60kuf.log`; badge trạng thái **ĐANG CHẠY**; dải checkpoint 12 ô đều `pending` (đúng, checkpoint đầu ở bước 5.000); panel test-20k hiện trạng thái chờ mốc 20.000. URL tunnel giữ nguyên: https://exports-trends-centres-obligations.trycloudflare.com/train
## 2026-11-20 20:53–21:02 — INFER THỬ checkpoint 010000 của run l60kuf theo lệnh Young (1 task, điều kiện b, có video)
- **Lệnh của Young (20:53):** lấy checkpoint bước 10.000 ra chạy infer thử 1 task bất kỳ, gửi video về xem model chạy thế nào.
- **Checkpoint đã dùng:** bản EMA `sera-v4-fs1-jedi-l60kuf/checkpoints/010000/pretrained_model_ema` (1,3 GB; trainer cấu hình use_for_eval=True cho EMA). Thư mục 010000 đủ cả raw + EMA + training_state.
- **An toàn cho train:** VRAM trống đo trước khi chạy 6.368 MiB (≥ ngưỡng 6.144 MiB), chạy 1 lane, nice -n 10. Infer dùng đỉnh 2.658 MiB VRAM. Sau infer: train PID 2465006 vẫn sống, bước 13.296/60.000, VRAM trở về 9.483 MiB dùng / 6.368 MiB trống.
- **Harness:** `tools/eval_demo_video_ro.py` — bản sao của `eval_demo_video.py` (harness video đã dùng cho fs1) cộng khối detect_first_grasp chép nguyên từ `eval_demo.py` để có chỉ số gắp đúng vật; script vá `tools/patch_eval_video_ro.py`, file gốc không bị sửa.
- **Task:** libero_spatial #2 (dataset task_index 38), instruction "pick up the black bowl from table center and place it on the plate", điều kiện b, demo = episode 1283 (episode nhỏ nhất của cùng task), seed 0, 3 episode (ep 0/1/2 = init state 0/1/2).
- **Kết quả: 0/3 success.** Cả 3 episode đều fail, hết 280 bước (tối đa), first_grasped = null ở cả 3 — model không gắp được vật nào, kể cả vật đích akita_black_bowl_1; right_object = false cả 3. Nhất quán với mặt bằng đã biết ở mốc 10k (Cổng 2 của run JEDI 10k đóng băng cũng ~0 success).
- **Video:** 3 file trên máy `fewshot/l60kuf_ckpt10k_spatial2_ep{0,1,2}.mp4` (141 frame, 360×360, ghi bằng cv2 do máy không có imageio — cùng đường ghi với các video fs1 trước). Đã kéo về local đủ cả 3: `~/workspace/your_files/l60kuf_ckpt10k_infer_ep{1,2,3}.mp4` (593.761 / 597.435 / 591.251 byte, khớp kích thước nguồn, ffprobe đạt: mpeg4, 360×360, 141 frame, 14,1 giây) + bản sao episode đầu tại `l60kuf_ckpt10k_infer.mp4`. Đã trích frame giữa episode 1 kiểm chứng bằng mắt: robot hiện rõ, đang cử động.
- **Log đầy đủ trên máy:** `fewshot/l60kuf_ckpt10k_infer.log` (có dòng RESULT json cho từng episode).
## 2026-11-20 21:07–21:15 — INFER THỬ checkpoint 010000 (EMA) run l60kuf, task THỨ HAI: libero_goal #0
- **Lệnh của Young (21:07):** sau khi xem task spatial #2 (0/3), chạy một task khác xem model thế nào.
- **Task:** libero_goal #0 (dataset task_index 19), instruction NGUYÊN VĂN do env/harness trả ra (TASKDESC): "open the middle drawer of the cabinet". LƯU Ý: khác với mô tả "open the top drawer and put the bowl inside" trong brief ban đầu — instruction thật đã đối chiếu từ env khi chạy và ghi đúng nguyên văn ở đây.
- **Thiết lập:** checkpoint EMA `sera-v4-fs1-jedi-l60kuf/checkpoints/010000/pretrained_model_ema` (như lần trước), harness `tools/eval_demo_video_ro.py --task-index 3`, điều kiện b, demo = episode 399 (episode nhỏ nhất của ds=19, do harness tự chọn), seed 0, 3 episode, 1 lane, nice -n 10.
- **An toàn cho train:** VRAM trống trước khi chạy 6.368 MiB (≥ ngưỡng 6.144 MiB); đỉnh VRAM infer ≈ 2.584 MiB (tổng VRAM dùng đo giữa episode 1 là 12.067 MiB, train chiếm 9.483 MiB). Sau infer: train PID 2465006 vẫn sống, bước 14.244/60.000 (21:13), VRAM trở về mức train-only.
- **Kết quả: 0/3 success.** Cả 3 episode chạy hết 300 bước (tối đa của suite goal):
- ep 0: model GẮP ĐƯỢC bát đen akita_black_bowl_1 ở bước 64 (first_grasped ghi nhận) — nhưng đó không phải việc của task; ngăn kéo giữa không mở, success=False. Frame cuối: tay vẫn ở khu vực bát giữa bàn.
- ep 1: không gắp vật nào (first_grasped = null). Frame cuối: tay với tới vùng tay nắm ngăn kéo của tủ nhưng ngăn kéo không mở, success=False.
- ep 2: như ep 1 — không gắp vật nào, tay ở vùng tủ, ngăn kéo không mở, success=False.
- Chỉ số gắp đúng vật không áp dụng: targets = [] vì goal của task là trạng thái ngăn kéo chứ không phải vật thể, nên right_object = null ở cả 3 episode.
- **Video:** trên máy `fewshot/l60kuf_ckpt10k_goal0_ep{0,1,2}.mp4` (151 frame, 360×360, 15,1 giây). Đã kéo về local đủ 3: `~/workspace/your_files/l60kuf_ckpt10k_infer_goal0_ep{1,2,3}.mp4` (586.629 / 429.876 / 421.776 byte, khớp kích thước nguồn từng byte, ffprobe đạt: mpeg4, 360×360, 151 frame). Đã trích frame đầu/giữa/cuối kiểm chứng bằng mắt.
- **Log đầy đủ trên máy:** `fewshot/l60kuf_ckpt10k_infer_goal0.log` (có RESULT json từng episode).
## 2026-11-20 23:22–23:28 — DỪNG rollout 20k điều kiện b theo lệnh Young 23:22
- **Lệnh của Young (23:22):** dừng rollout lại để lấy GPU chạy infer task trong tập train.
- **Số chốt tại điểm dừng lần 1 (trước SIGTERM):** 61/90 episode, success 0/61, gắp đúng vật 3/61, gắp bất kỳ vật nào 7/61.
- **Diễn biến dừng:** kiểm chứng /proc/630064/cmdline đúng eval_demo.py (EMA 020000, condition b, seed 0) → SIGTERM 630064, thoát sau ~14 giây (không cần SIGKILL). Watcher 2463515 TỰ KHỞI CHẠY LẠI eval mới (phase B attempt 2, PID 1448996; watcher log 23:23:55 ghi "phase B eval exited code=-15, rows=61/90" rồi "phase B launch attempt 2") → SIGTERM watcher 2463515 (thoát ngay), SIGTERM eval 1448996 (thoát sau ~4 giây, không cần SIGKILL).
- **Số chốt CUỐI CÙNG trong file kết quả:** 64/90 episode (attempt 2 chạy thêm 3 episode trước khi bị dừng hẳn), success 0/64, gắp đúng vật 3/64, gắp bất kỳ vật nào 8/64. File: fewshot/results/fs1-jedi-l60kuf20k-cond-b.jsonl. Rollout KHÔNG có verdict đủ 90 episode — dừng ở 71% theo lệnh Young.
- **Pha A không bị ảnh hưởng:** file đo fewshot/jedi_l60kuf_ckpt20k_measure.txt còn nguyên (4.582 byte, mốc 22:35): RAW 020000 DD_task 34,872 / Δv_swap 0,6648; EMA 020000 DD_task 28,777 / Δv_swap 0,7990.
- **Sau dừng:** không còn tiến trình eval hay watcher nào của rollout; train PID 2465006 còn sống, bước 23.664/60.000 (39,44%), tốc độ trở lại 1,46 step/s; VRAM 9.483 MiB = mức train-only. GPU đã trống cho infer task trong train.
## 2026-11-20 23:20–23:31 — INFER THỬ checkpoint 010000 (EMA) run l60kuf, task THỨ BA: libero_goal #3 (TASK TRONG TẬP TRAIN, 1 episode)
- **Lệnh của Young (23:19):** chạy thử một task CÓ TRONG TẬP TRAIN để so sánh với hai task held-out đã chạy (spatial #2: 0/3; goal #0 held-out: 0/3). Cập nhật 23:20: chỉ chạy 1 episode duy nhất.
- **Task:** libero_goal #3 — nằm trong 21 task train của chương trình few-shot (held-out goal là #0/#4/#9). Dataset task_index 12 (theo `env_dataset_task_mapping.json` đã kiểm chứng 40/40: goal#3 offset 2 + base 10). Instruction nguyên văn do env/harness trả ra (TASKDESC): "open the top drawer and put the bowl inside" — khớp kỳ vọng trong brief.
- **Harness:** bản sao `tools/eval_demo_video_ro_goal3.py` — chép nguyên `eval_demo_video_ro.py`, chỉ thay `HELD_OUT = [("libero_goal", 3)]` và `DS_IDX = {("libero_goal", 3): 12}` vì bản gốc khoá cứng 9 task held-out; file gốc không bị sửa. Điều kiện b, demo = episode 382 (episode nhỏ nhất của ds=12 trong demo_store, harness tự chọn theo quy ước chống rò rỉ; ds=12 có 36 episode trong store), seed 0, ep 0 (init state 0), 1 episode, 1 lane, nice -n 10.
- **Checkpoint:** EMA `sera-v4-fs1-jedi-l60kuf/checkpoints/010000/pretrained_model_ema` (như hai lần trước).
- **Điều kiện GPU / thời gian chờ (~7 phút):** lúc 23:21 rollout 20k (eval PID 630064) còn chạy, VRAM trống ~4,2 GB → chờ theo cổng. Young ra lệnh dừng rollout 20k lúc 23:22; eval 630064 bị kill nhưng watcher tự chạy lại eval mới PID 1448996 lúc 23:23:55 (phase B attempt 2, từ row 61/90); sau đó watcher cũng bị dừng và eval mới tắt. Lúc 23:28: không còn tiến trình eval nào, VRAM trống 6.828 MiB (train-only dùng 9.483/16.311 MiB) → đủ cổng ≥ 6 GB mới khởi chạy infer (PID 1544506, 23:28:30).
- **Kết quả episode duy nhất: FAIL.** success=False, chạy hết 300 bước (tối đa của suite goal), first_grasped = null (không gắp được vật nào, kể cả bát đích akita_black_bowl_1), right_object = false. Soi frame đầu/giữa/cuối của video: tay có di chuyển về phía khu vực tủ/bàn nhưng frame cuối ngăn kéo trên vẫn đóng và bát vẫn nguyên trên bàn — không đạt mốc phụ nào (không mở được ngăn kéo, không gắp được bát, không đặt được bát vào ngăn kéo).
- **Đối chiếu:** trên task TRAIN, checkpoint 10k vẫn 0/1 — cùng mặt bằng 0 success như hai task held-out ở mốc 10k; chênh lệch train/held-out chưa xuất hiện tại checkpoint này (n=1, chỉ là lượt xem thử theo yêu cầu của Young, không phải verdict).
- **Video:** trên máy `fewshot/l60kuf_ckpt10k_goal3_ep0.mp4` (397.860 byte, 151 frame, 360×360, 15,1 giây). Đã kéo về local: `~/workspace/your_files/l60kuf_ckpt10k_infer_goal3_ep1.mp4` — khớp kích thước nguồn từng byte, ffprobe đạt (mpeg4, 360×360, 151 frame, 15,1 giây). Đã trích frame đầu/giữa/cuối kiểm chứng bằng mắt.
- **Log đầy đủ trên máy:** `fewshot/l60kuf_ckpt10k_infer_goal3.log` (có dòng RESULT json).
- **Sau infer:** train PID 2465006 vẫn sống, bước 23.960/60.000 (lúc 23:31), VRAM trở về mức train-only 9.483 MiB.
- **Rollout 20k (bị Young dừng giữa chừng):** chốt ở 64/90 episode, 0 success, 3 right_object — không đủ 90 episode nên không có verdict mốc 20k.
## 2026-11-20 23:36–23:45 — INFER THỬ checkpoint 010000 (EMA) run l60kuf, task libero_goal #3 (TASK TRONG TẬP TRAIN): thêm 9 episode (ep 1–9)
- **Lệnh của Young (23:34):** chạy lại thêm vài episode để kiểm chứng kết quả 0/1 quá tệ của ep 0 đã chạy lúc 23:28–23:31.
- **Thiết lập (giữ nguyên lần trước):** harness `tools/eval_demo_video_ro_goal3.py`, checkpoint EMA `sera-v4-fs1-jedi-l60kuf/checkpoints/010000/pretrained_model_ema`, điều kiện b, demo = episode 382, seed 0, 1 lane, nice -n 10. VRAM trống trước khi chạy 6.368 MiB (train-only dùng 9.483/16.311 MiB) → đủ cổng ≥ 6 GB. Runner `/tmp/run_goal3_more.sh` trên máy; log đầy đủ: `fewshot/l60kuf_ckpt10k_infer_goal3_more.log` (RESULT json từng episode).
- **Kết quả 9 episode mới: 0/9 success**, tất cả chạy hết 300 bước (tối đa suite goal):
- ep 1, 2, 4, 5, 6, 8, 9: first_grasped = null — không gắp được vật nào.
- ep 3: gắp được **plate_1 ở bước 188 — SAI vật** (đích là akita_black_bowl_1), right_object = false.
- ep 7: gắp được **plate_1 ở bước 185 — SAI vật**, right_object = false.
- Gắp đúng bát akita_black_bowl_1: **0/9**. Mở được ngăn kéo trên: **0/9** (frame cuối của cả 9 video: ngăn kéo tủ vẫn đóng). Đặt bát vào ngăn kéo: **0/9**.
- **Tổng hợp cả 10 episode của task goal #3 tại checkpoint EMA 010000 (gồm ep 0):** success **0/10**, mở được ngăn kéo **0/10**, gắp đúng bát **0/10**, gắp được bất kỳ vật nào 2/10 (cả hai lần đều là plate_1 — sai vật). Kết luận: kết quả 0/1 của ep 0 KHÔNG phải ngoại lệ; checkpoint 10k nhất quán không làm được task train này.
- **Video:** trên máy `fewshot/l60kuf_ckpt10k_goal3_ep{1..9}.mp4`. Đã kéo về local đủ 9 file: `~/workspace/your_files/l60kuf_ckpt10k_infer_goal3_ep{2..10}.mp4` (episode index i → ep{i+1}; kích thước khớp nguồn từng byte: 569.063 / 529.274 / 585.638 / 380.985 / 382.960 / 571.787 / 577.862 / 406.451 / 382.600 byte; ffprobe đạt: mpeg4, 360×360, 151 frame, 15,1 giây). Đã trích frame cuối của cả 9 video + frame tại bước gắp của ep 3 và ep 7 để kiểm chứng bằng mắt.
- **Sau khi chạy:** train PID 2465006 vẫn sống, bước 24.995/60.000 lúc 23:46 — không bị ảnh hưởng.
## 2026-11-20 23:55 – 2026-11-21 00:05 — INFER THỬ checkpoint 020000 (EMA) run l60kuf, task libero_goal #3 (TASK TRONG TẬP TRAIN): 10 episode, so sánh trực tiếp với mốc 010000
- **Lệnh của Young (23:54):** chạy goal #3 bằng checkpoint 20k để so sánh trực tiếp với cùng task tại mốc 10k (0/10 success).
- **Thiết lập (giữ y hệt lượt mốc 10k, chỉ đổi checkpoint):** harness `tools/eval_demo_video_ro_goal3.py`, checkpoint EMA `sera-v4-fs1-jedi-l60kuf/checkpoints/020000/pretrained_model_ema` (kiểm chứng lại trước khi chạy: đủ `pretrained_model_ema` + `training_state`), điều kiện b, demo = episode 382, seed 0, episode index 0–9 (cùng dải với lượt 10k), 1 lane, nice -n 10. Runner `/tmp/run_goal3_20k.sh` trên máy; log đầy đủ: `fewshot/l60kuf_ckpt20k_infer_goal3.log` (RESULT json từng episode).
- **Điều kiện GPU:** VRAM trống trước khi chạy 6.368 MiB (train-only dùng 9.483/16.311 MiB) → đủ cổng ≥ 6 GB. Train PID 2465006 không bị đụng.
- **Kết quả 10 episode tại mốc 020000: success 1/10.**
- ep 0–6, 8, 9: FAIL, chạy hết 300 bước, first_grasped = null (không gắp được vật nào), frame cuối: ngăn kéo tủ vẫn đóng, bát vẫn nguyên trên bàn.
- **ep 7: SUCCESS ở 170 bước** — gắp đúng akita_black_bowl_1 ở bước 129 (right_object = true); frame cuối kiểm chứng bằng mắt: ngăn kéo trên đã mở, bát đã vào trong ngăn kéo.
- Tổng hợp mốc 20k: success **1/10**, mở được ngăn kéo **1/10**, gắp đúng bát **1/10**, gắp được bất kỳ vật nào **1/10** (không còn gắp sai vật).
- **So sánh thẳng mốc 20k vs mốc 10k (cùng task, cùng episode index 0–9):** success 1/10 vs 0/10; mở ngăn kéo 1/10 vs 0/10; gắp đúng bát 1/10 vs 0/10; gắp bất kỳ vật 1/10 vs 2/10 (mốc 10k cả hai lần đều gắp sai plate_1 ở ep 3 bước 188 và ep 7 bước 185). Episode khác biệt rõ nhất: **ep 7** — mốc 10k gắp sai plate_1, mốc 20k hoàn thành trọn task (mở ngăn kéo → gắp đúng bát → đặt vào trong, xong ở 170/300 bước). Chênh lệch còn nhỏ (1 episode) và nằm trong vùng nhiễu ở n=10, nhưng đây là success đầu tiên của chương trình few-shot trên task này và hành vi sai vật biến mất.
- **Video:** trên máy `fewshot/l60kuf_ckpt20k_goal3_ep{0..9}.mp4`. Đã kéo về local đủ 10 file: `~/workspace/your_files/l60kuf_ckpt20k_infer_goal3_ep{1..10}.mp4` (episode index i → ep{i+1}; kích thước khớp nguồn từng byte: 407.202 / 401.850 / 399.824 / 409.511 / 416.183 / 468.347 / 406.969 / 306.522 / 413.862 / 412.038 byte; ffprobe đạt: mpeg4, 360×360, 151 frame — riêng ep 8 (episode 7, success) 86 frame vì kết thúc sớm ở 170 bước). Đã trích frame cuối cả 10 video + frame giữa của ep 7 kiểm chứng bằng mắt.
- **Sau khi chạy:** train PID 2465006 vẫn sống, bước 26.637/60.000 (lúc ~00:10 ngày 21/11), VRAM trở về mức train-only 9.483 MiB — không bị ảnh hưởng.
## 2026-11-21 00:22–01:00 — QUÉT 30 TASK FEW-SHOT × 3 EPISODE TẠI CHECKPOINT 025000 (EMA) run l60kuf — CHỐT SỚM theo lệnh Young (00:56)
- **Lệnh của Young (00:22):** quét toàn bộ 30 task few-shot (21 train + 9 held-out), mỗi task 3 episode (index 0–2), seed 0, điều kiện b, checkpoint EMA mới nhất = 025000. Không gồm 10 task LIBERO-10 (kho demo không có demo). Young dặn (00:27): không kéo video về local trừ khi được yêu cầu; chỉ báo tiến triển bằng số liệu.
- **Thiết lập:** runner `fewshot/sweep25k/run_sweep25k.sh` trên máy, harness `tools/eval_demo_video_ro_sweep.py`, thứ tự spatial0–9 → goal0–9 → object0–9 (task-index 0–29), 1 lane, nice -n 10, cổng VRAM ≥ 6 GB. Log: `fewshot/sweep25k/sweep25k.log`.
- **DỪNG (00:56–01:00):** Young lệnh chốt và dừng để chạy lại các task failed trên checkpoint 30k. Runner bash PID 2922866 là trưởng nhóm phiên riêng (PGID 2922866); SIGTERM cả nhóm (runner + eval python 3464010 đang chạy goal3 ep1). Kiểm chứng sau dừng: runner và eval đều gone; sau 30 giây không tiến trình eval mới, log đứng yên ở 1.102 dòng / 40 RESULT — không có cơ chế tự chạy lại (lượt này không có watcher). Train PID 2465006 (nhóm riêng) không bị đụng.
- **Số chốt tại điểm dừng: 40/90 episode (44,4%), 14/30 task có kết quả. Success tổng 17/40 (42,5%) — train 17/28 (60,7%), held-out 0/12 (0%).**
- Spatial #0 (train) 1/3, gắp đúng vật 2/3 · Spatial #1 (train) 2/3, RO 2/3 · Spatial #2 (held-out) 0/3, RO 2/3 · Spatial #3 (train) 1/3, RO 1/3 · Spatial #4 (train) 3/3, RO 3/3 · Spatial #5 (held-out) 0/3, RO 0/3 · Spatial #6 (train) 1/3, RO 2/3 · Spatial #7 (train) 3/3, RO 3/3 · Spatial #8 (held-out) 0/3, RO 0/3 · Spatial #9 (train) 3/3, RO 3/3.
- Goal #0 (held-out) 0/3, RO 0/3 · Goal #1 (train) 0/3, RO 0/3 · Goal #2 (train) 3/3, RO 0/3 (task mở ngăn kéo — success không cần gắp vật) · Goal #3 (train) CHẠY DỞ 1/3 episode (ep0 fail, 0/1) — bị dừng giữa task.
- **FAILED (đủ 3 episode, success 0/3): Spatial #2, Spatial #5, Spatial #8, Goal #0, Goal #1** (4 held-out + 1 train).
- **Chưa chạy (16 task):** Goal #4, #5, #6, #7, #8, #9 và toàn bộ Object #0–#9 — không có số liệu, không tính failed.
- **Đọc kết quả:** đây là thay đổi hành vi thật so với mốc 20k (rollout held-out 0/64, goal #3 1/10): tại 25k success xuất hiện dày ở nhóm train (60,7%) và gắp đúng vật lan sang held-out (Spatial #2 RO 2/3, đặt hỏng). Held-out vẫn 0 success trên 12 episode đã chạy — chưa kết luận tổng quát hoá.
- **Biểu đồ ảnh:** `~/workspace/your_files/l60kuf_ckpt25k_sweep_chart.png` (local, matplotlib, đã đọc lại kiểm chứng): cột từng task đã có kết quả, nhãn "x/n" đúng mẫu số thật, màu tách train/held-out, ghi rõ chốt sớm 40/90.
- **Sau khi dừng:** train chạy tiếp tốc độ đủ; checkpoint 030000 (EMA) xuất hiện đủ bộ lúc 00:58–00:59.
## 2026-11-21 01:00–01:13 — CHẠY LẠI 5 TASK FAILED CỦA MỐC 25K TRÊN CHECKPOINT 030000 (EMA) run l60kuf + PANEL DASHBOARD
- **Lệnh của Young (00:56 + bổ sung 01:14):** chạy lại đúng 5 task FAILED (Spatial #2, #5, #8, Goal #0, Goal #1), mỗi task 3 episode, trên checkpoint 30k; hiển thị tiến độ lên panel trang /train của dashboard.
- **Thiết lập:** runner `fewshot/rerun30k/run_rerun30k.sh`, cùng harness `tools/eval_demo_video_ro_sweep.py`, điều kiện b, seed 0, episode index 0–2, task-index 2/5/8/10/11, checkpoint `checkpoints/030000/pretrained_model_ema` (đủ bộ: config + model.safetensors 1,37 GB + pre/postprocessor). VRAM trống trước khi chạy 6.368 MiB ≥ cổng 6 GB. 1 lane, nice -n 10. Log: `fewshot/rerun30k/rerun30k.log`. Video để trên máy, không kéo về local.
- **Tiến độ:** 15/15 episode, ALL DONE 01:13:34. Nhịp đo được: 833 giây từ START episode đầu tới END episode cuối = **~55,5 giây/episode** (mỗi episode nạp lại model; các episode fail chạy 54–60 giây, episode success kết thúc sớm 24 giây).
- **Kết quả 30k đặt cạnh 25k (success · gắp đúng vật):**
- Spatial #2 (held-out): 0/3 · RO 2/3 → 0/3 · RO 2/3 (gắp đúng bát nhưng đặt hỏng — mẫu lỗi không đổi).
- Spatial #5 (held-out): 0/3 · RO 0/3 → 0/3 · RO 0/3 (không gắp được gì cả hai mốc).
- Spatial #8 (held-out): 0/3 · RO 0/3 → 0/3 · RO 0/3.
- Goal #0 (held-out): 0/3 · RO 0/3 → 0/3 · RO 0/3.
- Goal #1 (train): 0/3 · RO 0/3 → **1/3 · RO 1/3** (task duy nhất đổi khác).
- **Tổng 5 task: success 0/15 (25k) → 1/15 (30k); gắp đúng vật 2/15 → 3/15.**
- **Đọc kết quả:** bốn task held-out failed vẫn đứng yên ở 0 tại 30k — thêm 5.000 bước chưa tạo tổng quát hoá đo được trên nhóm này. Goal #1 (train) nhích 1 success; ở n=3 chênh 1 episode nằm trong nhiễu, chỉ tính là tín hiệu yếu cùng chiều với nhóm train tại 25k.
- **Panel dashboard (yêu cầu bổ sung 01:14; từ nay là quy ước đứng: mọi việc Young yêu cầu chạy/kiểm tra đều hiển thị tiến độ lên dashboard, việc train/eval ở trang /train):** thêm section "Chạy lại 5 task FAILED của mốc 25k — trên checkpoint 30k (EMA 030000)" vào `~/sera_v4_dashboard/server.py` — hàm `_rerun30k()` đọc trực tiếp `fewshot/rerun30k/rerun30k.log` mỗi lần tải trang (không số tĩnh): từng task hiện episode x/3, success, badge trạng thái (ĐÃ XONG/ĐANG CHẠY/DỪNG DỞ/CHƯA CHẠY) + dòng tổng. Sửa bằng thay thế khớp chính xác (4 điểm neo, mỗi điểm đúng 1 lần), sao lưu `server.py.bak-rerun30k-20261121`, py_compile đạt. Chỉ kill đúng PID server.py 2684739 (đã kiểm chứng cmdline); server mới PID 3842180. Kiểm chứng từ phía máy: HTTP 200, panel hiện đúng 5 task 3/3, tổng "15/15 episode · thành công 1", đủ 5 badge ĐÃ XONG.
- **Train:** PID 2465006 vẫn sống, bước 31.058/60.000 (51,8%) lúc ~01:17 — không bị ảnh hưởng bởi cả ba việc (dừng quét, chạy lại, sửa dashboard).
## Phép thử lật 180° (FLIP180) — 21/11/2026 02:36–02:44 (Young duyệt 02:32)
- **Mục đích:** kiểm chứng giả thuyết lệch xoay 180° giữa ảnh train (dataset) và ảnh infer (env obs thô) là nguyên nhân điểm thấp: xoay 180° ảnh observation hiện tại (cả 2 camera) trước khi vào policy, mọi thứ còn lại giữ nguyên.
- **Thiết lập:** checkpoint `checkpoints/030000/pretrained_model_ema`, điều kiện b, seed 0, 1 lane, nice -n 10, cổng VRAM trống ≥6 GB (6.368 MiB lúc bắt đầu). Harness là bản sao có vá, file gốc không đổi: `tools/eval_demo_video_ro_sweep_flip.py` (Spatial #5, task-index 5) và `tools/eval_demo_video_ro_goal3_flip.py` (Goal #3, task-index 0). Phép lật áp tại đúng một điểm — ngay trước `preprocess_observation` trong vòng rollout, trên bản sao của observation — nên video lưu và robot_state giữ nguyên hướng thô như các lượt trước; demo và state không lật. Log xác nhận `FLIP180=ON cameras={'image': (1, 360, 360, 3), 'image2': (1, 360, 360, 3)}`. CONTROL Goal #3 chạy bằng harness gốc `eval_demo_video_ro_goal3.py`. Runner `fewshot/flip180/run_flip180.sh`, log `fewshot/flip180/flip180.log`. 9/9 episode, ALL DONE 02:44:55, ~60 giây/episode.
- **Kết quả:**
- FLIP Spatial #5 (demo 1264): **0/3 success, 0/3 gắp** (first_grasped=null cả 3 episode), 280 bước/ep — trùng khớp mốc không lật @30k (rerun30k: 0/3, 0 gắp).
- FLIP Goal #3 (demo 382): **0/3 success, 0/3 gắp**, 300 bước/ep.
- CONTROL Goal #3 không lật @30k: **0/3 success, 0/3 gắp**, 300 bước/ep → FLIP = CONTROL tại cùng checkpoint.
- Video FLIP khác byte với video CONTROL/rerun ở cùng init state (md5 khác) → phép lật CÓ đổi quỹ đạo hành động của policy, nhưng không đổi kết cục.
- **Đọc kết quả:** ở n=3/lượt, lật 180° không tạo bất kỳ success hay lần gắp nào trên cả hai task → sửa hướng ảnh lúc infer, một mình nó, không cứu được hành vi tại 30k. Lệch xoay vẫn là sự thật ở mức pixel (kiểm chứng riêng trước đó), nhưng phép thử này không ủng hộ nó là nguyên nhân chính của điểm 0 trên hai task này. Video 6 episode FLIP đã kéo về local `~/workspace/your_files/flip180_ckpt30k_*.mp4` (kích thước và md5 khớp bản trên máy).
- **Panel dashboard:** thêm section "Phép thử lật 180° — Spatial #5 + Goal #3 @30k (EMA 030000)" vào `~/sera_v4_dashboard/server.py` (hàm `_flip180()` đọc sống `fewshot/flip180/flip180.log` mỗi lần tải trang); sao lưu `server.py.bak-flip180-20261121`, py_compile đạt; kill đúng PID server cũ 3842180 sau khi kiểm chứng cmdline, vòng `run_server.sh` tự khởi động lại; kiểm chứng từ phía máy: HTTP 200, panel hiện 9/9 episode, thành công 0.
- **Train:** PID 2465006 vẫn sống (elapsed 8h08m lúc 02:44), không bị đụng.
## 2026-11-21 02:53 — DÂY CHUYỀN 60k→100k VISION FROZEN + THANG EVAL 10k (lệnh Young 02:45)
- **Verdict phép thử lật 180° (xong 02:44):** Spatial #5 lật 0/3 = không lật 0/3; Goal #3 lật 0/3 = CONTROL không lật @30k 0/3 (cả hai phía 0 lần gắp). → Thang eval dùng harness CHUẨN (không lật) để so sánh được với mốc cũ.
- **Run tiếp:** `sera-v4-fs1-jedi-l100k-visionfrozen` — script `tools/run_arm_jedi_l100k_visionfrozen.sh` (sao chép từ run_arm_jedi_l60kuf.sh, diff đúng 6 điểm): nạp weights-only từ `sera-v4-fs1-jedi-l60kuf/checkpoints/060000/pretrained_model` (optimizer/EMA khởi tạo lại — train_uf không có đường resume đổi cấu hình an toàn), `--steps=40000`, cosine mới decay_steps=40000 (1e-4→1e-5, warmup 500), `--policy.v4_uf_vision_blocks=0` + `v4_uf_step=999999` → vision khoá toàn bộ 40k bước; mọi loss JEDI-lite/episodes/batch giữ nguyên.
- **Kiểm chứng vision frozen TRƯỚC launch:** dựng policy trên CPU với cấu hình run tiếp → TOTAL trainable = 146.462.738 (khớp đúng pha đóng băng của l60kuf), TIPS trainable = 0, vision_encoder trainable = 0. Sau launch, chain grep `num_learnable_params` trong log run tiếp làm kiểm chứng thứ hai; sau checkpoint +5k, `tools/check_vision_identity.py` so toàn bộ tensor `model.tips.*` với ckpt 060000 (phải bit-identical), kết quả ghi `fewshot/ladder100k/vision_identity_check.txt`.
- **Dây chuyền:** `tools/chain_l100k.sh` (PID 2194550, setsid nohup, log `fewshot/ladder100k/chain.log`): chờ PID 2465006 thoát + ckpt 060000 đủ (EMA safetensors + training_step.json "step": 60000) → launch run tiếp → thang eval EMA tại 60k (ckpt cũ) / 70k / 80k / 90k / 100k (run tiếp ckpt 010000/020000/030000/040000): 30 task × 3 ep, điều kiện b, seed 0, harness `eval_demo_video_ro_sweep.py`, 1 lane nice -n 10, cổng VRAM ≥6 GB, bỏ qua episode đã có RESULT (chạy lại an toàn). Tổng hợp sau mỗi episode bằng `tools/ladder100k_aggregate.py` → `fewshot/ladder100k/status.json` + `AGGREGATE.md` + `milestone_<mốc>_verdict.txt` khi mốc đủ 90 ep (dòng `image: CELEBRATION/HOPE` cho bước tạo ảnh ăn mừng/hi vọng).
- **Dashboard:** thêm panel "Thang 10k → 100k: test từng task" vào trang /train (đọc status.json); sao lưu `server.py.bak-ladder100k-20261121`, py_compile đạt, kill PID server cũ 1871577 sau kiểm chứng cmdline, server mới PID 2190230, HTTP 200 từ phía máy, panel hiện đủ 5 mốc.
- **Báo cáo sống local:** `~/workspace/your_files/bao_cao_so_sanh_tung_task_100k.md` (bảng 30 task × mốc 25k/30k/60k/70k/80k/90k/100k + cách cập nhật tiếp từ AGGREGATE.md trên máy).
- **Trạng thái lúc gài:** train bước 39.118/60.000 (65,2%), tốc độ 1,46 bước/giây → dự kiến chạm 60k ~06:52 21/11. Train không bị đụng.
## 2026-11-21 03:22 — Phép thử phân phối vị trí vật Spatial #5 (Bước 2+3): init theo chuẩn dataset + lật 180° @ EMA 040000 → 0/3, 0 gắp
- **Bối cảnh:** Young duyệt chạy tiếp harness (bị gắn cờ rủi ro ở lượt trước) lúc 03:15. Bước 1 (đã xong trước đó): phân phối vị trí bát đích ds-32 đo bằng EE lúc đóng gripper, 39/39 ep — tâm (−0,187; 0,153), vùng lõi p10–p90 x [−0,226, −0,167], y [0,142, 0,169].
- **Bước 2 — đo đủ 50 init state chính thức** (đặt từng state vào env, đọc `sim.data.body_xpos` của akita_black_bowl_1; dữ liệu `/tmp/init_states_spatial5.json` trên máy): init 0 = (−0,1968; 0,2017), init 1 = (−0,2130; 0,1892), init 2 = (−0,2075; 0,1964). Cả ba có x NẰM TRONG vùng lõi x, nhưng y nằm NGOÀI vùng lõi, cao hơn mép trên y (0,169) lần lượt 3,3 / 2,0 / 2,7 cm. **0/50 init state nằm trong vùng lõi cả hai trục**: toàn bộ init state có y ∈ [0,185, 0,215], x ∈ [−0,215, −0,185] — lưới init state lệch hệ thống khoảng +3,5 cm theo y so với tâm phân phối dataset (lưu ý: phía dataset là proxy EE-lúc-gắp, phía init là tâm thân bát — một phần chênh có thể là lệch điểm quy chiếu, nhưng x khớp tốt nên lệch y là thật ở mức vài cm).
- **Init đã chọn (gần tâm nhất):** 32 (−0,1896; 0,1852, cách tâm 3,2 cm), 11 (−0,1942; 0,1856, 3,3 cm), 38 (−0,1862; 0,1868, 3,4 cm).
- **Bước 3 — chạy test:** bản sao harness `tools/eval_demo_video_ro_sweep_flip_dist.py` (flip + thêm `--init-state-id`; file gốc không đổi), runner `fewshot/distmatch/run_distmatch.sh`, log `fewshot/distmatch/distmatch.log`. Spatial #5, điều kiện b, demo 1264, EMA 040000, seed 0, 1 lane nice -n 10. **Kết quả: ep1 (init 32) fail 280 bước 0 gắp · ep2 (init 11) fail 280 bước 0 gắp · ep3 (init 38) fail 280 bước 0 gắp → 0/3 success.** Bằng mốc cũ @30k init mặc định không lật (0/3, 0 gắp); lượt này khác checkpoint (40k), init state và có lật.
- **Dashboard:** panel "Phép thử phân phối vị trí — Spatial #5 … @40k (EMA 040000)" trên /train (sao lưu `server.py.bak-distmatch-20261121`; kill PID 2190230 sau kiểm chứng cmdline; server mới 2917954; HTTP 200, panel hiện 3/3, thành công 0, gắp đúng bát 0).
- **Video local (byte khớp máy):** `~/workspace/your_files/distmatch_ckpt040000_spatial5_ep{1,2,3}.mp4` (500.508 / 512.382 / 492.393 byte).
- **Kết luận:** đổi init state về gần tâm phân phối dataset nhất có thể (trong giới hạn lưới init chính thức) + lật camera + checkpoint mới hơn 10k vẫn không tạo được một lần gắp nào — vị trí đặt vật không phải nút thắt chính của Spatial #5 ở các mốc này. Train PID 2465006 và chain 100k không bị đụng.
## 2026-11-21 03:36 — NODIST: bỏ bát nhiễu khỏi cảnh Spatial #5 (Young lệnh 03:28)
- Harness mới `tools/eval_demo_video_ro_sweep_flip_nodist.py` (bản sao của bản flip_dist, file gốc không đổi): ngay sau reset + init state, teleport `akita_black_bowl_2` (bát vân đá trên hộp bánh cookies_1) tới (2.0, 2.0, −0.5) bằng qpos của free joint + zero qvel, re-pin sau mỗi step; observation được render lại (đường _get_observations + _format_raw_obs) TRƯỚC bước đầu tiên nên frame 0 của video đã không còn bát nhiễu. Log xác nhận từng ep: `NODIST REMOVED body=akita_black_bowl_2_main old_pos=(0.0738, 0.0341, 0.9172) moved_to=(2.0, 2.0, -0.5) verified_xpos=(2.0, 2.0, -0.5)`. Kiểm chứng bằng mắt frame 0 ep1: hộp bánh trống, bát đích còn nguyên trên ramekin, đĩa/ramekin/bếp nguyên vị trí.
- Điều kiện giữ nguyên như distmatch (một biến một lần): EMA 040000, điều kiện b, demo 1264, lật 180° cả hai camera, init state 32/11/38, seed 0.
- Kết quả: **0/3 success, 0 lần gắp bát đích**, cả 3 ep chạy hết 280 bước. ep1 (init 32): không gắp vật nào. ep2 (init 11): **gắp RAMEKIN `glazed_rim_porcelain_ramekin_1` ở bước 136** (sai vật — gắp chiếc đế dưới bát, bát đích bị bỏ lại trên bàn). ep3 (init 38): không gắp vật nào.
- So với distmatch (còn bát nhiễu, cùng mọi điều kiện): 0/3 success, 0 lần gắp bất kỳ vật nào. Bỏ bát nhiễu làm hành vi đổi nhẹ (xuất hiện 1 lần gắp ở ep2) nhưng lần gắp đó rơi vào ramekin, không phải bát đích → **bát nhiễu KHÔNG phải nút thắt của bước gắp**; nút thắt vẫn là năng lực gắp chính xác của model tại cụm ramekin.
- Sản phẩm: video máy `~/sera_v4_experiments/fewshot/nodist/` + local `~/workspace/your_files/nodist_ckpt040000_spatial5_ep{1,2,3}.mp4` (492319/456148/488120 byte, khớp từng byte); log `fewshot/nodist/nodist.log`; dashboard /train có panel riêng "Phép thử bỏ bát nhiễu" (sao lưu server.py.bak-nodist-20261121, server mới PID 3251822, panel hiện ĐÃ XONG 3/3, thành công 0, gắp đúng bát 0). Train PID 2465006 không bị đụng (đang ở bước 42.690/60.000 lúc kiểm tra).
## 2026-11-21 04:05 — DEBUG TRAJECTORY: model ↔ demo (Young lệnh 03:53) + episode Object #7 KHÔNG demo (điều kiện a)
- **Câu hỏi:** model có sao chép trajectory của demo thay vì hành động theo quan sát không. Phương pháp: bản sao harness có ghi trajectory `tools/eval_demo_video_ro_sweep_flip_traj.py` + `..._flip_dist_traj.py` (chỉ thêm ghi action 7 chiều + EE từng bước ra npz; file gốc không đổi). Chạy lại đúng 2 episode đã có: Object #7 điều kiện b (EMA 040000, lật, seed 0, init 0) và Spatial #5 distmatch init 32. **Kiểm chứng chạy lại:** Object #7 video khớp MD5 từng byte với bản gốc 03:47 (2bb85d7c…), RESULT giống hệt (fail, 280 bước, 0 gắp); Spatial #5 RESULT giống hệt bản distmatch (fail, 280 bước, init 32, 0 gắp). Demo lấy từ dataset: ep 814 (ds 25, 175 bước), ep 1264 (ds 32, 100 bước); đối chứng = episode cùng task model KHÔNG xem: ep 817 (143 bước), ep 1265 (116 bước). Căn thời gian chuẩn hoá 0–100%, resample 200 điểm.
- **Kết quả Object #7:** độ lệch action model↔demo-đã-xem **126,2%** ≈ model↔demo-chưa-xem **125,2%** (bản tiền tố theo độ dài demo: 124,8% ≈ 122,6%). Độ lệch đường EE: **31,2 cm (53,1%** đường chéo vùng làm việc demo) ≈ chưa-xem **32,0 cm (51,6%)**. Tương quan action từng chiều với demo-đã-xem: trung bình **0,09** (từng chiều 0,13 / 0,49 / 0,12 / −0,08 / −0,06 / 0,20 / −0,14).
- **Kết quả Spatial #5:** độ lệch action đã-xem **102,6%** ≈ chưa-xem **98,9%** (tiền tố: 92,6% so với 99,9% — phía đã-xem còn xa hơn). Độ lệch EE: **20,5 cm (51,4%)** ≈ chưa-xem **19,8 cm (46,1%)**. Tương quan action trung bình **0,01**.
- **Kết luận:** độ lệch >100% nghĩa là hiệu action model−demo lớn hơn chính độ lớn action trung bình của demo — hai trajectory khác hẳn nhau; và khoảng cách tới demo-đã-xem ≈ khoảng cách tới demo-chưa-xem trên MỌI số đo ở cả hai cặp, tương quan ≈ 0 → **model KHÔNG sao chép trajectory của demo**. Ảnh overlay EE (xy): `~/workspace/your_files/traj_compare_object7.png`, `traj_compare_spatial5.png` (xanh = demo đã xem, đỏ = model, xám = demo chưa xem).
- **Episode bổ sung — Object #7 điều kiện a (KHÔNG demo), cùng EMA 040000 / lật / seed 0 / init 0:** fail, 280 bước, **không gắp được vật nào** (first_grasped null) — giống hệt điều kiện b. So đường EE hai episode: lệch nhau trung bình chỉ **1,6 cm** (max 12,3 cm); cả hai đều tới cách điểm demo-814 gắp hộp sữa **~7,0 cm** (b: bước 52; a: bước 49) và ở trong bán kính 15 cm của điểm đó 246/280 (b) so với 251/280 (a) bước. Nói thận trọng (điểm gắp của demo là proxy vị trí hộp sữa, init state của demo khác init 0 của eval): hành vi đi tới vùng hộp sữa KHÔNG cần demo — bỏ demo gần như không đổi hành vi của episode này; nút thắt vẫn là bước gắp, không phải chọn hướng đi. Video: `~/workspace/your_files/heldout_object7_ep1_nodemo_ckpt040000.mp4` (536.512 byte, MD5 khớp máy e917a551…).
- **Sản phẩm trên máy:** `fewshot/trajdbg/` (run.log, demo_eps.npz, obj7_b_traj.npz, obj7_a_traj.npz, spatial5_dist32_traj.npz, run_trajdbg.sh). Dashboard /train: panel Object #7 thêm khối điều kiện a + dòng verdict trajectory (sao lưu `server.py.bak-trajdbg-20261121`; một lỗi format `%` trần trong ghi chú đã sửa ngay, server PID mới 4009385, HTTP 200, đã kiểm chứng nội dung hiển thị). Train PID 2465006 và chain watcher 100k không bị đụng.
## 2026-11-21 05:42–05:49 — TEST MỐC 050000 (EMA) run l60kuf, task libero_goal #3 (TASK TRAIN): 3 episode, so sánh với mốc 10k/20k
- **Lệnh của Young (05:42):** test checkpoint 50k xem có cải thiện không; chạy 3 episode trên một task thấy rõ cải thiện nhất. Task được chọn chủ động: libero_goal #3 — task duy nhất có đường cong cải thiện đã đo (@10k 0/10 → @20k 1/10, success ở ep 7) và success đòi hỏi trọn chuỗi gắp đúng bát + mở ngăn kéo + đặt bát vào trong.
- **Thiết lập (khớp hệt lượt 10k/20k của chính task này):** harness `tools/eval_demo_video_ro_goal3.py` (KHÔNG lật — các mốc so sánh 10k/20k không lật), checkpoint EMA `sera-v4-fs1-jedi-l60kuf/checkpoints/050000/pretrained_model_ema`, điều kiện b, demo = episode 382, seed 0, episode index 0–2 (init state 0/1/2), 1 lane, nice -n 10, cổng VRAM ≥ 6.144 MiB tích hợp trong runner (trống 6.368 MiB lúc bắt đầu). Runner `/tmp/run_goal3_50k.sh` trên máy; log đầy đủ: `fewshot/l60kuf_ckpt50k_infer_goal3.log` (RESULT json từng episode). ALL DONE 05:49:11, ~60 giây/episode.
- **Kết quả 3 episode tại mốc 050000: success 0/3.**
- ep 0: FAIL, chạy hết 300 bước, first_grasped = null (không gắp được vật nào); frame cuối kiểm chứng bằng mắt: ngăn kéo tủ vẫn đóng, bát đen còn nguyên trên bàn.
- ep 1: FAIL, 300 bước, first_grasped = null; frame cuối: ngăn kéo đóng, bát trên bàn.
- ep 2: FAIL, 300 bước, first_grasped = null; frame cuối: ngăn kéo đóng, bát trên bàn.
- Tổng hợp mốc 50k (n=3): success **0/3**, mở được ngăn kéo **0/3**, gắp đúng bát **0/3**, gắp được bất kỳ vật nào **0/3**.
- **So sánh cùng cỡ mẫu n=3 (episode index 0–2) qua ba mốc:** @10k 0/3 success, 0/3 gắp bất kỳ vật nào · @20k 0/3 success, 0/3 gắp (success duy nhất của mốc 20k nằm ở ep 7) · @50k 0/3 success, 0/3 gắp. → Trên đúng 3 episode đầu, mốc 50k KHÔNG cho thấy cải thiện so với 20k và 10k: hành vi giống hệt (không gắp được vật nào, ngăn kéo không mở). Cỡ mẫu n=3 rất nhỏ: mốc 20k cũng cần tới ep 7 mới có 1 success trên 10 episode, nên 0/3 không loại trừ khả năng 50k đạt ~1/10 ở n=10 — nhưng trong phạm vi đã chạy, không có tín hiệu cải thiện nhìn thấy được.
- **Video:** trên máy `fewshot/l60kuf_ckpt50k_goal3_ep{0..2}.mp4`. Đã kéo về local đủ 3 file: `~/workspace/your_files/l60kuf_ckpt50k_goal3_ep{1..3}.mp4` (episode index i → ep{i+1}; md5 khớp nguồn từng byte: b2493b87… / 656bf75a… / 9ce5fd29…; kích thước 449.048 / 423.131 / 435.390 byte; 151 frame mỗi video). Đã trích frame cuối cả 3 video kiểm chứng bằng mắt.
- **Dashboard:** thêm panel "Test mốc 50k — Goal #3 (train): mở ngăn kéo trên và đặt bát vào trong (EMA 050000)" vào trang /train (hàm `_goal3_50k()` đọc sống `fewshot/l60kuf_ckpt50k_infer_goal3.log` mỗi lần tải trang); patch `~/sera_v4_dashboard/patch_dash_goal350k.py`, sao lưu `server.py.bak-goal350k-20261121`, py_compile đạt; kill đúng PID server cũ 4009385 sau khi kiểm chứng cmdline, vòng `run_server.sh` tự khởi động lại (PID mới 2575057); kiểm chứng từ phía máy: HTTP 200, panel hiện 3/3 episode, thành công 0, trạng thái ĐÃ XONG.
- **Sau khi chạy:** train PID 2465006 vẫn sống (bước 53.992/60.000 lúc ~05:52), VRAM trở về mức train-only 9.483 MiB dùng / 6.368 MiB trống — không bị ảnh hưởng. Chain watcher 100k không bị đụng.
## 2026-11-21 08:52 — VERDICT MỐC 60k (thang 100k vision-frozen): held-out success ĐẦU TIÊN
- Eval mốc 60k xong 90/90 (EMA 060000 của l60kuf, điều kiện b, seed 0, harness chuẩn): **tổng 43/90 (47,8%) · train 41/63 (65,1%) · held-out 2/27 (7,4%)**.
- **⭐ HELD-OUT SUCCESS ĐẦU TIÊN của toàn chương trình few-shot: Object #7 (pick up the milk and place it in the basket) đạt 2/3.** Tám held-out còn lại vẫn 0/3: Spatial #2/#5/#8, Goal #0/#4/#9, Object #1/#5. Cờ ảnh verdict: CELEBRATION → đã tạo `~/workspace/your_files/milestone_60k_celebration.png` (robot gắp hộp sữa trên giỏ, chữ đúng).
- So với 25k (phần đã chạy 40/90): train 60,7% → 65,1%; held-out 0/12 → 2/27. Nhóm train nhích trong nhiễu n=3/task; held-out rời 0 ở đúng một task.
- Báo cáo local `~/workspace/your_files/bao_cao_so_sanh_tung_task_100k.md` đã điền đủ cột 60k (30 task), dòng tổng và kết luận.
- Young chốt GIA HẠN máy thuê lúc 08:51 → chuỗi chạy trọn tới 100k.
- Trạng thái chuỗi lúc 08:52: run tiếp `sera-v4-fs1-jedi-l100k-visionfrozen` ở bước nội bộ 10.807/40.000 (27,0%, 1,50 bước/s; checkpoint 005000 + 010000 đã lưu); eval mốc 70k đạt 9/90 episode (Spatial #0 2/3 · #1 2/3 · #2 0/3).
--- local WORKLOG ---
## 2026-11-21 10:16 — Verdict mốc 70k (thang 100k, vision frozen)
- Eval 70k xong 90/90 (EMA ckpt nội bộ 010000 = 70k toàn cục, điều kiện b, seed 0, harness chuẩn).
- Tổng 44/90 (48,9%) · train 43/63 (68,3%) · held-out 1/27 (3,7%).
- Object #7 giữ success held-out duy nhất: 1/3 (tụt từ 2/3 @60k); 8 held-out còn lại 0/3.
- Train: Spatial #4 bật lại 0/3→3/3, Spatial #9 lên 1/3→3/3; Object #6 tụt 3/3→1/3.
- Cột 70k đã điền vào bao_cao_so_sanh_tung_task_100k.md; ảnh ăn mừng milestone_70k_celebration.png.
## 2026-11-21 12:02 — Thử LIBERO-Long #4 (ds 4 = benchmark libero_10 #7), EMA toàn cục 85k
- Task: "put both the alphabet soup and the cream cheese box in the basket" — task Long đầu tiên của chương trình few-shot. ÁNH XẠ QUAN TRỌNG: ds 4 = benchmark libero_10 #7 (env_dataset_task_mapping.json đã kiểm chứng 40/40); lượt chạy nhầm benchmark #4 (ds 0, task mug) đã huỷ sau ~1 phút, log ở fewshot/long4/long4_run_wrongtask.log trên máy.
- Demo: episode 7 (episode đầu tiên của ds 4, L=272 frame) mã hoá vào BẢN SAO fewshot/demo_store_long4.pt theo đúng build_demo_store.py (INIT init_quest, 64 frame lấy đều, token [64,2,6,768] fp16 + act [64,7] + state [64,8]); kho gốc không đổi (1.556.246.947 byte, mtime 20/11 03:19); model nạp qua SERA_DEMO_STORE. Lượt mã hoá đầu OOM (chunk 128 frame cùng train) — tools/build_demo_long4.py dùng chunk 16, token theo từng ảnh không đổi.
- Chạy: EMA ckpt 025000 run visionfrozen (= 85k toàn cục), điều kiện b, seed 0, init 0/1/2, trần 600 bước, harness bản sao tools/eval_demo_video_ro_long4.py (đo theo chặng từ vị trí vật/giỏ, file gốc không sửa). Kết quả: 0/3 success; cả 3 episode KHÔNG gắp được vật nào (grasp_step null cho cả soup và cheese), hết 600 bước/ep.
- Kiểm chứng độc lập từ npz vị trí vật: EE tới gần nhất — soup 16,0/16,9/11,7 cm; cheese 10,2/6,1/9,1 cm (mọi lần tới gần đều trong ~50 bước đầu); hai vật gần như không xê dịch (dịch chuyển tối đa 0 cm; riêng cheese ep2 bị chạm nhẹ 1,5 cm, nâng 2 mm — không phải gắp).
- Kết luận: model tới đúng cụm vật từ sớm nhưng chết ở khâu gắp ngay chặng đầu tiên — cùng nút thắt thực thi gắp như các task ngắn; độ dài của task Long chưa kịp thành yếu tố.
- Video: fewshot/long4/long4_ckpt85k_ep{1,2,3}.mp4 trên máy + bản local your_files/long4_ckpt85k_ep{1,2,3}.mp4 (MD5 khớp từng file). Dashboard /train có panel riêng (sao lưu server.py.bak-long4-20261121, server PID 1001539).
- 12:34 21/11/2026: **VERDICT mốc 80k** (thang 100k, EMA toàn cục 80k, đủ 90/90 ep): tổng **43/90** · train **43/63** · held-out **0/27** — held-out quay về 0; Object #7 khép đường cong 2/3 (60k) → 1/3 (70k) → 0/3 (80k). Spatial #4 2/3, Spatial #9 giữ 3/3. Cờ ảnh: HOPE → `~/workspace/your_files/milestone_80k_hope.png`. Đã điền cột 80k vào báo cáo so sánh từng task. Train tiếp tại thời điểm verdict: nội bộ 32.300/40.000 = toàn cục 92.300/100.000 (1,48 bước/s); eval 90k đạt 31/90 episode (train 17/21 · held-out 0/10).
- 13:40 21/11/2026 — Verdict mốc 90k (thang 100k vision-frozen): eval xong 90/90 lúc 13:23, tổng 47/90 (52,2%) — đỉnh thang; train 46/63 (73,0%) — đỉnh thang; held-out 1/27 (Object #7 quay lại 1/3; đường cong 2/3 → 1/3 → 0/3 → 1/3 qua 60k/70k/80k/90k). Cờ ảnh CELEBRATION; đã điền cột 90k vào bao_cao_so_sanh_tung_task_100k.md + tạo milestone_90k_celebration.png. Train tiếp tại lúc ghi: nội bộ 38.895/40.000 = toàn cục 98.895/100.000.
- 14:10 21/11/2026 — BACKUP HUGGING FACE (lệnh Young 13:58): tạo repo PRIVATE phammminhhieu/sera-v4-backup (loại model) trên tài khoản phammminhhieu — máy train đã đăng nhập sẵn, quyền write xác nhận bằng tạo repo thành công. Đẩy lần đầu: code/ đủ 1.176 file (24 MB) gồm phía máy (sera_v4_experiments, lerobot_policies, lerobot_extra, sera_v4_dashboard, home_scripts, datav2_hf) và phía local (experiments/sera_v4, trace_vla, trace_validation, tools). Loại vì chứa credential hardcode: local experiments/sera_v4/flow1_gate_monitor.py + check_gate_once.py (chỉ ghi tên, không nội dung). Checkpoint 100k đã đẩy: checkpoint-100k/pretrained_model/model.safetensors 1,37 GB + pretrained_model_ema/model.safetensors 1,37 GB kèm config/preprocessor, KHÔNG đẩy optimizer state. Cập nhật đều đặn: cron trên máy train 0 */6 * * * chạy ~/hf_backup_sync.sh (build staging bằng ~/hf_stage_build.sh, quét secret trước mỗi lần đẩy, log ~/sera_v4_experiments/hf_backup_sync.log); chạy thử 14:08 đạt rc=0. URL: https://huggingface.co/phammminhhieu/sera-v4-backup
- 14:24 21/11/2026 — TRIỂN KHAI TRACE-VLA v1.0 (lệnh Young 13:44): package `trace_vla` mới tại local `~/workspace/experiments/trace_vla/` + máy `~/sera_v4_experiments/trace_vla/` (không sửa code SERA, không đụng ladder100k). Đủ 7 module theo §4 của đặc tả: ANCHOR (TIPSv2-B/14 đóng băng, pooling 2×2 → 64 patch/camera; giao diện text công khai cho đúng 1 vector 768/instruction — đã probe thật trên máy), DELTA (window 9 frame stride 4, tối đa 16 window × 4 token Start/Change/End/Local, residual offset 1/4/8 trong không gian frozen 768, 2 Transformer blocks, loss contrastive skill alignment τ=0,07), SYNC (64 context queries, 2 blocks, pointer chọn window hiện tại + kề + change summary toàn cục), PULSE (head 3 lớp CONTINUE/ADVANCE/COMPLETE), NEXUS (6 blocks dense, 16 action tokens + 16 effect tokens, cross-attention vào 64 context tokens), FLUX (Flow Matching chunk 16×7, 4 bước Euler khi infer), ECHO (dự đoán residual Z_{t+4}−Z_t trong không gian frozen 768, Huber loss, chỉ áp loss khi τ ≥ 0,5). Test module bằng tensor giả đúng shape §4.2: **14/14 PASS** (forward + backward từng module, loss hữu hạn); trong lúc test sửa 3 bug thật: index gather của SYNC, cặp residual cho window ngắn (< 9 frame) của DELTA, NaN của skill loss do −inf × 0 trong mặt nạ positive. Tham số thật: **tổng 242.101.258** (ngân sách §4.3: 245,9M), trainable **46.152.970**, frozen 195.948.288; theo module: vision 86.316.288 ✓ · text 109.632.000 ✓ · DELTA **7.797.248 vượt ngân sách 6,5M (+1,30M** — ngân sách chỉ đủ chi phí 2 Transformer blocks ở FFN 2048, chưa tính shared pooling attention 1,05M + projection 768→512 0,39M mà §6.3 yêu cầu) · SYNC 8.442.368 ✓ · NEXUS 25.242.624 ✓ · FLUX+ECHO 2.117.127 (dưới ngân sách 5,0M, không thêm lớp thừa theo đúng dặn của đặc tả) · state/history/PULSE/projections 2.553.603 (dưới ngân sách 4,5M). **SMOKE TRAIN Stage 1 — TRACE-Base (§14.3): TRAIN ĐƯỢC.** Cách chạy: cache đặc trưng ANCHOR đóng băng (cơ chế §17.2 của đặc tả) từ 63 episode train (3 episode × 21 task, 8.277 frame, có rot180 theo §13.1, stats MEAN_STD tính trên 120.876 frame của split train — đúng stats pipeline hiện tại), DELTA/PULSE tắt, null demo token, text-conditioned. 300/300 optimizer updates (micro 8 × accum 4 = batch hiệu dụng 32, AdamW lr 1e-4, clip 1.0): **loss FLUX 2,063 (TB 10 update đầu) → 0,877 (TB 10 update cuối), giảm 57,5%** (mốc vô học kỳ vọng ≈ 2,0); tốc độ 3,08 micro-steps/s = 0,77 optimizer steps/s đo khi GPU đang chia với eval 100k (nice -n 10); VRAM đỉnh 818 MB; **không NaN**. Lệch phạm vi smoke đã ghi rõ: warmup 30 thay 500 update (500 không vừa cửa sổ 300 update; đỉnh LR và sàn cosine giữ nguyên); text embedding cache theo task (21 instruction duy nhất, đúng đầu ra của encoder đóng băng); ANCHOR được kiểm chứng end-to-end riêng trên ảnh thật (test + lúc dựng cache 8.277 frame). File: test_modules.log, build_cache.log, smoke_train.log, smoke_summary.json trong thư mục trace_vla trên máy.
- 14:27 21/11/2026 — **THANG 100k ĐÓNG + VERDICT MỐC 100k (MỐC CUỐI):** eval xong 90/90 lúc 14:24 (chain log "CHAIN ALL DONE", GPU trống): tổng **45/90 (50,0%)** · train **44/63 (69,8%)** · held-out **1/27** (Object #7 1/3, cờ ảnh CELEBRATION). Toàn thang 5 mốc: tổng 43/44/43/47/45 trên 90; train 41/43/43/46/44 trên 63; Object #7 qua 5 mốc: 2/3 → 1/3 → 0/3 → 1/3 → 1/3; 8 held-out còn lại 0/3 cả 5 mốc. **Kết luận cuối: train dài hơn với vision khoá không tạo cải thiện có ý nghĩa ngoài nhiễu; held-out không thành xu hướng.** Đã điền cột 100k đủ 30 task + kết luận cuối vào bao_cao_so_sanh_tung_task_100k.md; ảnh milestone_100k_celebration.png.
- 14:27 21/11/2026 — **LỆNH TẠM DỪNG VALIDATION TRACE:** Young lệnh tạm dừng chạy giao thức TRACE-VLA Pre-training Validation (đã chuẩn bị sẵn tại experiments/trace_validation/) vì anh có thay đổi kiến trúc TRACE-VLA chưa gửi. Không chạy Phase A cho tới khi Young gửi thay đổi và duyệt lại. Đã ghi vào PLAN.md + MEMORY.md.
- 14:47 21/11/2026 — **CẬP NHẬT TRACE-VLA v1.0 → v1.1 (Young duyệt 14:35; lệnh chạy validation bổ sung 14:47):** đặc tả v1.1 lưu nguyên văn tại experiments/trace_vla/SPEC_v1.1.md. Thay đổi code chính: DELTA viết lại label-free — window 8 frame stride 4 (64 frame → 15 window/16 vị trí), residual 3 loại local (offset 1) / medium (offset 4) / endpoint, GIỮ DẤU và thứ tự: chuỗi residual + token appearance vào 2 Transformer blocks TRƯỚC khi nén thành CHANGE (không trung bình residual có dấu trước xử lý thời gian — chuyển động vòng giữ được, có test cyclic riêng); bỏ offset 8; LOCAL pool trên appearance frame đầu+cuối cộng residual endpoint đã chiếu (không chọn vùng bằng độ lớn residual đơn độc). SYNC: bỏ pointer, global soft cross-attention trên toàn bộ ≤64 token demo. PULSE: giữ head, λ=0, không điều khiển SYNC. Skill alignment: thành tuỳ chọn, mặc định TẮT (λ_delta=0). ECHO: giữ bật, λ_echo=0,1, H=4, target residual không gian frozen; biến thể target 512 dùng phép chiếu CỐ ĐỊNH (buffer, không trainable — có test). Objective mặc định: L = L_flux + 0,1·L_echo. Sửa một lỗi tiềm ẩn của adapter v1.0: echo_target từng lưu raw future features thay vì residual (Stage 1 v1.0 không dùng field này nên không kết quả nào bị ảnh hưởng). Diễn giải đã ghi trong code: (i) 2 blocks của §8.6 là temporal blocks dùng chung theo window, không có cross-window Transformer riêng; (ii) token chuỗi thời gian là patch-mean của features/residual đã chiếu, chi tiết patch nằm ở Start/End/Local; (iii) cổng τ≥0,5 của ECHO giữ từ v1.0; (iv) effect tokens chốt 16 trong khoảng 16–32 của §11.2. **Test: 24/24 PASS** (bộ §24 của v1.1: video ngắn, frame không hợp lệ, window chồng lấp, thứ tự thời gian, chuỗi residual trung gian, chuyển động vòng, rò rỉ demo, rò rỉ tương lai, dựng target ECHO, biên episode, projection cố định, objective mặc định; một assert allclose phải nới atol vì triệt tiêu float32 ~1,4e-6 — lỗi ở test, không ở code). **Smoke đường đầy đủ (DELTA+SYNC+ECHO bật, support-query video-only từ cache thật, 120 updates, batch hiệu dụng 32): TRAIN ĐƯỢC ĐẦU-CUỐI — FLUX 2,052 → 1,065; ECHO 0,156 → 0,021; không NaN; VRAM đỉnh 1.648 MB; 1,63 opt-steps/s (GPU trống).** Tham số v1.1: tổng **242.106.378** (dưới ngân sách ~246M), trainable **46.158.090**; DELTA 7.802.368 vẫn trên dòng ngân sách cũ 6,5M (+1,30M, cùng lý do cấu trúc như v1.0; v1.1 không sửa ngân sách theo module). PLAN validation đã ánh xạ lại sang ID v1.1 (A01–A05, D00–D07, S00–S03, E00–E02, C00–C06); B04/B10 cũ ĐÃ LOẠI, B08 cũ tuỳ chọn/hoãn. Theo lệnh bổ sung 14:47: chạy luôn validation sau khi cập nhật xong, không chờ lệnh thêm.
- 17:08 21/11/2026 — **SỬA LỖI FPS + CHẠY TIẾP CHUỖI TRACE → GATE B CHỐT (Young đồng ý tường minh 15:51):** (1) Lỗi gốc: `SupportQueryData.__init__` của package nhận tham số vị trí thứ hai là `fps: float`, harness validation (phase_b.py, train_pilot.py) lại truyền TraceConfig → `self.fps` thành object config, `_support_demo` chia tensor cho config → TypeError, PB3/PB4/C02 chết ngày 15:36–15:47. Sửa data.py (cả local + máy, MD5 khớp): chữ ký mới `(cache, config=None, fps=None, demo_max_frames=None)` — số truyền vào khe config được hiểu là override fps (tương thích ngược), mặc định TraceConfig(), `self.fps = float(...)` luôn là float; thêm import TraceConfig. Điểm hardcode cùng họ `_query_fields` (`h*4/10.0`) khớp config mặc định (fps 10, stride 4) nên ghi nhận, không sửa. (2) Test hồi quy `data.support_query_config_arg` (dựng đúng quy ước `(cache, TraceConfig())` + fps=5.0 + số trần 7.5, khẳng định fps là float và frame_times = subsample_indices/fps): **suite 27/27 PASS trên máy** (26 cũ + 1 mới). Lỗ hổng cũ: mọi test/smoke đều gọi `SupportQueryData(cache)` không đối số thứ hai. (3) Lỗi thứ hai lộ ra khi chạy lại PB3: cache chính có đúng 1 episode ordinal-2/task nên val SupportQueryData không bao giờ ghép được support khác episode (AssertionError task 37 ở val eval). Vá phía harness (phase_b.py pb3, hai phía khớp MD5): val adapter dựng trên full cache, samples lọc về episode ordinal-2; support ghép từ ordinal 0–1, query vẫn held-out. train_pilot không dính (subset cache có split sẵn 10 train + 2 val/task). (4) **PB3 (1k step × 3 biến thể, val_flux / swap_div / nodemo_div):** static_D00 0,7630 / 0,4220 / 0,2923 · delta_raw_D01 0,7793 / 0,7197 / 0,6663 · delta_D06 0,7834 / 0,6639 / 0,5604. **PB4:** E02_residual normalized Huber **2,4292** (head tệ hơn baseline dự đoán zero 2,43 lần); E01_full 0,6676. (5) **GATE B = PARTIAL PASS (16:29):** DELTA residual **FAIL** (D-pre 0,302 vs 0,856 + PB3 thua D01 ở cả 3 metric) → C03/C04 huỷ dạng hiện tại; ECHO **FAIL** (E02 > 1) → C04 huỷ; ordered memory **PASS theo quyết định tách** (thua val_flux ~2% nhưng thắng swap +0,24..0,30 và nodemo +0,27..+0,37 — model thật sự dùng demo; phép quyết định chuyển sang demo gain closed-loop của Gate C) → C02 chạy. (6) **C02 rawmem XONG 5.000/5.000 (exit 0, wall 2.176 s):** val_flux_text 0,7364/0,7114/0,4574/0,5015 và val_flux_video 0,7788/0,6683/0,4631/0,5419 tại 500/1k/2k/5k — mốc 2k tốt nhất, sau 2k đi lên nhẹ (overfit); C03/C04 ghi skipped kèm lý do trong status.json. Dashboard: watcher khởi động lại, /data/status chứa verdict Gate B, /data/train chứa C02_rawmem, trang HTTP 200. **Còn lại của Phase C:** C00 (SERA-V4 5k mới, config sẵn sàng) + eval closed-loop các arm cho Gate C — chưa chạy trong lượt này.
- 19:37 21/11/2026 — **TRACE C02 TEST HELD-OUT THEO LỆNH TRỰC TIẾP CỦA YOUNG (19:32):** task Object #7 (ds25, "pick up the milk and place it in the basket") — held-out thật với TRACE (không thuộc tập con 12 task C02 đã train). Model C02 rawmem ckpt_05000, điều kiện correct (demo video-only, không text). Demo: episode 814 (episode đầu của ds25) mã hoá đúng pipeline v1.1 vào cache MỚI feature_cache_subset_plus25.pt (split="demo"; cache gốc + stats giữ nguyên không đổi). Harness: scripts/eval_trace_heldout.py = bản sao eval_trace.py + trỏ cache plus25 + tracking nâng vật theo obs (defensive). Chạy 3 ep, seed 0, cap 280, nice 10 chạy song song chain3b (không ngắt chuỗi; chain3 đã DONE 19:31, chain3b tiếp tục shuffled bình thường). **Kết quả: 0/3 success, cả 3 ep đều chạy hết 280 step.** milk_1 (vật đích) được nhấc +0,0906 m ở cả 3 ep — robot grasp và mang hộp sữa đi nhưng không bao giờ đặt vào giỏ (basket_1 không đổi vị trí). Video agentview 256x256 10fps 280 frame: máy results/heldout_object7_videos/, local ~/workspace/your_files/trace_c02_heldout_object7_ep1-3.mp4 (MD5 khớp hai phía: ff310b72…, f90ca8ef…, ff6ff71a…). Kết quả JSON: results/eval_rawmem_heldout_object7_correct.json. Lưu ý nhất quán: task_texts trong builder đọc tasks.parquet (text nằm ở index của DataFrame) nên text_emb của MỌI task trong cache là chuỗi số thứ tự — bản mở rộng theo đúng quy ước đó; điều kiện correct không dùng text nên không ảnh hưởng lượt chạy này.
- 19:46 21/11/2026 — **PHASE C CUỐI + GATE C = FAIL (chuỗi master_chain3 + master_chain3b; lệnh validation 14:47 + đồng ý sửa lỗi 15:51 của Young):** (1) Bốn lỗi hạ tầng sửa trước/trong khi chạy: demo store mặc định thiếu train_pools cho 6/9 task tập con (KeyError 38 trong demo_pairing khi train C00) → dựng runs/demo_store_subset.pt (train_pools = 90 episode train của tập con lấy từ feature_cache_subset; train C00 trỏ SERA_DEMO_STORE vào bản này, eval C00 giữ store mặc định); eval_trace.py nạp strict với anchor trong khi ckpt không có anchor (train load_anchor=False) → strict=False + assert missing chỉ thuộc anchor.*; history của eval phải luôn đúng H=3 slot đệm zero theo quy ước data.py _query_fields → act() đệm đủ 3, kiểm chứng CPU trên máy (context [1,64,512], actions [1,16,7]); aggregator sửa tên log C00 6 chữ số (000500 thay vì 00500). (2) **C00 train mới 5.000 step XONG** (17:19:02 → 18:06:07, wall 2.825 s, exit 0, loss ≈1,03 → ≈0,89; config byte-identical công thức l60kuf, init từ init_jedi, 90 episode tập con, EMA 0,999). (3) **Eval closed-loop (9 task tập con × 3 ep, seed 0, EMA, mốc 500/1k/2k/5k):** C01 base textonly 0/0/2/3 trên 27; C02 rawmem correct 0/0/2/3 · nodemo 0/0/0/2 · hybrid 0/0/2/2 · swapped 0/0/0/0 (shadow tổng 1/27) · shuffled 0/0/0/3; C00 fs1 điều kiện b **0/27 ở cả 4 mốc** (108 ep: 103 ep không gắp được vật nào, 5 ep có gắp, 3 ep gắp đúng vật nhưng không hoàn thành). Long: C02 hybrid 0/9 (ds0/ds4/ds5 × 3 ep, hết trần 600 bước), C00 long4 ds4 0/3. (4) **Demo gain C02 = correct − nodemo: +0,0 / +0,0 / +7,4 / +3,7 điểm % tại 500/1k/2k/5k — tốt nhất +7,4 (@2k), tại 5k +3,7, đều DƯỚI ngưỡng đăng ký 15 điểm.** Shuffled @5k = 11,1% bằng đúng correct → nội dung demo không có hiệu ứng nhân quả đo được trong closed loop; mọi success @5k của TRACE chỉ nằm ở goal:0 và goal:4, và goal:0 còn đạt 2/3 khi không có tín hiệu task nào (nodemo). (5) H1 đạt trên số (C01 @5k 11,1% ≥ C00 @5k 0,0%) nhưng cả hai arm đều ở mức sàn; compositional hoà 0. **GATE C = FAIL** theo tiêu chí ràng buộc demo gain ≥ 15 — đã ghi vào status.json (gates.gate_c + bảng SR đầy đủ; chi tiết results/gate_c_summary.json). Ordered memory qua metric offline ở Gate B nhưng không tạo kênh demo dùng được trong closed loop ở ngân sách 5k — cùng mẫu hình "cơ chế đạt, rollout không theo" của chương trình fs1. C05/C06 giữ skipped. DỪNG theo protocol, không mở train mới.
- 19:52 21/11/2026 — **TRACE C02 TEST OBJECT #7 VỚI HỘP SỮA BỊ DỜI VỊ TRÍ (lệnh trực tiếp của Young 19:40):** giữ nguyên thiết lập lượt held-out 19:37 (C02 rawmem ckpt_05000, condition correct, demo ep 814 video-only, seed 0, cap 280, init chính thức 0/1/2), chỉ dời milk_1 sau set_init_state tới vị trí tuyệt đối MỚI (0.00, −0.23) chung cho cả 3 ep — độ dịch theo từng ep: (+0.117, +0.014) / (+0.120, +0.014) / (+0.125, +0.011), tổng 0.118 / 0.121 / 0.125 m, hướng sang ngang +x về giữa bàn. Harness: scripts/eval_trace_heldout_moved.py (bản sao eval_trace_heldout.py + teleport qpos joint milk_1_joint0 + 5 step tĩnh không tính vào episode + lưu frame đầu + tracking khoảng cách xy EEF tới vị trí mới và vị trí cũ). Chạy nice -n 10; chain3b đã DONE 19:43 nên không còn xung đột. **Kết quả: 0/3 success, cả 3 ep chạy hết 280 step, milk KHÔNG được nhấc ở bất kỳ ep nào (lift tối đa 0.001–0.006 m so với mặt nghỉ).** EEF tới gần vị trí CŨ của milk nhất: 0.0045 / 0.0265 / 0.0336 m; không bao giờ tới gần vị trí MỚI hơn 0.0865 m (0.0975 / 0.0948 / 0.0865). Ep 0 và 2 milk nằm nguyên tại chỗ mới tới cuối; ep 1 milk bị tay quét trúng, lăn ra (0.026, −0.329) và đổ nghiêng. Đọc hành vi: robot đi tới đúng chỗ milk "phải ở đó" theo demo/thói quen, KHÔNG đi theo vị trí thật đang nhìn thấy — đối chứng cùng task không dời: grasp được milk cả 3 ep. Video agentview 256x256 10fps 280 frame: máy results/heldout_object7_moved2_videos/, local ~/workspace/your_files/trace_c02_heldout_object7_moved_ep1-3.mp4 (MD5 khớp hai phía: 58a4b5bc…, acbe2827…, f55e7777…). JSON: results/eval_rawmem_heldout_object7_moved2_correct.json. LƯỢT PHỤ corroborate tại vị trí thứ hai (−0.24, −0.18), dịch 0.131–0.139 m: cũng 0/3, milk không được nhấc, EEF gần vị trí cũ 0.011–0.023 m vs vị trí mới 0.033–0.060 m (JSON results/eval_rawmem_heldout_object7_moved_correct.json, video results/heldout_object7_moved_videos/). PHÁT HIỆN PHỤ QUAN TRỌNG: init state chính thức của LIBERO đặt milk ở z=0.035 (thấp hơn mặt nghỉ vật lý); probe kiểm chứng: chỉ step 5 zero-action, KHÔNG teleport, z tự nảy 0.035 → 0.0666–0.0685 ở mọi vị trí — đây là tính chất của init state, xuất hiện trong MỌI eval của chương trình, KHÔNG phải vật bị kê cao như nghi ngờ ban đầu. Hệ quả: lift +0.0906 m của lượt held-out 19:37 gồm +0.0335 m nảy nền; lift grasp thật ≈ +0.057 m trên mặt nghỉ (kết luận "grasp và mang được milk" không đổi, có video xác nhận).
- 20:02 21/11/2026 — **TEST HOÁN ĐỔI VỊ TRÍ milk_1 ↔ orange_juice_1: TRACE C02 5k + SERA fs1+JEDI EMA 100k (lệnh trực tiếp của Young 19:52):** task Object #7 (ds25, "pick up the milk and place it in the basket"), init chính thức 0/1/2, seed 0, cap 280 step. Sau set_init_state và trước step đầu: hoán đổi xy của milk_1 và orange_juice_1 (mỗi vật giữ z + hướng của mình; khoảng cách hoán đổi 0,383–0,386 m): milk tới (0.15, 0.03) = chỗ cũ của juice; juice tới chỗ cũ của milk (≈(−0.12, −0.244)). TRACE: harness MỚI scripts/eval_trace_heldout_swap.py (bản sao bản moved + swap qpos 2 joint + settle 5 step), C02 rawmem ckpt_05000, condition correct, demo ep 814 video-only, cache plus25. SERA: harness MỚI tools/eval_demo_video_ro_sweep_swap.py (bản sao harness chuẩn thang 100k + swap qpos + refresh pixel theo mẫu nodist; vá tra body theo prefix vì tên body là milk_1_main), EMA checkpoints/040000/pretrained_model_ema của run l100k-visionfrozen, condition b, demo ep 814 từ demo store. **Kết quả: cả hai model 0/3 success; cả 6 ep chạy hết 280 step; milk KHÔNG bị chạm ở bất kỳ ep nào (vị trí cuối = vị trí sau hoán đổi, milk_moved_xy = 0 phía SERA, lift 0,0013 phía TRACE).** TRACE (EEF gần nhất, m): tới vị trí CŨ của milk 0,0275 / 0,0509 / 0,0153; tới vị trí MỚI 0,3059 / 0,2985 / 0,2538 — tay không bao giờ sang phía vị trí thật của milk; juice bị quét trúng và đánh đổ ở ep2 + ep3 (z cuối 0,027, nằm lăn khỏi chỗ) nhưng KHÔNG được grasp (lift tối đa 0,0135). SERA 100k (EEF gần nhất, m): tới vị trí cũ 0,0179 / 0,0136 / 0,0231; tới vị trí mới 0,1462 / 0,1643 / 0,1277; **ep2 GRASP NHẦM orange_juice_1 ở step 51 (first_grasped=orange_juice_1, right_object=false), mang đi 0,5217 m theo xy và đặt sát giỏ (juice cuối (0,024, 0,258) so với giỏ (−0,009, 0,271))** — thực thi trọn quy trình pick-and-place lên vật SAI đứng đúng vị trí quen thuộc; ep1 + ep3 không grasp vật nào, chỉ với tay về vùng cũ. Kết luận: cả hai kiến trúc đều đi theo VỊ TRÍ CŨ của hộp sữa, không đi theo vật thật; bias vị trí ở SERA mạnh tới mức gắp nhầm vật thay thế và hoàn tất chuỗi thao tác lên vật đó. Video: máy trace_validation/results/heldout_object7_swap_videos/ (TRACE) + heldout_object7_swap_sera_videos/ (SERA); local ~/workspace/your_files/swap_sua_nuoc_ep_trace5k_ep1-3.mp4 + swap_sua_nuoc_ep_sera100k_ep1-3.mp4 (MD5 khớp hai phía cả 6 file; TRACE 256×256 280 frame, SERA 360×360 141 frame). Số thô: results/eval_rawmem_heldout_object7_swap_correct.json (TRACE) + dòng RESULT trong results/eval_swap_sera_run.log (SERA).
- 20:35 21/11/2026 — **BẮT ĐẦU TRACE-VLA v2 (Young duyệt spec v2.0 lúc 20:26, lệnh chạy thực nghiệm 20:27 "máy đang trống thì tiến hành chạy thực nghiệm luôn"):** spec v2.0 lưu nguyên văn tại experiments/trace_vla/SPEC_v2.0.md (local + máy, MD5 khớp 1035766a…, 36.259 byte). Phạm vi lượt này: (1) Gate 0 phần còn thiếu — T3 object feature matching (demo ep 814 vs live scene sau hoán đổi), T5 correct vs feasible swapped demo, T6 cùng observation ba điều kiện demo; T4 oracle chỉ làm nếu sạch; T0/T1/T2 đã có kết quả hôm nay, không chạy lại. (2) Triển khai v2 core cạnh v1 (không sửa v1): Demo Object Binding (queries học được, hidden 256, temporal attention), Demo-to-Live Correspondence (softmax trên candidate regions, scorer không nhận tọa độ), Object-conditioned NEXUS qua adapter cộng vào context với lớp ra zero-init (C_object = 0 → hành vi trùng v1). (3) R3 thu nhỏ: train chỉ head binding/correspondence (đóng băng phần còn lại) trên tập con 12 task + scene can thiệp simulator (teleport đã kiểm chứng), nhãn vùng từ sim pose chỉ dùng lúc train; đánh giá standalone Recall@1 vs ngưỡng 80% của Gate Object Grounding. DỪNG trước data factory D1/D2 và train R1–R4 đầy đủ. Dashboard chuyển sang theo dõi v2 (mục v2 nổi bật trên trang 8901, v1 giữ làm lịch sử).
- 20:5x 21/11/2026 — **TRACE v2 — TRIỂN KHAI CORE XONG + GATE 0 T3/T6 (lượt 20:35):** module mới cạnh v1 (v1 không sửa): binding.py (DemoObjectBinding 2.352.898 tham số), correspondence.py (DemoToLiveCorrespondence 887.809; scorer KHÔNG nhận tọa độ), model_v2.py (ObjectConditionedAdapter 1.099.904, lớp ra zero-init → C_object=0 cho context trùng v1 bitwise; TraceVLA2 bọc v1). Tổng model v2 246.446.989. Test tests/test_v2_modules.py: **9/9 PASS** trên máy (shape/gradient/permutation/zero-condition/ ngân sách spec XXII). Phép chiếu sim 3D → patch grid đã kiểm chứng bằng ảnh chú thích (results/v2_projection_check.png: chấm sữa/nước ép/giỏ/EEF khớp vật thật). Dashboard 8901 thêm endpoint /data/v2 + khối v2 nổi bật (server chỉ khởi động lại tiến trình server, tunnel giữ nguyên URL eve-watches-writes-shine.trycloudflare.com); watcher v2_watch.sh chạy. **T6 (cùng observation Object #7, init 0/1/2, cùng nhiễu FM):** L2 chunk correct−other = 0,027 trên chuẩn chunk 4,35 (~0,6%); cos hướng 4 bước đầu correct−other = 0,9998, correct−nodemo = 0,9996 → nội dung demo gần như KHÔNG đổi action prediction; cả ba điều kiện đều hướng về sữa (cos 0,92–0,99). **Ủng hộ H2 mạnh.** **T3 (query vùng vật, scene hoán đổi sữa↔nước ép, init 0–4):** Q_live_milk (feature vùng sữa từ scene gốc) cho cosine tới sữa thật 0,845–0,853 nhưng tới nước ép (đứng tại vị trí cũ của sữa) 0,968–0,972 — margin −0,12, Recall@1 = 0/5; đối xứng Q_live_juice cũng chọn vật đứng tại vị trí cũ của nước ép (0,94–0,95 vs 0,86–0,87). Q_demo_eef (vùng quanh EEF lúc mang sữa trong demo 814) gần phẳng 0,72–0,80; Q_global không có tín hiệu identity. **H1 ĐƯỢC ỦNG HỘ ở mức feature:** feature vùng của ANCHOR bị chi phối bởi vị trí/ngữ cảnh, không mang identity bất biến vị trí qua cosine thô → correspondence phải HỌC. (Lỗi nhãn verdict trong script T3 đã sửa tại chỗ trong JSON + dashboard và sửa logic trong script.) **T4: HOÃN có lý do** — v1 không có cổng điều kiện đã train cho tín hiệu target ngoài; cổng sạch duy nhất là adapter v2 mà hiệu ứng chỉ đo được sau train R4 (ngoài phạm vi lượt này).
- 21:0x 21/11/2026 — **TRACE v2 — GATE 0 ĐÓNG + R3 THU NHỎ ĐÓNG (lượt 20:35, phần cuối):** **T5 (Object #7, demo đúng ds25 vs demo khả thi ds22 cream cheese, init 0/1/2, rollout mirror harness held-out + history đầy đủ):** vật tiếp cận đầu tiên là SỮA ở 3/3 init trong CẢ hai điều kiện; với demo cream cheese, EEF không bao giờ tới gần cream cheese hơn 14,9 cm → demo không lái lựa chọn vật (ủng hộ H2/H3). Lượt đầu của T5 bị huỷ vì hai lỗi đo của chính script: thiếu push_history và lift đo từ z init chưa settle (artifact +0,0906 m trên cả hai hộp carton dù EEF cách 30 cm) — đã sửa (z nghỉ tại step 5 + grasped = lift > 0,04 VÀ EEF < 7 cm) và chạy lại; lượt sửa: không episode nào gắp thành công ở cả hai điều kiện (EEF cách sữa 2,7–9,6 cm, lift ~0) — kết quả gắp dao động theo nhiễu FM (cùng thiết lập lúc 19:37 gắp 3/3), readout ổn định là lựa chọn vật. **R3 thu nhỏ:** dữ liệu 175 scene simulator (train 120: ds22/24/28 × orig 24/reloc 48/swap 48; eval 55: layout init 20–24 chưa train + Object #7 25 scene), nhãn vùng từ sim pose chỉ dùng train/eval. Train chỉ binding+correspondence (phần còn lại đóng băng), CE trên candidate, 320 step: train Recall@1 1,000, loss cuối 0,0002. **Eval standalone: Recall@1 scene can thiệp = 0,600 (n=50; reloc 0,6, swap 0,6), wrong-object rate 0,40 — KHÔNG ĐẠT ngưỡng Gate Object Grounding ≥ 0,80.** Baseline không train: global-cosine 0,182, last8-cosine 0,164, position-prior trên swap 0,000 → head học được hơn baseline +42 điểm trên task đã train/layout chưa train, nhưng **Object #7 = 0/25 ở mọi biến thể**. **Chẩn đoán anomaly (v2_r3_diag.py):** embedding đích của binding SỤP theo task train — cosine embedding demo sữa (ds25) với demo tomato sauce (ds28) = 0,996, với soup (ds24) = 0,984; picks trên Object #7: tomato_sauce 19/25, cream_cheese 6/25, P(sữa) trung bình = 0,0. Không phải lỗi dữ liệu/mask: head giải bài train bằng cách khắc không gian embedding theo 3 task train thay vì học identity của vật trong demo; demo lạ rơi vào basin task gần nhất. Đây là đúng căn bệnh D2 (cặp cùng scene khác goal) của spec nhắm chữa — chưa có D2 thì chưa chữa được ở quy mô này. **Profile v2 core:** tổng 246.446.989 tham số; latency context+sample v1 6,16 ms → v2 25,56 ms khi encode lại demo mỗi lần gọi (heads riêng 1,64 ms; demo encode là chi phí một lần/episode ~18–23 ms, triển khai thật cộng ~1,6 ms/replan); VRAM đỉnh đường v2 1.415,7 MB. **Dashboard v2 hoàn tất:** ảnh kiểm chứng ~/workspace/your_files/dashboard_trace_v2_20261121.png (chụp qua SSH port-forward + chrome-headless-shell; firefox snap trên máy hỏng trong phiên SSH); URL tunnel không đổi https://eve-watches-writes-shine.trycloudflare.com. **DỪNG đúng phạm vi:** không làm data factory D1/D2, không train R1–R4. Blocker dữ liệu còn lại: (1) D1 cần expert trajectory hợp lệ cho scene đã dời vật — teleport + giữ nhãn action cũ là SAI nhãn (spec 8.3), cần planner/relabel hoặc thu demo mới trong sim; (2) D2 cần cặp episode cùng scene khác goal kèm action chuyên gia riêng cho từng goal — dataset gốc không có cặp như vậy, phải sinh trong simulator bằng scripted expert hoặc teleop; (3) số task train cho grounding phải lớn hơn nhiều (3 task → sụp embedding; cần phủ đủ họ vật của Object/Goal/Spatial). Ba giả thuyết sau lượt này: H1 ĐƯỢC ỦNG HỘ (feature thô không có identity bất biến vị trí — T3), H2 ĐƯỢC ỦNG HỘ MẠNH (demo không đổi action prediction — T6; không lái lựa chọn vật — T5; Gate C demo gain fail), H3 ĐƯỢC ỦNG HỘ (hành vi bám vị trí cũ ở T1/T2/T3/T5; position-prior là baseline 0 điểm trên swap vì chọn theo vị trí luôn sai ở đó).
## 2026-11-21 21:27 — Data Factory D1/D2 pilot: GO
- Task 1 audit LIBERO (df_audit.py): robosuite 1.4.0, mujoco 3.8.1, LIBERO source install; 50 init states/task; set_init_state khôi phục (drift pose sau settle <= 2,1 mm); teleport joint qpos chính xác; gripper +1=đóng/-1=mở; predicate (in obj basket_1_contain_region) qua _eval_predicate khớp env.check_success 20/20 khi hiệu chuẩn. LIBERO không có expert tự động -> scripted OSC expert (df_expert.py). Mỗi scene BDDL chỉ chứa 7/10 vật -> cặp đích phải cùng scene: alphabet_soup_1 (ds24, native) + salad_dressing_1 (ds26) trong scene task 0.
- Pilot (df_build_pilot.py): 2 layout (orig/swap) x 4 init (0-3) x 2 goal = 8 cặp, 16/16 trajectory expert thành công (tỉ lệ 100%, 0 lần thử thất bại), 286-294 frame/ep @10fps. Support demo: dataset ep 813 (ds24) + 816 (ds26), RGB only.
- Kiểm chứng (df_verify.py): 13/13 đạt (hash cặp khớp, drift trong cặp 0,0 mm, obj_end trong giỏ 16/16, native check khớp predicate 8/8 goal A, không goal held-out, counterbalance A/B 8/8 + orig/swap 8/8, swap đổi chỗ thật <1 cm, support != query). Loader: SupportQueryData đọc cache dựng từ dữ liệu factory, 4.384 samples, batch đúng shape, support != query 100%.
- GO theo cổng spec Task 6. Chưa mở rộng dữ liệu, chưa train R1-R4. Dữ liệu trên máy: ~/sera_v4_experiments/data_factory/pilot/. Dashboard thêm khối Data Factory; ảnh ~/workspace/your_files/dashboard_data_factory_20261121.png; video mẫu 4 file df_pair_* trong ~/workspace/your_files/.
## 2026-11-21 21:28 — Mở rộng Data Factory + train/so sánh R1–R4 (lệnh Young 21:27, sau GO pilot)
- Phạm vi: chỉ tới R4. Không R5–R8. Không đổi ngưỡng Gate Object Grounding (spec v2.0 XV.3).
- Giai đoạn A: 7 scene Object train (bench 0,2,3,4,6,8,9 — kiểm kê scene_inventory.json: mỗi scene 6 vật tự do + giỏ; vật goal train/scene ≥3). Mỗi scene 2 cặp goal (native + 2 partner), pair1 init 0–4, pair2 init 5–9 (10 init train/scene; dev 20–29, final khoá 30–49 không sinh dữ liệu). Mỗi unit 8 episode: D2 orig (A,B), D2 swap (A,B), D2 relocA (A,B; dời 10–20 cm), D1 relocB (goal B), D1 relocD (dời distractor, goal A). Chỉ giữ trajectory predicate-verified; ghi kèm mask patch của mọi vật theo frame (supervision train, không vào input suy luận). Script: df_build_expand.py (expert nhanh gain 3.2, tự tune grasp offset theo vật).
- Giai đoạn B (matched, 5.000 step, seed 0, recipe C02): R1 = v1 + D0+D1; R2 = v1 + D0+D1+D2; R3 = R2 + Binding + L_match/L_target; R4 = v2 đầy đủ (Binding+Correspondence+Adapter). R0 = C02 có sẵn.
- Giai đoạn C: eval matched trên dev init 20–29, suite P0–P6, metrics spec 15.2 đo riêng; tách gain dữ liệu (R1−R0, R2−R1) và gain kiến trúc (R3−R2, R4−R2).
## 2026-11-21 22:33 — Giai đoạn A xong (mở rộng D1/D2)
- Kết quả: 551/560 episode giữ lại (D2 416, D1 135); expert thành công 551/560 = 98,4% (9 lần thất bại đã log: 8 move_timeout, 1 predicate false sau đặt). Layout: orig 140, swap 140, relocA 136, relocD 69, relocB 66. Theo scene: 77–80 episode/scene (7 scene). Theo vật đích: chocolate_pudding 96, butter 80, ketchup 80, salad_dressing 79, orange_juice 79, bbq_sauce 78, alphabet_soup 59. Tổng 125.058 frame.
- Sự cố butter_1: grasp offset 0.02–0.06 đều thất bại (gripper đóng kín, không kẹp được tấm mỏng đứng 1,8×4,0×7,8 cm); chẩn đoán bằng df_debug_butter.py cho thấy offset 0,00 grasp đúng (lift 0,143 m). Đã sửa danh sách offset (thêm 0,0/−0,01), seed offsets.json, và đổi tune-fail thành bỏ qua episode thay vì sập tiến trình. Offset đã tune: soup 0,03; salad 0,05; butter 0,00; ketchup 0,03; bbq 0,03; chocolate_pudding 0,00.
- Chain B đang chạy: dựng cache (cache_df_r1/r2) → smoke 12 step r1+r4 → train R1–R4.
## 2026-11-21 22:55 — Dọn dashboard theo lệnh Young 22:36
- Trang dashboard viết lại gọn (bản cũ lưu trên máy: www/index.html.bak-precleanup). Bỏ toàn bộ bảng thí nghiệm dài và văn bản gate của v1. Trang mới chỉ còn: dải chip verdict (Gate 0, R3 thu nhỏ, Factory pilot GO, TRACE v1 một dòng, Gate Object Grounding chờ verdict) và 4 panel biểu đồ: (1) sinh dữ liệu D1/D2 — thanh % + biểu đồ cột D1 135 / D2 416 + expert 98,4%; (2) máy train — gauge GPU/VRAM; (3) train R1–R4 — thanh % từng arm + đường loss (hiện khi có dữ liệu); (4) eval giai đoạn C — biểu đồ cột nhóm 4 chỉ số × R0–R4 (hiện khi có df_eval_summary.json).
- Updater update_dashboard_v2.py thêm mục "charts" tính từ manifest/attempts của factory, train_log.jsonl từng arm và file tổng hợp eval; watcher 30 giây giữ trang sống. Server cổng 8901 và tunnel giữ nguyên.
- Kiểm chứng: ảnh chụp qua port-forward ~/workspace/your_files/dashboard_clean_20261121.png — trang vừa một màn hình, số liệu khớp dữ liệu thật (551/560, GPU 100% lúc dựng cache). Lưu ý kỹ thuật: chrome-headless-shell treo trên VM này (network service crash); dùng bản Chrome đầy đủ ở ~/workspace/.browsers/chrome để chụp.
## 2026-11-21 23:41 — Dashboard: thêm thẻ chú thích R0–R4 (lệnh Young 23:38)
- Thêm panel "Chú thích · D0–D2 và R0–R4" giữa panel train và panel eval. Nội dung: định nghĩa ngắn của D0/D1/D2 và R0–R4 đúng định nghĩa đã đăng ký, thẻ màu khớp màu từng arm trên biểu đồ, cộng dòng "Cách đọc kết quả: gain dữ liệu = R1−R0 và R2−R1 · gain kiến trúc = R3−R2 và R4−R2".
- Kiểm chứng bằng ảnh chụp qua port-forward: ~/workspace/your_files/dashboard_legend_20261121.png. Tại thời điểm chụp: train R1 đạt 81,0% (step 4.050/5.000, loss 0,1395), đường loss đã hiện trên biểu đồ. Ổ đĩa máy train còn trống 135 GB.
## 2026-11-21 23:50 — Chuyển sang pipeline song song train + eval (lệnh Young 23:47 + 23:49)
- Tái cấu trúc giai đoạn B/C: hàng đợi eval `df_eval_queue.sh` chạy nền từ 23:50. Eval của arm bắt đầu ngay khi arm có ckpt_05000, đồng thời arm kế tiếp train tiếp trong chain cũ (không đụng tiến trình đang chạy). Thứ tự eval: R1 → R0 → R2 → R3 → R4 → correspondence → tổng hợp cuối. Tối đa một eval song song với một train. Protocol eval giữ nguyên matched (dev init 20–24, seed, suite P0–P6).
- Tài nguyên đo lúc song song: VRAM tổng 4.072/16.311 MiB, RAM 5/27 GB, train R2 giữ 0,52 s/step → không quay lại tuần tự.
- `df_eval_agg.py` đã vá: chỉ chốt verdict Gate Object Grounding khi đủ 5 arm + correspondence; trước đó ghi trạng thái running. Aggregator chạy sau mỗi eval nên dashboard có số từng arm ngay khi arm đó eval xong.
- Dashboard: thêm chip "Pipeline song song · Train R2 · Eval R1 — chạy đồng thời" và hàng tiến độ eval từng arm (chờ/đang eval/xong) trong panel giai đoạn C. Kiểm chứng sống bằng hai lần đọc cách 75 giây: train R2 step 350 → 400, loss 0,3086 → 0,2803; eval R1 1,6% → 5,1%. Ảnh kiểm chứng: ~/workspace/your_files/dashboard_live_parallel_20261121.png (trước đó: dashboard_clean_20261121.png bản dọn dẹp, dashboard_legend_20261121.png bản thêm chú thích).
- Ước tính còn lại tại 23:55: train R2 xong ~00:35, R3 ~01:25, R4 ~02:20; hàng đợi eval + correspondence xong ~03:30–03:45. Cách chạy tuần tự cũ ước tính xong ~05:45; tiết kiệm kỳ vọng ~2 giờ (sẽ đo lại bằng dấu thời gian thật trong log hàng đợi).
## 2026-11-22 00:20 — Quay lại tuần tự theo điều kiện thoát + biểu đồ eval trực tiếp + eval R0 vào hàng đợi
- Thử nghiệm song song cho kết quả âm, đo thật: load CPU 26,5/18 nhân; train R2 chậm từ 0,55 xuống ~2,7 giây/step tức thời (luỹ kế 1,29 → 1,86 giữa step 550–900); eval R1 cũng chậm (~8,1 giây/rollout). VRAM 4.072/16.311 MiB và RAM 5/27 GB đều không căng — nghẽn nằm ở CPU. Theo điều kiện thoát trong chính lệnh 23:47 của Young, em dừng hàng đợi song song lúc 00:16 và quay lại tuần tự cho các arm còn lại.
- Eval R1 lúc dừng đã đạt 61% (192/315) nên để chạy nốt độc lập, không mất rollout. Hàng đợi 2 (`df_eval_queue2.sh`) đã chạy: chờ eval R1 xong → chạy tổng hợp sớm → chờ train xong cả bốn arm → eval tuần tự R0 → R2 → R3 → R4 → correspondence → verdict cuối.
- Eval R0: Young hỏi lúc 00:14 đã so R1 với R0 được chưa — chưa, vì R0 chưa từng chạy suite P0–P6 này. R0 (checkpoint C02 có sẵn, không train lại) là eval đầu tiên của hàng đợi 2, cùng suite/cùng dev init 20–24/cùng seed. Không lấy số Gate C cũ thay thế vì khác protocol. Khi R0 có số, dashboard tự thêm cột R0 cạnh R1 trong cùng biểu đồ; báo cáo cuối sẽ ghi gain R1−R0 theo từng chỉ số.
- Biểu đồ eval trực tiếp (lệnh 00:14): updater tính 5 chỉ số từ chính file df_eval_*.jsonl đang ghi, mỗi 30 giây, kể cả khi eval chưa xong; nhãn dataset ghi n của từng arm. Ảnh kiểm chứng: ~/workspace/your_files/dashboard_eval_live_20261122.png. Số R1 trực tiếp tại n=202: chọn đúng vật 40,7% · tiếp cận 22,8% · grasp đúng 4,0% · grasp sai 4,5% · thành công 2,0% (số tạm thời, chưa phải kết quả cuối).
- Ước tính lại tại 00:20: eval R1 xong ~00:30; train R2 xong ~01:10 (sau khi eval R1 dừng, tốc độ train trở lại ~0,55 giây/step); R3 ~01:55; R4 ~02:40; các eval tuần tự + correspondence xong ~05:00–05:30.
## 2026-11-22 00:36–00:41 — Thay đổi kế hoạch: bỏ R4, train R6 trước R5, tiến trình chủ + watchdog
- Young lệnh 00:36: BỎ R4 khỏi thang. Kiểm chứng trước khi huỷ: `runs/` chỉ có r1, r2 và chuỗi đang train R2 → R4 chưa từng khởi chạy, không mất công việc. Dashboard không xoá lặng lẽ: hàng R4 ghi "đã bỏ · lệnh Young 00:36", chú thích ghi rõ đã bỏ, và R4 bị loại khỏi biểu đồ so sánh eval.
- Thứ tự train mới: R3 → R6 → R5 (chỉ đảo thứ tự train; vẫn viết lõi R5 trước vì R6 xây trên lõi đó).
- Điều phối: dừng chain B + hàng đợi 2 lúc 00:38 (train R2 chạy tiếp độc lập). Tiến trình chủ `df_master_seq.sh` (khởi chạy 00:38) sở hữu phần còn lại của đêm: chờ R2 xong → train R3 → chờ cờ r6_ready → train R6 → chờ cờ r5_ready → train R5 → eval tuần tự R0, R2, R3, R6, R5 → correspondence → tổng hợp cuối. Mỗi stage thử lại tối đa 3 lần; script có tính idempotent để watchdog phóng lại an toàn.
- Watchdog `df_watchdog.sh`: phóng lại tiến trình chủ khi chết, tối đa 3 lần, ghi log riêng. Lỗi đã gặp và đã sửa: lần phóng đầu chết ngay vì lệnh ghép chạy sai thư mục (df_watchdog.sh: No such file or directory); phóng lại bằng đường dẫn tuyệt đối lúc 00:40, xác nhận WATCHDOG START.
- Phân rã verdict mới: gain dữ liệu = R1−R0, R2−R1 · gain kiến trúc bản rút gọn = R3−R2 · gain độ trung thực spec = R5−R3 · gain module tuỳ chọn = R6−R5. Đã vá `df_eval_agg.py` (ARMS = r0, r1, r2, r3, r5, r6; gate chính ở R3; R5/R6 ghi thêm các kiểm tra tương ứng) và thẻ chú thích trên dashboard.
- Ảnh dashboard sau cập nhật R5/R6 (trước thay đổi 00:36): ~/workspace/your_files/dashboard_r5_r6_20261122.png — R5 hiện "đang viết code", R6 "chờ", biểu đồ eval có đủ cột R0–R6 với nhãn n (R1 n=315, còn lại n=0).
## 2026-11-22 01:30 — R5/R6 triển khai xong, test 21/21, smoke đạt
- R5 "PDF core" (mới: `trace_vla/binding_v3.py`, `correspondence_v3.py`, `model_v3.py`): binding theo region với relevance mềm trên từng cặp (frame, region); bản ghi binding gồm role, khoảng thời gian, confidence theo mục 6.4 của PDF. Lưới region giữ 64 (lưới gộp 8×8 của cache hiện có) vì mở lưới gốc 256 phải dựng lại mọi cache — đã ghi rõ lựa chọn như Young yêu cầu. Correspondence bỏ hẳn embedding vị trí khỏi feature danh tính (bản v2 của R4 có cộng patch_pos_emb — điểm lệch đã sửa); heatmap π = Σ mask × xác suất match theo từng camera; feature đích pool riêng theo camera; μ là tâm của π. Adapter tạo token danh tính + token vị trí theo camera và đưa VÀO tập input của SYNC qua cửa sổ bộ nhớ demo — không cộng vector sau SYNC như R4.
- R6 "PDF full" (`model_v4.py`) = R5 + 5 module tuỳ chọn: (1) temporal progress alignment — token tiến độ vào SYNC, loss MSE với vị trí frame chuẩn hoá (nhãn chỉ lúc train, trường `query_progress` mới thêm vào `df_data.py`); (2) SDE — boundary head + gán segment mềm + embedding segment vào SYNC, tự giám sát; các gate độc lập của SDE không chạy trong đêm nay; (3) ECHO v2 — dự đoán dư feature theo patch, điều kiện tường minh trên action chunk, λ=0,1, chỉ làm loss phụ, không rerank; (4) adaptive horizon — luật theo confidence ở policy eval (≥0,8 → 1 step; ≥0,55 → 2 step; còn lại 4 step), cadence này chính là đối tượng đo của module; (5) precision correction head — dư vận tốc zero-init, train end-to-end bằng loss FLUX.
- Kiểm thử `test_v3_modules.py`: 21/21 PASS. Có kiểm chứng bất biến vị trí của correspondence v3 (hoán vị patch và cột mask cùng nhau → điểm candidate không đổi), token vật bằng 0 tại khởi tạo, precision head đồng nhất tại khởi tạo. Tham số ngoài ANCHOR đóng băng: R5 49.565.584; R6 51.010.841 (R3/R4 để so: heads ngoài policy của R3 là ~3,24M trên nền v1 46,16M).
- Smoke train 12 step: R5 và R6 đều đạt, pool D0 90 / D1 135 / D2 416 khớp thang. Lỗi đã sửa trong đêm: BCE trên bản đồ xác suất π bị PyTorch chặn dưới autocast → viết lại dạng log float32 tương đương toán học (ghi trong `df_train_arms.py`).
- Eval đã tích hợp: `df_eval_arms.py` có policy v3 (R5) và v4 (R6, rollout horizon thích ứng); `df_corr_eval.py` mở rộng sang R5/R6 và bỏ qua arm thiếu checkpoint (R4 đã bỏ). Cờ `flags/r6_ready`, `flags/r5_ready` đã đặt lúc ~01:25.
- Ước tính tại 01:30: R2 xong ~01:40 → R3 ~02:20 → R6 ~03:05 → R5 ~03:50 → 5 eval tuần tự + correspondence → verdict đầy đủ ~07:00–07:30.
## 2026-11-22 05:22 — Toàn bộ thang R0–R6 xong: Gate Object Grounding FAIL ở mọi arm kiến trúc
- Tiến trình chủ báo MASTER DONE lúc 05:22 (giờ máy). Watchdog kết thúc sạch, 0 lần phóng lại. Train 5.000 step xong đủ: R1 37 phút, R2 78 phút (kéo dài vì giai đoạn nghẽn CPU khi thử song song), R3 39 phút, R6 41 phút, R5 41 phút. Eval đủ 315 rollout/arm (dev init 20–24, P0–P6), 0 điều kiện infeasible; correspondence trên 480 scene dev.
- Bảng suite chính (n=245): success — R0 0,0% · R1 2,45% · R2 1,22% · R3 1,22% · R5 2,45% · R6 1,63%. Grasp đúng — R0 0,0 · R1 4,90 · R2 1,63 · R3 2,04 · R5 2,86 · R6 3,67. Chọn đúng vật ở suite phản thực (n=175): R0 38,7 · R1 44,0 · R2 43,6 · R3 49,6 · R5 48,0 · R6 47,4. Grasp sai phản thực: 0,0–3,43% ở mọi arm.
- Phân rã gain (success/grasp, suite chính): dữ liệu R1−R0 = +2,45/+4,90 điểm · dữ liệu R2−R1 = −1,23/−3,27 · kiến trúc rút gọn R3−R2 = 0,00/+0,41 · trung thực spec R5−R3 = +1,23/+0,82 · module tuỳ chọn R6−R5 = −0,82/+0,81. Mọi gain kiến trúc nằm trong nhiễu.
- Gate XV.3 từng mục: Recall@1 can thiệp ≥0,80 — FAIL cả ba (R3 0,194; R5 0,125; R6 0,122; baseline cosine 0,153 — R5/R6 còn dưới baseline). Chọn đúng phản thực ≥0,80 — FAIL (cao nhất R3 0,496). Grasp sai phản thực <0,10 — PASS cả ba (0,034). Gain grasp ≥+0,15 — FAIL (lớn nhất +0,008).
- Nói thẳng: D1 cho gain thật nhưng nhỏ (R0 từ 0 lên có grasp/success). D2 cộng thêm làm giảm kết quả ở suite này. Không kiến trúc nào trong R3/R5/R6 phá được bức tường chọn vật/grasp ở ngân sách 5.000 step; correspondence độc lập yếu hơn hẳn kết quả R3-thu-nhỏ trước đây (0,60) vì bộ scene dev lần này rộng hơn (480 scene, 7 scene × nhiều goal) và head train chung trên pool đầy đủ.
- Thử song song train+eval (lệnh 23:47): kết quả ròng ÂM — train chậm 0,55 → ~2,7 s/step vì nghẽn CPU (load 26,5/18 nhân; VRAM chỉ 4,1/16,3 GB). Đã quay lại tuần tự theo luật thoát của chính lệnh. R2 tốn 78 phút so với ~40 phút kỳ vọng là bằng chứng chi phí.
- Hồ sơ: kết quả máy `trace_validation/results/df_eval_summary.json` + `df_corr_eval.json`; ảnh dashboard cuối [dashboard_final_verdict_20261122.png](sandbox://workspace/your_files/dashboard_final_verdict_20261122.png). Đã xoá thư mục smoke 12-step của R5/R6 (summary đã ghi ở mục 01:30).
## 2026-11-22 06:29 — Train tiếp R6 lên 30.000 step + so sánh với R6@5k (lệnh Young 06:29)
- Phạm vi: CHỈ R6. Nối tiếp từ runs/r6/ckpt_05000.pt lên 30.000 step toàn cục (thêm 25.000 step), giữ nguyên recipe/optimizer/pool cache_df_r2 (D0 90 + D1 135 + D2 416)/seed 0 của lượt thang. Chạy TUẦN TỰ (bài học nghẽn CPU đêm 21–22/11). Eval ckpt 30.000 trên đúng suite P0–P6, dev init 20–24, seed 0, 315 rollout (df_eval_arms bản sao trỏ ckpt_30000, file ra riêng df_eval_r6_30k.jsonl) + correspondence trên 480 scene dev (bản sao df_corr_eval trỏ ckpt_30000, ra df_corr_eval_r6_30k.json). So sánh với số chính thức R6@5k trong df_eval_summary.json/df_corr_eval.json + Gate Object Grounding (gain grasp tính cả so với R2 — arm tham chiếu kiến trúc — và so với chính R6@5k).
- Thiết kế resume (công bố minh bạch): ckpt của thang CHỈ lưu model + EMA + step, KHÔNG lưu optimizer state → nạp weights model + bóng EMA từ ckpt_05000 (kiểm chứng max-diff = 0 trên tensor mẫu trước khi train), AdamW khởi tạo MỚI (đúng tiền lệ nối tiếp weights-only của chương trình). LR giữ nguyên hàm recipe lr_at(step, total) với total = 30.000 và step toàn cục → tại step 5.001 LR ≈ 9,4e-5, cosine về 1e-5 tại 30.000. Generator seed giữ 1000+seed; thứ tự dữ liệu và nhiễu FM khác một run 30k liền mạch giả định — không tránh được, ghi rõ tại đây.
- Đầu ra tách riêng, không đụng artefact của thang: thư mục runs/r6_30k/ (ckpt toàn cục 10000/15000/20000/25000/30000), khoá dashboard riêng train.r6_30k / eval.r6_30k. Điều phối: scripts/df_r6_30k_seq.sh (train → eval → corr → compare df_r6_30k_compare.py → cập nhật dashboard), log data_factory/r6_30k_seq.log. Dashboard: updater + index.html thêm hàng R6→30K, biểu đồ eval trực tiếp có R6@30K, panel so sánh R6 5k vs 30k.
## 2026-11-22 06:36 — R6→30k: resume kiểm chứng đạt, train đã chạy
- Vá df_train_arms.py (sao lưu .bak-r6-30k-20261122): thêm --init/--start-step/--ckpt-steps/--tag; nạp model strict + bóng EMA từ ckpt_05000, AdamW mới; LR lr_at(step toàn cục, 30.000). Pre-flight CPU riêng: 325/325 tensor khớp key, max|model−ckpt| trên MỌI tensor = 0,0; params 51.010.841 khớp summary của thang.
- Launch 06:36:55 qua scripts/df_r6_30k_seq.sh (detached) + df_watch.sh cho dashboard. Log tiến trình chủ data_factory/r6_30k_seq.log: pool D0 90 · D1 135 · D2 416; RESUME VERIFY tại launch: 3 tensor mẫu max diff = 0,0, EMA max diff = 0,0, step=5000, arm=r6.
- Step 5.050: total 0,1707 (flux 0,1296) — cao hơn cuối mốc 5k (~0,09–0,11) đúng như kỳ vọng vì LR nảy từ 1e-5 (cuối cosine 5k) lên ~9,4e-5 theo lịch 30k; nhịp đầu 0,64 s/step.
## 2026-11-22 11:02 — R6-30K DONE: train 30k + eval + correspondence + so sánh (subagent, lệnh Young 06:29)
- **Train (100%):** 06:36:55 → 10:00:52 (wall 12.233,7 giây ≈ 3 giờ 24 phút, rc=0). Checkpoint đủ 5 mốc 10000/15000/20000/25000/30000 (mỗi file 411.454.555 byte) tại `data_factory/runs/r6_30k/`. Loss tổng: step 5050 = 0,1707 → 10000 = 0,0898 → 15000 = 0,0770 → 20000 = 0,0608 → 25000 = 0,0510 → 30000 = 0,0623 (cửa sổ 50 step cuối nhiễu; xu hướng ~0,05). val_flux tại checkpoint (text/video): 10k 0,4865/0,4873 · 15k 0,4875/0,4874 · 20k 0,4196/0,4287 · 25k 0,4222/0,4332 · 30k 0,4119/0,3919.
- **Eval (100%):** 10:00:52 → 10:42:31 (41 phút 39 giây, rc=0), đủ 315/315 rollout tại `results/df_eval_r6_30k.jsonl`, 0 infeasible. Correspondence: xong trước 10:47:20 (rc=0), `results/df_corr_eval_r6_30k.json`. Compare: 10:47:20 (rc=0), `results/df_r6_30k_compare.json`, SEQ DONE + cờ `data_factory/flags/r6_30k_done`.
- **Kết quả R6@30k vs R6@5k (nhiễu = 2SE nhị thức của @30k):** success chính 1,63% → 3,27% (+1,64đ, TRONG nhiễu) · grasp đúng chính 3,67% → 3,67% (Δ 0,0) · chọn đúng chính 41,03% → 32,95% (−8,08đ, NGOÀI nhiễu — giảm thật) · chọn đúng phản thực 47,41% → 38,69% (−8,72đ, NGOÀI nhiễu — giảm thật) · grasp sai phản thực 3,43% → 2,86% (−0,57đ, trong nhiễu) · success phản thực 3,43% → 4,57% (+1,14đ, trong nhiễu) · Recall@1 can thiệp 0,1219 → 0,0813 (−4,06đ, NGOÀI nhiễu — giảm thật; thấp hơn cả baseline cosine chưa train 0,1531) · Recall@1 mọi scene 0,1354 → 0,1000 (−3,54đ, ngoài nhiễu). Theo điều kiện: P3 vẫn sụp (selection 5,56%, success 0%); P4 success 2,86% → 7,14% (trong nhiễu).
- **Gate Object Grounding @30k: FAIL** (giống @5k). Recall@1 0,0813 ≥ 0,80: FAIL · chọn đúng phản thực 0,3869 ≥ 0,80: FAIL · grasp sai 0,0286 < 0,10: PASS · gain grasp đúng vs R2 = +0,0204 ≥ +0,15: FAIL · gain vs chính R6@5k = 0,0.
- **VERDICT:** ngân sách 30k KHÔNG đổi kết luận của thang 5k. Ba chỉ số grounding cốt lõi (chọn đúng chính, chọn đúng phản thực, Recall@1) giảm NGOÀI nhiễu; success tăng nhẹ nhưng trong nhiễu; grasp đúng phẳng tuyệt đối. Train loss giảm sâu (0,17 → ~0,05) trong khi grounding trên dev giảm: dấu hiệu overfit vào pool 641 episode, không phải thiếu ngân sách step. Nút thắt vẫn là grounding/execution, không phải thời lượng train.
- **Dashboard:** train R6_30K 100% · xong; eval R6_30K 100% · xong (n=315); panel so sánh R6 5k vs 30k hiển thị đủ bảng + dòng gate FAIL. Ảnh kiểm chứng: `~/workspace/your_files/dashboard_r6_30k_train_20261122.png` (giữa train) và `~/workspace/your_files/dashboard_r6_30k_final_20261122.png` (cuối). Máy sau chuỗi: GPU 0%, VRAM 15 MiB, ổ đĩa 85% (126 GB trống).
- **Sự cố hạ tầng phía VM (không ảnh hưởng máy train):** tiến trình waiter local bị SIGTERM 2 lần và /tmp bị dọn 1 lần; chuỗi trên máy chạy detached nên không gián đoạn. Waiter cuối chạy từ `~/workspace/experiments/sera_v4/wait_r6_30k_b.sh`.
## 2026-11-22 11:05 — Lượt R6 30k→200k: lịch vision hai pha (lệnh Young 10:59)
- Phạm vi: CHỈ R6. Nối tiếp từ runs/r6_30k/ckpt_30000.pt lên 200.000 step toàn cục. Pha 1 (30k→100k): MỞ 4 block cuối (chỉ số 8–11) + final norm của vision tower TIPSv2-B/14; text encoder và 8 block đầu giữ đóng băng. Pha 2 (100k→200k): đóng vision lại toàn bộ ở weights mốc 100k (bản EMA), train phần còn lại bằng đúng đường cache như recipe hiện tại. Checkpoint mỗi 10.000 step toàn cục. Eval tại 100k và 200k: suite P0–P6, dev init 20–24, seed 0, 315 rollout + correspondence 480 scene dev. Mọi stage chạy TUẦN TỰ.
- Vì sao pha 1 phải train từ ảnh thô: feature cache hiện tại là đầu ra của vision đóng băng; mở block 8–11 làm feature thay đổi theo step nên cache mất hiệu lực cho mọi frame policy tiêu thụ (live, history, demo). Thiết kế đường thô: (a) demo mid-cache — token sau block 7 (phần đóng băng vĩnh viễn trong cả lượt) của các frame demo (main camera, subsample 64/ep), [N,258,768] fp16; (b) raw store cho MỌI frame (2 camera, uint8 224x224; resize bilinear align_corners=False đúng phép resize trong encode_patches; frame D0 lật rot180 như build_subset_cache, frame factory không lật) — live/history encode bottom (prepare_tokens + blocks 0–7, no_grad) trực tiếp mỗi step; (c) top (blocks 8–11 + norm) chạy có grad trên token mid của mọi frame cần thiết, gộp 2x2 ra đúng pooled feature [.,64,768] mà pipeline hiện tại tiêu thụ. Kiểm chứng tách tower trước khi làm: split-encode cho max diff = 0,0 so với encode_patches (fp32, batch 32). ECHO target giữ nguyên từ cache gốc (không gian feature đóng băng gốc, đúng spec 13.3); text embedding từ cache (text encoder đóng băng). Vision chạy dưới bf16 autocast khi train như policy (AMP nhất quán với pipeline); mid-cache dựng bằng fp32.
- Throughput đo thật (RTX 5060 Ti): encode_patches fp32 192 img/s; bottom-8 no_grad fp32 286 img/s; top-4 fwd+bwd bf16 ~0,50 s/256 img. Ngân sách đĩa: raw store ~43 GB + demo mid ~17 GB + cache pha 2 ~27 GB; trống 126 GB — đủ, không xoá artefact nào. Tổng frame pool cache_df_r2: 142.560 frame, 668 episode (D0 117, D1 135, D2 416).
- LR và resume: AdamW khởi tạo mới (tiền lệ weights-only; ckpt không lưu optimizer state). Policy: lr_at(step, 200000) của recipe dùng chung cả hai pha (tại 30k ≈ 9,5e-5, cosine về 1e-5 tại 200k). Vision (chỉ pha 1): cosine riêng 1e-5 → 1e-6 trên đoạn 30k→100k, LLRD gamma 0,75 theo block (block 11 + norm hệ số 1,0; block 10: 0,75; block 9: 0,5625; block 8: 0,4219). EMA 0,999 phủ cả policy và vision_top. Checkpoint giữ nguyên khoá model/ema như cũ, lưu thêm vision_top + vision_top_ema. ANCHOR giữ eval mode khi train (deterministic, khớp đường eval) — công bố tại đây.
- Pha 2: tại mốc 100k đóng băng vision ở vision_top_ema của ckpt_100000; dựng cache_df_r2_v100k.pt từ raw store bằng encoder đó (mọi frame, fp32), rồi train bằng bản sao của df_train_arms.py trỏ cache mới — recipe không đổi; checkpoint pha 2 mang theo vision_top_ema để eval tự chứa. Eval 100k/200k: bản sao df_eval_arms/df_corr_eval có nạp vision_top_ema vào anchor của policy eval; corr eval tính lại feature demo bằng encoder của mốc (không dùng feature demo trong cache gốc).
- Kiểm chứng bắt buộc: smoke pha 1 phải cho grad norm > 0 ở blocks 8–11 + norm, = 0/None ở blocks 0–7 và text encoder; loss bước đầu cùng bậc với cuối lượt 30k (~0,06–0,5). Tại chuyển pha: vision_top_ema của ckpt_100000 là encoder duy nhất của pha 2 (kiểm chứng tensor khi dựng cache và khi eval 200k).
## PHÁT HIỆN QUAN TRỌNG — feature factory của thang bị xáo trộn layout (22/11/2026, ~11:35)
- Kiểm chứng raw store cho lượt 200k: frame D0 khớp cache (cos > 0,999) nhưng frame factory lệch hẳn (cos 0,269). Truy nguồn: `df_build_cache_expand.py` hàm `encode_factory` làm `torch.stack([av, wr], dim=1)` trên mảng NHWC [B,256,256,3] rồi `reshape(B*2, 3, 256, 256)` KHÔNG permute — buffer NHWC bị đọc thẳng thành NCHW. Mọi feature D1/D2 trong cache_df_r2 (và cache_df_r1) đều được encode từ ảnh đã qua một phép hoán vị pixel cố định (song ánh, cùng một phép cho mọi frame).
- Kiểm chứng số học: encode lại frame npz bằng đúng phép reshape đó cho cos = 1,0, max diff 0,0019 (lệch fp16) so với cache. Raw store của lượt 200k khớp npz từng pixel (diff 0) — phía sai là cache gốc, không phải raw store.
- Hệ quả lên thang R0–R6: dữ liệu factory (551/668 episode, ~88% frame) đưa vào train qua ảnh xáo trộn; eval luôn dùng ảnh thật (simulator + demo D0) nên tồn tại một lệch phân phối train/eval tích hợp sẵn cho phần factory. Kết luận thang về D1/D2 phải kèm lưu ý này.
- Xử lý cho lượt 200k (giữ phân phối khớp R6@30k): raw store lưu frame factory ĐÃ xáo trộn sẵn bằng đúng phép reinterpretation tại 256 trước khi resize 224; đường train pha 1 và cache pha 2 encode frame đã xáo trộn như ảnh thường — feature tái tạo đúng không gian mà R6 đã train. Demo mid dựng lại từ raw store đã sửa. ECHO target giữ nguyên từ cache (không gian gốc).
## 2026-11-22 11:30 — R6@30k ONE-SHOT TEST HELD-OUT THẬT Object #7: 0/3, KHÔNG GRASP ĐÚNG SỮA LẦN NÀO (lệnh Young 11:23, cắt phạm vi 11:26)
- **Phạm vi:** lệnh gốc 11:23 = one-shot 5 task × 3 ep; Young cắt lúc 11:26 vì Object #1/#5, Goal #0/#4 nằm trong pool train D0 của TRACE/Data Factory (tập con 12 task) → không phải held-out sạch với R6. Chỉ chạy Object #7 (ds25, task LIBERO chưa từng nằm trong train của TRACE) × 3 episode.
- **Thiết lập:** R6 `data_factory/runs/r6_30k/ckpt_30000.pt` (EMA). Harness MỚI `scripts/eval_r6_oneshot_obj7.py`: rollout theo đúng quy ước eval của thang (TracePolicyV4 + adaptive horizon, settle, base sau settle, mask ứng viên từ pose simulator mỗi replan, torch.manual_seed 1234) trên env LIBERO gốc `libero_object:7`, init chính thức 0/1/2, cap 280, success = `env.check_success()` gốc của task. Demo = episode đầu split train của ds25 trong `feature_cache_subset_plus25.pt` (chính là ep 814, video-only, không text demo) — cùng demo, cùng init với test C02 ngày 21/11. Stats của plus25 khớp bit với cache_df_r2 (max diff 0,0 trên cả 4 tensor, kiểm chứng trước khi chạy). Chạy nice -n 10 song song job 200k, không dừng train.
- **Kết quả từng episode:** Ep 0 (init 0): FAIL 280 step · first_approach = cream_cheese_1 · không grasp vật nào · lift sữa 0,0013 m · EEF gần sữa nhất 0,1011 m · không đặt vào giỏ. Ep 1 (init 1): FAIL 280 step · first_approach = None (không tới trong 7,5 cm của vật nào) · không grasp · lift sữa 0,0013 m · EEF gần sữa nhất 0,1083 m. Ep 2 (init 2): FAIL 280 step · first_approach = butter_1 · **GRASP NHẦM butter_1** (lift > 0,04) · sữa không được nhấc · EEF gần sữa nhất 0,1885 m. **Tổng: success 0/3 · grasp đúng sữa 0/3 · đặt vào giỏ 0/3.**
- **Đối chiếu:** C02@5k cùng test (21/11): 0/3 success nhưng grasp + nhấc đúng sữa 3/3 (lift thật ≈ +0,057 m), chỉ hỏng bước đặt giỏ. R6@30k THUA C02 ở khâu grasp trên task này: sữa không được nhấc ở cả 3 ep, 1 ep grasp nhầm butter. fs1+JEDI@100k (điều kiện b): Object #7 = 1/3 tại mốc 100k (chuỗi các mốc 2/1/0/1/1). R6@30k 0/3 đứng dưới cả hai đối chứng trên task held-out thật duy nhất của TRACE.
- **Đọc kết quả:** kiến trúc v2 đầy đủ + dữ liệu factory + train 30k không tạo được hành vi gắp đúng vật trên task chưa từng train; mẫu lỗi dời từ "gắp đúng, đặt hỏng" (C02) thành "không gắp được vật đích / gắp nhầm vật kề" — khớp verdict thang R0–R6 (Gate Object Grounding FAIL, Recall@1 dưới baseline cosine).
- **Tác động lên train 200k:** lúc phóng eval (11:27:36) stage build raw200k thứ nhất vừa xong (ALL DONE, 1015 s), GPU 0%; eval chiếm GPU ~2,3 phút (nạp model + 3 ep × 6,3–7,5 s), xong 11:29:54, trước khi stage build factory-only của job 200k bắt đầu (thấy chạy 11:30:13). Không có step train nào đang chạy trong cửa sổ eval → tác động thực tế lên tiến độ 200k = 0.
- **Sản phẩm:** máy `trace_validation/results/eval_r6_30k_oneshot_object7.json` (+ log cùng tên); dashboard khối `data_factory.oneshot_r6_30k` = done 0/3 (đã kiểm chứng qua /data/v2); ảnh `~/workspace/your_files/dashboard_r6_oneshot_obj7_20261122.png`.
## TẠM DỪNG LƯỢT R6 200k — lệnh Young 11:35 ngày 22/11/2026
- Young ra lệnh tạm dừng lượt 200k lúc 11:35. Tại thời điểm dừng, train pha 1 CHƯA bắt đầu: chuỗi master (df_r6_200k_seq.sh) và watchdog (df_watchdog200k.sh) chưa từng được phóng, thư mục flags200k chưa từng tạo — không có gì có thể tự chạy lại.
- Tiến trình duy nhất đang chạy là build dữ liệu `df_build_raw200k.py --factory-only` (PID 2890447, chạy lại phần factory sau phát hiện xáo trộn layout). Đã kill đúng PID sau khi kiểm chứng /proc/2890447/cmdline. GPU về 0%, VRAM 15 MiB.
- Step dừng: 30.000/200.000 (điểm bắt đầu của lượt). Checkpoint đầy đủ gần nhất còn nguyên trên đĩa: `data_factory/runs/r6_30k/ckpt_30000.pt` (411 MB, 10:00 22/11) cùng các mốc 10k/15k/20k/25k của lượt 30k. Không checkpoint 200k nào tồn tại. Không xoá bất kỳ file nào: mọi script (df_data_raw.py, df_train_r6_200k.py, df_train_arms_p2.py, df_build_cache_v100k.py, df_eval_arms_200k.py, df_corr_eval_200k.py, df_r6_200k_compare.py, df_verify_raw200k.py, seq + watchdog), log build và dashboard patch đều giữ nguyên.
- Trạng thái raw store tại điểm dừng (trung thực để resume đúng): hàng D0 nguyên vẹn từ build 1; hàng factory đã ghi lại bản xáo trộn tới episode 500/551 (log raw200k_build2.log dừng ở "factory 500/551"); demo_mid.dat VẪN là bản build 1 (dựng từ frame factory chưa xáo trộn) vì lượt chạy lại bị kill trước khi tới giai đoạn mid.
- Điều kiện resume khi Young ra lệnh mới: (1) chạy lại `df_build_raw200k.py --factory-only` tới hết (viết lại toàn bộ hàng factory + toàn bộ demo mid, ~18 phút); (2) `df_verify_raw200k.py` phải PASS cả ba nguồn D0/D1/D2; (3) smoke pha 1 (30 step, kiểm chứng grad) PASS; (4) mới phóng df_watchdog200k.sh. Dashboard đã chuyển khối r6_200k sang trạng thái paused kèm ghi chú lệnh dừng.
**SỬA CHỮA (Young, 11:40 ngày 22/11/2026) — so sánh Object #7 giữa R6/C02/fs1:** câu "R6@30k đứng dưới cả hai đối chứng" là KHÔNG đúng và bị rút lại. Lý do: test của C02 và của fs1 đặt vật đích tại vị trí quen thuộc trong dữ liệu train của hai model đó (layout chuẩn LIBERO, vị trí vật khớp vị trí đã thấy khi train/demo), còn R6 train trên Data Factory với vị trí ngẫu nhiên hoá và sữa chưa từng là mục tiêu — vị trí tại eval không phải vị trí quen trong train của R6. Ba lượt test không khớp nhau ở trục quen-vị-trí nên không xếp hạng chéo được. Sự thật còn đứng: trong lượt chạy của chính R6, kết quả là 0/3, có một lần grasp nhầm bơ. Muốn so chéo công bằng phải chạy lại cả ba model trên cùng init và cùng vị trí vật.
**VIDEO RERUN Object #7 (Young yêu cầu 11:38 ngày 22/11/2026):** chạy lại đúng 3 episode Object #7 của R6@30k CÓ ghi video bằng script mới `trace_validation/scripts/eval_r6_oneshot_obj7_video.py` (bản sao của harness gốc, chỉ thêm ghi frame agentview + wrist cạnh nhau 512×256, mp4v 10 fps, quy ước kênh màu như eval_trace_heldout; kết quả ghi sang file riêng `results/eval_r6_30k_oneshot_object7_video.json`, không ghi đè kết quả gốc). Thiết lập y hệt lượt gốc: ckpt_30000.pt EMA, demo ds25 video-only, seed 0, init 0/1/2, cap 280. Kết quả lượt chạy lại KHỚP lượt gốc ở mọi chỉ số kết cục của cả 3 episode (success false cả 3; ep0 first_approach cream_cheese_1, min_dist 0,1011; ep1 first_approach null, min_dist 0,1083; ep2 grasp nhầm butter_1, min_dist 0,1885; max_lift sữa 0,0013 cả 3; 280 step cả 3) — không lệch nhiễu FM ở episode nào. Video đã kéo về máy cục bộ `~/workspace/your_files/r6_30k_obj7_ep0.mp4` (1.388.710 byte), `r6_30k_obj7_ep1.mp4` (1.089.868 byte), `r6_30k_obj7_ep2.mp4` (1.804.386 byte); mỗi file 281 frame, 28,1 giây, đã trích frame kiểm chứng có hình thật (ep2 thấy gripper cầm hộp bơ ở camera wrist).
# SERA-v4 Stage 1 — Working Log (VM side, for main-chat cross-check)
## Task
Stage 1 of MoE balance-loss probe (spec: ~/workspace/research/moe-balance-loss-probe-spec.md):
4 arms × 10k micro-steps from-scratch on the Linux train machine, names sera-v4-*.
Gate to Stage 2 per spec §4. Report with % per part + evidence.
## Machine / access
- ezycloudx-admin@net2.thuepcpro.vn:45680 via egress-proxy CONNECT relay
(tools in ./tools/: connect_relay.py, lt.sh; password via LT_PW env only, never written).
- Ubuntu 24.04.5, RTX 5060 Ti 16 GB, RAM 27 GiB, disk 763 GB free at start.
- Repo: ~/lerobot (branch sera-vla-v3), venv ~/lerobot/.venv, torch 2.11.0+cu128.
- Dataset lerobot/libero rev v3.0 FULLY downloaded (457/457 files, snapshot
a1aaacb7f6cd; info.json: 1693 episodes, 273465 frames, 40 tasks, fps 10).
- TIPSv2 google/tipsv2-b14 in HF cache (snapshot ed1e4dc6), load test OK (195.9M).
## Trunk facts (verified by direct code read + introspection)
- Package: ~/lerobot/src/lerobot/policies/sera_vla_v3 (modeling_base.py 420 lines,
modeling_sera_vla_v3.py 138 lines).
- Loss is HARDCODED in modeling_base.py: total = fm + 0.01*balance + 0.0002*specialization
(config lambda_* fields are validated to equal those constants; arms therefore
switch the loss in code via a new config field v4_moe_mode).
- Routers: 4 × Linear(1024->8, no bias), input = [fusion context mean (512); state (512)];
softmax -> Top-4 soft weights (not renormalized). Routing is per-sample = per
16-step action chunk (one decision per sample, broadcast over the chunk and
over Euler steps) — chunk-consistency is intrinsic to this trunk.
- v3 goal branch: modules named goal/goal_deltas/goal_action (2,646,560 params,
zero-init deltas). training_stage=goal_only freezes all but goal (verified:
trainable 2,646,560); joint trains 69,774,880. Stage 1 uses joint (from-scratch).
- v3 launch recipe (train_sera_v3_85pct_100k.ps1): batch 8, accum 4, eval_split 0.1,
video_backend pyav, bf16 AMP, seed 42, --steps counts MICRO steps
(evidence: v3 --steps=100000 == 100k micro in lineage accounting).
## Decisions
- LR schedule for the 10k-micro probe (identical across arms): peak 1e-4
(v2-base from-scratch default). NOTE — units corrected after reading the
scheduler code (see Key technical findings): warmup 200 MICRO steps, cosine
decay over 10,000 MICRO steps to 1e-5. (v3's 2e-5/100k schedule was for
fine-tuning from a trained checkpoint; not applicable from scratch.)
- No feature caching: 80k sample draws over 273,465 frames -> ~69k unique;
frozen-encoder forward is needed once per unique sample either way; cache
would cost ~170-250 GB and pipeline risk for <15% encoder compute. Skip.
- Arm D init pairing: build skillroute init from the control init by state-dict
surgery — routers widened 1024->1536 with the extra 512 columns zero-initialised,
so at init arm D's routing function is identical to control; all other tensors
bitwise identical to the shared init.
- Arm C bias rule (DeepSeek-V3-style, selection-only): per training micro-step,
per block: load_i = share of routing slots (B*4) taken by expert i, smoothed by
EMA (decay 0.99, init 0.5); bias_i += 0.01 * (0.5 - EMA_i); bias clipped to
[-3, 3]. Selection uses logits + bias; gating weights come from the UNBIASED
softmax (bias carries no gradient, stored as a buffer, persists at inference).
Arm C keeps the 0.0002 specialization term; only L_balance is removed.
- Arm D = bundle (per tasking): (1) router input += masked-mean pooled text
embedding (1536-d input), (2) chunk-consistent routing — intrinsic to the trunk
(documented, not a code change). Loss = control.
## Code changes (on machine, in sera_vla_v3 package only)
- configuration_sera_vla_v3.py: + field v4_moe_mode (default "control") + validation.
- modeling_base.py: routers created with 1536 inputs iff skillroute; buffers
router_bias (4x8 zeros) + router_load_ema (4x8, 0.5); loss switch by mode.
- modeling_sera_vla_v3.py: encode_observation — skillroute router input;
bias-mode selection + EMA/bias update (training + grad-enabled only).
## Status
- [x] SSH path built and verified; machine idle (GPU 0%, 15 MiB).
- [x] Source read; trunk facts verified; equivalence/init counts measured.
- [x] Patches applied (git diff: 3 files, +37/−5). 4-mode functional smoke verified
numerically: control loss = FM + 0.01·bal + 0.0002·spec exactly; nobal = FM;
bias buffer moves under training (norm 0.0013 after 3 steps); skillroute runs (1536-d).
- [x] Inits created: init_control (shared A/B/C) + init_skillroute (surgery;
routing-prob max diff vs control at init = 0.0); processors saved in both.
Bug caught: policy state_dict keys are prefixed `model.` — first surgery
matched no router keys; fixed by matching `.routers.` substring.
- [x] Pipeline smoke (40 steps, arm A config): train + eval + checkpoints OK.
Solo step time 0.345 s/micro-step; trainer-reported mem ~3.96 GB.
- [x] Arm A (control) DONE: 10,000/10,000 steps, eval_loss @10k = 0.3976,
checkpoints 001000–010000 all saved. Solo rate 0.344 s/step.
- [~] Routing measurement: cache built (3,840 obs, 6.0 GB). A5 needed three
fixes: (1) single 480-sample velocity forward OOMs (8.46 GiB alloc) →
mini-batch 16; (2) MoEBlock has no `.routed` module — routed path is a
per-sample loop over `experts[i]`; (3) final A5 = exact reconstruction of
the routed branch output via hooks on experts (deterministic call order
batch-major/slot-minor) + shared hook, share = ||routed||²/(||routed||² +
||shared||²) over a 480-obs subset, fixed noise seed 123, t = 0.5.
processor-registry issue, second launch attempt was overwritten by a stale
local run_arm.sh — both fixed). **Parallelism decision: SEQUENTIAL.**
Measured: A solo 0.344 s/step; A+B 2-up → 0.68–0.69 s/step each (+98%
slowdown, aggregate throughput unchanged: 2.92 vs 2.90 steps/s). VRAM both =
10,738 MiB (fits), RAM fine — the GPU is simply compute-saturated by one run.
B's 2-up test run was killed at ~step 390 (log kept as
measurement-2up-test-b.log); arms run strictly A → B → C → D.
Note: LeRobot creates the output dir lazily at first checkpoint (step 1000) —
a missing run dir before step 1000 is normal, not a failure.
- [ ] Routing measurement at 2k/5k/10k per arm (P1 method, manifest 3,840 obs).
- [ ] Gate evaluation (spec §4), 20k extension if triggered, final report.
## Key technical findings (verified on the machine)
- **Processor registry gotcha:** lerobot-train does NOT import the v3 processor
module before loading init processors → all runs go through wrapper
~/sera_v4_experiments/tools/train_v4.py (imports processor_sera_vla_v3 first,