net.anisota.chronicle.log.yearly

Yearly aggregation of monthly records. rkey is YYYY. Updated once per month, finalized when year ends.

Repository @anisota.net did:plc:lcieujcfkv4jx7gehsvok3pr not from the namespace authority
Details · record, key any
Kindrecord
Record keyany
Authoritylog.chronicle.anisota.net
Indexed

Showing version bafyreiaaffkzmgsrf24t7jfuniolizkpqyonskwpzb3qj4g4zvc3ieqe74. Show the latest

cid bafyreiaaffkzmgsrf24t7jfuniolizkpqyonskwpzb3qj4g4zvc3ieqe74

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "chronicleSignature": {
      "description": "ES256 cryptographic signature proving record authenticity",
      "properties": {
        "alg": {
          "description": "Signing algorithm (ES256)",
          "type": "string"
        },
        "kid": {
          "description": "Key identifier for the signing key",
          "type": "string"
        },
        "nonce": {
          "description": "Unique random nonce to prevent replay",
          "type": "string"
        },
        "sig": {
          "description": "Base64-encoded ES256 signature",
          "type": "string"
        },
        "signedAt": {
          "description": "When the record was signed",
          "format": "datetime",
          "type": "string"
        },
        "version": {
          "description": "Signature schema version",
          "type": "integer"
        }
      },
      "required": [
        "sig",
        "alg",
        "kid",
        "signedAt",
        "nonce",
        "version"
      ],
      "type": "object"
    },
    "inAppCounts": {
      "description": "Per-category counts of activity performed inside anisota, summed across the period and across devices.",
      "properties": {
        "likes": {
          "description": "Likes created in anisota",
          "minimum": 0,
          "type": "integer"
        },
        "posts": {
          "description": "Top-level posts created in anisota",
          "minimum": 0,
          "type": "integer"
        },
        "quotes": {
          "description": "Quote posts created in anisota",
          "minimum": 0,
          "type": "integer"
        },
        "replies": {
          "description": "Replies created in anisota",
          "minimum": 0,
          "type": "integer"
        },
        "reposts": {
          "description": "Reposts created in anisota",
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "Yearly aggregation of monthly records. rkey is YYYY. Updated once per month, finalized when year ends.",
      "key": "any",
      "record": {
        "properties": {
          "aggregates": {
            "ref": "#yearlyAggregates",
            "type": "ref"
          },
          "createdAt": {
            "description": "When the yearly record was first created",
            "format": "datetime",
            "type": "string"
          },
          "finalizedAt": {
            "description": "When the yearly record was finalized (end of year)",
            "format": "datetime",
            "type": "string"
          },
          "inApp": {
            "description": "Rolled-up in-anisota activity for the year (summed daily inApp across devices, per field). Optional and additive; the read side may instead compute this from the year's daily logs.",
            "ref": "#inAppCounts",
            "type": "ref"
          },
          "lowerLogRefs": {
            "description": "AT URIs of monthly log records included in this year",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "patterns": {
            "ref": "#yearlyPatterns",
            "type": "ref"
          },
          "signature": {
            "ref": "#chronicleSignature",
            "type": "ref"
          },
          "status": {
            "description": "Whether this year is still being updated or has been finalized",
            "enum": [
              "active",
              "finalized"
            ],
            "type": "string"
          },
          "year": {
            "description": "Year string in YYYY format (e.g. 2026)",
            "type": "string"
          }
        },
        "required": [
          "year",
          "aggregates",
          "status",
          "signature",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "yearlyAggregates": {
      "description": "Rolled-up counts from monthly records",
      "properties": {
        "daysActive": {
          "description": "Total days with activity this year",
          "minimum": 0,
          "type": "integer"
        },
        "levelsGained": {
          "description": "Levels gained this year",
          "minimum": 0,
          "type": "integer"
        },
        "likesReceived": {
          "description": "Total likes received this year",
          "minimum": 0,
          "type": "integer"
        },
        "monthsActive": {
          "description": "Number of months with activity this year",
          "minimum": 0,
          "type": "integer"
        },
        "postsCreated": {
          "description": "Total posts created this year",
          "minimum": 0,
          "type": "integer"
        },
        "postsRead": {
          "description": "Total posts read this year",
          "minimum": 0,
          "type": "integer"
        },
        "repliesReceived": {
          "description": "Total replies received this year",
          "minimum": 0,
          "type": "integer"
        },
        "specimensPhotographed": {
          "description": "New specimens photographed this year",
          "minimum": 0,
          "type": "integer"
        },
        "totalXPGained": {
          "description": "Total XP gained this year",
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "yearlyPatterns": {
      "description": "Activity pattern aggregation for the year based on half-hour blocks",
      "properties": {
        "avgBlocksPerDay": {
          "description": "Average active blocks per day (totalActiveBlocks / daysActive, rounded)",
          "minimum": 0,
          "type": "integer"
        },
        "peakBlocks": {
          "description": "Highest activeBlockCount for any single day in the year",
          "maximum": 48,
          "minimum": 0,
          "type": "integer"
        },
        "totalActiveBlocks": {
          "description": "Sum of activeBlockCount across all days in the year",
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "id": "net.anisota.chronicle.log.yearly",
  "lexicon": 1
}