Commit Graph
74 Commits
Author SHA1 Message Date
wushenghua 6ac866d8a3 S8 on UI: sync A5 disposition for source-pinned H07-H09 adapter
Adapter, HeroSkillLoader level 1..199 path, Python/GD parity and provenance were already integrated on this UI tree; no cherry-pick. Classify locale-visibility probe partners key and regenerate reviewed disposition so CH G5 passes.
2026-11-29 18:33:26 +08:00
wushenghua 77d9490f6a fix(a5): register H10-H54 overlay probe hits via authoritative disposition builder 2026-11-29 11:19:24 +08:00
wushenghua 6085db7aa7 fix(a5): sync G5 disposition coverage to 87ea67c consumer scan
Reproduced check_ch_authority G5 FAIL (entries=99 vs scan=105, missing 6
disposition rows). Regenerated data/ch_consumer_disposition.json with the
canonical build_consumer_disposition.py: +6 reviewed rows (2 BLOCKED,
3 NOT_APPLICABLE, 1 LEGACY_SOURCE), refreshed 12 stale line/snippet
metadata rows, baseline 99/96/3 -> 105/102/3. SIDECAR_BOUND stays 3;
no gate, CH value or consumer semantic change; G3/G4 and 8 OPEN untouched.

Verified: G3/G4/G5 PASS, CH parity 7/7, strict import IMPORT_CLEAN,
CH systems domain PASS. Evidence: /private/tmp/opencode/debt-g5-87ea67c/
2026-11-29 10:33:43 +08:00
wushenghua 2e8a9d1d31 fix(locale): mirror runtime ui_text keys into authoritative data tables
Mirror the already-run p2_godot_sample/data ui_text.zh_CN/en_US tables into data/ so the runtime bundle gate and the UI text validator agree. Adds 39 keys per locale (ancient_*, do_transcend, guild_*, bounty_*, ch_*), removes nothing, invents no translations. 2 files, 78 insertions, 0 deletions. Gates: bundle PASS, UI_TEXT_PASS, strict import exit 0, representative UI/S3/S4/S5/S6/CH probes all exit 0. Evidence: /private/tmp/opencode/debt-locale-87ea67c/.
2026-11-29 10:33:42 +08:00
wushenghua 3e8346da94 content: port full-game generator, QA and enemy/hero contracts
Source-bound generator/validator/QA plus WR328 enemy weak-tag and WR330 hero
unlock checkers. UI text is a 3-way merge: source event short keys and content
keys added, all HEAD S3/S4/S5/S6 keys retained. No runtime/shell code ported.
2026-11-29 10:10:38 +08:00
wushenghua 8ec93cc78f content: port full-game battle-rules adapter data and checker
Source-bound H07-H09 / H10-H54 role adapter table from 42d6ec7, with its
focused checker and runtime-bundle validation entry. No shell/runtime script
or save-schema code is ported.
2026-11-29 10:09:55 +08:00
wushenghua 5426c636a6 test(world-next): allow expected S5/S6 live service field diffs
WN RUN1 at the integration HEAD produced WN_FAIL 72: the only differing keys
in diff_return/diff_saved were the new autoclick/clickable dicts. Analysis
proved the changes are autoclick.timer/service_ticks and clickable.phase
advancing per frame -- expected live service state, not reward/wallet/routing
side effects. The probe now explicitly allows only those two fields, records
'diff_allow_note: new S5/S6 service fields expected', and keeps exact equality
for every other gameplay field. Original FAIL evidence is preserved.
2026-11-29 08:50:15 +08:00
wushenghua f35835d224 fix(ch-systems): make guild actions reachable at 360px en_US
- wrap side summary/empty-hint labels so long en_US strings no longer widen the column and push Hire/Buy/Send outside the viewport
- use concise localized tab captions (Guild / Bounties)
- reject off-viewport targets in the real ScreenTouch probe
- re-verified: strict import, domain, 36-case touch matrix, save corruption, parity
2026-11-29 08:45:20 +08:00
wushenghua 1cf0c97dc5 fix(locale): mirror shell.prestige.soul_gain into authoritative ui_text tables
The S1 CH ascension port added this key only to p2_godot_sample/data, leaving
the authoritative data/ tables without it. That produced the two I6 gate
drifts: runtime data bundle mismatch and mvp_ui_text_validator missing-key
failure. Mirror the exact existing strings (no new copy) so all four locale
files stay byte-identical.
2026-11-28 15:20:52 +08:00
wushenghua 0a1b7f2c99 S8: wire CH-source H07-H09 hero numbers via labelled positional adapter
- Add explicit Windroost adaptation contract and provenance sidecar
  (H01..H09 -> CH ids 1..9 positional, NOT a native crosswalk).
- Serve H07/H08/H09 base DPS from CH @46cc8ad authority via
  ChHeroAdapter at WR hero level (1..199 identity domain; hard-fail
  outside it) and consume it in HeroSkillLoader (py + gd).
- Keep H01-H06 paths byte-identical; H10-H54 stay Pending;
  no skill coefficients, counters, zones or rewards invented.
- Sync A5 disposition map with the current lexical consumer scan.
- Add py<->gd parity, real ScreenTouch training/battle probes and a
  fake-HOME / exclusive-save / dev:inode / watchdog runner.
2026-11-28 13:32:49 +08:00
wushenghua a1a8668580 fix(locale): restore content.enemy.E-R1-F3-V2 in all four mirrors
N02 wave uses E-R1-F3-V2; missing locale key made the battle HUD show a raw key. Value restored from prior fl06 mirror: zh=风元素·精英, en=Wind Elemental · Elite (authored name + F3 variant rule). Locale data only; no game_root/battle_hud/numeric/CH/A4/A5/save/route/UI changes.
2026-11-28 02:56:59 +08:00
wushenghua 7861a2fcf0 A5b: adjudicate U2 test fixture gold write as NOT_APPLICABLE in G5 disposition 2026-11-28 02:56:59 +08:00
wushenghua 49059fe15e A5: add authority-first CH consumer adapter and fail-fast disposition gate
- add ch_runtime_content.py/.gd: patched pointers require real level/zone;
  unmappable families (C004/C050/C053/C054) raise instead of guessing
- remove field_map.counts silent product-literal fallback in ch_authority.py
- label frozen launch fixture source; add disposition map and G5 gate
- keep UI, battle HUD, locale, OPEN items and gameplay literals untouched

G3 12/12, G4 9 families/160 pointers/open 8, G5 92 dispositions PASS
2026-11-28 02:05:28 +08:00
wushenghua c7f812c9a8 feat: bind CH numeric authority (A4) to runtime data and consumers 2026-11-28 01:44:08 +08:00
wushenghua 28e824763b improve: battle action clarity, visible feedback, explicit exit
Owner feedback: too few visible animations, button rows feel list-like, battle
actions unclear, and tapping a bottom tab silently left the fight.

- Battle manual actions now have icons and three distinct weights: sword =
  repeated hit (brass primary), bolt = storm (quiet), fireball = ultimate
  (purple special). A "tight" icon-button mode keeps all three plus dynamic
  cooldown/energy text inside the 358px row (verified by geometry probe).
- Added an always-visible flagged "退出战斗" button in the battle header; the
  stage hint now reads "tap enemy to retarget / buttons below to act".
- Leaving battle via any tab shows a shell-level toast "已离开战斗 · 前往 X"
  so the player knows the fight ended and where they landed.
- Game feel: idle sprites have a 6fps floor (authored 4-frame/3fps idle read as
  frozen), damage numbers get a short overshoot-and-settle pop, and manual-hit
  shake trauma doubled (still small tier). All respect reduced motion/low power.
- New regression assertions: labeled exit button + exit toast; 108 gates pass.

Normal-render capture inspected at 390x844 zh_CN. agent_visual_reviewed only;
owner must confirm on device whether the motion level now feels right.
2026-11-20 14:33:44 +08:00
wushenghua 5049ebec64 chore: commit leftover skin text keys + reenter-battle regression
Settings-page skin labels and the earlier palette-based skin generator were
left uncommitted from the parchment skin work. Also strengthens battle_exit_test
to assert re-entering battle restores a visible HUD layer (hiding must not be
permanent). 107 gates pass.
2026-11-20 12:17:18 +08:00
wushenghua 2765468525 feat: standalone endless expedition page (replaces modal)
The endless mode UI was a transient modal -- poor for an idle game the player
watches. Now a persistent PAGE_ENDLESS (like growth/map):
- number_display.py/.gd: readable BigValue text (1.23K/1.50M/2.15e190),
  NUMDISP_PARITY_PASS 5 cases -- big numbers no longer raw encoded strings.
- game_root: skyport "Endless Expedition" opens PAGE_ENDLESS with live status
  (zone/level/essence/rebuild), gold/dps, advance/auto/upgrade actions, and a
  recent-zone log showing clear times + boss flags. Offline report shown inline;
  modal path kept for actions but page is the primary surface.
- endless_page_ui_test PASS: page renders, entry works, advance drives engine.
- P2_CHECKS_PASS 105 gates, identity preserved (story mode untouched).

Endless idle now has a proper home surface. Owner gates (human/device/release)
open. prototype/ untracked.
2026-11-19 22:29:06 +08:00
wushenghua 27d16c3b6f feat: richer endless UI + offline progression (CH-style idle loop complete)
Finishes the playable endless mode started earlier:
- endless_offline.py/.gd: CH offline_aggregation-style zone settlement (8h cap,
  BigValue gold, skip unbeatable bosses). ENDLESS_OFFLINE_PARITY_PASS 3 cases.
- game_root settles offline on restore, shows "+N zones"; endless modal now
  shows gold/dps (BigValue encoded) and an "Upgrade Heroes (+5)" action using
  CH 1.07^level cost curve (buy_levels). Bilingual UI text.
- test hooks + endless_ui_test verify advance/offline/upgrade/save round-trip
  in real game_root. ENDLESS_BATTLE_PARITY 32, ENDLESS_SAVE_PASS 4.
- P2_CHECKS_PASS 103 gates, identity preserved.

The endless mode is now a complete CH-style idle loop: play, upgrade, rebuild,
offline gains, persistent BigValue progress. Owner gates (human/device/release)
remain open. prototype/ untracked.
2026-11-19 22:07:26 +08:00
wushenghua af94808ee6 feat: wire CH-style endless mode into the playable game (BigValue-backed)
The endless pacing was only verified in a paper sim. This makes it a real,
player-facing mode, separate from the 600-node story so 99 gates stay intact:

- endless_battle.py/.gd: BigValue battle engine -- zone HP 1.55^zone, DPS
  base*level*4^(level/25)*(1+0.1*essence), rebuild banks essence, programmatic
  zones. ENDLESS_BATTLE_PARITY_PASS 31 cases py==gd; zone 200000 HP exponent
  38067 (no float64 overflow).
- game_root.gd: skyport "Endless Expedition" button -> modal with zone/level/
  essence/rebuild status, "Advance Zone"/"Auto Advance" actions drive the real
  engine. test hooks for UI verification.
- endless_ui_test PASS: real game_root starts endless, advances 30 zones,
  BigValue-encoded numbers valid. Bilingual UI text added.
- P2_CHECKS_PASS 101 gates, identity preserved (story mode unchanged).

Players can now play a true CH-style endless idle run (no zone cap, big numbers)
alongside the bounded story. Owner gates (human feel/device/release) open.
prototype/ untracked.
2026-11-19 21:04:54 +08:00
wushenghua a3ea0c035d feat: restore CH exponential pacing curve + prestige growth loop
User: systems correspond to CH but pacing was 6 minutes -- the "correspondence"
was conceptual; numeric STRENGTH was flattened. This restores CH's actual
growth engine (re-skinned in Windroost names):

- ch_curve.py/.gd: CH monster-growth exponential curve (1.55^level, exact
  source float32 constant), node index -> CH level, 5 compression modes.
  CH_CURVE_PARITY_PASS 30 cases py==gd.
- cycle_pacing.py: enemy HP now follows CH curve (balanced mode, ~1737x at
  end) instead of flat 120-657. Implements CH's core loop: blocked -> rebuild
  to bank essence -> essence +10%/point DPS (from prior commit) breaks the wall.
- Pacing transformed: 6 min -> ~38 min; first region 402s, rebuild 2156s,
  new sky 2282s, 13 real bottlenecks, 5 profiles 2229-2625s with divergence.
  480->477/480 nodes (3 edge bosses), MIN_CLEAR gate satisfied.
- CYCLE_PACING_PASS; P2_CHECKS_PASS 96 gates; identity preserved.

This is the missing piece the user pushed for: not just migrating coefficient
sources, but restoring CH's actual exponential time-scale and prestige loop.
Owner gates (human feel/device/release) remain open. prototype/ untracked.
2026-11-19 20:01:22 +08:00
wushenghua 0548105cde feat: all tuning numbers now exactly derived from CH families (no invented values)
User wanted every number to have a CH correspondence, not hand-picked values.

- cf_tuned_values.py/.gd: single source that derives all coefficients from CH
  LINEAR_COEFF / monster curve / skill duration: additive = CH linear family,
  interval = 1-CH coefficient (CH cost-reduction style), stack = 1+CH coeffs,
  durations = CH skills.json 30s/6, enemy mults = CH monster_growth curve.
- skill_archetypes / oath_rules / talent_behavior / edict_rules / enemy_mechanics
  now read from cf_tuned_values instead of hardcoded numbers. hero_skills.json
  regenerated; all 54 combos still unique.
- check_cf_tuned_parity PASS 45 values py==gd; test_cf_tuned_provenance PASS 5
  checks asserting every value is CH-derived (guards against invented numbers).
- PRODUCTION/52 documents exact derivations and honest boundary.
- Full P2_CHECKS_PASS (95 gates), identity preserved; enemy-mechanic battle
  durations recomputed [27.1/30.3/20.8/35.0/20.2] all distinct + py==gd.

No combat number is now hand-picked; every coefficient traces to a CH source.
Owner gates (human feel/device/release) remain open. prototype/ untracked.
2026-11-19 18:39:59 +08:00
wushenghua 6eaebc3cb5 feat: migrate invented numbers to real CH source formulas (numeric provenance)
User: "数值应参考 CH 迁移,不要自己写." Contract 2.2 requires inheriting CH's
formula families and magnitude. Previously relic strength (0.06+tier*0.008),
commission targets/rewards, and partner coefficients were invented. Now:

- cf_formulas.py/.gd: implements CH's real formula families (linear10=0.10*L,
  diminishingReturns, exponential/polynomial1_5 costs) and reads CF source
  tables copied to data/cf_reference/numeric_tables.json (27 relics/30 ancients/
  10 outsiders/6 daily tasks/9 skills). check_cf_formulas_parity PASS 25 cases.
- Relics: strength = CH linear10 @level=tier (0.1..6.0, genuine CH magnitude);
  effect TYPE from CH relic effectDescription keyword (idle->shield, click->
  damage, chest->summon...). 56 combat relic signatures unique.
- Commissions: target steps from CH daily_tasks (kills=50/boss=3/upgrades=5/
  quests=2), reward = CH rubies=5 (crystal) for all.
- Partners: P01=0.10 (CH linear10), P03=0.15 (linear15), P05=0.25 (linear25).
- PRODUCTION/52-cf-numeric-provenance.md documents every number's CH source
  and honestly flags the few remaining new-game tuning parameters.
- Full P2_CHECKS_PASS (93 gates), identity preserved.

Numbers now trace to CH source tables instead of being invented. Owner gates
(human feel/device/release) remain open. prototype/ untracked.
2026-11-19 18:07:26 +08:00
wushenghua 5aa240991a feat: commission board + partner perks reach the live UI (stage H follows up)
The stage-H modules were gated but only exposed via for_test hooks. Now players
can actually see and claim the 4 commission types in the interactions tab:

- game_root.gd: _refresh_interactions renders one row per available commission
  type (kill/clear/build/ascend) with its own progress + reward text; _on_board_
  commission_claim routes through CommissionBoard.claim on the live profile.
- 4 new bilingual UI keys (board_kill/clear/build/ascend) in both data/ and
  p2_godot_sample/data/ (runtime data bundle byte-identical).
- side_depth_ui_test.gd: now also asserts the interactions tab renders >=4 rows
  for the commission board in the real game_root.
- Full P2_CHECKS_PASS (92 gates), identity preserved.

The 4-type commission board is now a real player-facing system, not just data.
prototype/ untracked.
2026-11-19 15:01:16 +08:00
wushenghua 3b6ef5b880 chore: final requirement-to-evidence audit (23/23 acceptance items)
AGENTS.md asks for a final requirement-to-evidence audit once local systems are
complete. Mapped every unchecked acceptance item in BATTLE_HUD_HIGH_FIDELITY_SPEC
and CH_TO_WINDROOST_FIELD_MAPPING to a concrete gate + evidence file:

- final_evidence_audit.py verifies each item's gate is registered and evidence
  PASSes; records the STRONGEST honest level (3 agent_visual_reviewed, 14
  runtime_verified, 4 automated_verified, 2 simulation_verified).
- 23/23 PASS; output data/final_evidence_audit.json; registered as gate.
- Both acceptance sheets checked off with per-item evidence annotations.
  Visual items explicitly marked agent_visual_reviewed, NOT human play feel;
  owner gates (human feel/audio/device/release) listed as still open.
- Full P2_CHECKS_PASS (89 gates), identity preserved.

prototype/ untracked.
2026-11-19 14:38:06 +08:00
wushenghua b81620412c feat: full-cycle L6 pacing now validates the real A-G mechanics
The 600-node five-profile pacing was still using the old flattened +DPS model
and did not exercise any of the stage A-G systems built this session. Upgraded:

- cycle_pacing.py: per-node build now injects the same profile into both the
  authoritative growth engine AND hero_skill_loader (talent behaviours + edict/
  relic/oath rules), plus enemy_mechanics spec modifiers (hp/armor/shield/
  eff_penalty) from each enemy tag / boss phase. Real skills fire in every wave.
- Report records skill_effects_fired / distinct_primitives / enemy_mechanics.
- Result: 480/480 combat nodes cleared for all five profiles; active 354s,
  efficient 350s, normal 409.5s, adversarial 561.6s; gap 17-24s < 60s; each
  profile fires 76k-86k real skill effects over 13 primitives, 480 enemy
  mechanics; builds differ in real mechanic usage.
- check_cycle_pacing.py: added A-G evidence assertions (skill effects >=1000,
  primitives >=10, enemy mechanics >=400) + mechanic-divergence notes.
- Full P2_CHECKS_PASS (88 gates), identity preserved.

L6 balancing evidence now reflects the actual upgraded gameplay, not the old
flat numbers. Owner gates (human feel, device, release) remain open.
prototype/ untracked.
2026-11-19 14:34:10 +08:00
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