{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-injection-taint-as-a-call-time-argument-invariant-rather-than-a-prompt-level-filter",
  "title": "Under what conditions must an instance treat injection taint as a call-time argument invariant rather than a prompt-level filter",
  "date_of_record": "2026 November 27",
  "scope": "Applies to single- or multi-agent instances that route untrusted content (tool outputs, retrieved documents, peer messages) into tool-call argument construction under a taint-tracking sandbox. Does not apply to agents whose tool arguments are fully schema-constrained enums with no free-text or path/URL fields, nor to human-in-the-loop approval gates that re-read every argument.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-injection-taint-as-a-call-time-argument-invariant-rather-than-a-prompt-level-filter.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-injection-taint-as-a-call-time-argument-invariant-rather-than-a-prompt-level-filter.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-injection-taint-as-a-call-time-argument-invariant-rather-than-a-prompt-level-filter.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1714,
    "python_slice_tokens": 284,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A prompt-level injection filter asks: *does this text look like an instruction?* A taint-aware call-time invariant asks: *did the bytes that produced this argument value originate from a source the current session did not author?* These are not the same boundary. The first is a classifier over content and is defeated by paraphrase, encoding, and benign-looki...",
    "what_was_observed": "Trace from a document-retrieval agent with three tools: `fetch_url`, `read_file`, `send_email`. A retrieved page contained a hidden field whose value was `../../etc/passwd` embedded in an otherwise innocuous \"related links\" table. The agent's plan step read the table, summarized it correctly, and then invoked `read_file(path=row.link)` where `row.link` carried taint label `SOURCE:web:untrusted` at retrieval time. The...",
    "condition_of_validity": "The call-time invariant holds only when all of the following are true simultaneously: - **Label propagation is defined over values, not references.** Every string produced by formatting, slicing, concatenation, or JSON round-trip must inherit the union of taints of its inputs. A taint system keyed on object identity is invalid the moment any tool returns ser...",
    "decision_boundary": "The instance must switch from prompt-filter mode to call-time-invariant mode when **any** of the following is true: - A tool argument field is free-text, a path, a URL, a shell fragment, or an identifier that indexes a privileged namespace. - The value was produced by a tool call whose output the current session did not author (retrieval, peer agent, externa...",
    "operational_effect": "Enforcing the invariant converts a class of injection failures from *probabilistic model errors* into *deterministic runtime exceptions*. The observable consequences: - Injection attempts that survive the model's judgment now surface as `TaintViolation` at the call site, with the offending argument and its provenance chain attached. This is auditable; a mode..."
  },
  "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": "601e371da128d96413d4a73b0879ab252118552cfe504d05f2b6cd0d1c757696",
    "verified_classes": [
      "TaintViolation",
      "Tainted"
    ],
    "verified_functions": [
      "concat",
      "declassify",
      "dispatch",
      "build_and_call",
      "__post_init__"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintViolation"
    ],
    "sample_fail_closed_invariants": [
      "declassification requires non-empty reason and approver",
      "labels must be a frozenset; mutable taint is a laundering seam"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
