Repository navigation
実装: launch.sh / agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する - #2743
Conversation
…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]>
Preview URLPreview removed (PR #2743 closed). |
pr-review-judge 判定Verdict: APPROVELinked Issue #2721 の live 本文(Machine-Readable Contract / Allowed Paths / Acceptance Criteria / Verification Commands)と PR diff を照合した独立検証結果:
Blockersなし。 Warnings
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 が独立取得): 本 PR は Draft のままです。マージ判断は人間が行います。 |
結論REQUEST_CHANGES です。ただし、修正は prose/comment-only のままで十分です。新しい security harness、runtime canary、schema、hook、broker は不要です。 PR #2743 の中心変更、つまり 一方、「stale architecture prose を #2223 に同期する」というこのPR自身の目的がまだ完遂されていません。
問題なしと判断した部分
また、repository の live state では 推奨する着地点コード挙動は一切変えず、3か所の prose を同期して静的 VC を少数追加するだけが適切です。特に最優先は「live readback = security authority」という誤分類の修正です。そのうえで docs L2780 と launch.sh L872 の旧三層 authority 表現を したがって、現 head のままでは merge せず、上記 prose 修正後に再レビューを推奨します。既存 CI・focused pytest は十分で、追加の runtime/security harness は品質向上よりワークフローコストの方が大きいです。 |
|
確認した現状では、 指定コメントの外部仕様部分も現行 Claude Code 公式資料と整合しています。narrow な Bash/PowerShell allow は通常 classifier より先に評価され、 推奨は次の4点です。
そのまま auto mode の対話的 Claude Code に投入するなら、以下です。 PR #2743 の最新 OWNER review comment を fix_delta として、linked implementation Issue #2721 に対して 対象:
ただし上記 head/state を固定値として信用せず、開始時に live Issue / PR / comment / current head / mergeability / CI を再取得して最新状態へ rebind してください。 実行方針
入力は概念的に以下です。 issue_number: 2721
max_iterations: 3
human_context_comment_urls:
- https://github.com/squne121/loop-protocol/pull/2743#issuecomment-5813337812PR #2743 は既存 open/draft PR なので、Evidence-Based Landing Disposition では原則 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 を混同せず、 ただし以下は停止境界として維持してください。
SubAgent の human context の取り扱い指定した comment raw comment text を root で live Issue #2721、PR diff、Issue #2223、関連実装、現行テストと突き合わせ、以下のような normalized 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 scopelive Issue #2721 の Allowed Paths を正本とし、tracked-file edit は以下に限定してください。 以下は禁止です。
特に趣味開発として、security/harness machinery を増やして workflow cost を上げる方向には進めないでください。今回の解決は prose/comment-only を維持してください。 supplemental semantic checksIssue #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
を具体値として渡してください。 placeholder や raw human comment 本文を child message に渡さないでください。 既存 PR #2743 / branch を resume し、必要な prose 修正を commit / push してください。 必要なら既存 PR body も current implementation に合わせて更新してください。特に現在の PR Summary に残っている
という要約を残さず、tracked files と同じ authority/correctness の分離に同期してください。 新しい commit 後は 新規 PR は作成しないでください。 SubAgent completionfire-and-forget にしないでください。
Issue #2721 の nested delegation stop condition を尊重し、root → first-level SubAgent の canonical delegation は使用してよいですが、child がさらに不要な nested SubAgent を増やさないでください。 Step 2 — test-runnerStep 1 の current head を live 再取得してから 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 を取得してください。 ここでも必ず:
の両方を満たすまで Step 4 に進まないでください。 report head SHA、literal command hash、live Issue body SHA を独立照合し、
Step 4 — pr-reviewerStep 4 起動直前に current-head gate を必ず再評価してください。 以下が current live state と一致していることを確認してください。
stale なら pr-reviewer を起動せず Step 2 に戻してください。 gate が開いた場合のみ レビューでは最低限、
を照合してください。 pr-reviewer についても fire-and-forget にせず、final Step 5 — autonomous routing
過去の comment 最終到達点目標は PR #2743 を 人間がマージ判断できる直前の状態まで自律的に持っていくことです。 許可:
禁止:
PR は Draft のままで構いません。canonical 最後に、散文だけではなく以下を報告してください。 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 の完了を待ちながらループを継続してください。 この形なら、 |
…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]>
Summary
scripts/claude-gpt/launch.shの readback 直前コメントを、PR 実装: Claude-GPT launcher の classifyAllShell を native default と同様に省略する #2717(Issue 実装: Claude-GPT launcher の classifyAllShell を native default と同様に省略する #2709)で確定したclassifyAllShellキー省略後の実挙動(tri-state evidence、version floor /direct_readback_available=false単独では block しない)に合わせて書き換え、詳細 fail-closed reason の再列挙をpreflight.sh/lib.shの V2 contract への参照に置換した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)に更新したauthoritative live readback を security authority の正本とするという誤分類の表現を除去した(PR review comment 実装: launch.sh / agent-skill-boundaries.md の classifyAllShell 関連 stale prose を修正する #2743 (comment) の OWNER REQUEST_CHANGES 対応)permissions.deny/PreToolUsehook /GitHubMutationBroker)の導入文も、repository の server-side security authority としてではなく、launcher-local な defense-in-depth / canary Issue lifecycle 専用の narrow な transaction guard として再フレーミングしたscripts/claude-gpt/launch.shのautoMode注入直前コメントも、決定論的 authority は permissions.deny / PreToolUse hook / GitHub mutation transaction brokerという表現を除去し、autoModeは second gate(判断補助)であり repository security authority ではないと明示する表現へ更新したChecks
pnpm typecheckpnpm lintpnpm testpnpm buildSchema Change Applicability
not_schema_changeSchema 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適用後の再実行)。補足的な静的チェック(OWNER review comment 由来。Issue の canonical VC ではなく、fix-delta の意味的欠陥修正を確認するための追加証跡):
プロジェクト標準ゲート(初回実装時点で実行、docs/comment-only cleanup のため fix-delta では focused pytest + rg 静的チェックのみ再実行):
Notes
scripts/claude-gpt/launch.shとdocs/dev/agent-skill-boundaries.mdの stale prose cleanup のみ(Allowed Paths 内)。behavior / schema / launcher-generated settings の変更なしimmediate(docs/dev/extension-surface-runtime-policy.yamlのclaude-gpt-lifecycle-invocation-changerisk-trigger に該当)だが、新規 runtime harness は追加せず既存 focused pytest regression(AC4)を baseline 確認として用いているscripts/claude-gpt/launch.shの対応するコメントも同様に修正した。launcher behavior / generated settings の実装変更は行っていない