Skip to content

調査: mutation ステップの worktree binding 不能が issue-refinement-loop を停止させる root cause を確定し tool-agnostic な対応方針を決定する #1689

Closed as not planned

Description

@squne121

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-only

Parent Issue

なし(単独調査)

Related Issues

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 起票作業中に再現・確認済み):

  1. 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 外かに関わらず拒否される
  2. 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 される
  3. 本 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 自体はこれらの経路を組み合わせて起票した
  4. Agent tool の isolation worktree で作成される worktree は agent-ID という命名になり、worktree_scope_guard.py の resolve_current_issue が期待する issue-N- 命名パターン(cwd basename または branch 名)と一致せず、そこでの Write も同様に verified_unbound として拒否される
  5. EnterWorktree を root から呼ぶと、root は isolated worktree ではないため切り替え対象外という理由で拒否される
  6. 別の 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

Acceptance Criteria

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 .body

Allowed Paths

  • 読み取り専用。リポジトリ変更なし(既定)

Stop Conditions

  • Outcome / Scope / AC が検索可能な形で記載されていない場合は即停止
  • Allowed Paths 外への書き込みを試みた場合は即停止
  • 権限不足(permission denied)により操作が完了できない場合は即停止
  • 成果物の書き込みに失敗した場合(I/O エラー等)は即停止

Handoff Contract

Activity

  1. added
    phase/research
    state/queued
    agent/research
    on Jul 23, 2026
  2. squne121 commented on Jul 23, 2026

    @squne121
    OwnerAuthor

    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.py
    • controlled_skill_mutation_exec.py
    • controlled Git change executor
    • 一部の agent-ops / skill-runtime exact command

    一方で、raw gh issue edit/comment や、一般的な repo ファイルへの直接 Write は意図的に拒否されます。

    したがって、観測された direct Write や raw gh の拒否は、正規経路が失敗した証拠ではなく、非正規 fallback が正しく拒否された証拠である可能性があります。

    このリポジトリには少なくとも次の mutation class があり、別々に調査しなければなりません。

    1. GitHub Issue の title/body/comment mutation
    2. candidate body や executor input 等のローカル artifact materialization
    3. 追跡対象 source file の Write/Edit
    4. Git index・commit・ref mutation
    5. worktree lifecycle mutation

    これらを「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 は、以下の理由で採用不能です。

    • worktree 作成部分は既存機能と重複する
    • git -C は Git command にしか効かない
    • Write/Edit tool の session binding を変更しない
    • candidate file の materialization 問題を解決しない
    • Git mutation についても既存の controlled Git executor と権限が重複する

    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 を生成できるか
    • parent がその desired state を安全に materialize できるか
    • edit_issue_txn.py / controlled executor が実行されたか
    • stale-write precondition と post-mutation readback が成功したか
    • compact result が orchestrator へ返ったか

    「Write tool が root または generic isolation worktree から成功すること」は、正規 production contract ではなく、むしろ禁止状態を維持すべき negative condition です。


    Blocker 4 — 直接の先行設計である #1608/#1633/PR #1639 が候補集合から欠落している

    #1689 が扱う Step 5 の Issue comment 投稿問題は、既に #1608 で調査され、次の方針が採用されています。

    isolation worktree agent は bounded comment request のみ生成し、canonical main/default-branch 上の parent orchestrator が既存 issue_comment.publish controlled mutation lane へ委譲する。

    この方針では、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 comment production 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 が必要です。

    d. isolation worker は bounded mutation request のみ返し、canonical parent が既存の capability-specific controlled executor へ dispatch する。

    これは新規案ではなく、#1478、#1608、#1633、PR #1639 で既に採択・実装された repository architecture です。


    Blocker 5 — 実際に失敗した canonical callsite が記録されていない

    #1689 は validator-first、Step 2a、Step 4、Step 5 が「一切実行できずに停止した」と記載していますが、本文には以下がありません。

    • 実行しようとした exact argv
    • tool name と完全な tool_input
    • hook payload の cwd
    • CLAUDE_PROJECT_DIR
    • active issue binding
    • branch と worktree catalog
    • blocking hook
    • reason_code / rule_id
    • Claude Code / Codex CLI の正確な version
    • issue-author を起動した Agent call の isolation 指定
    • controlled executor を呼んだか、direct Write/raw gh に fallback したか
    • mutation 開始前後の artifact と remote readback
    • failure が command construction、guard、executor policy、GitHub API のどこで発生したか

    特に、現行 issue-author manifest 自体には 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 を起動することになっています。

    この契約には、少なくとも次の問いが残っています。

    • child は candidate body をどの mechanism で生成するのか
    • child が arbitrary path を parent に渡してよいのか
    • parent が child filesystem を直接信用するのか
    • candidate body と reviewer feedback の identity は何に bind されるのか
    • stale body hash / updatedAt / session / iteration を誰が検証するのか
    • input artifact の materialization authority は誰か

    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 が動く」という意味では成立しません。定義すべきなのは次です。

    • 共通の閉じた mutation request schema
    • parent/worker の authority 境界
    • runtime-independent な decision result
    • runtime ごとの payload adapter
    • supported runtime/version matrix
    • unsupported version の fail-closed routing
    • adapter parity test

    「root checkout か isolation worktree かによらず確実に実行できる」という現在の Outcome は、runtime capability が存在しない場合や version regression の場合を扱えず、検証不能です。


    High 3 — セキュリティ要件と negative matrix が不足している

    PR #1639 では、単純な parent materializer でさえ、初回 OWNER review で以下の問題が発見されています。

    • predictable path への plain write
    • ancestor/output symlink follow
    • hardlink
    • FIFO/device
    • check-then-write TOCTOU
    • producer/consumer validation boundary が恒真
    • idempotency marker の repo/issue 間衝突

    最終的には 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 が必要です。

    • wrong repository / issue / session / iteration
    • stale body hash / stale updatedAt
    • duplicate marker / replay
    • absolute path / ..
    • symlink / hardlink / FIFO / device / socket
    • namespace ancestor replacement
    • oversized body / invalid UTF-8 / NUL
    • timeout 後に remote mutation が成立していた ambiguous outcome
    • 403 / 404 / 410 / 422 / 429
    • unsupported runtime/version
    • child が指定した任意 worktree/path
    • raw 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.update lane が merge されています。新 lane をいつ、誰が、どの routing で使うかが agent/skill docs に十分反映されていません。

    この drift は、orchestrator または agent が direct Write/raw mutation を試す誘因になり得ます。新しい worktree executor を追加する前に、以下を同期させる必要があります。

    • issue-author.md
    • issue-refinement-loop/SKILL.md
    • edit-issue/SKILL.md
    • agent-skill-boundaries.md
    • controlled mutation command registry
    • compact result routing

    High 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

    isolation worker
      │
      │  closed, bounded desired-state request
      ▼
    canonical parent / orchestrator
      │
      ├─ identity / session / iteration / stale precondition validation
      ├─ symlink-safe atomic materialization
      └─ capability-specific exact executor dispatch
           ├─ Issue title/body → edit_issue_txn / issue_content.update
           ├─ Issue comment    → issue_comment.publish
           ├─ source edit      → issue-worktree session or bounded patch executor
           ├─ stage/commit     → controlled_git_change_exec
           └─ worktree create  → worktree_bootstrap_exec
    

    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

    schema: ISSUE_REFINEMENT_MUTATION_REQUEST_V1
    operation: issue_content_update | issue_comment_publish
    repository_full_name: squne121/loop-protocol
    issue_number: 1674
    refinement_session_id: <opaque-id>
    iteration_id: <opaque-id>
    producer_role: issue-author
    expected:
      body_sha256: sha256:...
      updated_at: <github-updatedAt>
    desired:
      title: <optional>
      body: <optional>
      comment_body: <optional>
    marker: <operation-scoped-marker>
    idempotency_key: <repo+issue+session+iteration+operation digest>

    最低限の制約:

    • additionalProperties: false
    • operation ごとに desired field を排他的に検証
    • child-controlled file path を authority input にしない
    • repo/issue/session/iteration を parent が照合
    • body size、UTF-8、NUL を検証
    • stale precondition 不一致は mutation 前に拒否
    • timeout 後は readback してから retry
    • final remote state が desired state と一致した場合のみ success
    • raw body や credentials を compact result に含めない

    推奨する Issue の再構成

    修正版タイトル

    調査: issue-refinement-loop Step 4/5 の isolation worker→parent mutation handoff 欠落を確定し既存 controlled executor へ接続する

    修正版 Outcome

    issue-refinement-loop の Step 2a、Step 4、Step 5 について、canonical production callsite の exact runtime trace を取得し、失敗を local artifact materialization、Issue metadata mutation、source mutation、Git mutation、worktree lifecycle に分類する。Issue metadata mutation は既存 controlled executor lane を再利用し、isolation worker は bounded request のみ返し、canonical parent が検証・materialize・dispatch・readback する方針を確定する。direct Write/raw gh の許可や generic isolation worktree 名の authorization は行わない。

    必須 Acceptance Criteria

    1. 固定 evidence
      fixed_base_sha、runtime version、Agent invocation、tool input、cwd、branch、worktree catalog、hook、reason code、executor exit code を記録する。

    2. canonical Step 4 再現
      direct Write ではなく、実際の issue-author → edit_issue_txn production path を red fixture として再現する。

    3. canonical Step 5 再現
      PR 実装: isolation worktree agent の Issue comment request を issue_comment.publish controlled mutation lane へ接続する (#1633) #1639 の issue_comment.publish bridge が使われたかを確認し、raw gh issue comment へ fallback していないことを証明する。

    4. mutation taxonomy
      各失敗を metadata / local artifact / source / Git / worktree lifecycle に分類し、既存 executor の owner を記録する。

    5. 既存資産再利用
      worktree_bootstrap_exec.py、edit_issue_txn.py、controlled_skill_mutation_exec.py、controlled_git_change_exec.py の重複実装を禁止する。

    6. parent-owned handoff
      child は closed request のみ返し、parent が identity・staleness を検証して materialize する。

    7. negative authorization
      direct Write/Edit/MultiEdit、raw gh issue edit/comment、generic agent-* naming authorization は引き続き deny される。

    8. filesystem safety
      absolute path、..、symlink、hardlink、FIFO、device、ancestor replacement、TOCTOU を negative test で拒否する。

    9. remote consistency
      stale body、duplicate request、timeout、429、partial failure、post-readback mismatch を success にしない。

    10. runtime adapter matrix
      Claude/Codex の supported version と payload adapter を列挙し、unsupported runtime は fail-closed にする。

    11. SSOT drift 解消
      issue-author.md、issue-refinement-loop/SKILL.md、edit-issue、agent-skill-boundaries.md の Write/title/body/comment authority を同期する。

    12. 実装: 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 が作れない」ことではありません。

    現時点の最も妥当な仮説は、次のいずれかです。

    • canonical controlled executor を skill が呼んでいない
    • isolation worker から parent への bounded request handoff がない
    • candidate body / transaction input の materialization owner が未定義
    • agent/skill/SSOT drift により direct Write/raw gh へ誤誘導されている
    • runtime-specific isolation behaviorを repository architecture の問題と誤認している

    したがって、選択肢 a・b・c のまま方針決定してはなりません。Option D「bounded request + parent-owned materialization + 既存 capability-specific executor」を主要候補として追加し、canonical failure trace を取得した上で Issue 全体を再構成する必要があります。

  3. squne121 commented on Aug 12, 2026

    @squne121
    OwnerAuthor

    Disposition: CLOSED / not_planned

    #1782 の敵対的レビュー(https://github.com/squne121/loop-protocol/issues/1782#issuecomment-5266277591)および #1690 の Owner Decision に基づき close する。

    根拠:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/researchphase/researchstate/queued

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions