Skip to main content

Crate verirun_core

Crate verirun_core 

Source
Expand description

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.

Modulesยง

canonical
The RFC 8785 (JCS) canonical encoder, under the verirun profile of docs/ARCHITECTURE.md section 4.
cas
Content-addressed store contracts (docs/ARCHITECTURE.md section 6).
dag
Task specifications, DAG validation, and Kahn ordering (docs/ARCHITECTURE.md sections 3.2 and 7).
digest
Digests, domain separation, and tuple framing (docs/ARCHITECTURE.md section 5).
error
Core error types.
manifest
Manifests, task records, and the Merkle construction (docs/ARCHITECTURE.md sections 3.3 and 9).
parse
The strict JSON parser (docs/ARCHITECTURE.md section 4.5).
paths
Sandbox relative path validation (docs/ARCHITECTURE.md section 8.4).
value
The value model canonicalization operates on (docs/ARCHITECTURE.md section 3.1).