Internet-Draft RACR November 2026
Creviston Expires 26 May 2027 [Page]
Workgroup:
Individual Submission
Internet-Draft:
draft-creviston-racr-00
Published:
Intended Status:
Experimental
Expires:
Author:
J. Creviston

RACR Protocol: Recipient-Authorized Content Retrieval

Abstract

RACR (Recipient-Authorized Content Retrieval, pronounced "racer") is a federated protocol for exchanging recipient-authorized messages between portable identities. Stable decentralized identifiers let participants operate independently of their current hosting providers. RACR uses deterministic Concise Binary Object Representation (CBOR) and CBOR Object Signing and Encryption (COSE) for signed authorization records and message envelopes. A recipient provider validates authorization before retrieving a detached, digest-bound body from the sender provider. This document specifies the protocol architecture, grant-authorized delivery, and privacy boundaries.

Editorial status

This note is to be removed before publishing as an RFC.

This is a first local working draft prepared for review. It is an individual contribution, not a working-group document or an RFC. Experimental is a proposed publication status, not an allocation of an RFC stream or a claim of IETF consensus.

This working draft describes RACR using the specification snapshot maintained in the Hail repository and cited as [HAIL-SPEC]. Some normative protocol details remain defined only in that snapshot, so this document is not yet a self-contained specification. The open protocol questions are identified in Appendix A. Before seeking stable publication, incorporate the remaining schemas and detailed validation rules into this document or standalone normative companions, including the existing attachment rules and implemented extension definitions, while preserving their authority boundaries.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 26 May 2027.

▲

Table of Contents

1. Introduction

Recipient-Authorized Content Retrieval (RACR) is a messaging protocol in which recipients decide who may send them messages and which categories of messages they wish to receive. Senders make message content available for retrieval and submit a small delivery envelope to each recipient. The content is retrieved only after the envelope has been checked against the recipient's current permissions. Recipients can revoke a sender's permission at any time.

RACR aims to preserve recipient consent when users change providers, let senders establish their identities independently of the domains that host their services, and protect recipient activity from being exposed through content retrieval. It does not prevent abuse by an authorized sender, guarantee message availability, or provide end-to-end confidentiality for content held by providers.

RACR defines a separate messaging protocol, not an extension to SMTP or MIME. Although its addresses may resemble email addresses, they do not imply compatibility with email systems. This specification does not define a gateway between RACR and email. A sender that relays received email as hails can say so in a signed statement inside the body (Section 8.1); receiving and converting email remain that sender's own service.

2. Conventions and Scope

Hail names the communication medium; a hail is an individual recipient-authorized message. RACR names the underlying protocol that providers implement to exchange hail. Hail identifiers such as hail.envelope, application/hail-body+cbor, #hail-messaging, and HailMessaging name the objects, formats, keys, and services used by that protocol. They remain current identifiers, not deprecated names awaiting replacement. This terminology does not change wire bytes, signature domains, or interoperability requirements.

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

This draft specifies the architecture and summarizes normative core requirements from [HAIL-SPEC]. Where a complete wire or semantic definition has not yet been incorporated, the corresponding specification in that pinned snapshot is a normative dependency. Editorial omissions in this draft do not create alternative encodings, relaxed validation, or new authority. Attachment definitions are supplied by [HAIL-ATTACHMENTS]. Any inconsistency between this draft and its normative references is a defect to resolve before publication.

The core flow is delivery under a Grant using Envelope version 1. Envelope versions select distinct authorization profiles; higher-numbered versions do not supersede version 1 for Grant delivery. Connections, threaded replies, shared conversations, and provider transfer are implemented extensions, summarized in Section 10. They are not deferred merely because their complete definitions are outside this document. Implementations claiming an extension MUST implement its complete authorization and lifecycle rules.

A decentralized identifier (DID) identifies a protocol participant independently of its hosting provider. A provider is infrastructure acting for one or more participant DIDs. A sender and recipient are protocol identities, not necessarily people. A Grant is a recipient-signed authorization lineage. An Envelope is a signed per-recipient delivery instruction. A Body is an immutable encoded content document. Signed objects use Concise Binary Object Representation (CBOR) and CBOR Object Signing and Encryption (COSE). Acceptance is a durable authorization decision; delivery is durable storage of verified content and its recipient-specific message record.

3. Architecture and Trust Boundaries

The diagram shows provider operations. The recipient authorizes and signs the Grant before its provider publishes it; the providers perform discovery, envelope exchange, content retrieval, and status reporting on behalf of the participant identities.

Grant-authorized delivery between recipient and sender providers Time progresses downward. The recipient provider discovers the sender's address and profile, then publishes a Grant signed by the recipient. The sender provider publishes an immutable Body and submits a signed Envelope to the recipient provider. The recipient provider authenticates and authorizes the Envelope, then atomically accepts it. It retrieves the Body from the sender provider using a token and recipient HTTP signature, receives bounded content, verifies and durably delivers it, and sends signed delivery status to the sender provider. Recipient provider Sender provider discover address/profile publish signed Grant publish immutable Body submit signed Envelope authenticate; authorize atomically accept GET Body + token + signature bounded content verify; durably deliver signed delivery status
Figure 1: Grant-Authorized Delivery Between Providers

There is one sender DID and one recipient DID per envelope. Multi-recipient delivery uses separate envelopes and authorization decisions, even when the body bytes are identical. A body digest is a content identity, not a message identifier or authorization credential.

HTTPS authenticates a network endpoint and protects data in transit. DID resolution establishes which keys and service endpoint currently act for a participant. COSE signatures bind protocol objects to a required key role. Recipient-local authoritative state determines whether the signed object authorizes an action. None of these checks substitutes for another.

Public address-to-DID and DID-to-service mappings are intentionally discoverable. Grant state, message state, account state, body-cache provenance, and user activity are protected. Privacy requirements therefore distinguish public routing information from relationship-dependent results.

4. Identity and Discovery

The RACR profile described here uses the PLC DID method, identified by the did:plc prefix. PLC maintains an operation log for identity updates and recovery. RACR DIDs use the exact lowercase syntax did:plc:[a-z2-7]{24}. A DID remains the durable identity when its hosting provider changes. A Hail address is a domain-verified alias; changing or withdrawing that alias does not revoke Grants issued to the DID.

A RACR DID document identifies distinct Ed25519 public keys at #hail-identity and #hail-messaging, and exactly one #hail service of type HailMessaging. The identity key signs Address Bindings and Grants. The messaging key signs Sender Profiles, Envelopes, and Delivery Status objects. Verifiers MUST check the exact key identifier, controller, algorithm, and role. A valid signature under another key of the same DID is insufficient.

The key representation in this profile is Multikey using base58btc with the ed25519-pub multicodec prefix (0xed, encoded as bytes 0xed 0x01), followed by exactly 32 key bytes. The DID and PLC profiles, including resolution evidence and recovery trust, are defined in [HAIL-SPEC]. General historical authority after recovery is an open issue in Appendix A.

4.1. Address Bindings and Sender Profiles

An address uses a lowercase canonical ASCII local part and an Internationalized Domain Names for Applications (IDNA) A-label domain. Its local part permits dot-separated letter/digit/hyphen labels, is at most 63 bytes, and excludes quoting, comments, whitespace, non-ASCII characters, and domain literals. The complete canonical address is at most 254 bytes. These rules deliberately differ from SMTP mailbox syntax. The exact IDNA, DNS-delegation, and public-suffix checks remain in the Address Binding specification.

Discovery uses WebFinger [RFC7033] with an acct URI [RFC7565]. The client requires the exact canonical subject and exactly one matching link with extension relation https://racrproto.com/rel/address-binding and the COSE media type. The link relation uses the extension-URI mechanism of [RFC8288]. The domain-selected HTTPS resource supplies a version-2 Address Binding signed by the named DID identity key. Neither a signature without domain publication nor domain publication without the signature verifies the address.

An Address Binding contains type, version, address, did, issued_at, and key_id. It has no expiration field and requires no periodic renewal. Current domain publication and current DID authority are nevertheless required. Cached verification lasts at most 3600 seconds, and is shortened by HTTP freshness, delegation time-to-live (TTL) values, PLC policy, or local security policy. A retained signed binding does not justify indefinite verified-address display.

A prospective recipient retrieves Sender Profile version 2 from profiles/{sender_did} at the current sender service. The profile is signed by #hail-messaging and includes a revision, display metadata, offered categories, and optional bounded bundled assets. Profile display metadata is not independent proof of an organization name. Grant creation binds the exact verified Address Binding and Sender Profile representation digests into consent_context.

4.2. Service URLs and Safe Fetching

A canonical RACR service base is an HTTPS URL with an ASCII DNS hostname. It MUST NOT contain embedded credentials, a query component, or a fragment. The host MUST NOT be an IP address literal or end with a dot. The URL MUST NOT end with a slash. Default port 443 is omitted. Base-path segments permit only ASCII letters, digits, hyphen, dot, underscore, and tilde; empty interior segments and complete dot or dot-dot segments are invalid. The HTTP binding defines the limited permitted normalization of scheme, host, port, and a single trailing slash.

Operation URLs are constructed by appending one literal slash and the operation path to the canonical base. Generic relative-URI resolution MUST NOT replace the final base-path segment. A client MUST NOT follow redirects or forward bearer credentials to a redirect target. Provider changes are authenticated through DID resolution.

Cached discovery is refreshed once after the specified connection, redirect, not-found, gone, misdirected-request, or unknown-key conditions. A retry at a changed authenticated endpoint preserves the operation identity and required signed bytes. Body retrieval performs one sender-DID refresh per attempt after a concealed 404. Retry immediately only at a changed authenticated endpoint; otherwise use bounded delivery backoff through the effective deadline. Every request needs a fresh recipient signature and nonce. Ordinary 429 and 5xx responses do not by themselves establish migration.

Outbound fetching MUST reject prohibited destinations and revalidate resolved addresses for each connection, preventing private-network access and DNS rebinding. Fetches require bounded time, bytes, and concurrency. A DID-authorized endpoint is not permission to reach arbitrary local networks.

5. Encoding, Signatures, and Digest Domains

RACR uses the core deterministic encoding requirements of CBOR [RFC8949]. The data model permits null, booleans, integers from -(2^53-1) through 2^53-1, valid UTF-8 text, byte strings, finite arrays, and maps with unique text keys. Schemas further constrain values. Floating point, undefined, non-text map keys, indefinite lengths, application tags, duplicate keys, unknown fields in closed maps, and trailing bytes MUST be rejected.

Receivers perform bounded decoding, deterministic re-encoding, and byte-for-byte equality checking. Integers and lengths use shortest encodings; maps use encoded-key bytewise order. Text is not silently normalized. Unicode Normalization Form C (NFC) requirements apply only where the schema specifies them. Diagnostic JSON is not a signed or hashed representation.

Direct-payload signed objects other than envelopes and snapshots use the tagged COSE_Sign1 structure from COSE [RFC9052]. Tag 18 is required. The protected map contains exactly labels 1 (alg), 3 (content type), and 4 (kid); the unprotected map is empty. The payload is embedded deterministic CBOR, external additional authenticated data (AAD) is empty, and the signature is 64 bytes. alg is -19, the fully specified Ed25519 algorithm in [RFC9864]; polymorphic Edwards-curve Digital Signature Algorithm (EdDSA) value -8, negotiation, and fallback are not accepted. kid contains UTF-8 bytes of the canonical absolute DID key URL.

The protected content type is the exact object-specific string, such as application/hail-grant+cbor. Together with the payload type, closed schema, fixed algorithm, and key role, it provides domain separation. The HTTP entity type is application/cose; cose-type="cose-sign1". HTTP media types are parsed according to their syntax, not compared as unparsed strings. Signed representations have no HTTP content coding.

Envelopes instead use the COSE hash envelope [RFC9995]. Their protected map contains exactly labels 1: -19, 4: key identifier bytes, 258: -16 (SHA-256), and 259: application/hail-envelope+cbor. The embedded payload is the 32-byte SHA-256 digest of the exact deterministic envelope descriptor. The unprotected map contains exactly the domain-controlled text key https://racrproto.com/ns/racr/preimage with the descriptor bytes. The verifier MUST check this preimage hash before exposing descriptor fields, and MUST verify the signature and current authority before admission or retrieval. Envelopes that do not conform to this profile MUST be rejected.

5.1. Resource Budgets

All providers MUST support otherwise valid bodies through 1048576 encoded uncompressed octets. The budget includes CBOR framing and bundled asset data. It does not promise unlimited account quota or delivery capacity. Envelope descriptors are bounded at 16384 octets and complete envelope representations at 17408 octets; Delivery Status representations at 16384 octets; Address Bindings at 16384 octets; Grants at 262144 octets. Other object-specific constraints remain applicable.

The following limits apply to each independently decoded application CBOR domain and to the outer COSE domain. Application limits remain subject to the overall encoded limit and stricter object-specific limits.

Table 1: Decoder Resource Limits
Resource Application CBOR Outer COSE
Maximum depth 32 8
Total items 16384 256
Array length 4096 8
Map entries 256 8
Text string bytes 1048576 1024
Byte string bytes 1048576 Object limit
Encoded bytes Object limit Object limit

In the table, "Object limit" means the applicable object representation limit. The application root counts as one item at depth zero. Container elements, map keys, and map values count recursively; string contents do not. Map length counts pairs. Byte budgets include headers and use UTF-8 bytes rather than character counts.

For the outer COSE domain, tag 18 counts as a root item and its array has depth one. Protected headers restart counting at their map with a 1024-byte encoded and byte-string limit and no tag. Embedded payloads are checked separately. Transfer snapshots have distinct limits and are not authorized by these budgets.

Implementations MUST bound allocation before trusting declared lengths. Wire-byte limits do not by themselves bound aggregate concurrent work or decoder scratch space. Providers MUST bound outstanding accepted and on-hold work, rejected replay records and their evidence bytes, and pre-authentication Grant verification and DID resolution. Resource admission MUST be atomic across concurrent requests. Fair scheduling and bounded per-sender retrieval concurrency MUST prevent one sender from monopolizing delivery. Include detached attachments in resource reservations. Exact quotas and concurrency values are provider policy, not wire constants. Unauthenticated requests MUST NOT cause unbounded durable resolution-evidence growth.

6. Recipient Grants

Grant version 1 binds one grantor DID to one grantee DID, with a Universally Unique Identifier version 7 (UUIDv7) grant_id [RFC9562], revision, predecessor digest, scope, status, timestamps, consent context, and identity key identifier. Scope contains exactly one categories selector with a nonempty set of offered category IDs. General (general) is an ordinary category requiring explicit consent, not a wildcard. Connection-based messages do not use subscription Grants and MUST NOT contain a category. A Grant identifier is a lookup hint, not a bearer capability.

A Grant becomes active when the recipient's provider validates and stores the recipient-authorized signed Grant. No separate activation action or sender acknowledgment is required. Restrictions and revocations likewise take effect locally without sender acknowledgment. The recipient's latest Grant revision is authoritative for delivery. This profile permits one active Grant per grantor/grantee pair.

Every revision is a full-state snapshot. Revision 1 has a null predecessor. Subsequent revisions increment by one and name the SHA-256 digest of the previous complete signed representation. The fields type, version, grant_id, grantor, grantee, and issued_at are immutable within the lineage. Revision gaps, forks, conflicting representations, and changed immutable fields are rejected. Revocation is terminal for that lineage.

Expanding the selected categories requires fresh explicit consent against current verified discovery evidence. Restriction or revocation MUST NOT depend on sender-profile availability and carries the previous consent context forward. A category omitted from the replacement snapshot is removed, not implicitly retained.

Before identity-key rotation, the current Grant revision is acknowledged by the grantee. Following rotation, the grantor issues a higher revision under the new key rather than re-signing the same revision. Unacknowledged-rotation recovery is unresolved; this draft does not authorize accepting stale keys merely to bridge that gap.

6.1. Publication and Conditional Updates

Grant publication is PUT grants/{grant_id} at the grantee service using the COSE entity type and no content coding. Revision 1 uses If-None-Match: * and no If-Match. A later revision uses one strong If-Match ETag whose opaque value is the base64url digest of the preceding complete signed representation, matching previous. Wildcards, weak tags, lists, and conflicting conditional fields are invalid for updates. HTTP conditional semantics follow [RFC9110].

Creation returns 201 with Location and ETag; an applied update or exact current update retry returns 204 with ETag. An exact creation retry returns 412 with the matching current ETag. Only an exact submitted-representation digest match makes that 412 idempotent convergence. Other conflicts require reconciliation. Responses use Cache-Control: no-store.

Before valid grantor authentication and local target confirmation, protected failures use a uniform 400 Problem Details result. Missing required preconditions may be disclosed as 428 only after authentication. Source-wide transport limits and public routing errors retain the independently selected exceptions defined in the HTTP binding. Grant publication does not permit querying unrelated relationships.

7. Core Envelope Delivery

A Grant-authorized Envelope version 1 contains type, version, message_id, from, to, authorization, created_at, expires_at, body, and reply; category and message_type have object-specific conditional semantics. authorization identifies type grant and the grant_id. The messaging signature authenticates from, which MUST equal the Grant grantee; to MUST equal the Grant grantor. A Grant-authorized Envelope MUST contain a category authorized by the Grant. The complete closed schema and conditional fields are defined by [HAIL-SPEC].

A body descriptor contains a SHA-256 digest, size from 1 through 1048576, media_type application/hail-body+cbor, profile spt-1/spt-2/spt-3, available_until, and bearer access metadata. available_until is at least created_at plus 2592000 seconds and expires_at plus 300 seconds. The access expiration is no earlier than available_until. Both available_until and access.expires_at MUST be no later than created_at plus 2678400 seconds (31 days). Overlong commitments MUST be rejected rather than silently shortened. The immutable body and its authorization MUST exist before envelope submission and be retained through that availability commitment.

POST envelopes submits one signed envelope. No additional federation authentication beyond HTTPS and COSE is required. Deployments may use private controls, but those controls do not replace protocol signature verification. Batch federation submission is not defined.

7.1. Validation and Atomic Acceptance

  • Enforce transport and representation limits, then bounded deterministic COSE and payload decoding, closed-schema validation, and inexpensive field relationships.

  • Use claimed fields only for relationship-independent syntax and resource rejection and the narrowly defined public DID routing check. Protected relationship lookups MUST NOT precede signature verification or select whether public key resolution occurs.

  • Resolve and verify the exact sender messaging key and COSE signature. Authentication MUST precede protected relationship lookup, protected detail, authenticated replay-state mutation, or body retrieval. After authentication, a candidate authorization miss follows the generic path without body retrieval or a replay reservation.

  • Serialize the authenticated (from DID, message_id) record. Identical payload digests reuse stored state; different payload digests conflict. Before reserving a new ID, apply bounded resource admission. When resource budgets are exhausted, providers MAY refuse new work without creating a replay reservation or mutating a capability; eligible authenticated callers receive 429 with Retry-After. Existing authenticated replay state remains recoverable. Reserve ordinary authenticated rejection results only after resource admission succeeds.

  • Atomically recheck current recipient authorization and policy, then persist accepted delivery and required capability state. Grant changes and acceptance share an ordering: a revocation committed first rejects the new message; acceptance committed first allows its body processing to continue.

  • Retrieve or reuse content only under the body authorization and provenance rules. Verify and stage it, then serialize the final deadline check, durable message publication, terminal state, and any capability consumption.

created_at cannot be more than 300 seconds in the future. The effective delivery deadline is the earliest of expires_at plus 300 seconds, body.available_until, and access.expires_at. Acceptance and durable delivery MUST occur no later than that deadline. Clock tolerance never extends body or token retention promises. If completion misses the deadline, the terminal result is failed with reason delivery-expired.

The replay key is the authenticated sender DID plus message_id, not the body digest. The sender MUST NOT reuse a message ID, including after rejection. Retained replay state lasts through at least max(expires_at, body.available_until) plus 300 seconds. Authenticated identical retries can recover stored state even after the original permission changes; they do not authorize a new delivery.

7.2. Submission Responses and Disclosure

Receipt, acceptance, and delivery are distinct. Before a sender is authenticated with a current or previous local relationship, protected outcomes use HTTP 202, Content-Type application/json without parameters, Cache-Control: no-store, and exactly the JSON object below. It contains no status-query handle or acceptance promise.

{"outcome":"received"}

An eligible authenticated accepted or duplicate submission returns HTTP 200 with the current signed Delivery Status. Explicit protected errors map message-id-conflict to 409, invalid-envelope to 400, unauthorized to 403, message-expired to 410, rate-limited to 429, and temporarily-unavailable to 503. Every explicit unsuccessful response uses Problem Details [RFC9457] without disclosing more than the caller is entitled to learn.

Relationship-independent method, media type, size, framing, and service-wide rate limits may return safe transport errors. A 421 is permitted only when sufficiently fresh authenticated public DID state proves an endpoint mismatch; local account or relationship absence does not justify it. Body retrieval has no public target DID and does not use this exception.

Concealed outcomes MUST have common status, response shape, privacy-relevant headers, and a bounded response schedule based on measured validation behavior. Implementations must bound network-dependent resolution. Shared admission outcomes, including 429, MUST NOT depend on protected processing duration. Operations that ignore cancellation MUST remain bounded until they actually settle.

Implementers must test repeated timing observations, including burst-and-probe observations as well as individual response timing. A guessed constant delay alone is not evidence that rejection paths are indistinguishable.

8. Body Content and Retrieval

A body is a closed Safe Portable Text (SPT) document, not arbitrary HTML. Every provider MUST validate, retrieve, and store spt-1, spt-2, and spt-3. Plain-text-only support is insufficient. spt-1 contains normal text blocks and unmarked spans. spt-2 adds specified headings, blockquotes, captions, lists, strong, em, and code decorators, and declared HTTPS links, plus optional left, center, or right text alignment and a cta style for prominent navigation links. spt-3 interleaves 1 to 24 image blocks referencing bundled static Portable Network Graphics (PNG) or Joint Photographic Experts Group (JPEG) assets with rich text. All assets must be referenced. Image-role assets may appear anywhere; a header-role asset is reserved for a leading image.

Clients MUST treat text as text, validate link schemes and attributes, and not interpret unknown nodes as executable markup. The spt-1, spt-2, and spt-3 profiles define neither arbitrary HTML/CSS/scripts nor sender-controlled remote image loading. Advanced publisher layouts require new explicit nodes, validation, and presentation rules. A profile is not extensible merely because its data is represented as a map.

A cta text block has exactly one spt.link annotation, with every span carrying only that annotation key, no list fields, and a concatenated single-line label of at most 128 UTF-8 bytes containing a character other than ASCII whitespace. Carriage return (CR) and line feed (LF) are prohibited. Its absolute HTTPS destination has no credentials and is at most 2048 UTF-8 bytes. It renders as an accessible navigation link with client-controlled button styling, never fetching its destination until explicit navigation. Optional text-block alignment is left, center, or right; absent means left. This hint changes neither reading order nor directionality and may be adapted for accessibility. These fields are supported by the spt-2 and spt-3 definitions in [HAIL-SPEC], not spt-1.

Each image is limited to 524288 bytes, width and height 2400, and 2000000 pixels; header-role height remains 1200. Image occurrences total at most 24 and 8000000 decoded pixels, including repeated references. Readers preserve document order and aspect ratio. The declared media type selects the validator, and asset size, digest, and dimensions must agree with the bytes. PNG assets must be static; animated PNG is prohibited. JPEG assets must be baseline or progressive 8-bit images with exactly one frame, one to four components, only frame, table, restart-interval, scan, comment, and application segments, and no bytes after the end-of-image marker; arithmetic-coded, lossless, hierarchical, and multi-frame JPEG is prohibited. A message image requires plain-text alt text and may carry a caption, each at most 1024 UTF-8 bytes under the specified NFC and character rules. The complete body, including bundled bytes, still fits within 1 MiB. Sender Profile avatars remain PNG only, with separate limits of 32768 bytes, 512 by 512, and 262144 pixels.

These byte, pixel, and structural budgets apply to encoded bodies and bundled assets. Detached file attachments have separate limits: at most 20 files totaling 25 MiB per message. Attachment metadata counts toward the encoded-body limit; detached file bytes do not. Attachment formats, authorization, retrieval, and delivery requirements are specified separately in [HAIL-ATTACHMENTS].

8.1. Relayed Origin

An spt-2 or spt-3 body MAY contain one origin member: the sender's signed statement that it obtained the content from an external source and relayed it, for example a bridge that receives email and delivers it as a hail. An spt-1 body MUST NOT contain origin. The member is covered by the body digest and therefore by the envelope signature. It attests only what the sender says about where the content came from. It is not evidence of authorship and grants no authority: delivery is authorized exactly as for any other body from that sender.

The only current origin type is email. It carries the author address the sender read from the source message (from_address), an optional display name (from_name), an optional mailing-list identifier (list_id), the sender's DomainKeys Identified Mail (DKIM) result (authentication), and the time the sender received the source message (received_at). dkim-aligned means the sender verified a DKIM signature whose signing domain is the from_address domain or shares its registrable domain; any other outcome, including a valid signature for an unrelated domain, is none. Recipients cannot re-verify this result from the body. Address, name, and list-identifier syntax are defined in [HAIL-SPEC]. Unknown origin types, authentication values, and members MUST be rejected.

A reader that displays origin MUST keep the verified sender visible and distinct from the origin, and MUST NOT present the origin address as a RACR address, a verified identity, or the sender of the hail. It MUST indicate that the content was relayed and SHOULD show authentication when it is none. Readers MUST NOT use origin for authorization, reply addressing, contact matching, or sender-avatar selection. A reader MAY ignore origin for presentation, but a provider MUST still validate it. The member does not change what a body may contain. A participant that forwards or quotes a relayed body is composing new content and MUST NOT copy the original origin into it. Whether an account may state an origin at all is provider policy.

8.2. Token and Recipient Proof of Possession

For each recipient envelope, the sender generates exactly 32 cryptographically random token bytes. The signed body descriptor carries the token, body identity, and expiry. A token may be reused for retries of the same envelope, but MUST NOT be reused for another recipient or unrelated envelope. The server stores a token digest associated with body digest, recipient, message, expiry, and active state.

GET bodies/{digest} sends Authorization: Bearer followed by the canonical unpadded base64url token, using the scheme syntax of [RFC6750] without adopting OAuth issuance flows. Tokens MUST NOT appear in URLs. The token is necessary but insufficient. Every body and attachment GET MUST also carry the recipient HTTP signature defined below. The signed descriptor retains access.type = "bearer" to describe the token representation; it does not enable bearer-only retrieval.

Missing, malformed, unknown, mismatched, inactive, or expired tokens and invalid or unavailable signature verification receive uniform 404 responses that conceal body existence. Authorization-lookup and replay-store outages also use this path. A missing or unavailable body may produce retryable 503 only after BOTH token authorization and recipient proof succeed. Concealed 404 results use authenticated endpoint refresh and bounded retries through the effective deadline, never a bearer-only fallback.

The hail-retrieval-v1 profile of HTTP Message Signatures [RFC9421] requires one hail member in each of Signature-Input and Signature. It covers @method, @target-uri, and authorization, in that order. The six parameters are created, expires, nonce, keyid, alg equal to ed25519, and tag equal to hail-retrieval-v1. Expiry is exactly creation plus 60 seconds with 30 seconds of clock tolerance. Each request uses a fresh random 32-byte nonce in canonical unpadded base64url. The exact header grammar, signature base and canonical serialization are defined in the retrieval-signature profile in [HAIL-SPEC].

Token lookup fixes the authorized recipient before key resolution. Verify the current recipient #hail-messaging key; untrusted signature fields cannot select an arbitrary signer. After verification, atomically consume the recipient-DID/nonce pair provider-wide through signature expiry plus clock tolerance. Replay state survives restart. Target binding includes the full external HTTPS origin and path; queries and redirects are prohibited. Sign every retry and each attachment separately. Provider-local nonce state is not account history; same-origin storage replacement must preserve unexpired state or refuse retrieval for at least 120 seconds before using an empty store.

Hashing token lookup records does not remove secrets from retained signed envelopes, outboxes, backups, or transfer history. Those copies need access controls and log redaction. A signature authenticates token bytes but does not encrypt them.

8.3. Content Verification and Compression

A successful retrieval returns 200 with application/hail-body+cbor and private, no-store caching policy. Receivers MUST support identity and gzip coding; gzip emission is optional. No other coding is defined. Gzip-coded input is limited to 2097152 octets. Decompression MUST enforce an output cap equal to the already-validated signed size, not merely check size after unbounded expansion. Streaming and bounded buffered implementations are both permitted.

After decompression, the recipient verifies exact signed length, SHA-256 digest, HTTP media type, profile, deterministic CBOR equality, and complete schema/resource validity before delivery. Content-Digest, when supplied, covers coded HTTP content and does not replace the signed uncompressed digest. Aggregate decompressor output, including concatenated gzip members, remains subject to the same cap.

A verified cache may avoid retrieval only for matching provenance (recipient DID, sender DID, body digest, media type, profile). Global storage deduplication MUST NOT change another recipient delivery path based on blob presence. Without matching provenance, a recipient-specific retrieval is required even if the underlying bytes already exist. This prevents probing cross-tenant content possession with deliberately unusable authorizations.

Retrieval is a provider delivery operation, not an open or read signal. Clients render verified local content rather than contact the sender when the user opens a message.

9. Delivery State and Status Reporting

The delivery states are accepted, on-hold, delivered, failed, and cancelled. The accepted state fixes core Grant authorization and queues content processing; on-hold records a retryable impediment. The delivered state means verified body and recipient-specific record are durable. The delivered, failed, and cancelled states are terminal and cannot transition to another result. A terminal transaction prevents a concurrent retry from publishing a message after failure or cancellation. Later Grant revocation affects future acceptance, not already accepted Grant delivery.

Retryable reasons are sender-unreachable, body-temporarily-unavailable, body-transfer-interrupted, sender-rate-limited, and receiver-resource-constrained. Permanent failure reasons are body-authorization-failed, body-integrity-failed, body-invalid, body-unsupported, delivery-expired, and receiver-policy-rejected. Cancellation reasons are recipient-cancelled and receiver-administrative-cancellation. The recipient owns bounded retrieval retries and scheduling within the signed deadline.

Delivery Status version 1 is a complete signed snapshot with the original message ID, envelope payload digest, original sender and recipient, revision increasing by exactly one per created snapshot, state, and occurred_at. The accepted state is revision 1; later states begin at revision 2. on-hold includes reason and retry_at; failure and cancellation include the appropriate reason; other states omit them. The status object's from field equals the original envelope's to field, and its to field equals the original envelope's from field. The original recipient messaging key signs it. retry_at is no earlier than occurred_at and no later than the effective delivery deadline. Other cross-field rules are fixed by the Delivery State specification.

The original recipient's provider sends the status to the original sender's current service using PUT deliveries/{envelope_digest}. The original sender's provider verifies the original recipient signer and retained envelope correlation before disclosure or state mutation. HTTP 204 acknowledges a valid new revision, exact duplicate, or valid stale lower revision. Same-revision conflicts, impossible transitions, and higher revisions after terminal state are rejected. Unauthenticated or uncorrelated protected outcomes use the generic 202 and do not acknowledge delivery status. No federation status-query endpoint is defined.

Terminal status is attempted immediately. Nominal retry delays are 30 seconds, 2 minutes, 10 minutes, 1 hour, 6 hours, and then 24 hours. Let D be the nominal retry delay in seconds. Each actual delay is sampled independently and uniformly from the integers ceil(0.8D) through floor(1.2D), inclusive, and is measured in seconds. For 429/503, the next delay is the later of local jitter and valid Retry-After, with remote guidance capped at 24 hours. The counter and absolute next-attempt time survive restart, generic receipts, and endpoint migration.

Absent acknowledgment or a specified permanent error, retries continue through at least max(envelope replay deadline, terminal occurred_at plus 2592000 seconds). The sender retains correlation records through at least the replay deadline plus 2592000 seconds. Key rotation can replace the status COSE wrapper around unchanged deterministic payload bytes without changing its revision. A delivery receipt does not attest client synchronization, display, opening, or reading.

10. Implemented Extensions and Deferred Features

The optional client-to-provider Hail JMAP profile uses [RFC8620] for Session discovery, typed methods, changes, binary transfer and connected events. Domain-controlled capabilities cover messages, drafts, account operations, events and optionally encrypted Web Push. These do not imply RFC 8621 Mail compatibility or a shared OAuth login profile. Provider authentication remains provider-owned, separate from owner/recovery authority. Notifications contain state hints, recover through synchronization, and neither mutate read state nor constitute RACR delivery evidence. The complete profiles are in [HAIL-SPEC].

Attachment definitions are in [HAIL-ATTACHMENTS]; the other extension definitions are in the fixed snapshot [HAIL-SPEC]. Their eventual division into companion Internet-Drafts is an editorial decision, not removal of implemented functionality. Local account application programming interfaces (APIs), command-line interface (CLI) commands, passkey flows, database tables, and deployment topology are not federation requirements.

End-to-end encryption, outbound email and bridge-to-bridge email profiles, attachment formats beyond PNG/JPEG/WebP/PDF/TXT/LOG, additional publisher layouts, optional-profile capability discovery, bulk federation submission, and federated read/open receipts remain deferred. A provider-local implementation of an undeclared feature is not a negotiated interoperable extension.

11. Security Considerations

The protocol relies on HTTPS authentication, Ed25519 signatures, SHA-256 integrity, secure random tokens, protected signing keys, and correct DID resolution. A recipient provider can inspect delivered content and metadata; a sender provider can inspect outgoing content and tokens. Neither provider authentication nor local disk/key encryption provides end-to-end confidentiality.

Identity and messaging keys have distinct authority. Compromise of a messaging key can impersonate its sender within available permissions. Compromise or provider custody of an identity key has broader consequences for Grants and bindings. PLC recovery and rollback can affect which keys are authoritative; this draft deliberately does not treat retained signature validity as a complete historical-authority proof.

Implementations MUST verify algorithm, key role, controller, protected content type, payload type, schema, and canonical bytes in addition to the signature. Closed maps and exact digest domains reduce ambiguity and cross-protocol confusion. Unknown versions require explicit rejection or their separately defined extension handling; they are not best-effort parsing opportunities.

Acceptance, revocation, replay reservation, reply consumption, cancellation, and terminal publication require atomic ordering. A valid signature does not resolve races. Incorrect transaction boundaries can create duplicate messages, bypass revocation, consume a capability more than once, or publish after a terminal failure.

Resource attacks include large declared CBOR lengths, deeply nested structures, expensive signatures, DID-resolution amplification, stalled transfers, gzip expansion, and image decoder attacks. Apply structural limits before expensive work; bound concurrent work and scratch allocation separately. Grants authorize delivery categories, not unlimited resource consumption.

A relayed-origin statement (Section 8.1) is signed by the sender, not by the original author, and an authorized sender can state a false origin. Presenting it as the sender, or using it for authorization or reply addressing, would let a sender impersonate arbitrary email authors.

Retrieval tokens remain sensitive even though possession alone no longer authorizes content access. The current recipient messaging-key proof is also mandatory; compromise of both proofs defeats that protection. Store lookup digests and redact secrets from logs, but also protect signed representations and backups that necessarily retain raw tokens. Network redirects, ambient cookies, arbitrary URLs, and unsafe DNS resolution can exfiltrate tokens or reach private services; endpoint derivation does not remove the need for safe-fetch validation.

Retention and migration must preserve immutable bodies through their commitments, replay state through its deadline, and status evidence through retry/correlation windows. Storage deduplication cannot erase recipient-specific ownership and authorization. Operator recovery procedures require review beyond these wire requirements.

12. Privacy Considerations

Public aliases, DID service entries, key history, and Sender Profiles allow identity correlation. A stable DID improves continuity but also links interactions across provider changes. DNS, directory operators, and providers can observe discovery and traffic metadata. HTTPS does not conceal those relationships from the services involved.

Generic receipts and concealed body errors reduce relationship and content-existence probing, but timing, response size, resolution latency, cache state, rate limits, and connection behavior can still disclose information. Implementations need measured tests of all rejection paths, not merely identical JSON. Public 421 routing decisions must remain independent of protected account and relationship state.

Signed delivery status exposes provider processing and availability, not user reading. Bodies and bundled images are fetched during delivery and rendered locally. User-initiated navigation to an HTTPS link can still disclose information to the destination; this is distinct from automatic content loading. Additional analytics or read-receipt extensions require separate privacy review.

Recipient-specific cache provenance is required even when physical bytes are deduplicated. Retained consent context and history improve auditability but contain relationships and content metadata; retention policies should minimize unnecessary copies without violating protocol continuity requirements.

13. IANA Considerations

This revision makes no registration request. The application/hail-*+cbor strings used in the alpha are provisional and are not claimed to be registered media types. They are nevertheless exact cryptographic domain-separation values in this profile. Implementations MUST NOT independently rename them. Final allocation will require coordinated wire and signature updates if the names change.

Prepared media-type templates and actual registration status are maintained in the working specification encoding inventory. No submission is asserted here. The unprefixed names require a standards-tree publication/approval path under [RFC6838] and the structured-suffix rules of [RFC6839]. Candidate core types are application/hail-address-binding+cbor, application/hail-sender-profile+cbor, application/hail-grant+cbor, application/hail-envelope+cbor, application/hail-delivery-status+cbor, and application/hail-body+cbor. The extension types need coordinated registration in their companion documents.

The existing application/cose media type, COSE_Sign1 tag, COSE Ed25519 algorithm, SHA-256 identifier and RFC 9995 header parameters are reused without a new allocation. The address-binding relation is an extension relation URI, not a claim to a registered short relation token. The preimage header and Hail JMAP capabilities use domain-controlled URI namespaces; no numeric COSE label or IETF JMAP capability allocation is requested. DID fragments and the service type, the DNS TXT delegation convention, signature tags, object/profile identifiers, versions and reason values remain application-specific sets governed by their defining specifications. Unknown-value behavior remains profile-specific. No new IANA registry is proposed; future open extension points require an explicit allocation and negotiation policy.

14. Implementation and Evaluation Status

The project at the specification snapshot cited in [HAIL-SPEC] includes a TypeScript reference provider, clients including a Rust CLI, and TypeScript and Go codec/vector implementations. Shared vectors exercise encodings, signatures, resource boundaries, and malformed inputs. Provider tests exercise delivery and persistence behavior. These are implementation evidence, not a complete security audit or independent-provider interoperability certification.

No particular implementation language or independently operated second provider is a prerequisite for circulating this draft. Review can begin with published schemas, vectors, and implementation behavior. Independent implementations and deployments would provide additional evidence. A full independent-provider trial is not claimed here.

Useful evaluation includes exact encoded body boundaries, multilingual and structured publisher content, bounded decompression, privacy timing tests, competing revocation/acceptance operations, replay after restart, endpoint migration, and storage failure after authorization. A client can preflight an encoded draft against size and structural limits; doing so cannot promise acceptance under dynamic authorization or quota policy.

15. Normative References

[HAIL-ATTACHMENTS]
contributors, H., "Message attachments, commit 7b21f960dee7c236972a6bda667e4e3f52762007", , <https://github.com/j4crev/hail/blob/7b21f960dee7c236972a6bda667e4e3f52762007/spec/attachments.md>.
[HAIL-SPEC]
contributors, H., "Hail alpha specification, commit 7b21f960dee7c236972a6bda667e4e3f52762007", , <https://github.com/j4crev/hail/tree/7b21f960dee7c236972a6bda667e4e3f52762007/spec>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC4648]
Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, DOI 10.17487/RFC4648, , <https://www.rfc-editor.org/info/rfc4648>.
[RFC6750]
Jones, M. and D. Hardt, "The OAuth 2.0 Authorization Framework: Bearer Token Usage", RFC 6750, DOI 10.17487/RFC6750, , <https://www.rfc-editor.org/info/rfc6750>.
[RFC6838]
Freed, N., Klensin, J., and T. Hansen, "Media Type Specifications and Registration Procedures", BCP 13, RFC 6838, DOI 10.17487/RFC6838, , <https://www.rfc-editor.org/info/rfc6838>.
[RFC6839]
Hansen, T. and A. Melnikov, "Additional Media Type Structured Syntax Suffixes", RFC 6839, DOI 10.17487/RFC6839, , <https://www.rfc-editor.org/info/rfc6839>.
[RFC7033]
Jones, P., Salgueiro, G., Jones, M., and J. Smarr, "WebFinger", RFC 7033, DOI 10.17487/RFC7033, , <https://www.rfc-editor.org/info/rfc7033>.
[RFC7565]
Saint-Andre, P., "The 'acct' URI Scheme", RFC 7565, DOI 10.17487/RFC7565, , <https://www.rfc-editor.org/info/rfc7565>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
[RFC8288]
Nottingham, M., "Web Linking", RFC 8288, DOI 10.17487/RFC8288, , <https://www.rfc-editor.org/info/rfc8288>.
[RFC8610]
Birkholz, H., Vigano, C., and C. Bormann, "Concise Data Definition Language (CDDL): A Notational Convention to Express Concise Binary Object Representation (CBOR) and JSON Data Structures", RFC 8610, DOI 10.17487/RFC8610, , <https://www.rfc-editor.org/info/rfc8610>.
[RFC8620]
Jenkins, N., "The JSON Meta Application Protocol (JMAP)", RFC 8620, DOI 10.17487/RFC8620, , <https://www.rfc-editor.org/info/rfc8620>.
[RFC8949]
Bormann, C. and P. Hoffman, "Concise Binary Object Representation (CBOR)", STD 94, RFC 8949, DOI 10.17487/RFC8949, , <https://www.rfc-editor.org/info/rfc8949>.
[RFC9052]
Schaad, J., "CBOR Object Signing and Encryption (COSE): Structures and Process", STD 96, RFC 9052, DOI 10.17487/RFC9052, , <https://www.rfc-editor.org/info/rfc9052>.
[RFC9110]
Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke, Ed., "HTTP Semantics", STD 97, RFC 9110, DOI 10.17487/RFC9110, , <https://www.rfc-editor.org/info/rfc9110>.
[RFC9421]
Backman, A., "HTTP Message Signatures", RFC 9421, DOI 10.17487/RFC9421, , <https://www.rfc-editor.org/info/rfc9421>.
[RFC9457]
Nottingham, M., Wilde, E., and S. Dalal, "Problem Details for HTTP APIs", RFC 9457, DOI 10.17487/RFC9457, , <https://www.rfc-editor.org/info/rfc9457>.
[RFC9530]
Polli, R. and L. Pardue, "Digest Fields", RFC 9530, DOI 10.17487/RFC9530, , <https://www.rfc-editor.org/info/rfc9530>.
[RFC9562]
Davis, K., Peabody, B., and P. Leach, "Universally Unique IDentifiers (UUIDs)", RFC 9562, DOI 10.17487/RFC9562, , <https://www.rfc-editor.org/info/rfc9562>.
[RFC9864]
Jones, M.B. and O. Steele, "Fully-Specified Algorithms for JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE)", RFC 9864, DOI 10.17487/RFC9864, , <https://www.rfc-editor.org/info/rfc9864>.
[RFC9995]
Steele, O., "CBOR Object Signing and Encryption (COSE) Hash Envelope", RFC 9995, DOI 10.17487/RFC9995, , <https://www.rfc-editor.org/info/rfc9995>.

Appendix A. Open Protocol Questions

This section is to be removed before publishing as an RFC.

These questions remain unresolved; they are not permission for implementers to choose incompatible behavior. The current snapshot remains the implementation target while these questions are reviewed.

Appendix B. Source Map and Review Boundary

The normative source snapshot is 7b21f960dee7c236972a6bda667e4e3f52762007 for both HAIL references. This document is maintained separately from the implementation specification. Its chapter mapping is: identity/discovery to did-profile.md, address-binding.md, sender-profile.md and plc-read-evidence.md; encoding to encoding.md and hail.cddl; Grants to grants.md; core delivery to core-delivery.md and envelopes.md; HTTP operations to http-binding.md; content to bodies.md, retrieval-signatures.md, assets.md, and the separately referenced attachments.md; state to delivery-state.md; transfer to transfer-formats.md and account-history.md; optional account access to provider-authentication.md and the jmap*.md profiles.

This working revision advances the pinned snapshot to include the protocol namespace correction, the expanded spt-3 image limits with JPEG assets, the signed relayed-origin body member, and transfer destinations whose service and address domains differ. Envelope preimage labels use the protocol domain, and Hail JMAP capability URIs use the prefix https://racrproto.com/ns/jmap/. Only the current envelope label is accepted; JMAP clients and providers upgrade together. The feature inventory includes the separately referenced attachment specification. Connections, shared conversations, detached attachments, and portability are implemented extensions. Additional attachment formats, advanced layouts, end-to-end encryption, and federated read/open receipts remain deferred.

The open protocol questions do not reopen established requirements. In particular, current body size, mandatory SPT support, token-plus-signature body retrieval, Address Binding non-expiration, and permission ordering are already specified; they are not re-opened by this draft.

Appendix C. Body Structural Schema Excerpt

The following Concise Data Definition Language (CDDL) excerpt ([RFC8610]) uses the pinned hail.cddl body, asset, and attachment definitions, with attachment semantics from [HAIL-ATTACHMENTS] and the digest and timestamp dependencies included. It defines structure only: the prose and source specification impose additional mark-reference, role, image-format, origin-syntax, text, attachment-content, aggregate-size, and cross-field validation. In particular, spt-3 permits 1 to 24 image or header assets, all referenced, and at most 24 image blocks with eight million total displayed pixels; only the first block may reference a header asset, and an avatar asset is PNG only. Unknown fields are not permitted.

hail-uint = 0..9007199254740991
timestamp = hail-uint
sha256 = bstr .size 32

digest = {
  "algorithm": "sha-256",
  "value": sha256
}

; Detached file sizes total at most 26,214,400 bytes per body.
hail-attachment = {
  "filename": tstr,
  "media_type": "application/pdf" / "text/plain" / "image/png" /
                "image/jpeg" / "image/webp",
  "size": 1..26214400,
  "digest": digest
}

; spt-1 remains the initial plain-text Portable Text-shaped profile.
hail-body-spt-1 = {
  "version": 1,
  "profile": "spt-1",
  "blocks": [* spt-1-text-block],
  ? "attachments": [1*20 hail-attachment]
}

spt-1-text-block = {
  "_type": "block",
  "style": "normal",
  "children": [1* spt-1-span],
  "markDefs": []
}

spt-1-span = {
  "_type": "span",
  "text": tstr,
  "marks": []
}

; spt-2 adds a closed set of styles, lists, decorators
; and HTTPS links.
hail-body-spt-2 = {
  "version": 1,
  "profile": "spt-2",
  "blocks": [* spt-2-text-block],
  ? "attachments": [1*20 hail-attachment],
  ? "origin": body-origin
}

spt-2-text-block = {
  "_type": "block",
  "style": "normal" / "h1" / "h2" / "h3" /
           "blockquote" / "caption" / "cta",
  "children": [1* spt-2-span],
  "markDefs": [* spt-link],
  ? "listItem": "bullet" / "number",
  ? "level": 1..3,
  ? "alignment": "left" / "center" / "right"
}

spt-2-span = {
  "_type": "span",
  "text": tstr,
  "marks": [* tstr]
}

spt-link = {
  "_key": tstr,
  "_type": "spt.link",
  "href": tstr,
  ? "title": tstr
}

; spt-3 interleaves bounded, digest-bound PNG or JPEG images
; and rich text. Role-specific formats and sizes (avatar: PNG,
; 32768 bytes) are semantic checks.
hail-body-spt-3 = {
  "version": 1,
  "profile": "spt-3",
  "assets": asset-manifest-v1,
  "blocks": [1* (spt-image-block / spt-2-text-block)],
  ? "attachments": [1*20 hail-attachment],
  ? "origin": body-origin
}

spt-image-block = {
  "_type": "spt.image",
  "asset": tstr,
  "alt": tstr,
  ? "caption": tstr
}

; The sender's statement that it relayed the content from an
; external source. Address, name and list-identifier syntax
; are semantic checks.
body-origin = body-origin-email

body-origin-email = {
  "type": "email",
  "from_address": tstr,
  ? "from_name": tstr,
  ? "list_id": tstr,
  "authentication": "dkim-aligned" / "none",
  "received_at": timestamp
}

; Reusable bundled-image manifest for future body
; and profile versions.
asset-manifest-v1 = {
  "version": 1,
  "assets": [1*24 bundled-image-asset-v1]
}

bundled-image-asset-v1 = {
  "id": tstr,
  "role": "avatar" / "header" / "image",
  "media_type": "image/png" / "image/jpeg",
  "loading": "bundled",
  "size": 1..524288,
  "digest": digest,
  "width": 1..2400,
  "height": 1..2400,
  "data": bstr
}

Author's Address

Jason Creviston