Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: research
parent_issue: "none"
goal_ref: "mutation を伴う agent skill ステップ(Write / gh issue comment 等)が実行環境によらず確実に実行できる tool-agnostic な経路の root cause を確定し対応方針を決定する"
change_kind: research-onlyParent Issue
なし(単独調査)
Related Issues
- 導入: OPEN Issue 重複・依存順・実装優先順位判定を issue-refinement-loop に一元化する #1674(issue-refinement-loop を実行し本 Issue の起票理由となった OPEN Issue。anchor comment: https://github.com/squne121/loop-protocol/issues/1674#issuecomment-5057240104)
- 調査: worktree_scope_guard の issue番号命名要求が汎用 isolation worktree agent の preflight.run 実行を妨げる問題の対応方針を決定する #1464(CLOSED): preflight.run(read-only command)の canonical_main_root / default_branch invariant と isolation worktree agent の cwd との衝突を扱った調査。本 Issue が扱う「mutation ステップ(Write / gh issue comment 等)が issue 紐付き worktree でしか許可されない」問題とは異なる authorization layer(調査: worktree_scope_guard の issue番号命名要求が汎用 isolation worktree agent の preflight.run 実行を妨げる問題の対応方針を決定する #1464 は command registry の read-only executor 認可、本 Issue は worktree_scope_guard / local_main_branch_guard の mutation 認可)であり duplicate ではない
- 調査: agent-neutral worktree mutation guard input schema の要否を判断する #1663(OPEN): agent-neutral WORKTREE_MUTATION_INTENT_V1 / WORKTREE_SCOPE_BINDING_V1 / WORKTREE_POLICY_DECISION_V1 の runtime wire evidence 収集・schema 固定を扱う調査。本 Issue は 調査: agent-neutral worktree mutation guard input schema の要否を判断する #1663 が固定した現行 schema・現行挙動を前提として、その挙動下で mutation ステップを持つ agent skill がどう動作すべきかという運用設計を扱う。調査: agent-neutral worktree mutation guard input schema の要否を判断する #1663 の evidence 収集自体を再実施しない
- 実装: local_main_branch_guard がread-only/controlled-executorコマンドを誤ブロックする問題を修正する #1684(OPEN): local_main_branch_guard の read-only / controlled-executor コマンドの誤ブロック(false positive misclassification、reason_code unparseable_branch_mutation / rule_id compound_wrapper_blocked)を修正する実装 Issue。本 Issue の Background 項目3で観測した heredoc・redirect・literal backtick の誤ブロックはこの 実装: local_main_branch_guard がread-only/controlled-executorコマンドを誤ブロックする問題を修正する #1684 の scope に該当する既知の symptom であり、本 Issue はこの誤分類バグの修正を目的としない。本 Issue が扱うのは、正しく分類された mutation コマンド(Write・raw gh issue comment 等)が「issue 紐付き worktree でなければ deny する」という意図的設計のもとで、mutation ステップを持つ agent skill がどう動作すべきかという運用設計であり、実装: local_main_branch_guard がread-only/controlled-executorコマンドを誤ブロックする問題を修正する #1684 とは異なる論点である
Background
Issue #1674 に対して issue-refinement-loop を anchor comment(https://github.com/squne121/loop-protocol/issues/1674#issuecomment-5057240104)指定・人間承認不要で実行した。Step 0f(preflight)は parent-owned preflight 方式(#1478 で解決済み)で root から成功し、Step 2(issue-reviewer)も正常実行され VERDICT: needs-fix(Blocker C8: Outcome section 欠落/空、および anchor comment の OWNER REQUEST_CHANGES 指摘 P0-1〜P0-5・P1 4件)という具体的な結果を返した。
しかし、その後の validator-first 検証・Step 2a(parent_replay_binding.py)・Step 4 rewrite(issue-author への委譲)・Step 5 終了レポート投稿(publish_termination_report.py 経由の gh issue comment)という mutation を伴うステップが一切実行できずに停止した。さらに、この状況を Issue 化しようとした control-plane の main session 自身も、Write ツールが worktree_scope_guard によって一切実行できない状態だった。
具体的に確認した事実(本 Issue 起票作業中に再現・確認済み):
- root(canonical main checkout)からの Write は worktree_scope_guard(scripts/agent-guards/worktree_scope_guard.py)に verified_unbound として拒否される。scripts/agent-guards/worktree_scope_guard.py の _decide_write は issue が解決できない場合 binding_state と expected を verified_unbound、None に設定し(resolve_current_issue は LOOP_ISSUE_NUMBER 環境変数、または cwd basename / branch 名が issue-N- パターンに一致する場合のみ issue を解決する。scripts/agent-guards/worktree_scope_guard.py の resolve_current_issue 関数を参照)、scripts/agent-guards/worktree_policy_domain.py の policy_decide は state が verified_unbound かつ mutation_kind が write の場合、書き込み先パスを一切参照せず deny・issue_context_required を返す。これは path containment チェック(is_inside)より前の分岐であり、書き込み先が repo 内か repo 外かに関わらず拒否される
- root からの gh issue comment も gh_mutation_denied で拒否される。これは scripts/agent-guards/local_main_branch_guard.py の is_github_issue_mutation_command の docstring に明記された意図的な設計(Raw gh issue comment intentionally falls through to gh_mutation_denied.)であり、allow されるのは gh issue create(--repo 完全一致・--body-file tmp/... 必須・--title 必須)のみで、gh issue edit / gh issue comment は raw では常に deny される
- 本 Issue 起票作業中、単純な heredoc やリダイレクトを含む Bash コマンド(リポジトリ外の scratchpad ディレクトリへの単純なファイル書き込みを含む)ですら root checkout から local_main_branch_guard.sh に reason_code unparseable_branch_mutation・rule_id compound_wrapper_blocked で拒否されることを再現確認した。加えて、コマンド文字列中にバッククォート文字を一切含む場合も同一 reason_code で拒否され、変数代入を先頭に置く一行コマンドは rule_id leading_env_assignment で拒否された。これらは 実装: local_main_branch_guard がread-only/controlled-executorコマンドを誤ブロックする問題を修正する #1684(OPEN)が扱う read-only/controlled-executor コマンドの誤分類バグと同種の symptom であり、本 Issue では 実装: local_main_branch_guard がread-only/controlled-executorコマンドを誤ブロックする問題を修正する #1684 の修正対象として扱い深追いしない。単純な uv run --locked python3 script.py --body という形の非 compound な単一コマンド(--body-file を使わず --body に直接テキストを渡す経路)と、cp / sed -i など単純なファイル操作コマンドは通過するため、本 Issue 自体はこれらの経路を組み合わせて起票した
- Agent tool の isolation worktree で作成される worktree は agent-ID という命名になり、worktree_scope_guard.py の resolve_current_issue が期待する issue-N- 命名パターン(cwd basename または branch 名)と一致せず、そこでの Write も同様に verified_unbound として拒否される
- EnterWorktree を root から呼ぶと、root は isolated worktree ではないため切り替え対象外という理由で拒否される
- 別の isolation worktree agent から既存の正規 worktree へ EnterWorktree(path 指定)を呼ぶと、ツール自体は成功を返すのに、直後の Bash 実行は元の worktree に pin されたままで実質的に移動できていない
上記 1・2・3 は本 Issue 起票時点のリポジトリコードおよび起票作業そのもので再現・確認済みの事実である。4・5・6 は Claude Code の Agent tool(isolation worktree / EnterWorktree)という特定ベンダーツールの観測された挙動であり、対応方針の検討対象からは除外する(Out of Scope 参照)が、事象の背景として記録する。
Outcome
issue-refinement-loop 等、mutation(Write / gh issue comment 等)を伴うステップを持つ agent skill が、実行環境(root checkout か、特定ツールの isolation worktree か)によらず確実に mutation を実行できる tool-agnostic な経路の root cause と対応方針が本 Issue に確定的に記録され、対応方針が決定され、実装が必要な場合は implementation Issue が起票され本 Issue からリンクされている状態。
In Scope
- 「具体的に確認した事実」1・2・3 を再現手順とともに、scripts/agent-guards/worktree_scope_guard.py / scripts/agent-guards/worktree_policy_domain.py / scripts/agent-guards/local_main_branch_guard.py のソース行番号付きで記録する(特に Write が mutation kind write かつ active issue unresolved の場合に書き込み先パスを問わず無条件 deny する設計であることを明示する)
- root checkout からの mutation 全般(Write・gh issue comment・gh issue edit 等)が、issue に紐付いた worktree でしか許可されない現行設計の意図(なぜこの制約があるか)を、docs/dev/hook-boundaries.md の記述および local_main_branch_guard.py の docstring を根拠に確認する
- 対応方針候補の比較検討(特定 AI エージェントソフトの isolation 機構の実装詳細に依存する案は候補に含めない):
a. mutation を伴う skill ステップ用に、deterministic script が git worktree add 等で明示的に issue 紐付き worktree を作成し path を返し、後続の mutation コマンドは git -C path 等の明示引数で実行する tool-agnostic な executor パターン(実装: issue-refinement-loop Step 0f を parent-owned preflight 運用で明文化し isolation agent の exact executor 実行を契約テストで禁止する #1478 の parent-owned preflight と同系統の設計)を新設する
b. mutation ステップ自体を人間の実行(コマンド提示のみ)に倒し、AI エージェントには実行させない運用に変更する
c. 現状維持し、都度発生時に人間へエスカレーションする - 既存の 調査: worktree_scope_guard の issue番号命名要求が汎用 isolation worktree agent の preflight.run 実行を妨げる問題の対応方針を決定する #1464(CLOSED)・調査: agent-neutral worktree mutation guard input schema の要否を判断する #1663(OPEN)との relationship を明記し、本 Issue が扱う「mutation ステップ全般が worktree 紐付けできない」問題との違いを記録する
- 採用方針の選定と記録
- 採用方針が実装を要する場合、実装 Issue の起票
Out of Scope
- scripts/agent-guards/worktree_scope_guard.py / scripts/agent-guards/worktree_policy_domain.py / scripts/agent-guards/local_main_branch_guard.py 本体の実装変更(採用方針が実装を要する場合は follow-up implementation Issue で扱う)
- Claude Code の Agent tool・isolation worktree・EnterWorktree など、特定 AI エージェントソフトの実装詳細やその挙動変更を前提にした対応方針(vendor-agnostic な skill 設計を維持するため)
- Issue 導入: OPEN Issue 重複・依存順・実装優先順位判定を issue-refinement-loop に一元化する #1674 自体のレビュー対応(別途 issue-refinement-loop の再実行または人間対応で扱う)
- 実装: local_main_branch_guard がread-only/controlled-executorコマンドを誤ブロックする問題を修正する #1684 が扱う local_main_branch_guard の read-only / controlled-executor コマンド誤分類バグの修正そのもの(本 Issue はその修正を前提にせず、意図的設計として維持される mutation deny の下での運用設計のみを扱う)
- 調査: agent-neutral worktree mutation guard input schema の要否を判断する #1663 が扱う runtime wire evidence 収集・schema 固定作業そのものの再実施
Acceptance Criteria
- AC1: root からの Write が書き込み先パスに関わらず verified_unbound として拒否される挙動が scripts/agent-guards/worktree_scope_guard.py / scripts/agent-guards/worktree_policy_domain.py のソース行番号付きで本 Issue に記録されている
- AC2: mutation ステップが issue 紐付き worktree でしか許可されない現行設計の意図(存在する場合)が記録されている、または意図的設計でないことが確認されている
- AC3: 対応方針候補 a・b・c が比較され、採用方針が1つ選定され、結論が本 Issue 本文に明記されている(特定エージェントツールの実装詳細に依存する案は不採用として明記する)
- AC4: 調査: worktree_scope_guard の issue番号命名要求が汎用 isolation worktree agent の preflight.run 実行を妨げる問題の対応方針を決定する #1464・調査: agent-neutral worktree mutation guard input schema の要否を判断する #1663・実装: local_main_branch_guard がread-only/controlled-executorコマンドを誤ブロックする問題を修正する #1684 との relationship(duplicate ではなく異なる論点であること)が本 Issue 本文に記録されている
- AC5: 採用方針が実装を要する場合、実装 Issue が起票され本 Issue からリンクされている。実装不要と判断した場合は、その判断根拠が本 Issue 本文に記録されている
Verification Commands
# AC1
$ git grep -n verified_unbound scripts/agent-guards/worktree_scope_guard.py
# AC2
$ git grep -n issue_context_required scripts/agent-guards/worktree_policy_domain.py
# AC3
$ gh issue view ISSUE_NUMBER --repo squne121/loop-protocol --json body --jq .body
# AC4
$ gh issue view ISSUE_NUMBER --repo squne121/loop-protocol --json body --jq .body
# AC5
$ gh issue view ISSUE_NUMBER --repo squne121/loop-protocol --json body --jq .bodyAllowed Paths
- 読み取り専用。リポジトリ変更なし(既定)
Stop Conditions
- Outcome / Scope / AC が検索可能な形で記載されていない場合は即停止
- Allowed Paths 外への書き込みを試みた場合は即停止
- 権限不足(permission denied)により操作が完了できない場合は即停止
- 成果物の書き込みに失敗した場合(I/O エラー等)は即停止
Handoff Contract
- Current Objective: mutation ステップの worktree binding 不能の root cause 確定と tool-agnostic な対応方針決定
- Bounded Current Context: scripts/agent-guards/worktree_scope_guard.py、scripts/agent-guards/worktree_policy_domain.py、scripts/agent-guards/local_main_branch_guard.py、調査: worktree_scope_guard の issue番号命名要求が汎用 isolation worktree agent の preflight.run 実行を妨げる問題の対応方針を決定する #1464、調査: agent-neutral worktree mutation guard input schema の要否を判断する #1663、実装: local_main_branch_guard がread-only/controlled-executorコマンドを誤ブロックする問題を修正する #1684
- Open Questions: 対応方針 a・b・c のどれを採用するか
- Next Action: 対応方針候補を real hook 挙動の evidence とともに比較し、採用方針を決定する
- Artifact Refs: 1674 anchor comment(https://github.com/squne121/loop-protocol/issues/1674#issuecomment-5057240104)、#1464、#1663、#1684
Activity
squne121 commentedon Jul 23, 2026
Issue #1689 敵対的レビュー
判定
REQUEST_CHANGES — 現状の Issue 契約では、誤った root cause を前提に重複 executor を実装する危険が高く、後続 Implementation Issue へ進めません。
2026年7月23日時点で #1689 自体にはコメントがありません。本レビューでは、Issu 9、#1684 の Issue・PR・OWNER コメント・現行実装を照合しました。ライブの GitHub mutation は実行していないため、以下の重要な結論の一つは、#1689 が canonical production path の失敗をまだ再現・証明していないという点です。
Blocker 1 — 「root からの mutation 全般が issue worktree を要求する」という前提が誤っている
#1689 は、Write・
gh issue comment・gh issue edit等の mutation 全般について、root checkout からは実行できず、issue に紐付いた worktree が必要だと一般化しています。また、解決案 a として、deterministic script で worktree を作成し、後続 mutation をgit -C <path>等で実行する案を置いています。しかし、現行 guard は単一の「mutation はすべて worktree 内」というモデルではありません。少なくとも以下は root/default branch からの exact executor lane として別扱いです。
worktree_bootstrap_exec.pycontrolled_skill_mutation_exec.py一方で、raw
gh issue edit/commentや、一般的な repo ファイルへの直接 Write は意図的に拒否されます。したがって、観測された direct Write や raw
ghの拒否は、正規経路が失敗した証拠ではなく、非正規 fallback が正しく拒否された証拠である可能性があります。このリポジトリには少なくとも次の mutation class があり、別々に調査しなければなりません。
これらを「mutation ステップ全般」として一括りにしたまま root cause を決定することはできません。
Blocker 2 — 選択肢 a の worktree bootstrap は既に実装済みであり、
git -Cは Write の問題を解決しないIssue ごとの worktree を deterministic executor で作成し、path・branch・HEAD を返す機構は既に
worktree_bootstrap_exec.pyとして存在します。これは primary root、trusted repository、default branch、issue 固有の path/branch naming、既存 worktree の idempotent readback を検証した上でgit worktree addを実行します。したがって、選択肢 a の前半は新設案ではなく、既存資産の再実装案です。
さらに、Git の
-C <path>はその Git コマンドを指定 path から開始したものとして実行するだけです。SubAgent のセッション cwd、後続の Write tool、PreToolUse hook に渡されるcwdを変更する機能ではありません。 (Git)現行
worktree_scope_guardの Write 判定は tool call のcwdとfile_pathを入力に issue binding を決定します。そのため、別コマンドでgit -C <worktree>を実行しても、その後の Write call は元セッションの cwd のまま評価されます。Claude Code の公式仕様でも、SubAgent 内での
cdは Bash call 間で持続せず、worktree isolation はセッション単位のisolation: worktreeで提供されます。EnterWorktreeも、単なる Git 引数ではなくセッションの working directory・write access・configuration を移す機能として定義されています。 ([Claude]2)したがって選択肢 a は、以下の理由で採用不能です。
git -Cは Git command にしか効かないBlocker 3 — direct Write の成功を完了条件にすると、現行
issue-author契約に反する現行
.claude/agents/issue-author.mdはWrite、Edit、MultiEditをすべてdisallowedToolsに指定しています。既存 Issue の更新 authority はedit_issue_txn.pyが消費するISSUE_EDIT_TXN_INPUT_V1に限定され、直接 mutation command を構築しない契約です。issue-refinement-loopの Step 4 も、issue-authorが返す compact result を consume する契約であり、Write tool の成功を routing 条件にしていません。したがって、#1689 が検証対象にすべきなのは次です。
issue-authorが bounded な desired state を生成できるかedit_issue_txn.py/ controlled executor が実行されたか「Write tool が root または generic isolation worktree から成功すること」は、正規 production contract ではなく、むしろ禁止状態を維持すべき negative condition です。
Blocker 4 — 直接の先行設計である #1608/#1633/PR #1639 が候補集合から欠落している
#1689 が扱う Step 5 の Issue comment 投稿問題は、既に #1608 で調査され、次の方針が採用されています。
この方針では、generic worktree を issue worktree として認可したり、preflight executor を汎用 GitHub mutation executor に拡張したりしません。
その実装である #1633 / PR #1639 は既に merge 済みです。実装は以下を行っています。
child が閉じた bounded request を生成
parent が repository/issue binding を検証
issue-scoped namespace へ安全に materialize
controlled_skill_mutation_exec.py --command-id issue_comment.publishを exact argv で起動raw
gh issue commentproduction call を削除marker/readback/idempotency を検証
fake
ghによる no-live-mutation integration test を追加さらに、Issue body/comment/snapshot mutation を worktree mutation から分離する基盤は #1284 / PR #1295 で実装済みです。PR #1295 は root/default branch から controlled executor を実行可能にしつつ、raw
gh issue edit/commentは引き続き拒否する設計です。既存 Issue update の transaction 境界は #1287 の
edit_issue_txn.py、title+body の atomic update は #1660 / PR #1669 のissue_content.updateとして既に存在します。したがって #1689 の候補 a・b・c は不完全です。最低でも次の候補 d が必要です。
これは新規案ではなく、#1478、#1608、#1633、PR #1639 で既に採択・実装された repository architecture です。
Blocker 5 — 実際に失敗した canonical callsite が記録されていない
#1689 は validator-first、Step 2a、Step 4、Step 5 が「一切実行できずに停止した」と記載していますが、本文には以下がありません。
tool_inputcwdCLAUDE_PROJECT_DIRreason_code/rule_idissue-authorを起動した Agent call の isolation 指定ghに fallback したか特に、現行
issue-authormanifest 自体にはisolation: worktree指定がありません。したがって、「agent-ID worktree で起動された」という観測については、誰がどの Agent invocation で isolation を指定したかを記録しなければ repository contract の不具合として再現できません。また、現行 Claude Code 公式仕様では
EnterWorktreeはセッションの working directory と write access を移す機能です。Issue で観測された「成功を返したのに移動していない」が事実なら、runtime version・起動方法・前後 cwd・tool response を固定した vendor-runtime regression evidence が必要です。 (Claude)direct Write と raw
ghの拒否だけでは、canonical Step 4/5 が壊れていることを証明できません。High 1 — 本当に不足している可能性が高いのは worktree ではなく「bounded handoff / materialization 境界」
現行
issue-authorは Write を持たない一方、手順上は candidate body とISSUE_EDIT_TXN_INPUT_V1を repo-relative file に保存し、edit_issue_txn.py --input-fileを起動することになっています。この契約には、少なくとも次の問いが残っています。
PR #1639 は comment request について、この問題を「child は bounded request のみ返し、parent が安全に materialize する」方式で解決しました。Step 4 の body rewrite に同等の bridge が存在しないのであれば、#1689 の本質は worktree binding 不能ではなく、issue-author → parent → edit transaction の handoff 不在です。
この可能性を検証せずに worktree executor を新設すべきではありません。
High 2 —
tool-agnosticが検証可能な契約として定義されていない現行 policy domain は、agent-neutral な core decision と runtime adapter を分離していますが、対応 runtime/version は明示的に version-pinned されています。
したがって
tool-agnosticは、「Claude Code、Codex、将来の任意ツールで同じ shell command が動く」という意味では成立しません。定義すべきなのは次です。「root checkout か isolation worktree かによらず確実に実行できる」という現在の Outcome は、runtime capability が存在しない場合や version regression の場合を扱えず、検証不能です。
High 3 — セキュリティ要件と negative matrix が不足している
PR #1639 では、単純な parent materializer でさえ、初回 OWNER review で以下の問題が発見されています。
最終的には
dir_fd、O_NOFOLLOW、O_CREAT|O_EXCL、fsync、atomic rename、closed request validation によって修正されています。#1689 の新規 executor 案には、これらの脅威モデルがありません。
また、raw
gh issue commentは単純な create-only command ではなく、直近コメントの編集・削除オプションも持ちます。GitHub の Issue mutation API は write permission を必要とし、content creation は secondary rate limiting の対象になり得ます。GitHub は mutative request の直列化、Retry-After等に従った待機、再試行前の readback を推奨しています。 ([GitHub CLI]4)少なくとも以下の negative test が必要です。
updatedAt..gh、direct Write、shell wrapper が引き続き拒否されることHigh 4 — SSOT と実際の agent manifest に drift がある
docs/dev/agent-skill-boundaries.mdは自身を責務境界の SSOT としていますが、同文書の一覧ではissue-authorの主要 tools に Write が含まれています。一方、実際の
.claude/agents/issue-author.mdは Write を明示的に禁止しています。また actual agent contract は
title_update.required == trueを v1 scope 外としていますが、repository には既に title+body 用のissue_content.updatelane が merge されています。新 lane をいつ、誰が、どの routing で使うかが agent/skill docs に十分反映されていません。この drift は、orchestrator または agent が direct Write/raw mutation を試す誘因になり得ます。新しい worktree executor を追加する前に、以下を同期させる必要があります。
issue-author.mdissue-refinement-loop/SKILL.mdedit-issue/SKILL.mdagent-skill-boundaries.mdHigh 5 — #1684 の parser false positive と混在させてはならない
#1689 自身も heredoc、redirect、literal backtick 等の誤分類を #1684 の scope としています。
#1684 の OWNER review では、raw regex の局所緩和ではなく、quote context、command substitution、execution carrier を区別する既存 parser の再利用と、Claude/Codex parity が要求されています。
したがって以下を厳守すべきです。
#1684 の false positive を、generic worktree や raw mutation を許可する根拠にしてはいけません。
推奨する採用方針
Option D — parent-owned capability dispatch
GitHub の API 自体も、Issue title/body の更新と comment 作成を別 endpoint・別 operation として提供しています。したがって、一つの generic mutation executor ではなく、operation-specific executor と closed schema を維持する方が API surface と整合します。 ([GitHub Docs]5)
metadata-only mutation のために Issue worktree を作成してはなりません。worktree は source tree・Git index・branch の隔離に使用し、remote Issue metadata authority は controlled metadata executor に置くべきです。
推奨 request schema
最低限の制約:
additionalProperties: false推奨する Issue の再構成
修正版タイトル
修正版 Outcome
必須 Acceptance Criteria
固定 evidence
fixed_base_sha、runtime version、Agent invocation、tool input、cwd、branch、worktree catalog、hook、reason code、executor exit code を記録する。canonical Step 4 再現
direct Write ではなく、実際の
issue-author → edit_issue_txnproduction path を red fixture として再現する。canonical Step 5 再現
PR 実装: isolation worktree agent の Issue comment request を issue_comment.publish controlled mutation lane へ接続する (#1633) #1639 の
issue_comment.publishbridge が使われたかを確認し、rawgh issue commentへ fallback していないことを証明する。mutation taxonomy
各失敗を metadata / local artifact / source / Git / worktree lifecycle に分類し、既存 executor の owner を記録する。
既存資産再利用
worktree_bootstrap_exec.py、edit_issue_txn.py、controlled_skill_mutation_exec.py、controlled_git_change_exec.pyの重複実装を禁止する。parent-owned handoff
child は closed request のみ返し、parent が identity・staleness を検証して materialize する。
negative authorization
direct Write/Edit/MultiEdit、raw
gh issue edit/comment、genericagent-*naming authorization は引き続き deny される。filesystem safety
absolute path、
..、symlink、hardlink、FIFO、device、ancestor replacement、TOCTOU を negative test で拒否する。remote consistency
stale body、duplicate request、timeout、429、partial failure、post-readback mismatch を success にしない。
runtime adapter matrix
Claude/Codex の supported version と payload adapter を列挙し、unsupported runtime は fail-closed にする。
SSOT drift 解消
issue-author.md、issue-refinement-loop/SKILL.md、edit-issue、agent-skill-boundaries.mdの Write/title/body/comment authority を同期する。実装: local_main_branch_guard がread-only/controlled-executorコマンドを誤ブロックする問題を修正する #1684 非競合
shell parsing の変更を含めず、実装: local_main_branch_guard がread-only/controlled-executorコマンドを誤ブロックする問題を修正する #1684 の parser fixture と authority を変更しない。
最終結論
#1689 が扱うべき問題は、「mutation のための issue worktree が作れない」ことではありません。
現時点の最も妥当な仮説は、次のいずれかです。
ghへ誤誘導されているしたがって、選択肢 a・b・c のまま方針決定してはなりません。Option D「bounded request + parent-owned materialization + 既存 capability-specific executor」を主要候補として追加し、canonical failure trace を取得した上で Issue 全体を再構成する必要があります。
fix: hooks 全面削除を local_main_branch_guard/worktree_scope_guard の2件のみに縮小する
chore: PR body/title 更新を反映するため CI trigger を再送する
chore: PR body 修正版で Japanese Check を再送する
chore: local_main_branch_guard / worktree_scope_guard の2 hook を緊急停止する (…
squne121 commentedon Aug 12, 2026
Disposition: CLOSED / not_planned
#1782 の敵対的レビュー(https://github.com/squne121/loop-protocol/issues/1782#issuecomment-5266277591)および #1690 の Owner Decision に基づき close する。
根拠: