org.cairnsproto.draft.getReading

The current reading of a project under its policy, with the inputs a client needs to recompute it: every input record's URI, CID and first-seen epoch, and the beacons its draw claims used.

Repository @cairnsproto.org did:plc:np7ezqujtsry4bkogisaabul namespace authority
Details · query
Kindquery
Authoritydraft.cairnsproto.org
Commit rev3mzxyqj4ynf2e
Indexed

Query

query · GET

Parameters

query string

project

requiredstring · at-uri

site

string

Limit sites to this site key (hex).

  • minLength: 64
  • maxLength: 64

Output

application/json

beacons

requiredarray
itemsref
Reference

epoch

requiredinteger

The indexer's current epoch.

  • minimum: 0

exports

array
itemsref
Reference

gaps

requiredarray
itemsref
Reference

inputs

requiredarray
itemsref
Reference

policy

requiredref

project

requiredref

The official repo's state, from the latest import result a maintainer published.

Reference

rejected

requiredarray
itemsref
Reference

sites

requiredarray
itemsref
Reference

sources

array

One entry per source hash the project covers or its stones trace back to that a source record names, so a frontend can show a source by name instead of hash. Join it to a site's or gap's source hash.

itemsref
Reference

#beacon

object

Properties

round

requiredinteger
  • minimum: 1

signature

requiredstring
  • minLength: 96
  • maxLength: 96

#candidate

object

Properties

agreePpm

requiredinteger
  • minimum: 0

agreeingSponsors

requiredinteger
  • minimum: 0

disagreePpm

requiredinteger
  • minimum: 0

drawnAgreeing

requiredinteger
  • minimum: 0

high

requiredinteger

High bound of the agreement interval, in ppm.

  • minimum: 0
  • maximum: 1000000

low

requiredinteger

Low bound of the agreement interval, in ppm: support for the share of independent reads that agree on this candidate. It is not a measured accuracy.

  • minimum: 0
  • maximum: 1000000

stones

requiredarray
itemsref

value

requiredref

Digest of the canonical value.

vouched

boolean

Present and true when a converted stone naming a transform the project vouches for reads this candidate, so its support rests on the maintainer's vouch, not only on independent reads.

#export

object

Properties

export

requiredref
Reference

#gap

object

A site that is not done. A site no stone has reached yet also names its course and the site itself, and a root-course one its source, so a contributor can place the first stone.

Properties

course

string

Course id, for a root-course site with no stones.

  • maxLength: 128

reason

requiredstring
  • maxLength: 32
  • knownValues: open | contested | tied | ambiguous | belowExport | unreadable | held | escalated

site

requiredref

The source an empty root-course site marks into.

The site itself, for a site no stone has reached: a root course's whole-source site, or a child site a split course opened.

#input

object

Properties

cid

requiredstring · cid

seenEpoch

requiredinteger
  • minimum: 0

uri

requiredstring · at-uri

#merge

object

The first maintainer import result holding every file of the export at the same hash.

Properties

commit

requiredstring
  • maxLength: 64

#published

object

Properties

commit

requiredstring
  • maxLength: 64

source

requiredref

valuesFetched

requiredboolean

Whether the indexer has the import result's values blob. Sites carry no comparison until it does.

#rejected

object

Properties

reason

requiredstring
  • maxLength: 1000

uri

requiredstring · at-uri

#siteReading

object

Properties

candidates

requiredarray
itemsref
Reference

With site: the sites whose base builds on this one, sorted by key.

itemsref

course

string

The id of the project course whose schema the site's schema is.

  • maxLength: 128

error

string
  • maxLength: 1000

The site a child site's base builds on.

published

string

How the official repo's value compares with the leading candidate.

  • maxLength: 32
  • knownValues: matches | diverges

site

requiredref

split

boolean

Whether the leading value is a split, whose parts are child sites in the same course.

state

requiredstring
  • maxLength: 32
  • knownValues: open | contested | tied | ambiguous | leading | unreadable | held | escalated

stones

requiredarray
itemsref
Reference

#sourceSummary

object

A source's MIME type and first URL, from the maintainers' source records before anyone else's, each in URI order. The hash is the identity.

Properties

hash

requiredref

mimeType

string
  • maxLength: 256

url

string · uri

#stoneStatus

object

Properties

author

requiredstring · did

drawn

requiredboolean

status

requiredstring
  • maxLength: 32
  • knownValues: leading | pebble | tied | withdrawn | attempt | sealed | unsponsored | branched | unreadable | hollow | excluded

stone

requiredref

With site: witnesses naming the stone.

itemsref
Reference

#witnessView

object

Properties

author

requiredstring · did

kind

requiredstring
  • maxLength: 32
  • knownValues: checkResult | judgment | recall

verdict

string

A judgment's verdict.

  • maxLength: 64

witness

requiredref

Similar lexicons

semantic match

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

  • Everything a client needs to recompute a project's reading itself: every input record with its value, the beacons its draw claims used, the epoch each author was first seen in, and the labels of the policy's labelers. A client can drop records before reading, such as stones from sponsors it blocks, without telling the indexer.

  • A signed, pinned reading. Anyone can recompute it from the inputs it lists.

  • Projects the indexer has seen, each at the version it routes under, ranked by need, highest first. Projects a labeler the policy honors, or a labeler the caller names, marks unsafe are left out.

  • Sites a sponsor holds a deliverable draw for: the newest epoch whose retrace window is still open and whose beacon draws the sponsor, for sites not yet past their export bar, in projects where the declared model counts, where the sponsor is eligible and the draw hash falls under the escalated threshold. Each draw carries what a client needs to verify it and do the work. Course-0 sites nobody has opened are listed separately under open, since a first read needs no draw.

  • One project at the version it routes under, with its policy, the procedures its courses name, a newer version waiting out its activation delay, and its forks.