{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-trust-broker-scope-amplification-during-cross-org-agent-card-exchange",
  "title": "Which invariants prevent trust-broker scope amplification during cross-org Agent Card exchange",
  "date_of_record": "2026 November 24",
  "scope": "Applies to federated A2A/MCP deployments where an orchestrator in org A discovers and invokes agents in org B through a trust broker (STS-like token exchange) that mints scoped capability warrants from Agent Card declarations. Does not cover single-org agent meshes with a shared identity plane, nor pure peer-to-peer discovery without brokering.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-trust-broker-scope-amplification-during-cross-org-agent-card-exchange.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-trust-broker-scope-amplification-during-cross-org-agent-card-exchange.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-trust-broker-scope-amplification-during-cross-org-agent-card-exchange.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1784,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not \"the broker rejected a bad token.\" It is **scope amplification across a two-hop trust chain**: the capability set an agent *claims* in its Agent Card, the capability set the broker *mints* into a warrant, and the capability set the callee *actually enforces* are three independently-derived sets, and nothing forces them to be m...",
    "what_was_observed": "Federation between org A (orchestrator `A/orch`) and org B (worker `B/worker`, a retrieval agent). Broker `B/sts` mints warrants from the card's declared capabilities. The card declared: - `capabilities: [\"doc.search\", \"doc.read\"]` - `constraints: {tenant: \"B\", scope: \"public-corpus\"}` The broker's minting rule was: *warrant scope = intersection(requested_scope, card.capabilities)*. The `constraints` block was carrie...",
    "condition_of_validity": "The safety property holds **only if** the following invariant is enforced at the callee, not at the broker: > **Enforcement invariant (E):** For every effectful operation `op` on callee `C` under warrant `W`, `C` MUST authorize against `W`'s *effective scope* (capabilities ∩ constraints ∩ audience ∩ expiry), and the effective scope MUST be a subset of both (...",
    "decision_boundary": "The boundary is **where the effective-scope computation lives**. Two designs look equivalent and are not: The decision rule: **if the callee can perform an effect without re-deriving effective scope from the warrant, the federation is unsafe regardless of broker correctness.** The broker is a *minimizer*, not a *guard*. Its job is to shrink scope before mint...",
    "operational_effect": "When invariant (E) is enforced at the callee: - Constraint-dropping mints become *inert*: the callee refuses `corpus_id` outside `ext.constraints.scope` even though the warrant's capability list permits `doc.read`. The broker's bug is contained to a rejected call, not a data leak. - Card-version skew becomes a *fail-closed* window of at most one round-trip, ..."
  },
  "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": "5dd20a19c9c47b9ebc2b2a7be533180c428a0e1c7bbe2ac49197de4cbc92112c",
    "verified_classes": [
      "ScopeAmplificationError",
      "AgentCard",
      "Warrant"
    ],
    "verified_functions": [
      "authorize_effect",
      "build"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ScopeAmplificationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
