Skip to main content

Module lambda

Module lambda 

Source
Expand description

Forgetting factor λ resolution + range clamp (Phase C step 32).

CADMAS-CTX recommends λ ∈ [0.9, 1.0) for cyclical-drift mitigation: tighter values forget too quickly, looser values are indistinguishable from no decay. 1.0 (and above) disables decay entirely; values below 0.9 collapse the posterior toward the latest observation.

Constants§

LAMBDA_MAX_INCLUSIVE
Upper bound (exclusive): 1.0 would mean “never forget” — handled by the caller, not by this clamp. We saturate at the largest representable value strictly below 1.0.
LAMBDA_MIN
Lower bound for the forgetting factor.

Functions§

clamp_lambda
Clamp raw into the documented [0.9, 1.0) range.
env_lambda_override
Read CODETETHER_DELEGATION_LAMBDA and clamp into [0.9, 1.0).