Repository navigation
fix: preflight repair hint と hook docs を整合させる (#1395) - #1399
Conversation
issue-refinement-loop canonical runtime の repair hint を exact executor に揃え、Claude/Codex parity test に rtk allow/block matrix を追加した。あわせて gh issue edit/comment の block 方針に合わせて hook SSOT 文言を修正した。 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Preview URL✅ verified live assets: https://squne121.github.io/loop-protocol/pr-1399/ The preview will be removed when this PR is closed. |
検証結果レポートIssue #1395 の Verification Commands は current head TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: BEHIND
branch_behind_main: true
baseline_only: false
verification_commands_pass: 9
verification_commands_fail: 0
verification_skipped_count: 0
head_sha: d0824c043b95d194c828d555f0c2286e3b831ed1
pr_number: 1399
issue_number: 1395
runtime_ac_results: [] |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, merge_state_status=BEHIND
Evidence Check
- AC coverage: PR本文の達成状況・検証・Schema Change Applicability・Safety Claim Matrix が #1395 の AC1-AC9 と整合しています。
- Allowed Paths: PR files API の changed files 5件はいずれも linked issue #1395 の Allowed Paths 内です。
- CI Verification: TEST_VERDICT_MACHINE v1 は current head
d0824c043b95d194c828d555f0c2286e3b831ed1で PASS 9/9、verification_skipped_count: 0です。CI_VERDICT_SUMMARY_V1 もall_passでした。 - 検証コマンド結果: PR本文の Verification Commands と TEST_VERDICT_MACHINE が一致し、fallback / SKIP / stale head はありません。
Blockers
- なし
Non-blockers
merge_state_status=BEHINDのため、merge-ready 化には branch update が必要です。
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "d0824c043b95d194c828d555f0c2286e3b831ed1"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "BEHIND"
blockers: []
required_auto_actions:
- kind: update_branch
executor: implementation-worker
skill: implement-issue.update_branch
blocking_merge_ready: true
mechanical: true
expected_head_sha: "d0824c043b95d194c828d555f0c2286e3b831ed1"
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
changed_files_source: github_pull_request_files_api_with_previous_filename
changed_files:
- .claude/hooks/tests/test_local_main_branch_guard.py
- docs/dev/agent-skill-boundaries.md
- docs/dev/hook-boundaries.md
- scripts/agent-guards/local_main_branch_guard.py
- tests/codex/test_local_main_branch_guard.py
allowed_paths_gate_source: review_subagent
検証結果レポートIssue #1395 の Verification Commands は current head TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: CLEAN
branch_behind_main: false
baseline_only: false
verification_commands_pass: 9
verification_commands_fail: 0
verification_skipped_count: 0
head_sha: c6cc85ae66e641a2e5b51892f9b55f192373c4d2
pr_number: 1399
issue_number: 1395
runtime_ac_results: [] |
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "c6cc85ae66e641a2e5b51892f9b55f192373c4d2"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers: []
required_auto_actions:
- kind: update_pr_body_hygiene
executor: implementation-worker
skill: open-pr.update_pr
blocking_merge_ready: true
mechanical: true
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
changed_files_source: git_diff_name_status_find_renames_z
changed_files:
- .claude/hooks/tests/test_local_main_branch_guard.py
- docs/dev/agent-skill-boundaries.md
- docs/dev/hook-boundaries.md
- scripts/agent-guards/local_main_branch_guard.py
- tests/codex/test_local_main_branch_guard.py
allowed_paths_gate_source: review_subagent
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, merge_state_status=CLEAN
Evidence Check
- AC coverage: PR本文は linked issue #1395 の outcome / AC / scope と整合し、PR body validator も current body で pass です。
- Allowed Paths: changed files 5件はいずれも #1395 の Allowed Paths 内です。
- CI Verification: TEST_VERDICT_MACHINE v1 は current head
c6cc85ae66e641a2e5b51892f9b55f192373c4d2で PASS 9/9、verification_skipped_count: 0です。live required checks も Passed 14 / Failed 0 でした。 - 検証コマンド結果: PR本文の Verification Commands と TEST_VERDICT_MACHINE が一致し、fallback / SKIP / stale head はありません。
Blockers
- なし
Non-blockers
- Draft 状態ですが、skill 契約上は merge blocker ではありません。
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "c6cc85ae66e641a2e5b51892f9b55f192373c4d2"
merge_ready: true
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
changed_files_source: github_pull_request_files_api_with_previous_filename
changed_files:
- .claude/hooks/tests/test_local_main_branch_guard.py
- docs/dev/agent-skill-boundaries.md
- docs/dev/hook-boundaries.md
- scripts/agent-guards/local_main_branch_guard.py
- tests/codex/test_local_main_branch_guard.py
allowed_paths_gate_source: review_subagent
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "c6cc85ae66e641a2e5b51892f9b55f192373c4d2"
merge_ready: true
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "UNSTABLE"
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
changed_files_source: github_pull_request_files_api_with_previous_filename
changed_files:
- .claude/hooks/tests/test_local_main_branch_guard.py
- docs/dev/agent-skill-boundaries.md
- docs/dev/hook-boundaries.md
- scripts/agent-guards/local_main_branch_guard.py
- tests/codex/test_local_main_branch_guard.py
allowed_paths_gate_source: review_subagent
敵対的レビュー結果: REQUEST_CHANGESGitHub には投稿していません。ローカルなレビュー結果です。 PR #1399 は、#1395 のスコープどおり「direct skill script を許可せず、 ただし、1点は merge blocker と見ます。 Blocker:
|
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, merge_state_status=CLEAN
Evidence Check
- AC6 drift: 解消。
gh api -f body=.../ GraphQL mutation /--method POSTはgithub_api_command、rawgh issue commentはgh_mutation_deniedとして docs/tests/implementation が一致。 - Allowed Paths: 変更ファイル 5 件は #1395 の Allowed Paths 内。
- CI Verification: current head
548a586282307908903b917c49102f20d267d4e1でCI_VERDICT_SUMMARY_V1.status=all_pass。 - 検証コマンド結果: current head の TEST_VERDICT_MACHINE は未追記だが、CI scoped evidence は current head に一致。
Blockers
- なし
Non-blockers
- PR 本文に
## 受け入れ条件の達成状況/## 検証コマンド結果/## Allowed Paths 遵守/## Runtime Verification Evidenceがなく、review skill の body hygiene を満たしていない。
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "548a586282307908903b917c49102f20d267d4e1"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers: []
required_auto_actions:
- kind: update_pr_body_hygiene
executor: implementation-worker
skill: open-pr.update_pr
blocking_merge_ready: true
mechanical: true
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
changed_files_source: git_diff_name_status_find_renames_z
changed_files:
- .claude/hooks/tests/test_local_main_branch_guard.py
- docs/dev/agent-skill-boundaries.md
- docs/dev/hook-boundaries.md
- scripts/agent-guards/local_main_branch_guard.py
- tests/codex/test_local_main_branch_guard.py
allowed_paths_gate_source: review_subagent
impl-review-loop status: blocked by remote head driftPR #1399 の current remote head が IMPL_REVIEW_LOOP_BLOCKER_V1:
status: blocked
issue_number: 1395
pr_number: 1399
intended_verified_head: "548a586282307908903b917c49102f20d267d4e1"
current_remote_head: "a8e7e3eb20ee24694387c4233e68a04a7f98b56b"
blocker_kind: "remote_head_scope_contamination"
reason: "current remote head includes unrelated #1381 / delegation-audit changes outside #1395 Allowed Paths"
unrelated_commit:
sha: "726832c5"
subject: "実装: agent delegation 実行の監査ログを専用 schema (delegation_audit_v1) で導入する (#1381)"
affected_paths:
- ".claude/skills/gemini-cli-headless-delegation/references/runtime-portability.md"
- ".claude/skills/gemini-cli-headless-delegation/scripts/run_gemini_headless.py"
- ".claude/skills/gemini-cli-headless-delegation/tests/test_agy_provider.py"
- ".claude/skills/gemini-cli-headless-delegation/tests/test_delegation_audit_schema.py"
- "docs/dev/schema-governance.md"
safe_state_before_drift:
head: "548a586282307908903b917c49102f20d267d4e1"
test_verdict: PASS
required_checks: pass
reviewer_comment_ac6_drift_resolved: true
required_human_decision:
- "PR branch を #1395 専用 head へ戻す"
- "または #1381 混入を別 PR / 別 branch へ退避する"こちらでは remote branch の既存変更を消す force update / reset は実行しません。#1395 の merge-ready 判定は、PR head が #1395 Allowed Paths のみに戻った後に再開できます。 |
current-head verification: PASSPR #1399 の current head TEST_VERDICT_MACHINE_V1:
result: PASS
mergeable: MERGEABLE
merge_state_status: CLEAN
branch_behind_main: false
baseline_only: false
verification_commands_pass: 9
verification_commands_fail: 0
verification_skipped_count: 0
head_sha: a8e7e3eb20ee24694387c4233e68a04a7f98b56b
pr_number: 1399
issue_number: 1395
ci_verdict_summary:
status: all_pass
failed_checks: []
pending_checks: []
stale_checks: []補足:
|
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, merge_state_status=CLEAN
Evidence Check
- AC coverage: PR body の AC1-AC9 達成状況、Runtime Verification Evidence、Safety Claim Matrix を current head a8e7e3e で確認
- Allowed Paths: linked issue contract snapshot と allowed_paths_review_gate.py の再計算で status=ok
- CI Verification: ci_verdict_summary.py --expected-head-sha a8e7e3e => status=all_pass、rtk gh pr checks => Passed 13 / Failed 0
- 検証コマンド結果: current-head TEST_VERDICT_MACHINE_V1 PASS、verification_commands_pass=9、verification_commands_fail=0、verification_skipped_count=0
Blockers
- なし
Non-blockers
- なし
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "a8e7e3eb20ee24694387c4233e68a04a7f98b56b"
merge_ready: true
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: "ok"
changed_files_source: "git_diff_name_status_find_renames_z"
changed_files:
- ".claude/hooks/tests/test_local_main_branch_guard.py"
- "docs/dev/agent-skill-boundaries.md"
- "docs/dev/hook-boundaries.md"
- "scripts/agent-guards/local_main_branch_guard.py"
- "tests/codex/test_local_main_branch_guard.py"
allowed_paths_gate_source: "review_subagent"
概要
この PR は、issue-refinement-loop の canonical preflight が direct script repair へ誤誘導しないように、hook hint・tests・SSOT を同時に揃える変更です。
issue_refinement_directの block 時に、repair hint が direct script ではなく exactskill_runtime_exec.py --command-id preflight.runを案内するようにしました。rtkwrapper の exact allow と noncanonical / mutating wrapper block を追加しました。docs/dev/hook-boundaries.mdとdocs/dev/agent-skill-boundaries.mdの rawgh issue edit/commentと mutatinggh api分類 drift を現行 deny 方針へ揃えました。a8e7e3eb20ee24694387c4233e68a04a7f98b56bへ fast-forward 済みです。受け入れ条件の達成状況
skill_runtime_executor_commandです。rtkwrapper は exact inner executor のみ allow し、それ以外の wrapper / mutation は block します。gh issue edit、gh issue comment、mutatinggh apiは引き続き block します。検証コマンド結果
current head は
a8e7e3eb20ee24694387c4233e68a04a7f98b56bです。Issue contract の 9 個の Verification Commands はすべて PASS し、reviewer 指摘の追加回帰も PASS しました。TEST_VERDICT_MACHINE_V1 の結果は PASS です。mergeable は MERGEABLE、merge_state_status は CLEAN、branch_behind_main は false、baseline_only は false です。verification_commands_pass は 9、verification_commands_fail は 0、verification_skipped_count は 0 です。head_sha は
a8e7e3eb20ee24694387c4233e68a04a7f98b56b、pr_number は 1399、issue_number は 1395、reviewer_comment_url は #1399 (comment) です。検証では、Claude hook 側と Codex hook 側の
skill_runtime_executor、direct preflight script deny、rtkwrapper deny、rawgh issue editdeny、repair hint の exact executor 案内、docs のgh issue edit分類を確認しました。追加で、gh api -f body=...、gh api graphql -f ...、gh api --method POST ...、gh issue comment ... --body ...の negative variants を Claude/Codex tests と docs に固定しました。Allowed Paths 遵守(許可パス確認)
変更は次の Allowed Paths 内だけです。Allowed Paths 外の実装変更はありません。
.claude/hooks/tests/test_local_main_branch_guard.pyは Claude hook 側の回帰テストです。docs/dev/agent-skill-boundaries.mdは agent skill 境界の SSOT 文書です。docs/dev/hook-boundaries.mdは hook 境界の SSOT 文書です。scripts/agent-guards/local_main_branch_guard.pyは root default branch guard の実装です。tests/codex/test_local_main_branch_guard.pyは Codex hook 側の回帰テストです。Safety Claim Matrix(安全性主張)
rtkwrapper は exact inner executor だけを allow し、それ以外の wrapper / mutation は block するgh issue edit/commentと mutatinggh apideny に整合しているdocs/dev/hook-boundaries.mdとdocs/dev/agent-skill-boundaries.mdRuntime Verification Evidence(実行時検証証跡)
RUNTIME_VERIFICATION_EVIDENCE_V1 として、decision は immediate、head_sha は
a8e7e3eb20ee24694387c4233e68a04a7f98b56b、required_checks は pass です。CI required checks は lint / build / typecheck / test / python-test / validate-generated-artifact がすべて pass です。local verification は verification_commands_pass が 9、verification_commands_fail が 0、verification_skipped_count が 0 です。reviewer fix は source comment #1399 (comment) に対して ac6_drift_resolved が true、docs_tests_implementation_aligned が true です。ci_verdict_summary.pyは expected heada8e7e3eb20ee24694387c4233e68a04a7f98b56bでstatus: all_passです。スキーマ変更の該当性
この変更は runtime policy と docs/test の整合化に限られ、schema 互換面の変更はありません。
補足