Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "Issue #2119 AC6 が要求する『required machine evidence の artifact upload step を workflow YAML から構造的に parse して if-no-files-found を直接検証する VC』を実際の regression test として満たし、コメント/自由記述文字列一致による false-green を排除する"
change_kind: codeParent Issue
none
Parent Goal Ref
- Goal: Issue 実装: CI: Playwright E2E の responsive matrix を専用 lane へ分離し critical path を短縮する #2119(実装は PR feat: Playwright E2E responsive matrix を専用 lane へ分離する #2137 で merged 済み)の AC6 が要求する contract と、実際の regression-proof (VC) の乖離を解消する
- Desired Destination: N/A(単独 follow-up)
Current Validated Scope
tests/ci/test_ci_workflow_lane_partition.py::test_aggregate_e2e_uses_needs_and_if_always_and_distinguishes_three_failure_modes(line 77 付近)は現在"if-no-files-found: error" in steps_text or "runtime evidence" in steps_textという free-text fallback を持ち、実際の YAML 構造を見ずにコメント文字列だけで PASS しうる。tests/ci/test_verify_e2e_lane_partition.pyには_collect_upload_artifact_names(job: dict)という既存 helper(job dict からactions/upload-artifactstep の artifact name を収集)があり、responsive-canvas-runtime-evidenceファミリーのif-no-files-found == "error"を構造的に assert する既存テストが存在する(line 113-135 付近)。この helper はif-no-files-foundを含むメタデータ抽出へ拡張して再利用できる。.github/workflows/ci.ymlのci-runtime-baseline-*artifact(e2e-corejob line ~424,e2e-responsive-matrixjob line ~544)は現在すでにif-no-files-found: errorになっている(production behavior は正しい)が、これを構造的に検証する regression test が存在しない。
Remaining Parent Gaps
なし(単独 follow-up のため親 Issue に残す gap はない)
Outcome
tests/ci/test_ci_workflow_lane_partition.py の AC6 該当テストから free-text fallback を除去し、tests/ci/test_verify_e2e_lane_partition.py の既存 helper を再利用/拡張して responsive-canvas-runtime-evidence と ci-runtime-baseline-*(e2e-core / e2e-responsive-matrix 両 job)の if-no-files-found: error を workflow YAML の構造から直接検証する regression test を追加する。あわせて、これらのテストが「if-no-files-found を warn に変えたら FAIL する」「コメントに runtime evidence と書いただけでは PASS しない」ことを検証する false-positive fixture テストを追加する。.github/workflows/ci.yml の production behavior は変更しない(既に正しいため)。完了条件は全 AC の VC PASS と Draft PR 作成。
Runtime Verification Applicability
decision: not_applicable
reason: "本 Issue の全 AC はローカルの pytest 実行のみで検証可能な static/deterministic contract であり、GitHub Actions 上の runtime dispatch を必要としない(.github/workflows/ci.yml 自体は変更しないため、実 CI run の実行証跡も不要)。"
execution_environment: "local (uv run pytest)"
applicable_acs: []
skip_conditions:
- "AC1-AC6 は全て local/deterministic 検証のため GitHub Actions runtime evidence を要求しない"
fallback_policy:
fallback_success_is_pass: false
notes: "N/A"
artifact_requirements: []In Scope
test_aggregate_e2e_uses_needs_and_if_always_and_distinguishes_three_failure_modesからor "runtime evidence" in steps_textの free-text fallback を除去し、構造的 parse のみの assertion に置き換えるci-runtime-baseline-*(e2e-corejob、e2e-responsive-matrixjob)の upload step を、job/step/artifact name-path からif-no-files-found == "error"を直接 assert する新規または拡張テストをtests/ci/test_verify_e2e_lane_partition.py(またはtest_ci_workflow_lane_partition.py、既存の配置方針に従う)に追加する- 既存 helper(
_collect_upload_artifact_names等)を再利用・必要ならif-no-files-foundも返すよう拡張する(新規 parser の重複実装をしない) - 上記テストに対する false-positive regression fixture(synthetic/fixture job dict を用いて
if-no-files-found: warnに変更したら FAIL すること、コメントのみで実フィールドがない場合は PASS しないことを検証する)を追加する
Out of Scope
ci-reliability-*artifact family(workflow_dispatchinput でゲートされた別 job 挙動であり、aggregatee2ejob のneedsにも含まれず、Reliability V1 初期実装(CLOSED 済みの 実装: 実CI raw attemptsからReliability V1 close evidenceをproduction生成する #2424/実装: Reliability V1: workflow-run 統計単位と power contract を整合させる #2432/実装: #2423/#2424 の close-grade result を close_evidence.json bundle に束ねる producer/validator を実装する #2486/実装: close-evidence bundle を手動 workflow_dispatch で build→validate→artifact upload→publication receipt まで配線する #2555 chain)が所有する別ドメインのため、本 Issue では対象化しない。将来必要なら別 Issue とする).github/workflows/ci.ymlの production behavior 変更(現状すでに正しいため)- PR feat: Playwright E2E responsive matrix を専用 lane へ分離する #2137 のトポロジー実装の再実装
- 新規 schema / provenance framework / broker の追加
- lane selector framework の変更
Acceptance Criteria
- AC1:
test_aggregate_e2e_uses_needs_and_if_always_and_distinguishes_three_failure_modesの assertion から"runtime evidence" in steps_textという free-text fallback が完全に除去されており、判定が構造的 parse(job/step/withブロックのif-no-files-found値の直接確認)のみに基づく。 - AC2:
ci-runtime-baseline-*artifact(e2e-corejob、e2e-responsive-matrixjob の両方)の upload step について、actions/upload-artifactのwith.if-no-files-foundが"error"であることを、workflow YAML を構造的に parse して検証する regression test が存在する。 - AC3: 上記2件の regression test は、対象 job の
if-no-files-foundを fixture 上で"warn"に変更すると FAIL する(false-negative を防ぐ)ことを、別途の fixture-based unit test で検証している。 - AC4: 上記2件の regression test は、対象の
if-no-files-foundフィールドを持たず単に"runtime evidence"という文字列をコメント/別フィールドに含むだけの fixture では PASS しない(false-positive を防ぐ)ことを、別途の fixture-based unit test で検証している。 - AC5:
.github/workflows/ci.ymlに diff がない(production behavior 無変更であることをgit diff --stat .github/workflows/ci.yml相当で確認する)。 - AC6:
pnpm typecheck/pnpm testが PASS する。
Verification Commands
# AC1
$ uv run --locked pytest tests/ci/test_ci_workflow_lane_partition.py -q
# AC2
$ uv run --locked pytest tests/ci/test_verify_e2e_lane_partition.py -q
# AC3
$ uv run --locked pytest tests/ci/test_verify_e2e_lane_partition.py -k "false_negative or fixture" -q
# AC4
$ uv run --locked pytest tests/ci/test_verify_e2e_lane_partition.py -k "false_positive or fixture" -q
# AC5
$ git diff --exit-code --stat .github/workflows/ci.yml
# AC6
$ pnpm typecheck
$ pnpm testAllowed Paths
- tests/ci/test_ci_workflow_lane_partition.py
- tests/ci/test_verify_e2e_lane_partition.py
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
.github/workflows/ci.ymlの変更が必要と判明した場合ci-reliability-*を対象に含める必要が生じた場合(別 Issue とする)- 新規 lane/selector framework が必要になった場合
- Allowed Paths 外のファイル変更が必要になった場合
- 既存
_collect_upload_artifact_names等の helper だけでは表現できない大規模な parser 新設が必要になった場合
Required Skills
- ci-test-performance
- GitHub Actions(ドメイン知識)
- YAML/pytest
Required Design References
- .github/workflows/ci.yml
- tests/ci/test_verify_e2e_lane_partition.py
- tests/ci/test_ci_workflow_lane_partition.py
Scope Delta(任意)
N/A
Delivery Rule
1 Issue = 1 PR を原則とする。worktree で作業し、Draft PR を既定とする。
Notes for Reviewer
本 Issue は #2119(実装済み、PR #2137 merged)の issue-refinement-loop Run 3 終了報告(issuecomment-5746485436)で識別された medium-severity 残存ギャップの follow-up です。#2155 は別 Issue で異なる意味の「AC6」(close_evidence.json の digest binding、artifact integrity 検証、コード変更なし)を持っており、本 Issue の AC6 とは無関係です(混同しないこと)。
Scope Collision (C1, overlap preflight advisory): Allowed Paths の tests/ci/test_ci_workflow_lane_partition.py / tests/ci/test_verify_e2e_lane_partition.py は #2119 の Allowed Paths と重複する(tests/ci を broad path として含むため)。non_conflict_reason: 本 Issue は #2119 の実装済み VC の regression 強化 follow-up であり、#2119 自体は既に PR #2137 で merged 済みのため実装コンフリクトは想定されない。#1390 / #420 の重複は tests broad path 一致による false positive。
Activity
squne121 commentedon Sep 20, 2026
implement-issue: 実装完了 (2026-09-20T01:19:34Z)
.claude/worktrees/issue-2679-ci-lane-partition-if-no-files-foundworktree-issue-2679-ci-lane-partition-if-no-files-foundtests/ci/test_ci_workflow_lane_partition.py -q: 6 passed, 1 skippedtests/ci/test_verify_e2e_lane_partition.py -q: 5 passed, 2 skippedtests/ci/test_verify_e2e_lane_partition.py -k "false_negative or fixture": 1 passed (AC3)tests/ci/test_verify_e2e_lane_partition.py -k "false_positive or fixture": 1 passed (AC4)tests/ci/全体: 119 passed, 8 skippedgit diff --exit-code --stat .github/workflows/ci.yml: diff なし(AC5)pnpm typecheck/pnpm test: PASS(AC6)squne121 commentedon Sep 20, 2026
impl-review-loop: 完了 (2026-09-20T02:05:00Z)
test: replace substring artifact matching with contract-bound identif…
test: ci-runtime-baseline / aggregate-e2e evidence VC を構造的検証へ強化する (#2681