Skip to content

Person token: the PS's retention obligation is implied but never stated #87

Closed

Description

@dickhardt

Resource Token Verification step 6 says:

A PS MUST look up the person token identified by person_token_jti among those it issued, and MUST verify that ps, sub, mission_s256, and tenant match that token exactly, rejecting the resource token on any mismatch or omission.

"look up ... among those it issued" makes every PS stateful about the person tokens it has issued. That is new storage on the hot path of every token request, and the document never says so.

Three things are missing:

  1. The retention requirement is never stated. Person Token Endpoint and Person Token Structure describe issuance as if the token were self-contained. An implementer reading those sections would not know they had been handed a storage requirement; they discover it only in a verification step in a different section, phrased as an aside.

  2. There is no retention floor. Must the record outlive the resource token's 5 minutes, or the person token's 1 hour? Neither bound is stated. A PS that discards the record at, say, 10 minutes would fail resource tokens presented late within the person token's validity, and nothing in the document tells it that is wrong. The interaction with deferred flows makes this worse: a resource token can expire while user interaction is pending, the agent re-fetches, and the same person token is referenced much later.

  3. The absent-record case has no distinct error. Step 6 says "rejecting the resource token on any mismatch or omission", which conflates two different conditions: the PS has the record and the claims disagree (evidence of tampering, e.g. mission stripping), versus the PS has no record at all (could be tampering, could be the PS's own retention window expiring, could be a jti from another PS). These deserve different error codes and probably different operator alerting.

Suggested fix: state the obligation in Person Token Endpoint or Person Token Structure — a PS MUST retain enough of each issued person token (jti, ps, sub, mission_s256, tenant, exp) to answer step 6, for at least the token's lifetime — and split the step 6 error into "unknown person token" and "person token claim mismatch".

Activity

  1. added
    protocol
    on Aug 14, 2026
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

    protocol

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions