{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-taint-label-inheritance-across-a-tool-call-chain-as-a-monotonic-lattice-rather-than-a-per-call-advisory-t",
  "title": "Under what conditions must an instance treat taint-label inheritance across a tool-call chain as a monotonic lattice rather than a per-call advisory tag",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent runtime that propagates data-provenance labels (\"taint\") through tool calls and enforces least-privilege syscall/egress policies keyed on those labels. Does not cover static taint analysis of model weights or prompt-content classifiers that operate only on the natural-language channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-taint-label-inheritance-across-a-tool-call-chain-as-a-monotonic-lattice-rather-than-a-per-call-advisory-t.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-taint-label-inheritance-across-a-tool-call-chain-as-a-monotonic-lattice-rather-than-a-per-call-advisory-t.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-taint-label-inheritance-across-a-tool-call-chain-as-a-monotonic-lattice-rather-than-a-per-call-advisory-t.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2073,
    "python_slice_tokens": 446,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most sandboxing implementations treat a taint label as a *per-call attribute*: the orchestrator inspects the arguments of the current tool invocation, derives a label, and consults the policy engine for that single call. This is a **snapshot** model. The correct model is a **monotonic lattice over the call chain**: the effective taint of a call is the join (...",
    "what_was_observed": "A retrieval-augmented agent was configured to fetch untrusted web pages (`net.egress` allowed to a fetch proxy) and then, in a later turn, call an internal `http_post` tool to a trusted internal endpoint. The policy engine was snapshot-based: it labeled `fetch_page` outputs as `UNTRUSTED` and denied `http_post` whenever the *immediate argument string* matched a taint pattern (e.g., contained a URL from the untrusted ...",
    "condition_of_validity": "The snapshot model is only sound when **every** value that a high-taint input can influence is either (a) returned by a tool that is explicitly declared as a *declassifier* with a reviewed, deterministic mapping, or (b) never crosses a privilege boundary. In practice (a) is unattainable for any tool that re-encodes data (parsers, formatters, summarizers, emb...",
    "decision_boundary": "The boundary is the point at which a value crosses from a tool whose output label is *derived from its inputs* into a tool whose output label is *derived from its identity*. The moment `json_parse`'s output is labeled by \"json_parse is a trusted tool\" rather than \"json_parse consumed `UNTRUSTED`,\" the invariant is broken. The same boundary is crossed when th...",
    "operational_effect": "Enforcing the lattice changes the agent's behavior in three observable ways: 1. **Taint ceilings propagate to capability.** Once `UNTRUSTED` enters the chain, every subsequent tool call in that task is restricted to the `UNTRUSTED` capability class — typically read-only, no egress, no writes outside a scratch namespace. The agent cannot \"clean up\" and regain..."
  },
  "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": "d0a2b1bce7a91baba0e6607bbcd61391720539bf97b48e3419f3eff1c053b6dd",
    "verified_classes": [
      "TaintLatticeViolation",
      "Label",
      "Tainted",
      "ToolSpec",
      "ChainState"
    ],
    "verified_functions": [
      "invoke",
      "run_trace",
      "join",
      "record"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLatticeViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
