astrbot_plugin_memory_compa.../docs
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
..
MEMORY_ARCHIVIST_ARCHIVE_API_REFACTOR_PLAN.md chore: import memory companion baseline 2026-07-24 00:25:42 +08:00
Q4_VM部署验收记录.md docs: record Q6 VM deployment acceptance 2026-07-26 02:21:59 +08:00
Q5用户记忆硬边界实施说明.md feat: enforce Q5 user memory boundaries 2026-07-25 23:29:48 +08:00
时间感知兼容说明.md feat: add temporal awareness to ops memory 2026-07-24 23:06:13 +08:00
记忆插件源码审计与优化档案.md feat: add calendar-aware ops memory history 2026-07-25 01:35:41 +08:00
运维记忆错题本.md test: locate the companion repo instead of assuming one layout 2026-07-27 05:41:32 +08:00
错题本.md feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:20 +08:00