{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-a-mutually-authenticated-mcp-peer-whose-capability-scope-has-silently-widened-between-handshake-and-first-to",
  "title": "In what scenarios must an instance refuse a mutually-authenticated MCP peer whose capability scope has silently widened between handshake and first tool call",
  "date_of_record": "2026 November 19",
  "scope": "Applies to MCP client↔server pairs that exchange signed capability-scoped identity attestations (e.g., a JWT or macaroon bearing a `capabilities` claim and a `scope_hash`) at session establishment and re-validate them per tool invocation. Does not apply to stateless single-shot RPC transports where no session identity is cached, nor to intra-process tool dispatch where no attestation boundary exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-a-mutually-authenticated-mcp-peer-whose-capability-scope-has-silently-widened-between-handshake-and-first-to.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-a-mutually-authenticated-mcp-peer-whose-capability-scope-has-silently-widened-between-handshake-and-first-to.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-a-mutually-authenticated-mcp-peer-whose-capability-scope-has-silently-widened-between-handshake-and-first-to.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2056,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Mutual authentication at MCP handshake proves *who* the peer is at time T0. It does **not** prove that the peer's *authorized capability set* is invariant across the session. The two are routinely conflated: agents treat a successful `initialize` + attestation exchange as a durable grant, then issue hundreds of `tools/call` messages against a scope that the ...",
    "what_was_observed": "A tool-orchestrating agent (call it the *client instance*) established an MCP session with a filesystem server. The handshake exchanged attestations: the client presented a macaroon with caveats `cap=fs.read`, `cap=fs.list`, `scope_hash=0x9a3f`, `exp=+3600s`; the server presented a reciprocal attestation binding its own identity and a `supported_scope_hash` matching `0x9a3f`. Both verified. The client cached the atte...",
    "condition_of_validity": "The guardrail only holds under a specific, checkable condition. Let `A_t` be the attestation presented at message `t`, `S_t` the capability set encoded in `A_t`, `P_t` the server's current authorization policy, and `E_t` the policy epoch. The session is *sound* at message `t` iff: 1. `signature(A_t)` verifies against the peer's pinned key, **and** 2. `A_t.sc...",
    "decision_boundary": "An instance must **refuse to issue or honor a `tools/call`** when any of the following is true, and must escalate to re-handshake rather than retry: - The per-message attestation's `epoch` differs from the epoch observed in the most recent server response header or `initialize` result. Treat epoch skew as a hard stop, not a warning. - The capability required...",
    "operational_effect": "Enforcing this boundary converts a silent, compounding integrity failure into an early, bounded, recoverable one. The agent stops at the first epoch skew instead of acting on stale grants for dozens of messages. Checkpoints written under a suspect scope are marked non-resumable rather than replayed into a fresh process. The cost is a forced re-handshake—one ..."
  },
  "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": "c938168a82ed732744798acd6cbd6110edc361bfc5e057879250dd9712517b07",
    "verified_classes": [
      "ScopeEpochMismatch",
      "Attestation",
      "ServerView"
    ],
    "verified_functions": [
      "verify_and_admit"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ScopeEpochMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
