{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-laundering-through-tool-result-re-entry-when-capability-scopes-are-enforced-only-at-invocation-time",
  "title": "How does an instance detect provenance-laundering through tool-result re-entry when capability scopes are enforced only at invocation time",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agents that label untrusted content (tool outputs, retrieved documents, peer messages) with provenance tags and enforce capability scopes at the moment a tool is invoked. Does not cover output-side content filtering, human-in-the-loop review gates, or models that receive untrusted text only in the system prompt.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundering-through-tool-result-re-entry-when-capability-scopes-are-enforced-only-at-invocation-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundering-through-tool-result-re-entry-when-capability-scopes-are-enforced-only-at-invocation-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-laundering-through-tool-result-re-entry-when-capability-scopes-are-enforced-only-at-invocation-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1838,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance labeling and capability scoping are two guards that are usually deployed as if they compose. Provenance labeling answers *\"where did this token come from and how much authority does it carry?\"* Capability scoping answers *\"is this specific invocation of this specific tool permitted for this principal?\"* The boundary failure lives in the gap betwee...",
    "what_was_observed": "A research agent was granted `web_fetch` (untrusted input) and `send_email` (egress). Tool outputs were wrapped as `<untrusted source=\"web_fetch\" taint=\"external\">…</untrusted>` and the system prompt instructed the model to treat tagged spans as data, never as instructions. Capability policy granted `send_email` to the agent principal with no argument-level constraints. Trace of the failure: 1. `web_fetch(\"https://ex...",
    "condition_of_validity": "The failure is bounded and predictable under these conditions, and the guardrails below are only necessary when all hold: - **Taint-carrying inputs and egress capabilities coexist in one principal.** If a principal can both read untrusted content and invoke an action with external effect, laundering is possible. Isolating readers from actors (separate princi...",
    "decision_boundary": "The architect must choose where provenance authority is enforced. Three placements, with distinct failure modes: - **Enforce at the prompt (advisory).** Tag content, instruct the model. Cheap, but probabilistic; fails exactly when adversarial content is most persuasive. Not a boundary — a hope. - **Enforce at the call site (taint-aware capability).** Require...",
    "operational_effect": "With taint-aware capability enforcement, the trace above terminates at step 3: the runtime attaches `body: taint=external` (derived from the fetched page) to the `send_email` call, the policy engine rejects it, and the agent receives a structured denial it can reason about (\"egress blocked: argument derived from external source; summarize for human review in..."
  },
  "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": "5a00e2c927174a77056a5ee799aaa969d5f5d8fdd66e0c946ddd05415d9cf8e2",
    "verified_classes": [
      "Taint",
      "Provenance",
      "ProvenanceLaunderingError",
      "ToolCall"
    ],
    "verified_functions": [
      "enforce_capability",
      "dispatch",
      "merge",
      "is_untrusted"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
