Commit Graph
49 Commits
Author SHA1 Message Date
wushenghua 9da35bcbc5 feat: per-hero skill archetypes for all 54 heroes (stage B complete)
Continued PRODUCTION/51. Skills are now real, differentiated data for every
hero, built on stage-A effect primitives (no longer just name strings):

- skill_archetypes.py: 15 archetypes -> effect-primitive definitions, assigns
  each of 54 heroes 4 skills (a1/a2/passive/ultimate) by signature direction +
  origin, with per-hero value scales so all 54 combos are unique (ADR-008).
  Output data/hero_skills.json (symlinked into Godot project data/).
- hero_skill_loader.py / .gd: scales coefficient values by hero base DPS into
  runtime `skills`; parity 6 heroes python==gd.
- check_hero_skills.py PASS: 54 heroes/15 archetypes unique, py==gd, and 6
  signature heroes yield 6 distinct combat outcomes.
- REAL RUNTIME: game_root.gd injects skills like growth_modifiers on the live
  P3a node path. run_skill_runtime_ui_test.sh PASS in actual game_root ->
  battle_scene battle: H01 fires damage/debuff/buff/execute, H05 fires
  buff/summon/shield/cleanse -- completely distinct primitive sets.
- 2 new gates registered; full P2_CHECKS_PASS (72 gates), identity preserved.

This directly addresses "不能敷衍,各种系统不能全部都一样": each hero now
triggers its own real combat effects. Stages C-E (talent behaviour, edict rules,
enemy/boss mechanics) remain. prototype/ untracked.
2026-11-19 13:39:19 +08:00
wushenghua d3bb1d8773 audit: CH->Windroost gameplay reference audit (50 implemented, 3 deleted, 1 pending)
Added tools/fullgame/ch_reference_audit.py: for every gameplay dimension in
CF_TO_WINDROOST_SYSTEM_MATRIX.md, verify the corresponding Windroost
implementation via concrete code/data symbols (no claim without evidence).
Result: 50 dimensions implemented with evidence, 3 intentionally deleted
(free movement / grid chess / old UI-assets per design), 1 pending validation
(click combo — a talent behaviour label, not an independent system, matching
the known "talent behaviour is display-only" gap), 0 missing.

Registered as a full-gate step. P2_CHECKS_PASS. prototype/ untracked.
2026-11-19 11:58:11 +08:00
wushenghua e36e337af0 feat: complete new-sky decisions — unlock gate, edict shop, full preview (design 8.2/8.3)
Continued the active goal: close the four real gaps in the transcendence/new-sky
layer that the audit surfaced (prestige numbers were done, but the decisions
were not).

1. New-sky unlock gate: new_sky_unlock() in prestige.py/.gd (parity) requires
   completed_regions>=5 OR rift_layer>=50; chapter 1 only unlocks rebuild.
   The confirm_new_sky action re-checks the gate at the boundary (refuses and
   changes nothing while locked). Added rift_layer profile field + normalize +
   reset on new sky.
2. Edict purchase economy: sky marks buy the 9 wind edicts; edict_cost() is
   deterministic and escalating (D01=5 .. D09=29, parity-tested). buy_edict()
   debits marks, sets ownership, rejects duplicates / insufficient balance,
   never goes negative, no real-money path. Skyport 风之律令 shop modal lists
   all 9 with cost + rule description + buy/owned/disabled states.
3. Full decision preview (design 8.3): the modal now shows both gains, unlock
   progress (region x/5, rift x/50), an estimated time-back-to-node (paper
   pacing 1.9s/node, labelled as an estimate), the chosen oath's resource
   direction, retained items, and a shop entry — so no forced blind prestige.
4. Tests: extended check_prestige_parity with unlock/buy/ETA cases; new
   prestige_decision_ui_test drives gate/shop/preview/reset through the real
   shell. Registered in full gate.

Also fixed modal top inset (14->24) so long shop titles no longer clip into
the golden frame. Re-captured affected store (16) and UI screenshots.

All gates pass; P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 18:27:42 +08:00
wushenghua 682404f7f6 content: 167 unique record texts + QA (L5 polish)
Continued FULL_GAME_GOAL. Records were template placeholders (A001 + category).
- record_text.py: 5 concrete milestone wordings per category x 9 categories,
  cycled with order so all 167 records get a distinct zh/en title + description
  (334 keys per locale), merged into ui_text and bundled runtime data.
- Side records tab now shows the real title/description instead of an ID.
- content_qa enforces all 167 records have non-empty title+desc in both locales
  and that en_US contains no Chinese.

All gates pass; P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 17:36:26 +08:00
wushenghua 0f8cf1f2a9 balance: full-cycle five-profile pacing over 600 nodes (L6)
Continued FULL_GAME_GOAL. The five pacing profiles only covered the 10-node
slice, so full-game pacing/bottlenecks were never proven.

- cycle_pacing.py drives all 5 regions / 60 chapters / 480 combat nodes through
  the deterministic paper runner with the authoritative growth engine injected
  (levels/stars/talents/gear/relics/prestige direction). Records explicit
  decision timestamps for first boss, rebuild unlock, first rebuild, region
  clears, new sky and endgame, plus failures and bounded offline payout.
- check_cycle_pacing gate enforces all milestones present and ordered, no
  unbounded no-decision gaps, rebuild+new-sky exercised, and genuinely different
  profile outcomes (active 908s vs adversarial 2432s who hoards gold).
- returning profile now has a capped offline payout + offline_claim decision.

All gates pass; P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 17:34:02 +08:00
wushenghua bce8c776df feat: prestige direction + choice counterfactual (L2/L6)
Continued FULL_GAME_GOAL. Oaths/edicts were plain +X% multipliers, so post-
prestige cycles were not strategically different. Design CONTENT_PLAN 9/10
requires each to change a resource/rule, not a global damage multiplier.

- 26 oaths rebuilt as 5 direction groups; 9 edicts each change one resource/
  rule bucket. prestige_direction.py/.gd dual engines (parity) map active
  oaths/edicts to growth buckets. Full-game path uses direction (slice keeps
  the flat fallback) via GrowthModifiers.compute_full_game.
- check_prestige_direction_parity gate: 4 valid 2-3 oath combos yield distinct
  strategy vectors, single/4-oath combos rejected, and the SAME battle scenario
  gives different outcomes for attack vs defence builds (real counterfactual).
  prestige_direction_ui_test proves the shell produces different growth vectors
  and that next-cycle investment changes the build on top of direction.
- oaths only eased content IDs; names/buckets/themes now authored; pack QA green.

All gates pass; P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 17:29:47 +08:00
wushenghua 482c2013b0 feat: hero detail + gear system + loadout UI (L5 new pages)
Continued FULL_GAME_GOAL. Closed the new-pages gap and wired the authored gear
numbers into combat (gear previously had no runtime effect at all).

- Regenerated gear as 20 families x 6 slots (weapon/head/chest/gloves/trinket/
  boots) with real stat bucket, signature answered and recommended scene, per
  CONTENT_PLAN 7.1 (was all 120 mislabelled "weapon").
- growth.py / growth_modifiers.gd gained a gear layer: equipped items' authored
  stat_value feed roster/signature/click/storm; parity gate extended to gear.
- gear_actions.py/.gd dual engines (parity): node clears drop fixed gear, owned
  gear can be equipped per slot, wrong/unowned gear rejected. Drops wired into
  both slice and world victories; rebuild/new-sky clear gear + equipped.
- Skyport 英雄与装备 page: hero selector, authored detail (signature + 4
  structured talents with behaviour), 6 gear slots with equip/unequip.
  loadout_ui_test proves drop->equip->growth change and rebuild reset.
- Settings page now uses a STOP ScrollContainer like the other pages (was
  clipping on short viewports).

All gates pass; P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 17:20:22 +08:00
wushenghua 931cbc2217 feat: low-frequency interactions runtime + UI (L5 complete)
Continued FULL_GAME_GOAL. Closed the last L5 gap: design 11.4's five occasional
interactions existed only as text, so none were playable.

- low_freq.py / low_freq.gd dual engines (parity over 3 profile tiers): wind
  echo (every 6 wins), supply buoy (5-tap minigame, no failure), company crate
  (every 10 nodes + pity), commission (every 2 chapters, no miss penalty),
  journal (chapter lore + return rewards). All counter-driven — no wall clock,
  no daily pressure, never interrupts combat.
- Side page gained a 4th 偶遇 tab; claims/taps route through the real engines
  and persist. Added `buoy` profile field with normalized bounds.
- interactions_ui_test drives all five through real hooks; parity + UI tests
  registered in the full gate. Regenerated-artifact ignores added.

All gates pass; P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 17:02:09 +08:00
wushenghua f1f2c31a94 feat: side systems runtime — partners/records/black market (L5 runtime)
Continued FULL_GAME_GOAL. The three side systems had authored content but no
runtime, so none of their numbers were actually used. Added a Python-authoritative
engine and a GDScript mirror (parity gate over 3 profile tiers) plus a real UI.

- 5 partners: tiered low-pressure tasks derived from play counters (distance,
  relics, records, wins, new skies), no combat and no failure penalty, claim
  once per tier for gold/crystal.
- 167 records: progress from play counters, stage rewards every third record,
  one-time claims, no miss penalty or daily streak; list shows claimable
  milestones and X/167 progress.
- 6 black-market offers: crystal-only purchases (relic/emblem/material/cosmetic/
  time/recovery), no pay-to-win; insufficient balance is a clean rejection.
- Skyport 旅团事务 page with three tabs; claims/purchases route through the
  real engines and persist. Added battle_wins/total_gold_earned/partner_claims/
  revive_charges/cosmetics profile fields with normalization, and victory now
  increments the win/earned counters in both slice and world flows.
- side_systems_ui_test drives tabs/claims/purchases/locale through real hooks;
  registered alongside parity in the full gate. Added p3a_side capture and
  ignored regenerated artifact files.

All gates pass incl. 25 UI captures; P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 16:36:17 +08:00
wushenghua d2904d6935 feat: full-game expedition world UI over 600 nodes (L3/L5 runtime)
Continued FULL_GAME_GOAL. The 600-node world existed as data+engine but the
playable map still used the 10-node slice. Added an additive world navigator
that leaves the proven slice loop untouched.

- Skyport entry -> 远征世界 page: 5 region tabs / 12 chapters / 10 nodes
  (two-column grids), lock rule order <= highest_node+1, node detail card and
  launch CTA placed above the lists so they are visible on 390x844.
- Launch runs a real WorldContent scenario through the shared battle shell
  with growth modifiers applied. Victory routes through battle_finished:
  grants gold/crystal once, advances highest_node, derives chapter/region/boss/
  final counters from the cleared set, accumulates prestige essence source;
  defeat returns to the world. zh/en labels incl. 60 chapter-theme translations.
- Fixed two real bugs uncovered while wiring: WorldContent's regions()/
  chapters()/nodes() did not initialise the lazy cache (first open rendered
  empty), and GameRoot paused the battle after setup with no resume, freezing
  real-time play at frame 0. Tests can still pause explicitly after start_node.
- world_map_ui_test drives navigation/lock/launch/win/locale through real UI
  hooks; registered in the full gate. Added a p3a_world capture shot and the
  regenerated-artifact ignore entries.

All gates pass incl. 24 UI captures; P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 16:15:59 +08:00
wushenghua 20f9a6b6c3 feat: prestige preview UI + progress persistence fix (L2/L5 runtime)
Continued FULL_GAME_GOAL runtime layer. Design 8.3 requires seeing gains before
committing to a prestige, but rebuild only had a plain confirm and new-sky had
no UI at all.

- Skyport "转生预览" button opens a modal showing both rebuild essence and
  new-sky marks, retained items, and next-cycle change; confirm actions call
  the real prestige engines. Added zh/en text keys, synced + bundle verified.
- prestige_ui_test drives the real button -> modal -> action -> apply path:
  rebuild resets gold/grants essence/retains stars; new-sky grants marks/resets
  essence. Registered as a full-gate step.
- Fixed a real persistence bug uncovered by the test: DEFAULT_PROFILE was
  missing 6 L2/L3 progress counters, so _normalize() (called on every
  save/load) silently dropped them. Rebuild wiped region progress -> new-sky
  marks computed to 0. Added the fields + numeric coercion in _normalize().

Both prestige runtime + UI tests pass; full P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 15:45:20 +08:00
wushenghua 7769a91f2c content: side systems — partners/records/black market (L5 content)
Continued FULL_GAME_GOAL. Generated the three side systems from design tables:
- 5 partners with real names/roles (navigator/smithy/recorder/healer/stargazer),
  combat=false per design (no second combat system).
- 167 records across 9 categories with exact design counts
  (25/30/24/20/18/15/10/15/10), stage-or-one-time rewards, no miss penalty.
- 6 black-market categories, crystal-only, pay_to_win=false.
- content_qa.py enforces all these rules; validate_content now covers 13 families.

Pack regenerated, FULL_CONTENT_PASS + CONTENT_QA_PASS, full P2_CHECKS_PASS.
Runtime logic/UI for side systems remains (noted in goal). prototype/ untracked.
2026-11-18 14:54:33 +08:00
wushenghua aa6c489153 content: structured talents + full event texts + QA enforcement (L4)
Continued FULL_GAME_GOAL. Closed two real content gaps found by auditing:
- Talents were bare skill-name labels, violating design "not all +10%, every
  hero >=2 behaviour-changing talents". Rebuilt all 245 with structured effects:
  slot purpose, behaviour hook, changes_behavior flag, stat + stat_value. Slots
  3 (skill) / 4 (ultimate) always change behaviour; every hero >=2.
- 60 events had text keys but no strings. Generated 480 real texts (title/body/
  2 choices × zh_CN/en_US) from chapter themes + 3 event archetypes, incl. full
  60-theme zh→en translations. Merged into ui_text tables + bundled data.
- content_qa.py now enforces both: behaviour-changing talent rule, and event
  text coverage in both locales with no Chinese leaking into en_US.
- growth.py talent_modifier accepts optional authored stat values (fallback to
  flat weights preserves slice + parity; full per-talent runtime wiring noted as
  a remaining integration gap in the goal, not faked).

All gates pass incl. full-game content QA; P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 14:49:21 +08:00
wushenghua 008a405b0b content: real enemy/boss names + content QA gate (L4 progress)
Continued FULL_GAME_GOAL. The grammar skeleton had placeholder enemy names
(敌族1·1). Replaced with the design's real content:
- tables.py: transcribed 25 enemy families (name + core mechanic) and 20 bosses
  (name + phase mechanics) from CONTENT_PLAN 4.2 / 5.
- generator now uses real names; enemy variants carry tier labels
  (普通/精英/装甲/异变) and 4 distinct weak tags; bosses carry mechanics and
  phase counts; node boss references resolve to named bosses.
- content_qa.py gate guards the design's anti-goal (no recolored content):
  adjacent-node variety, innovation rotation, unique named bosses with mechanics,
  variants covering 4 weak tags, no placeholder names. CONTENT_QA_PASS.

Honest boundary: talent effects / event text / partner records still need human
authoring (design requires >=2 behaviour-changing talents per hero) — pure
content-writing volume, flagged in the goal as an owner trade-off, not faked.

Full P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 14:13:42 +08:00
wushenghua c739060d52 feat: growth investment UI page wired to real actions (L1 UI)
Continued FULL_GAME_GOAL. The growth systems were mechanically complete but a
player had no way to use them. Added a full-screen growth page (PAGE_GROWTH):
- skyport "旅团成长" button + bottom-nav "旅团" entry;
- 6 hero cards with star upgrade + 4 talent slots, showing costs/owned state;
- glass panels over the live scene (matches the new visual language, not the
  form-like settings page);
- buttons call invest_talent/upgrade_star on GameRoot, which run the real actions
  and persist to profile.

growth_page_test verifies rows build for unlocked heroes and the UI-path call
invests + persists a talent. Added p3a_growth capture. Text keys zh/en added +
bundled data synced. Two regression bugs caught during dev: missing _record helper
and a non-executable runner script.

New gate registered; full P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 13:38:32 +08:00
wushenghua 50e671b0d5 feat: full-game content grammar foundation (L0 of FULL_GAME_GOAL)
Owner wants the complete game, not just the vertical slice. Wrote FULL_GAME_GOAL.md
as the authoritative layered plan (L0 data foundation -> L1 growth systems ->
L2 two-tier prestige -> L3 world structure -> L4 content production -> L5 side
systems/UI -> L6 balance -> L7 release).

L0 first milestone: a scalable content grammar that can produce the full design
ceiling, because 600 nodes cannot be hand-authored row by row.
- tools/fullgame/tables.py: design tables transcribed verbatim from
  FINAL_GAME_DESIGN.md / CONTENT_PLAN.md (54 hero names, 60 chapter themes,
  6 signatures, 9 origins, 10 node types, innovations).
- tools/fullgame/generate_content.py: deterministic generator producing all
  12 content families with stable IDs per CONTENT_PLAN 1.1. Counts match the
  design exactly: 54 heroes, 245 talents, 120 enemies, 20 bosses, 600 nodes,
  60 events, 120 gear, 60 relics, 26 oaths, 9 edicts, 167 records, 5 partners.
- tools/fullgame/validate_content.py: FULL_CONTENT gate — counts, ID grammar,
  unique IDs, reference resolution (node->enemy/boss, talent->hero, event->chapter),
  structure (5x12x10), no non-finite numbers. Caught and fixed a real enemy-variant
  reference bug during development.
- data/full_game_content.json generated and validated (FULL_CONTENT_PASS).

Honest scope note in the goal: this is a TEMPLATE-DRIVEN GRAMMAR SKELETON
(names/themes from design tables, deterministic stats), not hand-authored final
content. "Key heroes/bosses human-designed" is L4. The old 6/10/10 runtime slice
is untouched; this pack is the authoring source for the full-game build.

Registered as full gate step. P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 12:27:16 +08:00
wushenghua 7be6bb53e5 art: true 4-frame idle breathing for H02/H03/H04/H06
"Then what?" — audited the most-watched animation: idle. H02-H06 had only a
single idle frame with a procedural scale-tween, while H01 and enemies had real
4-frame idle. Frame review of real auto-battle confirmed H01's pose subtly
shifts while the tween-only heroes look flatter. Generated true 4-frame idle
breathing loops for H02/H03/H04/H06 via gpt-image-2.6 (identity-anchored,
custom-rect chroma key, pack at fps=8 loop), downloaded with curl --noproxy.

Quality gate on the processed frames: H02/H03/H04/H06 had 0-4 magenta-fringe
pixels (clean) and were integrated. H05's generation produced ~1267 pink-fringe
pixels from its purple robe + generator spill; integrating it would downgrade
color quality versus the working single-frame + breathing tween, so it was
REJECTED and honestly recorded in the ledger's rejected list. This is why H05
keeps its single-frame idle.

breathing_test now also asserts H02 idle loops through distinct frames (14
stages). Provenance for both attack and idle generations preserved per hero.
Full gate P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 12:09:10 +08:00
wushenghua ee29482155 art: give H05 and H06 real 4-frame attacks (all 6 heroes now animated)
"Then what?" — audited the hero roster and found H05 (orc shadow, unlocks N03)
and H06 (beast guide, unlocks N10) were still single-frame attack, the last two
gaps in "characters feel alive". Both genuinely appear in battle.

Generated both 4-pose attack strips via gpt-image-2.6 with each hero's approved
idle as identity anchor + layout guide (H05 twin-dagger slash, H06 beast-staff
slam), downloaded with curl --noproxy. chroma_key_atlas.py custom rects ->
pack_animation_strip.py -> 384x96 atlases, 96px cells, foot_y=84, fps=10.
Tasks task_vFYEgjvjcUm1qnQlotNqgQBXVi2pD4Ha / task_ldEt3LmJ9dwdpQpZ4VtrqduFxVICQdJ0.

Replaced single-frame sources; provenance saved under PRODUCTION/source/sprite_runs/
H05/ and H06/; ledger hashes updated. breathing_test extended to H05/H06 (13
stages, frames advance). All 6 heroes + enemies/boss now have real 4-frame
animation. Docs 48/49/RELEASE_GOAL updated.

Full gate P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 11:21:48 +08:00
wushenghua b976aca6dc art: give H04 (dwarf forgemaster) a real 4-frame attack animation
Owner said "you decide the feature". Chose H04 attack frames: H01/H02/H03
already had real 4-frame attacks, but H04 (the first hero recruited at N02)
was still a static single frame — the one visible gap in "characters feel
alive". In scope, no gameplay balance change, no owner decision needed.

- Generated a 4-pose hammer-smash strip via gpt-image-2.6 with H04's approved
  idle as identity anchor + 4-slot layout guide (task_jK8QMFpRiOlJ1VfklPKFdQ6ayuw0E2yL),
  downloaded with curl --noproxy. chroma_key_atlas.py with custom per-pose rects
  (uneven spacing) -> pack_animation_strip.py -> 384x96 atlas, 96px cells,
  foot_y=84, fps=10, matching H04's runtime format.
- Replaced the single-frame H04 attack source; provenance saved under
  PRODUCTION/source/sprite_runs/H04/run/; ledger hashes updated.
- breathing_test now covers H04 attack (9 stages, frames 0/1/2/3 advance);
  hero_frame_for_test probe confirmed the forced frame applies to the live
  battle unit (forced=true, frame=2); p3a_h04_attack capture added.
- Docs updated: 48/49/RELEASE_GOAL now say H02+H03+H04 done, enemies remain.

Full gate P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 05:22:23 +08:00
wushenghua b1238f4d8e art: give H03 (dragon mage) a real 4-frame attack animation
Continued Phase ASSET from RELEASE_GOAL.md using the proven H02 strip pipeline.

- Generated a 4-pose staff-cast strip via gpt-image-2.6 with H03's approved idle
  as identity anchor + 4-slot layout guide (task_GR7UULprR6kj7bT6I2X5j72qGcFrOxzF).
  The source came back 1536x1024 with poses at uneven x positions, so I used
  chroma_key_atlas.py with custom per-pose rects, then pack_animation_strip.py
  to a 384x96 atlas (96px cells, foot_y=84, fps=10) matching H03's runtime format.
- Replaced the single-frame H03 attack source; provenance saved under
  PRODUCTION/source/sprite_runs/H03/run/ (raw strip, frames, rects, prompt, task).
  Ledger updated with raw/runtime hashes.
- breathing_test now asserts H03 attack advances through distinct frames at
  runtime (8 stages pass); p3a_h03_attack_390_zh_CN.png shows the cast pose in
  a real battle (agent_visual_reviewed). Full gate P2_CHECKS_PASS.

Two of three starting heroes (H02, H03) now have real 4-frame attacks; H04 and
enemies remain single-frame (same pipeline, owner time/cost). prototype/ untracked.
2026-11-18 03:10:32 +08:00
wushenghua 7f1311bf87 art: give H02 a real 4-frame attack animation (image-gen pipeline)
Produced H02's first genuine multi-frame action animation via the established
H01 sprite pipeline, after the owner asked whether AI generation could make
characters feel more alive.

GIF route investigated first and rejected: the owner correctly diagnosed that
macOS system proxy (127.0.0.1:7897) caused the CDN download to truncate; with
curl --noproxy '*' the full file downloaded. But gpt-image-2.6-gif returned a
static 2x2 PNG with near-identical poses - worse than the existing breathing
tween for idle, so not adopted. Recorded in the ledger honestly.

Final method (reliable precedent): gpt-image-2.6 generated a 4-pose archer
strip (draw bow -> release -> recover) using H02's approved idle as identity
anchor and H01's 4-slot layout guide. chroma_key_atlas.py keyed magenta, split
4 frames and locked them to a shared foot line (y=747). pack_animation_strip.py
packed a 384x96 atlas at 96px cells, foot_y=84, fps=12 - byte-format identical
to H02's existing runtime atlas. Replaced the single-frame H02 attack source
(symlink resolves to the new atlas).

Provenance: raw strip, task manifest, 4 keyed frames and prompt saved under
PRODUCTION/source/sprite_runs/H02/run/; runtime manifest records task_id and
pipeline; generated_art_processing_ledger hashes updated.

Verification: breathing_test now asserts H02 attack advances through all 4
frames (0/1/2/3) at runtime (automated_verified); p3a_h02_attack_390_zh_CN.png
shows the hero in the drawn-bow pose in a real battle (agent_visual_reviewed).
Added a capture-only force_hero_attack_frame_for_test hook. Full gate
P2_CHECKS_PASS. prototype/ stays untracked and untouched.
2026-11-18 02:05:33 +08:00
wushenghua 08feec50db fix: enemy name plates show raw keys and wrong language
Found while inspecting the victory capture at reduced size: focal enemy name
plates displayed raw keys like [content.enemy.E-R1-F2-V1]. Two real bugs:

1. Only 3 of the 9 battle enemies had UI text keys; UiText.t returns "[key]"
   on a miss. Added the 5 missing names (zh_CN + en_US) sourced from the
   authoritative mvp_launch_content.json (Bandit Scout, Stone Golem, Goblin
   Bomber, Storm Sprite, Void Cultist). Added a HUD guard so any future miss
   falls back to the bare content id instead of a bracketed raw key.

2. GameRoot._start_active_wave hardcoded _battle.setup("zh_CN", ...); setup()
   uses that to reset the HUD locale, so English players saw Chinese enemy
   names in battle. Pass the shell locale instead.

enemy_name_test.gd (12 plates across 3 nodes x 2 locales) asserts no raw keys,
no empty names, and ASCII names under en_US. Registered as full-gate step
"enemy name plates". Added 360/430 victory captures for viewport coverage of
the new ribbon (visual check clean). Full gate P2_CHECKS_PASS, bundle sync PASS.
prototype/ stays untracked and untouched.
2026-11-18 01:19:12 +08:00
wushenghua b7d01c0463 art: add journey progress rail to the map (Phase A2)
Phase A2 of the release-readiness roadmap: the map now reads as a route instead
of ten identical rows. Added a "journey N/10" progress bar (anchor-ratio fill,
resolution independent) and a state-coloured step dot per node (cleared=mint,
current target=gold, locked=dim). Kept the existing node type grading from doc
46 and added no new currency. New text key in both locales.

event_and_roster_ui_test.gd gains a map case: fresh journey reads 0/10 with an
empty bar and 10 dots; clearing one node grows the bar to ratio 0.1 and turns
that node's dot mint (6 stages total). Full gate P2_CHECKS_PASS, log audit
clean. Visual verdict stays agent_visual_reviewed. prototype/ untouched.
2026-11-18 00:34:00 +08:00
wushenghua c0beb5370d feat: dedicated victory screen; fix battle modal z-order and raw-key dialog
Phase A1 of PRODUCTION/47 release-readiness roadmap. Owner asked to keep
optimizing toward a shippable state without stopping; a durable staged roadmap
now records honest stage (vertical slice), evidence levels, ranked gaps and
owner/device/release gates that cannot be passed locally.

Dedicated victory presentation (game_root.gd): full-node victory now shows a
chest ribbon "region · node N cleared", "expedition success", a rolling gold
number, a crystal chip, and a new-ally chip (e.g. H04 on N02), with a static
final value under reduced motion. Replaces the generic dialog that was reused
by every modal. New text keys in both locales.

Two real bugs found and fixed while capturing the real player path:
- battle_scene.gd showed its own result modal even with use_external_progress
  (GameRoot path), stacking an untranslated raw-key dialog on top of the
  celebration. It now only renders its own modal in stand-alone/debug runs.
- BattleScene HUD lives in a CanvasLayer (layer 0), which draws above plain
  Controls regardless of tree order, so GameRoot's victory/defeat/event modal
  was hidden behind the battle canvas during combat. GameRoot modals now live
  in a layer=10 CanvasLayer and render on top.

capture_runner.gd gains a real GameRoot victory shot (p3a_victory_390_zh_CN).
reward_celebration_test.gd now also asserts the region-clear ribbon and the
new-ally chip (5 stages). Full gate P2_CHECKS_PASS, log audit clean. Visual
verdict stays agent_visual_reviewed; appeal and feel remain a human gate.
prototype/ stays untracked and untouched.
2026-11-18 00:24:25 +08:00
wushenghua 8890c64fb8 art: de-form skyport and stage the event page
Continued the "make it feel like a game" direction with the next two items.
Evidence levels stay honest: the new UI structure is automated_verified, the
visual judgment is agent_visual_reviewed, and appeal/comfort remains a human
gate.

Skyport de-form (game_root.gd): the shared backdrop is brighter so the
floating-island scene is visible across all GameRoot pages (opaque gold panels
on map/settings are unaffected). The offline-report panel and hero rows use
translucent glass, and each hero row now carries a signature icon (breaker /
single / area / click / tempo / sustain), turning a text list into a readable
roster. Fixed a real layout bug found in review: the report Label and claim
Button were both MarginContainer children and stacked in the same rect, so the
button hid the text; they are now an explicit HBox. Bumped small helper text
from dim to body colour to stay readable on the brighter scene.

Event page (game_root.gd): the event modal gets a distinct banner (large
question icon + "Travel Event" mint tag) and each choice becomes a glass card
with a short imperative plus visual reward chips (coin +35 / crystal +1 vs
coin +70) so the trade-off is scannable without reading sentences. Data still
comes from the content gold/crystal values; missing short-label keys fall back
to the original label. _show_modal clears the banner so other modals stay
clean.

Added run_event_and_roster_ui_test.sh (registered in run_p2_checks.sh): proves
roster rows carry signature icons, the event banner is visible with an icon,
both choice cards show the right reward chips, and choosing scavenge still
resolves authoritatively (+70 gold, modal closes) through the new button path.
Full gate P2_CHECKS_PASS with clean logs. Doc 46 records the outcomes and the
still-open human/device gates. prototype/ remains untracked and untouched.
2026-11-17 23:51:34 +08:00
wushenghua b430ded18d art: immersive battle layout, reward celebration, idle breathing (1-2-3)
Implemented the three improvements the owner approved after reviewing the
screenshots. Kept the visual evidence levels honest: layout/reward/breathing
behaviour is automated_verified, the style judgment is agent_visual_reviewed,
and whether it is actually appealing/comfortable stays a human gate.

1 - immersive battle layout (battle_hud.gd, ui_theme.gd): the backdrop now
   covers the full screen instead of living only inside the stage; six HUD
   regions use a translucent UiTheme.glass_panel (dark + top border) instead
   of gold frames, and the stage drops its second background and frame to
   become a transparent interaction layer. Region coordinate contract is
   UNCHANGED (REFERENCE_RECTS intact, capture matrix green at 390/360/430,
   zh/en). Fixed a real parse error found during review: Side.TOP -> SIDE_TOP.

2 - reward celebration (game_root.gd): victory now runs a dedicated row with a
   coin icon, a number rolling from 0 to gold (0.6s ease-out) and an icon pop;
   reduced motion shows the final value immediately. Body copy changed to the
   new shell.victory.celebrate key so it does not duplicate the number. The
   capture runner drives BattleScene (old path), so reward_celebration_test.gd
   drives GameRoot's external-progress path - observed +2 -> +30 roll and a
   direct +30 under reduced motion.

3 - idle breathing (unit_view.gd): the 13 single-frame characters no longer
   look static. An eased looping 2.5% sprite squash starts on idle, stops on
   non-idle, resumes on return, and is disabled/reset under reduced motion with
   _exit_tree cleanup. Hero 0.82 node scale/modulate composes with the sprite
   tween without conflict.

Added two focused gates (run_breathing_test.sh, run_reward_celebration_test.sh)
registered in run_p2_checks.sh. breathing_test proves the tween actually runs
in the real configure-before-tree path (scale 1.0004 -> 1.0086), stops on
attack, resumes on idle, and respects reduced motion. Full gate P2_CHECKS_PASS
with clean log audit. Docs 44/46 record the outcomes, evidence levels and the
still-open human/device gates. prototype/ remains untracked and untouched.
2026-11-17 23:32:38 +08:00
wushenghua cd5d8d4db3 art: grade map nodes visually; verify GIF-to-frames route
Responded to "looks too plain / not like a game" with a concrete audit and a
bounded fix, plus an honest look at the GIF suggestion.

Visual judgment recorded in PRODUCTION/46: the current look is a CH-style dark
gold dashboard - clear but admin-panel-like. Map nodes were ten identical
gold boxes with no type distinction. Each node now carries a type icon (sword
/ shield / question / flag), a coloured type label with number (normal/elite/
event/boss), and a cleared state (mint + desaturated + disabled). An attempted
whole-row colour tint was rejected during review (PanelContainer stretched the
ColorRect across the row and hurt contrast); removed in favour of icon+label.

GIF: verified facts - the four GIFs in the repo are H01 QA previews only, zero
runtime use; runtime animation is sprite atlas + frame index, and 13 characters
have ONE frame per state, which is the real reason they look static. GIF is not
a game runtime format. The correct route (AI GIF as generation medium -> split
frames -> foot-aligned atlas -> runtime playback) was technically validated: a
text-only prompt failed E4003 (no charge); retrying with --image reference
succeeded and returned a valid H02 idle GIF matching the existing art style.
CDN download was too unstable/truncated to integrate, so this is recorded as a
verified-but-not-adopted route, not claimed as implemented.

tools/run_p2_checks.sh still passes all 27 gates with clean logs. Visual verdict
stays agent_visual_reviewed - whether the style is appealing and motion feels
good still needs the owner to look and play.
2026-11-17 20:39:33 +08:00
wushenghua 9c28902c83 art: upgrade UI frames and icons from AI style references
Owner chose option B (use AI-generated UI art) and reported the screen looked
too plain. Root cause: frames were flat 6px solid gold lines and resource icons
were generic glyphs (diamond/star).

Followed the two-stage boundary required by AGENTS.md: AI output is a STYLE
REFERENCE, never a runtime asset. gpt-image-2.6 produced a beveled panel frame
board and a 4x4 icon sheet on magenta (dry-run and credential preflight first,
task ids in the ledger). tools/derive_ui_from_references.py then redrew on an
exact low-res grid: 48x48 NinePatch frames with top/left highlight, bottom/
right shadow and corner notches; icons chroma-keyed, palette-quantized and
BOX-downsampled to 32x32 (16px lost too much detail).

check_ui_pixel_art.py enforces the boundary (exact logical size, <=12 colors,
transparent NinePatch corners, provenance status) and caught a real regression:
corner nubs drawn at (0,0) made corners opaque; fixed. Resource bar now uses
derived gold/crystal icons instead of text glyphs.

Normal-render captures show beveled frames and legible icons. 27 gates pass,
including parity, pacing, feedback, log audit and the full capture matrix.
PRODUCTION/45 records provenance and the honest limits: only 2 of 16 icons are
wired in, and human visual sign-off is still required (derived != final art).
2026-11-17 19:46:58 +08:00
wushenghua c4067b3b22 feat: complete reduced-motion and ScreenDrag coverage; fix unscrollable lists
Closed the remaining AGENTS.md accessibility/input checklist items that did
not conflict with the project's own HUD contract.

Reduced motion is a new persisted setting, distinct from low-power: VFX jump
to their final frame, unit sprites hold their frame, hit flashes are off and
damage numbers stay static. A headless test proves each behaviour and that the
setting reaches a live battle HUD.

ScreenDrag coverage builds a genuine ScreenTouch -> ScreenDrag x6 -> release
sequence through Input.parse_input_event. It exposed a real player-facing bug:
the skyport and map ScrollContainers used MOUSE_FILTER_PASS, so touch drags
fell through to the parent and the lists were unscrollable on a device. They
now use MOUSE_FILTER_STOP. Headless Godot cannot simulate real viewport GUI
dispatch, so the test verifies the filter configuration and the real event
sequence, and the report explicitly states that actual scroll movement needs
a device rather than claiming it was proven.

130% text is deliberately NOT implemented: BATTLE_HUD_HIGH_FIDELITY_SPEC.md
lines 12 and 86 fix the slice at 100% and forbid an enlarged-text test. Per
the workspace authority order the project contract wins over the generic
checklist; PRODUCTION/42 records this as an intentional, documented deviation.

tools/run_p2_checks.sh now runs 24 gates; all pass, including the log audit.
2026-11-17 15:39:47 +08:00
wushenghua d6b72043e4 feat: prove five pacing profiles and calibrate offline payout
AGENTS.md requires a milestone to prove five play profiles with explicit
decision timestamps. The chapter simulator previously had only passive/active.
tools/pacing_profiles.py now runs five genuinely different behaviours (normal,
active, efficient, adversarial, returning) and records per-node arrival times,
every decision timestamp, longest no-decision gap, active-input share,
failures and offline efficiency. data/pacing_profiles.json holds the evidence;
tools/check_pacing_profiles.py gates it; PRODUCTION/40 documents the results
and the honest findings.

The profiling exposed a real bug I introduced: the offline gold rate (0.02, a
value I had picked without a contract basis) paid 19008 gold for 8h, leveling
the first hero to Lv.17 when a normal clear ends at Lv.2-4. tools/tune_offline.py
scans rates; 0.001 pays 950 gold (~Lv.4) and keeps returning players in range.
The rate now lives in mvp_battle_rules.json progression and is read by both the
Godot ProfileStore and the Python simulator, so the two cannot drift. The p3b
test derives its expected values from the same shared rate.

Two honest findings are recorded, not hidden: efficient is slower than active
because weakness windows are not yet a settlement multiplier (tracked in
PRODUCTION/39), and concentrated upgrades outperform spread ones in the CH
cost curve. tools/run_p2_checks.sh now runs 21 gates; all pass.
2026-11-17 14:23:34 +08:00
wushenghua 006c52647e docs: deliver boss pacing analysis and make both phases legible
The chapter simulation showed the boss dying in 3.9s with active play versus
26.3s on auto. Reading the full contract changed the diagnosis:
PRODUCTION/02 says "auto clears normal, manual clearly improves boss win
rate" and 30s is a TIMEOUT failure line, not a target duration. So auto
timing out is intended; the real problem is only that manual play trivially
skips the timer and phases.

tools/tune_boss.py scans 36 boss-only parameter combinations and proves no
setting puts both play styles in 20-30s (consistent with auto being meant to
fail). It finds the candidate closest to the contract intent (manual_mult
~0.15 with a post-break vulnerability window: 13.5s active / 27.5s auto).
PRODUCTION/39-boss-pacing-review.md records the evidence, the contract quote,
three options and the fact that manual damage is an Owner-level decision; no
production combat number was changed and P2 parity is untouched.

What could be fixed without touching numbers: the sim had no phase event at
all, so players never saw P1->P2. The HUD now derives the phase label from
boss HP (>50% phase 1, <=50% phase 2) and shows it on the boss plate alongside
shield-break and weakness states. A headless test drives a real battle across
the 50% crossover and checks the label flips without changing settlement.

tools/run_p2_checks.sh now runs 19 gates; all pass.
2026-11-17 14:00:00 +08:00
wushenghua ce50c64375 feat: add auto-expedition, the missing automation step in the core loop
ADR-007 calls for full auto-chaining plus an expedition mode, but every node
still ended at a result modal that required a manual click to continue. That
is repeated, understood labour the incremental loop should automate while
preserving the real decision.

Added an auto-expedition toggle in the skyport (persisted in the profile).
When on, clearing a normal node advances to the next available node after a
short beat; the result modal shows the auto-advance action and the player can
still cancel by returning to the map. The chain deliberately STOPS at event
nodes (state-dependent player choices) and at the chapter boss (a milestone),
so automation removes friction without automating the interesting decisions.

Added an auto-run evidence test driving real BattleScene ticks and the real
SceneTree timer: N01 chains to N02, event N04 is not an auto target, and a
boss clear does not chain. tools/run_p2_checks.sh now runs 18 gates; all pass.
Verified the toggle and its explanation render in a real captured skyport.
2026-11-17 13:26:55 +08:00
wushenghua 55f322039c i18n: localize hero signature labels in the battle HUD
Inspecting the real Boss-battle window showed the visible-hero cards reading
"签名 break / single / auto": the signature direction was taken from the
shared battle rules' counters (a P2 weakness rule) and shown raw, and the
launch content's actual signature direction was ignored.

Added signature.* keys in both ship locales and made the HUD look them up.
BattleScene now takes each hero's signature from the launch content (the
content authority: Aoden=break, Lyria=single, Brom=click) and only falls back
to counters when content has no signature. Shared P2 numeric data is left
untouched, so the 300-result parity gate still passes.

Also added a WINDROOST_DEBUG_PAGE / WINDROOST_DEBUG_NODE navigation hook so
each page can be opened in a real Godot window for visual inspection without
external mouse injection (blocked by accessibility permissions on this host).
Used it to review map, battle, settings and event pages.

tools/run_p2_checks.sh still runs 17 gates; all pass. All inspection Godot
processes were terminated.
2026-11-17 12:28:12 +08:00
wushenghua 6a0b8122df chore: refresh capture and validation evidence after first-run fixes 2026-11-17 10:55:48 +08:00
wushenghua 5fe1ff57b7 fix: correct first-run onboarding and printf placeholders in UI strings
Running the game window on a clean profile exposed two player-visible defects
that headless assertions never caught.

A brand-new player was told "offline report settled · progress saved" before
they had ever left the game. ProfileStore now tracks seen_intro (schema 4,
migrated from older saves as already-seen), first runs show a welcome banner,
and starting the first node marks the intro seen and persists it.

Upgrade buttons at 0 gold were disabled but looked identical to enabled ones,
and their text showed the literal "需 %d ◆": the string used printf % while
UiText.tf only substitutes {name}. Fixed all such strings (offline reward,
victory, rebuild, archive, growth) to use named placeholders, and added a
validator guard that fails any key passed to UiText.tf whose text still has a
printf % placeholder. Disabled upgrades now read "需 120 ◆" and render dimmed.

Added a first-run evidence test over a real rendered GameRoot. It verifies the
welcome banner, unaffordable button state, and that intro-seen persists.
tools/run_p2_checks.sh now runs 17 gates; all pass. Verified again in a live
Godot window with a clean profile and terminated the process after inspection.
2026-11-17 10:55:27 +08:00
wushenghua e25cf9623b art: replace all placeholder sprites with generated pixel art
Generated 26 sprite sheets (13 characters x idle/attack-or-hit) with
gpt-image-2.6 1K using one shared style contract and a magenta chroma
background, replacing the deterministic placeholder silhouettes. Dry-run and
credential preflight were done first; the batch used --no-wait with task ids
written to disk, then a single collect. Two downloads needed recovery: one
returned .webp (converted to PNG, bytes preserved), one failed twice and was
resubmitted from the same job, succeeding. Failed tasks are not charged.

Each raw sheet went through the project's existing pixel pipeline:
pixel_sprite_pack.py (crop + fixed 96px grid) then chroma_key_atlas.py
(chroma key + foot-line alignment). The runtime atlases and manifests are
byte-compatible with UnitView, so no runtime code changed. data/generated_art_processing_ledger.json records every task id and both raw and
runtime SHA-256 hashes. Manifests are marked generated_reviewed_pipeline and
still require human visual sign-off before release; this is a first draft,
not a claim of final art acceptance.

tools/run_p2_checks.sh still runs 16 gates; all pass. Battle captures show
distinct heroes (human warrior, elven ranger, dwarf smith) instead of blocks.
2026-11-17 09:17:01 +08:00
wushenghua f819281e2d ui: remove hardcoded strings and add a working settings page
GameRoot had 40 player-facing Chinese literals hardcoded, which broke the
seven-locale architecture from ADR-009 and meant the en_US table was never
actually reachable. Every string now comes from a key in both ship locales.
The text validator reports 61 distinct keys referenced from scripts and all
present in both tables.

The Archive tab now opens a real settings page: language toggle, low-power
toggle and a mute flag. Language switching propagates to the header, page
labels, settings rows, note and the live battle HUD. Low power is wired to
the battle scene and therefore to VFX frame stepping.

The first English capture exposed that labels built once in _ready() did not
update on locale change; the title, settings rows and note are now refreshed
through the same path as the buttons. Captures include the settings page in
both locales.

tools/run_p2_checks.sh still runs 15 gates; all pass.
2026-11-17 02:32:12 +08:00
wushenghua b4125fdaa4 feat: make event nodes real choices and verify the full chapter
Event nodes N04 and N07 now present two bounded options (immediate gold versus
permanent crystal) instead of silently granting gold. The data lives with the
rest of the launch content, the strings are keyed in both ship locales, and an
event-choice flow test verifies two options, the reward, and completion.

The modal stacks its actions vertically: two 220px buttons overflowed the
390px viewport and clipped the second choice.

Chapter balance is now measured rather than assumed. tools/simulate_chapter.py
plays all ten nodes with two profiles: the minimum-effort profile clears 9/10
(N08 needs taps), and the active profile clears 10/10 including the boss. That
is the evidence that manual input changes the outcome and that the chapter is
completable. The boss HP scale bug found by this simulation was fixed earlier.

tools/run_p2_checks.sh still runs 15 gates; all pass.
2026-11-17 01:55:25 +08:00
wushenghua 970cadb129 feat: add offline progress, rebuild and a full-chapter balance simulation
P3b. ProfileStore is now schema 3 with an 8-hour-capped offline report derived
from roster DPS, a claim-once guard, clock-rollback handling, and a rebuild
transaction that clears run state while keeping recruited heroes and granting
wind essence. The skyport shows the claimable report and a rebuild entry.

Balance. simulate_chapter.py plays the whole chapter with two profiles. The
minimum-effort profile clears 9/10 nodes (N08 needs taps); the active profile
clears 10/10 including the boss. This is the evidence that the chapter is
actually completable and that manual input changes the outcome. The boss's
1500 HP was being wrongly multiplied by the node scale; the content generator
now keeps it fixed as the data pack requires.

Paper parity. mvp_validation_sim.py now understands P3a enemy specs, node HP
scale and the recruited-roster filter, so the runtime and paper models stay
aligned beyond the P2 fixture. The 300-result parity gate still passes.

tools/run_p2_checks.sh now runs 15 gates; all pass. Recorded balance note:
an active player kills the boss in ~4s, so the 30s timer and phases are not
yet meaningful. That is a tuning item against the frozen data pack, not a
local fix to smuggle in.
2026-11-17 01:25:30 +08:00
wushenghua 281349945f feat: wire the full P3a launch content and playable game shell
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.
2026-11-17 01:05:32 +08:00
wushenghua a0c590deec feat: add animated units, real touch input and the runtime economy loop
Continues the MVP work from the UI and numbers baseline.

Animation. The frame runs were already in the repository but had never been
packed for runtime use. pack_animation_strip.py now derives one shared scale
and one shared foot line from the union of every frame in a state, so the
character does not jitter between frames; H01 idle/attack, EG01 idle/hit and
B01 idle/hit are packed as transparent fixed-grid atlases. UnitView plays
them with the node origin on the foot line, loops idle, plays hit once and
falls back, and flashes on damage. Content-to-art bindings live in the
content fixture, so no character id is hardcoded in the HUD.

Touch. The previous HUD used gui_input callbacks, which is not proof of a
mobile input path. run_touch_test.sh now feeds InputEventScreenTouch through
Input.parse_input_event and checks that taps on the tap toggle, an enemy card
and the storm button produce the right events on the right tick. It also
caught a real bug: Godot emulates mouse presses from touches, so one tap was
firing both handlers; enemy taps are now debounced.

Economy. The paper model had the reward and upgrade curves but the runtime
only subtracted gold from a balance that was always zero. The scene now owns
permanent progress: victory grants the reward from the shared rules, upgrades
cost a growing amount, hero DPS rises per level, and the next battle is
created with the upgraded roster DPS. run_economy_loop_test.sh proves four
N01 clears pay for the first upgrade and that duplicate grants and losses
behave correctly. The economy pacing was left at four wins rather than
weakening it to satisfy the test.

tools/run_p2_checks.sh now runs 11 gates; all pass. PRODUCTION/38 records
P2-IMP-02/03 and P2-BAT-02 as PASS. Remaining P2 holds: profiler/visual
limit, shield-break and ultimate VFX, real-device safe area and performance.
2026-11-16 23:30:49 +08:00
wushenghua e7b55e1c17 feat: align runtime with paper numbers and build the battle HUD carrier
Numbers. The paper runner (tools/mvp_validation_sim.py) and the Godot
runtime adapter were two independent rewrites of the same rules and had
drifted: seed derivation, damage order, the weakness rule and the shield
rebuild semantics all differed, so the runtime never actually reproduced
the paper numbers and P2-BAT-01 could never pass.

- add data/mvp_battle_rules.json as the single source of balance data and
  of the per-run seed derivation, read by both engines
- derive the efficiency factor from SHA-256 (48-bit prefix) so Python and
  GDScript land on the same float64
- port the paper semantics into battle_sim.gd and expose the simulation as
  a stepwise state machine so a live scene can drive it at 1x/2x/3x
- add tools/mvp_parity_gate.py: diffs 300 results field by field, event
  log by event log, and exits non-zero on any difference
- freeze data/mvp_validation_seed_reference.json so unapproved numeric
  drift fails the gate
- note that GDScript's roundf() is half-away-from-zero while Python's
  round() is banker's rounding; the runtime uses String.num instead

UI. The sample had no real UI carrier, no localization and no touch path,
so the NinePatch, dynamic text, safe area and input cases had nothing to
be proven against.

- add the battle HUD, laid out from the contract table rather than container
  stretch ratios, reproducing the 390x844 rectangles exactly and adapting
  360x800 / 430x932 with the stage kept as priority space
- add runtime text tables for zh_CN and en_US and a key validator that
  proves both locales carry the same keys and every content id has a string
- add NinePatch frames with a 6px border band and 6px cut corners
- add the live battle scene, the capture runner and the 1x/2x/3x
  equivalence test

tools/run_p2_checks.sh runs the nine gates in one command; all pass.
2026-11-16 22:22:55 +08:00
wushenghua d62305a254 test: validate MVP content fixture references 2026-11-06 15:42:32 +08:00
wushenghua a07ddc2b6a docs: freeze P2 Godot sample validation 2026-11-06 15:35:26 +08:00
wushenghua 51bff44a12 test: add MVP economy smoke validation 2026-11-06 15:30:53 +08:00
wushenghua 6d6681b180 feat: run MVP fixed-seed battle validation 2026-11-06 15:20:12 +08:00
wushenghua 0b6e89c8b8 docs: prepare MVP seed validation gate 2026-11-06 13:51:34 +08:00
wushenghua c7ae06d594 docs: refine transparency and runtime asset sizes 2026-11-06 07:10:18 +08:00
wushenghua 04dec2377f docs: run A1 asset pipeline pilot 2026-11-06 07:05:02 +08:00