Copyright © 2026 the Contributors to the RecordWeb Protocol (RWP), published by the RecordWeb Community Group under the W3C Community Contributor License Agreement (CLA). A human-readable summary is available.
-
VC-DATA-INTEGRITY: Verifiable Credential Data Integrity 1.0. W3C. URL: https://www.w3.org/TR/vc-data-integrity/
-
VC-DI-EDDSA: Data Integrity EdDSA Cryptosuites v1.0. W3C. URL: https://www.w3.org/TR/vc-di-eddsa/
1. Introduction and Scope
1.1. Purpose
The RecordWeb Protocol (RWP) is the normative technical specification for the creation, identification, versioning, linking, and cryptographic proof of Records in RWP-compliant systems.
The RecordWeb Concept ([RWC]) is an informative conceptual document. This specification defines the normative terminology and requirements for RWP conformance.
1.2. Scope
This document applies to:
-
Systems that create, store, or manage Records in the sense of the [RWC]
-
Systems that import Records from other RWP-compliant systems or access them
-
Implementations claiming interoperability with other RWP-compliant systems
This document does not apply to:
-
The internal storage architecture of a compliant system (database, file system, object store)
-
User interfaces and workflows built on top of an RWP-compliant system
-
The content of payloads, insofar as these are not standardised by the schema of the Record type
1.3. Relationship to Other Standards
| Standard | Relationship |
|---|---|
| [DID-CORE] | RWP uses DIDs as the identity mechanism; conformance with W3C DID Core 1.0 is REQUIRED |
| [PROVO] | RWP lineage MAY be serialised as PROV-O. PROV-O serialisation is not required for RWP conformance. |
| [VC-DATA-INTEGRITY] | The proof structure of RWP follows the Data Integrity proof structure; RWP does not require the Verifiable Credentials data model.
|
| [VC-DI-EDDSA] | eddsa-jcs-2022 is the only permitted cryptosuite.
|
1.4. Versioning of This Document
This document uses semantic versioning (SemVer): MAJOR.MINOR.PATCH.
-
MAJOR: Incompatible changes to existing standards
-
MINOR: Backward-compatible extensions
-
PATCH: Corrections without substantive change
1.5. Roles
RWP defines the following implementation roles:
-
A producer creates a new Record or a new version, including its finalisation where applicable. A producer MUST fulfil all requirements applicable to the profile, Record type, and operation it performs when creating, modifying, or finalising a Record representation.
-
A custodian retains, manages, and makes Records or versions retrievable. For each Record representation within its claimed scope, a custodian MUST preserve the information required to verify its applicable RWP integrity and versioning requirements. A custodian is not required to create a new Record or version solely by claiming the custodian role.
-
A consumer retrieves and validates Records created or managed by another implementation. A consumer MAY validate Records according to chapter Validation. A consumer MUST NOT represent an object as successfully validated unless the validation response is 200.
-
A resolver resolves
did:rwpidentifiers and returns the associated DID documents according to the applicable RWP DID-document requirements. A resolver is not required to publishserviceentries (see Service Entries). -
A source-adapter obtains, normalises, and exposes source-provenance information from a non-RWP source system. A source-adapter MAY provide source content to a producer through a mutually agreed mechanism. A source-adapter MUST NOT represent a source-integrity statement as an RWP Record-integrity statement unless it has also created and validated the corresponding RWP Record representation.
-
An attester creates and finalises a ConformanceRecord concerning an implementation assessment.
-
A verifier verifies a Record, a Version a Content or a DID Document
A role describes a responsibility. It does not imply that an implementation fulfils requirements outside its claimed profiles, roles, or exercised capabilities.
An implementation MAY perform more than one RWP role.
Part I: Record Model
2. The Record
2.1. Definition
Every Record has the meaning defined in [ISO15489] and MUST consist of exactly four components:
-
Identity: the DID of the Record (Record Identity (DID))
-
Metadata: descriptive dimensions of the Record (Record Metadata)
-
Payload: the Versions of the Record and their Content (Record Payload and Versions)
-
Integrity: the hash of the Record (Record Integrity)
{
"did": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:a95437ee-25e4-469a-a2e1-c2b250b21e15",
"metadata": {},
"payload": [],
"recordHash": "sha256:57715def0857e907168e5c74240e6e6d2e8679a66f8da7f1d2e7f09e1cf93b06"
}
Any concrete Record is typed by metadata.core.recordType and metadata.core.schemaVersion, based on a SchemaRecord.
2.2. Taxonomy
For semantic interoperability, a Record is a specialization of 'prov:Entity'. The term Record remains the primary term of this specification. The term 'prov:Entity' is used only for a [PROVO]-compatible semantic representation.
@prefix prov: <http://www.w3.org/ns/prov#> . @prefix rw: <https://w3id.org/recordweb/ontology#> . rw:Record rdfs:subClassOf prov:Entity .
2.3. Conceptual Purpose
The conceptual purpose classifies Records for the interpretation of this specification. It MUST NOT be interpreted as a mandatory implementation inheritance hierarchy or a mandatory JSON type hierarchy. The Record type of a concrete Record is defined by its SchemaRecord and the type chain of that SchemaRecord (§ 13.4 Subclass).
Every Record has one primary conceptual purpose (as described in RWC): - InformationRecord - RelationRecord - AgentRecord - SystemRecord
3. The DID Document
3.1. Definition
For every Record, a DID Document MUST exist. A DID document is a chain of immutable DID document versions (see DID Document History). Each version contains the following fields:
| Field | Required | Description |
|---|---|---|
@context
| MUST | Array of context URIs. MUST start with https://www.w3.org/ns/did/v1. A DID document that contains a Multikey MUST additionally include https://w3id.org/security/multikey/v1 |
id
| MUST | DID of the Record; identical to the Record DID. MUST NOT change between versions |
recordEndpoint
| MUST | Array of URLs at which the Record can be retrieved. The recordEndpoint and the id together MUST form a full URL.
|
created
| MUST | ISO 8601 timestamp of DID creation. MUST NOT change between versions |
updated
| MUST | ISO 8601 timestamp of this DID document version. Defines versionTime resolution
|
currentVersionHash
| MUST | versionHash of the current finalised Record version. Omitted if the Record has no finalised version
|
previousVersionHash
| MUST | versionHash of the preceding DID document version. Omitted in the first version
|
proof
| MUST (when finalized, unless the schema defines signaturePolicy none) | One or more Data Integrity proofs over the DID document. See Proof Procedure |
service
| MAY | Array of service entries according to [DID-CORE] (id, type, serviceEndpoint) declaring additional, optional access channels (see Service Entries)
|
controller
| MAY | AgentRecord(s) that control this DID document, per [DID-CORE]. Proofs of this DID document are verified against the DID documents of the controllers. |
verificationMethod
| MAY | Per [DID-CORE]. Each entry MUST contain id (DID URL), type Multikey, controller (DID of the AgentRecord) and publicKeyMultibase. MUST be present for every key used to sign.
|
assertionMethod
| MAY | Verification methods allowed for Version proofs (proofPurpose assertionMethod). |
capabilityInvocation
| MAY | Verification methods allowed for proofs of DID document versions (proofPurpose capabilityInvocation). |
{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3id.org/security/multikey/v1"
],
"id": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:a95437ee-25e4-469a-a2e1-c2b250b21e15",
"recordEndpoint": [
"https://recordweb.org/resolver/records/"
],
"created": "2026-10-26T18:20:00Z",
"updated": "2026-10-26T18:20:00Z",
"currentVersionHash": "sha256:474425f9f1f2d1fe78bcec3f41a579c02d5261161c489ab22296980075f37895",
"proof": [],
"verificationMethod": [{
"id": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:efd09e7b-5f65-4637-b06c-404a9da97f0b#key-1",
"type": "Multikey",
"controller": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:efd09e7b-5f65-4637-b06c-404a9da97f0b",
"publicKeyMultibase": "z6MkpgYzzH9AJJTnsYYMEaaVPZN2t2iCsz76ShftvkBt5jpP"
}],
"assertionMethod": [ "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:a95437ee-25e4-469a-a2e1-c2b250b21e15#key-1" ],
"capabilityInvocation": [ "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:a95437ee-25e4-469a-a2e1-c2b250b21e15#key-1" ]
}
3.2. History
Every change of a DID document MUST create a new DID document version. A DID document version is immutable once published. Only id and created MUST NOT change; all other fields MAY change.
A new DID document version MUST be created, and currentVersionHash and updated MUST be set accordingly, when:
-
a Record version is finalised;
-
the storage location (
recordEndpoint) changes; -
a payload deletion is executed (see Payload Deletion);
-
serviceorproofare added, changed or removed.
A new version MUST reference the current latest version as previousVersionHash. A producer or custodian MUST reject a new version whose previousVersionHash is not the versionHash of the latest version.
3.3. versionHash
The versionHash identifies a DID document version and is calculated as follows:
-
Serialise the DID document fields
@context,id,controller,recordEndpoint,service,verificationMethod,assertionMethod,capabilityInvocation,created,updated,currentVersionHash,previousVersionHash, andproofas canonical JSON ([RFC8785]). Fields not present are omitted. -
Calculate SHA-256 over the result.
-
Encode the digest as
sha256:followed by 64 lowercase hexadecimal characters.
versionHash = "sha256:" + hex( SHA-256( canonicalize({@context, id, [controller], recordEndpoint, [service,] [verificationMethod,] [assertionMethod,] [capabilityInvocation,] created, updated, [currentVersionHash], [previousVersionHash], [proof]}) ) )
Fields not present are omitted.
3.4. History Verification
A verifier checking a DID document version MUST:
-
recompute the
versionHash; -
check that
previousVersionHashequals theversionHashof the predecessor; -
verify at least one
proofas defined in Proof Procedure; -
check that
updatedis later thanupdatedof the predecessor.
The verification method of a proof MUST be listed in capabilityInvocation of (a) the preceding DID document version, if the DID document belongs to an AgentRecord. For the first version it is the version itself. (b) the current DID document of one of its controllers, for any other DID document.
3.5. Service Entries
A DID document MAY contain a service property. Each entry MUST follow the structure defined for service in [DID-CORE] and MUST have id, type and serviceEndpoint.
The recordEndpoint remains the only mandatory access channel. An implementation is not required to offer any service entry.
A service entry is a declaration of availability. It is not a grant of access. Authorisation for using a declared service MUST remain subject to the applicable access policy (see Access Control).
This specification defines the following type values:
| type | Meaning |
|---|---|
RWPPublicRecordAccess
| Endpoint returning a restricted or public view of the Record for requesters without full access rights |
RWPRecordReferrers
| Endpoint returning all finalised RelationRecords (CaseRecord and AssertionRecord) referring to this Record within the same namespace. The response contains a list of records each with a list of finalised versions
|
RWPFunctionRegistry
| Endpoint returning a machine-readable list of the functions supported for the Record, derived from the capabilities of its SchemaRecord (see SchemaRecord)
|
Other type values, including protocol-specific ones (for example DIDCommMessaging or an MCP-based channel), MAY be used. Their semantics are defined by their respective specifications and are outside the scope of RWP.
A DID document MUST NOT be treated as immutable in the sense of a fixed resolution result, since a new version MAY be created at any time. A specific version, identified by versionHash, is immutable.
3.6. Resolver Requirements
An implementation claiming the resolver role MUST provide a DID resolver that:
-
Resolves DIDs of the method
rwpand returns the associated DID document -
Delivers the DID document as JSON-LD in accordance with [DID-CORE]
-
Where the DID document contains a
serviceproperty, delivers it as part of the DID document. -
Supports the resolver options
versionHashandversionTime -
Returns HTTP 200 when the DID is known
-
Returns HTTP 400 when both
versionHashandversionTimeare given -
Returns HTTP 403 where the resolver’s applicable access policy does not permit the requester to obtain the DID document
-
Returns HTTP 404 when the DID is unknown, when
versionHashis unknown, or whenversionTimeis earlier thancreated -
Returns HTTP 410 when the DID is known but the Record has been deleted completely (see Deletion). Payload deletion does NOT result in 410
-
Retains every DID document version for as long as the DID is resolvable. Payload deletion does not remove the history
versionHash and versionTime are mutually exclusive. Without either, the resolver MUST return the latest version. With versionHash, it MUST return exactly that version. With versionTime, it MUST return the version with the greatest updated less than or equal to the given time.
An implementation claiming another RWP profile or role MAY rely on a resolver operated by another conformant implementation. It is not required to operate a DID resolver itself unless it claims the resolver role.
A producer or custodian that creates or manages RWP Records MUST ensure that the associated Record DIDs remain resolvable in accordance with this specification.
4. Record Identity (DID)
4.1. Definition
Every Record MUST possess a globally unique, permanent Identity.
This identity:
-
MUST be independent of the physical storage location of the Record
-
MUST be independent of the organisation managing the Record
-
MUST NOT be changed after the Record has been created
-
MUST remain valid without change even after a system migration
-
MUST be machine-resolvable (a resolver MUST be able to retrieve the DID document from the identity)
4.2. DID Format
The identity of a Record MUST be expressed as a Decentralized Identifier (DID) in accordance with [DID-CORE].
Normative format:
did:rwp:<namespace>:<recordId>[:<versionHash>][:<contentHash>]
The <namespace> component identifies the resolution scope of the DID.
The <recordId> component identifies a Record within that scope.
The <versionHash> component MUST NOT be part of the identity a Record, identifies a specific version of the Record.
The <contentHash> component MUST NOT be part of the identity a Record, identifies a specific content within the version.
| Component | Requirement Level | Encoding | Constraints |
|---|---|---|---|
did:rwp:
| MUST | fixed, lowercase | MUST be prefixed exactly as shown; no uppercase variants permitted |
<namespace>
| MUST | UUIDv4 (global) or implementation-defined (local) | See below, globally or locally resolvable RWP DIDs |
<recordId>
| MUST | Implementation-defined (1 to 128 characters from a-z, 0-9, ".", "-" and "_") | The first and the last character MUST be a letter or a digit. A UUIDv4 in canonical form is strongly RECOMMENDED. A recordId MUST be unique within its namespace and MUST NOT be reused, not even after a full deletion. |
<versionHash>
| MAY (optional) | 64 lowercase hex characters | MUST NOT carry an algorithm prefix; MUST NOT be treated as part of DID identity; resolver behaviour undefined |
<contentHash>
| MAY (optional) | 64 lowercase hex characters | MUST NOT carry an algorithm prefix; MUST NOT be treated as part of DID identity; resolver behaviour undefined |
| Further segments | MUST NOT (global); MAY (local) | --- | Global: implementations MUST assume that no additional segments exist. Local: entirely implementation-defined, no constraint by this specification |
Global: did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:efd09e7b-5f65-4637-b06c-404a9da97f0b Global with versionHash: did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:efd09e7b-5f65-4637-b06c-404a9da97f0b:474425f9f1f2d1fe78bcec3f41a579c02d5261161c489ab22296980075f37895 Local did:rwp:example.com:f47ac10b
4.3. Globally resolvable RWP DIDs
A globally resolvable RWP DID MUST use a UUID version 4 in canonical textual representation as namespace. The namespace MUST be opaque. It MUST NOT encode organisational names, geographical identifiers, network locations, resolver endpoints, or other routing semantics.
The recordId of a globally resolvable RWP DID follows § 4.2 DID Format. It SHOULD be a UUIDv4 and MAY be a descriptive identifier. It MUST NOT encode network locations, resolver endpoints, or other routing semantics, and SHOULD NOT contain personal data. An implementation MUST NOT derive the Record type, the owner, or any other property of a Record from the recordId.
The canonical UUIDv4 representation MUST:
-
consist of 36 characters;
-
use lowercase hexadecimal characters only;
-
use hyphens in the
8-4-4-4-12form; -
encode UUID version 4 and the RFC 4122 variant.
A DID conforming to this form is eligible for resolution through the RecordWeb Global Namespace Registry (RW GNR). Eligibility for global resolution does not imply that the Record, its metadata, or a DID Document is publicly accessible (see also Chapter Access Control).
4.4. Locally scoped RWP DIDs
A DID whose <namespace> component does not conform to the canonical UUIDv4 syntax is a locally scoped RWP DID.
A locally scoped RWP DID MUST NOT be submitted to, registered in, or resolved through the RecordWeb Global Namespace Registry (RW GNR).
Resolution of a locally scoped RWP DID requires additional local knowledge, configuration, credentials, or an applicable local resolver. A client that does not possess such information MUST treat the DID as not globally resolvable and MUST NOT infer a resolver endpoint from the DID value.
4.5. Version Hash and Content Hash component
A RWP DID MAY include optional segments.
The <versionHash> and <contentHash> component, where present, MUST be encoded as a bare SHA-256 digest in lowercase hexadecimal representation, consisting of exactly 64 characters. It MUST NOT carry an algorithm prefix (such as sha256:) or any other decorator, to avoid introducing an additional colon-delimited substructure within a colon-delimited DID segment.
The <versionHash> and the <contentHash>components are not part of the identity of the DID. The identity of an RWP DID is established exclusively by the <namespace> and <recordId> components. Two DIDs that differ only in the presence, absence, or value of a <versionHash> and <contentHash> component MUST be treated as identifying the same Record.
Where present, <versionHash> and <contentHash> MAY be used by a resolver as an optional aid when resolving the DID to a specific Record version.
A DID that contains a versionHash is a Hard Link. It refers to exactly one Version of the identified Record. The Version MUST be a Version in the payload of that Record. A DID without versionHash is a Soft Link. It refers to the Record independent of a specific Version.
4.6. Additional segments
For a locally scoped RWP DID, the structure of the DID beyond the <namespace>, <recordId>, <versionHash> and <contentHash> component, including the number, syntax, and semantics of any further colon-delimited segments, is entirely implementation-defined.
5. Metadata
Metadata is the descriptive and governing information attached to a Record, independent of its payload. Unlike payload entries, metadata is not itself versioned as a sequence of versions; it MAY be updated in place. Metadata changes are nonetheless covered by the Record-level recordHash defined in Record Integrity, so that any change to metadata is detectable.
Metadata is organised into three groups: core, governance, and extensions.
{
"metadata": {
"core": {
"recordType": "did:rwp:2fe14680-575a-4da4-aa65-6e72e0866e9b:5264d2c3-d3b1-411c-829f-90e61165251a",
"schemaVersion": "sha256:a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae",
"transit": "internal"
},
"governance": {
"owner": "did:rwp:bern.ch:unit-baubewilligung",
"classification": "internal",
"retentionPolicy": "did:rwp:bern.ch:retention-bauakten-30y",
"tags": ["building-permit", "parcel-451", "2026"]
},
"extensions": []
}
}
5.1. metadata.core
Every Record MUST contain the following core metadata fields:
| Field | Required | Type | Description |
|---|---|---|---|
recordType
| MUST | DID | DID of the SchemaRecord that defines the Record type |
schemaVersion
| MUST | SHA-256 | versionHash of the SchemaRecord Version against which the current Version was validated |
transit
| MUST | String | Direction of the Record relative to its namespace. One of incoming, internal, outgoing (See Transit)
|
provenanceRef
| MUST if transit is incoming, MUST NOT otherwise
| Object | Statement about the origin of the information outside the namespace. See Transit |
context
| MAY | String | Metadata for records should contain a business context (According [ISO15489] 5.2.3) |
abstract
| MAY | String | Metadata for records should contain a description of the content of the record (According [ISO15489] 5.2.3) |
5.1.1. Transit
Transit describes the direction of a Record relative to the namespace in which it is created. It is independent of the Record type and of the state of a Version.
| Value | Meaning |
|---|---|
incoming
| The Record was created in this namespace upon receipt of information that originates outside the namespace. The Record is a copy of externally originated information. |
internal
| The Record is intended for use within the namespace and is not intended to be handed out or published outside it. |
outgoing
| The Record is intended to leave the namespace, for example by being handed out, sent, or published. |
The value of transit reflects the circumstances of the origin of the Record. It is declared when the Record is created and SHOULD NOT be changed afterwards.
A SchemaRecord MAY restrict the permitted values of transit for its Record type.
5.1.2. Provenance reference
A Record with transit incoming MUST contain a provenanceRef. A Record with any other transit value MUST NOT contain a provenanceRef.
| Field | Required | Type | Description |
|---|---|---|---|
sourceDescription
| MUST | string | Human-readable description of the origin. |
capturedAt
| MUST | string | ISO 8601 timestamp of the receipt or capture of the information. |
capturedBy
| MUST | string | Identifier of the party that received or captured the information. |
sourceSystem
| MAY | string | Identifier of the external source, as defined in RWP Source Integration Conformant. |
sourceId
| MAY | string | Identifier of the source object, as defined in RWP Source Integration Conformant. |
sourceObjectType
| MAY | string | Type of the source object, as defined in RWP Source Integration Conformant. |
sourceIntegrity
| MAY | string | Integrity statement about the source object, with the values and meaning defined in RWP Source Integration Conformant. |
5.2. metadata.governance
A Record MAY contain the following governance metadata fields. These fields express Records Management concerns (accountability, classification, retention, discoverability) as defined in [ISO15489].
| Field | Required | Type | Description |
|---|---|---|---|
owner
| SHOULD | DID | The person or organisational unit currently responsible for the Record, identified by an AgentRecord. See note below on the relationship between owner and version proof.
|
classification
| SHOULD | String | Protection level per the organisation’s internal scheme |
retentionPolicy
| SHOULD | DID | Reference to a retention rule. See Payload Deletion for how this field interacts with the applicable deletion regime. |
tags
| MAY | Array<String> | Free-text markers for search and filtering |
The owner field expresses organisational accountability and MAY change over the lifetime of a Record (e.g. following a transfer of responsibility). It is independent of the cryptographic proof carried by an individual version (see versionHash):
-
proofprovides cryptographic evidence of who authorised a specific version’s content at finalisation, resolvable via the DID document’scontrollerfield. -
ownerprovides the current, human-readable statement of organisational responsibility for the Record as a whole, independent of which key signed the most recent version.
Where a schema defines signaturePolicy: system (see Finalisation Requirements), the proof identifies an authorised system key rather than a responsible person or unit. In this case, owner is the only field that expresses organisational accountability.
An implementation MUST NOT infer the current owner solely from the controller of the most recent version’s proof.
5.3. metadata.extensions
A Record MAY contain an extensions array. Each entry is a self-describing object that extends metadata with schema- or profile-specific information not defined by this specification.
Every extension entry MUST contain:
| Field | Required | Type | Description |
|---|---|---|---|
type
| MUST | DID | Identifies the SchemaRecord or profile that defines the semantics and additional fields of this extension entry |
Additional fields within an extension entry are defined entirely by the SchemaRecord or profile identified in type. This specification does not itself define any extension entry.
A Record MAY contain zero, one, or multiple extension entries. A conforming implementation MUST NOT require support for any extension type unless it claims the corresponding profile or capability.
Chapters of this specification that define an optional capability MAY specify that the capability’s data is carried as an extension entry. Where they do so, they identify the applicable type value and the additional fields of that entry.
6. Payload and Versions
6.1. Definition
A Record MAY exist without a Payload property and therefore without a Version.
When present, the Payload property MUST contain one or more Version objects.
Each Version object MUST contain one or more Representations.
A Version object represents a specific materialised Version of a Record. The versionHash property identifies that Version and provides its Integrity value as defined in § 7.3 Version Hash Calculation.
A Payload entry that does not contain at least one valid Representation is not a Version and MUST NOT be used as a payload entry.
The Payload of a Record is an ordered array of Versions. Each Version is one immutable, versioned Representation of the Record’s content at a specific point in time.
| Field | Type | Required | Description |
|---|---|---|---|
versionHash
| SHA-256 | MUST | Contains the hash calculated in accordance with § 7.3 Version Hash Calculation. |
versionReason
| String | MAY | A Version should contain a description of action and events involving the record (According [ISO15489] 5.2.3) |
state
| Enum | MUST | draft or finalized; additional values permitted per type schema
|
parents
| Array<SHA-256> | MUST | Hashes of predecessor Versions; empty for the root Version |
createdAt
| ISO 8601 | MUST | Timestamp of Version creation |
modifiedAt
| ISO 8601 | MUST | Timestamp of the last change to this Version. For a finalized Version this is the finalisation timestamp, since a finalized version cannot change thereafter.
|
proof
| Array of Proof | MUST (when finalized, unless the schema defines signaturePolicy none)
| One or more Data Integrity proofs over the finalized Version. See Proof Procedure. |
representations
| Array | MUST (min. 1) | Format representations of this versions’s content, per Representation |
Where the primary Representation of a Payload entry has the format application/json, its content MUST conform to the jsonSchema of the referenced schema Version and of every SchemaRecord in its type chain (§ 13.4 Subclass). For other formats, the schema defines only the permitted states and formats.
Each Payload entry:
-
MUST be validated against the schema before finalisation
-
MUST NOT be changed after finalisation, except by the deletion of its Representations according to § 14 DeletionRecord Specification
-
MUST link to its predecessor versions by directed edges in the version graph (see Version Graph (DAG))
{
"payload": [
{
"versionHash": "sha256:a86a4b1e25a3b436522a5047e8bf6c485ca502dfeff65fe7a5783228d16fb3e2",
"state": "finalized",
"parents": [],
"createdAt": "2026-10-28T10:29:00Z",
"modifiedAt": "2026-10-28T10:29:00Z",
"proof": [
{
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-jcs-2022",
"created": "2026-10-28T10:29:00Z",
"verificationMethod": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:efd09e7b-5f65-4637-b06c-404a9da97f0b#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "zfLVYZBoebLUnYAHvno1KNdAQztgotFQV9AW1CKNEb2ueqH8xor3PXt971utE9WQyyXcZsEEA3q3VmL5sUi3MSNU"
}
],
"representations": [
{
"format": "application/json",
"content": {
"title": "Hello RecordWeb",
"description": "First instance of the SampleRecord type."
},
"contentHash": "sha256:30b186a5c492b14e2432419905b5343882eb9fc94940fd9e04cfcf7fd4fd058c",
"primary": true,
"role": "source"
}
]
}
]
}
6.2. Representations
A Representation describes one material form of the Content of a Version.
-
Each Representation MUST contain exactly one of
content,refordeleted. -
A Representation that contains
contentMUST containcontentHash. -
A Representation that contains
refMUST NOT containcontentHash.
A Version MAY carry multiple representations. This is provided in particular for the transition from working format (draft) to long-term format (finalised). Representations express the same content in different formats at the same point in the version graph; they MUST NOT be used to express different versions over time, that is the purpose of separate versionHash entries linked via parents.
If a Version contains multiple Representations, ALL of the following MUST apply:
-
All Representations MUST depict the same Content
-
Exactly one Representation MUST be designated as primary (
primary: true), this content will be used for further work (new Versions).
| Field | Type | Required | Description |
|---|---|---|---|
format
| string | MUST | MIME type incl. profiles |
content
| see below | MUST WHEN no ref exists | Contains the inline content of the Representation |
contentHash
| SHA-256 | MUST WHEN content exists | Contains the hash calculated in accordance with § 7.4 Content Hash Calculation |
ref
| string | MUST WHEN no content exists | Contains a reference to externally held, locally held, or physical content |
deleted
| DID | MUST WHEN no content and no ref exists | DID of the DeletionRecord that deleted the Representation. A Representation containing deleted MUST NOT contain content, ref or contentHash. |
primary
| boolean | MUST | Exactly one representation MUST be true
|
role
| string | SHOULD | Semantic role: source, publication, preview, archive
|
Content:
-
For JSON media types (application/json and +json), content is the JSON value itself (object, array, string, and so on). It is placed unchanged in the hash input.
-
For other textual media types (for example text/markdown), content is a JSON string containing the text (UTF-8).
-
For binary media types (for example application/pdf), content is a JSON string containing the bytes encoded as Base64 per [RFC 4648] §4, with padding and without line breaks. (Alternative: Base64url, if preferred.)
6.3. Permitted Payload Content Types
RWP distinguishes three Payload content categories:
| Category | Description | Examples |
|---|---|---|
| Structured | Machine-readable, schema-validatable data | JSON, XML, YAML |
| Documentary | Human-readable documents with defined structure | PDF/A, DOCX, ODT, Markdown |
| Binary | Non-textual data with descriptive schema | TIFF, JPEG 2000, MP4, ZIP |
6.4. RWP archival-grade formats (normative)
| MIME Type | Format | Suitability |
|---|---|---|
application/pdf;profile=PDF-A-1b
| PDF/A-1b | Documents without embedded multimedia |
application/pdf;profile=PDF-A-2b
| PDF/A-2b | Documents with embedded files |
application/pdf;profile=PDF-A-3b
| PDF/A-3b | Documents with arbitrary attachments |
text/xml
| XML (well-formed) | Structured data |
application/json
| JSON | Structured data (with schema reference) |
image/tiff
| TIFF | Raster images |
image/jp2
| JPEG 2000 | Raster images (near-lossless) |
text/plain;charset=UTF-8
| Plain Text UTF-8 | Pure text documents |
text/markdown
| CommonMark Markdown | Source format with publication representation |
6.5. Format Requirements per State
The schema of a Record type MUST define the permitted payload formats for each state. If a schema contains no explicit format requirements, the following defaults apply:
| State | Permitted formats (default) |
|---|---|
draft
| All MIME types not explicitly excluded in the schema of the Record type |
finalized
| Only formats listed under RWP archival-grade formats |
6.6. Conversion During Finalisation
When a system transitions a Record from state draft to finalized, it MUST:
-
Validate the payload against the finalised format of the schema
-
If the current payload is not in archival-grade format: convert automatically or request conversion from the operator
-
Store both formats as multi-representation in a Version (SHOULD)
-
Document the conversion act as metadata (
conversionMethod,conversionTimestamp)
A system MUST NOT finalise a Record whose payload does not conform to the format defined for finalized and for which no archival-grade conversion is possible.
A system MUST verify the versionHash after every finalisation before the Version is accepted as valid.
6.7. States and Transitions
6.7.1. State Model
Every Record Version has exactly one State. The State describes the validity and linkability status of the Version.
Core states:
| State | Linkable | Immutable | Description |
|---|---|---|---|
draft
| YES | NO | Being processed; content may change |
finalized
| YES | YES | Complete; content cryptographically secured |
A Record type MUST permit the state finalized. It MAY permit draft. A Record type MAY define additional states. These MUST be specified in the SchemaRecord and MUST be reachable from one of the core states or lead into one.
Example of an extended state machine for type "contract":
draft → in-review → finalized ↓ rejected (terminal state, not linkable)
6.7.2. Linkability
A Version MUST be in the finalized state to be the target of a Hard Link (§ 4.5 Version Hash and Content Hash component). A system MUST return an error when a Hard Link is set to a Version that is not finalized. Soft Links MAY point to Records in any state, including draft Records.
A system MUST return an error when an attempt is made to set a Hard Link to a Record that is not in the finalized state.
6.7.3. Finalisation Requirements
A system MUST perform the following checks before finalising a Version:
-
Schema validation: Payload conforms to the schema in the version defined for
finalized -
Format validation: Payload format conforms to the
payloadFormats.finalizedrequirements of the schema -
Mandatory field check: All MUST metadata fields are present and correctly typed
-
Proof: If the schema defines
signaturePolicyowner, the Version MUST carry at least one proof whose verification method is controlled by the record owner. ForsignaturePolicysystem, the proof MAY be generated with an authorised system key. ForsignaturePolicynone, proof validation is omitted. -
Parent integrity: All referenced parent hashes are resolvable in the system
-
Issuance check: If the Version carries an
issuanceblock, the system MUST verify the requirements of Requirements for an issued Version before finalisation.
If any of these checks fails, the system MUST NOT finalise the Version and MUST return an error with a validation code.
6.7.4. Irreversibility of Finalisation
A finalized Version MUST NOT be reverted to the state draft.
Corrections, revisions, replacements, and other continuations of the same Record MUST be represented as a new Version of that Record.
Such a Version MUST:
-
retain the DID of the Record;
-
reference the superseded or revised versionHash in its
parentsfield; -
include a
correctionReasonor equivalent schema-defined rationale where applicable; and -
complete the normal finalisation process defined in Finalisation Requirements.
An implementation MUST NOT represent a correction, revision, replacement, or continuation of the same Record as a new Record that is related to the earlier Record only through an AssertionRecord or another cross-Record relationship.
A new Record MAY be created where a new semantically autonomous information object arises. Such a Record MAY document derivation, source, or other relationships to an earlier Record through an AssertionRecord. It MUST NOT thereby be treated as a continuation in the version graph of that earlier Record.
6.8. Version Graph (DAG)
6.8.1. Graph Structure
The totality of all versions of a Record and their parent-child relationships forms the version graph.
The version graph MUST be a Directed Acyclic Graph (DAG):
-
Directed: Edges point from child to parent (backward in time)
-
Acyclic: There MUST be NO cycles - a Version MUST NOT be directly or indirectly its own ancestor
A system MUST check upon receipt of a new Version whether adding its parent references would create a cycle. If so, the Version MUST be rejected.
6.8.2. Nodes
Every node in the version graph is a versionHash entry in the payload array (see Version Fields).
6.8.3. Edges (Parent References)
An edge connects a Version (child) with its predecessor Version (parent).
-
A Version MAY have zero, one, or multiple parent references
-
A Version without parents is the root Version (first Version of the Record)
-
A Version with exactly one parent reference is a linear continuation
-
A Version with multiple parent references is a merge Version
Edge requirements:
-
Every parent reference MUST be a valid versionHash of a known Version within the same
payloadarray -
Edges MUST NOT point to Versions of other Records. Cross-Record connections are made via links in the content of a CaseRecord or AssertionRecord (CaseRecord Specification)
6.8.4. Branches
A branch arises when two or more new draft versions with the same parent reference emerge from a Version.
-
Branches are explicitly permitted in RecordWeb and MUST be made visible by the system
-
A system MUST return all active branches (draft versions without successors) when a Record is retrieved
6.8.5. Merges
A merge Version is a version with two or more parent references. It consolidates two or more branches.
Before a merge Version can be finalised, a MergeRecord MUST be created:
{
"mergeRecord": {
"mergedVersions": [
"sha256:4b10e80a5c3e85acff145587d17a4a7561d517726dd1096d08eb30125d0bdf5f",
"sha256:5f42b3f3cb9330d01765552d5c612ac146738badb811f818a7f9318a9f762be8"
],
"mergeReason": "Consolidation after coordination between departments",
"mergedBy": "did:rwp:5264d2c3-d3b1-411c-829f-90e61165251a:83fb7055-2779-45f6-a9db-98d1c852d3da",
"mergedAt": "2026-05-31T16:00:00Z",
"mergeHash": "sha256:4fdab47550acadcb5d60b9122848e11c78708859fe60b43e624537678d9b5a58"
}
}
The MergeRecord MUST be finalised before the merge version can be finalised.
6.8.6. Cross-Record Merges
When a new Record arises from two or more existing Records (cross-Record merge), the following MUST apply:
-
The new Record MUST have a root version with an empty
parentsarray -
The
MergeRecordMUST reference the DIDs of the source Records (not their version hashes) -
The source Records MUST remain in state finalized and receive a metadata note
contributedTowith the DID of the new Record
7. Record Integrity
7.1. Definition
The recordHash is a Record-level Integrity value that covers the entire Record (its did, metadata, and payload) at the time the hash was calculated. It provides evidence that a Record has not been altered since that point, independent of whether the alteration occurred in metadata or in payload.
The recordHash is distinct from the Proof carried by an individual Version (see Proof Procedure). A Proof is an owner’s cryptographic authorisation of one specific versions’s content at finalisation. The recordHash is an unsigned, purely computational value; it does not require, and MUST NOT be interpreted as, an authorisation or attestation. It exists solely to make unauthorised or accidental modification of any part of the Record detectable.
When a hash is calculated, the object that is canonicalised MUST contain only those members that are present in the object being hashed. A member that is absent MUST be omitted from the hash input. It MUST NOT be replaced by null, an empty string, an empty array or a default value. A member that is present with the value null is a different input and yields a different hash.
A verifier MUST recalculate a hash from the member set as stored or received. It MUST NOT add, remove or normalise members before canonicalisation.
7.2. Record Hash Calculation
The recordHash MUST be calculated as follows:
-
Serialise
did,metadata, andpayload(withoutrecordHashitself) as canonical JSON ([RFC8785]) -
Calculate SHA-256 over the result
recordHash = SHA-256( canonicalize({did, metadata, paylaod}) )
7.3. Version Hash Calculation
The Version is represented by the versionHash and MUST be calculated as follows:
-
Serialise the version fields
state,parents,createdAt,modifiedAt,representationsand, where present,issuance, withoutversionHashandproofthemselves, as canonical JSON ([RFC8785]) -
Calculate SHA-256 over the result
versionHash = SHA-256( canonicalize({state, parents, createdAt, modifiedAt, representations[, issuance]}) )
7.4. Content Hash Calculation
The Content is represented by the contentHash and MUST be calculated as follows:
-
Serialise the version fields
format,content,primary, androle(withoutcontentHashitself) as canonical JSON ([RFC8785]) -
Calculate SHA-256 over the result
contentHash = SHA-256( canonicalize({format, content, primary, role}) )
The contentHash is calculated over the canonical JSON of the object {format, content, primary, role}, in which content is the value as it appears in the Representation (including the encoded string for binary content). It is not calculated over the decoded bytes.
7.5. Validation
RWP Validation provides data structures and calculation rules that enable a Consumer to validate a RecordWeb object whenever the required information is available.
A Consumer MAY perform a Validation at any time and MAY repeat a Validation.
A Consumer MUST NOT represent the integrity of a RecordWeb object as successfully validated unless it has recalculated the applicable hash in accordance with this chapter and the calculated value equals the declared hash value.
A Consumer MAY retain, exchange, display, or discard a Validation result. RWP does not require a Consumer to retain a Validation result or to create a RecordWeb Record for that purpose.
Note: RWP does not require a Consumer to perform a Validation, does not prescribe when a Consumer performs a Validation, and does not prescribe the business, legal, or operational consequence of a Validation result.
7.5.1. Validation Object
A Validation applies to exactly one validationObject identified by a did:rwp identifier.
The type of the identified object determines the applicable integrity calculation:
-
A Record identifier determines
recordHashcalculation. -
A Version identifier determines
versionHashcalculation. -
A Content identifier determines
contentHashcalculation.
A Validation of one object MUST NOT be represented as a Validation of any related Record, Version, or Content object unless those objects have been validated separately.
In particular, a Validation of a Record MUST NOT be represented as a Validation of all Versions of that Record. A Validation of a Version MUST NOT be represented as a Validation of all Representations or Content objects associated with that Version.
A Version identifier MAY additionally be validated by verifying proof over versionHash against a verification method of the DID document, in accordance with Cryptographic Procedures.
7.5.2. Validation Result
When a Consumer retains or exchanges the result of a Validation, the result MUST contain:
-
validationObject, containing thedid:rwpidentifier of the validated object; -
validationType, containing etherintegrityorsignature, depending on the kind of validation; -
validationTimestamp, containing the date and time at which the Consumer performed the Validation; and -
validationResponse, containing one of the Validation response codes defined in this Section.
The result is a statement by the Consumer that performed the Validation at the stated time. It is not a new state of the validated object and does not by itself establish the truth, authority, legal effect, or current availability of the validated object.
signature applies only to a Version identifier. Each result concerns exactly one validation object and one validation type. A signature result MUST NOT be represented as an integrity validation, and vice versa.
For signature, the verification method is taken from the DID Document of the record owner as resolved at validationTimestamp. Key state at the time of signing is not evaluated.
The following example records a successful Validation of one Version:
{
"validationObject": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:efd09e7b-5f65-4637-b06c-404a9da97f0b:474425f9f1f2d1fe78bcec3f41a579c02d5261161c489ab22296980075f37895",
"validationType": "signature",
"validationTimestamp": "2026-09-16T12:55:00Z",
"validationResponse": 200
}
The following example records a Validation with a failed dependency:
{
"validationObject": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:efd09e7b-5f65-4637-b06c-404a9da97f0b:474425f9f1f2d1fe78bcec3f41a579c02d5261161c489ab22296980075f37895",
"validationType": "signature",
"validationTimestamp": "2026-10-07T10:00:00Z",
"validationResponse": 424,
"dependency": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:efd09e7b-5f65-4637-b06c-404a9da97f0b#key-2",
"reason": "key-not-resolvable"
}
7.5.3. Validation Response Codes
The validationResponse property communicates the result of a Validation for the identified validationObject.
| Code | Name | Meaning |
|---|---|---|
200
| OK | The applicable hash calculation was performed and the calculated hash equals the declared recordHash, versionHash, or contentHash.
|
400
| Bad Request | The validationObject or the Validation request is syntactically or semantically invalid.
|
403
| Forbidden | The identified object or information required to calculate its applicable hash exists or was identified, but the Consumer was not authorised to obtain it. |
404
| Not Found | The identified object, or information required to calculate its applicable hash, could not be found or resolved. A system MAY use this outcome to conceal the existence of an object it does not permit the Consumer to access. |
406
| Not Acceptable | The Consumer cannot process a required format, content type, representation, or other input required for the applicable calculation. |
410
| Gone | The identified Version or its Content was deleted by a DeletionRecord. The applicable hash calculation is not possible. |
422
| Unprocessable Content | The required input was available and the applicable hash calculation was performed, but the calculated hash does not equal the declared hash. |
424
| Failed Dependency | The Validation could not be completed because a required dependent resource or information was unavailable, incomplete, or could not be validated. Where the cause is a denied authorisation, 403 applies instead. |
For results other than 200, two optional fields MAY be added:
-
dependency: DID or absolute IRI of the resource that was unavailable (424), e.g. the verification method or the SchemaRecord. -
reason: short machine-readable text describing the cause, e.g. resolver-unreachable, key-not-resolvable, schema-not-found.
The codes defined in this section are Validation result codes. They do not define HTTP response semantics.
When Validation is exposed through an HTTP API, server-side failures MAY be communicated using applicable HTTP 5xx response codes. Such API failures are not Validation result codes defined by RWP.
A Consumer MUST NOT represent the result 403, 404, 406, 410, or 424 as evidence that the object is invalid or has been altered. Only 422 indicates that the applicable hash calculation was performed and the calculated hash does not equal the declared hash.
7.6. Hashing Procedure
RWP uses exclusively SHA-256 as the hashing procedure for:
-
Version hashes (
versionHash) -
Content hashes (
contentHash) -
Record hashes (
recordHash) -
Schema version hashes (
schemaVersion) -
Parent references (
parents)
A system MUST NOT use any hashing procedure other than SHA-256 for normative integrity proofs.
For all hash calculations over JSON objects, RFC 8785 (JSON Canonicalization Scheme, JCS) [RFC8785] MUST be used.
Requirements:
-
Keys MUST be sorted alphabetically
-
Unicode characters MUST be normalised (NFC)
-
No superfluous whitespace or line breaks
-
Numbers MUST be represented in their canonical form
7.7. Proof Procedure
If the schema prescribes signaturePolicy owner or signaturePolicy system, the finalisation act MUST attach at least one Proof to the Version. A Version without Proof is not finalized under such a policy.
A Proof MUST be a Data Integrity proof as defined by [VC-DATA-INTEGRITY] and MUST contain the following fields:
| Field | Requirement | Value |
|---|---|---|
| type | MUST | DataIntegrityProof
|
| cryptosuite | MUST | eddsa-jcs-2022 as defined by [VC-DI-EDDSA]
|
| created | MUST | ISO 8601 timestamp. SHOULD equal the modifiedAt of the Version.
|
| verificationMethod | MUST | DID URL of a verification method that is listed in verificationMethod of the DID document of the signing party and in the verification relationship required by proofPurpose |
| proofPurpose | MUST | assertionMethod for Version proofs, capabilityInvocation for proofs of DID document versions
|
| proofValue | MUST | Multibase-encoded signature |
{
"proof": [{
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-jcs-2022",
"created": "2026-10-26T18:20:00Z",
"verificationMethod": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:efd09e7b-5f65-4637-b06c-404a9da97f0b#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "zPkfn4jxbW8fYn84s3hDZ73nafs9tMgti3hQ5vm4RFpsYbDjf1ZrnzosLt66TrVEmtS5yiZMacVwx4MiNjyigUM7"
}]
}
Creation. The unsecured document is the Version object including versionHash and excluding proof. The Proof MUST be created according to the algorithm of the cryptosuite eddsa-jcs-2022, using RFC 8785 JSON Canonicalization. The resulting Proof object is added to the proof array.
Multiple proofs. A Version MAY carry several Proofs, for example from an institution and from a notary. Each Proof is calculated independently over the unsecured document, never over another Proof. Each Proof MUST be verifiable on its own.
DID document versions. The same procedure applies to the Proofs of DID document versions. A DID document version MUST carry at least one Proof. The unsecured document is the DID document version excluding proof.
Verification. A Verifier MUST recalculate the versionHash according to Version Hash Calculation. It MUST then verify at least one Proof against the resolved verification method. A Verifier decides according to its own trust policy which verification methods it accepts. A successful Proof verification establishes that the holder of the verification method key signed this Version. It does not establish the authority of that holder. Evaluation of the key state at a given past time is outside the scope of this section.
Key requirements. The key MUST be an Ed25519 key. The key MUST be an Ed25519 key, expressed as Multikey with a publicKeyMultibase that starts with z and encodes the prefix 0xed01 followed by the 32-byte public key. The verification method MUST be published in verificationMethod of the DID document of the signing party and listed in the verification relationship required by the proofPurpose. Its controller MUST be the signing party. The signing party MUST be an AgentRecord; a verification method is not published in the DID documents of other Records. The key MUST be present in the current DID document version of the signing party at the time of signing. A key that is no longer present in the current version MUST NOT be used for new Proofs.
NOTE: A successful Proof verification depends on the DID document of the signing party being obtained from the resolver responsible for its namespace, see § 18.3 Trust anchor. Whether the signing party is an AgentRecord is determined by the metadata.core.recordType of its Record, not by its DID document. A verifier that is not authorised to retrieve this Record cannot establish this and obtains the validation response 403 or 424 (§ 7.5.3 Validation Response Codes). This is not evidence that the Proof is invalid. Neither the registration of a namespace in the GNR nor the conformance of the signing party to the Root AgentRecord Schema establishes the authority of the signing party. This remains subject to the trust policy of the verifier.
Part II: Typed Records
8. Record Types
8.1. Definition
Every Record MUST be assigned to a Record Type. A Record type is defined by a SchemaRecord (§ 13 SchemaRecord Specification). It defines the schema of the Content of a Version, the permitted states and transitions, and the format requirements per state. A Record type MAY be a subclass of exactly one other Record type.
8.2. Core Record Types
RWP defines the following core Record types:
Information Records: An InformationRecord is a Record whose primary purpose is to define or document a specific information object.
-
ObjectRecord(TBD) -
DocumentRecord(TBD)
Relation Records: A RelationRecord is a Record whose primary purpose is to establish, preserve, and make provable a meaningful relationship between Records.
-
CaseRecord(see CaseRecord Specification) -
AssertionRecord(see AssertionRecord Specification)
Agent Records: An AgentRecord is a Record whose primary purpose is to identify an entity that bears responsibility for a Record, (see AgentRecord Specification)
-
Various (see AgentRecord Specification)
System Records: A SystemRecord is a Record whose primary purpose is to define, document, or prove a RecordWeb system rule, operation, or capability.
-
SchemaRecord(see SchemaRecord) -
DeletionRecord(see Payload Deletion) -
MergeRecord(TBD) -
MigrationRecord(TBD) -
ConformanceRecord(see Conformance and Implementation Claims)
The conformance requirements for these Record types are profile-, role-, and capability-specific. An implementation MUST support a core Record type only where this specification requires that support for a claimed profile, role, or exercised capability.
The capability-bound requirements are defined in Capability-bound requirements.
Additional Record types MAY be defined by organisations or standards bodies as SchemaRecords with a subClassOf, referring to the Root Schema of a core Record type or to another Record type.
8.3. Taxonomy
@prefix prov: <http://www.w3.org/ns/prov#> . @prefix rw: <https://w3id.org/recordweb/ontology#> . rw:InformationRecord rdfs:subClassOf rw:Record . rw:RelationRecord rdfs:subClassOf rw:Record . rw:SystemRecord rdfs:subClassOf rw:Record .
Every Record has one primary conceptual purpose. For the purposes of this specification, a Record is classified as an InformationRecord, a RelationRecord, an AgentRecord or a SystemRecord.
Any concrete Record Type is defined by a SchemaRecord in accordance with Record Type Definition.
The taxonomy is normative for the interpretation of this specification. It MUST NOT be interpreted as a mandatory implementation inheritance hierarchy or a mandatory JSON type hierarchy. Concrete Record Types are defined by SchemaRecords (§ 13 SchemaRecord Specification).
9. CaseRecord Specification
9.1. Definition
A CaseRecord is a Record whose Record type is the Root CaseRecord Schema or a subclass of it (see § 13.4 Subclass). It links Records that belong together. A CaseRecord MUST NOT be a container and MUST NOT contain the content of the Records to which it relates. A Record linked by a CaseRecord remains an independent Record.
The content of a Version of a CaseRecord is a JSON object in the primary representation (format application/json). It is defined by the Root CaseRecord Schema:
| Field | Required | Type | Description |
|---|---|---|---|
title
| MAY | String | Human-readable title of the Case in this Version |
trigger
| MAY | Array<DID> | Records that triggered the Case |
context
| MAY | Array<DID> | Records relevant to understanding and processing the Case |
process
| MAY | Array<DID> | Records documenting the processing steps |
decision
| MAY | Array<DID> | Records documenting the decision |
result
| MAY | Array<DID> | Records documenting the outcome |
No field is required. A schema based on the Root CaseRecord Schema MAY require fields and MAY add fields. It MUST NOT remove or change the meaning of the fields defined here. A field that is present MAY be an empty array. A Record MAY appear in more than one field.
RWP assigns no semantics to the field names beyond the descriptions above. The relationship of a linked Record to the Case in more specific terms (for example "legal basis") is expressed by an AssertionRecord, not by the CaseRecord.
{
"title": "Building permit Musterstrasse 12, parcel 451",
"trigger": [ "did:rwp:<namespace>:<recordId>:<versionHash>" ],
"context": [ "did:rwp:<namespace>:<recordId>:<versionHash>" ],
"process": [ "did:rwp:<namespace>:<recordId>" ],
"decision": [],
"result": []
}
9.2. Taxonomy
@prefix rw: <https://w3id.org/recordweb/ontology#> . rw:CaseRecord rdfs:subClassOf rw:RelationRecord .
9.3. Links
Every entry of trigger, context, process, decision and result is a Link: the DID of a Record (§ 4 Record Identity (DID)). A Link is a Hard Link or a Soft Link as defined in § 4.5 Version Hash and Content Hash component. A Link MAY identify any Record, including another CaseRecord. A Link from CaseRecord A to CaseRecord B refers only to B (or the identified Version of B). It MUST NOT be treated as a link from A to the Records linked by B. A Record is a direct member of CaseRecord A only if A links to it explicitly.
9.4. Finalisation
Before a Version of a CaseRecord is finalised, the producer MUST verify that every Link in its content is a Hard Link, and that every Hard Link can be resolved to a finalised Version of the identified Record, subject to the applicable federation and offline-validation rules.
If a check fails, the producer MUST NOT finalise the Version and MUST return the Links that failed. A notification, callback or other message received through Source Integration MAY trigger a refresh or retry. It MUST NOT replace this verification.
A Version without any Link MAY be finalised. A schema based on the Root CaseRecord Schema MAY impose further requirements. It MUST NOT relax the requirements of this section.
10. AssertionRecord Specification
10.1. Definition
An AssertionRecord is a Record whose Record type is the Root AssertionRecord Schema or a subclass of it (§ 13.4 Subclass). It preserves an attributable assertion that a subject stands in a relationship, identified by a predicate, to an object.
An AssertionRecord MUST NOT be interpreted as modifying the subject or the object. It preserves only the assertion made by its asserting Agent. An AssertionRecord MAY refer to Records in the same or in another namespace. A reference MUST NOT imply acceptance, storage, reciprocity, modification or any other obligation for the custodian of the referenced Record.
The content of a Version of an AssertionRecord is a JSON object in the primary representation (format application/json):
| Field | Required | Type | Description |
|---|---|---|---|
subject
| MUST | DID or IRI | Resource from which the relationship is asserted |
predicate
| MUST | IRI | Relationship asserted (see § 10.4 Predicates) |
object
| MUST | DID or IRI | Resource to which the relationship is asserted |
assertedBy
| MUST | DID | Agent responsible for the assertion |
assertedAt
| MUST | ISO 8601 | Time of the assertion |
effectiveAt
| MAY | ISO 8601 | Time from which the relationship holds. MAY precede assertedAt. A predicate declaration MAY make it required
|
{
"subject": "did:rwp:<namespace>:<recordA>:<versionHash>",
"predicate": "http://www.w3.org/ns/prov#wasDerivedFrom",
"object": "did:rwp:<namespace>:<recordB>",
"assertedBy": "did:rwp:<namespace>:<agentId>",
"assertedAt": "2026-08-13T11:00:00Z",
"effectiveAt": "2026-08-13T11:00:00Z"
}
10.2. Taxonomy
@prefix rw: <https://w3id.org/recordweb/ontology#> . rw:AssertionRecord rdfs:subClassOf rw:RelationRecord .
10.3. Subject and Object
subject and object are each the DID of an RWP Record, another DID, or an absolute IRI ([RFC3987]), subject to the constraints of the applicable predicate declaration.
A DID with a versionHash refers to exactly that Version. Where the Version is resolvable, a validating implementation MUST verify that it belongs to the identified Record. A DID without versionHash refers to the Record independent of a specific Version.
The meaning of the subject and the object MUST be interpretable according to the applicable predicate and SchemaRecord.
10.4. Predicates
The value of predicate MUST be an absolute IRI ([RFC3987]). The meaning of an asserted relationship MUST NOT be carried solely by natural-language text. A human-readable label MUST NOT replace the predicate IRI and MUST NOT be the sole basis for semantic interpretation or validation.
The Root AssertionRecord Schema permits any absolute IRI as predicate. A SchemaRecord that is a subclass of it MAY restrict the permitted predicates and the permitted kinds of subject and object in its jsonSchema.
10.4.1. Core predicates
The following PROV-O predicates are the core relationship vocabulary of RWP:
| Predicate | Subject | Object |
|---|---|---|
prov:wasAttributedTo
| Entity | Agent |
prov:wasGeneratedBy
| Entity | Activity |
prov:wasDerivedFrom
| Entity | Entity |
prov:wasRevisionOf
| Entity | Entity |
prov:actedOnBehalfOf
| Agent | Agent |
A Record is an Entity for the purposes of this section. A Record MUST NOT be the subject or object of a PROV-O predicate whose declared semantics require an Agent or an Activity. An AssertionRecord using a PROV-O predicate MUST satisfy the domain and range of that predicate.
For provenance and version-lineage relationships, an AssertionRecord MUST use an applicable PROV-O predicate where PROV-O expresses the intended semantics. A SchemaRecord MUST NOT permit a predicate whose semantics duplicate an applicable PROV-O predicate.
10.4.2. Other predicates
Institutional, functional, legal, subject-matter and archival-context relationships are not necessarily provenance relationships. They MUST NOT be represented with a PROV-O predicate unless that predicate expresses the intended semantics.
A predicate that is not a core predicate MUST have a predicate declaration. The declaration MUST be versioned and resolvable through the predicate IRI, and MUST provide
-
a human-readable definition of the semantics,
-
the relationship direction,
-
the permitted subject and object kinds,
-
the required or permitted assertion data,
-
the validation requirements, and
-
for an externally defined predicate, the vocabulary and its version.
The declaration SHOULD provide machine-readable representations where available, for example RDF, JSON-LD, SHACL or JSON Schema. A localised display label MAY accompany the declaration. It MUST NOT replace the predicate IRI as the semantic identifier.
A SchemaRecord MAY constrain a predicate more narrowly than its declaration. It MUST NOT broaden, reverse or contradict the semantics or direction defined by the declaration. A conformance profile MAY require support for specified predicates. It MUST NOT define a predicate or alter the semantics of one.
Note: RiC-O predicates are an example of contextual predicates. A SchemaRecord MAY permit them. Their use does not require an implementation to store, exchange or process Records as RDF or JSON-LD: the RiC-O IRI identifies the semantics of the asserted relationship. The declaration identifies the exact RiC-O predicate IRI and the RiC-O version to which it applies, and a SchemaRecord does not permit a RiC-O predicate where an applicable PROV-O predicate expresses the intended semantics.
10.5. Relationship to the Version Graph
The version graph is the authoritative representation of version succession between Versions of the same Record. A conforming implementation MUST determine version ancestry, direct parentage, branches and merges exclusively from the parents field and the rules in § 6.8 Version Graph (DAG).
An AssertionRecord using prov:wasRevisionOf, prov:wasDerivedFrom or another provenance predicate MUST NOT create, alter, replace or repair a version-graph edge. Where it documents a relationship between Versions of the same Record, it MAY provide additional attributable evidence, but MUST NOT be used to infer a parent relationship that the version graph does not contain.
If an AssertionRecord and the version graph make incompatible statements about version succession, the version graph is authoritative for all versioning, ancestry, finalisation, merge and integrity decisions. The AssertionRecord remains an attributable assertion. The conflict MUST NOT alter the integrity or history of either Record.
10.6. Validation
An AssertionRecord MUST be validated against its SchemaRecord and the type chain of that SchemaRecord before it is finalised. Validation MUST verify at least that
-
predicateis an absolute IRI, -
subject,predicateandobjectare present, -
subjectandobjectsatisfy the constraints declared for the predicate, -
the asserting Agent and the time of assertion are present, and
-
the AssertionRecord satisfies the normal Record integrity and finalisation requirements.
An AssertionRecord MAY be valid even where a referenced external resource cannot be resolved, provided that it identifies the resource unambiguously and the applicable SchemaRecord permits unresolved references. A failure to resolve a referenced resource MUST NOT be interpreted as a modification of, or rejection by, the custodian of that resource.
INFO: Where the target namespace exposes an LDN inbox, the asserting party MAY notify the target custodian that a new AssertionRecord refers to one of its Records. Such a notification is informational only. It MUST NOT create an obligation to store, mirror, accept or reciprocate the relationship.
11. StatusAssertion Specification
11.1. Definition
A StatusAssertion is an AssertionRecord whose Record type is the Root StatusAssertion Schema or a subclass of it. It asserts the status of a Record, a Version, or a verification method from a point in time.
The Root StatusAssertion Schema is a subclass of the Root AssertionRecord Schema and adds the following constraints to its content:
| Field | Required | Description |
|---|---|---|
subject
| MUST | DID of a Record, with or without versionHash, or the DID URL of a verification method of an RWP DID
|
predicate
| MUST | Fixed: rw:hasStatus
|
object
| MUST | One of the status IRIs below |
assertedBy, assertedAt
| MUST | As defined for AssertionRecords |
effectiveAt
| MUST | Time from which the status holds |
reason
| MAY | String |
11.2. Taxonomy
@prefix rw: <https://w3id.org/recordweb/ontology#> . rw:StatusAssertion rdfs:subClassOf rw:AssertionRecord .
11.3. Predicate hasStatus
| IRI | rw:hasStatus
|
|---|---|
| Semantics | The subject has the status given by the object from effectiveAt
|
| Direction | subject → status |
| Subject kinds | RWP Record with or without versionHash; DID URL of a verification method
|
| Object kinds | Status IRI from the status vocabulary |
PROV-O offers no matching predicate: prov:wasInvalidatedBy relates an Entity to an Activity.
11.4. Status Vocabulary
-
revoked: the subject MUST NOT be relied upon fromeffectiveAt. Final within its scope. -
suspended: the subject MUST NOT be relied upon fromeffectiveAtuntil reinstated. -
reinstated: ends a suspension. Valid only if asuspendedassertion with the same subject and scope exists, otherwise ignored.
A SchemaRecord MAY declare further status IRIs.
11.5. Scope of the Subject
A subject with versionHash applies to that Version only. A subject without versionHash applies to all Versions of the Record. A subject that is the DID URL of a verification method applies to that verification method.
11.6. Single Version
A finalised StatusAssertion has only its root Version and MUST NOT receive further Versions. A later statement is a new StatusAssertion. It is a new fact, not a correction of the earlier one. This keeps revoked final and avoids version selection.
11.7. Discovery and Authority
StatusAssertions are found via the RWPRecordReferrers service, filtered by Record type. Completeness applies to the namespace of the target only.
RWP does not define who may issue StatusAssertions. The verifier evaluates assertedBy under its own trust policy.
11.8. Status Determination
Inputs: a subject S (Record Version or key), an evaluation time T, and a knowledge time K.
-
Collect the StatusAssertions for S in two scopes: version scope (subject is the DID of S with
versionHash) and record scope (subject is the DID of S withoutversionHash). For keys, the DID URL is used. Keep those withassertedAt≤ K that the verifier accepts under its trust policy. -
For each scope: if a
revokedassertion witheffectiveAt≤ T exists, the scope status isrevoked. Otherwise take thesuspendedorreinstatedassertion with the greatesteffectiveAt≤ T (tie: the greatestassertedAt). Areinstatedwithout a precedingsuspendedin the same scope is ignored. If the result issuspended, the scope status issuspended. If it isreinstatedor there is no assertion, the scope status is none. -
Combine the scopes restrictively:
revoked, thensuspended, then none.
The result is revoked, suspended or no status asserted, with references to the deciding assertions.
K ≤ T answers what was knowable at T. K = now answers what is now established as effective at T. No status asserted does NOT mean valid; completeness depends on the custodian. The determination is not a validation result. Accepting or rejecting a Record is a decision of the relying party.
12. AgentRecord Specification
12.1. Definition
An AgentRecord is a Record whose Record type is the Root AgentRecord Schema or a subclass of it (§ 13.4 Subclass). It identifies an entity that bears responsibility for a Record, in the sense of prov:Agent [PROVO].
The content of a Version of an AgentRecord is a JSON object in the primary representation (format application/json), defined by the Root AgentRecord Schema (§ 20 Annex A: Record, Version, and Metadata Schemas).
| Field | Required | Type | Description |
|---|---|---|---|
agentType
| MUST | String | One of organization, person, softwareAgent
|
name
| MUST | String | Name of the Agent |
identifiers
| MAY | Array<String> | Further identifiers of the Agent |
actedOnBehalfOf
| MAY | DID | DID of an organisation the agents acted on |
{
"agentType": "person",
"name": "Sam Doe",
"identifiers": [ "mailto:sam.doe@example.com" ],
"actedOnBehalfOf": [ "did:rwp:<namespace>:<organizationAgentId>" ]
}
A SchemaRecord that is a subclass of the Root AgentRecord Schema MAY add fields to the content.
12.2. Taxonomy
@prefix prov: <http://www.w3.org/ns/prov#> . @prefix rw: <https://w3id.org/recordweb/ontology#> . rw:Agent rdfs:subClassOf prov:Agent . rw:AgentRecord rdfs:subClassOf rw:Record , rw:Agent .
12.3. Responsible Parties
A did:rwp identifier in a field that identifies a responsible party, for example assertedBy or owner, MUST identify an AgentRecord. It MAY identify an InformationRecord or an AssertionRecord where the applicable SchemaRecord explicitly permits a Record to act as the responsible party, for example a source-adapter implementation identified by its own Record.
An implementation MUST NOT use a did:rwp identifier in such a field to identify an entity that is neither an AgentRecord, an InformationRecord nor an AssertionRecord.
Where no such typed identity exists or is required, the field MUST use an identifier scheme other than did:rwp, or the applicable SchemaRecord MUST define an untyped-reference exception explicitly.
| Type | Example |
|---|---|
| Agent | did:rwp:57b69e22-c8ae-4d5e-8675-ff454ea20fcc:adb9e1e3-4a51-42b2-870b-7bf2c560325f
|
| Other | sam.doe@example.com
|
13. SchemaRecord Specification
13.1. Definition
A SchemaRecord is a Record that defines a Record type. A SchemaRecord MUST fulfil all requirements that apply to Records.
The content of a Version of a SchemaRecord is a JSON object in the primary representation (format application/json) with the following fields:
| Field | Required | Type | Description |
|---|---|---|---|
rwpSchemaVersion
| MUST | String | RWP version for which the schema is valid |
displayName
| MAY | String | Human-readable name of the Record type |
subClassOf
| MAY | DID | DID with versionHash of the SchemaRecord Version whose Record type this Record type is a subclass of (see § 13.4 Subclass) |
allowedStates
| MUST | Array<String> | Permitted states of a Version (see § 6.7.1 State Model) |
stateTransitions
| MAY | Array<Object> | Permitted transitions between states |
signaturePolicy
| MAY | String | One of owner, system, none (see § 6.7.3 Finalisation Requirements)
|
payloadFormats
| MUST | Object | Permitted formats per state (see § 6.5 Format Requirements per State) |
capabilities
| MAY | Array<String> | Operations applicable to Records of this type (see § 13.6 Capability Declaration) |
jsonSchema
| MUST | Object | JSON Schema (Draft 2020-12 or later) that validates the content of a Version of a Record of this type |
The jsonSchema validates the content of the primary representation of a Version if its format is application/json.
{
"rwpSchemaVersion": "0.1",
"displayName": "Building Permit Case",
"allowedStates": ["draft", "finalized"],
"payloadFormats": {
"draft": ["application/json"],
"finalized": ["application/json"]
},
"jsonSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": ["title", "trigger", "result"],
"properties": {
"trigger": { "minItems": 1, "maxItems": 1 },
"result": { "minItems": 1 },
"parcelNumber": { "type": "string" }
}
}
}
13.2. Taxonomy
@prefix rw: <https://w3id.org/recordweb/ontology#> . rw:SchemaRecord rdfs:subClassOf rw:SystemRecord .
The Record type defined by a SchemaRecord with subClassOf is a subclass (rdfs:subClassOf) of the Record type defined by the referenced SchemaRecord.
13.3. Root SchemaRecord
The Root SchemaRecord is the SchemaRecord whose metadata.core.recordType is its own DID and whose metadata.core.schemaVersion is the versionHash of its own Version. Every other SchemaRecord MUST reference the Root SchemaRecord in metadata.core.recordType.
A Root Schema of a Record type is a SchemaRecord that has no subClassOf. The Root Schemas of the core Record types are published in § 20 Annex A: Record, Version, and Metadata Schemas.
13.4. Subclass
subClassOf MUST be a Hard Link (§ 4.5 Version Hash and Content Hash component) to a finalised Version of a SchemaRecord. A SchemaRecord MUST NOT have more than one subClassOf.
The sequence of SchemaRecords reached by following subClassOf is the type chain of a Record type. Because subClassOf identifies a specific Version by its hash, a type chain cannot contain a cycle.
A Version of a Record MUST validate against the jsonSchema of its SchemaRecord and against the jsonSchema of every SchemaRecord in the type chain. A SchemaRecord therefore only contains additions to its parent.
A Record is of a Record type T if its metadata.core.recordType identifies the SchemaRecord that defines T, or a SchemaRecord whose type chain contains it. SchemaRecords are compared by DID; the versionHash of a subClassOf is not part of the type identity (§ 4.5 Version Hash and Content Hash component).
Any Version valid under a subclass MUST be valid under its parent. Therefore a SchemaRecord with subClassOf
-
MUST NOT remove a state or a transition of the parent, and MAY add states per § 6.7.1 State Model;
-
MUST NOT permit, for any state, a format that the parent does not permit;
-
MUST NOT define a weaker
signaturePolicythan the parent (none<system<owner);
13.5. Versioning
When a SchemaRecord is finalised in a new Version:
-
Existing Records that reference an earlier schema Version REMAIN valid.
-
The new Version MUST reference its predecessor in
parents. -
A system MUST keep every schema Version that is referenced by a Record or by a
subClassOfpermanently accessible.
A new Version of a SchemaRecord does not change Record types that are subclasses of it, because subClassOf identifies a specific Version.
13.6. Capability Declaration
The capabilities field declares which operations are applicable to Records of the Record type. Each entry is an operation identifier, for example retrieve, compare, validate, publish, or a Record-type-specific operation.
The declaration is descriptive. It does not oblige a resolver to implement the operation and does not grant access (see § 18 Access Control (Delegation Framework)). A resolver MAY use the capabilities to populate the RWPFunctionRegistry service entry (§ 3.5 Service Entries). A change to capabilities is a change to the SchemaRecord and MUST be made as a new Version.
14. DeletionRecord Specification
14.1. Definition
A DeletionRecord is a Record and a SystemRecord whose Record type is the Root DeletionRecord Schema or a subclass of it (§ 13.4 Subclass). It preserves the execution of a deletion under the regimes payload-only and full-delete together with its legal basis.
The content of a Version of a DeletionRecord is a JSON object in the primary representation (format application/json), defined by the Root DeletionRecord Schema (§ 20 Annex A: Record, Version, and Metadata Schemas).
| Field | Required | Type | Description |
|---|---|---|---|
targetDid
| MUST | DID | DID of the Record concerned |
targetVersions
| MAY | Array<String> | versionHash of each Version concerned. MUST NOT be present for full-delete. If absent for payload-only, all Versions that exist at deletedAt are concerned.
|
deletionRegime
| MUST | String | One of payload-only, full-delete, see § 14.4 Deletion Regimes
|
legalBasis
| MUST | String | Legal basis of the deletion |
requestedBy
| MAY | String | Party that requested the deletion, see § 12.3 Responsible Parties |
approvedBy
| MUST | String | Agent that approved the deletion, see § 12.3 Responsible Parties |
deletedAt
| MUST | ISO 8601 | Time of the deletion |
retainedFields
| MAY | Array<String> | Parts of the Record that are retained, for example did, metadata, versionGraph
|
{
"targetDid": "did:rwp:bern.ch:f47ac10b-58cc-4372-a567-0e02b2c3d479",
"targetVersions": [ "sha256:<versionHash-1>", "sha256:<versionHash-2>" ],
"deletionRegime": "payload-only",
"legalBasis": "GDPR Art. 17 (Right to erasure)",
"approvedBy": "did:rwp:bern.ch:unit-legal",
"deletedAt": "2026-06-01T10:00:00Z",
"retainedFields": [ "did", "metadata", "versionGraph" ]
}
When a deletion is executed, a DeletionRecord MUST be created and finalised before the payload is removed.
After the DeletionRecord is finalised, for the regime payload-only and for each Version concerned:
-
The content bytes of each Representation MUST be securely overwritten.
-
Each Representation MUST be replaced by a Representation that contains
deletedwith the DID of the DeletionRecord, and that contains neithercontent,refnorcontentHash. -
The
versionHash,state,parents,createdAt,modifiedAtandproofof the Version remain unchanged. A deleted Version MUST NOT be validated (§ 7.5.3 Validation Response Codes).
After the DeletionRecord is finalised, for the regime payload-only, for the Record:
-
The
recordHashMUST be recalculated. -
A new DID document version MUST be created with updated
currentVersionHashandupdated(§ 3.2 History). The previous DID document versions MUST be retained. -
The DID remains resolvable and the resolver returns HTTP 200.
For the regime full-delete, the DID resolver MUST return HTTP 410 (§ 3.6 Resolver Requirements).
14.2. Taxonomy
@prefix rw: <https://w3id.org/recordweb/ontology#> . rw:DeletionRecord rdfs:subClassOf rw:SystemRecord .
14.3. Deletion Principles
RecordWeb’s immutability and data protection erasure obligations (GDPR, Swiss DSG) are in tension. RWP resolves this tension through a tiered deletion regime.
The applicable regime is declared in the deletionRegime field of metadata.governance at the time of creation. This field is closely related to retentionPolicy (see metadata.governance): retentionPolicy references the applicable retention rule, while deletionRegime states the deletion behaviour required once that rule’s retention period has elapsed or an erasure request is granted. Implementations MUST respect this field and MAY enforce it at the infrastructure level.
14.4. Deletion Regimes
RWP defines three deletion regimes:
| Regime | Key | Description | When applicable |
|---|---|---|---|
| Payload deletion | payload-only
| The payload is deleted; DID, metadata, and version graph are retained. The Record continues to exist as a provable "empty shell". | Default. Where provenance continuity is legally required despite erasure (e.g. audit trails, public registers). |
| Full deletion | full-delete
| The entire Record (including DID, metadata, and graph edges) is deleted. | Where no retention obligation exists and the right to erasure is absolute (e.g. erroneously captured personal data with no public interest basis). |
| Deletion exemption | exempt
| No deletion is executed and no DeletionRecord is created. The statutory retention obligation is expressed by the retentionPolicy of the Record.
| Where a statutory retention obligation overrides the erasure claim (e.g. tax records, notarial acts, public register entries). |
15. ConformanceRecord Specification
15.1. Scope of conformance
Conformance in RWP applies to an identifiable software implementation or software component.
A conformance claim MUST identify:
-
the implementation;
-
the implementation version;
-
the RWP version;
-
the claimed profile or profiles, if applicable;
-
the claimed role or roles;
-
the assessment method; and
-
the applicable evidence or evidence reference.
A conformance claim applies only to the Records, Record types, operations, and responsibilities covered by the claimed profiles and roles. It MUST NOT be interpreted as a claim that an entire product, organisation, deployment, or source system fulfils all RWP requirements.
An implementation MAY claim multiple profiles and roles.
An implementation claiming any conformance profile MUST claim at least one role, except that an implementation claiming only the resolver role MAY make a role-only claim as specified below.
An implementation claiming the resolver role MAY make a role-only claim without claiming an RWP Record profile. A role-only resolver claim MUST identify the resolver role and MUST NOT include an RWP Record profile unless the implementation also claims the roles required for that profile.
15.2. Conformance terminology
15.2.1. Record validation
See validation
15.2.2. Implementation assessment
Implementation assessment determines whether a named implementation version fulfils all requirements of one or more claimed RWP profiles and roles.
An implementation assessment applies to the identified implementation version and claimed conformance scope. It does not establish the validity of every Record that the implementation has produced or may produce.
An implementation assessment MUST include positive and negative test cases relevant to every claimed profile and role.
The documented assessment method MUST identify the test cases, test data or test criteria, the assessment date, and the implementation version assessed.
An assessment MAY use an official RecordWeb test suite, an independently developed test suite, or another documented assessment method.
The result of an implementation assessment MAY be documented in a ConformanceRecord.
15.2.3. Attestation
An attestation is a signed statement by an identifiable attester about an implementation assessment.
An attestation MUST identify the assessed implementation version, the claimed profiles and roles, the applicable RWP version, the assessment method, and the attester.
An attestation MAY be self-attested or independently assessed.
A ConformanceRecord is the RWP SystemRecord used to express and preserve a durable, machine-readable attestation.
15.2.4. Certification
Certification is an institutional process outside the base RWP protocol.
A certification scheme MAY use ConformanceRecords, test suites, and assessment reports as evidence. RWP does not define or require an accreditation authority, certification mark, liability regime, or certification revocation procedure.
The presence of a ConformanceRecord MUST NOT by itself be interpreted as certification.
15.3. Profiles
15.3.1. RWP Information Record Conformant
An implementation claiming RWP Information Record Conformant MUST satisfy the applicable RWP requirements for InformationRecords according to its claimed roles.
A producer claiming this profile MUST be able to create and finalise InformationRecords with the required identity, schema association, metadata, payload validation, integrity evidence, and version graph.
A custodian claiming this profile MUST retain and make retrievable the InformationRecord versions for which it acts as custodian.
A consumer claiming this profile MUST retrieve and validate InformationRecords in accordance with Record validation.
15.3.2. RWP Case Record Conformant
An implementation claiming RWP Case Record Conformant MUST satisfy the applicable RWP requirements for CaseRecords according to its claimed roles.
A producer claiming this profile MUST create and finalise CaseRecords in accordance with CaseRecord Specification.
A Case implementation MAY reference InformationRecords or other Records managed by another RWP implementation. It is not required to create, store, or own those linked Records.
A CaseRecord producer or consumer MUST apply the applicable hard-link, soft-link, target-validation, and Merkle-root requirements.
15.3.3. RWP Assertion Record Conformant
An implementation claiming RWP Assertion Record Conformant MUST satisfy the applicable RWP requirements for AssertionRecords according to its claimed roles.
A producer claiming this profile MUST create AssertionRecords with a valid SchemaRecord, a permitted predicate IRI, valid subject and object references, an asserting Agent, a time of assertion, and the required Record integrity evidence.
A consumer claiming this profile MUST validate AssertionRecords in accordance with AssertionRecord validation and § 10.4.1 Core predicates.
A custodian claiming this profile MUST retain and make retrievable the AssertionRecord versions for which it acts as custodian.
15.3.4. RWP Relation Record Conformant
An implementation MAY claim RWP Relation Record Conformant only if it also claims both RWP Case Record Conformant and RWP Assertion Record Conformant.
RWP Relation Record Conformant introduces no requirements beyond the combined requirements of those two profiles.
15.3.5. RWP Source Integration Conformant
An implementation claiming RWP Source Integration Conformant MUST provide a source-provenance statement for every source object that it exposes to, captures for, or transfers into an RWP context.
The source integration profile is independent of RWP Record production. A source-adapter MAY claim this profile without creating an RWP DID, Record, or version.
A source-adapter MAY provide source content and source-provenance information for a source object to a producer by any mechanism agreed by the involved implementations.
The transfer mechanism, message format, transport, authentication, delivery semantics, retry behaviour, and operational workflow between a source-adapter and a producer are outside the scope of this specification. This scope boundary is deliberate and lasting; it is not intended to be narrowed by a future Source Integration binding without a dedicated specification change.
The provision of source content or source-provenance information by a source-adapter MUST NOT, by itself, be represented as the creation, finalization, transfer, or validation of an RWP Record or RWP version.
A producer that creates or finalizes an RWP Record from source content supplied by a source-adapter MUST fulfil all requirements applicable to that Record, including applicable schema validation, payload-format validation, version creation, integrity evidence, version-graph maintenance, and finalization requirements.
A source-adapter MAY also exercise the producer role. Where it does so, it MUST fulfil all requirements applicable to that role and Record. A receiving implementation MUST apply the applicable consumer and custodian requirements to the resulting RWP Record or version.
For every source object within its claimed scope, a conforming source-adapter MUST make the corresponding source-provenance statement available to the receiving RWP implementation or include it in the exported representation. The statement MAY be represented as JSON. Where the source-adapter retains the statement after transfer, it MUST make the statement retrievable by the combination of sourceSystem and sourceId.
If a source-adapter creates and finalises an RWP InformationRecord, it MUST additionally satisfy the applicable requirements of RWP Information Record Conformant.
A source-provenance statement MUST contain:
{ "sourceSystem" : "https://jira.example.org" , "sourceId" : "PROJ-1234" , "sourceObjectType" : "jira:Issue" , "capturedAt" : "2026-08-13T00:00:00Z" , "capturedBy" : "did:rwp:example.org:source-adapter-001" , "sourceIntegrity" : "platform-versioned" }
The following fields are required:
-
sourceSystem; -
sourceId; -
sourceObjectType; -
capturedAt; -
capturedBy; and -
sourceIntegrity.
The combination of sourceSystem and sourceId MUST identify the source object unambiguously within the source system.
A source-provenance statement MAY additionally contain sourceUrl, sourceVersion, sourceRevision, sourceETag, sourceModifiedAt, exportPayload, exportPayloadHash, and exportFormat.
The sourceIntegrity value MUST be one of:
-
none: no independently usable source version or integrity signal is available; -
platform-versioned: the source system exposes a stable version, revision, ETag, or comparable platform-managed state indicator; -
source-signed: the source system exposes a verifiable source signature or equivalent cryptographic origin signal; or -
externally-hashed: the capture component has produced a hash over a defined export representation.
A source-integrity value describes guarantees available about the source object before or at capture. It MUST NOT be interpreted as a statement about the integrity of a subsequently created RWP Record.
15.4. Capability-bound requirements
Support for a SystemRecord capability MUST be required only where an implementation claims or exercises that capability.
| Capability | Information Record | Case Record | Assertion Record | Source Integration |
|---|---|---|---|---|
| Create a Record DID | MUST for a producer | MUST for a producer | MUST for a producer | Not required |
| Bind a created Record to a SchemaRecord | MUST for a producer | MUST for a producer | MUST for a producer | Not required |
| Create immutable versions; retrieve and validate versions | A producer MUST create immutable versions. A consumer MUST retrieve and validate versions in accordance with Record validation. | A producer MUST create immutable versions. A consumer MUST retrieve and validate versions in accordance with Record validation. | A producer MUST create immutable versions. A consumer MUST retrieve and validate versions in accordance with Record validation. | Not required |
| Retain and retrieve versions | MUST for a custodian | MUST for a custodian | MUST for a custodian | Not required |
| Maintain a version graph | MUST for Records it creates or custodises | MUST for CaseRecords it creates or custodises | MUST for AssertionRecords it creates or custodises | Not required |
| Create and validate Case links | Not required | MUST for a producer and consumer | Not required | Not required |
| Create and validate Assertions | Not required | Not required | MUST for a producer and consumer | Not required |
| Validate external references | Not required | MUST when finalising or validating a CaseRecord. The implementation MUST resolve each hard-link target and verify that the identified version belongs to the identified Record, subject to the applicable federation and offline-validation rules. | Where an AssertionRecord resource reference contains versionHash and the target version is resolvable, MUST verify that the version belongs to the identified Record. An unresolved external resource MUST be handled in accordance with the applicable AssertionRecord SchemaRecord.
| Not required |
| Provide source provenance | MAY | MAY | MAY | MUST |
Publish service entries in the DID document
| MAY for a resolver | MAY for a resolver | MAY for a resolver | Not required |
Declare capabilities in a SchemaRecord
| MAY for a producer of the SchemaRecord | MAY for a producer of the SchemaRecord | MAY for a producer of the SchemaRecord | Not required |
| Support SchemaRecord | MUST where Records are created or validated against a schema | MUST where CaseRecords are created or validated against a schema | MUST where AssertionRecords are created or validated against a schema | Not required |
| Support CaseRecord | Not required | MUST | Not required | Not required |
| Support AssertionRecord | MUST only when creating, validating, or consuming AssertionRecords | MUST only when creating, validating, or consuming AssertionRecords | MUST | Not required |
| Support MergeRecord | MUST only when creating a merge version | MUST only when creating a merge version | MUST only when creating a merge version | Not required |
| Support DeletionRecord | MUST only when executing payload deletion | MUST only when executing payload deletion | MUST only when executing payload deletion | Not required |
| Support MigrationRecord | MUST only when performing a documented migration | MUST only when performing a documented migration | MUST only when performing a documented migration | Not required |
| Support ConformanceRecord | MUST only for an attester | MUST only for an attester | MUST only for an attester | MUST only for an attester |
| Issue a Version (Issuance) | MUST only when issuing a Version | MUST only when issuing a Version | MUST only when issuing a Version | Not required |
| Verify an Issued Copy | MUST only when verifying an Issued Copy | MUST only when verifying an Issued Copy | MUST only when verifying an Issued Copy | Not required |
A resolver claiming the resolver role MUST satisfy the DID resolution requirements defined in Resolver Requirements and, where applicable, Global Namespace Registry.
An implementation MUST NOT claim support for a profile or role unless it fulfils all requirements applicable to that claim.
15.5. ConformanceRecord
A ConformanceRecord is a SystemRecord that preserves an attestation concerning an identifiable implementation version.
A ConformanceRecord MUST satisfy all normal Record requirements, including DID, schema association, version integrity, finalisation, and the applicable signature requirements.
The owner of a finalised ConformanceRecord MUST be the attester identified in its payload.
The SchemaRecord for a ConformanceRecord MUST require at least the following payload structure:
{ "subject" : { "implementationDid" : "did:rwp:example.org:implementation-001" , "productName" : "Example Product" , "productVersion" : "1.2.3" }, "rwpVersion" : "0.0.3" , "claims" : [ { "profiles" : [ "RWP Information Record Conformant" ], "roles" : [ "producer" , "custodian" , "consumer" ] } ], "assessment" : { "method" : "self-attested" , "assurance" : "self-attested" , "testSuite" : "did:rwp:recordweb.org:test-suite:0.0.3" , "tool" : "Example Validator" , "toolVersion" : "1.0.0" , "testedAt" : "2026-08-13T00:00:00Z" }, "attester" : "did:rwp:example.org:implementation-001" , "issuedAt" : "2026-08-13T00:00:00Z" , "expiresAt" : null , "evidence" : [ { "type" : "test-report" , "url" : "https://example.org/conformance/report.json" , "hash" : "sha256:..." } ], "supersedes" : [] }
The ConformanceRecord payload MUST contain:
-
subject.implementationDid; -
subject.productName; -
subject.productVersion; -
rwpVersion; -
at least one entry in
claims; -
assessment.method; -
attester; -
issuedAt; and -
evidence.
Every claim entry MUST contain at least one role. A claim entry containing RWP Source Integration Conformant MUST contain the source-adapter role. A claim entry containing a profile MUST identify only profiles defined by this specification or by a versioned extension specification.
The value of assessment.method MUST be one of:
-
self-attested; or -
independently-assessed.
A ConformanceRecord MAY contain an assurance field. If present, its value MUST be one of:
-
self-attested; -
independently-assessed; or -
certified.
The assurance value describes the assurance context asserted for the claim. It is not an assessment method and does not replace the required assessment.method or evidence.
The value certified is reserved for use by an external certification regime. Its use MUST NOT imply that RecordWeb operates, endorses, or recognises that regime.
Each evidence entry MUST identify its type. Each evidence entry that refers to externally retrievable evidence MUST include a resolvable url and a cryptographic hash of the referenced evidence bytes. An evidence entry without a url MUST include a cryptographic hash and sufficient embedded or separately identified content for an independent verifier to obtain the hashed evidence.
A ConformanceRecord MAY include expiresAt.
A newer ConformanceRecord MAY supersede an earlier ConformanceRecord. Supersession MUST NOT alter, invalidate, or remove the earlier attestation. A superseding ConformanceRecord MUST identify every superseded ConformanceRecord by DID.
15.6. Conformance claims and evidence
An implementation MAY publish a ConformanceRecord.
An implementation claiming a profile or role SHOULD make its current ConformanceRecord or equivalent signed conformance statement discoverable.
A verifier or procuring organisation MUST evaluate a conformance claim according to its own trust policy, including the identity of the attester, the assessment method, the evidence, the implementation version, and the applicable RWP version.
A verifier MUST NOT treat self-attestation, independent assessment, and certification as equivalent assurance levels.
15.7. Conformance Attestation
A conformance attestation is an inspectable statement about a claimed conformance scope and its assessment. A ConformanceRecord is the RWP SystemRecord used to express a durable, machine-readable conformance attestation.
Until an implementation publishes a ConformanceRecord, it MAY make its attestation available by another inspectable means. Such an attestation MUST still identify all information required by this section.
Part III: Miscellaneous
16. Federation
This chapter specifies how a system locates the DID Resolver responsible for a namespace and obtains the information needed to access a Record (Logistics). It also specifies the governance requirements of the GNR network (Constitution), which determine the basis on which a Global Namespace Identifier is registered and maintained.
A system MUST NOT treat successful resolution as evidence of trust. Whether a registration, a controller, or a resolver is accepted is a separate decision, see Trust Assumptions in [RWC].
16.1. Federation Model
RWP federation is modelled after the DNS architecture: a decentralised, hierarchical namespace model without a single point of failure.
Every RWP namespace (the <namespace> component of a DID, e.g. 57b69e22-c8ae-4d5e-8675-ff454ea20fcc) is operated by the owning organisation. Namespace resolvers are federated: each resolver knows its own namespace and can route resolution requests for unknown namespaces to peer resolvers.
16.2. Global Namespace Registry
16.2.1. Purpose
The Global Namespace Registry (GNR) is a distributed namespace directory for globally resolvable did:rwp identifiers. It maps a Global Namespace Identifier to the DID Resolver endpoint responsible for that namespace.
The GNR is not a DID Resolver. It does not resolve individual did:rwp identifiers, and it does not participate in Record access.
16.2.2. Scope
For a Global Namespace Identifier, as defined in Record Identity, the GNR MUST provide routing information identifying the DID Resolver responsible for resolving DIDs within that namespace.
The GNR MUST NOT resolve or store any of the following:
-
DID Documents;
-
Records or Record content;
-
access-control decisions;
-
organisational directory information.
A GNR deployment that stores or exposes any of the above is not conformant with RWP, irrespective of the underlying implementation technology.
16.2.3. Namespace Classification
A conforming GNR implementation MUST classify the namespace component of a did:rwp identifier, per Record Identity, before attempting resolution.
For a globally resolvable RWP DID, the GNR Resolver MUST obtain the DID Resolver endpoint through a configured GNR peer before attempting DID resolution.
For a locally scoped RWP DID, the GNR Resolver MUST NOT submit the local namespace to the GNR network. It MAY use a local resolution mechanism only where the necessary local context is available.
16.2.4. Global Namespace Registry Response
A GNR response MUST identify the namespace for which it was issued and MUST provide the currently applicable DID Resolver endpoint.
A successful namespace resolution MUST NOT be interpreted as evidence that:
-
the DID exists;
-
its DID Document is publicly accessible;
-
the associated Record can be accessed; or
-
the registrant of the namespace is the organisation it claims to be.
16.2.5. Resolution Obligation
A system MUST resolve the complete DID against the DID Resolver identified by the GNR.
A system MUST obtain the recordEndpoint from the resulting DID Document in order to retrieve the Record. Where the DID Document contains service entries (see Service Entries), a system MAY use them. A system MUST NOT infer a Record endpoint or a service endpoint directly from the namespace or DID value.
16.2.6. Platform
The GNR MUST be operated on Hyperledger Fabric. This requirement ensures interoperability between independently operated GNR nodes sharing a common ledger.
16.2.7. Registry Data Model
The GNR MUST accept registrations only for Global Namespace Identifiers, per Record Identity, and MUST reject registrations of locally scoped namespaces.
The Global Namespace Identifier MUST serve as the unique key for its current routing record. For every registered namespace, the current routing record MUST contain at least:
-
namespace; -
resolverEndpoint; -
registeredBy; -
registeredAt; -
txId.
The registeredBy value MUST be derived from the registrant’s authenticated network identity and MUST NOT be settable through transaction input.
16.2.8. Registry Operations
The GNR MUST provide an operation equivalent to ResolveNamespace(namespace) that returns the currently applicable routing record.
The GNR MUST provide an operation equivalent to GetNamespaceHistory(namespace) for authorised audit, verification, or migration use cases. Historical resolution MUST NOT be required for the normal client resolution path defined in § 16.2.5 Resolution Obligation.
The transaction history underlying GetNamespaceHistory MUST be immutable.
16.2.9. Governance Requirements
The GNR network MUST have a named operating organisation: RecordWeb Trust Association (recordweb.org).
The operating organisation MUST publish and maintain a governance framework applicable to the GNR network. The governance framework MUST define, at minimum:
-
eligibility, admission, suspension, withdrawal, and exclusion of participating organisations;
-
the process for registering, updating, suspending, and, where necessary, retiring Global Namespace Identifiers;
-
roles and authorisation requirements for network identities and namespace registrars;
-
endorsement and approval requirements for registry mutations and network configuration changes;
-
procedures for compromised keys, incorrect resolver endpoints, service outages, and other security incidents;
-
procedures for chaincode, platform configuration, and protocol-profile upgrades;
-
availability, monitoring, backup, recovery, and continuity requirements;
-
mechanisms for publishing trusted GNR peer entry points;
-
audit access and retention requirements for namespace-routing history.
The governance framework MAY define additional operational, organisational, legal, financial, or jurisdiction-specific provisions.
A conforming GNR deployment MUST implement its applicable governance decisions through network identities, endorsement policies, channel configuration, chaincode authorisation rules, or documented operational controls.
16.3. Cross-Namespace Links
A Record in namespace 57b69e22-c8ae-4d5e-8675-ff454ea20fcc MAY contain hard links to Records in other namespaces (e.g. did:rwp:f32bcec3-b453-4cbb-b416-132117325dc3:d460adee-e574-4064-86c2-fd58e3f678ed).
When resolving cross-namespace links, a system MUST:
-
Extract the
namespacecomponent from the linked DID -
Discover the resolver endpoint via GNR lookup
-
Verify the version hash of the linked Record after retrieval
-
Cache the resolved version locally with the original hash for integrity verification
16.4. Trust Anchor
NOTE: The RecordWeb Trust Association (RWTA) publishes the Root Agent (§ 20.3 Root Agent) and the Root Schemas (§ 20.4 Root Schemas) in the namespace d2d14675-50c9-463d-b564-1ea50644c836 (the RecordWeb namespace). The Root Agent is the initial controller of the Root Schemas. The RWTA operates the DID Resolver for the RecordWeb namespace at recordweb.org. The members of the RWTA operate the GNR (§ 16.2 Global Namespace Registry).
For a globally resolvable RWP DID, the namespace is resolved through the GNR to the DID Resolver responsible for it (§ 16.2.5 Resolution Obligation). The DID document and the verification methods obtained from this resolver are authoritative for the DID. This applies to the RecordWeb namespace in the same way as to any other namespace. For a locally scoped RWP DID, the authoritative resolver is determined by local configuration. A Proof by a locally scoped DID has meaning only in the scope in which its local resolution is trusted.
Neither the registration of a namespace in the GNR nor the conformance of an AgentRecord to the Root Agent Record Schema establishes the identity or the authority of the Agent. This remains subject to the trust policy of the verifier. The same applies to the Root Agent, the RecordWeb namespace, and the RWTA.
A resolver operator can present a DID document history that is internally consistent. For the RecordWeb namespace, the resolver operator and the operators of the GNR belong to the same association. The GNR therefore does not provide an independent check of the DID document history of the Root Agent. A verifier SHOULD retain previously verified DID document versions. The first DID document version of the Root Agent is identified in § 20.3 Root Agent.
17. Issuance and Issued Copy
Issuance is the act by which an issuer declares that a specific content is handed out to an addressee or to the public. Issuance is represented by a Version that carries an issuance block. This Version is created and finalized according to the normal requirements of this specification. Issuance introduces no additional state.
A Version carrying an issuance block is an issued Version.
17.1. Issuance block
The issuance block is a field of the Version. It is part of the Version Hash Calculation and is therefore covered by every proof of the Version.
| Field | Type | Requirement | Description |
|---|---|---|---|
| issuedAt | ISO 8601 | MUST | Time of the issuing act. SHOULD equal modifiedAt of the Version.
|
| issuedTo | String | MAY | Identifier of the addressee. Any identifier scheme MAY be used, including a DID of any method. If absent, the issued Version is not bound to an addressee. |
| validUntil | ISO 8601 | MAY | End of the validity of the issuance. |
| reason | String | MAY | Reason for the issuance, for example a replacement of an earlier issuance. |
validUntil expresses the validity of the issuance. It does not express the validity of the content. Validity of the content is defined by the schema of the Record type.
17.2. Requirements for an issued Version
An issued Version:
-
MUST contain exactly one Representation.
-
MUST mark this Representation
primarytrue. -
MUST contain this Representation with
contentandcontentHash. A Representation withrefMUST NOT be used. -
MUST have exactly one parent, which MUST be the most recent finalized Version of the Record at the time of issuance.
-
MUST satisfy the Finalisation Requirements, including the payload format requirements for
finalized.
The issuer decides which content is issued. The issued Representation MAY originate from an earlier Version than its parent.
The issued Version continues the version graph of the Record like any other Version. The version graph is not a chain of issuances. Further work on the Record continues with new draft Versions, whose Representations MAY use other formats than the issued Version.
Several issuances of the same content are permitted. Each issuance is a separate Version with its own issuedAt. An issuance that replaces an earlier one SHOULD state this in reason. A later issuance does not revoke an earlier one.
Note: The issuer decides which Representation is issued. Where an issuance is intended for presentation in constrained situations, for example an offline check, the issuer MAY issue a compact Representation that contains only the information needed for that purpose. Such an issuance is created like any other issuance. The size of an Issued Copy depends on the content, the proof, and the issuance block. It is not constrained by this specification.
17.3. Issued Copy
An Issued Copy is the serialisation of exactly one issued Version, including its proof array, as a self-contained artifact. It can be verified without access to the issuing system.
An Issued Copy:
-
MUST contain the issued Version unchanged, including
versionHash,issuance,representationsand allproofentries. -
is not a Record. It has no DID, no version graph and no state.
-
MAY carry, outside of the Version, the DID of the Record from which it was issued. This reference is not part of the signed content and MUST NOT be used as evidence of origin.
-
MAY be published.
Note: The complete structure of the Issued Copy artifact, including the provision of verification key material, is subject to a later specification step.
17.4. Verification of an Issued Copy
A verifier MUST:
-
Recalculate the
contentHashof the Representation according to Content Hash Calculation. -
Recalculate the
versionHashincluding theissuanceblock according to Version Hash Calculation. -
Verify at least one proof according to Proof Procedure.
-
Evaluate
validUntil, if present, according to its own policy.
A successful verification establishes that the signing party issued this content with this issuance block. It does not establish the identity of the person presenting the Issued Copy, that the issuance is still valid, or that no other issuance exists for the same content.
18. Access Control (Delegation Framework)
18.1. Scope and Principles
RWP deliberately defines no mandatory authorisation model. Data security and information protection are delegated to the implementing systems. This chapter defines an optional, interoperable delegation framework that compliant systems MAY implement.
The core principle: access control in RWP is attribute-based (ABAC) and delegatable. Rights are not assigned to roles in a fixed hierarchy, but expressed as verifiable claims attached to DIDs.
A denied access is not an integrity result. How a denial is communicated is defined in Validation Response Codes.
18.2. Access Policy Block
An implementation claiming this optional capability MAY carry the accessPolicy block as an entry in the Record’s metadata.extensions array (see metadata.extensions), using the reserved type identifier did:rwp:recordweb.org:extension-access-policy:
{
"type": "did:rwp:recordweb.org:extension-access-policy",
"accessPolicy": {
"visibility": "restricted",
"readAccess": [
"did:rwp:bern.ch:unit-legal",
"did:rwp:bern.ch:unit-planning"
],
"writeAccess": [
"did:rwp:bern.ch:user-petra-muster"
],
"delegationAllowed": true,
"expiresAt": null
}
}
| Field | Required | Description |
|---|---|---|
visibility
| SHOULD | public, restricted, or confidential
|
readAccess
| MAY | Array of DIDs with read permission |
writeAccess
| MAY | Array of DIDs with write permission (draft state only) |
delegationAllowed
| MAY | Whether listed DIDs may further delegate access |
expiresAt
| MAY | ISO 8601 timestamp after which access policy expires |
An implementation MUST NOT require another implementation to support this extension unless both claim the applicable access-control capability.
18.3. Trust anchor
RWP does not define trust in a signing party. For a globally resolvable DID, the namespace is resolved through the GNR to the DID Resolver responsible for it. The DID document and the verification methods obtained from this resolver are authoritative for the DID. For a locally scoped DID, the authoritative resolver is determined by local configuration. Neither the registration of a namespace in the GNR nor the conformance of an AgentRecord to the Root AgentRecord Schema establishes the identity or the authority of the Agent. These remain subject to the trust policy of the verifier. A Proof by a locally scoped DID has meaning only in the scope in which its local resolution is trusted.A resolver operator can present a DID document history that is internally consistent. A verifier that needs protection against this SHOULD retain previously verified DID document versions.
18.4. Delegation Chain
When delegationAllowed: true, a listed DID MAY issue a signed delegation token granting access to a third DID. The delegation token MUST:
-
be signed by the delegating DID’s verification key
-
reference the original Record DID
-
specify the access level being delegated (
readorwrite) -
include an expiry timestamp
Implementing systems MAY enforce delegation chains and MUST validate delegation token signatures before granting access.
18.5. Services and Access Control
A service entry in a DID document (see Service Entries), such as a restricted view or a function registry, is a declaration of availability. It does not grant access and does not bypass any access policy. Authorisation for using a declared service or function remains governed by this chapter and by the access policy of the implementing system.
19. Privacy and Security Considerations
RWP defines integrity, provenance, and interoperability requirements for Records. It does not define a general authorisation, confidentiality, key management, transport-security, retention, or data-protection regime. Implementations MUST apply the legal, organisational, and technical safeguards applicable to their deployment.
19.1. Privacy
A did:rwp identifier MUST NOT contain personal data or other information whose disclosure is restricted by the applicable rules.
The payload-only deletion regime removes payload bytes but retains the DID, metadata, and version graph. An implementation MUST NOT represent a payload-only deletion as full deletion of the Record.
19.2. Security
The integrity and proof procedures defined in Integrity and Proofs provide evidence of the integrity of a version and, where applicable, of the verification method used to sign it. They do not by themselves establish confidentiality, authorisation, or the substantive correctness of a Record.
A notification or other externally received signal that refers to an RWP Record or version is non-authoritative. Before creating, finalising, modifying, deleting, linking to, or otherwise acting on the referenced Record or version, an implementation MUST independently resolve and validate it according to the applicable requirements of this specification.
19.3. Service entries
A service entry, including its id, type and serviceEndpoint, MUST NOT contain personal data or other information whose disclosure is restricted by the applicable rules.
A service entry is a declaration of availability and does not grant access (see Services and Access Control). A client MUST NOT infer from a service entry that it is authorised to use the declared service or function.
A response from a declared service is not by itself an integrity statement about the Record. Where a response does not contain the full Record, it cannot be validated according to Validation.
An automated client, including an AI agent, SHOULD treat service entries and the function lists they expose as untrusted input. It SHOULD NOT invoke a declared function with side effects (for example publish) without applying the applicable access policy and the authorisation of the responsible party.
Implementations SHOULD consider that serviceEndpoint values may disclose information about the operating infrastructure.
Part IV: Annexes
20. Annex A: Record, Version, and Metadata Schemas
20.1. Status of the Annex A schemas (provisional)
The text of this specification and its interpretation are still under active revision. When RWP 1.0 is adopted, the schemas will be reviewed and, where necessary, republished as changed 1.0 Versions of the same SchemaRecords. Their versionHash values will then change! Implementations and application schemas that depend on the current hashes MUST NOT assume that these hashes are permanent before the adoption of RWP 1.0.
20.2. Record Schema
The JSON Schema for the Record, Version and Metadata structures is published at https://recordweb.org/schemas/rwp/1.0/record.json. The $id of the schema is this URL. This version of RWP refers to the file whose SHA-256 value is sha256:9f43b391aff10650ed80cbd08a7de460a5260a1d2346e343033d80071492ebb8. The value is calculated over the serialisation of the file according to [RFC8785] (§ 7.6 Hashing Procedure).
This schema defines structural validation only. The requirements for hashes, proofs and states are defined in § 7 Record Integrity and § 6.7 States and Transitions.
20.3. Root Agent
The Root Agent is the AgentRecord of the RecordWeb Trust Association. It is the initial controller of the Root Schemas (§ 20.4 Root Schemas). It is the owner of the Root Schemas, and the DID documents of the Root Schemas name it as controller.
| Name | DID | versionHash of the Record | versionHash of the first DID document | Record URL |
|---|---|---|---|---|
| RecordWeb Trust Association | did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:agent-recordweb-trust-association
| sha256:c389769378c1622ef1d0d7d25c2dee595400bfef6839b5a0cf03af1ee88a2e45
| sha256:c389769378c1622ef1d0d7d25c2dee595400bfef6839b5a0cf03af1ee88a2e45
| record |
The versionHash of the Record identifies the version of the AgentRecord that applies to this version of RWP. The versionHash of the first DID document identifies the first version of its DID document, which publishes the initial verification methods. A verifier MAY use this value as the starting point of the verification of the DID document history (§ 3.4 History Verification).
A later version of the AgentRecord or of its DID document is not part of this version of RWP. A change of verification methods creates a new DID document version (§ 3.2 History) and does not require a new version of RWP.
Trust assumptions of RWP are defined in § 16.4 Trust Anchor.
20.4. Root Schemas
A Root Schema is a SchemaRecord listed in the following table. A SchemaRecord is a Root Schema only if its DID is listed here. The column versionHash identifies the version of the Root Schema that applies to this version of RWP.
A later version of the same SchemaRecord, reachable from this version through previousSchemaVersion, is not part of this version of RWP. Whether and when an implementation adopts a later version is the decision of the implementation. RWP makes no statement about conformance to a later version before a later version of RWP lists it. A Record is validated against the version of its SchemaRecord identified by metadata.core.schemaVersion.
| Record type | DID | versionHash | Record URL |
|---|---|---|---|
| SchemaRecord | did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:schema-root-schemarecord
| sha256:f6fa964c6b4ad09af2d1e2d3c8c30fbb2d812796eccd7e592f56dbd3b8299cd2
| record |
| AgentRecord | did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:schema-root-agentrecord
| sha256:93692f566c244305f2c6ffccf3987a618281ad186247276b2b288c037ede9b2a
| record |
| CaseRecord | did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:schema-root-caserecord
| sha256:3622a965594d5b9970f2e5c92c66f878ccfb5a972f61ac3b46ef41dbfa1116e9
| record |
| AssertionRecord | did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:schema-root-assertionrecord
| sha256:fe06970166343fd7ca1c7c948617c7f1869d2273727a66333aa459cd7a123ef4
| record |
| DeletionRecord | did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:schema-root-deletionrecord
| sha256:ffb5e75db60bab56ce6c97befdaeaafe5e2c8c3f0acf6931e30b79ea6be09c73
| record |
Where the text of this specification and a Root Schema identified in this annex differ, the Root Schema prevails.
21. Annex B: Implementation Guide and Test Vectors (informative) #
21.1. Purpose
An existing application does not have to change its data model to take part in RecordWeb. In the typical case it exposes a thin adapter that generates a Record from its own data at request time and serves it through a resolver. The adapter needs to do four things:
-
Assign a stable DID to each object that is to be exposed.
-
Build a Version with at least one Representation from the current data.
-
Calculate
contentHash,versionHashandrecordHashas defined in § 7 Record Integrity. -
Serve the DID document and the Record over HTTP as defined in § 3 The DID Document.
The following sections show the calculation steps. The code is illustrative, not normative and not production ready. For a usable example, see: https://github.com/recordweb/recordweb-org/tree/main/tools
21.2. Calculating hashes
All three hashes use the same pattern: select the fields defined for the hash, serialise them as canonical JSON ([RFC8785]), and calculate SHA-256 over the UTF-8 bytes.
Rules that implementations commonly get wrong:
-
The hash input of a higher level contains the hash of the lower level with the prefix
sha256:(for examplecontentHashinsiderepresentations). The DID segments carry the bare lowercase hex value without prefix. -
An optional field that is absent MUST NOT appear in the hash input (neither as
nullnor as an empty string). (Pending resolution of the open issue on optional fields.) -
proofis not part of theversionHash. It is part of therecordHash, because it is part ofpayload. TherecordHashtherefore has to be recalculated after signing. -
The order is fixed:
contentHash, thenversionHash, then (after signing)recordHash. -
Timestamps are used exactly as stored. Do not reformat them.
import { createHash} from 'node:crypto' ; import canonicalizefrom 'canonicalize' ; // RFC 8785 const sha= ( obj) => 'sha256:' + createHash( 'sha256' ). update( canonicalize( obj), 'utf8' ). digest( 'hex' ); const pick= ( o, keys) => Object. fromEntries( keys. filter(( k) => kin o). map(( k) => [ k, o[ k]])); // 1. Representation with inline content const rep= { format: 'text/markdown' , content: '# Hello RecordWeb\n' , primary: true , role: 'source' , }; rep. contentHash= sha( pick( rep, [ 'format' , 'content' , 'primary' , 'role' ])); // 2. Version const t= '2026-10-28T08:00:00Z' ; const version= { state: 'draft' , parents: [], createdAt: t, modifiedAt: t, representations: [ rep], }; version. versionHash= sha( pick( version, [ 'state' , 'parents' , 'createdAt' , 'modifiedAt' , 'representations' ])); // 3. After signing: recordHash = sha(pick(record, ['did', 'payload', 'metadata']))
21.3. Test vectors for hashes
The following values allow an implementer to check the calculation.
Input: content is the string # Hello RecordWeb followed by a line feed, format is text/markdown, primary is true, role is source, createdAt and modifiedAt are 2026-10-28T08:00:00Z, state is draft, parents is empty.
| Step | Canonical input | Result |
|---|---|---|
| contentHash | {"content":"# Hello RecordWeb\n","format":"text/markdown","primary":true,"role":"source"}
| sha256:a51af70aabc8b3d0ffc85c780b559726112228b81f0d338bec40805a6aca58d8
|
| versionHash | {"createdAt":"2026-10-28T08:00:00Z","modifiedAt":"2026-10-28T08:00:00Z","parents":[],"representations":[{"content":"# Hello RecordWeb\n","contentHash":"sha256:a51af70aabc8b3d0ffc85c780b559726112228b81f0d338bec40805a6aca58d8","format":"text/markdown","primary":true,"role":"source"}],"state":"draft"} (full hash value in the actual input)
| sha256:14388cb87702b98a2aafe86ad706beb1db7f1459e13e9118f682c6b0806371b3
|
Note: The versionHash input uses the prefixed form sha256: plus the full 64-character contentHash. The shortened form above is for display only.
Same input without role: canonical input {"content":"# Hello RecordWeb\n","format":"text/markdown","primary":true}, contentHash b6c2109c5f51404a685f7fd3d60b2e66ae217f3e9cb2945f19ad16758f28ef22.
21.4. Complete example: SchemaRecord and instance
This example consists of two finalized Records in the namespace d2d14675-50c9-463d-b564-1ea50644c836. Both are signed with eddsa-jcs-2022 by the owner Agent …:efd09e7b-5f65-4637-b06c-404a9da97f0b (key #key-1). The public key is z6MkpgYzzH9AJJTnsYYMEaaVPZN2t2iCsz76ShftvkBt5jpP.
| SampleRecord SchemaRecord | SampleRecord instance | |
|---|---|---|
| DID | …:bf9087ea-10c4-4ea3-94b7-1828f37007f8
| …:a95437ee-25e4-469a-a2e1-c2b250b21e15
|
Type (recordType)
| …:1710c421-bb2b-462e-ad6b-fc47c934c276 (Root SchemaRecord)
| …:bf9087ea-10c4-4ea3-94b7-1828f37007f8 (the SchemaRecord on the left)
|
schemaVersion
| sha256:415f04c714d58c915ff0646c842f79b501d654fe6b586243977bc5550e8d7a77
| sha256:b9b5c6ca89de15838077dc5021775938f924fa88f04626bc7496a91d0eaf35fa
|
| Timestamp | 2026-10-28T09:00:00Z
| 2026-10-28T10:29:00Z
|
| contentHash | sha256:ce7fe35585911185edb268a09968157d5ae562b5afb7ac94576653bd4cb78fc3
| sha256:30b186a5c492b14e2432419905b5343882eb9fc94940fd9e04cfcf7fd4fd058c
|
| versionHash | sha256:b9b5c6ca89de15838077dc5021775938f924fa88f04626bc7496a91d0eaf35fa
| sha256:a86a4b1e25a3b436522a5047e8bf6c485ca502dfeff65fe7a5783228d16fb3e2
|
| recordHash | sha256:01ff63a9de0efc096c7884c12fcfae7bc1817565f82247126a8e30e20574d662
| sha256:57715def0857e907168e5c74240e6e6d2e8679a66f8da7f1d2e7f09e1cf93b06
|
| proofValue | z49pizqFAyb3fWep2FRLWgoXdrdfh1kTPsQXxZNR61wAhZbEnTYBkvCS9KBZtEgpmkwM8FMkCtzmyBjYR3GTmfSyY
| zfLVYZBoebLUnYAHvno1KNdAQztgotFQV9AW1CKNEb2ueqH8xor3PXt971utE9WQyyXcZsEEA3q3VmL5sUi3MSNU
|
The instance carries this content: {"title": "Hello RecordWeb", "description": "First instance of the SampleRecord type."}. It conforms to the jsonSchema of the SchemaRecord (title required, description optional, no other properties).
21.5. Retrieving the example Records #
Both Records and their DID documents are published by a productive resolver. The namespace d2d14675-50c9-463d-b564-1ea50644c836 is registered with the resolver endpoint https://recordweb.org/resolver/did. The complete documents, including all fields not shown in the table above, can therefore be retrieved at any time. An implementer can use them as reference data and recalculate every hash and the signature.
| Record | DID | DID document | Record |
|---|---|---|---|
| SampleRecord SchemaRecord | did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:bf9087ea-10c4-4ea3-94b7-1828f37007f8
| resolver/did/… | resolver/records/… |
| SampleRecord instance | did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:a95437ee-25e4-469a-a2e1-c2b250b21e15
| resolver/did/… | resolver/records/… |
A DID document is resolved by appending the DID to https://recordweb.org/resolver/did/. Its recordEndpoint member points to the Record, which is retrieved from https://recordweb.org/resolver/records/<namespace>/<record-id>. For example:
curl -s https://recordweb.org/resolver/did/did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:a95437ee-25e4-469a-a2e1-c2b250b21e15 curl -s https://recordweb.org/resolver/records/d2d14675-50c9-463d-b564-1ea50644c836/a95437ee-25e4-469a-a2e1-c2b250b21e15
The currentVersion member of the DID document equals the versionHash of the last Version in the Record. The recordHash in the Record is the value given in the table. These resolver URLs are stable for the lifetime of the example; the Records are finalized and are not modified.
21.6. Signing
The proof follows eddsa-jcs-2022:
-
Build the proof configuration:
type,cryptosuite,created(=modifiedAtof the Version),verificationMethod,proofPurpose(=assertionMethod). -
Take the Version without
proof. -
Calculate SHA-256 over the canonical JSON of each, and concatenate: configuration hash first, then Version hash (64 bytes).
-
Sign these bytes with Ed25519 and encode the signature as multibase base58btc (prefix
z) inproofValue. -
Recalculate
recordHash.
The signature is deterministic: signing the same input again yields the same proofValue.