{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-derive-taint-provenance-when-span-correlation-outlives-the-agent-identity-that-minted-it",
  "title": "Where must an instance re-derive taint provenance when span correlation outlives the agent identity that minted it?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-hop agent runtimes that propagate taint labels (untrusted-input markers) across spans correlated by trace ID, where child spans may be emitted by a different instance identity than the root span. Does not apply to single-process, single-identity agents with no cross-instance handoff, nor to purely offline batch inference with no live trace correlation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-taint-provenance-when-span-correlation-outlives-the-agent-identity-that-minted-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-taint-provenance-when-span-correlation-outlives-the-agent-identity-that-minted-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-taint-provenance-when-span-correlation-outlives-the-agent-identity-that-minted-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2003,
    "python_slice_tokens": 352,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Observability systems conflate two things that agent runtimes must keep separate: **trace continuity** (a shared `trace_id`/`span_id` tree that says \"these operations happened in one causal chain\") and **provenance continuity** (the guarantee that a taint label attached to a span was minted by, and remains attributable to, a specific instance identity that o...",
    "what_was_observed": "A three-hop delegation chain: orchestrator `A` (root span, mints taint label `T1` after ingesting a retrieved document flagged as untrusted), delegates to sub-agent `B` via an A2A task with a propagated `traceparent` header, which calls an MCP tool hosted by server `C`. The trace collector correlates all spans under one `trace_id`. Observed divergence in three independent runs: - **Run 1 (label survives, authority lo...",
    "condition_of_validity": "The invariant that makes cross-instance taint correlation sound is: > A taint label `T` on span `S` is valid iff `S.identity` equals the identity that minted `T`, **or** `S` carries a verifiable provenance record linking `T` to a minting identity and an observation event, and the runtime can re-derive that link at evaluation time. Correlation by `trace_id` a...",
    "decision_boundary": "The boundary is crossed when **the set of identities emitting spans under a trace ID has cardinality > 1**. Below that, attribute propagation is sound. At or above it, the runtime must choose one of: 1. **Re-derivation (preferred):** each instance that emits a tainted span must have independently observed the tainted input or verified a signed provenance rec...",
    "operational_effect": "Without the invariant, three concrete degradations appear: - **Silent taint laundering:** an instance that never observed untrusted input can emit a clean span downstream of a tainted one, and the trace remains continuous. The sink sees no taint and acts. This is the Run 1 failure with the label stripped. - **Cross-source taint merge:** labels from distinct ..."
  },
  "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": "caed0a7a0a0ebcf7efd0a8b3cf19615cd35d59b3c5253c113ecaeb60e26c592d",
    "verified_classes": [
      "TaintProvenanceError",
      "TaintRecord",
      "Span"
    ],
    "verified_functions": [
      "verify_taint_at_boundary",
      "evaluate_sink"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
