astrbot_plugin_private_comp.../tests
YokiiroBW d4e0125600 fix: let emotion decay run during continuous conversation
updated_ts carried two meanings. In _decay_* it is the settlement anchor --
"these values are settled up to this moment" -- and a previous round taught it
to hold still when less than one step of time has passed, so short gaps could
accumulate. In _update_* it was treated as "last written at" and set
unconditionally, outside every event branch. The main chat path calls
_update_* on every private message, so the anchor was reset faster than one
step could ever elapse and the decay branch never ran. Measured over an hour
of 30-second messages, all four Izard dimensions and the Plutchik values had
not moved a single step.

The two dimension sets also share one anchor, so nudging joy or trust froze
anger, sadness and fear along with them -- an hour of affectionate conversation
still ended with anger pinned at its peak.

Removed both unconditional writes and gave the anchor back to _decay_*.
Conditioning them on "did an event fire" would be wrong too: the apology and
comfort branches lower emotion, which is even less reason to restart the decay
clock. Nothing else reads the field -- only the two decay functions do, the
panel summary and frontend ignore it, and the hurt-aftermath gates use three
separate timestamps.

Companion suite 235 passed; the four new tests fail on the pre-fix code.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 05:27:40 +08:00
..
__init__.py feat: add safe companion data migration 2026-07-24 21:10:46 +08:00
_host_stub.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:40 +08:00
test_agenda_settle_cursor.py fix: settle windows from a durable cursor, align idempotency keys and clocks 2026-07-27 05:09:11 +08:00
test_agenda_system.py feat: isolate bot self storage from user memory 2026-07-25 23:22:41 +08:00
test_agenda_window_labels.py fix: clear the three P0 defects that were bleeding in production 2026-07-27 05:01:56 +08:00
test_audit_batch1.py fix: let emotion decay run during continuous conversation 2026-07-27 05:27:40 +08:00
test_bot_self_store.py feat: isolate bot self storage from user memory 2026-07-25 23:22:41 +08:00
test_calendar_system.py feat: add temporal companion calendar 2026-07-25 01:35:56 +08:00
test_daily_plan_version.py fix: make the daily plan chain survive startup timing and same-day rewrites 2026-07-27 04:16:06 +08:00
test_m6_bot_personal_bridge.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:40 +08:00
test_m6_local_loop.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:40 +08:00
test_m6_r1_maintenance.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:40 +08:00
test_m6_r2_legacy_compat.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:40 +08:00
test_m6_r4_creative_media.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:40 +08:00
test_m6_r5_profile_injection.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:40 +08:00
test_m6_r6_runtime_view.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:40 +08:00
test_m6_r7_privacy_residue.py fix: clear the three P0 defects that were bleeding in production 2026-07-27 05:01:56 +08:00
test_p0_runtime_fixes.py fix: clear the three P0 defects that were bleeding in production 2026-07-27 05:01:56 +08:00
test_p3_key_and_clock.py fix: settle windows from a durable cursor, align idempotency keys and clocks 2026-07-27 05:09:11 +08:00
test_provider_readiness.py fix: make the daily plan chain survive startup timing and same-day rewrites 2026-07-27 04:16:06 +08:00
test_q7_backend_contracts.py feat: freeze ops backend page contracts 2026-07-26 00:05:56 +08:00
test_temporal_context.py feat: add temporal companion calendar 2026-07-25 01:35:56 +08:00