# The open schema

A relay is one JSON document, `relay.context-package.v1`. It carries what you’re sharing, why, with whom, and the rules for how their agent may speak for you. The product is Relay’s; the format is open, so anyone can see exactly what is shared and how it may be used.

### Your words stay yours

Your purpose is quoted, never paraphrased. The model’s reading sits in its own block, and you confirm it.

### Every value says where it came from

Stated by you, inferred by a model, or taken from a named source. Nothing unmarked.

### Rules travel with the context

The recipient’s agent loads the mandate before the content: what it may say, what it must ask you, what it must never do.

## Four questions, 11 blocks

Every package answers the same four questions. Pick one to see its blocks and fields.

### Who is it for, and why?

The owner, the one audience it’s written for, and what the owner wants to happen, in their own words.

- **`owner`**: The person whose context this is. Only they can approve it.
  - `name` required
  - `id`
  - `contact`

One named recipient (a person, a team or an app), with what they already know and what they care about, so their agent pitches it right.
- `name` required
- `kind` who receives it. An app (an integration) receives through its own agent, under the same grant, mandate, and receipts as a person.
  - `person`
  - `team`
  - `app`
- `email` confirmed by the owner before sharing. Grants are issued to this identity.
- `relationship` required e.g. co-founder, investor, hiring manager, client
- `role`
- `organization`
- `knowsAlready[]`
- `caresAbout[]`
- `likelyQuestions[]`
- `register`
- `access`

What the owner wants to happen. **`statement`** is kept verbatim; the outcome, the ask, and the priorities sit next to it.
- `statement` required
- `outcome`
  - **`text`** required
  - **`provenance`** required

- `successLooksLike[]`
- `ask`
- `whyNow`
- `whyThisAudience`
- `interests[]`
- `priorities[]`
- `nonGoals[]`

### What did the agent read into it?

The model’s interpretation, kept apart from what the owner said, and reviewed by the owner before anything is shared.
- **`restatement`** required
- `restatementVerdict`
- `inferences[]` required
- `clarifications[]`
- `openAmbiguities[]`
- `reviewedIn`

### What is being shared?

- **`subject`** required
- `kind`
- **`sections[]`** required
- `excluded[]`

### Decisions and variables

- `decisions[]`
- `variables[]`
- `assumptions[]`
- `evidence[]`
- `risks[]`
- `counterarguments[]`
- `unknowns[]`

### The owner’s own principles

- `principles[]`
- `preferences[]`
- `redLines[]`

### How may their agent speak for you?

- **`role`** required
- **`opening`** required
- `speaksAs`
- **`fidelity`** required
- **`may[]`**
- **`mustAskOwner[]`** required
- **`mustNot[]`** required
- **`whenUnknown`** required
- **`passOn`**
- **`fidelityChecks[]`** required
- **`permission`** required
- **`returnChannel`**
- **`expectedResponse`**
- **`mode`** required
- `expiresAt`
- `refresh`
- `staleSections[]`
- `grantId`
- `revocationUrl`
