You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[RWP] Multiple Endpoint for Namespace Resolver and DID Resolver #55
ResolverEndpoint (in GNR) and RecordEndpoint (in DIDDocument) should be an array.
Rationale
Both, Resolver- and RecordEndpoint should be an array, because:
of reliability (multiple Endpoints help in maintenance and accessibility)
more usecases ("internal" route with alternate access method, access to live-record and the one already in a AIS, alternative access in international cases with limited network availability)
Impact on RWC (concept explainer)
undefined
Impact on home (general documentation)
undefined
Call for Consensus
This change requires a Call for Consensus (CfC) before merging.
This is purely editorial and does not change normative meaning (CfC may be skipped; Editors will confirm).
On #55. Multiple endpoints match reality, parallel operation is the normal case in our projects rather than the exception. The proposal does not yet say which endpoint is authoritative if two of them return different states, for example during a migration where one system has already finalised a new version. Worth stating explicitly.
Thank you. The proposal below addresses this point. It extends the original proposal (arrays for ResolverEndpoint and RecordEndpoint).
Proposal
1. Endpoint entries instead of plain URLs
recordEndpoint (DID document) and resolverEndpoint (GNR routing record) become arrays of endpoint objects. No implementations exist yet, so no backward-compatibility rule is needed.
Field
Required
Description
url
MUST
Endpoint URL. For recordEndpoint, url and the DID id together MUST form a full URL (unchanged from 0.0.17).
kind
MUST
Purpose of the endpoint (see 2).
priority
MAY
Non-negative integer. Lower values are tried first (same convention as DNS SRV, RFC 2782).
kind describes the purpose of an endpoint. RWP attaches no behaviour or authority to any kind value. What a Record is, for example whether a Version is finalised, is stated by the Record itself and not by the endpoint through which it is retrieved.
Minimum vocabulary, normative for interoperability:
operational: location of ongoing processing and use
archival: location of long-term preservation (e.g. an archival information system)
replica: copy for availability or maintenance
internal: access limited to the network of the operating organisation
Additional values MAY be used. A client that does not recognise a kind value MUST ignore the value and MUST NOT change its processing because of it. The same structure applies to resolverEndpoint. Whether the vocabulary for resolver endpoints differs from the one for record endpoints is an open question (see below).
Rationale for not carrying the purpose in the Record: metadata is covered by recordHash. A change of kind there would produce a different recordHash for the same Record stored in a different place. The DID document is already the location layer: it is not covered by recordHash, versioned, and signed.
3. Selection and conflict handling
An endpoint is usable if status is not disabled and the current time lies within validFrom and validUntil. A missing field means unrestricted. disabled always takes precedence.
A client tries usable endpoints in ascending priority. Without priority, array order applies.
priority determines only the order of retrieval. It does not determine which state is correct.
If endpoints return different states of a Record, the signed currentVersionHash of the DID document is decisive. The endpoint whose latest finalised Version matches it is current. A client MUST NOT merge states and SHOULD report the divergence.
For resolverEndpoint, the DID document version chain (previousVersionHash) is decisive. The longest validly chained and signed history applies. Two DID document versions with the same previousVersionHash are a fork. A client MUST treat a fork as an error.
validFrom and validUntil are hints for endpoint selection. They never affect the validity of a Version or of a DID document version.
Example, migration: the operator publishes a new DID document version in which the new system is listed with a lower priority. The old system is set to deprecated, later disabled. As soon as the new system has finalised a Version and the DID document carries the new currentVersionHash, the old system is outdated until it catches up.
Open questions
Should the kind vocabulary for resolverEndpoint be separate from that for recordEndpoint?
Is internal a purpose or an access mode? An alternative is a separate optional property for scope.
Should the minimum status values be extensible, as kind is?
Affected sections
RWP 3.1 (DID Document fields), 3.2 (History), 16.2.2 and 16.2.7 (GNR routing record), 16.2.5 (Resolution Obligation); Annex B examples; consistency pass together with #59 and #60 (did:rwp rename) as agreed in CfC #13.
Thank you, this resolves the point. Making the signed currentVersionHash decisive and forbidding clients from merging states is the right rule, and the migration example makes it workable in practice. kind: archival in particular matches the case we see most often, where a record moves from the operational system to an archival information system.
One question from practice, which connects to rwc#25: what happens to kind after a custody transfer? Once an archival information system is no longer holding a secondary copy but is the responsible location, archival describes its purpose correctly but no longer describes its role. It would help to state whether kind is expected to change at that point, and who triggers that change. Today the operator decides when the endpoint is switched, and the same discretion would apply here.
On the open questions: internal reads as an access mode rather than a purpose. In our deployments the same archival endpoint can be reachable internally and externally depending on the customer's network, so a separate optional scope property would model that more cleanly than a kind value.
I think it’s a very valid point. kind is interesting, but as I described above, the archive link would then have to be assigned kind=operational. That would be technically correct, but would probably confuse many archives. Because it immediately suggests once again that work on this record can continue. And that is, of course, incorrect.
Would a better solution be for kind to be optional and priority a required field? That way, one could define that the lowest priority is the authoritative URI, and that the kind field merely provides information about the type of system behind it?
Making kind purely informative is right. I would be careful with the second half, though: priority and authority are two different things.
priority is a retrieval hint, which endpoint to try first for availability or latency. A replica may be tried first for performance without being the responsible location. If the lowest priority also defines authority, those two can no longer be expressed independently.
It would also sit awkwardly next to the rule you proposed above, that the signed currentVersionHash decides which state is current. That rule already answers the question, and it does so with a signed value rather than with an ordering anyone can change. I would keep it as the single rule and leave priority optional.
On the concern about archives: whether work can continue is stated by the state of the Version, not by the endpoint it came from. Saying that explicitly in the text would remove the pressure to express custody through kind.
Aren’t we getting a bit too complex and complicated here?
My basic idea behind this issue was purely redundancy. I envisaged it in the same way as DNS, where I can have a primary and a secondary DNS server. But both provide same record. One is stored in the west and the other in the east.
With your idea, we’re expanding the scope (which is entirely justified). However, there are a lot more requirements and use cases:
Migration from two completely different systems (as, for example, the Swiss Federal Administration did: moving from Fabasoft to ActaNova)
Advance delivery to the archive
Decommissioning of an application (while retention phase)
And other use cases where the data state is not, or cannot be, identical for a certain period of time.
If we store so much optional information alongside the recordEndpoint (such as kind, priority, status, validity, etc.) it becomes very complex.
Wouldn’t it be simpler (and better suited to various yet unknown use cases) if this were handled via the serviceEndpoints (see RWP chapter 3.5)? The recordEndpoint must always be the authoritative, master, origin, valid, current record. All other requirements must be implemented via serviceEndpoints.
This could mean, for example, that only a very small number of users have access via the recordEndpoint (the truth source), whilst only the finalised versions are available via a serviceEndpoint. Or it could be a very specific version for a very specific task.
If we agree on this, I believe the recordEndpoint should be a simple list of URIs, without any further attributes, so that all entries are on an equal level.
Activity
[RWP] Multiple Endpoint for Namespace Resolver and DID Resolver
[RWP] Multiple Endpoint for Namespace Resolver and DID Resolver Part …
Jenziner commentedon Nov 23, 2026
Feedback received in CfC #13
Comment by @manuelweingartner on recordweb/.github#13, relating to this issue:
Thank you. The proposal below addresses this point. It extends the original proposal (arrays for
ResolverEndpointandRecordEndpoint).Proposal
1. Endpoint entries instead of plain URLs
recordEndpoint(DID document) andresolverEndpoint(GNR routing record) become arrays of endpoint objects. No implementations exist yet, so no backward-compatibility rule is needed.urlrecordEndpoint,urland the DIDidtogether MUST form a full URL (unchanged from 0.0.17).kindprioritystatusactive,deprecatedordisabled. Default:active.validFromvalidUntilExample:
2.
kind: purpose without protocol semanticskinddescribes the purpose of an endpoint. RWP attaches no behaviour or authority to anykindvalue. What a Record is, for example whether a Version is finalised, is stated by the Record itself and not by the endpoint through which it is retrieved.Minimum vocabulary, normative for interoperability:
operational: location of ongoing processing and usearchival: location of long-term preservation (e.g. an archival information system)replica: copy for availability or maintenanceinternal: access limited to the network of the operating organisationAdditional values MAY be used. A client that does not recognise a
kindvalue MUST ignore the value and MUST NOT change its processing because of it. The same structure applies toresolverEndpoint. Whether the vocabulary for resolver endpoints differs from the one for record endpoints is an open question (see below).Rationale for not carrying the purpose in the Record:
metadatais covered byrecordHash. A change ofkindthere would produce a differentrecordHashfor the same Record stored in a different place. The DID document is already the location layer: it is not covered byrecordHash, versioned, and signed.3. Selection and conflict handling
statusis notdisabledand the current time lies withinvalidFromandvalidUntil. A missing field means unrestricted.disabledalways takes precedence.priority. Withoutpriority, array order applies.prioritydetermines only the order of retrieval. It does not determine which state is correct.currentVersionHashof the DID document is decisive. The endpoint whose latest finalised Version matches it is current. A client MUST NOT merge states and SHOULD report the divergence.resolverEndpoint, the DID document version chain (previousVersionHash) is decisive. The longest validly chained and signed history applies. Two DID document versions with the samepreviousVersionHashare a fork. A client MUST treat a fork as an error.validFromandvalidUntilare hints for endpoint selection. They never affect the validity of a Version or of a DID document version.Example, migration: the operator publishes a new DID document version in which the new system is listed with a lower
priority. The old system is set todeprecated, laterdisabled. As soon as the new system has finalised a Version and the DID document carries the newcurrentVersionHash, the old system is outdated until it catches up.Open questions
kindvocabulary forresolverEndpointbe separate from that forrecordEndpoint?internala purpose or an access mode? An alternative is a separate optional property for scope.statusvalues be extensible, askindis?Affected sections
RWP 3.1 (DID Document fields), 3.2 (History), 16.2.2 and 16.2.7 (GNR routing record), 16.2.5 (Resolution Obligation); Annex B examples; consistency pass together with #59 and #60 (
did:rwprename) as agreed in CfC #13.manuelweingartner commentedon Nov 23, 2026
Thank you, this resolves the point. Making the signed
currentVersionHashdecisive and forbidding clients from merging states is the right rule, and the migration example makes it workable in practice.kind: archivalin particular matches the case we see most often, where a record moves from the operational system to an archival information system.One question from practice, which connects to rwc#25: what happens to
kindafter a custody transfer? Once an archival information system is no longer holding a secondary copy but is the responsible location,archivaldescribes its purpose correctly but no longer describes its role. It would help to state whetherkindis expected to change at that point, and who triggers that change. Today the operator decides when the endpoint is switched, and the same discretion would apply here.On the open questions:
internalreads as an access mode rather than a purpose. In our deployments the same archival endpoint can be reachable internally and externally depending on the customer's network, so a separate optional scope property would model that more cleanly than akindvalue.Jenziner commentedon Nov 24, 2026
That’s right, thank you for pointing that out.
I think it’s a very valid point.
kindis interesting, but as I described above, the archive link would then have to be assignedkind=operational. That would be technically correct, but would probably confuse many archives. Because it immediately suggests once again that work on this record can continue. And that is, of course, incorrect.Would a better solution be for
kindto be optional andprioritya required field? That way, one could define that the lowest priority is the authoritative URI, and that thekindfield merely provides information about the type of system behind it?manuelweingartner commentedon Nov 24, 2026
Making kind purely informative is right. I would be careful with the second half, though: priority and authority are two different things.
priority is a retrieval hint, which endpoint to try first for availability or latency. A replica may be tried first for performance without being the responsible location. If the lowest priority also defines authority, those two can no longer be expressed independently.
It would also sit awkwardly next to the rule you proposed above, that the signed currentVersionHash decides which state is current. That rule already answers the question, and it does so with a signed value rather than with an ordering anyone can change. I would keep it as the single rule and leave priority optional.
On the concern about archives: whether work can continue is stated by the state of the Version, not by the endpoint it came from. Saying that explicitly in the text would remove the pressure to express custody through kind.
Jenziner commentedon Nov 25, 2026
Aren’t we getting a bit too complex and complicated here?
My basic idea behind this issue was purely redundancy. I envisaged it in the same way as DNS, where I can have a primary and a secondary DNS server. But both provide same record. One is stored in the west and the other in the east.
With your idea, we’re expanding the scope (which is entirely justified). However, there are a lot more requirements and use cases:
If we store so much optional information alongside the
recordEndpoint(such askind,priority,status,validity, etc.) it becomes very complex.Wouldn’t it be simpler (and better suited to various yet unknown use cases) if this were handled via the
serviceEndpoints(see RWP chapter 3.5)? TherecordEndpointmust always be the authoritative, master, origin, valid, current record. All other requirements must be implemented viaserviceEndpoints.This could mean, for example, that only a very small number of users have access via the
recordEndpoint(the truth source), whilst only the finalised versions are available via aserviceEndpoint. Or it could be a very specific version for a very specific task.If we agree on this, I believe the
recordEndpointshould be a simple list of URIs, without any further attributes, so that all entries are on an equal level.