feat(ai-psychosis): add pushback_count + domain_context state fields

This commit is contained in:
Kjell Tore Guttormsen 2026-05-01 17:06:09 +02:00
commit 080f2414ad
4 changed files with 14 additions and 0 deletions

View file

@ -128,6 +128,8 @@ export const THRESHOLD_SOFT_DEP_FLAGS = 2;
export const THRESHOLD_HARD_DEP_FLAGS = 5;
export const COOLDOWN_SOFT = 1800;
export const COOLDOWN_HARD = 3600;
// v1.1.0 — counting threshold; tier-reduction logic is v1.2 scope
export const THRESHOLD_PUSHBACK_FLAGS = 2;
// --- Session counting ---

View file

@ -38,6 +38,8 @@ const state = {
esc_flags: 0,
fatigue_flags: 0,
val_flags: 0,
pushback_count: 0,
domain_context: null,
last_warning_epoch: 0
};
writeState(state);