srRESEARCH / EVIDENCE LABDOWNLOAD PYTHON

THREE DEFECTS. THREE REPRODUCTIONS.

Make the failure
observable.

Change the input. Compare the behavior.
Inspect what the correction actually proves.

LOCAL REPRODUCTIONLOADING FIXTURES

OBSERVED DEFECT / OUR RECORDER

Truthy is not
a wire format.

A Borsh boolean has two valid bytes: 00 and 01. Coercing every nonzero byte to true can turn corrupt input into a plausible BUY event.

The remaining bytes are a synthetic zero-filled 113-byte prefix. No token or account is queried.

Read the reproduction and fix ↗
TRADE EVENT / CONSUMED PREFIX113 BYTES
DiscriminatorPublic-key / amount fieldsis_buy
OFFSET 56 →0x02 violates the boolean encoding.
LEGACY COERCIONBUYbool(payload[56])
CANONICAL CHECKREJECTvalue in (0, 1)

Malformed input must be rejected before it becomes an observation.

REPRODUCE IT YOURSELF

The source is
part of the proof.

One Python file. Standard library only. The same published fixture values drive the browser experiments and the independently runnable checks.

python reproduce.py6 TEST METHODS / 22 SHARED FIXTURE VECTORS