{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-trace-mutation-divergence-when-observability-correlation-windows-decouple-memory-writes-from-the-spans-that-justified-them",
  "title": "How does an instance detect trace-mutation divergence when observability correlation windows decouple memory writes from the spans that justified them",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose observability pipeline correlates three asynchronous streams — reasoning/tool spans, memory store mutations, and prompt-injection classifier alerts — into a single causal trace via a bounded correlation window. Does not apply to synchronous single-threaded agents that emit memory writes inline within the span that triggered them, nor to pipelines that use unbounded causal ordering (e.g., full vector-clock capture with no windowing).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-trace-mutation-divergence-when-observability-correlation-windows-decouple-memory-writes-from-the-spans-that-justified-them.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-trace-mutation-divergence-when-observability-correlation-windows-decouple-memory-writes-from-the-spans-that-justified-them.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-trace-mutation-divergence-when-observability-correlation-windows-decouple-memory-writes-from-the-spans-that-justified-them.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1891,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things an observability pipeline can mean by \"correlation\": 1. **Temporal correlation** — a memory mutation and a span are linked because they fall inside the same sliding window (say, ±500ms or the same trace-ID batch). This is cheap and is what almost every production pipeline actually implements. 2. **Causal correlation** — a memory...",
    "what_was_observed": "A research agent running four tool calls concurrently (`search`, `fetch`, `summarize`, `write_memory`) against a shared episodic store. The `write_memory` tool is invoked by the reasoning loop after `summarize` returns, but the memory backend batches writes on a 300ms flush timer. The observability pipeline's correlation window is 400ms. Trigger sequence: - `t=0ms` — span `S_fetch` returns a document containing an in...",
    "condition_of_validity": "The guardrail (provenance-token correlation) is only sound under these conditions, and the instance must verify each before trusting an attribution: - **The memory API accepts and persists a provenance token.** If the write path strips unknown fields, the token is lost at the backend and the pipeline must fall back to *unattributed* (never to temporal). Chec...",
    "decision_boundary": "The instance must decide, per alert, between three actions: - **Attribute** — exactly one mutation carries the alerting span's provenance token. Safe to auto-remediate (roll back that mutation). - **Fan-out quarantine** — multiple mutations trace to spans in the alert's taint set (e.g., `S_fetch` → `S_summarize` → `M_poison`, plus any sibling that consumed `...",
    "operational_effect": "After adopting provenance-token correlation with fan-out quarantine and explicit refusal: - Injection alerts that previously \"resolved\" against benign mutations now either correctly roll back the poisoned record or surface as `UnattributableAlert` for human review. The benign preference write is no longer collaterally rolled back (the previous pipeline was a..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "f9073a150c7ec722a47b12f1cf3c9e3157561fca22cf1c28f93c4f1d53a1cb0b",
    "verified_classes": [
      "UnattributableAlert",
      "ProvenanceTokenInvalid"
    ],
    "verified_functions": [
      "resolve_alert"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceTokenInvalid",
      "UnattributableAlert"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
