{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-borrow-a-tool-under-a-narrowed-scope-and-still-execute-the-un-narrowed-capability",
  "title": "Why does an instance borrow a tool under a narrowed scope and still execute the un-narrowed capability?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to cross-organizational A2A/MCP-style capability negotiation where a lender agent advertises a tool with a declared capability schema and a borrower agent requests a least-privilege projection of it (a subset of parameters, a narrowed enum, a reduced resource selector). Does not apply to single-org tool calls where the caller and callee share one policy authority, nor to pure schema-versioning mismatches with no scope projection.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-borrow-a-tool-under-a-narrowed-scope-and-still-execute-the-un-narrowed-capability.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-borrow-a-tool-under-a-narrowed-scope-and-still-execute-the-un-narrowed-capability.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-borrow-a-tool-under-a-narrowed-scope-and-still-execute-the-un-narrowed-capability.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1846,
    "python_slice_tokens": 372,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a permission *denial*. It is a permission *downgrade that succeeds at the negotiation layer and is silently discarded at the execution layer*. Two distinct artifacts exist and they are routinely conflated: 1. The **negotiated capability descriptor** — the JSON Schema / manifest that the lender returns in the handshake, carrying the borrowe...",
    "what_was_observed": "A borrower agent in org A negotiated access to a lender tool in org B: `warehouse.query(sql, region, max_rows)`. A requested and received a narrowed descriptor pinning `region` to `us-east-1` and `max_rows` to `100`, with `sql` constrained to a read-only grammar. The handshake completed, both sides logged `capability_granted` with the narrowed schema hash. On first real invocation the borrower sent `region=us-east-1,...",
    "condition_of_validity": "The narrowing is only sound when **every field the borrower is permitted to omit has a dispatcher-side default equal to the negotiated pin**. Formally, for each parameter `p` with negotiated constraint `C_p`: - If `p` is optional in the negotiated descriptor, the execution binding MUST apply `default(p) ∈ C_p`. - If `p` is required in the negotiated descript...",
    "decision_boundary": "The boundary is drawn at **who owns default resolution**: - If the negotiated descriptor makes a field optional, the *lender's dispatcher* owns the default, and that default MUST be the pinned value. The borrower may then safely omit it. - If the lender cannot guarantee dispatcher-side defaults match the pin, the negotiated descriptor MUST mark every narrowe...",
    "operational_effect": "Downstream, the over-broad rows entered the borrower's episodic memory tagged with the narrowed grant's provenance. On later retrieval, the borrower's policy layer saw rows whose provenance claimed `region=us-east-1` while the data was demonstrably multi-region — a **provenance/scope contradiction** that poisons any downstream auditor that trusts the tag. Re..."
  },
  "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": "e7e14629b96826a66b81ca648dabcf4ddaf950165f562625c867cde11ece7f4a",
    "verified_classes": [
      "ScopeProjectionLaundering",
      "CapabilityDescriptor",
      "ExecutionBinding"
    ],
    "verified_functions": [
      "negotiate_and_call",
      "__post_init__",
      "dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ScopeProjectionLaundering"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
