提交图

24 提交

作者 SHA1 备注 提交日期
5c8cffdf06 feat: complete unified person P0-P2 memory layer 2026-07-28 01:40:34 +08:00
fde001a9c9 docs: record D5 D6 deployment verification 2026-07-27 14:58:54 +08:00
e8841386d1 fix: isolate user facts and retire calendar history 2026-07-27 14:55:44 +08:00
d851bb2e68 docs: record LivingMemory panel deployment evidence 2026-07-27 12:31:48 +08:00
c9106d9014 fix: remove retired LivingMemory panel actions 2026-07-27 12:25:37 +08:00
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
c1acfce738 fix: keep sleep-decay summaries retrievable, and stop excluding two tests
Sleep decay compresses a batch of stable memories into one summary row and
archives the originals. The summary was built without memory_domain, and
MemoryRecord.memory_domain defaults to "unknown" -- a truthy value, so the
`if not self.memory_domain:` classification branch in ensure_defaults has
never once executed. The summary stored as unknown, the retrieval gate only
admits user_memory and drops it before scoring, and the sources were already
archived out of the candidate query. Summary unreachable plus originals
unreachable meant the whole thread disappeared, silently, every night the
job ran.

Summaries now inherit the domain of their source records, and the decay
bucket key includes the domain so a bucket cannot mix domains and leave the
question undecidable. Before archiving anything, the summary is read back and
checked through the same gate the retrieval side uses; if the source was
reachable and the summary is not, the archive is skipped with a warning
rather than turning live memory into dead rows. A maintenance.memory_decay_
dry_run switch runs the whole selection and summarisation without writing.

ensure_defaults itself is left alone -- changing that default would reclassify
every write that omits a domain.

The two test_security_cache tests that have been excluded from the test
command for five rounds turned out to have the same root cause: the fixture
built a record without a domain, so search returned an empty set. Those tests
are about ACL and cache invalidation, not domain classification; with an
explicit domain the file passes 6/6 and no longer needs excluding.

Memory suite 330 passed, was 323 passed / 2 failed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 05:27:07 +08:00
agent-bot
e3f9e0b212 feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract
M6.1.3-R2 非五类兼容:值级隐私加固(base64/data URI/中缀路径/私钥),
真实陪伴 DTO 形状回归;信封字段剥离补全并统一先解包再剥离,
避免双插件分别部署时新旧载荷形状指纹不一致进死信。

M6.1.4 创作/媒体/主观分域:新增 idx_memories_domain_type_time;
路径中缀边界类扩为 ^|[\s=:;,]。

M6.1.5 Bot 专用检索 Profiles:新增 core/bot_profiles.py 定义五个 Profile,
固定域/类型/时间窗/条数/排序/注入字段/权限;新增 list_bot_profile_memories
把时间窗过滤下推到 SQL,避免近期记录过多时历史 Profile 静默返回空。

M6.1.6 分层只读 API:/bot-archive/{profiles,query,locked-frame},GET only。

M6.1.7 隐私权限收口:通用 memory_update/delete/lifecycle 拒绝 Bot 域写入
(此前可绕过受控归档路径,并使 payload_fingerprint 变陈导致后续归档进死信);
导出补 memory_domain 与域普查,修复 export→import 把 bot_self_schedule
降级成 bot_self_legacy 的问题。

测试:319 项通过(不含 test_security_cache,缺可选检索依赖)。
联合 E2E 135 项全部通过。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 01:37:20 +08:00
bbd94d35a9 feat: add bot personal memory bridge 2026-07-26 03:14:04 +08:00
fa88c566c7 docs: record Q6 VM deployment acceptance 2026-07-26 02:21:59 +08:00
753077469b feat: add read-only user fact bridge 2026-07-26 02:14:15 +08:00
17d171a5c8 docs: record Q5 VM deployment acceptance 2026-07-25 23:41:55 +08:00
a8598e755d fix: migrate memory domain before indexing 2026-07-25 23:39:08 +08:00
66b5d0bf70 feat: enforce Q5 user memory boundaries 2026-07-25 23:29:48 +08:00
5016af47c6 docs: record bcd9d9a VM deployment 2026-07-25 01:41:32 +08:00
bcd9d9aba0 feat: add calendar-aware ops memory history 2026-07-25 01:35:41 +08:00
efd6fab38b docs: record full Q4 regression 2026-07-24 23:15:34 +08:00
b227a7e02d docs: record Q4 VM acceptance 2026-07-24 23:12:02 +08:00
8d21776528 feat: add temporal awareness to ops memory 2026-07-24 23:06:13 +08:00
b8d94704d0 feat: add operations event domain contract 2026-07-24 22:16:30 +08:00
e66be2a993 feat: add runtime capability probing 2026-07-24 21:34:04 +08:00
809a1ed3bb feat: add explicit memory data migration 2026-07-24 21:11:02 +08:00
04854669fd feat: initialize operations memory branch 2026-07-24 00:41:15 +08:00
2f24824b4f chore: import memory companion baseline 2026-07-24 00:25:42 +08:00