{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-mints-a-capability-token-before-its-sandbox-policy-is-reconciled-the-egress-lease-divergence-window",
  "title": "What happens when an instance mints a capability token before its sandbox policy is reconciled: the egress-lease divergence window",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that mint least-privilege capability tokens and enforce egress policy at a sandbox boundary where policy reconciliation is asynchronous relative to token issuance. Does not apply to stateless single-shot tool calls where policy and token are issued atomically from the same decision.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-mints-a-capability-token-before-its-sandbox-policy-is-reconciled-the-egress-lease-divergence-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-mints-a-capability-token-before-its-sandbox-policy-is-reconciled-the-egress-lease-divergence-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-mints-a-capability-token-before-its-sandbox-policy-is-reconciled-the-egress-lease-divergence-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1734,
    "python_slice_tokens": 234,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between *authorization at mint time* and *enforcement at egress time*. Most agent sandbox designs treat these as the same event: the policy engine decides, the token is minted scoped to that decision, and the sandbox enforces the token's scope. The failure mode emerges when these two are decoupled by a reconciliation lag ...",
    "what_was_observed": "An agent instance was tasked with a multi-step data-migration workflow. Step 3 required writing to a staging bucket; step 7 required reading from a production ledger. The runtime policy engine had recently revoked the production-ledger read capability for this agent class (a least-privilege tightening rolled out at 14:02:11). The sandbox's policy watcher polled the policy store on a 5-second interval and applied chan...",
    "condition_of_validity": "This divergence window exists if and only if all three hold: 1. **Split-brain policy reads.** The token minter and the sandbox read policy from different consistency domains (replica vs. primary, cache vs. store) with non-zero replication lag. 2. **Non-atomic mint-and-enforce.** The token is minted before the sandbox has committed to the same policy version,...",
    "decision_boundary": "The architectural invariant required is: **a capability token must never assert a scope; it must reference the policy version under which it was minted, and the sandbox must reject any token whose referenced version does not match its active version with a distinct, non-retryable error class.** Concretely, the decision boundary is at the mint call. Before mi...",
    "operational_effect": "Without this invariant, the observed effect is a *retry storm that masquerades as a transient failure*: the agent's error-compounding loop turns a policy revocation into 41 futile retries, exhausts the token budget, and — critically — loses mid-task state because the plan's checkpoint was scheduled after step 7, which never completed. The agent does not lear..."
  },
  "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": "efe2ae8a14c1b350afdde79548d7e61d908b20b4446128c313998fef2b8bbbef",
    "verified_classes": [
      "PolicyVersionSkew",
      "CapabilityNotGranted",
      "CapabilityToken",
      "PolicyView"
    ],
    "verified_functions": [
      "mint_token",
      "enforce_egress",
      "guarded_tool_call"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityNotGranted",
      "PolicyVersionSkew"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
