Repository navigation
Description
STATE: OPEN
Machine-Readable Contract
contract_schema_version: v1
issue_kind: parent
goal_ref: "#2091 の Safety Claim Matrix が明示的に未制御事項として送った TS import graph 到達可能性 / CheckRun provenance の adversarial negative control / full-SHA reusable workflow pinning・attestation 方針決定の3点を、3つの子 Issue に分離して解消する"
change_kind: mixed
parent_mode: delivery-rollup
closure_mode: child-complete
parent_issue: "#2091"Summary
#2091(visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する)の実装過程で、Issue #2091 の In Scope が「実装可能なら実装、範囲を超える場合は Scope Delta または follow-up として明記する」と許容していた 3 点(TS import graph 到達可能性・component-VRT CheckRun の live provenance・full-SHA reusable workflow pinning)が実装 PR のスコープ外として follow-up 化された。本 parent はこの 3 点を独立した子 Issue に分離して trusted-side の残存 bypass 経路を縮小する delivery-rollup tracker である。
OWNER の anchor comment(#2093 (comment) 、REQUEST_CHANGES 判定)にて、codebase-investigator の fact-check により 6 点の現状確認が行われ、単一 Issue のまま実装を進めるのではなく 3 子 Issue への delivery-rollup 分離が提言された。本 rewrite はその提言と review-issue(Step 2, needs-fix: C9 欠落・AC1/AC2 VC pytest exit5)の指摘を反映する。
Background
Refs #2091
#2091(visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する)の実装過程で、Issue #2091 の In Scope が「実装可能なら実装、範囲を超える場合は Scope Delta または follow-up として明記する」と許容していた以下 3 点を、実装 PR のスコープ外として明記した。
- TS-compiler transitive import graph 経由でのみ到達可能な surface の独立検証: 実装した
resolve_trusted_minimum()は meta-policy path / global invalidator / direct producer・contract path / registry-union mapping deletion / coverage-root boundary の 5 シグナルのみを trusted side で再計算する(resolve_visual_impact.mjsの TS コンパイラベース transitive reachability walk は含まない)。理由: trusted-consumer workflow は候補 PR head のコードを一切実行しない設計であり、TS import graph walk には候補 PR head のソースファイル内容の静的解析が必要になるため、Node/pnpm セットアップと candidate-head ソースツリーの読み取りを新たに trust boundary へ持ち込む設計判断が必要(現時点では未実装)。結果として、coverage_rootsに一致せず、かつ registry の producer/contract パスに直接リストされていない、TS import 経由でのみ到達可能な変更ファイルについては、producer がaffected_surfacesを偽って過小申告した場合にこの trusted-side 独立検証だけでは検出できない。 - component-VRT CheckRun の App identity / conclusion の live API 再照合: 現行実装は evidence manifest の digest 整合性検証のみを行い、CheckRun 自体の App identity(
github_app_id/github_app_slug)・conclusion を GitHub Checks API から独立に再取得して突合する補助証拠レイヤーは未実装。 - full-SHA pinned reusable workflow への移行:
visual-impact-policyproducer job 自体を full-SHA pinned reusable workflow 化し、producer job定義自体の改変余地をさらに減らす設計変更は本 Issue の範囲外(調査: visual-impact-policy-trusted の base-locked evaluator が untrusted producer の自己申告 affected_surfaces を re-derive せず、forged-self-consistent artifact で bypass可能 #2090 の調査で要否検討事項として残されていた)。
Goal
3 子 Issue すべてが完了し、(1) TS import graph 経由の到達可能性が trusted side で独立検証される設計が実装または明示的に不採用と決定され、(2) component-VRT CheckRun の exact workflow_run.id binding を検証する adversarial negative control(同一 head・同一名・別 run fixture の拒否)が実装され、(3) full-SHA pinned reusable workflow migration / artifact attestation・trusted signer 採用可否の方針が決定され、必要であれば実装されている状態。
Outcome
3 子 Issue すべてが完了し、TS import graph trusted 化・CheckRun provenance の adversarial negative control・reusable workflow pinning/attestation 方針が実装または明示的に決定されている状態。
Desired Destination
visual-impact-policy-trustedが candidate-controlled な自己申告に依存せず、TS import graph 経由の到達可能性・CheckRun provenance の exact binding・reusable workflow pinning/attestation の3点について残存 bypass 経路を独立検証できる状態.github/workflows/visual-impact-trusted-consumer.ymlの trusted input 取得の|| truefail-open 穴が除去されている(子1で対応)- 変更されない不変領域: 実装: visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する #2091 で実装済みの trusted-side re-derivation(base_sha/PR body digest/changed-path digest/registry blob sha/policy_version 突合、evidence: {} coherent forgery 拒否、load_registry_text() fail-closed 化)
Current Validated Scope
- OWNER の anchor comment(実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093 (comment) )に基づく codebase-investigator の fact-check により、以下 6 点が HEAD 3559ad2 時点のコードベースと confirmed 済み:
- TS import graph resolver(
scripts/agent-ops/resolve_visual_impact.mjs)の trust boundary 拡張が必要(base-locked resolver・candidate data materialize・realpath confinement・resource bound 等の AC が現状不足) - CheckRun provenance の exact ID re-verification と Actions job join は既に実装済み(
scripts/agent-ops/resolve_visual_impact.py)— ただし exactworkflow_run.idbinding の adversarial negative control(同じ head・同じ名前・別 run の fixture)が明示的 AC としてまだ無い - full-SHA pinned reusable workflow は未実装(
.github/workflows/visual-impact-consumer.yml等が./local relative 参照のまま)。artifact attestation / trusted signer も未採用 .github/workflows/visual-impact-trusted-consumer.ymlに trusted input 取得の|| truefail-open 穴が現存(本 Issue のスコープには含まれない孤立 follow-up、子1 起票時に子1へ引き継ぐ)scripts/agent-ops/resolve_visual_impact.pyの untrusted ZIP は展開後 JSON サイズ検査のみで、展開前 entry 数・総容量の resource bound が無い(孤立した既存 P1 follow-up)- 実装: visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する #2091 実装済みの
resolve_trusted_minimum()は 5 シグナルのみで TS import graph walk を含まない(本 Issue の前提通り)
- TS import graph resolver(
- 本 parent 自体はコード変更を含まず、3 子 Issue への分離とその完了追跡のみを scope とする
Decisions Fixed
- 2026-08-11: OWNER anchor comment(REQUEST_CHANGES, 実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093 (comment) )を反映し、本 Issue を issue_kind: implementation から issue_kind: parent / parent_mode: delivery-rollup / closure_mode: child-complete へ再設計する。
- 2026-08-11: 従来の3実装項目(TS import graph trusted 化・CheckRun provenance live re-verification・full-SHA reusable workflow pinning)を、それぞれ独立した子1「trusted transitive reachability」/ 子2「CheckRun provenance binding」/ 子3「immutable evidence producer / attestation architecture」に分離する。
- 2026-08-11:
.github/workflows/visual-impact-trusted-consumer.ymlの|| truefail-open 穴の除去は、本 parent のスコープには含めず、子1の実装時に一緒に除去する follow-up として子1の Out of Scope 注記に明記する。 - 2026-08-11: untrusted ZIP artifact の pre-extraction resource bound は既存の孤立 P1 follow-up として本 Issue 内に記録し、新規 follow-up Issue の起票要否は Step 4.5 で判断する。
- 2026-08-11: 子3はまず research/design(full-SHA pinning の要否、artifact attestation・trusted signer 採用可否の設計判断)を先行させ、採用判断後に reusable workflow migration を実装する2段階構成とする。
Quality Decision Record
Status: N/ADecision Date: 未記録Does this prove the parent goal complete?: N/AReason: delivery-rollup parent のため quality-gate 判定不要Evidence: N/ANext Action: 子1〜3 を Step 4.5 で issue-creator により起票し、着手順に従って impl-review-loop で実装する
Parent Closure Rule
delivery-rollup: 以下の子1〜3 すべてがマージ済み(closed)になったとき close する。- 子1: 実装: visual-impact-policy-trusted に TS import graph transitive reachability の trusted-side 独立検証を追加する #2099「実装: visual-impact-policy-trusted に TS import graph transitive reachability の trusted-side 独立検証を追加する」(trusted transitive reachability)
- 子2: 実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する #2100「実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する」(CheckRun provenance binding)
- 子3: 調査: visual-impact-policy の same-run producer authenticity 保証(固定 producer / full-SHA pinned reusable workflow / artifact attestation)採用可否を決定する #2101「実装: visual-impact-policy の full-SHA pinned reusable workflow 化 + artifact attestation 採用可否を設計する」(immutable evidence producer / attestation architecture)
- 子4: 実装: visual-impact-policy-trusted の decision/evidence artifact に run_attempt identity を結合する #2230「実装: visual-impact-policy-trusted の producer artifact(decision/evidence)に run_attempt identity を付与し、rerun 間の stale artifact 誤選択を防ぐ freshness/consistency layer を追加する」(子2 CheckRun provenance binding の実装過程・PR 実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する #2229 レビューで発見された artifact-attempt binding gap。goal_ref: 実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093 Goal(2))
quality-gateparent ではないためQuality Decision RecordはN/A扱いとし、close 判定の必須材料にしない。
Child Issues
子1〜3 はすべて issue-creator により起票済みで、GitHub native sub-issue として本 Issue(#2093)にリンクされている。
- 実装: visual-impact-policy-trusted に TS import graph transitive reachability の trusted-side 独立検証を追加する #2099: 実装: visual-impact-policy-trusted に TS import graph transitive reachability の trusted-side 独立検証を追加する(子1: trusted transitive reachability — candidate tree confinement・base-locked TypeScript runtime・resource bound・transitive-only change の negative control。
.github/workflows/visual-impact-trusted-consumer.ymlの|| truefail-open 穴の除去を含む) 実装: visual-impact-policy-trusted に TS import graph transitive reachability の trusted-side 独立検証を追加する #2099 - 実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する #2100: 実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する(子2: CheckRun provenance binding — 既存実装への追加 AC として、exact CheckRun ID → exact Actions job → exact
workflow_run.idの binding を検証する adversarial negative control(同一 head/同一名/別 run fixture の拒否を明示)) 実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する #2100 - 調査: visual-impact-policy の same-run producer authenticity 保証(固定 producer / full-SHA pinned reusable workflow / artifact attestation)採用可否を決定する #2101: 実装: visual-impact-policy の full-SHA pinned reusable workflow 化 + artifact attestation 採用可否を設計する(子3: immutable evidence producer / attestation architecture — まず research/design(full-SHA pinning の要否、artifact attestation・trusted signer 採用可否の設計判断)、採用判断後に reusable workflow migration を実装。最終 negative control 案: 「candidate-controlled
ci.ymlが pinned reusable workflow を完全にスキップし、正しい名前・schema・digest の artifact を自前生成してもvisual-impact-policy-trustedは SUCCESS にできない」) 調査: visual-impact-policy の same-run producer authenticity 保証(固定 producer / full-SHA pinned reusable workflow / artifact attestation)採用可否を決定する #2101 - 実装: visual-impact-policy-trusted の decision/evidence artifact に run_attempt identity を結合する #2230: 実装: visual-impact-policy-trusted の producer artifact(
visual-impact-decision-v1/component-vrt-evidence-manifest)に attempt-specific な artifact 名と(workflow_run_id, run_attempt, head_sha)binding を追加し、rerun 間の stale artifact 誤選択を防ぐ freshness/consistency layer を追加する(子4: artifact-attempt binding — 子2(実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する #2100/PR 実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する #2229)のレビュー過程で発見された、CheckRun provenance binding とは直交する「どの attempt 由来の artifact か」の照合欠落を扱う。producer 真正性の認証は 調査: visual-impact-policy の same-run producer authenticity 保証(固定 producer / full-SHA pinned reusable workflow / artifact attestation)採用可否を決定する #2101 の責務のまま) 実装: visual-impact-policy-trusted の decision/evidence artifact に run_attempt identity を結合する #2230
In Scope
- 子1「trusted transitive reachability」(candidate tree confinement・base-locked TypeScript runtime・resource bound・transitive-only change の negative control)への分離と起票
- 子2「CheckRun provenance binding」(既存実装への追加 AC として、同一 head/同一名/別 run fixture の拒否を検証する adversarial negative control)への分離と起票
- 子3「immutable evidence producer / attestation architecture」(research/design → 採用判断 → 必要なら reusable workflow migration 実装)への分離と起票
- 上記 3 子 Issue の起票後、
Parent Goal Refによる本 Issue へのリンクと完了状態の追跡
Out of Scope
- 実装: visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する #2091 で実装済みの trusted-side re-derivation(base_sha/PR body digest/changed-path digest/registry blob sha/policy_version 突合、evidence: {} coherent forgery 拒否、load_registry_text() fail-closed 化)の再変更
.github/workflows/visual-impact-trusted-consumer.ymlの trusted input 取得における|| truefail-open 穴の除去は本 Issue 自体のスコープには含まれない孤立 follow-up(子1 起票時に子1の Out of Scope 注記または別途 follow-up として明記する)scripts/agent-ops/resolve_visual_impact.pyの untrusted ZIP artifact の pre-extraction resource bound(entry 数・展開後総容量)は本 Issue 自体のスコープには含まれない既存の孤立 P1 follow-up- 本 parent 自体でのコード実装(実装はすべて 3 子 Issue 側で行う)
Remaining Parent Gaps
- 子1(実装: visual-impact-policy-trusted に TS import graph transitive reachability の trusted-side 独立検証を追加する #2099)/子2(実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する #2100)/子3(調査: visual-impact-policy の same-run producer authenticity 保証(固定 producer / full-SHA pinned reusable workflow / artifact attestation)採用可否を決定する #2101)はすべて起票済み。3 子 Issue すべての close をもって本 gap を解消する
- 子1 起票時に、
.github/workflows/visual-impact-trusted-consumer.ymlの|| truefail-open 穴の除去を子1の Out of Scope 注記または別途 orphaned follow-up として明記する - untrusted ZIP artifact の pre-extraction resource bound(既存の孤立 P1 follow-up)は、新規 follow-up Issue が存在しない場合は本 Issue 内の記録として残す(新規起票要否は Step 4.5 で判断)
- artifact attestation / trusted signer architecture の research・設計判断は子3 の責務
Phase Handoff Contract
子 Issue 起票時に各子が継承する契約。子1(trusted transitive reachability)・子2(CheckRun provenance binding)・子3(immutable evidence producer / attestation architecture)で Allowed Paths / Required Skills が異なる点に注意する。
Desired Destination/Current Validated Scope/Remaining Parent Gaps: 上記参照Allowed Paths(子 Issue 種別ごと、正確な path は各子 Issue 起票時に確定する):- 子1:
scripts/agent-ops/resolve_visual_impact.mjs・scripts/agent-ops/resolve_visual_impact.py(trust boundary 拡張部分)・.github/workflows/visual-impact-trusted-consumer.yml(|| true除去)・対応テスト - 子2:
scripts/agent-ops/resolve_visual_impact.py(CheckRun provenance binding 部分)・対応テスト - 子3:
.github/workflows/*.yml(reusable workflow migration が採用された場合)・ADR(research/design フェーズ) - 全子共通の変更禁止: 実装: visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する #2091 で実装済みの trusted-side re-derivation ロジック(re-derivation 自体の再変更)
- 子1:
Required Skills: 子1=TypeScript compiler API / Node.js、子2=GitHub Checks API / Python、子3=GitHub Actions reusable workflow / artifact attestation(該当する場合)Validation Commands: 各子 Issue の Acceptance Criteria に対応する Verification Commands を子 Issue 起票時に個別設計する(pytest-kフィルタでなく、未作成の具体的テストファイルパスを参照する形で baseline-expect: fail を明示する)Stop Conditions: 標準 6 項目 + 「Allowed Paths 外変更が必要」「実装: visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する #2091 実装済み re-derivation ロジックの再変更が必要」Next Action: 子1 → 子2 → 子3 の順で issue-creator による起票、その後 impl-review-loop で実装Open Questions: なし(OWNER anchor comment で方針確定)Artifact Refs: codebase-investigator の fact-check結果(OWNER anchor comment 内、実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093 (comment) )
Required Skills
なし
Allowed Paths
本 parent issue は Allowed Paths を持たない。3 子 Issue ごとに個別の Allowed Paths を指定する(Phase Handoff Contract 参照。正確な Allowed Paths は各子 Issue 起票時に確定する)。
Runtime Verification Applicability
- decision: deferred
- reason: 本 Issue は 3 子 Issue への分離と完了追跡のみを行う delivery-rollup parent であり、本 Issue自体はコード変更・プロセス起動・通信・I/O を伴わない。動作検証の要否は各子 Issue が個別に判定する。
- deferred_destination:
- destination_type: issue
- destination_ref: "子1/子2/子3 Issue(Step 4.5 で issue-creator により起票予定、本 rewrite 時点では未確定)"
- deferred_verification_condition: 子1〜3 Issue が起票され、それぞれの
## Runtime Verification Applicabilitydecision に従って動作検証(該当する場合)が実施・完了すること
Acceptance Criteria
rollup-level(parent close 判定):
- AC1: 子1「trusted transitive reachability」Issue が起票され、
## Parent Goal Refまたは本文中で本 Issue(実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093)へリンクされている - AC2: 子2「CheckRun provenance binding」Issue が起票され、同様に本 Issue(実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093)へリンクされている
- AC3: 子3「immutable evidence producer / attestation architecture」Issue が起票され、同様に本 Issue(実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093)へリンクされている
- AC4: 子1〜4 のすべての Issue が closed 状態である
- AC5: 子1 の Issue 本文に、
.github/workflows/visual-impact-trusted-consumer.ymlの trusted input 取得における fail-open 穴の除去が Out of Scope 注記または follow-up として明記されている(本文中にvisual-impact-trusted-consumer.ymlとfail-openの両方の記載があることで確認する) - AC6: 子4(実装: visual-impact-policy-trusted の decision/evidence artifact に run_attempt identity を結合する #2230, artifact-attempt binding)が本 Issue(実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093)の Child Issues セクションにリンクされていることを、本 Issue 本文中に
#2230の記載があることで確認する
Verification Commands
子1〜3 が起票済みのため、以下 VC は実 Issue 番号(#2099/#2100/#2101)を直接参照する。
# AC1
# baseline-expect: pass
# preflight-scope: pr_review_only
$ gh issue view 2099 --repo squne121/loop-protocol --json title -q '.title'# AC2
# baseline-expect: pass
# preflight-scope: pr_review_only
$ gh issue view 2100 --repo squne121/loop-protocol --json title -q '.title'# AC3
# baseline-expect: pass
# preflight-scope: pr_review_only
$ gh issue view 2101 --repo squne121/loop-protocol --json title -q '.title'# AC4
# baseline-expect: fail
# preflight-scope: pr_review_only
$ gh issue list --repo squne121/loop-protocol --search "2099,2100,2101,2230" --state closed --json number# AC5
# baseline-expect: pass
# preflight-scope: pr_review_only
$ gh issue view 2099 --repo squne121/loop-protocol --json body -q '.body'# AC6
# baseline-expect: pass
# preflight-scope: pr_review_only
$ gh issue view 2093 --repo squne121/loop-protocol --json body -q '.body'Stop Conditions
- 3 子 Issue の分割方針そのものを変更する必要が判明した場合
- 子 Issue 起票時に、本 Issue の In Scope / Out of Scope と矛盾するスコープ設計が必要になった場合
- 新たな follow-up Issue の起票が必要と判断されたが Step 4.5 の判断を経ていない場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格が必要と判明した場合
- 実装: visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する #2091 実装済みの trusted-side re-derivation ロジックの再変更が必要と判明した場合
Required Design References
- docs/dev/agent-skill-boundaries.md(VISUAL_IMPACT_DECLARATION_V1 系フィールドの canonical schema owner を
docs/dev/visual-impact.schema.jsonとする規約含む) - .claude/skills/create-issue/references/body-authoring.md(
parent_mode: delivery-rollup/closure_mode: child-completeの Parent Issue Authoring Guidance) - 実装: visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する #2091(visual-impact-policy-trusted の trusted-side re-derivation 設計。本 Issue が対象とする3点は 実装: visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する #2091 の Safety Claim Matrix が明示的に未制御事項として送ったもの)
Notes
- Priority: P1(実装: visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する #2091 の P0 修正は本 Issue の未実装事項が無くても有効。本 Issue は残存する攻撃面の縮小)
- 実装: visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する #2091 の PR 本文 Safety Claim Matrix からリンクされる
- 本 rewrite は review-issue(Step 2, needs-fix: C9 欠落・AC1/AC2 VC pytest exit5)と OWNER anchor comment(REQUEST_CHANGES, 実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093 (comment) 、3 子 Issue への delivery-rollup 分離提言)を反映した Step 4 rewrite(freeform rewrite 許可)
- 3 子 Issue の起票は Step 4.5 で
issue-creatorが実施する - 2026-08-21: 子2(実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する #2100 / PR 実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する #2229)のレビュー過程で発見された artifact-attempt binding gap(実装: visual-impact-policy-trusted の decision/evidence artifact に run_attempt identity を結合する #2230, goal_ref: 本 Issue Goal(2))を rollup の 4 番目の child として追加する(Parent Closure Rule / Child Issues / AC4 / AC6 を更新)。実装: visual-impact-policy-trusted の decision/evidence artifact に run_attempt identity を結合する #2230 の敵対的レビュー(REQUEST_CHANGES, 実装: visual-impact-policy-trusted の decision/evidence artifact に run_attempt identity を結合する #2230 (comment) )が本追加を提言した
Activity
squne121 commentedon Aug 11, 2026
判定
REQUEST_CHANGES /
needs-fix相当です。#2093 が追っている問題自体は妥当です。#2094 は #2091 を実装して main にマージ済みで、その Safety Claim Matrix でも「TS transitive import graph」「component-VRT CheckRun の live provenance」「full-SHA reusable workflow」の3点を明示的に未制御として #2093 へ送っています。 #2094 の最終レビューも、その限定された境界を前提に APPROVE しています。
ただし、#2093 は現状のまま実装へ入るには契約が粗すぎます。特に「candidate source を trusted workflow で静的解析する」という変更は、#2091 が避けていた trust boundary 拡張そのものです。Issue 本文は現在 open・コメント0件で、Outcome/In Scope/Out of Scope しか実質的な実行契約を持っていません。
[Blocker] Issue 自体が repository の implementation contract を満たしていません。 この repo の
review-issueは Machine-Readable Contract、AC、Verification Commands、Allowed Paths、Stop Conditions 等を決定論的に検査し、fail があればneeds-fixにします。 正常 fixture もParent Goal Ref、Current Validated Scope、Remaining Parent Gaps、Runtime Verification Applicabilityまで持っています。 実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093 にはこれらがありません。さらに「full-SHA pinned reusable workflow への移行要否が判断され、必要であれば実装」は判定基準のない research + implementation 混在です。「何を観測したら migrate / no-migrate なのか」を AC に固定しない限り、自律実装では scope が非決定的になります。[P1] TS import graph を現行
resolve_visual_impact.mjsのまま trusted job に持ち込むのは危険です。 現行 resolver は TypeScript source/CSS を実ファイルから読み、isRelativeSpecifier()が/始まりまで許し、path.resolve(containingDir, base)で解決します。 一方、registry schema は producer path を実質string + minLengthでしか制約しておらず、「repo-root relative」という説明を schema で強制していません。 Node の仕様上、path.resolve()は後続に絶対パスが来れば先行ディレクトリを捨てますし、path.isAbsolute()単独も traversal 防御にはならないと明記されています。([Node.js]1) したがって trusted-side 化するなら、base-locked resolver/dependencies、候補ソースをデータとしてだけ materialize、canonical realpath の repo-root confinement、absolute/../symlink escape 拒否、per-file/total bytes/file count/depth/time の resource boundまで AC に必要です。fs.realpath()は..と symlink を解決するので confinement 判定の一部に使えます。([Node.js]2)[P1] 「CheckRun App identity / conclusion を再照合」だけでは provenance が弱すぎます。 現行 producer ですら
component-vrt-report、completed、app.slug == "github-actions"を条件に CheckRun を選び、ID/suite/app/conclusion を decision へ渡しています。 問題はこれが candidate-controlled producer 内の自己申告であることです。trusted consumer は decision の exact CheckRun ID をGET /check-runs/{id}してhead_sha/name/status/conclusion/check_suite/appを全部照合すべきです。Checks API はそれらを返します。([GitHub Docs]3) さらに Actions job API はrun_id、head_sha、name、conclusion、check_run_url、workflow_nameを返すので、その CheckRun がgithub.event.workflow_run.idのcomponent-vrt-reportjob に本当に属することまで joinできます。([GitHub Docs]4) 「同じ head・同じ名前・同じ github-actions App だが別 run」という adversarial fixture を必須にすべきです。[P1] full-SHA reusable workflow pinning 単独では trust root は完成しません。 GitHub は reusable workflow の commit SHA 指定を最も安全な参照方法としています。また
./.github/workflows/...形式は caller と同じ commit の workflow を使うため、candidate-controlled caller から immutable producer を呼びたいなら{owner}/{repo}/.github/workflows/file.yml@<40-char SHA>が必要です。([GitHub Docs]5) しかし caller 自体は PR head が変更できるため、「その reusable workflow を呼ばず、同名 artifact を自前 upload」する経路まで考えないと pinning は provenance になりません。元の fix: visual-impact-trusted-consumer.yml の gh api --output 未対応バグを修正する (#2076) #2085 敵対的レビューでは、この理由から pinned reusable workflow に加えて artifact attestation と trusted signer が提案されていました。 GitHub も reusable workflow を signer とした attestation verification を正式にサポートしています。([GitHub Docs]6) したがって 実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093 から attestation が消えたのは、根拠を明記しない限り hardening 方針の後退です。採用するなら signer workflow に加え signer digest まで固定する設計が望ましいです。[P1/P2] 実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093 が挙げていない trusted-side re-derivation の fail-closed 穴も現在 main に残っています。
.github/workflows/visual-impact-trusted-consumer.ymlの独立再導出でgit diff ... > name_status.nul || trueとしており、trusted input の取得失敗を意図的に握りつぶしています。また base/head registry のgit showも任意の non-zero を「ファイルなし」相当に縮退させます。 実装: visual-impact-policy-trusted の trusted-side re-derivation で forged-self-consistent artifact bypass を fail-closed に修正する #2091 が Python 側でmissing-ref-object != missing-fileをわざわざ fail-closed に直した設計思想と整合しません。通常は precedinggit fetchが成功するため即 exploitable とまでは断定しませんが、security verifier の trusted input acquisition に|| trueは残すべきではありません。実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093 の transitive re-derivation 改修時に一緒に除去し、git plumbing error の negative control を追加するのが妥当です。[P1 follow-up] untrusted ZIP resource bound もまだ孤立しています。 現在は
${RUNNER_TEMP}配下へ展開する点は改善していますが、producer artifact をunzipした後に Python verifier が JSON サイズを検査する構造なので、archive の entry 数・展開後総容量等の pre-extraction bound ではありません。 これは fix: visual-impact-trusted-consumer.yml の gh api --output 未対応バグを修正する (#2076) #2085 レビュー時にも独立 P1 として既に指摘されています。 実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093 に混載する必要はありませんが、別 Issue が存在しないなら orphaned security follow-up として materialize した方がよいです。推奨する #2093 の再構成
3テーマを一つの implementation Issue に詰めるより、#2093 を security-hardening の親にして3つへ分離する方が安全です。
第一子は「trusted transitive reachability」で、candidate tree confinement・base-locked TypeScript runtime・resource bound・transitive-only change の negative control までを担当。第二子は「CheckRun provenance binding」で、exact CheckRun ID → exact Actions job → exact
workflow_run.idの binding を担当。第三子はまず「immutable evidence producer / attestation architecture」の research/design とし、採用判断後に reusable workflow migration を実装する形です。特に3番目は、現状の「必要なら実装」ではなく、最終 negative controlを先に決めるべきです。すなわち「candidate-controlled
ci.ymlが pinned reusable workflow を完全にスキップし、正しい名前・schema・digest の artifact を自前生成しても、visual-impact-policy-trustedは SUCCESS にできない」。この性質を pinned workflow + attestation で満たすのか、別の GitHub-native provenance binding で満たすのかを設計判断にします。GitHub の attestations は signer identity を検証することがセキュリティ上必須だと公式にも明記されています。([GitHub Docs]7)なお、現在の active repository ruleset で required なのは
typecheck / lint / test / build / python-testの5つで、visual-impact-policy-trustedはまだ required ではありません。 そのため P1 という優先度は妥当です。ただし将来 required gate に昇格するなら、少なくとも上記 CheckRun provenance と trusted-side transitive analysis の境界を固めてからにすべきです。結論として、#2093 の問題設定は APPROVE、現在の Issue contract は REQUEST_CHANGES です。 最大の修正点は単に AC を足すことではなく、
static analysis of candidate dataとtrusted executionを明確に分離し、CheckRun を App 名ではなく exact workflow-run provenance へ結び、reusable-workflow pinning の成否を「candidate が pinned producer を迂回しても green にできない」という攻撃者視点の性質で定義することです。squne121 commentedon Aug 11, 2026
issue-refinement-loop 完了報告
status: approved
termination_cause: n/a(正常終了)
reviewed_body_sha256: sha256:c8541672d4b349a7f0b2d71f9fa7387437b734a67585af597e83c8f4432737ef
経緯
anchor comment(OWNER, #2093 (comment)、REQUEST_CHANGES 判定)を主要入力として、issue-refinement-loop を人間承認不要(
loop_iteration_approval_gate既定に従う)で実行した。missing_required_section(Machine-Readable Contract欠如)でblocked。override 条件(reason_code が override 可能、anchor comment が不足 section を明示的に指摘)を満たしたため override し、issue-editor が最小限の構造化 repair を実施。|| truefail-open穴・ZIP resource bound欠落・#2091実装範囲)をコードベース(HEAD3559ad21)に照らして fact-check し、全項目 confirmed。VERDICT: needs-fix(C9 Runtime Verification Applicability 欠如、AC1/AC2 の VC が pytest exit5 で曖昧)。issue_kind: parent/parent_mode: delivery-rollup/closure_mode: child-completeへ再設計。VERDICT: approve(blockers: 0)。|| truefail-open 穴除去を含む)issue-editor が 実装: visual-impact-policy-trusted の残存検証ギャップ(TS import graph 到達可能性・CheckRun identity・reusable workflow pinning)を縮小する #2093 の
Child Issues/Parent Closure Rule/Verification Commandsを実 Issue 番号で更新。未解決の孤立 follow-up(今回のスコープに含めず明記のみ)
scripts/agent-ops/resolve_visual_impact.pyの untrusted ZIP 展開前 resource bound 欠落は、調査: visual-impact-policy の same-run producer authenticity 保証(固定 producer / full-SHA pinned reusable workflow / artifact attestation)採用可否を決定する #2101 側で対応要否を判断する旨を明記済み。新規 Issue は起票していない。Final Gate
issue_kind: parent(delivery-rollup)のためLOOP_HANDOFF_RESULT_V1は適用範囲外(本 Issue 自体はimpl-review-loopへの直接 handoff を伴わない)。実装は3子 Issue 側で個別にimpl-review-loopへ handoff される。squne121 commentedon Aug 11, 2026
implement-issue: 実装確認結果 (2026-08-11)
本 Issue は
issue_kind: parent/parent_mode: delivery-rollup/closure_mode: child-completeの tracker Issue であり、## Allowed Pathsは「本 parent issue は Allowed Paths を持たない」、## Out of Scopeに「本 parent 自体でのコード実装(実装はすべて 3 子 Issue 側で行う)」と明記されている。そのため worktree / PR 作成は行わず、Verification Commands のみを実行して現状を確認した。Verification Commands 結果
gh issue view 2099 --json title): PASS — 実装: visual-impact-policy-trusted に TS import graph transitive reachability の trusted-side 独立検証を追加する #2099 存在確認済み(「実装: visual-impact-policy-trusted に TS import graph transitive reachability の trusted-side 独立検証を追加する」)gh issue view 2100 --json title): PASS — 実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する #2100 存在確認済み(「実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する」)gh issue view 2101 --json title): PASS — 調査: visual-impact-policy の same-run producer authenticity 保証(固定 producer / full-SHA pinned reusable workflow / artifact attestation)採用可否を決定する #2101 存在確認済み(「実装: visual-impact-policy の full-SHA pinned reusable workflow 化 + artifact attestation 採用可否を設計する」)gh issue list --search "2099,2100,2101" --state closed): baseline-expect: fail のとおり現状 FAIL([])— 実装: visual-impact-policy-trusted に TS import graph transitive reachability の trusted-side 独立検証を追加する #2099/実装: visual-impact-policy-trusted の CheckRun provenance に exact workflow_run.id binding の adversarial negative control を追加する #2100/調査: visual-impact-policy の same-run producer authenticity 保証(固定 producer / full-SHA pinned reusable workflow / artifact attestation)採用可否を決定する #2101 いずれも OPEN のため、3 子 Issue すべて closed という closure 条件は未達gh issue view 2099 --json body内visual-impact-trusted-consumer.ymlとfail-openの両方の記載確認): PASS — 本文中にvisual-impact-trusted-consumer.yml(7 件)・fail-open(6 件)両方の言及あり子 Issue の現在状態
結論
AC1/AC2/AC3/AC5 は現時点で満たされている。AC4(rollup close 条件)は子 3 件がすべて closed になるまで未達(contract 上の期待通り、baseline-expect: fail)。本 parent Issue 自体は追加のコード実装・PR 作成を要さず、closure は子 Issue(#2099 → #2100 → #2101)の実装完了を待つ状態。
後続: 子1(#2099)から順に impl-review-loop で実装を進める。
feat: visual-impact-trusted-consumer の untrusted ZIP展開にresource bound…
squne121 commentedon Sep 6, 2026
post-merge-cleanup: delivery-rollup parent close (2026-09-06)
全 8 子Issue(#2099, #2100, #2101, #2145, #2230, #2499, #2505, #2524)が CLOSED になったことを GitHub native sub-issues API で確認しました(
closure_mode: child-complete)。直近の #2524(PR #2546マージ済み、trusted consumer advisory化 + V1接続修正)の完了をもって本 parent の delivery-rollup を完了とし、close します。