Skip to content

実装: VRT CI evidence matrix と artifact validator を active suite 対応に拡張する #1387

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1380"
ancestor_issue: "#1370"
goal_ref: "VRT suite 増加後も CI summary と artifact validator が実際の比較条件を capture 単位で正しく監査できるようにする"
change_kind: workflow
preflight_scope: pr_review_only
runtime_verification_applicability: not_applicable
baseline_expect: fail

Runtime Verification Applicability

  • decision: not_applicable
  • reason: 本 Issue の変更対象は CI summary 生成(shell)・Python static validator・pytest unit test・docs のみであり、ゲームプロセスの起動・通信・I/O を伴わない。pnpm test:vrt:e2e(実 Playwright 実行)は preflight_scope: pr_review_only として PR レビュー時に確認するが、baseline immediate な runtime AC としては要求しない。

Parent Issue

#1380

Parent Goal Ref

Dependencies

Current Validated Scope

  • .github/workflows/ci.yml と scripts/check-visual-artifact-pipeline.py を、suite 単位ではなく capture 単位(test file 内の個々の toHaveScreenshot() / expectDomOverlayScreenshot() 呼び出し)の active VRT 一覧ベースへ拡張する。
  • capture ごとの browser / project / channel / comparator / artifact scope(job 単位か suite 単位か)/ digest / directory の出力を docs(docs/dev/visual-baseline-registry.md)の component 追跡と揃える。
  • Dependencies 行は本 Issue が依存・先行する Issue 番号として扱う。
  • baseline PNG は追加・更新しない。

Remaining Parent Gaps

Outcome

CI summary と visual artifact validator が、active な VRT capture(suite ではなく、test file 内の個別 screenshot 呼び出し単位)ごとの screenshot directory / comparator(maxDiffPixels または maxDiffPixelRatio のいずれか一方)/ tolerance / artifact scope(job 単位か suite 単位か)/ artifact digest を cross-validate し、関連 checks が PASS する状態にする。

In Scope

  • .github/workflows/ci.yml の VRT summary を capture 単位へ拡張
  • active な capture ごとの screenshot directory / browser / project / channel / viewport / DPR / comparator種別(maxDiffPixels or maxDiffPixelRatio、両方ではなく片方のみ)/ tolerance / stylePath / artifact scope(job or suite)/ artifact URL / digest / retention 出力
  • scripts/check-visual-artifact-pipeline.py の capture 単位対応(maxDiffPixels と maxDiffPixelRatio の両方を検査し、両方指定・両方欠落を fail とする)
  • artifact 不在状態(uploaded / no_files / step_not_run / upload_failed)の契約化
  • Playwright E2E と将来の Vitest component VRT の directory 分離契約を docs に明文化
  • validator 用 fixture / unit test(正常系・主要否定系)の追加
  • Dependencies 行を実際の Issue 番号形式へ修正

Out of Scope

Acceptance Criteria

  • AC1: CI summary が active な VRT capture(suite ではない)を列挙する。
  • AC2: summary が capture ごとに screenshot directory / browser / project / viewport / DPR / comparator種別と値(maxDiffPixels または maxDiffPixelRatio)/ stylePath / artifact scope(job or suite)/ artifact URL / digest / retention を出力する。
  • AC3: validator が M2 固定 path だけでなく、active な capture ごとの directory と comparator options(maxDiffPixels と maxDiffPixelRatio の両方)を cross-validate する。
  • AC4: summary が実値とずれた場合、validator が hard fail する。
  • AC5: comparator の maxDiffPixels / maxDiffPixelRatio 排他性(両方指定・両方欠落)を validator が検査し fail する。
  • AC6: Playwright と Vitest の screenshot directory が混線しない契約が docs にある。
  • AC7: artifact 不在状態(uploaded / no_files / step_not_run / upload_failed)を validator が区別して検査する。
  • AC8: python-test lane で validator が常設実行される。
  • AC9: validator 用の正常系・否定系 fixture / unit test が追加される。否定系には最低限、以下を含む: (a) maxDiffPixelRatio の値を maxDiffPixels として誤表記した場合に fail、(b) comparator を両方同時指定した場合に fail、(c) active capture の directory drift で fail、(d) duplicate capture ID で fail、(e) pending-baseline を active capture として登録した場合に fail、(f) Playwright と Vitest の baseline root 混線で fail、(g) artifact digest 配線欠落で fail。
  • AC10: typecheck / lint / test / build / python-test relevant checks が PASS する。

Verification Commands

# AC1
$ rg -n "active.*capture" .github/workflows/ci.yml scripts/check-visual-artifact-pipeline.py
# AC2
$ rg -n "screenshot directory" .github/workflows/ci.yml
# AC3
$ rg -n "maxDiffPixelRatio" scripts/check-visual-artifact-pipeline.py
# AC4
$ uv run python3 -m pytest scripts/tests/test_check_visual_artifact_pipeline.py -k hard_fail -q
# AC5
$ uv run python3 -m pytest scripts/tests/test_check_visual_artifact_pipeline.py -k exclusivity -q
# AC6
# baseline-expect: pass
$ rg -n "Playwright" docs/dev/visual-baseline-registry.md
# AC7
$ uv run python3 -m pytest scripts/tests/test_check_visual_artifact_pipeline.py -k artifact_status -q
# AC8
# baseline-expect: pass
$ rg -n "check-visual-artifact-pipeline.py" .github/workflows/ci.yml
# AC9
$ uv run python3 -m pytest scripts/tests/test_check_visual_artifact_pipeline.py -q
# AC10
$ pnpm typecheck
# AC10
$ pnpm lint
# AC10
$ pnpm test
# AC10
$ pnpm build

Allowed Paths

  • .github/workflows/ci.yml
  • scripts/check-visual-artifact-pipeline.py
  • scripts/tests/test_check_visual_artifact_pipeline.py
  • tests/fixtures/**
  • tests/e2e/visual-utils.ts
  • tests/e2e/visual-overlay.spec.ts
  • playwright.config.ts
  • docs/schemas/visual-evidence-contract.schema.json
  • docs/dev/visual-baseline-registry.md
  • .github/ci/python-test-plan.json

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • baseline PNG の追加・更新が必要になった場合
  • GitHub Actions artifact upload major pin を変更する必要が出た場合
  • external service upload が必要になった場合
  • tests/e2e/reporters/**(Playwright custom reporter)の新設が必要と判明した場合(P1-1 の恒久解は別 Issue のスコープ)

Required Skills

  • GitHub Actions
  • Python
  • TypeScript(Playwright helper の型定義変更を含む)
  • Visual regression testing

Required Design References

Scope Delta(任意)

  • 追加パス: .github/ci/python-test-plan.json
  • 理由: PR 実装: VRT CI evidence matrix と artifact validator を capture 単位に拡張する (#1387) #1813 の CI python-test job が ci_test_selection/v1 artifact 生成時に「Uncovered tests: 1」で fail-closed した。原因は本 Issue で新設した scripts/tests/test_check_visual_artifact_pipeline.py が .github/ci/python-test-plan.json(python-test job のターゲット SSOT)に未登録のため。新規テストファイルを実行対象へ登録するには本ファイルの targets に 1 行追加する変更が必要で、これは元の Allowed Paths 外だった。
  • 承認: リポジトリオーナーが本 Scope Delta を承認済み(impl-review-loop 実行中の会話)。
  • 影響範囲: targets 配列への 1 エントリ追加のみ(ignore / deselect / スキーマは変更しない)。

Delivery Rule

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    on Jul 7, 2026
  2. squne121 commented on Jul 25, 2026

    @squne121
    OwnerAuthor

    PR #1721 レビュー由来の追加証跡(follow-up A)

    PR #1721(Issue #1386 実装, Playwright primary VRT suite)の人間レビュー指摘 #3([P1 / Merge-train blocker])で、この Issue の AC3(validator が active suite の directory / comparator options を cross-validate する)が扱うべき具体的な失敗パターンが確認されたので、本 Issue のスコープを補強する追加証跡として記録する。

    確認された具体的な失敗パターン

    • 現行 CI summary は baseline path: m2-combat-mvp.spec.ts/ と comparator: maxDiffPixels=1 を固定出力し、#1386 で追加された tests/e2e/visual-overlay.spec.ts(screenshot directory・maxDiffPixelRatio comparator・Canvas mask)に対応していない。
    • 現行 validator(scripts/check-visual-artifact-pipeline.py 想定箇所)は DEFAULT_SPEC = tests/e2e/m2-combat-mvp.spec.ts に固定されたうえ、正規表現で maxDiffPixels のみ抽出し maxDiffPixelRatio を検査しない。
    • そのため、旧 running HUD が 8% 許容(maxDiffPixelRatio)、新 overlay が 2% 許容でも、別 screenshot の maxDiffPixels: 1 を拾って「suite の comparator は 1 pixel」と誤認できる状態が実際に存在する。

    この Issue の AC への反映提案

    • AC2(summary が comparator / tolerance を出力する)と AC3(validator が active suite の directory と comparator options を cross-validate する)の実装時、maxDiffPixels と maxDiffPixelRatio を suite ごとに明示的に区別し、どちらの comparator が使われているかを summary / validator の両方で machine-readable に出力・検査すること。
    • suite ID / registry ID / active test path / screenshot directory / capture root / browser / project / platform / viewport / DPR / stylePath / mask policy / maxDiffPixels or maxDiffPixelRatio / threshold / baseline digest / artifact URL・digest を単一の machine-readable manifest から生成・検査する設計を優先する(PR 実装: Playwright primary VRT suite を pending/provisional baseline だけで導入する (#1386) #1721 レビューでの提案)。

    本コメントは Issue #1387 の Machine-Readable Contract・AC・Allowed Paths を変更するものではなく、実装着手時に参照すべき具体的な証跡として追加する。

  3. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    判定

    BLOCKED — 現状の Issue contract のまま実装着手すべきではありません。

    目的自体は妥当です。現行validatorは m2-combat-mvp.spec.ts と maxDiffPixels に固定され、CI summaryも旧baseline pathと maxDiffPixels=1 を固定表示しているため、PR #1721で追加されたoverlay VRTの実態を監査できません。問題は、#1387がこの欠陥を認識している一方、データモデル・Allowed Paths・検証方法が、要求している保証水準に届いていないことです。

    関連する流れは、#1384でregistryを文書化し、#1385でfixture/freeze CSSを導入し、#1386/PR #1721でPlaywright primary VRTを追加、そのレビュー由来のCI監査欠陥を#1387へ移送した、というものです。fixtureが実際にアプリへ適用されたかを証明する別欠陥は#1728、snapshot更新禁止は#1388、Vitest Browser Modeは#1389に分離されています。

    敵対的レビュー

    P0-1. comparatorは「suite」ではなく「capture/baseline」に属する

    #1387はactive suiteごとにcomparator/toleranceを出す設計ですが、既存実装だけで既に破綻しています。

    同じ従来Playwright領域に以下が混在しています。

    • timeout-overlay: maxDiffPixels: 1
    • running-hud: maxDiffPixelRatio: 0.08
    • running-hud-overlay-legacy-current: maxDiffPixels: 100

    つまり、test fileやsuiteを一単位としてcomparatorを一つ持たせることはできません。正しい階層は次です。

    CI lane
      └─ framework / project
           └─ test suite / test file
                └─ visual capture / registry entry
                     └─ comparator + tolerance + expected PNG
    

    現行Issueの「suite comparator」をそのまま実装すると、複数captureのどれか一つを代表値として誤報するか、配列を文字列化しただけの曖昧なsummaryになります。

    P0-2. active suiteとartifactのスコープが定義されていない

    現行CIは通常の pnpm test:e2e:ci でpreview-namespace以外のPlaywright specをまとめて実行し、playwright-report/ と test-results/ をジョブ単位で一回だけuploadします。test:vrt:e2e はpackage scriptとして存在しますが、CIの独立laneとしては実行されていません。

    したがって、各suite行に同じartifact URL/digestを複製すると、「suite専用artifact」のように見える虚偽のprovenanceになります。最低でも次を分離すべきです。

    • ci_lane_id
    • artifact_scope: job | suite
    • artifact_contains_suite_ids
    • suite_execution_status
    • capture_execution_status

    現在のartifactがジョブ共用なら、artifact情報はトップレベルに一度だけ置き、suiteから参照させる必要があります。

    P0-3. 単一正本化は現在のAllowed Pathsでは実現できない

    現在のactive VRT情報は少なくとも三重管理です。

    1. docs/dev/visual-baseline-registry.md
    2. visual-utils.ts の手書き VISUAL_BASELINE_REGISTRY_IDS / MATURITY
    3. 各spec内のscreenshot名、registry ID、comparator option

    visual-utils.ts 自身も、Markdown registryと手動同期する設計だと明記しています。

    しかし#1387のAllowed Pathsには次が含まれません。

    • tests/e2e/visual-utils.ts
    • tests/e2e/visual-overlay.spec.ts
    • playwright.config.ts
    • package.json
    • machine-readable schema用の新規パス
    • Python unit testファイル用のパス

    Issueコメントは「単一のmachine-readable manifest」を推奨していますが、現在のAllowed Pathsではconsumer側をそのmanifestへ接続できません。結果として「第四の手書き正本」を追加するだけになる可能性が高いです。

    P0-4. fixture/unit coverageが受け入れ条件として成立していない

    In Scopeにはvalidator fixture/unit coverageがありますが、Allowed Pathsは tests/fixtures/** だけです。テストfixtureは置けても、pytest test本体を追加できません。

    さらにVerification Commandsはgrepと正常系validator実行だけであり、AC4の「summaryが実値とずれたらhard fail」を実証していません。コード検索でも VISUAL_ARTIFACT_PIPELINE_CHECK_V1 の実装はvalidator本体しか確認できず、専用unit testは存在しません。

    最低限、以下の否定系テストが必要です。

    • ratioをpixelsとしてsummaryへ出した場合にfail
    • comparatorを二つ同時指定した場合にfail
    • active captureのdirectory driftでfail
    • duplicate suite/capture IDでfail
    • pending-baselineをactive扱いした場合にfail
    • PlaywrightとVitestのbaseline root混線でfail
    • stylePath、mask policy、viewport、DPR driftでfail
    • artifact digest wiring欠落でfail
    • artifact未生成を偽のdigest付き成功として扱った場合にfail

    P1-1. source regexの拡張は安全な解決策ではない

    現行validatorはTypeScriptを正規表現で読み、viewport、snapshotPathTemplate、maxDiffPixels を抽出しています。object spread、importされた定数、helper default、複数screenshot call、project override、条件分岐には対応できません。

    「maxDiffPixelRatio 用regexを追加する」程度では、同じ問題を拡大するだけです。Playwrightはcustom reporterを公式に提供し、test annotationもreporterから取得できます。各visual testへregistry IDなどをannotationとして付与し、reporterが実行済みtest/project/resultをmachine-readable JSONへ出す方が、TypeScript source regexより堅牢です。 (Playwright)

    P1-2. 比較条件のfingerprintが不足している

    Playwrightの視覚比較条件には、pixels/ratio以外にも以下があります。

    • threshold。既定値は 0.2
    • scale。assertionでは既定 css
    • animations
    • caret
    • mask
    • maskColor
    • stylePath
    • viewport / DPR
    • project / browser
    • expected PNG path

    これらを記録しないと、summary上は同じcomparatorでも実際の比較結果が変わり得ます。 ([Playwright]2)

    また現行helperはコメント上「maxDiffPixels と maxDiffPixelRatio は排他的」としていますが、実装は「両方未指定」しか拒否せず、両方指定された場合は maxDiffPixels を選びratioを黙って捨てます。#1387がsource解析だけ行っても、実際に有効なoptionの決定規則を正しく表現できません。この修正には visual-utils.ts が必要ですが、現在はAllowed Paths外です。

    P1-3. artifact digestの意味が曖昧

    actions/upload-artifact の artifact-digest は、uploadされたartifactのSHA-256 digestです。これは次とは別物です。

    • baseline PNGのSHA-256
    • freeze CSSのSHA-256
    • suite contract manifestのSHA-256
    • source/config fingerprint
    • test-results内の個別ファイルdigest

    upload-artifact@v6 は既に artifact-id、artifact-url、artifact-digest を出力するため、#1387でmajor pinを変更する必要はありません。 ([GitHub]3)

    フィールドは少なくとも次のように命名分離すべきです。

    upload_artifact_digest_sha256:
    expected_png_sha256:
    freeze_css_sha256:
    suite_contract_sha256:
    runtime_manifest_sha256:

    なお、artifact自身の内容に「自分自身のupload digest」を格納することは自己参照になるため不可能です。upload digestはsummaryか、別のattestation envelopeに置く必要があります。

    P1-4. static validatorとruntime evidenceを混同している

    python-test laneのvalidatorが確認できるのは、workflow YAMLに正しい式が書かれているかまでです。実際の以下の値はe2e runtimeでしか確定しません。

    • browser executable/version
    • 実行されたtest/project
    • pass/fail/skip
    • attachmentの存在
    • artifact ID/URL/digest
    • expected/actual/diffの有無

    したがって二段階に分ける必要があります。

    1. Static validator
      workflow配線、schema、固定contract、summary generator呼び出しを検査する。
    2. Runtime verifier
      reporter出力、baseline hash、attachment inventory、実際のproject情報を検査する。

    現在のsummaryのようにshellの echo で設定値を再記述する方式は廃止し、同じmanifestからsummaryを生成すべきです。

    P1-5. artifact不在状態を契約化していない

    現在のupload stepは if-no-files-found: warn です。build失敗やtest開始前失敗ではreport/resultsが存在せず、URLやdigestが得られない可能性があります。一方、#1387はartifact URL/digestをactive suiteの必須項目のように記述しています。

    次の状態を区別する必要があります。

    artifact_status: uploaded | no_files | step_not_run | upload_failed
    artifact_url: string | null
    artifact_digest_sha256: string | null

    N/A 文字列への潰し込みはmachine-readable contractとして不適切です。

    P1-6. #1728未完了中はscenario provenanceを完全とは主張できない

    #1728が指摘するように、test側WeakMapへfixtureを保存したことと、アプリがfixtureを実際に読み込んでstateへ反映したことは別です。attestation markerがない状態でsummaryへ scenario: running-hud と書いても、それは要求値であって実行証明ではありません。

    #1387自体を#1728でブロックする必要まではありませんが、manifestには次が必要です。

    fixture_attestation:
      status: verified | unavailable | failed
      marker: data-loop-visual-scenario
      observed_value: running-hud

    unavailable の間はfrozen promotion不可とすべきです。

    P2-1. Vitestとの共通化はnamespaceを分けるべき

    #1389はVitest Browser Modeをreport-onlyで導入し、Playwrightとはscreenshot directoryを分離する契約です。Vitestはbaseline名へbrowser/platformを含め、比較optionも comparatorName、allowedMismatchedPixelRatio、allowedMismatchedPixels などPlaywrightと異なります。実際に両方を指定した場合の処理規則もPlaywright helperとは異なります。 (Vitest)

    共通の comparator 文字列へ正規化せず、framework別の型を持たせるべきです。

    framework: playwright
    comparison:
      assertion: toHaveScreenshot
      max_diff:
        kind: pixels
        value: 100
      threshold: 0.2
    
    framework: vitest-browser
    comparison:
      assertion: toMatchScreenshot
      comparator_name: pixelmatch
      allowed_mismatch:
        kind: ratio
        value: 0.01

    P2-2. dependency表記がmachine-readableではない

    #1387の Depends on: split Issue 3 はIssue番号ではありません。リポジトリの issue-contract-review はnative dependency APIを主情報源とし、fallbackも Depends on #N 形式を前提にしています。

    少なくとも次へ置換すべきです。

    Depends on: #1386
    Blocks or precedes: #1388
    Required before active component-suite validation: #1389
    Related provenance gap: #1728
    

    推奨設計

    1. 正本をcapture単位のmachine-readable contractにする

    schema: visual_evidence_contract/v1
    
    lanes:
      - lane_id: e2e
        framework: playwright
        artifact_scope: job
    
        projects:
          - project_id: chromium
            browser_name: chromium
            channel: null
            viewport: { width: 1280, height: 720 }
            device_scale_factor: 1
            scale: css
    
        captures:
          - capture_id: running-hud-overlay
            registry_id: running-hud-overlay-legacy-current
            test_path: tests/e2e/visual-overlay.spec.ts
            expected_path: tests/e2e/__screenshots__/visual-overlay.spec.ts/vrt-running-hud-overlay.png
            capture_root: "[data-battle-ui-root]"
    
            comparison:
              assertion: toHaveScreenshot
              threshold: 0.2
              budget:
                kind: max_diff_pixels
                value: 100
    
            determinism:
              animations: disabled
              caret: hide
              style_path: tests/e2e/visual.freeze.css
              mask_selectors: ["canvas"]

    2. Playwright reporterでruntime結果を出す

    各testへannotationで capture_id / registry_id を付け、custom reporterが以下を出します。

    • 実際に収集・実行されたtest
    • project名
    • status、retry、skip reason
    • attachments
    • runtime browser/version
    • capture contractとの対応

    Playwright公式のreporter/annotation APIで実装可能です。 (Playwright)

    3. summaryをmanifestから生成する

    CI shell内にfingerprintを再記述しない構成にします。

    contract manifest
          +
    Playwright runtime manifest
          +
    upload-artifact outputs
          ↓
    summary generator
          ↓
    $GITHUB_STEP_SUMMARY
    

    Python validatorは、summary本文を曖昧なsubstringで読むのではなく、generator入力とworkflow wiringを検査します。

    Issue contractで必須の修正

    Allowed Pathsは少なくとも次まで広げる必要があります。

    .github/workflows/ci.yml
    scripts/check-visual-artifact-pipeline.py
    scripts/generate-visual-evidence-summary.py
    scripts/tests/test_check_visual_artifact_pipeline.py
    docs/schemas/visual-evidence-contract.schema.json
    tests/fixtures/visual-artifact-pipeline/**
    tests/e2e/visual-utils.ts
    tests/e2e/visual-overlay.spec.ts
    tests/e2e/reporters/**
    playwright.config.ts
    docs/dev/visual-baseline-registry.md
    

    Acceptance Criteriaには次を追加すべきです。

    • activeの定義をlane/test/capture単位で明文化
    • comparatorはcapture単位
    • artifact scopeをjob/suiteで明示
    • pixels/ratioの排他性
    • baseline/style/manifest/upload artifact digestの意味分離
    • runtime未実行/no-files/upload failureの状態表現
    • pending-baselineをactive captureへ登録不可
    • Playwright/Vitest directory ownershipの重複禁止
    • summaryにハードコードされたfingerprint値が存在しない
    • 正常系と全主要否定系のunit test

    Verification Commandsも最低限、次を追加すべきです。

    # AC: validator positive/negative fixtures
    $ uv run --locked pytest scripts/tests/test_check_visual_artifact_pipeline.py -q
    
    # AC: E2E TypeScript contract
    $ pnpm typecheck:e2e
    
    # AC: actual VRT lane
    # preflight-scope: pr_review_only
    $ pnpm test:vrt:e2e
    
    # AC: existing regression gates
    $ pnpm typecheck
    $ pnpm lint
    $ pnpm test
    $ pnpm build

    最終結論

    #1387は必要なIssueですが、現状のまま進めると「hard-coded summary」を「より複雑なhard-coded summary」に置き換えるだけです。

    実装着手前の必須修正は次の4点です。

    1. suiteではなくcapture単位のデータモデルへ変更する。
    2. artifactのjob/suite scopeとdigest種別を定義する。
    3. Allowed Pathsを拡張し、manifest consumerとunit testを変更可能にする。
    4. source regex中心ではなく、machine-readable contract+runtime reporter+summary generatorへ変更する。

    推奨判定: issue-contract-review status: blocked。Issue refinement後にfresh preflightを取り直すべきです。

  4. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Human Escalation Required

    The loop has terminated and requires human review. Cause: human judgment required

    Blockers

    "scope_signal_guard_triggered"
    
    "scope_signal_guard_reason_code:new_allowed_path_layer"
    
  5. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    Allowed Paths 拡張の承認(ANCHOR_SCOPE_REFRAME_V1)

    schema_version: ANCHOR_SCOPE_REFRAME_V1
    target:
      repo: squne121/loop-protocol
      issue_number: 1387
    decision: approve_scope_delta
    allowed_path_deltas:
      - "tests/e2e/visual-utils.ts"
      - "tests/e2e/visual-overlay.spec.ts"
      - "playwright.config.ts"
      - "docs/schemas/visual-evidence-contract.schema.json"
      - "scripts/tests/test_check_visual_artifact_pipeline.py"
    rationale: "anchor comment(issuecomment-5084243746)の敵対的レビューで指摘された P0-3(三重管理のsingle source of truth化)とP0-4(validator用unit test追加)を満たすには、Python/YAML/docsのみのAllowed Pathsでは不十分で、TypeScript Playwright helper層とmachine-readable schema層への変更が必須なため承認する。"
    required_rerun:
      - contract_review
      - refinement_preflight
      - allowed_paths_gate
  6. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Approved

    The issue has been approved and is ready for implementation.

  7. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-26T21:57:07Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1387
      body_sha256: "sha256:5c16b86a23b3e182ab5d10eee16b415fa6d6704b6e4bab65ffcfdcdab64b05cb"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"applicable","decision":"pass","triggers":{"docs_product_allowed_paths":false,"tasks_md_mentioned":false,"specify_artifact_mentioned":false,"generated_task_mentioned":false,"product_spec_context_present":false,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:5c16b86a23b3e182ab5d10eee16b415fa6d6704b6e4bab65ffcfdcdab64b05cb","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":2,"raw_command":"rg -n \"active.*capture\" .github/workflows/ci.yml scripts/check-visual-artifact-pipeline.py","command_hash":"sha256:96ead2362b494cff50b610dab80b003d19225b7403554be2eaeeb07bb19e181a","execution_key_hash":"sha256:6897c6fd84508b1d2bb742800ee1c270979e7ee1838c8890584414197f512faa","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC2","line":4,"raw_command":"rg -n \"screenshot directory\" .github/workflows/ci.yml","command_hash":"sha256:63043845d02b2530c2db691b274b9765323f704cd5d2c0fb77318874f569858d","execution_key_hash":"sha256:6c9e7d23fbe90eb4b8719e39706c50e17b18e1f2c5db9ad7132adbac8ba960b0","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":2,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC3","line":6,"raw_command":"rg -n \"maxDiffPixelRatio\" scripts/check-visual-artifact-pipeline.py","command_hash":"sha256:6c37499837440cfdb1fd1aff861302b37afa98d21f6056dd8ba381b86b0e7f8c","execution_key_hash":"sha256:0d1fa8331728cf60d2409c8281b1f3cfbaf3c80735391721d5317e689ef771fb","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":1,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC4","line":8,"raw_command":"uv run python3 -m pytest scripts/tests/test_check_visual_artifact_pipeline.py -k hard_fail -q","command_hash":"sha256:c284aa31225bf64f9bb1122e1f973d671c3cea47bd0d543f153380f81284546b","execution_key_hash":"sha256:7800d9ba1c896fb6731c0ec8897f34b59c4adbe92e8c2534ed20df59884ed677","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/tests/test_check_visual_artifact_pipeline.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":202,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC5","line":10,"raw_command":"uv run python3 -m pytest scripts/tests/test_check_visual_artifact_pipeline.py -k exclusivity -q","command_hash":"sha256:5862201d1d81ba757306b7c2f9429238ed95b885245e3207f3a0d9333d119603","execution_key_hash":"sha256:b78f9852139c3d6f1d83587341eab73b6008bd5a603cdaf1d29d773c3581002a","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/tests/test_check_visual_artifact_pipeline.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":175,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC6","line":13,"raw_command":"rg -n \"Playwright\" docs/dev/visual-baseline-registry.md","command_hash":"sha256:84416198758235727ed694393c2c14dc109eb719c50c32e656eff5721c3b3e7b","execution_key_hash":"sha256:368f0310d666b0c89d1ba8096d674ab968cded0ad166bea084efbca1c6f92b0a","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["237:      viewport / deviceScaleFactor / Playwright version)と一致することを `$GITHUB_STEP_SUMMARY`","268:  `outputs.artifact-url`、および必須 fingerprint トークン(runner / node / Playwright / browser /","304:  runner / OS(`RUNNER_OS` / `RUNNER_ARCH` / image version)・Node version・Playwright version・"],"stdout_truncated":false,"stdout_original_line_count":4,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":2,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":12,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC7","line":15,"raw_command":"uv run python3 -m pytest scripts/tests/test_check_visual_artifact_pipeline.py -k artifact_status -q","command_hash":"sha256:21c3e7ba0a0ef368e7364e72c8e3a474aeb6f85e684690240ce2f540d6e54085","execution_key_hash":"sha256:06f30593aca177dc20ce18c3482d70deac69536f7aae6d3ac1e249334b7deab5","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/tests/test_check_visual_artifact_pipeline.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":185,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC8","line":18,"raw_command":"rg -n \"check-visual-artifact-pipeline.py\" .github/workflows/ci.yml","command_hash":"sha256:3703fff514ade0bf165951ef1f9432d8e0d22b5fba1bde8ac9ff1b73b2f51765","execution_key_hash":"sha256:10a51652c18b780c86dcd07977278fb1f5d6b3dccc826798d48348eb4d92ee68","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["939:        run: uv run --locked python scripts/check-visual-artifact-pipeline.py"],"stdout_truncated":false,"stdout_original_line_count":2,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":17,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC9","line":20,"raw_command":"uv run python3 -m pytest scripts/tests/test_check_visual_artifact_pipeline.py -q","command_hash":"sha256:3f36f2a8304cc973895f53544c9011549ed267baa148b6577004816545b82a14","execution_key_hash":"sha256:09c83b43f228b11c43b428d06aa205340ba5bc65306cdb0c870704e25fcaebd4","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/tests/test_check_visual_artifact_pipeline.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":178,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC10","line":22,"raw_command":"pnpm typecheck","command_hash":"sha256:1b65adab2d69e0f148ddd11c15c7dcd73ca087b66cc02dac2672f9493093cc6d","execution_key_hash":"sha256:19e280498b0f108679887e0888fe28f9a9b8d07ce9dc4adfa997660f5c06282d","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["✓ Lockfile passes supply-chain policies (verified 14d ago)","Lockfile is up to date, resolution step is skipped","Already up to date","Done in 535ms using pnpm v11.7.0"],"stdout_truncated":false,"stdout_original_line_count":6,"stderr_head":["$ tsc --noEmit"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1564,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.typecheck.v1","exact_request_argv":["pnpm","typecheck"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","typecheck"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:db2e25fc7dae3882ed2b85e1e039f8e5c87512d058ffc8ae4775142faf426c6a","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC10","line":24,"raw_command":"pnpm lint","command_hash":"sha256:ede823a2d5f2814db6ddd8a2969504d513bf5a4428b806aa4d1a0499fb38462f","execution_key_hash":"sha256:6b5f83d0880d897b4a0062ff214f7a4f6559de347b340e38ce2aaba03539c91a","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":["$ eslint ."],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":12178,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.lint.v1","exact_request_argv":["pnpm","lint"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","lint"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:bffbd84769f6a3a529a69a91c07b702779a76e614ec09c7c397c2cc3a027cd30","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC10","line":26,"raw_command":"pnpm test","command_hash":"sha256:ae7aca4de98e885127fe392c0b60056f3472ed0f0be972870a06df422b3f140a","execution_key_hash":"sha256:fb8045320e76145218cd63dbef9477231dd7e6cf0c95d06b046755a0c39dd19e","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["✓ Lockfile passes supply-chain policies (verified 14d ago)","Lockfile is up to date, resolution step is skipped","Already up to date","Done in 472ms using pnpm v11.7.0"," RUN  v4.1.6 /home/squne/projects/LOOP_PROTOCOL"," Test Files  100 passed (100)","      Tests  1829 passed (1829)","   Start at  06:56:32","   Duration  19.71s (transform 21.47s, setup 0ms, import 35.22s, tests 154.29s, environment 11.03s)"],"stdout_truncated":false,"stdout_original_line_count":15,"stderr_head":["$ vitest run --exclude 'tests/e2e/**' --exclude '.claude/worktrees/**' --exclude '.claude/tmp/**' --exclude 'tmp/**'"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":22636,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.test.v1","exact_request_argv":["pnpm","test"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","test"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:1fb02dc3d0e170f244c177f83fadad021f5cd1fbf4b69bef89a3ae551ccf53f7","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC10","line":28,"raw_command":"pnpm build","command_hash":"sha256:702e948d947e109310cb2bf19c157b5bb8142b88c87e02ae87a7594c9b797893","execution_key_hash":"sha256:e40024b81987d386bc3d717aeb31a2d053ae09380d180cbd971d58f338662b40","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["✓ Lockfile passes supply-chain policies (verified 14d ago)","Lockfile is up to date, resolution step is skipped","Already up to date","Done in 498ms using pnpm v11.7.0","\u001b[36mvite v8.0.13 \u001b[32mbuilding client environment for production...\u001b[36m\u001b[39m","\u001b[2K","transforming...✓ 41 modules transformed.","rendering chunks...","computing gzip size...","dist/index.html                  0.46 kB │ gzip:  0.30 kB","dist/assets/index-BMsLd5fy.css   3.49 kB │ gzip:  1.47 kB","dist/assets/index-FsMPCAOe.js   61.16 kB │ gzip: 18.85 kB","\u001b[32m✓ built in 56ms\u001b[39m"],"stdout_truncated":false,"stdout_original_line_count":16,"stderr_head":["$ tsc && vite build"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1660,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.build.v1","exact_request_argv":["pnpm","build"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","build"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:5cd459743411275f0df5594c3f96de7140420a3a4535fb9a46352435215eccda","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}}]
        declared_path_overlap: {"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"cbe85c52d2b8a99790f7db46e3f031ca0c183bfc","draft_policy":"include_drafts","prs":[{"number":1528,"title":"feat(cleanup): 同一実行内の branch-only fallback を追加","base_ref_name":"main","head_ref_name":"worktree-issue-1403-post-merge-cleanup-dedicated-branch-forc","head_ref_oid":"b29007580ae225eb9676c7f32c878ee2bb9ccaa9","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1528","changed_files_count_graphql":4},{"number":1809,"title":"fix(impl-review-loop): identity-bound runner unavailable をdeferredにする","base_ref_name":"main","head_ref_name":"worktree-issue-1805-runner-unavailable-identity-deferred","head_ref_oid":"9a744811211af8a9da772be1152ff6a8c3f21f23","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1809","changed_files_count_graphql":3}],"fetched_count":2,"totalCount":2,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:0baebc196dc4985662b6499fa675c5442a6660bd91e1d7ab4cdb859f31424907","errors":[]},"inventory_digest_extended":"sha256:3f578e71bc4c958bba6be8cd9a0bcc7d5dfad076af95acaaf1e91245d6d1d004","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1387,"contract_source_kind":"issue_comment","contract_source_id":"5085587189","contract_body_sha256":"sha256:5c16b86a23b3e182ab5d10eee16b415fa6d6704b6e4bab65ffcfdcdab64b05cb","allowed_paths_normalized_sha256":"6a866b4befbc744a28c3a8291fed8e078420bbb80454d6de7c017572ac171d7d","base_ref":"main","base_sha_at_snapshot":"cbe85c52d2b8a99790f7db46e3f031ca0c183bfc"}
  8. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    implement-issue: overlap preflight human override 記録 (proceed_with_collision_evidence 相当)

    check_implementation_overlap.py の実行結果は route: human_review_required でしたが、リポジトリオーナー(人間)が候補を精査し false positive と明示的に判断したため、実装を続行します。

    Evidence

    • evidence_sha256: sha256:d2bb8290fdb710faea2152c527e0c5855be987ea931b56b2db98ebfb6129c9f0
    • decision_inputs_sha256: sha256:f23bb62c53e47f5b0063ce620af7b5b0b72593743cbc95b674209b6507bb742d
    • source: /tmp/overlap_preflight_1387.json(IMPLEMENT_SCOPE_COLLISION_PREFLIGHT_V1)

    候補

    人間判断

    リポジトリオーナーが上記候補を確認し、Issue #1387 と #1386 の間に実装上の衝突はなく、構造シグナルのみの false positive であることを承認しました。proceed_with_collision_evidence 相当として実装を続行します。

    後続: Step 3 以降(worktree 作成 → 実装 → Verification Commands → open-pr 経由 Draft PR 作成)へ進みます。PR 本文に evidence_sha256 を転記します。

  9. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    implement-issue: Step 7 直前 drift re-check 結果

    check_implementation_overlap.py を再実行した。

    同一候補・同一 route(既にリポジトリオーナーが false positive として承認済み)
    であるため、新規の human_review_required 発生ではなく実質的な drift ではないと
    判断し、Step 3 以降(実装・検証・PR 起票)を継続する。

  10. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-26T22:55:41Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1387
      body_sha256: "sha256:0c10ebbb8e26868f5e8ebb1c551d51c64215417a15b7acd8488a7033e3add873"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"applicable","decision":"pass","triggers":{"docs_product_allowed_paths":false,"tasks_md_mentioned":false,"specify_artifact_mentioned":false,"generated_task_mentioned":false,"product_spec_context_present":false,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:0c10ebbb8e26868f5e8ebb1c551d51c64215417a15b7acd8488a7033e3add873","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":2,"raw_command":"rg -n \"active.*capture\" .github/workflows/ci.yml scripts/check-visual-artifact-pipeline.py","command_hash":"sha256:96ead2362b494cff50b610dab80b003d19225b7403554be2eaeeb07bb19e181a","execution_key_hash":"sha256:6897c6fd84508b1d2bb742800ee1c270979e7ee1838c8890584414197f512faa","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":5,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC2","line":4,"raw_command":"rg -n \"screenshot directory\" .github/workflows/ci.yml","command_hash":"sha256:63043845d02b2530c2db691b274b9765323f704cd5d2c0fb77318874f569858d","execution_key_hash":"sha256:6c9e7d23fbe90eb4b8719e39706c50e17b18e1f2c5db9ad7132adbac8ba960b0","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC3","line":6,"raw_command":"rg -n \"maxDiffPixelRatio\" scripts/check-visual-artifact-pipeline.py","command_hash":"sha256:6c37499837440cfdb1fd1aff861302b37afa98d21f6056dd8ba381b86b0e7f8c","execution_key_hash":"sha256:0d1fa8331728cf60d2409c8281b1f3cfbaf3c80735391721d5317e689ef771fb","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":1,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC4","line":8,"raw_command":"uv run python3 -m pytest scripts/tests/test_check_visual_artifact_pipeline.py -k hard_fail -q","command_hash":"sha256:c284aa31225bf64f9bb1122e1f973d671c3cea47bd0d543f153380f81284546b","execution_key_hash":"sha256:7800d9ba1c896fb6731c0ec8897f34b59c4adbe92e8c2534ed20df59884ed677","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/tests/test_check_visual_artifact_pipeline.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":174,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC5","line":10,"raw_command":"uv run python3 -m pytest scripts/tests/test_check_visual_artifact_pipeline.py -k exclusivity -q","command_hash":"sha256:5862201d1d81ba757306b7c2f9429238ed95b885245e3207f3a0d9333d119603","execution_key_hash":"sha256:b78f9852139c3d6f1d83587341eab73b6008bd5a603cdaf1d29d773c3581002a","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/tests/test_check_visual_artifact_pipeline.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":179,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC6","line":13,"raw_command":"rg -n \"Playwright\" docs/dev/visual-baseline-registry.md","command_hash":"sha256:84416198758235727ed694393c2c14dc109eb719c50c32e656eff5721c3b3e7b","execution_key_hash":"sha256:368f0310d666b0c89d1ba8096d674ab968cded0ad166bea084efbca1c6f92b0a","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["237:      viewport / deviceScaleFactor / Playwright version)と一致することを `$GITHUB_STEP_SUMMARY`","268:  `outputs.artifact-url`、および必須 fingerprint トークン(runner / node / Playwright / browser /","304:  runner / OS(`RUNNER_OS` / `RUNNER_ARCH` / image version)・Node version・Playwright version・"],"stdout_truncated":false,"stdout_original_line_count":4,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":2,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":12,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC7","line":15,"raw_command":"uv run python3 -m pytest scripts/tests/test_check_visual_artifact_pipeline.py -k artifact_status -q","command_hash":"sha256:21c3e7ba0a0ef368e7364e72c8e3a474aeb6f85e684690240ce2f540d6e54085","execution_key_hash":"sha256:06f30593aca177dc20ce18c3482d70deac69536f7aae6d3ac1e249334b7deab5","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/tests/test_check_visual_artifact_pipeline.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":183,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC8","line":18,"raw_command":"rg -n \"check-visual-artifact-pipeline.py\" .github/workflows/ci.yml","command_hash":"sha256:3703fff514ade0bf165951ef1f9432d8e0d22b5fba1bde8ac9ff1b73b2f51765","execution_key_hash":"sha256:10a51652c18b780c86dcd07977278fb1f5d6b3dccc826798d48348eb4d92ee68","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["939:        run: uv run --locked python scripts/check-visual-artifact-pipeline.py"],"stdout_truncated":false,"stdout_original_line_count":2,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":17,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC9","line":20,"raw_command":"uv run python3 -m pytest scripts/tests/test_check_visual_artifact_pipeline.py -q","command_hash":"sha256:3f36f2a8304cc973895f53544c9011549ed267baa148b6577004816545b82a14","execution_key_hash":"sha256:09c83b43f228b11c43b428d06aa205340ba5bc65306cdb0c870704e25fcaebd4","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: scripts/tests/test_check_visual_artifact_pipeline.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":195,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC10","line":22,"raw_command":"pnpm typecheck","command_hash":"sha256:1b65adab2d69e0f148ddd11c15c7dcd73ca087b66cc02dac2672f9493093cc6d","execution_key_hash":"sha256:19e280498b0f108679887e0888fe28f9a9b8d07ce9dc4adfa997660f5c06282d","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["✓ Lockfile passes supply-chain policies (verified 14d ago)","Lockfile is up to date, resolution step is skipped","Already up to date","Done in 479ms using pnpm v11.7.0"],"stdout_truncated":false,"stdout_original_line_count":6,"stderr_head":["$ tsc --noEmit"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1368,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.typecheck.v1","exact_request_argv":["pnpm","typecheck"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","typecheck"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:db2e25fc7dae3882ed2b85e1e039f8e5c87512d058ffc8ae4775142faf426c6a","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC10","line":24,"raw_command":"pnpm lint","command_hash":"sha256:ede823a2d5f2814db6ddd8a2969504d513bf5a4428b806aa4d1a0499fb38462f","execution_key_hash":"sha256:6b5f83d0880d897b4a0062ff214f7a4f6559de347b340e38ce2aaba03539c91a","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":["$ eslint ."],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":12900,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.lint.v1","exact_request_argv":["pnpm","lint"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","lint"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:bffbd84769f6a3a529a69a91c07b702779a76e614ec09c7c397c2cc3a027cd30","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC10","line":26,"raw_command":"pnpm test","command_hash":"sha256:ae7aca4de98e885127fe392c0b60056f3472ed0f0be972870a06df422b3f140a","execution_key_hash":"sha256:fb8045320e76145218cd63dbef9477231dd7e6cf0c95d06b046755a0c39dd19e","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["✓ Lockfile passes supply-chain policies (verified 14d ago)","Lockfile is up to date, resolution step is skipped","Already up to date","Done in 495ms using pnpm v11.7.0"," RUN  v4.1.6 /home/squne/projects/LOOP_PROTOCOL"," Test Files  100 passed (100)","      Tests  1829 passed (1829)","   Start at  07:55:10","   Duration  18.52s (transform 20.18s, setup 0ms, import 31.97s, tests 127.67s, environment 9.57s)"],"stdout_truncated":false,"stdout_original_line_count":15,"stderr_head":["$ vitest run --exclude 'tests/e2e/**' --exclude '.claude/worktrees/**' --exclude '.claude/tmp/**' --exclude 'tmp/**'"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":21639,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.test.v1","exact_request_argv":["pnpm","test"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","test"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:1fb02dc3d0e170f244c177f83fadad021f5cd1fbf4b69bef89a3ae551ccf53f7","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC10","line":28,"raw_command":"pnpm build","command_hash":"sha256:702e948d947e109310cb2bf19c157b5bb8142b88c87e02ae87a7594c9b797893","execution_key_hash":"sha256:e40024b81987d386bc3d717aeb31a2d053ae09380d180cbd971d58f338662b40","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["✓ Lockfile passes supply-chain policies (verified 14d ago)","Lockfile is up to date, resolution step is skipped","Already up to date","Done in 498ms using pnpm v11.7.0","\u001b[36mvite v8.0.13 \u001b[32mbuilding client environment for production...\u001b[36m\u001b[39m","\u001b[2K","transforming...✓ 41 modules transformed.","rendering chunks...","computing gzip size...","dist/index.html                  0.46 kB │ gzip:  0.30 kB","dist/assets/index-BMsLd5fy.css   3.49 kB │ gzip:  1.47 kB","dist/assets/index-FsMPCAOe.js   61.16 kB │ gzip: 18.85 kB","\u001b[32m✓ built in 60ms\u001b[39m"],"stdout_truncated":false,"stdout_original_line_count":16,"stderr_head":["$ tsc && vite build"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1650,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.build.v1","exact_request_argv":["pnpm","build"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","build"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:5cd459743411275f0df5594c3f96de7140420a3a4535fb9a46352435215eccda","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}}]
        declared_path_overlap: {"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"ea93bcd0fd358a033cbee96278f5e7bd3d882319","draft_policy":"include_drafts","prs":[{"number":1528,"title":"feat(cleanup): 同一実行内の branch-only fallback を追加","base_ref_name":"main","head_ref_name":"worktree-issue-1403-post-merge-cleanup-dedicated-branch-forc","head_ref_oid":"b29007580ae225eb9676c7f32c878ee2bb9ccaa9","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1528","changed_files_count_graphql":4},{"number":1813,"title":"実装: VRT CI evidence matrix と artifact validator を capture 単位に拡張する (#1387)","base_ref_name":"main","head_ref_name":"worktree-issue-1387-vrt-active-capture-evidence-matrix","head_ref_oid":"a343da93cff8e423f6031b004ede5d58b7c855dc","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1813","changed_files_count_graphql":4}],"fetched_count":2,"totalCount":2,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:a064cd11dc59aeee9c5edda74ea810e667f3f486ff51e9f866ef04005a741bc9","errors":[]},"inventory_digest_extended":"sha256:db00caae8bd6f244788c291b999019edc403e16781a0f2e0b9e2761dbea791de","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1387,"contract_source_kind":"issue_comment","contract_source_id":"5085790128","contract_body_sha256":"sha256:0c10ebbb8e26868f5e8ebb1c551d51c64215417a15b7acd8488a7033e3add873","allowed_paths_normalized_sha256":"0391843934e0dda70d30ff6cf9de85ad84b8b5befdd7297a54038afb501c2712","base_ref":"main","base_sha_at_snapshot":"ea93bcd0fd358a033cbee96278f5e7bd3d882319"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/implementerenhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions