DFAH: Determinism & Faithfulness Assurance
- The paper establishes DFAH's foundation by defining platform-deterministic inference, proving that consistent outputs guarantee verifiability and auditability.
- The architecture integrates formal constraint modules, deterministic kernels, and cryptographic attestation to deliver reproducible cross-platform AI behavior.
- Empirical results in engineering and financial domains demonstrate DFAH's effectiveness in achieving regulatory compliance and reliable audit trails.
The Determinism-Faithfulness Assurance Harness (DFAH) is a formal framework and engineering architecture for enforcing and evaluating the determinism and faithfulness of AI-driven systems. DFAH provides both a mathematically grounded definition and an operational implementation blueprint, enabling provable certainty about system behavior in domains where regulatory compliance, safety, and auditability are critical. It spans declarative constraint formalization, deterministic verification layers, cross-platform reproducibility, and attestation protocols, unifying software engineering principles with formal trust guarantees (Zhang, 18 Apr 2026, Khatchadourian, 17 Jan 2026, Dunham, 26 Mar 2026).
1. Foundations: Definitions and Determinism Thesis
At its core, DFAH asserts that an AI system's trust properties—verifiability, reproducibility, auditability, and certifiability—are attainable if and only if its inference function is platform-deterministic. Given a model parameterization and tokenized input , the inference function is platform-deterministic if, for all hardware platforms , . This property ensures that bit-for-bit identical outputs are produced across heterogeneous deployments, rendering the system robust to variations in low-level computation architectures (Dunham, 26 Mar 2026).
The Determinism Thesis formalizes:
- Necessity: No non-deterministic system can be externally audited, cryptographically attested, or reliably certified.
- Sufficiency: Platform-deterministic inference collapses verification to an hash comparison; verification of model output reduces to hash consistency under collision-resistant hashing schemes.
The concept of trust entropy quantifies the degree of output fragmentation across platforms. The exact probability of honest attestation rejection is , linking non-determinism directly to verification failure probability.
2. DFAH Architectures and Implementation Blueprints
DFAH is not a mere heuristic or standalone module; it is an enterprise-scale, vertically integrated asset. Its architecture is characterized by the following components:
- Executable Harness Registry: All domain invariants (physical, regulatory, business rules) are encoded as machine-readable assertions, typically via versioned YAML schemas. These are subject to RBAC, test-driven meta-validation, and formal change management. An example assertion formalizes automotive collision-avoidance with an explicit, executable inequality constraint (Zhang, 18 Apr 2026).
- Unified Assertion Interface (UAI): The UAI is a deterministic transducer which accepts LLM candidate artifacts (e.g., JSON binding of parameters) and a set of registered constraints , returning a vector of or 0 verdicts. The UAI's implementation is code-based—sandboxed assertion engines or algorithmic simulators—eschewing any LLM-generated “self-judgment.” The UAI provides hard fail-stops on constraint violation, forming the core of the system's safety perimeter (Zhang, 18 Apr 2026).
- Deterministic Inference Kernel: DFAH's substrate is the integer inference engine. All operations (matrix multiplication, nonlinearities, caching) use fixed-point arithmetic (Q16 for activations, INT8 for weights), ensuring bitwise-exact output across platforms. Token selection is implemented via greedy argmax, with deterministic PRNG when sampling is required. The complete stack—model loading, kernel execution, attestation—is implemented in Rust, with reproducibility verified across ARM/x86, geodistributed nodes, and blockchain-based attestation transactions (Dunham, 26 Mar 2026).
- Cryptographic Attestation and Workflow Integration: Attestation flows are orchestrated via on-chain transactions, with hash commitments for inputs, model IDs, and outputs. Verification involves re-executing the inference function and comparing hashes; any mismatch is slashed via staking contracts, achieving real-time dispute resolution and distributed consensus (Dunham, 26 Mar 2026).
3. Formal Metrics: Determinism and Faithfulness
DFAH introduces rigorously defined, code-implementable evaluation metrics:
Determinism Metrics
Let a tool-using agent produce a trajectory 1 on run 2. DFAH defines:
- Action Determinism 3: Fraction of runs with identical tool call sequences.
- Signature Determinism 4: Fraction of runs yielding identical full trajectories.
- Decision Determinism 5: Fraction of runs with identical final decisions.
These metrics scale to pass6 determinism, reflecting the regulatory demand that all 7 audit replays yield identical traces (Khatchadourian, 17 Jan 2026).
Faithfulness Metrics
- Evidence-Groundedness 8: Proportion of claims in the rationale that are directly supportable by retrieved evidence, operationalized via semantic and numeric similarity heuristics.
- Constraint Satisfaction 9: Fraction of explicit regulatory or business constraints satisfied by a decision 0.
A strong observed correlation (1, 2, 3) exists between determinism and faithfulness; models producing consistent trajectories are more likely to have their rationales grounded in authentic evidence (Khatchadourian, 17 Jan 2026).
4. Closed-Loop Deterministic Control in AI Agent Frameworks
Within the Convergent AI Agent Framework (CAAF), DFAH is central to closed-loop, fail-safe architecture:
- Recursive Atomic Decomposition: Requirements are decomposed into atomic DAGs of subtasks, sequenced via a deterministic topological sort and executed behind strict context firewalls to prevent context rot and cross-domain contamination.
- Monotonic State Locking & Semantic Gradients: The LLM is corrected iteratively. Upon constraint failure, the reviewer produces a quantified semantic gradient indicating direction/magnitude of required adjustment. Constraints previously satisfied (4, 5) are locked read-only, precluding stochastic oscillation or regression.
- End-State Determinism: The loop halts only when all constraints are satisfied (6), or deterministic deadlock (FAILED_PARADOX) is signaled, enabling reliable detection of unsatisfiable requirements (Zhang, 18 Apr 2026).
5. Application Domains and Empirical Validation
DFAH underpins audit-critical deployments in both engineering and finance:
Engineering Safety
- In autonomous driving (SAE L3) and pharmaceutical reactor benchmarks, DFAH-based CAAF achieves 100% paradox detection, invariant to prompt hints or LLM temperature. Baselines (monolithic, debate, sequential multi-agent) consistently fail, with 0% detection, confirming that deterministic UAI and state locking—not agent composition—drive safety guarantees (Zhang, 18 Apr 2026).
- Cost-reliability tradeoff analysis shows that while DFAH-imposed workflows have higher per-run API costs, their total cost-of-ownership (TCO) remains finite and predictable, in contrast to monolithic agent approaches whose TCO approaches infinity as constraint count rises.
Financial Compliance
- In "Replayable Financial Agents," DFAH ensures audit replayability across compliance triage, portfolio management, and DataOps pipelines. Tier 1 (schema-first) agent configurations achieve 100% signature and decision determinism under stress. Open-ended reasoning agents and large parameter models with higher drift require larger validation samples and are unsuitable for compliance tasks (Khatchadourian, 17 Jan 2026).
- The open-source DFAH financial harness includes code-based graders, a trajectory store, and a stress-test suite simulating redeploy perturbations, data faults, and market shocks, systematically enumerating deployment risk (Khatchadourian, 17 Jan 2026).
Trustworthy AI at Platform Level
- The integer inference engine and attestation system achieve zero hash mismatches in 82 cross-architecture tests on large models, and 356 multi-node blockchain attestations show perfect reproducibility (Dunham, 26 Mar 2026).
- By Theorem 7 (Trust Dependency Hierarchy), fairness, robustness, privacy, safety, and alignment all presuppose determinism, with DFAH supplying the required substrate for evidence-based audit at scale (Dunham, 26 Mar 2026).
6. DFAH as an Enterprise Asset: Lifecycle, Governance, and Integration
The DFAH is treated as a first-class asset within governed AI systems:
- Lifecycle Management: Every assertion is versioned, tested (golden/poisoned artifacts), and subject to RBAC; any failed meta-validation initiates human review. Harness freezing and change control processes prevent unauthorized modification (Zhang, 18 Apr 2026).
- Integration Points:
| Layer | DFAH Role | Example Implementation | |--------------------------|------------------------------------------------------|--------------------------------------------| | Inference | Enforces platform-determinism | Integer-only arithmetic engine (Rust) | | Assertion/Validation | Certifies output validity via UAI | Python assertion engine, EDA tool | | Cryptographic Attestation| On-chain hash/proof storage, consensus | BLAKE3 hash, STARK proof, DAG consensus | | Audit & Certification | Provides traceable, replayable outputs | Workflow logs, CLI explorer, challenge | | CI/CD & Deployment | Gated by reproducibility and meta-validation | Unit/integration tests, pipeline gates |
- Scalability: Projected scaling is near-linear in constraint count for CAAF-DFAH, in contrast to exponential decay in monolithic agent approaches (Zhang, 18 Apr 2026).
7. Significance, Limitations, and Theoretical Implications
DFAH establishes determinism as the linchpin for all higher trust properties in AI: only deterministic inference admits efficient, universal verification and auditability. Failure to guarantee determinism fundamentally renders cross-platform certification and cryptographic proof infeasible due to super-exponential combinatorial complexity (Determinism–Verification Collapse). The exclusive reliance on integer arithmetic overcomes the non-associativity and rounding-induced divergence inherent in IEEE 754 floating point.
A plausible implication is that any AI system deployed in environments requiring provable fairness, safety, privacy, or regulatory compliance must adopt DFAH principles—both at the inference layer and across the entire pipeline. Empirical data demonstrates that DFAH-based architectures are performant, scalable, and deployable under real-world stressors, but care must be taken to account for instruction-tuning artifacts and mixed-precision trade-offs in deployment.
DFAH thus constitutes both the theoretical foundation and the engineering standard for provable, audit-grade AI systems across sectors (Zhang, 18 Apr 2026, Khatchadourian, 17 Jan 2026, Dunham, 26 Mar 2026).