Repository navigation
Description
Parent Issue
Machine-Readable Contract
contract_schema_version: 1
issue_kind: implementation
parent_issue: "2155"
goal_ref: "docs/dev/current-focus.md#M5"
change_kind: codeParent Goal Ref
- Goal: 検証: #2119 AC9/AC10 の close-grade 実CI証跡を確認する #2155(M5 delivery close verification)
- Desired Destination: 本 defect の発見により 検証: #2119 AC9/AC10 の close-grade 実CI証跡を確認する #2155 の実dispatch検証作業が一時停止している。本 Issue の修正後に 検証: #2119 AC9/AC10 の close-grade 実CI証跡を確認する #2155 側の検証を再開する。
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
dispatch_workflow_run()に、reliability_evidence=Trueのときinputs["reliability_experiment_identity"] = experiment_idを追加する変更(experiment_idパラメータは既存でdispatch_workflow_runに渡されている)。- 対応する既存テスト(
scripts/ci/tests/e2e_performance_benchmark/test_collect_e2e_performance_benchmark.py、実装: collect_e2e_performance_benchmark.py の run-experiment が reliability_evidence input を配線しておらず Reliability track 全体が構造的にブロックされる問題を修正する #2585/PR #2586で追加されたreliability_evidence関連テストの近く)への追加。
Out of Scope
.github/workflows/ci.yml側の変更(reliability_experiment_identityinputは既に実装済み、変更不要)build_ci_reliability_assessment_v1.py側のmetadata binding検証ロジック変更(既存のfail-closed設計は正しい)- 44-run(blocks=22)の実行そのもの
Acceptance Criteria
- AC1:
dispatch_workflow_run(..., reliability_evidence=True, experiment_id="foo")を呼んだ際、dispatchされるinputsdictに"reliability_experiment_identity": "foo"が含まれる。 - AC2:
reliability_evidence=False(デフォルト)の場合、inputsdictにreliability_experiment_identityキーが含まれない(既存挙動の完全な後方互換)。 - AC3: 既存の
reliability_evidence関連テスト(実装: collect_e2e_performance_benchmark.py の run-experiment が reliability_evidence input を配線しておらず Reliability track 全体が構造的にブロックされる問題を修正する #2585/PR #2586で追加)が変更なしで引き続きPASSする。
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 -qAllowed 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 として作成する。
関連
- Parent: 検証: #2119 AC9/AC10 の close-grade 実CI証跡を確認する #2155(M5 delivery close verification、この defect発見により作業が一時停止中)
- 背景: 実装: collect_e2e_performance_benchmark.py の run-experiment が reliability_evidence input を配線しておらず Reliability track 全体が構造的にブロックされる問題を修正する #2585/feat: run-experiment に reliability_evidence input 配線を追加する #2586(reliability_evidence配線修正、類似パターン), 実装: 実CI raw attemptsからReliability V1 close evidenceをproduction生成する #2424(reliability_experiment_identity input導入)
Activity
squne121 commentedon Sep 8, 2026
implement-issue: 実装完了 (2026-09-08T16:52:15Z)
.claude/worktrees/issue-2592-reliability-experiment-identityworktree-issue-2592-reliability-experiment-identityfix: dispatch_workflow_run に reliability_experiment_identity input を配…