net.anisota.chronicle.log.daily

Daily activity snapshot. Updated throughout the day via putRecord. rkey is YYYY-MM-DD in user's local timezone.

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

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "activityCounts": {
      "description": "Aggregate activity counts for the day (no timestamps or URIs)",
      "properties": {
        "likesSent": {
          "description": "Likes sent today",
          "minimum": 0,
          "type": "integer"
        },
        "postsCreated": {
          "description": "Posts created today",
          "minimum": 0,
          "type": "integer"
        },
        "postsRead": {
          "description": "Posts read today",
          "minimum": 0,
          "type": "integer"
        },
        "repliesSent": {
          "description": "Replies sent today",
          "minimum": 0,
          "type": "integer"
        },
        "repostsSent": {
          "description": "Reposts sent today",
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "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"
    },
    "engagementCounts": {
      "description": "Engagement received on user's posts (aggregate counts only)",
      "properties": {
        "likesReceived": {
          "description": "Likes received on posts today",
          "minimum": 0,
          "type": "integer"
        },
        "quotesReceived": {
          "description": "Quotes received today",
          "minimum": 0,
          "type": "integer"
        },
        "repliesReceived": {
          "description": "Replies received on posts today",
          "minimum": 0,
          "type": "integer"
        },
        "repostsReceived": {
          "description": "Reposts received today",
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "expeditionSummary": {
      "description": "Retired with walks: from the 2027 season the daily has no expeditions block. Summary of expeditions for the day (details in chronicle.expedition)",
      "properties": {
        "count": {
          "description": "Number of expeditions completed today",
          "minimum": 0,
          "type": "integer"
        },
        "currentCampNumber": {
          "description": "Current camp number within the active expedition (0 = exploring, not camped; unset if no active expedition)",
          "minimum": 0,
          "type": "integer"
        },
        "currentExpeditionNumber": {
          "description": "Number of the currently active expedition (unset if no active expedition)",
          "minimum": 1,
          "type": "integer"
        },
        "totalDuration": {
          "description": "Total expedition duration in milliseconds",
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "inAppCounts": {
      "description": "Per-category counts of activity performed inside anisota (never inferred; recorded at write time).",
      "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"
    },
    "inAppDeviceBucket": {
      "description": "One device's in-anisota activity counts for the day. Keyed by a stable per-install-per-account device id, so concurrent putRecords from different devices never clobber each other. The reserved deviceId 'scheduled' holds scheduled posts published server-side by the cocoon cron worker on their publish day.",
      "properties": {
        "counts": {
          "ref": "#inAppCounts",
          "type": "ref"
        },
        "deviceId": {
          "description": "Stable per-install-per-account device id (random; no fingerprinting). Reserved value 'scheduled' for cocoon-published scheduled posts.",
          "type": "string"
        }
      },
      "required": [
        "deviceId",
        "counts"
      ],
      "type": "object"
    },
    "main": {
      "description": "Daily activity snapshot. Updated throughout the day via putRecord. rkey is YYYY-MM-DD in user's local timezone.",
      "key": "any",
      "record": {
        "properties": {
          "activity": {
            "ref": "#activityCounts",
            "type": "ref"
          },
          "createdAt": {
            "description": "When the daily record was first created",
            "format": "datetime",
            "type": "string"
          },
          "date": {
            "description": "Date string in YYYY-MM-DD format (user's local timezone)",
            "type": "string"
          },
          "engagement": {
            "ref": "#engagementCounts",
            "type": "ref"
          },
          "expeditionRefs": {
            "description": "Retired with walks: from the 2027 season the app leaves it out of the daily. AT URIs of expedition records that occurred on this day",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "expeditions": {
            "description": "Retired with walks: from the 2027 season the app leaves it out of the daily. The day's expedition summary",
            "ref": "#expeditionSummary",
            "type": "ref"
          },
          "inApp": {
            "description": "First-party ledger of activity performed INSIDE anisota this day, one bucket per device. Optional and additive. The cross-device in-app total per field is the SUM over buckets. Used to compute an honest 'outside' floor (max(0, total - inApp)); a device only ever writes its own bucket.",
            "items": {
              "ref": "#inAppDeviceBucket",
              "type": "ref"
            },
            "type": "array"
          },
          "patterns": {
            "ref": "#patternsData",
            "type": "ref"
          },
          "player": {
            "ref": "#playerSnapshot",
            "type": "ref"
          },
          "signature": {
            "ref": "#chronicleSignature",
            "type": "ref"
          },
          "updatedAt": {
            "description": "When the daily record was last updated",
            "format": "datetime",
            "type": "string"
          },
          "upperLogRefs": {
            "description": "AT URIs of containing logs (weekly, monthly, yearly) this day belongs to",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "walks": {
            "description": "Retired with walks: from the 2027 season the app leaves it out of the daily. The day's walk summary",
            "ref": "#walkSummary",
            "type": "ref"
          }
        },
        "required": [
          "date",
          "player",
          "activity",
          "signature",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "patternsData": {
      "description": "Activity pattern data for the day based on half-hour blocks",
      "properties": {
        "activeBlockCount": {
          "description": "Number of half-hour blocks with activity today",
          "maximum": 48,
          "minimum": 0,
          "type": "integer"
        },
        "activeBlocks": {
          "description": "Half-hour slots with activity, as HH:MM strings (e.g. '09:00', '09:30'). Max 48 per day.",
          "items": {
            "type": "string"
          },
          "maxLength": 48,
          "type": "array"
        },
        "longestPatienceHours": {
          "description": "Longest gap in whole hours between notification checks on this day. Monotonic: only ever raised, never lowered. Capped at 48, matching the notification-patience curve's ceiling.",
          "maximum": 48,
          "minimum": 0,
          "type": "integer"
        },
        "offlineXPAwarded": {
          "description": "XP awarded for offline time",
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "playerSnapshot": {
      "description": "Player state snapshot for this day",
      "properties": {
        "itemsAcquiredToday": {
          "description": "Retired with items: from the 2027 season the app leaves it out of the daily. Number of items acquired today",
          "minimum": 0,
          "type": "integer"
        },
        "itemsConsumedToday": {
          "description": "Retired with items: from the 2027 season the app leaves it out of the daily. Number of items consumed/used today",
          "minimum": 0,
          "type": "integer"
        },
        "itemsTotal": {
          "description": "Retired with items: from the 2027 season the app leaves it out of the daily. Total items in inventory",
          "minimum": 0,
          "type": "integer"
        },
        "level": {
          "description": "Player level at end of day",
          "minimum": 1,
          "type": "integer"
        },
        "season": {
          "description": "The game season this record counts toward, e.g. 2027. Absent: before the 2027 season. level, totalXP and xpGainedToday are that season's figures; a player block without it is from before the 2027 season or from an older client.",
          "maxLength": 8,
          "type": "string"
        },
        "specimensDocumented": {
          "description": "Total specimens in collection",
          "minimum": 0,
          "type": "integer"
        },
        "totalXP": {
          "description": "Total accumulated XP",
          "minimum": 0,
          "type": "integer"
        },
        "xpGainedToday": {
          "description": "XP gained during this day",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "level",
        "totalXP"
      ],
      "type": "object"
    },
    "walkSummary": {
      "description": "Retired with walks: from the 2027 season the daily has no walks block. Summary of walks for the day (details in chronicle.walk). Parallel to expeditionSummary; both are merged additively.",
      "properties": {
        "count": {
          "description": "Number of walks completed today (additive)",
          "minimum": 0,
          "type": "integer"
        },
        "totalDuration": {
          "description": "Total walk duration in minutes (additive)",
          "minimum": 0,
          "type": "integer"
        },
        "walkRefs": {
          "description": "AT URIs of walk records that occurred on this day",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "id": "net.anisota.chronicle.log.daily",
  "lexicon": 1
}