Skip to content

実装: PR #623 退行 — manual-playtest-runbook.md に Base Path Revalidation URLs と #571 切り分け注記を補完する #706

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#614"
goal_ref: "PR #623 マージ後に docs/playtest/manual-playtest-runbook.md から欠落した AC6/AC8 要求(Base Path Revalidation URLs セクション・#571 deferred verification 切り分け注記)を補完し、#614 Close を可能にする"
change_kind: docs

Parent Issue

#614

Parent Goal Ref

Current Validated Scope

Remaining Parent Gaps

Outcome

docs/playtest/manual-playtest-runbook.md に ## Base Path Revalidation URLs セクションと AC8 切り分け注記が追記されたコミットが main にマージされ、rg による AC6/AC8 VC が PASS し、#614 が Close 可能な状態になっている。

In Scope

Out of Scope

Acceptance Criteria

  • AC1: docs/playtest/manual-playtest-runbook.md に ## Base Path Revalidation URLs 見出しが存在する
  • AC2: 同ファイルに Local preview: 形式で localhost:4173/?playtest_evidence=1 が含まれる(## Base Path Revalidation URLs セクション内)
  • AC3: 同ファイルに GitHub Pages main: 形式で squne121.github.io/loop-protocol/?playtest_evidence=1 が含まれる(同セクション内)
  • AC4: 同ファイルに GitHub Pages PR preview: 形式で squne121.github.io/loop-protocol/pr- が含まれる(同セクション内)
  • AC5: 同ファイルに base path 修正だけでは #571 の deferred verification 完了を意味しない の文言が含まれる
  • AC6: 同ファイルに Pages source / publish trigger fault は別問題 の文言が含まれる
  • AC7: pnpm typecheck / pnpm lint / pnpm test / pnpm build が PASS する

Verification Commands

# AC1
$ rg -n "## Base Path Revalidation URLs" docs/playtest/manual-playtest-runbook.md
# AC2
$ rg -n "Local preview:.*localhost:4173/\?playtest_evidence=1" docs/playtest/manual-playtest-runbook.md
# AC3
$ rg -n "GitHub Pages main:.*squne121\.github\.io/loop-protocol/\?playtest_evidence=1" docs/playtest/manual-playtest-runbook.md
# AC4
$ rg -n "GitHub Pages PR preview:.*squne121\.github\.io/loop-protocol/pr-" docs/playtest/manual-playtest-runbook.md
# AC5
$ rg -n "base path 修正だけでは #571 の deferred verification 完了を意味しない" docs/playtest/manual-playtest-runbook.md
# AC6
$ rg -n "Pages source / publish trigger fault は別問題" docs/playtest/manual-playtest-runbook.md
# AC7a
$ pnpm typecheck
# AC7b
$ pnpm lint
# AC7c
$ pnpm test
# AC7d
$ pnpm build

Runtime Verification Applicability

decision: not_applicable
reason: docs-only 変更(Markdown テキスト追記)のため、runtime 動作検証は不要。AC1–AC6 は rg による決定論的テキスト確認で完結する。

Allowed Paths

  • docs/playtest/manual-playtest-runbook.md

Stop Conditions

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

Required Skills

なし

Scope Delta(任意)

N/A

Delivery Rule

Activity

  1. added
    enhancement
    phase/implementation
    triage-required
    agent/implementer
    on Jun 6, 2026
  2. squne121 commented on Jun 6, 2026

    @squne121
    OwnerAuthor

    結論

    Issue #706 は起票・実装する価値ありです。ただし現状のまま実装すると「文言を戻すだけ」で、また後続の runbook 全面更新に消されます。PR化するなら APPROVE ではなく、下記の修正条件付きで進めるべきです。

    事実関係

    #614 は、manual-playtest-runbook.md に local / main / PR preview の ?playtest_evidence=1 再検証経路と、「base path 修正だけでは #571 の deferred verification 完了を意味しない」切り分けを要求していました。([GitHub]1)

    PR #623 はその要求を実装したと主張し、diff 上でも ## Base Path Revalidation URLs、3種の URL、Pages source / publish trigger fault 切り分け文言を追加していました。([GitHub]2)

    しかし現行 main の manual-playtest-runbook.md には、Evidence Panel の汎用 URL 例は残っているものの、## Base Path Revalidation URLs 見出しは存在せず、#614/#571 の base path 再検証専用セクションとしては失われています。([GitHub]3)

    退行原因は、ファイル履歴上、PR #623 後に #645 の日本語化・ADR 0004 統合コミットが同ファイルへ入っていることです。つまり #623 の直接失敗ではなく、#645 系の全面リライトで #614 の AC6/AC8 が落ちた可能性が高いです。([GitHub]4)

    敵対的レビュー

    B1. #706 は「再追加」だけで、同じ退行を防げない

    Issue #706 の Allowed Paths は docs/playtest/manual-playtest-runbook.md のみで、検証も rg による文言確認です。これでは今回のような後続 docs リライトで再び消されます。([GitHub]5)

    最小対応として #706 はそのまま docs-only でよいですが、PR本文に follow-up issue 必須として「manual-playtest-runbook の重要 invariants を検査する docs regression test」を明記すべきです。例:

    follow_up_issue_request:
      title: "test: manual-playtest-runbook の Base Path Revalidation invariants を CI で固定する"
      scope:
        - scripts/check-manual-playtest-runbook-invariants.mjs
        - package.json script 追加
        - CI の docs/invariant check
      invariants:
        - ## Base Path Revalidation URLs
        - localhost/main/pr-preview の ?playtest_evidence=1 URL
        - base path 修正 != #571 deferred verification 完了
        - Pages source / publish trigger fault は別問題
    

    B2. 現行 runbook に既に URL 例があるため、単純追記は重複・分散を生む

    現行 runbook には # main URL の例、# PR プレビューの例、# ローカルプレビューの例 として ?playtest_evidence=1 URL が既にあります。([GitHub]3)

    したがって単に別セクションを末尾へ足すと、URL 説明が二重化します。実装は「Evidence Panel で環境情報を取得する」直下の URL 例を、## Base Path Revalidation URLs セクションとして昇格・整理するのがよいです。

    推奨パッチ方針:

    ## Base Path Revalidation URLs
    
    Evidence Panel は `?playtest_evidence=1` クエリパラメータを付けることで有効化される。
    Base path 修正後の再検証では、以下の 3 経路を分けて確認する。
    
    - Local preview: `http://localhost:4173/?playtest_evidence=1`
    - GitHub Pages main: `https://squne121.github.io/loop-protocol/?playtest_evidence=1`
    - GitHub Pages PR preview: `https://squne121.github.io/loop-protocol/pr-<PR番号>/?playtest_evidence=1`
    
    Validation split:
    
    - Local preview は、default `/` base の production bundle が `pnpm build && pnpm preview` で動作することを確認する。
    - GitHub Pages main は、hosted main build が `/loop-protocol/` base を解決できることを確認する。
    - GitHub Pages PR preview は、hosted PR preview build が `/loop-protocol/pr-<PR番号>/` base を解決できることを確認する。
    
    Base path 修正だけでは #571 の deferred verification 完了を意味しない。
    Pages source / publish trigger fault は別問題として切り分け、hosted runtime が更新されない場合は #571 または follow-up issue で canonical evidence を再採取する。

    B3. Pages source / publish trigger fault は実在リスクなので、注記は必須

    GitHub Pages は publishing source を branch/folder または Actions workflow として設定でき、branch publishing では source branch への push が公開契機になります。さらに GitHub Docs は、GITHUB_TOKEN を使った Actions workflow 由来の push は Pages build を trigger しないと明記しています。([GitHub Docs]6)

    この repo の workflow は main deploy で gh-pages へ push し、PR preview は peaceiris/actions-gh-pages の destination_dir / keep_files を使っています。peaceiris/actions-gh-pages 側も publish_dir、destination_dir、keep_files の挙動を明記しています。([GitHub]7)

    つまり「Vite base path は正しいが Pages 側の source / trigger / publish が反映されない」は十分あり得ます。#706 の切り分け注記は削ってはいけません。

    B4. #705 と同じファイルを触るので、直列順序を守るべき

    #705 も manual-playtest-runbook.md に commit SHA build-time 注入の確認方法を追記するスコープを持っています。#705 自体も #614 を直列依存先として扱っています。([GitHub]8)

    したがって #706 と #705 を並列実装すると、また docs merge で片方の追記が落ちるリスクがあります。順序は #706 → #705。#705 側のPRでは、#706 の Base Path Revalidation URLs セクションが残っていることを追加確認すべきです。

    PRレビュー時の判定基準

    #706 のPRは、最低限これを満たすまで approve しない方がよいです。

    rg -n "## Base Path Revalidation URLs" docs/playtest/manual-playtest-runbook.md
    rg -n "http://localhost:4173/\?playtest_evidence=1" docs/playtest/manual-playtest-runbook.md
    rg -n "squne121\.github\.io/loop-protocol/\?playtest_evidence=1" docs/playtest/manual-playtest-runbook.md
    rg -n "squne121\.github\.io/loop-protocol/pr-" docs/playtest/manual-playtest-runbook.md
    rg -n "base path 修正だけでは #571 の deferred verification 完了を意味しない" docs/playtest/manual-playtest-runbook.md
    rg -n "Pages source / publish trigger fault は別問題" docs/playtest/manual-playtest-runbook.md
    pnpm typecheck
    pnpm lint
    pnpm test
    pnpm build

    加えて、PR本文に「退行原因は #623 ではなく後続 #645 の docs 全面リライトによる invariant drop」と明記させるべきです。ファイル履歴上、#623 の後に #645 系コミットが同じ runbook を更新しています。([GitHub]4)

    最終判定

    Issue #706 は妥当。ただし実装PRは条件付き承認。

    必須条件は次の3点です。

    1. Base Path Revalidation URLs を現行 Evidence Panel URL 説明と統合し、重複した散らばりを作らない。
    2. #571 deferred verification と Pages source / publish trigger fault の切り分けを明文化する。
    3. PR本文に follow-up として「runbook invariant regression test」を要求する。これを入れないと、同じ種類の退行が再発します。
  3. squne121 commented on Jun 6, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Approved

    The issue has been approved and is ready for implementation.

  4. squne121 commented on Jun 6, 2026

    @squne121
    OwnerAuthor

    Contract Snapshot (2026-06-06T10:52:30Z)

    Issue #706 の issue-contract-review 結果です。全チェック PASS。実装着手可能です。

    • Outcome: docs/playtest/manual-playtest-runbook.md に ## Base Path Revalidation URLs セクションと切り分け注記が追記される
    • Allowed Paths: docs/playtest/manual-playtest-runbook.md
    • Worktree: .claude/worktrees/issue-706-pr-623-manual-playtest-runbook-md-base-p
    • Branch: worktree-issue-706-pr-623-manual-playtest-runbook-md-base-p
    • VC preflight: baseline fail = 6, 想定外 pass = 0, 実行不可 = 0, regression_gate pass = 4
    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-06-06T10:52:30Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/706
      checks:
        template_compliance: pass
        state_label: ok
        allowed_paths_present: pass
        vc_present: pass
        stop_conditions_complete: pass
        vc_preflight:
          passed: true
          vc_failed_as_expected: 6
          vc_passed_unexpectedly: 0
          vc_unrunnable: 0
          vc_expected_pass: 4
          vc_skipped: 0
          status: pass
          body_sha256: "sha256:2bad5609436e8c4184e13801bcff5b0bd450f6f1a2e31b27dcbddcb75951bc22"
          classifications:
            - ac: AC1
              command: "rg -n \"## Base Path Revalidation URLs\" docs/playtest/manual-playtest-runbook.md"
              exit_code: 1
              classification: expected_fail
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              confidence: high
              decision: go
            - ac: AC2
              command: "rg -n \"Local preview:.*localhost:4173/\\?playtest_evidence=1\" docs/playtest/manual-playtest-runbook.md"
              exit_code: 1
              classification: expected_fail
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              confidence: high
              decision: go
            - ac: AC3
              command: "rg -n \"GitHub Pages main:.*squne121\\.github\\.io/loop-protocol/\\?playtest_evidence=1\" docs/playtest/manual-playtest-runbook.md"
              exit_code: 1
              classification: expected_fail
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              confidence: high
              decision: go
            - ac: AC4
              command: "rg -n \"GitHub Pages PR preview:.*squne121\\.github\\.io/loop-protocol/pr-\" docs/playtest/manual-playtest-runbook.md"
              exit_code: 1
              classification: expected_fail
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              confidence: high
              decision: go
            - ac: AC5
              command: "rg -n \"base path 修正だけでは #571 の deferred verification 完了を意味しない\" docs/playtest/manual-playtest-runbook.md"
              exit_code: 1
              classification: expected_fail
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              confidence: high
              decision: go
            - ac: AC6
              command: "rg -n \"Pages source / publish trigger fault は別問題\" docs/playtest/manual-playtest-runbook.md"
              exit_code: 1
              classification: expected_fail
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              confidence: high
              decision: go
            - ac: AC7a
              command: "pnpm typecheck"
              exit_code: 0
              classification: expected_pass
              category: regression_gate
              scope_class: regression_gate
              confidence: low
              decision: go
            - ac: AC7b
              command: "pnpm lint"
              exit_code: 0
              classification: expected_pass
              category: regression_gate
              scope_class: regression_gate
              confidence: low
              decision: go
            - ac: AC7c
              command: "pnpm test"
              exit_code: 0
              classification: expected_pass
              category: regression_gate
              scope_class: regression_gate
              confidence: low
              decision: go
            - ac: AC7d
              command: "pnpm build"
              exit_code: 0
              classification: expected_pass
              category: regression_gate
              scope_class: regression_gate
              confidence: low
              decision: go
        ac_verifiability: pass
        product_spec_check:
          applicability: not_applicable
          decision: pass
        worktree_branch_collision: clear
      next_action: implement_issue
      blocked_reasons: []
      warnings: []
  5. squne121 commented on Jun 6, 2026

    @squne121
    OwnerAuthor

    実装完了報告

    PR #707 を作成した。

    変更内容

    docs/playtest/manual-playtest-runbook.md に ## Base Path Revalidation URLs セクションを追加し、以下を含める。

    VC 結果

    AC 結果
    AC1: ## Base Path Revalidation URLs 見出し PASS
    AC2: Local preview: URL PASS
    AC3: GitHub Pages main: URL PASS
    AC4: GitHub Pages PR preview: URL PASS
    AC5: #571 deferred verification 切り分け文言 PASS
    AC6: Pages source / publish trigger fault 文言 PASS
    AC7a: pnpm typecheck PASS
    AC7b: pnpm lint PASS
    AC7c: pnpm test(406件) PASS
    AC7d: pnpm build PASS

    コミット: d3c6210

  6. added 3 commits that reference this issue on Jun 6, 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