mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-22 19:56:25 +00:00
Replace epsilon-greedy with two-signal Thompson Sampling (safety Beta posterior + cost EMA) for Mode C learned policy. Score = safety_sample - lambda * cost_ema provides principled exploration-exploitation. Add speculative dual-path for Mode C only: when Beta variance > 0.02 and top-2 arms within delta 0.15, run both arms (60/40 budget split) to resolve uncertainty faster while keeping Mode A/B ablation clean. Add constraint propagation pre-pass as PolicyKernel-controlled mode (Off/Light/Full, defaults to Off). Light handles InMonth+DayOfMonth direct solves; Full adds DayOfWeek pruning for ranges ≤60 days. PrepassMetrics tracks pruned_candidates, prepass_steps, scan_steps_saved. Beta sampling via Marsaglia-Tsang Gamma method + Box-Muller normal. https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||