docs(rules): HerdrのHomebrew管理を固定する - #74
Merged
Merged
Conversation
`herdr update` による自己更新版が `~/.local/bin/herdr` に作られ、 Homebrew 宣言管理の実行体と二重化した事故を防ぐため、グローバル規範に 配布・更新経路の一本化と実行前の解決先チェックを追加する。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
やったこと
グローバル AI 規範の SSOT
claude/rules/core.mdに# Herdrセクションを追加し、生成物claude/AGENTS.md/claude/hermes/SOUL.mdをscripts/build-agent-rules.zshで更新した。nix/modules/darwin/homebrew.nix)だけに限定し、herdr updateや~/.local/bin/herdrを作る自己更新・直接インストールを禁止。更新はbrew upgrade herdrのみcommand -v herdrが/opt/homebrew/bin/herdrに解決されることを検査し、異なれば停止・報告する実行前ガード背景
過去に
herdr updateを実行して~/.local/bin/herdrに自己更新版ができ、Homebrew 宣言管理の実行体と二重化した。規範側で経路を一本化して再発を止める。動作確認方法
zsh scripts/build-agent-rules.zsh --check→ exit 0git diff --check→ exit 0Homebrew / Nix 宣言・PATH・setup スクリプト・Herdr / Hermes の running config・インストール状態は変更していない。