astrbot_plugin_memory_compa.../tests
YokiiroBW 600b07e15c test: locate the companion repo instead of assuming one layout
test_m6_r2_real_dto_shape resolved the companion repo as a sibling directory,
which is only true of the development checkout. On the VM the skipif was
always true, so the seven cases that exercise the companion's real DTO builder
-- the only genuine check of the cross-plugin envelope shape -- never ran in
the environment that most needed them, and a skip shows up as a missing dot
rather than a failure.

test_ops_migration had the harder version of the same bug: the import simply
failed, and working around it with PYTHONPATH let the memory side's own
core/ops_migration shadow the companion module, producing two failures that
looked like product defects and were not.

Resolution now lives in tests/_companion_repo.py and tries, in order, the
COMPANION_PLUGIN_ROOT override, the sibling development directory, the
sibling deployed directory (_ops suffix), and one level up. The path helper
inserts at the front of sys.path deliberately: getting that order wrong fails
as "green but testing the wrong module", which is worse than an ImportError.

Memory suite 330 passed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 05:41:32 +08:00
..
__init__.py chore: import memory companion baseline 2026-07-24 00:25:42 +08:00
_companion_repo.py test: locate the companion repo instead of assuming one layout 2026-07-27 05:41:32 +08:00
test_archive_contract.py feat: add temporal awareness to ops memory 2026-07-24 23:06:13 +08:00
test_audit_batch1_fixes.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:20 +08:00
test_bot_personal_memory.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:20 +08:00
test_bridge_ops_contract.py feat: add operations event domain contract 2026-07-24 22:16:30 +08:00
test_bridge_shared_experience.py feat: enforce Q5 user memory boundaries 2026-07-25 23:29:48 +08:00
test_calendar_bridge.py feat: enforce Q5 user memory boundaries 2026-07-25 23:29:48 +08:00
test_cross_window_continuity.py chore: import memory companion baseline 2026-07-24 00:25:42 +08:00
test_epistemic_calibration.py feat: enforce Q5 user memory boundaries 2026-07-25 23:29:48 +08:00
test_historical_chat_import.py chore: import memory companion baseline 2026-07-24 00:25:42 +08:00
test_m6_r2_real_dto_shape.py test: locate the companion repo instead of assuming one layout 2026-07-27 05:41:32 +08:00
test_m6_r4_creative_media_domain.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:20 +08:00
test_m6_r5_bot_profiles.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:20 +08:00
test_m6_r6_bot_archive_api.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:20 +08:00
test_m6_r7_domain_isolation.py feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:20 +08:00
test_operations.py chore: import memory companion baseline 2026-07-24 00:25:42 +08:00
test_ops_domain.py feat: add operations event domain contract 2026-07-24 22:16:30 +08:00
test_ops_migration.py test: locate the companion repo instead of assuming one layout 2026-07-27 05:41:32 +08:00
test_panel_regressions.py feat: add calendar-aware ops memory history 2026-07-25 01:35:41 +08:00
test_q6_user_fact_bridge.py feat: add read-only user fact bridge 2026-07-26 02:14:15 +08:00
test_qq_history_reader.py chore: import memory companion baseline 2026-07-24 00:25:42 +08:00
test_rerank_validation.py chore: import memory companion baseline 2026-07-24 00:25:42 +08:00
test_retrieval_performance.py feat: enforce Q5 user memory boundaries 2026-07-25 23:29:48 +08:00
test_runtime_compat.py feat: add runtime capability probing 2026-07-24 21:34:04 +08:00
test_security_cache.py fix: keep sleep-decay summaries retrievable, and stop excluding two tests 2026-07-27 05:27:07 +08:00
test_sleep_decay_recall.py fix: keep sleep-decay summaries retrievable, and stop excluding two tests 2026-07-27 05:27:07 +08:00
test_store_consistency.py chore: import memory companion baseline 2026-07-24 00:25:42 +08:00
test_strict_session_visibility.py chore: import memory companion baseline 2026-07-24 00:25:42 +08:00
test_summary_relationship.py chore: import memory companion baseline 2026-07-24 00:25:42 +08:00
test_temporal_context.py feat: add temporal awareness to ops memory 2026-07-24 23:06:13 +08:00
test_user_memory_contract.py fix: migrate memory domain before indexing 2026-07-25 23:39:08 +08:00