Skip to content

user global token - #800

Open
Slashek wants to merge 8 commits into
masterfrom
user-global-token
Open

Slashek wants to merge 8 commits into
masterfrom
user-global-token

Conversation

@Slashek

@Slashek Slashek commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Slashek and others added 8 commits November 24, 2026 08:01
POST /api/two_factor_session answers a token it will not step up with a
422 naming why: bound_token (new: a token bound to one instance, e.g.
handed over in MPKIT_TOKEN), two_factor_session_presented and
two_factor_not_required. These surfaced as a raw HTTP error; each is now
a TwoFactorError with its own advice, raised before any code is asked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Several pos-cli processes rewrite the same file at once (parallel commands, CI jobs
sharing $HOME, each caching a bound token or a session). Writing in place let one of
them read a half-written file, which fails as invalid JSON. The contents now go to an
owner-only temporary file that is renamed over the target; a symlink is written through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Portal outages

- A live cached bound token is used without asking the Portal for token info first,
  which cost every command a round trip and failed it whenever the Portal was down.
- Binding retries a Portal that does not answer (5xx, 408/425/429, network) for up to
  about two minutes, as Gateway already does for partner_portal_unavailable.
- An instance refusing a token the Portal bound for it this run is reported as one that
  does not accept global tokens yet (a stack not on that release), with what to use
  meanwhile, instead of "the token has ended, run again".
- README: minimum pos-cli version and Instance release for global tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant