Repository navigation
Closed as not planned
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Description
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-coverageParent 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
- 新規 test file は python-test-plan へ明示登録されない限り CI 対象外になり得る。
secondary_coverage.dedicated_lanesは provider job の実行 artifact を検証せず、宣言を信頼している。- 実装: node-backed-hook-tests に test_external_manifest_publish.py の実行 step を追加し既知の宣言・実行不一致を解消する #1725 は具体的な 1 ファイルの実行漏れを修正するが、一般的な cross-job 検証は扱わない。
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-gatejob - generator の
secondary_coverageconsumer 更新 - 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.ymlAllowed Paths
.github/workflows/ci.yml.github/ci/python-test-plan.jsonscripts/ci/verify_python_test_inventory.pyscripts/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
- OWNER コメント(https://github.com/squne121/loop-protocol/issues/1059#issuecomment-5079148059)の「Issue案3」を issue-refinement-loop control-plane が Issue テンプレート形式へ再構成したもの。推奨実施順序: 実装: node-backed-hook-tests に test_external_manifest_publish.py の実行 step を追加し既知の宣言・実行不一致を解消する #1725 → 実装: Codex execpolicyを専用jobへ分離しpython-testのPython-only invariantを復元する #1760(案1) → 実装: python-test-planをstrict schema化し期限付きquarantine契約を導入する #1761(案2) → 本 Issue → 案4 → 案5。実装: node-backed-hook-tests に test_external_manifest_publish.py の実行 step を追加し既知の宣言・実行不一致を解消する #1725 のマージを前提とする。
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Activity
squne121 commentedon Aug 12, 2026
Disposition: CLOSED / not_planned
#1782 の敵対的レビュー(https://github.com/squne121/loop-protocol/issues/1782#issuecomment-5266277591)に基づき close する。
根拠:
一般的な cross-job 検証強化が将来必要になった場合は、#1725 のような具体的 instance ベースの Issue として都度起票する方針とする。