Repository navigation
Closed
1 / 21 of 2 issues completed
Copy link
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1380"
ancestor_issue: "#1370"
goal_ref: "battle-stage DOM overlay VRT を未完成 UI ごと凍結しないため、baseline maturity registry と昇格条件を先に固定する"
change_kind: docs
preflight_scope: pr_review_only
runtime_verification_applicability: not_applicable
baseline_expect: passParent Issue
Parent Goal Ref
- Goal: 導入: 右側 command rail をゲーム内 DOM overlay に統合する #1370 の battle-stage DOM overlay VRT を、未完成 UI を
frozenbaseline として凍結しない形で段階導入する。 - Desired Destination: 実装: Playwright + Vitest Browser Mode 段階導入で #1370 battle-stage DOM overlay を VRT 保護 #1380 を VRT rollout tracker として扱い、child issue の完了で registry / fixture / VRT / CI / update guard / advisory triage / 後続 baseline 昇格を追跡する。
Current Validated Scope
docs/dev/visual-baseline-registry.mdの maturity taxonomy と checklist だけを更新する。- baseline PNG / Playwright / Vitest / CI workflow / validator script は変更しない。
- 実装: VRT overlay rollout の baseline maturity registry を定義する #1384 は docs-only child として、active VRT suite を増やさず、pending baseline の予約と昇格条件だけを固定する。
Remaining Parent Gaps
- visual scenario fixture、Playwright VRT、CI evidence matrix、snapshot update guard、Vitest component VRT、AI/VLM advisory triage は後続 Issue で扱う。
running-hud-paused/result-overlay-timeout/final-no-command-railの frozen 昇格は 実装: running 用 combat HUD を battle-stage 内 overlay に再配置する #1375-実装: 旧 command rail を削除し overlay UI を E2E 検証する #1377 merge 後に行う。- registry semantic validator、
check-visual-artifact-pipeline.py/ CI summary の suite 一般化、Issue template /issue-contract-reviewの追加 MRC key 検証は 実装: VRT overlay rollout の baseline maturity registry を定義する #1384 の Allowed Paths 外なので後続 Issue へ分離する。
Outcome
docs/dev/visual-baseline-registry.md に baseline maturity taxonomy、overlay rollout の pending baseline 登録、pending から frozen への昇格条件、right-rail 依存の非 frozen ルール、maturity transition checklist が追加され、既存 predicate-only semantics を壊さず docs lint と registry semantic check が PASS する状態にする。
In Scope
frozen/provisional/legacy-current/pending-baseline/ 既存predicate-onlyの定義追加または整理predicate-onlyentries(defeat-overlay/hp-label)を screenshot baseline として暗黙再分類しないルール追加pending-baselineからfrozenへ昇格する条件の明文化.command-rail文字列だけでなく、right rail / two-column shell /.battle-stage外 normal-play controls 依存をfrozen禁止条件として追加running-hud-paused/result-overlay-timeout/final-no-command-railをpending-baselineとして登録し、committed PNG path / active PASS claim を持たないことを明記- 既存
running-hudの invalidation を [Deferred] 実装: 戦闘中ステータス(HULL/HP)を戦闘描画画面(Canvas)に集約表示する #727 だけに固定せず、導入: 右側 command rail をゲーム内 DOM overlay に統合する #1370 / 実装: running 用 combat HUD を battle-stage 内 overlay に再配置する #1375 / 実装: 旧 command rail を削除し overlay UI を E2E 検証する #1377 / 実装: Playwright + Vitest Browser Mode 段階導入で #1370 battle-stage DOM overlay を VRT 保護 #1380 系の影響を反映または理由付きで説明 - duration / timer text、freeze CSS / mask / scenario fixture / environment fingerprint / artifact URL / artifact digest など、pending promotion prerequisites の明文化
- VRT maturity が focus / inert / keyboard / a11y semantics の代替保証ではないことの明文化
- baseline update PR checklist に maturity transition record と registry maturity update 確認を追加
Out of Scope
- 新規 screenshot baseline PNG の追加
- Playwright / Vitest test 追加
- CI workflow 変更
- validator script 追加または
scripts/check-visual-artifact-pipeline.py変更 - 実装: battle-stage 内 DOM overlay shell を追加する #1373-実装: 旧 command rail を削除し overlay UI を E2E 検証する #1377 の overlay 実装本体
- AI/VLM triage
- Issue template /
issue-contract-reviewの MRC key 許容セット変更
Acceptance Criteria
- AC1:
docs/dev/visual-baseline-registry.mdにlegacy-currentとpending-baselineが追加されている。 - AC2:
frozen/provisional/legacy-current/pending-baseline/predicate-onlyの意味と昇格または移行条件が定義されている。 - AC3:
.command-rail、right rail、two-column shell、.battle-stage外 normal-play controls に依存する screenshot をfrozenにしてはならないルールが明記されている。 - AC4:
running-hud-paused/result-overlay-timeout/final-no-command-railはpending-baselineとしてだけ登録され、committed PNG path、active VRT PASS claim、存在済み baseline のような表現を持たない。 - AC5:
defeat-overlay/hp-labelを含む既存predicate-onlyentries は残り、screenshot baseline として暗黙再分類されていない。 - AC6: 既存
timeout-overlay/running-hud/defeat-overlay/hp-labelrows が残っている。 - AC7:
running-hudinvalidation が [Deferred] 実装: 戦闘中ステータス(HULL/HP)を戦闘描画画面(Canvas)に集約表示する #727 だけに依存せず、導入: 右側 command rail をゲーム内 DOM overlay に統合する #1370 / 実装: running 用 combat HUD を battle-stage 内 overlay に再配置する #1375 / 実装: 旧 command rail を削除し overlay UI を E2E 検証する #1377 / 実装: Playwright + Vitest Browser Mode 段階導入で #1370 battle-stage DOM overlay を VRT 保護 #1380 系の影響を反映するか、[Deferred] 実装: 戦闘中ステータス(HULL/HP)を戦闘描画画面(Canvas)に集約表示する #727 のみで十分な理由を registry に書いている。 - AC8: pending から frozen への昇格条件に、merged PR SHA、active test path、committed PNG path、right-rail 非依存、deterministic fixture / freeze or mask、environment fingerprint、artifact URL、artifact digest、expected / actual / diff review が含まれている。
- AC9:
running-hud-pausedはelapsedTicks / 60由来などの近似 duration text を固定しない条件を持ち、result-overlay-timeoutはresult.durationMsまたはfixedDeltaMsauthoritative な値でのみ duration を固定できる。 - AC10: Component VRT rows は
@vitest/browser-playwright、vitest.visual.config.ts、対象 overlay module、Playwright E2E と分離された screenshot directory が揃うまで absent または pending として扱う。 - AC11: Registry は pending baselines が active CI suites ではなく、active 化時に CI summary / artifact pipeline validator の suite path、comparator、freeze CSS、viewport、DPR、browser、artifact outputs cross-validation が必要であることを明記している。
- AC12: VRT maturity は focus / inert / keyboard-only / role-name / dialog semantics の代替保証ではなく、実装: battle-stage 内 DOM overlay shell を追加する #1373-実装: result screen と pause overlay を battle-stage 内に統合する #1376 の behavioral tests が active であることを promotion prerequisite として参照している。
- AC13: baseline update checklist に expected / actual / diff review、registry maturity update、old maturity -> new maturity、transition reason、linked Issue、merged PR、active test path、committed PNG path、right-rail dependency review が含まれている。
- AC14: registry table の semantic check が、pending row の一意性、maturity、PNG path 不在、right-rail 依存 row の非 frozen、既存 row 維持を検証する。
- AC15: docs lint が PASS する。
Verification Commands
# AC1
$ rg -n "legacy-current.*pending-baseline" docs/dev/visual-baseline-registry.md
# AC2
$ rg -n "predicate-only.*frozen.*provisional.*legacy-current.*pending-baseline" docs/dev/visual-baseline-registry.md
# AC3
$ rg -n "command-rail.*right rail.*two-column.*battle-stage" docs/dev/visual-baseline-registry.md
# AC4
$ rg -n "running-hud-paused.*result-overlay-timeout.*final-no-command-rail.*pending: no PNG/test" docs/dev/visual-baseline-registry.md
# AC5
$ rg -n "defeat-overlay.*hp-label.*predicate-only" docs/dev/visual-baseline-registry.md
# AC6
$ rg -n "timeout-overlay.*running-hud.*defeat-overlay.*hp-label" docs/dev/visual-baseline-registry.md
# AC7
$ rg -n "#1370.*#1375.*#1377.*#1380" docs/dev/visual-baseline-registry.md
# AC8
$ rg -n "merged PR SHA.*artifact URL.*artifact digest.*environment fingerprint" docs/dev/visual-baseline-registry.md
# AC9
$ rg -n "elapsedTicks.*durationMs.*fixedDeltaMs" docs/dev/visual-baseline-registry.md
# AC10
$ rg -n "@vitest/browser-playwright.*vitest.visual.config.ts.*Component VRT.*screenshot directory" docs/dev/visual-baseline-registry.md
# AC11
$ rg -n "active CI suites.*check-visual-artifact-pipeline.*CI summary.*cross-validation" docs/dev/visual-baseline-registry.md
# AC12
$ rg -n "focus.*inert.*keyboard.*dialog" docs/dev/visual-baseline-registry.md
# AC13
$ rg -n "old maturity.*new maturity.*transition reason.*right-rail dependency" docs/dev/visual-baseline-registry.md
# AC14
$ rg -n "screenshot-baseline.*pending-baseline.*pending: no PNG/test.*legacy-current.*right rail.*timeout-overlay" docs/dev/visual-baseline-registry.md
# AC15
$ pnpm lintAllowed Paths
docs/dev/visual-baseline-registry.md
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- baseline PNG の追加が必要になった場合
- Playwright/Vitest test 変更が必要になった場合
- CI workflow 変更が必要になった場合
- registry semantic validation を
docs/dev/visual-baseline-registry.mdだけで表現できない場合
Required Skills
- Markdown / technical writing
Required Design References
docs/dev/visual-baseline-registry.md.github/ISSUE_TEMPLATE/implementation.yml- 実装: VRT overlay rollout の baseline maturity registry を定義する #1384 anchor comment: 実装: VRT overlay rollout の baseline maturity registry を定義する #1384 (comment)
Scope Delta
- Refined from OWNER REQUEST_CHANGES at 実装: VRT overlay rollout の baseline maturity registry を定義する #1384 (comment).
- The scope remains docs-only and keeps
docs/dev/visual-baseline-registry.mdas the only Allowed Path. - Semantic validator / CI summary / issue-contract-review field handling improvements are recorded as follow-up candidates, not absorbed into this Issue.
Runtime Verification Applicability
本 Issue の変更対象はワークフロー文書・スクリプトのみです。ゲームの実行時動作には影響しません。
decision: not_applicable
reason: "Workflow documentation and script changes only. No runtime game behavior changed."Delivery Rule
- 1 Issue = 1 PR
- 作業前に issue-contract-review で fresh
CONTRACT_REVIEW_RESULT_V1 status: goを取得する。 - 実装: Playwright + Vitest Browser Mode 段階導入で #1370 battle-stage DOM overlay を VRT 保護 #1380 は rollout tracker として残し、この Issue はここに記載した Allowed Paths 内で完結させる。
Sub-issues
Collapse Sub-issuesSub-issues
Loading 2 sub-issues
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Activity
squne121 commentedon Jul 7, 2026
判定: REQUEST_CHANGES
#1384 の方向性は正しいです。
#1380で指摘された「未完成 overlay を frozen baseline として固定する」リスクに対し、まずdocs/dev/visual-baseline-registry.mdだけを更新する docs-only child に切った判断は妥当です。#1384 はfrozen/provisional/legacy-current/pending-baselineの maturity taxonomy、.command-railを含む screenshot の非 frozen ルール、running-hud-paused/result-overlay-timeout/final-no-command-railの pending 登録を扱う Issue で、コメントは現時点で空です。ただし、今の #1384 のまま実装すると 「台帳を更新したつもりだが、後続 VRT / CI / overlay child が嘘をつける余地を残す」 可能性が高いです。ローカルで
pnpmは実行していません。GitHub Issue / PR / repo 資産 / コメント、および Playwright・Vitest・Vite・GitHub Actions・MDN・WAI-ARIA APG の公式資料を参照したレビューです。調査範囲
主に参照した資産は、#1384、親 #1380、祖先 #1370、overlay child #1373〜#1377、deferred #727、closed #1282、PR #1365、PR #1379、
docs/dev/visual-baseline-registry.md、Issue template、test lane policy、package.json、playwright.config.ts、CI workflow、scripts/check-visual-artifact-pipeline.py、src/main.ts、src/style.css、HudController.ts、tests/e2e/m2-combat-mvp.spec.tsです。#1370 は右側command railを廃止して battle-stage 内 DOM overlay へ統合する parent tracker で、Canvas は world / visual cue、interactive control は DOM overlay が正本という方向です。#1380 は Playwright / Vitest Browser Mode の VRT rollout tracker ですが、直実装 PR を作らず、#1384〜#1393 に分割する形になっています。特に #1384 はその最初の registry hardening child です。
良い点
#1384 が baseline PNG、Playwright/Vitest test、CI workflow、overlay implementation、AI/VLM triage を Out of Scope にしているのは正しいです。現行 overlay 実装はまだ #1373〜#1377 の途中で、#1375 / #1376 / #1377 は open / blocked です。今 PNG や test を追加すると、実装が存在しない UI contract を固定するか、現行右 rail を正として固定します。
また、
.command-railを含む screenshot をfrozenにしないという方針も妥当です。現行main.tsは.battle-stageと sibling の<aside class="command-rail">を生成し、HudControllerの mount target もcommandRailです。現行 CSS も.app-shellをminmax(0, 1fr) 340pxの二列 grid として定義しています。P0: 実装前に直すべき点
1.
predicate-onlymaturity を壊す危険がある現行 registry schema は
maturityをfrozen/provisional/predicate-onlyと定義しており、既存 entries もdefeat-overlayとhp-labelをpredicate-onlymaturity として使っています。#1384 はlegacy-current/pending-baselineを追加するが、既存predicate-onlyを残すのか、kind=predicate-only側へ寄せて maturity から除くのかを明示していません。修正要求:
2.
pending-baselinerow が偽の artifact path を持てる#1384 は
running-hud-paused/result-overlay-timeout/final-no-command-railをpending-baselineで登録する方針ですが、現行 registry のartifact/testcolumn は baseline PNG または test 実体を想定しています。まだ PNG も active test も存在しない row にtests/e2e/__screenshots__/...のような path を書くと、レビューアが「存在する baseline」と誤読します。現行 registry 自体も「baseline PNG は人間が承認した視覚仕様の固定点」であり、存在しない / 暫定 visual contract を固定したことにしないのが主眼だと明記しています。修正要求:
3. AC/VC が
rgとpnpm lint:docsだけでは false-green になる#1384 の docs-only verification が
rgとpnpm lint:docs中心なのは弱いです。Issue template は verification command を「各 AC に対応する実行可能コマンド」として求めていますが、rg "pending-baseline"は単語が存在するだけで、table row の整合やfrozen誤用を検出しません。さらに test lane policy 上、docs 変更は
contract_artifactlane 対象であり、単なる prose lint では registry contract の検査として不十分です。修正要求:
#1384 の Allowed Paths が
docs/dev/visual-baseline-registry.mdのみである以上、新規 validator script を追加できません。したがって、Verification Commands に one-shotpython - <<'PY'などの markdown table assertion を入れるか、後続 #1385 以降で validator 化する明示 follow-up が必要です。4.
.command-railという文字列だけを基準にすると抜ける現行の危険は
.command-railclass そのものではなく、右 rail / two-column shell / sibling control surface を正として凍結することです。aside.command-railが class rename された場合、あるいは screenshot locator が.battle-stageではなく.app-shellを撮った場合、.command-rail文字列チェックだけでは漏れます。現行 DOM は.battle-stageとaside.command-railが sibling で、CSS は 340px rail column を持っています。修正要求:
5.
running-hudの invalidation が stale になる現行 registry は
running-hudをprovisionalとし、invalidated_byを #727 としています。 しかし #727 は OWNER 判断で deferred であり、Canvas 集約は再開条件を満たすまで実装しないと明記されています。一方、実際に
running-hudの暫定性を invalidation するのは、現在の流れでは #1370 / #1375 / #1377 / #1380 系です。PR #1379 も #727 をそのまま再開せず DOM overlay 移行方針を明文化しています。修正要求:
6. pending→frozen の promotion condition が「Issue close」だけでは弱い
#1384 は #1375 / #1376 / #1377 後に pending baseline を frozen 化する趣旨ですが、Issue close は品質証跡ではありません。PR #1379 のように merged PR、head SHA、preview evidence、review verdict が残って初めて信頼できる handoff になります。
修正要求:
GitHub’s official
upload-artifactaction exposesartifact-urlandartifact-digest, so #1384 should name both in promotion evidence, not only artifact names.(GitHub)7. Baseline checklist の変更が no-op になり得る
現行 registry checklist はすでに
actual/expected/diff、意図した仕様変更か退行固定か、environment fingerprint、maturity consistency、tolerance を確認する項目を持っています。#1384 AC5 の「expected/actual/diff と registry maturity update を checklist に追加」は、既存項目への微修正だけで通ってしまう可能性があります。必要なのは、maturity transition record の新設です。
修正要求:
8. Duration text を固定する危険が残っている
現行
HudControllerは terminal result ではresult.durationMsを使いますが、result がない場合はelapsedTicks / 60の近似で duration を表示しています。 PR #1379 では docs 上の timer authority をfixedDeltaMs/ 30秒系に揃えたため、running / paused baseline が duration text を含むなら registry 側に「固定しない / mask する / fixedDeltaMs authoritative になってから固定する」と書く必要があります。修正要求:
9. Visual determinism prerequisites が registry に入っていない
Playwright は screenshot rendering が OS、version、settings、hardware、headless mode などで変わるため、baseline と同じ環境で実行すべきだと説明しています。また
stylePathにより volatile 要素を隠せます。(Playwright) Vitest も visual regression は環境差で不安定になり、同じ環境を推奨し、reference screenshot は review / commit する運用を前提にしています。(Vitest)#1384 は freeze CSS や fixture 実装を Out of Scope にしてよいですが、
pending-baselineの promotion condition には「freeze CSS / stylePath / scenario fixture が存在すること」を必須にすべきです。修正要求:
10. Vitest Browser Mode を前提化しすぎると後続が破綻する
現行
package.jsonにはtest:vrt:*script がなく、devDependenciesに@vitest/browser-playwrightもありません。 Vitest 公式 docs では、Playwright provider を使うには@vitest/browser-playwrightを install し、test.browser.providerにplaywright()を指定します。また、Vitest Browser Mode は同一 test file 内の全 test が単一 page で動くため、Playwright test runner と同じ per-test isolation ではありません。(Vitest)#1384 は registry docs-only なので component VRT を実装しないのは正しいですが、pending rows や taxonomy が「Vitest component baseline が当然入る」前提で書かれると後続 #1386/#1388 が詰まります。
修正要求:
11. CI summary / validator の hardcoded M2 前提を registry で見逃している
現行 CI summary は baseline path を
tests/e2e/__screenshots__/m2-combat-mvp.spec.ts/と固定表示し、screenshot options もanimations=disabled, maxDiffPixels=1と固定しています。scripts/check-visual-artifact-pipeline.pyも default spec をtests/e2e/m2-combat-mvp.spec.tsに固定し、cross-validation 対象は viewport / snapshotPathTemplate / maxDiffPixels 程度です。#1384 は CI workflow/script を触れないので、直接直す必要はありません。ただし registry に pending rows を追加するなら、#1385〜#1388 に渡す制約として「active suite が増えた時点で summary / validator の hardcoded path を一般化する」と書くべきです。
修正要求:
12. Vite / preview 配布境界が maturity promotion に入っていない
#1377 は PR preview evidence と Vite base path / storage namespace を AC に持っています。 Vite 公式 docs は GitHub Pages の repository path 配下に deploy する場合、
baseを/<REPO>/に設定すると説明しています。([vitejs]5)#1384 自体で deploy を触る必要はありませんが、
final-no-command-railのfrozenpromotion は local screenshot だけでは不十分です。preview bundle の base path / artifact evidence / storage namespace が崩れていれば、配布物としての UI contract は成立しません。修正要求:
P1: 設計上の高リスク
13. VRT を focus / a11y gate の代替にする誤解を防げていない
#1373〜#1376 は hidden / inert / focus / dialog semantics を扱う child です。
pointer-events: noneは pointer target を外すだけで、Tab focus 除外にはなりません。MDN もpointer-events: noneの要素は sequential keyboard navigation で focus を受け得ると説明しています。([MDNウェブドキュメント]6)inertは descendants を click / focus / tab order / accessibility tree から外す属性です。([MDNウェブドキュメント]7) WAI-ARIA APG の modal dialog pattern も、modal 下の window は inert、Tab / Shift+Tab は dialog 内循環、Escape は close と定義し、aria-modal="true"は外部 interaction を本当に防ぐ場合だけ使うべきだとしています。([W3C]8) ([W3C]8)#1384 の registry には次を入れるべきです。
14. Issue template との contract field drift がある
#1384 の Machine-Readable Contract には
ancestor_issue、preflight_scope、runtime_verification_applicability、baseline_expectなどが含まれていますが、現行 implementation template の既定 YAML はcontract_schema_version、issue_kind、parent_issue、goal_ref、change_kindだけです。これ自体は致命ではありません。ただし、preflight が追加 field を読まないなら、
baseline_expectなどに重要契約を書いても機械的には保護されません。#1384 は本文の AC/registry text に同じ制約を重複して書くべきです。15. Allowed Paths は正しいが、Stop Condition をもっと強く使うべき
#1384 の Allowed Paths が
docs/dev/visual-baseline-registry.mdのみに限定されているのは正しいです。template も Allowed Paths 外の変更が必要なら停止条件に入れる設計です。ただし今回の調査で、CI summary / validator は既に hardcoded M2 前提を持つことが分かっています。#1384 実装者が script を直そうとするとスコープ違反になります。したがって registry への follow-up note と Stop Condition を明示してください。
具体的な修正案
#1384 の本文に次の AC を追加するのが最低ラインです。
Registry text の maturity 定義は、少なくとも次の形にすべきです。
Pending rows はこの程度まで具体化してください。
最終評価
#1384 は、親 #1380 の REQUEST_CHANGES を受けた 正しい分割 Issue です。ただし、現状の AC では「maturity の単語を足しただけ」で通過できます。敵対的に見ると、後続の #1391〜#1393 が PNG / test / CI summary を追加した時に、registry が active / pending / legacy / frozen の境界を実際には守れない可能性があります。
実装着手前に、少なくとも次を入れてください。
predicate-only維持または明示 migration。pending-baselineは PNG/test/pass claim を持たないという定義。.command-rail文字列ではなく right rail 依存全体の legacy 判定。running-hudinvalidation の 導入: 右側 command rail をゲーム内 DOM overlay に統合する #1370 系への更新。rgだけでない semantic verification。この修正を入れれば、#1384 は docs-only のまま高品質化できます。現状のままなら
REQUEST_CHANGESです。squne121 commentedon Jul 7, 2026
squne121 commentedon Jul 8, 2026
Contract Review Result
実装: Playwright primary VRT suite を pending/provisional baseline だけで導入…