Empty BUY basket: catalog classification collision
Read-only static follow-up. No production edits or runtime mutations. The
parent supplied local/shop-purchase-smoke/inspect-add.png, showing a visible
Lock Pick catalog icon and 228-credit purchase total, with empty BUY cells.
That image establishes the symptom, not the cause by itself.
Target DDR SHA-256
3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883.
Reused local/shop-research/wire/gui-refresh-batch.json and
gui-start-batch.json first. New focused click/drag evidence is exported in
ui-evidence.json (includes prior records imported from the latest DDR
snapshot). Owned REA session closed.
Observed cause
DDR TradeView startup 0x100485b0 stores its three identities as:
| Source | View offset | Role in observed consumers |
|---|---|---|
| Actor | +0x6c | Player sale basket owner |
| Trade A | +0x64 | Actual partner, purchase basket owner and catalog lookup owner |
| Trade B | +0x5c | Catalog row classification tag; nonzero also selects shop mode |
Its exact mode condition is ordinary trade only when BOTH B.type and B.id are zero. B=(0,1), B=(111,0) and B=(51035,0) all select shop mode.
0x10048f50 clears and rebuilds the BUY grid+0x54 by calling
TradeGetInventory(A) and rendering each row with owner=A. For catalog rows,
it calls GetContainerInventoryList(A), but deliberately renders them with
owner=B. B is not the catalog lookup owner in this path.
Row renderer 0x10048a20 compares the supplied owner by VALUE in this order:
- If owner==B, treat it as catalog. If the same item is already in catalog grid+0x50, return without adding any icon.
- Else if owner==A, add BUY icon to grid+0x54 with drag kind0x35.
- Else if owner==actor, add SELL icon to grid+0x58 with drag kind0x36.
The current handshake A=machine,B=machine makes the first comparison match while rendering BUY entries. The already-populated catalog suppresses them before the BUY branch is reached. Cost refresh is independent and continues to read the correct machine basket. This directly accounts for the observed empty cells and correct cost. It is an original native branch reached through the supplied identities; no WASM adapter defect or missing extra notification is needed to explain the symptom.
Exact original instruction boundaries are retained in generated source
client/game/ddr.dll/lifted-0018.c:sub_2B048A20: owner.id comparison at
0x2b048a58, owner.type comparison at0x2b048a6c, catalog membership test at
0x2b048a75 and early exit at0x2b048a7d. BUY comparison begins0x2b048abb.
sub_2B048F50 is the refresh and sub_2B0485B0 the startup.
Reused Evidence:
ev_f5717956dbc1f446ae83949a01f62f1535d4e2f743295d46fb199db6490f039e.
This corrects the earlier A=machine,B=machine recommendation in
local/shop-research/wire/gui-refresh.md and handshake.md: those reports
correctly found that B must be nonzero, but missed the classification collision.
Observed click and drag requests
New 0x10048c40 handles native item clicks:
- Drag kind0x34 (catalog) sends TradeAdd with A=view+0x64, B=item reference.
- Drag kind0x35 (BUY) sends TradeRemove with A=view+0x64, B=item reference.
- Drag kind0x36 (SELL) sends TradeRemove with A=view+0x6c, B=item reference.
New 0x10048b40 handles drag/drop and uses the same partner/player owner
identities. Neither uses view+0x5c as the request's source owner. Thus changing
the catalog tag does not require changing purchase action4/5 identities.
The existing (111,index) catalog/basket item references remain correct.
Evidence:
| Procedure | Evidence ID |
|---|---|
| Click10048c40 | ev_a2666622692785910a4d4200419e7d5872afd02b32a33edd0c7e378b2d8b41c2 |
| Drop10048b40 | ev_1e4ca4760700520f2c374dd71b4f2d5320e52b388e41e0cb8868d47c5a630fe8 |
Minimal proposed correction and unknown
Preserve machine-subject action0 A=player,B=zero. Preserve player-subject
action0 A=machine, but choose a nonzero B distinct from both the machine and
the player. (111,0) reuses the native catalog identity namespace and works
for the inspected consumers. (51035,0) and (0,1) also satisfy the observed
conditions. No historical server B value was recovered, and none of those
choices is claimed as an observed original payload. The synthetic tag is a
reconstruction choice; the requirement that it be distinct is native evidence.
Keep B=(0,0) for ordinary player trade.
After the one-field correction, verify in the existing native runtime that
Add produces a visible BUY icon, clicking it sends action5 with machine owner
and (111,0), the count/quote decrease, and sale Add/Remove still uses player
owner with pages104/108. No additional icon packet or client patch is justified
by this evidence. This worker has not performed that runtime verification.