Files

35 lines
2.0 KiB
Markdown

# Auction search writer fixture reconciliation
The shipped-source codec's browse and commodity tests failed eight exact-vector
comparisons. Their expected rows always censored server-side information. The
current serializer instead emits an account identity derived from a known
seller's character counter (WowAccount type29), an empty ItemGuid and an EndTime.
This avoids the client treating every seller as its own empty account. This
change already exists in production; this work changes only test expectations.
The expected vectors retain the independently captured original AuctionItem
layout. Search-row censor bit11 is cleared, and the declared server-side fields
are inserted after price fields and before any bucket key. All counts, GUIDs,
prices, key boundaries, and other bytes remain exact. The original captured
Trinity literals and their delay/alignment checks are retained unchanged.
EndTime is the only variable field. The test records integer wall-clock times
immediately before and after serialization, requires each timestamp to lie in
that interval plus floor(DurationLeft/1000), then zeros only its known four-byte
slot for the complete packet comparison. A negative test rejects too-early and
too-late values, truncation, and an unrelated changed byte. This is not a general
mask of timestamp-looking data.
Timed vectors are bytes subclasses carrying explicit `(offset, duration)`
metadata. Any external consumer of `vectors()` must use `check_reply` or implement
the same bounded timestamp validation; plain byte equality with their zero
placeholders is not sufficient.
Validation: five unittest methods pass, including both complete-body suites,
the original captured input-difference check, malformed DTO cases and the new
clock-normalization negatives. Coverage retains the fifty-row commodity window,
maximum key, ordinary bid/buyout rows, and v1 controls. Input codec is the peer's
shipped-source closure ELF SHA256
`7feda76720621c130ecd51029f7958c05869e222c5eb8d525fb9f6dffcb29171`.
No serializer, client artifact, baseline or installation was changed.