{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A deed of addition. Imhotep — the most famous architect in history, deified as the Son of Ptah. Every contributor to a world is an Imhotep. They build within the tradition of the master. Their work is attributed. The lineage is unbroken.",
      "key": "tid",
      "record": {
        "properties": {
          "attributionChain": {
            "description": "An array tracing every hand this contribution passed through. AT URIs of prior contribution records or DIDs. This is the Carryforward logic expressed at the protocol layer.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "type": "array"
          },
          "canonicalStatus": {
            "description": "The canonical standing of this contribution within the world.",
            "knownValues": [
              "world.ptah.temp.defs#canonicalStatusOfficial",
              "world.ptah.temp.defs#canonicalStatusCommunity",
              "world.ptah.temp.defs#canonicalStatusApocryphal"
            ],
            "type": "string"
          },
          "contributionType": {
            "description": "What kind of contribution and which record type it links to.",
            "knownValues": [
              "character",
              "role",
              "action",
              "event",
              "lore",
              "location"
            ],
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "contributorDID": {
            "description": "Who is making the contribution.",
            "format": "did",
            "type": "string"
          },
          "createdAt": {
            "description": "Timestamp of the contribution.",
            "format": "datetime",
            "type": "string"
          },
          "originatorApproval": {
            "description": "The approval status of this contribution.",
            "knownValues": [
              "approved",
              "preApproved",
              "communityCanon"
            ],
            "type": "string"
          },
          "publicDomainCompliance": {
            "description": "Whether this contribution complies with public domain sourcing requirements. Relevant for catalog worlds.",
            "type": "boolean"
          },
          "recordReference": {
            "description": "The AT URI of the primary record being contributed. The Contribution record is the anchor of attribution — not the exhaustive list of every record the contributor touched. The full scope is discoverable via DID query across record types.",
            "format": "at-uri",
            "type": "string"
          },
          "worldReference": {
            "description": "The AT URI of the world being contributed to.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "contributorDID",
          "worldReference",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A contribution record in The Ptah Protocol. The permission and attribution layer — governs how someone who did not create a world adds something to it, and ensures that addition is attributed, traceable, and governed by whatever rules the world originator set.",
  "id": "world.ptah.temp.contribution",
  "lexicon": 1
}
