Unofficial Draft
Copyright © 2026 the document editors/authors. Text is available under the Creative Commons Attribution 4.0 International Public License; additional terms may apply.
This specification defines a client-to-client data model, RDF vocabulary, and synchronization algorithm for attaching Conflict-free Replicated Data Type (CRDT) metadata and operation logs to RDF resources stored on Solid servers [SOLID-PROTOCOL]. It enables local-first Solid applications to perform offline edits and deterministic conflict resolution while remaining interoperable with Solid applications that do not implement this specification.
This section is non-normative.
Solid applications [SOLID-PROTOCOL] read and write RDF data [RDF11-CONCEPTS] hosted on decentralized Solid servers. While the Solid Protocol defines how clients interact with servers over HTTP, it does not prescribe how multiple clients reconcile concurrent or offline modifications to the same RDF resources.
A local-first architecture [LOCAL-FIRST] allows applications to operate against a local replica of user data and synchronize changes asynchronously in the background. To support this workflow without requiring server-side extensions, this specification defines an opt-in, client-to-client CRDT mechanism represented directly as RDF triples co-located in the authoritative document of each tracked resource.
This specification is guided by the following goals:
This specification is designed for asynchronous, multi-device local-first synchronization of structured RDF resources—such as personal productivity or domain-specific Solid applications—rather than real-time collaborative rich-text editing:
(resource, property) pairs and individual RDF terms. Literal values (such as long text fields) are treated as atomic values: concurrent edits to the same literal resolve via Last-Write-Wins rather than character-level merging. Because the operation history is retained, applications may optionally surface previous values to users for manual recovery.When a client modifies a tracked resource, it updates the resource's canonical RDF triples alongside a co-located metadata resource and one or more operations recording the change.
A Solid application that does not implement this specification updates the recipe's name by replacing the triple directly:
A client implementing this specification performs the same update to the canonical triple while also updating the metadata resource and recording a crdt:SetPropertyOperation:
For brevity, the update examples in this specification assume that earlier operations already exist for the tracked resource and therefore omit inception operations. When a managed property present on the tracked resource is not yet targeted by any crdt:PropertyOperation, clients also emit an inception operation for it as specified in 7.5 Inception Operations.
As well as sections marked as non-normative, all authoring guidelines, diagrams, examples, and notes in this specification are non-normative. Everything else in this specification is normative.
The key words MAY, MUST, MUST NOT, SHOULD, and SHOULD NOT in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.
This specification defines a single conformance class:
A conforming client MUST satisfy all normative requirements stated in this specification.
The following namespace prefixes are used throughout this specification:
| Prefix | Namespace IRI |
|---|---|
crdt |
http://www.w3.org/ns/solid/crdt# |
rdf |
http://www.w3.org/1999/02/22-rdf-syntax-ns# |
rdfs |
http://www.w3.org/2000/01/rdf-schema# |
xsd |
http://www.w3.org/2001/XMLSchema# |
schema |
https://schema.org/ |
solid |
http://www.w3.org/ns/solid/terms# |
Examples in this specification are serialized in Turtle [TURTLE] or N3 Patch [SOLID-PROTOCOL].
This specification uses the following terms:
rdf:type, of a tracked resource whose values a client reads or writes as part of its data model for that resource. Whether a property is managed is specific to each client; a property may be managed by some clients and not others, or by none.
crdt:Metadata that records lifecycle timestamps for a single tracked resource, as specified in 4. Metadata.
crdt:Operation that represents a single timestamped mutation applied to a tracked resource, as specified in 5. Operations.
crdt:Tombstone left in an authoritative document to indicate that a tracked resource has undergone permanent deletion, as specified in 6.1 Permanent Deletions.
crdt:DeleteOperation while retaining its RDF triples, metadata resource, and operation history so that it may later be restored.
crdt:SetPropertyOperation that records the values of a property of a tracked resource not yet targeted by any crdt:PropertyOperation, dated at crdt:createdAt. It is generated either while recording a new operation (as specified in 7.5 Inception Operations) or while backfilling (as specified in 7.6 Backfilling Untracked Changes).
Each tracked resource MUST have exactly one associated metadata resource stored in its authoritative document. A metadata resource records lifecycle timestamps for the tracked resource, including creation, last modification, and soft deletion.
A metadata resource MUST be an RDF resource identified by an IRI within the authoritative document and MUST satisfy the following constraints:
| Property | Requirement | Cardinality | Value Type | Description |
|---|---|---|---|---|
rdf:type |
MUST | 1 | crdt:Metadata |
Identifies the resource as CRDT metadata. |
crdt:resource |
MUST | 1 | IRI | The IRI of the tracked resource described by this metadata. |
crdt:createdAt |
MUST | 1 | xsd:dateTime [XMLSCHEMA11-2] |
Timestamp indicating when the tracked resource was created. |
crdt:updatedAt |
MUST | 1 | xsd:dateTime [XMLSCHEMA11-2] |
Timestamp of the most recent operation applied to the tracked resource, or equal to crdt:createdAt if no operations exist. |
crdt:deletedAt |
Conditional | 0..1 | xsd:dateTime [XMLSCHEMA11-2] |
Timestamp indicating when the tracked resource was soft-deleted. MUST be present if and only if the tracked resource is currently soft-deleted. |
All xsd:dateTime literals MUST include an explicit timezone offset (such as UTC, denoted by Z) to ensure unambiguous chronological comparison across clients.
Clients MUST locate a tracked resource's metadata resource by matching triples of the form ?metadata rdf:type crdt:Metadata ; crdt:resource <tracked-resource> within the authoritative document. Clients MUST NOT assume a specific fragment identifier convention (such as #it-metadata) when reading metadata written by other clients.
Whenever operations are applied or synchronized for a tracked resource, the client MUST update crdt:updatedAt on the metadata resource to equal the crdt:date of the latest operation for that tracked resource. If no operations exist for the tracked resource, crdt:updatedAt MUST remain equal to crdt:createdAt.
If a client receives an operation whose crdt:date precedes the crdt:createdAt of the metadata resource (for example, because another client created the tracked resource independently with an earlier timestamp), the client MAY set crdt:createdAt to that crdt:date.
State changes to a tracked resource are recorded as individual operations. Each operation is an immutable RDF description of a mutation applied to a tracked resource at a specific point in time.
A client MUST store all operations targeting a tracked resource in that resource's authoritative document. Co-locating operations with the tracked resource allows any client to retrieve the complete operation history by dereferencing a single Solid document.
Clients MUST locate operations for a tracked resource by matching crdt:resource triples within the authoritative document rather than relying on fragment naming conventions.
Every operation MUST be an RDF resource identified by an IRI within the authoritative document and MUST include the following properties:
| Property | Requirement | Cardinality | Value Type | Description |
|---|---|---|---|---|
rdf:type |
MUST | 1 | Concrete subclass of crdt:Operation |
Identifies the kind of mutation (see 5.4 Operation Types). |
crdt:resource |
MUST | 1 | IRI | The IRI of the tracked resource affected by the operation. |
crdt:date |
MUST | 1 | xsd:dateTime [XMLSCHEMA11-2] |
Timestamp indicating when the operation was performed. |
All crdt:date values MUST include an explicit timezone offset (such as UTC Z).
Operations whose type is a subclass of crdt:PropertyOperation MUST additionally include:
| Property | Requirement | Cardinality | Value Type | Description |
|---|---|---|---|---|
crdt:property |
MUST | 1 | IRI | The RDF predicate affected by the operation. |
The value of crdt:property MUST NOT be rdf:type. The types of a tracked resource are not part of the state recorded by operations, so they are not tracked, merged, or backfilled.
Operations whose type is a subclass of crdt:PropertyValueOperation MUST additionally include:
| Property | Requirement | Cardinality | Value Type | Description |
|---|---|---|---|---|
crdt:value |
MUST | 1..* | RDF Term (IRI or Literal) | One or more object values affected by the operation. |
Abstract classes in the CRDT vocabulary—crdt:Operation, crdt:PropertyOperation, and crdt:PropertyValueOperation—define the class hierarchy for vocabulary inference and MUST NOT be used as the sole rdf:type of a concrete operation.
To enable deterministic deduplication when multiple clients independently derive identical operations (for example, during 7.5 Inception Operations or 7.6 Backfilling Untracked Changes), a client SHOULD mint each operation IRI using the authoritative document IRI with a fragment identifier of the form:
<resource-fragment>-operation-<md5>, when the tracked resource IRI has a fragment identifier <resource-fragment>; oroperation-<md5>, when the tracked resource IRI has no fragment identifier.Here, <md5> is the lowercase hexadecimal MD5 digest computed over the UTF-8 serialization of a compact JSON array [RFC8259] (with no insignificant whitespace) containing the following strings in order:
crdt:date timestamp serialized in UTC ISO 8601 format truncated to millisecond precision (YYYY-MM-DDTHH:mm:ss.sssZ).crdt:property IRI, if the operation is a subclass of crdt:PropertyOperation.crdt:value RDF term serialized in canonical form and sorted in ascending lexicographical order (by Unicode code point), if the operation is a subclass of crdt:PropertyValueOperation.For step 5, each RDF term MUST be serialized using the canonical N-Quads term representation defined in [RDF-CANON] (Appendix A), with language tags normalized to lowercase:
<iri>xsd:string literals: "value" (omitting the xsd:string datatype)"value"@lang (with lang in lowercase)"value"^^<datatype>Literal values MUST be escaped as specified in [RDF-CANON] (Appendix A), which covers ", \, control characters, and characters outside the XML 1.1 Char production. Literals MUST use their lexical form as it appears in the RDF data, without any datatype-specific normalization (for example, "007"^^xsd:integer is serialized as "007"^^<http://www.w3.org/2001/XMLSchema#integer>, not "7"^^<http://www.w3.org/2001/XMLSchema#integer>).
Clients MUST NOT parse operation IRIs to infer operation metadata; clients MUST read the RDF properties of the operation directly.
This specification defines six concrete operation classes: four property operations and two resource lifecycle operations.
For brevity, the examples below assume that earlier operations already exist for the tracked resource and omit inception operations (see 7.5 Inception Operations).
A crdt:SetPropertyOperation replaces all triples of the tracked resource having the predicate specified by crdt:property with the values specified by crdt:value.
A client SHOULD use crdt:SetPropertyOperation when replacing the complete value set of a property, rather than emitting separate crdt:RemovePropertyOperation and crdt:AddPropertyOperation instances.
A crdt:UnsetPropertyOperation removes all triples of the tracked resource having the predicate specified by crdt:property. A crdt:UnsetPropertyOperation MUST NOT include crdt:value triples.
To remove only a subset of values while preserving others, a client MUST use 5.4.4 crdt:RemovePropertyOperation instead.
A crdt:AddPropertyOperation adds one or more triples to the tracked resource for the predicate specified by crdt:property using the values specified by crdt:value. Unlike 5.4.1 crdt:SetPropertyOperation, existing triples with the same predicate are preserved.
A crdt:RemovePropertyOperation removes only the triples of the tracked resource whose predicate matches crdt:property and whose object matches one of the values specified by crdt:value. Unlike 5.4.2 crdt:UnsetPropertyOperation, all other values for that predicate are preserved.
A crdt:DeleteOperation performs a soft deletion of the tracked resource, as specified in 6.2 Soft Deletions. A crdt:DeleteOperation MUST NOT include crdt:property or crdt:value triples.
To erase a tracked resource and its history irreversibly, a client MUST perform a permanent deletion using a tombstone instead (see 6.1 Permanent Deletions).
A crdt:RestoreOperation reverses a prior soft deletion of the tracked resource, as specified in 6.2 Soft Deletions. A crdt:RestoreOperation MUST NOT include crdt:property or crdt:value triples.
This specification supports two deletion mechanisms: permanent deletion using tombstones and soft deletion using lifecycle operations.
In order to comply with user privacy expectations and data erasure requirements in Solid [SOLID-PROTOCOL], clients MAY support permanent deletion of tracked resources.
When performing a permanent deletion of a tracked resource, a client MUST:
A client SHOULD NOT delete the authoritative document via HTTP DELETE to perform a permanent deletion; doing so prevents other clients from distinguishing a deleted resource from one that never existed, which can cause offline replicas to inadvertently recreate the resource during synchronization.
A tombstone MUST be an RDF resource identified by an IRI within the authoritative document and MUST satisfy the following constraints:
| Property | Requirement | Cardinality | Value Type | Description |
|---|---|---|---|---|
rdf:type |
MUST | 1 | crdt:Tombstone |
Identifies the resource as a deletion tombstone. |
crdt:resource |
MUST | 1 | IRI | The IRI of the permanently deleted resource. |
crdt:deletedAt |
MUST | 1 | xsd:dateTime [XMLSCHEMA11-2] |
Timestamp indicating when the permanent deletion occurred. |
Clients MUST locate tombstones by matching triples of the form ?tombstone rdf:type crdt:Tombstone ; crdt:resource <tracked-resource> rather than assuming a specific fragment naming convention.
When performing a soft deletion of a tracked resource, a client MUST:
crdt:DeleteOperation targeting the tracked resource with crdt:date set to the deletion timestamp.crdt:deletedAt on the metadata resource to the crdt:date of the crdt:DeleteOperation and update crdt:updatedAt accordingly.When restoring a soft-deleted resource, a client MUST:
crdt:RestoreOperation targeting the tracked resource with crdt:date set to the restoration timestamp.crdt:deletedAt triple from the metadata resource and update crdt:updatedAt accordingly.This specification uses a Last-Write-Wins (LWW) conflict resolution strategy evaluated independently per (resource, property) pair for property mutations, and per resource for lifecycle mutations (crdt:DeleteOperation and crdt:RestoreOperation).
Because LWW relies on operation timestamps generated by client clocks, concurrent edits are subject to clock skew. See 8. Security and Privacy Considerations for a discussion of tradeoffs and limitations.
To synchronize a tracked resource R between a local replica and its authoritative document on a Solid server, a client MUST perform a pull–merge–push cycle:
R.R in the remote authoritative document or whether R was permanently deleted locally, and detect and resolve any deletion conflicts (see 7.4 Permanent Deletion Conflicts).O of all local and remote operations targeting R and execute the 7.3 State Resolution Algorithm to compute the converged canonical triples and metadata resource.When pushing changes to an authoritative document on a Solid server, multiple clients may attempt to update the same document concurrently. To prevent lost updates or inconsistent metadata:
ETag and If-Match headers, per [SOLID-PROTOCOL]) or precondition-checked patch operations when writing to the authoritative document. When a client uses either mechanism, the precondition MUST be relative to the version of the authoritative document that was used to compute the merged state; re-fetching the document immediately before writing and deriving the precondition from that copy does not prevent lost updates.412 Precondition Failed or a patch conflict error), the client MUST re-fetch the authoritative document, re-run the 7.1 Replica Synchronization Flow against the updated remote state, and retry the write.Given a tracked resource R and the union of all known operations O whose crdt:resource is R, a client MUST compute the resolved state of R as follows:
crdt:Tombstone) applies to R and has not been overridden via 7.4 Permanent Deletion Conflicts, R MUST be treated as permanently deleted. The client MUST remove any local triples for R, its metadata resource, and its operations, and terminate this algorithm for R.O in ascending chronological order by their crdt:date timestamp. If two operations have identical timestamps (representing the same instant in time), the client MUST break ties by sorting them in ascending lexicographical order (by Unicode code point) of their operation IRI.properties be an empty map from predicate IRI P to a set of RDF terms.deletedAt be unset.op in the sorted sequence O:op is a crdt:SetPropertyOperation for predicate P with values V, set properties[P] to V (replacing any prior values for P).op is a crdt:UnsetPropertyOperation for predicate P, set properties[P] to the empty set (clearing any prior values for P).op is a crdt:AddPropertyOperation for predicate P with values V, add all terms in V to properties[P].op is a crdt:RemovePropertyOperation for predicate P with values V, remove all terms in V from properties[P].op is a crdt:DeleteOperation, set deletedAt to op's crdt:date.op is a crdt:RestoreOperation, clear deletedAt (mark R as active).P in properties, the canonical RDF triples for (R, P) in the authoritative document MUST match the set of RDF terms in properties[P].O is non-empty, set crdt:updatedAt on R's metadata resource to the crdt:date of the last operation in the sorted sequence O.deletedAt is set, set crdt:deletedAt on R's metadata resource to deletedAt; otherwise, ensure crdt:deletedAt is absent from R's metadata resource.
Because crdt:SetPropertyOperation and crdt:UnsetPropertyOperation reset the value set for a (R, P) pair, incremental operations (crdt:AddPropertyOperation and crdt:RemovePropertyOperation) only affect the final value set when they are ordered after the most recent reset operation for (R, P).
By default, a permanent deletion supersedes all operations for the deleted resource. However, a conflict occurs when a tracked resource is permanently deleted in one replica while it is modified in another, meaning that the replica performing the deletion was not aware of the modification. Because crdt:date timestamps do not capture which operations a replica had observed, clients MUST NOT detect these conflicts by comparing timestamps alone. Instead, a client MUST detect them as follows:
R, and the local replica holds operations for R that it has not yet pushed to the authoritative document.R and has not yet pushed the tombstone, and the remote authoritative document contains operations for R that were not present in it when the local replica last synchronized R.To detect the second case, a client that performs a permanent deletion MUST retain enough local information to determine whether the set of operations for R in the authoritative document has changed since its last synchronization, until the tombstone has been pushed. This information MUST only reflect the operations observed in the authoritative document, excluding local operations that were never pushed; otherwise, a replica with unpushed local changes would always detect a conflict when deleting. Such information MUST NOT be written to the authoritative document, since operation IRIs are derived from operation values and could reveal permanently deleted data.
The observed set only grows over time, because operations are immutable and only removed by a permanent deletion. Any difference therefore indicates a modification the deleting replica was not aware of.
If neither case applies, no conflict exists and the client MUST apply the permanent deletion without user intervention.
When either conflict is detected, a client MAY prompt the user (or apply an application-defined conflict resolution policy) to choose between:
R from the authoritative document and preserving the surviving replica's resource triples, metadata resource, and operations.If no conflict resolution policy or user intervention is provided, the client MUST default to Delete.
To avoid storing redundant operations for resources that are created and never modified, a client SHOULD omit operations when initially creating a tracked resource, writing only the resource's canonical RDF triples and its metadata resource (with crdt:createdAt and crdt:updatedAt set to the creation timestamp).
When a client records an operation (whether a property or lifecycle operation) for a tracked resource that has a metadata resource, the client MUST emit inception operations alongside the new operation: for each managed property P of the client present on the tracked resource prior to the change and not yet targeted by any existing crdt:PropertyOperation for the tracked resource, the client MUST generate one crdt:SetPropertyOperation containing all initial values of P, with crdt:date set to the resource's crdt:createdAt value. Properties not managed by the client are left untouched and remain the responsibility of other clients that manage them (see 7.6 Backfilling Untracked Changes).
To preserve interoperability with Solid applications that do not implement this specification, a client MUST detect and backfill untracked changes before synchronizing a tracked resource from an authoritative document.
A client detects untracked changes as follows:
R. If no operations exist yet for R, treat the canonical triples present in the authoritative document as the baseline property state (matching 7.5 Inception Operations, which omits operations for unmodified resources).P that is either a managed property of the client or already targeted by at least one crdt:PropertyOperation for R, compare the resolved property values (treating any predicate absent from properties as the empty set) against the actual canonical RDF triples for R present in the authoritative document. Predicates that are neither managed by the client nor targeted by existing operations MUST NOT be backfilled, as they remain the responsibility of other clients that manage them.P whose actual values differ from the resolved values, emit a reconciling operation to bring the operation log into agreement with the actual canonical triples:crdt:PropertyOperation targets P yet, the client MUST emit an inception operation for P: a crdt:SetPropertyOperation containing the actual values of P, with crdt:date set to the resource's crdt:createdAt value.crdt:date MUST be strictly later than the latest existing crdt:date for R (so that it supersedes prior operations rather than triggering repeated backfills). To enable deterministic deduplication across clients, a client SHOULD emit a crdt:SetPropertyOperation containing the actual values (or a crdt:UnsetPropertyOperation if all values of P were removed), using the authoritative document's HTTP Last-Modified timestamp as crdt:date when available and strictly later than the latest existing crdt:date, or the latest existing crdt:date plus 1 millisecond if Last-Modified is earlier or equal (falling back to the current client time when Last-Modified is unavailable).If an authoritative document contains a resource created by a non-CRDT application without a metadata resource, a client MAY initialize a metadata resource for it when bringing it under CRDT tracking.
This section is non-normative.
Because the 7.3 State Resolution Algorithm orders operations using crdt:date timestamps generated by clients, it relies on reasonably synchronized device clocks and cooperative clients:
Recording operations in the authoritative document means that historical values—including values that have since been overwritten via crdt:SetPropertyOperation or removed via crdt:RemovePropertyOperation or crdt:UnsetPropertyOperation—remain present in the document and readable by any agent with read access.
Similarly, soft deletion retains all resource triples and operation history in the authoritative document. Applications handling sensitive personal data should expose permanent deletion to users so that historical values and operations can be erased.
Even after permanent deletion, a tombstone reveals that a resource with a given IRI previously existed and the timestamp (crdt:deletedAt) at which it was deleted. When complete erasure of even this metadata is required and no other resources share the authoritative document, applications may delete the entire authoritative document via HTTP DELETE instead of leaving a tombstone, though doing so risks offline clients inadvertently recreating the resource upon synchronization.
Referenced in:
Referenced in:
Referenced in:
Referenced in:
Referenced in:
Referenced in:
Referenced in:
Referenced in:
Referenced in:
Referenced in: