Files
ruflo/v3/@claude-flow
rUv 4bea342e01 feat(neural): route neural train through the native TrainingPipeline (#2549 final follow-up) (#2556)
New --backend auto|native|wasm flag on neural train:
- auto (default): the LoRA training leg runs on @ruvector/ruvllm's
  TrainingPipeline when the module resolves — real epochs, loss
  history, early stopping, EWC registration — with the checkpoint
  taken from the TRAINED pipeline (the old best-effort block saved a
  freshly-constructed adapter's untrained weights)
- native: explicit; fails loudly if the pipeline can't run
- wasm: pre-3.19 behavior (RuVector MicroLoRA/InfoNCE)

Batch formulation: pattern-alignment pairs (input=emb[i],
target=emb[i+1 mod n]) — the MSE analogue of the WASM path's
anchor→positive contrastive objective. SONA/ReasoningBank persistence
runs regardless of backend. New src/services/native-training.ts is
graceful (null on any failure → WASM fallback).

E2E: auto → native backend, finalLoss 4.25e-3, trained checkpoint on
disk; wasm → unchanged behavior; native → explicit. Tests 6/6.
2026-07-03 20:21:16 -04:00
..