feat(profiler/behave_shell): emit environmental.numpad_usage

Sliding-window scan over single-char digit input events. A run of
NUMPAD_RUN_MIN (4) consecutive digit events whose pairwise IATs are
all ≤ NUMPAD_FAST_IAT_S (50ms) → detected. Otherwise → not_detected.
Skips below NUMPAD_MIN_TYPED_CHARS (50) typed chars. Confidence cap
0.50 per the registry's weak-signal flag.
This commit is contained in:
2026-05-04 00:40:42 -04:00
parent cd7c7ea5a2
commit c8166a6071
4 changed files with 121 additions and 0 deletions

View File

@@ -263,6 +263,15 @@ LAYOUT_QWERTZ_Z_MIN: float = 0.030 # high `z` rate (German content / QWERTZ
LAYOUT_QWERTZ_Y_MAX: float = 0.010 # AND `y` swap signature
LAYOUT_QWERTY_ENG_MIN: float = 0.080 # English-bigram saturation floor
# ── environmental.numpad_usage (Step F.5) ──────────────────────────────────
# A digit run = NUMPAD_RUN_MIN consecutive single-char digit events
# whose pairwise IATs are all ≤ NUMPAD_FAST_IAT_S. Numpad muscle memory
# produces faster digit IATs than touch-typing on the top row.
NUMPAD_FAST_IAT_S: float = 0.050
NUMPAD_RUN_MIN: int = 4
# Below this many typed chars total, skip emission (no honest signal).
NUMPAD_MIN_TYPED_CHARS: int = 50
# ── motor.keystroke_cadence (Step B.1) ──────────────────────────────────────
# Typing bursts split at gaps > IKI_THINK_MAX_S so think-pauses between
# commands don't inflate the within-burst CV. Mirrors the prototype's