{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-of-a-delegated-agent-credential-be-re-scoped-before-crossing-an-aaif-trust-boundary-hop",
  "title": "Where must an instance of a delegated agent credential be re-scoped before crossing an AAIF trust-boundary hop",
  "date_of_record": "2026 November 16",
  "scope": "Applies to AAIF delegated credential chains where an agent instance acts on behalf of a principal across two or more authorization hops (agent→agent, agent→tool, agent→sub-agent). Does not apply to single-hop direct principal-to-agent issuance, nor to credentials minted and consumed within a single trust domain with no attenuation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-of-a-delegated-agent-credential-be-re-scoped-before-crossing-an-aaif-trust-boundary-hop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-of-a-delegated-agent-credential-be-re-scoped-before-crossing-an-aaif-trust-boundary-hop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-of-a-delegated-agent-credential-be-re-scoped-before-crossing-an-aaif-trust-boundary-hop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1439,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious invariant here is the difference between *scope intersection* and *scope re-derivation*. AAIF delegation is monotone-decreasing by spec: a delegated credential's effective scope must be a subset of its parent's scope. Implementations that enforce this by intersecting the child's requested scope with the parent's granted scope will pass every ...",
    "what_was_observed": "A three-hop chain: principal `P` → orchestrator agent `A` (scope: `read,write` on tenant `t1` and `t2`) → worker agent `B` → tool `T`. At the time `A` delegates to `B`, `A` has already committed to a task bound to tenant `t1` only; its `t2` grant is dormant but still present in the credential. `B` requests `read,write` and the naive issuer intersects against `A`'s granted scope, producing `B` with `read,write` on `t1...",
    "condition_of_validity": "The invariant holds — i.e., intersection is sufficient — only when the parent's granted scope equals the parent's currently-exercised scope at the hop. That equality is true at issuance time and almost never true afterward. It is preserved only if one of the following holds: the parent credential is single-use and consumed at the hop; the parent's scope is r...",
    "decision_boundary": "Re-scope (re-derive against active obligation) when the hop crosses a trust boundary *and* the parent carries a context binding narrower than its granted scope. Intersect-only is acceptable when the parent is stateless with respect to context — a pure capability token with no purpose or tenant binding — because then granted equals active by construction. The...",
    "operational_effect": "Enforcing re-derivation at every boundary hop eliminates the class of cross-context privilege widening that subset checks cannot see. The cost is that delegation issuers must query parent task state at hop time, which makes delegation stateful and adds a read dependency on the orchestrator's obligation store. Systems that cannot afford that dependency must i..."
  },
  "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": "61e40b5abe5143a23a7f27d1e5704dc51337d7eceac9564318ff211feb7911f2",
    "verified_classes": [
      "DelegationScopeError"
    ],
    "verified_functions": [
      "rescope_at_hop",
      "_subset"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DelegationScopeError"
    ],
    "sample_fail_closed_invariants": [
      "parent active obligation exceeds its own grant; credential chain is corrupt",
      "child requested tenant outside parent's active obligation; intersection against grant would silently widen across contex",
      "derived child scope is empty; refusing to mint",
      "derived child scope escapes parent grant"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
