flix

0.75.3

Orbit64.Algorithm.Envelope

A separate, lossless, canonical JSON envelope for finite algorithm DAGs. This additive review-draft API does not change V1 or the V2 state registry.

Type Aliases

type alias Limits = { maxCountDigits = Int32, maxDepth = Int32, maxInputChars = Int32, maxJsonDepth = Int32, maxMetadataWork = Int32, maxNodes = Int32, maxReferences = Int32, maxSymbols = Int32 }§ Source

Local resource policy, independent of graph semantics and expanded move count.

Definitions

def decode(text: String): Result[Fault, (Int32, Algorithm)]§ Source

Decode canonical ASCII JSON with the default resource policy.

def decodeWith(limits: Limits, text: String): Result[Fault, (Int32, Algorithm)]§ Source

Preflight parsing, retain every node field, and reject noncanonical spelling.

def defaultLimits(): Limits§ Source

Conservative reference ceilings; callers may lower each positive budget.

def encode(n: Int32, graph: Algorithm): Result[Fault, String]§ Source

Encode the entire graph with the default resource policy, without expansion.

def encodeWith(limits: Limits, n: Int32, graph: Algorithm): Result[Fault, String]§ Source

Validate resource use and semantics before rendering canonical JSON.