{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-taint-monotonicity-across-a-delegation-chain-before-it-may-route-to-a-privileged-tool-scope",
  "title": "Where must an instance enforce taint monotonicity across a delegation chain before it may route to a privileged tool scope?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent systems where an orchestrator routes sub-agent outputs (or sub-agent instances themselves) toward tool scopes of differing privilege, and where taint (untrusted provenance) is tracked per-context rather than per-process. Does not cover single-agent prompt-injection defenses or static RBAC where no context provenance crosses an agent boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-taint-monotonicity-across-a-delegation-chain-before-it-may-route-to-a-privileged-tool-scope.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-taint-monotonicity-across-a-delegation-chain-before-it-may-route-to-a-privileged-tool-scope.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-taint-monotonicity-across-a-delegation-chain-before-it-may-route-to-a-privileged-tool-scope.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2259,
    "python_slice_tokens": 407,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *taint propagation* and *taint monotonicity*. Most taint-aware routers implement propagation: when a sub-agent consumes untrusted content, its output is marked tainted, and the router refuses to send tainted output to a privileged tool. This is necessary but insufficient. The failure mode lives in the gap between propa...",
    "what_was_observed": "In a routing harness with three scopes — `read_public`, `read_private`, `execute_privileged` — an orchestrator delegated retrieval to two workers and synthesis to a third, then routed the synthesis to `execute_privileged`. The router's taint check was keyed on the *immediate* message envelope: `envelope.taint_flags`. Worker B's envelope carried `{untrusted_source: true}`; the synthesizer's envelope carried `{}` becau...",
    "condition_of_validity": "The invariant that must hold for taint-aware routing to be sound: > For every agent instance `i` and every input channel `c` into `i`, `taint(i) ⊇ ⋃_{c} taint(c)`, and `taint(i)` is only ever widened by the runtime, never assigned from a function of `i`'s own configuration. Call this *taint monotonicity along the delegation DAG*. It is valid only when: - **L...",
    "decision_boundary": "The boundary between \"route\" and \"refuse\" is not \"is this output tainted?\" but \"does the taint join over this output's full lineage intersect the privilege set of the target scope?\" Formally, let `P(scope)` be the set of capabilities a scope grants and `T(output)` the taint join. The router may route `output` to `scope` iff `T(output) ∩ sensitive(P(scope)) =...",
    "operational_effect": "The practical consequence is that taint-aware routing must be implemented as a *lineage-joined lattice* enforced at the router, with the join recomputed from the message DAG on every privileged dispatch, and with re-spawn/compaction treated as taint-preserving. When this is in place: - The synthesizer case is caught: `join(taint(A.findings), taint(B.findings..."
  },
  "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": "7be577240e93919aca1ec2d1f86ac6c4bafbfa24f2dbe3ceb31983bb3c1813cc",
    "verified_classes": [
      "TaintMonotonicityError",
      "MissingTaintLabelError",
      "Message",
      "AgentInstance"
    ],
    "verified_functions": [
      "route_to_privileged",
      "consume",
      "lineage_taint"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "MissingTaintLabelError",
      "TaintMonotonicityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
