# Operations

<!-- GENERATED from packages/gavr/src/op-catalogue.ts and op-params.ts by `pnpm --filter @gadvisory/gavr spec:generate`. Do not edit by hand. -->

Every signed act a registry accepts and every signed read it answers: who may
sign it, what its `target` names, what it takes in `params`, and what it does.
The envelopes, freshness, replay and the refusal groups are in
[protocol.md](protocol.md); this is the list of what goes inside them.

**The tables are read off the schemas the reference registry parses `params`
with**, so they state what it accepts rather than what it once did. A field
outside a table is ignored. `params` that fail a table are refused
`bad-params`, with the first problem in `detail`. A rule spanning several
fields is stated under its table.

## Where to send them

| Endpoint | Body | Carries |
| --- | --- | --- |
| `POST /authority/actions` | `{ action, signature, record?, recordSignature?, ownerSignature?, ask? }` | Participant actions |
| `POST /authority/reads` | `{ request, signature }` | Signed reads |
| `POST /gra/actions` | `{ action, signature }`, over mutual TLS | Secretariat actions |
| `POST /gra/claim` | `{ action, signature }`, the bootstrap token as a bearer | `gra.claim` only |
| `POST /gra/appoint` | `{ submissions: [{ action, signature }] }` | `gra.appoint` only, one envelope per root in the quorum |

Beside a participant action ride what its envelope only names by digest:
`record` and `recordSignature` with the ops that carry a document
(`record.submit`, `record.contribute`, `record.intervene`,
`record.transfer.accept`); `ownerSignature` with a contribution that edits the
owner's container under an AMEND grant; and `ask`, the text and its salt, with
the `ask.*` ops.

## Participant actions

Signed in the `authority-action` context by an accredited authority, or by a
node bound to it, which names the authority it speaks for in `authority`. An
action is fresh for 300 seconds either side of the registry's clock, and its
nonce is spent when it is presented. Every op here is bounded by the signer's
own accreditation; a suspended or restricted authority is refused what its
restriction covers.

### Accreditation

#### `accreditation.propose`

Asks the secretariat to admit a body beneath the proposer. It files a request and creates no authority: a root proposes and a GRA writes. The remit is checked again when the request is applied, because the proposer's own scope can narrow in between.

- **Signed by:** A root (GNTLR or GNR), for a kind it may accredit and a scope inside its own remit.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `slug` | string | yes | 2 to 64 characters; matches `^[a-z0-9][a-z0-9-]*$`. The slug the new body will hold. Permanent: it is the directory key. |
| `displayName` | string | yes | 1 to 200 characters. |
| `description` | string | no | At most 2000 characters. |
| `contactEmail` | string | yes | At most 320 characters; an e-mail address. |
| `homepageUrl` | string | no | At most 500 characters; a URL. |
| `kind` | string | yes | One of `GNTLR`, `GNR`, `GNEA`, `GNDP`, `GNIA`. |
| `publicKey` | string | no | Matches `^[A-Za-z0-9_-]{43}$`. The new body's first self-custody key, when it holds one. |
| `scope` | array of scope rule | no, default `[]` | At most 200 entries; rules as [scope.md](scope.md) defines them. The remit proposed, as scope rules inside the proposer's own. |

#### `accreditation.withdraw`

Withdraws a proposal nobody has decided yet.

- **Signed by:** The root that filed the proposal.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `requestId` | string | no | 1 to 128 characters. |
| `slug` | string | no | 2 to 64 characters; matches `^[a-z0-9][a-z0-9-]*$`. |

Name the proposal exactly once: by `requestId` or by `slug`.

#### `accreditation.link.issue`

Stores a signed accreditation link: the portable proof that the parent accredited the subject. It records an accreditation that already happened and creates none, so a link whose subject the registry does not show beneath the signer is refused. The registry stores and serves the parent's bytes and signs nothing itself.

- **Signed by:** The accrediting parent of the link's subject, with one of its own keys.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `link` | object | yes | The signed accreditation link the parent issued. |

#### `accreditation.staple.issue`

Stores a short-lived signed assertion that the subject is still in good standing. A link proves an accreditation happened; a staple proves it still holds, and a chain checked without one would let a suspended body's records verify forever. The registry serves the parent's bytes verbatim and vouches for none of them.

- **Signed by:** The accrediting parent of the staple's subject, with one of its own keys.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `staple` | object | yes | The signed standing staple the parent issued. |

### An authority acting on itself

#### `authority.node.bind`

Lets a registered node sign as this authority: hosted custody. Choosing who hosts it is the authority's own decision and never needs the secretariat.

- **Signed by:** The authority itself.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `nodeId` | string | yes | 1 to 128 characters. The node's registry id. |

#### `authority.node.unbind`

Ends a node's binding, so it no longer signs as this authority.

- **Signed by:** The authority itself.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `nodeId` | string | yes | 1 to 128 characters. The node's registry id. |

#### `authority.key.add`

Adds a self-custody key beside the authority's other active keys. The first active key signs and the rest cosign, so a quorum can count them; rotation is adding the successor, then retiring the predecessor.

- **Signed by:** The authority itself, with one of its active keys.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `publicKey` | string | yes | Matches `^[A-Za-z0-9_-]{43}$`. An Ed25519 public key, 32 bytes in base64url. |

#### `authority.key.retire`

Retires a key: it signs nothing new, and what it signed before still verifies. This is rotation.

- **Signed by:** The authority itself.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `keyId` | string | yes | 1 to 200 characters. The key's id, as derived from its public key. |

#### `authority.key.revoke`

Revokes a key: as a retirement, and the key is marked compromised. With `compromisedSince`, revisions accepted from then on and signed by it are suspect until a new revision is signed with another key; without it, everything it signed is.

- **Signed by:** The authority itself.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `keyId` | string | yes | 1 to 200 characters. The key's id, as derived from its public key. |
| `compromisedSince` | string | no | An RFC 3339 date-time, with an offset. When the compromise began. Absent, everything the key signed is suspect. |

#### `authority.quorum.set`

Declares how many of the authority's keys must sign its container to publish, withdraw or accept a transfer. The registry refuses a revision short of it; 1 clears it.

- **Signed by:** The authority itself.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `act` | string | yes | One of `publish`, `withdraw`, `transfer`. The act: publishing, withdrawing, or accepting a transfer. |
| `threshold` | integer | yes | 1 to 16. Keys required; 1 clears the quorum. |

#### `authority.resolver.set`

Declares or moves where the authority serves its own records, or clears the declaration. The registry probes the new address before accepting it, so a typo is refused when it is made.

- **Signed by:** The authority itself.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `resolverBaseUrl` | string or null | yes | At most 500 characters; a URL. |

#### `authority.profile.set`

Corrects the published details in the directory: display name, description, contact e-mail, homepage. The slug cannot change: it is an identifier, and a chain binds to it.

- **Signed by:** The authority itself.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `displayName` | string | no | 1 to 200 characters. |
| `description` | string or null | no | At most 2000 characters. |
| `contactEmail` | string | no | At most 320 characters; an e-mail address. |
| `homepageUrl` | string or null | no | At most 500 characters; a URL. |

Send at least one field. Absent leaves a field alone; null clears `description` or `homepageUrl`.

### The hosting mesh

#### `mesh.role.set`

Sets a bound node's intended role in the authority's cluster and its election priority. Configuration, not observation: two nodes configured PRIMARY is a legal state, because a Secondary relays rather than allocating and the registry stays the sole allocator.

- **Signed by:** The authority, for a node bound to it.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `nodeId` | string | yes | 1 to 128 characters. |
| `role` | string | yes | One of `PRIMARY`, `SECONDARY`. The role the node is meant to hold in the cluster. |
| `priority` | integer | no, default `0` | 0 to 1000000. Election tie-break; higher wins. The cluster interprets it. |

#### `mesh.leader.observed`

Records which node won an election, and in which term. The registry arbitrates nothing: it keeps what the cluster reports, and nothing may be gated on the value.

- **Signed by:** The authority, for a node bound to it.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `nodeId` | string | yes | 1 to 128 characters. The node that won. |
| `term` | integer | yes | At least 1. The election term, 1-based and rising per cluster. |

### Allocation

#### `allocation.mint`

Allocates one identifier. `requestKey` makes a retry return the first answer, because a nonce is spent by presentation and a fresh one would mint a second permanent identifier. There is no release: an identifier is used or lapses, and is never reissued.

- **Signed by:** An accredited authority. Accreditation is the standing approval to mint, so nothing is asked per identifier; a restriction on the authority can still refuse it.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `requestKey` | string | yes | 8 to 128 characters. Your idempotency key, unique per authority: a repeat returns the first answer. Never published. |
| `title` | string | no | 1 to 200 characters. A placeholder title, public while the identifier is reserved. Keep embargoed detail out of it. |

#### `allocation.block.request`

Reserves a block of identifiers in advance. It guarantees availability and grants no offline capability: each identifier is still minted here. Unclaimed identifiers lapse and are then retired, never reissued.

- **Signed by:** An accredited authority, subject to its caps.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `requestKey` | string | yes | 8 to 128 characters. Your idempotency key, unique per authority. Never published. |
| `size` | integer | yes | At least 1. How many identifiers to reserve. |

#### `mint.lease`

Leases the next `count` values of the signing key's provisional counter, answering the authority's mint number, the key's epoch and the range. A site mints provisional identifiers (`GAVPR-<mint>-<epoch>-<counter>`) offline only from a lease of its own, so two sites sharing a key cannot meet, and a promotion outside every lease is refused.

- **Signed by:** An accredited authority, signing with one of its own keys.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `count` | integer | yes | 1 to 10000. How many counter values to lease for the signing key's epoch, at most 10000. |

### Records

#### `record.submit`

Submits a revision for intake. The document and its own `record`-context signature ride beside the envelope, which carries only their digest. Scope is enforced here, where the affected products are known. An APPROVAL claim covering a first acceptance or a move into PUBLISHED holds the revision for a yes and answers `pending`.

- **Signed by:** The record's owner; for a first submission, the authority the identifier was allocated to.
- **Target:** Optional. The record is named in `params`, and the registry records it as the target.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. The record's identifier. |
| `documentDigest` | string | yes | Matches `^[0-9a-f]{64}$`. Lowercase hex SHA-256 over the canonical JSON of the document sent beside the envelope. |

#### `record.promote`

Promotes a record minted offline. The revision signed under the GAVPR rides beside the envelope as for `record.submit`, and passes every check a first submission does. The registry keeps it as revision 1, allocates a GAVR, and appends its own revision moving `id` to the GAVR, marking the GAVPR `SUPERSEDED` by it and stating an `allocation` of origin `promoted`. Asked again with the same revision it answers the same GAVR; a different revision under the same GAVPR is refused `provisional-id-taken`. The GAVPR resolves to the record for good.

- **Signed by:** The authority whose mint number the provisional identifier carries, with the key of its epoch.
- **Target:** Optional. The provisional identifier is named in `params`, and the registry records it as the target.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. The record's identifier. |
| `documentDigest` | string | yes | Matches `^[0-9a-f]{64}$`. Lowercase hex SHA-256 over the canonical JSON of the document sent beside the envelope. |

#### `record.contribute`

Attaches or revises a container of the signer's own on a record somebody else owns, leaving every other party's words untouched. A revision carrying the owner's co-signature (`ownerSignature`) may also edit the owner's container: that is the AMEND grant expressed as cryptography. Scope is not enforced: a contribution mints nothing.

- **Signed by:** An authority other than the record's owner, holding at least an EDIT grant on it.
- **Target:** Optional. The record is named in `params`.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. The record's identifier. |
| `documentDigest` | string | yes | Matches `^[0-9a-f]{64}$`. Lowercase hex SHA-256 over the canonical JSON of the document sent beside the envelope. |

### Grants on a record

#### `record.grant.set`

Says which other authority may act on one record, and at what level. One grant per subject, so setting a level again replaces it. A grantee cannot grant onward.

- **Signed by:** The record's owner.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. |
| `subject` | string | yes | 1 to 64 characters. The grantee's slug. |
| `role` | string | yes | One of READ, COMMENT, PROPOSE, EDIT, AMEND, PUBLISH, each including the ones before it. |
| `note` | string | no | 1 to 2000 characters. A note kept with the grant. |

#### `record.grant.revoke`

Withdraws a grant. It reaches nothing already published: a container stands on its author's own signature, so revoking stops the next revision and cannot unsay a word.

- **Signed by:** The record's owner.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. |
| `subject` | string | yes | 1 to 64 characters. The grantee's slug. |

### Changing hands

#### `record.transfer.offer`

Offers the record to another authority. It creates a pending offer and moves nothing: only the recipient's acceptance does, so nobody becomes accountable for a record they never agreed to hold.

- **Signed by:** The record's owner.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. |
| `to` | string | yes | 1 to 64 characters. The recipient's slug. |
| `reason` | string | no | 1 to 2000 characters. |

#### `record.transfer.accept`

Accepts an offer, which is what moves the record. The incoming owner signs the revision that names it, so the chain of custody records a party that agreed rather than one that was named.

- **Signed by:** The authority the offer names.
- **Target:** Optional. The record is named in `params`.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. The record's identifier. |
| `documentDigest` | string | yes | Matches `^[0-9a-f]{64}$`. Lowercase hex SHA-256 over the canonical JSON of the document sent beside the envelope. |

#### `record.transfer.withdraw`

Retracts an offer nobody has answered.

- **Signed by:** Whoever made the offer.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. |

#### `record.reassign`

Moves a record over its owner's head: the case of an owner who cannot be reached. One act rather than an offer and an acceptance, and the reason is required, because it is published on the ownership entry (GAVR-R-048).

- **Signed by:** A root above the record's owner.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. |
| `to` | string | yes | 1 to 64 characters. The new owner's slug. |
| `reason` | string | yes | 1 to 2000 characters. Why, published on the ownership entry (GAVR-R-048). |

### Restrictions and record measures

#### `authority.restrict`

Imposes a restriction: suspension, a mint freeze or a cap. It lands at once, is published with its imposer, and can be appealed. Restrictive powers land directly; anything that creates or widens stays a proposal to the secretariat.

- **Signed by:** A root above the target, anywhere in its subtree.
- **Target:** `authority`: the body restricted, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `kind` | string | yes | One of `SUSPEND`, `FREEZE_MINT`, `CAP_OUTSTANDING`, `CAP_BLOCK_SIZE`, `CAP_RATE`. |
| `reason` | string | yes | 1 to 200 characters. A machine-readable code the restricted body can act on. |
| `capLimit` | integer | no | At least 1. The cap, for the CAP_ kinds only. |
| `windowHours` | integer | no | At least 1. The rate window in hours, for CAP_RATE only. |

`capLimit` is required for, and only for, the CAP_ kinds; `windowHours` for, and only for, CAP_RATE.

#### `authority.restriction.lift`

Lifts a restriction. A root may lift only what it imposed, never the secretariat's or another root's.

- **Signed by:** The root that imposed the restriction.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `restrictionId` | string | yes | 1 to 128 characters. |
| `reason` | string | yes | 1 to 200 characters. A machine-readable code. |

#### `authority.scope.narrow`

Narrows a subordinate's remit. Widening has no op here: an over-narrowed body is restored by the secretariat, never by the root that narrowed it.

- **Signed by:** A root above the target, inside its own remit.
- **Target:** `authority`: the body narrowed, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `scope` | array of scope rule | yes | At most 200 entries; rules as [scope.md](scope.md) defines them. The narrowed remit, inside the body's current one. |
| `purpose` | string | no | One of `MINT`, `ACCREDIT`, `PUBLISH`. Which remit. Required for a body holding several. |
| `reason` | string | yes | 1 to 200 characters. A machine-readable code the narrowed body can act on. |

#### `record.intervene`

Attaches a root-signed revision to a record in the subtree. What it may change is bounded, and it may move the lifecycle fields a contribution cannot. Like a contribution, it is not checked against scope.

- **Signed by:** A root above the record's owner.
- **Target:** Optional. The record is named in `params`.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. The record's identifier. |
| `documentDigest` | string | yes | Matches `^[0-9a-f]{64}$`. Lowercase hex SHA-256 over the canonical JSON of the document sent beside the envelope. |

#### `record.lock`

Freezes one record against every body. Asked for, it binds nothing until the secretariat authorises it; urgent, it is in force at once until a horizon it lapses at. While it stands only the imposer and roots above it, the registry, and the owner disputing the lock may still act on the record.

- **Signed by:** A root above the record's owner.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. The record. |
| `reason` | string | yes | 1 to 200 characters. A machine-readable code the owner can act on. |
| `urgent` | boolean | no, default `false` | For a root: in force at once with a horizon; otherwise asked for, binding nothing until the secretariat authorises it. The secretariat's own measures are in force at once. |
| `expiresAt` | string | no | An RFC 3339 date-time in UTC, ending in `Z`. The horizon. Required when urgent; a requested term otherwise. |
| `permittedRoles` | array of string | no, default `[]` | At most 32 entries; each 1 to 64 characters. Container roles still allowed to add. A contribution limit only. |
| `permittedAuthorities` | array of string | no, default `[]` | At most 256 entries; each 1 to 64 characters. Slugs of bodies still allowed to add. A contribution limit only. |

A lock admits nobody: both allowlists stay empty.

#### `record.unlock`

Lifts a lock. A root may not lift another root's.

- **Signed by:** The root that imposed the lock.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `measureId` | string | yes | 1 to 128 characters. The lock or limit, by the id the registry gave it. |
| `reason` | string | yes | 1 to 200 characters. |

#### `record.contribution.restrict`

Narrows who may add containers to a record that has become too busy to stay legible: an allowlist of roles and of bodies. Not a sanction: the record stays open and its owner is always exempt. It shares the lock's flow, asked for or urgent.

- **Signed by:** A root above the record's owner.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. The record. |
| `reason` | string | yes | 1 to 200 characters. A machine-readable code the owner can act on. |
| `urgent` | boolean | no, default `false` | For a root: in force at once with a horizon; otherwise asked for, binding nothing until the secretariat authorises it. The secretariat's own measures are in force at once. |
| `expiresAt` | string | no | An RFC 3339 date-time in UTC, ending in `Z`. The horizon. Required when urgent; a requested term otherwise. |
| `permittedRoles` | array of string | no, default `[]` | At most 32 entries; each 1 to 64 characters. Container roles still allowed to add. A contribution limit only. |
| `permittedAuthorities` | array of string | no, default `[]` | At most 256 entries; each 1 to 64 characters. Slugs of bodies still allowed to add. A contribution limit only. |

Name at least one role or one body.

#### `record.contribution.release`

Releases a contribution limit.

- **Signed by:** The root that imposed the limit.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `measureId` | string | yes | 1 to 128 characters. The lock or limit, by the id the registry gave it. |
| `reason` | string | yes | 1 to 200 characters. |

#### `record.escrow.purge`

Destroys the escrowed copy of what an erasing redaction removed. Review stays possible until this act, and the act itself is the signed record that a legal erasure order was complied with.

- **Signed by:** The record's owner, or a root above it.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. |
| `revision` | integer | no | At least 1. One revision, by number. Absent purges every escrowed revision of the record. |

### Appeals

#### `appeal.file`

Appeals a root's restriction, intervention, lock, contribution limit or reassignment to the secretariat, which decides it with `appeal.decide`. A real filing path is what makes the measure's immediate effect defensible.

- **Signed by:** The authority acted upon.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `subject` | string | yes | One of `RESTRICTION`, `INTERVENTION`, `LOCK`, `CONTRIBUTION_POLICY`, `REASSIGNMENT`. |
| `restrictionId` | string | no | 1 to 128 characters. |
| `lockId` | string | no | 1 to 128 characters. |
| `contributionPolicyId` | string | no | 1 to 128 characters. |
| `identifier` | string | no | 1 to 64 characters. |
| `revisionId` | string | no | 1 to 128 characters. The same revision by its row id. Name it once, by number or by id. |
| `revision` | integer | no | At least 1. For an intervention or reassignment: the revision that performed it, by number. |
| `grounds` | string | yes | 20 to 4000 characters. Your case, in prose: a person at the secretariat reads it. |

Name the act: `restrictionId`, `lockId` or `contributionPolicyId` for those subjects; for an intervention or a reassignment, `identifier` and exactly one of `revision` or `revisionId`.

#### `appeal.withdraw`

Withdraws a pending appeal, for an appellant who settled with the root that acted on them.

- **Signed by:** The appellant.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `appealId` | string | yes | 1 to 128 characters. |

### Informal asks

#### `ask.file`

Asks the owner, privately, to change a record; or takes a refused ask one authority up. The registry picks the addressee: the owner on a first ask, and on an escalation the body that accredited the authority that refused. The text rides beside the envelope in `ask`, with the salt its digest was computed with, so it stays out of the audit chain.

- **Signed by:** Any authority other than the record's owner; an escalation, by the asker of the refused ask.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. |
| `bodyDigest` | string | yes | Matches `^[0-9a-f]{64}$`. Hex SHA-256 over the ask's text and salt, which ride beside the envelope in `ask`. |
| `escalates` | string | no | 1 to 128 characters. The refused ask this one takes one authority up. |

#### `ask.acknowledge`

Says the ask was seen, which stops its clock. An ask nobody acknowledges is flagged overdue and goes nowhere by itself.

- **Signed by:** The addressee.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `askId` | string | yes | 1 to 128 characters. |
| `bodyDigest` | string | no | Matches `^[0-9a-f]{64}$`. The digest of the text sent beside the envelope in `ask`, when the act carries text. |

#### `ask.reply`

Adds to the ask's thread and changes nothing else.

- **Signed by:** The asker or the addressee.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `askId` | string | yes | 1 to 128 characters. |
| `bodyDigest` | string | no | Matches `^[0-9a-f]{64}$`. The digest of the text sent beside the envelope in `ask`, when the act carries text. |

#### `ask.refuse`

Declines the ask, with a reason, and closes it. The reason is what the next authority up reads if the asker escalates; only a signed refusal can be escalated.

- **Signed by:** The addressee.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `askId` | string | yes | 1 to 128 characters. |
| `bodyDigest` | string | no | Matches `^[0-9a-f]{64}$`. The digest of the text sent beside the envelope in `ask`, when the act carries text. |

#### `ask.answer`

Names the revision that answers the ask, and closes it.

- **Signed by:** The addressee.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `askId` | string | yes | 1 to 128 characters. |
| `bodyDigest` | string | no | Matches `^[0-9a-f]{64}$`. The digest of the text sent beside the envelope in `ask`, when the act carries text. |
| `revision` | integer | yes | At least 1. The revision that answers the ask, by its 1-based number. |

#### `ask.withdraw`

Takes the ask back and closes it.

- **Signed by:** The asker.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `askId` | string | yes | 1 to 128 characters. |
| `bodyDigest` | string | no | Matches `^[0-9a-f]{64}$`. The digest of the text sent beside the envelope in `ask`, when the act carries text. |

### Approvals

#### `approval.decide`

Answers an act waiting under an APPROVAL claim. A held record act runs on the yes; an accreditation was refused when it was asked, and the yes lets it through when it is asked again.

- **Signed by:** The approver the registry named when it held the act: the nearest ancestor whose own remit covers the subject.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `requestId` | string | yes | 1 to 128 characters. |
| `outcome` | string | yes | One of `APPROVED`, `REFUSED`. |
| `reason` | string | no | 1 to 500 characters. Required on a refusal. |

#### `approval.subject.grant`

Gives one body a standing yes on one subject until an expiry. The body's acts that the rule covers pass an APPROVAL claim without a yes of their own.

- **Signed by:** A GNTLR, for a body in its subtree.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `to` | string | yes | 1 to 64 characters. The body's slug, in the granter's subtree. |
| `rule` | object | yes | A scope rule naming the subject. Its id, mode and purpose are dropped. |
| `expiresAt` | string | yes | An RFC 3339 date-time, with an offset. At most 366 days away. |

#### `approval.subject.revoke`

Ends a subject approval before its expiry.

- **Signed by:** The GNTLR that granted the subject approval.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `approvalId` | string | yes | 1 to 128 characters. |

### Registry continuity

#### `gra.appoint`

Appoints a node as secretariat on a registry that has no usable one left, which no other route can do: `gra.grant` needs a working secretariat to sign it and `gra.claim` is spent at genesis. Available only while no usable secretariat exists. The envelopes go together to `POST /gra/appoint`; sent alone to `/authority/actions` it is refused `wrong-endpoint`.

- **Signed by:** Every active GNTLR in a quorum, each signing its own envelope naming the same node.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `nodeId` | string | yes | 1 to 128 characters. The node appointed. Every envelope in the quorum names the same one. |

## Secretariat actions

Signed in the `gra-action` context by a node holding the secretariat
capability, over mutual TLS, unless an op says otherwise. The secretariat
acts ON authorities and nodes and never AS one: it cannot mint or submit.
Several names also appear among the participant actions; the signing context
keeps the two apart, and the audit chain records which family acted.

### Changing hands

#### `record.reassign`

Moves a record over its owner's head, for a record whose owner and accrediting root have both gone dark. The ownership entry records `reassigned-by-registry`.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. |
| `to` | string | yes | 1 to 64 characters. The new owner's slug. |
| `reason` | string | yes | 1 to 2000 characters. Why, published on the ownership entry (GAVR-R-048). |

### Restrictions and record measures

#### `authority.restrict`

Imposes a restriction on any authority. Narrower than a suspension, which refuses the body at the door for every act; the secretariat may also name NARROW_SCOPE here.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body restricted, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `kind` | string | yes | One of `SUSPEND`, `FREEZE_MINT`, `CAP_OUTSTANDING`, `CAP_BLOCK_SIZE`, `CAP_RATE`, `NARROW_SCOPE`. |
| `reason` | string | yes | 1 to 200 characters. A machine-readable code the restricted body can act on. |
| `capLimit` | integer | no | At least 1. The cap, for the CAP_ kinds only. |
| `windowHours` | integer | no | At least 1. The rate window in hours, for CAP_RATE only. |

`capLimit` is required for, and only for, the CAP_ kinds; `windowHours` for, and only for, CAP_RATE.

#### `authority.restriction.lift`

Lifts any restriction, whoever imposed it.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `restrictionId` | string | yes | 1 to 128 characters. |
| `reason` | string | yes | 1 to 200 characters. A machine-readable code. |

#### `record.escrow.purge`

Destroys the escrowed copy of what an erasing redaction removed, on any record. When a legal order is served on the registry's operator, the secretariat is the only party able to comply.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. |
| `revision` | integer | no | At least 1. One revision, by number. Absent purges every escrowed revision of the record. |

#### `record.hold.place`

Places a litigation hold on a record under an order, as a registry container carrying `legalHold`. While a hold is in force nothing excised is destroyed: a purge of the escrow is queued and answers `queued`.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. |
| `matter` | string | no | 1 to 300 characters. The matter the order was made in, published on the hold. |

#### `record.hold.lift`

Lifts a hold, naming the container that placed it. When no hold remains in force, every purge queued behind it runs in the same transaction, attributed to the party that filed it.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. |
| `containerId` | string | yes | 1 to 200 characters. The registry container that placed the hold. |

#### `record.lock`

Locks a record. A lock the secretariat imposes is in force at once.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. The record. |
| `reason` | string | yes | 1 to 200 characters. A machine-readable code the owner can act on. |
| `urgent` | boolean | no, default `false` | For a root: in force at once with a horizon; otherwise asked for, binding nothing until the secretariat authorises it. The secretariat's own measures are in force at once. |
| `expiresAt` | string | no | An RFC 3339 date-time in UTC, ending in `Z`. The horizon. Required when urgent; a requested term otherwise. |
| `permittedRoles` | array of string | no, default `[]` | At most 32 entries; each 1 to 64 characters. Container roles still allowed to add. A contribution limit only. |
| `permittedAuthorities` | array of string | no, default `[]` | At most 256 entries; each 1 to 64 characters. Slugs of bodies still allowed to add. A contribution limit only. |

A lock admits nobody: both allowlists stay empty.

#### `record.unlock`

Lifts any lock, a root's included.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `measureId` | string | yes | 1 to 128 characters. The lock or limit, by the id the registry gave it. |
| `reason` | string | yes | 1 to 200 characters. |

#### `record.contribution.restrict`

Imposes a contribution limit, in force at once.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. The record. |
| `reason` | string | yes | 1 to 200 characters. A machine-readable code the owner can act on. |
| `urgent` | boolean | no, default `false` | For a root: in force at once with a horizon; otherwise asked for, binding nothing until the secretariat authorises it. The secretariat's own measures are in force at once. |
| `expiresAt` | string | no | An RFC 3339 date-time in UTC, ending in `Z`. The horizon. Required when urgent; a requested term otherwise. |
| `permittedRoles` | array of string | no, default `[]` | At most 32 entries; each 1 to 64 characters. Container roles still allowed to add. A contribution limit only. |
| `permittedAuthorities` | array of string | no, default `[]` | At most 256 entries; each 1 to 64 characters. Slugs of bodies still allowed to add. A contribution limit only. |

Name at least one role or one body.

#### `record.contribution.release`

Releases any contribution limit.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `measureId` | string | yes | 1 to 128 characters. The lock or limit, by the id the registry gave it. |
| `reason` | string | yes | 1 to 200 characters. |

#### `record.measure.decide`

Authorises or refuses a root's lock or contribution limit. Authorising keeps it in force for a term; refusing ends it and frees its slot, so a better-grounded request is not blocked by a refused one.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `measure` | string | yes | One of `lock`, `contribution`. |
| `measureId` | string | yes | 1 to 128 characters. |
| `outcome` | string | yes | One of `AUTHORISED`, `REFUSED`. |
| `reason` | string | no | 1 to 400 characters. |
| `expiresAt` | string or null | no | An RFC 3339 date-time in UTC, ending in `Z`. The term an authorised measure stands for. Absent leaves the default; null makes it open-ended. |

A refusal carries a `reason` and no `expiresAt`.

### Appeals

#### `appeal.decide`

Upholds or dismisses an appeal. Upholding does the work: it lifts the restriction or measure, or has the registry append a revision restoring the record.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `appealId` | string | yes | 1 to 128 characters. |
| `outcome` | string | yes | One of `UPHELD`, `DISMISSED`. |
| `reason` | string | yes | 1 to 400 characters. A machine-readable code the appellant can act on. |

### Nodes and the secretariat

#### `gra.claim`

Claims the secretariat at genesis. The signature proves possession of the key being registered; the bootstrap token, sent as a bearer to `POST /gra/claim`, proves control of the machine. One shot: the token is deleted when used.

- **Signed by:** The first node on a registry that has no secretariat, with the key it registers and the host's bootstrap token.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `name` | string | yes | 1 to 200 characters. |
| `publicKey` | string | yes | Matches `^[A-Za-z0-9_-]{43}$`. |
| `mtlsCertSerial` | string | no | 1 to 200 characters. The node's mutual-TLS certificate serial, pinned on registration. |

#### `node.register`

Admits a node and its first key.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `name` | string | yes | 1 to 200 characters. |
| `publicKey` | string | yes | Matches `^[A-Za-z0-9_-]{43}$`. |
| `mtlsCertSerial` | string | no | 1 to 200 characters. The node's mutual-TLS certificate serial, pinned on registration. |

#### `node.suspend`

Stops accepting actions from a node without forgetting it. Reversible. The last usable secretariat node cannot be suspended.

- **Signed by:** The secretariat.
- **Target:** `node`: the node suspended.

No params.

#### `node.resume`

Accepts a suspended node's actions again.

- **Signed by:** The secretariat.
- **Target:** `node`: the node resumed.

No params.

#### `node.cert.set`

Re-pins the calling node's own mutual-TLS certificate serial, read off the connection the action arrived on and never from the caller, so no node can pin another's certificate.

- **Signed by:** Any registered node, for itself. The only self-service op in this family.
- **Target:** Not read.

No params.

#### `node.key.add`

Adds a key to a node and makes it the active one.

- **Signed by:** The secretariat.
- **Target:** `node`: the node the key is added to.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `publicKey` | string | yes | Matches `^[A-Za-z0-9_-]{43}$`. An Ed25519 public key, 32 bytes in base64url. |

#### `node.key.retire`

Retires a node key: it signs nothing new, and what it signed still verifies. Rotation.

- **Signed by:** The secretariat.
- **Target:** `node`: the node whose key it is.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `keyId` | string | yes | 1 to 200 characters. The key's id, as derived from its public key. |

#### `node.key.revoke`

Revokes a node key: as a retirement, and what it signed is flagged as suspect, from `compromisedSince` when given and all of it otherwise. Not rotation.

- **Signed by:** The secretariat.
- **Target:** `node`: the node whose key it is.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `keyId` | string | yes | 1 to 200 characters. The key's id, as derived from its public key. |
| `compromisedSince` | string | no | An RFC 3339 date-time, with an offset. When the compromise began. Absent, everything the key signed is suspect. |

#### `gra.grant`

Grants the secretariat capability to a node.

- **Signed by:** The secretariat.
- **Target:** `node`: the node granted the capability.

No params.

#### `gra.revoke`

Withdraws the secretariat capability from a node. Refused when it would leave the registry below its floor of usable secretariat nodes.

- **Signed by:** The secretariat.
- **Target:** `node`: the node it is withdrawn from.

No params.

### The authority directory

#### `authority.admit`

Admits an authority, consuming a pending application or proposal when `requestId` names one, or directly. The kinds that hold records must declare a resolver to be admitted.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `requestId` | string | no | 1 to 128 characters. The application or proposal admitted. Absent admits directly. |
| `slug` | string | yes | 2 to 64 characters; matches `^[a-z0-9][a-z0-9-]*$`. |
| `displayName` | string | yes | 1 to 200 characters. |
| `description` | string | no | At most 2000 characters. |
| `contactEmail` | string | yes | At most 320 characters; an e-mail address. |
| `homepageUrl` | string | no | At most 500 characters; a URL. |
| `kind` | string | yes | One of `GNTLR`, `GNR`, `GNEA`, `GNDP`, `GNIA`. |
| `accreditedByAuthorityId` | string or null | no | 1 to 128 characters. |
| `accreditedBySlug` | string or null | no | 2 to 64 characters; matches `^[a-z0-9][a-z0-9-]*$`. |
| `publicKey` | string | no | Matches `^[A-Za-z0-9_-]{43}$`. |
| `scope` | array of scope rule | no, default `[]` | At most 200 entries; rules as [scope.md](scope.md) defines them. |
| `resolverBaseUrl` | string | no | At most 500 characters; a URL. Where the body serves its records. Required for GNEA and GNIA. |

#### `authority.refuse`

Refuses a pending application or proposal. Terminal for that request.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `requestId` | string | yes | 1 to 128 characters. |
| `reason` | string | yes | 1 to 200 characters. A machine-readable code. |

#### `authority.suspend`

Stops accepting every act from an authority, an appeal included, without forgetting it. Reversible.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body suspended, by id or slug.

No params.

#### `authority.resume`

Lifts a suspension.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body resumed, by id or slug.

No params.

#### `authority.revoke`

Withdraws an accreditation for good. It does not cascade: the bodies the revoked one accredited are re-parented to the registry, because their identifiers say nothing about who accredited them.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body revoked, by id or slug.

No params.

#### `authority.reparent`

Moves an authority under a different accrediting body, or under the registry, without changing what it is.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body moved, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `accreditedByAuthorityId` | string or null | no | 1 to 128 characters. |
| `accreditedBySlug` | string or null | no | 2 to 64 characters; matches `^[a-z0-9][a-z0-9-]*$`. |

#### `authority.elevate`

Raises an authority exactly one tier, GNEA to GNR or GNR to GNTLR, and re-parents it in the same act, because the old edge stops being legal the moment the kind moves.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body raised, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `accreditedByAuthorityId` | string or null | no | 1 to 128 characters. |
| `accreditedBySlug` | string or null | no | 2 to 64 characters; matches `^[a-z0-9][a-z0-9-]*$`. |

#### `authority.kinds.set`

Replaces an authority's kind set wholesale. It may skip tiers; the parent must be able to accredit the whole new set. Removing a kind that accredits bodies below is refused, naming them, unless `orphans` asks for them to be re-parented to the registry.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body whose kinds are set, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `kinds` | array of string | yes | 1 to 5 entries; each one of `GNTLR`, `GNR`, `GNEA`, `GNDP`, `GNIA`. |
| `accreditedByAuthorityId` | string or null | no | 1 to 128 characters. |
| `accreditedBySlug` | string or null | no | 2 to 64 characters; matches `^[a-z0-9][a-z0-9-]*$`. |
| `orphans` | string | no | One of `refuse`, `reparent`. What to do with bodies a removed kind leaves without a legal parent. Absent means refuse. |

#### `authority.scope.set`

Replaces one remit wholesale, so no rule survives that the caller believed removed. This is how an over-narrowed body is widened again.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body whose remit is replaced, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `scope` | array of scope rule | yes | At most 200 entries; rules as [scope.md](scope.md) defines them. |
| `purpose` | string | no | One of `MINT`, `ACCREDIT`, `PUBLISH`. Which remit. Required for a body holding several. |

#### `authority.key.add`

Adds a self-custody key to an authority and makes it the only active one, retiring the others: the way back for a body whose keys are lost or compromised.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body the key is added to, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `publicKey` | string | yes | Matches `^[A-Za-z0-9_-]{43}$`. An Ed25519 public key, 32 bytes in base64url. |

#### `authority.key.retire`

Retires an authority's key.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body whose key it is, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `keyId` | string | yes | 1 to 200 characters. The key's id, as derived from its public key. |

#### `authority.key.revoke`

Revokes an authority's key and flags what it signed: from `compromisedSince` when given, everything otherwise. The way the secretariat answers a compromise the authority cannot sign for.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body whose key it is, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `keyId` | string | yes | 1 to 200 characters. The key's id, as derived from its public key. |
| `compromisedSince` | string | no | An RFC 3339 date-time, with an offset. When the compromise began. Absent, everything the key signed is suspect. |

#### `authority.node.bind`

Binds a node to an authority, so the node may sign as it.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body bound, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `nodeId` | string | yes | 1 to 128 characters. The node's registry id. |

#### `authority.node.unbind`

Ends a node's binding to an authority.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body unbound, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `nodeId` | string | yes | 1 to 128 characters. The node's registry id. |

#### `authority.resolver.set`

Sets an authority's resolver on its behalf, for a body that can no longer act and has a broken endpoint.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `resolverBaseUrl` | string or null | yes | At most 500 characters; a URL. |

#### `authority.profile.set`

Corrects an authority's published details on its behalf. Unlike the authority's own spelling it sends the authority a notice, because a change made by somebody else is a fact it would otherwise not learn.

- **Signed by:** The secretariat.
- **Target:** `authority`: the body, by id or slug.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `displayName` | string | no | 1 to 200 characters. |
| `description` | string or null | no | At most 2000 characters. |
| `contactEmail` | string | no | At most 320 characters; an e-mail address. |
| `homepageUrl` | string or null | no | At most 500 characters; a URL. |

Send at least one field. Absent leaves a field alone; null clears `description` or `homepageUrl`.

### Review

#### `revision.flag.review`

Marks a revision that was accepted under a SOFT claim, and so flagged, as reviewed. It changes nothing about the record; the mark keeps who made it and when.

- **Signed by:** The secretariat.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `identifier` | string | yes | 1 to 64 characters. |
| `revision` | integer | yes | At least 1. The revision, by its 1-based number. |
| `note` | string | no | 1 to 2000 characters; trimmed. |

## Signed reads

Signed in the `authority-read` context. A read carries `read`, `authority`,
`params` and `timestamp` and no nonce, so nothing but its age stops a replay: it
is fresh for 60 seconds either side of the registry's clock.

#### `asks`

The asks addressed to the reader, or the asks it sent, a page at a time, newest first. Private to the two parties.

- **Signed by:** An authority, for asks it sent or that are addressed to it.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `box` | string | yes | One of `inbox`, `sent`. The asks addressed to the reader, or the asks it sent. |
| `identifier` | string | no | 1 to 64 characters. Only the asks about one record. |
| `state` | string | no | One of `OPEN`, `ANSWERED`, `REFUSED`, `WITHDRAWN`. |
| `before` | string | no | 1 to 128 characters. The id of the last ask on the previous page. |
| `limit` | integer | no | 1 to 100. |

#### `approvals`

The acts waiting under an APPROVAL claim that the reader answers or asked, with their outcomes, and the subject approvals it granted or holds. Private to the parties, because a held act can be a record nobody may see yet.

- **Signed by:** An authority, as approver or as requester.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `as` | string | no, default `"approver"` | One of `approver`, `requester`. Read as the approver or as the requester. |
| `state` | string | no | One of `PENDING`, `REFUSED`, `APPLIED`, `FAILED`, `APPROVED`, `CONSUMED`. |
| `identifier` | string | no | 1 to 64 characters. Only one record's requests. |
| `take` | integer | no, default `50` | 1 to 100. |

#### `appeals`

The appeals the reader filed, pending and decided; for one record, also the pending appeals others filed against an act the reader could appeal too. Grounds are answered to the appellant alone.

- **Signed by:** An authority, for its own appeals.
- **Target:** Not read.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `state` | string | no | One of `PENDING`, `UPHELD`, `DISMISSED`, `WITHDRAWN`. |
| `identifier` | string | no | 1 to 64 characters. Only one record's appeals. |
| `take` | integer | no, default `50` | 1 to 100. |
