Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: research
parent_issue: "none"
goal_ref: "PR #1310 で hard gate 化した deploy-pr job の live asset check を安定 green にする"
change_kind: research-onlyParent Issue
なし(単独改善)
Source
dedupe_key: "follow-up:squne121/loop-protocol:pr/1310:pages-settings-source-config"
source_url: "https://github.com/squne121/loop-protocol/pull/1310"Background
PR #1310(Closes #1184、マージ済み: #1310 )で deploy-pages.yml の deploy-pr job から continue-on-error: true を除去し、Verify preview assets are live ステップを hard gate 化した。
マージ直後の実 CI run(head 6049fbc8, run_id 28677087884, job_id 85052659441)で、この live check が curl 404 で FAILURE したことを control-plane が確認済みである。原因として GitHub Pages Settings(Settings → Pages → Source)が gh-pages ブランチを source として正しく指していない可能性、または peaceiris/actions-gh-pages によるデプロイ完了と Pages 配信反映の間の timing race のいずれかが推定されている。
PR #1310 の Safety Claim Matrix にも「Pages Settings(Settings → Pages → Source)の設定状態自体は本 PR の Out of Scope であり、live asset check が実際に green になるかは Pages 側設定に依存する」旨の not_controlled 記載があり、そこで「新規 follow-up issue(未起票)」として言及されていた項目が本 Issue である。
live asset check は既に hard gate 化済みのため、Pages Settings が未設定または誤設定のままだと、今後の全 PR で deploy-pr job が恒常的に red になる可能性がある。これが本 Issue 起票の主動機である。
Outcome
GitHub repository Settings(Settings → Pages → Source)の設定状態を確認した上で、gh-pages ブランチが Pages source として正しく設定されているかどうかの診断結果が本 Issue 本文に記載され、以下のいずれかの成果物が確定した状態になる。
- 設定済みで問題ない場合: 診断結果と、直近の live asset check FAILURE が timing race 由来であることの根拠を本 Issue に記載し、必要なら retry/wait 導入の implementation Issue を起票する
- 設定が不足・誤りの場合: 人間に対する設定変更依頼(具体的な設定手順込み)を本 Issue に記載し、設定変更後に再度 live asset check の CI run 結果を確認できる状態にする
- 初回デプロイ時に Pages source 設定が必要になる一般的な運用手順がある場合は、その手順を
docs/dev/配下のドキュメントとして記録し、本 Issue からリンクする
In Scope
gh api repos/squne121/loop-protocol/pages等による Pages 設定状態の read-only 確認- run_id
28677087884/ job_id85052659441の失敗ログの再確認と原因切り分け(Pages Settings 未設定 vs timing race) - 上記に基づく人間向け設定変更依頼、または
peaceiris/actions-gh-pages運用ドキュメントの追記提案
Out of Scope
- GitHub repository Settings(Settings → Pages → Source)の実際の設定変更操作そのもの(AI agent には権限がなく、人間対応が必要)
deploy-pages.ymlの live asset check ロジック自体の再設計(PR feat: add dist artifact and provenance JSON to deploy-pr, hard-gate live asset check #1310 のスコープであり、既にマージ済み)- Pages 以外の CI job の変更
Acceptance Criteria
- AC1:
gh api repos/squne121/loop-protocol/pagesの read-only 実行結果(source.branch/source.path/status等)が本 Issue 本文に記載されている - AC2: run_id
28677087884のVerify preview assets are liveステップの失敗ログから、404 の原因が「Pages Settings 未設定・誤設定」「timing race」のいずれであるかの判断根拠が本 Issue 本文に記載されている - AC3: 診断結果に応じた次アクション(人間への設定変更依頼、または follow-up implementation Issue の起票、または運用ドキュメント追記提案)が本 Issue 本文に明記され、該当する場合は起票された Issue 番号がリンクされている
Verification Commands
# AC1
$ gh api repos/squne121/loop-protocol/pages# AC2
$ gh run view 28677087884 --repo squne121/loop-protocol --log-failed# AC3
$ gh issue list --repo squne121/loop-protocol --search "pages-settings-source-config in:body" --state allAllowed Paths
- 読み取り専用。リポジトリ変更なし(既定)
- 運用ドキュメント追記が必要と判断された場合のみ
docs/dev/配下に新規ファイルを追加してよい(本文で明示する場合のみ)
Stop Conditions
- Outcome / Scope / AC が検索可能な形で記載されていない場合は即停止
- Allowed Paths 外への書き込みを試みた場合は即停止
- 権限不足(permission denied)により操作が完了できない場合は即停止
- 成果物の書き込みに失敗した場合(I/O エラー等)は即停止
Handoff Contract
Current Objective: GitHub Pages Settings(Source)の設定状態を診断し、deploy-pr job の live asset check が安定 green になる条件を確定するBounded Current Context: PR feat: add dist artifact and provenance JSON to deploy-pr, hard-gate live asset check #1310(マージ済み)、run_id28677087884/ job_id85052659441の FAILURE、Safety Claim Matrix のnot_controlled記載Open Questions: Pages Settings が gh-pages を source として正しく指しているか / 404 が timing race かどうかNext Action: 診断結果に応じて設定変更依頼、実装 Issue 起票、またはドキュメント追記のいずれかを実行するArtifact Refs: feat: add dist artifact and provenance JSON to deploy-pr, hard-gate live asset check #1310 , run_id 28677087884, job_id 85052659441
Required Skills
なし
Activity
fix: bump deploy-pr preview overall_deadline to 300s (#1357)
fix: deploy-pr preview asset liveness check の404タイムアウトを調査・修正する (#1358)