arXiv:2606.31272cs.CRcs.CL2026-06

为运行时技能设计可定位的指纹,识别代码、提示、工具的变更。

The Decomposition Is the Fingerprint: Per-Component Identity for Agent Skills

论文配图:The Decomposition Is the Fingerprint: Per-Component Identity for Agent Skills
图 1 · 摘自论文原文
  • 用多银行SimHash对技能三要素分别编码,生成120字节指纹
  • 在4950次对比中AUC达0.974,仅需原嵌入77分之一比特
  • 能定位修改组件,适合技能注册与溯源,非安全判定

AI代理在运行时获取并执行技能:从市场或其它代理处获取的提示、可执行代码和工具声明组合。管理这些技能需要稳定的技能身份标识,但传统加密哈希会因微小改动彻底改变结果,破坏相似性。本文提出一种紧凑的局部敏感指纹,将技能的每个组件(提示、代码、工具)分别嵌入,并通过多银行SimHash投影为位,生成固定120字节签名,用汉明距离常数时间比对。核心观点是保持指纹为组件三元组而非单一数值,使其能通过改写、重命名、重构和受控代码转换恢复技能家族身份,而独立多语言重实现则不被识别;同时定位出复用的组件。该指纹强调结构谱系而非行为等价:身份提供注册的结构轴线,安全验证仍交由行为测试。在4,950对比较中,指纹达到0.974的AUC(95%置信区间[0.956, 0.994]),比特数仅为所逼近嵌入的77分之一,排名期望保留且有限位集中;组件拆分使单一数值转化为关系分类、家族识别、新颖性判断和可移植的“SkillBOM”用于技能注册。在906项技能注入基准测试中,指纹可识别注入技能为已知基线的篡改副本并定位变化,但识别不等于信任:设计上仅为身份信号,互补于行为验证而非替代安全判定。

原文摘要 · Abstract (English)

AI agents increasingly acquire and execute skills at runtime: bundles of prompt instructions, executable code, and tool declarations fetched from marketplaces and other agents. Governing them needs a stable notion of skill identity, yet cryptographic hashing is engineered to destroy the very similarity we need, as a one-character edit scrambles the digest. We present a compact, locality-sensitive fingerprint that embeds each component of a skill and projects it to bits with a multi-bank SimHash, giving a fixed 120-byte signature compared in constant time by Hamming distance. Our central claim is that keeping the fingerprint as a per-component triple (prompt, code, tools), rather than a single score, is what makes it useful: the triple recovers skill-family identity through paraphrase, renaming, refactoring, and controlled code translation when another component remains shared, while independent multilingual reimplementation is not recovered; it also localizes which component carries the reuse. We claim lineage, not behavioral equivalence: identity supplies the structural axis of a registry and leaves safety to behavioral verification. The fingerprint reaches an area under the ROC curve (AUC) of 0.974 (95% CI [0.956, 0.994]) over 4,950 pairwise comparisons while using 77x fewer bits than the embedding it approximates, with ranking preserved in expectation and finite-bit concentration; the per-component split turns one number into relationship classification, families, novelty, and a portable "SkillBOM" for a skill registry. On a 906-skill injection benchmark the fingerprint recognizes injected skills as tampered copies of a known base and localizes the change, but recognition is not trust: it remains, by design, an identity signal complementary to behavioral verification rather than a safety verdict.

技能识别指纹技术AI代理代码溯源

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。