Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions .mise/locks/mise.global/npm-playwright/1.65.1/aube-lock.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions .mise/locks/mise.global/npm-playwright/1.65.1/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ OSに依存しにくい開発CLI/runtimeは一度だけ宣言する。
- Claude Code / Codex / OpenCode / Devin
- Worktrunk / Herdr
- Open Code Review / npkill / cargo-clean-all
- Google Cloud CLI / AWS CLI
- Supabase CLI
- ripgrep / fd / fzf / jq / bat / gdu
- ShellCheck / Neovim

AWS CLI / Google Cloud CLI は必要なホストだけに導入する任意機能です。Supabase CLI は各プロジェクトの `mise.toml`、Playwright は各プロジェクトの依存管理で版を指定します。CLIの導入範囲と認証アカウントの範囲は別の判断です。詳細は [ADR-0029](./docs/adr/ADR-0029.md)。

Open Code Review は npm trust policy を迂回せず、公式 `alibaba/open-code-review` GitHub Release のplatform binaryをmiseから導入する。詳細は [ADR-0007](./docs/adr/ADR-0007.md) を参照。

Vercel CLI は npm の trust policy を通らないため baseline に含めない。必要なマシンは project 側で導入する。詳細は [ADR-0023](./docs/adr/ADR-0023.md) を参照。
Expand Down
6 changes: 2 additions & 4 deletions docs/adr/ADR-0006.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The user does not manually reproduce the full APT/Homebrew/WinGet package list.

### 3. Portable development tools use `[tools]`

Tools whose primary identity is a developer CLI/runtime and which mise can install portably belong in `mise.global.toml` `[tools]`. This file is applied as the user's global mise config, while root `mise.toml` owns machine bootstrap orchestration.
Frequently used, cross-project developer CLI/runtime defaults belong in `mise.global.toml` `[tools]`. A CLI being installable by mise is not sufficient grounds to make it mandatory on all hosts; project-scoped and optional-host tools are governed by ADR-0029. This file is applied as the user's global mise config, while root `mise.toml` owns machine bootstrap orchestration.

Current baseline includes:

Expand All @@ -65,12 +65,10 @@ Current baseline includes:
- Claude Code / Codex / OpenCode / Devin
- Worktrunk / Herdr
- Open Code Review / npkill / cargo-clean-all
- Google Cloud CLI / AWS CLI
- Supabase CLI
- ripgrep / fd / fzf / jq / bat
- ShellCheck / Neovim

Project-specific pinned versions still belong to each project. The pc-setup declarations are machine-wide defaults, not a replacement for project-local toolchain definitions.
Project-specific pinned versions still belong to each project. See [ADR-0029](./ADR-0029.md) for the global / optional-host / project boundary, including identity separation. The pc-setup declarations are machine-wide defaults, not a replacement for project-local toolchain definitions.

### 4. Host packages and applications use `[bootstrap.packages]`

Expand Down
4 changes: 1 addition & 3 deletions docs/adr/ADR-0009.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ Current Windows foundation includes:
- .NET SDK
- Visual Studio
- Android Studio
- Google Cloud SDK
- AWS CLI

Git and mise themselves remain bootstrap dependencies.
Git and mise themselves remain bootstrap dependencies. AWS CLI and Google Cloud SDK were removed from the mandatory Windows foundation under [ADR-0029](./ADR-0029.md). Their installation is an optional, use-driven host capability, not a prerequisite for all development machines.

### 2. Desktop applications use a shared best-effort inventory

Expand Down
2 changes: 1 addition & 1 deletion docs/adr/ADR-0023.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Vercel CLI を `mise.global.toml` の machine-global baseline から外す。

- Vercel の npm 公開が trusted-publisher / provenance を一貫して持ち、`trustPolicy=no-downgrade` を通るようになった場合
- Vercel CLI が standalone binary を公式 GitHub Release で配布するようになった場合
- 日常的に使う machine-global CLI としての需要が戻った場合
- ADR-0029 の machine-global 採用条件を満たす横断的な需要が確認された場合

## References

Expand Down
71 changes: 71 additions & 0 deletions docs/adr/ADR-0029.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# ADR-0029: machine-global / optional-host / project-local CLI の所有境界

- Status: Accepted
- Date: 2026-11-23
- Extends: ADR-0006, ADR-0009, ADR-0010
- Related: ADR-0023
- Supersedes intent of: 未統合だった旧 PR #201 の ADR 案(番号衝突のため 0029 として採番)

## Context

pc-setupのmachine-global baselineには、すべての開発機で使う共通CLIに加えて、
特定クラウドや個別プロジェクトでだけ使うAWS CLI、Google Cloud CLI、
Supabase CLI、Playwrightまで含まれていた。
その結果、使用しない環境へのmandatory install、更新対象の肥大化、
project tool versionとglobal versionの責任の重複が起きる。

CLIのインストール位置、バージョン所有者、認証/権限の境界は独立した概念。
グローバルCLIが必ずグローバル認証を必要とするわけではなく、
project-localインストールが資格情報を自動的に隔離するわけでもない。

## Decision

CLIを用途と所有する正本で分類する。

1. **Machine-global core:** 複数プロジェクトの共通入口として頻用するCLIとruntime
(mise、gh、Infisical、各種agent、汎用shellツール等)。
そのバージョンの既定値は `mise.global.toml` と adopted lock が所有する。
Project側のtoolchain定義はglobal既定値より優先する。
2. **Optional host capabilities:** AWS CLIとGoogle Cloud CLIのように、
実行環境・SDK・利用するクラウドが限定されるツール。
必要なホストだけに公式のインストール経路で導入する。
単に認証があるから、という理由でプロジェクトへの実行ファイルの複製は要求しない。
3. **Project-local dependencies:** Supabase CLIやPlaywrightのように、
プロジェクトのスキーマ、ビルド、テスト、マイグレーションと
バージョン互換性が結びつくCLI。
Consumerの `mise.toml` / `package.json` / toolchain lock等で版を管理する。
CLIが必要なリポジトリ自身が宣言し、pc-setupは代わりに配備しない。

採用判断はツールごとに利用頻度、バージョン結合度、認証境界、
再現可能性、全ホストへの配備コストで行う。用途に合わない独自profile frameworkは作らない。

## Authentication and rollout boundary

- Cloudのアカウント/プロジェクトはAWSのnamed profile、gcloudのnamed configuration、
Supabaseのproject linkなど公式の手段で明示的に選択する。
実行時には現在の対象を確認し、本番操作を意図せず実行しない。
- Credential、token、service key、auth fileはGit/lock/mise configに保存しない。
Providerのsupported user store、Infisical、workload identity/OIDCなど適切な管理を使う。
- 宣言除去は「今後bootstrapで必須にしない」という意味。
既存のインストール済みCLIや資格情報を自動消去しない。
移行後の未使用コピーの掃除は利用確認と別の安全な手順で行う。
- WindowsのWinGet `Google.CloudSDK` / `Amazon.AWSCLI` もmandatory package setから外す。
既存のWindows利用者に削除を要求しない。
- NixOSのFHS `aws` / `gcloud` / `supabase` command wrapperは残す。
これはproject-local/tool-on-demandの実行互換のためのlaunch surfaceであり、
バイナリ導入・認証済み・共通必須を意味しない。

## Verification

- `mise.global.toml` と `mise.global.lock` の対象CLIは不在で、Playwrightの未参照sidecarも不在。
- Platform bootstrap / verifyの共通必須一覧から対象CLIを除外する。
- NixOSのcompatibility wrapperとmandatory command checksを混同しない。
- CLIが必要な個別projectの構成、利用案内、ローカル検証を各projectが所有する。
- lock採用/配備の仕組み自体(ADR-0010)を変更しない。
- `scripts/ci.sh` が global config / lock / mandatory host package / orphan sidecar の整合を静的に検査する。

## Re-evaluation

- 任意ホストのツールが日常的な複数プロジェクトの必須基盤になったとき
- Global既定値を使うよりproject-localに固定しない方が安全・再現可能だと示されたとき
- CLI公式配布・認証・mise backendに破壊的な仕様変更があったとき
1 change: 1 addition & 0 deletions docs/adr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
| [ADR-0026](./ADR-0026.md) | Accepted | Rex は OS 公式導入経路で管理し preview channel を追跡する |
| [ADR-0027](./ADR-0027.md) | Superseded by ADR-0028 | herdr-t3 は検証済み ref の独立リリース配置で導入・更新・復旧する |
| [ADR-0028](./ADR-0028.md) | Accepted | herdr-t3 は Electron デスクトップアプリとして導入・検証する |
| [ADR-0029](./ADR-0029.md) | Accepted | machine-global / optional-host / project-local CLI の所有境界 |

新しい ADR は `ADR-NNNN.md` の連番で追加します。既存 decision を置換する場合は旧 ADR の status と `Superseded by` も更新します。
69 changes: 0 additions & 69 deletions mise.global.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions mise.global.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ worktrunk = "latest"
# keep the registry entry unchanged.
herdr = { version = "latest", os = ["linux", "macos"] }

gcloud = { version = "latest", os = ["linux", "macos"] }
aws-cli = { version = "latest", os = ["linux", "macos"] }
supabase = "latest"
# Vercel CLI is deliberately not in the machine-global baseline. Its npm
# dependency graph fails mise's default npm supply-chain policy
# (trustPolicy=no-downgrade), and exempting it would mean listing dozens of
Expand Down Expand Up @@ -99,7 +96,6 @@ oh-my-pi = "latest"
# Node launcher plus a per-platform native binary as an optional dependency, so
# it follows the same npm channel as OpenCode.
"npm:devin" = { version = "latest", depends = ["node"] }
"npm:playwright" = "latest"
ruby = "4"

[tools."github:herdrdev/herdr"]
Expand Down
2 changes: 0 additions & 2 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ bun = "1.4.2"
# Visual Studio is intentionally not installed here: any edition/year is accepted
# and platforms/windows-11/verify.ps1 checks the MSVC / Windows SDK capabilities.
"winget:Google.AndroidStudio" = { os = "windows" }
"winget:Google.CloudSDK" = { os = "windows" }
"winget:Amazon.AWSCLI" = { os = "windows" }
"winget:Tailscale.Tailscale" = { os = "windows" }

[bootstrap.repos]
Expand Down
4 changes: 2 additions & 2 deletions plans/macos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ Cross-machine developer CLI/runtime requirements are inherited from root `mise.t
- Node.js / Python / pnpm / Bun / Rust
- Claude Code / Codex / OpenCode / Devin / Worktrunk / Herdr
- Open Code Review / npkill / cargo-clean-all
- Google Cloud CLI / AWS CLI
- Supabase CLI
- ripgrep / fd / fzf / jq / bat / gdu / ShellCheck / Neovim

AWS / Google Cloud はホスト任意機能、Supabase / Playwright はプロジェクト依存として管理します([ADR-0029](../../docs/adr/ADR-0029.md))。

macOS-specific application candidates are recorded separately in `mise.candidate.toml`.

These remain candidate application choices until actual continued use justifies promotion into the active macOS package graph.
Expand Down
4 changes: 2 additions & 2 deletions platforms/nixos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ Portable user CLI baseline (`mise.global.toml`):
- Claude Code / Codex / OpenCode / Devin
- Worktrunk / Herdr
- Open Code Review / npkill / cargo-clean-all / gdu
- Google Cloud CLI / AWS CLI
- Supabase CLI

AWS / Google Cloud / Supabase は共通インストール対象外です。`flake.nix` には project-local / optional CLI を実行するための FHS wrapper 名だけ残します。wrapper があることと CLI のインストール済み・認証済みであることは別です([ADR-0029](../../docs/adr/ADR-0029.md))。

Worktrunk の Bash integration も Home Manager で宣言します。

Expand Down
2 changes: 2 additions & 0 deletions platforms/nixos/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@
"devin"
"wt"
"herdr"
# Compatibility launchers for optional host and project-local tools.
# These wrappers do not install CLI binaries or imply credentials.
"gcloud"
"aws"
"supabase"
Expand Down
3 changes: 0 additions & 3 deletions platforms/nixos/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ commands=(
devin
wt
herdr
gcloud
aws
supabase
npkill
ocr
cargo-clean-all
Expand Down
4 changes: 2 additions & 2 deletions platforms/ubuntu-wsl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ Portable developer tools are declared once in `mise.global.toml`, which is linke
- Claude Code / Codex / OpenCode / Devin
- Worktrunk / Herdr
- Open Code Review / npkill / cargo-clean-all
- Google Cloud CLI / AWS CLI
- Supabase CLI
- ripgrep / fd / fzf / jq / bat / gdu
- ShellCheck / Neovim

AWS / Google Cloud は使うホストの任意機能、Supabase / Playwright は各プロジェクト側のバージョン管理対象です。CLIの有無は共通bootstrapの成否に含めません([ADR-0029](../../docs/adr/ADR-0029.md))。

The Ubuntu bootstrap does not duplicate installation logic for those tools.

## Rex
Expand Down
3 changes: 0 additions & 3 deletions platforms/ubuntu-wsl/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ commands=(
wt
herdr
pnpm
gcloud
aws
supabase
npkill
ocr
cargo-clean-all
Expand Down
6 changes: 2 additions & 4 deletions platforms/windows-11/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ root `mise.toml` の mandatory Windows package phase には、bootstrap / develo
- PowerShell 7
- .NET SDK 10
- Android Studio
- Google Cloud SDK
- AWS CLI
- Tailscale

これらは fail-fast。Git と mise 自体も bootstrap dependency。

AWS CLI と Google Cloud SDK は machine-wide mandatory ではありません。利用するホストで任意に導入し、認証先はコマンドごとに明示します(ADR-0029)。既存の認証設定やインストール済みバイナリを bootstrap は削除しません。

### Best-effort desktop apps

GUI / desktop application は `platforms/windows-11/apps.psd1` が canonical inventory。
Expand Down Expand Up @@ -95,8 +95,6 @@ OSごとにWinGet packageを重複宣言せず、`mise.global.toml [tools]` を
- Claude Code / Codex / OpenCode / Devin
- Worktrunk / Herdr
- Open Code Review / npkill / cargo-clean-all
- Google Cloud CLI / AWS CLI
- Supabase CLI
- ripgrep / fd / fzf / jq / bat / gdu
- ShellCheck / Neovim

Expand Down
Loading