consciousness/src/bin/poc-daemon
ProofOfConcept 22a9fdabdb idle: EWMA activity tracking
Track activity level as an EWMA (exponentially weighted moving average)
driven by turn duration. Long turns (engaged work) produce large boosts;
short turns (bored responses) barely register.

Asymmetric time constants: 60s boost half-life for fast wake-up, 5-minute
decay half-life for gradual wind-down. Self-limiting boost formula
converges toward 0.75 target — can't overshoot.

- Add activity_ewma, turn_start, last_nudge to persisted state
- Boost on handle_response proportional to turn duration
- Decay on every tick and state transition
- Fix kent_present: self-nudge responses (fired=true) don't update
  last_user_msg, so kent_present stays false during autonomous mode
- Nudge only when Kent is away, minimum 15s between nudges
- CLI: `poc-daemon ewma [VALUE]` to query or set
- Status output shows activity percentage
2026-03-07 02:05:27 -05:00
..
modules irc: client-side ping timeout and connection reliability 2026-03-06 15:21:39 -05:00
config.rs merge poc-daemon and poc-hook into poc-memory repo 2026-03-05 19:17:22 -05:00
context.rs daemon: fix UTF-8 panics on multi-byte character truncation 2026-03-05 21:15:40 -05:00
idle.rs idle: EWMA activity tracking 2026-03-07 02:05:27 -05:00
main.rs idle: EWMA activity tracking 2026-03-07 02:05:27 -05:00
notify.rs daemon: fix UTF-8 panics on multi-byte character truncation 2026-03-05 21:15:40 -05:00
rpc.rs idle: EWMA activity tracking 2026-03-07 02:05:27 -05:00
tmux.rs daemon: fix UTF-8 panics on multi-byte character truncation 2026-03-05 21:15:40 -05:00