org.cairnsproto.draft.listCalibration
Each setup's agreement with a project's revealed gold entries, and every revealed entry with whether it counts and whether agreeing setups contradict it.
Details · query
| Kind | query |
|---|---|
| Authority | draft.cairnsproto.org |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"goldEntry": {
"properties": {
"flagged": {
"description": "Setups that agree with each other on another value outnumber, at two or more, the setups that read the entry's value.",
"type": "boolean"
},
"gold": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"reveal": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"site": {
"ref": "org.cairnsproto.draft.defs#hash",
"type": "ref"
},
"status": {
"description": "valid, or why the entry is void: the commitment isn't a maintainer's, was seen after its epoch, the reveal came before the epoch's retrace window closed or isn't by the committer, the proof doesn't reach the root, the site had a stone when committed, or valid entries disagree on the site's value.",
"knownValues": [
"valid",
"notMaintainer",
"lateCommitment",
"early",
"proof",
"notFresh",
"conflict"
],
"maxLength": 32,
"type": "string"
},
"value": {
"ref": "org.cairnsproto.draft.defs#hash",
"type": "ref"
}
},
"required": [
"gold",
"reveal",
"site",
"value",
"status",
"flagged"
],
"type": "object"
},
"main": {
"description": "Each setup's agreement with a project's revealed gold entries, and every revealed entry with whether it counts and whether agreeing setups contradict it.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"entries": {
"items": {
"ref": "#goldEntry",
"type": "ref"
},
"type": "array"
},
"project": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"setups": {
"items": {
"ref": "#setupScore",
"type": "ref"
},
"type": "array"
}
},
"required": [
"project",
"setups",
"entries"
],
"type": "object"
}
},
"parameters": {
"properties": {
"project": {
"format": "at-uri",
"type": "string"
},
"sponsor": {
"description": "Keep the setups this sponsor's stones used.",
"format": "did",
"type": "string"
}
},
"required": [
"project"
],
"type": "params"
},
"type": "query"
},
"setupScore": {
"description": "A setup: model, model version, procedure and config hash. Stones that declare no model are each a setup of their own sponsor.",
"properties": {
"config": {
"ref": "org.cairnsproto.draft.defs#hash",
"type": "ref"
},
"fails": {
"minimum": 0,
"type": "integer"
},
"model": {
"maxLength": 256,
"type": "string"
},
"modelVersion": {
"maxLength": 128,
"type": "string"
},
"passes": {
"minimum": 0,
"type": "integer"
},
"procedure": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"sponsors": {
"description": "Sponsors whose stones at gold sites used the setup.",
"items": {
"format": "did",
"type": "string"
},
"type": "array"
},
"weightPpm": {
"description": "The weight policy.calibration gives the setup. Absent when the policy sets no calibration.",
"maximum": 1000000,
"minimum": 0,
"type": "integer"
}
},
"required": [
"passes",
"fails",
"sponsors"
],
"type": "object"
}
},
"id": "org.cairnsproto.draft.listCalibration",
"lexicon": 1
}