Skip to content

Devices paired with a device key reconnect by themselves after a level change #1190

Description

@Jacksondr5

Since T3 Code v0.1.11 (pingdotgg#37980, pingdotgg#37990), almost every device pairs with a DPoP device key, and its session renews in place.

J5 ends a person's sessions when their level changes, and their devices renew through POST /api/j5/session/renew. That route refuses DPoP sessions (SessionRenewal.ts, FORK.md case 70). After the advance, a level change makes most of that person's phones and saved servers pair again by hand, instead of reconnecting once.

Decision (Jackson, 2026-11-22, advance decision D4): accept re-pairing in the advance, and build the renewal path as this follow-up.

Work:

  • Give J5's renewal route a DPoP path. It takes the old token plus a proof from the same key, issues the new scopes on the same session row, and keeps the key binding.
  • Mobile and web saved environments use it after a level change.
  • Rewrite D33's "reconnect once" line back.
  • Test: a level change on a DPoP device renews without re-pairing, and a revoked session still can't renew.

Activity

  1. Jacksondr5 commented on Nov 23, 2026

    @Jacksondr5
    OwnerAuthor

    Scope addition, from the advance's security review (reviewer-fable, 2026-11-22).

    What breaks: claiming an unplaced device (Access.claimDevice) also ends the session for renewal. For a DPoP device, that renewal is refused.

    How it shows up: a phone paired from a j5 auth pairing create link made without --person answers "who are you", then loses its session and must pair again. Pairing again from the same kind of link leaves it unplaced again. J5's own share links and j5 pair always name a person, so this only affects that CLI path.

    What the advance does: no new code path. The CLI's no---person text warns that phones need --person, and D33's rewrite mentions it.

    Here: once J5's renewal handles DPoP sessions, a claimed DPoP device renews into its person's scopes instead of being refused. Test both the claim path and the level-change path.

  2. added a commit that references this issue on Nov 24, 2026
    aabc4a1
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions