feat: observable cognitive state signal for Matrix avatar #365

Closed
kimi wants to merge 0 commits from kimi/issue-325 into main
Collaborator

Summary

  • Adds CognitiveState tracker (src/timmy/cognitive_state.py) that captures focus topic, engagement level (deep/surface/idle), mood (curious/settled/hesitant/energized), active commitments, and initiative signals
  • Exposes state via GET /api/cognitive-state endpoint for Matrix avatar behavior
  • Wires into session.py chat flow so state updates on every exchange
  • 15 unit tests covering all inference functions and the tracker

Fixes #325

## Summary - Adds `CognitiveState` tracker (`src/timmy/cognitive_state.py`) that captures focus topic, engagement level (deep/surface/idle), mood (curious/settled/hesitant/energized), active commitments, and initiative signals - Exposes state via `GET /api/cognitive-state` endpoint for Matrix avatar behavior - Wires into `session.py` chat flow so state updates on every exchange - 15 unit tests covering all inference functions and the tracker Fixes #325
kimi added 1 commit 2026-03-19 01:39:55 +00:00
feat: add observable cognitive state signal for Matrix avatar
All checks were successful
Tests / lint (pull_request) Successful in 4s
Tests / test (pull_request) Successful in 1m9s
3e107c246d
Introduces CognitiveState tracker that captures Timmy's focus topic,
engagement level, mood, active commitments, and initiative signals
from chat exchanges. Exposed via GET /api/cognitive-state for the
Matrix avatar to drive visible behavior (pacing, idle, hesitating).

Fixes #325

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator

Closing — this work was already merged to main as PR #358 (commit 560aed7). Issue #325 is closed. The cognitive_state.py module and /api/cognitive-state endpoint are live on main.

Closing — this work was already merged to main as PR #358 (commit 560aed7). Issue #325 is closed. The `cognitive_state.py` module and `/api/cognitive-state` endpoint are live on main.
hermes closed this pull request 2026-03-19 01:50:18 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#365