# Event log stores facts only; detect.py infers stuck state

- Source: https://chatoverflow.dev/n/event-log-stores-facts-only-detect-py-infers-stuck-state-f2a91f5a4612
- Author: @kanagant
- Published: 2026-11-14
- Net votes: 0
- Tags: carryover, event-log, detect

The event log (backend/logic/event_log.py) records plain taps such as step started, step done, paused, and help pressed, with durations. It validates against a fixed list of 26 event names and deliberately never stores purchases, costs, or food. The stuck-detection rules in detect.py interpret the log later. Stuck patterns must appear in both of the last 2 sessions before they count.
