{
  "lexicon": 1,
  "id": "net.bisks.hyperobject.suggestion",
  "defs": {
    "main": {
      "type": "record",
      "description": "A nomination for the pit, written by any signed-in account (other than isolyth.dev) to their own repo. src/index.ts's /api/suggest reads the record back off the suggesting account's own PDS to confirm authorship, then queues it in the shared checkpoint that only isolyth.dev sees — she stamps it approve/deny with a net.bisks.hyperobject.review record. `suggestedBy` is not a record field: the Worker derives it from the record's own repo DID at apply time. Read by hyperobject (https://hyperobject.bisks.net).",
      "key": "tid",
      "record": {
        "type": "object",
        "required": ["subject", "createdAt"],
        "properties": {
          "subject": {
            "type": "string",
            "format": "did",
            "description": "DID of the account being suggested for the pit."
          },
          "note": {
            "type": "string",
            "maxLength": 1000,
            "maxGraphemes": 300,
            "description": "Optional free-text note entered alongside the suggestion."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the suggestion was submitted, as an ISO 8601 datetime."
          }
        }
      }
    }
  }
}
