feat: add CH5 cube renewal presentation, trade level UI, audit manifests, and test fixtures

This commit is contained in:
shen
2026-10-23 20:17:26 -07:00
parent c1de05dc98
commit d6617e01f7
96 changed files with 6059 additions and 106 deletions
+63 -4
View File
@@ -28,7 +28,7 @@ def make_record(fid, name, subfeature, scope, owner, sources, rules, deps, impl,
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',
reviewed_partial = {'F02','F03','F04','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')
@@ -666,14 +666,73 @@ def main():
]
for feature in features:
if feature['id'] == 'F03':
feature['source'][0]['reachable_import'] = 'uiTarget'
feature['rules']['accepted_differences'] = ['Electric/fire/ice/wind/earth/dark attack-affinity flags, not inferred weakness or drop rates; lowest known flag wins for multi-element templates']
feature['implementation']['resources'] = 'd:/ymir work/ui/game/12zi/element/*.sub'
feature['implementation']['entrypoints'] = ['uiTarget.TargetBoard.SetEnemyVID', 'uiTarget.TargetBoard.SetRaceElement', 'uiTarget.TargetBoard.ResetTargetBoard']
feature['status']['source'] = 'partially_verified'
feature['blockers'] = ['Actual server template consistency, rendered visual and Android device acceptance pending']
feature['protocol_contract_ref'] = 'AVA2-IMPLEMENTATION-SPEC.md#ch5-target-trade'
if feature['id'] == 'F04':
feature['source'][0].update(symbol='ExchangeDialog.OpenDialog', reachable_import='uiExchange')
feature['implementation']['server'] = 'src/server/game/src/exchange.cpp'
feature['implementation']['entrypoints'] = ['CHARACTER::ExchangeStart', 'CPythonNetworkStream::RecvExchangePacket', 'CPythonExchange::SetTargetLevel', 'uiExchange.ExchangeDialog.OpenDialog']
feature['rules']['provenance'] = 'XXF-CH5 display with PORT server snapshot adaptation; not recovered original CH5 wire'
feature['rules']['accepted_differences'] = ['51-byte GC_EXCHANGE START.arg3 carries partner opening-level snapshot, 0 legacy/unknown; never actor-cache fallback; levels 1..255; not a live level-up feed']
feature['status']['source'] = 'partially_verified'
feature['blockers'] = ['Matched two-player real-server trade/cancel/reconnect and Android device acceptance pending; title shows partner level, self snapshot exposed through API']
feature['protocol_contract_ref'] = 'AVA2-IMPLEMENTATION-SPEC.md#ch5-target-trade'
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['implementation']['entrypoints'] = ['CHARACTER::GetArrowAndBow', 'CHARACTER::UseArrow', 'CHARACTER::PortEnableQuiverSync', 'CPythonPlayer::__HasEnoughArrow', 'CPythonNetworkStream::RecvQuiverState', 'mt_quiver_motion.LoadGameData']
feature['rules']['unresolved'] = ['79501 excluded due conflicting price/duration metadata; timed 79502-79504 candidate generated but not installed', 'Matched real-server item lifecycle, mounted/costume weapon combinations, actual attack timing and Android device acceptance']
feature['rules']['accepted_differences'] = ['AVA2 active quiver9 semantics; claw8 reserved only; pre-shot expiry checks; capability2048 negotiated GC219 instead of expanding legacy parts; AVA2 special MSA missing in CH5; classic fallback when assets absent; whole-feature macro stays off']
feature['blockers'] = list(feature['rules']['unresolved'])
feature['status']['source'] = 'partially_verified'
if feature['id'] == 'F21':
feature['protocol_contract_ref'] = 'AVA2-IMPLEMENTATION-SPEC.md#ch5-cube-catalogue'
feature['implementation']['server'] = 'src/server/game/src/port_cube_catalog.inc'
feature['implementation']['server_ownership'] = ['src/server/db/src/Cube.cpp', 'src/server/common/cube_drain.h', 'src/server/common/cube_fence.h', 'src/server/db/src/CubeRuntime.cpp', 'src/server/db/src/SQLFences.h', 'src/server/common/sql_fence_router.h', 'src/server/common/cube_handshake.h', 'src/server/game/src/port_cube_actor.cpp', 'src/server/game/src/port_cube_flush.inc']
feature['implementation']['entrypoints'] = ['game.GameWindow.BINARY_Cube_Open', 'cube_renewal.OpenPreview', 'cube_renewal.CheckBatch', 'PortCubeQuery', 'PortCubeStart']
feature['rules']['version'] = '2.0-read-only'
feature['implementation']['server_ownership'] += ['src/server/common/cube_mutation.h', 'src/server/game/src/port_cube_item.inc', 'src/server/game/src/port_cube_quest.h']
feature['implementation']['server_ownership'] += ['src/server/common/cube_gold_intent.h', 'src/server/common/cube_gold_store.h', 'src/server/db/src/CubeGold.cpp']
feature['implementation']['server_ownership'] += ['src/server/common/cube_gold_outbox.h']
feature['implementation']['server_ownership'] += ['src/server/common/cube_gold_source.h']
feature['implementation']['server_ownership'] += ['src/server/common/cube_owner.h', 'src/server/common/cube_owner_types.h']
feature['implementation']['server_ownership'] += ['src/server/common/cube_recovery.h', 'src/server/game/src/port_cube_recovery.cpp', 'src/server/game/src/port_cube_recovery.h']
feature['implementation']['server_ownership'] += ['src/server/common/cube_image.h']
feature['implementation']['server_ownership'] += ['src/server/common/cube_live_image.h']
feature['implementation']['server_ownership'] += ['src/server/common/cube_image_ack.h', 'tools/cube/image-ack-schema.sql']
feature['implementation']['server_ownership'] += ['src/server/common/cube_release.h', 'tools/cube/release-schema.sql']
feature['implementation']['server_ownership'] += ['src/server/common/cube_presentation.h', 'src/server/game/src/port_cube_publish.cpp', 'src/server/game/src/port_cube_publish.h']
feature['implementation']['client_presentation'] = ['src/port/common/CubePresentation.h', 'src/port/UserInterface/PythonPlayerCubeView.inc', 'src/port/UserInterface/PythonNetworkStreamPhaseGameAva2Queries.cpp', 'src/port/UserInterface/GameType.h']
feature['implementation']['server_ownership'] += ['src/server/game/src/port_cube_restore.h', 'src/server/game/src/port_cube_restore.cpp', 'src/server/game/src/port_cube_lifecycle.inc', 'src/server/game/src/event.cpp', 'src/server/game/src/event_queue.cpp']
feature['implementation']['server_ownership'] += ['src/server/game/src/port_cube_apply.cpp', 'src/server/game/src/port_cube_apply.h', 'src/server/game/src/port_cube_registry.inc', 'src/server/game/src/char.h']
feature['implementation']['server_ownership'] += ['src/server/common/cube_craft.h', 'src/server/common/cube_receipt.h', 'src/server/common/cube_random.h']
feature['implementation']['server_ownership'] += ['src/server/common/cube_item_ids.h', 'src/server/game/src/port_cube_ids.h', 'src/server/game/src/item_manager_idrange.cpp']
feature['implementation']['server_ownership'] += ['src/server/game/src/port_cube_factory.cpp', 'src/server/game/src/port_cube_factory.h', 'src/server/game/src/item_manager.cpp', 'src/server/game/src/item.cpp', 'src/server/game/src/item.h', 'src/server/game/src/item_attribute.cpp']
feature['rules']['provenance'] = 'AVA2 active WORLDARD/COPY branches; actual locale/cube.txt; current classic s_cube_proto'
feature['rules']['unresolved'] = ['Complete game actor quiescence, especially durable retention of legitimate post-Submit mutations/rewards and direct setters/global callbacks; conservative admission and invalidation are not a freeze proof; both gates remain false', 'Game release-readiness and DB resume handoff, saving/expiry-event restoration and thaw; classic count-bearing action packets still BYTE; full character/non-normal-window recovery; copy attributes and success-rate items', 'Matched live game/db plus Android device asset consistency and presentation acceptance']
feature['rules']['accepted_differences'] = ['Game/client runtime remains read-only catalogue and 1..100-attempt preview; no craft action', 'Candidate SQL backend has fixed draws and atomic costs/rewards; v2 lifecycle adds durable per-item locks, correlated drain core and exact-image resync ACK', 'DB runtime guard methods are wired into saves/loads/deletes/economy and item flush; absent schema preserves baseline, partial schema fails closed', 'DB Arm/Submit adapter drives actual SQL FIFOs; internal header78 bounded LE handshake and game preparation/seal/final-save order are compiled but ingress is disabled, not a complete actor-freeze implementation', 'Only explicit pre-Begin cancellation ACK may clear preparation; timeout/lost transport/late cancel retain hold; detached dirty items included before Submit', 'Candidate reserves normal-inventory cells without merging reward stacks; copy recipes explicitly refused', 'Refuse unsupported multi-reward recipes rather than guessing semantics', 'Do not copy archived reward-count/item-allocation/copy-initialization bugs']
feature['activation_and_shutdown'] = {'client_gate': 'Capability4096 only enables labeled read-only preview; ENABLE_CUBE_RENEWAL_WORLDARD remains 0', 'server_gate': 'No public crafting action; internal Start/settlement/live-image handlers remain behind both false hard gates', 'safe_default': 'Classic Cube unchanged; unsupported server does not open modern preview'}
feature['rules']['accepted_differences'].append('ResumeCheck24/25 is an internal read-only preflight, NOT a resume grant: one pinned account transaction rechecks current normal inventory/gold, exact terminal ACK/history, current broker/no lease/fence, sealed source/applied credits, fixed-roll DONE reconstruction and permanent ID reservations. Runtime requires original still-playing peer/handle/session/ownership and RELEASED context, retaining all memory holds. Modern terminal RELEASED receipts also quarantine player/account saves/loads and current/reserved item IDs after DB restart, when memory holds disappear; no activation receipt or unlock path exists yet. No actual game sender or save-enable/thaw; both ingress gates remain false.')
feature['rules']['accepted_differences'].append('Candidate original-LIVE game now sends immutable terminal Release22 only after durable image ACK, authoritative publication and paused-event preparation. Every send/retry and accepted reply validates complete applied seal/image, registered restoration plan and all36 identity-rebound shortcuts; bounded shared Tick retries retain original session/cookie/batch/image. LiveReleased stops SQL retries but leaves actor held, item skip-save and DB memory gates intact. No DB resume grant, save-enable runtime caller or thaw; both ingress gates remain false.')
feature['rules']['accepted_differences'].append('Candidate held actor prepares registered restored-item expiry events only after publication and exact full-seal checks. Real-time, started-first-use and absolute unique clocks preserve persisted deadlines and remain paused while either held or skip-save. Unequipped wear, unstarted-first-use and played-time unique durations do not start. Exact owner/item/VID/full-metadata plan validation precedes an allocation-free skip-save clearing primitive, which has NO runtime caller pending authenticated DB resume. Actual event creation owns info on allocation failure and queue insertion cleans pending nodes; dispatch detaches a dequeued node before callbacks may cancel it. This is preparation, not save/event activation or thaw.')
feature['rules']['accepted_differences'].append('Revision25 GC93 op11 candidate publishes one bounded LE gold64/225-normal-inventory/36-shortcut view after durable ACK and full actor-seal recheck. Shortcut bindings captured before replacement are remapped by permanent item ID; consumed inputs never bind to a reward reusing the cell. Client stages full proto/grid/shortcut validation and commits without callbacks, preserves other windows and ignores exact/stale replay without overwriting later state. Internal client item counts widen only in memory; classic wire structs remain BYTE, with revision25 op12 full-count/extra companions on existing item set/update paths and old op10 fallback. Enqueue is not client receipt/rendering or thaw; ordinary save/expiry clocks and resume remain paused.')
feature['rules']['accepted_differences'].append('Candidate original-LIVE terminal SQL release uses optional release-addon v1: inside one account transaction it revalidates full ACK/current SQL/current LIVE grant, writes immutable batch/grant/image receipt, retires the lease and item fences, and sets RELEASED. Permanent item-ID tombstones remain. Exact replay checks current broker and refuses any conflicting newer lease/fence/history. Internal messages22/23 stay hard-gated; the candidate game sender waits for exact publication and paused-event preparation, without activating saving/events. DB memory save/load hold survives SQL release; trusted disconnect can reconcile lost release-COMMIT replies without inventing revocation or thaw. Resume, full actor readiness and gameplay acceptance remain incomplete.')
feature['rules']['accepted_differences'].append('Candidate original LIVE normal-inventory/gold image now installs persisted metadata without reward RNG or save/event side effects and verifies all-window readback. Internal LiveImageAck=20/Answer=21 carries the complete canonical image; optional image-ACK addon v1 stores immutable full batch/grant/image inside the same account Resync transaction after current SQL and original LIVE authority proof. Lost commit reply retries revalidate ownership. Actor rechecks full applied seal before every bounded ACK retry and initial ACK answer. Acknowledged is still held: no item-fence removal, owner release, save/event resume, UI publication or thaw.')
feature['rules']['accepted_differences'].append('Conservative admission denies item clocks/locks, PC timers, running quests, switchbot, party/combat/lifecycle hazards; whole switchbot rolls defer before cost/RNG. Gold/item/quest/lifecycle notifications latch invalidation; internal Invalidate aborts only unprepared fences, never accepted receipts. Both ingress gates remain false.')
feature['rules']['accepted_differences'].append('Gold-addon v2 / base Cube v2: positive intents persist and SQL credit follows verified DONE on clean FROZEN. Candidate non-party ground-gold pickup fsyncs outbox before removal, skips local credit/save, and retries exact bound enqueue/ACK. Frozen reply durably closes this source; only after every delivery ACK may its exact ordered event-ID manifest be sealed in SQL. Empty batches also need closure; new events after sealing are rejected and Resync/Release require matching seal plus completed credits. Real ingress remains disabled; trusted owner recovery, other mutations, ABORTED and actual crafting/image pipeline remain incomplete.')
feature['rules']['accepted_differences'].append('Owner-addon v1 candidate adds database-scoped connection lock and boot/connection generation, atomic fence+lease binding, trusted disconnect revocation and authenticated non-playing-account held adoption after exact original source/DONE/wallet checks. Adopted owners remain held; all registered owner rows block legacy release and ordinary loads/saves. No public recovery transport, owner-aware image/thaw or core-boot old-cache revocation is enabled.')
feature['rules']['accepted_differences'].append('Held adoption and ambiguous Retry proposals are now registered before returning, so repeated disconnect/logout/auth-record replacement can revoke them without a client ACK. Rejected commits reuse the same proposal cookie; durable non-ownership proof permits retiring only obsolete in-memory recovery slots. Peer/logout callbacks perform no SQL; a joint round-robin queue permits at most two revoke/finalize jobs per tick, with five-second failure backoff. This is pre-load lifecycle recovery, not restored gameplay or an absolute SQL latency guarantee.')
feature['rules']['accepted_differences'].append('Disabled internal header78 recovery preflight is wired before classic character load. Canonical RecoveryClaim=11/RecoveryAnswer=12 uses a 160-byte LE owner grant; only explicit unheld RecoveryClear allows one still-guarded classic load. Granted never loads/thaws. Game pins descriptor pointer/handshake/account/player/session and bounds retries; actual DB reply parser now permits GoldAck, GoldCloseAck and RecoveryAnswer as well as Answer, rejecting request-direction messages. Old core revocation and authoritative image restore remain incomplete; both gates stay false.')
feature['rules']['accepted_differences'].append('RecoveryImageRequest=13/Answer=14 now transports only gold+normal-inventory image, not full character restoration. Resync validates the current adopted grant inside the same account transaction, original sealed source, verified ok DONE and fixed-draw settlement, exact expected item bytes, all applied credits/current wallet even for zero credits, item locks/reservations. Previously issued owner image cannot be overwritten. Game validates item proto/grid and retains bytes without loading, applying, acknowledging or thawing; old core/full data/ACK release remain incomplete.')
feature['rules']['accepted_differences'].append('Disabled original-live-owner Prepare=15/Execute=16/CraftAnswer=17 now calls the actual durable backend with authorization inside the same account transaction/pinned SQL connection. Requires clean FROZEN, current LIVE grant and original exact sealed source; fixed DB entropy draws persist once, identity-only Execute/replay returns canonical CCR1 receipt. Actual actor Tick advances only after durable source-close ACK, validates receipt against batch/proto, bounds request retries and retains actor hold after completion. Batch/factory/permanent-ID construction, public craft action, local apply/ACK/thaw and full mutation audit remain incomplete.')
feature['status']['source'] = 'partially_verified'
feature['blockers'] = list(feature['rules']['unresolved'])
for source in feature['source']:
path = os.path.join(os.path.dirname(repo_root), source['path'])
source['sha256'] = sha256_file(path)
+4 -4
View File
@@ -21,16 +21,16 @@ MARKER = 'CH5_TEST_RESULT='
ASSOCIATIONS = {
'F01': ['test_feature_manifest', 'test_model_preview'],
'F02': ['test_queries', 'test_drops'],
'F03': [], 'F04': [], 'F05': [], 'F06': [], 'F07': [], 'F08': [],
'F09': ['test_special_storage', 'test_legacy_item_ids'],
'F03': ['test_target_element'], 'F04': ['test_trade_level', 'test_trade_level_ui'], 'F05': [], 'F06': [], 'F07': [], 'F08': [],
'F09': ['test_special_storage', 'test_legacy_item_ids', 'test_inventory_pages'],
'F10': ['test_channel', 'test_native_channel', 'test_ava2_channel_registry', 'test_live_endpoint'],
'F11': ['test_catalogue', 'test_chest', 'test_ava2_chest', 'test_pickup', 'test_ava2_pickup', 'test_drops', 'test_queries'],
'F12': ['test_attr_lock', 'test_attr_lock_snapshots', 'test_attr_lock_ui', 'test_attr_lock_use', 'test_attr_lock_views', 'test_switchbot', 'test_switchbot_matching'],
'F13': ['test_sash'], 'F14': ['test_pendant', 'test_applies'],
'F15': ['test_costume_slots', 'test_mount', 'test_product_costume_runtime', 'test_costume_products', 'test_costume_attr'],
'F16': ['test_shop_appearance'], 'F17': ['test_extended_items'],
'F18': ['test_extended_items'], 'F19': ['test_quiver', 'test_quiver_runtime'],
'F20': ['test_magic_reduction'], 'F21': ['test_cube_gold_debit'],
'F18': ['test_extended_items'], 'F19': ['test_quiver', 'test_quiver_runtime', 'test_quiver_sync', 'test_quiver_motion', 'test_quiver_assets', 'test_quiver_staging'],
'F20': ['test_magic_reduction'], 'F21': ['test_cube_gold_debit', 'test_cube_catalog', 'test_cube_batch', 'test_cube_fence', 'test_cube_db_guards', 'test_cube_runtime', 'test_sql_fence_router', 'test_cube_handshake', 'test_cube_mutation', 'test_cube_gold', 'test_cube_outbox', 'test_cube_source', 'test_cube_owner', 'test_cube_recovery', 'test_cube_image', 'test_cube_craft', 'test_cube_presentation', 'test_cube_restore', 'test_cube_resume'],
'F22': ['test_dragonsoul_alchemy'], 'F23': ['test_dragonsoul_alchemy'],
'F24': ['test_rank', 'test_rank_runtime'], 'F25': [],
'F26': ['test_ticket_shop', 'test_ava2_ticket_shop', 'test_gaya_market', 'test_gaya_runtime', 'test_gaya_catalog'],