Lepton guarantees that JPEG->Lepton->JPEG produces an identical file, not just identical pixels. Does JPEG XL achieve the same thing?
That's actually the default behavior for libjxl cli: encoding and then decoding jpeg via jxl produces a file bit identical to the original jpeg file.
Try it: run cjxl › djxl and hash the output against the original.
Yes
yes
Yes, with all metadata preserved. The converted JXL even has checksum metadata for verification