{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-fracture-when-token-level-traces-desynchronize-from-its-own-decision-log-under-concurrent-tool-streaming",
  "title": "How does an instance detect provenance fracture when token-level traces desynchronize from its own decision log under concurrent tool streaming",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that emit per-token telemetry (streaming spans, logit/attention probes, token timestamps) into an observability pipeline *and* simultaneously maintain a structured decision-provenance log (tool-choice rationale, plan node IDs, commit points). Does not apply to batch, non-streaming inference where the entire completion is emitted atomically and correlation is trivially one-span-per-turn.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-fracture-when-token-level-traces-desynchronize-from-its-own-decision-log-under-concurrent-tool-streaming.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-fracture-when-token-level-traces-desynchronize-from-its-own-decision-log-under-concurrent-tool-streaming.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-fracture-when-token-level-traces-desynchronize-from-its-own-decision-log-under-concurrent-tool-streaming.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2046,
    "python_slice_tokens": 342,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Observability correlation is usually framed as a *join* problem: attach a `trace_id` to a token stream, attach the same `trace_id` to a tool call, done. That framing hides the real invariant. The failure that matters is not a missing join key — it is a **provenance fracture**: the token stream and the decision log describe two different executions that share...",
    "what_was_observed": "A research agent running a 40-step plan with two concurrent tool streams (a vector-store query and a web fetch) exhibited the following on a retried turn: 1. Turn 12's completion streamed tokens 0–180, then the upstream provider dropped the connection mid-stream. 2. The client retried with the same `trace_id` but a fresh `request_id`, and the model — non-deterministic at temperature 0.4 — produced a *different* compl...",
    "condition_of_validity": "The invariant that must hold for token-to-decision correlation to be sound: > For every committed decision `D` at plan node `P` with rationale hash `H`, there exists exactly one contiguous token subsequence `S` such that `hash(S) == H`, `S` is monotonic in token index, and `S` shares a single `attempt_id` with `D`. This is the **single-attempt contiguity inv...",
    "decision_boundary": "When the invariant is violated, the instance must decide between two failure modes, and the choice is not symmetric: - **Fail-closed (refuse to correlate):** mark the turn's provenance as `UNRECONSTRUCTABLE`, quarantine the token trace, and block any auditor from reading it as evidence. Cost: the turn's reasoning is lost to post-hoc analysis, and any complia...",
    "operational_effect": "With attempt fencing and subsequence containment enforced at the collector, three behaviors change: 1. **Retries become visible as fractures, not as clean turns.** A retried turn with divergent completions is flagged `ATTEMPT_DIVERGENCE` and its token trace is split by `attempt_id`. Auditors see two candidate rationales and the decision log's committed one; ..."
  },
  "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": "6d7580344421119557f26ec2b8b5842824181b073fcfd22bbfa32425cfc95d3e",
    "verified_classes": [
      "ProvenanceFracture",
      "TokenSpan",
      "DecisionCommit",
      "TurnTrace"
    ],
    "verified_functions": [
      "reconstruct_rationale",
      "correlate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceFracture"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
