Expand description
Determinism: does a program produce byte-identical output across runs?
Agents parse, cache, and diff program output. Non-deterministic output (locale dates, hash-ordered maps, terminal-width-dependent tables, embedded timestamps) breaks all three: the agent can’t reuse a cache, a diff is all noise, and a parser keyed on column positions desyncs. This module runs an output-producer repeatedly and reports whether every run was identical.
Structs§
- Determinism
Report - The result of a determinism assessment.
Functions§
- assess_
determinism - Run
producerunstimes and report whether all outputs are byte-identical.runsis clamped to ≥ 2 (one run can’t show non-determinism). - stable_
across - Whether two renderings of the same value are byte-identical — the cross-representation determinism check (e.g. does a canonical encoder produce the same bytes regardless of input key order?).