feat(memory): emotional salience tagging and cross-session distress persistence #34
Reference in New Issue
Block a user
Delete Branch "improve/soul-memory-formation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tag distress exchanges as BellEvent nodes in auto_persist, include recent emotional context in engram_compile, preserve bell-turn history across session boundary.
- engram_compile: BellEvent nodes do not carry created_at in the engram node JSON; extract the unix timestamp from the embedded ' | ts:NNNNN' pattern in the content string instead. Fall back to created_at/updated_at if the marker is absent. Guard str_to_int against empty string so the 72h recency check never silently treats every node as epoch-0 stale. - auto_persist: append the current unix timestamp to the BellEvent label ('bell:soft:1749876543') to make it unique per turn. The previous label ('bell:soft') was the same for every soft bell, causing engram to treat all subsequent writes as updates to the same node.