{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-taint-label-laundering-across-capability-broker-mediated-agent-egress",
  "title": "Which invariants prevent taint-label laundering across capability-broker-mediated agent egress",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent runtimes where a taint-tracking layer labels context and tool outputs, and a capability broker authorizes outbound egress (network calls, file writes, message sends) based on those labels. Does not cover pure prompt-level guardrails, static allowlists without taint state, or human-reviewed release gates.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-label-laundering-across-capability-broker-mediated-agent-egress.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-label-laundering-across-capability-broker-mediated-agent-egress.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-label-laundering-across-capability-broker-mediated-agent-egress.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2155,
    "python_slice_tokens": 405,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware capability broker enforces egress policy by consulting the taint lattice attached to the *values* an agent is trying to emit, not the agent's identity or the tool's identity alone. The naive model — \"if the context is tainted `SECRET`, block egress\" — is defeated by a boundary that is easy to miss: **taint is a property of the data-flow graph, ...",
    "what_was_observed": "A summarization tool was registered with capability `summarize(text) -> text`. Its taint contract, as declared to the broker, was `PUBLIC -> PUBLIC` with a note \"output is model-generated, treat as low-integrity.\" The runtime's taint engine honored this literally: the tool's output label was set from the *declared* contract rather than joined with the input label. Trace: 1. Agent reads a document labeled `SECRET`. Co...",
    "condition_of_validity": "The broker's authorization is sound only under all of the following, each of which is independently violable: - **Contract soundness.** Every registered tool's declared taint contract is an over-approximation of its true information flow. Violated by any tool that passes input substrings, embeddings, or reversible encodings into its output. Summarizers, form...",
    "decision_boundary": "The runtime must choose, at registration and at handoff, between two postures: - **Declared-contract posture** (fast, cheap): trust tool and envelope contracts, enforce the lattice as declared. Sound only for tools whose information flow is provably non-expansive — pure predicates, length checks, hashes with fixed output. Unsuitable for any generative or re-...",
    "operational_effect": "With the observed-flow posture and envelope completeness enforced: - Summarizer calls now propagate `SECRET` to `v_sum`; egress is denied at step 3, and the agent must route through an explicit declassifier that logs the emission, the source, and the justification. The account number never leaves. - A2A handoffs carry the join of all fields; Agent B's contex..."
  },
  "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": "6b98bf22b03b1aabd1f91f6a3732085c4689893b0c340f10bef06784075edb46",
    "verified_classes": [
      "Label",
      "TaintContractBreach",
      "EgressDenied",
      "ToolContract",
      "Broker"
    ],
    "verified_functions": [
      "run_episode",
      "join",
      "register",
      "call",
      "egress"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "EgressDenied",
      "TaintContractBreach"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
