# ops-profile-memory-hygiene

- Repo URL: ssh://git@192.168.1.4:2222/qianliyun/ops-profile-memory-hygiene.git
- Local path: /Users/bot1/AI Work/02_projects/active/ops-profile-memory-hygiene
- Machine/Profile: bot1 / meow-chan
- Owner/Requester: 钱丽云
- Task type: ops / Hermes profile memory governance / shared-KB approval cron
- Status: active; pushed to self-hosted Gitea / lumi_soul
- Last updated: 2026-05-26T09:40:00+08:00
- Latest pushed commit: f1d0bca
- Remote push note: SSH publickey still fails from this profile; pushed via documented one-shot HTTPS token fallback without persisting credentials.
- Related bots/profiles: meow-chan; source profiles from NAS KB approval queue

## Purpose

维护“多 profile 稳定事实基础 → NAS 共享知识库三人审批入库 → 来源 profile 记忆瘦身”的闭环。采集目标以稳定事实基础为主：用户补充信息、客户/合作方偏好、公司/工作室固定事实、项目/IP 固定背景、术语/关系/别称和 source-of-truth 指针。

## Current authoritative description

The repo root `REPO_DESCRIPTION.md` is the source of truth for detailed evolving state.

## Runtime hooks

- Daily fact-candidate approval cron: `f859bdb12387` / `NAS共享知识库每日事实基础候选汇总-三人审批门禁` / `0 8 * * *` / enabled
- Approval monitor cron: `a3d332a1d4b8` / `NAS共享知识库审批结果监控与合并执行` / every 10m / enabled
- Cleanup cron: `388e37df5449` / `NAS共享知识库写入后profile记忆自动瘦身` / every 30m / no_agent=true / enabled
- Queue: `/Users/bot1/.hermes/profiles/meow-chan/state/nas_kb_approval_queue/`
- Cleanup plans: `/Users/bot1/.hermes/profiles/meow-chan/state/profile_memory_cleanup_queue/`

## Latest change

2026-05-26：按用户确认修正记忆瘦身策略。`profile_memory_cleanup_after_nas.py` 的 `replacement_entry` 改为主题级短提示，不再把 NAS 绝对路径写进 profile `MEMORY.md`；审批预览文案同步说明“不写长绝对路径”。已部署到 meow-chan 运行脚本，并把今天 `suwei-assistant` 的长路径索引改为短提示。

## Safety

- Candidate collection is NAS read-only and only writes local queue/approval state.
- NAS shared-knowledge writes require exact-path approved packages and three-person approval.
- `/Users/bot1/Volumes/root_for_ai/03_用户资料` remains absolute read-only.
- Profile memory cleanup runs only after NAS write verification and approval-included cleanup authorization; it backs up `MEMORY.md`, never edits `USER.md`, and only replaces exact unchanged entries with concise topic-level NAS lookup hints, not long absolute NAS paths.
- Secrets/tokens/passwords/private raw chats must be redacted as `[REDACTED]` and not written into NAS or approvals.

## Search keywords

profile memory cleanup, MEMORY.md 瘦身, NAS共享知识库, 稳定事实基础, 用户补充信息, 客户偏好, 公司固定事实, source-of-truth 指针, 三人审批, approval_includes_memory_cleanup, auto_apply_after_nas_written, Hermes cron, meow-chan, 机器人记忆治理, 主题级短提示, 不写NAS绝对路径
