It's kind of interesting how little there formal standardization there is in archive formats. The zip format has a standard-ish; ISO standardized part thereof in ISO/IEC 21320-1:2015 by taking the APPNOTE-6.3.3.TXT and forbidding certain parts from the full specification from being used. The pax format (that is used by approximately nobody) has a formal description in POSIX. And that seems to be just about it.
Is the zip format standardized, or parsing of zips? Without looking I expect the former, because there are multiple ways to parse a zipfile: there's the infamous "does first or last entry for a given path count" problem (exacerbated by the distinction between "first in the directory in footer" and "first in byte order in the file itself").
@robryk@qoto.org Lovely question, tell me if you find it in https://pkware.cachefly.net/webdocs/APPNOTE/APPNOTE-6.3.3.TXT
BTW. https://github.com/google/wuffs/blob/main/doc/spec/rac-spec.md is an example of a spec that describes what a decoder must do, in a case where there are nontrivial constraints on it (that serve to make sure that you can't construct a compressed file that will decompress differently depending on whether you read from the beginning or not).