Shop drafts during control-panel edits
Live inventory edits retire the current world session and send a playfield teleport followed by a redirect. A shop draft owns no items: offered rows remain in the durable inventory until Accept commits the transaction. The replacement session starts without a shop, and old-session requests fail the current-client check. A failed control-panel save leaves both the session and its draft intact.
This regression audit did not reproduce the earlier nearby-terminal range
failure or the separate WASM unwind freeze. Both remain open in feature backlog.
There is no production protocol change in this milestone.
Original client lifecycle and range check
The retained 14.9.1 evidence separates three operations:
- KKR actor destruction disposes the trade helper at actor
+0x160, invokes cancellation, and frees the separate action validator at+0x180. - Trade cancellation clears actor flag 8 and emits
CMsg_TradeCompleted. DDR closes the trade window and clears its active byte at+0x4c. Cached partner identities and old quote fields can remain while inactive. - DDR shutdown destroys the trade view singleton. A normal trade cancellation does not require that module shutdown.
Original KKR 100774a0 only cancels while actor flag 8 is set. Constructor
10077320 clears that flag. Sending a late abort after actor replacement can
therefore be ignored. DDR 100485b0 also ignores trade startup while its view
is already active. These are useful diagnostic boundaries, not evidence that
the reported failed edit actually took either path.
Use validation is independent of the trade view's cached partner. KKR
1004d350 freshly resolves the command's target and compares exact global
positions against the action helper's owner. An unparented target fails at
Euclidean distance greater than five metres. The helper's first DWORD stores
its actor; actor getter 10071dd0 supplies that helper. LLR 10017f50 delegates
global position to QQR 10011200, selecting vehicle +0x54 or +0xe8
according to vehicle +0x28. Unconditional relative-position probes are
insufficient for parented vehicles.
Native validation can reject a command before it reaches the wire. A separate server feedback entry has similar range-error wording, so chat text alone does not identify which layer rejected the interaction. Capture the clicked identity, exact positions, helper owner and outgoing Use together.
The old smoke capture's active partner and ray hit identify Tools, while its separate hardcoded shop probe identifies Medical. That mismatch does not prove a stale object or incorrect native target. The old failure cannot be diagnosed from that probe alone.
The new scene probe also finds static 51005:3221226655, template 43553, at
[176.325,5.00036,129], separately from armor vending 51035:3221226655 at
[192,5,139.5]. These are distinct full identities despite equal numeric IDs.
The subsequent typed-identity audit reproduces a
wrong shop from an actual tutorial-object click and removes that numeric alias.
The original scene census and distinct native vending clicks resolve this
routing issue; the control-edit lifecycle limitations above remain separate.
The source ledger is docs/research-notes/shop-edit-research/native/README.md, with 14
complete retained original REA records, 11 checked citations and supporting
maintained-source ranges. Original KKR SHA-256 is
a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.
Principal cancellation evidence is
ev_3b068fe016d29c9c6d60176e86341dcd106df72df90b32492a9c956186bf61c7;
range validation is
ev_6483e6cd8d2790a26b1aca8299d6837e26f7efbde18efd5fa8babcb9a5c4abc1.
No fresh binary analysis session was opened. The original scene teardown's
complete same-playfield destruction ordering remains unproven statically.
Automated regressions
server/shop_control_edit_test.go stages both a purchase and a sale before
each public HTTP edit. Cases assign another item, move the offered item, and
unassign the offered item without deleting its instance. They verify exact
live/restored ownership, unchanged cash, the teleport/redirect sequence, and
old Accept requests before and after a native world reconnection.
The replacement connection also sends an unsolicited Accept, reopens Tools over the native wire, verifies an empty draft, and completes a fresh purchase. A separate injected SQL failure verifies rollback of profile, cash and item placement, preservation of the active session/draft, and successful acceptance of that original basket afterward. The Tools fixture pays 734 for the axe and charges 228 for the lock pick; 1000 starting cash becomes exactly 1506. Three race-detector repetitions passed in 98.723 seconds. Vet passed. The full Go suite passed 4875 tests and subtests: server 805.656 seconds and game data 7.621 seconds.
Actual WASM checks
Two owned clients used the published build and GPU renderer. Native mouse input opened Tools in playfield 1183. Public control routes performed the edits; native heaps, world WebSockets and SQLite were read for comparison.
An empty draft, a sale-only draft and a mixed draft all closed on inventory assignment. The verified mixed quote was 230 purchase / 13 sale. Each edit replaced the actor and action helper, restored the staged sale, retained 20000 cash and reopened an empty catalog within two metres of Tools. Cached partner IDs and quote values remaining in the inactive view were inert.
An open backpack and an item held on the cursor also survived edits with
advancing native ticks and all item IDs accounted for. The range check was
tested by moving beyond five metres and returning nearby without reloading
the page. At 5.125 metres the corrected repeat captured the native range
feedback and no outgoing Use; at 1.990 metres it reopened normally. A new
230-credit purchase then completed, leaving 19770 cash and six durable items.
Page reload recovered all six real item identities and the same cash.
Verification details and bounded limitations are recorded in
local/shop-edit-smoke/verification.json.
The first mixed-basket input attempt added and then removed its purchase;
it is retained as a sale-only case. A later snapshot explicitly verifies
both quote fields before the mixed edit. The initial harness also stopped on
a missing chat-probe file after its completed checks; its cleanup closed the
owned clients. Another browser launch reset the camera, so its missed clicks
were excluded from range conclusions. The corrected repeat explicitly selected
first person and checked the hit identity. Those harness errors are not client
failures. Page and worker error listeners captured no client errors; the
observed unwind freeze still needs a reproduction and full stack.
Both owned clients were closed. Cleanup removed only players 55/56 and their six items; unrelated-row hashes, foreign keys and SQLite integrity passed, retaining players 8/24. The single normal preview was restarted on its default HTTPS and game ports. No WASM rebuild or production catalog change was needed.