pub.techne.draft.statement

`"key": "any"`: a writer derives a deterministic rkey from the subject so a re-publish updates the same statement.

Details · record, key any
Kindrecord
Record keyany
Authoritydraft.techne.pub
Commit rev3n3iobb52b62u
Indexed
cid bafyreifqkxquumwxax3e5ixr5h2ase3eo6oj2tbbbyjoz7kkertgzvmzzq

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "locations": {
      "description": "Where the subject is, as the writer of the statement says, for a subject of any type. It counts only as the view decides: the subject's own locations win, and a statement fills in only where the subject states no location of that kind, or (with `basis`) gives a position to a subject's entry that has none. A statement the subject's own author writes counts as the subject's own locations. A `basis` equal to the subject record's CID (a legacy claim) counts for any own entry of that kind with no position, while the subject is still that version. When several claims compete for one slot (the same kind, and the same `basis` or none), one counts: the finest grain wins, then the newest, then the lowest source URI; the others are conflicts. On a type whose query document reads its entries as sites (`entries: sites`, as on an org), a claim entry that names no own entry (no `basis`, or a legacy `basis` while the subject states no location of that kind) is its own site: it counts beside every other such entry and competes with none. A claim that names an own entry still competes for that entry, and a subject that states a location of that kind still bars a claim with no `basis`. Read as written, every writer's claim is weighed; curated, only the subject's author's and those of writers the commons root endorses. The commons curator makes a curated copy of a statement carrying `locations` only when its subject's type reads its entries as sites (an org; never an event or a place) and the statement's author is one the root endorses for statements: the copy is about the curated org and written by the org's curator, so it counts as the org's own locations.",
      "properties": {
        "locations": {
          "description": "Entries as in the subject's own `locations` field (lexicon naming register).",
          "items": {
            "refs": [
              "community.lexicon.location.geo",
              "community.lexicon.location.hthree",
              "community.lexicon.location.address",
              "com.atproto.repo.strongRef",
              "pub.techne.draft.locationEntry"
            ],
            "type": "union"
          },
          "maxLength": 256,
          "type": "array"
        }
      },
      "required": [
        "locations"
      ],
      "type": "object"
    },
    "main": {
      "description": "`\"key\": \"any\"`: a writer derives a deterministic rkey from the subject so a re-publish updates the same statement.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "fields": {
            "description": "Some of the subject type's own fields. Each member is the subject type's `#fields` def: the same names and shapes as its main record, none required. Open: a type gains statements by gaining a `#fields` def and a member here. `#locations` is the one member for any type: where the subject is, as the writer says.",
            "refs": [
              "pub.techne.draft.org#fields",
              "pub.techne.draft.statement#locations"
            ],
            "type": "union"
          },
          "subject": {
            "description": "The record the statement is about.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "subject",
          "fields",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "The generic statement envelope (lexicon constitution, rule 1): a writer's statement of some fields of a record someone else wrote. atproto lets an account write only to its own repo, so a fact about another account's record is stored here: `subject` is that record, and `fields` carries some of its type's own fields under their own names and shapes. One envelope for every kind of fact, never one sidecar type per fact. Draft tier, PUBLIC. Who said it is the repo it lives in; how it was made is a `pub.techne.draft.derivation` whose subject is this statement (and its `attributions`, a `pub.techne.draft.sourceAttribution`).",
  "id": "pub.techne.draft.statement",
  "lexicon": 1
}