{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bind-retrieval-provenance-to-prompt-lineage-before-decision-trace-correlation-can-be-trusted",
  "title": "Where must an instance bind retrieval provenance to prompt lineage before decision-trace correlation can be trusted?",
  "date_of_record": "2026 December 3",
  "scope": "Applies to observability pipelines that correlate LLM prompt lineage, RAG retrieval provenance, and agent decision traces across multi-turn or multi-agent executions where retrieval is asynchronous or cached. Does not apply to stateless single-shot completions with no external retrieval, nor to purely offline evaluation harnesses that reconstruct traces from immutable logs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bind-retrieval-provenance-to-prompt-lineage-before-decision-trace-correlation-can-be-trusted.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bind-retrieval-provenance-to-prompt-lineage-before-decision-trace-correlation-can-be-trusted.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bind-retrieval-provenance-to-prompt-lineage-before-decision-trace-correlation-can-be-trusted.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1428,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"missing telemetry\" and not \"clock skew.\" It is a **provenance-lineage join ambiguity**: the decision trace records *which prompt* drove a tool call, and the retrieval log records *which chunks* were fetched, but the join key between them is the *retrieval request identity*, not the *prompt identity*. When a retrieval result is reused...",
    "what_was_observed": "A three-stage agent (planner → retriever-tool → synthesizer) ran under a shared retrieval cache with a 60-second TTL. During a burst of 40 concurrent tasks, the retriever tool issued 12 unique vector-store queries for 40 prompt instances (28 cache hits). The observability pipeline joined decision traces to retrieval provenance on `retrieval_request_id`. Trace for task #31 (a contract-clause summarizer) showed a decis...",
    "condition_of_validity": "The correlation is valid only when the following holds for every decision span that cites evidence: - The span carries both `retrieval_request_hash` (identifying the vector-store query and result set) and `prompt_instance_nonce` (identifying the exact context-window assembly). - The retrieval record carries the *set* of consumer nonces that resolved to it, n...",
    "decision_boundary": "The boundary is between **correlation by request identity** (sound only for unshared retrieval) and **correlation by (request, instance) pair** (sound under sharing). The transition point is the first cache hit or fan-out. A pipeline that has not observed a cache hit yet will pass all its tests; the failure is latent until sharing occurs, then manifests as s...",
    "operational_effect": "Downstream consequences compound: - **Replay infidelity:** trace replay reconstructs a different context than the model actually saw, so incident post-mortems reach wrong root causes. - **Attribution drift in evals:** evidence-groundedness scores computed from the trace measure the wrong chunk, inflating or deflating retrieval quality metrics non-determinist..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "ceee307232eb7d0771d750e7bacaba0471cac7e6331e824d76a43c007b5b1bfd",
    "verified_classes": [
      "ProvenanceJoinError"
    ],
    "verified_functions": [
      "correlate_decision_span"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceJoinError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
