Two text fields in a robot-log envelope can look different while decoding to exactly the same bytes. That matters when one part of an ingestion tool compares the encoded text and another compares the decoded payload. A successful Base64 decode does not necessarily give those two checks the same definition of identity.

An original offline Python fixture makes the boundary visible with a single invented byte. It uses the standard Base64 alphabet and padded input. No robot, remote service, authentication token, or captured customer record is involved. The example concerns representation checks in a log-processing contract.

Start with an explicitly bounded decoder

The local execution used Python 3.14.7 and base64.b64decode with validate=True. The official Python 3.14 reference, labeled 3.14.10 when checked, describes validate as controlling rejection of characters outside the selected alphabet. The documentation and the installed patch version are recorded separately. [Python base64 reference](https://docs.python.org/3.14/library/base64.html).

RFC 4648 section 3.5 separately addresses zero pad bits and canonical encoding. It requires conforming encoders to zero those bits and allows decoders to reject nonzero pad bits. That encoder requirement should not be replaced by an assumption about every decoder's behavior. [RFC 4648, canonical encoding](https://www.rfc-editor.org/rfc/rfc4648.html#section-3.5).

Give the byte two text spellings

The fixture's complete payload is b'a', one byte with hexadecimal value 61. Encoding it with base64.b64encode returns b'YQ=='. The output has two alphabet symbols followed by two equals signs. Keep the uppercase Y and Q distinct from lowercase letters when reproducing the example.

Decode b'YQ==' with validate=True. The returned value is b'a'. Now decode b'YR==' with the same call and option. On the recorded local runtime, that call also returns b'a'. The encoded inputs compare unequal, while the returned byte strings compare equal.

The second result is an observed property of this tested interface. It is not a claim that YR== is the canonical encoding, that its encoder followed the standard, or that all Base64 implementations accept it. The fixture records the original input alongside the returned bytes so those conclusions stay separate.

Inspect the changed bit positions

The invented byte has the binary form 01100001. Its first six bits, 011000, select alphabet index 24, which is Y. Its remaining two data bits are 01. Completing a six-bit group with four zero bits gives 010000, index 16, represented by Q.

R represents index 17, whose six-bit form is 010001. Q and R therefore preserve the same leading two data bits in this final symbol while differing in one of the remaining four positions. In the local decoder result, that difference does not add another output byte or change the returned byte 61.

The trailing equals signs remain present in both strings. The example consequently distinguishes pad bits inside an alphabet symbol from the visible padding characters. Counting two equals signs is not a test that the final symbol's unused bit positions are zero.

Extend the fixture without changing the payload

The saved proof builds sixteen input strings by keeping Y fixed and choosing the second symbol from Q through Z and then a through f, followed by ==. These are the sixteen alphabet indices 16 through 31. Each has the same leading two bits, 01, with a different four-bit suffix.

All sixteen inputs decode to the single byte 61 with validate=True on Python 3.14.7. A set of the original encoded inputs has sixteen members. A set of the decoded byte values has one member. These counts come from the executed fixture rather than a production data inventory.

Re-encoding each returned value with the same standard encoder produces YQ==. Comparing each original input to that re-encoded output yields one equality and fifteen inequalities. This supplies a reproducible representation check for this particular alphabet and padding contract.

Use controls that exercise another check

A separate control inserts a space into YQ==. With validate=False, the tested decoder returns byte 61; with validate=True, it raises binascii.Error. Appending a newline produces the same acceptance and rejection contrast. A dollar sign inserted into the spelling is also rejected with validate=True in the local run.

Those controls show that the validation option is active. They do not make its acceptance of YR== contradictory: rejecting an outside-alphabet character and examining the unused bits of an inside-alphabet symbol are different predicates.

Removing both equals signs from YQ== raises an incorrect-padding error in both tested modes. Adding an extra equals sign succeeds in the permissive mode and fails in the validated mode. The proof preserves these results as controls, without treating this short list as exhaustive coverage of malformed input.

Choose which representation the field identifies

Consider an invented report that groups log attachments by their encoded field text. It would place YQ== and YR== in two groups under literal text equality. A report grouping those same inputs by their decoded bytes would place them together. Neither grouping rule can be inferred solely from the fact that decoding returned successfully.

If an interface requires exactly the standard padded spelling, the demonstrated check is to decode under its declared rules, re-encode with that same alphabet and padding policy, and compare with the retained original text. The fixture rejects the noncanonical spelling by that comparison even though the decoder accepted its bytes.

If an interface instead permits multiple spellings, its identity rule needs to say whether equivalent decoded values belong together. Retain the submitted spelling for diagnosis. Do not silently rewrite an identifier in a stored report and then claim the producer originally supplied the replacement.

This fixture does not test URL-safe alphabets, unpadded profiles, signatures, or application record validity. A decoded byte also carries no evidence of a robot's identity or a complete log transfer. Record the alphabet, padding contract, decoder configuration, original spelling, and decoded result before interpreting a successful decode as a stronger validation result.

Sources were checked November 18, 2026. All byte inputs, bit calculations, decoded-value comparisons, and control cases are original offline work. The accompanying AI-generated concept illustration shows two spellings converging on one byte; it is not a device log capture or a security test against a service.