chore(rules): PR・レビュー方針の決定をプロジェクト側へ委ねる - #79
Merged
Conversation
グローバル規範から一律の禁止・必須ゲートを外し、対象プロジェクトの規約が 明示する条件だけを適用する形に変える。規約が定めていない操作は推測で実行せず ユーザーへ確認する。 あわせて、このリポジトリの AGENTS.md に main への直接 push の運用を定義し、 専用 worktree で 1 commit に収まる通常変更に限って PR を介さず push してよい 範囲と、その対象外を明示する。 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.
変更内容
グローバル規範 (SSOT:
claude/rules/)全リポジトリへ一律に適用していた PR / レビューの規則を外し、対象プロジェクトの規約が明示する条件だけを適用する形にした。
core.md「不可逆な操作」から、merge の実行禁止・実行者を規定する行を削除orchestrator.mdclaude/AGENTS.md/claude/hermes/SOUL.mdをscripts/build-agent-rules.zshで再生成(生成スクリプトは未変更)このリポジトリの規約 (
AGENTS.md)# main への直接 pushを新設。専用 worktree で「1 commit = 完結した変更 + その場で実行した直接検証」に収まり、既存のレール内・必須検証成功・未解決の人間判断なしの通常変更に限り、PR を介さず main へ直接 push してよいことと、その対象外(秘密情報・権限・課金・本番設定・migration・外部契約 / 設計・受入条件の未確定または変更 / 手本のない新規アーキテクチャ / 複数コミットを要する変更 / stack した作業 / 人間判断が残る変更)を明示--check、setup / herdr / hooks / settings は既存 bats・unit test、nix は既存のローカルビルド確認)。新しいテスト基盤・CI は追加していないagent-rules-check/nix-checkの説明を、実際のトリガー(PR と main への直接 push の両方)に合わせて修正動作確認
(
--checkは drift が無い場合、標準出力に何も出さず exit 0 で終わる)zsh scripts/build-agent-rules.zsh→ exit 0(生成物を再生成)、--check→ exit 0(drift なし)AGENTS.mdは末尾空白なし・末尾改行あり(.editorconfig準拠)、追記で参照したテストパスの実在を確認git status --short→ 空人間判断が必要な事項