Skip to content

実装: run-experiment の workflow_dispatch が reliability_experiment_identity input を配線しておらずPlaywright metadata照合が常にfail-closedする問題を修正する #2592

Closed

Description

@squne121

Parent Issue

#2155

Machine-Readable Contract

contract_schema_version: 1
issue_kind: implementation
parent_issue: "2155"
goal_ref: "docs/dev/current-focus.md#M5"
change_kind: code

Parent Goal Ref

Current Validated Scope

scripts/ci/collect_e2e_performance_benchmark.py の dispatch_workflow_run() に reliability_experiment_identity input の配線を追加する変更のみ。#2585/PR #2586 で追加済みの reliability_evidence 配線パターンを踏襲する。

Remaining Parent Gaps

本 Issue の修正後、#2155 の44-run(blocks=22)実dispatch検証を再開する必要がある(本 Issue の Scope 外)。

Outcome

scripts/ci/collect_e2e_performance_benchmark.py の dispatch_workflow_run() が reliability_evidence=True の場合に reliability_experiment_identity を inputs へ追加するよう修正され、scripts/ci/tests/e2e_performance_benchmark/test_collect_e2e_performance_benchmark.py に対応するテストが追加されたコミット/PRが作成される。これにより run-experiment --reliability-evidence 経由の real dispatch で Playwright metadata の experiment_identity が manifest と一致し、build_ci_reliability_assessment_v1.py の playwright_metadata_binding_mismatch fail-closed が解消される。

Runtime Verification Applicability

  • decision: not_applicable
  • reason: 本 Issue の AC は pytest による決定論的検証のみで完結する。実 workflow_dispatch による reproduction は本 Issue 起票前に既に実施済み(Background 参照)であり、本 Issue 自体のスコープは Python 関数の単体修正とその pytest 検証に限定される。

Background

dispatch_workflow_run()(#2585/PR #2586でreliability_evidenceは既に配線済み)は、.github/workflows/ci.ymlのworkflow_dispatch.inputs.reliability_experiment_identity(114行目付近)を一切送信していない。

このinputは RELIABILITY_EXPERIMENT_IDENTITY env var として e2e-core / e2e-responsive-matrix job内の各Playwright invocation step(例: 992行目付近の"Run E2E tests (timed)"ステップ)に渡され、Playwright JSON reporterのmetadataへ埋め込まれる。scripts/ci/build_ci_reliability_assessment_v1.py(#2424 Reliability close-grade builder)は、この埋め込まれたmetadataのexperiment_identityと、manifest(#2422)のexperiment_identityフィールドが一致することを検証し、不一致はplaywright_metadata_binding_mismatchとしてfail-closedする。

dispatch_workflow_run()がreliability_experiment_identityを送らないため、この値は常に空文字列(workflow_dispatchのデフォルト値)のままPlaywright metadataに埋め込まれ、manifest側のexperiment_identity(--experiment-id由来)と必ず不一致になり、reliability-assessment jobが常にfail-closedする。

Reproduced current-main evidence

fresh main 634dee60fb41599f1b3aec1ecb1eb09c0062aa86(#2585/#2586、#2589/#2590マージ後)からrun-experiment --blocks 1 --reliability-evidenceでmonolith run 34251753292・split run 34251757992を実dispatchし、両run成功・gate-ready/reliability evidence artifactとも正常に生成されたことを確認済み。生成されたmanifest/receiptでreliability-assessment job(run 34252979414)をdispatchしたところ、Build 3 assessments + validate + aggregate + canonical outputステップが失敗し、composite_envelope_diagnostic.jsonに以下が記録された:

playwright_metadata_binding_mismatch: layout=monolith workflow_run_id=34251753292 invocation_id=e2e-core field=experiment_identity expected='issue-2155-blocks1-preflight-v4-20260908T163311Z' observed=''

(split側・e2e-responsive側も同様)。

Owner surface

scripts/ci/collect_e2e_performance_benchmark.py(dispatch_workflow_run(), run_bounded_experiment(), execute_bounded_experiment_to_manifest_v2(), parse_run_experiment_args(), main_run_experiment() — #2585/PR #2586でreliability_evidence配線に使ったのと同じ関数群)

In Scope

Out of Scope

  • .github/workflows/ci.yml側の変更(reliability_experiment_identity inputは既に実装済み、変更不要)
  • build_ci_reliability_assessment_v1.py側のmetadata binding検証ロジック変更(既存のfail-closed設計は正しい)
  • 44-run(blocks=22)の実行そのもの

Acceptance Criteria

Verification Commands

# AC1
$ uv run pytest scripts/ci/tests/e2e_performance_benchmark/test_collect_e2e_performance_benchmark.py -q -k test_dispatch_workflow_run_reliability_evidence_true_adds_input_key
# AC2
$ uv run pytest scripts/ci/tests/e2e_performance_benchmark/test_collect_e2e_performance_benchmark.py -q -k test_dispatch_workflow_run_reliability_evidence_false_keeps_exact_four_keys
# AC3
$ uv run pytest scripts/ci/tests/e2e_performance_benchmark/test_collect_e2e_performance_benchmark.py -q

Allowed Paths

  • scripts/ci/collect_e2e_performance_benchmark.py
  • scripts/ci/tests/e2e_performance_benchmark/test_collect_e2e_performance_benchmark.py

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

なし

Required Design References

  • docs/dev/current-focus.md#M5

Delivery Rule

1 Issue = 1 PR。worktree で作業し、Draft PR として作成する。

関連

Activity

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

    @squne121
    OwnerAuthor

    implement-issue: 実装完了 (2026-09-08T16:52:15Z)

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