Repository navigation
fix(ci): review shadow と再実行を provenance 集約する (#1456) - #1505
Conversation
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: BEHIND
branch_behind_main: true
baseline_only: false
verification_commands_pass: 1
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results:
- ac: AC1
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; review-event skipped shadow の限定除外を検証"
- ac: AC2
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; success peer がない skipped は fail-closed を検証"
- ac: AC3
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; stale success peer は fail-closed を検証"
- ac: AC4
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; event 欠落は fail-closed を検証"
- ac: AC5
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; 入力順序非依存を検証"
- ac: AC6
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; check-name 曖昧性は gh_error を検証"
- ac: AC7
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; 公開 schema 不変を検証"
- ac: AC8
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; 同一 event 再実行は latest 採用を検証"
- ac: AC9
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; cross-event shadow 保持を検証"
- ac: AC10
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; timestamp 不明は fail-closed を検証"
- ac: AC11
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; event 不明は fail-closed を検証"
- ac: AC12
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; required job の null skipped は failed を検証"
- ac: AC13
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "102 passed; 許可済み review shadow 以外は除外しないことを検証"CI_TEST_PERFORMANCE_DECISION_V1:
schema: CI_TEST_PERFORMANCE_DECISION_V1
issue_number: 1456
pr_number: 1505
decision_scope: review_only
changed_paths:
- .claude/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py
lane_classification:
fast_static:
applicable: false
evidence: ["Python の CI verdict parser/test のみ"]
required_commands: []
python_unit:
applicable: true
evidence: ["scripts/**/*.py の変更"]
required_commands: ["uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"]
contract_artifact:
applicable: true
evidence: ["CI verdict 公開 schema と fail-closed 判定契約の変更"]
required_commands: ["uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"]
integration:
applicable: false
evidence: ["Vite/E2E 対象外"]
required_commands: []
baseline_inputs:
ci_runtime_baseline_v1_available: false
run_count: 0
p50_p95_ready: false
artifact_consistency:
ci_test_selection_v1_checked: false
missing_pytest_args: []
risk_flags: []
reviewer_gate:
approve_allowed: true
required_evidence: [TEST_VERDICT_MACHINE, CI_CHECK_RUN_SCOPED]
approve_denied_reason: null
follow_up_required: []対象HEAD: |
Preview URLPreview removed (PR #1505 closed). |
squne121
left a comment
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES
Mergeability
- mergeable=MERGEABLE, merge_state_status=BEHIND
Evidence Check
- AC coverage: PR 本文が AC1–AC13 の根拠を記載し、TEST_VERDICT_MACHINE は対象 HEAD で 111 passed・skip 0 を報告。
- Allowed Paths: GitHub PR files API(rename provenance 付き)で検出した 2 ファイルは、#1456 の現行 Allowed Paths 内。
- CI Verification: required head-scoped wait は failed。
python-testの Ruff check が E501 2件で失敗(test_ci_verdict_summary.py:1342, 1387)。ci_verdict_summary.py --expected-head-shaも status=failed / failed_checks=[python-test]。 - 検証コマンド結果: ローカル機械テスト証跡は PASS だが、current HEAD の required CI failure により merge 不可。
Blockers
- python-test: Ruff E501(今回追加したテストの 2 行が 120 文字超過)。修正・push 後に current HEAD で required CI wait と CI verdict を再実行すること。
Non-blockers
- BEHIND は機械的な update branch 対象。CI 修正後、現在の HEAD を expected_head_sha として実行すること。
LOOP_VERDICT_V2:
verdict: REQUEST_CHANGES
reviewed_head_sha: "d50c3eabd84413e368a4ab822024e7c1aa183550"
merge_ready: false
mergeability:
mergeable: MERGEABLE
merge_state_status: BEHIND
blockers:
- "required CI python-test failed: Ruff E501 at test_ci_verdict_summary.py:1342 and :1387"
required_auto_actions:
- kind: update_branch
executor: implementation-worker
skill: implement-issue.update_branch
blocking_merge_ready: true
mechanical: true
expected_head_sha: "d50c3eabd84413e368a4ab822024e7c1aa183550"
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/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py
allowed_paths_gate_source: review_subagentCI_TEST_PERFORMANCE_DECISION_V1:
schema: CI_TEST_PERFORMANCE_DECISION_V1
issue_number: 1456
pr_number: 1505
decision_scope: review_only
changed_paths:
- .claude/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py
lane_classification:
fast_static: {applicable: false, evidence: ["workflow・依存関係は未変更"], required_commands: []}
python_unit: {applicable: true, evidence: ["pytest fixture の変更"], required_commands: ["uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"]}
contract_artifact: {applicable: true, evidence: ["CI verdict 集約スクリプトの変更"], required_commands: ["required CI python-test"]}
integration: {applicable: false, evidence: ["workflow・Node・E2E・build は未変更"], required_commands: []}
baseline_inputs: {ci_runtime_baseline_v1_available: false, run_count: 0, p50_p95_ready: false}
artifact_consistency: {ci_test_selection_v1_checked: true, missing_pytest_args: []}
risk_flags: []
reviewer_gate:
approve_allowed: false
required_evidence: [TEST_VERDICT_MACHINE, CI_CHECK_RUN_SCOPED]
approve_denied_reason: "current HEAD の required CI python-test が失敗"
follow_up_required: []
TEST_VERDICT:
result: PARTIAL
head_sha: ea0e61a1cb99591dc4b196fb866442d26e71de98
mergeable: MERGEABLE
merge_state_status: BLOCKED
branch_behind_main: false
baseline_only: false
verification_commands_pass: 1
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results:
- ac: AC1-AC13
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "111 passed; PR current head を実行前後で ea0e61a1cb99591dc4b196fb866442d26e71de98 と照合済み"VC_ADJUDICATION_RESULT_V1:
overall_status: indeterminate
blocking: true
rerun_required: true
reason_code: required_ci_pending
source_integrity:
pr_head_sha: ea0e61a1cb99591dc4b196fb866442d26e71de98
current_vc_evidence_fresh: true
required_ci_complete: false
evidence_refs:
- kind: verification_command
command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"
result: "111 passed"
- kind: github_actions
pending_check: python-testローカルVCは成功しました。GitHub Actions の |
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 本文は AC1–AC13 の個別根拠を記載し、current HEAD の TEST_VERDICT_MACHINE は 111 passed・skip 0 を示す。
- Allowed Paths: linked Issue snapshot(body sha256=6456ed5c44105a93e333cd60bba963b828d5b537b061a2c389335beb2a62bbb5)に対する rename-aware 再計算は ok。変更は許可済み 2 ファイルのみ。
- CI Verification:
ci_verdict_summary.py --expected-head-sha ea0e61a1cb99591dc4b196fb866442d26e71de98は status=all_pass、failed/pending/stale はいずれも空。 - Schema / Safety:
not_schema_change、Safety Claim Matrix、Closes #1456 を確認。公開 V1 のキー集合・型は回帰テストで維持。
Blockers
- なし
Non-blockers
- Draft 状態は本ループの merge_ready 判定を妨げない。
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "ea0e61a1cb99591dc4b196fb866442d26e71de98"
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/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py
allowed_paths_gate_source: review_subagent
TEST_VERDICT:
result: PASS
head_sha: 9e7a836606d0fc68780587085a7baeb72f6cfecb
reviewed_head_sha: 9e7a836606d0fc68780587085a7baeb72f6cfecb
mergeable: MERGEABLE
merge_state_status: CLEAN
branch_behind_main: false
baseline_only: false
verification_commands_pass: 13
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []検証結果
VC_ADJUDICATION_RESULT_V1:
schema: VC_ADJUDICATION_RESULT_V1
schema_version: 1
overall_status: pass
blocking: false
rerun_required: false
reviewed_head_sha: 9e7a836606d0fc68780587085a7baeb72f6cfecb
per_ac: AC1-AC13=pass
reason_code: expected_pass_still_passes
evidence_complete: true
evidence_fresh: true
artifact_digest: sha256:bbcfef1939257c807fffaf5c0daed44e7ed3fae4c8aea529476baf279689cd9bCI_TEST_PERFORMANCE_DECISION_V1:
schema: CI_TEST_PERFORMANCE_DECISION_V1
issue_number: 1456
pr_number: 1505
decision_scope: review_only
changed_paths:
- .claude/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py
lane_classification:
fast_static: {applicable: false, evidence: ["workflow・依存関係・lint設定は未変更"]}
python_unit: {applicable: false, evidence: ["対象pytestはfocused verificationで実施、python-test CIもpass"]}
contract_artifact: {applicable: true, evidence: ["CI verdict集約スクリプトと回帰テストを更新"], required_commands: ["uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v"]}
integration: {applicable: false, evidence: ["workflow・Node・E2E・buildの変更なし"]}
baseline_inputs: {ci_runtime_baseline_v1_available: false, run_count: 0, p50_p95_ready: false}
artifact_consistency:
ci_test_selection_v1_checked: true
missing_pytest_args: []
python_test_uncovered_changed_test_files: []
node_backed_uncovered_changed_test_files: []
risk_flags: [baseline_insufficient]
reviewer_gate:
approve_allowed: true
required_evidence: [TEST_VERDICT_MACHINE, CI_CHECK_RUN_SCOPED]
follow_up_required: []Runtime Verification Applicability は |
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT_V2
verdict: REQUEST_CHANGES
reviewed_head_sha: "9e7a836606d0fc68780587085a7baeb72f6cfecb"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers:
- "Safety Claim Matrix の Not controlled が非空だが、Follow-up は Closes によりマージ時に閉じる #1456 のみである。マージ後も open な follow-up issue を根拠付きで指定するか、未統制事項と主張を整合させる必要がある。"
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/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py
allowed_paths_gate_source: review_subagent
技術ゲートは通過しました。TEST_VERDICT_MACHINE は現行 HEAD で AC1-AC13 を 112 passed、skipped 0 と記録し、CI_VERDICT_SUMMARY_V1 も current head で all_pass、Allowed Paths gate は変更2ファイル・違反0です。
ただし、PR 本文は必須の 、、 見出しを満たしていないため、上記の機械的 hygiene 更新が必要です。Safety Claim Matrix の blocker 解消後、現行 HEAD のまま再レビューできます。
判定: REQUEST_CHANGES現在のHEADは Blocker 1 — 再実行dedupの結果がGitHub CLIのバージョンに依存する
しかし、現行のGitHub CLI実装では、
つまり、PRのテストが直接投入している「同一eventの古いFAILUREと新しいSUCCESS」という入力は、現行CLI経由ではスクリプトへ到達しません。また、古いCLIで複数行が届く場合は本PRの これはCIゲートとして決定論的ではありません。 必要な修正
Blocker 2 — 「真の再実行」のidentityにhead SHAが含まれていない関連Issueは、同一head SHA上の再実行をlatest優先にする契約です。#1341の再現事例も明示的に「同一head_sha」とされています。 一方、実装のgroup keyは次だけです。 (workflow, name, event)
このため、同一tupleに次の二行が混在した場合、timestampだけで片方が消えます。
たとえば「current HEADのSUCCESSよりstale FAILUREの完了時刻が新しい」場合、current成功証拠が消されて 必要な修正 key = (
workflow,
name,
event,
_entry_run_head_sha(entry),
)ただし、head SHA欠落またはrun detail未完了の場合はdedupせず、既存のfail-closed判定へ残すべきです。 最低限、以下の回帰テストが必要です。
High — AC5・AC6のnegative coverageが不足している追加テストは、次を確認しています。
一方、IssueのAC5が要求するwrong workflow / wrong nameのreview-shadow negative testと、AC6の「shadowまたはpeerのrun-detail取得失敗」を直接再現するテストは確認できません。順序反転もpeer-shadowペアだけで、再実行三行の順序反転は未検証です。 追加すべきケースは次です。
Medium — 全checkに対するN+1の
|
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 本文の
受け入れ条件の達成状況は AC1–AC13 を根拠付きで網羅しています。 - 検証コマンド結果: TEST_VERDICT_MACHINE(現行 HEAD
9e7a836606d0fc68780587085a7baeb72f6cfecb)は 112 passed、verification_skipped_count=0、AC1–AC13=PASS です。 - CI Verification: 現行 HEAD の required CI はすべて PASS で、head-scoped CI 証跡は all_pass です。
- Allowed Paths: GitHub PR files API の rename provenance 付き結果は、#1456 の許可済み 2 ファイルだけです。
- Schema / Safety:
not_schema_changeと公開 V1 schema 回帰を確認しました。Not controlled の外部 GitHub provenance 境界は OPEN の #1510 が引き受けています。
Blockers
- なし
Non-blockers
- Draft 状態は loop の merge-ready 判定を妨げません。
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "9e7a836606d0fc68780587085a7baeb72f6cfecb"
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/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py
allowed_paths_gate_source: review_subagent
current-head 検証
ただしVC対象HEADとPR current HEADが一致せず、current required CIのpython-testもFAILのため、総合結果はFAILです。
|
TEST_VERDICT:
result: FAIL
mergeable: MERGEABLE
merge_state_status: BLOCKED
branch_behind_main: false
baseline_only: false
verification_commands_pass: 1
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []current-head 検証
ただしVC対象HEADとPR current HEADが一致せず、current required CIのpython-testもFAILのため、総合結果はFAILです。
VC_ADJUDICATION_RESULT_V1:
expected_head_sha: 30891c46423727ee60b9780926089659f6d2c465
live_head_sha: 38f4be0b258975323dd1037f4824a5edef88f5d3
live_head_match: false
local_verification:
command: uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v
result: PASS
passed: 126
current_ci:
python_test: FAIL
root_cause: Ruff E501 in added fixture lines
log_url: https://github.com/squne121/loop-protocol/actions/runs/29327216991/job/87066331959
decision: FAIL_CLOSED
blocking: true |
TEST_VERDICT:
result: FAIL
head_sha: b252a848e0bc9eb762366a456c69c19f694c5f82
reviewed_head_sha: b252a848e0bc9eb762366a456c69c19f694c5f82
mergeable: MERGEABLE
merge_state_status: BLOCKED
branch_behind_main: false
baseline_only: false
verification_commands_pass: 13
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []検証結果
VC_ADJUDICATION_RESULT_V1:
schema: VC_ADJUDICATION_RESULT_V1
schema_version: 1
overall_status: pass
blocking: false
rerun_required: false
reviewed_head_sha: b252a848e0bc9eb762366a456c69c19f694c5f82
per_ac: AC1-AC13=pass
reason_code: expected_pass_still_passes
evidence_complete: true
evidence_fresh: true
ci_status_at_observation:
python-test: IN_PROGRESS
e2e: IN_PROGRESS
deploy-pr: IN_PROGRESSRuntime Verification Applicability は |
squne121
left a comment
There was a problem hiding this comment.
判定: REQUEST_CHANGES
Mergeability
- mergeable=MERGEABLE, merge_state_status=BLOCKED
Evidence Check
- 対象 HEAD
b252a848e0bc9eb762366a456c69c19f694c5f82の TEST_VERDICT_MACHINE は AC1–AC13 の逐語 VC を126 passed、対象 Ruff を成功、skip 0 と記録しています。 - Blocker 1・2: current diff は GraphQL
statusCheckRollupから CheckRun ID/event/head SHA/timestamp を直接取得し、同一 event・同一 head SHA だけを canonicalize します。detail 欠落、event/head SHA/timestamp 不明、stale run は dedupせず fail-closedです。実 API形 golden と stale-run、順序反転のnegative回帰も確認しました。 - Allowed Paths: snapshot comment
#issuecomment-4962684956に対する GitHub PR files API(rename provenance付き)の再計算はok。変更2ファイルは契約内です。 - Schema / Safety:
not_schema_change、Schema Consumer Inventory、Safety Claim Matrix、Closes #1456を確認しました。 - CI Verification: required head-scoped wait と
ci_verdict_summary.py --expected-head-sha b252a848e0bc9eb762366a456c69c19f694c5f82はpython-testfailure によりfailedです。
Blockers
- current HEAD の required CI
python-testが失敗しています。失敗5件は PR差分外で、overlap waiver の日付期限依存4件と、shallow checkoutでgit show e375b3a1^が失敗する baseline_vc_preflight 1件です。#1456 の Allowed Paths 外のため本PRへ修正を混入させず、CI基盤側で解消して current HEAD を再実行する必要があります。
Non-blockers
- #1456 の実装差分、AC証跡、Allowed Paths は適合しています。
LOOP_VERDICT_V2
verdict: REQUEST_CHANGES
reviewed_head_sha: "b252a848e0bc9eb762366a456c69c19f694c5f82"
merge_ready: false
mergeability:
mergeable: MERGEABLE
merge_state_status: BLOCKED
blockers:
- "current HEAD の required CI python-test が失敗。5件はいずれも #1456 の Allowed Paths 外(期限依存4件、shallow checkout起因1件)であり、CI基盤側の解消と再実行が必要"
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/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py
allowed_paths_gate_source: review_subagent
判定: REQUEST_CHANGES現行HEAD P0 —
|
TEST_VERDICT:
result: FAIL
head_sha: 314c3b1cbba36fa97344492898c9748fd5cde06c
mergeable: MERGEABLE
merge_state_status: BLOCKED
branch_behind_main: false
baseline_only: false
verification_commands_pass: 14
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results:
- { ac: AC1, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC2, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC3, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC4, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC5, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC6, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC7, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC8, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC9, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC10, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC11, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC12, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC13, command: "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "126 passed" }
- { ac: AC14, command: "uv run --locked pytest .claude/skills/open-pr/scripts/tests/test_open_pr_overlap_gate.py .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py -v", exit_code: 0, status: pass, fallback_detected: false, artifact_present: not_required, human_review_required: false, stop_condition_triggered: false, notes: "73 passed" }VC_ADJUDICATION
|
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, merge_state_status=CLEAN
Evidence Check
- AC1–AC13: current-head TEST_VERDICT(126 passed)、AC14: 73 passed。skip/fallback なし。
- CI Verification: current-head
ci_verdict_summary.pyはall_pass(expected/head SHA 一致、failed/pending/stale なし)。required CI は成功。 - Allowed Paths: review_subagent gate は
ok。4変更ファイルは Issue #1456 の6許可パス内、rename provenance は完全。 - Schema / Safety:
not_schema_changeと既存 Safety Claim Matrix は差分と整合。
Required Auto Action
- PR 本文は旧HEAD
9e7a8366、112 passed、2ファイル記載のままで、AC14と現行4ファイル・current-head検証証跡が未反映です。本文のみを機械的に更新してください。
Blockers
- なし(本文更新は mechanical action)。
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "314c3b1cbba36fa97344492898c9748fd5cde06c"
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/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py
- .claude/skills/open-pr/scripts/tests/test_open_pr_overlap_gate.py
- .claude/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py
producer_role: review_subagent
worker_report_used_as_canonical: false
allowed_paths_gate_source: review_subagent
squne121
left a comment
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES
Mergeability
- mergeable=MERGEABLE, merge_state_status=CLEAN
Evidence Check
- AC coverage: PR 本文は AC1–AC14 と current-head 検証を記載していますが、live CI 集約の実行結果と一致しません。
- CI Verification: current HEAD
314c3b1cbba36fa97344492898c9748fd5cde06cでci_verdict_summary.py --expected-head-shaはstatus=failed(exit 10)。current-headPR Body Japanese Checkの skipped shadow が failed のままです。 - Check-name: 同じ current HEAD で
--check-name "PR Body Japanese Check"はambiguous_check_name(exit 40)。AC8 の canonical success と限定 shadow の正当な共存を満たしません。 - Allowed Paths: review_subagent による rename-aware gate は
ok。4変更ファイル、違反0です。
Blockers
- AC1/AC2/AC7/AC9: current PR の success peer がある限定 review skipped shadowを集約前に条件付き excluded へ分類できていません。two-pass precompute verdict を main の overall/failed/excluded 集計に接続し、現行 HEAD で
status=all_passを確認してください。 - AC8:
--check-nameは canonical pull_request success と許容済み review skipped shadowを、事前計算後に1つの有効なチェックとして扱う必要があります。現在の raw 行数ベースの曖昧判定は fail-closed のままです。
LOOP_VERDICT_V2
verdict: REQUEST_CHANGES
reviewed_head_sha: "314c3b1cbba36fa97344492898c9748fd5cde06c"
merge_ready: false
mergeability:
mergeable: MERGEABLE
merge_state_status: CLEAN
blockers:
- "current-head CI verdict is failed: PR Body Japanese Check skipped shadow is not excluded despite the success peer"
- "AC8 fails: --check-name PR Body Japanese Check returns ambiguous_check_name"
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/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py
- .claude/skills/open-pr/scripts/tests/test_open_pr_overlap_gate.py
- .claude/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py
producer_role: review_subagent
worker_report_used_as_canonical: false
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
- reviewed current HEAD:
314c3b1cbba36fa97344492898c9748fd5cde06c - AC coverage: PR本文にAC1–AC14の根拠とVC結果があり、契約スナップショットは current Issue body に一致します。
- CI Verification: current HEAD で
ci_verdict_summary.py --expected-head-shaはall_pass(exit 0)。--check-name "PR Body Japanese Check"もall_pass(exit 0)。 - Required CI: current HEAD の集約結果は all_pass、pending/failed/stale は0です。
- Allowed Paths: review_subagentのrename-aware gateは current HEAD・4変更ファイルで
ok、違反0です。 - Schema/Safety:
not_schema_changeとSafety Claim MatrixがPR本文および回帰証跡と整合します。
Blockers
- なし
Non-blockers
- TEST_VERDICT_MACHINEの初回FAILはCI pending時点の観測であり、同一HEADのVC成功・current CI all_passにより解消済みです。
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "314c3b1cbba36fa97344492898c9748fd5cde06c"
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/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py
- .claude/skills/open-pr/scripts/tests/test_open_pr_overlap_gate.py
- .claude/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py
producer_role: review_subagent
worker_report_used_as_canonical: false
allowed_paths_gate_source: review_subagentIssue #1518 が指摘した main CI python-test red( test_overlap_readback_waiver_requires_live_body_snapshot_integrity 等 4件)は、PR #1505(fix(ci): review shadow と再実行を provenance 集約 する)が side-effect として test_open_pr_overlap_gate.py に `today` パラメータを追加済みで、既に main 上で解消している (直近 CI run: head 7e6b3de, python-test job success)。 残る In Scope 項目である waiver 対象 Issue(#519, #520, #1429)の 現状確認と expires_on 延長/削除の判断を行い、結論をコードコメント として記録した: - OVERLAP_READBACK_WAIVER_LINKED_ISSUE (#1477) は既に CLOSED であり、 今後の呼び出しは repo/linked_issue 一致チェックで先に弾かれるため expires_on 分岐に実際には到達しない。expires_on を延長する実益は ない。 - waiver 対象範囲・トリガー条件自体の再設計は Stop Condition に該当 するため実施しない(別 Issue #1509 の scope)。 Co-authored-by: Claude Sonnet 5 <[email protected]>
Summary
CI 判定の集約処理について、実行詳細からイベント種別・状態・由来を取得し、同一イベントの再実行では最新完了分だけを正規の結果として扱えるようにしました。レビュー操作に由来する限定的なスキップ結果は、同じ検査の現行 HEAD 成功結果が確認できる場合だけ除外します。それ以外の欠損・曖昧な結果は成功へ寄せず、従来どおり失敗側で扱います。公開する
CI_VERDICT_SUMMARY_V1の JSON 契約は変更していません。追加で、current-head
python-testを妨げた既知の5件について、期限依存の waiver fixture を有効日で固定し、shallow checkout で過去の親 commit を読む test fixture をローカルの serial 契約検証へ置換しました。workflow や CI test plan は変更していません。Contract Snapshot(契約スナップショット)
314c3b1cbba36fa97344492898c9748fd5cde06c(検証対象)受け入れ条件の達成状況
pull_request_reviewとpull_request_review_commentの限定 shadow を、success peer がある場合だけ excluded にする fixture を追加しました。NEUTRAL、event 欠落、run detail 補完失敗を fail-closed にする fixture を通過しました。PR Body Japanese Checkの canonical success と限定 shadow だけを許容し、限定外の失敗を excluded が隠さないことを確認しました。CI_VERDICT_SUMMARY_V1の schema、公開キー集合、型が不変であることを確認しました。検証コマンド結果
uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v— 126 passed(集約器)uv run --locked pytest .claude/skills/open-pr/scripts/tests/test_open_pr_overlap_gate.py .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py -v— 73 passed(AC14)uv run --locked ruff check --select E,F .claude/skills/open-pr/scripts/tests/test_open_pr_overlap_gate.py .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py .claude/skills/pr-review-judge/scripts/ci_verdict_summary.py .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py— PASS(静的検査)Checks
上記の current HEAD に対する局所 unit test と Ruff はすべて PASS です。required CI の最終判定は GitHub の current-head check を正本として再取得します。
Allowed Paths 遵守
変更は次の4ファイルに限定しています。
.claude/skills/pr-review-judge/scripts/ci_verdict_summary.py(集約器).claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py(集約器テスト).claude/skills/open-pr/scripts/tests/test_open_pr_overlap_gate.py(overlap fixture テスト).claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py(parallel preflight テスト)Schema Change Applicability
CI_VERDICT_SUMMARY_V1の schema 識別子、公開 JSON キー集合、型は変更しません。Schema Consumer Inventory
公開 schema の変更はありません。既存 consumer の更新は不要であり、公開キー集合と型を固定する回帰テストで互換性を確認しています。
CI Test Performance Decision(CI テスト性能判断)
Safety Claim Matrix
Notes
Closes #1456(この PR のマージ時に対象 Issue を完了へ連携します)