## Machine-Readable Contract ```yaml contract_schema_version: v1 issue_kind: implementation parent_issue: none goal_ref: "playtest-log の機械可読なバリデーションの実現" change_kind: mixed ``` ## Parent Issue none ## Parent Goal Ref - Goal: プレイテストログの整合性を自動検証可能にする - Desired Destination: docs/schemas/playtest-log.schema.json ## Current Validated Scope - `docs/schemas/playtest-log.schema.json` の作成 - playtest log のスキーマ準拠を検証する validator の実装 ## Remaining Parent Gaps - CI への組み込み(別 Issue) ## Outcome `docs/schemas/playtest-log.schema.json` が存在し、それを用いてプレイテストログを検証できる validator またはテストが実装されている状態。 ## In Scope - `docs/schemas/playtest-log.schema.json` の定義 - スキーマバリデーションを実行するスクリプトまたはテストの追加 ## Out of Scope - ログ収集基盤の構築 - telemetry 送信実装 ## Acceptance Criteria - [ ] AC1: `docs/schemas/playtest-log.schema.json` が作成されている - [ ] AC2: 正常なログファイルがバリデーションを通過する - [ ] AC3: スキーマ違反があるログファイルがバリデーションで失敗する ## Verification Commands ```bash # AC1 ls docs/schemas/playtest-log.schema.json # AC2 pnpm test # AC3 pnpm test ``` ## Allowed Paths - docs/schemas/playtest-log.schema.json - scripts/ - tests/ ## Stop Conditions - Allowed Paths 外の変更が必要と判明した場合 - In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合 - 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合) - 後続 Phase / 別スコープへの波及が判明した場合 - nested SubAgent delegation が必要になった場合 - 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合 ## Required Skills - JSON Schema - TypeScript ## Scope Delta(任意) N/A ## Source - dedupe_key: "follow-up:squne121/loop-protocol:pr/418:json-schema-validator"
Activity