arXiv:2610.01203cs.SEOct 2026

Manuscript Offprint

arXiv:2610.01203

CompProv Produces Machine Readable Graphs Encoding Microscopic Algebraic Provenance for Reproducible Computation

Minas Abramyan, Mohammed Alaa Ala'anzy, Nasir Saeed

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The reliability of computational results in scientific research and financial modeling increasingly depends on verifiable traceability, not merely on trust in a reported output. Existing provenance systems operate at the granularity of files, datasets, or pipeline stages, leaving the internal sequence of algebraic transformations connecting an algorithm's inputs to its outputs unrecorded; a rounding error, an undocumented substitution, or a missing intermediate value can propagate to a final result with no recoverable trace. This work presents CompProv, a Java-based, audit-oriented provenance framework that captures lineage at the atomic level of individual algebraic operations by encapsulating numerical values in high-precision wrapper objects, producing a serializable Calculation Provenance Graph (CPG) that persists as a self-contained artifact rather than a discarded byproduct. The framework is evaluated through three heterogeneous case studies: a decentralized-finance NAV calculation, a reconstruction of an interferometric gauge-block calibration in metrology under explicitly documented input assumptions, and a hydrological model performance evaluation. Deterministic replay reproduced each result exactly in a fresh environment, and CPG-based input substitution supported sensitivity analysis without exposing the underlying source code. These results indicate that, provided the CompProv runtime and wrapper classes are available in the replay environment, a CPG allows numerical integrity to be audited without disclosing proprietary business logic, and that its self-contained structure supports temporal auditability once an execution environment has become deprecated. This framework establishes an operation-level foundation for auditable-by-design computational systems, with scaling to high-throughput computing identified as a direction for future work.

Keywords: Audit, Data provenance, Metadata, Reproducibility, Transparency

1 Introduction

Reproducibility in computational science and finance depends on the ability to verify not just what a computation produced, but precisely how each intermediate value was derived. Despite advances in workflow management and data lineage systems [1, 2], this internal arithmetic record remains largely inaccessible. Current provenance frameworks operate at the granularity of files, datasets, or pipeline stages [3–6], treating the computational unit itself as an opaque process. The inputs and outputs of an algorithm may be logged, but the sequence of algebraic transformations that connects them is not captured. This gap is consequential: a rounding error, an unauthorized coefficient substitution, or an undocumented intermediate approximation can propagate silently to a final result with no recoverable trace.

Capturing this level of detail is difficult for a structural reason, not merely a practical one. Johnson and Disney [7] showed that manual data recording in software processes introduces systematic distortion, what they termed measurement dysfunction, that undermines analysis regardless of the recorder's intent; any scheme that depends on a developer remembering to log a value inherits this weakness by construction. Compiled and interpreted execution compounds the problem: a running program computes with intermediate values that exist only in registers and stack frames and discards them the moment the next instruction overwrites them, so nothing outside the process observes an operation unless something was deliberately built to intercept it at the moment it happened. The tools capable of that interception, surveyed in Section 2, have historically been built for purposes other than auditing, tracing execution schedules for debugging, computing gradients for training, or diagnosing rounding error, so the interception exists but the resulting record does not persist as an audit artifact. Figure 1 illustrates the consequence: whatever a provenance collector did not explicitly capture at execution time is permanently unrecoverable afterward, no matter how completely the surrounding files, environment, or metadata are curated. At a larger scale, this same structural gap underlies the reproducibility crisis in computational research [8]: when the arithmetic units of a computation are not captured, the provenance chain built on top of them is unverifiable regardless of how well the layer above it is documented.

Existing systems address this gap at a level of abstraction that stops short of the arithmetic. Industrial and scientific lineage systems track dependencies between datasets, files, and pipeline stages [6, 9–15], treating each stage as an opaque unit whose internal correctness is assumed rather than recorded. A smaller body of work reaches inside that unit, either by instrumenting scripts non-intrusively at the level of function calls [16–18] or by building transient, operation-level computation graphs for an

Figure

Fig. 1 Untraceable computing process: external provenance collectors cannot recover variables that were not explicitly logged during execution.

entirely different purpose, gradient propagation, in automatic-differentiation engines such as PyTorch and JAX [19]. A third strand instruments the same fine-grained arithmetic to diagnose numerical accuracy rather than to record provenance [20–24]. Section 2 situates each of these families in detail and shows that none combines operation-level granularity with a persistent, replayable, audit-oriented artifact.

The gap that remains, then, is not the absence of fine-grained instrumentation, several of the systems above already achieve it for their own purposes, but the absence of a mechanism that treats the record of that instrumentation as a first-class, persistent output rather than a by-product consumed once and discarded. A workflow system's log answers what stage produced a file; an automatic-differentiation tape answers what gradient a computation implies; neither answers what sequence of algebraic operations, applied to which specific input values, produced a specific number, in a form that a person with no access to the original source code can still open, inspect, and independently replay years after the environment that generated it has changed.

In this work the CompProv framework is presented. It is designed for microscopic algebraic provenance; the intrinsic, operation-level capture of numerical lineage within a running computation. Numerical values are encapsulated as high-precision objects (BigDecimal, BigInteger) that automatically record each algebraic transformation they undergo. The result is CPG: a serializable, self-contained Directed Acyclic Graph (DAG) encoding every variable, operation, and dependency in the computation. Where the computation graph in an AD engine is a means to an end, CPG is the end product itself. The CPG can be replayed deterministically, substituted with new inputs for sensitivity analysis, and shared with auditors without disclosing the proprietary business logic that produced it, provided that the CompProv runtime and the corresponding wrapper classes are available in the replay environment; what is decoupled from disclosure is the domain algorithm, not the provenance infrastructure itself. Both guarantees follow directly from where the capture happens: because metadata recording is triggered by the act of performing an operation on a wrapped value, rather than by a separate call a programmer must remember to make, coverage is a structural property of the wrapper type rather than a discipline the developer must maintain, and the same immutability that keeps the resulting graph acyclic also makes it safe to persist and replay without a later mutation invalidating an earlier snapshot.

The specific contributions of this work are:

  1. A microscopic provenance architecture in which metadata capture is intrinsic to arithmetic execution, not layered externally, closing the gap between operation-level AD graphs and auditable provenance records.

  2. A Governance-by-Design mechanism that transforms numeric primitives into immutable, metadata-carrying objects, eliminating the dependency on developer-managed logging.

  3. A unified, serializable CPG format with a deterministic replay mechanism and input substitution support, enabling independent verification and sensitivity analysis without access to the underlying implementation logic.

  4. Empirical validation across three heterogeneous domains, decentralized finance (NAV calculation), physical metrology (interferometric gauge block calibration), and environmental modeling (hydrological KGE evaluation), demonstrating cross-domain applicability and exact replay fidelity.

The remainder of this paper is organized as follows. Section 2 reviews existing provenance, lineage, and instrumented-arithmetic approaches and identifies the combination of properties that motivates CompProv's design. Section 3 describes the CompProv architecture, the Calculation Provenance Graph data model, and the deterministic replay and input-substitution mechanisms. Section 4 reports the three case studies and the complexity analysis. Section 5 interprets these findings against the existing provenance and instrumented-arithmetic literature and states the boundaries of what has been demonstrated. Section 6 discusses threats to validity, and Section 7 concludes the paper.

References (39)