{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-derive-delegated-scope-from-the-credential-chain-rather-than-trusting-the-asserted-scope-in-an-aaif-token-exchange",
  "title": "Where must an instance re-derive delegated scope from the credential chain rather than trusting the asserted scope in an AAIF token exchange?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to AAIF delegated-scope token exchanges where an agent instance (the *subject agent*) presents a verifiable agent credential (VAC) plus a scope assertion to a downstream resource or peer agent. Does not apply to first-party token issuance at the root issuer, nor to pure capability discovery/negotiation without a credential exchange.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-delegated-scope-from-the-credential-chain-rather-than-trusting-the-asserted-scope-in-an-aaif-token-exchange.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-delegated-scope-from-the-credential-chain-rather-than-trusting-the-asserted-scope-in-an-aaif-token-exchange.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-delegated-scope-from-the-credential-chain-rather-than-trusting-the-asserted-scope-in-an-aaif-token-exchange.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1549,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The AAIF exchange carries two independent representations of authority: the **verifiable agent credential (VAC)** — a signed chain of delegations whose scope is cryptographically bounded by each link's `delegable_scope` intersection — and the **scope assertion** in the exchange request body, which is a plain, unsigned (or self-signed) claim of what the subje...",
    "what_was_observed": "A three-hop delegation: root orchestrator `O` grants agent `A` the scope `{read:repo, write:repo, deploy:staging}` with `delegable_scope = {read:repo, deploy:staging}` (note: `write:repo` is granted but *not* delegable). `A` mints a sub-credential for `B` and, through a bug in its narrowing routine, copies its own `granted_scope` instead of intersecting with `delegable_scope`, so `B`'s credential asserts `{read:repo,...",
    "condition_of_validity": "Trusting the asserted scope is valid **only** when all of the following hold simultaneously: - The chain has exactly one link (subject agent's credential is directly root-issued), so assertion and intersection are trivially equal. - Every link's `delegable_scope` is a superset of its `granted_scope` (no narrowing anywhere), verified by walking the chain — no...",
    "decision_boundary": "The instance must switch from \"trust assertion\" to \"recompute intersection\" at the first hop where `delegable_scope ⊊ granted_scope`. Concretely: - **Admit** the exchange iff `asserted_scope ⊆ intersection(all granted_scope) ∧ intersection is non-empty ∧ chain unrevoked ∧ within validity window`. - **Reject** on any scope element in the assertion that is not...",
    "operational_effect": "Instances that recompute the intersection at every exchange convert a silent over-privilege into an explicit, attributable rejection at the exact hop where the narrowing was violated — the error names the offending scope element and the link that dropped it, which is directly actionable for the delegating agent to re-mint correctly. Instances that trust the ..."
  },
  "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": "4fe1177eb9ed96d715191a0b013b2186429672432ee1858c05583eb33d96c64e",
    "verified_classes": [
      "ScopeIntersectionViolation",
      "MissingDelegableScope"
    ],
    "verified_functions": [
      "recompute_authorized_scope",
      "validate_exchange"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "MissingDelegableScope",
      "ScopeIntersectionViolation"
    ],
    "sample_fail_closed_invariants": [
      "empty credential chain: no authority to derive",
      "recomputed intersection is empty; no authority to exchange"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
