Skip to content

文档承诺「HotCRM 内置四个 AI 知识库」,src/ 里一个都不存在(含 Competitive Intelligence 战卡库) #808

Description

@yinlianghui

发现自 #790 的实施过程(清 crm_competitor 的文档残留时顺着 battlecard 一路查到这里),不在该 PR 的文件面内,故单独立单。

现象

content/docs/service/knowledge-base.mdx:35-43 断言:

HotCRM ships with four AI knowledge bases, each tuned for different teams:

| Knowledge Base | Used by | Content |
| Sales Knowledge | Sales Copilot | Sales playbook, qualification methodology, objection handling |
| Product Information | Sales Copilot | Product catalog, specifications, pricing, positioning |
| Support Knowledge | Service Copilot | FAQs, troubleshooting, SLA policies |
| Competitive Intelligence | Sales Copilot | Competitor profiles, battlecards, win/loss analysis |

content/docs/administration/setup.mdx:124-127 的 Day 5 上手清单把它当作可执行步骤:

  • Seed Support Knowledge with your top 20 FAQ articles
  • Seed Sales Knowledge with your sales playbook
  • Seed Competitive Intel with battle cards for your top 5 competitors

content/docs/ai-copilot/knowledge-bases.* 同样四条(zh-Hans / zh-Hant 亦然)。

实测:src/ 里这四个名字一个都不存在。

$ grep -rn "Competitive Intelligence\|competitive_intel\|Support Knowledge\|Sales Knowledge\|knowledgeBase\|knowledge_base" src/ --include=*.ts
src/objects/knowledge_article.object.ts:9: * Reusable, search-indexed answers that back the Support Knowledge Base

唯一一处是一行注释。crm_knowledge_article.category 的取值是 Getting Started / How-To / Troubleshooting / Billing & Pricing / API & Integrations / Release Notes / Policy —— 没有 Competitive Intelligence,也没有其余三个。src/skills/ 里没有任何知识库绑定。

于是一个照着 Day 5 清单操作的管理员,在 Setup 里找不到任何叫「Sales Knowledge」或「Competitive Intel」的东西可以 seed;「四个知识库」这个数词本身也没有落地面。

与既有单的关系

修法(需要先定调)

两条路,选哪条是产品判断,不宜由单个 PR 顺手带过:

  1. 文档跟元数据:删掉「四个知识库」这一整套说法,把知识库描述收敛到真正存在的 crm_knowledge_article + 它的 category 取值,Day 5 清单相应改写。
  2. 元数据跟文档:真的把这四个知识库建成元数据(category 取值扩展,或 skills 侧的知识库绑定),使文档兑现。

按「声明即强制」,若走第 1 条,值得同时在 test/docs-object-coverage.test.ts 或 docs-drift.test.ts 里加一条:文档中列举的知识库名必须解析到元数据里的真实取值 —— 与 dashboards 的磁贴规则同形状。

Related: #612(Copilot 人格用语,另一回事)、#790。

Activity

  1. added
    bugSomething isn't working
    documentationImprovements or additions to documentation
    pm:queueReady for the PM dispatch loop
    on Aug 5, 2026
  2. yinlianghui commented on Aug 6, 2026

    @yinlianghui
    CollaboratorAuthor

    补一处本单未记的位置(发现自 #860 / PR #865 的实施过程,不另开重复单)

    content/docs/ai-copilot/sales-copilot.mdx:78-80 三语把其中两个知识库当作 Email Drafting 技能的输入列了出来,是本单「四个知识库」说法的第五处落点(本单正文记的是 content/docs/service/knowledge-base.mdx、content/docs/administration/setup.mdx、content/docs/ai-copilot/knowledge-bases.*):

    ### 3. ✍️ Email Drafting
    ...
    - The relevant product datasheet from the Product Information knowledge base.
    - The sales playbook from the Sales Knowledge knowledge base.
    

    zh 同位:sales-copilot.zh-Hans.mdx:74-75「来自产品信息知识库的相关产品数据表。/ 来自销售知识知识库的销售剧本。」、sales-copilot.zh-Hant.mdx:74-75 同。

    这两行有两个互相独立的问题,修的时候值得一起处理:

    1. 本单的事实:Product Information / Sales Knowledge 这两个知识库在 src/ 里不存在。
    2. 另一个独立事实(即便这两个知识库真的建出来,这两行仍然错):写它们的那个技能是 email_drafting,而 src/skills/email-drafting.skill.ts:21-37 的五步 instructions 从头到尾没有一步去取任何知识来源——tools: ['get_record', 'query_records'] 够得着 crm_knowledge_article,但没有被要求去读。这与 service-copilot.mdx 还剩四处与 skill/对象源码不符:幽灵「产品」字段,以及三段仍在复述「分流会匹配知识库文章」的提示语 #860 第六项是同一个 skill、同一个事实:service 页的「All drafts cite the Support Knowledge articles they pulled from」已在 PR docs(ai-copilot): 按 skill 源码写实 service-copilot 其余段落的能力残留 (#860) #865 里按 instructions 写实。

    为什么没在 PR #865 里顺手改:#860 的边界明确要求「知识库实体是否存在不评述」(本单的裁定面),而这两行的主语正是本单的两个知识库——重写它必然要对实体存在性表态,越界。故只作记录,交由本单落地时一并扫掉。

    副作用提示:PR #865 合并后到本单落地前,两页对同一个 email_drafting 技能的说法会暂时不一致(service 页说草稿不引用知识文章,sales 页仍列两个知识库为输入)。本单收口时按第 2 条一并写实即可消除。

    Refs #860 / PR #865


    Generated by Claude Code

  3. added
    pm:dispatchedDispatched to a dev agent by /pm-dispatch
    and removed
    pm:queueReady for the PM dispatch loop
    on Aug 6, 2026
  4. self-assigned this
    on Aug 6, 2026
  5. yinlianghui commented on Aug 6, 2026

    @yinlianghui
    CollaboratorAuthor

    [PM 认领 · R24] session_01VHrPAGEgFDoHjphqYG4BMa · 分支 claude/issue-808-knowledge-bases-write-real · 文件面:content/docs/service/knowledge-base.mdx ×3 + content/docs/administration/setup.mdx ×3(Day 5 清单)+ content/docs/ai-copilot/knowledge-bases.* ×3 + content/docs/ai-copilot/sales-copilot.mdx ×3(:78-80,#865 评论追加的第五处落点)+ changeset

    定调裁定(PM 可决,留否决窗):走 issue 的第 1 条——文档跟元数据,与 #833/#834/#847 全部先例同口径。「四个 AI 知识库」整套说法收敛到真实存在的 crm_knowledge_article + 其 7 个 category;「元数据跟文档」(真建这四个库)是产品扩展,本单不预判——维护者若想做,另立实现单即可,文档届时随之再更新。

    执行细则:

    1. 不静默删名:Sales Knowledge / Product Information / Support Knowledge / Competitive Intelligence 四个名字写明「本应用不 ship 这样的独立知识库」,指向真实的知识文章对象与其分类;Competitive Intelligence 与 OWD 表与注册对象集对不上:仍列已删除的 Competitor,且缺 Event(三语) #790 清掉的 demo competitor 模块同源,可如实注明该背景。
    2. Day 5 清单改写为真实可执行动作(按 category seed 知识文章),不留一个管理员在 Setup 里找不到的步骤。
    3. sales-copilot :78-80(Email Drafting 的输入列两个知识库):按 docs(ai-copilot): 按 case_triage 与 customer_360 源码写实两页能力清单 (#847) #861/docs(ai-copilot): 按 skill 源码写实 service-copilot 其余段落的能力残留 (#860) #865 的既有口径写实——email_drafting 的 instructions 从不取知识来源(docs(ai-copilot): 按 skill 源码写实 service-copilot 其余段落的能力残留 (#860) #865 已核),此处一并收口,消除「两页暂不一致」。⚠️ 该页刚被 docs(ai-copilot): 按两个 skill 源码写实 Customer 360 与工单分流的客户画像 (#840) #848/docs(ai-copilot): 按 case_triage 与 customer_360 源码写实两页能力清单 (#847) #861 改过,重定位行号、与其措辞衔接不回退。
    4. Docs drift (round 2 leftovers): ~39 product pages still name "Sales/Service Copilot" as a persona; config comment and RELEASE_STRATEGY.md still stale #612 边界:Copilot 称谓/人格用语不动;只改知识库实体相关的句子。
    5. issue 建议的「知识库名解析守卫」不加(方向 1 落地后该断言面即消失;[观察] 文档里的状态名/字段标签与语言包是否一致,无人检查——一周内同一缺陷类出现三次,全靠人眼撞见 #802 族能力缺口已在案)。
    6. ⚠️ 基线取最新 main;⛔ 不动 src/**、releases/;三语同步;zh 术语按语言包。

    ⛔ 不升级 @objectstack/*;changeset 站内路径反引号;控制字节自扫;JSON 报告按标准 schema。


    Generated by Claude Code

  6. yinlianghui commented on Aug 6, 2026

    @yinlianghui
    CollaboratorAuthor

    [PM 验收] PR #892 ACCEPT — 已转 ready 并挂 auto-merge(session_01VHrPAGEgFDoHjphqYG4BMa;验收动作因 GitHub API 限流两度顺延,CI 早已复核为绿)

    复核结论:

    越界发现处置:#890(三页技能能力主语残留,⚠️ 与 #887/#850 的 service 页排期互斥)入队 pm:queue;#891(skills.mdx 读/写/输出表全面失实 + 技能数 5→6)入队 pm:queue。


    Generated by Claude Code

  7. added and removed on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentationpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions