Skip to content

docs: add spec-style description of the consolidated metadata format - #304

Open
d-v-b wants to merge 8 commits into
mainfrom
claude/docs-consolidated-metadata-spec-6f3c45
Open

d-v-b wants to merge 8 commits into
mainfrom
claude/docs-consolidated-metadata-spec-6f3c45

Conversation

@d-v-b

@d-v-b d-v-b commented Aug 21, 2026 •

Copy link
Copy Markdown
Owner

🤖 AI text below 🤖

Adds a specification-style description of Zarr-Python's consolidated metadata encoding and reader behavior, linked from the usage guide and navigation. It covers V2 .zmetadata, V3 inline metadata, path and child-marker conventions, ordering, and use_consolidated behavior.

This documents implementation behavior and interoperability guidance; it is not an adopted Zarr specification. At the factual review, zarr-specs#309 remains open and unmerged. Excerpts are attributed to Tom Augspurger and the repository's CC-BY-4.0 license.

The sort-order correction is depth first, then Unicode NFKC normalization and case folding. For equal-depth keys, a precedes B, unlike raw Unicode code-point ordering. The previous example B before x demonstrated no difference. Equal normalized keys retain input order, so this does not establish universally byte-identical output.

The page distinguishes current reader acceptance from writer recommendations, including mixed-format entries, ignored must_understand, and V2 child-group markers. It also documents that deletion can resave consolidated metadata while other mutations need not keep snapshots synchronized. No runtime behavior changes are included.

The factual follow-up clarifies the document's status; applicable commit hooks pass. The earlier strict documentation build is historical validation.

Add a new user-guide page that describes exactly what zarr-python reads
and writes for consolidated metadata in Zarr formats 2 and 3, so that
other implementations can interoperate. Quotes and attributes the schema
text from zarr-specs#309 (Tom Augspurger, CC-BY-4.0), documents the key
ordering, the empty child-group marker, the v2 `.zmetadata` layout and
its deviation from zarr-python 2.x, and the reader/writer procedures.

Also correct the 3.1.1 sort-order note on the existing page, which said
"lexicographic" while the implementation uses NFKC-casefolded ordering.

Assisted-by: ClaudeCode:claude-fable-5
d-v-b and others added 3 commits August 30, 2026 22:22

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant