Repository navigation
feat: ci.yml の evidence manifest producer を V3 schema/generic filename へ切り替える - #2388
Conversation
…e へ切り替える (#2384) Issue #2284 Phase A (PR #2379) で追加された V3 evidence manifest schema・ dual-read compatibility reader を実際に有効化する Phase B。 - Build evidence manifest ステップの CLI 呼び出しに `--evidence-manifest-schema v3` / `--run-id "$GITHUB_RUN_ID"` / `--run-attempt "$GH_RUN_ATTEMPT"` / `--head-sha "$GH_HEAD_SHA"` を追加 - 出力ファイル名を version-neutral な `visual_baseline_review_evidence.json` に統一(tmp 生成先・upload path・download 先・visual-impact-policy 側の `--evidence-manifest-file` 参照の全箇所) - Build/Upload step 名・job summary 見出しを V3 表記へ更新 - artifact 名 `component-vrt-evidence-manifest-${{ github.run_attempt }}` は Issue #2230 の attempt-specific naming 契約どおり変更なし Refs #2284, Refs #2379, Refs #2230 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Preview URL✅ verified live assets: https://squne121.github.io/loop-protocol/pr-2388/ The preview will be removed when this PR is closed. |
PR Review VerdictMergeability: mergeable=MERGEABLE, mergeStateStatus=CLEAN(人間マージ待ち) Evidence Check:
Blockers: なし Non-blockers (warnings):
verdict: APPROVE
reviewed_head_sha: "9cad64a7063ce1f012bb03cbadba75409e1ea576"
blockers: []
warnings:
- "PR body's Runtime Verification Evidence table cites older run IDs than the current-head fresh check-run IDs observed at review time; both SUCCESS at unchanged head, freshness note only." |
結論実装本体は APPROVE 寄りです。V3 producer 切替そのものに、マージを止める挙動上の欠陥は見つかりませんでした。 ただし、PR 全体の最終判定は現時点では 現在の PR は open・draft・衝突上は mergeable で、head は recommended_review: COMMENT
implementation_verdict: APPROVE
final_approval_blocker:
- current-body に対応した、自己無効化しない runtime evidence を残す
non_blocking_findings:
- V3 step 内に残った "V2 manifest" コメント
follow_up:
- "#2287 を #2388 マージ後の attempt-2 実走検証へ接続する"Findings[P1: 最終承認証跡] Runtime Evidence を PR 本文へ書く設計が自己無効化しているPR 本文では、runtime evidence 追記によって このリポジトリの GitHub の公式仕様でも、 既存レビューは「表の run ID は古いが、同一 head で双方 SUCCESS なので freshness warning に留まる」としています。 しかし、PR 本文が policy 入力なので、同一 head だけでは current body を評価した証明になりません。これは workflow 実装から導かれる推論です。 さらに現在は draft であり、 最小コストの修正新しい workflow、attestation、security harness は不要です。
PR コメントは 最終コメントには最低限、次を同じ組として記録すべきです。 head_sha: "<final head SHA>"
source_workflow_run_id: <final ci run id>
source_run_attempt: 1
source_visual_impact_policy: SUCCESS
trusted_consumer_workflow_run_id: <consumer run id>
trusted_check_run_id: <visual-impact-policy-trusted CheckRun id>
trusted_check_conclusion: SUCCESS
note: "This comment supersedes the Runtime Verification Evidence table in the PR body."現在の実装確認用の組は、source これは実装 blocker ではありませんが、最終 APPROVE の証跡 blockerです。 [P2] V3 producer の直下に
|
Runtime Verification Evidence(更新版・PR body Runtime Verification Evidence セクションを supersede)OWNER レビュー(https://github.com/squne121/loop-protocol/pull/2388#issuecomment-5459644421)の head_sha: "dc5ea9c9cdc0c2d05c45635224d2cbd86487e761"
source_workflow_run_id: 33227783432
source_run_attempt: 1
source_visual_impact_policy: SUCCESS
trusted_consumer_workflow_run_id: 33228235161
trusted_check_run_id: 99036067867
trusted_check_conclusion: SUCCESS
note: "This comment supersedes the Runtime Verification Evidence table in the PR body."補足
|
PR Review Verdict (fix_delta 再レビュー)Mergeability: mergeable=MERGEABLE, mergeStateStatus=CLEAN, isDraft=false(人間マージ待ち) OWNER named concern の解消確認 (#2388 (comment)):
P2 typo fix: Blockers: なし Non-blockers (warnings):
verdict: APPROVE
reviewed_head_sha: "dc5ea9c9cdc0c2d05c45635224d2cbd86487e761"
blockers: []
warnings:
- "PR body の Runtime Verification Evidence テーブルは旧 head/run ID のまま残存し、最終証跡はコメント側のみが supersede を宣言している。OWNER自身の指示どおりの意図的設計であり fix_delta の欠陥ではない。" |
本 PR は Issue #2284 Phase B の実装として
.github/workflows/ci.ymlの producer を V3 evidence manifest へ切り替える。Closes #2384
Refs #2284, Refs #2379, Refs #2230
Summary
Issue #2284 Phase A(PR #2379、V3 evidence manifest schema・dual-read compatibility reader)が main へマージ済みであることを確認した上で、
.github/workflows/ci.ymlの evidence manifest producer を実際に V3 schema・generic filename へ切り替える Phase B を実装した。--evidence-manifest-schema v3/--run-id "$GITHUB_RUN_ID"/--run-attempt "$GH_RUN_ATTEMPT"/--head-sha "$GH_HEAD_SHA"を追加したvisual_baseline_review_evidence.jsonに統一した(tmp 生成先・upload path・download 先・visual-impact-policyjob の--evidence-manifest-file参照の全箇所)component-vrt-evidence-manifest-${{ github.run_attempt }}は Issue 実装: visual-impact-policy-trusted の decision/evidence artifact に run_attempt identity を結合する #2230 の attempt-specific naming 契約どおり変更していないChecks
pnpm typecheck: PASSpnpm lint: PASSpnpm test: PASS(112 files / 1887 tests)pnpm build: PASSuv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py: PASS(24 tests)actionlint .github/workflows/ci.yml: PASS(findings なし)resolve_visual_impact.py --mode build-evidence-manifest --evidence-manifest-schema v3 --run-id ... --run-attempt ... --head-sha ...を実際に実行し、schema: VISUAL_BASELINE_REVIEW_EVIDENCE_V3の manifest が生成されることを確認した(AC1 の文字列一致だけでなく実行時挙動レベルで検証済み)rgVC を実行しすべて PASS を確認済み(下記 AC 別 VC 結果)decision: immediate): PR 起票後、gh pr checksでvisual-impact-policy/visual-impact-policy-trustedの両 check を bounded poll し、結果を本 PR 本文の## Runtime Verification Evidenceに追記するAC 別 VC 結果(本 PR head 上、静的検証分)
Schema Change Applicability
VISUAL_BASELINE_REVIEW_EVIDENCE_V3の JSON schema・reader(build_evidence_manifest_v3_record/build_evidence_from_manifest_v3)は Issue #2284 Phase A(PR #2379)で既に定義・実装済みであり、本 PR はそれらを一切変更しない。本 PR は.github/workflows/ci.ymlの producer ステップが呼び出す CLI 引数・ファイル名を、既存の V3 実装へ向け直す配線変更のみである。Schema Consumer Inventory
N/A(
decision: not_schema_change— schema 自体の変更なし。既存 consumer(visual-impact-policyjob /visual-impact-trusted-consumer.yml)は Phase A の dual-read 実装により V2/V3 双方を読み取れる状態が既に main にマージ済みであり、本 PR はその読み取りロジックを変更していない)。Safety Claim Matrix
VISUAL_IMPACT_DECLARATION_V1
.github/workflows/ci.ymlは resolver のMETA_POLICY_PATHSに含まれるため、CI 配線のみの変更でも全登録 surface が affected 判定される。本 PR はtests/component/combat-hud-critical.vrt.test.ts/tests/component/combat-hud-running.vrt.test.tsの baseline・アサーションを一切変更していないため、両 surface ともverified_unchangedを宣言する。CI_TEST_PERFORMANCE_DECISION_V1
本 PR は既存
component-vrt-reportjob 内の 1 ステップの CLI 引数・出力ファイル名を変更するのみで、新規 test lane・新規 job・pytest 対象の追加はない。ランタイム性能への影響は想定していない。Runtime Verification Evidence(動作検証証跡)
AC7(
decision: immediate)の動作検証証跡。PR #2388 の head SHA9cad64a7063ce1f012bb03cbadba75409e1ea576に対してgh pr checksを bounded poll し、visual-impact-policyとvisual-impact-policy-trustedの両方が出現・passになるまで確認した。証跡取得の開始時と終了時で headRefOid は変化していない(9cad64a7063ce1f012bb03cbadba75409e1ea576のまま)。本 PR body 更新(本セクション追記)自体が GitHub 側の
editedイベントで新しい CI run(33225202794)を誘発し、visual-impact-policyは同一 head SHA に対してその新 run 上で再実行・再度passした(旧 run33224576541の結果は新 run に supersede されたため、下表は最終的に確定した run を記録する)。visual-impact-policy-trustedは default branch 側のworkflow_runcompleted を起点に非同期生成されるため PR body の再編集では再トリガーされず、最初に確認した run の結果がそのまま最終確定値である。9cad64a7063ce1f012bb03cbadba75409e1ea5769cad64a7063ce1f012bb03cbadba75409e1ea576(不変)visual-impact-policy-trustedは default branch 側のworkflow_runcompleted を起点に非同期生成される契約どおり、visual-impact-policy(初回 run)の完了から約 8 分後に出現・即passした。fallback 経由での「成功」は発生しておらず、両 check とも実チェックのpass/SUCCESSを独立に確認した(fabrication なし)。Notes
git merge-base --is-ancestor 8a0598aef882260ceb00eb70efee959a6751aeeb origin/mainで確認済み(マージ済み).github/workflows/ci.ymlのみ変更(変更ファイルは本 PR で 1 ファイルのみ)scripts/agent-ops/resolve_visual_impact.py本体、.github/workflows/visual-impact-trusted-consumer.yml、artifact 名component-vrt-evidence-manifest-${{ github.run_attempt }}、V2 reader・legacy filename fallback の削除