{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-s-span-clock-and-its-memory-mutation-clock-disagree-under-federated-trace-correlation",
  "title": "What happens when an instance's span clock and its memory-mutation clock disagree under federated trace correlation",
  "date_of_record": "2026 November 24",
  "scope": "Applies to federated observability pipelines that reconstruct causal order across spans emitted by multiple agent instances (planner, tool-executor, memory-writer, policy-enforcer) where memory mutations and policy decisions are emitted as separate span types and joined by trace/span IDs. Does not apply to single-process, single-clock instrumentation where all spans share one monotonic source.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-span-clock-and-its-memory-mutation-clock-disagree-under-federated-trace-correlation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-span-clock-and-its-memory-mutation-clock-disagree-under-federated-trace-correlation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-span-clock-and-its-memory-mutation-clock-disagree-under-federated-trace-correlation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1993,
    "python_slice_tokens": 515,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two clocks in any federated agent trace, and they are not the same clock: 1. **The span clock** — the wall-clock timestamp attached to a span at emit time (`start_time`, `end_time`), typically sourced from the host's NTP-synced `time.time_ns()` or a runtime-provided monotonic counter. 2. **The mutation clock** — the logical sequence in which a memo...",
    "what_was_observed": "A four-instance agent pipeline: `planner` → `executor` → `memory-writer` → `policy-enforcer`. Each instance emits spans into a collector over OTLP; the collector stamps arrival order but preserves emitter-supplied `start_time`. A correlator service joins spans on `trace_id`, sorts by `start_time`, and builds a causal narrative for the audit log. During a prompt-injection incident replay, the audit narrative read: The...",
    "condition_of_validity": "Span-clock ordering is a valid proxy for mutation-clock ordering **only** when all of the following hold: - **Bounded skew:** max clock skew across all emitting hosts is strictly less than the minimum inter-event causal gap. In the incident above, skew reached 40 ms while the policy→mutation gap was 18 ms — the invariant was violated by 22 ms. - **Monotonic ...",
    "decision_boundary": "The operational rule the pipeline must enforce: > **Correlate by logical clock; display by wall clock.** Any causal claim in the audit narrative (\"X allowed Y\", \"Y read Z\") must be derived from a monotonically increasing logical counter propagated across instance boundaries (via span context), never from `start_time` sort. Wall-clock timestamps are for human...",
    "operational_effect": "The failure mode's blast radius is not the trace itself — it is the **remediation decision** the trace drives. A false \"policy allowed the tainted write\" attribution sends the on-call engineer to harden the policy engine (adding rules, tightening taint checks) while the actual bypass path — an uninstrumented direct memory-store RPC — remains open. The next i..."
  },
  "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": "11f052c6e93bd79c42c25a9e5deade6105038f181a357d92c5ccc134e88a9e7c",
    "verified_classes": [
      "CausalOrderingViolation",
      "Span"
    ],
    "verified_functions": [
      "assert_causal_order",
      "reconcile_with_wal"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CausalOrderingViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
