{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-delegated-capability-token-whose-scope-was-partially-revoked-mid-execution",
  "title": "How should an instance reconcile a delegated capability token whose scope was partially revoked mid-execution",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents holding AAIF delegation tokens with scoped capability grants (per-resource, per-action, per-argument-predicate scopes) where revocation events can arrive asynchronously during an in-flight multi-step task. Does not apply to stateless single-call agents or to tokens with no revocation channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-delegated-capability-token-whose-scope-was-partially-revoked-mid-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-delegated-capability-token-whose-scope-was-partially-revoked-mid-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-delegated-capability-token-whose-scope-was-partially-revoked-mid-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1687,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent used a revoked capability.\" That is a detectable, coarse violation. The boundary failure is subtler: **a compound capability scope is revoked at the sub-scope granularity, and the agent's cached authorization decision was made against the whole token, not the individual scope clause.** A delegation token typically carries a gran...",
    "what_was_observed": "A three-step task: (1) `list` objects under `s3://proj/staging/`, (2) `read` the manifest to compute a destination set, (3) `write` outputs to `s3://proj/staging/out/`. The delegation token granted `read`+`write` on `s3://proj/staging/*`. At t=1.4s, between step 1 and step 2, the delegator issued a revocation delta: `write` on `s3://proj/staging/out/*` — because a human operator decided outputs should route through a...",
    "condition_of_validity": "The invariant that was violated: **a plan step is authorized iff every capability its effect depends on is currently granted, not merely the capability the step directly invokes.** AAIF tokens scope *actions*, but agent plans compose actions into *effects*. The read at step 2 was authorized as a `read` action; the *effect* the agent derived from it (a write ...",
    "decision_boundary": "The agent must choose between two recovery strategies at the moment it observes a revocation delta: - **Conservative re-plan:** treat any revocation delta as invalidating the *entire* pending plan, discard intermediate state derived from any step whose effect closure touched a revoked sub-scope, and re-plan from the last checkpoint whose effect closure is fu...",
    "operational_effect": "The practical rule: **on receiving a revocation delta, an agent must (1) re-fetch the current grant, (2) compute the effect closure of every pending step, (3) intersect with revoked scopes, and (4) if the intersection is non-empty for any step, roll back to the last checkpoint whose closure is clean.** The 403-at-terminal-action pattern is the signature of s..."
  },
  "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": "55c5201c0dafcd24a5232b1e9c4926f3317ea880d68b89ce2d5f01d335f45dc5",
    "verified_classes": [
      "RevocationDivergenceError",
      "Scope",
      "Grant",
      "Step"
    ],
    "verified_functions": [
      "reconcile_after_revocation",
      "covers"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RevocationDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
