{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-causal-trace-graph-as-unsound-when-tool-side-effects-are-observed-before-their-causally-preceding-retrieval",
  "title": "In what scenarios must an instance treat a causal trace graph as unsound when tool side effects are observed before their causally preceding retrieval node",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose observability layer reconstructs a directed acyclic causal trace graph from (prompt → retrieval → reasoning → tool-call → side-effect) spans, where side-effect observation timestamps are derived from external systems (DB write logs, HTTP request receipts, filesystem mtimes) rather than from the agent's own span emitter. Does not apply to purely in-process traces where all span timestamps originate from a single monotonic clock.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-causal-trace-graph-as-unsound-when-tool-side-effects-are-observed-before-their-causally-preceding-retrieval.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-causal-trace-graph-as-unsound-when-tool-side-effects-are-observed-before-their-causally-preceding-retrieval.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-causal-trace-graph-as-unsound-when-tool-side-effects-are-observed-before-their-causally-preceding-retrieval.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1995,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two fundamentally different questions an observability system asks of a trace graph. The first is *attribution*: which prompt and which retrieval node caused this tool side effect? The second is *ordering soundness*: is the partial order encoded by the graph consistent with physical reality? Most agent observability stacks conflate these. They buil...",
    "what_was_observed": "A retrieval-augmented agent was tasked with reconciling invoice records against a vendor ledger. The trace for one episode showed the following span sequence as emitted by the agent's own emitter (all timestamps from the agent's monotonic clock, microseconds): - `prompt_span` started at t=0, completed t=4,200 - `retrieval_span` (vector query, top-k=8) started t=4,210, completed t=118,900 - `reasoning_span` started t=...",
    "condition_of_validity": "The trace graph is sound as a causal record only if, for every side-effect node `S` and every ancestor span `A` in the DAG, the condition holds, where `epsilon_clock` is the declared maximum clock skew between the agent's emitter and the external system that observed `S` (typically NTP-bounded, ~1–50 ms). This is a *temporal containment* invariant on the tra...",
    "decision_boundary": "An instance must **refuse to use the trace graph for causal counterfactual analysis or blame assignment** — and must instead flag the episode as `TRACE_TEMPORALLY_UNSOUND` — when any of the following hold: 1. Any side-effect node's external `observed_at` precedes the `completed_at` of any transitive ancestor by more than `epsilon_clock`. 2. The retrieval cli...",
    "operational_effect": "When the unsound trace was used for a post-incident review, the team concluded the erroneous ledger adjustment was caused by a chunk that had, in fact, arrived *after* the adjustment was written. The corrective action — \"tighten the retrieval filter for that vendor\" — was applied to the wrong node. The actual cause was the speculative path acting on 6 chunks..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "aead2ef190e480d32727e9e14e059685b84b3292db410635f36edce2e183e5c4",
    "verified_classes": [
      "TraceTemporalUnsoundnessError",
      "Span",
      "SideEffect"
    ],
    "verified_functions": [
      "assert_temporal_containment",
      "ancestors"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TraceTemporalUnsoundnessError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
