Skip to content

[RWP] Multiple Endpoint for Namespace Resolver and DID Resolver #55

Open

Description

@Jenziner

Proposed change

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).

Activity

  1. Jenziner commented on Nov 23, 2026

    @Jenziner
    ContributorAuthor

    Feedback received in CfC #13

    Comment by @manuelweingartner on recordweb/.github#13, relating to this issue:

    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).
    status MAY active, deprecated or disabled. Default: active.
    validFrom MAY ISO 8601 timestamp.
    validUntil MAY ISO 8601 timestamp.

    Example:

    "recordEndpoint": [
      { "url": "https://records.example.ch/…", "kind": "operational",
        "priority": 10, "status": "active", "validFrom": "2026-01-01T00:00:00Z" },
      { "url": "https://ais.example.ch/…", "kind": "archival", "priority": 20 }
    ]

    2. kind: purpose without protocol semantics

    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

    1. 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.
    2. A client tries usable endpoints in ascending priority. Without priority, array order applies.
    3. priority determines only the order of retrieval. It does not determine which state is correct.
    4. 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.
    5. 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.
    6. 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

    1. Should the kind vocabulary for resolverEndpoint be separate from that for recordEndpoint?
    2. Is internal a purpose or an access mode? An alternative is a separate optional property for scope.
    3. 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.

  2. manuelweingartner commented on Nov 23, 2026

    @manuelweingartner

    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.

  3. Jenziner commented on Nov 24, 2026

    @Jenziner
    ContributorAuthor

    That’s right, thank you for pointing that out.

    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?

  4. manuelweingartner commented on Nov 24, 2026

    @manuelweingartner

    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.

  5. Jenziner commented on Nov 25, 2026

    @Jenziner
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions