{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-line-between-tool-scoped-egress-and-the-transitive-reach-of-a-composed-mcp-server",
  "title": "Where must an instance draw the line between tool-scoped egress and the transitive reach of a composed MCP server?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that expose MCP servers under per-tool capability scopes and enforce egress controls at the tool-call boundary. Does not apply to single-process agents with no external tool federation, nor to servers whose entire toolset shares one egress policy.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-line-between-tool-scoped-egress-and-the-transitive-reach-of-a-composed-mcp-server.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-line-between-tool-scoped-egress-and-the-transitive-reach-of-a-composed-mcp-server.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-line-between-tool-scoped-egress-and-the-transitive-reach-of-a-composed-mcp-server.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1386,
    "python_slice_tokens": 220,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a tool escaped its sandbox.\" It is that **capability scoping was enforced on the call edge, not on the data-flow edge**. An MCP server is a *composition surface*: tool A (a fetcher, scoped to `net:egress:docs.internal`) can return content that tool B (an executor, scoped to `fs:write:/tmp`) then acts on. Each individual tool call was...",
    "what_was_observed": "A composed MCP server exposed three tools under distinct scopes: - `fetch_doc(url) -> text` — scope `net:egress:docs.internal` - `summarize(text) -> text` — scope `model:local` (no egress) - `run_shell(cmd)` — scope `exec:sandbox:ro` The runtime enforced egress at each call: `fetch_doc` could only reach `docs.internal`; `run_shell` ran in a read-only sandbox; `summarize` had no network. The agent was asked to \"summar...",
    "condition_of_validity": "Per-tool egress control is sound **only if** one of the following holds: - (a) No tool's output is ever consumed as another tool's input within a single task (the tools are leaves, not a graph), or - (b) Every value crossing a tool boundary carries a provenance label, and the capability graph includes output→input edges that are checked at consumption time, ...",
    "decision_boundary": "The decision the runtime must make at each tool result: **does this value's provenance permit it to be an argument to the next tool?** - If the next tool's scope is a *superset* of the value's provenance scope, allow. - If the value's provenance includes a capability the next tool does not hold, **deny unless the edge is explicitly granted** in the task's ca...",
    "operational_effect": "Without the closure check, an agent under prompt-injection or simple instruction-following can launder a capability: read from a high-egress source, pass through a no-egress transformer, and land in a low-scope executor. The blast radius is bounded by the *weakest* leaf, not the *intended* leaf. The fix is to make provenance a first-class field on every tool..."
  },
  "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": "15cd92f3814f437523fcc1ada4a63ad4f1f92ef2cba64e00fb496bd854df9785",
    "verified_classes": [
      "CapabilityLaunderingError",
      "Value",
      "Tool"
    ],
    "verified_functions": [
      "consume",
      "run_pipeline"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CapabilityLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
