Skip to content

Add Status Assertions: hasStatus predicate, effectiveAt, and status determination #41

Closed

Description

@Jenziner

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 have expiresAt and supersedes).
  • 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: effectiveAt REQUIRED; object MUST be a declared status IRI.
  • PROV-O offers no matching predicate (prov:wasInvalidatedBy relates 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 from effectiveAt. Final within its scope.
  • suspended: the subject MUST NOT be relied upon from effectiveAt until reinstated.
  • reinstated: ends a suspension. Valid only if a suspended assertion 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.

  1. Collect status assertions for S in two scopes: version scope (subject id + versionHash
    of S) and record scope (subject id without versionHash). For keys: the DID URL.
  2. Keep those with assertedAt ≤ K that the verifier accepts under its trust policy.
  3. Per scope:
    • If a revoked assertion with effectiveAt ≤ T exists, the scope status is revoked.
    • Otherwise take the suspended / reinstated assertion with the greatest
      effectiveAt ≤ T (tie: greatest assertedAt). reinstated without a preceding
      suspended in the same scope is ignored. suspended → suspended; reinstated → none.
    • No assertion → none.
  4. Combine scopes restrictively: revoked, then suspended, then none.
  5. 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 (assertedAt is producer-declared).
  • asOfTime for signature validation (deferred issue).
  • A status validation type.

Open questions

  1. Combination rule (step 4): restrictive combination of version and record scope. Confirm.
  2. K compared against assertedAt (payload) or modifiedAt (finalisation time of the
    version)? Both are producer-declared.
  3. Schema identifier and name.
  4. Should reinstated be allowed after suspended of a different scope? (Currently ignored.)

Related

RecordReferrers, DID Document history, Validation Result.

Activity

  1. added a commit that references this issue on Oct 30, 2026
    d031e74
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