Skip to content

fix: benchmark_layout=monolith|split dispatchでgate-ready latency evidenceを生成する - #2590

Merged
squne121 merged 1 commit into
mainfrom
worktree-issue-2589-ci-gate-ready-benchmark
Sep 8, 2026
Merged

squne121 merged 1 commit into
mainfrom
worktree-issue-2589-ci-gate-ready-benchmark

Conversation

@squne121

@squne121 squne121 commented Sep 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • ci-verdict-summary job(ci_runtime_baseline_v1 gate-ready latency artifact の唯一の producer)は benchmark_layout != '' の dispatch では entirely skip される。この結果、benchmark_layout=monolith|split の測定 run では gate-ready evidence が構造的に一度も生成されず、tests/ci/test_ci_performance_gate.py の production receipt builder が常に missing_gate_ready_evidence で fail-close し、Reliability close-grade トラック(検証: #2119 AC9/AC10 の close-grade 実CI証跡を確認する #2155 Phase 3〜Phase 7)が恒久的にブロックされていた(monolith run 34240022910 / split run 34240026234 の両方で ci-verdict-summary job conclusion=skipped を実 dispatch で確認済み)。
  • ci-verdict-summary job 本体(benchmark_layout=='' 通常 dispatch 時の動作)は一切変更せず、benchmark_layout=monolith|split 専用の新規 job ci-runtime-baseline-gate-ready(needs: [e2e])を追加し、同一の "Record gate-ready latency" / "Upload ci_runtime_baseline_v1" ロジックを duplicate した。artifact schema・artifact 名(ci-runtime-baseline-e2e-gate-ready-<run_attempt>)・"job": "e2e" フィールドは既存 producer と完全に同一のため、既存 consumer(scripts/ci/collect_e2e_performance_benchmark.py の DEFAULT_BEFORE_JOB_NAMES = ("e2e",))との互換性を維持する。
  • jobs["e2e"] 自体には手を加えていない(scripts/check-visual-artifact-pipeline.py AC13 guard が jobs.e2e への upload-artifact/download-artifact step 追加を禁止しているため、新規 job として切り出した)。

Checks

  • uv run actionlint .github/workflows/ci.yml(AC4) — exit 0
  • pnpm typecheck — 本 PR は .github/workflows/ci.yml のみを変更するため非該当(changed paths が TypeScript ソースを含まない)
  • pnpm lint — 同上、非該当
  • pnpm test — 同上、非該当
  • pnpm build — 同上、非該当
  • uv run --locked pytest tests/ci/ — 113 passed, 8 skipped(live .github/workflows/ci.yml を構造 parse する既存テスト群、含む test_ci_workflow_lane_partition.py / test_ci_reliability_production_wiring.py / test_visual_artifact_pipeline_e2e_core_ownership.py / test_verify_e2e_lane_partition.py)を回帰なしで PASS
  • uv run python3 scripts/check-visual-artifact-pipeline.py .github/workflows/ci.yml — status: pass(jobs.e2e に upload/download-artifact step を追加していないことを確認)
  • AC1〜AC3 は Issue 実装: benchmark_layout dispatch (monolith/split) で gate-ready latency evidence (ci_runtime_baseline_v1) が構造的に一度も生成されずReliability close-gradeが常にfail-closedする問題を修正する #2589 の ## Runtime Verification Applicability により decision: deferred(preflight-scope: runtime_only)。ローカル pytest では検証不能であり、benchmark_layout=monolith / benchmark_layout=split の実 workflow_dispatch による runtime verification は本 PR review 後(または 検証: #2119 AC9/AC10 の close-grade 実CI証跡を確認する #2155 Phase 3〜Phase 7 再開時)に行う

Schema Change Applicability

  • decision: not_schema_change
  • reason: 既存の ci_runtime_baseline_v1 schema(フィールド構成・artifact 名パターン)はそのまま再利用しており、schema 定義・キー集合・型は変更していない。producer job が 1 つ追加されるだけで、schema 自体の producer-consumer 契約に変更はない。

Schema Consumer Inventory

N/A(not_schema_change のため)。

Visual Impact Declaration(視覚影響申告)

本 PR は UI(DOM/CSS)コードを直接変更していないが、.github/workflows/ci.yml は scripts/agent-ops/resolve_visual_impact.py の META_POLICY_PATHS に含まれる meta policy path であるため、resolve_visual_impact.py の meta_policy_change 判定により登録済み全 surface(docs/dev/visual-surfaces.yml の combat-hud-running / combat-hud-critical)が保守的に affected として扱われる。両 surface とも実際のベースライン画像・コードは変更していないため verified_unchanged を申告する(disposition の正本は本ブロックではなく CI が独立生成する VISUAL_IMPACT_DECISION_V1 であり、component-vrt-report の canonical VRT 検証結果・evidence manifest binding で独立に検証される)。

schema: VISUAL_IMPACT_DECLARATION_V1
surfaces:
  - surface_id: combat-hud-running
    disposition: verified_unchanged
  - surface_id: combat-hud-critical
    disposition: verified_unchanged

Safety Claim Matrix

Claim Implemented? Not controlled Evidence Follow-up
新規 job ci-runtime-baseline-gate-ready は既存 ci-verdict-summary job の benchmark_layout==''(通常 dispatch)時の動作を一切変更しない yes uv run actionlint exit 0; uv run --locked pytest tests/ci/ 113 passed/8 skipped(ci-verdict-summary job の needs/steps を一切編集していないことを diff で確認) N/A
新規 job は top-level permissions: contents: read を継承するのみで、追加の書き込み権限・job-level permissions override を要求しない(既存 ci-verdict-summary job と同一の権限モデル) yes .github/workflows/ci.yml diff(job-level permissions: ブロックを追加していない) N/A
jobs.e2e 自体は編集していない(AC13 の視覚 artifact producer 契約 guard に抵触しない) yes uv run python3 scripts/check-visual-artifact-pipeline.py .github/workflows/ci.yml status: pass N/A
benchmark_layout=monolith/split の実 dispatch で gate-ready latency artifact が実際に生成される(AC1/AC2) partial ローカル環境では live workflow_dispatch を実行できないため未検証(Issue #2589 ## Runtime Verification Applicability: decision=deferred, preflight-scope: runtime_only) 静的な actionlint 構文検証のみ実施、実 dispatch 未実施 #2155(Reliability close-grade Phase 3〜Phase 7 再開時に benchmark_layout=monolith/split を実 dispatch して gh run view --json jobs / gh api .../artifacts で確認)

記載ルール確認: Not controlled が非空の行(AC1/AC2 runtime dispatch verification)について、PR title / summary で無限定の safe / complete は使用していない(「実 dispatch で確認済み」は monolith run 34240022910 / split run 34240026234 という具体的な run ID に限定した過去の観測事実の記述であり、本 PR の変更自体の実 dispatch 結果ではない)。

Notes

CI_TEST_PERFORMANCE_DECISION_V1

CI_TEST_PERFORMANCE_DECISION_V1:
  schema: CI_TEST_PERFORMANCE_DECISION_V1
  issue_number: 2589
  pr_number: 2590
  decision_scope: ci_change
  changed_paths:
    - .github/workflows/ci.yml
  lane_classification:
    fast_static:
      applicable: true
      evidence:
        - "uv run actionlint .github/workflows/ci.yml -> exit 0"
      required_commands:
        - "uv run actionlint .github/workflows/ci.yml"
    python_unit:
      applicable: true
      evidence:
        - "uv run --locked pytest tests/ci/ -> 113 passed, 8 skipped"
      required_commands:
        - "uv run --locked pytest tests/ci/"
    contract_artifact:
      applicable: true
      evidence:
        - "uv run python3 scripts/check-visual-artifact-pipeline.py .github/workflows/ci.yml -> status: pass"
      required_commands:
        - "uv run python3 scripts/check-visual-artifact-pipeline.py .github/workflows/ci.yml"
    integration:
      applicable: false
      evidence:
        - "AC1-AC3 (live workflow_dispatch verification) are preflight-scope: runtime_only per Issue #2589; deferred to PR review / #2155 re-run"
      required_commands: []
  baseline_inputs:
    ci_runtime_baseline_v1_available: false
    run_count: 0
    p50_p95_ready: false
  artifact_consistency:
    ci_test_selection_v1_checked: false
    missing_pytest_args: []
  risk_flags:
    - "AC1/AC2 (monolith/split live dispatch artifact generation) not verified locally; deferred per Issue #2589 Runtime Verification Applicability (decision=deferred)"
  reviewer_gate:
    approve_allowed: true
    required_evidence:
      - CI_CHECK_RUN_SCOPED
  follow_up_required:
    - "#2155 (Reliability close-grade Phase 3-7 re-run; includes AC1/AC2 live workflow_dispatch verification)"

…enceを生成する (#2589)

`ci-verdict-summary` job (`ci_runtime_baseline_v1` gate-ready latency
artifactの唯一のproducer) は `benchmark_layout != ''` のdispatchで
entirely skipされるため、monolith/split測定runでgate-ready evidenceが
構造的に一度も生成されず、Reliability close-gradeトラックが常に
`missing_gate_ready_evidence` でfail-closeしていた
(monolith run 34240022910 / split run 34240026234 で確認済み)。

`ci-verdict-summary` job本体(`benchmark_layout==''`時の動作)は一切
変更せず、`benchmark_layout=monolith|split` 専用の新規job
`ci-runtime-baseline-gate-ready`(`needs: [e2e]`)を追加し、同一の
"Record gate-ready latency" / "Upload ci_runtime_baseline_v1" ロジックを
duplicateする。artifact schema・名前・`"job": "e2e"` フィールドは既存
producerと完全に同一のため、既存consumer
(`scripts/ci/collect_e2e_performance_benchmark.py` の
`DEFAULT_BEFORE_JOB_NAMES`)との互換性を維持する。

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

github-actions Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

Preview removed (PR #2590 closed).

@squne121

squne121 commented Sep 8, 2026

Copy link
Copy Markdown
Owner Author

PR Review 判定 (iteration 0)

実装内容自体は妥当(AC4 actionlint PASS、AC1-3はruntime_only設計通りSKIP、Allowed Paths gate OK、diff内容がIssueの記述と一致、scope creepなし)。ただし .github/workflows/ci.yml が META_POLICY_PATHS(scripts/agent-ops/resolve_visual_impact.py)に該当するため、PR bodyに VISUAL_IMPACT_DECLARATION_V1 fenced yaml blockが必須(.github/pull_request_template.md)。現在のPR bodyはprose「該当なし」のみでblock欠落しており、これが原因で visual-impact-policy → ci-verdict-summary がfail(AC3違反: 既存CI checkが従来通りPASSしない)。

verdict: REQUEST_CHANGES
reviewed_head_sha: "a561853d0423324bfb1d0c02a4b269af0f432eb5"
blockers:
  - "AC3 violated: ci-verdict-summary job fails (overall_status='gh_error') because visual-impact-policy fails with 'no VISUAL_IMPACT_DECLARATION_V1 fenced block found'. .github/workflows/ci.yml is a META_POLICY_PATH requiring this declaration block per .github/pull_request_template.md. Fix: add a valid VISUAL_IMPACT_DECLARATION_V1 fenced yaml block to the PR body."
warnings:
  - "PR is currently Draft; not itself a blocker."
  - "visual-impact-policy-trusted also fails as a direct downstream consequence of the same root cause."

@squne121

squne121 commented Sep 8, 2026

Copy link
Copy Markdown
Owner Author

PR Review 判定 (iteration 1, re-review)

前回blocker(VISUAL_IMPACT_DECLARATION_V1欠落)は解消済み。残るci-verdict-summary FAILUREは独立検証によりpre-existing・PR外要因(follow-up #2587/#2591で追跡中)と確認、non-required checkのためblocker化しない。

verdict: APPROVE
reviewed_head_sha: "a561853d0423324bfb1d0c02a4b269af0f432eb5"
blockers: []
warnings:
  - "ci-verdict-summary (non-required) remains FAILURE; confirmed pre-existing on main (run 34238784703) due to missing CLASSIFICATION_MAP entries. Tracked by #2587 / #2591."

@squne121
squne121 marked this pull request as ready for review September 8, 2026 16:19
@squne121
squne121 merged commit 634dee6 into main Sep 8, 2026
100 of 126 checks passed
@squne121
squne121 deleted the worktree-issue-2589-ci-gate-ready-benchmark branch September 8, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant