Skip to content

実装: launch.sh / agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する - #2743

Merged
squne121 merged 3 commits into
mainfrom
worktree-issue-2721-stale-prose-fix
Sep 24, 2026
Merged

squne121 merged 3 commits into
mainfrom
worktree-issue-2721-stale-prose-fix

Conversation

@squne121

@squne121 squne121 commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Checks

  • pnpm typecheck
  • pnpm lint
  • pnpm test
  • pnpm build
  • 上記コマンドをすべてローカルで実行し、成功したことを確認してからチェックしてください

Schema Change Applicability

  • decision: not_schema_change
  • reason: docs / shell comment の prose 修正のみであり、producer-consumer 境界をまたぐ machine-readable contract(schema)の変更は含まない

Schema Consumer Inventory

N/A(not_schema_change のため該当なし)

Visual Impact Declaration(視覚影響申告)

UI(DOM/CSS)変更を含まないため省略する。

Safety Claim Matrix

N/A

reason: 変更対象パス(scripts/claude-gpt/launch.sh のコメント、docs/dev/agent-skill-boundaries.md の prose)は safety-sensitive path pattern(transport / permission / sandbox / auth / mcp / .claude/skills/ / .github/workflows/)に該当せず、実際の authorization boundary・hook・broker の挙動を変更していない(docs/comment-only cleanup)。

検証コマンドの実行結果

Issue #2721 本文の Verification Commands(AC1〜AC4)を実行し、全て期待通りの結果を確認した(fix-delta commit 2d85d5680040d33a94aebe45ccf71473197a7ce6 適用後の再実行)。

# AC1: stale launch prose が消えたこと
$ ! rg -n "classifyAllShell 未有効化" scripts/claude-gpt/launch.sh
(no match; exit 0)

# AC1: tri-state evidence への言及があること
$ rg -n "tri-state" scripts/claude-gpt/launch.sh
1075:#     direct-readback availability を tri-state evidence

# AC2: stale generated-key description が消えたこと
$ ! rg -n "classifyAllShell: true" docs/dev/agent-skill-boundaries.md
(no match; exit 0)

# AC2: current generated keys(environment / allow / hard_deny)の明示
$ rg -n "hard_deny" docs/dev/agent-skill-boundaries.md
2773:`autoMode`(`environment` / `allow` / `hard_deny`)は、Claude Code の

# AC3: stale #2223 OPEN destination が消えたこと
$ ! rg -n "、OPEN)で対応する" docs/dev/agent-skill-boundaries.md
(no match; exit 0)

# AC3: #2223 CLOSED への同期
$ rg -n "Issue #2223(CLOSED" docs/dev/agent-skill-boundaries.md
2809:broker / 新規 enforcing hook-level deny は、Issue #2223(CLOSED、implementation から

# AC4: 既存 focused pytest regression(実装変更なしの baseline 確認)
$ uv run --locked pytest scripts/claude-gpt/tests/test_classify_all_shell_native_projection.py::test_generated_settings_omits_classify_all_shell -v
1 passed

$ uv run --locked pytest scripts/claude-gpt/tests/test_auto_mode_policy.py::test_hard_deny_preserves_defaults_and_adds_narrow_push_denials -v
1 passed

補足的な静的チェック(OWNER review comment 由来。Issue の canonical VC ではなく、fix-delta の意味的欠陥修正を確認するための追加証跡):

$ ! rg -F "authoritative live readback を security authority" docs/dev/agent-skill-boundaries.md
(no match; exit 0)

$ ! rg -F "決定論的 authority は permissions.deny / PreToolUse hook / GitHub mutation" scripts/claude-gpt/launch.sh
(no match; exit 0)

プロジェクト標準ゲート(初回実装時点で実行、docs/comment-only cleanup のため fix-delta では focused pytest + rg 静的チェックのみ再実行):

pnpm typecheck: pass
pnpm lint: pass (ESLint: No issues found)
pnpm test: pass (108 files, 1939 tests passed)
pnpm build: pass (vite build succeeded)
uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py: pass (24 passed)

Notes

IMPLEMENTATION_SCOPE_COVERAGE_V1:
  schema_version: "IMPLEMENTATION_SCOPE_COVERAGE_V1"
  issue_number: 2721
  issue_body_sha256: "sha256:5d62ed5929ef5cd0b021102f02b869cf08ff20f6130ebbafb06fab25a9de5bf0"
  normalized_scope_manifest_sha256: "sha256:e84e95d3d9d34de173895efb5ad105f1669fc1ac70a55ef2836ccdd68cce2fff"
  pr_head_sha: "2d85d5680040d33a94aebe45ccf71473197a7ce6"
  scope_manifest: {"acceptance_criteria": ["docs/dev/agent-skill-boundaries.md の Issue #2203 節が、Issue #2223 を OPEN な production-broker/enforcing-hook implementation follow-up として説明せず、Issue #2223 の CLOSED 状態・minimal-harness Owner Decision に整合した記述になっている", "docs/dev/agent-skill-boundaries.md の Issue #2203 節が、generated autoMode の構造を environment / allow / hard_deny として説明し、classifyAllShell が intentionally omitted であることを明示し、classifyAllShell: true を前提とした記述を含まない", "scripts/claude-gpt/launch.sh の readback 関連コメントが、generated autoMode の classifyAllShell キー省略、tri-state evidence(generated_key_present / direct_readback_available / effective_value)、および version support floor 単独・direct_readback_available=false 単独では fail-closed にしないことを説明し、「classifyAllShell 未有効化」という旧挙動前提の文言を含まない", "本 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 することで確認する"], "allowed_paths": ["docs/dev/agent-skill-boundaries.md", "scripts/claude-gpt/launch.sh"], "change_kind": "docs", "goal_ref": "PR #2717(Issue #2709)で classifyAllShell 無条件注入を除去した後に残った launch.sh / agent-skill-boundaries.md の stale prose を実装挙動に整合させる", "in_scope": ["docs/dev/agent-skill-boundaries.md の Issue #2203 節にある Issue #2223 の説明(OPEN な production-broker/enforcing-hook implementation follow-up)を、Issue #2223 の現状(CLOSED、minimal-harness Owner Decision)に合わせて書き換える", "docs/dev/agent-skill-boundaries.md の Issue #2203 節にある generated autoMode の説明(environment / allow / classifyAllShell: true)を、現在の実装(environment / allow / hard_deny、classifyAllShell キー省略)に合わせて書き換える", "scripts/claude-gpt/launch.sh の readback 関連コメントの記述更新(「未対応 version」「classifyAllShell 未有効化」で fail-closed するという旧挙動前提の説明を、classifyAllShell キー省略後の実際の fail-closed 条件・tri-state evidence 表現に書き換える)"], "schema_version": "IMPLEMENTATION_SCOPE_MANIFEST_V1"}

…le prose を修正する (#2721)

PR #2717(Issue #2709)で classifyAllShell 無条件注入を除去した後に残った
stale prose を実装挙動に整合させる。

- scripts/claude-gpt/launch.sh: readback コメントを、classifyAllShell キー
  省略・tri-state evidence(generated_key_present / direct_readback_available
  / effective_value)・version floor や direct_readback_available=false
  単独では block しないことを説明する内容に書き換え、詳細 fail-closed
  reason の再列挙を preflight.sh / lib.sh の V2 contract への参照に置換。
- docs/dev/agent-skill-boundaries.md: Issue #2203 節の generated autoMode
  説明を environment / allow / hard_deny(classifyAllShell は intentionally
  omitted)に更新し、Issue #2223 の記述を OPEN な production-broker
  follow-up 前提から CLOSED / minimal-harness Owner Decision 整合に更新。

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

Preview removed (PR #2743 closed).

@squne121

Copy link
Copy Markdown
Owner Author

pr-review-judge 判定

Verdict: APPROVE

Linked Issue #2721 の live 本文(Machine-Readable Contract / Allowed Paths / Acceptance Criteria / Verification Commands)と PR diff を照合した独立検証結果:

  • Diff scope: docs/dev/agent-skill-boundaries.md、scripts/claude-gpt/launch.sh の2ファイルのみ変更。Allowed Paths と完全一致(allowed_paths_review_gate.py: status: ok, violations: [])。
  • AC1〜AC3: Issue の grep 系 Verification Commands を git show <head_sha>:<path> の内容に対して独立実行し、PR 本文の自己申告結果と完全一致。
  • AC4(Runtime Verification Applicability: immediate): git archive <head_sha> のクリーンな tree で test_generated_settings_omits_classify_all_shell / test_hard_deny_preserves_defaults_and_adds_narrow_push_denials を独立実行し、両方 PASS。prose が主張する tri-state evidence フィールド(generated_key_present / direct_readback_available / effective_value)が scripts/claude-gpt/lib.sh に実在することも確認。
  • CI: 全 required checks が現在の head(同一 SHA)で SUCCESS(stale head なし)。
  • Safety Claim Matrix: N/A は妥当(safety-sensitive path に非該当、authorization boundary の挙動変更なし)。

Blockers

なし。

Warnings

  • Allowed Paths gate advisory: contract_source_kind/source_id_missing, expected_contract_fingerprint_missing(fail-closed 対象外)。
  • PR body の見出し文言はテンプレート参考文言と完全一致しないが、## 検証コマンドの実行結果 に AC1〜AC4 全件の具体的コマンド・出力・根拠があり、独立再実行で内容の正確性を確認済み。
verdict: APPROVE
reviewed_head_sha: "b4c5d7db399f94a6c3c3246015d94549dab3e036"
blockers: []
warnings:
  - "allowed_paths_gate advisory: contract_source_kind/source_id_missing, expected_contract_fingerprint_missing"
  - "PR body section headings differ from reference wording; functionally equivalent per-AC evidence independently verified as accurate"

live mergeability(control-plane が独立取得): mergeable: MERGEABLE, merge_state_status: CLEAN, head_sha 一致。route_loop_verdict_v2() により route: approved。

本 PR は Draft のままです。マージ判断は人間が行います。

@squne121

Copy link
Copy Markdown
Owner Author

結論

REQUEST_CHANGES です。ただし、修正は prose/comment-only のままで十分です。新しい security harness、runtime canary、schema、hook、broker は不要です。

PR #2743 の中心変更、つまり classifyAllShell の omission、environment / allow / hard_deny という generated keys、tri-state readback、version floor / direct_readback_available=false の non-blocking 化は、現行 Claude Code 仕様と PR #2717 の実装に整合しています。Claude Code 公式資料でも、デフォルトでは narrow な Bash/PowerShell allow が classifier より先に解決され、classifyAllShell: true の場合だけ全 shell command を classifier に通すとされています。また auto-mode defaults/config は environment / allow / soft_deny / hard_deny の4リストを表示します。$defaults を維持して built-in rules を継承している実装も妥当です。:chatgpt-content-reference{index="0"}

一方、「stale architecture prose を #2223 に同期する」というこのPR自身の目的がまだ完遂されていません。

  1. P1 — authoritative live readback を security authority に含めており、決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 の Owner Decision を誤って要約しています。
    PR head の agent-skill-boundaries.md L2808-L2813 は、server-side protection・repository permission・required CI・authoritative live readback を security authority の正本 としています。しかし Issue #2223 は明確に二分しています。security authority は GitHub Ruleset / branch protection、required CI、repository permission/credential であり、live readback は mutation correctness の evidence です。実際、実装: scripts/claude-gpt/launch.sh と docs/dev/agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する #2721 の refinement 指示でも「server-side protection / repository permission / required CI を security authority」「mutation correctness は native/client operation + authoritative live readback」と分離されています。
    Readback は mutation 後の不一致を検出できますが、mutation 自体を server-side で拒否する authority ではありません。ここは例えば
    security authority は server-side protection / repository permission / required CI とし、mutation correctness は native/client operation 前後の authoritative live readback で確認する
    と分離すべきです。GitHub の公式仕様でも Ruleset/branch protection は push・削除・force push・required status checks を実際に enforcement する仕組みです。:chatgpt-content-reference{index="1"}

  2. P1/P2 — 同じ 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203 節に旧「三層の決定論的 authorization boundary」が残り、新 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 prose と衝突しています。
    agent-skill-boundaries.md L2780-L2786 は依然として permissions.deny / PreToolUse hook / canary GitHubMutationBroker を「決定論的な authorization boundary」と説明しています。その約20行後では 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 minimal-harness decision を正本として説明しているため、読者には現在の authority が二系統あるように見えます。
    決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 は project PreToolUse hook、classifier、controlled executor 等を repository security authority として扱わないと明記し、実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する #2203/PR 実装: claude-gpt auto mode に canonical AGY/GitHub trust policy と live canary を追加する (#2203) #2214 の production-authority follow-up requirement を supersede しています。ここは削除する必要まではなく、historical / launcher-local defense-in-depth / canary-local transaction guard と位置付け直せば十分です。趣味開発としてはこちらの方が、仕組みを増やさず文書だけ正確になります。

  3. P2 — launch.sh にもう1つ、今回直すべき stale authority comment が残っています。
    今回修正された readback コメント L1067 以降は良いのですが、launch.sh L871-L874 にまだ
    決定論的 authority は permissions.deny / PreToolUse hook / GitHub mutation transaction broker
    が残っています。これは test_auto_mode_policy.py が現在の policy prose について「この一括り表現は残っていない」ことを確認している方向性とも食い違います。
    launch.sh は既に Allowed Paths 内なので、別 Issue に逃がす理由はありません。ここも autoMode は second-gate。repository security authority ではない 程度まで縮め、詳細は lib.sh / 決定: GitHub mutation を minimal harness に縮退し server-side protection と live readback を正本にする #2223 を参照させるのが一番 stale になりにくいです。

  4. P2 — 現 AC3/VC は文字列置換しか検出しないため、上の semantic defect を全て通過させています。
    現在の VC は「OPEN)で対応する が消えた」「Issue #2223(CLOSED が出た」ことしか検証していません。そのため、既存 pr-review-judge が APPROVE したのは理解できますが、CLOSED と書いてあるだけで Owner Decision の意味が逆でも合格する形です。新しいテスト harness は不要で、static check を1〜2本足せば足ります。例えば authoritative live readback を security authority という旧/誤表現と、launch.sh の 決定論的 authority は permissions.deny / PreToolUse hook / GitHub mutation が残っていないことを ! rg -F で確認する程度で十分です。

問題なしと判断した部分

classifyAllShell 関係の今回の修正自体には反対材料は見つかりませんでした。現行 Claude Code 公式仕様は、classifyAllShell omission の意味、true にした際の latency/coverage trade-off、v2.1.193 floor、auto-mode config/defaults の4 rule lists、$defaults の継承 semantics をすべて PR #2717 の前提どおり説明しています。:chatgpt-content-reference{index="2"}

また、repository の live state では main-direct-push-protection Ruleset が現在も active で、main に deletion / non-fast-forward 制約、required status checks(typecheck, lint, test, build, python-test)があり、bypass actor は空、current_user_can_bypass: never でした。PR head b4c5d7d... の GitHub Actions も取得できた jobs は成功しています。したがって、#2223 の minimal-harness 方針に合わせるために client-side security machinery を追加する必要はありません。GitHub Ruleset が server-side enforcement を担う設計は公式仕様とも一致します。:chatgpt-content-reference{index="3"}

推奨する着地点

コード挙動は一切変えず、3か所の prose を同期して静的 VC を少数追加するだけが適切です。特に最優先は「live readback = security authority」という誤分類の修正です。そのうえで docs L2780 と launch.sh L872 の旧三層 authority 表現を launcher-local defense-in-depth に格下げすれば、#2223、PR #2666、PR #2717、現行 lib.sh が同じ architecture を語る状態になります。

したがって、現 head のままでは merge せず、上記 prose 修正後に再レビューを推奨します。既存 CI・focused pytest は十分で、追加の runtime/security harness は品質向上よりワークフローコストの方が大きいです。

@squne121

Copy link
Copy Markdown
Owner Author

確認した現状では、impl-review-loop の入口は PR #2743 ではなく linked Issue #2721 にするのが正しいです。PR #2743 は existing_pr_resume として再利用し、指定コメント 5813337812 を human_context_comment_urls と最新 REQUEST_CHANGES の fix delta の根拠として渡します。現在の PR head は b4c5d7db399f94a6c3c3246015d94549dab3e036、Draft、mergeable_state: clean、既存 CI は成功、review thread はありません。

指定コメントの外部仕様部分も現行 Claude Code 公式資料と整合しています。narrow な Bash/PowerShell allow は通常 classifier より先に評価され、classifyAllShell: true で全 shell command を classifier に回し、同設定は v2.1.193+、auto-mode defaults/config は environment / allow / soft_deny / hard_deny を扱います。$defaults による built-in rule 継承も現行仕様です。:chatgpt-content-reference{index="0"} GitHub 側も ruleset / branch protection が force push、削除、required status checks 等を server-side で enforce する仕組みなので、今回新規 security harness を増やす必要はありません。:chatgpt-content-reference{index="1"}

推奨は次の4点です。

  1. 指定コメントの4 findings を root で正規化し、raw comment 本文を worker への命令として直結せず technical_recommendation / fix_delta に変換する。特に live readback = security authority の誤分類を最優先で直し、旧三層 authority prose と launch.sh の stale authority comment も、既存 Issue scope と Allowed Paths の範囲で同期する。
  2. Issue 実装: scripts/claude-gpt/launch.sh と docs/dev/agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する #2721 本文の AC/VC はこのループでは書き換えない。コメントで提案された ! rg -F 2本は supplemental verification として実行・PR evidence に残す。Issue body を変更すると contract body SHA と scope marker を再束縛する必要が生じ、prose-only fix に対して不要な refinement が増えます。
  3. implementation-worker → test-runner → pr-reviewer を直列で使い、各 SubAgent は Common Completion Protocol に従って final result を受領し、さらに list_agents で terminal completed を確認してから次へ進む。wait_agent の timeout/途中通知だけを完了扱いしない。
  4. REQUEST_CHANGES なら人間確認を挟まず次 iteration へ戻す。最終的に APPROVE + blockers=[] + current-head mergeability を満たしたところで止め、merge / auto-merge はしない。PR 実装: launch.sh / agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する #2743 を新規 PR に置き換えない。

そのまま auto mode の対話的 Claude Code に投入するなら、以下です。

PR #2743 の最新 OWNER review comment を fix_delta として、linked implementation Issue #2721 に対して .claude/skills/impl-review-loop/SKILL.md を実行してください。

対象:

  • Repository: squne121/loop-protocol
  • Linked Issue: https://github.com/squne121/loop-protocol/issues/2721
  • Existing PR: https://github.com/squne121/loop-protocol/pull/2743
  • Human context / latest REQUEST_CHANGES:
    https://github.com/squne121/loop-protocol/pull/2743#issuecomment-5813337812
  • 現時点で観測済みの PR branch:
    worktree-issue-2721-stale-prose-fix
  • 現時点で観測済みの head:
    b4c5d7db399f94a6c3c3246015d94549dab3e036

ただし上記 head/state を固定値として信用せず、開始時に live Issue / PR / comment / current head / mergeability / CI を再取得して最新状態へ rebind してください。

実行方針

impl-review-loop の canonical procedure を省略せず実行してください。

入力は概念的に以下です。

issue_number: 2721
max_iterations: 3
human_context_comment_urls:
  - https://github.com/squne121/loop-protocol/pull/2743#issuecomment-5813337812

PR #2743 は既存 open/draft PR なので、Evidence-Based Landing Disposition では原則 existing_pr_resume として扱い、新しい worktree / branch / PR を重複作成しないでください。

root-owned synchronous entry contract に従い、同一 continuous turn 内で capability preflight → live Issue fetch → current-run issue-contract-review → live re-fetch → routing → Step 1 dispatch まで行ってください。

人間承認待ちは不要です。現在 Claude Code は auto mode で起動済みです。permission mode と loop continuation policy を混同せず、REQUEST_CHANGES は自動的に次 iteration の Step 1 へ戻してください。

ただし以下は停止境界として維持してください。

  • actual Git conflict / DIRTY / canonical conflict hard-stop
  • Allowed Paths 外の tracked-file change が本当に必要
  • behavior / schema / fixed contract の変更が本当に必要
  • max_iterations 到達
  • canonical skill が定める genuinely unrecoverable runtime/delegation failure
  • live Issue/PR 上の明示的な人間の停止指示

SubAgent の human_review_required: true 自己申告だけでは停止しないでください。

human context の取り扱い

指定した comment 5813337812 は operator-selected human context として扱ってください。

raw comment text を implementation-worker の実行命令としてそのまま連結してはいけません。

root で live Issue #2721、PR diff、Issue #2223、関連実装、現行テストと突き合わせ、以下のような normalized technical_recommendation / fix_delta に変換してから Step 1 に渡してください。

fix_delta:
  source:
    pr: 2743
    comment_url: https://github.com/squne121/loop-protocol/pull/2743#issuecomment-5813337812
  intent: >
    PR #2743 を behavior/schema/security machinery の変更なしで
    Issue #2223 の minimal-harness Owner Decision と意味論的に整合させる。
  blockers:
    - >
      docs/dev/agent-skill-boundaries.md の Issue #2203 節で
      authoritative live readback を repository security authority に含めている
      誤分類を修正する。security authority は GitHub Ruleset /
      branch protection、required CI、repository permission/credential とし、
      mutation correctness evidence として native/client operation 前後の
      authoritative live readback を明確に分離する。
    - >
      同じ #2203 節に残る permissions.deny / PreToolUse hook /
      canary GitHubMutationBroker の「三層の決定論的 authorization boundary」
      という旧説明を、Issue #2223 が supersede した現在の architecture と
      衝突しないよう historical / launcher-local defense-in-depth /
      canary-local narrow transaction guard として再位置付けする。
      repository server-side security authority と表現しない。
    - >
      scripts/claude-gpt/launch.sh に残る
      「決定論的 authority は permissions.deny / PreToolUse hook /
      GitHub mutation transaction broker」という stale comment も、
      live Issue #2721 の goal / In Scope / Allowed Paths に収まると
      canonical scope evaluation が確認できる場合は同期する。
      autoMode は second gate であり repository security authority ではない、
      という短い記述を優先し、詳細 contract の重複再列挙を避ける。
    - >
      semantic regression を確認する supplemental static checks を実行する。
      新しい harness/test framework は追加しない。

tracked-file scope

live Issue #2721 の Allowed Paths を正本とし、tracked-file edit は以下に限定してください。

scripts/claude-gpt/launch.sh
docs/dev/agent-skill-boundaries.md

以下は禁止です。

  • launcher behavior の変更
  • generated settings / schema の変更
  • classifyAllShell の仕様変更
  • 新しい production broker
  • 新しい enforcing hook
  • 新しい runtime canary / harness
  • security framework / policy engine / permission ledger の追加
  • test file の変更
  • unrelated cleanup / refactor
  • duplicate PR / duplicate Issue の作成

特に趣味開発として、security/harness machinery を増やして workflow cost を上げる方向には進めないでください。今回の解決は prose/comment-only を維持してください。

supplemental semantic checks

Issue #2721 の canonical Verification Commands は live Issue 本文に記載された literal commands のまま扱い、Step 2 の VC adjudication を勝手に変更しないでください。

一方、指定 review comment の semantic defect が戻っていないことを確認するため、implementation verification または reviewer の independent check として、少なくとも以下と同等の static checks を追加実行してください。

! rg -F 'authoritative live readback を security authority' \
  docs/dev/agent-skill-boundaries.md

! rg -F '決定論的 authority は permissions.deny / PreToolUse hook / GitHub mutation' \
  scripts/claude-gpt/launch.sh

文言変更により exact string が適切でなくなった場合は、意図を維持した等価な semantic/static check にしてください。

これらを canonical Issue VC と偽装したり、Issue body をこの目的だけで自動 rewrite したりしないでください。supplemental reviewer evidence として扱ってください。

既存 AC4 focused pytest と Issue #2721 の全 Verification Commands は current head に対して再実行してください。

Step 1 — implementation-worker

implementation-worker SubAgent を canonical static call shape から materialize して起動してください。

を具体値として渡してください。

placeholder や raw human comment 本文を child message に渡さないでください。

既存 PR #2743 / branch を resume し、必要な prose 修正を commit / push してください。

必要なら既存 PR body も current implementation に合わせて更新してください。特に現在の PR Summary に残っている

authoritative live readback を security authority の正本

という要約を残さず、tracked files と同じ authority/correctness の分離に同期してください。

新しい commit 後は IMPLEMENTATION_SCOPE_COVERAGE_V1.pr_head_sha 等、head-bound な PR body evidence を current head に更新してください。

新規 PR は作成しないでください。

SubAgent completion

fire-and-forget にしないでください。

implementation-worker の作業を最後まで待ち、Common Completion Protocol に従って:

  1. child の final result を取得・消費する
  2. list_agents でその canonical task name が terminal completed であることを確認する
  3. final result と terminal completion の両方が揃ってから Step 2 へ進む

wait_agent の timeout、途中 mailbox update、steer acknowledgement は完了ではありません。

Issue #2721 の nested delegation stop condition を尊重し、root → first-level SubAgent の canonical delegation は使用してよいですが、child がさらに不要な nested SubAgent を増やさないでください。

Step 2 — test-runner

Step 1 の current head を live 再取得してから test-runner SubAgent を起動してください。

live Issue #2721 の AC と literal Verification Commands、current contract body SHA、current PR head SHA を具体値で渡してください。

test-runner は read-only verification owner とし、PR mutation をさせないでください。

canonical Issue VC をすべて実行し、current head-bound report を取得してください。

ここでも必ず:

  • final read-only report を取得
  • list_agents で terminal completed を確認

の両方を満たすまで Step 4 に進まないでください。

report head SHA、literal command hash、live Issue body SHA を独立照合し、VC_ADJUDICATION_RESULT_V1 を生成・LOOP_STATE に保存してください。

blocking == true なら Step 4 を起動せず canonical routing に従って Step 5 → 必要なら Step 1 へ戻してください。

Step 4 — pr-reviewer

Step 4 起動直前に current-head gate を必ず再評価してください。

以下が current live state と一致していることを確認してください。

  • PR head SHA
  • Issue body SHA256
  • Verification Command hashes
  • persisted VC_ADJUDICATION_RESULT_V1
  • blocking == false

stale なら pr-reviewer を起動せず Step 2 に戻してください。

gate が開いた場合のみ pr-reviewer SubAgent を起動し、.claude/skills/pr-review-judge/SKILL.md による independent review を行わせてください。

レビューでは最低限、

を照合してください。

pr-reviewer についても fire-and-forget にせず、final LOOP_VERDICT を取得した後、list_agents で terminal completed を確認してから Step 5 に進んでください。

Step 5 — autonomous routing

route_loop_verdict_v2() を正本として routing してください。

  • REQUEST_CHANGES → blockers を次 iteration の fix_delta にして Step 1
  • stale head → current head で re-review
  • BEHIND → canonical update-branch worker route → verification → review
  • APPROVE + blockers nonempty → inconsistent として継続
  • actual conflict → conflict hard-stop
  • max_iterations → stop and report
  • APPROVE + blockers == [] + current live mergeability が canonical approved condition を満たす → 完了

過去の comment 5813071893 の APPROVE を current authority として再利用しないでください。指定された後続 comment 5813337812 が REQUEST_CHANGES を出しており、その後 current head が変わっていないため、旧 APPROVE は今回の fix_delta を満たした証拠ではありません。

最終到達点

目標は PR #2743 を 人間がマージ判断できる直前の状態まで自律的に持っていくことです。

許可:

  • Allowed Paths 内の編集
  • commit
  • task branch への通常 push
  • existing PR body の同期
  • CI/readback
  • autonomous implementation / verification / review loop

禁止:

PR は Draft のままで構いません。canonical IMPL_REVIEW_LOOP_RESULT_V1.status: draft_pr_ready 相当まで到達したら停止し、人間の merge judgment に引き渡してください。

最後に、散文だけではなく以下を報告してください。

IMPL_REVIEW_LOOP_EXECUTION_SUMMARY:
  issue: 2721
  pr: 2743
  termination_reason: approved | max_iterations | human_escalation | conflict | other
  final_head_sha: "<sha>"
  iterations: <n>
  final_verdict: APPROVE | REQUEST_CHANGES | HUMAN_REVIEW_REQUIRED
  blockers: []
  warnings: []
  changed_paths: []
  canonical_vc_status: pass | fail
  supplemental_semantic_checks: pass | fail
  ci_status: pass | fail | pending
  mergeability: "<live value>"
  merged: false
  human_merge_decision_required: true

途中で私に承認を求めず、canonical hard-stop に到達しない限り SubAgent の完了を待ちながらループを継続してください。

この形なら、impl-review-loop の REQUEST_CHANGES → fix_delta → Step 1 という正規経路を使いつつ、指定コメントを Issue contract の無断書き換えに変換せず処理できます。

…ce の区別を prose 修正で明確化する

PR #2743 review comment(OWNER REQUEST_CHANGES)で指摘された誤分類を修正する。
docs/dev/agent-skill-boundaries.md の Issue #2203 節が「authoritative live
readback を security authority」と混同していた記述を、security authority
(server-side protection / repository permission / required CI)と mutation
correctness の evidence(native/client operation + authoritative live
readback)を分離する記述へ改める。同節の三層 authorization boundary の導入文も
repository の server-side security authority ではなく launcher-local な
defense-in-depth / canary-local narrow transaction guard として再フレーミング
する。scripts/claude-gpt/launch.sh のコメントも同様に autoMode を second gate
として説明し直す。launcher behavior / generated settings の実挙動は変更しない。

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@squne121
squne121 marked this pull request as ready for review September 24, 2026 12:51
@squne121
squne121 merged commit 843837e into main Sep 24, 2026
28 checks passed
@squne121
squne121 deleted the worktree-issue-2721-stale-prose-fix branch September 24, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

実装: scripts/claude-gpt/launch.sh と docs/dev/agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する

1 participant