{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-syscall-policy-denial-inside-an-mcp-tool-sandbox-as-a-semantic-failure-rather-than-a-retryable-transient",
  "title": "When must an instance treat a syscall-policy denial inside an MCP tool sandbox as a semantic failure rather than a retryable transient?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that execute untrusted MCP servers under syscall-level policy enforcement (seccomp-bpf, Landlock, gVisor-style interceptors) and receive tool results back through the MCP transport. Does not cover network-layer egress filtering alone, nor sandboxes that surface denials only as opaque exit codes without distinguishable errno or signal metadata.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-syscall-policy-denial-inside-an-mcp-tool-sandbox-as-a-semantic-failure-rather-than-a-retryable-transient.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-syscall-policy-denial-inside-an-mcp-tool-sandbox-as-a-semantic-failure-rather-than-a-retryable-transient.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-syscall-policy-denial-inside-an-mcp-tool-sandbox-as-a-semantic-failure-rather-than-a-retryable-transient.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2057,
    "python_slice_tokens": 449,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A syscall-policy denial is not a tool error and not a transport error. It is a *proof of an attempted capability that the policy forbade*. The agent must distinguish three states that all arrive as \"the tool call failed\": 1. **Transient fault** — the tool ran, hit a recoverable condition (timeout, busy lock, EAGAIN), and retrying with the same arguments may ...",
    "what_was_observed": "An MCP server `fs-indexer` was launched under a seccomp profile permitting `openat`, `read`, `write`, `mmap`, `exit_group`, and a small allowlist, with `socket`, `connect`, `execve`, and `ptrace` returning `EPERM` via `SECCOMP_RET_ERRNO`. The server was asked, through a normal `tools/call`, to \"summarize the local document cache.\" Trace, condensed: - Call 1: server issues `openat(AT_FDCWD, \"/data/cache\", O_RDONLY)` →...",
    "condition_of_validity": "The invariant holds only when the following are true, and fails silently when any is false: - **Denial is attributable.** The runtime must be able to correlate a specific `tools/call` with the specific syscalls it triggered. If the sandbox aggregates denials asynchronously (a sidecar log the agent never reads), attribution is lost and the invariant cannot be...",
    "decision_boundary": "The agent must escalate — abort the task, mark the tool `policy_denied`, and refuse further calls to that server for the remainder of the task — when **all** of: 1. The host observed a syscall denial (errno `EPERM`/`EACCES` from a seccomp `RET_ERRNO` rule, `SIGSYS`, or an interceptor's explicit denial record) attributable to the current `tools/call`. 2. The ...",
    "operational_effect": "When the invariant is enforced, three things change measurably: - **Probing loops collapse.** Capability-keyed retry budgets turn a nine-call probe into a single escalation. The sandbox's containment guarantee is preserved because the agent stops generating new syscall attempts. - **The tool's self-report loses authority.** The host's denial record, not the ..."
  },
  "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": "6c819838515398f0f5ae4b30f581d8902b03b312dfd21a5618d63f48b3a69cd7",
    "verified_classes": [
      "PolicyDenialClassificationError",
      "FailureClass",
      "DenialRecord",
      "CapabilityBudget"
    ],
    "verified_functions": [
      "classify_denial",
      "consume"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PolicyDenialClassificationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
