fix(safety): crisis detection 4 fixes #31

Closed
will.anderson wants to merge 0 commits from improve/safety-crisis-detection into main
Owner

Fix state key bug in layered_cycle, add indirect crisis patterns, wire safety_augment_system into main chat path, add cross-session affective context load at session start.

Fix state key bug in layered_cycle, add indirect crisis patterns, wire safety_augment_system into main chat path, add cross-session affective context load at session start.
will.anderson added 1 commit 2026-06-22 16:21:15 +00:00
fix(safety): crisis detection — 4 targeted fixes
Neuron Soul CI / build (pull_request) Failing after 14m43s
e9a8a659e0
- soul.el: fix state key bug in layered_cycle (conversation_history -> conv_history)
- safety.el: add indirect crisis location patterns to soft_bell phrase list
- soul.el: wire safety_augment_system into layered_cycle for soft_bell turns
- chat.el: load cross-session affective context at session start when distress signals found within 72h
will.anderson added 1 commit 2026-06-22 17:07:52 +00:00
fix(safety): wire safety augment into system prompt, fix timestamp fallback
Neuron Soul CI / build (pull_request) Has been cancelled
c87a536da3
- Remove dead soft_bell block in layered_cycle that wrote soul_safety_system_augment
  to state but was never read; safety augmentation now goes through the correct
  layered_cycle_safety_system_addendum state key read by build_system_prompt
- build_system_prompt now reads layered_cycle_safety_system_addendum and appends
  it to the system prompt, clearing the key after consumption
- Timestamp extraction for distress nodes falls back to updated_at when created_at
  is empty, preventing the 72h recency check from always treating nodes as stale
will.anderson closed this pull request 2026-06-22 17:17:11 +00:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: neuron-technologies/neuron#31