{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-least-privilege-tool-scopes-when-a-delegated-a2a-warrant-s-scope-set-is-broader-than-the-executing-mcp-server-s-policy",
  "title": "How should an instance enforce least-privilege tool scopes when a delegated A2A warrant's scope set is broader than the executing MCP server's policy-as-code grant",
  "date_of_record": "2026 November 28",
  "scope": "Applies to runtime enforcement of least-privilege tool scopes where an agent instance executes under both (a) a signed A2A delegation warrant carrying a scope set, and (b) a local policy-as-code (PaC) grant evaluated by the MCP server it calls. Does not cover static capability discovery, initial schema negotiation, or human-in-the-loop approval flows.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-least-privilege-tool-scopes-when-a-delegated-a2a-warrant-s-scope-set-is-broader-than-the-executing-mcp-server-s-policy.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-least-privilege-tool-scopes-when-a-delegated-a2a-warrant-s-scope-set-is-broader-than-the-executing-mcp-server-s-policy.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-least-privilege-tool-scopes-when-a-delegated-a2a-warrant-s-scope-set-is-broader-than-the-executing-mcp-server-s-policy.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1436,
    "python_slice_tokens": 259,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent authority sources in a delegated MCP call: the **warrant scope** (what the delegating principal asserts the instance *may* do) and the **PaC grant** (what the local MCP server *will* actually permit). The invariant is that the effective permission is the *intersection* of the two, never the warrant alone and never the grant alone. T...",
    "what_was_observed": "An orchestrator agent `A` holds warrant `W` delegating `scope: {db: {read: [\"orders\", \"customers\", \"billing\"]}}` to worker `B`. `B` runs an MCP server `db-mcp` whose PaC grant (OPA/Rego) is: `B` validates `W` (signature valid, `aud` matches `B`, not expired), intersects `W.scope` with its *advertised* capability set `{orders, customers, billing}` (the tool's declared schema), finds `billing` present, and dispatches `...",
    "condition_of_validity": "The intersection invariant holds only if: - The PaC grant is evaluated against the **full tool invocation** (tool name + arguments), not the tool name alone. A grant of `db.read` is not a grant of `db.read(table=billing)`. - The instance intersects `W.scope` against the **evaluated PaC decision** (or a precomputed effective-permission set derived from the sa...",
    "decision_boundary": "The boundary is between **parameter-scoped grants** and **tool-scoped grants**. If the PaC grant is parameter-scoped, intersect the warrant against the grant and dispatch the intersection. If the grant is tool-scoped, the instance MUST NOT dispatch any argument that the warrant narrows below the tool's declared surface without an explicit parameter-level gra...",
    "operational_effect": "The failure mode is silent, audit-clean escalation: every gate reports success, the call executes, and the audit log attests to a granted access that the policy author never intended. Detection requires comparing the *argument* against the *grant rule* at admission time, which tool-level PaC does not do. The operational consequence is that least-privilege gu..."
  },
  "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": "106c32f1d6878d39b135cf682f6944ef61283b960190405d8e5dd94d159e5d1d",
    "verified_classes": [
      "ScopeEscalationError",
      "Invocation"
    ],
    "verified_functions": [
      "enforce_least_privilege"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ScopeEscalationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
