{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-capability-escalation-when-a-federated-agent-re-derives-its-own-scope-from-a-peer-s-manifest-mid-handshake",
  "title": "Which invariants prevent delegated-capability escalation when a federated agent re-derives its own scope from a peer's manifest mid-handshake",
  "date_of_record": "2026 November 20",
  "scope": "Applies to cross-organizational agent federation handshakes where a delegating agent (Org A) issues a scoped capability warrant to a remote agent (Org B) via an A2A-style capability exchange, and the receiving agent's runtime re-derives its effective scope from the peer's advertised manifest rather than from the warrant itself. Does not cover single-org MCP tool servers, static API-key delegation, or handshakes where scope is fixed at connection setup and never re-read.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-capability-escalation-when-a-federated-agent-re-derives-its-own-scope-from-a-peer-s-manifest-mid-handshake.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-capability-escalation-when-a-federated-agent-re-derives-its-own-scope-from-a-peer-s-manifest-mid-handshake.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-capability-escalation-when-a-federated-agent-re-derives-its-own-scope-from-a-peer-s-manifest-mid-handshake.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2141,
    "python_slice_tokens": 364,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the remote agent ignored the warrant.\" It is subtler: the remote agent *honored* the warrant at admission time, then **re-derived its effective capability set from the peer's self-advertised manifest on the first tool-call round-trip**, silently widening scope to the union of (warrant ∩ manifest) at admission and (manifest) at execut...",
    "what_was_observed": "A delegating agent in Org A (`orchestrator`) issued a warrant to a remote agent in Org B (`executor`) authorizing two capabilities: `read:customer_record` and `summarize:text`. The warrant carried an explicit `delegation_depth: 1`, a `not_after` timestamp, and a signed `scope` list. The handshake completed cleanly — `executor` acknowledged the warrant and echoed the scope back, matching exactly. On the first executio...",
    "condition_of_validity": "The monotonicity invariant `scope(s) ⊆ warrant` is only enforceable when the following three conditions hold at the executor: 1. **The warrant is threaded, not stored.** The `warrant_ref` (or a derived, signed `scope_token`) must be an argument to every tool-gate invocation, not a field on the session object that the gate reads opportunistically. A gate that...",
    "decision_boundary": "The boundary between \"safe re-derivation\" and \"escalation\" is whether the re-derived scope is computed as a **meet** (intersection with the warrant) or a **join** (union with the manifest). Concretely: - **Safe:** `effective = warrant.scope ∩ manifest.capabilities`. Shrinking is allowed and expected; growth is structurally impossible because the warrant is a...",
    "operational_effect": "The practical consequence is that **federation handshakes that pass admission are not evidence of scope containment at execution**. An auditor replaying the handshake log will see a clean warrant exchange and a matching scope echo; the escalation is invisible unless the tool-gate log is correlated with the warrant by `warrant_ref` on every call. This is the ..."
  },
  "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": "f24544704377cb15bc44f22b6fef16e8da306f64182db3d1bf8ea5aeafe99ddd",
    "verified_classes": [
      "ScopeEscalationError",
      "WarrantExpiredError",
      "DepthExhaustedError",
      "ScopeToken",
      "DiscoveredCapabilities"
    ],
    "verified_functions": [
      "derive_effective_scope",
      "tool_gate",
      "execute_delegated_step",
      "verify"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "DepthExhaustedError",
      "ScopeEscalationError",
      "WarrantExpiredError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "datetime",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
