fix(safety): crisis detection — augment wired to system prompt, ts fallback, cross-session affective
Merge improve/safety-crisis-detection (PR #31): reads layered_cycle_safety_system_addendum from state and appends to system prompt on each turn (cleared after use to prevent bleed). Safety ts extraction falls back to updated_at. Affective prefix now wires into system build. Conflict with PR #33 resolved: capability_rules and session_preload both preserved.
This commit is contained in:
@@ -258,7 +258,7 @@ fn emit_session_start_event() -> Void {
|
||||
// L0 (core) → L1 (safety screen) → L2a (continuity + behavioral profiling) → L2b (mission alignment) → L3 (imprint) → L1 (safety validate)
|
||||
// Internal cognition (heartbeat, proactive, memory ops) bypasses layers — use one_cycle directly.
|
||||
fn layered_cycle(raw_input: String) -> String {
|
||||
let history: String = state_get("conversation_history")
|
||||
let history: String = state_get("conv_history")
|
||||
let session_id: String = state_get("current_session_id")
|
||||
|
||||
// L1 in: safety screen
|
||||
|
||||
Reference in New Issue
Block a user