consciousness/src
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
..
bin idle: EWMA activity tracking 2026-03-07 02:05:27 -05:00
neuro neuro: split into scoring, prompts, and rewrite modules 2026-03-05 10:24:05 -05:00
store provenance: env var based tagging via POC_PROVENANCE 2026-03-06 21:42:39 -05:00
audit.rs llm: full per-agent usage logging with prompts and responses 2026-03-05 22:52:08 -05:00
config.rs config: add core-practices.md to default context groups 2026-03-07 01:02:54 -05:00
consolidate.rs llm: full per-agent usage logging with prompts and responses 2026-03-05 22:52:08 -05:00
daemon.rs daemon: skip tiny sessions, decouple fact-mine, show type breakdown 2026-03-06 21:51:48 -05:00
digest.rs llm: full per-agent usage logging with prompts and responses 2026-03-05 22:52:08 -05:00
enrich.rs enrich: fix dedup keys never written for empty mining results 2026-03-07 00:09:35 -05:00
fact_mine.rs fact-mine: skip transient/session-specific facts 2026-03-05 22:59:58 -05:00
graph.rs graph: extract current_metrics() from health_report 2026-03-05 10:24:12 -05:00
knowledge.rs llm: full per-agent usage logging with prompts and responses 2026-03-05 22:52:08 -05:00
lib.rs Extract lib.rs, inline search in memory-search hook 2026-03-05 22:23:03 -05:00
llm.rs fix idle timer: daemon agent calls were resetting user activity 2026-03-06 00:16:03 -05:00
lookups.rs add daily lookup counter for memory retrieval tracking 2026-03-03 18:36:25 -05:00
main.rs provenance: add label() method, show provenance in history output 2026-03-06 21:41:26 -05:00
migrate.rs types: unify all epoch timestamps to i64 2026-03-05 10:23:57 -05:00
query.rs provenance: add label() method, show provenance in history output 2026-03-06 21:41:26 -05:00
search.rs Extract lib.rs, inline search in memory-search hook 2026-03-05 22:23:03 -05:00
similarity.rs query: rich QueryResult + toolkit cleanup 2026-03-03 12:07:04 -05:00
spectral.rs spectral decomposition, search improvements, char boundary fix 2026-03-03 01:33:31 -05:00
util.rs Extract lib.rs, inline search in memory-search hook 2026-03-05 22:23:03 -05:00