← 返回
未分类

Fabricated Symbols

Code calls functions, classes, or methods that don't exist — either on project types or on third-party library APIs.
代码调用了不存在的函数、类或方法——无论是项目类型还是第三方库的 API。
mvogt99
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 327
下载
💾 1
安装
1
版本
#latest

概述

fabricated-symbols

The agent invokes a symbol that isn't defined. Most often this is a plausible-looking method on a third-party object, or a utility "I'm sure we have one of those" that the project actually lacks.

Symptoms

  • Generated code calls someLibrary.convenientHelper(...) where the library has no such method.
  • Invented method signatures on framework objects (wrong argument order, wrong return type).
  • References to utility functions the project doesn't have.
  • Runtime AttributeError / TypeError: X is not a function / undefined is not a function.

What to do

  • For every symbol you invoke on a third-party library, check the library's real API — docs, source, or type definitions — before writing code.
  • For every symbol you invoke on a project type, grep the codebase to confirm it exists. Don't assume.
  • If a helper is missing, either add it explicitly (and say you're adding it) or use what the project actually has.
  • Prefer the library's documented API over clever-looking shortcuts. Invented methods often look like what the library "should" have.
  • When refactoring, run the type-checker after every meaningful change. Invented methods sometimes type-check against any but fail at runtime.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 20:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Analysis Missing Tradeoffs

mvogt99
分析仅呈现单一选项,未比较替代方案,也未说明所选方案的成本。
★ 0 📥 607

Hallucinated Paths

mvogt99
回复引用了当前项目中不存在的文件路径、目录或模块位置。
★ 0 📥 343

Race Condition

mvogt99
共享可变状态在并发环境中未同步访问,导致不确定行为。
★ 0 📥 338