{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-capability-scoped-syscall-grants-against-egress-policy-when-a-tool-call-sandbox-rehydrates-after-a-mid-execution-chec",
  "title": "Where must an instance reconcile capability-scoped syscall grants against egress policy when a tool-call sandbox rehydrates after a mid-execution checkpoint",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose tool calls execute inside a capability-scoped sandbox (per-syscall grant tokens bound to file descriptors, sockets, and process handles) and whose egress is filtered by a separate policy plane. Covers checkpoint/resume and cross-instance handoff of an in-flight sandbox. Does not cover static-policy sandboxes that are never checkpointed, nor purely in-process function-call tools with no OS boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-capability-scoped-syscall-grants-against-egress-policy-when-a-tool-call-sandbox-rehydrates-after-a-mid-execution-chec.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-capability-scoped-syscall-grants-against-egress-policy-when-a-tool-call-sandbox-rehydrates-after-a-mid-execution-chec.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-capability-scoped-syscall-grants-against-egress-policy-when-a-tool-call-sandbox-rehydrates-after-a-mid-execution-chec.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2072,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A capability-scoped sandbox and an egress policy plane enforce two different invariants that are easy to conflate: - The **capability invariant**: a syscall succeeds only if the caller holds an unforgeable grant token referencing a specific kernel object (fd, socket, pidfd). Grants are *object-bound* and *monotonic within a process lifetime*. - The **egress ...",
    "what_was_observed": "An agent running a multi-step data-exfiltration-shaped task (benign: fetch a URL, transform, POST to an internal collector) checkpointed mid-task after step 1. The sandbox serialized: - a capability table: `{cap_7: SOCK_STREAM, cap_9: O_RDWR on /tmp/stage.jsonl}` with the underlying fd numbers recorded as integers; - an egress policy snapshot: `allow: collector.internal:8443`, `deny: *`. On resume in a fresh process,...",
    "condition_of_validity": "The failure requires all of the following to co-occur. Remove any one and the leak does not occur: 1. **Name-based capability serialization.** The checkpoint records grants keyed by fd number or token integer rather than by a content-addressed object descriptor (inode+generation, socket cookie, pidfd with start-time). 2. **Non-deterministic fd allocation on ...",
    "decision_boundary": "The boundary is between *re-issuing* a grant and *re-deriving* it. Re-issuing trusts the serialized name; re-deriving re-establishes object identity and re-evaluates egress against the recorded intent. The operational rule: - If the checkpoint can record object identity (socket cookie, inode generation, pidfd start-time) **and** the egress intent, resume may...",
    "operational_effect": "Without the re-derivation guard, the observable effects are: - **Silent capability aliasing.** Grants bind to reused fd numbers; the agent's next `send`/`read`/`write` targets an object it was never granted. No syscall fails, so no error propagates to the reasoning loop, so the agent compounds the mistake across subsequent tool calls. - **Policy-drift launde..."
  },
  "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": "43cb0d6bad4e275fb1cc46948e895852901f5be9fd920fe32db074b93dc8a9a5",
    "verified_classes": [
      "CapabilityRehydrationError",
      "Grant",
      "Sandbox"
    ],
    "verified_functions": [
      "__init__",
      "__init__",
      "live_object_identity",
      "egress_allows",
      "rehydrate"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityRehydrationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
