heading: ops-profile-memory-hygiene

text:
# 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; local commit ahead of remote pending push retry
- Last updated: 2026-05-25T14:38:13+08:00
- Latest local commit: 6a9cc24
- Remote push status: pending — SSH publickey failed; one-shot Gitea HTTP token fallback also timed out in this session
- Related bots/profiles: meow-chan; source profiles from NAS KB approval queue

title: ops-profile-memory-hygiene


heading: Purpose

text:
## Purpose

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

title: ops-profile-memory-hygiene


heading: Current authoritative description

text:
## Current authoritative description

The repo root `REPO_DESCRIPTION.md` is the source of truth for detailed evolving state. The deployed collector is `/Users/bot1/.hermes/profiles/meow-chan/scripts/nas_kb_profile_collect.py`.

title: ops-profile-memory-hygiene


heading: Runtime hooks

text:
## 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/`

title: ops-profile-memory-hygiene


heading: Latest change

text:
## Latest change

2026-05-25：修复每日采集失败静默问题。采集脚本现在输出 `collection_summary`，profile 超时/异常/JSON 解析失败时 `notify_user=true`；cron prompt 已追加“采集故障不得静默”规则。脚本也改为先解析完整 stdout 中的 JSON，再保存短诊断预览，避免长 JSON 被尾部截断破坏。

title: ops-profile-memory-hygiene


heading: Safety

text:
## 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.
- Secrets/tokens/passwords/private raw chats must be redacted as `[REDACTED]` and not written into NAS or approvals.

title: ops-profile-memory-hygiene


heading: Search keywords

text:
## Search keywords

profile memory cleanup, MEMORY.md 瘦身, NAS共享知识库, 稳定事实基础, 用户补充信息, 客户偏好, 公司固定事实, source-of-truth 指针, 三人审批, approval_includes_memory_cleanup, auto_apply_after_nas_written, Hermes cron, meow-chan, 机器人记忆治理, 采集失败通知, collection_summary, notify_user

title: ops-profile-memory-hygiene