4.9 KiB
P9.2 Authoritative Battle Implementation Plan
Status:
ACTIVEActive step:P9.2-STEP-4 INTEGRATED_GATE_AND_H5Baseline:b43e73e439f786e59aefdd97f3ec6c9d76908b93Goal:docs/goals/PHASE9_2_AUTHORITATIVE_BATTLE_GOAL.mdContract:docs/runtime/PHASE9_2_AUTHORITATIVE_BATTLE_CONTRACT.mdProcess:docs/runtime/PLAN_DRIVEN_DEVELOPMENT_PROTOCOL.mdLedger:docs/reviews/PHASE9_GODOT_VERTICAL_SLICE_LEDGER.md
Player-Visible Stopping Point
P9.2 ends when the P9.1 final result can continue into one real horizontal automatic battle. The player sees both lines move, melee collide, rear roles act, HP change and one deterministic outcome. Pause, speed, inspect and legal retreat work through real touch. The result explains cause, survivors and next action.
Ordered Steps
| Step | Status | Player outcome | Verification | Commit boundary |
|---|---|---|---|---|
| P9.2-STEP-0 Contract and baseline | COMPLETE |
The next playable boundary and frozen scope are unambiguous. | Goal/contract/plan/checkpoint links; exact baseline; one active step. | Planning commit. |
| P9.2-STEP-1 Authoritative domain | COMPLETE |
One fixed encounter resolves movement, contact, profession actions, HP, victory/defeat/timeout and retreat identically from the same inputs. | ABG_P9_2_AUTHORITATIVE_BATTLE_DOMAIN_OK cases=93 actions=37; strict diagnostics zero; P9.1 foundation/full-session regressions pass. |
Pushed in cbf35d0. |
| P9.2-STEP-2 Horizontal battle runtime | COMPLETE |
The player enters from the P9.1 result and watches real state drive the battlefield and HUD. | ABG_P9_2_HORIZONTAL_BATTLE_RUNTIME_OK viewport=844x390 source=p9_1_result members=3 hp_import=true movement=true contact=true member_events=true enemy_events=true outcome=victory domain_bound=true; five native normal-render frames; strict diagnostics zero. |
Pushed in 2e2ed93; evidence in STEP_2_RUNTIME_EVIDENCE.md. |
| P9.2-STEP-3 Controls and result | COMPLETE |
Pause, 1x/2x, inspect and retreat are understandable; result gives cause/survivors/next. | ABG_P9_2_CONTROLS_RESULT_RUNTIME_OK touch=10 fallback=0 direct=0; four outcomes, five result lines, 12 layout fixtures and five normal frames pass strict-clean. |
Pushed in f4ced3f; evidence in STEP_3_CONTROLS_RESULT_EVIDENCE.md. |
| P9.2-STEP-4 Integrated gate and H5 | IN_PROGRESS |
Owner can play the complete new encounter through a stable private H5. | Five profiles, three layouts, accessibility, strict logs, normal recording, runtime-only export and remote checks. | Evidence/delivery closure, pushed. |
| P9.2-STEP-5 Owner review | PENDING |
Owner judges movement, causality, controls and retreat decision without coaching. | Owner observations and at most one bounded repair batch. | Final closure, pushed. |
Current Step Contract
P9.2-STEP-4 INTEGRATED_GATE_AND_H5
Owned files:
runtime/tests/p9_2/integrated_battle_runtime_test.gd
runtime/export_presets.cfg only if the existing runtime-only Web preset requires a source-bound repair
runtime/build/web-preview/<source>/ ignored export output
docs/runtime/p9_2/INTEGRATED_RUNTIME_EVIDENCE.md
docs/runtime/p9_2/H5_DELIVERY.md
Required acceptance:
- Normal, active, efficient, adversarial and returning profiles enter from the real P9.1 result, reach one P9.2 terminal and report explicit decision ticks.
- The integrated path uses parsed ScreenTouch for continuation and controls; fallback/direct callbacks remain zero for the claimed player path.
- Pause, speed, inspect, continue/retreat counterfactuals and result navigation retain deterministic domain outcomes and bounded no-decision intervals.
844x390,1280x720and390x844, zh_CN/English, 130% text, reduced motion, mute and low-power fixtures pass without changing battle authority.- One normal-render
844x390recording and representative states pass strict diagnostics and supporting agent visual review. - A fresh runtime-only Web export is bound to the accepted source, excludes tests/docs/evidence, and is published through the existing private Gallery workflow with byte identity, MIME/CSP/health and bounded browser checks.
Issue Register
| ID | Status | Boundary | Disposition |
|---|---|---|---|
| P92-I01 | OPEN |
P9.1 battles are deterministic presentation fixtures rather than a reusable authoritative combat loop. | Step 1 builds an isolated P9.2 domain without rewriting P9.1. |
| P92-I02 | OPEN |
Existing product authorities contain later full-game casualty/save rules beyond this milestone. | P9.2 freezes permanent settlement and records only run-local survivors. |
| P92-I03 | OPEN |
P9.1 H5 cold start is multi-minute. | Do not optimize until Step 4; gameplay source remains the current priority. |
Stopping Rule
Finish one step, run its checks, commit and push before changing the next step to
IN_PROGRESS. A failure keeps the same step active. P9.3 casualty/recovery/save
does not begin inside this plan.