Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#2702"
goal_ref: "M6 HYP-001-ace-intervention のfinal integrated acceptanceを取得し、developer-self playtest evidenceを含めてparent #2702にHYP_001_ACE_INTERVENTION_ACCEPTANCE_V1をPASSまたはpendingで記録する"
change_kind: workflow
execution_kind: evidence_only
pr_required: false
dedupe_key: "m6-final-integrated-ace-intervention-acceptance:v1"Parent Issue
(導入: M6 Ace Intervention 実装 parent tracker)
Parent Goal Ref
- Goal:
docs/product/playable-roadmap.mdの M6 section とdocs/product/game-thesis.mdのHYP-001-ace-interventionを authority とし、M5 completion → M6 phase materialization → pre-landed M6 capability/spec reconciliation → current-main causal baseline → observed blocker only remediation → final HYP-001 integrated acceptanceの順序で M6 を完了させる。 - Desired Destination:
HYP-001-ace-interventionの integrated acceptance が evidence-only child issue で PASS 判定され、本 parent(導入: M6 Ace Intervention 実装 parent tracker #2702)がchild-completeとして close 可能な最終条件が満たされる状態。
Current Validated Scope
- 本 Issue は C3(実装: M6 current-main Ace Intervention causal baselineを取得する #2705「実装: M6 current-main Ace Intervention causal baselineを取得する」)が CLOSED であり、かつ 実装: M6 current-main Ace Intervention causal baselineを取得する #2705 実行時に materialize された全 conditional remediation child(C4、該当する場合)が CLOSED であることを確認してから実行する(Blocked By 実装: M6 current-main Ace Intervention causal baselineを取得する #2705)。
- 実装: M6 current-main Ace Intervention causal baselineを取得する #2705 の causal baseline(AC2〜AC8)は automation で検証可能な範囲(ally semi-autonomy、command intent 上限、causal evidence log、player agency 非置換、M5 regression 有無、canonical gates)を扱う。本 Issue はその automation baseline を再確認した上で、実装: M6 current-main Ace Intervention causal baselineを取得する #2705 の責務外である human 評価(developer-self playtest、self-explanation test)を追加し、final acceptance として統合する。
- 本 Issue は repository diff / PR を作成しない(evidence-only)。ally/assist_player runtime のコード変更は行わない。
docs/product/playtest-protocol.md(status: draft)が developer-self playtest の正規手順。本プロジェクトは外部テスター非募集で、主担当 developer によるセルフプレイテストのみを acceptance evidence として扱う。docs/product/playtest-sessions/の naming convention(PT-YYYYMMDD-NNN-<short-slug>.md)に従い、本 Issue 実行時に developer-self session record を新規作成する場合がある。
Remaining Parent Gaps
- HYP-001 developer-self 3〜5 sortie playtest evidence(self-explanation test)が未取得。本 Issue の責務。
-
HYP_001_ACE_INTERVENTION_ACCEPTANCE_V1の parent (導入: M6 Ace Intervention 実装 parent tracker #2702) への最終記録が未実施。 - developer-self evidence が未実施の場合の
pendingdisposition と false-green 回避契約(下記 Out of Scope / Acceptance Criteria 参照)。
Outcome
exact current-main SHA に束縛した状態で、C3(#2705)の automation causal baseline を再確認し、それに加えて developer-self 3〜5 sortie playtest(HYP-001 self-explanation test を含む)を実施・記録した上で、HYP_001_ACE_INTERVENTION_ACCEPTANCE_V1 schema の Issue comment を parent(#2702)に投稿する。developer-self evidence が実施済みで concrete blocker がなければ result: pass を、developer-self evidence が未実施であれば result: pending(false-green な PASS にしない)を記録し、HYP-001 が invalidate されたと判断される場合は本 Issue 内で direct implementation に進まず、Spec Delta issue へ委譲する契約を明記した状態にする。
Background
- M6 close_conditions の正本は
docs/product/playable-roadmap.mdM6 section。 HYP-001-ace-interventionの正本はdocs/product/game-thesis.md(status: accepted)。validation_methodは自発的な self-explanation test(「何が戦況を変えたと思うか」を誘導なしに語ってもらい、自発的に「自分の介入のおかげ」と言えるかを記録する)と時間制約下のエンゲージメント観察。- capability 監査により、M6 close_conditions 10 項目中 7 項目は既に current main で実装済み(ally archetype、semi-autonomous behavior、command intent buffer、causal evidence log、player agency 設計、M5 regression 監視、canonical quality/runtime gates)。genuine gap は 3 点: (1) feature spec の draft → accepted 昇格未了(実装: M6 ally/NPC/assist_player feature specをcurrent mainへreconcileしimplementation authorityを確立する #2704 の責務)、(2) HYP-001 developer-self playtest 未実施(本 Issue の責務)、(3) Spec Delta gate 未到達(playtest 未実施のため到達不能)。
docs/dev/product-spec-lifecycle.mdとdocs/product/game-thesis.mdの双方が「design hypothesis invalidated は Spec Delta issue が implementation task に先行して必須」と明文化(ADR 0002 準拠)。invalidated と判断された場合、本 Issue はそのまま ally/assist_player runtime へ direct implementation を進めず、Spec Delta issue(新規 follow-up)を起票してから初めて実装検討に入る。docs/product/playtest-protocol.md(status: draft)は developer-self playtest を正規手順とし、browser_automation/ai_simulationは fun・介入感・HYP-001 の主観評価の代替にしないと定める(playtest-log.mdのai_result_is_ux_evidence: falsepolicy)。- M5 precedent(検証: M5 Workstream 4 final integrated playable-slice acceptance #2600「検証: M5 Workstream 4 final integrated playable-slice acceptance」)の final integrated acceptance の運用(exact SHA binding、evidence-only、
result: pending/failを許容し false-green にしない、observed blocker があれば narrow remediation child へ分離)を踏襲する。
In Scope
- C3(実装: M6 current-main Ace Intervention causal baselineを取得する #2705)が CLOSED であること、および 実装: M6 current-main Ace Intervention causal baselineを取得する #2705 実行時に materialize された全 conditional remediation child(C4、該当する場合)が CLOSED であることを確認してから実行を開始する。
- 実行開始時に GitHub live ref API から current-main の exact SHA を
acceptance_start_shaとして取得・固定する。 acceptance_start_sha上で player-facing normal runtime の通常プレイ確認を実施する(debug UI / storage 手編集 / test-only seed に依存しない)。- ally_basic / semi-autonomous behavior の動作確認を実施する(
src/systems/AllyBehaviorSystem.tsの runtime 挙動を player-facing UI から観測)。 assist_player1 intent boundary を確認する(CommandIntent = 'none' | 'assist_player'以外の intent が存在しないことを型定義・runtime 挙動の双方から確認)。- command 有無の causal difference を確認する(C3 / 実装: M6 current-main Ace Intervention causal baselineを取得する #2705 の evidence 記録を参照し、developer-self playtest 中の観測で補強する)。
- M5 regression absence を canonical test suite 結果から確認する。
- canonical quality/runtime gates(
pnpm typecheck/pnpm lint/pnpm test/pnpm build)をacceptance_start_sha上で実行し PASS を記録する。 - developer-self 3〜5 sortie playtest を実施し、session record として記録する。記録先は 実装: M6 final integrated Ace Intervention acceptanceを取得する #2707 Issue comment を canonical developer-self session evidence とする軽量 lane を第一候補とする。 repo asset として session file を残す必要が明確な場合(例: 長期的な再利用価値がある、または別 Issue から参照される見込みが明確)に限り、
docs/product/playtest-sessions/の naming convention に従うファイル(例:PT-<YYYYMMDD>-<NNN>-m6-ace-intervention-developer-self.md)を作成する small docs diff/PR の別 lane を選択してもよい。未コミットの local file を durable acceptance evidence として扱わない。実施主体は human developer であり、automation では代替しない。 - HYP-001 self-explanation test の evaluation を記録する(
docs/product/game-thesis.mdのvalidation_methodに従い、誘導なしにプレイヤー自身が「何が戦況を変えたと思うか」を語った内容と、自発的に「自分の介入のおかげ」と言えたかを記録する)。production default の assist TTL(現行 8 ticks 相当)と player-facing perceptibility を本 sortie playtest の重点観測項目とし、少なくとも (a) command input を自覚できたか、(b) world cue を知覚できたか、(c) ally の反応を command の結果として知覚できたか、(d) 自発的 self-explanation で介入と戦況変化を結び付けられたか、の4点を明示的に記録する。TTL 値自体は本 Issue 内で事前に speculative に変更しない。知覚できなかった場合は 導入: M6 Ace Intervention 実装 parent tracker #2702 の C4/Spec Delta routing に従って扱う(本 Issue は remediation の direct implementation には進まない)。 - player combat agency が ally AI に奪われていないという human observation を記録する(movement 命令なし・target scoring bias のみという設計が human 体験上も維持されているかの主観記録を含む)。
- HYP-001 が invalidate されたと判断される場合、本 Issue はそのまま direct implementation(ally/assist_player runtime 変更)に進まず、Spec Delta issue を起票して以後の実装判断をそちらへ委譲する契約を Issue comment に明記する。
- developer-self evidence(in-scope 9〜11)が本 Issue の実行時点で未実施の場合、
HYP_001_ACE_INTERVENTION_ACCEPTANCE_V1をresult: pendingとして parent(導入: M6 Ace Intervention 実装 parent tracker #2702)に記録し、false-green なresult: passにしない。pendingの場合は本 Issue を close せず、developer-self evidence 取得後に再実行して final disposition を確定する。 - 全条件が揃い concrete blocker がない場合、
HYP_001_ACE_INTERVENTION_ACCEPTANCE_V1(result: pass)を parent(導入: M6 Ace Intervention 実装 parent tracker #2702)の Issue comment として投稿する。
Out of Scope
browser_automation/ai_simulationを面白さ・介入感・HYP-001 の主観評価の代替にすること(禁止。docs/product/playtest-sessions/README.mdの Important Policies に従う)。- ally / assist_player の runtime 実装変更(evidence-only、Allowed Paths なし)。
- HYP-001 が invalidate された場合の direct remediation 実装そのもの(Spec Delta issue 起票までが本 Issue の責務。実装は Spec Delta issue 経由の follow-up)。
- 実装: M6 current-main Ace Intervention causal baselineを取得する #2705(C3)の automation causal baseline の再実施そのもの(本 Issue は 実装: M6 current-main Ace Intervention causal baselineを取得する #2705 の evidence を参照・再確認するのみで、重複した automation baseline 収集を主目的にしない)。
- feature spec(
unit-operations-and-npc-behavior.md)の draft → accepted 昇格判断(実装: M6 ally/NPC/assist_player feature specをcurrent mainへreconcileしimplementation authorityを確立する #2704 の責務)。
Runtime Verification Applicability
decision: immediate
reason: >-
本 child は M6 parent tracker(#2702)から HYP-001-ace-intervention の
final integrated acceptance(developer-self playtest evidence を含む)
取得を委譲された execution owner であるため。
applicable_acs: [AC2, AC3, AC4, AC5, AC6, AC7, AC8, AC9, AC10]
execution_environment: >-
既存 canonical quality/runtime gates(pnpm typecheck/lint/test/build)を
`acceptance_start_sha` 上で実行する。developer-self playtest は human
developer による player-facing runtime での手動実施であり、新しい
harness / validator は追加しない。
skip_conditions: >-
C3(#2705)または materialize された conditional remediation child
(C4、該当する場合)が CLOSED でない場合は本 Issue の実行を開始しない
(blocked のまま維持し、PASS 扱いにしない)。
fallback_policy: >-
developer-self evidence が取得できない場合は `result: pending` として
記録し、fallback として automation evidence のみで human 主観評価済み
の PASS を主張しない(fallback_success_is_pass: false)。
artifact_requirements: >-
exact acceptance_start_sha、canonical gate 実行結果、developer-self
playtest session record(`docs/product/playtest-sessions/` 配下)、
HYP-001 self-explanation test の記録内容、
HYP_001_ACE_INTERVENTION_ACCEPTANCE_V1 evidence YAML を Issue comment
に記録する。repository artifact diff、PR は作成しない
(playtest session record ファイルの新規作成のみ例外的に許容する)。Acceptance Criteria
- AC1: C3(実装: M6 current-main Ace Intervention causal baselineを取得する #2705)が CLOSED であること、および 実装: M6 current-main Ace Intervention causal baselineを取得する #2705 実行時に materialize された全 conditional remediation child(C4、該当する場合)が CLOSED であることを確認してから実行を開始したことが記録されている。
- AC2: GitHub live ref から取得した実行開始時点の exact current-main SHA(
acceptance_start_sha)が記録されている。 - AC3: player-facing normal runtime での通常プレイ確認が記録されている(debug UI / storage 手編集 / test-only seed に依存しない)。
- AC4: ally_basic / semi-autonomous behavior の動作確認が記録されている。
- AC5:
assist_player1 intent boundary('assist_player'以外の intent が存在しないこと)が型定義・runtime 挙動の双方から確認され記録されている。 - AC6: command 有無の causal difference が C3(実装: M6 current-main Ace Intervention causal baselineを取得する #2705)の evidence 記録参照と developer-self playtest 中の観測から確認され記録されている。
- AC7: M5 regression absence が canonical test suite 結果から確認され記録されている。
- AC8:
pnpm typecheck/pnpm lint/pnpm test/pnpm buildがacceptance_start_sha上で PASS し、それぞれの exit code が記録されている。 - AC9: developer-self 3〜5 sortie playtest が実施され、session record が記録されている。記録先は 実装: M6 final integrated Ace Intervention acceptanceを取得する #2707 Issue comment(軽量 lane、第一候補)または
docs/product/playtest-sessions/配下の session record ファイル(repo asset として残す必要が明確な場合の別 lane)のいずれかであり、選択した lane が明記されている。実施主体が human developer であることが明記されている。実施できていない場合は「実施できていない」こととpendingdisposition が明記されている。 - AC10: HYP-001 self-explanation test の evaluation(
docs/product/game-thesis.mdのvalidation_methodに従う観測記録)と、player combat agency が ally AI に奪われていないという human observation が記録されている。assist TTL の player-facing perceptibility(command input 自覚・world cue 知覚・ally 反応知覚・自発的 self-explanation の4点)が明示的に記録されている。 - AC11: developer-self evidence(AC9・AC10)が未実施の場合は
HYP_001_ACE_INTERVENTION_ACCEPTANCE_V1をresult: pendingとして記録し、result: passを主張しない契約が本 Issue 本文および実行時記録の双方に明記されている。 - AC12: HYP-001 が invalidate されたと判断される場合、本 Issue が direct implementation に進まず Spec Delta issue を起票して以後の実装判断を委譲する契約が明記されている。
- AC13: 全条件が揃い concrete blocker がない場合、
HYP_001_ACE_INTERVENTION_ACCEPTANCE_V1(result: pass)が parent(導入: M6 Ace Intervention 実装 parent tracker #2702)の Issue comment として投稿されている。
Verification Commands
# AC1
$ gh issue view 2705 --repo squne121/loop-protocol --json state -q .state
# AC2
$ gh api repos/squne121/loop-protocol/git/refs/heads/main --jq .object.sha
# AC2
$ git rev-parse HEAD
# AC4
$ test -f src/systems/AllyBehaviorSystem.ts
# AC5
$ test -f src/state/GameState.ts
# AC6
$ test -f src/playtest/assistPlayerEventLog.ts
# AC3
# AC7
# AC8
$ pnpm typecheck
# AC3
# AC7
# AC8
$ pnpm lint
# AC3
# AC7
# AC8
$ pnpm test
# AC3
# AC7
# AC8
$ pnpm build
# AC9
$ test -n "$(find docs/product/playtest-sessions -maxdepth 1 -name 'PT-*-m6-ace-intervention-developer-self.md')"
# AC10
# AC11
# AC12
# AC13
# preflight-scope: runtime_only
$ gh issue view 2702 --repo squne121/loop-protocol --json number -q .numberAC2 は2つのコマンドの出力が一致すること(HEAD == live_main_sha、acceptance_start_sha として固定)を PASS 条件とする。実行開始時に取得した GitHub live main SHA と、実行時の git rev-parse HEAD が一致しない場合、stale worktree/branch として扱い acceptance evidence を記録しない。
developer-self playtest evidence(AC9・AC10)と Spec Delta 委譲契約(AC12)、最終 acceptance comment(AC13)は、上記 shell コマンドの追加のみでは充足せず、本 Issue の runtime playtest・live readback・Issue comment 投稿を通じて確認する。pending disposition(AC11)の場合、AC9 の find コマンドは 0 件(該当ファイルなし)を返しうるが、これは AC11 の pending 記録を伴う限り Stop Condition ではない。
Allowed Paths
- none(evidence-only)。
- 例外として、developer-self playtest session record を新規作成する場合に限り
docs/product/playtest-sessions/PT-*-m6-ace-intervention-developer-self.md(新規ファイルのみ)を許容する。既存 session record ファイルの変更は行わない。 - ally/assist_player の runtime 実装変更は行わない(Out of Scope 参照)。
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)。ただし、HYP-001 invalidate 判定に伴う Spec Delta issue の起票提案、および baseline/final acceptance で観測された concrete blocker に伴う narrow remediation child 候補の提案は例外として許可する(この Issue 自体がそれらを事前作成することはない)。
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- C3(実装: M6 current-main Ace Intervention causal baselineを取得する #2705)または materialize された conditional remediation child が未 CLOSED の場合
- developer-self playtest(human developer による実施)が利用できず、genuine な self-explanation evidence を取得できない場合(この場合は
result: pendingとして記録し、Issue を open のまま保持する。fail 扱いにも false-green な pass 扱いにもしない) - secrets / credential の取得・露出・変更が必要になる
- destructive operation が必要になる
Required Skills
なし
Required Design References
- docs/product/game-thesis.md#HYP-001-ace-intervention
- docs/product/playable-roadmap.md
- docs/product/playtest-protocol.md
- docs/product/playtest-sessions/README.md
- docs/dev/product-spec-lifecycle.md
- docs/dev/runtime-verification-policy.md
Scope Delta(任意)
N/A
Activity