Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "conditional skipped close-evidence-publication を excluded として分類し、normal PR の merge-ready を block しない一方、unknown conditions は fail-closed に維持する"
change_kind: codeParent Issue
なし(単独改善)
Parent Goal Ref
- Goal: PR review の CI verdict が conditional check と required execution job を正しく区別し、未知の条件は fail-closed に評価する。
- Desired Destination: normal PR の merge-ready 判定で、意図的に skipped となる
close-evidence-publicationがunknownからのgh_errorを発生させない状態。 - Related: 実装: issue-refinement-loop structural repair が trusted human-context anchor の section source_span を consume できるようにする #2582; Source PR: fix: trusted owner anchor section spans #2583; source run: https://github.com/squne121/loop-protocol/actions/runs/34237941034
Current Validated Scope
- PR fix: trusted owner anchor section spans #2583 run #34237941034 の same-run check-runs では
close-evidence-publicationが conditionalskippedとして現れ、current required execution jobs はsuccessである。 .claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.pyのCLASSIFICATION_MAPに当該 check の分類がないため、unknownがgh_errorへ至る。- 既存の excluded 分類へ当該 check の 1 エントリだけを追加し、対応する focused regression を追加する。
Remaining Parent Gaps
なし。workflow、CI lane、schema、control-plane の追加または変更は本 Issue では扱わない。
Outcome
更新された .claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.py の CLASSIFICATION_MAP と対応テストにより、conditional skipped の close-evidence-publication が excluded と判定され normal PR の merge-ready を block せず、未知の check/conditions が fail-closed のまま focused regression と品質ゲートを PASS する状態を成果物として作成する。
Runtime Verification Applicability
- decision: not_applicable
- reason: Python の静的分類ロジックと deterministic unit test のみを変更し、browser または product runtime behavior を変更しないため。
Background
Source: #2582、PR #2583、run https://github.com/squne121/loop-protocol/actions/runs/34237941034。
Root cause は validated 済みである。same-run check-runs の conditional close-evidence-publication は skipped だが CLASSIFICATION_MAP に存在せず、unknown classification が gh_error になる。required execution jobs は success である。
採用方針は既存 excluded classification への最小の 1 エントリ追加である。PR 運用で gh_error を手動無視する workaround は、normal PR の merge-ready 判定を再現可能に修正せず、unknown の fail-closed 意味論を曖昧にするため採用しない。
In Scope
CLASSIFICATION_MAPに conditionalclose-evidence-publicationの excluded classification を 1 エントリ追加する。- normal PR の同 check が excluded となり merge-ready を block しないこと、ならびに unknown check/condition の fail-closed behavior が緩和されないことを focused test で固定する。
CI_TEST_PERFORMANCE_DECISION_V1に従う required verification evidence を PR に記録する。
Out of Scope
.github/workflows/**の変更、new CI lane、workflow 実行条件の変更。- schema、control-plane、required execution jobs、required check 集合の追加または変更。
- excluded 以外の classification policy の再設計、unknown condition の allowlist 化、手動 workaround。
Acceptance Criteria
- AC1:
close-evidence-publicationが conditionalskippedの same-run check-run として入力された場合、ci_verdict_summary_v2は既存 excluded classification として出力し、normal PR の merge-ready を block しない。 - AC2:
close-evidence-publication以外の unknown check または未知の condition はunknownからの fail-closed behavior を維持し、gh_errorを success/excluded に緩和しない。 - AC3: 変更は Allowed Paths の 2 ファイルに限定され、workflow/new CI lane/schema/control-plane の追加または変更を含まない。
- AC4: focused test、CI equivalent Ruff check、pnpm quality gates、model routing test が PASS する。
Verification Commands
# AC1
$ uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py -q
# AC2
$ uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py -q
# AC3
# AC4
$ pnpm typecheck
# AC4
$ pnpm lint
# AC4
$ pnpm test
# AC4
$ pnpm build
# AC4
$ uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.pyCI Test Performance Decision
CI_TEST_PERFORMANCE_DECISION_V1:
schema: CI_TEST_PERFORMANCE_DECISION_V1
issue_number: null
pr_number: null
decision_scope: ci_change
changed_paths:
- .claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.py
- .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py
lane_classification:
fast_static:
applicable: true
evidence:
- "Python classification code changes; CI equivalent Ruff check and pnpm quality gates are required verification."
required_commands:
- "uv run --locked ruff check .claude/scripts scripts schemas .claude/skills"
- pnpm typecheck
- pnpm lint
python_unit:
applicable: true
evidence:
- "ci_verdict_summary_v2 focused Python regression test changes."
required_commands:
- "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py -q"
contract_artifact:
applicable: true
evidence:
- "merge-ready CI verdict classification is a pr-review-judge consumer contract; CI check-run-scoped evidence is required."
required_commands:
- "uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py -q"
integration:
applicable: false
evidence:
- "No workflow, UI, runtime integration, or new CI lane changes."
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:
- "no_performance_claim"
reviewer_gate:
approve_allowed: false
required_evidence:
- CI_CHECK_RUN_SCOPED
approve_denied_reason: "CI_CHECK_RUN_SCOPED evidence is pending on the implementation PR."
follow_up_required: []Performance claim: なし。これは correctness classification の最小変更であり、runtime reduction、throughput、duration の主張をしない。authoritative evidence は CI_CHECK_RUN_SCOPED とする。
Allowed Paths
.claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.py.claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- workflow、new CI lane、schema、control-plane、required execution jobs への波及が判明した場合
Required Skills
- Python / pytest
Required Design References
.claude/skills/pr-review-judge/SKILL.md.claude/skills/ci-test-performance/SKILL.mddocs/dev/test-lane-policy.mddocs/dev/runtime-verification-policy.md
Scope Delta(任意)
N/A
Delivery Rule
1 Issue = 1 PR。専用 worktree で実装し、Draft PR を既定とする。- PR には focused regression、CI equivalent Ruff check、pnpm quality gates、model routing、
CI_CHECK_RUN_SCOPEDevidence を記録する。 - Scope Collision (C1): 実装: Claude-GPT Auto の issue-editor canonical transaction の false-deny を解消する #2433、実装: CI: machine-readable lane-impact classifier を導入し非適用 heavy test lane を fail-closed で省略する #2120、実装: CI: Playwright E2E の responsive matrix を専用 lane へ分離し critical path を短縮する #2119、実装: current-head ci_verdict_summary_v2 artifact と required check identity の readback を保持する #1673 が同じ 2 Allowed Paths を宣言するが、各 Issue の edit intent は issue-editor false-deny、lane-impact、E2E lane、artifact/readback であり、本 Issue の conditional excluded 1-entry classification とは異なる。実装開始時に current main を確認し、競合があれば別 PR と混在させず rebase または human routing で直列化する。
Notes for Reviewer
- overlap preflight:
overlap_requires_comment/ C1。related_issue=実装: Claude-GPT Auto の issue-editor canonical transaction の false-deny を解消する #2433, 実装: CI: machine-readable lane-impact classifier を導入し非適用 heavy test lane を fail-closed で省略する #2120, 実装: CI: Playwright E2E の responsive matrix を専用 lane へ分離し critical path を短縮する #2119, 実装: current-head ci_verdict_summary_v2 artifact と required check identity の readback を保持する #1673; overlapping_paths は Allowed Paths の 2 ファイル。これらの OPEN Issue と本 Issue を同一 PR に統合しない。
Activity
squne121 commentedon Sep 8, 2026
root-owned entry router audit
route: stop
reason: review_verdict_blocked
squne121 commentedon Sep 9, 2026
root-owned entry router audit
route: invoke_impl_review_loop
reason: fresh_review_go_live_equality
squne121 commentedon Sep 9, 2026
implementation result: no behavioral delta
31b69e850eedbdb12ae5967c7483d9c833de2811) の current-main 比較と独立 review により、対象の ordinary PR skippedclose-evidence-publicationは既存 consumer で既に conditional excluded として処理されていることを確認しました。excludedを強制するため、PR のCLASSIFICATION_MAP1 entry はconsumer behaviorを変更せず、AC1の実装根拠になりません。guardをmapへ移すことはunknown時のfail-closed境界を弱めるため採用しません。105 passed記載が残り、fresh reviewer verdict はREQUEST_CHANGESです。fix: classify conditional close evidence publication (#2587) (#2597)
feat: build_intake_capsule.pyのhuman-context-comment-url解決範囲をPRコメントに拡張…