Phase C1 of the release-readiness roadmap. Found and fixed a genuine release
blocker: Godot runtime scripts loaded content/rules/text from res://../data/,
which resolves in the editor but NOT in an export (packed res:// has no parent),
so a shipped game would fail on first load.
- Copied the 6 runtime JSON files into p2_godot_sample/data/ and redirected
launch_content.gd, ui_text.gd, profile_store.gd, battle_sim.gd and
battle_scene.gd to res://data/... . The repository root data/ stays the
authoritative source for the Python validators; frozen_fixture.gd (test-only
source-provenance checks) keeps its res://../ paths.
- Added tools/check_runtime_data_bundle.py: SHA-256 proves each bundled copy is
byte-identical to the authoritative one, so runtime data cannot drift from
validated data. Registered as a gate in run_p2_checks.sh.
- End-to-end proof: exported a Linux/X11 PCK with an include_filter for
data/*.json, mounted it with --main-pack, and asserted all 6 data files plus
the main scene exist under res:// (PCK_RESULT PASS). This verifies the fix in
a real packed artifact, not just source.
- Added a minimal Linux/X11 export_presets.cfg for local smoke exports. It is
NOT a signed/release artifact; build/ is gitignored so no binary is committed.
Full gate P2_CHECKS_PASS with the new gate. Roadmap 47 records the remaining
publisher-owned steps (owner-chosen Bundle ID / team / signing, archive, upload,
store review) and the pre-release cleanup item (exclude *_test.gd from exports).
Bundle ID, product name and business model are owner decisions (NAMING.md is
undecided) and were not invented here. prototype/ stays untracked and untouched.
The 6/10/1/10 content was frozen in the data pack but never reached a running
game. This adds the full chapter and the shell that makes it playable.
Content. tools/build_launch_content.py turns the data pack's relative enemy
stats into data/mvp_launch_content.json with explicit per-node HP scales and
wave composition. The simulator accepts per-scenario enemy specs and an HP
scale; P2 scenarios carry neither, so the 300-result parity gate still passes.
Progression. ProfileStore owns the durable profile (schema 2, atomic write,
corrupt fallback, claim-once). GameRoot routes skyport -> map -> battle ->
result -> map. Only recruited heroes contribute roster DPS, so unlocking H04
at node 2 and spending gold on upgrades actually make the next battle stronger
-- the core CH fantasy that was missing when every hero counted from the start.
Three real defects surfaced while testing the loop and were fixed: P3a nodes
fell back to N01's reward id (so a second clear was silently de-duplicated),
the visible-roster set ignored unlocks, and the test itself read duration from
the live state where only the result document has that field.
tools/run_p2_checks.sh now runs 14 gates; all pass. P3a loop test drives two
nodes, reward, unlock and save/reload. The capture matrix includes the skyport
and map pages. Open gates remain the real-device and human ones.