Skip to content

[RWP] Portable referrer information for finalised Records (outside versionHash and proof) #57

Open

Description

@Jenziner

Proposed change

Add an optional field referrers to metadata.core (chapter 5.1).

Field definition (proposal)

Field Required Type Description
referrers MAY Array of objects Known Records that refer to this Record or to one of its Versions. Informational pointers only.

Each entry:

Field Required Type Description
uri MUST String URI (DID) of the referring Record. SHOULD include versionHash (Hard Link) so that it identifies exactly one Version.
addedAt MUST ISO 8601 Time at which the custodian added the entry.
addedBy SHOULD DID AgentRecord of the party that added the entry.

Normative rules (proposal)

  • referrers is part of metadata.core. It is therefore NOT covered by the versionHash and NOT covered by any Version proof. It IS covered by the Record-level recordHash (7.2).
  • Entries MAY be added or removed after finalisation, without creating a new Version.
  • The list is a set of pointers, not evidence. A consumer MUST NOT treat an entry as proof that the referring Record exists, is finalised, is valid, or is authorised. It MUST validate the referring Record independently (integrity, proof, applicable trust policy).
  • The absence of an entry MUST NOT be interpreted as the absence of referrers. Completeness is not guaranteed.
  • A custodian that transfers a Record to another custodian SHOULD include referrers in the transferred Record representation.
  • The RWPRecordReferrers service (3.5) remains the discovery mechanism for current referrers within the namespace. referrers is a portable snapshot that travels with the Record. It does not replace the service.
  • Access control (chapter 18) applies. A custodian MAY omit or restrict entries that the requester is not permitted to see.

Rationale

Problem

Information about an already finalised Record can come into existence only after its finalisation. A typical case is an AssertionRecord that refers to a specific Version of a CaseRecord. A CaseRecord cannot link such an Assertion, because the Assertion must contain the versionHash of the finalised Case Version (9.4, 6.7.2). The Case would depend on a hash that exists only after its own finalisation. This was discussed in #56.

Today, such referrers can be found only via a service (RWPRecordReferrers, 3.5, see #37). A service is operated by one custodian and does not travel with the Record. If a Record is transferred to another custodian (for example for archival), the knowledge of which Records refer to it is lost, unless the new custodian can reconstruct it. The Record itself has no place to carry it.

Why not the Version content?

The information changes after finalisation and does not change the content of the Version. It must therefore not be part of the versionHash or the Version proof. Otherwise every new referrer would require a new Version, which would misrepresent the Record's history.

Why metadata.core?

Metadata is not versioned and may be updated in place (5). It is outside the versionHash (7.3) but covered by the recordHash (7.2), so a change is detectable. Placing the field in metadata.core rather than in metadata.extensions makes it interoperable. metadata.extensions entries are defined by a profile or SchemaRecord and need to be supported only by implementations that claim that profile (5.3). A portable list of referrers is only useful for custodian transfer if every custodian understands it.

Trust

The list is deliberately weak. It consists of pointers, in line with the statement in #37 that entries are pointers rather than evidence. Each referrer still has to be verified on its own. The recordHash is unsigned (7.1), so the list is not an attestation by anyone.

Not part of #56

The application profile discussed in #56 does not depend on this. It only illustrates the problem.

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