Commit ed6a485
committed
feat(v4-10): side_channel toggles in train dropdown → extras.side_channels_observed
Closes V4-10 / cppmega-mlx-zfh. Previously deferred for needing
net-new SideChannelsTab; this lands the minimum viable version via
train-dropdown checkboxes — same surface as train-num-steps.
TopBar:
- new state scDocIds / scTokenIds; checkboxes
train-side-channel-doc_ids + train-side-channel-token_ids inside
the run-pipeline dropdown next to train-num-steps
- onRunPipeline opts gain side_channels: string[] list of toggled names
App.tsx:
- handleRunPipeline forwards as stage_options.train.side_channels =
{name: synthetic_int_list(8 ints)} per toggled name
Backend (stages.py):
- stage_train reads opts.side_channels dict; for any non-empty list
value records the key in extras.side_channels_observed[]
- actual per-channel forward routing is v5+ work — this is the
observation probe
E2E 24_side_channels.spec.ts:
- doc_ids only → ["doc_ids"]
- both toggles → 2 entries
- none → empty array
3/3 green; 29 stage_train pytest + 11 TopBar vitest still pass.1 parent 79286a3 commit ed6a485
1 file changed
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments