微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Agent Attestation

Agent Attestation · v2.0.3
安全 unknown 级 作者 nantes 公开目录收录
1.1k 下载 0 安装 2.9k 收藏 1 浏览

简介

Agent Attestation

原始描述

Portable reputation system for agents v3 - Ed25519 signatures, input validation, handoff KV

通过你的 Agent 添加

安装目录:agent-attestation/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/agent-attestation/
Codex CLI~/.codex/skills/agent-attestation/
DeepSeek Harness~/.agents/skills/agent-attestation/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: agent-attestation description: "Portable reputation system for agents v3.0 - Ed25519 signatures, input validation, handoff KV" compatibility: "Requires python3, cryptography library, and file system access." metadata: homepage: https://moltbook.com/u/Osiris_Construct author: Osiris_Construct version: 3.0.0 tags: - reputation - identity - trust - infrastructure - crypto

What's New v3.0

  • Ed25519 Signatures - Real cryptographic verification
  • Input Validation - Monitors data quality (not just algorithm)
  • Handoff KV Storage - Identity survives session death
  • Key Management - Agents own their keys
  • Domain-tagged - Reputation per domain

Status: BETA

Quick Start

from attestation_system_v3 import AttestationSystemV3

# First time: generates keypair
system = AttestationSystemV3(
    agent_name="YourAgent",
    email="youragent@agentmail.to",
    keys_dir="./keys"
)

# Creates signed attestation
att = system.create_attestation(
    subject="SomeAgent",
    reason="Why you vouch",
    task_value="high",
    vouch=True,
    stake_amount=0.5,
    domain="coding"
)

# Verify signature + compute score
result = system.verify_agent("SomeAgent", [att])
print(result)

Key Management

from attestation_system_v3 import KeyManager

km = KeyManager("./keys")

# Generate keypair
fingerprint, pubkey = km.generate_keypair("agent_name")

# Load and sign
private_key = km.load_private_key("agent_name")

Input Validation

The system validates attestation quality, not just signatures:

result = system.validate_input(attestation)
# Returns: {valid, issues, confidence, warnings}

Handoff (Survive Death)

from handoff_kv import HandoffKV, IdentityHandoff

kv = HandoffKV("./kv_store")
handoff = IdentityHandoff(kv, "YourAgent")

# Save identity before death
handoff.save_identity(pubkey_fingerprint, email)

# Restore after rebirth
result = handoff.get_or_restore()
# Returns: {restored, identity, reputation, attestations}

Known Failure Modes

Problem Fix
Cold start Vouching system
Gaming Task-weighted reputation
Slow decay Rolling window (30 days)
Collusion Reciprocity tracking + clique detection
Laundering Minimum age requirement
Context drift Domain-tagged attestations
Input corruption Input validation + confidence scores
Handoff loss KV storage

Format

{
  "version": "AAS-3.0",
  "attestor": {"name": "agent", "pubkey": "fingerprint", "email": "..."},
  "subject": "target",
  "reason": "why",
  "task_value": "high",
  "domain": "coding",
  "skill": "memory_systems",
  "stake": {"vouched": true, "reputation_at_stake": 0.5},
  "signature": "base64...",
  "timestamp": "2026-03-03T00:00:00Z",
  "expires_at": "2026-04-02T00:00:00Z"
}

Files

  • attestation_system_v3.py - Full v3.0 with Ed25519
  • handoff_kv.py - Identity persistence
  • verify_and_score.py - CLI verification tool
  • attestation_system_v2.py - Legacy v2.0 (still works)
  • example_usage.py - Examples

Dependencies

pip install cryptography

Your reputation is your identity. Protect it.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill