Skip to content

実装: 全test inventoryとcross-job証跡をfail-close化する #1762

Closed as not planned

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "リポジトリ内の全 Python test file を正確に 1 つの lane へ分類し、secondary coverage を provider job の実行 artifact で証明する"
change_kind: ci-test-coverage

Parent Issue

none(#1059 の child にはしない。related: #1059, #1064, #1644, #1724, #1725。depends on: #1725)

Parent Goal Ref

N/A(親 Issue なし。#1059 は completed で close 済み)

Current Validated Scope

Remaining Parent Gaps

なし(本 Issue は独立 follow-up。#1059 の Closure には影響しない)

Outcome

repository 内の全 Python test file が正確に 1 分類され、dedicated provider job が head SHA 付き selection artifact を発行し、集約 gate が plan 宣言と provider job の実 collected files/nodeids を照合し、未分類・重複分類・artifact 欠落・stale SHA・宣言のみ coverage を fail-close で拒否する状態になる。

In Scope

  • scripts/ci/verify_python_test_inventory.py
  • provider artifact schema
  • node-backed/Codex/python-test 各 job の selection artifact 生成
  • aggregation 専用 ci-test-coverage-gate job
  • generator の secondary_coverage consumer 更新
  • inventory 除外規則の明文化
  • fixture/negative test

Out of Scope

  • 各 test の意味変更
  • quarantine 自体の修正
  • CI performance benchmark

Acceptance Criteria

  • AC1: **/test_*.py および **/*_test.py を規定された除外領域以外から列挙する
  • AC2: 全 test file が正確に 1 分類される
  • AC3: 未分類・複数分類を changed file の有無に関係なく拒否する
  • AC4: provider artifact が head_sha / run_id / run_attempt / provider_job / collected files/nodeids を持つ
  • AC5: provider artifact の head_sha が対象 PR head と一致しない場合に拒否する
  • AC6: secondary_coverage 宣言 path が provider artifact で実際に collect されていることを検証する
  • AC7: provider artifact 欠落・0 nodeid・重複 provider を拒否する
  • AC8: 実装: node-backed-hook-tests に test_external_manifest_publish.py の実行 step を追加し既知の宣言・実行不一致を解消する #1725 の対象を含む Node-backed file が実行・collect の双方で証明される
  • AC9: inventory・provider・aggregation の negative test を持つ
  • AC10: required CI で ci-test-coverage-gate が成功する

Verification Commands

# AC1
$ test -f scripts/ci/verify_python_test_inventory.py
# AC2
$ rg -n "classifications" scripts/ci/verify_python_test_inventory.py
# AC3
$ test -f scripts/ci/tests/test_verify_python_test_inventory.py
# AC4
$ rg -n "head_sha" .claude/skills/pr-review-judge/scripts/generate_ci_test_selection_artifact.py
# AC5
$ rg -n "run_id" .claude/skills/pr-review-judge/scripts/generate_ci_test_selection_artifact.py
# AC6
$ rg -n "secondary_coverage" scripts/ci/verify_python_test_inventory.py
# AC7
$ rg -c "provider_job" scripts/ci/verify_python_test_inventory.py
# AC8
$ rg -n "test_external_manifest_publish" scripts/ci/verify_python_test_inventory.py
# AC9
$ test -f .claude/skills/pr-review-judge/scripts/tests/test_generate_ci_test_selection_artifact_inventory.py
# AC10
$ rg -n "ci-test-coverage-gate" .github/workflows/ci.yml

Allowed Paths

  • .github/workflows/ci.yml
  • .github/ci/python-test-plan.json
  • scripts/ci/verify_python_test_inventory.py
  • scripts/ci/tests/
  • .claude/skills/pr-review-judge/scripts/generate_ci_test_selection_artifact.py
  • .claude/skills/pr-review-judge/scripts/tests/
  • docs/dev/test-lane-policy.md
  • .claude/skills/ci-test-performance/SKILL.md

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

なし

Required Design References

なし

Scope Delta(任意)

N/A

Notes for Reviewer

Activity

  1. added
    enhancement
    phase/implementation
    agent/implementer
    on Jul 25, 2026
  2. squne121 commented on Aug 12, 2026

    @squne121
    OwnerAuthor

    Disposition: CLOSED / not_planned

    #1782 の敵対的レビュー(https://github.com/squne121/loop-protocol/issues/1782#issuecomment-5266277591)に基づき close する。

    根拠:

    一般的な cross-job 検証強化が将来必要になった場合は、#1725 のような具体的 instance ベースの Issue として都度起票する方針とする。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/implementerenhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions