feat(ai-psychosis): tier-2 user-info isolation alert (cross-session)
This commit is contained in:
parent
4fd5e7b24a
commit
61584f42d6
3 changed files with 105 additions and 0 deletions
|
|
@ -52,6 +52,11 @@ if (startEpoch > 0) {
|
|||
durationMin = Math.floor((nowTs - startEpoch) / 60);
|
||||
}
|
||||
|
||||
// v1.2: also persist user_info_class (read-only — set during prompt-analyzer).
|
||||
const userInfoClass = state.user_info_class || null;
|
||||
const valseekCount = Number(state.valseek_count) || 0;
|
||||
const turnCount = Number(state.turn_count) || 0;
|
||||
|
||||
// Append finalized session record
|
||||
appendJsonl(SESSIONS_LOG, {
|
||||
session_id: sid,
|
||||
|
|
@ -61,6 +66,9 @@ appendJsonl(SESSIONS_LOG, {
|
|||
tool_count: toolCount,
|
||||
edit_count: editCount,
|
||||
domain_context: domainContextArray,
|
||||
user_info_class: userInfoClass,
|
||||
valseek_count: valseekCount,
|
||||
turn_count: turnCount,
|
||||
flags: {
|
||||
dependency: depFlags,
|
||||
escalation: escFlags,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue