Repository navigation
Description
Summary
AssertionRecords currently express relationships between Records (e.g. within Cases).
This issue adds a second, normative use: attributable statements about the status of a
Record, a Record version or a key (revoked, suspended, reinstated), with an effective
time that may precede the time of assertion. It also defines how a verifier determines
the status of a subject at a given time.
Motivation
- RWP defines no revocation (2.2.4 excludes certification revocation; ConformanceRecords
only haveexpiresAtandsupersedes). - A finalised Version is immutable, so status cannot be written into the Record.
- A later authoritative determination may take effect retroactively (e.g. key compromise
discovered months after the event). Recording time and effective time must be separable.
Proposal
1. effectiveAt (11.4)
Add an optional ISO 8601 field effectiveAt to the AssertionRecord payload: the time from
which the asserted relationship holds. It MAY precede assertedAt. A predicate
declaration (12.5) may make it required.
2. Predicate hasStatus (12.x, declared per 12.5)
- IRI:
https://w3id.org/recordweb/ontology#hasStatus - Semantics: the subject has the status given by the object from
effectiveAt. - Direction: subject → status.
- Subject kinds: an RWP Record (with or without
versionHash) or a DID URL identifying a
verification method of an RWP DID. - Object kinds: a status IRI from the status vocabulary.
- Validation:
effectiveAtREQUIRED; object MUST be a declared status IRI. - PROV-O offers no matching predicate (
prov:wasInvalidatedByrelates an Entity to an
Activity), so a RecordWeb predicate is declared.
3. Status vocabulary
https://w3id.org/recordweb/status#revoked | #suspended | #reinstated
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.
Profiles MAY declare further status IRIs (12.5).
4. Scope of the subject
- Subject with
versionHash: applies to that version only. - Subject without
versionHash: applies to all versions of the Record. - Subject DID URL (e.g.
did:rwp:<ns>:<id>#key-1): applies to that verification method.
5. Normative schema
RWP defines a SchemaRecord for status assertions in the RecordWeb namespace
(did:rwp:recordweb.org:schema-status-assertion, identifier tbd). Status assertions
MUST use it. Payload: subject, predicate (fixed), object, assertedBy,
assertedAt, effectiveAt (required), reason (optional string).
6. Single version
A finalised status assertion has only its root version and receives no further versions.
A later statement is a new status assertion. It is a new fact, not a correction of the
earlier one (cf. 5.4.4). This keeps revoked final and avoids version selection.
7. Discovery
Status assertions are found via the RecordReferrers service, filtered by recordType =
status assertion schema. Completeness applies to the target's namespace only.
8. Authority
RWP does not define who may issue status assertions. The verifier evaluates assertedBy
under its own trust policy (cf. 2.7).
9. Status determination (normative)
Inputs: subject S (Record version or key), evaluation time T, knowledge time K.
- Collect status assertions for S in two scopes: version scope (subject id +
versionHash
of S) and record scope (subject id withoutversionHash). For keys: the DID URL. - Keep those with
assertedAt≤ K that the verifier accepts under its trust policy. - Per scope:
- If a
revokedassertion witheffectiveAt≤ T exists, the scope status is revoked. - Otherwise take the
suspended/reinstatedassertion with the greatest
effectiveAt≤ T (tie: greatestassertedAt).reinstatedwithout a preceding
suspendedin the same scope is ignored.suspended→ suspended;reinstated→ none. - No assertion → none.
- If a
- Combine scopes restrictively: revoked, then suspended, then none.
- Result: revoked / suspended / "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 (RecordReferrers, own namespace). The determination is not a validation result
(7.5); accepting or rejecting a Record is a decision of the relying party.
Spec impact
11.4 (effectiveAt), new subsection for Status Assertions, 12.x (predicate and status
vocabulary), 9.2 (core types), 2.5 (capability), CHANGELOG.
Out of scope
- Cross-namespace reporting (deferred issue).
- External timestamps / anchoring of assertions (
assertedAtis producer-declared). asOfTimefor signature validation (deferred issue).- A
statusvalidation type.
Open questions
- Combination rule (step 4): restrictive combination of version and record scope. Confirm.
- K compared against
assertedAt(payload) ormodifiedAt(finalisation time of the
version)? Both are producer-declared. - Schema identifier and name.
- Should
reinstatedbe allowed aftersuspendedof a different scope? (Currently ignored.)
Related
RecordReferrers, DID Document history, Validation Result.
Activity
Add Status Assertions: `hasStatus` predicate, `effectiveAt`, and stat…