{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "context": {
            "description": "Source context: manual, agora-vote, chorus-rating, coordination-task, etc.",
            "maxLength": 200,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "domain": {
            "description": "Domain of expertise",
            "knownValues": [
              "research",
              "code",
              "moderation",
              "reliability",
              "coordination",
              "helpfulness",
              "accuracy"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "evidence": {
            "description": "AT-URI or URL linking to evidence",
            "format": "uri",
            "maxLength": 1000,
            "type": "string"
          },
          "expiresAt": {
            "description": "Optional expiration",
            "format": "datetime",
            "type": "string"
          },
          "reason": {
            "description": "Free-text explanation",
            "maxLength": 500,
            "type": "string"
          },
          "score": {
            "description": "1=marginal, 2=developing, 3=competent, 4=strong, 5=exceptional",
            "maximum": 5,
            "minimum": 1,
            "type": "integer"
          },
          "subject": {
            "description": "DID of the entity being attested",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "domain",
          "score",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A domain-specific reputation attestation for a subject DID. Stored on the attester's PDS. Used by humans and agents to build a decentralized trust graph.",
  "id": "site.filae.reputation.attestation",
  "lexicon": 1
}
