Skip to content

feat: add CNIPA formal checks for dependent claims and antecedent basis - #9

Open
banghaod wants to merge 1 commit into
anticipate218:mainfrom
banghaod:feat/claim-formal-checks
Open

banghaod wants to merge 1 commit into
anticipate218:mainfrom
banghaod:feat/claim-formal-checks

Conversation

@banghaod

@banghaod banghaod commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

改动

  • formalCheck 新增五项权利要求书检查,依据《专利审查指南》第二部分第二章 3.3.2 节(从属权利要求的撰写规定)和专利法第二十六条第四款(权利要求应当清楚):

    检查 级别 内容
    多项从属权利要求择一引用 需修改 / 需注意 用“和”“及”并列引用为需修改;只写“1至3所述”、没有写明择一为需注意
    多项从属权利要求的引用基础 需修改 多项从属权利要求不得直接引用另一项多项从属权利要求
    从属权利要求的位置 需注意 写在所从属的独立权利要求之后、下一项独立权利要求之前
    从属权利要求的引用部分 需注意 写明编号并重述主题名称。允许“所述的方法”这类简称;提示“前述权利要求中任一项”、没写主题名称、主题名称换成另一主题
    “所述”特征的引用基础 需注意 “所述××”须在本项前文或所引用的权利要求中出现过
  • 修正 parseClaims 的引用解析:“权利要求1或2”“1、2或3”“1和2”“1~3”原来只解析出第一个编号(“1至权利要求3”只得到两端),所以第 3 条写“根据权利要求1或4所述的”这类在后引用没有被发现

  • 撰写提示词(INVENTION_SYSTEM)补充上述规则

  • 新增 src/claim-format.test.ts(15 项)

原因

现有形式检查没有覆盖审查意见中最常见的几类权利要求书缺陷。实现上的取舍:

  • 引用其他权利要求、但属于另一类别的权利要求(“……的制备方法”“……在制备药物中的用途”“空调器,……实现权利要求1所述方法的步骤”)按并列独立权利要求处理,不当作从属权利要求
  • 编号不连续时跳过这五项,由现有的“权利要求编号”检查提示
  • 不改变 exportable,不拦截导出;两项“需修改”只会在已有的附图修正轮中,随其他需修改项一起交给模型
  • 主题名称和引用基础按字面比对,所以只给“需注意”

验证

  • npm run verify(Node.js 24,Windows 11):763 项单元测试、24 项 Worker smoke、Worker mock、构建、类型检查和两次 release scan 通过
  • 撤掉修复后新测试失败;“根据权利要求1或4所述的”在修改前判为通过,修改后报“引用了在后或不存在的权利要求”
  • 知识库内置的三个虚构示范样例五项全部通过
  • Windows 本地运行时,Worker smoke 的「超大请求 → 413」偶发连接中断;未改动的上游 main 上同样出现(8 次中 1 次),与本改动无关,重跑后通过
  • 用 Google Patents 上 288 件已授权中国发明专利(48 个检索主题,4081 项权利要求,其中多项从属 447 项)验证误报。前 216 件用于调试;另外 72 件首次运行报出 9 处,7 处成立,2 处是同一项用途权利要求的误报,已修正。现在共 22 处提示,逐条核对原文均成立,例如:3 件专利有多项从属权利要求引用多项从属权利要求;存储介质权利要求写“由所述处理器加载并执行”,却没有引入处理器
  • 未调用真实模型或检索服务;提示词的改动未经真实模型验证

🤖 Generated with Claude Code

Add five checks to formalCheck, following the drafting rules for
dependent claims in the Guidelines for Patent Examination (Part II,
Chapter 2, 3.3.2) and the common "lacks antecedent basis" objection
under Patent Law Art. 26(4):

- claim-multiple (error/warn): a multiple dependent claim refers to
  earlier claims in the alternative ("1或2", "1至3中任一项"), not
  cumulatively ("1和2").
- claim-multiple-basis (error): a multiple dependent claim does not
  refer to another multiple dependent claim (direct references only).
- claim-order (warn): dependent claims follow their own independent
  claim, before the next independent claim.
- claim-reference (warn): the reference part states the claim numbers
  and restates the subject. Abbreviations such as "所述的方法" pass;
  "前述权利要求中任一项", a missing subject or a different subject
  are reported.
- claim-antecedent (warn): "所述X" is introduced earlier in the claim
  or in a claim it refers to.

Claims that cite earlier claims but belong to another category
("……的制备方法", "……在制备药物中的用途", "空调器,……实现权利要求1
所述的方法") are treated as independent claims. The checks are skipped
when claim numbering is broken, and none of them changes `exportable`.

Also fix parseClaims: "权利要求1或2", "1、2或3", "1和2", "1~3" and
"1至权利要求3" yielded only the first number or the two endpoints, so
a forward reference such as "根据权利要求1或4所述的" in claim 3 went
unreported.

The drafting prompt now states these rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@anticipate218 anticipate218 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢补充形式检查。原有 CI 已批准并通过,但独立补测发现以下可复现问题,本轮先不合并,避免引入错误的“通过”结论及首屏/导出阻塞:

  1. 范围端点丢失:第 51 条引用“权利要求1至权利要求60”时仅返回 1..50,遗漏 60;“权利要求2至权利要求1”返回空引用并被认作独立权利要求。请保留异常/长范围端点用于校验。
  2. 择一分支引用基础:1.一种装置,包括壳体;2.根据权利要求1所述装置,还包括电机;3.根据权利要求1或2所述装置,所述电机固定于壳体。第3条选择第1条时无电机,目前 antecedent=ok。
  3. 同前缀不同部件:“包括控制器,所述控制阀安装在进水管上”目前通过,因为只比较前两字。请避免将这种启发式判断表述为确定有引用基础。
  4. 英文逗号:第4条“根据权利要求1,2或3所述的装置”编号解析正确,但引用部分误报未择一及缺主题名称;换成顿号则通过。
  5. 混合连接词:“根据权利要求1和2或3所述的装置”目前显示“均为择一引用”。
  6. 性能:连续999项、每项使用“根据前述权利要求中任一项所述的装置”的约3.6万字输入,新增同步检查在本机耗时约9.7秒;需要缓存引用图或设置有明确提示的处理上限,不能阻塞预览/导出。

请补充上述反例的回归测试。保持导出能力不被启发式语义检查误阻断,并明确自动检查不能替代专业审阅。本轮没有修改你的分支或作者署名。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants