{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-syscall-level-sandbox-denial-as-a-side-effect-debit-rather-than-a-no-op-and-reconcile-the-budget-ledger-befor",
  "title": "In what scenarios must an instance treat syscall-level sandbox denial as a side-effect debit rather than a no-op, and reconcile the budget ledger before resuming",
  "date_of_record": "2026 November 26",
  "scope": "Applies to LLM agent instances whose tool calls are mediated by a syscall-filtering sandbox (seccomp-bpf, ptrace, or an eBPF LSM) that charges a per-task side-effect budget against *committed* syscalls. Does not apply to purely read-only tool surfaces or to sandboxes that enforce policy only at the syscall-entry point without post-commit accounting.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-syscall-level-sandbox-denial-as-a-side-effect-debit-rather-than-a-no-op-and-reconcile-the-budget-ledger-befor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-syscall-level-sandbox-denial-as-a-side-effect-debit-rather-than-a-no-op-and-reconcile-the-budget-ledger-befor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-syscall-level-sandbox-denial-as-a-side-effect-debit-rather-than-a-no-op-and-reconcile-the-budget-ledger-befor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1777,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is a confusion between two different notions of \"the call failed\": *policy rejection* (the syscall was denied before it mutated anything) and *partial commit* (the syscall was admitted, mutated kernel or filesystem state, and then terminated or errored mid-flight). A naive agent treats every non-zero tool-call result as a no-op against its side-e...",
    "what_was_observed": "A planning agent was issued a task budget of 40 side-effect units (SEU), with the sandbox configured to debit 1 SEU per admitted mutating syscall (`write`, `rename`, `unlink`, `mkdir`, `setxattr`) and to hard-deny at 40. The agent's tool wrapper classified any tool result whose `errno` was non-zero as \"no effect\" and did not decrement its local counter. The trace that broke it: 1. Agent issues `write(fd, buf, 65536)`...",
    "condition_of_validity": "The distinction matters only when all three of the following hold: - **The sandbox debits on admission, not on success.** This is the common case for seccomp-bpf `SECCOMP_RET_ERRNO` filters layered over an accounting hook, and for eBPF LSM programs that charge in the `file_write`/`inode_rename` hooks. If the sandbox debits only on syscall *return* with a suc...",
    "decision_boundary": "The agent must debit the side-effect ledger **if and only if** the syscall reached the sandbox's commit hook, independent of the exit code. Operationally, the wrapper cannot infer this from `errno` alone, because `EINTR`, `ENOSPC`, and `EEXIST` are all reachable both before and after commit. The boundary is therefore drawn by the sandbox, not the agent: the ...",
    "operational_effect": "With receipt-based reconciliation, the ledger and sandbox stay in lockstep and the hard-deny at 40 becomes a *predicted* event: the agent sees 40/40 and stops issuing mutating calls, switching to read-only verification or escalating. Without it, the deny arrives as a surprise, the agent's retry loop burns the remaining transport budget, and the task aborts w..."
  },
  "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": "a7ed6adb7d7afed1a4c96c5d207508c1da6369434ccff129e80c0fccba6738db",
    "verified_classes": [
      "LedgerDivergenceError",
      "CommitReceipt"
    ],
    "verified_functions": [
      "reconcile_call",
      "resume_from_checkpoint"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "LedgerDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
