Skip to content

調査: CI verdict の GitHub Actions provenance・配信遅延を観測し fail-closed 境界を確定する #1510

Closed
1 of 1 issue completed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: research
parent_issue: none
goal_ref: "#1456 の CI verdict 集約が GitHub hosted の実 check run 配信遅延・provenance 欠損に遭遇した場合の fail-closed 挙動を、実 run 観測結果と次アクションへ結び付ける"
change_kind: research-only

Parent Issue

なし(#1456 の Safety Claim Matrix から参照する独立 follow-up)

Outcome

GitHub Actions の実 check run 観測表、fail-closed 判定、必要時の単一 implementation Issue URL を本 Issue の最終コメントに残し、#1456 の外部 provenance 不確実性を次の実装判断へ引き渡せる状態にする。

In Scope

Out of Scope

  • 本 Issue でのリポジトリ変更、CI workflow 変更、GitHub 権限・branch protection の変更
  • CI_VERDICT_SUMMARY_V1 の公開 schema または consumer の変更
  • prompt 注記だけによる運用 workaround の追加

Acceptance Criteria

  • AC1: 実装: CI_VERDICT_SUMMARY_V1 のreview event重複skipped check誤集約を防ぐ #1456 / PR fix(ci): review shadow と再実行を provenance 集約する (#1456) #1505 を含む少なくとも 2 件の PR について、workflow、check 名、run event、raw state、head SHA、時刻、run detail 取得可否を含む観測表が本 Issue コメントに記録される。
  • AC2: 観測した各欠損・遅延・不整合を、既存の fail-closed 分岐または未被覆ケースへ一意に対応付けた判断表が本 Issue コメントに記録される。
  • AC3: 未被覆の fail-open または誤分類がある場合は、変更先を ci_verdict_summary.py とその pytest fixture に限定した implementation Issue が link される。ない場合は、再現なしと根拠を本 Issue コメントに記録する。
  • AC4: GitHub API の実配信・provenance が未管理の外部要因であること、および観測不能時に success へ昇格させない方針が本 Issue コメントに記録される。

Verification Commands

# AC1
$ gh issue view 1456 --repo squne121/loop-protocol

# AC2
$ gh pr view 1505 --repo squne121/loop-protocol

# AC3
$ gh issue list --repo squne121/loop-protocol --state open --search "CI verdict GitHub Actions provenance"

# AC4
$ uv run --locked pytest .claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary.py -v

Allowed Paths

  • 読み取り専用。リポジトリ変更なし(既定)

Stop Conditions

  • Outcome / Scope / AC が検索可能な形で記載されていない場合は即停止
  • Allowed Paths 外への書き込みを試みた場合は即停止
  • 権限不足(permission denied)により操作が完了できない場合は即停止
  • 成果物の書き込みに失敗した場合(I/O エラー等)は即停止

Handoff Contract

Background

  • desired_destination: GitHub Actions の外部 provenance 不確実性を、観測結果と fail-closed 判断で閉じ、未被覆時だけ狭い implementation Issue へ渡す。
  • validated_scope_delta: 実装: CI_VERDICT_SUMMARY_V1 のreview event重複skipped check誤集約を防ぐ #1456 は unit fixture の分類規則を実装済みであり、本 follow-up は repository write を行わず GitHub hosted run の実データ観測に限定する。
  • 決定論的修正を優先する。未被覆のケースが実証された場合だけ、集約器と fixture の修正 Issue を起票する。実証なしに reviewer prompt や運用 workaround を追加しない。

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/researchphase/research

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions