jgrusewski
bc9eaac89d
fix(rl): B-6 — ISV-driven adaptive asymmetric Wiener-α (Bayesian shrinkage)
B-5 (asymmetric α with static α_slow=0.001) revealed the static parameter
problem: provably bounds cascades (avg_win peak $2k vs B-4's $40k) BUT
over-conservative in train (dckcc step 800: avg_l > avg_w → Kelly says
don't trade → model can't discover edges; wr_ema crashed to 0.145).
The fundamental tension: static α_slow can't satisfy BOTH
- Train convergence: asymmetry must FADE so model learns from real data
- Boundary safety: asymmetry must ENGAGE at every fold to prevent cascade
B-6 RESOLVES this via Bayesian shrinkage:
trust(n) = min(1, cum_dones / n_full_threshold) [Phase 1]
stability = exp(-CV × cv_gain) [Phase 2]
trust_eff = trust(n) × stability
α_slow_eff = α_slow_min + (α_fast − α_slow_min) × trust_eff
Phase 1 (data-quantity): trust grows with cum_dones; reset_session_state
zeroes cum_dones → asymmetry RESUMES at every boundary. Math: at n=0
α_slow_eff = α_slow_min = 0.001 (full skepticism). At n=n_full = 30k
trades: α_slow_eff = α_fast = 0.05 (full standard Wiener).
Phase 2 (data-quality): Welford CV of reward magnitude gates trust. Stable
signal (CV→0): stability=1, trust opens normally. Volatile signal (CV high):
stability→0, asymmetry persists. cv_gain=0 disables Phase 2.
Per-EMA asymmetry direction encodes Kelly safety semantics:
avg_win: slow-up (skeptical of wins), fast-down
avg_loss: fast-up (admit losses), slow-down (slow forget)
wr_ema: slow-up (skeptical of high WR), fast-down
ISV slots (all signal-derived from cum_dones + Welford):
721 RL_EMA_ALPHA_SLOW_MIN_INDEX = 0.001
722 RL_EMA_TRUST_FULL_THRESHOLD_INDEX = 30000
723 RL_EMA_CV_GAIN_INDEX = 1.0
Threshold calibration (n_full=30k):
- Train: ~1000 cluster steps for trust to fully open → asymmetry active
during cold-start (first 30 steps, cascade prevention) then fades.
- Eval: 30 dones/step × 500 eval steps = 15k dones → trust climbs to 0.5
by eval end → partial protection throughout eval.
Composes:
- B-3 Kelly fractional-trust (Kelly SIZING gated by cum_dones)
- B-6 EMA asymmetric-α (Kelly INPUTS biased conservative by cum_dones)
Both fade as data accumulates; both reset at boundary.
Spec: docs/superpowers/specs/2026-06-01-ema-asymmetric-trust-with-cv-gain.md
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 01:13:27 +02:00
..
2026-05-19 01:19:13 +02:00
2026-05-16 21:57:26 +02:00
2026-05-22 11:16:29 +02:00
2026-05-22 09:03:00 +02:00
2026-05-16 22:59:36 +02:00
2026-05-18 14:59:12 +02:00
2026-05-21 16:18:04 +02:00
2026-05-21 23:48:15 +02:00
2026-05-16 21:50:20 +02:00
2026-05-21 20:43:51 +02:00
2026-05-30 15:41:51 +02:00
2026-05-23 10:39:25 +02:00
2026-05-22 22:28:19 +02:00
2026-06-01 01:13:27 +02:00
2026-05-19 17:32:28 +02:00
2026-05-21 19:10:22 +02:00
2026-05-30 11:52:36 +02:00
2026-05-22 01:45:45 +02:00
2026-05-30 11:52:36 +02:00
2026-05-21 16:04:29 +02:00
2026-05-23 13:36:03 +02:00
2026-05-26 16:46:10 +02:00
2026-05-30 11:52:36 +02:00
2026-05-24 19:23:39 +02:00
2026-05-22 20:46:55 +02:00
2026-05-25 22:37:40 +02:00
2026-05-22 01:45:45 +02:00
2026-05-19 01:19:13 +02:00
2026-05-22 11:32:19 +02:00
2026-05-16 21:42:28 +02:00
2026-05-23 10:39:25 +02:00
2026-05-16 21:52:57 +02:00
2026-05-30 11:52:36 +02:00
2026-05-23 12:59:42 +02:00
2026-05-30 11:52:36 +02:00
2026-05-31 12:59:48 +02:00
2026-05-30 15:41:51 +02:00
2026-05-22 01:07:33 +02:00
2026-05-18 23:16:38 +02:00
2026-05-30 20:52:28 +02:00