xyz.quasigod.lab.letta.lock

quasigod.spaces-alpha.bsky.network

Documentation

Held-writer lock record. Writers coordinate through this record: acquire (put), work, release (delete); an expired lock is stolen by the next writer. This is the in-process fast-path guard; cross-device safety against stray concurrent writes comes from per-record CAS (swapRecord) on data records.

main record

Held-writer lock record. Writers coordinate through this record: acquire (put), work, release (delete); an expired lock is stolen by the next writer. This is the in-process fast-path guard; cross-device safety against stray concurrent writes comes from per-record CAS (swapRecord) on data records.

Record Key literal:self Fixed literal value

Properties

expiresAt string datetime Required

TTL deadline. A lock past its deadline is treated as a crashed writer and stolen.

holder string Required

Identifier of the backend instance holding the lock.

maxLength: 256 bytes
nonce string Required

Random value proving ownership; read back to confirm the holder is still the writer before releasing.

maxLength: 64 bytes
View raw schema
{
  "key": "literal:self",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "holder",
      "nonce",
      "expiresAt"
    ],
    "properties": {
      "nonce": {
        "type": "string",
        "maxLength": 64,
        "description": "Random value proving ownership; read back to confirm the holder is still the writer before releasing."
      },
      "holder": {
        "type": "string",
        "maxLength": 256,
        "description": "Identifier of the backend instance holding the lock."
      },
      "expiresAt": {
        "type": "string",
        "format": "datetime",
        "description": "TTL deadline. A lock past its deadline is treated as a crashed writer and stolen."
      }
    }
  },
  "description": "Held-writer lock record. Writers coordinate through this record: acquire (put), work, release (delete); an expired lock is stolen by the next writer. This is the in-process fast-path guard; cross-device safety against stray concurrent writes comes from per-record CAS (swapRecord) on data records."
}

Lexicon Garden

@