Repository navigation
docs: add automation metadata to playtest-log (#417) - #418
Conversation
AI/自動化プレイテストの特性(再現性・定量メトリクス)を正確に記録できる構造を docs/product/playtest-log.md に追加しました。 既存の session_mode を正本として維持しつつ、定量観測に必要な automation ブロックを新設しています。 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=BEHIND
Evidence Check
- AC coverage: ○ (AC1-AC6 すべて達成)
- Allowed Paths: 遵守 (docs/product/playtest-log.md のみ)
- CI Verification: Passed (typecheck, lint, test, build, python-test 全件成功)
- 検証コマンド結果: 達成 (grep による構造確認を PR 本文に記録済み)
Blockers
- なし
Non-blockers(任意改善)
- なし
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: BEHIND
reviewed_head_sha: 3e1393001b726e2dc52654835a0e96100b967506
follow_up_issue_requests: []|
判定: REQUEST_CHANGES PR #418 は方向性は妥当です。AI/自動化プレイテストを「UX・感情証拠」と分離し、再現コマンド・seed・metrics・artifact 参照を持たせる設計自体は、Issue #417 の意図に合っています。Issue #417 は AI/自動化プレイテスト用に execution_mode, agent_profile, random_seed, automation_metrics, reproduction_command, human_review_required を追加することを In Scope としており、AI結果を感情的UX証拠として扱わないことも AC にしています。 ただし、現状の差分は「テンプレートとして今後のログを正しく機械可読にする」にはまだ弱いです。特に、要求キーとの不一致、schema/example の不整合、artifact のPII/漏洩境界、hidden/bidi Unicode 警告はマージ前に潰すべきです。 Blocker 1: Issue #417 の execution_mode 要求を満たしていない Issue #417 は任意キーとして execution_mode: human_developer | ai_agent | scripted_automation を明示しています。 これは「既存の session_mode で代替する」という設計判断としてはあり得ますが、その場合はテンプレート内で明示的な対応表が必要です。 修正案: execution_mode は既存 session_mode を canonical source とする。Mapping:- human_developer -> session_mode: human_internal- ai_agent -> session_mode: ai_simulation- scripted_automation -> session_mode: browser_automationsession_mode: "human_internal | ai_simulation | browser_automation" または、Issue 通りに automation.execution_mode を追加する。 automation: 現状のままだと、Issue AC を満たしたかどうかがレビュー不能です。 Blocker 2: automation.metrics が派生値と元データを混在させており、整合性検証不能 runs, success_count, failure_count, success_rate, death_count, death_rate が同居しています。 runs: 100 この場合、success_count + failure_count != runs ですが、schema 上は検出できません。death_rate も death_count / runs なのか、death_count / failure_count なのか定義されていません。 ゲームテレメトリ設計では、低レベルの行動イベントから性能・学習・品質への推論へ至る reasoning chain を明確にし、行動の「記述」と「推論」を分け、可能な限り文脈付きで記録することが推奨されています。 修正案: metrics: derived: success_count / runs。記録時に丸める場合は小数第3位まで。success_rate: null derived: death_count / runsdeath_rate: null または派生値を消して、元データのみ記録する。 metrics: Blocker 3: artifact 参照が PII / raw recording 方針と衝突し得る PR は trace_ref, replay_ref, metrics_json, input_script_ref を追加しています。 Playwright trace はデバッグに有用ですが、公式ドキュメント上も trace は各アクションの状態、ログ、ソース、ネットワーク、エラー、console、DOM snapshot を確認できるものです。 つまり trace.zip や replay.mp4 を public repo 配下の docs/playtest/artifacts/... に置く例は危険です。現時点の例では trace.zip と replay.mp4 が docs 配下に置かれており、protocol の「raw recording を GitHub に置かない」方針と衝突し得ます。 修正案: artifacts: 少なくとも trace_ref / replay_ref には「repo 内に置いてよいのは redacted / synthetic / non-PII のみ」と明記してください。 Blocker 4: 例の validation_method: "automated test" が schema enum と一致しない テンプレートの schema では以下の enum です。 validation_method: "human_internal | ai_simulation | browser_automation | manual_reproduction" しかし Example Entry は validation_method: "automated test" になっています。 修正案: validation_method: "browser_automation" または ai_simulation。 Blocker 5: GitHub が hidden / bidirectional Unicode 警告を出している PR #418 の files view で、変更ファイルに対して “hidden or bidirectional Unicode text” 警告が出ています。 修正要求: python - <<'PY' ゼロ件であることを PR 本文に記録してください。検出されたら除去してください。 High Risk: AI automation の用途境界は良いが、ログ側に “何を証明できるか” が不足 PR のコメントは「AI結果をUX証拠にしない」と明記しており、これは正しいです。 ただし、ログテンプレートには「この automation block から主張してよいこと / 禁止されること」が構造化されていません。ai_result_is_ux_evidence: false だけだと、後続 agent が success_rate: 0.85 を見て「UX良好」と誤読する余地が残ります。 修正案: automation: Non-blocker: agent_profile は文字列だけでは再現性が弱い agent_profile: "combat-agent-v1" だけでは、実体がコードなのか prompt なのか model config なのか分かりません。自動プレイテストの再現性を狙うなら、最低限以下が欲しいです。 agent: 自動エージェントによるプレイテスト研究でも、テスト対象環境・エージェント・収集データの再現性は実運用化の障害になりやすい点として扱われています。 投稿用レビュー文案 Verdict: REQUEST_CHANGESPR #418 は、AI/自動化プレイテスト結果を human UX evidence と分離し、seed / reproduction command / metrics / artifacts を持たせる方向性は妥当です。ただし、現状のテンプレートは schema としてまだ不整合があり、マージ前に修正が必要です。 Blocker 1: Issue #417 の
|
|
人間コメント。 |
|
結論:PR #418 では「プレイテスト結果メタデータ」は考慮されているが、「一貫したログ設計/動作情報出力設計」までは考慮されていない、というコメントが妥当です。 PR #418 は docs/product/playtest-log.md に automation ブロックを追加し、agent_profile、random_seed、reproduction_command、定量 metrics、trace_ref、replay_ref、input_script_ref などを記録できるようにしています。つまり、プレイテスト証跡の“参照先”と“集計結果”を残す枠はあります。 そのため、人間コメントへの回答案は以下がよいです。 指摘ありがとうございます。 現状の PR #418 では、AI/自動化プレイテストの証跡として したがって、プレイテスト証跡としてのログ設計は 部分的に考慮済み ですが、MVP から Publish まで一貫した telemetry / structured event log 設計は 未対応 です。 現時点で MVP から Publish までを見据えた包括的なログ設計をこの PR に含めるのは、以下の理由で過剰だと考えます。
ただし、将来の自動プレイテストの再現性・比較可能性を確保するため、後続 Issue として「MVP 用の最小 telemetry contract」を切るのがよいと思います。 最小スコープは、Publish までの完全設計ではなく、MVP playtest に必要な以下に限定します。
この PR 自体は merge 可。ただし、PR #418 の完了をもって「プレイテスト証跡としてのログ設計が完了した」とは扱わず、後続 Issue で telemetry contract を定義するのが安全です。 Issue 起票案: Title設計: MVP 自動プレイテスト用の最小 telemetry / event log contract を定義する SummaryPR #418 により playtest-log へ AI/自動化プレイテスト結果を記録する AI/自動化プレイテストの再現性、比較可能性、回帰検出を確保するため、MVP 段階で必要最小限の telemetry / event log contract を定義する。 In Scope
Out of Scope
Acceptance Criteria
補足すると、外部基準としても「ログ」は単なるテキストではなく、timestamp、severity、body、attributes、trace/span などの構造を持つ記録として扱うのが一般的です。OpenTelemetry の Logs Data Model も、ログレコードの共通理解・転送・保存・解釈のためのデータモデルを定義しています。 |
- Integrate execution_mode into session_mode - Add PII risk warning to artifacts - Fix metric consistency (runs = success + failure) - Align validation_method enum in example - Clean up hidden Unicode characters
|
Applied the following fixes to
|
|
結論 判定: REQUEST CHANGES 推奨。 PR本文では automation ブロック追加により再現性・定量メトリクス・アーティファクト参照を記録可能にした、と説明されています。 差分上も docs/product/playtest-log.md に automation.agent_profile, random_seed, reproduction_command, metrics, artifacts, human_review_required, ai_result_is_ux_evidence が追加されています。 ブロッカー
Issue #417 の In Scope は、execution_mode: human_developer | ai_agent | scripted_automation の追加を明示しています。 しかしPRでは execution_mode を追加せず、既存の session_mode: "human_internal | ai_simulation | browser_automation" に # Maps to Issue #417 execution_mode というコメントを付けるだけです。 これは軽微な命名差ではありません。session_mode は「セッションの検証モード」、execution_mode は「誰/何が実行したか」を表す軸です。例えば session_mode: browser_automation でも、実行主体は developer, ci, ai_agent, scripted_bot のいずれもあり得ます。現状だとログ集計時に「AIが行った検証」と「単なるブラウザ自動化」が混線します。 修正案: execution: 既存 session_mode は維持してよいですが、execution_mode 要求をコメントで吸収するのは不可です。
差分では # AI/Automation Metadata (Optional) とありますが、テンプレートには automation: が常に出現し、runs: 0, success_count: 0, human_review_required: false などのデフォルト値が入っています。 これはログ設計上危険です。人間プレイテストログにも automation が常時入るため、「自動化を実施していない」のか「実施したが0件だった」のか区別できません。ゼロ値は未実施の表現として不適切です。 修正案: automation: null # human-only session では null または省略 自動化実施時のみ以下を必須化する方がよいです。 automation:
現状の metrics は項目名を並べただけで、制約がありません。例えば runs, success_count, failure_count, success_rate が相互に矛盾しても検出できません。差分では runs: 100, success_count: 85, failure_count: 15, success_rate: 0.85 の例が入っていますが、制約の明文化はありません。 最低限、以下の不変条件が必要です。 metrics: さらに、duration_ms_p50 / duration_ms_p95 はサンプル数、測定開始/終了点、ブラウザ/CI環境依存を明記しないと比較不能です。OpenTelemetry のメトリクス規約でも、メトリクスは曖昧さを避け、単位を明確にし、duration は seconds を使うことが推奨されています。 このPRでは duration_ms_* としてミリ秒を名前に含めていますが、将来 OpenTelemetry や Prometheus 風の出力に寄せるなら、以下のように unit を分離した方が扱いやすいです。 metrics:
PRは artifacts.trace_ref: "docs/playtest/artifacts/.../trace.zip" や replay_ref: ".../replay.mp4" を例示しています。 一方、既存プロトコルは公開リポジトリに顔・声の録画URLや識別可能な発話全文を保存しない、録画データや生メモはリポジトリ外に保管し GitHub には要約と匿名化引用のみを置く、としています。 Playwright trace はデバッグに有用ですが、ブラウザ操作、DOMスナップショット、ネットワーク活動を含み得ます。Playwright公式も tracing API が browser operations と network activity を記録し、snapshots を有効にすると DOM snapshot と network activity を記録すると説明しています。 Trace Viewer は trace.zip を開いて確認する前提の仕組みです。 したがって、公開repo内の docs/playtest/artifacts/.../trace.zip を標準例にするのは危険です。PR内に warning コメントは追加されていますが、例示パス自体が「コミットしてよい」と読めます。 修正案: artifacts: 非ブロッカーだが修正推奨
ai_result_is_ux_evidence: false # 固定 は意図としては良いです。Issue #417 の AC も「AI結果を感情的UX証拠として扱わない旨」を要求しています。 ただし固定値を各ログに書かせると、誰かが true にしてしまう余地があります。 より堅牢にするなら、ログ値ではなくプロトコル側の不変ルールとして置き、ログ側には必要時だけ ux_human_review を置くべきです。 ux_human_review:
PR本文は schema change として扱い、playtest-log の YAMLテンプレートを記録スキーマとみなしています。 しかし実体は Markdown 中のサンプルYAMLで、型・必須/任意・追加プロパティ・enum・数値範囲の検証ができません。 JSON Schema では properties で各フィールドを定義し、additionalProperties で未知フィールドの扱いを制御できます。 このプロジェクトでログをAI/自動化の証跡として使うなら、少なくとも follow-up で docs/schema/playtest-log.schema.json か scripts/validate-playtest-log.ts を追加すべきです。
PR Files changed ページに「hidden or bidirectional Unicode text」の警告が出ています。 日本語Markdownであっても、エージェントが読むSSOT/テンプレートに不可視文字が混入すると、grep・差分・自動検証・プロンプト取り込みで事故ります。 これは即マージブロッカーまでは言い切れませんが、少なくとも cat -vet / python / editor の不可視文字表示で確認し、意図しない bidi 制御文字がないことをPR本文に記録してください。 人間コメントへの回答: MVPからPublishまで一貫したログ設計は重いか 結論: 現時点で完全なログ設計をやるのは重い。ただし、MVP段階でも最小のログ語彙と互換性ルールは必要です。 PR #418 は「playtest-log に automation metadata を足す」だけなので、MVP〜Publishまでの統合ログ設計を背負わせるべきではありません。ただし、ここでログ語彙を雑に決めると後で互換性負債になります。 最低限このPRで決めるべき範囲は以下です。 log_schema_version: "playtest-log/v1" Publishまでの本格ログ設計は follow-up Issue でよいです。内容は以下。 Title: Scope:
Acceptance Criteria:
マージ前の最小修正案 PR #418 に直接入れるなら、以下で十分です。 log_schema_version: "playtest-log/v1" execution: automation: null # human-only session では null。自動化実施時のみ下記形式にする。 automation:agent_profile: ""random_seed: nullreproduction_command: ""metrics:runs: 0success_count: 0failure_count: 0success_rate: null # success_count / runsdeath_count: 0death_rate: null # death_count / runsduration:unit: "ms"p50: nullp95: nullartifacts:metrics_json: ""trace_ref: "" # public repo に raw trace.zip を置かないreplay_ref: "" # public repo に raw replay.mp4 を置かないinput_script_ref: ""trace_redacted: falsehuman_review_required: false最終判定 REQUEST CHANGES 理由は、Issue #417 の要求を満たすように見えて、実際には execution_mode を追加しておらず、AI/自動化ログとして後続集計できるだけのスキーマ制約もありません。方向性は正しいため、上記の最小修正を入れれば APPROVE 可能です。 |
- Added execution block (mode, actor_id, trigger) - Set automation default to null in schema - Structured metrics.duration (unit, p50, p95) and added success_rate invariant comment - Secured artifacts with trace_redacted and external storage patterns - Applied Unicode Hygiene (ASCII-only) - Moved ai_result_is_ux_evidence policy to dedicated section
This reverts commit 2dd2f6c.
- Added execution block to schema and example - Set automation block optionality to null by default - Added metric invariants and structured duration block - Implemented secure artifacts pattern and trace_redacted flag - Moved ai_result_is_ux_evidence to Policies section - Performed surgical Unicode hygiene preserving Japanese text
|
判定: REQUEST_CHANGES PR #418 は現状 merge すべきではありません。理由は「AI/自動化メタデータの追加」ではなく、既存 playtest-log スキーマの上位キーを差し替える破壊的変更になっているためです。 確認中に PR が更新されており、GitHub checks 画面では現在 6 commits / +68 -5 / 1 file changed / 5 checks が見えています。以下は最新 branch の docs/product/playtest-log.md を前提に見ています。 Blocker 1: Issue #417 の AC「既存 human playtest 記録キーを壊さない」に違反 Issue #417 は、docs/product/playtest-log.md に execution_mode, agent_profile, random_seed, automation_metrics, reproduction_command, human_review_required などの任意キーを追加することを Scope とし、AC で「既存の human playtest 記録キーを壊さない」ことを明記しています。 しかし main の現行 schema は top-level に session_mode と tester_profile を持っています。 これは additive ではなく schema migration です。PR 本文の「backward compatible / migration_required: no」という主張と矛盾します。 必須修正: session_mode: "human_internal | ai_simulation | browser_automation" automation: または、execution へ移行するなら、この PR は #417 の範囲を超えるため、別 Issue と migration plan が必要です。 Blocker 2: session_mode と validation_method の正本が分裂している 現行 schema では session_mode が human_internal | ai_simulation | browser_automation、各 entry の validation_method も human_internal | ai_simulation | browser_automation | manual_reproduction です。 PR branch は top-level を execution.mode: human_developer | ai_agent | scripted_automation | ci_browser_automation に変更している一方、entry 側の validation_method は旧 enum のままです。 これだと同じログ内で「このセッションは human_developer だが検証方法は browser_automation」のような、正本不明の二重分類になります。特にプレイテストログを後で集計・lint・JSON Schema 化する場合、mode taxonomy が破綻します。 必須修正: session_mode は維持する。 automation 側に必要なら automation.execution_mode を追加する。 enum 対応表を明記する。 例: session_mode is canonical for playtest session classification.session_mode: "human_internal | ai_simulation | browser_automation" automation: Blocker 3: automation が “Optional” と書かれているのに null 運用の実例がない PR branch はコメントで Default: automation: null としていますが、schema 例では常に automation: ブロックを展開しています。 これは人間プレイテスト中心の既存ユースケースに対してノイズです。Issue #417 の背景は「human playtest を壊さず AI/自動化結果を追加する」ことであり、human-only session では automation: null が第一級の例として必要です。 必須修正: Entry Schema では明示的に以下を許可してください。 automation: null そのうえで、AI/自動化セッションの例を別に置くべきです。 Blocker 4: Playwright / Vitest trace の機密性に対する設計が弱い PR は trace_ref / replay_ref / trace_redacted: true を追加していますが、これは実装実態に対して弱いです。Playwright の trace はデフォルトで screenshots、DOM snapshots、sources、attachments を含み得ます。 つまり trace_redacted: true という自己申告フラグだけでは不十分です。trace は DOM、スクリーンショット、入力値、console/network に由来する情報を含む可能性があるため、public repo に直接置かない設計を schema 上で強制するべきです。 必須修正: artifacts: 少なくとも trace_redacted: true だけでなく、raw_artifact_committed: false と redaction_status を持たせてください。 Major: Example が人間セッションなのに automation ブロックを持っている PR branch の Example は execution.mode: "human_developer" なのに、automation.agent_profile: "combat-agent-v1" や reproduction_command: "pnpm test:e2e --grep @combat" を持っています。 これは運用者を混乱させます。人間プレイテストの例と AI/自動化プレイテストの例を分けるべきです。 修正案: Example Entry: Human Internal session_mode: human_internal automation: null Example Entry: Browser Automation session_mode: browser_automation automation: {...} Minor: success_rate / death_rate の invariant が片方だけ PR branch は success_rate = success_count / runs と書いていますが、death_rate の invariant がありません。 修正案: Invariants:- success_rate = success_count / runs- failure_count = runs - success_count- death_rate = death_count / runs- rates are null when runs = 0GitHub review comment 案 Verdict: REQUEST_CHANGESThis PR currently claims to be an additive automation metadata change, but the latest branch changes the top-level playtest-log schema from That violates #417 AC: “既存の human playtest 記録キーを壊さない”. Required changes:
Until these are fixed, this is not backward-compatible and should not be merged as #417. 結論 この PR の方向性自体は正しいです。AI/自動化プレイテストには、seed、agent profile、reproduction command、metrics、artifact refs が必要です。 ただし現状は「任意メタデータ追加」ではなく「セッション識別 schema の置換」になっています。#417 として merge するなら、既存 session_mode / tester_profile を残し、automation を完全に additive に戻すのが最低条件です。 |
…, and add artifact safety fields (Iteration 3)
Verdict: REQUEST_CHANGESPR #418 は、初期差分よりは大幅に改善されています。特に、session_mode を維持し、automation ブロックを任意化し、raw artifact を repo に入れない方向へ寄せた点は妥当です。ただし、現状のまま merge すると playtest-log の schema が protocol / lifecycle / MVP measurement contract とズレたまま固定される ため、まだ止めるべきです。 Blocking findings
Issue #417 は当初 execution_mode: human_developer | ai_agent | scripted_automation を追加する案でしたが、既存 session_mode を正本として維持する方針に寄せたのは正しいです。Issue #417 の AC も「既存 human playtest 記録キーを壊さない」「protocol と log の責務分離を維持する」ことを要求しています。 しかし最新 head の playtest-log.md は session_mode: "human_internal | human_external | ai_agent | browser_automation" になっており、既存 main の session_mode: "human_internal | ai_simulation | browser_automation" と validation_method: "human_internal | ai_simulation | browser_automation | manual_reproduction" から ai_simulation を外して ai_agent を入れています。 これは単なる命名差ではなく、後続の集計・検索・判定で壊れます。ai_agent は「主体」であって mode ではありません。mode は ai_simulation、actor/profile は tester_profile または automation.execution.actor_id に置くべきです。 修正案 session_mode: "human_internal | human_external | ai_simulation | browser_automation" validation_method も同じ enum 体系に合わせ、ai_agent を混ぜないでください。
最新 head はコメントで Default: automation: null と書き、Human Internal の例では automation: null を使っています。 playtest-log.md は frontmatter 上も sdd_boundary: template, template_only: true で、YAML テンプレート兼 schema として機能する文書です。 修正案 automation の直前に schema rule を明文化してください。 automation:Required only when session_mode is ai_simulation or browser_automation.Must be null when session_mode is human_internal or human_external unless machine telemetry is attached.automation: null または JSON Schema / YAML Schema を後続 Issue に分離するなら、PR本文に「機械検証は未実装」と明記してください。現状の “Schema Change Applicability” は過剰主張です。
PR は trace_ref, replay_ref, raw_artifact_committed, artifact_sensitivity, redaction_status, trace_redacted を追加しており、方向性は正しいです。 したがって artifact_sensitivity: trace_with_dom と trace_redacted: true だけでは弱いです。DOM snapshot / screenshot / video / network log / console log のどれが含まれるかを分解しないと、pii_reviewed: true の意味が空になります。 修正案 artifacts: さらに policy として、raw_artifact_committed: true は原則禁止にしてください。現行 protocol も公開 repo には顔・声の録画 URL、識別可能な発話全文を保存しない方針です。
success_rate = success_count / runs と death_rate = death_count / runs の invariant を書いたのは改善です。 OpenTelemetry の metrics data model は pre-aggregated time series の semantics と変換可能性を重視しており、metric names / attributes / units の一貫性も重要です。 修正案 metrics: 少なくとも computed_by と source は必要です。AI が自己申告した集計値と、script が生成した集計値を同列に置くべきではありません。
Issue #417 の AC は「AI結果を感情的UX証拠として扱わない旨を明記する」ことを要求しています。 ただし、classification: "design hypothesis invalidated" や decision: "spec_delta_issue" と組み合わさった場合に human review を必須化する rule がありません。playtest-protocol.md は、AI/自動化で検出された問題が UX や設計仮説に影響する場合、人間の確認後に Spec Delta Issue / Implementation Issue に分類すると定めています。 修正案 Invariant:- When session_mode is ai_simulation or browser_automation:- emotional_signal must be "n/a" or omitted.- AI result must not be used as UX evidence.- If classification is "design hypothesis invalidated" or decision is "spec_delta_issue",human_review_required must be true unless the issue is purely mechanical bug evidence.
mvp-scope.md は現時点で status: draft であり、draft の間は downstream implementation の判断基準として拘束力を持たないと明記しています。 PR #418 自体は docs template update なので merge 不能とまでは言いませんが、PR本文の「MVP scope: 仮説検証の証跡としてのプレイテスト記録の強化」は、normative な MVP measurement contract が確定済みであるかのように読めます。 修正案 PR本文と docs の wording を次に寄せてください。
Non-blocking but should fix tester_profile の enum が target_player_layer から developer-self | combat-agent-v1 | playwright-ci に変わっており、human external / target player の余地が狭くなっています。個人趣味開発で外部テスターを募らない方針は protocol にありますが、例外的第三者協力の handling は残しているため、target_player_layer を完全に消す必要は薄いです。 reproduction_command に pnpm test:e2e --grep @combat が出ていますが、repo にその script / dependency がないなら example として誤誘導です。example_command か placeholder と明記するべきです。 trace_redacted: true は強すぎます。実際に redaction したことを保証できない場合は redaction_status: reviewed の方を正にし、trace_redacted は「redacted copy を参照している」場合だけ true にしてください。 Suggested review comment REQUEST_CHANGES 最新 head は初期差分より改善されていますが、まだ merge すると playtest-log schema と playtest-protocol の意味論がズレます。 Blockers:
結論 この PR は「方向性」は合っていますが、まだ schema と policy の境界が曖昧です。特に ai_agent を mode に入れた点、artifact safety の粗さ、metric の再計算不能性は後でログを使う段階で確実に負債になります。merge 前に上記 6 点を直すのが妥当です。 |
Summary
docs/product/playtest-log.mdの既存session_modeを正本として維持しつつ、AI/自動化用のautomationブロックを構造化して追加しました。今回の修正(Iteration 4)では、スキーマの厳密な定義、再計算可能なメトリクス契約、および高度なアーティファクト安全性を導入しています。
Checks
pnpm typecheckpnpm lintpnpm testpnpm build修正内容 (Iteration 4)
session_modeをplaytest-protocol.mdと一致させ、ai_simulationを正本としました。automationブロックを必須とし、人間のみの場合はnullとするルールを導入しました。storage_class,artifact_contains,public_repo_safeフィールドを追加し、DOMスナップショット等を含む機密データの扱いを厳格化しました。computed_by,source,sample_unitを追加し、統計値の再計算・検証を可能にしました。human_review_required: true) を必須とする不変条件を## Policiesに追加しました。mvp-scope.mdがドラフトであることを考慮し、本テンプレートを「ワーキングフォーマット」として位置付けました。受け入れ条件の達成状況
execution_modeを追加せず、既存session_modeを正本として使う (automation.execution に情報を集約)automation.metricsにruns,success_count,failure_count,success_rate,duration,input_count_total,collision_count_total等の単位付き項目があるautomation.random_seed,automation.reproduction_command,automation.artifacts.metrics_json,automation.artifacts.trace_refが記録できるai_result_is_ux_evidence: falseまたは同等の明記があるhuman_review_requiredの意味が protocol の人間確認ゲートと一致しているAllowed Paths 遵守
Schema Change Applicability
schema_changeplaytest-logの YAML テンプレートにautomationブロックを追加Safety Claim Matrix
N/A: テンプレートの更新であり、実行環境の安全境界には影響しません。
Notes