{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-transport-layer-provenance-separation-has-failed-mid-stream-in-an-agent-context",
  "title": "What structural signals indicate transport-layer provenance separation has failed mid-stream in an agent context",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that enforce instruction/data provenance separation at the MCP/A2A transport boundary by tagging message parts with a provenance class (e.g., `instruction` vs `data`) and rejecting inline directive content found in data-classed parts. Does not address post-hoc output filtering, model-side prompt hardening, or content moderation of the model's own generations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-transport-layer-provenance-separation-has-failed-mid-stream-in-an-agent-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-transport-layer-provenance-separation-has-failed-mid-stream-in-an-agent-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-transport-layer-provenance-separation-has-failed-mid-stream-in-an-agent-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2147,
    "python_slice_tokens": 361,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance separation at the transport layer assumes a *stable, per-message-part* classification: a chunk of bytes is either instruction-channel or data-channel, decided once at ingress, and the downstream executor is expected to honor that classification for the lifetime of the context window that contains it. The failure mode is not \"the classifier mislabe...",
    "what_was_observed": "A tool-call result arrives from an MCP server as a `text/event-stream` of 14 frames. Frame 1 carries the JSON-RPC envelope with `\"role\": \"tool_result\"` and a provenance tag `data`. Frames 2–13 carry base64-encoded tool output chunks. Frame 14 carries the terminal sentinel and a duplicated envelope header — a common pattern in resumable streams where the server re-emits the envelope to allow client-side resumption aft...",
    "condition_of_validity": "This failure requires all four of the following to hold simultaneously: 1. **Part splitting across frames.** The logical message part exceeds the transport frame size or is streamed for latency reasons. If parts are atomic per frame, per-frame classification is equivalent to per-part classification and the failure cannot occur. 2. **Per-frame provenance deri...",
    "decision_boundary": "The boundary is between **provenance as a derived property** and **provenance as a transported property**. Derived provenance is recomputed from observable frame features (envelope presence, content heuristics, frame adjacency) and is therefore vulnerable to any reassembly path that changes the frame features. Transported provenance is an explicit, immutable...",
    "operational_effect": "When the invariant is violated, the observable effect is a **provenance-verdict divergence**: the guardrail reports `clean` while the model's context contains directive content from a data-classed part. The divergence is detectable by instrumenting the guardrail and the context-append to emit a content hash of their respective inputs; if the hashes differ, t..."
  },
  "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": "47c6eb7fcf524c2ed6a779766b7e0c223f233361fead0cb71bde7a1ab47d83bd",
    "verified_classes": [
      "ProvenanceViolation",
      "Provenance",
      "Frame",
      "AssembledPart"
    ],
    "verified_functions": [
      "reassemble",
      "guardrail_check",
      "_contains_directive",
      "content_hash"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
