Skip to content

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

Closed

Description

@admarble

Context

#1137 (claude-cloud driver) launches phases through the routines/sessions API, because claude --cloud cannot create a session headlessly (see the #1137 spec comment). Four facts that the driver's design depends on are unmeasured. Owner decision, 2026-09-24: no #1137 exec until these are measured, and if P-1 fails #1137 is parked (no LLM-mediated launcher). This issue turns that gate into a graph edge instead of prose.

Known already: GET /v1/environment_providers lists environments (names + env_… ids) under the claude.ai browser session with an x-organization-uuid header. /v1/code/environments returns 404. The target environment is "Sequant Driver", env_01GHgDSBdiWR6evstrUbX2xh (SEQUANT_CHECKOUT=in-place, SEQUANT_ORCHESTRATOR=sequant-run).

Probes

  • P-1 (auth): can a plain Node process (no browser, no Claude Code session) authenticate to the /v1/code/* and /v1/environment_providers endpoints with the long-lived token from claude setup-token?
  • P-2 (model): does the trigger's session request accept a model?
  • P-3 (usage): do the raw GET /v1/code/sessions/{id}/events events carry the SDK result with usage/modelUsage, as opposed to the condensed get_run_log text?
  • P-4 (stop): which call stops a live session (candidates from the CLI bundle: /v1/sessions/{id}/archive, an interrupt control request), and does the stopped run leave a readable log?

Script: scripts/probes/claude-cloud-probe.ts, one subcommand per probe, printing JSON. Sessions use a trivial prompt ("Reply with the single word OK and stop.") on "Sequant Driver". Cost cap: $1 total.

Acceptance criteria

Non-Goals

Human steps

  • Run claude setup-token interactively and export the token in the probe shell only.
  • AC-2's go/no-go decision.

Graph metadata

Related

#1137 · #1150 · #1136 · #1079 (the proving run)

Activity

  1. added
    multi-agent
    on Sep 25, 2026
  2. admarble commented on Sep 25, 2026

    @admarble
    ContributorAuthor

    AC-1 (P-1) is done: fail (oauth_scope_insufficient); results are posted on #1137. AC-2: per the owner's standing decision, #1137 is parked. AC-3 to AC-5 are conditional on P-1 and were not run. AC-6 and AC-7 are N/A: no triggers were created and no fixtures saved. AC-8: $0 spent (two read-only GETs).

  3. added a commit that references this issue on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    multi-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions