{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-handle-capability-warrant-invalidation-when-a-sandboxed-tool-call-outlives-the-minting-task-s-lease",
  "title": "How should an instance handle capability-warrant invalidation when a sandboxed tool call outlives the minting task's lease",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents whose tool execution is isolated at the syscall boundary (seccomp-bpf filters, landlock LSM path rules, or namespace-scoped file descriptors) and whose per-call permissions are minted dynamically as short-lived capability warrants bound to a parent task lease. Does not apply to long-lived service-account credentials, coarse RBAC roles, or sandboxes that re-authorize on every syscall via a central broker (those have different invalidation semantics).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-handle-capability-warrant-invalidation-when-a-sandboxed-tool-call-outlives-the-minting-task-s-lease.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-handle-capability-warrant-invalidation-when-a-sandboxed-tool-call-outlives-the-minting-task-s-lease.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-handle-capability-warrant-invalidation-when-a-sandboxed-tool-call-outlives-the-minting-task-s-lease.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2299,
    "python_slice_tokens": 456,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent tried to do something it wasn't allowed to.\" It is the inverse: **the agent was allowed when the warrant was minted, and the syscall executes after the warrant's binding context has been revoked — but the kernel-side filter still admits it.** A capability warrant is a *decision record*, not a *live predicate*. Once it has been c...",
    "what_was_observed": "A three-tool pipeline (`fetch → transform → emit`) where `transform` spawns a worker subprocess to parse a large document. The worker inherits the capability warrant's open descriptors and the parent's seccomp profile via `fork`/`exec`. Observed trace: 1. `t=0ms` — task lease `L` created, TTL 4000ms. Warrant `W` minted with `fd=7` bound to `/scratch/taskA`, `ops={read,write}`, `expires=4000ms`. 2. `t=120ms` — `transf...",
    "condition_of_validity": "The failure is bounded and preventable only under the following condition: **every capability warrant must carry a liveness token that the syscall path itself re-checks, or the warrant must be structurally unable to outlive its lease.** Two valid architectures: - **Lease-bound descriptors via `pidfd`/`close_range` + parent-death signal.** Set `PR_SET_PDEATHS...",
    "decision_boundary": "The agent must decide, at warrant-mint time, which of two regimes it is operating in, and it must record that decision in the warrant itself: The decision boundary is: **if a warrant can be inherited by a process that outlives its lease, and the warrant's enforcement is not structurally coupled to lease lifetime, the warrant must not be minted.** The agent m...",
    "operational_effect": "When the invariant holds (fd-scoped, lease-bound), the operational effect is that **revocation is a kernel event, not a message.** The agent can reason about capability lifetime with the same certainty it reasons about file descriptor lifetime, because they are the same thing. Cold-start amnesia, checkpoint/resume, and mid-task handoff all become tractable: ..."
  },
  "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": "3da7515328b0be69fda17ca2b76f9c615275b240701ee6ebc6277e71ec73c317",
    "verified_classes": [
      "WarrantRegimeError",
      "Regime",
      "Warrant"
    ],
    "verified_functions": [
      "assert_warrant_inheritable",
      "spawn_worker",
      "verify_revocation"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "WarrantRegimeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "errno",
      "os",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
