597 lines
30 KiB
JSON
597 lines
30 KiB
JSON
{
|
||||
|
|
"meta": {
|
|||
|
|
"purpose": "NapCat 能力目录基线(机器可读)。DEC-005 决策为『不锁 NapCat 版本,但升级必须跑全量回归』,本文件即该回归的门禁基线:tools/probe/capability-check.mjs 以此比对实测结果,状态漂移即门禁失败。",
|
|||
|
|
"governance": [
|
|||
|
|
"本文件只登记实测证据支持的结论,禁止把设计目标或上游文档声明写成已验证。",
|
|||
|
|
"status 取值语义见 enums.status;任何项不得留空,未采到必须用 untested 并在 todo 说明阻塞原因。",
|
|||
|
|
"变更本文件必须同时提供证据文件名(evidence),且证据文件位于 gitignored 的 local/ 目录,文件名需在 docs/decision-baseline.md 可检索。"
|
|||
|
|
],
|
|||
|
|
"targetNapCat": {
|
|||
|
|
"protocol_version": "v11",
|
|||
|
|
"version_observed": "4.18.41",
|
|||
|
|
"platform": "linux",
|
|||
|
|
"note": "DEC-005 不锁版本。version_observed 仅为本次基线采集时的实际版本,升级后必须重跑 capability-check。"
|
|||
|
|
},
|
|||
|
|
"collectedAt": "2026-10-29",
|
|||
|
|
"environment": {
|
|||
|
|
"transport": "forward-websocket",
|
|||
|
|
"authConfirmedBy": "meta_event/lifecycle",
|
|||
|
|
"testGroup": 933280401,
|
|||
|
|
"testFriend": 2161656029,
|
|||
|
|
"selfQq": 3575608514
|
|||
|
|
},
|
|||
|
|
"evidenceRule": "三证据 = API retcode + 入站事件段 + get_group_msg_history/get_friend_msg_history 回读段。retcode=0 单独不构成成功结论。",
|
|||
|
|
"probes": {
|
|||
|
|
"matrix": "tools/probe/matrix-probe.mjs",
|
|||
|
|
"segments": "tools/probe/seg-probe.mjs",
|
|||
|
|
"record": "tools/probe/record-probe.mjs",
|
|||
|
|
"forwardFollowup": "tools/probe/fwd-record-followup.mjs",
|
|||
|
|
"urlMedia": "tools/probe/url-media-probe.mjs",
|
|||
|
|
"historyAudit": "tools/probe/history-audit.mjs",
|
|||
|
|
"historyDump": "tools/probe/history-dump.mjs",
|
|||
|
|
"aiRecordSideeffect": "tools/probe/ai-record-sideeffect.mjs"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"enums": {
|
|||
|
|
"status": {
|
|||
|
|
"verified": "三证据一致通过:API 成功、事件段与提交段一致、history 回读段一致。",
|
|||
|
|
"silent_drop": "API retcode=0,但该消息段在事件与 history 中均消失,仅余其它段。上游假成功。",
|
|||
|
|
"downgraded": "API retcode=0 且消息送达,但段被改写为其它类型(通常降级为 text),语义丢失。",
|
|||
|
|
"no_event": "API retcode=0 且 history 可回读到该消息,但入站事件通道完全无回推。",
|
|||
|
|
"rejected": "API 返回非 0 retcode,消息未发出,有明确错误原文。",
|
|||
|
|
"readback_gap": "写入成功但读回接口不可用或读不回内容,属能力缺口。",
|
|||
|
|
"blocked": "受部署/网络/配置条件限制本轮无法采集,不等于不支持。",
|
|||
|
|
"untested": "本轮未采集,无结论。",
|
|||
|
|
"not_applicable": "该维度对此能力不存在(例如纯入站事件没有 history 回读形态)。"
|
|||
|
|
},
|
|||
|
|
"realEnvTest": {
|
|||
|
|
"verified": "已在真实 NapCat 4.18.41 环境完成验证。",
|
|||
|
|
"partial": "部分场景已验证,仍有子场景未覆盖(见 limitations/todo)。",
|
|||
|
|
"blocked": "环境条件受阻,未能验证。",
|
|||
|
|
"not_tested": "本轮未做真实环境验证。"
|
|||
|
|
},
|
|||
|
|
"adapterStatus": {
|
|||
|
|
"pending": "QLinker 侧解析/发送适配尚未实现(当前仓库无 Java 业务代码,全部为 pending)。"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"globalConstraints": [
|
|||
|
|
{
|
|||
|
|
"id": "GC-001",
|
|||
|
|
"title": "retcode=0 不等于送达,也不等于语义完整",
|
|||
|
|
"detail": "实测存在三类假成功:段被静默丢弃(poke/location/私聊 at)、降级为 text(music 的 url 形式)、成功但零事件回推(file/上传群文件)。判定必须以事件段数组与 history 段数组比对为准。",
|
|||
|
|
"evidence": ["local/matrix-result-2026-10-29T06-48-10-358Z.jsonl", "local/history-audit-1793256740235.jsonl"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "GC-002",
|
|||
|
|
"title": "上游自检类 API 不可信",
|
|||
|
|
"detail": "can_send_record 返回 data.yes=true,但真实 record 发送(含合法 silk v3 素材)全部 retcode=1200。能力判定禁止采信上游 can_* 探测,必须真实发送 + 回读。",
|
|||
|
|
"evidence": ["local/record-probe-2026-10-29T06-51-01-418Z.jsonl"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "GC-003",
|
|||
|
|
"title": "自发消息的 post_type 不是 message",
|
|||
|
|
"detail": "自己发出的消息回推 post_type=message_sent,并带 message_sent_type=self。接收链路若只匹配 post_type==message 会完全漏掉自发消息。target_id 与 message_sent_type 仅事件通道有,history 无。",
|
|||
|
|
"evidence": ["local/url-media-2026-10-29T06-56-59-995Z.jsonl"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "GC-004",
|
|||
|
|
"title": "raw_message 含 HTML 实体转义,禁止用简单正则切 CQ 码",
|
|||
|
|
"detail": "history 的 raw_message 把 [ ] , 等转义为 [ ] ,。按文本标记匹配消息会失败,必须用 message_id 关联。",
|
|||
|
|
"evidence": ["local/dump-145523.jsonl"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "GC-005",
|
|||
|
|
"title": "message_id 不是序号",
|
|||
|
|
"detail": "message_id == message_seq == real_id,为随机大整数,不可跨会话比较、不递增。群内唯一稳定递增标识是 real_seq(字符串)。去重键候选 (bindingUid, group_id, real_seq) 仍待验证。",
|
|||
|
|
"evidence": ["docs/decision-baseline.md#19"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "GC-006",
|
|||
|
|
"title": "媒体 CDN URL 含 rkey,具时效",
|
|||
|
|
"detail": "跨轮次复用历史 URL 会失效。采集 URL 形式媒体必须『现发现用』,且发送前先 HEAD/GET 验证可达,否则会把 URL 过期误判成 NapCat 不支持 URL 形式。",
|
|||
|
|
"evidence": ["local/url-media-2026-10-29T06-56-59-995Z.jsonl"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "GC-007",
|
|||
|
|
"title": "get_ai_record 名义为查询接口,实际会真实发送语音消息",
|
|||
|
|
"detail": "安全影响重大:调用前 history 有 4 条 record 消息,调用一次后新增 1 条,且新增消息的 CDN fileid 与接口返回值完全一致。该接口必须按写操作纳入权限、限流、审计与副作用管控,禁止当作只读探测使用。",
|
|||
|
|
"severity": "high",
|
|||
|
|
"evidence": ["local/ai-record-sideeffect-*.jsonl", "local/dump-145523.jsonl"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "GC-008",
|
|||
|
|
"title": "WS 握手不校验 access_token",
|
|||
|
|
"detail": "错误凭据仍可完成握手,随后才回 retcode=1403 并断开。健康检查与『连接可用』判定必须等到收到 meta_event/lifecycle,不能以 onopen 为准。",
|
|||
|
|
"evidence": ["docs/decision-baseline.md#16"]
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"capabilities": [
|
|||
|
|
{
|
|||
|
|
"id": "MSG-text",
|
|||
|
|
"name": "文本段",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg", "send_private_msg"],
|
|||
|
|
"supports": ["group", "private"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "verified",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "matrix-probe: g_text/p_text + history-audit 16/16 命中",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "matrix", "case": "g_text", "expect": { "retcode": 0, "eventSegs": "text", "historySegs": "text" } },
|
|||
|
|
"limitations": ["实测 5000 字长文本不截断(seg-probe: long_text)。"],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-at",
|
|||
|
|
"name": "@ 成员段",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg"],
|
|||
|
|
"supports": ["group"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "verified",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "matrix-probe: g_at_all -> at+text(群)",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "matrix", "case": "g_at_all", "expect": { "retcode": 0, "eventSegs": "at+text", "historySegs": "at+text" } },
|
|||
|
|
"limitations": [
|
|||
|
|
"@全体可用:at.data.qq == \"all\"(字面量字符串),且 get_group_at_all_remain 返回 can_at_all=true、群剩 19 次/个人剩 9 次。",
|
|||
|
|
"私聊 at 段被静默丢弃(见 MSG-at-private)。"
|
|||
|
|
],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-at-private",
|
|||
|
|
"name": "@ 段用于私聊",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_private_msg"],
|
|||
|
|
"supports": [],
|
|||
|
|
"sendStatus": "silent_drop",
|
|||
|
|
"eventStatus": "silent_drop",
|
|||
|
|
"historyStatus": "silent_drop",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "matrix-probe: p_at -> retcode=0,事件与 history 段均只剩 text",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "matrix", "case": "p_at", "expect": { "retcode": 0, "eventSegs": "text", "historySegs": "text" } },
|
|||
|
|
"limitations": ["典型假成功:retcode=0 但 at 段消失。标准化模型不得据此认为 at 生效。"],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-face",
|
|||
|
|
"name": "表情段",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg", "send_private_msg"],
|
|||
|
|
"supports": ["group", "private"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "verified",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "matrix-probe: g_face/p_face -> face+text",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "matrix", "case": "g_face", "expect": { "retcode": 0, "eventSegs": "face+text", "historySegs": "face+text" } },
|
|||
|
|
"limitations": [
|
|||
|
|
"face.data.raw 是 19 字段大对象(faceIndex/faceText/faceType 等),按 ADR-013 必须整体保留原始 JSON,不得只取 id。"
|
|||
|
|
],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-image",
|
|||
|
|
"name": "图片段(base64 与 URL 两种形式)",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg", "send_private_msg"],
|
|||
|
|
"supports": ["group", "private"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "verified",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "matrix-probe: p_image_b64 -> image+text;url-media-probe: g_image_url -> image+text(事件与 history 均命中)",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "urlMedia", "case": "g_image_url", "expect": { "retcode": 0, "eventSegs": "image+text", "historySegs": "image+text" } },
|
|||
|
|
"limitations": [
|
|||
|
|
"URL 形式可用,但必须先现场取 URL 且验证可下载(GC-006)。",
|
|||
|
|
"回推段带 file_size 与 url,url 指向带 rkey 的时效 CDN,落库须转存 MinIO,不得直接持久化该 URL。"
|
|||
|
|
],
|
|||
|
|
"todo": ["超大图与非法图片内容的边界未测。"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-video",
|
|||
|
|
"name": "视频段(base64 与 URL 两种形式)",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg", "send_private_msg"],
|
|||
|
|
"supports": ["group", "private"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "verified",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "matrix-probe: g_video_b64 -> text+video;url-media-probe: g_video_url -> text+video",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "urlMedia", "case": "g_video_url", "expect": { "retcode": 0, "eventSegs": "text+video", "historySegs": "text+video" } },
|
|||
|
|
"limitations": [
|
|||
|
|
"不校验内容合法性:70 字节的 PNG 伪装成 video 也 retcode=0 并成功落库。发送侧必须自行做类型与大小校验,不能依赖上游。"
|
|||
|
|
],
|
|||
|
|
"todo": ["真实编码视频的可播放性未验证。"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-record",
|
|||
|
|
"name": "语音段",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg", "send_private_msg"],
|
|||
|
|
"supports": [],
|
|||
|
|
"sendStatus": "rejected",
|
|||
|
|
"eventStatus": "rejected",
|
|||
|
|
"historyStatus": "rejected",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "record-probe 7 种传法全部 retcode=1200(b64_plain / b64_format_silk / b64_name_silk / url_plain / url_field / url_format_silk / b64_url_both)",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "record", "case": "b64_plain", "expect": { "retcode": 1200, "messageContains": "Failed to open input" } },
|
|||
|
|
"limitations": [
|
|||
|
|
"定性结论:受 NapCat 运行环境解码能力限制,非素材非法。已用 NapCat 自己 get_ai_record 产出并下载的素材(magic=03232153494c4b5f5633,即 \\x03#!SILK_V3,合法 silk v3)重试,仍失败。",
|
|||
|
|
"错误原文分两阶段:WAV 素材 -> 'No decodable audio stream: Decoder not found';合法 silk -> 'Failed to open input: Invalid data found when processing input'。两者均为上游解码器缺失特征。",
|
|||
|
|
"can_send_record=yes 与此矛盾,采信后者(GC-002)。",
|
|||
|
|
"上游 NapCat 侧前提条件:需要可用的音频解码组件(ffmpeg/silk 解码链)。本环境未确认缺失原因,属待验证。"
|
|||
|
|
],
|
|||
|
|
"todo": ["换用具备完整解码依赖的 NapCat 部署重测,以区分『本环境缺依赖』与『该版本功能损坏』。"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-record-via-ai",
|
|||
|
|
"name": "语音消息(官方 TTS 旁路)",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_ai_record", "get_ai_record"],
|
|||
|
|
"supports": ["group"],
|
|||
|
|
"sendStatus": "no_event",
|
|||
|
|
"eventStatus": "no_event",
|
|||
|
|
"historyStatus": "verified",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "fwd-record-followup: send_group_ai_record -> retcode=0 但 data.message_id=0;history 可回读 record 段",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "forwardFollowup", "case": "ai_record_group", "expect": { "retcode": 0 } },
|
|||
|
|
"limitations": [
|
|||
|
|
"这是当前唯一能让语音消息进入群的路径,但 send_group_ai_record 返回 data.message_id=0(假标识),必须靠事件或 history 反查真实 message_id。",
|
|||
|
|
"get_ai_record 会真实发消息(GC-007),高风险。",
|
|||
|
|
"record 段本身不可用(MSG-record)与此不矛盾:TTS 走的是上游另一条上传链路。"
|
|||
|
|
],
|
|||
|
|
"todo": ["send_private_ai_record 未测。"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-reply",
|
|||
|
|
"name": "引用回复段(含嵌套引用)",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg", "send_private_msg"],
|
|||
|
|
"supports": ["group", "private"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "verified",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "matrix-probe: g_reply_1/g_reply_nested/p_reply -> reply+text",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "matrix", "case": "g_reply_nested", "expect": { "retcode": 0, "eventSegs": "reply+text", "historySegs": "reply+text" } },
|
|||
|
|
"limitations": [
|
|||
|
|
"引用嵌套可用:对『本身含 reply 段的消息』再引用,成功。reply.data.id 指向被引用消息的 message_id。",
|
|||
|
|
"上游只给 id,不回推被引用消息的正文与发送者。标准化模型若要展示引用摘要,必须自行按 message_id 反查本地库,且要处理被引用消息不在当前 history 窗口的情况。"
|
|||
|
|
],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-forward-write",
|
|||
|
|
"name": "合并转发消息(写出)",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg(node 段)", "send_group_forward_msg", "send_private_forward_msg"],
|
|||
|
|
"supports": ["group", "private"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "verified",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "fwd-record-followup: fwd_group_content_arr -> json 段,news=[雪珂: 数组形-A, 小王: 数组形-B];seg-probe: node_multi -> tsum=3",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "forwardFollowup", "case": "fwd_group_content_arr", "expect": { "retcode": 0, "eventSegs": "json", "newsCount": 2 } },
|
|||
|
|
"limitations": [
|
|||
|
|
"node.data.content 必须是【消息段数组】。传 JSON 字符串会被当字面文本渲染(matrix-probe: g_forward_api 的 news 里出现被转义的 {\"type\":\"text\"...} 原文),这是典型静默语义损坏。",
|
|||
|
|
"forward 段的 data.nodes 容器形式无效(tsum=0);必须用并列 node 段或 send_*_forward_msg 的 messages 数组。",
|
|||
|
|
"落库形态是 json 段(app=com.tencent.multimsg),真实节点内容在 meta.detail.news,每项是 '昵称: 内容' 的拼接字符串,非结构化段数组。",
|
|||
|
|
"send_group_msg 里 node 段与 text 段混用会 retcode=1400;纯 node 段数组才 retcode=0。"
|
|||
|
|
],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-forward-read",
|
|||
|
|
"name": "合并转发消息(读回)",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["get_forward_msg"],
|
|||
|
|
"supports": [],
|
|||
|
|
"sendStatus": "readback_gap",
|
|||
|
|
"eventStatus": "readback_gap",
|
|||
|
|
"historyStatus": "readback_gap",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "穷举 8 种参数组合全部失败:{message_id} / {message_id:String} / {message_id,group_id} / {id} / {forward_id} / {forward_id,message_id} / {res_id,message_id} / {resid,uniseq}",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "forwardFollowup", "case": "get_forward_msg", "expect": { "retcode": 1200 } },
|
|||
|
|
"limitations": [
|
|||
|
|
"确定结论:被转发消息不可还原。get_forward_msg 存在(缺 message_id 时回 'message_id is required',说明接口被路由到了),但即使传入发送接口当场返回的 forward_id/res_id/message_id 组合,仍回 '消息已过期或者为内层消息,无法获取转发消息'。",
|
|||
|
|
"该接口不在 docs/NapcatOpenAPI.md 的 API 清单中(清单只有 send_forward_msg / send_group_forward_msg / send_private_forward_msg),属未文档化的残缺实现。",
|
|||
|
|
"唯一可用的还原来源是 json 段的 meta.detail.news,但它是 '昵称: 文本' 的降级字符串,媒体与结构化段信息已丢失。",
|
|||
|
|
"标准化模型必须保留:json.data.data 原始 JSON、meta.detail.resid、meta.detail.uniseq、meta.detail.news 数组、app 字段。不得只存 prompt/summary。"
|
|||
|
|
],
|
|||
|
|
"todo": ["升级 NapCat 后必须重测本项;一旦可读回,news 降级问题即可解除。"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-file",
|
|||
|
|
"name": "文件段与群文件上传",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg(file 段)", "upload_group_file"],
|
|||
|
|
"supports": ["group"],
|
|||
|
|
"sendStatus": "no_event",
|
|||
|
|
"eventStatus": "no_event",
|
|||
|
|
"historyStatus": "verified",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "matrix-probe: g_upload_file/p_upload_file -> retcode=0 且事件 NO_EVENT;followup 延长观测 20s 仍 0 条事件;history seq=3108 可回读 file 段",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "matrix", "case": "g_upload_file", "expect": { "retcode": 0, "eventSegs": "NO_EVENT" } },
|
|||
|
|
"limitations": [
|
|||
|
|
"上传成功但入站事件通道完全无回推(含 upload 类 notice),延长到 20s 仍为 0 条。依赖事件驱动落库的链路会永久漏采文件消息,必须靠 history 主动补拉兜底。",
|
|||
|
|
"upload_group_file 返回 retcode=0 但不返回 file_id,只能从 history 的 file 段取 file_id。",
|
|||
|
|
"history 的 file 段 file_name 字段为 '-',真实文件名在 data.file 与 url 的 fname 参数里。"
|
|||
|
|
],
|
|||
|
|
"todo": ["私聊 upload_file 的事件回推同样缺失,需确认是通道问题还是接口行为。"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-music",
|
|||
|
|
"name": "音乐分享段",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg"],
|
|||
|
|
"supports": ["group"],
|
|||
|
|
"sendStatus": "downgraded",
|
|||
|
|
"eventStatus": "downgraded",
|
|||
|
|
"historyStatus": "downgraded",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "matrix-probe: g_music_url({type,url})-> retcode=0 但段只剩 text;music{type:163,id} -> retcode=1200",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "matrix", "case": "g_music_url", "expect": { "retcode": 0, "eventSegs": "text", "historySegs": "text" } },
|
|||
|
|
"limitations": [
|
|||
|
|
"两种不同失败模式,都必须记录:{type:'163',id} 形式被明确拒绝(1200);{type,url} 形式 retcode=0 但整条被降级为纯文本,音乐卡片丢失。",
|
|||
|
|
"降级为 text 属静默语义丢失,标准化模型若按事件段解析会认为这是一条普通文本消息。"
|
|||
|
|
],
|
|||
|
|
"todo": ["未穷举 music 的其它字段组合(如 subtype/content/url 完整三元组),不得宣称音乐分享完全不可用。"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-ark",
|
|||
|
|
"name": "ARK 消息段",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg"],
|
|||
|
|
"supports": [],
|
|||
|
|
"sendStatus": "rejected",
|
|||
|
|
"eventStatus": "rejected",
|
|||
|
|
"historyStatus": "rejected",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "matrix-probe: g_ark -> retcode=1200",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "matrix", "case": "g_ark", "expect": { "retcode": 1200, "messageContains": "未知的消息类型" } },
|
|||
|
|
"limitations": ["错误原文 '未知的消息类型:ark' —— 该版本消息段解析器不识别 ark。"],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-location",
|
|||
|
|
"name": "位置段",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg"],
|
|||
|
|
"supports": [],
|
|||
|
|
"sendStatus": "silent_drop",
|
|||
|
|
"eventStatus": "silent_drop",
|
|||
|
|
"historyStatus": "silent_drop",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "matrix-probe: g_location -> retcode=0,seq=3103,事件与 history 段均只剩 text(复测两次一致)",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "matrix", "case": "g_location", "expect": { "retcode": 0, "eventSegs": "text", "historySegs": "text" } },
|
|||
|
|
"limitations": ["静默丢弃,无错误提示。"],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-poke",
|
|||
|
|
"name": "戳一戳",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_poke", "group_poke", "friend_poke"],
|
|||
|
|
"supports": ["group", "private"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "untested",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "seg-probe: poke 消息段被静默丢弃;改用 send_poke 接口成功",
|
|||
|
|
"realEnvTest": "partial",
|
|||
|
|
"regressionProbe": { "probe": "manual", "case": "poke", "expect": { "note": "消息段形态无效,必须走 send_poke 接口" } },
|
|||
|
|
"limitations": [
|
|||
|
|
"poke 作为消息段无效(静默丢弃),必须用独立接口 send_poke/group_poke/friend_poke。",
|
|||
|
|
"history 回读未采(戳一戳是否入 history 未确认)。"
|
|||
|
|
],
|
|||
|
|
"todo": ["补 poke 的 history 回读证据。"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-json",
|
|||
|
|
"name": "JSON 卡片段(json/markdown)",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg", "send_private_msg"],
|
|||
|
|
"supports": ["group", "private"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "verified",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "matrix-probe: p_json -> json+text",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "matrix", "case": "p_json", "expect": { "retcode": 0, "eventSegs": "json+text", "historySegs": "json+text" } },
|
|||
|
|
"limitations": ["事件与 history 均给 json 段原文,但卡片是否真正渲染未做客户端目视确认。"],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "MSG-unknown-seg",
|
|||
|
|
"name": "未知消息段与空消息数组",
|
|||
|
|
"kind": "message-segment",
|
|||
|
|
"api": ["send_group_msg"],
|
|||
|
|
"supports": [],
|
|||
|
|
"sendStatus": "rejected",
|
|||
|
|
"eventStatus": "rejected",
|
|||
|
|
"historyStatus": "rejected",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "seg-probe: 未知段类型与空 message 数组均 retcode=1200,整条失败",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "segments", "case": "unknown_type", "expect": { "retcode": 1200 } },
|
|||
|
|
"limitations": ["上游对未知段是整条拒绝而非忽略,发送侧必须自行过滤未知段,否则一条坏段会让整条消息发不出去。"],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "OP-recall",
|
|||
|
|
"name": "撤回/删除消息",
|
|||
|
|
"kind": "operation",
|
|||
|
|
"api": ["delete_msg"],
|
|||
|
|
"supports": ["group", "private"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "verified",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "seg-probe: recall_msg -> retcode=1404(接口不存在);delete_msg -> retcode=0,回推 notice/group_recall,history message=[]",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "manual", "case": "recall", "expect": { "recall_msg_retcode": 1404, "delete_msg_retcode": 0 } },
|
|||
|
|
"limitations": [
|
|||
|
|
"recall_msg 不存在(1404),必须用 delete_msg。",
|
|||
|
|
"撤回后 history 的 message 变成空数组,且【没有】 is_recall 标记。区分『空消息』与『已撤回』只能靠本地状态机 + notice/group_recall 事件,不得依赖上游标记。"
|
|||
|
|
],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "EV-lifecycle",
|
|||
|
|
"name": "连接认证确认(lifecycle)",
|
|||
|
|
"kind": "event",
|
|||
|
|
"api": [],
|
|||
|
|
"supports": ["transport"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "not_applicable",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "所有探测脚本以收到 meta_event/lifecycle 作为认证确认门禁",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "any", "case": "lifecycle", "expect": { "required": true } },
|
|||
|
|
"limitations": ["见 GC-008:onopen 不代表认证成功。"],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "EV-self-sent",
|
|||
|
|
"name": "自发消息回推",
|
|||
|
|
"kind": "event",
|
|||
|
|
"api": [],
|
|||
|
|
"supports": ["group", "private"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "verified",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "url-media-probe 事件 post_type=message_sent,含 message_sent_type=self 与 target_id",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "urlMedia", "case": "g_image_url", "expect": { "postType": "message_sent" } },
|
|||
|
|
"limitations": ["见 GC-003。"],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "EV-notice",
|
|||
|
|
"name": "群通知类事件(成员增减/管理员变动/群文件/戳一戳通知)",
|
|||
|
|
"kind": "event",
|
|||
|
|
"api": [],
|
|||
|
|
"supports": [],
|
|||
|
|
"sendStatus": "untested",
|
|||
|
|
"eventStatus": "untested",
|
|||
|
|
"historyStatus": "untested",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "未采集",
|
|||
|
|
"realEnvTest": "not_tested",
|
|||
|
|
"regressionProbe": null,
|
|||
|
|
"limitations": ["本轮矩阵事件文件中 notice/request 类事件为 0 条,但原因未定性:可能是无人触发(需真实第二账号操作),也可能是通道不推送。二者不得混为一谈。"],
|
|||
|
|
"todo": [
|
|||
|
|
"需用户在 QQ 端配合的清单(本轮按约定不采集,标记为待验证):群成员加入/退出、群管理员任命/撤销、群文件上传通知(他人上传)、好友申请、群内戳一戳通知、撤回他人消息。",
|
|||
|
|
"群文件通知已单独排除『等待时间不足』:upload_group_file 后连续观测 20s 收到 0 条事件。"
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "LINK-forward-ws",
|
|||
|
|
"name": "正向 WebSocket 入站链路",
|
|||
|
|
"kind": "transport",
|
|||
|
|
"api": [],
|
|||
|
|
"supports": ["inbound"],
|
|||
|
|
"sendStatus": "verified",
|
|||
|
|
"eventStatus": "verified",
|
|||
|
|
"historyStatus": "not_applicable",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "本轮全部采样经此链路完成",
|
|||
|
|
"realEnvTest": "verified",
|
|||
|
|
"regressionProbe": { "probe": "any", "case": "connect", "expect": { "required": true } },
|
|||
|
|
"limitations": ["心跳 status 为嵌套对象 {online,good},间隔 3000ms。"],
|
|||
|
|
"todo": []
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "LINK-http-server",
|
|||
|
|
"name": "HTTP Server 入站链路",
|
|||
|
|
"kind": "transport",
|
|||
|
|
"api": [],
|
|||
|
|
"supports": [],
|
|||
|
|
"sendStatus": "blocked",
|
|||
|
|
"eventStatus": "blocked",
|
|||
|
|
"historyStatus": "not_applicable",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "未通过",
|
|||
|
|
"realEnvTest": "blocked",
|
|||
|
|
"regressionProbe": null,
|
|||
|
|
"limitations": ["实测 3000 端口 timeout。受阻不等于不支持。"],
|
|||
|
|
"todo": ["用户已授权临时改 OB11 通道配置 + 自动重启补采(采完必须回滚并逐字段校验一致)。本轮未执行,留待下一轮。"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "LINK-http-callback",
|
|||
|
|
"name": "HTTP 回调入站链路",
|
|||
|
|
"kind": "transport",
|
|||
|
|
"api": [],
|
|||
|
|
"supports": [],
|
|||
|
|
"sendStatus": "blocked",
|
|||
|
|
"eventStatus": "blocked",
|
|||
|
|
"historyStatus": "not_applicable",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "未通过",
|
|||
|
|
"realEnvTest": "blocked",
|
|||
|
|
"regressionProbe": null,
|
|||
|
|
"limitations": [
|
|||
|
|
"实测零连接。NapCat WebUI 的 GetClientIP 返回 10.66.0.4 是映射地址、本机不持有,不能当回调地址使用。",
|
|||
|
|
"改网络配置必须重启 NapCat(约 10-20s),期间存在事件缺口。"
|
|||
|
|
],
|
|||
|
|
"todo": ["同上,需授权后配置本机可达的回调地址再采。"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "LINK-reverse-ws",
|
|||
|
|
"name": "反向 WebSocket 入站链路",
|
|||
|
|
"kind": "transport",
|
|||
|
|
"api": [],
|
|||
|
|
"supports": [],
|
|||
|
|
"sendStatus": "untested",
|
|||
|
|
"eventStatus": "untested",
|
|||
|
|
"historyStatus": "not_applicable",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "未尝试",
|
|||
|
|
"realEnvTest": "not_tested",
|
|||
|
|
"regressionProbe": null,
|
|||
|
|
"limitations": ["本轮未尝试,无任何结论。"],
|
|||
|
|
"todo": ["需授权后配置。"]
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "REL-dedup",
|
|||
|
|
"name": "重复投递 / 断线重连补推 / 乱序",
|
|||
|
|
"kind": "reliability",
|
|||
|
|
"api": [],
|
|||
|
|
"supports": [],
|
|||
|
|
"sendStatus": "untested",
|
|||
|
|
"eventStatus": "untested",
|
|||
|
|
"historyStatus": "untested",
|
|||
|
|
"parseStatus": "pending",
|
|||
|
|
"automationTest": "未采集",
|
|||
|
|
"realEnvTest": "not_tested",
|
|||
|
|
"regressionProbe": null,
|
|||
|
|
"limitations": [
|
|||
|
|
"去重键候选 (bindingUid, group_id, real_seq) 仍待验证,不得写入设计为已确认。",
|
|||
|
|
"观测工具已就绪:tools/probe/event-listener.mjs 记录 ws_open/ws_close/reconnect_scheduled 与 conn 序号。"
|
|||
|
|
],
|
|||
|
|
"todo": ["用户已授权自动重启 NapCat 采集断线重连补推、重复投递与乱序。本轮未执行,属下一轮任务。"]
|
|||
|
|
}
|
|||
|
|
]
|
|||
|
|
}
|