- release-tokens.ts: compareReleaseToRuntime filled the runtime-side
assetManifestHash with the release's own value, so the field always
compared equal and read as a pass. The result now also carries
`unverified: ["assetManifestHash"]` (additive field; compatible and
mismatches are unchanged).
- contract-set.ts: a duplicated package in `expected` without
expectedSetDigest made the digest helper throw, so verifyContractSet
rejected. It now returns CONTRACT_SET_DUPLICATE_PACKAGE, and any other
throw from the expected-digest computation returns
CONTRACT_SET_DIGEST_INVALID.
- query-keys.ts: the identity registry copied and sorted every row on
each new intern; it now does so only when an eviction is needed.
- .dependency-cruiser.json: new rule
contracts-do-not-know-presentation-or-bootstrap. No current
violations; a temporary src/contracts probe importing presentation
and bootstrap was reported by check:architecture and then removed.
Verified: tests/unit/contract-release-checks.test.ts (release-tokens
and contract-set cases RED before; eviction-order and matching-set
cases are characterization and passed before and after); gates green
except the known removal-fixture test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>