exists
Determine if an id is known to the relay store without fetching data. Get a definitive PRESENT, KNOWN_MISSING, or UNKNOWN status to decide whether to cite it.
Instructions
Say what this store knows about one id, without fetching bytes: PRESENT, KNOWN_MISSING (a held record names this id and the bytes are absent), or UNKNOWN (nothing here mentions it). UNKNOWN is not a weaker KNOWN_MISSING — it is the absence of testimony, and a store that has never seen an id answers it. Reads only; it deposits nothing. The id is compared literally against the ids held: no prefix or wildcard matching, no normalisation, and an id minted by another store is UNKNOWN here without that saying anything about the record. Ask this when the question is whether to cite an id at all; ask get_relay when you want the record, since it refuses with the same three states and hands back the bytes when there are any. Returns one line of text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the id to ask about. `relay-` and four digits — e.g. relay-0033. Matched literally: nothing is padded, trimmed or normalised, so `relay-33` is a different string and answers UNKNOWN, rather than an error |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the id asked about, as given | |
| state | Yes | UNKNOWN is the absence of testimony, not a weaker KNOWN_MISSING: nothing held here mentions this id |