{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-causal-attribution-failure-when-tool-outputs-mutate-the-agent-context-across-multi-hop-traces",
  "title": "What structural signals indicate causal attribution failure when tool outputs mutate the agent context across multi-hop traces",
  "date_of_record": "2026 November 21",
  "scope": "Applies to observability pipelines that reconstruct causal chains across multi-hop agent executions where tools return content that is written back into the agent's working context. Does not apply to single-hop stateless inference or to traces where tool outputs are immutable append-only logs never re-read by the model.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-attribution-failure-when-tool-outputs-mutate-the-agent-context-across-multi-hop-traces.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-attribution-failure-when-tool-outputs-mutate-the-agent-context-across-multi-hop-traces.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-attribution-failure-when-tool-outputs-mutate-the-agent-context-across-multi-hop-traces.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1494,
    "python_slice_tokens": 244,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **observing a tool call** and **observing the effect of a tool call on the context that the next reasoning step actually consumes**. Standard GenAI observability treats a span as `(input, tool, output)`. Multi-hop traces with context mutation require a fourth element: the **context delta** — the exact bytes inserted, r...",
    "what_was_observed": "A three-hop agent (retrieve → summarize → act) produced a trace where the final tool invocation cited a policy clause. The clause was present in the hop-1 retrieval output. The hop-2 summarizer, operating under a token budget, compacted the retrieved set and dropped the clause's *qualifying sentence* while keeping the clause's header. The hop-3 actor then invoked the clause without its qualifier. Replaying the trace ...",
    "condition_of_validity": "Causal attribution across context-mutating hops is valid **only if** every hop that writes to the context emits a structured delta record containing: (a) the exact set of tokens/segments inserted, (b) the exact set removed, (c) whether removal was budget-driven, dedup-driven, or model-driven, and (d) a content-addressed hash of the resulting effective contex...",
    "decision_boundary": "The boundary is between **content-similarity attribution** and **delta-chain attribution**. Use content-similarity when: all intermediate hops are append-only, the context is never compacted, and no hop reorders or deduplicates. Use delta-chain attribution when: any hop applies lossy transformation, the token budget is enforced mid-trace, or a summarizer/com...",
    "operational_effect": "Enforcing delta-chain attribution converts an invisible failure into a first-class trace event. The summarizer hop gains in-degree equal to the number of downstream hops whose context it mutated, and its compaction ratio becomes a monitored signal. Replay from recorded deltas reproduces the *displaced* context, not just the retained context, so the qualifier..."
  },
  "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": "64e9982f8eefee583204a361dfc16dd89e5421fc8227756d69d90cb58f496060",
    "verified_classes": [
      "MutationOpacityError",
      "Hop"
    ],
    "verified_functions": [
      "verify_attribution_chain"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "MutationOpacityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
