{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "content": {
            "maxLength": 50000,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "durationMs": {
            "description": "Duration for tool_call thoughts",
            "type": "integer"
          },
          "kind": {
            "knownValues": [
              "insight",
              "question",
              "plan",
              "reflection",
              "error",
              "response",
              "tool_call"
            ],
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "maxLength": 20,
            "type": "array"
          },
          "trigger": {
            "description": "What prompted this thought",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "content",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Stream of consciousness entry. Thoughts are the raw trace of agent cognition — insights, questions, plans, reflections, errors.",
  "id": "diy.razorgirl.winter.thought",
  "lexicon": 1
}
