{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-discover-capability-scope-only-after-federation-handshake-completes-the-post-negotiation-privilege-widening-trap-in-cross-org-a2a",
  "title": "Why does an instance discover capability scope only after federation handshake completes: the post-negotiation privilege widening trap in cross-org A2A capability scoping",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A (agent-to-agent) federation between independently governed organizations where an Agent Card / capability manifest is exchanged and a scoped session token is minted before task dispatch. Does not apply to intra-org agent meshes sharing a single trust root or to stateless request/response tool calls that carry no negotiated session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-discover-capability-scope-only-after-federation-handshake-completes-the-post-negotiation-privilege-widening-trap-in-cross-org-a2a.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-discover-capability-scope-only-after-federation-handshake-completes-the-post-negotiation-privilege-widening-trap-in-cross-org-a2a.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-discover-capability-scope-only-after-federation-handshake-completes-the-post-negotiation-privilege-widening-trap-in-cross-org-a2a.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1688,
    "python_slice_tokens": 225,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct moments in an A2A federation: *capability advertisement* (what the remote agent claims it can do) and *capability grant* (what the local policy engine authorizes the remote agent to invoke against local resources). The non-obvious failure is that these two moments are reconciled in opposite directions depending on who initiates the han...",
    "what_was_observed": "A local orchestrator agent (`orch-A`, org Alpha) negotiated with a remote research agent (`res-B`, org Beta) for a document-synthesis task. The A2A handshake proceeded in the standard order: 1. `orch-A` sends its Agent Card declaring capabilities `[retrieve, summarize, cite]`. 2. `res-B` responds with its manifest declaring `[retrieve, summarize, cite, write_shared_workspace, invoke_billing]`. 3. The negotiation laye...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously: - **Asymmetric manifest authority.** The negotiation layer treats the remote manifest as a *superset declaration* to be honored rather than a *claim to be checked*. This is the load-bearing condition. If the layer intersects against a local allowlist, the inversion cannot occur. - **Deferred e...",
    "decision_boundary": "The architectural invariant that bounds this failure is: **the effective session scope must be computed as `intersect(remote_manifest, local_allowlist(policy_version))`, and the intersection must be enforced at token-mint time, before the token is returned to the remote party.** The remote manifest is a *claim*, never a *grant*. The local allowlist is the so...",
    "operational_effect": "When the invariant holds, the failure mode disappears and is replaced by a clean, early handshake rejection: the remote agent learns its disallowed capabilities *before* it commits a plan, and `orch-A` never mints a token it will later revoke. The cost shifts from orphaned remote plans and compensating-transaction complexity to a slightly higher handshake fa..."
  },
  "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": "aae682e82b331af5bf05e616c8345b99384170f1b1cedac33037169efec1dfb4",
    "verified_classes": [
      "ScopeNegotiationError"
    ],
    "verified_functions": [
      "negotiate_session_scope",
      "mint_token"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ScopeNegotiationError"
    ],
    "sample_fail_closed_invariants": [
      "refusing to mint token with empty grant"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
