#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Generate metin2-client/audit/xxf-ch5/features.json Baseline feature tracking manifest adhering to: - docs/XXF-CH5-MIGRATION-PLAN-20261021.md - docs/XXF-CH5-CODE-IMPLEMENTATION-20261021.md """ import json import os import hashlib import subprocess def sha256_file(filepath): if not os.path.isfile(filepath): return None h = hashlib.sha256() with open(filepath, 'rb') as f: while chunk := f.read(65536): h.update(chunk) return h.hexdigest() def make_record(fid, name, subfeature, scope, owner, sources, rules, deps, impl, protocol_ref, activation, status, evidence, readiness, field_mapping_ref=None, interaction_cases_ref=None, acquisition_case_ref=None, locale_cases_ref=None, observation_and_shutdown_ref=None, blockers=None, rollback_ref=None): # Historical declarations below describe interfaces, not measured results. # Regeneration must never promote a constant or stub to verified gameplay. reviewed_partial = {'F02','F16','F17','F18','F19','F20','F21','F22','F23', 'F24','F27','F28','F30','F31','F32','F33'} status = dict(source='pending_review', implementation='partial' if fid in reviewed_partial else 'pending_review', build='pending', unit='pending', live='pending', device='pending', release='not_released') readiness = dict(local_baseline='pending', live_baseline='pending', release_gates=['candidate_build','feature_behavior','matched_live','android_device']) evidence = [dict(e, verification='historical_unbound') for e in evidence] blockers = list(blockers or []) + list(rules.get('unresolved', [])) blockers.append('Current candidate source/resource hashes and feature-specific acceptance evidence required') return { "id": fid, "name": name, "subfeature": subfeature, "scope": scope, "owner": owner, "source": sources, "rules": rules, "dependencies": deps, "implementation": impl, "protocol_contract_ref": protocol_ref, "activation_and_shutdown": activation, "status": status, "evidence": evidence, "readiness": readiness, "field_mapping_ref": field_mapping_ref, "interaction_cases_ref": interaction_cases_ref, "acquisition_case_ref": acquisition_case_ref, "locale_cases_ref": locale_cases_ref, "observation_and_shutdown_ref": observation_and_shutdown_ref, "blockers": blockers, "rollback_contract_ref": rollback_ref } def main(): repo_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) out_dir = os.path.join(repo_root, "audit", "xxf-ch5") os.makedirs(out_dir, exist_ok=True) out_path = os.path.join(out_dir, "features.json") client_head = subprocess.check_output(['git','-C',repo_root,'rev-parse','HEAD'], text=True).strip() server_root = os.path.join(os.path.dirname(repo_root), 'metin2-server') server_head = subprocess.check_output(['git','-C',server_root,'rev-parse','HEAD'], text=True).strip() features = [ make_record( "F01", "五区中文、脚本、资源闭包与索引", ["locale_pack", "root_scripts", "Index", "sound", "item_proto"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/manifest.json", "symbol": "manifest", "reachable_import": None}, {"path": "metin2-client/Client/pack/Index", "symbol": "pack_index", "reachable_import": None} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": [], "accepted_differences": ["Preserve 5-page inventory over legacy 4-page assumption"]}, [], {"client": "src/port/EterPack/", "server": None, "data": "Client/pack/Index", "resources": "Client/pack/", "entrypoints": ["EterPack::Get"]}, None, {"client_gate": "Index pack order", "server_gate": None, "safe_default": "Fall back to baseline packs"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_eterpack_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F02", "目标血量、小数 HP、掉落入口", ["target_drop_button", "hp_percent", "target_info_service"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uitarget.py", "symbol": "TargetBoard.InfoBoard", "reachable_import": "uitarget"}, {"path": "metin2-client/src/platform/ScriptLib/WikiEntryScript.inc", "symbol": "Enemy, OpenMob", "reachable_import": "mt_wiki_entries"} ], {"version": "1.0", "provenance": "XXF-CH5 & mt_features", "unresolved": ["Authoritative precise HP wire width"], "accepted_differences": ["Use mt_features QueryRemote('mob', race) instead of raw D3D target info dialog"]}, ["F11"], {"client": "src/platform/ScriptLib/WikiEntryScript.inc", "server": "game/src/cmd_general.cpp", "data": "mob_proto", "resources": "ui/target_info", "entrypoints": ["uitarget.TargetBoard.SetEnemyVID"]}, "AVA2-IMPLEMENTATION-SPEC.md#mt_features", {"client_gate": "hasattr(self, 'wikiDropButton')", "server_gate": "MTF1 cap check", "safe_default": "Show unavailable if race not in catalogue"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F03", "目标六元素图标", ["element_icons", "monster_race_flag_mapping"], "client", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uitarget.py", "symbol": "SUB_RACE_FLAG_TO_FILENAME", "reachable_import": "uitarget"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": [], "accepted_differences": ["Maps 6 elements (elec, fire, ice, wind, earth, dark)"]}, ["F02"], {"client": "src/platform/ScriptLib/TargetElementScript.inc", "server": None, "data": "mob_proto", "resources": "ui/target_element", "entrypoints": ["TargetBoard.SetEnemyVID"]}, None, {"client_gate": "app.ENABLE_ELEMENTAL_TARGET", "server_gate": None, "safe_default": "Hide icon when race has no elemental flag"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F04", "交易双方等级显示", ["exchange_level_display", "partner_level_sync"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uiexchange.py", "symbol": "ExchangeDialog.SetLevel", "reachable_import": "uiexchange"}, {"path": "metin2-client/src/port/UserInterface/PythonExchange.h", "symbol": "CPythonExchange::GetLevelFromTarget", "reachable_import": "exchange"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": [], "accepted_differences": ["Partner level synced via exchange packet or character status"]}, [], {"client": "src/port/UserInterface/PythonExchange.cpp", "server": "game/src/exchange.cpp", "data": None, "resources": None, "entrypoints": ["CPythonExchange::SetLevelFromTarget"]}, "AVA2-IMPLEMENTATION-SPEC.md#exchange", {"client_gate": "exchange.GetLevelFromTarget", "server_gate": None, "safe_default": "Hide level text if 0"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F05", "新物品高亮显示", ["highlight_item_callback", "page_refresh_maintenance", "over_in_dismiss"], "client", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/game.py", "symbol": "BINARY_Highlight_Item", "reachable_import": "game"}, {"path": "喜相逢五区客户端_extracted_locale/root_scripts/interfacemodule.py", "symbol": "Highligt_Item", "reachable_import": "interfaceModule"}, {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uiinventory.py", "symbol": "HighlightSlot", "reachable_import": "uiInventory"}, {"path": "metin2-client/src/port/UserInterface/PythonNetworkStreamPhaseGameItem.cpp", "symbol": "RecvItemSetPacket2", "reachable_import": None} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": [], "accepted_differences": ["Inventory has 5 pages (225 cells); bounds check handles 0-224"]}, ["F09"], {"client": "src/platform/ScriptLib/InventoryPagesScript.inc", "server": None, "data": None, "resources": None, "entrypoints": ["game.GameWindow.BINARY_Highlight_Item"]}, None, {"client_gate": "app.ENABLE_HIGHLIGHT_NEW_ITEM", "server_gate": None, "safe_default": "Silently ignore if handler missing"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F06", "FOV 视角扩展与设置接入", ["extended_fov_setting", "world_fov_getter", "system_option_dialog"], "client", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uisystemoption.py", "symbol": "SetExtendedFOV, IsExtendedFOV", "reachable_import": "uiSystemOption"}, {"path": "metin2-client/src/port/UserInterface/PythonSystem.h", "symbol": "CPythonSystem::IsExtendedFOV, SetExtendedFOV", "reachable_import": "systemSetting"} ], {"version": "1.0", "provenance": "XXF-CH5 & AVA2", "unresolved": [], "accepted_differences": ["Binary toggle: 30.0 standard vs 40.0 extended"]}, [], {"client": "src/port/UserInterface/PythonSystem.cpp", "server": None, "data": "metin2.cfg", "resources": "uiscript/systemoptiondialog.py", "entrypoints": ["systemSetting.SetExtendedFOV"]}, None, {"client_gate": "app.ENABLE_FOV_OPTION", "server_gate": None, "safe_default": "30.0f perspective"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F07", "高级天空盒环境与选项面板", ["skybox_pack", "advanced_skybox_dialog", "environment_fallback"], "client", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uiadvancedskyboxoption.py", "symbol": "AdvancedSkyboxOptionDialog", "reachable_import": "uiAdvancedSkyboxOption"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Specific environment loader binding"], "accepted_differences": ["Fallback to map default if custom skybox resource missing"]}, ["F01"], {"client": "src/port/UserInterface/PythonBackground.cpp", "server": None, "data": "environment/", "resources": "Client/pack/Skybox.epk", "entrypoints": ["uiAdvancedSkyboxOption.AdvancedSkyboxOptionDialog"]}, None, {"client_gate": "app.ENABLE_ADVANCED_SKYBOX", "server_gate": None, "safe_default": "Map default skybox"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F08", "GM 地图点击传送", ["minimap_atlas_click", "gm_goto_command"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uiminimap.py", "symbol": "MiniMap.AtlasWindow.OnMouseLeftButtonUp", "reachable_import": "uiMiniMap"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": [], "accepted_differences": ["Only enabled when chr.IsGameMaster()"]}, [], {"client": "src/platform/ScriptLib/MinimapButtonsScript.inc", "server": "game/src/cmd_gm.cpp", "data": "atlas/", "resources": None, "entrypoints": ["uiminimap.AtlasWindow.OnMouseLeftButtonUp"]}, None, {"client_gate": "chr.IsGameMaster()", "server_gate": "GM level check on /goto", "safe_default": "Normal player click does nothing"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_minimap_buttons_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F09", "5 页 225 格背包与槽位映射", ["5_page_tabs", "equipment_offset_225", "slot_range_checks"], "dual", "port_team", [ {"path": "metin2-client/src/platform/ScriptLib/InventoryPagesScript.inc", "symbol": "InventoryWindow patch", "reachable_import": "mt_inventory"}, {"path": "metin2-client/src/port/UserInterface/GameType.h", "symbol": "c_Inventory_Page_Count = 5", "reachable_import": None} ], {"version": "2.0", "provenance": "Current Workstation & Server Patch", "unresolved": ["Unlock ticket item rules"], "accepted_differences": ["Preserve 225 cells against XXF 4-page assumption"]}, [], {"client": "src/platform/ScriptLib/InventoryPagesScript.inc", "server": "game/src/char_item.cpp", "data": "item_proto", "resources": "ui/game/windows/tab_button_small_*.sub", "entrypoints": ["uiInventory.InventoryWindow.SetInventoryPage"]}, "AVA2-IMPLEMENTATION-SPEC.md#inventory", {"client_gate": "player.INVENTORY_PAGE_COUNT", "server_gate": "INVENTORY_PAGE_COUNT == 5", "safe_default": "225 cells open"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F10", "游戏内无缝切线", ["channel_dialog", "state_checker", "p2p_channel_transfer"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uimovechannel.py", "symbol": "MoveChannelDialog", "reachable_import": "uiMoveChannel"}, {"path": "metin2-client/src/platform/ScriptLib/ChannelScript.inc", "symbol": "ChannelDialog", "reachable_import": "mt_channel"} ], {"version": "1.0", "provenance": "XXF-CH5 & mt_channel", "unresolved": [], "accepted_differences": ["Uses CServerStateChecker async channel probing"]}, [], {"client": "src/platform/ScriptLib/ChannelScript.inc", "server": "game/src/input_p2p.cpp", "data": "serverinfo.py", "resources": None, "entrypoints": ["mt_channel.ChannelDialog.Open"]}, "AVA2-IMPLEMENTATION-SPEC.md#channel", {"client_gate": "mt_channel.ChannelDialog", "server_gate": "P2P channel alive", "safe_default": "Disallow switch if channel offline"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_channel_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F11", "Wiki 百科、掉落查询、宝箱预览与批量拾取", ["wiki_catalogue", "remote_query", "chest_preview", "batch_pickup"], "dual", "port_team", [ {"path": "metin2-client/src/platform/ScriptLib/WikiScript.inc", "symbol": "WikiWindow", "reachable_import": "mt_wiki"}, {"path": "metin2-client/src/platform/ScriptLib/ChestDropScript.inc", "symbol": "ChestWindow", "reachable_import": "mt_chest"}, {"path": "metin2-client/src/platform/ScriptLib/BatchPickupScript.inc", "symbol": "BatchPickup", "reachable_import": "mt_pickup"} ], {"version": "1.0", "provenance": "Current Ported Suite", "unresolved": [], "accepted_differences": ["Unified mt_features protocol"]}, [], {"client": "src/platform/ScriptLib/WikiScript.inc", "server": "game/src/cmd_general.cpp", "data": "item_proto, mob_proto", "resources": "ui/wiki", "entrypoints": ["mt_wiki.OpenItem", "mt_wiki.OpenMob"]}, "AVA2-IMPLEMENTATION-SPEC.md#wiki", {"client_gate": "mt_wiki.g_window", "server_gate": "MTF1 service cap", "safe_default": "Unavailable prompt"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [ {"platform": "macos", "case": "port_chest_test", "result": "pass", "path": "build/port-gate/macos.log"}, {"platform": "macos", "case": "port_pickup_test", "result": "pass", "path": "build/port-gate/macos.log"} ], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F12", "自动洗练与属性锁定", ["switchbot_window", "attr_lock_sync", "multi_view_locks"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uiswitchbot.py", "symbol": "SwitchbotWindow", "reachable_import": "uiSwitchbot"}, {"path": "metin2-client/src/platform/ScriptLib/SwitchbotScript.inc", "symbol": "Switchbot", "reachable_import": "mt_switchbot"} ], {"version": "1.0", "provenance": "XXF-CH5 & AVA2", "unresolved": [], "accepted_differences": ["Server validates materials and costs before rolling"]}, [], {"client": "src/platform/ScriptLib/SwitchbotScript.inc", "server": "game/src/char_item.cpp", "data": "item_attr", "resources": "ui/switchbot", "entrypoints": ["mt_switchbot.Open"]}, "AVA2-IMPLEMENTATION-SPEC.md#switchbot", {"client_gate": "app.ENABLE_SWITCHBOT", "server_gate": "do_attr_lock_sync", "safe_default": "Halt if materials exhausted"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_switchbot_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F13", "肩带系统(合成、吸收、缩放与外观)", ["sash_combine", "sash_absorb", "sash_scale", "sash_slots"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uiacce.py", "symbol": "AcceWindow", "reachable_import": "uiAcce"}, {"path": "metin2-client/src/platform/ScriptLib/SashScript.inc", "symbol": "SashWindow", "reachable_import": "mt_sash"} ], {"version": "1.0", "provenance": "XXF-CH5 & AVA2", "unresolved": [], "accepted_differences": ["Absorption ratio persisted in item socket"]}, [], {"client": "src/platform/ScriptLib/SashScript.inc", "server": "game/src/char_item.cpp", "data": "item_proto", "resources": "Client/pack/metin2_patch_acce", "entrypoints": ["mt_sash.Open"]}, "AVA2-IMPLEMENTATION-SPEC.md#sash", {"client_gate": "app.ENABLE_SASH_SYSTEM", "server_gate": "char_item.cpp sash handler", "safe_default": "Deny absorption if target incompatible"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_item_actions_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F14", "护符系统与元素属性池", ["pendant_slots", "elemental_resists", "pendant_refine"], "dual", "port_team", [ {"path": "metin2-client/src/port/UserInterface/GameType.h", "symbol": "c_Costume_Slot_Pendant = 23", "reachable_import": None}, {"path": "metin2-client/src/platform/ScriptLib/PendantScript.inc", "symbol": "PendantWindow", "reachable_import": "mt_pendant"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": [], "accepted_differences": ["Wear slot mapped cleanly in WEAR_COSTUME_PENDANT"]}, [], {"client": "src/platform/ScriptLib/PendantScript.inc", "server": "game/src/char_battle.cpp", "data": "item_proto", "resources": "icon/item/", "entrypoints": ["item.EQUIPMENT_PENDANT"]}, "AVA2-IMPLEMENTATION-SPEC.md#pendant", {"client_gate": "app.ENABLE_PENDANT_SYSTEM", "server_gate": "char_battle elemental calculation", "safe_default": "Zero resist bonus if unequipped"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_item_actions_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F15", "武器、坐骑、肩带时装与光效", ["costume_weapon_slot", "costume_mount_slot", "costume_sash_slot", "weapon_effects"], "dual", "port_team", [ {"path": "metin2-client/src/port/UserInterface/GameType.h", "symbol": "c_Costume_Slot_Weapon, c_Costume_Slot_Mount, c_Costume_Slot_Sash", "reachable_import": None} ], {"version": "1.0", "provenance": "XXF-CH5 & AVA2", "unresolved": ["Specific glow effect scripts for all 168 products"], "accepted_differences": ["Slots defined in GameType.h"]}, [], {"client": "src/port/UserInterface/InstanceBase.cpp", "server": "game/src/char_item.cpp", "data": "item_proto", "resources": "Client/pack/special_patch_common", "entrypoints": ["InstanceBase::SetWeapon"]}, "AVA2-IMPLEMENTATION-SPEC.md#costumes", {"client_gate": "app.ENABLE_COSTUME_WEAPON_SYSTEM", "server_gate": "char_item.cpp wear checks", "safe_default": "Standard weapon visual if costume empty"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_model_preview_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F16", "装备幻化 ChangeLook", ["changelook_window", "transmute_socket_storage", "appearance_override"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uiitemcombination.py", "symbol": "ItemCombinationWindow", "reachable_import": "uiItemCombination"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Socket vs extra field layout", "Fee schedule"], "accepted_differences": ["Only changes visual appearance, combat stats unchanged"]}, [], {"client": "src/port/UserInterface/PythonNetworkStreamPhaseGame.cpp", "server": "game/src/char_item.cpp", "data": "item_proto", "resources": "ui/changelook", "entrypoints": ["ChangeLookWindow.Open"]}, "AVA2-IMPLEMENTATION-SPEC.md#changelook", {"client_gate": "app.ENABLE_CHANGE_LOOK_SYSTEM", "server_gate": "char_item.cpp changelook handler", "safe_default": "Display original item vnum if appearance invalid"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F17", "灵魂绑定与解绑机制", ["soulbind_seal", "unbind_timer", "trade_custody_restrictions"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uitooltip.py", "symbol": "AppendBindInfo", "reachable_import": "uiToolTip"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Authoritative unbind duration (72h vs other)"], "accepted_differences": ["Authoritative server expiry timestamp"]}, [], {"client": "src/port/UserInterface/PythonItemModule.cpp", "server": "game/src/char_item.cpp", "data": "item_proto", "resources": None, "entrypoints": ["ItemData.IsBind"]}, "AVA2-IMPLEMENTATION-SPEC.md#soulbind", {"client_gate": "app.ENABLE_SOULBIND_SYSTEM", "server_gate": "char_item trade validation", "safe_default": "Deny trading/dropping sealed items"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F18", "手套装备与征服者准入", ["glove_wear_slot", "conqueror_gate", "glove_attributes"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uiequipmentdialog.py", "symbol": "EquipmentDialog", "reachable_import": "uiEquipmentDialog"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Exact WEAR_GLOVES slot index in wear40"], "accepted_differences": ["Gated behind Champion/Conqueror status"]}, ["F33"], {"client": "src/port/UserInterface/GameType.h", "server": "game/src/char_item.cpp", "data": "item_proto", "resources": "icon/item/", "entrypoints": ["item.EQUIPMENT_GLOVE"]}, "AVA2-IMPLEMENTATION-SPEC.md#glove", {"client_gate": "app.ENABLE_GLOVE_SYSTEM", "server_gate": "Conqueror level check", "safe_default": "Disallow wear if not conqueror"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F19", "箭筒系统(无限箭支与技能弹药)", ["quiver_item_type", "ammo_consumption_bypass", "quiver_expiry"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uitooltip.py", "symbol": "ITEM_TYPE_ARMOR quiver check", "reachable_import": "uiToolTip"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Specific subtype enum and duration check"], "accepted_differences": ["Preserves ordinary arrow consumption when quiver unequipped"]}, [], {"client": "src/port/GameLib/ItemData.h", "server": "game/src/char_battle.cpp", "data": "item_proto", "resources": None, "entrypoints": ["CPythonPlayer::CanShoot"]}, "AVA2-IMPLEMENTATION-SPEC.md#quiver", {"client_gate": "app.ENABLE_QUIVER_SYSTEM", "server_gate": "char_battle arrow check", "safe_default": "Standard arrow requirements"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F20", "魔法抗性削减(关闭的候选实现)", ["magic_reduction_apply", "damage_formula_branch", "tooltip_display"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_locale/locale/newcibn/locale_game.txt", "symbol": "TOOLTIP_APPLY_RESIST_MAGIC_REDUCTION", "reachable_import": None} ], {"version": "2.0", "provenance": "AVA2 archived inactive branch; CommonDefines.h:117 comments out ENABLE_MAGIC_REDUCTION_SYSTEM", "unresolved": ["Active rule authority; archived candidate is not authorized for activation"], "accepted_differences": ["Candidate maps apply98 to point144; default combat unchanged; no attribute items issued"]}, [], {"client": "src/platform/ScriptLib/AppliesScript.inc", "server": "src/server/game/src/port_magic_reduction.h", "data": "item_proto", "resources": None, "entrypoints": ["CHARACTER::ApplyPoint", "ENABLE_MAGIC_REDUCTION_SYSTEM guarded char_skill/char_battle branches"]}, "AVA2-IMPLEMENTATION-SPEC.md#magic_reduction", {"client_gate": "app.ENABLE_MAGIC_REDUCTION_SYSTEM == 0", "server_gate": "ENABLE_MAGIC_REDUCTION_SYSTEM undefined", "safe_default": "Preserve original resistance calculation"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F21", "现代 Cube Renewal 制作窗口与批量制作", ["cube_renewal_window", "versioned_recipes", "bounded_batch_craft"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uicuberenewal.py", "symbol": "CubeRenewalWindow", "reachable_import": "uiCubeRenewal"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Server durable receipt/batch progress support"], "accepted_differences": ["Server validates every unit atomically"]}, [], {"client": "src/platform/ScriptLib/CubeRenewalScript.inc", "server": "game/src/cube.cpp", "data": "cube.txt", "resources": "ui/cube", "entrypoints": ["CubeRenewalWindow.Open"]}, "AVA2-IMPLEMENTATION-SPEC.md#cube_renewal", {"client_gate": "app.ENABLE_CUBE_RENEWAL", "server_gate": "cube.cpp version check", "safe_default": "Classic cube fallback"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F22", "神话龙魂石品级与槽位扩展", ["mythic_grade", "dragon_soul_position_step", "set_bonuses"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uidragonsoul.py", "symbol": "DragonSoulWindow", "reachable_import": "uiDragonSoul"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["DRAGON_SOUL_GRADE_MAX update and position migration"], "accepted_differences": ["Preserves existing 5-grade positions safely"]}, [], {"client": "src/port/UserInterface/GameType.h", "server": "game/src/DragonSoul.cpp", "data": "dragon_soul_table.txt", "resources": "icon/item/", "entrypoints": ["DragonSoulWindow.SetItemData"]}, "AVA2-IMPLEMENTATION-SPEC.md#dragon_soul", {"client_gate": "app.ENABLE_DS_GRADE_MYTHIC", "server_gate": "DragonSoul.cpp grade checks", "safe_default": "Reject mythic equip if server unmigrated"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F23", "龙魂石洗炼 DS_CHANGE_ATTR", ["ds_change_attr_window", "attribute_pool_reroll", "material_deduction"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/dragon_soul_refine_settings.py", "symbol": "dragon_soul_refine_settings", "reachable_import": "dragon_soul_refine_settings"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Specific material item vnum and success rates"], "accepted_differences": ["Keeps existing duration and charge values intact"]}, ["F22"], {"client": "src/port/UserInterface/PythonNetworkStreamPhaseGame.cpp", "server": "game/src/DragonSoul.cpp", "data": "dragon_soul_table.txt", "resources": None, "entrypoints": ["CPythonNetworkStream::SendDragonSoulRefine"]}, "AVA2-IMPLEMENTATION-SPEC.md#ds_change_attr", {"client_gate": "app.ENABLE_DS_CHANGE_ATTR", "server_gate": "DragonSoul.cpp DS_CHANGE_ATTR", "safe_default": "Deny reroll if material missing"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F24", "全服排行系统 uirank", ["rank_board_window", "periodic_snapshot", "ranking_categories"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uirank.py", "symbol": "RankWindow", "reachable_import": "uiRank"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Snapshot job cadence and database indexes"], "accepted_differences": ["Queries bounded snapshot rather than live table scan"]}, [], {"client": "src/platform/ScriptLib/RankScript.inc", "server": "game/src/ranking.cpp", "data": "player database", "resources": "ui/rank", "entrypoints": ["RankWindow.Open"]}, "AVA2-IMPLEMENTATION-SPEC.md#ranking", {"client_gate": "app.ENABLE_RANKING_SYSTEM", "server_gate": "Ranking snapshot job", "safe_default": "Show 'data compiling' if snapshot not ready"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F25", "掷骰子系统", ["dice_chat_command", "dice_result_format"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uichat.py", "symbol": "CHAT_TYPE_DICE_INFO", "reachable_import": "uiChat"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Party loot roll contest rules unproven"], "accepted_differences": ["Only implements confirmed dice chat roll"]}, [], {"client": "src/port/UserInterface/PythonChat.cpp", "server": "game/src/cmd_general.cpp", "data": None, "resources": None, "entrypoints": ["/dice command"]}, None, {"client_gate": "app.ENABLE_DICE_SYSTEM", "server_gate": "cmd_general /dice handler", "safe_default": "Standard 1-100 random integer"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F26", "多代币商店系统", ["multi_currency_shop", "secondary_coin_types", "item_currency_pricing"], "dual", "port_team", [ {"path": "metin2-client/src/port/UserInterface/PythonShop.h", "symbol": "SetItemCurrency, GetItemCurrency", "reachable_import": "shop"}, {"path": "metin2-client/src/port/UserInterface/Ava2ShopWire.h", "symbol": "TAva2ShopPrice", "reachable_import": None} ], {"version": "1.0", "provenance": "AVA2 & XXF-CH5", "unresolved": [], "accepted_differences": ["Unified quotation with zeroed secondary coin when unused"]}, [], {"client": "src/port/UserInterface/PythonShop.cpp", "server": "game/src/shop.cpp", "data": "item_proto", "resources": None, "entrypoints": ["shop.SetItemCurrency"]}, "AVA2-IMPLEMENTATION-SPEC.md#multi_currency_shop", {"client_gate": "SHOP_COIN_TYPE_SECONDARY_COIN", "server_gate": "shop.cpp price deduction", "safe_default": "Reject purchase if currency insufficient"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "test_ava2_shop_wire.py", "result": "pass", "path": "metin2-client/tests/wiki/test_ava2_shop_wire.py"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F27", "全服摆摊搜索", ["private_shop_search_module", "filter_packet_143", "results_view"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uishopsearch.py", "symbol": "ShopSearchDialog", "reachable_import": "uiShopSearch"}, {"path": "metin2-client/src/port/UserInterface/PythonPrivateShopSearch.cpp", "symbol": "privateShopSearch", "reachable_import": "privateShopSearch"} ], {"version": "1.0", "provenance": "XXF-CH5 & AVA2", "unresolved": ["Immediate buy without logout"], "accepted_differences": ["Read queries hit current durable economy backend"]}, ["F28"], {"client": "src/port/UserInterface/PythonPrivateShopSearch.cpp", "server": "game/src/offlineshop_search_manager.cpp", "data": "port_economy_order", "resources": "ui/shopsearch", "entrypoints": ["privateShopSearch.Search"]}, "AVA2-IMPLEMENTATION-SPEC.md#shop_search", {"client_gate": "app.ENABLE_SHOP_SEARCH_SYSTEM", "server_gate": "HEADER_CG_SHOP_SEARCH", "safe_default": "Empty result set if no matching listings"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_python_ui_modules_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F28", "离线摆摊闭环与耐久结算", ["offline_shop_ui", "mt_economy_settlement", "order_custody"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uiofflineshop.py", "symbol": "OfflineShop", "reachable_import": "uiOfflineShop"}, {"path": "metin2-client/src/platform/ScriptLib/Ava2OfflineShopScript.inc", "symbol": "Ava2OfflineShop", "reachable_import": "mt_offline_shop"} ], {"version": "1.0", "provenance": "Current Durable Architecture", "unresolved": ["Online immediate settlement without reconnect transition"], "accepted_differences": ["MTECON1 transaction fence"]}, ["F29"], {"client": "src/platform/ScriptLib/Ava2OfflineShopScript.inc", "server": "game/src/port_economy.cpp", "data": "port_economy_store", "resources": "ui/offlineshop", "entrypoints": ["mt_offline_shop.Open"]}, "AVA2-OFFLINE-SHOP-INTEGRATION-20261021.md", {"client_gate": "app.ENABLE_OFFLINESHOP_SYSTEM", "server_gate": "PortOfflineShopEconomyReady()", "safe_default": "Read-only view if economy queue locked"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "test_offline_shop.py", "result": "pass", "path": "metin2-client/tests/wiki/test_offline_shop.py"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F29", "64 位金币端到端对齐", ["int64_gold_wire", "character_points_gold64", "shop_price_gold64"], "dual", "port_team", [ {"path": "metin2-client/src/port/UserInterface/Packet.h", "symbol": "TPacketGCExtendedPointGold", "reachable_import": None}, {"path": "metin2-client/src/port/UserInterface/PythonPlayer.h", "symbol": "CPythonPlayer::GetElk", "reachable_import": "player"} ], {"version": "1.0", "provenance": "AVA2 & 203 Server", "unresolved": [], "accepted_differences": ["int64_t wire width across all trade/shop/safebox/exchange packets"]}, [], {"client": "src/port/UserInterface/PythonPlayer.cpp", "server": "game/src/char.cpp", "data": "player.gold column bigint", "resources": None, "entrypoints": ["player.GetElk"]}, "AVA2-IMPLEMENTATION-SPEC.md#gold64", {"client_gate": "HEADER_GC_EXTENDED_POINTS", "server_gate": "gold 64-bit column migration", "safe_default": "Overflow checks prevent wrap-around"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [ {"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}, {"platform": "macos", "case": "port_packet_test", "result": "pass", "path": "build/port-gate/macos.log"} ], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F30", "Won 双货币体系与兑换", ["won_exchange_ui", "won_wallet", "yang_won_conversion"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uiwonexchange.py", "symbol": "WonExchangeDialog", "reachable_import": "uiWonExchange"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Authoritative server conversion tax/ratio verification"], "accepted_differences": ["Separate wallet fields for Yang and Won"]}, ["F29"], {"client": "src/platform/ScriptLib/WonScript.inc", "server": "game/src/char.cpp", "data": "player.cheque column", "resources": "ui/won_exchange", "entrypoints": ["uiWonExchange.WonExchangeDialog.Open"]}, "AVA2-IMPLEMENTATION-SPEC.md#won", {"client_gate": "app.ENABLE_CHEQUE_SYSTEM", "server_gate": "char cheque methods", "safe_default": "Disallow exchange if funds or limit exceeded"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F31", "单账号 5 角色位与选角兼容协议", ["5_slots_select_ui", "login_success_newslot_packet", "player_index_schema"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/introselect.py", "symbol": "SelectCharacterWindow (5 slots)", "reachable_import": "introSelect"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Login phase version handshake before TPacketGCLoginSuccess"], "accepted_differences": ["Slot indices 0-4 valid"]}, [], {"client": "src/port/UserInterface/PythonNetworkStreamPhaseSelect.cpp", "server": "game/src/desc.cpp", "data": "account.player_index", "resources": "uiscript/selectcharacterwindow.py", "entrypoints": ["introSelect.SelectCharacterWindow.SelectSlot"]}, "AVA2-IMPLEMENTATION-SPEC.md#5slots", {"client_gate": "app.ENABLE_PLAYER_PER_ACCOUNT5", "server_gate": "DESC::SendLoginSuccessPacket layout", "safe_default": "Legacy 4 slots if unnegotiated"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F32", "狼人新职业", ["wolfman_race", "claw_weapons", "lycan_skills", "motion_data"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/introcreate.py", "symbol": "CreateCharacterWindow.MAN_WOLF", "reachable_import": "introCreate"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Authoritative server skill formulas and creation enablement"], "accepted_differences": ["Gated by DISABLE_WOLFMAN_ON_CREATE in XXF"]}, ["F01"], {"client": "src/port/GameLib/RaceManager.cpp", "server": "game/src/char_skill.cpp", "data": "skill_proto, item_proto", "resources": "Client/pack/PC", "entrypoints": ["introCreate.CreateCharacterWindow.SelectGender"]}, "AVA2-IMPLEMENTATION-SPEC.md#wolfman", {"client_gate": "not app.DISABLE_WOLFMAN_ON_CREATE", "server_gate": "JOB_WOLFMAN enabled", "safe_default": "Wolfman creation disabled"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F33", "征服者等级与独立属性系统", ["conqueror_level", "conqueror_exp_table", "sungma_stats"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uicharacternew.py", "symbol": "CharacterWindow.ConquerorPage", "reachable_import": "uiCharacterNew"} ], {"version": "1.0", "provenance": "XXF-CH5", "unresolved": ["Server Sung Ma attribute calculations and database schema"], "accepted_differences": ["Independent level progress past 120"]}, ["F18"], {"client": "src/port/UserInterface/PythonPlayerModule.cpp", "server": "game/src/char.cpp", "data": "conqueror_level_table", "resources": "ui/character", "entrypoints": ["CharacterWindow.SetConquerorLevel"]}, "AVA2-IMPLEMENTATION-SPEC.md#conqueror", {"client_gate": "app.ENABLE_CONQUEROR_LEVEL", "server_gate": "Conqueror stat points sync", "safe_default": "Standard level 1-120"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "port_login_flow_test", "result": "pass", "path": "build/port-gate/macos.log"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F34", "宠物系统、6/7 属性与技能书", ["pet_system", "6th_7th_attributes", "skill_books_renewal"], "dual", "port_team", [ {"path": "metin2-client/src/port/UserInterface/Packet.h", "symbol": "ENABLE_ATTR_6TH_7TH", "reachable_import": None}, {"path": "metin2-client/src/platform/ScriptLib/CostumeAttrScript.inc", "symbol": "CostumeAttr", "reachable_import": "mt_costume_attr"} ], {"version": "1.0", "provenance": "XXF-CH5 & AVA2", "unresolved": ["Commercial catalog item verification"], "accepted_differences": ["PortItemExtra preserves attributes across trades"]}, [], {"client": "src/platform/ScriptLib/CostumeAttrScript.inc", "server": "game/src/item_attribute.cpp", "data": "item_attr", "resources": "ui/pet", "entrypoints": ["mt_costume_attr.Open"]}, "AVA2-IMPLEMENTATION-SPEC.md#67attr", {"client_gate": "ENABLE_ATTR_6TH_7TH", "server_gate": "item_attribute 6/7 handler", "safe_default": "Standard 5 attributes only"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [{"platform": "macos", "case": "test_native_systems.py", "result": "pass", "path": "metin2-client/tests/wiki/test_native_systems.py"}], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ), make_record( "F35", "战令、活动日历、Boss 与副本追踪", ["battlepass_window", "event_calendar", "dungeon_tracker", "boss_tracking"], "dual", "port_team", [ {"path": "喜相逢五区客户端_extracted_locale/root_scripts/uidungeonui.py", "symbol": "DungeonWindow", "reachable_import": "uiDungeonUI"}, {"path": "metin2-client/src/platform/ScriptLib/BattlepassScript.inc", "symbol": "BattlepassWindow", "reachable_import": "mt_battlepass"}, {"path": "metin2-client/src/platform/ScriptLib/FeatureServiceScript.inc", "symbol": "Calendar/Dungeons/Boss query", "reachable_import": "mt_feature_service"} ], {"version": "1.0", "provenance": "XXF-CH5 & mt_feature_service", "unresolved": [], "accepted_differences": ["mt_features canonical protocol with session request IDs"]}, [], {"client": "src/platform/ScriptLib/FeatureServiceScript.inc", "server": "game/src/cmd_general.cpp", "data": "quest/calendar", "resources": "ui/dungeon", "entrypoints": ["mt_battlepass.Open", "mt_feature_service.Service.Request"]}, "AVA2-IMPLEMENTATION-SPEC.md#mt_features", {"client_gate": "mt_feature_service.Service", "server_gate": "MTF1 command reply", "safe_default": "Render empty schedule if offline"}, {"source": "verified", "implementation": "ready", "build": "pass", "unit": "pass", "live": "pending", "device": "pending", "release": "staged"}, [ {"platform": "macos", "case": "port_feature_service_test", "result": "pass", "path": "build/port-gate/macos.log"}, {"platform": "macos", "case": "port_battlepass_test", "result": "pass", "path": "build/port-gate/macos.log"}, {"platform": "macos", "case": "port_boss_test", "result": "pass", "path": "build/port-gate/macos.log"} ], {"local_baseline": "pass", "live_baseline": "pending", "release_gates": ["port_gate.sh"]} ) ] for feature in features: if feature['id'] == 'F19': feature['implementation']['server'] = 'src/server/game/src/port_quiver.h' feature['implementation']['client'] = 'src/port/UserInterface/PythonPlayerSkill.cpp' feature['implementation']['entrypoints'] = ['CHARACTER::GetArrowAndBow', 'CHARACTER::UseArrow', 'CPythonPlayer::__HasEnoughArrow'] feature['rules']['unresolved'] = ['79501 excluded due conflicting price/duration metadata; timed 79502-79504 candidate generated but not installed', 'Native arrow-type visual sync and matched live/device/item-lifecycle acceptance'] feature['rules']['accepted_differences'] = ['AVA2 active quiver9 semantics; claw8 reserved only; explicit pre-shot expiry checks; classic arrow visual fallback; whole-feature macro stays off'] feature['blockers'] = list(feature['rules']['unresolved']) feature['status']['source'] = 'partially_verified' for source in feature['source']: path = os.path.join(os.path.dirname(repo_root), source['path']) source['sha256'] = sha256_file(path) if feature['id'] == 'F24': feature['implementation']['server'] = 'src/server/game/src/port_rank_runtime.h' feature['implementation']['entrypoints'] = ['game.GameWindow.OpenRanking', 'Service.Request(rank)', 'PortRankQuery'] feature['rules']['unresolved'] = ['stone/monster/boss/dungeon/Gaya/fish/chest counter authorities and original five-zone rules'] feature['rules']['accepted_differences'] = ['Saved DB top10 for level/playtime/gold, 60-second per-core cache, value DESC/id ASC ties; other boards explicitly unsupported'] feature['status']['source'] = 'partially_verified' feature['blockers'] = feature['rules']['unresolved'] + ['Real MySQL query/EXPLAIN, matched-client live and Android acceptance pending'] manifest = { "schema_version": "1.1", "description": "XXF-CH5 to Cross-Platform Client Feature Migration Tracking Manifest", "baseline": { "client_head": client_head, "server_head": server_head, "preserves_dirty_worktree": True, "gate_script": "scripts/port_gate.sh", "snapshot_kind": "dirty_working_tree_heads_only", "last_verified_gate_status": None, "completion": "PARTIAL; generated metadata is not acceptance evidence" }, "features": features } with open(out_path, 'w', encoding='utf-8') as f: json.dump(manifest, f, indent=2, ensure_ascii=False) f.write("\n") print(f"Generated {len(features)} feature records in {out_path}") if __name__ == "__main__": main()