Skip to content

Bind native Cloud operations to the authenticated device - #285

Draft
PastFly wants to merge 1 commit into
mainfrom
codex/native-cloud-session-identity
Draft

PastFly wants to merge 1 commit into
mainfrom
codex/native-cloud-session-identity

Conversation

@PastFly

@PastFly PastFly commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Scope

  • Store the server-confirmed account and device before replacing the native Cloud session. A failed receipt write preserves the previous token and epoch.
  • Keep /v1/me tied to the captured session. Reject known account or device mismatches before opening Personal Vault keys, collecting export secrets, or reading publication storage.
  • Preserve support for legacy receipts without a device and protect in-flight results across session changes.

Verification

  • Reproduced session replacement after a failed receipt write and a mismatched Personal Vault identity opening local material.
  • 111 affected Swift tests passed, including enrollment, autosync, publication, and previous-session regressions.
  • git diff --check passed.

Per-account workspaces and native A → B → A verification are pending. This change is separate from the native sign-in staging acceptance in #284.

This branch has not been deployed

No deployments
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