Skip to content

実装: VRT fixture 適用の app 側 attestation marker を追加する #1728

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1380"
ancestor_issue: "#1370"
goal_ref: "PR #1721(Issue #1386実装)の人間レビューで指摘された、VRT fixture 適用の app 側 attestation 欠如を解消する"
change_kind: code

Parent Issue

#1380

Parent Goal Ref

Current Validated Scope

  • src/main.ts の __LOOP_VISUAL_SCENARIO__ fixture 適用パス(applyVisualScenarioFixture(fixture) 呼び出しによる初回 render 完了後)に、fixture 適用完了を示す test-only marker(例: document.documentElement.dataset.loopVisualScenario = fixture.name)を追加する。
  • tests/e2e/visual-overlay.spec.ts / tests/e2e/visual-scenario-fixture.spec.ts に、screenshot 比較前の明示的な attestation assertion(marker 属性値の確認、および fixture が反映した具体的な state 値の確認)を追加する。
  • tests/e2e/visual-utils.ts の expectDomOverlayScreenshot() / expectCanvasVisualCueScreenshot() に、screenshot 比較前の attestation 検証を集約する central helper を追加する(OWNER anchor comment issuecomment-5224476522、merge blocker)。
  • production dist(VITE_E2E_MODE=false pnpm build)に attestation marker/receipt が漏れていないことを証明する検証を追加する(OWNER anchor comment issuecomment-5224476522、merge blocker)。

Remaining Parent Gaps

Outcome

installVisualScenario() で登録した VRT fixture がアプリ側に実際に反映されたことを、test-only marker 経由でテストコードが明示的に assertion してから screenshot 比較を行う状態にし、fixture が無視された場合に screenshot 比較が silent に緩い許容値で pass することを防ぐ。これを個々の spec 側の assertion 忘れに依存させず、tests/e2e/visual-utils.ts の screenshot helper(expectDomOverlayScreenshot() / expectCanvasVisualCueScreenshot())内で強制し、かつ production dist へ marker/receipt が漏れないことを機械的に証明する。

In Scope

  • src/main.ts に、__LOOP_VISUAL_SCENARIO__ fixture 適用後の初回 render が完了した時点で document.documentElement.dataset.loopVisualScenario (または同等の VITE_E2E_MODE 限定 test-only marker)へ v1:<fixture.name>:rendered 形式のバージョン付き receipt を設定する処理を追加する。render 前ではなく、HudController が fixture の全 field を state へ反映し DOM 描画を終えた後に発行すること(具体的な実装フック — requestAnimationFrame 後、次の frame() 呼び出し後、等 — は実装時に決定してよい)。
  • tests/e2e/visual-overlay.spec.ts の active screenshot test(running-hud 等)で、screenshot 比較前に toHaveAttribute('data-loop-visual-scenario', <期待 receipt 値>)(または dataset 相当のロケーター assertion)を追加する
  • tests/e2e/visual-scenario-fixture.spec.ts に、fixture が実際の battle-stage overlay state(Hull 値・Resources 値・Mission status 等、既存 [data-battle-ui-root] 配下のテキストコンテンツで確認可能なもの)へ反映されたことを確認する assertion を、少なくとも 1 fixture について追加する
  • marker は import.meta.env.VITE_E2E_MODE === 'true' の場合のみ設定し、production build には現れないことを既存の tree-shaking 前提(src/main.ts コメント "tree-shaken in production builds")に合わせて維持する
  • tests/e2e/visual-utils.ts に assertVisualScenarioAttested(page, installedFixture) 相当の central helper を追加し、expectDomOverlayScreenshot() と expectCanvasVisualCueScreenshot() の両方が screenshot 比較の前に必ずこの helper を呼ぶよう変更する(AC6)。個々の spec からの marker assertion(AC3 / AC4)は削除不要だが、central helper が enforcement の一次防衛線になる。central helper は installedScenarios(既存 WeakMap<Page, VisualScenarioFixture>)から得た installed fixture を用いて receipt 値を照合し、可能であれば LoopE2ESnapshot(src/main.ts)の loopPhase / player.hp / player.maxHp / progress.resources / progress.weaponPower / sortie.status / sortie.elapsedTicks / result のうち fixture が指定する state フィールドとの projection assertion も行う。
  • production dist への marker/receipt 非漏洩の機械的証明を追加する(AC7)。production build 後に dist 全体を走査する negative VC(rm -rf dist && VITE_E2E_MODE=false pnpm build && ! rg -n 'data-loop-visual-scenario|loopVisualScenario|v1:.*:rendered' dist 相当)で検証する。
  • (任意)tests/e2e/visual-utils.ts の installVisualScenario() が同一 page への重複 install を拒否する(installedScenarios.has(page) チェック)(AC8)

Out of Scope

Acceptance Criteria

  • AC1: src/main.ts が VITE_E2E_MODE === 'true' かつ __LOOP_VISUAL_SCENARIO__ fixture 適用時に、fixture 適用後の初回 render が完了した時点で document.documentElement.dataset へバージョン付き receipt(例: v1:<fixture.name>:rendered)を設定する。render 前には設定しない。
  • AC2: fixture が未適用(__LOOP_VISUAL_SCENARIO__ が undefined、または VITE_E2E_MODE !== 'true')の場合、AC1 の receipt は設定されない。実装は delete document.documentElement.dataset.loopVisualScenario(または同等の明示的な未設定化)で、この分岐を静的にも確認可能な形にする。
  • AC3: tests/e2e/visual-overlay.spec.ts の active screenshot test が、screenshot 比較(toHaveScreenshot() 等)の前に AC1 の receipt を明示的に assertion する。
  • AC4: tests/e2e/visual-scenario-fixture.spec.ts に、少なくとも 1 fixture について receipt だけでなく overlay の具体的な state 値(Hull / Resources / Mission status のいずれか)が fixture 通りに反映されていることを確認する assertion が追加されている。
  • AC5: typecheck / typecheck:e2e / lint / test / test:e2e / build / test:vrt が PASS する。
  • AC6: tests/e2e/visual-utils.ts に assertVisualScenarioAttested 相当の central helper が定義され、expectDomOverlayScreenshot() と expectCanvasVisualCueScreenshot() の両方が screenshot 比較の前に必ずこの helper を呼ぶ。個々の spec 側の marker assertion(AC3/AC4)を書き忘れても、この helper が attestation 欠如を fail-closed で検出する。
  • AC7: production dist(VITE_E2E_MODE=false pnpm build の出力)に attestation marker/receipt(data-loop-visual-scenario 属性名、または v1:<name>:rendered 形式の receipt 値)が含まれないことを、production build 後の dist 全体に対する negative scan で機械的に検証する VC が存在する。
  • AC8(任意): installVisualScenario() が同一 page への重複 install を拒否し、エラーを throw する。

Runtime Verification Applicability

runtime_verification_applicability:
  decision: immediate
  reason: "AC1〜AC4、AC6 が Playwright E2E 実行による実 DOM 描画・screenshot 比較・document.documentElement.dataset state 値確認を要求するため、静的検証だけでは AC の意味を証明できない。AC7 は production build 出力の走査(非 Playwright)で静的に検証できる。"
  applicable_acs: [AC1, AC2, AC3, AC4, AC6]
  execution_environment: "Playwright + VITE_E2E_MODE=true build 済み Chromium headless(pnpm test:e2e / pnpm test:vrt 実行環境)"
  skip_conditions: "Playwright browser binary 未インストール、headless Chromium 起動不可、VITE_E2E_MODE=true build 失敗"
  fallback_policy: "SKIP は PASS に変換しない。fallback 経由の screenshot 比較 pass は FAIL として扱う。"
  artifact_requirements: "pnpm test:e2e / pnpm test:vrt の実行ログと、AC1〜AC4・AC6 に対応する assertion 結果(receipt 値・state 値・helper 呼び出し確認)を含む bounded 証跡"

Verification Commands

# AC1
$ rg -n "loopVisualScenario" src/main.ts
# AC2
$ rg -n "delete document.documentElement.dataset.loopVisualScenario" src/main.ts
# AC3
$ rg -n "data-loop-visual-scenario" tests/e2e/visual-overlay.spec.ts
# AC4
$ rg -n "Mission status" tests/e2e/visual-scenario-fixture.spec.ts
# AC5
$ pnpm typecheck
# AC5
$ pnpm typecheck:e2e
# AC5
$ pnpm lint
# AC5
$ pnpm test
# AC5
# preflight-scope: pr_review_only
$ pnpm test:e2e
# AC5
$ pnpm build
# AC5
# preflight-scope: pr_review_only
$ pnpm test:vrt
# AC6
$ rg -n "assertVisualScenarioAttested" tests/e2e/visual-utils.ts
# AC7
# preflight-scope: pr_review_only
$ rm -rf dist
# AC7
# preflight-scope: pr_review_only
$ VITE_E2E_MODE=false pnpm build
# AC7
# preflight-scope: pr_review_only
$ rg -n -e "data-loop-visual-scenario" -e "loopVisualScenario" -e "v1:.*:rendered" dist
# AC8
$ rg -n "installedScenarios.has\(page\)" tests/e2e/visual-utils.ts

Allowed Paths

  • src/main.ts
  • tests/e2e/visual-overlay.spec.ts
  • tests/e2e/visual-scenario-fixture.spec.ts
  • tests/e2e/visual-utils.ts

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • VisualScenarioFixture 型など producer-consumer schema の変更が必要になった場合
  • 動作検証 AC の VC が SKIP(exit 77)を返した場合(実行環境不可のためエスカレーション)
  • fallback 経由でのみ「成功」する場合(FAIL として扱い、実行環境を確認)

Required Skills

  • TypeScript
  • Playwright
  • Visual regression testing

Required Design References

  • docs/dev/visual-baseline-registry.md
  • tests/e2e/visual-utils.ts
  • src/main.ts
  • scripts/e2e-control-marker-manifest.mjs
  • scripts/check-dist-e2e-boundary.mjs

Scope Delta(任意)

  • N/A

Delivery Rule

Notes for Reviewer

  • 起票元: PR 実装: Playwright primary VRT suite を pending/provisional baseline だけで導入する (#1386) #1721(Closes 実装: Playwright primary VRT suite を pending/provisional baseline だけで導入する #1386)の人間レビューコメント 実装: Playwright primary VRT suite を pending/provisional baseline だけで導入する (#1386) #1721 (comment) の指摘 Claude Code ガードレールを .claude に実装する #5([P1])。
  • 指摘の再現条件: installVisualScenario() は page.addInitScript() 登録後、テスト側 WeakMap<Page, VisualScenarioFixture> に fixture を保存するのみで、アプリ側が fixture を認識し state へ実際に適用したかを確認していない。E2E mode でビルドされていない stale bundle と組み合わさると、fixture が無視されても初期画面が baseline に近ければ緩い comparator で pass してしまう危険がある。
  • Scope Collision (C3) advisory: overlap preflight は 実装: Playwright + Vitest Browser Mode 段階導入で #1370 battle-stage DOM overlay を VRT 保護 #1380(VRT rollout tracker)との tests/e2e/** 部分一致を検出したが、実装: Playwright + Vitest Browser Mode 段階導入で #1370 battle-stage DOM overlay を VRT 保護 #1380 自体は実装 PR を持たない tracker(## Current Validated Scope: "実装: Playwright + Vitest Browser Mode 段階導入で #1370 battle-stage DOM overlay を VRT 保護 #1380 自体では implementation PR を作らず、child issue の routing と完了条件だけを管理する")であり、write-capable scope は本 Issue の ## Allowed Paths に閉じる。既存 sibling child issue(実装: Playwright primary VRT suite を pending/provisional baseline だけで導入する #1386 / 実装: VRT CI evidence matrix と artifact validator を active suite 対応に拡張する #1387 等)と同型の false positive(tracker の broad path 由来)として扱う。
  • marker 名 (data-loop-visual-scenario 等) と対象 state 値の具体的な selector はレビュー時点では確定していないため、実装時に既存 src/ui/HudController.ts の DOM 構造・[data-battle-ui-root] 配下のテキストと整合する形で決定すること。
  • OWNER anchor comment(issuecomment-5123649423)指摘反映: (1) AC5 の VC を pnpm test:vrt:e2e(既存 dist 再利用、VITE_E2E_MODE 未設定 build を握ったまま VRT を実行してしまう)から pnpm test:vrt(自前で VITE_E2E_MODE=true pnpm build を実行してから VRT)へ差し替えた。production build(pnpm build)の健全性確認は別途保持するが、その dist を VRT へ使い回さない。(2) marker(receipt)の発行タイミングを「fixture 適用直後(初回 render 前)」から「fixture 適用後の初回 render 完了後」に変更し、receipt をバージョン付き値(v1:<scenario>:rendered 形式)にした。(3) AC5 の VC に pnpm typecheck:e2e と pnpm test:e2e(tests/e2e/visual-scenario-fixture.spec.ts を含む全 e2e テストを実行)を追加し、AC4 の改修対象ファイルが AC5 の VC で実際に実行されるようにした。
  • OWNER anchor comment(issuecomment-5224476522)指摘反映: main の 実装: combat HUD の配置・safe-zone・情報優先度を実装する #1958 進行により VRT architecture が変化し、本 Issue の AC が弱くなっていた 2 件を merge blocker として組み込んだ。(1) AC6: tests/e2e/visual-utils.ts の expectDomOverlayScreenshot() / expectCanvasVisualCueScreenshot() に attestation 検証を集約する central helper(assertVisualScenarioAttested 相当)を追加し、個々の spec の marker assertion 書き忘れに依存しない enforcement にした。(2) AC7: production dist への marker/receipt 非漏洩を機械的に証明する VC を追加した(scripts/e2e-control-marker-manifest.mjs への追加、または negative dist scan のいずれかを実装時に選択)。P1 のうち、central helper 内での LoopE2ESnapshot(loopPhase / player.hp / maxHp / progress.resources / weaponPower / sortie.status / elapsedTicks / result)projection assertion 推奨は AC6 の記述に統合した。installVisualScenario() の重複 install 拒否は任意の AC8 として追加した。static rg 依存の negative path の弱さ、rendered の意味論明文化は本 Notes への記載に留め、AC 化はしていない。
  • P1(任意、未反映): static rg 依存の negative path のさらなる強化(AST ベース検査等)、rendered 値の意味論のさらなる明文化(何をもって "rendered" と判定するかの厳密な契約)は、実装時の裁量に委ねる。
  • issue-reviewer 再レビュー反映(VCP_BROAD_SEARCH_PATH_UN 対応): AC7 の検証方式を選択肢 A(scripts/e2e-control-marker-manifest.mjs への marker 追加、Allowed Paths 拡張が必要)と選択肢 B(negative dist scan、Allowed Paths 拡張不要)の両論併記から、選択肢 B へ確定した。選択肢 A は scripts/e2e-control-marker-manifest.mjs を Verification Commands が参照するにもかかわらず ## Allowed Paths に含まれておらず、VC preflight が broad_search_path_unbounded として blocking 判定するため、この Issue のスコープをこれ以上広げない方針(Allowed Paths 拡張なし)で選択肢 B を採用した。選択肢 A(#1425 の canonical marker manifest との一貫性向上)の恒久化は follow-up Issue での検討対象として残す。

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    triage-required
    on Jul 25, 2026
  2. squne121 commented on Jul 29, 2026

    @squne121
    OwnerAuthor

    判定

    REQUEST_CHANGES — 現行 Issue contract のままでは実装着手不可です。

    目的は妥当です。現状の screenshot helper は、テスト側の WeakMap<Page, VisualScenarioFixture> に「fixture をインストールしたつもり」という情報を保存しているだけで、アプリがその payload を読み、state に適用し、描画まで完了したことは証明していません。#1728 は PR #1721 のレビュー指摘から分離された follow-up であり、#1387 もこの問題を provenance gap として参照しています。

    一方、提案されている marker は「fixture 適用直後」に fixture 名を DOM 属性へ書くだけであり、描画完了証明としては早すぎます。さらに Verification Commands が誤った dist を実行し、追加するテスト自体も実行しない構成です。#1728 には現時点でコメントがなく、検索範囲では #1728 を実装・close する PR も確認できませんでした。


    敵対的レビュー

    P0-1. AC5 の Verification Commands は production dist を VRT に渡す自己矛盾がある

    #1728 の AC5 は pnpm build と pnpm test:vrt:e2e の PASS を要求しています。ところが現行 scripts は次の意味です。

    • pnpm build: tsc && vite build
    • pnpm test:vrt:e2e: build せず、visual-overlay.spec.ts だけを実行
    • pnpm test:vrt: VITE_E2E_MODE=true で再 build してから VRT を実行

    したがって、記載順に pnpm build → pnpm test:vrt:e2e と実行すると、後者は E2E fixture branch を含まない production dist を配信します。

    リポジトリ自身の Visual Baseline Registry も、test:vrt:e2e は「直前に VITE_E2E_MODE=true で build された dist があること」を precondition とし、ローカルでは先に E2E build が必要だと明記しています。

    これは Vite の仕様上も回避できません。import.meta.env は build 時に静的置換され、tree-shaking の対象になります。preview server 起動時だけ VITE_E2E_MODE=true を渡しても、既に生成された production bundle は E2E bundle に変わりません。([vitejs]1)

    必須修正

    AC5 の pnpm test:vrt:e2e は、少なくとも次のいずれかへ変更する必要があります。

    pnpm test:vrt

    または、

    rm -rf dist
    VITE_E2E_MODE=true pnpm build
    LOOP_VRT_LANE=true pnpm test:vrt:e2e

    前者の canonical script を採用する方が、precondition の取り違えを防げます。


    P0-2. 提案 marker は「適用完了」ではなく「apply 関数が返った」という receipt にすぎない

    Issue は、applyVisualScenarioFixture(fixture) の直後に次のような marker を設定する方針です。

    document.documentElement.dataset.loopVisualScenario = fixture.name

    しかし現行 app flow では、

    1. fixture を parse
    2. visualScenarioActive = true
    3. applyVisualScenarioFixture(fixture)
    4. 後続の最初の requestAnimationFrame
    5. hud.render(...)
    6. phaseScreens.render(...)
    7. renderer.render(...)

    という順序です。つまり、Issue 指定位置の marker は 最初の DOM/Canvas 描画より前に設定されます。

    この marker が証明できるのは、最大でも次の事実です。

    指定名の payload を parse し、applyVisualScenarioFixture() が例外を送出せず返った。

    以下は証明できません。

    • fixture の全 field が正しい state field へ反映された
    • HudController がその state を DOM へ描画した
    • 描画対象が fixture 由来の値になった
    • 同名だが異なる HP/resources/duration payload が適用されていない
    • 初回 render 中に例外が発生していない

    Playwright の toHaveScreenshot() は、連続する二枚の locator screenshot が一致するまで待ってから baseline と比較します。しかし、これは画像が安定したことを示すだけで、どの fixture がその画像を生成したかは証明しません。(Playwright)

    必須修正

    marker は少なくとも最初の成功した render 後に発行してください。

    let pendingVisualScenarioReceipt: VisualScenarioFixture | null = null
    
    if (import.meta.env.VITE_E2E_MODE === 'true') {
      const raw = (
        window as Window & { __LOOP_VISUAL_SCENARIO__?: unknown }
      ).__LOOP_VISUAL_SCENARIO__
    
      if (raw !== undefined) {
        const fixture = parseVisualScenarioFixture(raw)
    
        applyVisualScenarioFixture(fixture)
    
        // apply 成功後に active 化する
        visualScenarioActive = true
        pendingVisualScenarioReceipt = fixture
      }
    }
    
    function frame(now: number): void {
      // simulation processing...
    
      syncBattleOverlayLayout()
      hud.render(state, productPause.isPaused)
      phaseScreens?.render(state, buildUpgradeView())
      renderer.render(state)
    
      if (pendingVisualScenarioReceipt) {
        document.documentElement.setAttribute(
          'data-loop-visual-scenario-receipt',
          `v1:${pendingVisualScenarioReceipt.name}:rendered`,
        )
        pendingVisualScenarioReceipt = null
      }
    
      window.requestAnimationFrame(frame)
    }

    data-loop-visual-scenario="running-hud" より、以下のように状態を区別できる値が適切です。

    v1:running-hud:rendered
    

    属性名も attestation より receipt が正確です。DOM 属性はテストコードから任意に変更できるため、耐改ざん性を持つ attestation ではありません。


    P0-3. AC4 で変更するテストが、AC5 のどのコマンドからも実行されない

    #1728 は tests/e2e/visual-scenario-fixture.spec.ts に具体的 state assertion を追加することを要求しています。しかし AC5 は pnpm test と pnpm test:vrt:e2e を列挙するだけです。

    現行 scripts では、

    • pnpm test は tests/e2e/** を明示的に除外
    • pnpm test:vrt:e2e は tests/e2e/visual-overlay.spec.ts のみ実行

    となっています。

    対象 spec 自身も、pnpm test では実行されず、型検査は pnpm typecheck:e2e、振る舞い検証は Playwright E2E lane で行うと明記しています。

    したがって現在の AC5 は、AC4 の実装が空、コメントだけ、常時 skip、あるいは失敗する状態でも PASS し得ます。

    必須修正

    AC5 に以下を追加してください。

    pnpm typecheck:e2e
    pnpm test:e2e

    または対象 spec 専用 script を package.json に追加し、Issue の Allowed Paths に package.json を含めます。


    P1-1. marker assertion を一つの test callsite に置くだけでは invariant にならない

    Issue は visual-overlay.spec.ts の active screenshot test に toHaveAttribute(...) を直接追加する構成です。

    しかし、現在の screenshot policy は visual-utils.ts に集約されています。

    • installVisualScenario() が test-side WeakMap に fixture を記録

    • expectDomOverlayScreenshot() がその WeakMap だけを確認

    • expectCanvasVisualCueScreenshot() も同じ test-side binding だけを確認

    active test は現在、fixture install → navigation → screenshot helper の順で、app-side state assertion を行っていません。

    test 本体だけに assertion を追加すると、将来の capture、Canvas capture、別 spec、直接 helper 呼び出しが marker gate を省略できます。

    推奨設計

    共通 helper を追加し、両 screenshot helper から必ず呼んでください。

    async function assertVisualScenarioApplied(
      page: Page,
      fixture: VisualScenarioFixture,
    ): Promise<void> {
      await expect(page.locator('html')).toHaveAttribute(
        'data-loop-visual-scenario-receipt',
        `v1:${fixture.name}:rendered`,
      )
    
      await expect
        .poll(() =>
          page.evaluate(() => {
            const hook = (
              window as Window & {
                __LOOP_E2E__?: { getState(): unknown }
              }
            ).__LOOP_E2E__
    
            if (!hook) {
              throw new Error('__LOOP_E2E__ is unavailable')
            }
    
            return hook.getState()
          }),
        )
        .toMatchObject({
          loopPhase: fixture.loopPhase,
          player: fixture.player,
          progress: fixture.progress,
          sortie: {
            status: fixture.sortie.status,
            elapsedTicks: fixture.sortie.elapsedTicks,
          },
        })
    }

    Playwright は toHaveAttribute() や toHaveText() などの web assertion を自動 retry し、複雑な state assertion には expect.poll() を使用できます。固定 sleep よりこの形が適切です。(Playwright)

    呼び出し位置は、既存の target guard、registry guard、comparator guard の後、toHaveScreenshot() の直前にします。これにより既存の否定テストが期待するエラー優先順位を壊しません。


    P1-2. AC4 の「Hull / Resources / Mission status」は scenario と selector が曖昧

    現在の running-hud fixture は次の値です。

    player: { hp: 80, maxHp: 100 }
    progress: { resources: 12, weaponPower: 1 }
    sortie: { status: 'running', elapsedTicks: 900, fixedDeltaMs: 16 }

    一方、現行 running HUD の DOM は Hull、Shots、Cooldown、Mission phase、Mission status、Kills、Duration、Outcome を描画します。Resources field は running HUD に存在しません。

    現在の copy mapping から、具体的に検証できる値は次です。

    await expect(overlay.locator('[data-field="hp"]'))
      .toHaveText('80/100')
    
    await expect(overlay.locator('[data-field="loop-phase"]'))
      .toHaveText('Sortie active')
    
    await expect(overlay.locator('[data-field="sortie-status"]'))
      .toHaveText('In Progress')

    running phase は Sortie active、running sortie は In Progress へ変換されます。

    Resources は DOM ではなく、既存の window.__LOOP_E2E__.getState() から検証するべきです。この hook は既に player.hp/maxHp、progress.resources/weaponPower、loopPhase、sortie.status/elapsedTicks/result を返します。

    また、現行 fixture spec は hook の型を LoopE2EState としてローカル複製し、loopPhase と sortie しか検証していません。src/main.ts から LoopE2ESnapshot を type-only import し、既存の正本型を再利用した方が drift を防げます。


    P1-3. Verification Commands が文字列存在しか検証していない

    現行案の verification は概ね次の形式です。

    rg -n "loopVisualScenario" src/main.ts
    rg -n "VITE_E2E_MODE" src/main.ts
    rg -n "data-loop-visual-scenario" tests/e2e/visual-overlay.spec.ts
    rg -n "Mission status" tests/e2e/visual-scenario-fixture.spec.ts

    これらは以下の不正実装でも PASS します。

    • marker を fixture apply 前に設定
    • marker を production branch に設定
    • screenshot 後に marker assertion を配置
    • assertion をコメントアウト
    • "Mission status" をコメントへ書いただけ
    • expected value を一度も検証していない

    AC1~AC4 は static grep ではなく、正・負の Playwright test で検証してください。

    最低限必要な否定系は次です。

    1. fixture 未設定では receipt が存在しない
    2. invalid fixture では receipt が存在しない
    3. pending fixture では receipt が存在しない
    4. fixture 名と observed receipt が不一致なら screenshot helper が失敗
    5. observed state が fixture payload と不一致なら screenshot helper が失敗
    6. receipt 発行前に render が失敗した場合は receipt が存在しない

    P1-4. production artifact 非漏洩を tree-shaking の説明だけで済ませている

    Issue は marker を VITE_E2E_MODE branch 内に置き、production build には現れないという既存 tree-shaking 前提を継承しています。

    Vite の build-time static replacement により dead-code elimination が期待できること自体は正しいですが、これは配布物を実際に検査した証跡ではありません。([vitejs]1)

    さらに #1425 は production/E2E artifact boundary checker の対象 marker を次の三つに固定しています。

    • __LOOP_VISUAL_SCENARIO__
    • __LOOP_E2E__
    • __LOOP_E2E_BOOTSTRAP__

    #1728 で新設する DOM receipt marker は、現行 #1425 contract の対象外です。

    必須の調整

    #1425 自身も、workflow 内の文字列存在確認だけでは fail-closed な artifact boundary を証明できず、実ファイルに対する checker test が必要だとしています。


    P1-5. #1387/PR #1813 の CI evidence へ receipt が接続されていない

    #1387 は #1728 を明示的に provenance gap として扱っています。

    PR #1813 後の CI summary は active capture ごとに、以下を列挙・cross-validation しています。

    • capture ID

    • screenshot directory

    • browser/project

    • viewport/DPR

    • comparator

    • stylePath

    • artifact scope

    • artifact URL/digest

    • retention

    しかし、現在の capture evidence には次がありません。

    fixture_receipt:
      status: verified | unavailable | failed
      expected: v1:running-hud:rendered
      observed: v1:running-hud:rendered
      receipt_schema: loop_visual_fixture_receipt/v1

    したがって #1728 を実装しても、CI summary の machine-readable provenance は更新されません。

    ここはスコープ判断が必要です。

    現行 contract のまま close すると、runtime assertion は改善しても end-to-end provenance 完了を過大主張します。


    P2-1. 同一 Page への二重 install が nondeterministic

    現在の installVisualScenario() は毎回 page.addInitScript() を追加し、WeakMap を新しい fixture で上書きします。二重 install を拒否する guard はありません。

    次の呼び出しが可能です。

    await installVisualScenario(page, fixtureA)
    await installVisualScenario(page, fixtureB)
    await page.goto('/')

    このとき test-side WeakMap は fixtureB を保持しますが、page には A/B の init script が二つ登録されます。Playwright は、複数の browserContext.addInitScript()/page.addInitScript() の評価順を未定義としています。(Playwright)

    結果として app が A を読み、helper が B を期待する可能性があります。

    修正

    if (installedScenarios.has(page)) {
      throw new Error(
        'installVisualScenario(): a scenario is already bound to this Page.',
      )
    }

    二重 install は marker mismatch まで進めず、test setup 時点で fail-closed にしてください。


    推奨する contract の再定義

    Outcome

    E2E/VRT build において、visual fixture が正常に parse・state 適用され、最初の battle overlay render が成功した後に versioned app-side receipt を発行する。全 screenshot helper は capture 前に receipt と observed state を fixture payload に照合し、不一致・未発行・二重 install を fail-closed にする。production artifact には receipt marker を含めない。

    Acceptance Criteria

    1. Receipt timing
      v1:<scenario>:rendered receipt は、fixture parse・state apply・初回 hud.render/phaseScreens.render/renderer.render 成功後にのみ設定される。

    2. Negative paths
      fixture 未設定、production build、invalid fixture、pending fixture、render failure では receipt が設定されない。

    3. Central enforcement
      expectDomOverlayScreenshot() と expectCanvasVisualCueScreenshot() が、toHaveScreenshot() の直前に共通 app-side receipt/state gate を必ず実行する。

    4. Exact state binding
      running-hud について、__LOOP_E2E__.getState() が HP 80/100、resources 12、weaponPower 1、phase running、sortie status running、elapsedTicks 900 と一致する。

    5. Exact DOM binding
      [data-field="hp"] = 80/100、[data-field="loop-phase"] = Sortie active、[data-field="sortie-status"] = In Progress を screenshot 前に確認する。

    6. Single installation
      同一 Page への二重 installVisualScenario() は navigation 前に拒否される。

    7. Artifact boundary
      production dist には receipt marker がなく、E2E dist には存在する。実装: deploy-pages/CI で production dist への E2E hook 漏洩を fail-closed 検査する #1425 の marker list と整合する。

    8. Executed verification
      typecheck:e2e、対象 fixture spec を含む Playwright E2E、hermetic VRT が実際に実行される。

    9. Evidence scope
      CI manifest へ receipt を載せない場合、「実装: VRT fixture 適用の app 側 attestation marker を追加する #1728 は test-local gate であり、capture-level CI provenance 更新は別 scope」と明記する。


    推奨 Verification Commands

    # TypeScript / unit
    pnpm typecheck
    pnpm typecheck:e2e
    pnpm lint
    pnpm test
    
    # Production distribution: receipt/hook literal must be absent
    rm -rf dist
    pnpm build
    ! rg -n \
      'data-loop-visual-scenario-receipt|loopVisualScenarioReceipt' \
      dist
    
    # Full standard E2E: visual-scenario-fixture.spec.ts を含めて実行
    pnpm test:e2e
    
    # E2E distribution: receipt implementation must be present
    rg -n \
      'data-loop-visual-scenario-receipt|loopVisualScenarioReceipt' \
      dist
    
    # Canonical hermetic VRT: E2E build を内部で再生成
    pnpm test:vrt

    #1425 の checker が実装された後は、直接 rg する部分を canonical boundary checker に置き換えるべきです。


    最終 verdict

    ISSUE_ADVERSARIAL_REVIEW_V1:
      issue_number: 1728
      verdict: request_changes
      implementation_ready: false
    
      valid_goal: true
      current_contract_proves_goal: false
    
      blockers:
        - id: P0-1
          category: verification_artifact_mismatch
          summary: >
            pnpm build 後の test:vrt:e2e が production dist を使用するため、
            AC5 が自己矛盾している。
        - id: P0-2
          category: premature_receipt
          summary: >
            marker が applyVisualScenarioFixture 直後、初回 render 前に発行されるため、
            描画完了や具体的 state 反映を証明しない。
        - id: P0-3
          category: changed_test_not_executed
          summary: >
            visual-scenario-fixture.spec.ts は pnpm test に含まれず、
            test:vrt:e2e からも実行されない。typecheck:e2e も AC5 にない。
    
      required_contract_changes:
        - receipt を初回成功 render 後に versioned value として発行する
        - screenshot helper 両方で receipt/state を中央強制する
        - exact selector と exact expected value を AC に固定する
        - pnpm typecheck:e2e と pnpm test:e2e を Verification Commands に追加する
        - test:vrt:e2e の build precondition 問題を pnpm test:vrt で解消する
        - production artifact boundary を #1425 と同期する
        - CI provenance の対象範囲を明記する
    
      recommended_receipt:
        attribute: data-loop-visual-scenario-receipt
        value_example: v1:running-hud:rendered
        semantic_strength: app_render_receipt
        not_claimed: cryptographic_attestation

    結論: #1728 は必要な Issue ですが、現在の contract は「marker を置いた」という形式的実装を許し、追加テストも実行せず、VRT には誤った配布物を渡します。上記 P0 三件を Issue 本文へ反映するまで、実装開始判定は blocked が妥当です。

  3. squne121 commented on Aug 8, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-08-08T01:03:57Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1728
      body_sha256: "sha256:e5fa16ab1b994e046c1b20c09457c808a02c9a48d271e3af275b00c4d051faa3"
      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:e5fa16ab1b994e046c1b20c09457c808a02c9a48d271e3af275b00c4d051faa3","source_provenance":{"source_type":"body_file","body_file":"/tmp/contract_review_once_body_8mk82fqi.md"}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":2,"raw_command":"rg -n \"loopVisualScenario\" src/main.ts","command_hash":"sha256:a16279b9c9c2a9d87574c51062e72bd6ee7a1db64b2454ee2fd4861d55816534","execution_key_hash":"sha256:e00caa06f9d6258d29c5cbe07927190b0bffdf78eeb2d9d9627f04eeab93df58","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":"AC2","line":4,"raw_command":"rg -n \"delete document.documentElement.dataset.loopVisualScenario\" src/main.ts","command_hash":"sha256:d7fd25bbb985d955f530160a9b5aaf45e58a105a4146a42a4bcd271f45d6f5b7","execution_key_hash":"sha256:0de2fe9bba0d55422a97f677502600aacf7cb6e39b0207eba7dbce82026c4e29","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 \"data-loop-visual-scenario\" tests/e2e/visual-overlay.spec.ts","command_hash":"sha256:2fa8f5bda839ae35d502f294ff38edf4c1285f9b0053f9418ac17cf5a42cbc2e","execution_key_hash":"sha256:bc289471d589d9668450c3c0108a55d83c6da3bd4b1768595d6bab48f7617b0b","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":"rg -n \"Mission status\" tests/e2e/visual-scenario-fixture.spec.ts","command_hash":"sha256:5e83dacc216a6088733cacd3d0f72448d34470f8f8929c5a4469592af0c2847f","execution_key_hash":"sha256:e5f6ff78de08b818aac030e7e7094ef917d0f2d8f2431e66ce857b6ae2ff45f5","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":"AC5","line":10,"raw_command":"pnpm typecheck","command_hash":"sha256:1b65adab2d69e0f148ddd11c15c7dcd73ca087b66cc02dac2672f9493093cc6d","execution_key_hash":"sha256:fd8d8acc0b25a81efd75eae9062cf4085372a34a1cceb7c277d5963c01bee98a","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":["$ tsc --noEmit"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":888,"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":"AC5","line":12,"raw_command":"pnpm typecheck:e2e","command_hash":"sha256:b3326d2adbfdc105f8edfca4959736079c9b0f890d13f6a272e4f85498c2bac5","execution_key_hash":"sha256:f3141f8470b872990cacda52e4455ff7f0a3fc6ac8d1b4200a1ae96494b5fa6e","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":["$ tsc -p tests/e2e/tsconfig.json --noEmit"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1261,"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-e2e.v1","exact_request_argv":["pnpm","typecheck:e2e"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","typecheck:e2e"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:7251d7e78580e1badd4f2f4be6837388a8352028fbf42f9f4e8b9e0e1f207f56","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":14,"raw_command":"pnpm lint","command_hash":"sha256:ede823a2d5f2814db6ddd8a2969504d513bf5a4428b806aa4d1a0499fb38462f","execution_key_hash":"sha256:6a8ecab4d61e6821658c99e43f5184d5800ceef127c84a0471d6216360a04107","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":4413,"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":"AC5","line":16,"raw_command":"pnpm test","command_hash":"sha256:ae7aca4de98e885127fe392c0b60056f3472ed0f0be972870a06df422b3f140a","execution_key_hash":"sha256:87cc0746d3da6a80bd3107cb2534125355e0564476abb407141ad1d880fa781f","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[" RUN  v4.1.6 /home/squne/projects/LOOP_PROTOCOL"," Test Files  108 passed (108)","      Tests  1856 passed (1856)","   Start at  10:03:31","   Duration  14.30s (transform 19.18s, setup 0ms, import 32.32s, tests 138.55s, environment 9.49s)"],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["$ vitest run --exclude 'tests/e2e/**' --exclude 'tests/component/**' --exclude '.claude/worktrees/**' --exclude '.claude/tmp/**' --exclude 'tmp/**'"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":14878,"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:e1d15b364034f4dad94733c56e5f4c4c2150a698e1a88aff485c22fd5534a33c","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":19,"raw_command":"pnpm test:e2e","command_hash":"sha256:10782fb721ebef0fc92054a5e2536725539522d9182a3583e021a46543795127","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","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":0,"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,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC5","line":21,"raw_command":"pnpm build","command_hash":"sha256:702e948d947e109310cb2bf19c157b5bb8142b88c87e02ae87a7594c9b797893","execution_key_hash":"sha256:b33dd0b3659d21ba14a62eed9798b515ccb1b07a0e76f333c8a3d0300e88d9ab","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["\u001b[36mvite v8.0.13 \u001b[32mbuilding client environment for production...\u001b[36m\u001b[39m","\u001b[2K","transforming...✓ 43 modules transformed.","rendering chunks...","computing gzip size...","dist/index.html                  0.46 kB │ gzip:  0.29 kB","dist/assets/index-oeiGE_cs.css   5.00 kB │ gzip:  1.74 kB","dist/assets/index-D--ksE14.js   70.47 kB │ gzip: 21.25 kB","\u001b[32m✓ built in 68ms\u001b[39m"],"stdout_truncated":false,"stdout_original_line_count":11,"stderr_head":["$ tsc && vite build"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1051,"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"}},{"ac":"AC5","line":24,"raw_command":"pnpm test:vrt","command_hash":"sha256:2247577d3be51eba3f408c2495e259ab1b495b25ec448473651c443ed9e9e82e","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","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":0,"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,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false}]
        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":"28394e226533cd59cdfc0f55602ac65e389a6600","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":2010,"title":"実装: codebase-investigator に pinned Graphify CLI advisory pilot を追加する","base_ref_name":"main","head_ref_name":"worktree-issue-2009-graphify-cli-advisory-pilot","head_ref_oid":"ac8a50ddf727015e1d4369a6f7ac2ad952ed541f","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2010","changed_files_count_graphql":6}],"fetched_count":2,"totalCount":2,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:29903c7ca0297aafed14fa0ab47d59bfd075ba02b79ac1f098a02d6d7b84c90f","errors":[]},"inventory_digest_extended":"sha256:8ac07fdc6112a120ce046492b0666269d31d20d7346d615167dce301dd1b37e3","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":1728,"contract_source_kind":"issue_comment","contract_source_id":"5223736215","contract_body_sha256":"sha256:e5fa16ab1b994e046c1b20c09457c808a02c9a48d271e3af275b00c4d051faa3","allowed_paths_normalized_sha256":"e02b68bf374273c5cbd158e31bad28e47d6a7fd26282a9765f780da7926322a5","base_ref":"main","base_sha_at_snapshot":"28394e226533cd59cdfc0f55602ac65e389a6600"}
  4. squne121 commented on Aug 8, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop 終了報告(approved)

    anchor comment https://github.com/squne121/loop-protocol/issues/1728#issuecomment-5123649423(OWNER squne121)を対象に issue-refinement-loop を実行し、2 iteration で approve に到達しました。

    Iteration 1 → 2 での修正内容

    • review-issue の machine-detected blocker 2件を解消:
      • C9: ## Runtime Verification Applicability セクション(decision: immediate)を追加
      • VCP_UNEXPECTED_PASS: AC2 の Verification Command を baseline で偽陽性 PASS しない形に修正
    • OWNER anchor comment の P0-1〜P0-3 を反映:
      • P0-1: AC5 の Verification Commands を pnpm test:vrt:e2e(build 不整合)から pnpm test:vrt(VITE_E2E_MODE=true で再build 後に VRT 実行)へ変更
      • P0-2: marker(receipt)の発行タイミングを「fixture 適用直後(render 前)」から「初回 render 完了後」に変更し、v1:<fixture.name>:rendered 形式のバージョン付き receipt にした
      • P0-3: AC4 の対象ファイル(tests/e2e/visual-scenario-fixture.spec.ts)が AC5 の VC で実行されるよう pnpm typecheck:e2e / pnpm test:e2e を追加
    • P1(非 blocking)項目は ## Notes for Reviewer に実装時裁量として記録

    Final Gate

    issue-contract-review(execute mode)を再実行し、CONTRACT_REVIEW_RESULT_V1 status: go を取得・確認しました(body_sha256: sha256:e5fa16ab1b994e046c1b20c09457c808a02c9a48d271e3af275b00c4d051faa3)。Contract Snapshot: #1728 (comment)

    Follow-up Materialization

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: issue-refinement-loop
      follow_up_issues: []
      note_only_observations: []
    LOOP_HANDOFF_RESULT_V1:
      status: impl_ready
      routing_action: run_impl_review_loop
      contract_review:
        status: go
        gate_result: fresh_go
        latest_comment_url: "https://github.com/squne121/loop-protocol/issues/1728#issuecomment-5223736215"
        generated_at: "2026-08-08T01:03:57Z"
        body_sha256: "sha256:e5fa16ab1b994e046c1b20c09457c808a02c9a48d271e3af275b00c4d051faa3"
      metadata:
        title_prefix_ready: true
        phase_label_ready: true
      auto_fixes:
        result: auto_fixed
        required: []
        skipped: []
      blockers: []
      permissions:
        unavailable: []
      generated_at: "2026-08-08T01:04:00Z"
      checked_body_sha256: "sha256:e5fa16ab1b994e046c1b20c09457c808a02c9a48d271e3af275b00c4d051faa3"
      checker_exit_code: 0
      missing_sections: []
      missing_contract_keys: []
  5. squne121 commented on Aug 8, 2026

    @squne121
    OwnerAuthor

    判定

    REQUEST_CHANGES — 現状の #1728 は実装着手前にもう一段 refinement した方がよいです。

    PR #1721 の OWNER レビューで出た元の P0 三件――hermetic VRT、marker を fixture 適用直後ではなく初回 render 後に出すこと、tests/e2e/** を実際に実行すること――は現在の Issue 本文に概ね反映されています。PR #1721 自体も、この app-side attestation 不足を #1728 に分離して merge 済みです。

    ただし、その後 main がかなり進んでおり、#1728 の AC が現在の VRT architecture に対して弱くなっています。特に #1958 で viewport boundary VRT が増え、running-hud-paused / result-timeout も active fixture になっています。現在の visual-overlay.spec.ts は既に複数の active capture を持っています。

    敵対的レビュー結果

    優先度 | 指摘 | 問題 | 修正 -- | -- | -- | -- P0 | attestation を個別 screenshot test に書く契約では弱い | #1728 AC3 は active screenshot test で marker を assert する形ですが、現在は active capture が増加済みです。新規 capture が assertion を書き忘れても VRT が通る構造を残します。現在の screenshot guard は既に expectDomOverlayScreenshot() / expectCanvasVisualCueScreenshot() に集約されているので、ここを enforcement point にすべきです。 | assertVisualScenarioAttested(page, installedFixture) を visual-utils.ts に作り、両 screenshot helper が必ず screenshot 前に呼ぶ。個々の spec からの marker assertion は補助証跡に格下げ。 P0 | 「production には marker が存在しない」を現行 AC が証明できない | #1728 は E2E-only を要求しますが、現在の production artifact checker #1425 の正本 manifest は 6 marker の exact set で、新しい attestation marker は対象外です。 現在の manifest 実装も実際にその6件だけです。 pnpm build が通るだけでは非漏洩の証明になりません。Vite は import.meta.env を build 時に静的置換して tree-shaking 可能ですが、それは実装機構であって検証証跡ではありません。 (vitejs) | 第一選択は data-loop-visual-scenario を #1425 の manifest に第7 marker として追加。scope を増やしたくなければ最低でも production build 後に dist 全体を走査する negative VC を #1728 に追加。 P1 | v1::rendered だけでは「正しい fixture が適用された」を証明しない | 同じ running-hud 名で HP/resources/sortie の適用が壊れても receipt 自体は正しく出せます。現在の LoopE2ESnapshot には loopPhase、HP/maxHp、resources、weaponPower、sortie status/elapsedTicks/result が既にあるので比較可能です。 | central helper で receipt + fixture state projection を照合する。paused は snapshot に pause flag がないため pause DOM/inert state を scenario-specific predicate で追加。 P1 | AC4 の「最低1個の state assertion」は stale-bundle threat model に不足 | 現在の fixture spec には deterministic な combat-hud-elapsed = 14.4 s 検査がありますが、これだけでは HP/resources 等の誤適用を見逃せます。 | running-hud なら最低でも loopPhase, hp/maxHp, resources, weaponPower, sortie.status, elapsedTicks の一致を1つの projection assertion で検証。DOM は Hull / sortie status 等を別途1フィールド以上検査。 P1 | fixture 二重 install が依然として非決定的 | installVisualScenario() は現在 WeakMap.set() 前に duplicate を拒否せず、複数回 page.addInitScript() を積めます。 Playwright は browserContext.addInitScript() と page.addInitScript() が複数ある場合、評価順は未定義と公式に明記しています。 (playwright.dev) | installedScenarios.has(page) なら即 throw。できれば保存する fixture は clone/freeze し、install 後の test-side mutation も排除。 P1 | negative path が static rg に寄り過ぎ | OWNER の前回レビューでも指摘されていますが、source に delete や marker 文字列が存在することは runtime correctness を証明しません。 | no fixture / malformed fixture / pending fixture / receipt mismatch / state mismatch / render failure の behavioral negative test を要求する。 P2 | rendered の意味を明文化すべき | frame() 内で hud.render() / phaseScreens.render() / renderer.render() の直後に marker を置く設計は妥当ですが、その時点は「ブラウザに paint 済み」ではありません。HTML Standard では animation-frame callback の後に style/layout、さらに rendering/UI update が行われます。 (HTML Living Standard) | rendered = first application render pass returned successfully と明記する。pixel presentation まで attestation する必要はない。Playwright の toHaveScreenshot() 自体は連続2枚が一致するまで待ってから baseline 比較します。 (Playwright)

    前回 OWNER コメントでも、central helper 化、production artifact 非漏洩、duplicate install は既に問題として挙がっていました。現在の Issue 本文では前者二つが「任意 follow-up」寄りに残っていますが、main の VRT surface が増えた現在は、少なくとも central enforcement は optional のままにすべきではありません。

    推奨する #1728 の contract

    スコープを膨らませすぎず、次までを merge blocker にするのが妥当です。

    required_behavior:
      receipt:
        attribute: data-loop-visual-scenario
        format: "v1:<fixture.name>:rendered"
        semantics: "first application render pass completed successfully"
        e2e_only: true
        one_shot: true
    

    screenshot_gate:
    enforcement:
    - expectDomOverlayScreenshot
    - expectCanvasVisualCueScreenshot
    checks:
    - installed fixture exists
    - fixture is active
    - receipt exactly matches installed fixture name
    - observable fixture state matches installed fixture projection

    install:
    duplicate_install: fail_closed

    production_boundary:
    marker_must_be_absent_from_production_dist: true

    特に receipt を spec に直接 assert するのではなく screenshot helper の precondition にするのが重要です。Playwright の toHaveAttribute() は web-first assertion として retry されるので、marker が初回 frame で付くまでの待機にも適しています。 (Playwright)

    また #1387 は capture 単位の screenshot directory / comparator / artifact digest 等の CI evidence を既に担当していますが、app receipt 自体はその evidence contract に入っていません。#1728 を「screenshot 実行前の runtime fail-closed gate」までと明記するなら問題ありません。receipt 自体を provenance artifact に載せるところまで主張するなら #1387 系 contract との追加統合が必要です。

    Verification Commands も差し替え推奨

    現在の rg 主体より、以下のように runtime と artifact boundary を直接叩く方が強いです。

    # E2E type/runtime
    pnpm typecheck:e2e
    pnpm test:e2e -- tests/e2e/visual-scenario-fixture.spec.ts

    Hermetic primary VRT: build込み

    pnpm test:vrt

    Production-negative proof

    rm -rf dist
    VITE_E2E_MODE=false pnpm build
    ! rg -n
    'data-loop-visual-scenario|loopVisualScenario|v1:.*:rendered'
    dist

    Preferable: central artifact-boundary checkerにも marker を追加

    pnpm dist:e2e-boundary -- --mode production --dist dist

    Standard gates

    pnpm typecheck
    pnpm lint
    pnpm test
    pnpm build

    結論として、設計方向自体は正しいです。 src/main.ts が fixture を実際に適用し、最初の app render pass 完了後に versioned receipt を出す、という最小方式で十分です。問題は marker 自体ではなく、現在の #1728 がその marker を 全 VRT capture に不可避な invariant として強制していないことと、production-negative boundary が既存 #1425 checker から漏れていることです。この2点を P0 として contract に戻せば、実装 Issue としてかなり堅くなります。

    ## 判定

    REQUEST_CHANGES — 現状の #1728 は実装着手前にもう一段 refinement した方がよいです。

    PR #1721 の OWNER レビューで出た元の P0 三件――hermetic VRT、marker を fixture 適用直後ではなく初回 render 後に出すこと、tests/e2e/** を実際に実行すること――は現在の Issue 本文に概ね反映されています。PR #1721 自体も、この app-side attestation 不足を #1728 に分離して merge 済みです。

    ただし、その後 main がかなり進んでおり、#1728 の AC が現在の VRT architecture に対して弱くなっています。特に #1958 で viewport boundary VRT が増え、running-hud-paused / result-timeout も active fixture になっています。現在の visual-overlay.spec.ts は既に複数の active capture を持っています。

    敵対的レビュー結果

    優先度 指摘 問題 修正
    P0 attestation を個別 screenshot test に書く契約では弱い #1728 AC3 は active screenshot test で marker を assert する形ですが、現在は active capture が増加済みです。新規 capture が assertion を書き忘れても VRT が通る構造を残します。現在の screenshot guard は既に expectDomOverlayScreenshot() / expectCanvasVisualCueScreenshot() に集約されているので、ここを enforcement point にすべきです。 assertVisualScenarioAttested(page, installedFixture) を visual-utils.ts に作り、両 screenshot helper が必ず screenshot 前に呼ぶ。個々の spec からの marker assertion は補助証跡に格下げ。
    P0 「production には marker が存在しない」を現行 AC が証明できない #1728 は E2E-only を要求しますが、現在の production artifact checker #1425 の正本 manifest は 6 marker の exact set で、新しい attestation marker は対象外です。 現在の manifest 実装も実際にその6件だけです。 pnpm build が通るだけでは非漏洩の証明になりません。Vite は import.meta.env を build 時に静的置換して tree-shaking 可能ですが、それは実装機構であって検証証跡ではありません。 ([vitejs]1) 第一選択は data-loop-visual-scenario を #1425 の manifest に第7 marker として追加。scope を増やしたくなければ最低でも production build 後に dist 全体を走査する negative VC を #1728 に追加。
    P1 v1:<name>:rendered だけでは「正しい fixture が適用された」を証明しない 同じ running-hud 名で HP/resources/sortie の適用が壊れても receipt 自体は正しく出せます。現在の LoopE2ESnapshot には loopPhase、HP/maxHp、resources、weaponPower、sortie status/elapsedTicks/result が既にあるので比較可能です。 central helper で receipt + fixture state projection を照合する。paused は snapshot に pause flag がないため pause DOM/inert state を scenario-specific predicate で追加。
    P1 AC4 の「最低1個の state assertion」は stale-bundle threat model に不足 現在の fixture spec には deterministic な combat-hud-elapsed = 14.4 s 検査がありますが、これだけでは HP/resources 等の誤適用を見逃せます。 running-hud なら最低でも loopPhase, hp/maxHp, resources, weaponPower, sortie.status, elapsedTicks の一致を1つの projection assertion で検証。DOM は Hull / sortie status 等を別途1フィールド以上検査。
    P1 fixture 二重 install が依然として非決定的 installVisualScenario() は現在 WeakMap.set() 前に duplicate を拒否せず、複数回 page.addInitScript() を積めます。 Playwright は browserContext.addInitScript() と page.addInitScript() が複数ある場合、評価順は未定義と公式に明記しています。 ([playwright.dev]2) installedScenarios.has(page) なら即 throw。できれば保存する fixture は clone/freeze し、install 後の test-side mutation も排除。
    P1 negative path が static rg に寄り過ぎ OWNER の前回レビューでも指摘されていますが、source に delete や marker 文字列が存在することは runtime correctness を証明しません。 no fixture / malformed fixture / pending fixture / receipt mismatch / state mismatch / render failure の behavioral negative test を要求する。
    P2 rendered の意味を明文化すべき frame() 内で hud.render() / phaseScreens.render() / renderer.render() の直後に marker を置く設計は妥当ですが、その時点は「ブラウザに paint 済み」ではありません。HTML Standard では animation-frame callback の後に style/layout、さらに rendering/UI update が行われます。 ([HTML Living Standard]3) rendered = first application render pass returned successfully と明記する。pixel presentation まで attestation する必要はない。Playwright の toHaveScreenshot() 自体は連続2枚が一致するまで待ってから baseline 比較します。 ([Playwright]4)

    前回 OWNER コメントでも、central helper 化、production artifact 非漏洩、duplicate install は既に問題として挙がっていました。現在の Issue 本文では前者二つが「任意 follow-up」寄りに残っていますが、main の VRT surface が増えた現在は、少なくとも central enforcement は optional のままにすべきではありません。

    推奨する #1728 の contract

    スコープを膨らませすぎず、次までを merge blocker にするのが妥当です。

    required_behavior:
      receipt:
        attribute: data-loop-visual-scenario
        format: "v1:<fixture.name>:rendered"
        semantics: "first application render pass completed successfully"
        e2e_only: true
        one_shot: true
    
      screenshot_gate:
        enforcement:
          - expectDomOverlayScreenshot
          - expectCanvasVisualCueScreenshot
        checks:
          - installed fixture exists
          - fixture is active
          - receipt exactly matches installed fixture name
          - observable fixture state matches installed fixture projection
    
      install:
        duplicate_install: fail_closed
    
      production_boundary:
        marker_must_be_absent_from_production_dist: true

    特に receipt を spec に直接 assert するのではなく screenshot helper の precondition にするのが重要です。Playwright の toHaveAttribute() は web-first assertion として retry されるので、marker が初回 frame で付くまでの待機にも適しています。 (Playwright)

    また #1387 は capture 単位の screenshot directory / comparator / artifact digest 等の CI evidence を既に担当していますが、app receipt 自体はその evidence contract に入っていません。#1728 を「screenshot 実行前の runtime fail-closed gate」までと明記するなら問題ありません。receipt 自体を provenance artifact に載せるところまで主張するなら #1387 系 contract との追加統合が必要です。

    Verification Commands も差し替え推奨

    現在の rg 主体より、以下のように runtime と artifact boundary を直接叩く方が強いです。

    # E2E type/runtime
    pnpm typecheck:e2e
    pnpm test:e2e -- tests/e2e/visual-scenario-fixture.spec.ts
    
    # Hermetic primary VRT: build込み
    pnpm test:vrt
    
    # Production-negative proof
    rm -rf dist
    VITE_E2E_MODE=false pnpm build
    ! rg -n \
      'data-loop-visual-scenario|loopVisualScenario|v1:.*:rendered' \
      dist
    
    # Preferable: central artifact-boundary checkerにも marker を追加
    pnpm dist:e2e-boundary -- --mode production --dist dist
    
    # Standard gates
    pnpm typecheck
    pnpm lint
    pnpm test
    pnpm build

    結論として、設計方向自体は正しいです。 src/main.ts が fixture を実際に適用し、最初の app render pass 完了後に versioned receipt を出す、という最小方式で十分です。問題は marker 自体ではなく、現在の #1728 がその marker を 全 VRT capture に不可避な invariant として強制していないことと、production-negative boundary が既存 #1425 checker から漏れていることです。この2点を P0 として contract に戻せば、実装 Issue としてかなり堅くなります。

  6. squne121 commented on Aug 8, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-08-08T05:03:12Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1728
      body_sha256: "sha256:9f9eca2e42c33678b41b614c4f856c745ffedf83242d094cd570dcf98a754148"
      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:9f9eca2e42c33678b41b614c4f856c745ffedf83242d094cd570dcf98a754148","source_provenance":{"source_type":"body_file","body_file":"/tmp/contract_review_once_body_icgz94_i.md"}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":2,"raw_command":"rg -n \"loopVisualScenario\" src/main.ts","command_hash":"sha256:a16279b9c9c2a9d87574c51062e72bd6ee7a1db64b2454ee2fd4861d55816534","execution_key_hash":"sha256:e00caa06f9d6258d29c5cbe07927190b0bffdf78eeb2d9d9627f04eeab93df58","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":"AC2","line":4,"raw_command":"rg -n \"delete document.documentElement.dataset.loopVisualScenario\" src/main.ts","command_hash":"sha256:d7fd25bbb985d955f530160a9b5aaf45e58a105a4146a42a4bcd271f45d6f5b7","execution_key_hash":"sha256:0de2fe9bba0d55422a97f677502600aacf7cb6e39b0207eba7dbce82026c4e29","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 \"data-loop-visual-scenario\" tests/e2e/visual-overlay.spec.ts","command_hash":"sha256:2fa8f5bda839ae35d502f294ff38edf4c1285f9b0053f9418ac17cf5a42cbc2e","execution_key_hash":"sha256:bc289471d589d9668450c3c0108a55d83c6da3bd4b1768595d6bab48f7617b0b","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":"rg -n \"Mission status\" tests/e2e/visual-scenario-fixture.spec.ts","command_hash":"sha256:5e83dacc216a6088733cacd3d0f72448d34470f8f8929c5a4469592af0c2847f","execution_key_hash":"sha256:e5f6ff78de08b818aac030e7e7094ef917d0f2d8f2431e66ce857b6ae2ff45f5","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":"AC5","line":10,"raw_command":"pnpm typecheck","command_hash":"sha256:1b65adab2d69e0f148ddd11c15c7dcd73ca087b66cc02dac2672f9493093cc6d","execution_key_hash":"sha256:fd8d8acc0b25a81efd75eae9062cf4085372a34a1cceb7c277d5963c01bee98a","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":["$ tsc --noEmit"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":844,"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":"AC5","line":12,"raw_command":"pnpm typecheck:e2e","command_hash":"sha256:b3326d2adbfdc105f8edfca4959736079c9b0f890d13f6a272e4f85498c2bac5","execution_key_hash":"sha256:f3141f8470b872990cacda52e4455ff7f0a3fc6ac8d1b4200a1ae96494b5fa6e","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":["$ tsc -p tests/e2e/tsconfig.json --noEmit"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1349,"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-e2e.v1","exact_request_argv":["pnpm","typecheck:e2e"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","typecheck:e2e"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:7251d7e78580e1badd4f2f4be6837388a8352028fbf42f9f4e8b9e0e1f207f56","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":14,"raw_command":"pnpm lint","command_hash":"sha256:ede823a2d5f2814db6ddd8a2969504d513bf5a4428b806aa4d1a0499fb38462f","execution_key_hash":"sha256:6a8ecab4d61e6821658c99e43f5184d5800ceef127c84a0471d6216360a04107","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":4248,"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":"AC5","line":16,"raw_command":"pnpm test","command_hash":"sha256:ae7aca4de98e885127fe392c0b60056f3472ed0f0be972870a06df422b3f140a","execution_key_hash":"sha256:87cc0746d3da6a80bd3107cb2534125355e0564476abb407141ad1d880fa781f","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":[" RUN  v4.1.6 /home/squne/projects/LOOP_PROTOCOL"," Test Files  108 passed (108)","      Tests  1864 passed (1864)","   Start at  14:02:44","   Duration  15.73s (transform 26.54s, setup 0ms, import 42.28s, tests 152.65s, environment 10.40s)"],"stdout_truncated":false,"stdout_original_line_count":10,"stderr_head":["$ vitest run --exclude 'tests/e2e/**' --exclude 'tests/component/**' --exclude '.claude/worktrees/**' --exclude '.claude/tmp/**' --exclude 'tmp/**'"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":19661,"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:e1d15b364034f4dad94733c56e5f4c4c2150a698e1a88aff485c22fd5534a33c","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC5","line":19,"raw_command":"pnpm test:e2e","command_hash":"sha256:10782fb721ebef0fc92054a5e2536725539522d9182a3583e021a46543795127","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","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":0,"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,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC5","line":21,"raw_command":"pnpm build","command_hash":"sha256:702e948d947e109310cb2bf19c157b5bb8142b88c87e02ae87a7594c9b797893","execution_key_hash":"sha256:b33dd0b3659d21ba14a62eed9798b515ccb1b07a0e76f333c8a3d0300e88d9ab","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["\u001b[36mvite v8.0.13 \u001b[32mbuilding client environment for production...\u001b[36m\u001b[39m","\u001b[2K","transforming...✓ 43 modules transformed.","rendering chunks...","computing gzip size...","dist/index.html                  0.46 kB │ gzip:  0.29 kB","dist/assets/index-DlniEu9V.css   7.55 kB │ gzip:  2.20 kB","dist/assets/index-D8HPBb7g.js   71.19 kB │ gzip: 21.47 kB","\u001b[32m✓ built in 88ms\u001b[39m"],"stdout_truncated":false,"stdout_original_line_count":11,"stderr_head":["$ tsc && vite build"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1131,"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"}},{"ac":"AC5","line":24,"raw_command":"pnpm test:vrt","command_hash":"sha256:2247577d3be51eba3f408c2495e259ab1b495b25ec448473651c443ed9e9e82e","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","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":0,"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,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC6","line":26,"raw_command":"rg -n \"assertVisualScenarioAttested\" tests/e2e/visual-utils.ts","command_hash":"sha256:486a988594b42f31bdc78924a6f31b434d78e6defa176225ffa9c936ed8f8ecb","execution_key_hash":"sha256:75281a46dd6cbc8570943aaa3c68a0928c266f300a5237975bcc91d25e59e149","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":"AC7","line":29,"raw_command":"rm -rf dist","command_hash":"sha256:96c12d588e71cbd6fc80a23dfbe09a1db112ddd2d02d670c7df1668d718d9c4e","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","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":0,"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,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC7","line":32,"raw_command":"VITE_E2E_MODE=false pnpm build","command_hash":"sha256:999ae6db8f374734e1b6a037d4f5c4d743b453e7ecc1fe2730b60fd549eb9bc3","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","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":0,"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,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC7","line":35,"raw_command":"rg -n -e \"data-loop-visual-scenario\" -e \"loopVisualScenario\" -e \"v1:.*:rendered\" dist","command_hash":"sha256:b83dbabf8a40217e5c8e17229e1f2ed6dfdf86b28a49eb87d0a7c92f2e3b13d9","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","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":0,"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,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC8","line":37,"raw_command":"rg -n \"installedScenarios.has\\(page\\)\" tests/e2e/visual-utils.ts","command_hash":"sha256:663dc226b91508f66ba4e834bb987b4700ef601a16789d38c3afa4104623da0c","execution_key_hash":"sha256:1b8c9cb776a515f755403c2c4c38b359dae8b9ba1db77baf7f8e522d16edb9e1","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}]
        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":"9eca2f0074552a3e0687b0c81ee94b62122890a0","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}],"fetched_count":1,"totalCount":1,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:0b9df1a0a25b73e31867f5cedd9ec93b0e8a419aa1881ebcd95ba60ac0d66cf6","errors":[]},"inventory_digest_extended":"sha256:3ffb384e762aaec0000ced71aeae7bf593f3405ea35589d19ea5d4f9eef34459","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":1728,"contract_source_kind":"issue_comment","contract_source_id":"5224629275","contract_body_sha256":"sha256:9f9eca2e42c33678b41b614c4f856c745ffedf83242d094cd570dcf98a754148","allowed_paths_normalized_sha256":"e02b68bf374273c5cbd158e31bad28e47d6a7fd26282a9765f780da7926322a5","base_ref":"main","base_sha_at_snapshot":"9eca2f0074552a3e0687b0c81ee94b62122890a0"}
  7. squne121 commented on Aug 8, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop 終了報告(approved、ラウンド2)

    新しい anchor comment https://github.com/squne121/loop-protocol/issues/1728#issuecomment-5224476522(OWNER squne121 の REQUEST_CHANGES)を対象に issue-refinement-loop を再実行し、3 iteration で approve に到達しました。

    背景

    main の進行(#1958 で viewport boundary VRT 追加)により、前回 approve 済みの Issue 本文の AC が現行 VRT architecture に対して弱くなっているという OWNER の指摘でした。control-plane が Read/Bash で以下の主張を直接検証し、すべて技術的に正確であることを確認しました。

    • tests/e2e/visual-utils.ts の expectDomOverlayScreenshot() / expectCanvasVisualCueScreenshot() は attestation marker の存在確認を行っていない
    • scripts/e2e-control-marker-manifest.mjs の marker manifest は 6 件固定で、新しい attestation marker は対象外
    • LoopE2ESnapshot には OWNER が主張する state フィールドが実在する
    • installVisualScenario() に重複 install の拒否ガードがない

    Iteration 1 → 3 での修正内容

    • Iteration 1: P0-1(screenshot helper への enforcement 集約欠如)/ P0-2(production non-leak 証明欠如)を blocker として検出 → AC6(assertVisualScenarioAttested central helper を両 screenshot helper から必須呼び出し)、AC7(production dist への非漏洩証明)、AC8(重複install拒否、任意)を新規追加
    • Iteration 2: AC7 が選択肢A/B両論併記になっており、選択肢A(scripts/e2e-control-marker-manifest.mjs への marker追加)の VC が Allowed Paths 外を参照して VC preflight blocker(VCP_BROAD_SEARCH_PATH_UN)を検出 → Allowed Paths 拡張を避けるため選択肢B(negative dist scan)に一本化
    • Iteration 3: 全 blocker 解消を確認、approve

    選択肢A(#1425 の canonical marker manifest との一貫性向上)の恒久化は follow-up 検討対象として Notes for Reviewer に記録。

    Final Gate

    issue-contract-review(execute mode)を再実行し、CONTRACT_REVIEW_RESULT_V1 status: go を取得・確認しました(body_sha256: sha256:9f9eca2e42c33678b41b614c4f856c745ffedf83242d094cd570dcf98a754148)。Contract Snapshot: #1728 (comment)

    Follow-up Materialization

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: issue-refinement-loop
      follow_up_issues: []
      note_only_observations:
        - dedupe_key: "follow-up:squne121/loop-protocol:issuecomment-5224476522:ac7-choice-a-manifest-integration"
          source_url: "https://github.com/squne121/loop-protocol/issues/1728#issuecomment-5224476522"
          source_note_id: "ac7-choice-a-manifest-integration"
          summary: "AC7 の恒久対応として data-loop-visual-scenario を #1425 の canonical marker manifest(scripts/e2e-control-marker-manifest.mjs)へ追加する選択肢Aは、Allowed Paths拡張を避けるため本Issueでは見送り、negative dist scan(選択肢B)を採用した。#1425 側の恒久統合は follow-up 検討対象。"
    LOOP_HANDOFF_RESULT_V1:
      status: impl_ready
      routing_action: run_impl_review_loop
      contract_review:
        status: go
        gate_result: fresh_go
        latest_comment_url: "https://github.com/squne121/loop-protocol/issues/1728#issuecomment-5224629275"
        generated_at: "2026-08-08T05:03:12Z"
        body_sha256: "sha256:9f9eca2e42c33678b41b614c4f856c745ffedf83242d094cd570dcf98a754148"
      metadata:
        title_prefix_ready: true
        phase_label_ready: true
      auto_fixes:
        result: auto_fixed
        required: []
        skipped: []
      blockers: []
      permissions:
        unavailable: []
      generated_at: "2026-08-08T05:05:00Z"
      checked_body_sha256: "sha256:9f9eca2e42c33678b41b614c4f856c745ffedf83242d094cd570dcf98a754148"
      checker_exit_code: 0
      missing_sections: []
      missing_contract_keys: []
  8. squne121 commented on Aug 8, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了 (2026-08-08T05:43:15Z)

    • PR: 実装: VRT fixture 適用の app 側 attestation marker を追加する #2023
    • Worktree: .claude/worktrees/issue-1728-vrt-attestation-marker
    • Branch: worktree-issue-1728-vrt-attestation-marker
    • Verification: typecheck/typecheck:e2e/lint/test/build は PASS。test:e2e(103 passed)/test:vrt(3 passed) の残り失敗は main HEAD でも同一再現する既存の screenshot pixel-diff(ローカル環境のフォントレンダリング差分)であり、本 PR の attestation ロジック自体のアサーションはすべて PASS。AC7 negative dist scan も PASS(漏洩なし)。
    • 後続: PR レビュー(pr-review-judge)→ マージ → post-merge-cleanup
  9. squne121 commented on Aug 8, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了 (2026-08-08T06:35:00Z)

    • iteration: 1 (REQUEST_CHANGES→fix_delta 1回、その後 update_branch を2回、非ブロッキング再検証)
    • verdict: APPROVE
    • route: approved(必須 CI 全green・blockers=[]。live mergeStateStatus は UNSTABLE だが、原因は non-required check component-vrt-report のみであり、branch protection required_status_checks(typecheck/lint/test/build/python-test/validate-generated-artifact)は全て SUCCESS。component-vrt-report は本 Issue の Allowed Paths 外のファイル(tests/component/combat-hud-running.vrt.test.ts)に対する pre-existing・main HEAD でも同一原因で fail する無関係な問題と確認済み)
    • PR: 実装: VRT fixture 適用の app 側 attestation marker を追加する #2023
    • 次アクション: 人間レビュー → マージ判断(component-vrt-report の non-required 失敗は無視して問題ない)→ マージ → post-merge-cleanup
    IMPL_REVIEW_LOOP_RESULT_V1:
      schema_version: 1
      status: draft_pr_ready
      pr_url: "https://github.com/squne121/loop-protocol/pull/2023"
      head_sha: "70f6be3bde048098904e608620c5a5392e3f6ef4"
      issue_number: 1728
      termination_reason: approved
      merge_ready: true
      iteration: 1
    
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: impl-review-loop
      follow_up_issues: []
      note_only_observations: []
    
    ISSUE_SCOPE_ROLLUP_DECISION_V2:
      schema_version: 2
      recorded_at: "2026-08-08T06:35:00Z"
      rollup_plan_ref:
        body_sha256: null
        generated_at: null
      decision: skipped
      executed_actions: []
      skipped_reason: "advisory diagnostic は本ループでは手動起動しなかった(#1860 Owner Decision によりデフォルト非実行)"
      candidates_reviewed: []
  10. added a commit that references this issue on Aug 8, 2026
    fb944dc
  11. squne121 commented on Aug 8, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 再開・完了 (2026-08-08T07:35:00Z)

    人間(squne121, Owner)による PR #2023 への REQUEST_CHANGES(https://github.com/squne121/loop-protocol/pull/2023#issuecomment-5225056963)を受けて impl-review-loop を再開し、4件のP1 merge blockerを解消しました。

    • iteration: 2(human REQUEST_CHANGES への fix_delta 1回 + PR本文 Japanese Check 修正1回)
    • verdict: APPROVE
    • route: approved(必須 CI 全green・blockers=[]。live mergeStateStatus は UNSTABLE だが、原因は本Issueと無関係な既存の非必須ジョブ component-vrt-report のみと再確認済み)
    • PR: 実装: VRT fixture 適用の app 側 attestation marker を追加する #2023
    • 解消した P1: web-first assertion化(race修正)/ state attestation fail-closed化 / schema_change 分類修正 / AC2 独立runtime evidence追加
    • 次アクション: 人間レビュー(今回の修正内容の確認)→ マージ判断 → post-merge-cleanup
    IMPL_REVIEW_LOOP_RESULT_V1:
      schema_version: 1
      status: draft_pr_ready
      pr_url: "https://github.com/squne121/loop-protocol/pull/2023"
      head_sha: "fb944dc6c53c567e22e429bf3271fe8aa06eb042"
      issue_number: 1728
      termination_reason: approved
      merge_ready: true
      iteration: 2
    
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: impl-review-loop
      follow_up_issues: []
      note_only_observations:
        - dedupe_key: "issue-1728-p2-follow-ups"
          source_url: "https://github.com/squne121/loop-protocol/pull/2023#issuecomment-5225056963"
          source_note_id: "P2-1〜P2-4"
          summary: "production artifact checker の canonical manifest に新marker未登録/rendered の意味範囲明確化/AC5証跡表現の証拠区別/fixture clone-freeze未実施。非blockingのためfollow-up Issue化はせず観察記録のみ。"
  12. squne121 commented on Aug 8, 2026

    @squne121
    OwnerAuthor

    post-merge-cleanup: 完了 (2026-08-08T08:10:46Z)

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: post-merge-cleanup
      follow_up_issues: []
      note_only_observations:
        - dedupe_key: "issue-1728-p2-follow-ups"
          source_url: "https://github.com/squne121/loop-protocol/pull/2023#issuecomment-5225056963"
          source_note_id: "P2-1〜P2-4"
          summary: "production artifact checker の canonical manifest に新marker未登録/rendered の意味範囲明確化/AC5証跡表現の証拠区別/fixture clone-freeze未実施。非blockingのためfollow-up Issue化はせず観察記録のみ。"
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/implementationtriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions