Repository navigation
実装: retro_live_verification trusted_actorのcaller-controlled trust rootを廃止する - #1795
Merged
Merged
Conversation
…flow file内の固定literalへ変更する 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を要するようにした。
Contributor
Preview URL✅ verified live assets: https://squne121.github.io/loop-protocol/pr-1795/ The preview will be removed when this PR is closed. |
squne121
commented
Jul 26, 2026
squne121
left a comment
Owner
Author
There was a problem hiding this comment.
PR Review 判定
Issue #1415 のcontract snapshotを再materialize(issue comment 5083421476, fresh go)した上でAllowed Paths gateを再計算した結果、status: ok(stale_snapshotは解消)。CI 15/15 green。P0-G修正(trusted_actor workflow_dispatch input削除、TRUSTED_ACTORをworkflow file内固定literalへ変更、新規test 3件)を実コードで確認した。
LOOP_VERDICT_V2:
verdict: APPROVE
reviewed_head_sha: "19b7e99a3b352d808b48f8acce8b17766487fab4"
merge_ready: true
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers: []
required_auto_actions: []
allowed_paths_gate:
status: "ok"
violations: []
contract_fingerprint:
issue_number: 1415
contract_source_id: "5083421476"
base_sha_at_snapshot: "92f8ced76266cf016e6515bcedf09b6d3d470dfe"
squne121
marked this pull request as ready for review
July 26, 2026 12:20
This was referenced Jul 26, 2026
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: trusted_actorのcaller-controlled trust rootを廃止する
Summary
Issue #1415の追加敵対的レビューで指摘されたP0-G(trusted actorの自己登録)を修復する。PR #1789のP0-C修正は
current_actor(github.triggering_actor)とtrusted_actorを分離したが、trusted_actor自体がworkflow_dispatchの自由入力(デフォルト値付き)のままであり、workflowをdispatchできるactorが任意の値(自分自身のlogin等)を指定できる構造だった。これはtrust rootとして機能しない。Current repo reality / contract drift(現状と契約との乖離)
.github/workflows/retro-live-verification.ymlのtrusted_actorはtype: string, required: false, default: 'squne121'のworkflow_dispatchinputであり、dispatch時にcaller(write権限を持つ任意のactor)が上書き可能だった。TRUSTED_ACTOR環境変数は${{ inputs.trusted_actor }}から値を取得しており、caller-suppliedな値をtrust rootとして使用していた。Scope Delta
Allowed Pathsの追加なし(既存Allowed Paths内で完結)。
Acceptance Criteria matrix(受け入れ基準対応表)
trusted_actorworkflow_dispatch inputを削除し、TRUSTED_ACTORをworkflow file内の固定literal('squne121')へ変更。変更にはreviewed merged PRを要する19b7e99aVerification 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一覧の更新はない。
trusted_actorinputの削除により、.github/workflows/retro-live-verification.ymlのみが変更対象。Safety Claim Matrix
pnpm test(1826/1826 pass)Backward compatibility / migration decision(後方互換性・移行方針)
trusted_actorworkflow_dispatch inputの削除は破壊的変更だが、これはIssue #1415内の未リリースの脆弱な設計を修正するものであり、外部からのworkflow呼び出し契約として確立されたものではない(環境protectionはIssue #1153側で別途要設定)。既存v2 workflow経路・PRイベント時read-only testsは無変更。Checks
pnpm typecheckpasspnpm lintpasspnpm testpass(1826/1826)pnpm buildpassNotes
Refs #1415を使用しCloses #1415は使用しない。#1415はpost-merge live artifact chain完了までopenのままとする。github.triggering_actorと認可主体の混同)について:workflow_dispatch自体はGitHubのwrite権限モデルにより起動時点で認可されるため、triggering_actorを認可の一次情報源として使うこと自体は妥当。本PRでは「triggering_actorをtrust rootとして流用しない」という観点に絞って修正した。Refs #1415(本PRはIssueをcloseしない)