建立、验证和维护 AI 代理之间的信任。采用贝叶斯信任评分,支持领域特定信任、撤销、遗忘曲线和可视化仪表板。
git clone https://github.com/FELMONON/trust-protocol.git
# 仅需 Python 3.8+ 标准库,无需其他依赖
# 可与 skillsign 配合用于身份管理:https://github.com/FELMONON/skillsign
# 将代理添加到信任图谱
python3 atp.py trust add alpha --fingerprint "abc123" --score 0.7
# 记录交互 — 信任通过贝叶斯更新动态演化
python3 atp.py interact alpha positive --note "交付了简洁的代码"
python3 atp.py interact alpha positive --domain code --note "测试通过"
# 检查信任度
python3 atp.py trust score alpha
python3 atp.py trust domains alpha
# 查看完整图谱
python3 atp.py status
python3 atp.py graph export --format json
# 运行全栈演示(身份 → 信任 → 仪表板)
python3 demo.py --serve
atp.py trust add <代理名称> --fingerprint <指纹> [--domain <领域>] [--score <0-1>]
atp.py trust list
atp.py trust score <代理名称>
atp.py trust remove <代理名称>
atp.py trust revoke <代理名称> [--reason <原因>]
atp.py trust restore <代理名称> [--score <0-1>]
atp.py trust domains <代理名称>
atp.py interact <代理名称> <positive|negative> [--domain <领域>] [--note <备注>]
atp.py challenge create <代理名称>
atp.py challenge respond <挑战文件>
atp.py challenge verify <响应文件>
atp.py graph show
atp.py graph path <起点> <终点>
atp.py graph export [--format json|dot]
atp.py status
python3 serve_dashboard.py # 本地服务 localhost:8420
python3 demo.py --serve # 完整演示 + 仪表板
python3 moltbook_trust.py verify <代理名称> # 通过 Moltbook 档案检查代理信任度
ATP 基于 skillsign 实现身份管理:
1. 代理使用 skillsign 生成 ed25519 密钥对
2. 代理对技能进行签名,其他方验证签名
3. 已验证的代理被添加到 ATP 信任图谱
4. 交互随时间推移更新信任分数
"检查信任", "信任分数", "信任图谱", "验证代理", "代理信任", "信任状态", "我信任谁", "信任报告"