Draft · v0.1 · July 2026

RGE-1: Registry-Gated Entitlements

A draft design for a licensor-side gate that enforces content-access licences against anchored ADP-1 declarations. The licence window is written into the anchored grant, and access tokens are issued only while a live grant exists, so expiry stops issuance without anyone acting.

RGE-1 is a draft proposal and is not normative. It ships with a reference gate in JavaScript and test vectors, written by the author of the specification to test the logic. The gate is not a hardened service, has not been deployed, and has not been reviewed by anyone outside the project. The grant fields RGE-1 uses are proposed extensions to ADP-1, not part of ADP-1 today.

No licence has been set for this draft or its code. All rights reserved until one is.

Status. Draft v0.1, July 2026. A proposal, not a normative document. The API shapes are specified precisely enough to implement against, and they may change.

Ships with the draft: a reference gate in JavaScript with no dependencies, test vectors with a deterministic generator, and tests. They cover state resolution (§5), token issuance (§6.2), fail-closed staleness (§6.5) and the issuance log (§8.1). The reference gate is for reading and testing the logic. It is not a hardened service, it has not been deployed, and it has not been independently reviewed. See the README. The conformance language is provisional: no conformance programme exists. All organisations, domains, licence identifiers and endpoints in the examples are placeholders.

What this document is. The specification of a licensor-side entitlement gate that enforces content-access licences against anchored ADP-1 declarations, so that token issuance to the licensee stops when a grant expires, with no further action by anyone, and stops after a bounded delay when a superseding declaration revokes it (§6.4). The design leaves a checkable record of who had access, under which grant, from when to when.

The one-sentence mechanism. The licence's validity window is written into the anchored grant at signing; access tokens are short-lived and are only issued while a live, unexpired, unsuperseded grant exists; therefore expiry is shutoff, and a revocation takes effect once the Gate has verified it and the tokens already issued have run out.

Companion document. ADP-1 is the normative substrate. Nothing in RGE-1 modifies ADP-1's verification procedure or trust model.

Conformance language. The key words MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY are to be interpreted per RFC 2119 and RFC 8174 when in capitals.


1. Scope, design goals, and non-goals

RGE-1 specifies four things:

  1. A grant profile. How a commercial content licence (licensor to named licensee) is expressed as an ADP-1 declaration with a validity window (§4).
  2. A state-resolution algorithm. How a gate determines, at any moment, whether a named actor holds a live grant (§5).
  3. A token-issuance protocol. How short-lived access credentials are minted against that state, including offline and fail-closed semantics (§6).
  4. Lifecycle and audit requirements. Grant, renewal, revocation, expiry, re-grant, and the log schema that records the history (§6.4, §8).

1.1 Design goals

GoalHow RGE-1 meets it
Shutoff at term end without an operator taskExpiry is a field of the anchored grant, not an operational task. The gate reads the grant; when the window closes, a correctly running gate stops issuing tokens (§6.2). This depends on the gate's clock and on the content API honouring token expiry.
Bounded revocation latencyA breach revocation takes effect within the time to anchor it, plus the Gate's re-check interval, plus one token TTL. The last two are operator-chosen (§6.4).
No registry call on the content pathThe gate enforces from a locally held, verified declaration bundle. Expiry needs no registry at all. Revocation freshness does depend on learning of supersessions, bounded by max_staleness (§6.5).
Neither party trusted on the timelineEvery grant, renewal, and revocation is an anchored, third-party-timestamped record; every token names the declaration that authorized it (§8). The Gate itself is trusted to enforce (§3).
Deployable on existing infrastructureThe gate is a thin service in the licensor's stack, in front of an existing content API. The licensee's retrieval calls change only by a token header.

1.2 Non-goals (read first)

  • RGE-1 does not and cannot revoke content already delivered in bulk. It presumes a gated-access architecture: the corpus stays inside the licensor's infrastructure and the licensee retrieves at query time. If the deployment ships the corpus to the licensee, RGE-1 degrades to an evidentiary layer (provable licence windows). That is not access control.
  • RGE-1 does not detect exfiltration or police derived artifacts such as caches and embeddings. That is the job of a separate detection layer and of contract terms.
  • RGE-1 does not define pricing, royalty accounting, or usage metering. Licensor systems continue to own that. RGE-1 gates whether a query is authorized, not what it costs.

2. Actors and components

Actor or componentRoleHolds
LicensorOwns content and the delivery API; operates the Gate; declares grants.Content, entitlement policy, its ADP-1 declarant key.
Licensee (for example, an enterprise running a private retrieval pipeline)Retrieves content at inference or refresh time using short-lived tokens.An RGE client credential; no long-lived content rights beyond the anchored grant.
Registry (any ADP-1 operator)Anchors declarations, serves inclusion proofs and lookups.Its batch-signing key, its database, its Arweave wallet.
Gate (RGE service, licensor-side)Resolves grant state; mints and validates tokens; writes the issuance log.Its token-signing key; a verified local cache of grant bundles.
ArweaveThe public log that declarations are anchored to.A block clock no party to the licence controls.

The Gate is licensor-side by design: enforcement authority stays with the content owner. A registry operator MAY offer a hosted Gate, but a licensor-operated Gate is the reference deployment. It does not rely on the registry operator to enforce expiry. For revocation it relies on learning of supersessions, which the licensor, as the declarant, can also supply to its own Gate directly (§6.5).

3. Trust model

RGE-1 inherits ADP-1's three assumptions (hash and signature soundness; Arweave permanence and monotonic block time; authority binding; see ADP-1 §2) and adds exactly one:

  1. The Gate enforces honestly. The Gate is operated by the licensor, who is economically motivated to enforce its own licences. RGE-1 makes the Gate's behaviour auditable (every token names its authorizing declaration; the issuance log is hash-chained, §8.1) but cannot force a licensor to run it. A licensee seeking symmetric assurance relies on the anchored grant chain, which the licensor cannot alter retroactively, though it can anchor a superseding declaration at any time.

What is explicitly not trusted: the registry operator for expiry enforcement (§6.5); the licensee's clock or logs (tokens are validated licensor-side); either party's account of the timeline (the anchor chain is the timeline).

4. The grant profile

A grant is an ADP-1 declaration with the following profile. The fields terms.valid_from, terms.valid_until, terms.grace_period_seconds, terms.entitlement and the rge:licensee: actor namespace are RGE-1 extensions proposed for ADP-1 schema_version 2. They are not part of ADP-1 schema_version 1, and the rge:licensee: namespace is not in ADP-1's actor vocabulary. Per ADP-1 §1.1, vocabulary additions bump schema_version without touching the protocol version.

{
  "adp_version": "1.0",
  "schema_version": 2,
  "declaration_id": "01JRGE0000000000000GRANT1",
  "subject": { "scope": "domain", "domain": "example-licensor.com" },
  "reservations": [
    { "use": "ai-input", "actor": "any", "status": "reserved" },
    {
      "use": "ai-input",
      "actor": "rge:licensee:example-licensee",
      "status": "permitted",
      "terms": {
        "license": "EX-ENT-2026-001",
        "license_url": "https://example-licensor.com/licenses/EX-ENT-2026-001",
        "contact": "licensing@example-licensor.com",
        "valid_from": "2026-03-01T00:00:00Z",
        "valid_until": "2027-03-01T00:00:00Z",
        "grace_period_seconds": 0,
        "entitlement": {
          "gate": "https://entitlements.example-licensor.com",
          "scopes": ["retrieve:news", "retrieve:archive"],
          "max_qps": 50
        }
      }
    }
  ],
  "declarant": { "id": "did:web:example-licensor.com", "public_key": "...", "public_key_alg": "ed25519" },
  "authority": {
    "method": "dns-01",
    "proof": "_adp-challenge.example-licensor.com",
    "proof_digest_sha256": "..."
  },
  "effective_from": "2026-03-01T00:00:00Z",
  "issued_at": "2026-02-20T17:00:00Z",
  "supersedes": null
}

Normative requirements:

  • 4.1 A grant MUST use a permitted reservation with a named actor. The actor identifier SHOULD use the rge:licensee:<label> namespace and MUST be bound to the licensee's client credential at the Gate (§6.1).
  • 4.2 terms.valid_from and terms.valid_until are RFC 3339 UTC instants defining the half-open window [valid_from, valid_until). valid_until MUST be present in an RGE grant. The window is inside the canonical, signed, anchored bytes, so a Gate can enforce expiry from those bytes alone. effective_from (a declarant claim with no cryptographic weight, per ADP-1 §4.2 and §5.3) SHOULD equal valid_from.
  • 4.3 grace_period_seconds MAY extend token issuance past valid_until (default 0). Non-zero grace is a commercial choice; it is equally visible to both parties in the anchored record.
  • 4.4 The entitlement object binds the grant to a specific Gate endpoint and scope set. The Gate MUST reject a token request whose requested scopes exceed the grant's.
  • 4.5 A grant SHOULD be co-declared with, or alongside an existing, actor: any / status: reserved reservation for the same use, so the default posture and the exception are both on the record.
  • 4.6 The anchored timestamp governs disputes; valid_from and valid_until govern the window. A grant anchored after its valid_from is valid, but for the interval before the anchor it is supported only by the contract. Anchor before the window opens. (This is ADP-1 §5.3 restated for grants.)

5. State resolution (normative)

Given (subject, use, actor, t_now), the Gate resolves grant state as follows:

  1. Collect all verified declarations for the subject. ADP-1 §7 verification MUST have passed for each: signature, authority, inclusion proof, anchored root. The Gate MUST also admit only declarations signed by a declarant key the licensor has configured for this Gate, anchored by an anchor operator whose key the Gate has pinned. A declaration that fails any of these tests has no effect on state: it grants nothing and it revokes nothing. If the same declaration is seen under more than one anchor, the earliest anchor time stands: an anchor shows a declaration existed no later than its block, so anchoring it again later must not make it look newer.
  2. Discard superseded declarations: any declaration named in a verified later declaration's supersedes field is dead, per ADP-1 §8.5. The supersession graph MUST be walked to its head.
  3. Select the reservation whose use matches and whose actor is the most specific match for the requesting actor (an exact rge:licensee: match beats a class match, which beats any), per ADP-1 §4.4. Between equally specific matches in different declarations, the most recently anchored declaration wins (ADP-1 §6.3). This rule also settles a fork, where one grant is superseded by both a renewal and a revocation: whichever was anchored last is the licensor's latest word. Only an exact match on the actor's own identifier can be a grant; a permitted reservation for a class or for any is never one (§4.1).
  4. The state is:
    • LIVE if and only if the selected reservation is permitted and valid_from is at or before t_now, and t_now is before valid_until + grace_period_seconds;
    • EXPIRED if and only if it is permitted but the window (plus grace) has closed;
    • REVOKED if and only if the grant was superseded by a declaration removing or reserving the actor's permission;
    • RESERVED (no grant) otherwise. This includes a grant whose window has not opened yet, and a permitted reservation that lacks a usable valid_until (§4.2). Treating "no matching reservation" as no grant is RGE-1's own policy for a Gate. ADP-1 leaves that case undefined and sets no default (ADP-1 §4.4).
  5. t_now MUST come from the Gate's NTP-disciplined clock. The window bounds MUST come from the verified canonical bytes, never from a database column that could drift from the anchored record.

6. Token issuance protocol

6.1 Client binding

Each licensee holds a client credential (an mTLS certificate or an OAuth2 client) registered at the Gate and bound to exactly one rge:licensee: actor identifier. Possession of a credential confers nothing by itself: issuance is decided by grant state at request time.

6.2 Issuance (the core loop)

POST https://entitlements.example-licensor.com/v1/token   (client-authenticated)

{ "scopes": ["retrieve:news"] }

The Gate MUST:

  1. Resolve state per §5 for the client's bound actor.
  2. If the state is not LIVE, return 401 GRANT_NOT_LIVE with a body carrying state (one of EXPIRED, REVOKED, RESERVED), authorizing_declaration and anchored_at. This response is the shutoff for new tokens.
  3. If LIVE, mint a token with TTL min(configured_ttl, valid_until + grace - t_now). A token MUST NOT outlive the grant window.
  4. Log the decision (§8.1), including denials.

A Gate MUST also refuse, and log, a request it cannot serve for another reason. The reference gate uses these codes: CLIENT_NOT_BOUND (401, the client maps to no actor), INVALID_REQUEST (400, no usable scopes), SCOPE_NOT_GRANTED (403, §4.4), GRANT_NOT_FOR_THIS_GATE (403, the grant's entitlement.gate names another endpoint) and GRANT_STATE_STALE (503, §6.5).

Token format: a signed JWT (Ed25519, the Gate's key) with claims sub (actor id), scopes, exp, iat, and adp_decl (the declaration_id of the authorizing grant), plus adp_leaf (the leaf hash), so any token is later traceable to the exact anchored record that authorized it. Content-API nodes validate tokens with the Gate's public key only. There is no registry call on the hot path. A validator MUST fix the algorithm to EdDSA and MUST NOT choose a verification method from the token's own header.

The reference gate also sets iss (the Gate's URL) and jti (the id of the log row that records the issuance), and serializes the token header and claims with RFC 8785 (JCS) so that a given decision always yields the same bytes. These three choices are the reference gate's and are candidates for the next draft, not requirements of this one.

6.3 TTL guidance

Deal assuranceToken TTLConsequence
Standard24 hTokens already issued run out within 24 h; one issuance per day.
Elevated1 hTokens already issued run out within 1 h.
High-assurance15 minTokens already issued run out within 15 min; each issuance costs one signature.

The TTL is one part of revocation latency, not the whole of it. See §6.4.

Expiry shutoff does not depend on the TTL, because of the min() rule in §6.2 step 3: the last token issued before valid_until expires at valid_until (plus grace).

6.4 Lifecycle flows

EventAction requiredPropagation
GrantThe licensor anchors the grant declaration once, at signing.Tokens are issuable from valid_from.
RenewalAnchor a new grant, or a superseding grant with an extended window, before expiry.No interruption if anchored before expiry; the renewal chain is the renewal history.
Expiry (non-renewal)None.Issuance fails at valid_until plus grace; by the §6.2 step 3 rule no token outlives that instant.
Breach revocationAnchor one superseding declaration that lists the actor explicitly as reserved. This is the only human decision in the system.Anchoring time, plus re-check interval, plus one token TTL (see below).
Re-grantAnchor a fresh grant.On anchor confirmation.
DunningThe Gate SHOULD emit notifications to both parties 30, 7 and 1 days before the anchored valid_until.Non-normative courtesy.

A revocation declaration MUST list the revoked actor explicitly with status reserved. Restating only the any / reserved default is not enough: a different live declaration that still names the actor would outrank it.

Revocation latency has three parts. The superseding declaration has to be anchored and confirmed, because an unverified supersession revokes nothing. The Gate has to learn of it, which takes up to one re-check interval (at most one TTL, §6.5). Tokens issued just before that remain valid for up to one TTL. With a reachable registry the Gate-side delay is therefore at most 2 x TTL. With an unreachable registry it is at most max_staleness plus one TTL, which is 3 x TTL at the recommended setting.

6.5 Offline enforcement and fail-closed semantics

  • The Gate MUST hold a locally verified bundle (declaration, proof block, inclusion proof, anchored root and transaction id) for every grant it enforces, verified per ADP-1 §7 at cache time. Note that ADP-1 §7 step 4 for dns-01 is a check made at verification time; this draft does not yet say whether a Gate re-checks authority during a long grant term.
  • Expiry enforcement requires no liveness at all: the window is in the local verified bytes. A Gate cut off from the registry and from Arweave still refuses to issue tokens for expired grants, provided its clock is correct.
  • Revocation freshness: the Gate MUST re-check for supersessions at least once per token TTL. This draft assumes a conditional registry lookup by actor, GET /v1/lookup?actor=...&as_of=now. That lookup is proposed here and is not defined in ADP-1. If the registry is unreachable, the Gate MUST NOT extend trust beyond the current bundle for longer than max_staleness (RECOMMENDED: 2 x TTL); past that it MUST fail closed for new issuance. Tokens already issued stay valid until they expire. A re-check counts as successful only if every declaration it returned was verified; a returned declaration that could not be verified may be the revocation. Consequences: registry downtime does not extend expired access (assuming a correct Gate clock), and can delay learning of a revocation by at most max_staleness.
  • max_staleness only covers an unreachable registry. A reachable registry that withholds a supersession is not detected by it. The Gate therefore trusts its lookup source for revocation freshness. Mitigation: the licensor is the declarant of every supersession and SHOULD deliver its own supersessions to its Gate directly, not only through the registry.
  • A Gate MUST keep a durable record of the declarations it has seen superseded. A Gate that is restarted and given an old set of bundles without the revocation would otherwise treat the revoked grant as live.

7. Deployment architectures

ArchitectureWhat RGE-1 delivers
A. Gated retrieval. The corpus stays licensor-side; the licensee retrieves at query time.Control over new access: expiry is shutoff, and revocation takes at most one TTL.
B. Hybrid. Gated retrieval, plus licensee-side caching of retrieved passages where the contract permits it.Shutoff of all new access. Cached passages are outside the Gate's reach and are governed by the contract.
C. Bulk delivery. The corpus is shipped to the licensee.No technical shutoff. An evidentiary layer only: a provable licence window. Do not represent RGE-1 as access control in this architecture.

RGE-1 conformance claims MUST only be made for architectures A and B.

8. Audit and evidence

8.1 Issuance log (normative schema)

One row per decision, including denials:

{
  "event_id": "...",
  "t": "2027-03-01T00:00:02Z",
  "actor": "rge:licensee:example-licensee",
  "decision": "DENY",
  "state": "EXPIRED",
  "authorizing_declaration": "01JRGE0000000000000GRANT1",
  "declaration_leaf_hash": "...",
  "anchor_tx": "...",
  "scopes_requested": ["retrieve:news"],
  "token_id": null,
  "token_exp": null,
  "prev_row_sha256": "..."
}
  • An ALLOW row MUST record the token's expiry (token_exp), so the log alone shows that no token outlived its grant window.
  • Rows MUST be hash-chained (prev_row_sha256) and the log stored append-only. The hash chain alone does not stop the Gate operator from rebuilding the log. The Gate SHOULD therefore anchor the log's rolling head hash to the registry daily, which makes the history tamper-evident up to each anchored head. Rows written after the last anchored head are not covered, and a bare chain cannot show that rows were removed from the end.
  • Retention: the longer of contract life plus seven years, or the maximum applicable limitations period.

8.2 What the combined record shows after termination

The anchored grant chain, the hash-chained issuance log and (optionally) the licensee's own lookup logs together record: the terms and window the licensor declared (the licensee does not sign the declaration, so it is not by itself proof of agreed terms); every renewal; the revocation or expiry instant; whether tokens were issued only within live windows; and that requests after the window were denied. The grant chain does not depend on either party's account. The issuance log depends on the Gate having been run honestly (§3). What legal weight such a record carries in a dispute is a question for counsel in the relevant jurisdiction and is outside this specification.

9. Security considerations

  • Stolen token. Bounded by TTL and scope. This draft's token format has no confirmation claim, so a token is not bound to the client that requested it. Binding tokens to a client certificate (RFC 8705) is RECOMMENDED and is left to the next draft.
  • Stolen client credential. Confers nothing without a LIVE grant. Issuance events with an anomalous rate SHOULD alert (the grant carries max_qps).
  • Clock attacks on the Gate. The Gate uses NTP-disciplined time, and the window bounds come from anchored bytes. Clock skew can be monitored by comparing against recent Arweave block times; this draft does not specify that check.
  • Licensor rewrites history. An anchored record cannot be altered without detection (ADP-1 §8.6), and the licensee holds its own copies of the grant bundles.
  • Licensor refuses to run the Gate honestly. Out of cryptographic scope (§3). The anchored chain still fixes the rights timeline for any dispute.
  • Third-party supersession. ADP-1 lets anyone anchor a declaration, and a declaration can name any other in supersedes. A Gate that honoured every verified supersession could be made to revoke a grant by a stranger. The declarant-key rule in §5 step 1 prevents this.
  • Registry compromise. A compromised registry cannot forge or backdate grants, which are declarant-signed and anchored. It can withhold new supersessions (max_staleness bounds this only when the registry is unreachable; see §6.5 for the mitigation), anchor an old declaration again to make it look newer (the earliest-anchor rule in §5 step 1 defeats this), and replay an old set of bundles to a restarted Gate (the durable record in §6.5 defeats this).
  • Exfiltration by the licensee. Out of scope for the Gate; addressed by detection and by contract.

10. Known limitations

RGE-1 cannot claw back bytes already delivered (choose architecture A or B). It cannot police derived artifacts such as embeddings and caches, except through detection and contract. It adds one trust assumption, an honest licensor-side Gate, that is auditable but not cryptographically forced. Its revocation latency is a policy setting, not zero, and it is longer than the token TTL (§6.4). grace_period_seconds has no upper bound in this draft. As of this draft it has a reference gate and test vectors, written by the author of the specification. It has no second implementation, no deployment, and no independent review.

11. Conformance summary

A conforming RGE-1 Gate:

  • verifies every enforced grant per ADP-1 §7;
  • resolves state per §5, with most-specific-actor matching and supersession walking;
  • never issues a token that outlives its grant window;
  • fails closed per §6.5;
  • logs every decision per §8.1, hash-chained;
  • and makes conformance claims only for architectures A and B.

Draft v0.1. Feedback: hunter@akaeon.com.