# The seal format: reference verifiers and conformance vectors

Copyright 2026 ParetoAlpha, Inc. Licensed under the **Apache License, Version 2.0**.
See [LICENSE](./LICENSE) and [NOTICE](./NOTICE).

The format itself is written down at [/standard](https://paretoalphasystems.com/standard). These files are the
reference implementation of it, published so that a record is checkable by someone who does not trust us and does
not have to ask us. You may use, modify and redistribute them, including in a product that competes with ours.

## What this licence covers, and what it does not

**Covered** — everything in this `/developers` directory:

| File | What it checks |
|---|---|
| `verify.py` | The canonical form and content hash every other verifier imports |
| `verify_proof.py` | A public-filing proof: the hash, the ledger, and the arithmetic re-derived from the IRS return |
| `verify_chain.py` | A sealed carryover chain, each year's opening held against the year before's closing |
| `verify_seal.py` | A signed statement (Ed25519) against the published key set |
| `verify_prudence.py` | A prudence file exported for counsel |
| `irs990pf_fetch.py` | Fetches a return from the IRS bulk files so the checks above can run on it |
| `conformance-vectors.json` | 24 inputs, the canonical string each must produce, and its SHA-256 |

**Not covered.** The rest of this repository and the ParetoAlpha service are not open source and no licence to them
is granted here. There is deliberately no `LICENSE` file at the repository root, because one would read as a grant
over the whole product. Apache-2.0 §6 also grants no trademark rights: you may implement the format and say your
implementation conforms, and you may not use the ParetoAlpha name or marks to describe your own product.

## Conforming

`conformance-vectors.json` is how you check an implementation in any language without talking to us. Each entry is
an input, the exact canonical string it must produce, and that string's SHA-256; each says in one line why it
exists, which is usually a way a careful implementer could get it wrong. Reproduce all of them and you conform.

```bash
curl -O https://paretoalphasystems.com/developers/verify.py
curl -O https://paretoalphasystems.com/developers/conformance-vectors.json
python3 - <<'PY'
import json, sys; sys.path.insert(0, ".")
from verify import content_sha256
d = json.load(open("conformance-vectors.json"))
bad = [v["name"] for v in d["vectors"] if content_sha256(v["input"]) != v["sha256"]]
print(f'{len(d["vectors"]) - len(bad)}/{len(d["vectors"])} reproduced', bad or "")
PY
```

Two of the vectors exist because they caught real faults. One pins the point where numbers move from twelve
significant digits to fifteen, which for a while lived only in a comment. The other pins object-key ordering above
the Basic Multilingual Plane: JavaScript sorts keys by UTF-16 code unit and a code-point sort disagrees with it
there, which is a fault this verifier itself carried until 5 October 2026.

## What a passing check does and does not tell you

It tells you the figures in a sealed record recompute from the record's own inputs under the engine it names, and
that the bytes have not changed since the seal was made. It does not tell you the original filing was correct, and
nothing here is advice. A seal names what it proves and nothing else.

The verifiers need the Python standard library and nothing else, by design: a dependency is a party you would have
to trust in order to check whether you can trust us.
