# Compatibility

Status values: **implemented**, **partial**, **unsupported**, **not run**. "Not run" means the check was not executed. It is not a pass.

Library version: 0.1.0. Conformance target: ASDF standard 1.5.0, file format 1.0.z.

## Capability matrix

| Capability | Read | Write | Notes |
| --- | --- | --- | --- |
| Header `#ASDF 1.0.z` | implemented | implemented | `ASDF.Header.parse/1`, `ASDF.write/3` |
| Comment lines before the tree | implemented | unsupported | counted, not interpreted |
| `#ASDF_STANDARD` comment | implemented | implemented | at most one on read; the writer emits `1.5.0` |
| YAML tree | implemented | implemented | one `%YAML 1.1` document; keys are sorted on write |
| Tags preserved | implemented | implemented | `%ASDF.Tagged{}`; unknown tags are written as `!<uri>` |
| Merge keys (`<<`) | partial | unsupported | kept as a normal key; not expanded |
| Block headers | implemented | implemented | magic, `header_size`, flags, sizes, MD5 of the used bytes |
| Block index | implemented | implemented | writer emits offsets from the bytes it just wrote |
| ndarray 1.0.0 / 1.1.0 | implemented | partial | read covers the stage 2 types; write emits contiguous blocks and preserves byte order |
| zlib blocks | implemented | implemented | `:zlib`, capped at `data_size` on read; `compression: :zlib` on write |
| bzp2 blocks | unsupported | unsupported | `reason: :unsupported_compression` |
| Streamed blocks | partial | unsupported | read to EOF; write is unsupported |
| JSON / YAML schema validation | partial | unsupported | core schemas from commit `daff9d5`; draft-04 vocabulary; ndarray self-ref is `:cyclic_ref` |
| Registry of tag handlers | implemented | unsupported | opt-in `ASDF.Registry.register/2`; default leaves `%ASDF.Tagged{}` |
| Astronomy, unit, time, FITS tags | unsupported | unsupported | preserved only, never executed; their schemas are not vendored |
| External paths and URLs | partial | partial | a relative path may be written under `external_root` when `allow_external: true`; `..` is rejected |
| Opening an external URL | unsupported | unsupported | the URI is preserved and is not fetched |
| Standard 1.6.0 | unsupported | unsupported | files that still use the 1.0.0 layout can be read; 1.6.0 behavior is not claimed |
| `mix asdf.inspect` | implemented | n/a | versions, keys, block sizes; no payload decode; no Gnosis dependency |
| Mutation fuzz | implemented | n/a | byte flips return `:ok` or `%ASDF.Error{}`; one yamerl crash is in `test/fixtures/regressions/` |
| Python asdf 6.0.0 round trip | not run | not run | `python3 -c "import asdf"` failed on 2026-11-30; helper is `test/support/python_asdf.exs` |
| macOS arm64 CI | not run | not run | workflow is in-tree; this machine has not executed GitHub Actions |
| Linux x86_64 CI | not run | not run | same |

## Modes

`:strict` is the default. `:permissive` has two recoveries: a duplicate YAML key keeps the last value and records a warning, and a block index that does not match the forward scan is discarded with a warning. Checksum failure, a bad offset, unknown compression, `bzp2`, and a truncated header stay errors in both modes.

## Limits

`ASDF.Limits` bounds the header, the tree, and block `data_size` / `used_size`. A `data_size` above `max_block_bytes` is `reason: :decompression_bomb` before inflate. The tree search reads the document in chunks and stops at the `...` line.
