arXiv:2610.21146cs.CROct 2026

Manuscript Offprint

arXiv:2610.21146

ExecWeave: Cross-Layer Execution Provenance for Observable Agentic Software

Guo-Wei Wong, Meng Chang Chen

Guo-Wei Wong, and Meng Chang Chen

Abstract—Agentic software invokes tools, launches processes, accesses files, and communicates with local or remote services. Application traces describe logical operations, whereas operating-system telemetry records machine activity without necessarily identifying the responsible agent action. Relating these evidence planes is a reconstruction problem: a plausible but unsupported association can assign an effect to the wrong principal.

We present EXECWEAVE, a local-first system that materializes provider semantics and independently observed runtime events into a typed execution graph. The implementation retains separate source artifacts, distinguishes logical occurrences from repeated evidence, and records attribution, inference, and causal-status metadata. An optional command-to-process correlator emits a non-causal inferred bridge only when its bounded search yields one compatible observed process; uniqueness within this observed candidate set is not a guarantee of causal correctness. OS-observed file and network effects acquire a semantic tool or agent principal only through an observed process plus a justified command-to-process association; session-correlated file-system events do not by themselves provide that principal.

We evaluate the frozen v0.8.25 implementation on Linux using direct portable-collector sampling measurements, fixed-work overhead measurements, scoped graph-materialization benchmarks, one real AutoGen-Ollama integration run, and targeted negative controls for the optional correlator. The real integration validates end-to-end semantic capture, independent runtime observation, process-reference resolution, and graph materialization. The negative controls confirm abstention under observed ambiguity while exposing false uniqueness when evidence is missing. Direct RuntimeCollector measurements expose the expected sampling blind window, while fixed-work trials show substantial portable-observation cost: median paired elapsed-time overhead ranges from 62.3% to 408.8% across the three tested workloads. Cross-OS parity, broad provider coverage, product superiority, and human debugging benefit remain unmeasured. Source code is available at https://github.com/Irish-kw/ExecWeave.

Index Terms—AI agents, observability, execution provenance, runtime tracing, operating-system telemetry, cross-layer attribution, multi-agent systems, execution graphs.

I. INTRODUCTION

A GENTIC software is changing the unit of execution that developers must understand. A conventional application can often be inspected through instrumented function and service boundaries. An agentic application may additionally select tools dynamically, delegate work to other agents, issue shell commands, start language runtimes, call local model servers, edit repositories, and contact external endpoints as part of a single user request. The externally visible answer is therefore only the end of a longer execution chain whose intermediate effects may matter for debugging, security, reproducibility, and accountability.

The observability ecosystem has responded rapidly. Lang-Smith records traces composed of runs and integrates with agent frameworks and OpenTelemetry [1], [2]. Langfuse records observations and renders agent graphs inferred from typed observations and nesting [3], [4]. Phoenix uses OpenTelemetry and OpenInference to trace model calls, tools, retrieval, and custom application logic [5], [6]. AgentOps organizes agents, language-model calls, actions, and tools into sessions and hierarchical spans [7], [8], while W&B Weave records operations and calls and provides trace-tree, flame, composition, and graph-oriented views [9], [10]. Academic systems similarly convert agent execution into analyzable graph structure. AgentGraph transforms traces into knowledge graphs with agents, tasks, tools, data, and human interventions [11]; AgentSeer separates temporal action and component graphs [12]; Graph of Trace records scientific-agent tool calls and code execution as an incrementally updated directed graph [13]; and AISayyad et al.'s AgentTrace proposes structured operational, cognitive, and contextual telemetry for agent systems [14].

These systems establish graph-oriented workflow inspection as an important observability capability. Relating that workflow to independent machine observations raises a distinct reconstruction problem. Agent-level instrumentation describes what an integration point reported: an agent emitted a tool call, a framework entered a function, or a model returned a response. Operating-system observation describes what a machine observed: a process was created, a file changed, or a socket appeared. The two descriptions are related but not equivalent. A declared shell command does not prove that the corresponding process executed; a file body supplied by a provider hook does not prove an operating-system read; and a process connecting to a network endpoint does not by itself identify which logical agent action requested that connection.

We call this separation the semantic–runtime observability gap. It has two consequences. First, semantic-only traces can omit effects below the instrumentation boundary. Second, OS-only telemetry can preserve effects while losing the logical principal or tool invocation that motivated them. Naively joining the two streams by timestamp is unsafe under concurrency, process reuse, wrappers, shell indirection, shared runtimes, or overlapping sub-agent activity. For accountability-oriented observability, a false attribution can be more damaging than an explicit unknown: it can blame Agent A for an effect caused by Agent B.

EXECWEAVE addresses this problem by treating observations as evidence and the graph as a materialized, queryable

Guo-Wei Wong is with National Taiwan University, Taipei, Taiwan. Meng Chang Chen is with Academia Sinica, Taipei, Taiwan.

Semantic observations

Figure

Fig. 1. Conceptual semantic–runtime gap, not a measured run. Solid edges belong to one observation plane and retain that plane’s provenance; process-attributed file edges require a suitable backend. A dashed cross-layer bridge is a separate inferred claim, not causal proof.

view of that evidence. Provider/framework semantics, inference-gateway observations, model-runtime observations, and OS-runtime evidence remain distinguishable after graph construction. Command-correlated bridges are marked as inferred and non-causal. Multiple compatible observed candidates produce no bridge rather than a score-based choice. This design follows a lineage of provenance systems that emphasize faithful derivation histories [15], [16], [17], [18], while specializing the evidence model for agent runtimes whose relevant identities include agents, sub-agents, tool calls, model requests, provider sessions, processes, files, and network endpoints.

Figure 1 illustrates the central distinction. The semantic plane can say that a root agent delegated to a sub-agent and that the sub-agent invoked a tool. The runtime plane can say that a process spawned a child that modified a file and contacted a service. The research problem is not to draw both planes; it is to determine which cross-plane relations are justified, with what evidence, and what should remain unknown.

This paper makes four contributions.

• An evidence-typed execution-graph contract for agentic software. We define a typed graph that preserves agent, tool, model, process, file, network, and runtime identities together with evidence source, causality, attribution method, and temporal support. The contribution is the explicit agent-oriented evidence contract, not the general idea of combining application and OS observations.

• Conservative command-to-process attribution with explicit limits. We formulate that link as a partial mapping in which abstention is a first-class outcome. The optional correlator searches a bounded window with executable and command-line heuristics and emits a bridge only when the observed candidate set is a singleton. The bridge is marked inferred and non-causal. Uniqueness inside the observed set is not causal identification and is not a file-or socket-level claim.

• Evidence-preserving live materialization across heterogeneous integrations. EXECWEAVE separates raw runtime, semantic, and correlated artifacts; normalizes provider-specific events into a canonical model; supports portable observation on Windows, macOS, and Linux together with a stronger Linux syscall-oriented reference backend; and uses the same graph contract for live and finished inspection. These are implementation capabilities; the empirical campaign in this paper is Linux-scoped.

• A scoped empirical validation of evidence fidelity and system cost. We validate one real AutoGen–Ollama execution path, directly measure portable-collector blind windows, quantify fixed-work overhead, and characterize graph materialization and serialization. Targeted attribution negative controls are retained only to bound the optional heuristic and its abstention behavior, not as a primary accuracy benchmark.

The remainder of the paper first motivates the problem and separates it from adjacent tracing and provenance work, then formalizes the evidence model and describes EXECWEAVE's design and implementation. We next present the measured evaluation methodology and results, followed by limitations, threats to validity, and implications for future agent observability standards.

References (35)