{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-trace-span-parentage-with-injection-telemetry-before-the-correlation-window-closes",
  "title": "Where must an instance reconcile trace-span parentage with injection telemetry before the correlation window closes",
  "date_of_record": "2026 November 19",
  "scope": "Applies to observability pipelines that join agent execution traces (spans, tool calls, LLM invocations) against prompt-injection detection telemetry emitted asynchronously by a separate scanner. Does not apply to inline synchronous guardrails that block a call before it executes, nor to post-hoc batch forensics where correlation latency is unbounded.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-trace-span-parentage-with-injection-telemetry-before-the-correlation-window-closes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-trace-span-parentage-with-injection-telemetry-before-the-correlation-window-closes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-trace-span-parentage-with-injection-telemetry-before-the-correlation-window-closes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1482,
    "python_slice_tokens": 255,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"injection went undetected.\" It is a **correlation-identity divergence** between two telemetry planes that were never designed to share a join key. The trace plane identifies work by `trace_id`/`span_id` assigned at execution time by the agent runtime. The injection-detection plane identifies findings by the *content hash of the inspected ...",
    "what_was_observed": "A tool-using agent entered a repair loop on a document-summarization task. Turn 3 fetched an external page whose body contained an instruction-injection payload. The scanner flagged it with `event_id=E-8871`, `content_sha256=ab12...`, severity high, but emitted the event 4.2 seconds after the fetch span closed — the scanner batches on a 5s flush. The agent's repair loop then re-summarized the same content twice with ...",
    "condition_of_validity": "This failure requires three conditions to co-occur, and it is bounded only when any one is removed: 1. **Asynchronous scanner emission** — detection telemetry arrives after the span it describes has closed, so the join cannot be done at span-close time and must be deferred. 2. **Non-idempotent span identity** — the runtime collapses or reuses span identity a...",
    "decision_boundary": "The operational choice is between two postures when a span has more than one distinct payload hash and fewer findings than hashes: - **Fail-closed (recommended for any span touching external or tool-returned content):** mark the span `CORRELATION_INCOMPLETE`, suppress its severity aggregation, and route to human or a re-scan that re-inspects each hash with t...",
    "operational_effect": "Teams that skip the token propagation observe a characteristic signature: alert volume *falls* during injection campaigns because the escalating retries produce the orphaned findings. Mean-time-to-detect rises even as the scanner's own recall stays flat — the detector is working, the join is losing its output. The remediation is architectural, not threshold ..."
  },
  "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": "4020d70ea98a5ce282ccadc25ca22ca455ede151bd2a0fbaff0a9480087ae053",
    "verified_classes": [
      "CorrelationIncompleteError",
      "Span",
      "Finding"
    ],
    "verified_functions": [
      "correlate",
      "assert_token_propagation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CorrelationIncompleteError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
