astrbot_plugin_private_comp.../tests
agent-bot 2755c6e69d fix: disambiguate the two late-night windows on the timeline
深夜跨午夜(22:00-06:00),同一份计划里的 00:30 与 23:00 都叫「深夜」,
却分属两个日程日——按 window_for_datetime,7/27 的 00:30 属于 7/26 的深夜。
此前时间轴只用分钟数判定窗口,把这一维丢了,于是列表里出现两个一模一样的
「深夜」标题,看不出谁是昨夜谁是今夜。

新增 agenda_contracts.window_for_plan_minutes(计划日 + 分钟 -> 窗口名 + 窗口日期),
内部还原成真实时刻后交给 window_for_datetime,判定只保留那一处实现;
分钟数带 +1440 回绕偏移时先拆天偏移。标签渲染成「深夜 · 昨夜」/「深夜 · 今夜」。

新增 7 项回归,含与 window_for_minutes 的一致性校验。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 03:02:00 +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_system.py feat: isolate bot self storage from user memory 2026-07-25 23:22:41 +08:00
test_agenda_window_labels.py fix: disambiguate the two late-night windows on the timeline 2026-07-27 03:02:00 +08:00
test_audit_batch1.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37: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_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: decouple MemoryCompanion bridge from LivingMemory switch; drop LivingMemory 2026-07-27 02:11:18 +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