Repository navigation
chore(#1151): claude-cloud Phase-0 probe script — P-1 auth check - #1152
Merged
Merged
Conversation
Prints redacted JSON; credentials come from CLAUDE_CODE_OAUTH_TOKEN and SEQUANT_PROBE_ORG_UUID only. P-1 result: a claude setup-token token lacks the sessions scope (oauth_scope_insufficient). Entire-Checkpoint: 44cc7c0dc886
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1151
Adds
scripts/probes/claude-cloud-probe.ts, the Phase-0 probe for the claude-cloud driver (#1137). Only theauthsubcommand (P-1) exists, because P-1 failed and the other probes depend on it.What it does
npx tsx scripts/probes/claude-cloud-probe.ts authsends two read-only GETs,/v1/environment_providersand/v1/code/triggers, toapi.anthropic.comwith the same headers the Claude Code CLI 2.1.282 uses for those endpoints: a bearer token,anthropic-version: 2023-06-01,anthropic-beta: ccr-byoc-2025-07-29andx-organization-uuid. It prints one JSON object.CLAUDE_CODE_OAUTH_TOKENandSEQUANT_PROBE_ORG_UUIDand are never printed.redact(), which strips the token, the org UUID, anysk-ant-…token, any UUID and any email.Result (posted on #1137)
P-1 fails. A
claude setup-tokentoken gets 401oauth_scope_insufficienton/v1/code/triggersand 403 on/v1/environment_providers, which needsuser:sessions:claude_codeor an equivalent scope. Per the owner's standing decision, #1137 is parked.#1151 per AC:
The script stays in the repo so the check can be re-run in one command if an upstream change adds a sessions-scoped long-lived token.
Checks
prettier --check,eslintandnpm run typecheck:scriptsare clean. There are no tests: this is a manual probe against a live API, and nothing imports it.🤖 Generated with Claude Code