diff --git a/MEMORY.md b/MEMORY.md index 6b82146..425c6a7 100644 --- a/MEMORY.md +++ b/MEMORY.md @@ -31,19 +31,23 @@ - 定时任务:每4小时自动同步「内容测试问题反馈」群消息到数据库 - 查询示例见:`skills/feishu-group-msg-sync/references/query_examples.md` -### 用户反馈问题优先级规则 -- P0:阻断使用 / 大面积影响 / 严重数据问题,需立刻处理 -- P1:核心流程问题,影响较大,尽快处理 -- P2:一般问题或体验问题,可排期处理 -- P3:建议/优化项,低影响,长期迭代 +### 用户反馈问题优先级规则(动态判定引擎) -#### 现有问题分类优先级映射(已生效) -| 优先级 | 问题分类 | -|--------|----------| -| P0 | 启动/运行异常问题 | -| P1 | 版本/更新问题、声音/音频问题、语音识别/判分问题、关卡/内容问题 | -| P2 | UI显示问题、用户反馈问题、带媒体的问题 | -| P3 | 其他问题 | +**⚠️ 优先级判定以 `skills/feishu-feedback-sync/scripts/priority_classifier.py` 为唯一权威来源。** + +#### 等级定义(人类参考) +- **P0**:阻断使用 / 大面积影响 / 严重数据问题,需 2 小时内处理 +- **P1**:核心流程问题,影响较大,3 天内修复 +- **P2**:一般问题或体验问题,当周排期 +- **P3**:建议/优化项,低影响,不单独排期 + +#### 判定机制(由 priority_classifier.py 执行) +1. **基础优先级** — 基于 ~20 条关键词正则匹配,覆盖崩溃/功能异常/体验瑕疵/细节优化四档 +2. **频率动态调整** — 必现/高概率 → 升级;低概率/偶现 → 降级(最多一级) +3. **范围动态调整** — 影响全部用户 → 升级;极少数用户 → 降级(最多一级) +4. **最终优先级** — 基础优先级 ± 频率调整 ± 范围调整,夹紧到 P0-P3 范围 + +**不要在 MEMORY.md 中维护静态分类映射表,所有规则变更直接修改 priority_classifier.py。** ## 经验教训 diff --git a/memory/.dreams/events.jsonl b/memory/.dreams/events.jsonl index e38914d..a9a7417 100644 --- a/memory/.dreams/events.jsonl +++ b/memory/.dreams/events.jsonl @@ -11,3 +11,4 @@ {"type":"memory.recall.recorded","timestamp":"2026-05-11T10:43:36.686Z","query":"feishu_group_message 表结构 多条转发 message_type","resultCount":5,"results":[{"path":"memory/2026-04-30.md","startLine":95,"endLine":120,"score":1},{"path":"memory/2026-04-23.md","startLine":28,"endLine":55,"score":1},{"path":"memory/2026-04-23.md","startLine":47,"endLine":72,"score":1},{"path":"memory/2026-04-17.md","startLine":1,"endLine":23,"score":1},{"path":"memory/2026-04-10.md","startLine":44,"endLine":68,"score":1}]} {"type":"memory.recall.recorded","timestamp":"2026-05-11T11:26:09.200Z","query":"sort_tag 飞书 API 创建节点 权限","resultCount":2,"results":[{"path":"memory/2026-05-09.md","startLine":46,"endLine":65,"score":1},{"path":"memory/2026-05-09.md","startLine":1,"endLine":19,"score":1}]} {"type":"memory.recall.recorded","timestamp":"2026-05-11T11:26:09.201Z","query":"知识库 sort_tag 空 文档排序","resultCount":3,"results":[{"path":"memory/2026-05-09.md","startLine":46,"endLine":65,"score":1},{"path":"memory/2026-05-09.md","startLine":78,"endLine":95,"score":1},{"path":"memory/2026-05-06.md","startLine":20,"endLine":47,"score":1}]} +{"type":"memory.recall.recorded","timestamp":"2026-05-12T06:08:28.032Z","query":"优先级规则 priority rules","resultCount":2,"results":[{"path":"memory/2026-05-07.md","startLine":23,"endLine":50,"score":1},{"path":"memory/2026-05-07.md","startLine":1,"endLine":28,"score":1}]} diff --git a/memory/.dreams/short-term-recall.json b/memory/.dreams/short-term-recall.json index fd28acf..744a7eb 100644 --- a/memory/.dreams/short-term-recall.json +++ b/memory/.dreams/short-term-recall.json @@ -1,6 +1,6 @@ { "version": 1, - "updatedAt": "2026-05-11T11:26:09.201Z", + "updatedAt": "2026-05-12T06:08:28.032Z", "entries": { "memory:memory/2026-04-18.md:1:5": { "key": "memory:memory/2026-04-18.md:1:5", @@ -600,6 +600,68 @@ "skill.md", "ios端loading超时致数据丢失/无音频" ] + }, + "memory:memory/2026-05-07.md:23:50": { + "key": "memory:memory/2026-05-07.md:23:50", + "path": "memory/2026-05-07.md", + "startLine": 23, + "endLine": 50, + "source": "memory", + "snippet": "- 「小葵小葵」群 chat_id: `oc_4171a2188f2554522a4309f2d7c27753`,小葵Bot已在该群中 - 相关负责人需要往此群发消息时,直接用 Bot 身份向该 chat_id 发送 ### 知识空间信息 - space_id: 7612229802338045122 - 父节点 node_token: RaL6whoYMijyYHkSlWrc7OLLnBy - 父节点 obj_token: J8bKd4dbYoofZixxVsCc06bhnFc (docx) ## 用户反馈问题汇总文档结构调整 [刘新玉] - 2026-05-07 10:45 ### 变更内容 1. 「用户反馈问题汇总」文档改为按日期创建独立子文档,每天一个 2. 子文档标题格式:`YYYY-MM-DD 问题反馈` 3. 父文档(RaL6whoYMijyYHkSlWrc7OLLnBy)改为索引说明页 4. 子文档 obj_token: - 2026-05-06: ISpQdgf6QoIKIyxdZjPcTAa4nEe - 2026-04-28: UusFdRBEioSs4ox9JhPcXGfCnzf ### 脚本修改 - `sync_feishu_feedback.py` 中新增 `update_summary_doc_as_children()` 函数 - 逻辑:先 `list_child_nodes()` 查已有子文档 → 存在则更新、不存在才创建 - **核心规则:每天只新增一个对应日期的子文档,绝不重复创建** ### 同步清理 - 数据库中 s", + "recallCount": 1, + "dailyCount": 0, + "groundedCount": 0, + "totalScore": 1, + "maxScore": 1, + "firstRecalledAt": "2026-05-12T06:08:28.032Z", + "lastRecalledAt": "2026-05-12T06:08:28.032Z", + "queryHashes": [ + "5d17890944eb" + ], + "recallDays": [ + "2026-05-12" + ], + "conceptTags": [ + "chat-id", + "space-id", + "node-token", + "obj-token", + "yyyy-mm-dd", + "sync-feishu-feedback.py", + "update-summary-doc-as-children", + "list-child-nodes" + ] + }, + "memory:memory/2026-05-07.md:1:28": { + "key": "memory:memory/2026-05-07.md:1:28", + "path": "memory/2026-05-07.md", + "startLine": 1, + "endLine": 28, + "source": "memory", + "snippet": "## 用户反馈问题汇总文档结构调整 [刘新玉] - 2026-05-07 10:45 ### 变更内容 1. 「用户反馈问题汇总」文档改为按日期创建独立子文档,每天一个 2. 子文档标题格式:`YYYY-MM-DD 问题反馈` 3. 父文档(RaL6whoYMijyYHkSlWrc7OLLnBy)改为索引说明页 4. 子文档 obj_token: - 2026-05-06: ISpQdgf6QoIKIyxdZjPcTAa4nEe - 2026-04-28: UusFdRBEioSs4ox9JhPcXGfCnzf ### 脚本修改 - `sync_feishu_feedback.py` 中新增 `update_summary_doc_as_children()` 函数 - 逻辑:先 `list_child_nodes()` 查已有子文档 → 存在则更新、不存在才创建 - **核心规则:每天只新增一个对应日期的子文档,绝不重复创建** ### 同步清理 - 数据库中 sender_name='未知' 的3条无效记录已删除 - 「内容测试问题反馈」电子表格中也清理了\"未知\"发送者的行 - 该电子表格已从\"飞书问题反馈-近3天\"重命名为\"内容测试问题反馈\" ### 飞书群信息 [李若松确认] - 2026-05-07 11:23 - 「小葵小葵」群 chat_id: `oc_4171a2188f2554522a4309f2d7c27753`,小葵Bot已在该群中 - 相关负责人需要往此群发消息时,直接用 Bot 身份向该 chat_id 发送 ### 知识空间信", + "recallCount": 1, + "dailyCount": 0, + "groundedCount": 0, + "totalScore": 1, + "maxScore": 1, + "firstRecalledAt": "2026-05-12T06:08:28.032Z", + "lastRecalledAt": "2026-05-12T06:08:28.032Z", + "queryHashes": [ + "5d17890944eb" + ], + "recallDays": [ + "2026-05-12" + ], + "conceptTags": [ + "yyyy-mm-dd", + "obj-token", + "sync-feishu-feedback.py", + "update-summary-doc-as-children", + "list-child-nodes", + "sender-name", + "飞书问题反馈-近3天", + "chat-id" + ] } } } diff --git a/output/daily_feedback/飞书反馈_2026-05-12.xlsx b/output/daily_feedback/飞书反馈_2026-05-12.xlsx new file mode 100644 index 0000000..2f8d292 Binary files /dev/null and b/output/daily_feedback/飞书反馈_2026-05-12.xlsx differ