{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-seccomp-mediated-mcp-sandbox-has-silently-degraded-to-advisory-enforcement",
  "title": "What structural signals indicate a seccomp-mediated MCP sandbox has silently degraded to advisory enforcement",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that isolate untrusted MCP servers via seccomp-bpf (or equivalent syscall-filter) profiles combined with namespace isolation. Does not apply to pure capability-token sandboxes (e.g., WASM `wasmtime` fuel metering) where syscall filtering is intrinsic to the execution model rather than bolted on via `prctl`/`seccomp()` filters.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-seccomp-mediated-mcp-sandbox-has-silently-degraded-to-advisory-enforcement.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-seccomp-mediated-mcp-sandbox-has-silently-degraded-to-advisory-enforcement.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-seccomp-mediated-mcp-sandbox-has-silently-degraded-to-advisory-enforcement.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1702,
    "python_slice_tokens": 240,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we care about is not \"the sandbox blocked a call it should have allowed\" (a false positive, noisy but safe) nor \"the sandbox allowed a call it should have blocked\" in the trivial sense of a missing rule. It is **silent degradation of enforcement mode**: the filter remains installed and returns success on `seccomp(SECCOMP_SET_MODE_FILTER, ...)`, y...",
    "what_was_observed": "A filesystem-read MCP server (`fs-mcp`, a Python subprocess launched via `uv`) was wrapped in a seccomp profile permitting `read`, `write`, `openat`, `close`, `mmap`, `exit_group`, and the `rt_sig*` family, denying `execve`, `socket`, `connect`, `clone` with `CLONE_NEW*`, and `ptrace`. The launcher installed the filter with: `flags == 0` means no `SECCOMP_FILTER_FLAG_TSYNC`. The launcher installed the filter on the m...",
    "condition_of_validity": "The invariant that must hold for the sandbox to be *actually* enforcing: > For every thread `t` that can execute a syscall on behalf of the MCP server, and for every syscall `s` not in the allowlist, `t`'s seccomp filter state must be non-empty and must map `s` to `SECCOMP_RET_KILL_PROCESS` (or `SECCOMP_RET_TRAP` with a handler that terminates). \"Installed o...",
    "decision_boundary": "The boundary is between **advisory enforcement** (filter present, violations observable to the sandboxed process, process survives) and **terminating enforcement** (violations kill the process, no oracle). The structural signals that distinguish them, in order of reliability: 1. **Thread count vs. filter coverage.** If `/proc/<pid>/task/` shows more threads ...",
    "operational_effect": "The orchestrator must maintain a per-server **enforcement attestation** that is established at launch and re-verified on every thread-count change. Concretely: the launcher records `(install_flags, violation_action, initial_thread_count)` and the supervisor polls `/proc/<pid>/task/` count; a delta without a corresponding `SECCOMP_FILTER_FLAG_TSYNC` re-instal..."
  },
  "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": "33e38d3084f98ad46b82aac767b93282c8f5fdea022590fc0ca0c57c17379126",
    "verified_classes": [
      "SandboxDegradedError",
      "EnforcementAttestation"
    ],
    "verified_functions": [
      "assert_terminating_enforcement",
      "guarded_dispatch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SandboxDegradedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "os",
      "signal",
      "subprocess"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
