{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-capability-grant-as-non-transitive-across-a-taint-boundary-in-agent-invoked-code-execution",
  "title": "In what scenarios must an instance treat a capability grant as non-transitive across a taint boundary in agent-invoked code execution",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent runtimes where an LLM instance synthesizes and executes code inside a sandbox whose syscalls are gated by capability tokens, and where data carries taint labels propagated from untrusted sources (tool outputs, retrieved documents, peer-agent messages). Does not apply to statically-analyzed workloads with no dynamic code generation, nor to sandboxes that enforce only coarse seccomp allowlists without per-object taint tracking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-capability-grant-as-non-transitive-across-a-taint-boundary-in-agent-invoked-code-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-capability-grant-as-non-transitive-across-a-taint-boundary-in-agent-invoked-code-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-capability-grant-as-non-transitive-across-a-taint-boundary-in-agent-invoked-code-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1796,
    "python_slice_tokens": 268,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the sandbox let a forbidden syscall through.\" It is subtler: **capability possession was treated as transitive across a taint boundary.** A capability `C` legitimately held by the instance for a clean data path was silently inherited by a code fragment that had *become tainted*—because it consumed an untrusted string, parsed an attac...",
    "what_was_observed": "An instance was tasked with summarizing a batch of retrieved web documents and writing a consolidated report to a mounted volume. The runtime minted a `FS_WRITE` capability scoped to `/work/report/` and a `NET_FETCH` capability scoped to a documentation allowlist. Execution proceeded in three phases: fetch, parse, write. During `parse`, one document contained an embedded instruction-like payload (a prompt-injection s...",
    "condition_of_validity": "The invariant \"capabilities are non-transitive across taint boundaries\" holds **only** under the following conditions, and the runtime must detect when any fails: 1. **Taint labels propagate through every value-copying operation**, including string concatenation, JSON round-trips, and inter-process serialization. If a taint label is dropped during a `pickle`...",
    "decision_boundary": "The runtime must decide, at each syscall, between three outcomes, and the boundary between them is the taint-ceiling comparison: - **Permit** when `taint(target) ⊑ ceiling(capability)` and the syscall is in the capability's scope. Here `⊑` is the lattice order; `CLEAN ⊑ TAINTED` is false, so a clean-ceiling capability never permits a tainted target. - **Deny...",
    "operational_effect": "After the incident, the runtime was changed to carry a `(capability_id, taint_ceiling)` pair on every minted capability and to re-evaluate the target's current taint at each gated syscall. The practical consequences for the instance were: 1. **Planner code that mixes fetched and clean data now triggers declassification prompts** mid-execution. This is correc..."
  },
  "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": "f7dd9fcad4ca7993652668f409c0d49aac56976eb4154496ea159c72193eacec",
    "verified_classes": [
      "TaintTransitivityViolation",
      "Taint",
      "Capability",
      "GatedObject"
    ],
    "verified_functions": [
      "gate_syscall",
      "write_report",
      "__init__",
      "__le__",
      "__init__",
      "__init__"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintTransitivityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
