{"chunk_id": "nas-sk:01b10b2113f4:a01d862c:0001:8550b3d2090637c2", "chunk_seq": 1, "created_at": "2026-05-20T23:52:50+08:00", "heading": "ops-profile-memory-hygiene", "source_mtime": 1779292289, "source_path": "/Users/bot1/Volumes/root_for_ai/00_共享区/共享知识库/原始资料/08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_rel": "08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_sha256": "01b10b2113f4beee22d79fe8781a42664bcb21f5472b76eb3c268b957cae0adf", "text": "# ops-profile-memory-hygiene\n\n- Repo URL: ssh://git@192.168.1.4:2222/qianliyun/ops-profile-memory-hygiene.git\n- Local path: /Users/bot1/AI Work/02_projects/active/ops-profile-memory-hygiene\n- Machine/Profile: bot1 / meow-chan\n- Owner/Requester: 钱丽云\n- Task type: ops / Hermes profile memory governance / cron\n- Status: active\n- Last updated: 2026-05-20T23:51:05+08:00\n- Latest commit: e31be741704e76f743671afe43ccc1df3e46723d\n- Related bots/profiles: meow-chan; source profiles from NAS KB approval queue", "title": "ops-profile-memory-hygiene"}
{"chunk_id": "nas-sk:01b10b2113f4:a01d862c:0002:29b1c6b9e7cee842", "chunk_seq": 2, "created_at": "2026-05-20T23:52:50+08:00", "heading": "Purpose", "source_mtime": 1779292289, "source_path": "/Users/bot1/Volumes/root_for_ai/00_共享区/共享知识库/原始资料/08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_rel": "08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_sha256": "01b10b2113f4beee22d79fe8781a42664bcb21f5472b76eb3c268b957cae0adf", "text": "## Purpose\n\n为 NAS 共享知识库“多 profile 候选经验 → 三人审批 → 写入 NAS”流程补上后半段：审批包本身逐条列明 NAS 写入内容与后续 source agent/profile 记忆清洗范围；三人同意后，写入 NAS 并自动备份、exact-match 压缩对应 profile 的 `MEMORY.md`。", "title": "ops-profile-memory-hygiene"}
{"chunk_id": "nas-sk:01b10b2113f4:a01d862c:0003:fb620f35aca2200a", "chunk_seq": 3, "created_at": "2026-05-20T23:52:50+08:00", "heading": "Closed loop", "source_mtime": 1779292289, "source_path": "/Users/bot1/Volumes/root_for_ai/00_共享区/共享知识库/原始资料/08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_rel": "08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_sha256": "01b10b2113f4beee22d79fe8781a42664bcb21f5472b76eb3c268b957cae0adf", "text": "## Closed loop\n\n1. 每日候选汇总 cron `f859bdb12387` 生成审批包前，先运行 `profile_memory_cleanup_after_nas.py --approval-preview --force`，为每个 operation 写入 `post_approval_memory_cleanup`。\n2. HTML 详情页和飞书审批表单逐条展示：NAS 上会新增/更新什么，以及什么 agent/profile 的记忆会被对应清洗压缩。\n3. 三位固定审批人全部 APPROVED 后，审批结果监控 cron `a3d332a1d4b8` 只按审批包写 NAS，并验证结果。\n4. 如果审批包含 `approval_includes_memory_cleanup=true` / `memory_cleanup_authorization.auto_apply_after_nas_written=true`，监控任务会在 NAS 写入验证后自动执行 `--auto-apply-approved`。\n5. Apply 前备份对应 profile 的 `MEMORY.md`；只替换 exact unchanged entries；不改 `USER.md`；无法精确匹配则跳过。", "title": "ops-profile-memory-hygiene"}
{"chunk_id": "nas-sk:01b10b2113f4:a01d862c:0004:651bd841853fc19b", "chunk_seq": 4, "created_at": "2026-05-20T23:52:50+08:00", "heading": "Current authoritative description", "source_mtime": 1779292289, "source_path": "/Users/bot1/Volumes/root_for_ai/00_共享区/共享知识库/原始资料/08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_rel": "08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_sha256": "01b10b2113f4beee22d79fe8781a42664bcb21f5472b76eb3c268b957cae0adf", "text": "## Current authoritative description\n\nThe repo root `REPO_DESCRIPTION.md` is the source of truth for detailed evolving state.", "title": "ops-profile-memory-hygiene"}
{"chunk_id": "nas-sk:01b10b2113f4:a01d862c:0005:c7a446c66a064831", "chunk_seq": 5, "created_at": "2026-05-20T23:52:50+08:00", "heading": "Runtime hooks", "source_mtime": 1779292289, "source_path": "/Users/bot1/Volumes/root_for_ai/00_共享区/共享知识库/原始资料/08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_rel": "08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_sha256": "01b10b2113f4beee22d79fe8781a42664bcb21f5472b76eb3c268b957cae0adf", "text": "## Runtime hooks\n\n- Deployed script: `/Users/bot1/.hermes/profiles/meow-chan/scripts/profile_memory_cleanup_after_nas.py`\n- Daily approval cron: `f859bdb12387` / `NAS共享知识库每日候选汇总-三人审批门禁` / 0 8 * * *\n- Approval monitor cron: `a3d332a1d4b8` / `NAS共享知识库审批结果监控与合并执行` / every 10m\n- Cleanup cron: `388e37df5449` / `NAS共享知识库写入后profile记忆自动瘦身` / every 30m / no_agent=true\n- Plan output: `/Users/bot1/.hermes/profiles/meow-chan/state/profile_memory_cleanup_queue/`\n- Report output: `/Users/bot1/AI Work/09_logs_reports/profile-memory-hygiene/`", "title": "ops-profile-memory-hygiene"}
{"chunk_id": "nas-sk:01b10b2113f4:a01d862c:0006:c74dda082eafe866", "chunk_seq": 6, "created_at": "2026-05-20T23:52:50+08:00", "heading": "Safety", "source_mtime": 1779292289, "source_path": "/Users/bot1/Volumes/root_for_ai/00_共享区/共享知识库/原始资料/08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_rel": "08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_sha256": "01b10b2113f4beee22d79fe8781a42664bcb21f5472b76eb3c268b957cae0adf", "text": "## Safety\n\n- Does not write NAS shared knowledge documents itself.\n- Does not edit `USER.md`.\n- Edits `MEMORY.md` only when the approved package explicitly includes cleanup authorization and NAS write verification has completed.\n- Apply mode backs up `MEMORY.md` first and only replaces exact unchanged entries.", "title": "ops-profile-memory-hygiene"}
{"chunk_id": "nas-sk:01b10b2113f4:a01d862c:0007:c8e5b8d3582e67b7", "chunk_seq": 7, "created_at": "2026-05-20T23:52:50+08:00", "heading": "Search keywords", "source_mtime": 1779292289, "source_path": "/Users/bot1/Volumes/root_for_ai/00_共享区/共享知识库/原始资料/08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_rel": "08_机器人协作经验库/远程仓库任务映射/ops-profile-memory-hygiene.md", "source_sha256": "01b10b2113f4beee22d79fe8781a42664bcb21f5472b76eb3c268b957cae0adf", "text": "## Search keywords\n\nprofile memory cleanup, MEMORY.md 瘦身, NAS共享知识库, 审批包同时授权记忆清洗, approval_includes_memory_cleanup, auto_apply_after_nas_written, Hermes cron, meow-chan, 机器人记忆治理", "title": "ops-profile-memory-hygiene"}
