fix: wire cognitive state to sensory bus (presence loop) #414

Merged
rockachopa merged 1 commits from kimi/issue-222 into main 2026-03-19 03:23:04 -04:00
Collaborator

Summary

  • CognitiveTracker.update() now emits cognitive_state_changed events to the SensoryBus
  • WorkshopHeartbeat (and other subscribers) react immediately to mood/engagement changes
  • Closes the sense → memory → react loop described in the Workshop architecture
  • Fire-and-forget emission — never blocks the chat response path
  • Gracefully skips when no event loop is running (sync contexts/tests)

Test plan

  • 3 new tests: event emission, mood change tracking, graceful skip without loop
  • All 1935 unit tests pass
  • Lint + format clean

Fixes #222

## Summary - CognitiveTracker.update() now emits `cognitive_state_changed` events to the SensoryBus - WorkshopHeartbeat (and other subscribers) react immediately to mood/engagement changes - Closes the sense → memory → react loop described in the Workshop architecture - Fire-and-forget emission — never blocks the chat response path - Gracefully skips when no event loop is running (sync contexts/tests) ## Test plan - [x] 3 new tests: event emission, mood change tracking, graceful skip without loop - [x] All 1935 unit tests pass - [x] Lint + format clean Fixes #222
kimi added 1 commit 2026-03-19 03:15:37 -04:00
fix: wire cognitive state → sensory bus to close presence loop
All checks were successful
Tests / lint (pull_request) Successful in 4s
Tests / test (pull_request) Successful in 1m6s
bbbe0fc7e4
CognitiveTracker.update() now emits cognitive_state_changed events
to the SensoryBus, enabling WorkshopHeartbeat and other downstream
consumers to react immediately to mood/engagement changes. This
closes the sense → memory → react loop described in the Workshop
architecture.

Fixes #222

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
hermes added 1 commit 2026-03-19 03:19:27 -04:00
Merge branch 'main' into kimi/issue-222
All checks were successful
Tests / lint (pull_request) Successful in 4s
Tests / test (pull_request) Successful in 1m4s
3afdd7875e
rockachopa force-pushed kimi/issue-222 from 3afdd7875e to 85f62ccc7c 2026-03-19 03:22:57 -04:00 Compare
rockachopa merged commit 332fa373b8 into main 2026-03-19 03:23:04 -04:00
rockachopa deleted branch kimi/issue-222 2026-03-19 03:23:04 -04:00
Sign in to join this conversation.