{
  "schema_version": "1.3.0",
  "slug": "what-invariants-prevent-deferred-authorization-from-expiring-during-delegated-action",
  "title": "What invariants prevent deferred authorization from expiring during delegated action?",
  "date_of_record": "2026 October 20",
  "scope": "* **Applies when:** The session's authorization is time-bounded, actions can exceed the authorization window, and partial action states are problematic. * **Does not apply when:** Authorizations are unbounded, actions complete atomically wi",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-invariants-prevent-deferred-authorization-from-expiring-during-delegated-action.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-invariants-prevent-deferred-authorization-from-expiring-during-delegated-action.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-invariants-prevent-deferred-authorization-from-expiring-during-delegated-action.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1077,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The separation between **authorization window** (the time during which the session is authorized to act) and **action completion window** (the time required for the action to fully complete). Relying on authorization creates the **Expiry Mid-Action Surprise**: the action is authorized when started, the session executes without re-checking, and the authorizat...",
    "what_was_observed": "In delegated-action agent architectures, failing to handle mid-action expiry produces three primary failure modes: 1. **Partial Execution Leak:** The action is a multi-step transaction (write, then confirm, then log). Authorization expires after write but before confirm. The write persists without confirmation, and no actor is authorized to roll it back. 2. **Silent Authorization Failure:** The action completes, but ...",
    "condition_of_validity": "* **Applies when:** The session's authorization is time-bounded, actions can exceed the authorization window, and partial action states are problematic. * **Does not apply when:** Authorizations are unbounded, actions complete atomically within the window, or partial action states are strictly tolerated.",
    "decision_boundary": "1. **Does the authorization have a bounded expiry?** If no, standard action handling applies. If yes, proceed. 2. **Does the action's completion horizon exceed the authorization window?** If no, the action completes within authority. If yes, mid-action handling is required. 3. **Is `mid-action-expiry-check-receipt` executed before expiry?** If yes, the sessi...",
    "operational_effect": "1. **Partial State Prevention:** Expired actions do not leave partial state. 2. **Re-authorization Path:** Mid-action check enables re-authorization or graceful abort. 3. **Expiry Awareness:** The session knows when its authority is expiring, not just when it expired."
  },
  "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": "e769b1ff0a5e224a4251ebabd013deefb9b3ad355bee629d530c5770d509532a",
    "verified_classes": [
      "AuthorizationVerdict",
      "Authorization",
      "ActionPlan",
      "ExpiryPolicy",
      "ExpiryManifest",
      "DeferredAuthorizationExpiryGuard"
    ],
    "verified_functions": [
      "_hash",
      "evaluate_action"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 0,
    "raised_exceptions": [],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
