Repository navigation
Open
Labels
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "PR #1497 (Issue #1488) レビュー時に ci_verdict_summary.py --pr 1497 --expected-head-sha SHA が exit 10 を返した誤検知を解消する"
change_kind: codeParent Issue
なし(単独改善)
Parent Goal Ref
- Goal: なし(単独改善のため N/A)
- Desired Destination: なし(単独改善のため N/A)
Current Validated Scope
.claude/skills/pr-review-judge/scripts/ci_verdict_summary.pyのHEAD_SHA_NULL_SKIPPED_EXCLUDE_RULESに新規 exclude エントリを追加- 新規テストファイル .claude/skills/pr-review-judge/tests/test_ci_verdict_summary_exclude_rules.py の追加
Remaining Parent Gaps
なし
Outcome
ci_verdict_summary.py の HEAD_SHA_NULL_SKIPPED_EXCLUDE_RULES に ("Check Japanese Content", "PR Body Japanese Check") が追加され、pull_request_review イベント再トリガー時に check-pr-body job が if: github.event_name == 'pull_request' 条件不一致で skip(head_sha=null / conclusion=skipped)となるケースが exclude 対象として正しく除外され、既存テストが PASS している状態。
In Scope
.claude/skills/pr-review-judge/scripts/ci_verdict_summary.pyのHEAD_SHA_NULL_SKIPPED_EXCLUDE_RULESfrozenset に("Check Japanese Content", "PR Body Japanese Check")エントリを追加する- 新規テストファイル .claude/skills/pr-review-judge/tests/test_ci_verdict_summary_exclude_rules.py を追加し、この新規タプルに対応する回帰テストケースを実装する
Out of Scope
.github/workflows/check-japanese.yml側のトリガー条件(if: github.event_name == 'pull_request')自体の変更HEAD_SHA_NULL_SKIPPED_EXCLUDE_RULESの他エントリの見直しci_verdict_summary.pyの exit code 体系や verdict 判定ロジック全体の再設計
Acceptance Criteria
- AC1:
HEAD_SHA_NULL_SKIPPED_EXCLUDE_RULESに("Check Japanese Content", "PR Body Japanese Check")タプルが追加されている - AC2: 新規テストファイル test_ci_verdict_summary_exclude_rules.py に追加した exclude エントリの回帰テストが存在し PASS する
Verification Commands
# AC1
$ rg -n "PR Body Japanese Check" .claude/skills/pr-review-judge/scripts/ci_verdict_summary.py# AC2
$ uv run pytest .claude/skills/pr-review-judge/tests/test_ci_verdict_summary_exclude_rules.pyAllowed Paths
- .claude/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .claude/skills/pr-review-judge/tests/test_ci_verdict_summary_exclude_rules.py
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
Required Skills
なし
Required Design References
- .claude/skills/pr-review-judge/scripts/ci_verdict_summary.py
- .github/workflows/check-japanese.yml
Scope Delta(該当時のみ記載)
N/A
Source
- PR: 実装: adjudicate_vc_result.py の current PASS 認証を regression-gate 以外の VC 種別へ拡張する #1497
- Issue: https://github.com/squne121/loop-protocol/issues/1488(クローズ済み)
- severity: optional_follow_up(non-blocking。CI 自体は正しく通っており、この問題は verdict summary script の集計ロジックのみに影響する)
- dedupe_key:
follow-up:squne121/loop-protocol:pr/1497:1
Activity