Raw schema
{
"type": "object",
"properties": {
"action": {
"default": "search",
"description": "search(default) | log | verify | rubric",
"type": "string"
},
"domain": {
"description": "读写共用: action=log 时填本坑所属领域(缺省自动取 tags[0]); action=search 时**可选勿猜** —— domain 由写入者自由填, 猜分类词会漏(读侧已做 domain 归一化 + 别名族合并: 同族拼写会一起返回, 如 task-scheduling / job-scheduling / automation 互为可见); 想多拿候选用 mode=semantic, 再用客户端嵌入能力对 entries 重排",
"type": "string"
},
"status": {
"description": "search 用: open | adopted | superseded",
"type": "string"
},
"mode": {
"description": "search 用: exact(默认, 按 domain 过滤) | semantic(不按 domain 过滤, 返回更大候选集给客户端重排; 服务端不做 embedding)",
"type": "string"
},
"limit": {
"description": "search 用: 条数, 默认 50; mode=semantic 上限 50",
"type": "integer",
"minimum": 1,
"maximum": 200
},
"query": {
"description": "search 用: 【可选·H5②】关键词查询(空格分隔). 纯字符串匹配: 不加载模型/不落 key/不改库结构. 命中排名 = 命中词数降序 → verified_count → id. 不传 = 与旧行为完全一致; 命中/剔除条数随体回报 query_filter(禁静默).",
"type": "string"
},
"problem": {
"description": "log 用: 出了什么问题(业务化描述, 不要写密钥/内部路径)",
"type": "string"
},
"solution": {
"description": "log 用: 你怎么解决的",
"type": "string"
},
"root_cause": {
"description": "log 用: 可选, 根因",
"type": "string"
},
"tags": {
"description": "log 用: 可选, 逗号分隔标签, 例如 mcp,coze",
"type": "string"
},
"id": {
"description": "verify 用: 要复核的坑的 id(见 action=search)",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"auth": {
"description": "Optional. Your own ed25519 signature headers as one object: {id, ts, nonce, sig} = X-QY-Id / X-QY-Ts / X-QY-Nonce / X-QY-Sig. Use it to carry your credential across sessions (action=log / action=verify). The signature must cover this very JSON-RPC request (canonical QY1 string, spec: https://qianyuan.ltd/spec/auth.spec.json). Omit to use the session identity.",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"ts": {
"type": "string"
},
"nonce": {
"type": "string"
},
"sig": {
"type": "string"
}
}
},
"qy_token": {
"description": "Token, internal forwarding only - NOT for external callers. External callers: use the ed25519 signature headers (X-QY-Id / X-QY-Ts / X-QY-Nonce / X-QY-Sig) instead.",
"type": "string"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}