Skip to content

chore(#1151): claude-cloud Phase-0 probe script — P-1 auth check - #1152

Merged
admarble merged 1 commit into
mainfrom
feature/1151-claude-cloud-probes
Sep 25, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/1151-claude-cloud-probes

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Closes #1151

Adds scripts/probes/claude-cloud-probe.ts, the Phase-0 probe for the claude-cloud driver (#1137). Only the auth subcommand (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 auth sends two read-only GETs, /v1/environment_providers and /v1/code/triggers, to api.anthropic.com with 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-29 and x-organization-uuid. It prints one JSON object.

  • Credentials are read only from CLAUDE_CODE_OAUTH_TOKEN and SEQUANT_PROBE_ORG_UUID and are never printed.
  • Every response body passes through redact(), which strips the token, the org UUID, any sk-ant-… token, any UUID and any email.

Result (posted on #1137)

P-1 fails. A claude setup-token token gets 401 oauth_scope_insufficient on /v1/code/triggers and 403 on /v1/environment_providers, which needs user:sessions:claude_code or an equivalent scope. Per the owner's standing decision, #1137 is parked.

#1151 per AC:

  • AC-1: done.
  • AC-2: owner decision applied.
  • AC-3 to AC-5: not run, since they depend on P-1.
  • AC-6 and AC-7: N/A. No triggers were created and no fixtures saved.
  • AC-8: $0 spent.

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, eslint and npm run typecheck:scripts are clean. There are no tests: this is a manual probe against a live API, and nothing imports it.

🤖 Generated with Claude Code

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
@admarble
admarble merged commit aa865de into main Sep 25, 2026
7 checks passed
@admarble
admarble deleted the feature/1151-claude-cloud-probes branch September 25, 2026 03:43
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.

spike(#1137): Phase-0 probes for the claude-cloud driver — Node auth, model, usage, stop

1 participant