pub.techne.draft.provenancePolicy

The provenance ALGEBRA: whose signature makes a record of a type count, wherever it lives (the firehose, or any space). Each record type with a rule publishes a companion {collection}.provenance document (defs.main: {type: provenancePolicy, rule}) holding one of these. The document's NSID is derived from the collection's, like {spaceType}.policy, so an adopted lexicon we don't own (community.lexicon.calendar.rsvp) gets one without being edited. A provenance rule never decides who may READ a record (that is the space policy); it decides whether the record says what it says. Fail-closed: a document whose rule this evaluator does not know, or that does not parse, gives its type no rule. Lives OUTSIDE the codegen roots (provenance-lexicons/), beside space-lexicons/. The evaluator is techne-lexicon-check's provenance module.

Details · defs
Kinddefs
Authoritydraft.techne.pub
Commit rev3n3iob7mscw2u
Indexed

#authorIsAuthority

object

The author is the authority by construction: the record lives in the authority's own repo and names no object (a collective's membership records). Placed in a space, the author must also pass that space's write policy.

#objectAuthority

object

Counts only when the author is the authority (the repo DID) of the object the record is about.

Properties

field

requiredstring

The body field holding the object: an AT-URI string or a strongRef (its uri). `$space` names the space the record is placed in instead (a share's object is its placement; the body carries none).

#objectAuthorityOrRole

object

Counts when the author is the object's authority, or holds at least minRole in the collective that is, at the time this version was first seen: directly, or through one member collective, where the lower of the two roles counts.

Properties

field

requiredstring

As objectAuthority's field.

minRole

requiredinteger
  • minimum: 0
  • maximum: 32767

#self

object

Counts from whoever wrote it: a first-person record about the author's own stance (an RSVP, a connection, an evaluation, a block).

#vouchedWriter

object

Counts when the author holds a live credential from an admin writer over the author's own pub.techne.draft.publisher/self declaration. An admin writer is the reader's root (for the commons, COMMONS_ROOT_DID), or an operator one of the root's pub.techne.draft.operator records names for a period holding when the reader first saw that version of the credential. The credential is a pub.techne.draft.credential in its issuer's own repo naming that declaration and its current CID. It is revoked by a pub.techne.draft.credentialRevocation at its `revocation` address (in the issuer's repo), or at the same rkey in the root's repo (the root can revoke an operator's credential). The declaration must list the collection in `writes`. An edited declaration has another CID and counts for nothing until an admin writer re-issues; a revocation withdraws every record the author wrote, past ones included (trust is read at read time). The list of accounts is data (declarations and credentials), so adding one is never a release. The chain check is techne-lexicon-check's chain module, with the issuer and both revocation addresses supplied by the reader.

Properties

labels

string

The body field holding the label values the record assigns (a verdict's `values`). With it, the declaration must also mark no curator (its `writes` lacks pub.techne.draft.provenance), and the record counts for each value the declaration lists in `labels` and for no other; with none listed it does not count.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • An app's access to a space counts only from the space's authority (anyone else could otherwise let an app into a stranger's space). A manage holder approves with the authority's pen: the managing app checks the space type's manage leg, in which another account linked to the authority does not count as the authority, then writes as the authority.