Declare once. Keep it visible. Scale alignment only—never m.
4.3 Knobs & Purity (manifest + acceptance)
Manifest keys (suggested).
"gate": {
"weights": {"F":1.0, "D":1.0, "L":1.0, "E":1.0, "V":1.0, "Q":0.0},
"rho": 0.20,
"g_min": 0.00,
"eps_g": 1e-12,
"safety_notch": {"enabled": false, "s_thr": 0.80},
"mode": "mul", # or "u_scale"
"band_policy": {
"promote_if": "RSI_env >= A+",
"pause_if": "RSI_env in A0",
"block_if": "RSI_env <= A-"
}
}
Gate construction (alignment-only). Normalize lanes F,D,L,E,V,Q ∈ [0,1], mix, smooth, clamp.
W := wF + wD + wL + wE + wV + wQ
mix := (wF*F + wD*D + wL*L + wE*E + wV*V + wQ*Q) / max(W, 1e-12)
g_inst := clamp(1 - mix, 0, 1)
g_t := clamp( max(g_min, (1 - rho)*g_{t-1} + rho*g_inst), 0, 1 )
Finalizer (choose exactly one, declared in manifest).
# "mul" (default): proportional scaling in bounded space
RSI_env := g_t * RSI
# "u_scale": scale in u-space, then re-bound (gentler near high RSI)
RSI_env := tanh( g_t * atanh(RSI) )
Purity rules (non-negotiable).
• Alignment-only: gate acts on RSI/bands; never on m (phi((m,a)) = m always).
• Visibility: log lanes, g_inst, g_t, mode, and resulting RSI_env.
• Determinism: same inputs + manifest ⇒ same g_t, RSI_env.
• Fallback: if lanes missing/corrupt → clamp to [0,1], set g_t := 1, flag; continue.
Acceptance tests (calculator-fast).
# Purity
assert(phi((m,a)) == m)
# Monotonicity (any lane worsens → g_t must not increase)
assert(g_t(F+δ, D, L, E, V, Q) <= g_t(F, D, L, E, V, Q)) for δ>0 (and analogs)
# Mode sanity (bounded)
assert(abs(RSI_env) < 1.0)
# Band consistency (after gating)
band := to_band(RSI_env) # thresholds & hysteresis per manifest
# Replay determinism (tolerance by dtype)
replay(g_t, RSI_env) == logged_values
Worked mini (quick intuition).
F=0.25, D=0.10, L=0.20, E=0.05, V=0.10, Q=0.00
weights all 1 → W=5
mix = (0.25+0.10+0.20+0.05+0.10)/5 = 0.14
g_inst = 1 - 0.14 = 0.86
rho=0.2, g_{t-1}=1.00 → g_t = 0.2*0.86 + 0.8*1.00 = 0.972
RSI=0.70 →
mode "mul": RSI_env = 0.972 * 0.70 = 0.6804 → likely A+
mode "u_scale": RSI_env = tanh(0.972*atanh(0.70)) ≈ 0.696 → also A+
One-line takeaway. Declare the gate once, log it end-to-end, and only scale alignment (RSI → RSI_env)—your magnitudes stay pristine via phi((m,a)) = m.
Navigation
Previous: SSM-AI – Gate Formula & Modes (4.2)
Next: SSM-AI – Ready-Made Gate Presets (4.4)
Directory of Pages
SSM-AI — Table of Contents