Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1287"
goal_ref: "PR #1301 の ci_test_selection/v1 uncovered changed test blocker を解消するため、python-test-plan が edit-issue tests directory 全体を python-test lane coverage として扱う状態にする"
change_kind: workflow
dependency_policy:
unblocks_pr: "#1301"Parent Issue
Parent Goal Ref
- Goal: edit-issue transaction helper と issue-author consumer 契約を PR feat: add edit-issue transaction helper (#1287) #1301 で導入する
- Desired Destination: PR feat: add edit-issue transaction helper (#1287) #1301 の required CI が current head で fail せず、impl-review-loop が merge-ready 判定へ進める状態
Current Validated Scope
.github/ci/python-test-plan.jsonの python-test targets を更新し、.claude/skills/edit-issue/tests/ディレクトリ全体を python-test lane の coverage として扱う- 既存の個別 target
.claude/skills/edit-issue/tests/test_guard_issue_body.pyと.claude/skills/edit-issue/tests/test_issue_contract_hygiene_autofix.pyは、同じディレクトリ target との重複実行を避ける形へ整理する - PR feat: add edit-issue transaction helper (#1287) #1301 head
d1fbd5df17e3659ffef115eaad015565499334b7で発生したci_test_selection/v1のUncovered tests: 1blocker を解消するための CI lane 設定だけを扱う
Remaining Parent Gaps
- 実装: edit-issue transaction script を追加し issue-author の shell 手順と context load を削減する #1287 / PR feat: add edit-issue transaction helper (#1287) #1301 の実装 diff 自体は本 Issue では変更しない
- PR feat: add edit-issue transaction helper (#1287) #1301 は本 Issue merge 後に update-branch / rebase と CI 再実行が必要
- node-backed hook lane の設計変更や CI workflow 本体の変更が必要な場合は本 Issue では扱わず停止する
Outcome
.github/ci/python-test-plan.json が .claude/skills/edit-issue/tests/ 全体を python-test lane coverage として含み、PR #1301 の .claude/skills/edit-issue/tests/test_edit_issue_txn.py 追加が ci_test_selection/v1 で uncovered changed test にならない状態。
Background
PR #1301 は Issue #1287 の実装 PR で、最新 head d1fbd5df17e3659ffef115eaad015565499334b7 では Issue #1287 の Verification Commands が 9/9 PASS している。一方、required CI の python-test は ci_test_selection/v1 artifact generation で Collected nodeids: 6220, Changed tests: 1, Uncovered tests: 1 を出し、.claude/skills/edit-issue/tests/test_edit_issue_txn.py を uncovered changed test として fail している。node-backed-hook-tests でも同じ changed test が uncovered として検出されている。
現行 .github/ci/python-test-plan.json は .claude/skills/edit-issue/tests/test_guard_issue_body.py と .claude/skills/edit-issue/tests/test_issue_contract_hygiene_autofix.py を個別 target として持つが、edit-issue tests ディレクトリ全体は target に含んでいない。そのため PR #1301 で新規追加された test_edit_issue_txn.py が python-test lane coverage から漏れている。
決定論的修正として、python-test-plan の target を .claude/skills/edit-issue/tests/ に寄せる。workflow の workaround、PR #1301 側のテスト削除、ci_test_selection gate の緩和は採用しない。
In Scope
.github/ci/python-test-plan.jsonのtargetsを更新し、.claude/skills/edit-issue/tests/を python-test lane に含める- 同じディレクトリ内の個別 target が重複する場合は削除または置換し、pytest target set と
ci_test_selection/v1artifact の整合を保つ notesの説明が個別 target 前提で古い場合は、同じ JSON 内で必要最小限に更新する
Out of Scope
.github/workflows/ci.ymlの変更.claude/skills/pr-review-judge/scripts/generate_ci_test_selection_artifact.pyの変更- PR feat: add edit-issue transaction helper (#1287) #1301 の implementation diff 変更
- node-backed hook tests の対象 nodeid 変更
- ci_test_selection/v1 の fail-closed policy 緩和
- pytest-xdist worker 数や scheduler の変更
Acceptance Criteria
- AC1:
.github/ci/python-test-plan.jsonのtargetsに.claude/skills/edit-issue/tests/が含まれている - AC2:
.github/ci/python-test-plan.jsonで.claude/skills/edit-issue/tests/test_guard_issue_body.pyと.claude/skills/edit-issue/tests/test_issue_contract_hygiene_autofix.pyがディレクトリ target と重複していない - AC3: python-test plan loader が parallel run argv を生成でき、
.claude/skills/edit-issue/tests/を argv に含める - AC4: PR feat: add edit-issue transaction helper (#1287) #1301 相当の changed test
.claude/skills/edit-issue/tests/test_edit_issue_txn.pyがci_test_selection/v1generator で uncovered changed test にならない - AC5:
ci_test_selection/v1の fail-closed policy と node-backed hook split policy は緩和されていない
Verification Commands
# AC1
$ uv run --locked pytest scripts/ci/tests -k python_test_plan
# AC2
$ rg -n '"\.claude/skills/edit-issue/tests/",' .github/ci/python-test-plan.json
# AC3
$ uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests -k ci_test_selection
# AC4
$ uv run --locked pytest .claude/skills/pr-review-judge/tests/test_generate_ci_test_selection_artifact.py
# AC5
$ uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests .claude/skills/pr-review-judge/testsAllowed Paths
- .github/ci/python-test-plan.json
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
.github/workflows/ci.ymlの変更が必要になった場合generate_ci_test_selection_artifact.pyの policy 緩和が必要になった場合- PR feat: add edit-issue transaction helper (#1287) #1301 側の implementation test を削除または移動する必要が判明した場合
Required Skills
なし
Scope Delta(任意)
| source | decision |
|---|---|
PR #1301 LOOP_VERDICT_V2 |
required CI の python-test / node-backed-hook-tests が ci_test_selection/v1 uncovered changed test で fail したため、#1287 Allowed Paths 外の CI plan 修正として分割 |
.github/ci/python-test-plan.json |
workflow ではなく python-test-plan SSOT を変更する |
Delivery Rule
- 1 Issue = 1 PR とする
- PR feat: add edit-issue transaction helper (#1287) #1301 とは別 PR で先に merge し、その後 PR feat: add edit-issue transaction helper (#1287) #1301 を update-branch / rebase して CI を再実行する
- Draft PR 既定で作成し、contract review 後に implementation loop へ渡す
Runtime Verification Applicability
runtime_verification:
decision: not_applicable
required: false
reason: "本 Issue は CI lane plan の静的 JSON 設定と pytest/generator による artifact consistency 検証で完結し、browser/UI/runtime smoke を要求しない"
applicable_acs: []
deferred_destination: null
artifact_requirements: []Notes for Reviewer
- 本 Issue は PR feat: add edit-issue transaction helper (#1287) #1301 を unblock するための先行 CI plan 修正であり、実装: edit-issue transaction script を追加し issue-author の shell 手順と context load を削減する #1287 の helper 実装内容を変更しない
ci_test_selection/v1の fail-closed policy を緩めず、coverage source を python-test-plan SSOT に追加する方針を採る
Activity
squne121 commentedon Jul 3, 2026
Contract Review Result
squne121 commentedon Jul 3, 2026
impl-review-loop: 完了 (2026-07-03T16:41:00Z)
feat: add edit-issue tests directory coverage to python-test-plan (#1303
fix: CI test-selection SSOT に agent-retrospective の新規 pytest ターゲットを登録…
feat: agent-retrospective の agent_retrospective_run/v1・agent_improvem…