Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "main の python-test CI が test_baseline_vc_preflight_parallel.py の到達不能な orphaned commit SHA 参照により red になっている問題を修正する"
change_kind: codeParent Issue
none(単独改善)
Parent Goal Ref
- Goal: N/A(単独改善)
- Desired Destination: N/A(単独改善)
Current Validated Scope
- .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py の _PRE_1338_BASELINE_REV = "e375b3a1^"(516行目)と、それを _load_legacy_baseline_module()(519行目)経由で参照する test_p1_1_max_workers_one_semantically_equivalent_to_legacy_baseline(549行目)
Remaining Parent Gaps
なし
Outcome
.claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py が main から到達可能な安定参照(コミット SHA または fixture ファイル)だけを使うように修正され、uv run pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py -q が実行環境の clone 深度や特定コミットの残存に依存せず安定して PASS する状態になる。
In Scope
- _PRE_1338_BASELINE_REV = "e375b3a1^"(main の祖先ではなく、.github/workflows/ci.yml の shallow checkout(fetch-depth 未指定)では取得不可能)を、main から到達可能な安定参照に置き換える
- 案A: 実際のマージコミット 0e9bbb0 の親コミットを参照する
- 案B: 該当バージョンの baseline_vc_preflight.py を fixture ファイルとしてリポジトリに固定保存し、git show に依存しない形に変更する
- どちらを採用するかは実装時に repo 実体(該当コミットの到達可能性・過去の baseline 内容の一致)を確認して決定する
- 上記修正により test_p1_1_max_workers_one_semantically_equivalent_to_legacy_baseline が git show の exit 128 failure なく安定して PASS すること
Out of Scope
- .claude/skills/open-pr/scripts/tests/test_open_pr_overlap_gate.py の expires_on ハードコード期限切れ(既存 Issue 実装: overlap_readback_waiver の期限切れによる main CI python-test red を修正する #1518 が対応範囲)
- baseline_vc_preflight.py 本体の並列実行ロジック・仕様変更
- CI workflow(.github/workflows/ci.yml)の checkout fetch-depth 設定変更(本 Issue のテスト側修正のみで解決可能なため対象外)
Acceptance Criteria
- AC1: _PRE_1338_BASELINE_REV がもはや到達不能な "e375b3a1^" を参照していない
- AC2: test_p1_1_max_workers_one_semantically_equivalent_to_legacy_baseline が単体実行で PASS する
- AC3: test_baseline_vc_preflight_parallel.py 全体が回帰なく PASS する
- AC4: pnpm typecheck が PASS する
- AC5: pnpm lint が PASS する
- AC6: pnpm test が PASS する
- AC7: pnpm build が PASS する
Verification Commands
# AC1
# baseline-expect: pass
$ rg -n _PRE_1338_BASELINE_REV .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py
# AC2
$ uv run pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py::test_p1_1_max_workers_one_semantically_equivalent_to_legacy_baseline -q
# AC3
$ uv run pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py -q
# AC4
$ pnpm typecheck
# AC5
$ pnpm lint
# AC6
$ pnpm test
# AC7
# preflight-scope: pr_review_only
$ pnpm buildAllowed Paths
- .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
Required Skills
なし
Required Design References
- Issue 実装: overlap_readback_waiver の期限切れによる main CI python-test red を修正する #1518(squne121/loop-protocol) — 同一 main CI 障害調査の中で発見された関連バグ(overlap_readback_waiver 期限切れ)。本 Issue のスコープ外だが同一発見元
- .github/workflows/ci.yml — python-test job の checkout step(fetch-depth 未指定・shallow clone)が本バグの前提条件
.claude/skills/issue-contract-review/SKILL.md— issue-contract-review スキルの VC preflight 仕様の正本.claude/skills/issue-contract-review/references/vc-preflight.md— baseline_vc_preflight.py の baseline 参照/並列実行モデルの設計ドキュメント
Scope Delta(任意)
N/A
Notes for Reviewer
発見元は Issue #1283 の impl-review-loop 実行中、main HEAD 0e9bbb0(CI run: https://github.com/squne121/loop-protocol/actions/runs/29331249700)で python-test job が2件の無関係なバグで red だったことに気づいたこと。もう一方のバグ(test_open_pr_overlap_gate.py の expires_on ハードコード期限切れ)は既存 OPEN Issue #1518 が対応範囲としてカバーしており、当該 Issue 本文でも本バグ(test_baseline_vc_preflight_parallel.py)を明示的に Out of Scope としているため、重複起票を避けるためこちらの Issue で切り出している。
git merge-base --is-ancestor e375b3a origin/main は非0を返し、e375b3a1 は main の祖先ではないことを確認済み。
Runtime Verification Applicability
本 Issue の変更対象はワークフロー文書・スクリプトのみです。ゲームの実行時動作には影響しません。
decision: not_applicable
reason: "Workflow documentation and script changes only. No runtime game behavior changed."
Activity
squne121 commentedon Jul 14, 2026
Contract Review Result
squne121 commentedon Jul 14, 2026
Contract Review Result
squne121 commentedon Jul 14, 2026
implement-issue: 実装不要(既に main で解消済み)
Overlap preflight (
check_implementation_overlap.py)route: human_review_required(source.saturated: true, OPENphase/implementationIssue が158件で収集上限100件を超過したため)。独立 readback の結果、Allowed Pathsが literal 一致する候補は無く、本 Issue 本文で言及されている唯一の関連 Issue #1518 は対象ファイルが異なる(test_open_pr_overlap_gate.pyvs 本 Issue のtest_baseline_vc_preflight_parallel.py)上、相互に明示的に Out of Scope として排他関係を宣言している。disjoint と判断し実装調査へ進んだ。sha256:83a2cd2bca3b652556d60b530f31511fd0f30c2068d68216cef88ae641f52f8csha256:3a4181be111648e58c901a6a2eb63c22b898e6427ee41e50b00a742113fd3dfb調査結果
worktree を作成し
origin/main(HEAD7e6b3de17006d181666fb6320903fb9feec21992)まで rebase したところ、本 Issue が対象とする_PRE_1338_BASELINE_REV = "e375b3a1^"および_load_legacy_baseline_module()/test_p1_1_max_workers_one_semantically_equivalent_to_legacy_baselineは、無関係の先行 PR で既に削除されていました。7e6b3de1「fix(ci): review shadow と再実行を provenance 集約する (実装: CI_VERDICT_SUMMARY_V1 のreview event重複skipped check誤集約を防ぐ #1456) (fix(ci): review shadow と再実行を provenance 集約する (#1456) #1505)」git show e375b3a1^:...で動的ロードして比較する方式を廃止し、test_p1_1_max_workers_one_preserves_documented_serial_contractという自己完結型のハードコード期待値テストに置き換え済み。_PRE_1338_BASELINE_REV/_load_legacy_baseline_moduleの参照は現在 main に一切存在しません。AC 検証結果(追加コード変更なしで全て満たされている)
rg -n _PRE_1338_BASELINE_REV .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py→ exit 1(no match)。参照は既に存在しない。uv run pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_parallel.py -q→28 passed(対象テストは名称変更の上で存在し、単体・全体ともに PASS)。結論
本 Issue が記述する defect は main 上で既に解消されているため、Allowed Paths(
test_baseline_vc_preflight_parallel.py)内に追加すべき差分がありません。空の diff で PR を起票するのは1 Issue = 1 PR原則上望ましくないため、PR は起票せず本コメントで報告します。人間判断をお願いします: 本 Issue を「既に解消済み」としてクローズするか、あるいは main CI の現状(
pytest python suite (parallel)step)が実際に green であることを別途確認した上でクローズを判断してください。squne121 commentedon Jul 14, 2026
本 Issue が報告した不具合は、無関係な PR #1505(commit 7e6b3de)が side effect として解消済みです。
_PRE_1338_BASELINE_REVを含む legacy-baseline 比較機構自体が削除され、test_p1_1_max_workers_one_preserves_documented_serial_contractという自己完結型テストに置き換えられています。現在の main(7e6b3de1)でtest_baseline_vc_preflight_parallel.pyは 28 passed で green です。本 Issue のための追加実装は不要と判断し、クローズします。