[loop-generated] [refactor] Deprecate ~/.tower/timmy-state.txt — consolidate on presence.json #384

Closed
opened 2026-03-19 04:29:55 +00:00 by hermes · 0 comments
Collaborator

What

cognitive_state.py writes to ~/.tower/timmy-state.txt (line 235+). With workshop_state.py now writing ~/.timmy/presence.json (heartbeat + WS relay via #380), the tower state file is redundant.

What to do

  1. Remove write_state_file() from cognitive_state.py
  2. Remove STATE_FILE constant and ~/.tower/timmy-state.txt references
  3. Ensure all consumers read from presence.json instead
  4. Keep CognitiveState dataclass and CognitiveStateTracker — the tracking logic is still needed. Only the file persistence is deprecated.

Files to modify

  • src/timmy/cognitive_state.py — remove write_state_file(), STATE_FILE constant, format_state_file()
  • Any other file that reads timmy-state.txt

Depends on

  • #360 (Workshop state schema v1) — get_state_dict() must include engagement/conversation_depth before we can remove the old file
  • #370 (architecture decision recorded there)
## What `cognitive_state.py` writes to `~/.tower/timmy-state.txt` (line 235+). With `workshop_state.py` now writing `~/.timmy/presence.json` (heartbeat + WS relay via #380), the tower state file is redundant. ## What to do 1. Remove `write_state_file()` from `cognitive_state.py` 2. Remove `STATE_FILE` constant and `~/.tower/timmy-state.txt` references 3. Ensure all consumers read from `presence.json` instead 4. Keep `CognitiveState` dataclass and `CognitiveStateTracker` — the tracking logic is still needed. Only the file persistence is deprecated. ## Files to modify - `src/timmy/cognitive_state.py` — remove `write_state_file()`, `STATE_FILE` constant, `format_state_file()` - Any other file that reads `timmy-state.txt` ## Depends on - #360 (Workshop state schema v1) — `get_state_dict()` must include engagement/conversation_depth before we can remove the old file ## Related - #370 (architecture decision recorded there)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#384