{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-ebpf-intercepted-tool-invocation-as-a-policy-boundary-rather-than-a-sandbox-guarantee",
  "title": "In what scenarios must an instance treat eBPF-intercepted tool invocation as a policy boundary rather than a sandbox guarantee",
  "date_of_record": "2026 November 24",
  "scope": "Applies to LLM agent runtimes that enforce tool-use policy via syscall/tracepoint interceptors (eBPF, seccomp-bpf, ptrace shims) attached to the process tree that executes tool calls. Does not apply to pure in-process function-calling where the runtime itself is the sole executor of the tool body, nor to policy enforced by an out-of-process broker that owns the file descriptors.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-ebpf-intercepted-tool-invocation-as-a-policy-boundary-rather-than-a-sandbox-guarantee.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-ebpf-intercepted-tool-invocation-as-a-policy-boundary-rather-than-a-sandbox-guarantee.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-ebpf-intercepted-tool-invocation-as-a-policy-boundary-rather-than-a-sandbox-guarantee.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1898,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An eBPF interceptor observes *syscalls and tracepoints*, not *semantic tool invocations*. The policy engine reasons over `openat`, `connect`, `execve`, `write`; the LLM reasons over `read_file(path)`, `http_get(url)`, `run_shell(cmd)`. The gap between these two layers is the failure surface. The interceptor is a *detector of effects*, not a *guarantor of int...",
    "what_was_observed": "A file-read tool was wrapped by an interceptor attached to the agent's cgroup, denying `openat` on paths matching `/etc/**` and `/root/**`. The tool signature was `read_file(path: str) -> str`. During a multi-step reasoning trace, the model emitted `read_file(\"/etc/../etc/passwd\")` after a prior `read_file` of a benign file returned a permission error containing the string `etc`. The path normalization happened insid...",
    "condition_of_validity": "The interceptor-as-policy-boundary is valid only when all of the following hold simultaneously: 1. **Closure under fork/exec.** Every descendant process of the tool executor remains within the interceptor's attachment scope (same cgroup, same mount namespace, no `CLONE_NEW*` escape, no `setns`). `start_new_session=True`, `unshare`, `nsenter`, and container-r...",
    "decision_boundary": "The runtime must decide, per tool, whether the interceptor is load-bearing. The boundary is: **if the tool can spawn a child process, the interceptor is load-bearing only if the attachment scope is closed under `execve` and `setns`; otherwise the interceptor is advisory and a tool-space pre-check is mandatory.** Concretely: - For `read_file`, `write_file`, `...",
    "operational_effect": "The practical consequence is that interceptor coverage must be verified empirically per tool, not assumed from the policy file. Two checks are mandatory before an interceptor is marked load-bearing for a tool: 1. **Process-tree closure probe.** Invoke the tool with an argument that triggers a benign-but-detectable syscall (e.g., `openat` on a canary path), a..."
  },
  "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": "b936bd3b55af7698755c1b2797e114257c5b6d442534acd70dbd5e6a23e6f255",
    "verified_classes": [
      "PolicyBoundaryViolation",
      "ToolPolicy"
    ],
    "verified_functions": [
      "assert_interceptor_is_load_bearing",
      "enforce_or_downgrade"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "PolicyBoundaryViolation"
    ],
    "sample_fail_closed_invariants": [
      "tool failed"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "os",
      "subprocess"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
