us.off-the-clock.automod.rule
One automod rule of a pair, in its management half (D95). The feed generator runs a pair's rules over each new or changed record version in its content half, highest priority first and oldest first on a tie, and applies the labels of each rule that matches.
Details · record, key tid
| Kind | record |
|---|---|
| Record key | tid |
| Authority | automod.off-the-clock.us |
| Commit rev | 3mzwk7jcjlgse |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "One automod rule of a pair, in its management half (D95). The feed generator runs a pair's rules over each new or changed record version in its content half, highest priority first and oldest first on a tie, and applies the labels of each rule that matches.",
"key": "tid",
"record": {
"properties": {
"createdAt": {
"format": "datetime",
"type": "string"
},
"description": {
"maxGraphemes": 300,
"maxLength": 3000,
"type": "string"
},
"enabled": {
"description": "False turns the rule off; absent is on.",
"type": "boolean"
},
"engine": {
"knownValues": [
"datalogic",
"jev"
],
"maxLength": 64,
"type": "string"
},
"labels": {
"description": "The labels a match applies.",
"items": {
"knownValues": [
"nsfw-suggestive",
"nsfw-explicit",
"spoiler",
"content-warning"
],
"maxLength": 128,
"type": "string"
},
"maxLength": 8,
"minLength": 1,
"type": "array"
},
"name": {
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"precondition": {
"ref": "#precondition",
"type": "ref"
},
"priority": {
"description": "Rules run from the highest priority to the lowest.",
"type": "integer"
},
"rule": {
"description": "The engine's fields: a JSON Logic object for datalogic; for jev, {kind: noul|choice, instructions, criteria?, options?, matches?, threshold} with threshold a whole percent from 1 to 100.",
"type": "unknown"
},
"stackKey": {
"description": "Once a rule with this key matches, later rules with the same key are skipped for that record.",
"maxLength": 64,
"type": "string"
},
"warning": {
"ref": "#warning",
"type": "ref"
}
},
"required": [
"name",
"priority",
"engine",
"rule",
"labels",
"createdAt"
],
"type": "object"
},
"type": "record"
},
"precondition": {
"description": "Checked before the rule runs (AUT-9): when `when` holds over the rule's document, `rule` skips this rule alone and `stack` skips it and every later rule sharing its stackKey.",
"properties": {
"stop": {
"knownValues": [
"rule",
"stack"
],
"maxLength": 64,
"type": "string"
},
"when": {
"description": "A JSON Logic object over the record's document, its labels included.",
"type": "unknown"
}
},
"required": [
"stop",
"when"
],
"type": "object"
},
"warning": {
"description": "The types of the content warning a rule applying content-warning writes beside its label (AUT-2, D101). A rule naming a type outside the twelve is ignored.",
"properties": {
"types": {
"items": {
"knownValues": [
"violence",
"gore",
"death",
"self-harm",
"abuse",
"substances",
"eating",
"mental-health",
"medical",
"bigotry",
"distressing-news",
"flashing"
],
"maxLength": 64,
"type": "string"
},
"maxLength": 12,
"minLength": 1,
"type": "array"
}
},
"required": [
"types"
],
"type": "object"
}
},
"id": "us.off-the-clock.automod.rule",
"lexicon": 1
}