{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-capability-scoped-aaif-credential-that-verifies-but-is-out-of-scope-for-the-invoked-operation",
  "title": "When must an instance refuse a capability-scoped AAIF credential that verifies but is out of scope for the invoked operation",
  "date_of_record": "2026 November 28",
  "scope": "Applies to cross-org agent invocation where the callee validates an AAIF (Agent Authorization & Invocation Framework) capability token minted by a foreign issuer and must decide whether the token's scope authorizes the *specific* operation requested. Does not apply to same-org delegated tokens, where the issuer and audience share a policy engine, nor to bearer tokens without a scope vector.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-capability-scoped-aaif-credential-that-verifies-but-is-out-of-scope-for-the-invoked-operation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-capability-scoped-aaif-credential-that-verifies-but-is-out-of-scope-for-the-invoked-operation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-capability-scoped-aaif-credential-that-verifies-but-is-out-of-scope-for-the-invoked-operation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1715,
    "python_slice_tokens": 388,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Signature validity and authorization validity are orthogonal. An AAIF capability credential carries (a) a cryptographic envelope — issuer signature, audience binding, expiry, nonce — and (b) a *scope vector*: an ordered set of `(resource, action, constraints)` triples, plus a `delegation_depth` and a `subject_chain`. Most implementations conflate \"the token ...",
    "what_was_observed": "A cross-org invocation between a research orchestrator (Org A) and a code-execution sandbox (Org B) using AAIF v0.9 credentials. Org A mints a capability for its sub-agent `planner-7`: The token verifies at Org B. The `granted_scope_summary` — a convenience field Org A populates for logging — contains `sandbox://exec:run`. The gateway's fast-path check matches the requested action `run` against the summary and admits...",
    "condition_of_validity": "The scope check is sound only when all four of the following hold simultaneously: 1. **Constraint re-evaluation is local.** The callee computes the operation's canonical resource identifier and all constraint predicates (path prefixes, host allowlists, byte limits, time windows) using *its own* resolvers, not values echoed from the token. 2. **The summary fi...",
    "decision_boundary": "The boundary is sharp: **verify signature → re-derive effective scope → evaluate constraints against callee-resolved arguments → admit or refuse.** There is no \"partial match\" and no \"trust the summary if the structured scope is absent.\" If the structured `scope` array is missing, malformed, or contains a constraint type the callee does not implement, the co...",
    "operational_effect": "Enforcing local scope re-derivation costs one canonicalization pass and one set-intersection per invocation — sub-millisecond for typical scope vectors — and converts a class of confused-deputy breaches into clean `ScopeViolation` refusals. The observable effect is a rise in *legitimate* refusals during rollout, because issuer-side and callee-side normalizer..."
  },
  "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": "7cc86d3049bdd64096a89b4027bc119e717c2abdbe82dd6bb219b4f711ee887d",
    "verified_classes": [
      "ScopeViolation",
      "Constraint",
      "CapabilityToken"
    ],
    "verified_functions": [
      "_canonicalize_path",
      "_evaluate_constraint",
      "authorize"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ScopeViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "os",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
