Skip to content

実装: stale な m2-defeat-overlay-baseline.png を削除する #761

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "cleanup: Remove stale visual baseline PNG that is not referenced by current tests"
change_kind: code

Parent Issue

なし(単独改善)

Parent Goal Ref

  • Goal: Remove stale baseline PNG (m2-defeat-overlay-baseline.png) that is not referenced by any current test contract
  • Desired Destination: N/A(単独改善)

Current Validated Scope

  • Delete stale PNG: tests/e2e/__screenshots__/m2-combat-mvp.spec.ts/m2-defeat-overlay-baseline.png
  • Verify e2e tests remain green after deletion

Remaining Parent Gaps

なし

Outcome

Stale m2-defeat-overlay-baseline.png is deleted, and e2e tests (pnpm test:e2e:ci) continue to pass without this file.

In Scope

  • Delete the stale PNG file tests/e2e/__screenshots__/m2-combat-mvp.spec.ts/m2-defeat-overlay-baseline.png
  • Confirm via test execution that e2e visual tests remain green

Out of Scope

Acceptance Criteria

  • File tests/e2e/__screenshots__/m2-combat-mvp.spec.ts/m2-defeat-overlay-baseline.png is deleted
  • tests/e2e/m2-combat-mvp.spec.ts contains no reference to the deleted PNG (already the case at baseline)
  • e2e test suite passes (pnpm test:e2e:ci green)

Verification Commands

test ! -f tests/e2e/__screenshots__/m2-combat-mvp.spec.ts/m2-defeat-overlay-baseline.png
rg "m2-defeat-overlay-baseline" tests/e2e/
pnpm test:e2e:ci

Allowed Paths

  • tests/e2e/screenshots/m2-combat-mvp.spec.ts/m2-defeat-overlay-baseline.png

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

なし

Scope Delta

N/A

Background

In PR #760 (addressing #749), a visual baseline contract registry was established (docs/dev/visual-baseline-registry.md). During registry creation, tests/e2e/__screenshots__/m2-combat-mvp.spec.ts/m2-defeat-overlay-baseline.png was identified as a stale file not referenced by the current test suite.

The defeat-overlay uses pixel-contract verification (red pixel dominance check via getImageData()), not exact screenshot baseline matching. Therefore, this PNG does not correspond to any registered visual contract in the baseline registry.

#749 was scoped to visual baseline registry definition and did not include tests/e2e/__screenshots__/** in Allowed Paths, so deletion was deferred to a follow-up Issue (registry §3 documents this decision). This Issue materializes that follow-up.

Related Issues

Notes for Reviewer

None.

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    triage-required
    on Jun 7, 2026
  2. added 2 commits that reference this issue on Jun 7, 2026
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