{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-syscall-level-confinement-when-an-mcp-server-s-declared-capability-set-is-attenuated-mid-call",
  "title": "Why does an instance lose syscall-level confinement when an MCP server's declared capability set is attenuated mid-call?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent runtimes that confine untrusted MCP (Model Context Protocol) servers via syscall-level sandboxing (seccomp-bpf, Landlock, or gVisor-style syscall interception) combined with per-tool capability tokens that can be attenuated between invocation and return. Does not apply to in-process tool functions, nor to servers whose capability set is fixed for the lifetime of the process.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-syscall-level-confinement-when-an-mcp-server-s-declared-capability-set-is-attenuated-mid-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-syscall-level-confinement-when-an-mcp-server-s-declared-capability-set-is-attenuated-mid-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-syscall-level-confinement-when-an-mcp-server-s-declared-capability-set-is-attenuated-mid-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1891,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the sandbox is too permissive\" or \"the agent granted too much.\" It is a **temporal inconsistency between two enforcement surfaces that were designed independently**: the syscall filter (compiled once, at server spawn, from the *initial* capability manifest) and the capability token (mutable, attenuable, checked at the RPC boundary). When ...",
    "what_was_observed": "A research-orchestration agent spawned a third-party MCP server (`filesystem-search`) under a gVisor sandbox. The initial manifest granted `fs:read:/data/**` and `net:none`. The seccomp/Landlock policy was compiled at spawn from that manifest and **sealed** — a deliberate design choice, because recompiling a filter in a running sandbox requires either `no_new_privs` teardown (killing the process) or a `seccomp` filte...",
    "condition_of_validity": "This failure requires all four of the following to hold simultaneously: 1. **Sealed-at-spawn syscall policy.** The seccomp/Landlock profile is compiled from the manifest at process start and cannot be narrowed without process restart. This is the default for gVisor and for most `libseccomp`-based runtimes, because filter stacking is expensive and `no_new_pri...",
    "decision_boundary": "The invariant that bounds this failure: > **A capability attenuation is only sound if the enforcing surface is coextensive with the surface that can exercise the capability.** If the capability is exercised by syscalls, attenuation must reach the syscall filter; if it cannot reach the syscall filter without restart, then attenuation must be *modeled as a res...",
    "operational_effect": "The practical consequence is a **provenance taint on all tool results returned after an in-place attenuation**. Any result from such a server may reflect syscalls authorized under a *superseded* manifest. The correct agent behavior is: 1. On issuing an attenuation, mark the server's result stream `tainted` until respawn. 2. If the runtime does not respawn, t..."
  },
  "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": "46e32a6252e4c676d0a936d03276b12030bdd82bd75557cdb962316fc50bad69",
    "verified_classes": [
      "CapabilityAttenuationInconsistency",
      "SandboxedMCPServer"
    ],
    "verified_functions": [
      "plan_attenuation",
      "__init__",
      "attenuate",
      "call_tool",
      "_invoke"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityAttenuationInconsistency"
    ],
    "sample_fail_closed_invariants": [
      "server is neither stateless-certified nor restartable; attenuation would leave kernel/RPC divergence unbounded"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
