Commit graph

2 commits

Author SHA1 Message Date
monkey-w1n5t0n
1127c8aac9 fix: default to visual mode (20 outputs) and fix FlowField canvas resize
Change default outputMode from 'synth' to 'visual' in ml-store.ts so
FlowField particles render immediately on page load. Fix FlowField
component canvas initialization: create visualizer in ResizeObserver
callback (after layout) instead of in createEffect (before layout
settles), preventing the default 300x150 canvas size issue. Add window
resize listener as fallback. Update all 13 affected tests to expect 20
outputs (visual mode default) instead of 126 (synth mode).

Unblocks VAL-VIS-001, VAL-VIS-002, VAL-VIS-003.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-04-07 19:01:55 +02:00
monkey-w1n5t0n
9887bf50c9 feat(solidjs): implement reactive inference loop with NaN-safe clamping and comprehensive e2e tests
- Add NaN/Infinity guard in MLStore.setInputs() — non-finite values map to 0.5 (center)
- Add 14 e2e tests covering VAL-ML-004 (different inputs → different outputs) and
  VAL-ML-005 (synchronous inference — getOutputs immediately reflects setInputs)
- Tests cover: position differentiation, sequential consistency, clamping verification,
  boundary values, NaN handling, bus emission, and determinism

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-04-07 17:34:34 +02:00