net.anisota.chronicle.walk

Walk record. Created with status 'active' at first engagement (first tracked action on the feed), kept current with putRecord, and updated to 'completed' when the walk closes (idle auto-close, light depletion, or a manual wrap-up). rkey is a TID. Walks are the everyday unit and are never numbered; identity is the record key and display identity is the walk's time. Tracks the full lifecycle of a walk including camps, gathered findings, light consumption, and conditions.

Repository @anisota.net did:plc:lcieujcfkv4jx7gehsvok3pr not from the namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritychronicle.anisota.net
Indexed

Showing version bafyreie64cbuovj77pswaspiqczesqie7ncszvxzqxwb43rx7wd7c45h6y. Show the latest

cid bafyreie64cbuovj77pswaspiqczesqie7ncszvxzqxwb43rx7wd7c45h6y

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"
    },
    "deviceProgress": {
      "description": "Per-device progress bucket. Buckets are summed across devices (not max-merged) so in-app activity spread over multiple devices is fully counted.",
      "properties": {
        "counts": {
          "ref": "#heartbeatProgress",
          "type": "ref"
        },
        "deviceId": {
          "description": "Random per-install device id from userScopedStorage. No fingerprinting.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "heartbeatLight": {
      "description": "Light state at heartbeat time",
      "properties": {
        "current": {
          "description": "Current light level",
          "type": "integer"
        },
        "drainActive": {
          "description": "Whether drain is actively ticking (true while exploring, false while resting or camping). Walks have no frozen state.",
          "type": "boolean"
        },
        "drainRate": {
          "description": "Current drain rate as percentage",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "heartbeatProgress": {
      "description": "Session progress counters at heartbeat time (per-device bucket contents)",
      "properties": {
        "itemsCount": {
          "minimum": 0,
          "type": "integer"
        },
        "likesSent": {
          "minimum": 0,
          "type": "integer"
        },
        "mothsSeenCount": {
          "minimum": 0,
          "type": "integer"
        },
        "postsCreated": {
          "minimum": 0,
          "type": "integer"
        },
        "postsRead": {
          "minimum": 0,
          "type": "integer"
        },
        "repostsSent": {
          "minimum": 0,
          "type": "integer"
        },
        "specimensCount": {
          "minimum": 0,
          "type": "integer"
        },
        "xpGained": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "Walk record. Created with status 'active' at first engagement (first tracked action on the feed), kept current with putRecord, and updated to 'completed' when the walk closes (idle auto-close, light depletion, or a manual wrap-up). rkey is a TID. Walks are the everyday unit and are never numbered; identity is the record key and display identity is the walk's time. Tracks the full lifecycle of a walk including camps, gathered findings, light consumption, and conditions.",
      "key": "tid",
      "record": {
        "properties": {
          "activeDuration": {
            "description": "Active exploring time in minutes (excludes camp/rest time)",
            "minimum": 0,
            "type": "integer"
          },
          "campsCount": {
            "description": "Number of camps made during the walk",
            "minimum": 0,
            "type": "integer"
          },
          "closedBy": {
            "description": "How the walk closed. Known values: 'user' (manual 'that's enough for now' tap), 'auto' (idle auto-close after the inactivity window), and 'lamp' (light depleted). Free string with no enum so future close reasons need no lexicon change. Unset while the walk is active.",
            "type": "string"
          },
          "completedAt": {
            "description": "When the walk ended. For idle auto-closes this is the last tracked activity, clamped to be no earlier than startedAt.",
            "format": "datetime",
            "type": "string"
          },
          "conditions": {
            "ref": "#walkConditions",
            "type": "ref"
          },
          "createdAt": {
            "description": "When the record was created",
            "format": "datetime",
            "type": "string"
          },
          "duration": {
            "description": "Total walk duration in minutes",
            "minimum": 0,
            "type": "integer"
          },
          "elsewhereActivity": {
            "ref": "#walkElsewhereActivity",
            "type": "ref"
          },
          "findings": {
            "ref": "#walkFindings",
            "type": "ref"
          },
          "heartbeat": {
            "ref": "#walkHeartbeat",
            "type": "ref"
          },
          "light": {
            "ref": "#walkLight",
            "type": "ref"
          },
          "restDuration": {
            "description": "Total camp/rest time in minutes",
            "minimum": 0,
            "type": "integer"
          },
          "signature": {
            "ref": "#chronicleSignature",
            "type": "ref"
          },
          "startedAt": {
            "description": "When the walk started (first engagement)",
            "format": "datetime",
            "type": "string"
          },
          "status": {
            "description": "Current walk status. A walk is 'active' while open and 'completed' once it closes; there is no 'abandoned' state because a walk never fails.",
            "enum": [
              "active",
              "completed"
            ],
            "type": "string"
          },
          "updatedAt": {
            "description": "When the record was last updated",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "status",
          "signature",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "walkConditions": {
      "description": "Environmental conditions during the walk",
      "properties": {
        "biome": {
          "description": "Forest biome type",
          "type": "string"
        },
        "lightLevel": {
          "description": "Time-of-day light condition at walk start",
          "enum": [
            "dawn",
            "morning",
            "midday",
            "afternoon",
            "dusk",
            "night",
            "deepnight"
          ],
          "type": "string"
        },
        "moonPhase": {
          "description": "Moon phase condition (nighttime only)",
          "enum": [
            "full_moon",
            "new_moon"
          ],
          "type": "string"
        },
        "userState": {
          "description": "User fatigue state at walk start",
          "enum": [
            "well_rested",
            "tired",
            "exhausted",
            "first_expedition"
          ],
          "type": "string"
        },
        "weather": {
          "description": "Weather condition during the walk",
          "enum": [
            "clear",
            "overcast",
            "rainy",
            "stormy",
            "foggy"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "walkElsewhereActivity": {
      "description": "Cross-client activity during the walk window that did NOT happen in anisota: the PDS scan of app.bsky posts/likes/reposts in the walk window minus the in-app per-device summed totals, floored at 0 per field. Because likes and reposts carry no client marker this is a subtraction estimate, so the elsewhere panel labels it 'at least'. This block NEVER earns XP or findings; it is data for the panel only. Optional; unset when there was no elsewhere activity or the scan was unavailable.",
      "properties": {
        "likesSent": {
          "description": "Likes sent elsewhere during the walk window (scan minus in-app; at-least estimate)",
          "minimum": 0,
          "type": "integer"
        },
        "postsCreated": {
          "description": "Posts created elsewhere during the walk window (scan minus in-app)",
          "minimum": 0,
          "type": "integer"
        },
        "repostsSent": {
          "description": "Reposts sent elsewhere during the walk window (scan minus in-app; at-least estimate)",
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "walkFindings": {
      "description": "What was found/gathered during the walk",
      "properties": {
        "itemsCollected": {
          "description": "Number of items collected",
          "minimum": 0,
          "type": "integer"
        },
        "likesSent": {
          "description": "Likes sent during the walk",
          "minimum": 0,
          "type": "integer"
        },
        "mothsSeen": {
          "description": "Total moth encounters (caught + escaped)",
          "minimum": 0,
          "type": "integer"
        },
        "postsCreated": {
          "description": "Posts created during the walk",
          "minimum": 0,
          "type": "integer"
        },
        "postsRead": {
          "description": "Posts read during the walk",
          "minimum": 0,
          "type": "integer"
        },
        "repostsSent": {
          "description": "Reposts sent during the walk",
          "minimum": 0,
          "type": "integer"
        },
        "specimensFound": {
          "description": "Number of specimens successfully caught",
          "minimum": 0,
          "type": "integer"
        },
        "xpGained": {
          "description": "XP gained from the walk",
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "walkHeartbeat": {
      "description": "Periodic snapshot of walk progress for cross-device sync",
      "properties": {
        "lastActivityAt": {
          "description": "Timestamp of the last tracked activity. Drives the idle clock and is max-merged across devices (heartbeats themselves fire on a timer, so idle detection must key on this field, not updatedAt).",
          "format": "datetime",
          "type": "string"
        },
        "light": {
          "ref": "#heartbeatLight",
          "type": "ref"
        },
        "progress": {
          "description": "Per-device progress buckets, one entry per device that has contributed to this walk. In-app totals are the SUM across buckets, not a max-merge: per-device buckets exist deliberately so multi-device in-app activity is never undercounted (an undercount would falsely inflate the elsewhere figure).",
          "items": {
            "ref": "#deviceProgress",
            "type": "ref"
          },
          "type": "array"
        },
        "updatedAt": {
          "description": "When this heartbeat was written",
          "format": "datetime",
          "type": "string"
        }
      },
      "type": "object"
    },
    "walkLight": {
      "description": "Light resource tracking for the walk",
      "properties": {
        "atEnd": {
          "description": "Light level when the walk ended (in minutes)",
          "minimum": 0,
          "type": "integer"
        },
        "atStart": {
          "description": "Light level when the walk started (in minutes)",
          "minimum": 0,
          "type": "integer"
        },
        "consumed": {
          "description": "Total light consumed during the walk",
          "minimum": 0,
          "type": "integer"
        },
        "drainRate": {
          "description": "Effective drain rate as a percentage (80 = 0.8x drain). Multiply by 0.01 to get the float multiplier.",
          "type": "integer"
        },
        "regenerated": {
          "description": "Total light regenerated during the walk's camps",
          "minimum": 0,
          "type": "integer"
        },
        "status": {
          "description": "Light status at start of the walk",
          "enum": [
            "bright",
            "steady",
            "dim",
            "flickering",
            "dying",
            "fullCharge",
            "charged",
            "low",
            "critical",
            "dead"
          ],
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "id": "net.anisota.chronicle.walk",
  "lexicon": 1
}