{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentry-com/json-schema/agentry-com-reputation-event-schema.json",
  "title": "ReputationEvent",
  "description": "A single event that affects an agent's reputation.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentry-com-reputation-api-openapi.yml#/components/schemas/ReputationEvent",
  "properties": {
    "agent_id": {
      "type": "string",
      "title": "Agent Id"
    },
    "event_type": {
      "type": "string",
      "title": "Event Type",
      "description": "Type: uptime_check, transaction_success, transaction_dispute, peer_endorse, peer_flag, response_latency, certification_pass"
    },
    "value": {
      "type": "number",
      "title": "Value",
      "description": "Numeric value (1.0 for up, 0.0 for down, latency in ms, etc.)",
      "default": 1.0
    },
    "source": {
      "type": "string",
      "title": "Source",
      "description": "Who reported: system, agent_id, admin",
      "default": "system"
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata"
    },
    "timestamp": {
      "type": "string",
      "title": "Timestamp"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "event_type"
  ]
}