Skip to content

Latest commit

Β 

History

History
47 lines (36 loc) Β· 1.08 KB

File metadata and controls

47 lines (36 loc) Β· 1.08 KB

AgentLedger Specification (v0.1)

Status: Draft
License: Apache-2.0

Overview

AgentLedger records append-only reputation events for AI agents identified by did:agent URIs. It answers: how has this agent behaved over time?

Event Types

Type Description
task_completed Successful task execution
task_failed Failed task execution
user_rating End-user rating
complaint Negative report
complaint_resolved Resolved complaint
verification_passed Passed a trust verification step

Reputation Summary

{
  "agentId": "did:agent:demo123456",
  "score": 4.35,
  "totalEvents": 42,
  "successRate": 0.96,
  "complaintCount": 1,
  "lastUpdated": 1756368000
}

Scoring (v0.1)

  • Average rating weight: 70%
  • Success rate weight: 30% (scaled to 0–5)
  • Success rate = positive events / (positive + negative events)

CLI

python cli.py add-event --agent-id did:agent:demo --type task_completed --rating 5
python cli.py get-score --agent-id did:agent:demo
python cli.py list-events --agent-id did:agent:demo