# org.simocracy.history

> Published by [gainforest.earth](https://lexicon.garden/identity/did:plc:qoti4acfmc5wg6zzmtix6hse)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/org.simocracy.history)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/org.simocracy.history/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/org.simocracy.history/examples)

## Definitions

### `org.simocracy.history`

**Type**: `record`

Tracks user interactions — chat messages, senate hearings launched, and individual sim comments during hearings.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `type` | `string` | Yes | Event type: chat, hearing, or comment |
| `round` | `integer` | No | Hearing round: 1=evaluation, 2=response, 3=summary (for comment events) |
| `content` | `string` | No | The actual content — sim response for chat, sim opinion for comment |
| `simUris` | `array` | No | AT-URIs of sims involved |
| `actorDid` | `string` | Yes | DID of the user who triggered the event |
| `simNames` | `array` | Yes | Names of sims involved |
| `createdAt` | `string` (datetime) | Yes |  |
| `hearingId` | `string` | No | Unique ID for grouping events from the same hearing session |
| `userMessage` | `string` | No | User's message that prompted the response (for chat events) |
| `proposalTitle` | `string` | No | Title of the proposal (for hearing/comment events) |

## Raw Schema

```json
{
  "id": "org.simocracy.history",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "type",
          "actorDid",
          "simNames",
          "createdAt"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "Event type: chat, hearing, or comment"
          },
          "round": {
            "type": "integer",
            "description": "Hearing round: 1=evaluation, 2=response, 3=summary (for comment events)"
          },
          "content": {
            "type": "string",
            "description": "The actual content — sim response for chat, sim opinion for comment",
            "maxGraphemes": 5000
          },
          "simUris": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxLength": 10,
            "description": "AT-URIs of sims involved"
          },
          "actorDid": {
            "type": "string",
            "description": "DID of the user who triggered the event"
          },
          "simNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxLength": 10,
            "description": "Names of sims involved"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "hearingId": {
            "type": "string",
            "maxLength": 32,
            "description": "Unique ID for grouping events from the same hearing session"
          },
          "userMessage": {
            "type": "string",
            "description": "User's message that prompted the response (for chat events)",
            "maxGraphemes": 2000
          },
          "proposalTitle": {
            "type": "string",
            "description": "Title of the proposal (for hearing/comment events)",
            "maxGraphemes": 500
          }
        }
      },
      "description": "Tracks user interactions — chat messages, senate hearings launched, and individual sim comments during hearings."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
