Skip to content

実装: #2119 AC6 required-machine-evidence regression VC を構造的検証へ強化する(responsive-canvas-runtime-evidence / ci-runtime-baseline-*) #2679

Closed

Description

@squne121

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: code

Parent Issue

none

Parent Goal Ref

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-artifact step の 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-core job line ~424, e2e-responsive-matrix job 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-core job、e2e-responsive-matrix job)の 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

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-core job、e2e-responsive-matrix job の両方)の 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 test

Allowed 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

  1. added
    enhancement
    phase/implementation
    triage-required
    agent/implementer
    on Sep 20, 2026
  2. squne121 commented on Sep 20, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了 (2026-09-20T01:19:34Z)

    • PR: test: ci-runtime-baseline / aggregate-e2e evidence VC を構造的検証へ強化する #2681 (Draft)
    • Worktree: .claude/worktrees/issue-2679-ci-lane-partition-if-no-files-found
    • Branch: worktree-issue-2679-ci-lane-partition-if-no-files-found
    • Verification: pytest (対象2ファイル → tests/ci/ 全体) / pnpm typecheck / pnpm lint / pnpm test / pnpm build すべて PASS
      • tests/ci/test_ci_workflow_lane_partition.py -q: 6 passed, 1 skipped
      • tests/ci/test_verify_e2e_lane_partition.py -q: 5 passed, 2 skipped
      • tests/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 skipped
      • git diff --exit-code --stat .github/workflows/ci.yml: diff なし(AC5)
      • pnpm typecheck / pnpm test: PASS(AC6)
    • 後続: PR レビュー(pr-review-judge)→ マージ → post-merge-cleanup
  3. squne121 commented on Sep 20, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了 (2026-09-20T02:05:00Z)

    IMPL_REVIEW_LOOP_RESULT_V1:
      schema_version: 1
      status: draft_pr_ready
      pr_url: "https://github.com/squne121/loop-protocol/pull/2681"
      head_sha: "63ad6205e4ce5ac2009eeada48b6e4388ca3300e"
      issue_number: 2679
      termination_reason: approved
      merge_ready: true
      iteration: 1
    
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: impl-review-loop
      follow_up_issues: []
      note_only_observations: []
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/implementationtriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions