Release Notes - v0.9.5
v0.9.5
Section titled “v0.9.5”Title: Improve evaluation safety and data handling
Version: v0.9.5
Release: v0.9.5
Comparison: v0.9.4…v0.9.5
Recommended Network Compatibility ⚠️
Section titled “Recommended Network Compatibility ⚠️”| Network | Compatible |
|---|---|
| mainnet | ⛔ |
| preprod-testnet | ✅ |
| preview-testnet | ✅ |
| musashi | ✅ |
This release improves bounded evaluation, aligns builtin parsing with protocol limits, strengthens repository automation, corrects value cost accounting, and prevents retained decoded programs from being corrupted.
Evaluation safety
Section titled “Evaluation safety”- Improved
serialiseData,equalsData, andunValueDatasizing so iterative traversal checks lower budget bounds early, honors cancellation, and applies the exact final cost. Oversized data graphs can now stop withBudgetErrorbefore full traversal, cancellation preserves the original context error, and malformed data returnsErrCodeInvalidArgumentinstead of causing a panic.
Builtin compatibility
Section titled “Builtin compatibility”- Refined builtin parsing for nonzero protocol majors before major 11: case analysis on builtin values now returns
ErrCodeCaseOnBuiltinUnavailable, while constructors and existing byte-string constant behavior remain available. Semantics D and E now rejectwriteBitsbyte payloads above 4096 bytes, and the parser acceptsverifySignatureas an alias forverifyEd25519Signature.
Automation safety
Section titled “Automation safety”- Strengthened repository automation by pinning reusable workflows and NilAway to exact revisions, narrowing workflow permissions, and hardening Makefile format and clean commands. The conformance updater now verifies digests, enforces bounds and an allowlist, and stages changes with rollback. Replay corpus preprocessing enforces size, count, and decoded byte limits, caches decoded cases, and honors cancellation.
Value accounting
Section titled “Value accounting”- Corrected size-dependent value costs with immutable cached metrics and deep-copy accessors. CEK value builtins now use those metrics;
AssetCountandunionValuecharge according to actual value size; uninitialized values fail before costing; andAssetCountaccepts values beyondvalueDataMaxSize. The exportedValue.Entriesfield has been removed, so existing code that constructs values directly through it must migrate tosyn.NewValueand its accessors.
Decoder ownership
Section titled “Decoder ownership”- Secured decoder ownership so
DeBruijnDecoder.Decodereturns independently owned programs, preventing retained results from changing after later decodes. UseDecodeBorrowedfor arena reuse only when results remain valid until the next decode, and do not share a decoder across concurrent calls. Callers that previously depended onDecodearena reuse may see more allocations.
Docs authored by Doc Holiday