Skip to content

fix(windows): Tailscale status の fail-closed 化と User PATH 収束 (#174) - #232

Merged
rebuildup merged 1 commit into
release-0-9-8from
174
Nov 23, 2026
Merged

rebuildup merged 1 commit into
release-0-9-8from
174

Conversation

@rebuildup

Copy link
Copy Markdown
Owner

Summary

issue #174 の実機 onboarding で検出された3件の収束不備を修正する。

  • Tailscale fail-closed: setup-tailscale.ps1 は tailscale status --json / serve status を UTF-8 で decode し、status が取得・parse できない場合や BackendState が欠ける場合は node 登録 (tailscale up --auth-key) へ進まず throw する。従来は parse 失敗を「未接続」とみなして既存 node を再登録し得た。
  • PowerShell MSIX 受理: verify.ps1 は winget:Microsoft.PowerShell の MSI (Program Files) と MSIX (per-user 実行エイリアス / InstallLocation) の双方を正本として受理する。
  • User PATH 収束: 新規 platforms/windows-11/user-path.ps1 が HKCU Path から legacy %USERPROFILE%\.cargo\bin を展開後完全一致で除去し、%LOCALAPPDATA%\mise\shims を保証する。-Apply は生値 backup + -Restore 対応、Machine PATH は触らない。bootstrap.ps1 と converge.ps1 の両方から呼ばれる。

検証

  • scripts/ci.sh PASS (macOS arm64)
  • 全変更 .ps1 の PowerShell parser 検証 PASS (pwsh 7.6.6)
  • ci.yml に回帰 step を追加: fail-closed の順序、UTF-8 handling、MSIX 受理、user-path.ps1 の plan 非書き込み / -Apply 収束 / -Restore 復元を Windows runner で検証
  • 未検証: Windows 実機での tailscale status --json UTF-8 decode、日本語 Health 文字列の parse、MSIX pwsh の実解決、user-path.ps1 の実機 -Apply。実機適用は配備後の verify で確認する

Closes #174

Generated with Devin

…ATH (#174)

- setup-tailscale.ps1 decodes `tailscale status --json` / `serve status`
  as UTF-8 and refuses node registration when the backend state cannot
  be determined, instead of treating parse failure as "not running" and
  re-registering an enrolled node.
- verify.ps1 decodes Tailscale output the same way, accepts both the
  WinGet MSI and MSIX shapes of Microsoft.PowerShell 7, and checks the
  User PATH for the legacy .cargo\bin entry and the mise shims entry.
- New platforms/windows-11/user-path.ps1 converges HKCU Path: removes
  the legacy rustup proxy entry by exact expanded match, guarantees the
  mise shims entry, backs up the raw value, and restores via -Restore.
  bootstrap.ps1 and converge.ps1 both invoke it; ADR-0021 gains an
  addendum and the README documents the new boundary.
- ci.yml gains a regression step covering the fail-closed ordering,
  UTF-8 handling, MSIX acceptance, and user-path.ps1 plan/apply/
  restore round-trip on the ephemeral runner.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a5f5c93-4485-4432-bb3a-c5efbc7055ac

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

1 participant