Repository navigation
実装: retro_live_verification v3のpost後検証欠落・trusted actor自己参照・fixture/live区別を修復する - #1789
Merged
Merged
Conversation
…自己参照・fixture/live区別欠如を修復する P0-A: v3投稿stepの直後にlive verify stepを追加(v2と同様の投稿後検証)。 P0-C: trusted_actor workflow inputを新設し、current_actor(triggering_actor)とは 別ソースにする(自己登録ループを解消)。v2の既存トラスト境界は無変更。 P0-D: check-retro-live-verification.mjsに--require-liveを追加し、 fixture fallbackやliveフラグ欠落を明示的にfail-closedにする。 既存のfixtureデフォルト挙動自体は無変更(--require-live未指定時は従来通り)。
…ailedへ実際に遷移させる verifyDualTargetCanonicalReadback()を追加。生成時のreadback.pendingを 自己申告のまま放置せず、--liveモード実行時に親issueの全コメントを live listしてv3 ownership markerに一致する件数を実測し、 canonical_comment_count/duplicate_countをその場で算出してfail-closedに検証する。 client引数をinjectableにしテストで検証(pagination未完了・0件・重複件のnegative test含む)。
Contributor
Preview URLPreview removed (PR #1789 closed). |
squne121
commented
Jul 26, 2026
squne121
left a comment
Owner
Author
There was a problem hiding this comment.
PR Review 判定
独立再検証の結果、PR #1789(head 896e61ab6cb55df4e8013d08264b93e7c38e6d2e)を APPROVE とする。
- 前回レビューでCI
python-test失敗を指摘したが、これは本PRのAllowed Paths外・diff無関係の既存flaky test(test_issue_393_snapshot_fixture_processed、90秒timeout、同時刻のmain CIでも同一失敗を確認済み)であり、複数回の再実行の末、全14チェックがgreenになったことを確認した。 - P0-A(v3投稿後verify step追加)、P0-C(trusted actor自己参照解消)、P0-D(
--require-livefail-closed実装)、P0-B(readback状態遷移実装)いずれも実コードで確認済み。 - Allowed Paths: 3ファイルすべて適合。
LOOP_VERDICT_V2:
verdict: APPROVE
reviewed_head_sha: "896e61ab6cb55df4e8013d08264b93e7c38e6d2e"
merge_ready: true
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers: []
required_auto_actions: []
allowed_paths_gate:
status: "ok"
violations: []
squne121
marked this pull request as ready for review
July 26, 2026 07:44
15 tasks
squne121
added a commit
that referenced
this pull request
Jul 26, 2026
…flow file内の固定literalへ変更する (#1795) P0-C fix_delta(PR #1789)はcurrent_actor(github.triggering_actor)とtrusted_actorを 分離したが、trusted_actor自体がworkflow_dispatch inputのまま残っており、 dispatchするactorが任意の値(自分自身のlogin等)を指定できてしまう構造だった。 これはtrust rootとして機能しない。TRUSTED_ACTORをworkflow file内の固定literal ('squne121')へ変更し、変更にはreviewed merged PRを要するようにした。
35 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
retro_live_verification: v3 workflowのpost後検証欠落・trusted actor自己参照・fixture/live区別欠如を修復する
Summary
Issue #1415のpost-merge live closure実行中に発見した4件の追加実装バグ(P0-A/B/C/D)を修復する。PR #1781(マージ済み)でproducer/resolverのdigest契約バグを修復した後も、v3 workflow・readback・trusted actor authority・fixture/live区別に残っていた問題を解消する。
Current repo reality / contract drift(現状と契約との乖離)
コード照合により以下を確認した。
.github/workflows/retro-live-verification.ymlのv2ブランチには投稿後にVerify canonical comment landed correctly (v2)stepがあるが、v3ブランチには対応する投稿後検証stepが存在しなかった。readback.status: 'pending'(PR #1781で導入)をverified/failedへ遷移させる後続ロジックが実装されていなかった。--current-actor "$CURRENT_ACTOR" --trusted-actor "$CURRENT_ACTOR"と同一のシェル変数を両方のCLIフラグに渡しており、workflow実行者が自分自身を信頼済みactorとして自己登録できる構造だった。retro-live-verification:verifyが引数なし実行でfixtureフォールバックする設計と、fixture fallbackを絶対に許さない「live専用closure検証」が、同一script名・フラグ有無のみで区別されていた。(P0-E「legacy source_set_digestとresolved_comment_set_digestの混同」は再現しなかった。両者は別関数・別canonicalization profileで実装されており、コード上の混同は確認できなかった。)
Scope Delta
Allowed Pathsの追加なし(既存Allowed Paths内で完結)。
Acceptance Criteria matrix(受け入れ基準対応表)
Verify canonical comment landed correctly (v3 dual-target)stepを追加ebf87009trusted_actorworkflow inputを新設し、github.triggering_actor(現在の実行者)とは独立した入力源にしたebf87009--require-liveフラグを追加。--execution-profileがliveでない、または--live未指定の場合はfail-closedで非0終了するebf87009verifyDualTargetCanonicalReadback()を新規実装。--liveモード実行時に親issueの全コメントをlive listし、v3 ownership marker一致件数を実測してcanonical_comment_count/duplicate_count/status: verified|failedを算出896e61abVerification Commands results(検証コマンド実行結果)
workflow yaml変更後、
uv run --locked python3 -c "import yaml; yaml.safe_load(open('.github/workflows/retro-live-verification.yml'))"でYAML構文パース確認済み(YAML OK)。CI Test Performance Decision(CIテスト性能判断)
Runtime Verification Applicability
Schema Change Applicability
Schema Consumer Inventory
本PRはschemaファイル自体を変更していないため、consumer一覧の更新はない。
retro_live_verification/v3のconsumer(check-retro-live-verification.mjs,generate-retro-live-verification.mjs,post-retro-live-verification.mjs,.github/workflows/retro-live-verification.yml)は変更対象だが、schemaフィールド自体(readback)の型・必須項目はPR #1781で既に確定済みで、本PRはその値を埋めるロジックの追加のみ。Safety Claim Matrix
pnpm test(1823/1823 pass)trusted_actorinput追加確認--require-liveはfixture fallbackをfail-closedにするdigest_revalidation(bundle digest再計算との突合)は本PRのスコープ外Backward compatibility / migration decision(後方互換性・移行方針)
既存v2/v3の挙動・fixture・argument-freeデフォルトは無変更。
--require-liveは新規optionalフラグで、未指定時は既存挙動を維持する。trusted_actorworkflow inputはデフォルト値を設定し、既存workflow_dispatch呼び出しの後方互換を維持する。Checks
pnpm typecheckpasspnpm lintpasspnpm testpass(1823/1823)pnpm buildpassNotes
Refs #1415を使用しCloses #1415は使用しない。#1415はpost-merge live artifact chain完了までopenのままとする。readback.digest_revalidation(bundle digest再計算との突合)は本PRのスコープ外(P0-Bで明示された「count/duplicate遷移」のみ実装)。Refs #1415(本PRはIssueをcloseしない)