As correctly observed by Keiji Suzuki:
preflight seems to check only the presence of the stream
So we need to check the contents too, somehow. At the very least, that would be the length. Next thing would be to verify that the bits correspond to the CIDs that are present.