Skip to content

Connected-account design follows provider token lifecycles - #860

Merged
zlareb1 merged 1 commit into
mainfrom
docs/connected-provider-token-contract
Nov 18, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
docs/connected-provider-token-contract

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Related: #539

Changelog category (leave one):

  • Documentation

Why

The connected-account design assumes Notion supplies no refresh token and requires a provider email. Its authorization guide describes rotating access and refresh tokens; read-content-only capability does not promise an owner email. Implementing the existing text would persist the wrong credential or refuse a valid least-privilege connection.

Scope and risk

This corrects the planned connected-account contract in one architecture page. All three providers retain sealed refresh credentials and memory-only access tokens. Refresh cannot restore a disconnected generation, and an uncertain provider outcome does not authorize a blind rotation retry. Display email remains optional metadata, never account ownership or namespace authority.

The design records Google project-wide revocation, Linear's documented refresh recovery window, and the limits of Notion's access-token revocation and opaque introspection scope. Local inactivation and source retirement remain authoritative even when remote revocation cannot be established. These choices avoid promising guarantees the providers do not document.

Primary references: Notion authorization, refresh, capabilities, revocation, Google authorization, and Linear authorization.

Compatibility, rollout and rollback

  • Wire and storage: no implementation, operation, schema or credential changes.
  • Operators: none for this documentation change. The planned Google registration uses a project dedicated to document connections because revocation crosses its clients.
  • Rollback: reverting changes design text only. Connected accounts, provider registrations and live validation remain separate implementation work.

Tests

  • The changed page passes the repository's pinned Prettier formatting, prose checker and diff check.
  • Provider facts were checked against their official authorization and reference pages. No provider API, authorization, token, identity or revocation call ran.
  • No local test suite ran for this documentation-only change. Required GitHub CI must pass on the final head.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated: Codex wrote the documentation; fresh independent whole-diff review and final-head CI are required before merge.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Required final-head CI passes.
  • Fresh whole-diff review has no findings or nits.
  • No generated file, migration, plugin, frontend or runtime changes.
  • Public text follows repository copy rules.
  • Commits are signed off.

@zlareb1
zlareb1 merged commit 90eabac into main Nov 18, 2026
45 checks passed
@zlareb1 zlareb1 mentioned this pull request Nov 18, 2026
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant