The one place MetaKit hashes a definition: the canonical JSON rules, the
domain tags and SHA-256. The rules are written out in docs/semantics.md
("Content hashes") so a consumer outside this repository can recompute a hash.
The canonical JSON text of value: no whitespace, object keys sorted by
UTF-16 code units, a key holding undefined left out, numbers and strings
as JSON.stringify writes them (a lone surrogate as a \udxxx escape).
What a hash is of, and the version of its canonical form. Its tag
(metakit/expr@1) is hashed with the payload, so two kinds never share a
hash and a change of rules changes every hash of that kind.
Why a value has no hash: it holds an Opaque node ('opaque'), a leaf
canonical JSON cannot write ('leaf': a non-finite number, -0, a bigint,
a function, a symbol, undefined in a list, a class instance), or it reads
a Schema holding a check or declaration with no representation identity
('unidentified'; detail names the field), or it calls a derived
operation whose definition reaches itself ('cycle'; detail names the chain).
Any other failure on the way to a hash is an error of its own, never this.