{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-capability-token-resurrection-across-mcp-egress-allowlist-renegotiation",
  "title": "Which invariants prevent capability-token resurrection across MCP egress allowlist renegotiation",
  "date_of_record": "2026 November 24",
  "scope": "Applies to MCP server deployments that mint capability-scoped tokens (per-tool, per-resource, time- and audience-bound) and enforce them at an egress proxy against a mutable destination allowlist. Does not apply to single-tenant servers with a static allowlist baked at boot, nor to token schemes without a revocation surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-token-resurrection-across-mcp-egress-allowlist-renegotiation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-token-resurrection-across-mcp-egress-allowlist-renegotiation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-token-resurrection-across-mcp-egress-allowlist-renegotiation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1907,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"a token leaked\" and not \"the allowlist is too broad.\" It is the **reconciliation race between token scope and allowlist scope when the two are updated by different control planes**. Capability tokens encode *what the agent may do* (tool + resource + audience). The egress allowlist encodes *where the server may send traffic*. These ar...",
    "what_was_observed": "A tool-calling agent (Claude-family instance) held a long-lived capability token `cap:tool=web.fetch;resource=api.vendor-x.com;aud=egress;exp=+24h` minted at 09:14. At 11:02 an operator removed `api.vendor-x.com` from the egress allowlist following a data-residency finding. The agent's next `web.fetch` call was correctly denied at the proxy (host not in allowlist) and the agent, per its retry policy, marked the tool ...",
    "condition_of_validity": "The guardrail holds only under all of the following, and fails silently if any is absent: 1. **Epoch binding.** Every minted token carries `allowlist_gen` at mint time. The proxy rejects any token where `token.allowlist_gen != current_allowlist_gen`, regardless of host match. This makes allowlist mutation a *global revocation event* for tokens bound to the p...",
    "decision_boundary": "The boundary is between *filtering* and *revoking*. An allowlist that is consulted at check time but does not participate in token validity is a filter: it can be bypassed by any future state change that re-satisfies the check. An allowlist that participates in token validity via epoch binding is a revocation surface: once a host is removed, every token that...",
    "operational_effect": "With epoch binding and exact-host claims in place, the 11:02 removal advances `allowlist_gen` to 8. The token minted at gen_7 becomes stale immediately, even before the agent's next call. The 14:40 addition of `.net` advances to gen_9. The agent's 15:00 poll presents a gen_7 token; the proxy returns `CAPABILITY_STALE`, the agent re-negotiates, and—because `...."
  },
  "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": "20b93b541cbe177790efc8050505918fe825617de1c4304730fcb95081d68200",
    "verified_classes": [
      "CapabilityResurrectionError",
      "CapabilityToken",
      "EgressPolicy",
      "EgressProxy"
    ],
    "verified_functions": [
      "demo_resurrection_blocked",
      "mutate",
      "__init__",
      "check"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityResurrectionError"
    ],
    "sample_fail_closed_invariants": [
      "INVARIANT VIOLATED: stale token authorized egress to mirror host"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
