How to Verify Provenance Closure in AI Agent Decisions
An agent trace can contain every event and still fail to explain a decision.
That sounds contradictory only if we treat observability as a volume problem. It is not. A thousand spans can show that a model called a tool, parsed a response, edited a file, and passed a test. They do not prove that the final claim was derived from the evidence the system says it used.
The missing property is provenance closure: every material decision, claim, and external effect must have a traversable path to the source entities that justify it. If the path ends at model prose, an unversioned summary, or a missing tool result, the graph is open. The runtime should not call that result verified.
This is a narrower mechanism than generic tracing. In trace joins I connected model spans, tool executions, and real artifacts. Here I add a gate over that graph: can every load-bearing output reach admissible evidence without crossing an untrusted or missing edge?
A trace is a timeline; provenance is a derivation graph
A timeline answers: what happened, and when?
A provenance graph answers: what was produced from what, by which activity, under whose authority?
The distinction is established outside AI. The W3C PROV family models entities, activities, agents, attribution, and derivation so provenance can be exchanged and validated. PROV-AGENT later extends that direction toward prompts, responses, model invocations, decisions, tools, and broader workflow outcomes in agentic systems.
That foundation matters, but an execution runtime still needs an operational question it can evaluate before accepting a result. “We stored provenance” is not a gate. Closure is.
Consider an agent that concludes:
Dependency X is safe to upgrade; tests passed and the release notes contain no breaking change.
The decision has at least three supporting claims:
- the inspected package is the package being changed;
- the release notes correspond to the selected version transition;
- the executed tests cover the affected boundary.
A span saying read release notes proves none of these identities. Closure requires explicit edges from the conclusion to claims, from claims to observations, and from observations to immutable or versioned source identities.
The provenance-closure envelope
I would represent the gate as a small artifact, not as another paragraph in the agent summary:
{
"decision_id": "decision:upgrade-x@plan-7",
"subject": "package-x:2.4.1->2.5.0",
"material_claims": [
"claim:target-identity",
"claim:compatibility",
"claim:test-coverage"
],
"admissible_roots": [
"artifact:lockfile@sha256:...",
"source:release-notes@commit:...",
"run:test@sha256:..."
],
"policy": {
"allowed_edge_types": ["derived_from", "generated_by", "observed_in"],
"max_unversioned_hops": 0,
"allow_model_assertion_as_root": false
},
"result": "closed"
}
The graph can be large. The envelope should remain small. It names the decision, enumerates the claims that carry its consequence, defines admissible roots, and records the traversal policy.
This is deliberately different from asking the model to cite sources. Citation is presentation. Closure is a graph invariant evaluated by the host.
Four closure states
A binary pass/fail hides useful failure information. I prefer four states:
| State | Meaning | Runtime response |
|---|---|---|
closed |
Every material claim reaches an admissible root through valid edges | Decision may proceed to the next policy gate |
open |
At least one claim ends without a source path | Request evidence or narrow the decision |
contaminated |
A path crosses quarantined, untrusted, or authority-bearing content | Re-extract or require explicit promotion |
ambiguous |
Multiple incompatible roots or identities support the same claim | Resolve identity before execution |
contaminated matters because a complete path is not automatically a trustworthy path. An external web page can be a valid source entity and still contain instructions that must never become execution authority. The tool-output quarantine pipeline keeps information flow separate from authority flow; provenance closure must preserve that distinction rather than laundering untrusted content through a graph edge.
ambiguous is equally important. If a test result belongs to commit A while the proposed patch belongs to commit B, both nodes exist, but the derivation is invalid. Identity is part of provenance, not metadata decoration.
Evaluate the cut, not every node
Capturing everything is expensive and usually unnecessary. The useful optimization is to find the material cut: the smallest set of claims that separates a consequential decision from its evidence roots.
For a file edit, that cut might include target identity, precondition validity, policy authorization, and validation outcome. For a payment, it might include recipient identity, amount derivation, approval scope, and stable effect identity. For a read-only summary, fewer claims may be material.
The algorithm is straightforward:
- Start from a decision or proposed effect.
- Expand only edges required by its declared material claims.
- Reject cycles that do not eventually reach an admissible root.
- Verify root identity, freshness, trust class, and scope.
- Produce the closure state plus the minimal failing frontier.
The failing frontier is more useful than “insufficient evidence.” It can say:
OPEN claim:test-coverage
expected: run bound to artifact:patch@sha256:91...
found: run bound to artifact:patch@sha256:44...
repair: rerun affected suite against current patch
Now the runtime has a deterministic repair target. It does not need the model to improvise why confidence feels low.
Closure composes with other gates
Provenance closure does not authorize execution. It answers whether the declared basis of a decision is structurally complete.
A closed graph can still support a bad decision. The source may be wrong. The tests may be weak. The policy may deny the action. A model may infer more than the evidence warrants. Closure detects missing or invalid derivation paths; it does not prove truth.
That boundary is essential:
provenance closure
-> freshness check
-> semantic validation
-> authorization
-> resource reservation
-> effect commit
Freshness deserves its own gate because a perfectly closed path can terminate at stale evidence. Freshness contracts bind claims to resource versions, allowed age, and revalidation rules. Closure verifies that a path exists; freshness verifies that its roots are still usable.
Likewise, a closed decision graph should not bypass resource admission, effect deduplication, or human approval. Evidence is not permission.
A validation rule worth putting in CI
For every consequential agent artifact, define:
C = set of material claims
R = set of admissible evidence roots
E = allowed typed derivation edges
closed(decision) iff
for every c in C,
there exists a path c -> r where r in R,
every edge is in E,
every node identity is compatible with decision scope,
and no path crosses a prohibited trust boundary.
Then test negative cases, not only the happy path:
- remove one tool result;
- bind a test run to the previous patch revision;
- replace a versioned source with an unversioned summary;
- insert quarantined content into an authorization path;
- create a derivation cycle with no evidence root;
- attach one observation to two incompatible subjects.
A runtime that rejects these cases has a concrete property. A runtime that merely exports traces has data.
Limits and evidence boundary
This article proposes an engineering gate derived from W3C PROV concepts, current agent-provenance research, and the artifact-oriented execution direction visible in IOSM CLI. It does not report a benchmark, production deployment, or measured reliability improvement. PROV-AGENT reports its own cross-facility evaluation; that result belongs to its authors and does not validate the closure algorithm proposed here.
The mechanism should be tested against real failure corpora before anyone claims superiority. Useful measurements would include unsupported-claim detection, false rejection rate, graph-storage cost, traversal latency, and whether the failing frontier produces successful repairs.
The design claim is narrower: an AI agent result should not be called verified while any load-bearing claim lacks a valid path to admissible evidence.
Logs tell us that work happened. Provenance closure tells us whether the result is still connected to reality.