astrbot_plugin_private_comp.../tests
YokiiroBW cdc402888b fix: clear the three P0 defects that were bleeding in production
All three shared a shape: the symptom was invisible from the data, so every
acceptance run stayed green while the VM was failing.

daily_state still called _ensure_daily_news_reading, removed when the news
feature was retired. The VM threw AttributeError 14 times in three hours and
marked the "today's schedule" maintenance step failed, but the crash sits
after the plan is saved -- so the stored plan always looked correct. Removed
the call and added a repo-wide scan rather than a single-point assertion,
since this kind of residue is by definition somewhere you did not look.

enable_memory_companion_bridge, the master switch for the whole archive
chain, was never added to _conf_schema.json. _cfg_bool falls back to True, so
the feature worked and only its operability was missing -- nothing could have
failed. It now sits in the visible external_memory_config group, with an
assertion that _flat_get still resolves it by flat key.

A fallback plan carried today's date, and all three reuse branches key on the
date alone, so one startup timing hiccup froze a template plan into the day
and archived it as real. source="fallback" was produced and never consumed;
now a fallback can be upgraded once the provider is back, capped at three
attempts and bucketed per day.

Also fixed two test files whose classes sat after the __main__ guard (silently
dropped when run directly) and the retired-config prefix list, which only
listed the uppercase WEB_EXPLORATION_ form and missed the lowercase schema keys.

VM after restart: 0 AttributeError, 0 ERRO/Traceback, plan intact at v2/llm,
switch materialised as True. Companion suite 218 passed, joint E2E 135/135.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 05:01:56 +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: clear the three P0 defects that were bleeding in production 2026-07-27 05:01:56 +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_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_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