Skip to content

Pin gh and gum so mise run check works in cloud agent sandboxes - #465

Merged
sysread merged 1 commit into
mainfrom
claude/mise-check-sandbox-setup-qhqqtp
Jul 30, 2026
Merged

Pin gh and gum so mise run check works in cloud agent sandboxes#465
sysread merged 1 commit into
mainfrom
claude/mise-check-sandbox-setup-qhqqtp

Conversation

@sysread

@sysread sysread commented Jul 30, 2026

Copy link
Copy Markdown
Owner

SYNOPSIS

Pin the two latest-spec aqua tools in .mise.toml so mise run check runs in cloud agent sandboxes; retire the in-progress investigation doc.

PURPOSE

Cloud agent sessions could not run the gate through mise at all: mise install aborted before any task ran, forcing the raw pnpm fallback, which skips the Deno island (functions-check, functions-test).

DESCRIPTION

mise resolves the entire [tools] set before dispatching any task. Two entries floated on latest (aqua:cli/cli, aqua:charmbracelet/gum), and resolving latest requires a GitHub releases-list API call the sandbox proxy 403s for repos outside the session scope - so the gate died even though it uses neither tool. The already-pinned aqua:supabase/cli installed fine, proving pins skip the list call.

This PR pins cli/cli@2.74.0 and charmbracelet/gum@0.16.2, with a comment above the pins explaining why floating specs are forbidden. Verified in a cloud sandbox: mise install succeeds and the full gate runs green including the Deno island (jsr.io and npmjs are reachable, so deno resolves live even with a cold cache).

Docs: retires docs/dev/in-progress/mise-in-cloud-sandbox.md (its open question - "would pinning unblock the gate?" - is now answered yes), graduates the rationale into docs/dev/testing.md's gotcha, and corrects CLAUDE.md's claim that cloud sessions cannot run the gate.

Notes:

  • the pins are load-bearing: reintroducing a latest spec breaks the sandbox gate again; testing.md documents the misleading error it surfaces as ("no versions found matching date filter" - there is no date filter)
  • no behavior change for local CLI or CI; both resolved the floating specs fine already

Generated by Claude Code

The gate could not start in cloud agent sessions: mise resolves the
entire [tools] set before dispatching any task, and the two entries
floating on latest (aqua:cli/cli, aqua:charmbracelet/gum) need a
GitHub releases-list API call that the sandbox proxy 403s for repos
outside the session scope. An exact pin skips the list call and
downloads the release asset directly, which the sandbox allows -
the already-pinned aqua:supabase/cli proved this all along.

Verified in a cloud sandbox: with both tools pinned, mise install
succeeds and the full gate (including the Deno island) runs green.
This retires docs/dev/in-progress/mise-in-cloud-sandbox.md - its
open question is answered and the durable rationale now lives in
the .mise.toml comment and docs/dev/testing.md. CLAUDE.md's claim
that cloud sessions cannot run the gate is updated to match.
@sysread
sysread merged commit 9f44d8d into main Jul 30, 2026
1 check passed
@sysread
sysread deleted the claude/mise-check-sandbox-setup-qhqqtp branch July 30, 2026 18:06
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.

2 participants