[MAINTENANCE] external AI delegation policy: default-allow read-only mutual invocation + structured-output regeneration exception#95
Draft
duck8823 wants to merge 4 commits into
Conversation
… repo consultation trusted repository での read-only multi-AI consultation(research / design consultation / triage / review planning)を ticket / PR なしで許可する例外を Path A に追加する。 実装・write・commit・push・PR作成・merge・deploy などの delegated write は 従来どおり one ticket / one PR 制限を維持する。送信禁止データ(.env*・ credentials・tokens・private keys・shell history・unrelated home/repo files・ production data)も維持する。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…invocation trusted repository での read-only/plan の Claude / Gemini / Codex 相互呼び出し (repository/workspace research・design consultation・triage・review planning)を デフォルト許可にする。per-turn の明示依頼や ticket/PR を不要とする。 write / commit / push / PR 作成・merge / deploy / infra apply / upload / destructive は default 対象外で、従来どおり Path A の scoped one-ticket/one-PR work(または許可された ticket-less prefix)と forbidden-action list に従う。 送信禁止データ(.env*・credentials・tokens・private keys・shell history・ unrelated home/repo files・production data)も維持する。 - codex/config.toml.template: read-only consultation 例外を default-allow に 書き換え、write 系が default 対象外であることを明記 - claude/CLAUDE.md: 冒頭 delegation policy 行を default-allow に同期 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ion exception trusted repository での structured-output regeneration / AI-reviewed generated artifact update を、毎回 ticket/PR 必須にしない例外を Path A read-only consultation とは別の独立ブロックとして追加する。 - 外部AIへの入力は version-controlled な sample/reference・prompt・schema・ dictionary・generator/validator 指示と sanitized context に限定 - 外部AIには直接 write/commit/push/PR/merge/deploy/upload/infra apply/destructive を委譲しない。ファイル書き込みは local orchestrator が行う - Git commit 対象は version-controlled な prompt/schema/dictionary/generator/docs と AGENTS.md が明示許可した最終生成物(例: structured/*.csv.gz)に限定。 raw answers/packets/logs/intermediate は repo policy が許可しない限り commit 禁止 - commit 前に local validation を必須化し、behavior-affecting な生成物は追加 AI reviewer または明示的 local review を必須化 - main/master direct push・release/GitHub Release・deploy・infra apply・store upload・ owner-scoped merge policy 外の autonomous merge は不可 既存の one ticket/one PR 実装委譲ルール・Forbidden actions・merge policy・Path B は 未変更。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…on exception to all engine prose canonical な ~/.codex/config.toml [auto_review].policy に入れた2変更 (default-allow read-only mutual invocation / structured-output regeneration exception)を、各エンジンの prose policy / source-of-truth に反映して乖離を解消する。 - codex/instructions.md: External AI delegation policy gate に default-allow 相互 呼び出しと structured-output regeneration の要約バレットを追加 - claude/CLAUDE.md: 冒頭 delegation policy 行に structured-output 例外を追記 (default-allow は既反映) - gemini/GEMINI.md: 引き渡し節に default-allow 相互呼び出しと structured-output 時の振る舞い(Gemini は出力のみ・write/commit は orchestrator)を明示 - conventions/ai/multi-ai-agent-operations.md: 1 PR = 1 ticket hard gate に、 ticket-less prefix / read-only consultation / structured-output regeneration の例外への cross-reference を追記(write hard gate 自体は不変) いずれも canonical policy への委譲構造を保ち、write 系の実装委譲・main/master 直 push・merge・deploy の hard gate は弱めていない。 Co-Authored-By: Claude Opus 4.8 (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.
Motivation
[auto_review].policy(External AI delegation exception)を、trusted repository での安全な multi-AI 協調がスムーズに回るよう更新する。[MAINTENANCE]prefix exception(policy / doc cleanup)に該当するため ticket-less PR として起票する。本 PR は delegation policy の緩和という一貫したワークストリームで、以下2つの変更を含む。
Changes
1. Default-allowed read-only mutual AI invocation(Path A)
claude/CLAUDE.md冒頭 delegation policy 行も default-allow に同期(日付 2026-06-13)。2. Structured-output regeneration / AI-reviewed artifact update 例外(新規・独立ブロック)
Path A read-only consultation とは別の独立した例外を追加。trusted repository での external-AI structured-output regeneration と AI-reviewed generated artifact update を、以下を満たす場合に ticket/PR 不要とする:
structured/*.csv.gz)に限定。raw answers/packets/logs/intermediate/work dir は repo policy 許可がない限り commit 禁止。.env*/shell history/browser auth/write tools/remote-mutating を要求したら停止しauth_prompt/policy_or_permission_deniedに分類。N/A (structured-output regeneration)、repo path、workstream scope、input/prompt/schema paths、engines、classifications、generated output paths、validation 結果、review evidence、residual risks)を定義。維持される制約(弱めていない)
.env*・credentials・tokens・private keys・shell history・unrelated home/repo files・production data)は維持。Verification
~/.codex/config.tomlと~/.claude/CLAUDE.mdに同一変更を適用済み(変更前バックアップを保持)。本 PR はその source(template / dotfiles claude/CLAUDE.md)に同じ変更を反映したもの。diffで codex policy の変更が純粋な追加・置換で、Path B / Forbidden actions / merge policy / Required outputs / 末尾"""が無傷であることを確認。MULTI_AI_ENGINES既定でclaude,gemini,codex、各エンジン read-only/plan 強制)。Residual risks
🤖 Generated with Claude Code