网淘吧来吧,欢迎您!

Agent Trust Protocol技能使用说明

2026-04-01 新闻来源:网淘吧 围观:21
电脑广告
手机广告

代理信任协议 (ATP)

在AI代理之间建立、验证和维护信任。包含基于特定领域的贝叶斯信任评分、撤销、遗忘曲线和可视化仪表板。

安装

git clone https://github.com/FELMONON/trust-protocol.git
# No dependencies beyond Python 3.8+ stdlib
# Pair with skillsign for identity: https://github.com/FELMONON/skillsign

快速开始

# Add an agent to your trust graph
python3 atp.py trust add alpha --fingerprint "abc123" --score 0.7

# Record interactions — trust evolves via Bayesian updates
python3 atp.py interact alpha positive --note "Delivered clean code"
python3 atp.py interact alpha positive --domain code --note "Tests passing"

# Check trust
python3 atp.py trust score alpha
python3 atp.py trust domains alpha

# View the full graph
python3 atp.py status
python3 atp.py graph export --format json

# Run the full-stack demo (identity → trust → dashboard)
python3 demo.py --serve

命令

信任管理

atp.py trust add <agent> --fingerprint <fp> [--domain <d>] [--score <0-1>]
atp.py trust list
atp.py trust score <agent>
atp.py trust remove <agent>
atp.py trust revoke <agent> [--reason <reason>]
atp.py trust restore <agent> [--score <0-1>]
atp.py trust domains <agent>

交互

atp.py interact <agent> <positive|negative> [--domain <d>] [--note <note>]

质询-响应

atp.py challenge create <agent>
atp.py challenge respond <challenge_file>
atp.py challenge verify <response_file>

图谱

atp.py graph show
atp.py graph path <from> <to>
atp.py graph export [--format json|dot]
atp.py status

仪表板

python3 serve_dashboard.py          # localhost:8420
python3 demo.py --serve             # full demo + dashboard

Moltbook 集成

python3 moltbook_trust.py verify <agent>    # check agent trust via Moltbook profile

信任机制

  • 贝叶斯更新:每次交互都会改变信任分数,但变化幅度递减(防止剧烈波动)
  • 消极性偏差:负面交互的打击力度大于正面交互的提升力度
  • 特定领域:可以信任一个代理处理代码,但不信任其提供安全建议
  • 遗忘曲线:缺乏交互时信任度会衰减 (R = e^(-t/S))
  • 撤销立即降至最低,可在降低的分数下恢复
  • 传递性信任: 如果你信任A且A信任B,你则部分信任B(信任度会衰减)

与技能签名集成

ATP构建于技能签名用于身份验证:

Agent Trust Protocol

  1. 代理使用技能签名生成ed25519密钥对
  2. 代理为技能签名,其他方验证签名
  3. 已验证的代理被添加到ATP信任图谱
  4. 交互随时间更新信任分数

触发词

"检查信任"、"信任分数"、"信任图谱"、"验证代理"、"代理信任"、"信任状态"、"我信任谁"、"信任报告"

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第393659名访客 今日有1篇新文章/评论