1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! verirun-core: the deterministic core of verirun.
//!
//! This crate is strictly standard-library only (DECISIONS.md Q5). It does
//! no filesystem, process, network, clock, or randomness access. Every
//! behaviour that can influence a digest lives here as pure computation
//! over bytes and values handed to it by adapter crates.
//!
//! Module map (docs/ARCHITECTURE.md section 2.1):
//!
//! - [`value`]: the JSON value model canonicalization operates on.
//! - [`parse`]: the strict JSON parser. Duplicate keys, malformed
//! numbers, lone surrogates, and nesting past the depth limit are all
//! rejected with byte offsets.
//! - [`canonical`]: the RFC 8785 (JCS) canonical encoder, including the
//! ECMAScript number layout over the value-based safe-integer domain.
//! - [`digest`]: digest framing, domain separation, the
//! [`digest::StreamingHasher`] and [`digest::HasherFactory`] seam, and
//! the execution tuple encoding.
//! - [`cas`]: content-addressed store contracts. Path derivation and
//! temporary file naming as pure functions, plus the put phase model.
//! - [`dag`]: task specifications, graph validation in the fixed order
//! of section 7.1, and Kahn ordering.
//! - [`paths`]: sandbox relative path validation (section 8.4).
//! - [`manifest`]: task records, manifests, and the Merkle construction
//! of section 9.
//! - [`error`]: all core error types, each carrying diagnostic context.