Repository navigation
Description
Parent Issue
none
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: issue-1660-current-head-ci-verdict-artifact-readback
change_kind: mixedParent Goal Ref
- Goal: PR feat:issue-content-update #1669 の
CI_TEST_PERFORMANCE_DECISION_V1.follow_up_requiredにある current-headci_verdict_summary_v2artifact と required check identity の live readback を保持可能にする。 - Desired Destination: 新規の単独 implementation Issue(1 Issue = 1 PR)。
- Related completed issue: 実装: edit-issue skill の controlled executor に Issue title mutation を追加する #1660。Source PR: feat:issue-content-update #1669。
Current Validated Scope
.claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.pyで current-head artifact の URL・digest・artifact identity を欠落なく保持し、required check の workflow/name/check-run identity と expected head SHA を readback 可能にする。.claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.pyに URL/digest と required check identity の決定論的回帰テストを追加する。- 必要な workflow wiring の修正が判明した場合のみ
.github/workflows/ci.ymlを変更する。
Remaining Parent Gaps
- 実装: edit-issue skill の controlled executor に Issue title mutation を追加する #1660 の issue-content mutation 実装は完了済みで、本 Issue は CI evidence/readback の残存 gap のみを扱う。
- current-head GitHub Actions の実行結果そのものの取得は実装 PR の検証時に行い、stale/missing/null は merge-ready とみなさない。
Outcome
.claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.py と対応テスト(必要時のみ .github/workflows/ci.yml)が、current PR head に束縛された artifact URL・digest と required check の workflow/name/check-run identity を同一 artifact に決定論的に保存・表示し、検証コマンドが PASS する状態を成果物として作成する。
Background
PR #1669 body の CI_TEST_PERFORMANCE_DECISION_V1.follow_up_required は「current-head ci_verdict_summary_v2 artifact の URL/digest と required check identity を readback する」ことを要求しています。既存の exact dedupe key issue-1660-current-head-ci-verdict-artifact-readback は open Issue に存在しません。
決定論的修正を第一候補とし、artifact metadata と check identity を generator/schema/test で明示的に保持します。workflow の prompt 注記だけで readback を補う workaround は、コード側で再現可能な証跡を作れるため採用しません。
Scope Collision (C1): related_issue=#1607, #1569, #1425, #1390, #1389, #1388, #1387, #1380, #1283, #641, #375, #239, #213, #205; overlapping_paths=.github/workflows/ci.yml. non_conflict_reason: 既存候補は別の CI/VRT/依存修正であり、current-head ci_verdict_summary_v2 readback の Outcome・goal_ref・edit intent は一致しない。dependency ordering: 既存候補の変更を取り込まず、必要時のみ同一 workflow の verdict job wiring に限定して差分を作る。
Source: PR #1669 (CI_TEST_PERFORMANCE_DECISION_V1.follow_up_required); dedupe_key: issue-1660-current-head-ci-verdict-artifact-readback。
In Scope
- artifact reference に URL、digest、artifact ID/name、workflow run ID/attempt、expected/current head SHA を保持する schema/生成処理。
- required check の workflow/name/check-run ID、結論、head SHA match を current-head readback として保持し、欠落・null・stale を blocking とする決定論的テスト。
- Step Summary が同一 JSON artifact の URL/digest と required check identity を表示することのテスト。
- 必要な場合のみ
.github/workflows/ci.ymlの verdict job wiring を上記 artifact/schema 契約に合わせる。
Out of Scope
- 実装: edit-issue skill の controlled executor に Issue title mutation を追加する #1660 / feat:issue-content-update #1669 の既存 issue-content mutation 実装の変更。
- required check の集合・分類ポリシー自体の再設計。
- GitHub Actions の外部 API 取得を人手運用や prompt 注記だけで補う workaround。
.github/workflows/ci.ymlの verdict job 以外の CI/VRT job 変更。
Acceptance Criteria
-
ci_verdict_summary_v2artifact が current PR head SHA と workflow run identity に束縛された artifact URL・digest・ID/name を JSON に保存し、Step Summary に同じ値を表示する。 - 各 required check が workflow/name/check-run ID、expected head SHA、実 head SHA、head SHA match、conclusion を readback 可能な形で保存し、check-run ID 欠落または head SHA null/stale を blocking と判定する。
- URL/digest 欠落、required check identity 欠落・null・stale、および current-head 一致の各境界を対応テストで決定論的に検証する。
- 変更が Allowed Paths 内に限定され、既存の ci_verdict_summary_v2 契約テストを含む Verification Commands が PASS する。
Verification Commands
$ uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py -q
$ uv run --locked python3 -m py_compile .claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.py
$ uv run --locked python3 .claude/skills/issue-refinement-loop/scripts/check_vc_scope.py --issue-body-file .claude/tmp/issue1660_followup_body.md
$ git diff --check各コマンドは順に artifact URL/digest と required check identity の回帰、構文、scope、whitespace を検証する。
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.github/workflows/ci.yml
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
Required Skills
- Python / pytest
Required Design References
.claude/skills/pr-review-judge/SKILL.mddocs/dev/workflow.md
Scope Delta(任意)
N/A
Delivery Rule
1 Issue = 1 PR。専用 worktree で実装し、Verification Commands の証跡を添えた Draft PR を作成する。#1660/#1669 は完了済みのため依存設定は行わない。
Activity