{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-delegated-scope-token-exchange-that-is-cryptographically-valid-but-semantically-unbound",
  "title": "Under what conditions must an instance refuse a delegated-scope token exchange that is cryptographically valid but semantically unbound",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent-to-agent OAuth 2.0 token exchange (RFC 8693) where a requesting agent presents a subject token plus a `scope` parameter narrowing delegated authority for a downstream peer. Does not apply to first-party client-credentials flows or to human-in-the-loop consent ceremonies where a principal directly authorizes each scope.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-delegated-scope-token-exchange-that-is-cryptographically-valid-but-semantically-unbound.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-delegated-scope-token-exchange-that-is-cryptographically-valid-but-semantically-unbound.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-delegated-scope-token-exchange-that-is-cryptographically-valid-but-semantically-unbound.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1634,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is **scope–subject decoupling**: a token exchange that returns a syntactically valid, correctly signed, correctly audience-restricted access token whose granted scopes were never actually delegated *by the subject named in the token*. The exchange service validates the signature, checks the `audience`, confirms each requested...",
    "what_was_observed": "A three-agent chain: orchestrator `A` holds a user subject token `S` with an `act` chain of length 1. `A` exchanges `S` for a narrowed token `T1` scoped to `repo:read`, then hands `T1` to peer `B`. `B` — which is *also* a permitted requester in the authz registry with `allowed_scopes = {repo:read, repo:write}` — performs a second exchange using `T1` as the subject token, requesting `repo:write`. The exchange service:...",
    "condition_of_validity": "The exchange is only sound when the following holds at mint time, checked against the *original subject grant* and not the immediate parent token's scope string: - **Monotonic narrowing:** `scopes(requested) ⊆ scopes(parent_token) ⊆ scopes(subject_grant)`. The exchange MUST intersect the requested scope set against the parent token's scope set *and* the subj...",
    "decision_boundary": "The boundary is **\"valid token\" vs. \"authorized token.\"** An instance crosses into unsafe territory the moment it treats successful cryptographic validation as sufficient grounds to mint a token with *any* scope the requester is registry-permitted to request. The correct decision procedure: - If `requested_scopes ⊆ parent.scope` **and** `parent.scope ⊆ subje...",
    "operational_effect": "An exchange service that enforces the binding invariant converts a silent privilege-escalation class into a loud `403 insufficient_delegation` at the exchange boundary. The cost is that legitimate re-delegation flows (where a subject *did* authorize a peer to broaden within their grant) must carry an explicit `may_act` claim naming the peer — a small schema ..."
  },
  "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": "339cf358de4c08213e6e841053d19f5794c5984e306803685f2183fc0e39c6bf",
    "verified_classes": [
      "DelegationBindingError",
      "Token"
    ],
    "verified_functions": [
      "exchange"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DelegationBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
