Repository navigation
Closed
Labels
agent/implementerAI implementer agentdocumentationImprovements or additions to documentationenhancementNew feature or requestphase/implementationImplementation phase
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "PR #2717(Issue #2709)で classifyAllShell 無条件注入を除去した後に残った launch.sh / agent-skill-boundaries.md の stale prose を実装挙動に整合させる"
change_kind: docsParent Issue
なし(単独改善)
Parent Goal Ref
- Goal: PR 実装: Claude-GPT launcher の classifyAllShell を native default と同様に省略する #2717 の owner review comment、および Issue 実装: scripts/claude-gpt/launch.sh と docs/dev/agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する #2721 の operator-selected human-context comment(下記 Source 参照)で指摘された stale prose(旧挙動を前提としたコメント・doc 記述)を、実際の launcher 挙動および Issue 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 の現状に整合させる
- Desired Destination:
scripts/claude-gpt/launch.shの readback コメントとdocs/dev/agent-skill-boundaries.mdの Issue 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203 節を、現状の実装(classifyAllShellキー省略、generated keys はenvironment/allow/hard_deny)および Issue 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 の CLOSED / minimal-harness Owner Decision に一致させる
Current Validated Scope
scripts/claude-gpt/launch.shの readback 関連コメントを、classifyAllShellキー省略後の実際の挙動(fail-closed 条件、tri-state evidence 表現、version floor / direct readback unavailable 単独では block しないこと)に合わせて更新するdocs/dev/agent-skill-boundaries.mdの Issue 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203 節にあるclassifyAllShell: trueを前提とした説明を、現在の generatedautoMode(environment/allow/hard_deny、classifyAllShellキー省略)の実態に合わせて更新するdocs/dev/agent-skill-boundaries.mdの Issue 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203 節にある Issue 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 の説明(OPEN な production-broker/enforcing-hook implementation follow-up)を、Issue 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 の現状(CLOSED、minimal-harness Owner Decision)に合わせて更新する
Remaining Parent Gaps
- なし
Outcome
scripts/claude-gpt/launch.sh のコメントと docs/dev/agent-skill-boundaries.md の該当節が、PR #2717 で確定した「generated autoMode は classifyAllShell キーを含まず、environment / allow / hard_deny のみを生成する」という実装事実、および Issue #2223 の CLOSED / minimal-harness Owner Decision と矛盾しなくなり、AC1〜AC4 の Verification Commands で機械的に確認できる状態。
Runtime Verification Applicability
- decision: immediate
- reason: 本 Issue の Allowed Paths(
scripts/claude-gpt/launch.sh)がdocs/dev/extension-surface-runtime-policy.yamlの risk-trigger ruleclaude-gpt-lifecycle-invocation-change(default_decision: immediate)と重複するためnot_applicableを宣言できない(EXTSURF001)。本 Issue の変更内容自体は launch.sh のコメントおよび docs の prose のみであり、新規 runtime harness・process-io smoke infra・canary は追加しない。動作検証は、scripts/claude-gpt/lib.shの shell 関数を実際に subprocess として起動する既存 focused pytest(_run_sh_function()ヘルパー経由)を AC4 として用いて成立させる。
applicable_acs: [AC4]
execution_environment: uv(pinned lockfile)・Python 3.12 runtime によるローカル pytest 実行。外部サービス・ネットワーク通信は不要。
skip_conditions:uvコマンドまたは対象 pytest ファイルが実行環境に存在しない場合はSKIP: <理由>を stdout 先頭に出力し exit 77。
fallback_policy: 対応する focused pytest が FAIL した場合は本 Issue の動作検証を FAIL(exit 1)として扱う。_fallback: true等による骨抜きは行わない。
artifact_requirements: 対応する pytest 実行結果(stdout/stderr 全文)を PR に添付する。 - 補足: AC1〜AC3 は静的 grep のみで検証可能な docs/comment prose の一致確認であり、
runtime-verification: trueタグは付与しない。
In Scope
scripts/claude-gpt/launch.shの readback 関連コメントの記述更新(「未対応 version」「classifyAllShell 未有効化」で fail-closed するという旧挙動前提の説明を、classifyAllShellキー省略後の実際の fail-closed 条件・tri-state evidence 表現に書き換える)docs/dev/agent-skill-boundaries.mdの Issue 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203 節にある generatedautoModeの説明(environment / allow / classifyAllShell: true)を、現在の実装(environment/allow/hard_deny、classifyAllShellキー省略)に合わせて書き換えるdocs/dev/agent-skill-boundaries.mdの Issue 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203 節にある Issue 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 の説明(OPEN な production-broker/enforcing-hook implementation follow-up)を、Issue 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 の現状(CLOSED、minimal-harness Owner Decision)に合わせて書き換える
Out of Scope
- launcher のコード挙動(behavior)変更(PR 実装: Claude-GPT launcher の classifyAllShell を native default と同様に省略する #2717 で完結済み)
classifyAllShellに関連する新規機能追加・仕様変更- Issue 実装: Claude-GPT launcher の classifyAllShell を native default と同様に省略する #2709 / PR 実装: Claude-GPT launcher の classifyAllShell を native default と同様に省略する #2717 で扱われた他の論点の再オープン
- Issue 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 本文自体の書き換え、または新規 enforcement(production broker / enforcing hook / canary)の実装
- 新規 runtime harness / process-io smoke infra の追加
Acceptance Criteria
- AC1:
scripts/claude-gpt/launch.shの readback 関連コメントが、generatedautoModeのclassifyAllShellキー省略、tri-state evidence(generated_key_present / direct_readback_available / effective_value)、および version support floor 単独・direct_readback_available=false単独では fail-closed にしないことを説明し、「classifyAllShell 未有効化」という旧挙動前提の文言を含まない - AC2:
docs/dev/agent-skill-boundaries.mdの Issue 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203 節が、generatedautoModeの構造をenvironment/allow/hard_denyとして説明し、classifyAllShellが intentionally omitted であることを明示し、classifyAllShell: trueを前提とした記述を含まない - AC3:
docs/dev/agent-skill-boundaries.mdの Issue 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203 節が、Issue 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 を OPEN な production-broker/enforcing-hook implementation follow-up として説明せず、Issue 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 の CLOSED 状態・minimal-harness Owner Decision に整合した記述になっている - AC4: 本 Issue の変更(launch.sh のコメント・docs の prose のみ)が
scripts/claude-gpt/lib.shの generated settings / schema の実挙動を変更していないことを、既存の focused pytest regression(test_generated_settings_omits_classify_all_shell/test_hard_deny_preserves_defaults_and_adds_narrow_push_denials)が変更後も継続して PASS することで確認する
Verification Commands
# AC1
$ ! rg -n "classifyAllShell 未有効化" scripts/claude-gpt/launch.sh# AC1
$ rg -n "tri-state" scripts/claude-gpt/launch.sh# AC2
$ ! rg -n "classifyAllShell: true" docs/dev/agent-skill-boundaries.md# AC2
$ rg -n "hard_deny" docs/dev/agent-skill-boundaries.md# AC3
$ ! rg -n "、OPEN)で対応する" docs/dev/agent-skill-boundaries.md# AC3
$ rg -n "Issue #2223(CLOSED" docs/dev/agent-skill-boundaries.md# AC4
# baseline-expect: pass
$ uv run --locked pytest scripts/claude-gpt/tests/test_classify_all_shell_native_projection.py::test_generated_settings_omits_classify_all_shell -v# AC4
# baseline-expect: pass
$ uv run --locked pytest scripts/claude-gpt/tests/test_auto_mode_policy.py::test_hard_deny_preserves_defaults_and_adds_narrow_push_denials -vAllowed Paths
- scripts/claude-gpt/launch.sh
- docs/dev/agent-skill-boundaries.md
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
Required Skills
なし
Required Design References
- docs/dev/agent-skill-boundaries.md(本 Issue の直接編集対象かつ Issue 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203 節の正本)
- docs/dev/extension-surface-runtime-policy.yaml(
claude-gpt-lifecycle-invocation-changerule、Runtime Verification Applicability decision の根拠)
Scope Delta(任意)
N/A
Source
- dedupe_key: claude-gpt-launch-sh-agent-skill-boundaries-stale-prose-classifyallshell
- source: PR 実装: Claude-GPT launcher の classifyAllShell を native default と同様に省略する #2717 owner review comment https://github.com/squne121/loop-protocol/pull/2717#issuecomment-5762036279(P2-3セクション)、Issue 実装: Claude-GPT launcher の classifyAllShell を native default と同様に省略する #2709 の Remaining Parent Gaps 節、および Issue 実装: scripts/claude-gpt/launch.sh と docs/dev/agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する #2721 の operator-selected human-context comment https://github.com/squne121/loop-protocol/issues/2721#issuecomment-5812357784(scope 固定・AC/VC 具体化・決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 同期の指示)
- severity: optional_follow_up(non-blocking)
- labels 候補: documentation, stale-prose
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentdocumentationImprovements or additions to documentationenhancementNew feature or requestphase/implementationImplementation phase
Activity
squne121 commentedon Sep 24, 2026
判定
REQUEST_CHANGES 相当です。 ただし、実装規模を増やす必要はありません。#2721 の「2ファイルの prose/comment-only cleanup」という方針は適切で、新しい security harness・runtime canary・schema・approval mechanism は不要です。
[Issue #2709](#2709) → [PR #2717](#2717) の実装と owner review、現行
mainのlib.sh/preflight.sh/launch.sh/ docs を突き合わせると、#2721 はもう少しだけ契約を具体化した方が安全です。Claude Code の現行公式仕様でも、classifyAllShell未指定時は narrow な Bash/PowerShell allow が classifier より先に解決され、trueの場合に全 shell command が classifier を通る、という #2717 の前提は現在も妥当です。またauto-mode defaults/configの readback は4つの rule list を公開し、classifyAllShellboolean 自体は公開していません。:chatgpt-content-reference{index="0"}P1 —
agent-skill-boundaries.mdの修正範囲が狭すぎます。 現行 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203 節にはautoMode (environment / allow / classifyAllShell: true)だけでなく、その直後に「production broker / hook-level deny は follow-up Issue 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223(OPEN)で実装する」という記述も残っています。しかし #2223 はすでに closed で、implementation から research/Owner Decision に reframe され、generic production broker / 新規 enforcing PreToolUse hook は作らず、server-side protection・repository permission・required CI・live readback を正本とする方針に変わっています。さらに PR #2666 後の現行lib.shは既にこの 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 方針へ同期済みです。実装: scripts/claude-gpt/launch.sh と docs/dev/agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する #2721 で同じ 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203 節を触りながらここを残すと、「classifyAllShell stale prose は直ったが、architecture prose は依然逆」という状態になります。同一ファイル・同一節なので、別 Issue に分けるメリットは薄く、実装: scripts/claude-gpt/launch.sh と docs/dev/agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する #2721 に含めるのが適切です。P1 — docs の期待値を「classifyAllShell を消す」だけにすると不完全です。 現行
claude_gpt_auto_mode_json_fragment()が実際に生成するのはenvironment/allow/hard_denyです。classifyAllShellは意図的に省略されています。ところが現 AC は「classifyAllShell: true前提を消す」「現在の実装を正しく説明する」までなので、実装者が単純に/ classifyAllShell: trueだけを削除してenvironment / allowにしても表面上通せます。docs の期待値を明示的に「generated keys はenvironment / allow / hard_deny、classifyAllShellは生成しない」と固定すべきです。なおsoft_denyは effective readback の4 rule listsには存在しますが、launcher fragment が明示生成するキーではないため、ここを混同しない方がよいです。P1 —
launch.shに fail-closed reason を再列挙する設計は、また stale になります。 現コメントは「未対応 version」「classifyAllShell 未有効化」などを列挙していますが、実装: Claude-GPT launcher の classifyAllShell を native default と同様に省略する #2717 後は version floor はclassify_all_shell_setting_version_floor_metという non-blocking metadata であり、direct_readback_available: falseも単独では blocker ではありません。詳細な reason はpreflight.sh/lib.shの V2 contract がすでに正本です。launch.shには詳細理由をコピーせず、例えば次の程度に限定する方が保守性が高いです。P2 — 現 Verification Commands の
rg -cは machine VC として壊れています。rg -c "classifyAllShell 未有効化" ...は、期待通り0件になったとき出力は0でも exit status 1 になります。ripgrep は match あり=0、match なし=1 という契約なので、set -eや VC runner では成功状態を failure と扱います。:chatgpt-content-reference{index="1"} またrg -n "classifyAllShell"だけでは、現行実装にも正当なclassifyAllShell参照が多数あるため、正しさの判定になりません。negative assertion は! rg ...にし、期待する新記述を positive assertion するべきです。P2 — Runtime Verification
not_applicableは維持してよいですが、既存 focused regression は使った方がよいです。 comment/docs-only change に real Claude runtime を起動するのは過剰です。一方、実装: Claude-GPT launcher の classifyAllShell を native default と同様に省略する #2717 が既に持っている「generated key omission」と「hard_deny preservation」の2テストを実行するコストは小さく、docs が説明する実装事実の baseline 確認になります。全pnpmsuite や新規 test harness は不要です。以前の競合候補だった 実装: Herdr cold restartでTask BindingとNative/Claude-GPT runtime flavorを自動復元する #2569 は PR #2731 で本日 merge 済み、実装: Claude-GPT isolation 下の file-backed AGY session source-path handoff を修復する #2670 も PR #2687 で完了済みです。残る 実装: worktree-agent-runtime-smokeのTask Context残り実機検証シナリオ(AC7/AC8/AC9/Claude-GPT lane)を完了する #2706 は runtime verification Issue で、通常は write path を持たないため、これらを理由に 実装: scripts/claude-gpt/launch.sh と docs/dev/agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する #2721 を止める必要もありません。推奨する #2721 の契約差分
In Scopeには、現在の2項目に加えて次を入れるのがよいです。Acceptance Criteria は少なくとも次の意味まで固定するのを推奨します。
Verification Commands も、この程度で十分です。
最終評価
#2721 の方向性は正しいですが、現状のまま実装すると「古い文字列を2個消しただけ」で終了できてしまう契約です。特に
agent-skill-boundaries.mdの #2223 記述は現在の実装・Owner Decision と明確に逆なので、同じ cleanup で直すべきです。推奨する着地点は、Allowed Paths は今の2ファイルのまま、Runtime Verification は
not_applicableのまま、security/harness は一切追加せず、#2223 同期 + exact generated-key contract + VC 修正だけ追加です。これなら品質を上げつつ、趣味開発のワークフローを重くしません。squne121 commentedon Sep 24, 2026
確認した限り、今回の #2721 は 対象コメントを
operator-selected human-contextとして取り込み、現行issue-refinement-loopをそのまま自動継続させるのが適切です。特に重要なのは次の点です。
docs/dev/agent-skill-boundaries.mdの同一節内で完結し、Allowed Paths は既存2ファイルのまま維持できます。決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 は実際に closed で、generic production broker / 新規 enforcing hook を作らない minimal-harness 方針に reframe 済みです。issue-refinement-loopの現行 loop policy はloop_iteration_approval_gate.default_required: falseなので、needs-fixごとに人間承認を求める必要はありません。ただし Claude Code の permission mode を変更する意味ではありません。issue-reviewerSubAgent を直接起動する方式ではありません。root_review_pipeline.produceを background 起動 → task completion を join → 実 JSON を取得してからcanonical_step2_routeに従うのが必須です。rgは no-match で exit 1 になるため、対象コメントの指摘どおり negative VC は! rg ...型に直すのが妥当です。:chatgpt-content-reference{index="0"}その前提で、既に auto mode で起動している Claude Code には以下をそのまま渡すのを推奨します。
Issue #2721 を、以下の OWNER/operator-selected human-context comment を起点として、現行 repository の
.claude/skills/issue-refinement-loop/SKILL.mdに従い refinement してください。Target Issue:
#2721
Operator-selected human-context comment:
#2721 (comment)
Skill:
.claude/skills/issue-refinement-loop/SKILL.mdObjective
対象コメントの敵対的レビュー指摘を #2721 の Machine-Readable Contract / In Scope / Acceptance Criteria / Verification Commands 等へ正しく反映し、
issue-refinement-loopを canonical flow でapprovedまで進める。これは refinement task である。
実装ファイルの変更を先に始めたり、レビューを省略したり、Issue 本文を手作業で場当たり的に編集して終了してはならない。
Execution policy
--dangerously-skip-permissions、permission bypass、追加の approval mechanism は導入しない。loop_iteration_approval_gate.default_required: falseに従い、各 refinement iteration の継続について私への承認確認を求めない。needs-fixの場合、iteration + 1 < max_iterationsであれば自動的に次 iteration へ進む。max_iterationsは SKILL.md の既定値 3 を使用する。human_judgment_required、max_iterations 到達、environment/integrity failure、または SKILL.md が定義する hard stop だけは勝手に bypass しない。Canonical human-context entry
対象コメントは URL だけの unlabeled anchor として扱わず、operator-selected
human_contextとして処理する。canonical main root / default branch から、現行 command registry / privileged executor を使用すること。
少なくとも initial preflight は canonical
preflight.run.with_human_contextlane を使うこと。概念上の invocation は次の binding である:
実装: scripts/claude-gpt/launch.sh と docs/dev/agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する #2721 (comment)
手書きの独自 shell wrapper や raw mutation route を作らず、
.claude/skills/issue-refinement-loop/scripts/command_registry.pyに定義された command profile を正本として使用すること。
preflight.run.with_human_contextが trusted contract patch plan / contract update route を返した場合は、canonicalcontract_update.run.with_human_contextphase を使用する。contract update が full rewrite /
issue_editor_requiredを要求した場合は、SKILL.md の Step 4 に従ってissue-editorSubAgent へ委譲する。SubAgent requirement
この run では、SKILL.md が許可・要求する SubAgent delegation を実際に使用すること。
特に repository investigation が required の場合は
codebase-investigatorSubAgent を使用して、対象コメント中の少なくとも以下を current main で確認すること。scripts/claude-gpt/launch.shscripts/claude-gpt/lib.shscripts/claude-gpt/preflight.shdocs/dev/agent-skill-boundaries.mdclassifyAllShellomission / tri-state evidence 契約planner が Web research を required と判定した場合は
web-researcherSubAgent も使用し、外部 claim を一次資料で検証すること。Mandatory SubAgent join
SubAgent を起動しただけで完了扱いにしてはならない。
各 SubAgentについて必ず:
running / pending / background 状態の SubAgent を残したまま refinement を完了したと報告しない。
複数 SubAgent を並列起動した場合も、全 required SubAgent の terminal completion を join してから Step 2 へ進む。
SubAgent 自身に final routing authority を持たせず、最終 classification / routing は main thread が現行 SKILL.md の SSOT に基づいて行う。
Target refinement delta
対象コメントを単純コピーするのではなく、repository evidence と current contracts を確認したうえで Issue contract に反映する。
期待する方向性は以下。
1. Scope
Allowed Paths は原則として現在の2ファイルを維持する。
scripts/claude-gpt/launch.shdocs/dev/agent-skill-boundaries.md追加のコード実装ファイル、security harness、schema、runtime canary は追加しない。
docs/dev/agent-skill-boundaries.mdの同じ Issue #2203 節に残っている stale #2223 architecture prose も今回の cleanup に含める。具体的には、historical な
「production broker / enforcing hook を今後実装する」
という説明を、Issue #2223 の current Owner Decision と現行 repository stateへ同期する。
現在の destination は:
という minimal-harness 方針である。
2. launch.sh prose contract
launch.shに fail-closed reason の詳細一覧を複製しない。少なくとも次の意味を正確に表現させる。
autoModeはclassifyAllShellを生成しないpreflight.sh/lib.shの current V2 contractdirect_readback_available=false単独でも block しない古い fail-closed reason を launch.sh comment 内へ再列挙して将来 stale にしない。
3. generated autoMode keys
docs の #2203 節について、「
classifyAllShell: trueを消した」だけで完了させない。current generated launcher fragment が明示生成する key を repository evidence で確認し、少なくとも現在の事実として:
environmentallowhard_denyを generated keys として説明する。
classifyAllShellは intentionally omitted と明記する。effective readback の rule-list と launcher fragment の generated keys を混同しない。
特に
soft_denyが readback 側に存在することを理由に generated fragment の explicit key と誤記しない。4. #2223 synchronization
docs/dev/agent-skill-boundaries.mdの Issue #2203 section が、#2223 を OPEN な production-broker implementation follow-up と説明する状態を残さない。Issue #2223 の closed/current Owner Decision に整合させる。
ただし今回の Issue で #2223 自体を書き換えたり、新規 enforcement を実装したりしない。
5. Acceptance Criteria
少なくとも以下の semantic guarantees が機械的に確認できるよう AC を具体化する。
AC1:
launch.shが generated autoMode のclassifyAllShellomission、tri-state evidence、version floor / unavailable direct readback 単独では block しないことを正しく説明する。AC2:
docs #2203 が generated autoMode を
environment / allow / hard_denyと説明し、classifyAllShellomission を明示する。AC3:
docs #2203 が #2223 を OPEN production-broker/enforcing-hook implementation と説明せず、current minimal-harness Owner Decision に整合する。
AC4:
behavior / schema / launcher-generated settings の実装変更を行わない。
必要なら current issue contract style に合わせて AC を分割・表現調整してよいが、semantic guarantee を弱めないこと。
6. Verification Commands
negative assertion に単純な
rg -c ...を success command として使用しない。
ripgrep は no-match で exit status 1 になるため、expected absence の verification は
! rg ...等の明示的 negative assertion にする。少なくとも以下を current wording に合わせて用意する。
classifyAllShell 未有効化launch prose の absenceenvironment / allow / hard_denydescription の presenceさらに、新規 runtime harness は作らず、既存 focused regression の現在の test node を確認した上で、
classifyAllShellhard_denyに対応する既存 focused pytest を VC に含める。
test name が current main と異なる場合は、推測せず repository を検索して実在する node id を使うこと。
7. Runtime Verification Applicability
comment/docs-only scope のため
not_applicableを維持する方向で評価する。既存 focused unit regression の実行は baseline verification としてよいが、それを「runtime verification applicable」へ勝手に昇格させない。
real Claude runtime / live canary を新設・要求しない。
Canonical review
Step 2 は現行 SKILL.md の root-owned pipeline を使用する。
issue-reviewerSubAgent を canonical Step 2 routing のために起動しない。.claude/skills/issue-refinement-loop/scripts/run_root_review_pipeline.py produceを Claude Code Bash tool から 明示的に background execution する。
重要:
run_in_background: trueで起動するcanonical_step2_routeを唯一の routing authority として consume するstatus/verdict/next_actionから独自 routing を再実装しないbackground task が running のまま次 Step に進まない。
Rewrite loop
canonical Step 2 が request_changes / rewrite を要求したら、SKILL.md に従い Step 4 へ進む。
issue-editorSubAgent を起動する場合も terminal completion を必ず待つ。issue-editor の mutation 後は authoritative GitHub readback / BODY_HASH 等の現行 gate を満たしてから final review を行う。
修正後は必ず再度 canonical Step 2 を実行する。
人間に
「この修正を適用してよいですか」
「次 iteration に進んでよいですか」
等の通常承認を求めない。
Stop conditions
以下の場合のみ fail-closed / human escalation とする。
human_judgment_requiredとするケース単に review が
needs-fixを返しただけでは停止しない。Completion
issue-refinement-loopが approved termination に到達するまで進める。approved 時は現行 SKILL.md が要求する termination report /
LOOP_HANDOFF_RESULT_V1/ dependency materialization gate 等を省略しない。current SKILL.md の Step 5 が mandatory root transition bookkeeping を要求する場合は、その canonical contract に従うこと。
ただし、この指示の目的は #2721 の refinement 完了である。
canonical transition が要求する範囲を越えて、独自判断で実装、merge、Issue close を先行しない。
特に merge は行わない。
Final response to me
作業終了時は簡潔に以下を報告すること。
canonical_step2_route途中で通常の承認確認を求めず、canonical hard stop が発生しない限り自律的に最後まで進めてください。
このプロンプトでは、「サブエージェントを使う」だけでなく、SubAgent の join と Step 2 background task の join を別々の必須条件にしています。今回のような loop では、ここを曖昧にすると「起動済み=完了」と誤認して先へ進むケースが最も避けたい失敗パターンです。
squne121 commentedon Sep 24, 2026
root-owned entry router audit
route: invoke_impl_review_loop
reason: fresh_review_go_live_equality
squne121 commentedon Sep 24, 2026
issue-refinement-loop 終了報告(approved)
対象コメント(operator-selected human-context): #2721 (comment) および #2721 (comment) の指摘を Issue 本文の Machine-Readable Contract / In Scope / Acceptance Criteria / Verification Commands / Runtime Verification Applicability に反映した。
docs/dev/extension-surface-runtime-policy.yamlのclaude-gpt-lifecycle-invocation-changerisk-trigger(EXTSURF001)との整合のため Runtime Verification Applicability をnot_applicableからimmediateへ変更し、既存 focused pytest regression(新規 harness 追加なし)を AC4 の動作検証とした、(3) Verification Commands の negative assertion をrg -cから! rgへ修正し AC ごとに# AC<N>を付与、(4) docs 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203 節の Issue 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 記述を OPEN production-broker 前提から CLOSED / minimal-harness Owner Decision 整合へ更新する AC/VC を追加canonical_step2_route:step_2_5(deterministic checker: verdictapprove/next_actionproceed、その後semantic_review_applicable: falseのため Step 2.5 をスキップし Step 4.5 へ)root-owned entry router(
root_entry_router.py)による同一 turn 内の live equality 確認(reviewed_body_sha256/observed_live_body_sha256/ base SHA 一致)によりroute: invoke_impl_review_loop/invoked: trueが確定した(監査コメント: 直前のコメント参照)。この turn の中でimpl-review-loopStep 1 へ進む。squne121 commentedon Sep 24, 2026
implement-issue: 実装完了 (2026-09-24T11:05:25Z)
.claude/worktrees/issue-2721-stale-prose-fixworktree-issue-2721-stale-prose-fixsqune121 commentedon Sep 24, 2026
impl-review-loop: 完了 (2026-09-24T11:15:00Z)
実装: launch.sh / agent-skill-boundaries.md の classifyAllShell 関連 stale…