Repository navigation
Closed
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phasetriage-requiredNeeds owner triage for priority decision
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "PR #1643 に追加された scope-rollup GraphQL pagination test を python-test-plan SSOT と ci_test_selection/v1 evidence へ統合し、#1643 current head のCIで coverage を証明する"
change_kind: workflowParent Issue
none
Parent Goal Ref
- Related parent goal: CI python-test pytest実行phase高速化: test lane分類・pytest統合・Ruff導入・Skill化 #1059 の python-test-plan SSOT と ci_test_selection/v1 の整合を維持する。
- Relation: CI python-test pytest実行phase高速化: test lane分類・pytest統合・Ruff導入・Skill化 #1059 の child-complete closure contract には含めない。実装: scope-rollup GraphQL pagination テストを python-test plan へ登録する #1644 は PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 の current-head CI recovery に限定した非 closure follow-up である。
Current Validated Scope
tests/codex/test_scope_rollup_graphql_pagination_v3.pyは PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 の branch にのみ追加され、main には存在しない。.github/ci/python-test-plan.jsonは pytest 実行対象と ci_test_selection/v1 の共通SSOTであり、存在しない target を登録すると--check-pathsが fail-close する。- PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 current head の
python-testとnode-backed-hook-testsは失敗中だが、既存 preflight fixture の修正は 実装: scope_rollup.run の GitHub inventory を完全 pagination で取得する #1593 側の責務であり、本 Issue の Allowed Paths 外である。 github_livemarker、workflow対象除外、fake transport による coverage 回避は採用しない。
Remaining Parent Gaps
- 実装: scope_rollup.run の GitHub inventory を完全 pagination で取得する #1593 は
tests/codex/test_run_scope_rollup_preflight.pyの既存 preflight fixture を GraphQL transport に整合させ、PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 の current-head CI failure を解消する。 - 実装: scope-rollup GraphQL pagination テストを python-test plan へ登録する #1644 統合後の PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 の current head で
python-testとnode-backed-hook-testsが成功することを最終証跡とする。 - directory-wide の未分類 Python test guard は本 Issue の対象外であり、別 hardening 候補として扱う。
Outcome
PR #1643 branch を base にした #1644 の stacked Draft PR が .github/ci/python-test-plan.json と2種類の regression testを更新し、その変更を #1643 branch へ統合後の current-head CI で pagination test の collected / uncoveredなしを証明できる状態になる。
In Scope
tests/codex/test_scope_rollup_graphql_pagination_v3.pyを python-test-plan のtargetsに正確に1回登録する。- plan regression test に対象 path の exact-one registration と path validation を固定する。
- ci_test_selection regression test に
test_generate_artifact_scope_rollup_graphql_pagination_is_coveredを追加し、対象 path の argv / changed / collected / uncovered assertions を固定する。 - 実装: scope-rollup GraphQL pagination テストを python-test plan へ登録する #1644 PR を PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 の branch
worktree-issue-1593-scope-rollup-run-github-inventory-paginaを base とする stacked PR として起票し、実装: scope-rollup GraphQL pagination テストを python-test plan へ登録する #1644 の変更を同 branch へ統合後の PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 current-head CI を最終証跡にする。
Out of Scope
tests/codex/test_run_scope_rollup_preflight.py、実装: scope_rollup.run の GitHub inventory を完全 pagination で取得する #1593 executor、marker parser、hook-boundaries 12c、または pagination test 本体の変更。.github/workflows/ci.yml、pyproject.toml、uv.lock、pytest-xdist、CI runtime 性能・lane構造の変更。github_livemarker、workflow対象除外、fake transportによる CI coverage 回避。- CI python-test pytest実行phase高速化: test lane分類・pytest統合・Ruff導入・Skill化 #1059 の Child Issues / Parent Closure Rule の変更。
Acceptance Criteria
- AC1:
.github/ci/python-test-plan.jsonのtargetsにtests/codex/test_scope_rollup_graphql_pagination_v3.pyが正確に1回登録され、plan regression test が path validation を含めて PASS する。 - AC2:
scripts/ci/tests/test_python_test_plan.pyが対象 path の exact-one registration を固定し、plan test suite が PASS する。 - AC3:
test_generate_artifact_scope_rollup_graphql_pagination_is_coveredが対象 path についてpytest_argv.count == 1、changed / collected が対象だけ、uncovered が空、artifact generation が0を固定し、artifact regression test suite が PASS する。 - AC4: 実装: scope-rollup GraphQL pagination テストを python-test plan へ登録する #1644 を fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 branch へ統合後の PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 current head で
python-testとnode-backed-hook-testsが success となり、ci_test_selection/v1 は対象 path を collected しuncovered_changed_test_files: []を記録する。
Verification Commands
# AC1
$ uv run --locked pytest scripts/ci/tests/test_python_test_plan.py -q# AC2
$ uv run --locked pytest scripts/ci/tests/test_python_test_plan.py -q# AC3
$ uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_generate_ci_test_selection_fail_close.py -q# AC4
$ uv run --locked pytest scripts/ci/tests/test_python_test_plan.py .claude/skills/pr-review-judge/scripts/tests/test_generate_ci_test_selection_fail_close.py -qAllowed Paths
.github/ci/python-test-plan.jsonscripts/ci/tests/test_python_test_plan.py.claude/skills/pr-review-judge/scripts/tests/test_generate_ci_test_selection_fail_close.py
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- 実装: scope_rollup.run の GitHub inventory を完全 pagination で取得する #1593 が既存 preflight fixture の current-head CI failure を修正せず、PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 の
python-test/node-backed-hook-testsが成功しない場合 - 実装: scope-rollup GraphQL pagination テストを python-test plan へ登録する #1644 の変更を fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 branch へ統合できず、current-head CI artifact を final evidence にできない場合
Required Skills
- ci-test-performance
Required Design References
docs/dev/test-lane-policy.mddocs/dev/agent-skill-boundaries.mddocs/dev/workflow.md
Runtime Verification Applicability
decision: immediate
reason: final completion is defined by the GitHub Actions current-head evidence of PR #1643 after #1644 integration.
applicable_acs: [AC4]
execution_environment:
required_checks:
- python-test
- node-backed-hook-tests
network_required: true
github_auth_required: true
skip_conditions:
- required checks が pending、skipped、または失敗の場合は PASS として扱わない。
fallback_policy:
- github_live marker、workflow対象除外、fake transport で coverage を回避しない。
artifact_requirements:
- PR #1643 の current head SHA
- python-test success と ci_test_selection/v1 の collection / uncovered evidence
- node-backed-hook-tests successCI Test Performance Decision
CI_TEST_PERFORMANCE_DECISION_V1:
schema: CI_TEST_PERFORMANCE_DECISION_V1
issue_number: 1644
pr_number: 1643
decision_scope: ci_change
changed_paths:
- .github/ci/python-test-plan.json
- scripts/ci/tests/test_python_test_plan.py
- .claude/skills/pr-review-judge/scripts/tests/test_generate_ci_test_selection_fail_close.py
lane_classification:
fast_static: {applicable: false, evidence: [], required_commands: []}
python_unit: {applicable: true, evidence: [python-test-plan], required_commands: [pytest]}
contract_artifact: {applicable: true, evidence: [ci_test_selection/v1], required_commands: [pytest]}
integration: {applicable: false, evidence: [], required_commands: []}
baseline_inputs: {ci_runtime_baseline_v1_available: false, run_count: 0, p50_p95_ready: false}
artifact_consistency: {ci_test_selection_v1_checked: true, missing_pytest_args: []}
risk_flags: [stacked_pr_requires_1643_current_head_evidence]
reviewer_gate:
approve_allowed: false
required_evidence: [TEST_VERDICT_MACHINE, CI_CHECK_RUN_SCOPED]
follow_up_required: []Scope Collision
- Scope Collision (C1): related_issue=実装: playtest-log の JSON Schema / validator の追加 #420, 改善: implement-issue SKILL に Allowed Paths 外 consistency 更新の明示ルールと Schema Consumer Inventory iteration 更新ガイドラインを追加 #239, 実装: .claude/skills 配下スクリプトの executable bit を監査し CI guard を追加する #205; overlapping_paths=.github/ci/python-test-plan.json, scripts/ci/tests/test_python_test_plan.py.
- non_conflict_reason: 実装: playtest-log の JSON Schema / validator の追加 #420 は playtest-log schema、改善: implement-issue SKILL に Allowed Paths 外 consistency 更新の明示ルールと Schema Consumer Inventory iteration 更新ガイドラインを追加 #239 は implement-issue policy、実装: .claude/skills 配下スクリプトの executable bit を監査し CI guard を追加する #205 は executable-bit guard を扱う。本 Issue は scope-rollup test 1件の plan registration と fail-close coverage regression に限定され、目的・edit intent は重複しない。
- edit_intent:
targetsの1項目追加と、対象 path の exact coverage regression のみ。 - dependency_ordering:
- mode: stacked
- upstream_pr: 1643
- base_ref: worktree-issue-1593-scope-rollup-run-github-inventory-pagina
- merge_target: upstream_pr_head_branch
- final_ci_owner: 1643
- main_merge_order: integrate_1644_into_1643, fix_existing_preflight_regressions, rerun_1643_current_head_ci, merge_1643_to_main
Delivery Rule
- 1 Issue = 1 PR
- 実装: scope-rollup GraphQL pagination テストを python-test plan へ登録する #1644 は PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 branch を base にする stacked Draft PR として起票する
- 実装: scope-rollup GraphQL pagination テストを python-test plan へ登録する #1644 の変更は PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 branch に統合し、最終CIの所有者は PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 とする
Closes #1644は non-default base では使わず、fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 が main へ merge された後に 実装: scope-rollup GraphQL pagination テストを python-test plan へ登録する #1644 を readback して close 条件を確認する- 実装: scope_rollup.run の GitHub inventory を完全 pagination で取得する #1593 の Allowed Paths を拡張しない
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phasetriage-requiredNeeds owner triage for priority decision
Activity
squne121 commentedon Jul 19, 2026
判定
REQUEST_CHANGES —
reframe_in_place。tests/codex/test_scope_rollup_graphql_pagination_v3.pyを python-test plan の SSOT に登録する方針自体は正しいです。現行の plan は pytest 実行対象とci_test_selection/v1の双方を生成する正本であり、新規テストは network 不要の fake transport を使っているため、github_liveへ逃がすべきではありません。ただし、現在の Issue 契約は依存順序が循環し、Outcome を達成不能です。
マージブロッカー
P0-1.
1 Issue = 1 PRのままでは循環依存になる#1644 は PR #1643 と別PRにする契約ですが、登録対象ファイルは PR #1643 で新規追加されたもので、現行
mainにはありません。一方、plan loader の--check-pathsは登録された全 path の実在を強制します。したがって、mainから作った通常の #1644 PR は、対象ファイルを plan に追加した瞬間に AC1 が失敗します。逆に PR #1643 を先に
mainへマージしようとしても、current-head CI は失敗しています。つまり現状は次の循環です。推奨は、plan 登録を PR #1643 に統合することです。1 Issue = 1 PR を絶対維持するなら、#1644 PR の base を
mainではなく PR #1643 の head branch にする stacked PR とし、明示的な統合順序を契約化する必要があります。GitHub の PR は任意の branch を base にできますが、非 default branch 向けPRではCloses #1644の自動 close は機能しません。([GitHub Docs]1)P0-2. #1644 だけ直しても PR #1643 の
python-testは成功しないPR #1643 current head
8da7a1d4bab37f497c8fb7c5ccf8c6b0c3e8e998の CI は、python-testとnode-backed-hook-testsが failure です。current-head の
python-test-junit-1artifact を展開すると、結果は次のとおりでした。失敗しているのはすべて既存の
tests/codex/test_run_scope_rollup_preflight.pyです。test_pagination_truncation_fails_closedtest_total_count_mismatch_fails_closedtest_pr_files_pagination_completes_past_100test_pr_files_pagination_incomplete_fails_closedtest_cleanup_across_all_exit_pathstest_manifest_fields_recordedtest_stdout_stderr_separation旧
gh issue/pr list前提の fake command dispatcher が、新しいgh api graphqlをunexpected gh argsとして拒否しています。artifact 自体は current head に結び付いたものです。[展開結果の要約](sandbox:/mnt/data/pr1643-python-test-failures.txt)
しかし、#1644 の Allowed Paths にはこの既存テストファイルがありません。したがって、#1644 の Outcome にある「PR CI が成功する」は、現行 scope では成立しません。
これは既に Stop Condition に該当しています。対応は次のどちらかです。
tests/codex/test_run_scope_rollup_preflight.pyを追加し、PR fix(scope-rollup): GitHub inventory を完全 pagination 化 #1643 内で既存 fixture を GraphQL transport に移行する。P0-3. #1644 PR 自身の artifact では元の uncovered failure を証明できない
ci_test_selection/v1は明示的なbase_sha...head_shaの diff から changed test files を抽出します。stacked PR とした場合、pagination test は #1644 の base branchである PR #1643 側に既に存在します。そのため、#1644 PR の changed files には pagination test が含まれず、#1644 の artifact が緑でも、元の uncovered failure を直接再現・解消した証拠にはなりません。
最終証跡は #1644 の変更を取り込んだ後の PR #1643 current-head CI に固定すべきです。GitHub の required check も最新 commit SHA に対して成功している必要があります。([GitHub Docs]2)
ACには少なくとも次を要求してください。
High priority
P1-1. AC3 の regression test が曖昧
「追加または更新する」では実装者が弱い mock test を追加して終了できます。既存の
test_generate_artifact_pr_body_validator_is_coveredと同じ強度に固定すべきです。指定すべき assertion は以下です。
テスト名も固定してください。
P1-2. Parent #1059 の closure contract と不整合
#1644 は
parent_issue: "1059"を宣言していますが、#1059 の child-complete 条件には #1060/#1061/#1063/#1064 しかありません。現状では #1644 が open のままでも parent を close できます。次のいずれかが必要です。
parent_issueをnoneに変更し、related_parent_goal: "#1059"のような非 closure dependency にする。P1-3.
Scope Collisionの「並行可能」は誤り対象 test file の存在、plan path validation、PR #1643 の changed-file evidence が相互依存しています。単なる「同時変更時は新しいPRを rebase」では足りません。
P1-4. 個別ファイル列挙は再発しやすい
現行 plan は
tests/codex/配下を directory target にせず、多数のファイルを個別列挙しています。今回の uncovered はこの運用の自然な再発です。pytest は directory を target として再帰的に収集できるため、長期的には
tests/codex/全体を対象にし、専用 lane・runtime-only test・除外対象だけを明示的に分類する方が保守しやすいです。([pytest ドキュメント]3)ただし、これは #1644 で即変更すると dedicated lane と二重実行する危険があるため、別 hardening issue が適切です。最低限、今後は「新規 Python test file が plan、secondary coverage、runtime-only exemption のいずれにも属さない場合に失敗する」directory-wide guard を検討すべきです。
改訂後の完了条件
#1644 は次の形に修正するのが妥当です。
tests/codex/test_run_scope_rollup_preflight.pyの7件の failureは 実装: scope_rollup.run の GitHub inventory を完全 pagination で取得する #1593 側で解消する。python-testとnode-backed-hook-testsを成功させる。ci_test_selection/v1で対象 test が collected かつ uncovered なしであることを証跡化する。登録漏れの修正方針は妥当ですが、現状の Issue は単独実装可能な作業として定義されていません。依存順序、既存 regression migration、最終証跡の所有PRを先に固定しない限り、実装開始不可です。
squne121 commentedon Jul 19, 2026
Refinement Loop: Human Escalation Required
The loop has terminated and requires human review. Cause: human judgment required
human_escalationhuman_judgment_requiredBlockers
fix: #1644 python-test-plan registration regression tests を統合する