Files
windroost/PRODUCTION/H10-H54-RUNTIME-ADAPTER-CANDIDATE.md
T
wushenghua b241fd7441 feat(full-game): source-pinned H10-H54 world runtime adapter candidate
World-only rules/art overlay with frozen H01-H06 parity; provenance fields merged into training rows; 12-config real ScreenTouch probe with source SHA binding and replay manifest.
2026-11-29 11:16:22 +08:00

3.3 KiB
Raw Blame History

H10-H54 source-pinned runtime adapter — local candidate

Scope

World-mode only. H01-H06 stay byte-for-byte owned by mvp_battle_rules.json; H07-H54 come from the source-pinned full_game_battle_rules.json overlay; H55+ stays Pending (absent from the overlay, no generated fallback). No unlock, zone, reward or reward-currency rule is changed. The launch slice and paper/runtime parity route are untouched because the overlay is opt-in through _present_battle only when _world_mode is active.

Source changes

File Change
p2_godot_sample/scripts/game_root.gd Provenance fields (source_hero, prototype_source, signature) now travel with the overlay values in _training_hero_row; shared _load_full_game_battle_rules() / _world_battle_overlay(); _present_battle opts into the world battle overlay and art binding before setup(); explicit test hooks only forward to production paths.
p2_godot_sample/scripts/battle_scene.gd set_world_battle_rules() merges only absent H07-H54 hero rows into sim rules (never overwrites frozen H01-H06); set_world_art_binding() adds missing full-game enemies/bosses art ids on top of the frozen mvp binding so world enemies get a real hit area.
p2_godot_sample/scripts/full_game_overlay_touch_test.gd + run_full_game_overlay_touch_test.sh 12-config (360/390/430 × zh_CN/en_US × normal/reduced) real Input.parse_input_event(InputEventScreenTouch) probe, source SHA + pinned data SHA-256, strict log audit, watchdog and replay manifest.

Gates (12-config run, source revision bound by runner)

  • Strict editor import: exit 0; no SCRIPT ERROR / Parse Error / resource / ObjectDB findings.
  • FULL_GAME_OVERLAY_TOUCH_PASS configs=12 real ScreenTouch training+battle+skill, exit 0, 0 problems.
  • Training: overlay accessor fields (incl. provenance) verified per config; H55 Pending; frozen H01 DPS unchanged; real ScreenTouch on the in-viewport skyport action changes gold.
  • Battle: rules.heroes = 54 (6 frozen + 48 overlay), H55 absent, all six frozen rows byte-identical to P2BattleSim.load_rules(); roster_dps=54.0, signature_dps=22.0 from the H07/H10/H11/H12/H54 fixture.
  • Combat touch: TapButton → tap_active, then a real touch on enemy_hit_center → click_enemy; no direct callback or injected sim input.
  • Runner does not advance the sim before the touch: the single N01 enemy dies on the first tick and finished=true freezes manual input.

Evidence

/private/tmp/opencode/h10-h54-adapter-candidate-v4/ — strict_import.log, overlay_touch.log, runner_console.log, touch/full_game_overlay_touch.json, touch/run_manifest.json (source SHA, sha256/bytes/inode/mtime, PID, timeout, invocation, gate). Pre-fix failures kept in /private/tmp/opencode/h10-h54-adapter-87ea67c/ and ...-candidate-v2/ / ...-candidate-v3/; none were reclassified as success.

Boundaries

automated_verified + runtime_verified(input/render). No claim of human understanding, fun, physical-device behavior, signing, store submission or release acceptance. 93859b3 was not inherited wholesale (unrelated branch divergence); only the already-present source-pinned overlay data is consumed.

Single shortest next action

PMO reviews and accepts (or names a specific gate objection against) this local candidate. Owner physical-device and human-play acceptance remain separate.